Re: [gdal-dev] Minor problem with the OGR clipping

2012-03-28 Thread Eric Grosso
Frank, Done. URL: http://trac.osgeo.org/gdal/ticket/4590 Cheers, Eric On 29 March 2012 04:41, Frank Warmerdam wrote: > Eric, > > If you could file a ticket on the issue we can make the "looks like a > geometry" > logic more bulletproof. > > Best regards, > Frank > > On Wed, Mar 28, 2012 at 7:2

Re: [gdal-dev] Minor problem with the OGR clipping

2012-03-28 Thread Frank Warmerdam
Eric, If you could file a ticket on the issue we can make the "looks like a geometry" logic more bulletproof. Best regards, Frank On Wed, Mar 28, 2012 at 7:27 PM, Eric Grosso wrote: > Hi, > > I was writing a small OGR based script (bash) in order to clip several > shapefiles at the same time. >

[gdal-dev] Minor problem with the OGR clipping

2012-03-28 Thread Eric Grosso
Hi, I was writing a small OGR based script (bash) in order to clip several shapefiles at the same time. Thus I used this piece of code: ogr2ogr -clipsrc polygon_selection.shp output.shp input.shp Using it, I had the following error: "FAILURE: Invalid geometry. Must be a valid POLYGON or MULTIPOLY

Re: [gdal-dev] MDB tools

2012-03-28 Thread Paolo Corti
On Wed, Mar 28, 2012 at 3:57 PM, Zoltan Szecsei wrote: > Hi All, > > I am trying to find a way to list the data type of each field in all tables > in a GeoMedia MDB databse. > > I tried ogrinfo mdbname and got:  ERROR 1: PGeo: MDB Tools driver not found! > > so, sudo apt-get install mdbtools, and

Re: [gdal-dev] MDB tools - SOLVED

2012-03-28 Thread Zoltan Szecsei
Sorry - I didn't try he simple idea first: Just use mdb-schema from mdb-tools. Apologies for the bandwidth wastage. Regards, Zoltan On 2012/03/28 15:57, Zoltan Szecsei wrote: Hi All, I am trying to find a way to list the data type of each field in all tables in a GeoMedia MDB databse. I t

[gdal-dev] MDB tools

2012-03-28 Thread Zoltan Szecsei
Hi All, I am trying to find a way to list the data type of each field in all tables in a GeoMedia MDB databse. I tried ogrinfo mdbname and got: ERROR 1: PGeo: MDB Tools driver not found! so, sudo apt-get install mdbtools, and tried again and got same error. so, sudo apt-get install gdal-bin

Re: [gdal-dev] GDAL Tiling

2012-03-28 Thread Jay L.
Akshay, 1) An AOI can be created using the -projwin option in gdal_translate. You can use that option when creating a new raster with a new tiles size. 2) Using the Python bindings it is possible to read a segment of a raster into memory without allocating memory. I am unsure using another othe

Re: [gdal-dev] GDAL Tiling

2012-03-28 Thread Mateusz Loskot
On 28 March 2012 07:45, akshay gupta wrote: > 2) When I read an image through ReadBlock() i had to allocate some memory > and pass it in the function. Is there some way that i get the image data > stored in GDALRasterBlock directly without passing my own allocated memory. http://www.gdal.org/clas

Re: [gdal-dev] Interpretation of DTED elevation data

2012-03-28 Thread Even Rouault
Selon AlexRNL : > Hi everyone! > > > I have been trying to extract elevation data from a DTED file using GDAL (in > Java). The file being loaded is of level 0 precision and seems to be correct > as an import into Global Mapper is rendering the expected result. > > > I managed to retrieve the image

[gdal-dev] Interpretation of DTED elevation data

2012-03-28 Thread AlexRNL
Hi everyone! I have been trying to extract elevation data from a DTED file using GDAL (in Java). The file being loaded is of level 0 precision and seems to be correct as an import into Global Mapper is rendering the expected result. I managed to retrieve the image data but I don't know to trans