1

I have an array of objects where each object has three fields: lat, lon, and category. It is essentially pixels that have been given a land use category. I cannot figure out how to turn this data into a geotiff. I assume I should use geotools. The coordinates are in dec degrees lat long. I know I can use q or arcgis to do this but I need to do it as part of an automated process. Just need a push in the right direction.

1

You can certainly use GeoTools for this, you will also probably want to look at a relsted project JAITools which does helpful things with rasters. I wrote some code a while back to rasterize circles on to a Grid and output them as GeoTiffs which should point you in the right direction.

  • thanks you @iant, I will mark as answered. Don't have time to try right now but your code looks adaptable to what I'm doing. Thanks! – markgiaconia Aug 13 '14 at 12:34
  • 1
    Can you point me in the right direction for how to actually write the GridCoverage2D to disk as a tif file? – markgiaconia Mar 6 '15 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.