[gdal-dev] https://stackoverflow.com/questions/61342237/gdal-translate-missing-spatial-reference-system

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Thu Oct 29 01:09:45 PDT 2020


Hi,

But you did not find out what is special in the spatial reference of your
source image and why GDAL 3.0.2 did not find it while 2.4.1 had no problem.
First step would be to run gdalinfo with 2.4.1 and 3.0.2 and compare the
reports.

-Jukka Rahkonen- 


Laurynas Gedminas wrote
> OK, so the issue was related on the GDAL 3.0.2  not able to read raster
> spatial reference,
> downgraded my installation to 2.4.1 GDAL and the the code:
> translateoptions = gdal.TranslateOptions(gdal.ParseCommandLine("-co
> TILED=YES -co COMPRESS=JPEG -co JPEG_QUALITY=100 -a_nodata none -co
> INTERLEAVE=BAND -scale -ot Byte"))
> gdal.Translate(out_img, in_ds, options=translateoptions)
> 
> Worked just fine,
> Thank you,
> Laurynas
> 
> On Thu, Oct 22, 2020 at 1:25 PM Laurynas Gedminas <

> laurynasgedminas@

>> wrote:
> 
>> Here are the correct posts links:
>>
>> I am using the Python GDAL 3.0.2,
>> facing the issue with the gdal.translate, posted question here as well:
>> https://stackoverflow.com/questions/64484225/gdal-translate-with-projection
>>
>> and this person seems to have the same issue:
>>
>> https://stackoverflow.com/questions/61342237/gdal-translate-missing-spatial-reference-system
>>
>> Thank you,
>> Laurynas
>>
>> On Thu, Oct 22, 2020 at 11:15 AM Laurynas Gedminas <
>> 

> laurynasgedminas@

>> wrote:
>>
>>> I am using the Python GDAL 3.0.2,
>>> facing the issue with the gdal.translate, posted question here as well:
>>>
>>> https://stackoverflow.com/questions/64484225/gdal-translate-with-projection
>>>
>>> and this person seems to have the same issue:
>>>
>>> https://stackoverflow.com/questions/64484225/gdal-translate-with-projection
>>>
>>> Thank you,
>>> Laurynas Gedminas
>>>
>>
> 
> _______________________________________________
> 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