PyCRS icon indicating copy to clipboard operation
PyCRS copied to clipboard

the specified projection name 'Gauss_Kruger' could not be found in the list of supported projections

Open pessimo opened this issue 4 years ago • 3 comments

NotImplementedError: Unsupported projection: The specified projection name 'Gauss_Kruger' could not be found in the list of supported projections

Do we have a plan to implement Gauss_Kruger projection?

pessimo avatar Feb 03 '21 03:02 pessimo

From what I can see, Gauss-Kruger is just another name for transverse mercator. Nor can I find any examples that use gauss kruger as a parameter value. I've tried looking up several gauss-kruger projections on spatialreference.org and epsg.io (eg here), and they all just use 'Transverse_Mercator' in their WKT or 'tmerc' in their proj4. Did the 'Gauss_Kruger' come from a real-world file, or did you custom specify it?

In order to implement it I would need to know that it's an allowed parameter value and would need to know the value required for OGC WKT, ESRI WKT, and proj4, if you can find any of those? In the meanwhile, if you just want to make it work, replace 'Gauss_Kruger' with 'Transverse_Mercator' in the original crs string.

karimbahgat avatar Feb 04 '21 10:02 karimbahgat

thanks for the reply. I get this .prj file from Esri ArcGIS. And I solve it by reading the file to a string and compose the projection in pyproj. It works with no error.

import pyproj
with open('file.prj', 'r') as prj_file:
    wkt = prj_file.read()
    crs = pyproj.crs.CRS(wkt)

# output crs
crs.to_cf()

the output has a key-value pair 'grid_mapping_name': 'transverse_mercator', so I guess they might be somehow related.

sorry, I have little understanding of GIS, and I can't make sure whether they are the same or not...

pessimo avatar Feb 07 '21 01:02 pessimo

Could you post the full WKT string contained in the prj file? In order to know how the crs is composed and the various parameters and names used.

karimbahgat avatar Feb 07 '21 21:02 karimbahgat