v.external - Creates a new pseudo-vector map as a link to an OGR-supported layer or a PostGIS feature table.
vector, import, external, OGR, PostGIS
v.external v.external --help v.external [-ofltb] input=string [layer=name] [output=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui] Flags: -o Override projection check (use current location's projection) Assume that the dataset has the same projection as the current location -f List supported formats and exit -l List available layers in data source and exit -t List available layers including feature type in data source and exit Format: layer name,type,projection check,geometry -b Do not build topology Advantageous when handling a large number of points --overwrite Allow output files to overwrite existing files --help Print usage summary --verbose Verbose module output --quiet Quiet module output --ui Force launching GUI dialog Parameters: input=string [required] Name of input OGR or PostGIS data source Examples: ESRI Shapefile: directory containing a shapefile MapInfo File: directory containing a mapinfo file PostGIS database: connection string, eg. 'PG:dbname=db user=grass' layer=name Name of OGR layer or PostGIS feature table to be linked Examples: ESRI Shapefile: shapefile name MapInfo File: mapinfo file name PostGIS database: table name output=name Name for output GRASS vector map (default: input layer)
v.external creates new vector map as a link to external OGR layer or PostGIS feature table. OGR (Simple Features Library) is part of the GDAL library, so you need to install GDAL to use v.external for external OGR layers. Note that a PostGIS feature table can be linked also using built-in GRASS-PostGIS data driver (requires GRASS to be built with PostgreSQL support). Supported OGR vector formats To list supported OGR formats, type v.external -f For details see OGR web site.
ESRI Shapefile Assuming that 'test_shape.shp' is located in directory '/home/user/shape_data'. v.external input=/home/user/shape_data layer=test_shape output=grass_map MapInfo files v.external input=./ layer=mapinfo_test output=grass_map SDTS files Note: you have to select the CATD file v.external input=CITXCATD.DDF output=cities TIGER files v.external input=input/2000/56015/ layer=CompleteChain,PIP output=t56015_all PostGIS layers PostGIS links are by default created by built-in PostGIS support, ie. using GRASS-PostGIS data driver. If the environment variable GRASS_VECTOR_OGR exists, or GRASS is compiled without PostgreSQL support then GRASS will use OGR-PostgreSQL driver for creating a link. v.external input="PG:host=localhost user=postgres dbname=postgis" layer=polymap
The simple feature data model used by OGR (or PostGIS) 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 two formats, because some modules working correctly with GRASS native data, can produce wrong results with input vector maps created by v.external. See v.db.connect for an example of maintaining attributes in external DBMS in also writable mode.
OGR vector library C API documentation
v.external.out, v.clean, v.db.connect, v.import, v.in.db, v.in.ogr, v.out.ogr OGR Library PostGIS See also GRASS user wiki page for more examples.
Radim Blazek, ITC-Irst, Trento, Italy PostGIS support by Martin Landa, Czech Technical University in Prague, Czech Republic Last changed: $Date: 2016-01-13 10:18:55 +0100 (Wed, 13 Jan 2016) $
Available at: v.external source code (history) Main index | Vector index | Topics index | Keywords index | Graphical index | Full index 2003-2016 GRASS Development Team, GRASS GIS 7.2.0 Reference Manual
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.