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 <[email protected] > <mailto:[email protected]>> > > 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 > [email protected] <mailto:[email protected]> > 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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
