[gdal-dev] gdal_translate to Rasterlite and (missing) srs

Helmut Kudrnovsky hellik at web.de
Mon Oct 24 09:06:48 PDT 2016


hi,

a question regarding gdal_translate to Rasterlite and srs (based upon [1]):

a geotif with srs information:

gdalinfo geotiff_out.tif
Driver: GTiff/GeoTIFF
Files: geotiff_out.tif
Size is 7201, 7001
Coordinate System is:
PROJCS["MGI / Austria GK Central",
    GEOGCS["bessel",
        DATUM["Militar_Geographische_Institute",
            SPHEROID["Bessel_1841",6377397.155,299.1528128],
            TOWGS84[577.326,90.129,463.919,5.1366,1.4742,5.297,2.4232]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",13.33333333333333],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",-5000000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
[...]

then a simple gdal_translate:

gdal_translate -of Rasterlite geotiff_out.tif gdtrans_to_rasterlite.db

and gdalinfo of the Rasterlite db:

gdalinfo gdtrans_to_rasterlite.db
Driver: Rasterlite/Rasterlite
Files: gdtrans_to_rasterlite.db
Size is 7201, 7001
Coordinate System is `'
[...]

by gdal_translate with -a_srs

gdal_translate -a_srs EPSG:31255 [...]

gdalinfo gdtrans_to_rasterlite_srs.db
Driver: Rasterlite/Rasterlite
Files: gdtrans_to_rasterlite_srs.db
Size is 7201, 7001
Coordinate System is:
PROJCS["MGI / Austria GK Central",
[...]

the srs information is available within the Rasterlite db.

is this intentional that there is no srs by a simple gdal_translate of a
geotiff to a Rasterlite db?
maybe there is some other command line option related to Rasterlite db which
I'm missing?




[1] https://trac.osgeo.org/grass/ticket/3191#comment:3



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-translate-to-Rasterlite-and-missing-srs-tp5292361.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list