[gdal-dev] gdalbuildvrt could not use worldfile
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Thu Aug 20 04:54:27 PDT 2020
Hi,
I don't know your map viewer but perhaps it wants to know both the location
of your image (the coordinates) and in what coordinate reference system the
coordinates are. You have now the corner coordinates and pixel size but the
CRS is unknown. Run gdalbuildvrt with "-a_srs" for attaching it. I suppose
that you know the right CRS for you image.
-Jukka Rahkonen-
APM 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 .osgeo
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list