[gdal-dev] Looking for a "surefire" way to get valid output formats.

2017-05-16 Thread Vlad
Basically trying to keep users from selecting an invalid -of parameter in translate and warp. Looking at gdalinfo --formats I see this for PNG.. PNG -raster- (rwv): Portable Network Graphics and gdalinfo --format png, I get... Supports: Open() - Open existing dataset. Supports: CreateCopy()

Re: [gdal-dev] Initialization "record" causing bad extents/geometries in OGR for GPX files

2017-04-26 Thread Vlad
Thanks Even. These things are coming from a cell phone app.. http://www.fulcrumapp.com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Initialization-record-causing-bad-extents-geometries-in-OGR-for-GPX-files-tp5318488p5318492.html Sent from the GDAL - Dev mailing list a

[gdal-dev] Initialization "record" causing bad extents/geometries in OGR for GPX files

2017-04-26 Thread Vlad
I have a collection of GPX files that have something like this... 2016-08-15T10:48:20Z as the first element of a section. It's probably put in there on device initialization. When OGR (Ogrinfo and the Dataset/Datasource Java classes) extract information, this trkpt is interpreted as hav

Re: [gdal-dev] Gdal Java - Translate creates indestructible file

2017-03-16 Thread Vlad
My bad, was trying to save a variable declaration. Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Gdal-Java-Translate-creates-indestructible-file-tp5312723p5312726.html Sent from the GDAL - Dev mailing list archive at Nabble.com. __

[gdal-dev] Gdal Java - Translate creates indestructible file

2017-03-16 Thread Vlad
Almost indestructable. Making a .png thumbnail... public String produceThumbnail(Dataset ds, Path tempPath) { Vector optionsVector = new Vector<>(); optionsVector.add("-of"); optionsVector.add("PNG"); optionsVector.add("-outsize"); optionsVector.add("128");

Re: [gdal-dev] Gdal Java - GetDefaultHistogram causing core dump

2017-02-13 Thread Vlad
Hi Even: As always thanks for your prompt reply. I don't "think" we'll ever encounter one of these in our production datasets, this one was in my test suite, that is how I ran into it. Though unlikely on the production system, I can't afford a core dump, so I'll put in the statistics test in th

[gdal-dev] Gdal Java - GetDefaultHistogram causing core dump

2017-02-10 Thread Vlad
Trying to get the histogram from a sample NITF. Running from the command line, gdalinfo -hist, I get this... Band 1 Block=512x512 Type=Byte, ColorInterp=Undefined 0ERROR 1: COMRAT=4.50 ARIDPCM is not supported. Currently only 0.75 is supported. ERROR 1: U_0001A.NTF, band 1: IReadBlock failed at X

[gdal-dev] java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(J)J

2017-01-24 Thread Vlad
I have a clean build on RHEL of Gdal 2.1.2. Java app (as shaded jar) with the Maven 2.1.0 dependency throws: Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(J)J at org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(Native Method) at org.gd

Re: [gdal-dev] GDAL and OGR utilities as library functions?

2017-01-04 Thread Vlad
Even, thanks for the prompt response. Your example is indeed correct and worked just fine. Still having some problems with Windows GDAL version mismatches (the dreaded SwigUpcast exception), and not all versions of the Windows gdal.jar have the Translate method, but I'll get with Gisinternals t

[gdal-dev] libgdal and commercial software

2014-05-08 Thread Vlad Merticariu
proprietary software? Thanks, Vlad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev