[geotk] Looking for Java APIs to create a PNG from a double[][]
Robert Nix
robert at urban4m.com
Wed Oct 17 09:19:27 PDT 2012
I see. Good to know. Yea, it's no problem converting them to integers, so i can go that route. Or, if there's some format typical of GIS systems for storing double matrices, that's probably a worthwhile approach too.
Thanks
On Oct 17, 2012, at 11:30, Martin Desruisseaux <martin.desruisseaux at geomatys.fr> wrote:
> Hello Robert
>
> Le 17/10/12 23:51, Robert Nix a écrit :
>> As a newbie to GIS, i'm looking for information on how to use GeoTools (or any appropriate) APIs to convert a double[][] into a PNG.
>
> The PNG format can not store floating point values as far as I know. You need to either use an other file format which can store such values, or convert those values to integers in the [0 ... 255] range by multiplying them by some factor of your choice.
>
> Regards,
>
> Martin
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1437 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121017/d6019f9c/attachment.bin>
More information about the Geotoolkit
mailing list