[gdal-dev] Java-GDAL binding:How to convert gdal dataset to byte array

2023-04-12 Thread George Ma
Hello everyone. I have a trouble about java-gdal when I process raster geotif data. I want to convert Dataset type object to Byte array in order to return HttpResponse. But I dont know how to convert. If I write file on disk firstly,then I read the file into FileInputStream,I can convert to byte[],

Re: [gdal-dev] Seeking functionality inverse of gdal_merge.py

2023-04-12 Thread Even Rouault
Jesse, you may want to look at https://gdal.org/programs/gdal_retile.html Even Le 12/04/2023 à 20:41, Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via gdal-dev a écrit : Hi, I’d like to take a large raster image and chop it into XY tiles.  I see gdal2tiles.py, but thi

[gdal-dev] Seeking functionality inverse of gdal_merge.py

2023-04-12 Thread Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via gdal-dev
Hi, I’d like to take a large raster image and chop it into XY tiles. I see gdal2tiles.py, but this is specific to web hosting and inherits untenable constraints (like byte only datatype). Does such a program exist by the GDAL team, or do I need to implement this manually? If the latter, I su

Re: [gdal-dev] Problem with file source projection doing a vertical datum reprojection

2023-04-12 Thread Even Rouault
Le 12/04/2023 à 11:45, Michael Smith a écrit : I guess I thought GTIFF_REPORT_COMPD_CS would only change the display of the output, not change the interpretation of the SRS? It is documented in https://gdal.org/drivers/raster/gtiff.html as: """GTIFF_REPORT_COMPD_CS : Can be set to TRUE to avoid

Re: [gdal-dev] Problem with file source projection doing a vertical datum reprojection

2023-04-12 Thread Michael Smith
I guess I thought GTIFF_REPORT_COMPD_CS would only change the display of the output, not change the interpretation of the SRS? I can confirm that setting GTIFF_REPORT_COMPD_CS=FALSE does indeed allow the vertical datum reprojection to happen but I guess I have a poor understanding of just what GTIF

Re: [gdal-dev] Problem with file source projection doing a vertical datum reprojection

2023-04-12 Thread Even Rouault
Michael, it is well possible this might have worked in the past due to slightly different behavior of GDAL and/or PROJ, but the current behavior seems consistent to me. You're trying to transform between 2 compound CRS, the source one with a unknown vertical datum and the target one with EGM20

[gdal-dev] Problem with file source projection doing a vertical datum reprojection

2023-04-12 Thread Michael Smith
I have a file with a projection shown, using REPORT_COMPD_CS=TRUE of: COMPOUNDCRS["WGS 84 / UTM zone 17N + unknown",     PROJCRS["WGS 84 / UTM zone 17N",     BASEGEOGCRS["WGS 84",     DATUM["World Geodetic System 1984",     ELLIPSOID["WGS 84",6378137,298.257223563,