[gdal-dev] GDAL Warp API Java bindings
Markus Schneider
schneider at occamlabs.de
Tue Sep 10 02:33:58 PDT 2013
Hi Florent,
yes, I am aware of that and I managed to create BufferedImages from GDAL
Datasets.
However, I find the Java Image API (and the whole subject) relatively
complex, so I am not sure if my code is efficient. Can anybody have a
quick look at my code and tell me if there are any quick performance gains?
Code is here: http://cdv.lt/Qw1?
Thanks.
Best regards,
Markus
P.S.: I am aware that the code is limited to RGB without transparency
and byte-encoded color values.
Am 05.09.2013 19:23, schrieb Florent JITIAUX:
> Hi,
>
> in fact with the Java binding there's no method to get a BufferedImage
> from a Dataset.
>
> You can warp your image and get a Dataset
>
> You have to create a (Java)Raster and fill it with the raster or a part
> of the raster of the warped Dataset.
> But be carefull because when you create a Raster you must create a
> correct SampleModel and the right DataBuffer generally Byte or Int, it
> depends of the type of the raster in the Dataset.
>
> Florent
>
>
> 2013/9/5 Markus Schneider <schneider at occamlabs.de
> <mailto:schneider at occamlabs.de>>
>
> Hi again,
>
> I would like to try using the Warp API from Java. It seems that there
> are currently no Java bindings available.
>
> - Did anbody work on Java bindings for the Warp API?
> - How hard would it be to define them? I may be able to invest some time
> here.
>
> Best regards,
> Markus
>
> --
> Markus Schneider
> CEO
>
> Occam Labs UG (haftungsbeschränkt)
> Godesberger Allee 139
> 53175 Bonn, Germany
>
> +49 228 93798874 <tel:%2B49%20228%2093798874>
>
> http://www.occamlabs.de
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
--
Markus Schneider
CEO
Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139
53175 Bonn, Germany
+49 228 93798874
http://www.occamlabs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130910/6b0c3f89/attachment.pgp>
More information about the gdal-dev
mailing list