Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Autres versions - même langue

Version: 370952 (fedora - 01/12/10)

Section: 1 (Commandes utilisateur)


v.external - Creates a new vector as a read-only link to OGR layer.
Available drivers: ESRI Shapefile,MapInfo File,UK .NTF,SDTS,TIGER,S57,DGN,VRT,REC,Memory,BNA,CSV,GML,GPX,KML,GeoJSON,Interlis 1,Interlis 2,GMT,SQLite,DODS,ODBC,PGeo,OGDI,PostgreSQL,MySQL,PCIDSK,XPlane,AVCBin,AVCE00,DXF,GRASS,Geoconcept,GeoRSS,GPSTrackMaker,VFK




v.external help
v.external dsn=string [output=name] [layer=string] [--overwrite] [--verbose] [--quiet]



Allow output files to overwrite existing files

Verbose module output

Quiet module output



OGR datasource name. Examples:
               ESRI Shapefile: directory containing shapefiles         MapInfo File: directory containing mapinfo files

Output vector. If not given, available layers are printed only.

OGR layer name. If not given, available layers are printed only. Examples:
               ESRI Shapefile: shapefile name          MapInfo File: mapinfo file name


v.external creates new vector as a link to external OGR layer (read only). OGR (Simple Features Library) is part of the GDAL library, so you need to install GDAL to use v.external and external OGR layers.

Supported OGR Vector Formats

ESRI Shapefile
Mapinfo File

Further available drivers such as UK .NTF, SDTS, TIGER, IHO S-57 (ENC), DGN, GML, AVCBin, REC, Memory, OGDI, and PostgreSQL depend on the local installation (OGR library), for details see OGR web site.


SHAPE files

v.external dsn=/home/user/shape_data layer=test_shape output=grass_map

MapInfo files

v.external dsn=./ layer=mapinfo_test output=grass_map

SDTS files (you have to select the CATD file)

v.external dsn=CITXCATD.DDF output=cities

TIGER files

v.external dsn=input/2000/56015/ layer=CompleteChain,PIP output=t56015_all

PostGIS maps (area example)

v.external dsn="PG:host=localhost user=postgres dbname=postgis" layer=polymap rs


The simple feature data model used by OGR is very different from the topological format used by GRASS. Instead of true topology, so called 'pseudo topology' is created for data linked by v.external. User should learn the difference between those to formats, because some modules working correctly with GRASS native data, can produce wrong results with input layers created by v.external.

See v.db.connect for an example of maintaining attributes in external DBMS in also writeable mode.


OGR vector library
OGR vector library C API documentation


v.clean, v.db.connect,,, v.out.ogr


Radim Blazek, ITC-Irst, Trento, Italy

Last changed: $Date: 2006-03-21 19:22:37 +0100 (Tue, 21 Mar 2006) $

Full index

© 2003-2008 GRASS Development Team

<closeman> J'ai refais toute la configuration de mon firewall avec iptables
<closeman> Et tout marche impec sauf => Partage de connexion
<closeman> Ca marchait tres bien avt
<closeman> Depuis que j'ai fais tte mes regles
<closeman> Donc ce qui fo faire c carrement se pencher sur ces regles :)
<Firebird> ah ? t'es arrivé à la ménopause ?
<closeman> monopause ?
<Firebird> ménopause !
<closeman> Heu bien a vrai dire
<closeman> je sais pas tres bien si ca fait partie de iptables ca