[gdal-dev] gdalbuildvrt could not use worldfile

Idan Miara idan at miara.com
Thu Aug 20 04:49:31 PDT 2020


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 <apschwimmer at apmland.de> 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
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200820/dd5e22b7/attachment.html>


More information about the gdal-dev mailing list