Bug report #13761

EPSG:32188 is recognized as EPSG:2950

Added by Francois Goulet about 9 years ago. Updated over 7 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Projection Support
Affected QGIS version:2.12.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:wontfix
Crashes QGIS or corrupts data:No Copied to github as #:21787

Description

A lot og my shapefiles with a .prj file (EPSG:32188) are imported as EPSG:2950

EPSG:32188
PROJCS["NAD_1983_MTM_8",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",304800.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-73.5],PARAMETER["Scale_Factor",0.9999],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

EPSG:2950
PROJCS["NAD83_CSRS_MTM_zone_8",GEOGCS["GCS_NAD83(CSRS)",DATUM["D_North_American_1983_CSRS98",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-73.5],PARAMETER["scale_factor",0.9999],PARAMETER["false_easting",304800],PARAMETER["false_northing",0],UNIT["Meter",1]]

Doesn't cause any real problem in QGIS for mapping, but when exported to PostGIS, it causes operations on mixed geometry with my others EPSG:32188 layers...

buffers.zip - Examples (880 KB) Francois Goulet, 2015-11-04 10:45 AM

History

#1 Updated by Giovanni Manghi about 9 years ago

  • Category set to Projection Support
  • Subject changed from When opening shapefile, the wrong SR is imported to EPSG:32188 is recognized as EPSG:2950

note, proj4 strings of this two CRS are identical:

+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs

+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Jürgen Fischer over 7 years ago

  • Status changed from Open to Closed
  • Description updated (diff)
  • Resolution set to wontfix

The content of the .prj file doesn't carry the EPSG - hence the CRS is looked up with the proj.4 definition, which is not unique.
Use Processing/Define current projection to add a .qpj file to the layer.

Also available in: Atom PDF