[gdal-dev] GetProjection returns empty string, python 3.7

2020-10-25 Thread Nicolas Cadieux
Hi, With the following code, I get an empty string indicating the projection is not valid. from osgeo import gdal, osr raster_ds = gdal.Open(r"C:\temp\180922_WTE3.tif") target_ds = driver.Create(r"c:\temp\output.tif",xsize=raster_ds_ncol,ysize=raster_ds_nrow,bands = 1,eType = gdal.GDT_Float3

Re: [gdal-dev] ogr2ogr -preserve_fid does not work when dst_datasource is SQLite/SpatiaLite

2020-10-25 Thread jratike80
Hi, Could you give some test data? As far as I know shapefiles do not have any pk_column that user could select. -Jukka Rahkonen- Paul Li wrote > Using this option to convert shapefiles to shapefiles (with less columns) > works perfectly fine. However, when dst_datasource is SQLite/SpatiaLite,

[gdal-dev] Get list of standard coordinate reference system names

2020-10-25 Thread Керим Хемраев
Hi,   I just started to explore GDAL and PROJ. I'm wondering how to get list of standard coordinate reference system names? I suppose there should be something that gives a list of standard coordinate reference system names and their parameters like in the picture attached:   Best regards___

[gdal-dev] ogr2ogr -preserve_fid does not work when dst_datasource is SQLite/SpatiaLite

2020-10-25 Thread Paul Li
Using this option to convert shapefiles to shapefiles (with less columns) works perfectly fine. However, when dst_datasource is SQLite/SpatiaLite, this option is not working as expected, and ogc_fid is populated regardless. When importing the same shapefiles directly into SpatiaLite using ImportSH