Re: [gdal-dev] Change of behavior ?? GDALRasterBand:IReadBlock vs RasterIO ?

2017-01-30 Thread Even Rouault
On lundi 30 janvier 2017 15:33:28 CET asmita wrote: > Recently seen that GDALRasterBand read for the Mosaics is affected because > the read always trying to default to IReadBlock and we never implemented > IReadBlock because of less generic type support I guess: > IReadBlock() must definitely be

[gdal-dev] Change of behavior ?? GDALRasterBand:IReadBlock vs RasterIO ?

2017-01-30 Thread asmita
Recently seen that GDALRasterBand read for the Mosaics is affected because the read always trying to default to IReadBlock and we never implemented IReadBlock because of less generic type support I guess: our implementation : class XRasterBand : public GDALRasterBand { public: XRasterBand(G

[gdal-dev] gdal.Rasterize select output type different than Float64

2017-01-30 Thread Deschamps, Benjamin (AAFC/AAC)
Is it possible to specify the output type for gdal.Rasterize, similar to gdal.Warp and others? I don't see why the option would be available in the command line utility but not through the binding. It looks to be hardcoded in the source (https://github.com/OSGeo/gdal/blob/ba920209a2443b5a8492a2

Re: [gdal-dev] shapefile field indexing on OGR 1.x vs 2.1

2017-01-30 Thread Even Rouault
On lundi 30 janvier 2017 16:56:29 CET Andrea Battisti wrote: > Hi all, > > I have a shapefile created by GDAL/OGR 1.7 which is using a .ind/.idm > attribute index on an integer field. > > If I SQL-query that integer field on OGR 2.1 I get the following: > ERROR 7: BuildKey(): 8 bytes integer key

[gdal-dev] shapefile field indexing on OGR 1.x vs 2.1

2017-01-30 Thread Andrea Battisti
Hi all, I have a shapefile created by GDAL/OGR 1.7 which is using a .ind/.idm attribute index on an integer field. If I SQL-query that integer field on OGR 2.1 I get the following: ERROR 7: BuildKey(): 8 bytes integer key length not supported I think that is because the new GDAL interprets th

Re: [gdal-dev] Getting Elevation data from GeoTiff file with JAVA

2017-01-30 Thread Michael Smith
You can use gdallocationinfo utility to get the cell value (elevation) at a specified location. See http://www.gdal.org/gdallocationinfo.html Mike Michael Smith US Army Corps Remote Sensing GIS/Center michael.sm...@usace.army.mil -Original Message- From: gdal-dev on behalf of M

[gdal-dev] Getting Elevation data from GeoTiff file with JAVA

2017-01-30 Thread Mahir Karabacak
Hi all, Hope you have a great day... I am very new on GDAL. I need to get elevation (altitude) data of a specified location in GeoTiff file. I will give latitude,longitude and it will return elevation. If anybody can help me about that I will really be thankful. Thanks in advance. Mahir KAR