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 Answer 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! Aug 13, 2014 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? Mar 6, 2015 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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