Dear Idan,

thank you for your input.


I use the .vrt step to assemble a group of tif's to one common file.

In a second step I use something like

gdal_translate -of GTiff -co COMPRESS=LZW -co tiled=yes maps.vrt maps.tiff

But the maps.tiff has no georeference data's as well.


This two steps works well with other Geotiff tiles, but maybe there's a more easy way to create one map from several tiles.


Kind regards


Piet





Am 20.08.20 um 13:49 schrieb Idan Miara:
Hi,

According to gdalinfo your vrt looks fine, so it might be a problem with the vrt support in mapviewer. What are you trying to accomplish with this vrt? if you just want to georeference your tif you could try:
gdal_translate -of GTiff input.tif ouput.tif
use "-co COMPRESS=DEFLATE -co TILED=YES -co BIGTIFF=IF_SAFER" or other gtiff parameters as needed:
https://gdal.org/drivers/raster/gtiff.html

Idan


On Thu, 20 Aug 2020 at 12:49, APM <[email protected] <mailto:[email protected]>> wrote:

    Hello list,


    I'm a beginner with gdal and use Linux Debian testing as the OS.


    I like to create a .vrt file to use a map.

    The map comes with a worldfile .tfw:

    1.2700000000
    0.0000000000
    0.0000000000
    -1.2700000000
    376279.1000000000
    5679613.9199999999


    If I try to build the .vrt by using


    gdalbuildvrt map_1.vrt map_1.tif


    The .vrt is present now.


    But I can't use it in a mapviewer, which gives out a message, that
    the
    georeferences are not present.


    gdalinfo map_1.tif
    Driver: GTiff/GeoTIFF
    Files: map_1.tif
            map_1.tfw
    Size is 16252, 13444
    Origin = (376278.464999999967404,5679614.554999999701977)
    Pixel Size = (1.270000000000000,-1.270000000000000)
    Image Structure Metadata:
       COMPRESSION=DEFLATE
       INTERLEAVE=PIXEL
    Corner Coordinates:
    Upper Left  (  376278.465, 5679614.555)
    Lower Left  (  376278.465, 5662540.675)
    Upper Right (  396918.505, 5679614.555)
    Lower Right (  396918.505, 5662540.675)
    Center      (  386598.485, 5671077.615)
    Band 1 Block=128x128 Type=Byte, ColorInterp=Red
       NoData Value=0
    Band 2 Block=128x128 Type=Byte, ColorInterp=Green
       NoData Value=0
    Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
       NoData Value=0


    gdalinfo map_1.vrt
    Driver: VRT/Virtual Raster
    Files: map_1.vrt
            map_1.tif
    Size is 16252, 13444
    Origin = (376278.464999999967404,5679614.554999999701977)
    Pixel Size = (1.270000000000000,-1.270000000000000)
    Corner Coordinates:
    Upper Left  (  376278.465, 5679614.555)
    Lower Left  (  376278.465, 5662540.675)
    Upper Right (  396918.505, 5679614.555)
    Lower Right (  396918.505, 5662540.675)
    Center      (  386598.485, 5671077.615)
    Band 1 Block=128x128 Type=Byte, ColorInterp=Red
       NoData Value=0
    Band 2 Block=128x128 Type=Byte, ColorInterp=Green
       NoData Value=0
    Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
       NoData Value=0


    Can you give me a hint, please?


    Thank you!


    KR

    Piet




    _______________________________________________
    gdal-dev mailing list
    [email protected] <mailto:[email protected]>
    https://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to