[gdal-dev] GDAL Java Bindings - Convert raster from [0, 360] to [-180, 180]
Even Rouault
even.rouault at gmail.com
Tue Jul 14 08:03:10 PDT 2015
Jesse,
In fact I added the possibility of specifying warping options to
gdal.ReprojectImage() just 3 weeks ago in the development version (2.1dev)
: http://trac.osgeo.org/gdal/changeset/29424/
So if you can affort running trunk, you could benefit from that. Note that
I only tested with Python but I'm confident this should also now be
available in the Java bindings as well.
Even
2015-07-14 9:43 GMT+02:00 johie <jesse.hietanen at gmail.com>:
> Hi,
>
> Thank you for your answers. Hmm I think that approach is quite complicated
> and makes my app quite messy. I would like just to stay using the Java
> bindings and get some approach that works on every file I process (only few
> files have this 0-360 problem). The gdal.SetConfigOption("CENTER_LONG",
> "0"); basically does what I want, but the problem is the too small buffer
> (which can be solved in the command line with: -wo SOURCE_EXTRA=1000) but
> there seems to be no way to pass this using the Java bindings?
>
> If there is no way to pass it to the process, would it be possible set it
> as
> default somewhere?
>
> Thanks
>
> Jesse
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/gdal-dev-GDAL-Java-Bindings-Convert-raster-from-0-360-to-180-180-tp5215366p5215512.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
--
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150714/c13c78b7/attachment.html>
More information about the gdal-dev
mailing list