Changes between Version 21 and Version 22 of Cookbook gdal


Ignore:
Timestamp:
Jan 29, 2010 12:03:47 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified Cookbook gdal

    v21 v22  
    2626C:\OSGeo4W\bin\ogr2ogr -f "ESRI Shapefile" C:\base\basesig\Czhyd.shp C:\base\basesig\Czhyd.mdb 
    2727}}} 
    28 Cedric : this one works but warning there should be no space in the path (ex : no "document and settings/"...) 
     28'' Cedric : this one works but warning there should be no space in the path (ex : no "document and settings/"...) '' 
    2929=== Conversion from PostGIS to ESRI Shape === 
    30  adapted from url:[http://www.bostongis.com/?content_name=ogr_cheatsheet] 
     30'' adapted from url: ''[http://www.bostongis.com/?content_name=ogr_cheatsheet]  
    3131The '''pgsql2shp''' and '''shp2pgsql''' are usually the best tools for converting back and forth between PostGIS and ESRI for 2 main reasons. 
    3232 
    3333    * ''It has fewer idiosyncracies when converting data.'' 
    3434    * ''It has a lot fewer dependencies so can fit on your floppy.'' 
    35  
    3635If you really want to use Ogr2Ogr for this kind of conversion, below is the standard way to do it 
    37 Here the example should export the table riversegments 
     36Here the example should export the table riversegments[[BR]] 
    3837Cedric 
    3938{{{ 
     
    6261C:\OSGeo4W\bin\ogr2ogr -f "ESRI Shapefile" essai2 PG:"host=locahost user=postgres dbname=CCM password=postgres port=5433" 
    6362}}} 
    64  
    65  
    6663Now most of the time you probably only want to output a subset of your postgis tables rather than all your tables. This code exports only the riversegments and rivernodes tables to a folder called c:/base/basesig/mydatadump in ESRI shapefile format 
    6764{{{