1v.external(1)                 Grass User's Manual                v.external(1)
2
3
4

NAME

6       v.external   -  Create  a  new vector as a read-only link to OGR layer.
7       Available      drivers:      ESRI       Shapefile,MapInfo       File,UK
8       .NTF,SDTS,TIGER,S57,VRT,AVCBin,REC,Mem‐
9       ory,CSV,GML,KML,SQLite,DODS,ODBC,PGeo,OGDI,PostgreSQL,MySQL,GRASS
10

KEYWORDS

12       vector
13

SYNOPSIS

15       v.external
16       v.external help
17       v.external dsn=string  [output=name]   [layer=string]   [--overwrite]
18
19   Flags:
20       --overwrite
21
22   Parameters:
23       dsn=string
24           OGR datasource name. Examples:
25                     ESRI    Shapefile:    directory     containing     shape‐
26           files        MapInfo File: directory containing mapinfo files
27
28       output=name
29           Output vector, if not given, available layers are printed only
30
31       layer=string
32           OGR  layer  name.  If not given, available layers are printed only.
33           Examples:
34                     ESRI  Shapefile:  shapefile  name          MapInfo  File:
35           mapinfo file name
36

DESCRIPTION

38       v.external  creates  new  vector  as a link to external OGR layer (read
39       only).  OGR (Simple Features Library) is part of the GDAL  library,  so
40       you need to install GDAL to use v.external and external OGR layers.
41
42   Supported OGR Vector Formats
43       ESRI Shapefile
44       Mapinfo File
45
46       Further available drivers such as UK .NTF, SDTS, TIGER, IHO S-57 (ENC),
47       DGN, GML, AVCBin, REC, Memory, OGDI, and PostgreSQL depend on the local
48       installation (OGR library), for details see OGR web site.
49

EXAMPLES

51       SHAPE files
52
53       v.external dsn=/home/user/shape_data layer=test_shape output=grass_map
54
55
56       MapInfo files
57
58       v.external dsn=./ layer=mapinfo_test output=grass_map
59
60
61       SDTS files (you have to select the CATD file)
62
63       v.external dsn=CITXCATD.DDF output=cities
64
65
66       TIGER files
67
68       v.external     dsn=input/2000/56015/    layer=CompleteChain,PIP    out‐
69       put=t56015_all
70
71
72       PostGIS maps (area example)
73
74       v.external   dsn="PG:host=localhost    user=postgres    dbname=postgis"
75       layer=polymap \
76       output=polygons
77
78

NOTES

80       The  simple  feature  data model used by OGR is very different from the
81       topological format used by GRASS. Instead of true topology,  so  called
82       'pseudo  topology'  is  created  for  data  linked by v.external.  User
83       should learn the difference between those to formats, because some mod‐
84       ules  working  correctly  with  GRASS  native  data,  can produce wrong
85       results with input layers created by v.external.
86
87       See v.db.connect for an example of maintaining attributes  in  external
88       DBMS in also writeable mode.
89

REFERENCES

91       OGR vector library
92       OGR vector library C API documentation
93

SEE ALSO

95       v.clean, v.db.connect, v.in.db, v.in.ogr, v.out.ogr
96

AUTHOR

98       Radim Blazek, ITC-Irst, Trento, Italy
99
100       Last changed: $Date: 2006/03/21 18:22:37 $
101
102       Full index
103
104
105
106GRASS 6.2.2                                                      v.external(1)
Impressum