[QGIS-trac] [Quantum GIS] #1889: wrong/missing crs parameters for CH1903 / LV03 (epsg:21781) in prj-file

Quantum GIS qgis at qgis.org
Mon Aug 24 02:34:34 EDT 2009


#1889: wrong/missing crs parameters for CH1903 / LV03 (epsg:21781) in prj-file
------------------------------------------------+---------------------------
   Reporter:  zicke                             |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.3.0
  Component:  Projection Support                |            Version:  HEAD         
   Keywords:                                    |   Platform_version:               
   Platform:  Linux                             |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 While the crs parameters in the project properties dialog are correct,
 QGIS generates a wrong prj-file when saving a vector layer to a shapefile:

 PROJCS["Hotine_Oblique_Mercator_Azimuth_Center",GEOGCS["Bessel
 1841",DATUM["D_unknown",SPHEROID["bessel",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["latitude_of_center",46.95240555555556],PARAMETER["longitude_of_center",7.439583333333333],PARAMETER["azimuth",90],PARAMETER["scale_factor",1],PARAMETER["false_easting",600000],PARAMETER["false_northing",200000],UNIT["Meter",1]]

 According to www.spatialreference.org it should be:

 RPOJCS["CH1903 / LV03",GEOGCS["CH1903",DATUM["CH1903",SPHEROID["Bessel
 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[674.374,15.056,405.346,0,0,0,0],AUTHORITY["EPSG","6149"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4149"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Hotine_Oblique_Mercator"],PARAMETER["latitude_of_center",46.95240555555556],PARAMETER["longitude_of_center",7.439583333333333],PARAMETER["azimuth",90],PARAMETER["rectified_grid_angle",90],PARAMETER["scale_factor",1],PARAMETER["false_easting",600000],PARAMETER["false_northing",200000],AUTHORITY["EPSG","21781"],AXIS["Y",EAST],AXIS["X",NORTH]]

 Especially the TOWGS84 parameter is important and can confuse qgis if 'on-
 the-fly' transformation is enabled.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1889>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list