[gdal-dev] crop a raster file (.bsp/.kap) to create an image file (.png)

2010-07-22 Thread jmsbc
Hello, I have a set of raster files (.bsb and .kap) that I need to crop based on a set of coordinates (top left x,y and bottom right x,y) in order to obtain a .png file. I've gone through the GDAL API tutorial, and it seems like I should be using CreateCopy to derive the destination file. Ho

Re: [gdal-dev] gdal_rasterize: ERROR 4: `test.tif' not recognised as a supported file format.

2010-07-22 Thread Jean-Claude REPETTO
Le 22/07/2010 17:18, Sebastian E. Ovide a écrit : se...@seanspc:~/rasters$ ls -la test.tif -rw-r--r-- 1 sebas sebas 0 2010-07-22 16:13 test.tif ../shapes/Fluvial_Extents/FluvialUD04Q200Outline.shp test.tif ERROR 4: `test.tif' not recognised as a supported file format. any ideas ? Your TIF

[gdal-dev] gdal_rasterize: ERROR 4: `test.tif' not recognised as a supported file format.

2010-07-22 Thread Sebastian E. Ovide
Hi All, following the tutorial... se...@seanspc:~/rasters$ gdal_rasterize --version GDAL 1.7.2, released 2010/04/23 se...@seanspc:~/rasters$ ls -la test.tif -rw-r--r-- 1 sebas sebas 0 2010-07-22 16:13 test.tif se...@seanspc:~/rasters$ ogrinfo ../shapes/Fluvial_Extents/FluvialUD04Q200Outline.shp I

Re: [gdal-dev] acceding shapes and rasters of a GeoDatabase .gdb

2010-07-22 Thread Frank Warmerdam
Sebastian E. Ovide wrote: Hi All, is it possible to access to the shape and rasters inside a .gdb with GDAL ? Sebastian, I don't recognise the extension .gdb, so perhaps it is a File Geodatabase. GDAL/OGR does not support File Geodatabase at this time. It does support Personal Geodatabase (.

Re: [gdal-dev] ogr2ogr OCI: problem loading shapes

2010-07-22 Thread Sebastian E. Ovide
Hi Ivan, I've tried again without the ":"... and the problem is still there... se...@seanspc:~/shapes/Fluvial_Extents$ time ogr2ogr -f OCI OCI:geoserver/geoser...@mfproduk_11g FluvialUD04Q75Outline.shp -lco srid=81989 -lco PRECISION=NO -progress 0...10...20...30...40...50...60...70...80...90...10

Re: [gdal-dev] ogr2ogr OCI: problem loading shapes

2010-07-22 Thread Ivan Lucena
Hi Sebastian, Did you intend to enter table name after "OCI:geoserver/geoser...@mfproduk_11g:"? I am asking that because there is a ":" at the end but with no information after that. I don't know if that would affect the OCI driver. Regards, Ivan > ---Original Message--- > From:

[gdal-dev] ogr2ogr OCI: problem loading shapes

2010-07-22 Thread Sebastian E. Ovide
Hi All se...@seanspc:~/shapes/Fluvial_Extents$ time ogr2ogr -f OCI OCI:geoserver/geoser...@mfproduk_11g: FluvialUD04Q100Outline.shp -lco srid=81989 -lco PRECISION=NO -progress 0...10...20...30...40...50...60...70...80...90...100 - done. ERROR 1: ORA-29855: error occurred in the execution of ODCIIN

[gdal-dev] acceding shapes and rasters of a GeoDatabase .gdb

2010-07-22 Thread Sebastian E. Ovide
Hi All, is it possible to access to the shape and rasters inside a .gdb with GDAL ? thanks -- Sebastian E. Ovide ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Re: determine real number precision with ogr2ogr

2010-07-22 Thread Tamas Szekeres
2010/7/22 easyl > > thanks for all your suggestions! > > Using 'cast' sql option with ogr2ogr is interesting. > i.e. "SELECT CAST(DEPTH AS numeric(8,1)) from SOUNDG" > But I still have two questions. > > 1. now I have all real number with 1 digit precision. The values look like > 1.2, 3.2, 2.0, 1

Re: [gdal-dev] python bindings: strange behavior with layer

2010-07-22 Thread Python Gis
Thanks Luke this is exactly the approach I have used, solving the issue To me looks strange that a layer can't exist without the datasource in the scope, with other GIS API is not so. But anyway, good to know best regards - Original Message From: "Pinner, Luke" To: Python Gis Cc: gda

[gdal-dev] Re: determine real number precision with ogr2ogr

2010-07-22 Thread easyl
thanks for all your suggestions! Using 'cast' sql option with ogr2ogr is interesting. i.e. "SELECT CAST(DEPTH AS numeric(8,1)) from SOUNDG" But I still have two questions. 1. now I have all real number with 1 digit precision. The values look like 1.2, 3.2, 2.0, 1.0. Actually it is alread