2

I've got a typical two-dimensional array in Java with values which represent a grid. Rows, columns, coordinate system (latlon), origin and cell size are known. I am able to export this data as ASCII Grid but I need to create a compressed GeoTiff. And I would like to stay in the Java world, so doing it with gdal_translate is straight forward but not the solution I am looking for.

I found GeoTools GeoTiffWriterTest.java but am not able to extract the main part I need.

closed as off-topic by Ian Turton Jun 18 '18 at 8:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Ian Turton
If this question can be reworded to fit the rules in the help center, please edit the question.