Re: [gdal-dev] java Dataset.GetRasterBand(i).ComputeRasterMinMax not working for float data

2017-01-27 Thread mccorb
If you like I can upload the file and send you a google drive link if you give me the email you want to receive it from. Thanks, On Fri, Jan 27, 2017 at 1:34 PM, Even Rouault-2 [via OSGeo.org] < ml-node+s1560n5305129...@n6.nabble.com> wrote: > On vendredi 27 janvier 2017 12:25:43 C

Re: [gdal-dev] java Dataset.GetRasterBand(i).ComputeRasterMinMax not working for float data

2017-01-27 Thread mccorb
t;N) Lower Right ( 745503.493, 3998161.458) ( 78d16'22.86"W, 36d 5'49.55"N) Center ( 644257.392, 4075992.199) ( 79d22'57.31"W, 36d49' 7.69"N) Band 1 Block=128x128 Type=Float32, ColorInterp=Gray Computed Min/Max=-3402823060737096500.000

Re: [gdal-dev] java Dataset.GetRasterBand(i).ComputeRasterMinMax not working for float data

2017-01-27 Thread mccorb
7 11:15:59 CET mccorb wrote: > > > I have a geotiff image with float data (GDT_Float32). When I read a tile > I > > > have to case the nodata value to float to make it compare otherwise it > > > doesn't...here is a reduced snippet of my code > > > &

[gdal-dev] java Dataset.GetRasterBand(i).ComputeRasterMinMax not working for float data

2017-01-27 Thread mccorb
I have a geotiff image with float data (GDT_Float32). When I read a tile I have to case the nodata value to float to make it compare otherwise it doesn't...here is a reduced snippet of my code Double[] d = new Double[1]; rb.GetNoDataValue(d); double noDataVal = d[0]; ... if(rasterBandDataType ==

[gdal-dev] shapefile polygon/multipolygon ordering

2014-11-14 Thread mccorb
I used GDAL to create a new shapefile of polygons. The polygons (multi-polygons) were land areas. Some of the land areas had holes defined which were lakes within the land area. Within the lakes there were some islands of land...so I had a polygon with a hole with more polygons. When I created t

[gdal-dev] Writing linestring and getting back linestring25

2014-08-25 Thread mccorb
I am creating a new sqlite file and writing a new layer and feature. When i write a linestring to the file everything works fine. I look at it in an SQLite browser app and the geometry_type is 2. However when I reopen it I get a linestring25d geometry type. >From what I can tell I can use this exa

[gdal-dev] getting the Layer id or index from a Feature object

2014-08-24 Thread mccorb
Is there anything in the Feature object which contains the layer id/index which it is in? I was thinking I could carry around the Feature and then when I wanted to update any of the geometry or FielfDefn items I could just call setField/unsetField but it appears I need to also call Layer.setFeatu

Re: [gdal-dev] Reading shapefile PRJ failing

2014-07-12 Thread mccorb
. Again, thanks so much. Brian From: Even Rouault [via OSGeo.org] [mailto:ml-node+s1560n5150785...@n6.nabble.com] Sent: Saturday, July 12, 2014 2:31 PM To: mccorb Subject: Re: Reading shapefile PRJ failing Brian, I've added support in GDAL trunk for those files. I could see th

[gdal-dev] Reading shapefile PRJ failing

2014-07-12 Thread mccorb
So I have tracked this down to the fact that the PRJ files that I have been given to use have a BOM of 0xEF 0xBB 0xBF for the first three bytes of the file. When I use the shapefiles that have these byte order markers the Layer class method getSpatialRef() (java JNI bindings) returns null. I am g

[gdal-dev] GML file with multiple shape types

2014-05-23 Thread mccorb
1. Can OGR style GML files have multiple shape types (point, linestring, polygon, etc) and coordinate projections defined in a single file? Based on just the file structure it looks like the answer is probably yes... 2. If yes, can OGR2OGR be run somehow with multiple shape files to create a single

[gdal-dev] ogr2ogr coordinate system encoding

2014-05-06 Thread mccorb
I have shape files that I am wanting to convert to a GML equivalent file. I understand how to use the shape file .PRJ files and EPSG info to translate coordinate systems and all that is working well. However, once converted the coordinates are correct but there is nothing in the file (that I can