[gdal-dev] New saga grid zipped format

Dmitry Baryshnikov bishop.dev at gmail.com
Wed Jul 12 07:24:44 PDT 2017


Hi Johan,

Just use CPL_VSIL_ZIP_ALLOWED_EXTENSIONS to add new extension and enjoy.

CPLSetConfigOption(CPL_VSIL_ZIP_ALLOWED_EXTENSIONS, "sg-grd-z");

Or in ogrinfo use option -config CPL_VSIL_ZIP_ALLOWED_EXTENSIONS sg-grd-z

Best regards,
     Dmitry

12.07.17 17:18, Johan Van de Wauw пишет:
> Hi all,
>
> Saga GIS introduced a new file format .sg-grd-z [1] which actually is
> a zipfile containing the normal files encountered in saga gis (*.sgrd
> ; *.sdat; and optionally *.mgrd ).
>
> In fact, if you rename the .sg-grd-z file you can already open it using vsizip
> eg
> cp Landgebruik_def_watem.sg-grd-z Landgebruik_def_watem.zip
> gdalinfo /vsizip/Landgebruik_def_watem.zip/Landgebruik_def_watem.sdat
> Driver: SAGA/SAGA GIS Binary Grid (.sdat)
> Files: /vsizip/Landgebruik_def_watem.zip/Landgebruik_def_watem.sdat
>         /vsizip/Landgebruik_def_watem.zip/Landgebruik_def_watem.sdat.aux.xml
>         /vsizip/Landgebruik_def_watem.zip/Landgebruik_def_watem.sgrd
>         /vsizip/Landgebruik_def_watem.zip/Landgebruik_def_watem.prj
> Size is 49400, 24000
> Coordinate System is `'
> Origin = (17000.000000000000000,249995.000000000000000)
> Pixel Size = (5.000000000000000,-5.000000000000000)
> Corner Coordinates:
> Upper Left  (   17000.000,  249995.000)
> Lower Left  (   17000.000,  129995.000)
> Upper Right (  264000.000,  249995.000)
> Lower Right (  264000.000,  129995.000)
> Center      (  140500.000,  189995.000)
> Band 1 Block=49400x1 Type=Int16, ColorInterp=Undefined
>    NoData Value=-32767
>
>
> I'm willing to get my hands dirty to add support for this format in
> gdal (either developing/testing/...), but I wonder if there are any
> similar formats where I can find inspiration.
>
> Kind Regards,
> Johan
>
> [1] https://sourceforge.net/p/saga-gis/mailman/message/35918456/
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list