[gdal-dev] gif gfw and prj
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Tue Oct 31 03:04:26 PDT 2023
Hi,
I made a quick test with some random .gif file from my computer and your world file and those two do find each other without problems. The format of a_datum.prj is not familiar to me. Maybe it is Global Mapper specific. Maybe you can just delete it and use the EPSG:32632 code instead in gdal_translate as -a_srs EPSG:32632.
gdalinfo gif.gif
Driver: BIGGIF/Graphics Interchange Format (.gif)
Files: gif.gif
gif.gfw
Size is 12000, 12000
Origin = (243987.500000000000000,5120012.500000000000000)
Pixel Size = (25.000000000000000,-25.000000000000000)
Image Structure Metadata:
INTERLACED=NO
Corner Coordinates:
Upper Left ( 243987.500, 5120012.500)
Lower Left ( 243987.500, 4820012.500)
Upper Right ( 543987.500, 5120012.500)
Lower Right ( 543987.500, 4820012.500)
Center ( 393987.500, 4970012.500)
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta mauge.philippe--- via gdal-dev
Lähetetty: tiistai 31. lokakuuta 2023 11.19
Vastaanottaja: gdal-dev at lists.osgeo.org
Aihe: [gdal-dev] gif gfw and prj
Hi,
I have a gif file named img_5120000_244000.gif
with a world file named img_5120000_244000.gfw that contains :
25.000000
0.000000
0.000000
-25.000000
244000.000000
5120000.000000
and a prj file named a_datum.prj that contains :
Projection UTM
Datum WGS84
Zunits NO
Units METERS
Zone 32
Xshift 0.000000
Yshift 0.000000
Parameters
The 3 files are in the same folder.
When I open the gif file with GDAL using GDALOpen, GDAL doesn't read the gfw and the prj files and there is no projection.
Is there a way to say to GDAL to read the gfw and the prj files ?
I have successfully loaded the file with Global Mapper that read the gfw and the prj files.
The gif file can be uploaded at :
[link removed]
If you have any clue, please let me know.
Have a good day
Philippe
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
More information about the gdal-dev
mailing list