Using Java, I need to render a bunch of geodetic data to an image, ideally TIFF or PNG. Specifically this is weather data, with each sample having a latitude, longitude, and amplitude value.
I'd like to avoid reinventing the wheeling by converting polar coordinates (lat, long) to Cartesian coordinates (x, y in BufferedImage
or Graphics2D
). Furthermore the amplitude value needs to rendered as a color gradient. I've looks at GeoTools and NASA's World Wind, but it's unclear and not obvious if it has this capability.
Is there a Java library that can do this?
Best Answer
Did you consider using GDAL? Extensive information, Documentation and examples are available on the Geographical Data Abstraction Library. You can get step-by-step help to compile the GDAL.jar library as described here
gdal.ReprojectImage(src_ds, dst_ds) from from GDAL Class seems to be what you are looking for though I have never used it yet.