Changes between Version 11 and Version 12 of CookBook join ROE_CCM


Ignore:
Timestamp:
Mar 15, 2010 10:20:28 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_CCM

    v11 v12  
    3838==== With QGis ==== 
    3939You have to reproject the data  
    40 {{{ 
    41 C:\OSGeo4W\bin\ogr2ogr -- help 
    42 }}} 
    43 gets : 
    4440 
    45 {{{ 
    46 Usage: ogr2ogr [--help-general] [-skipfailures] [-append] [-update] [-gt n] 
    47                [-select field_list] [-where restricted_where] 
    48                [-sql <sql statement>] 
    49                [-spat xmin ymin xmax ymax] [-preserve_fid] [-fid FID] 
    50                [-a_srs srs_def] [-t_srs srs_def] [-s_srs srs_def] 
    51                [-f format_name] [-overwrite] [[-dsco NAME=VALUE] ...] 
    52                dst_datasource_name src_datasource_name 
    53                [-lco NAME=VALUE] [-nln name] [-nlt type] [layer [layer ...]] 
    54  
    55  -f format_name: output file format name, possible values are: 
    56      -f "ESRI Shapefile" 
    57      -f "MapInfo File" 
    58      -f "TIGER" 
    59      -f "S57" 
    60      -f "DGN" 
    61      -f "Memory" 
    62      -f "BNA" 
    63      -f "CSV" 
    64      -f "GML" 
    65      -f "GPX" 
    66      -f "KML" 
    67      -f "GeoJSON" 
    68      -f "Interlis 1" 
    69      -f "Interlis 2" 
    70      -f "GMT" 
    71      -f "SQLite" 
    72      -f "ODBC" 
    73      -f "PostgreSQL" 
    74      -f "MySQL" 
    75  -append: Append to existing layer instead of creating new if it exists 
    76  -overwrite: delete the output layer and recreate it empty 
    77  -update: Open existing output datasource in update mode 
    78  -select field_list: Comma-delimited list of fields from input layer to 
    79                      copy to the new layer (defaults to all) 
    80  -where restricted_where: Attribute query (like SQL WHERE) 
    81  -sql statement: Execute given SQL statement and save result. 
    82  -skipfailures: skip features or layers that fail to convert 
    83  -gt n: group n features per transaction (default 200) 
    84  -spat xmin ymin xmax ymax: spatial query extents 
    85  -dsco NAME=VALUE: Dataset creation option (format specific) 
    86  -lco  NAME=VALUE: Layer creation option (format specific) 
    87  -nln name: Assign an alternate name to the new layer 
    88  -nlt type: Force a geometry type for new layer.  One of NONE, GEOMETRY, 
    89       POINT, LINESTRING, POLYGON, GEOMETRYCOLLECTION, MULTIPOINT, MULTILINE, 
    90       MULTIPOLYGON, or MULTILINESTRING.  Add "25D" for 3D layers. 
    91       Default is type of source layer. 
    92  -a_srs srs_def: Assign an output SRS 
    93  -t_srs srs_def: Reproject/transform to this SRS on output 
    94  -s_srs srs_def: Override source SRS 
    95  
    96  Srs_def can be a full WKT definition (hard to escape properly), 
    97  or a well known definition (ie. EPSG:4326) or a file with a WKT 
    98  definition. 
    99 }}} 
    10041write ogr2ogr -f formatdst_datasource_name src_datasource_name -a_srs <actual projection> -t_srs <reprojected data> 
    10142Launch in ''' OSGeo4W command shell '''