Changes between Version 30 and Version 31 of WKTRaster/SpecificationWorking01
- Timestamp:
- 06/02/09 06:48:21 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking01
v30 v31 25 25 == '''Objective 0.1.6c - Being able to load rasters in the database ''' == 26 26 27 28 '''gdal2wktraster.py -''' A prototype of the translation utility implemented in Python and with use of [http://www.gdal.org/ GDAL] and its bindings to Python. Create an SQL commands output to create a table of raster. As input raster file, all GDAL formats are accepted. The script is available as [http://svn.refractions.net/postgis/spike/wktraster/scripts/gdal2wktraster.py gdal2wktraster.py] script. 29 30 '''Open Questions:'''[[BR]] 31 [[BR]] 32 1. Should we change names of options to strictly follow those used by raster2pgsql and shp2pgsql?[[BR]][[BR]] Pierre: Yes! We should follow PostGIS tracks as much as possible in everything we do in this project.[[BR]][[BR]] 27 === gdal2wktraster === 28 29 A prototype of the translation utility implemented in Python and with use of [http://www.gdal.org/ GDAL] and its bindings to Python. Create an SQL commands output to create a table of raster. As input raster file, all GDAL formats are accepted. The script is available as [http://svn.refractions.net/postgis/spike/wktraster/scripts/gdal2wktraster.py gdal2wktraster.py] script. 30 31 '''Open Questions:''' 32 33 1. Should we change names of options to strictly follow those used by raster2pgsql and shp2pgsql? 34 Pierre: Yes! We should follow PostGIS tracks as much as possible in everything we do in this project. 33 35 1. How can I import all the bands from a multiband TIFF? 34 36 35 '''USAGE:'''[[BR]] 37 '''USAGE:''' 38 36 39 '''gdal2wktraster.py''' -r rasterfile [-r rasterfile] -t [<schema>.]<table> [<options>] 37 40 38 '''-r''' <rasterfile> Specifies input raster file. Multiple -r options can be specified for a number of input files or wildcards can be used (? and *). At least one input raster file is REQUIRED. [[BR]]41 '''-r''' <rasterfile> Specifies input raster file. Multiple -r options can be specified for a number of input files or wildcards can be used (? and *). At least one input raster file is REQUIRED. 39 42 '''-t''' <table> Name of destination table in with or without target schema specified. This parameter is REQUIRED. 40 43 41 44 42 '''OPTIONS:'''[[BR]] 45 '''OPTIONS:''' 46 43 47 '''-s''' <srid> Set the SRID field. Default is -1.[[BR]] 44 48 '''-b''' <nbband> Specify the number of band. The number of rasterfile must correspond to this number.[[BR]] … … 57 61 '''-h''' Display this help screen. 58 62 59 ---- 60 '''raster2pgsql.exe -''' Should be as much similar to [http://postgis.refractions.net/documentation/manual-svn/ch04.html#id3009010 shp2pgsql.exe] as it is possible. 63 === raster2pgsql === 64 65 Should be as much similar to [http://postgis.refractions.net/documentation/manual-svn/ch04.html#id3009010 shp2pgsql] as it is possible. 61 66 62 67 * For Beta 0.1: TIFF only, only the first band, options for tiling. 63 68 64 69 65 '''Open Questions:'''[[BR]] 70 '''Open Questions:''' 71 66 72 [[BR]] 67 73 1. Pierre: Should there be an option to be able to write directly to the database instead of writing a .sql file by default?[[BR]][[BR]]