[QGIS-trac] [Quantum GIS] #1928: Custom CRS def'n fails if name contains an apostrophe

Quantum GIS qgis at qgis.org
Mon Sep 14 08:09:40 EDT 2009


#1928: Custom CRS def'n fails if name contains an apostrophe
----------------------------------+-----------------------------------------
   Reporter:  hamish              |              Owner:  nobody       
       Type:  bug                 |             Status:  new          
   Priority:  minor: annoyance    |          Milestone:  Version 1.4.0
  Component:  Projection Support  |            Version:  1.2.0        
   Keywords:  custom crs          |   Platform_version:  Lenny amd64  
   Platform:  Debian              |           Must_fix:  No           
Status_info:  0                   |  
----------------------------------+-----------------------------------------
 Hi,

 Using 1.2.0 I am trying to define a custom CRS. In this case it is
 OpenStreetMap data which uses the infamous "Google Mercator on Sphere"
 projection.

 from `/usr/share/proj/esri.extra` it is defined as:
 {{{
 #
 #  Chris' funny epsgish code for the google mercator
 #
 <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 \
   +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs <>
 }}}

 After some experimenting I figure out that I need to click on the little
 yellow flash icon (tooltips! please!), then cut and paste the name and the
 +proj terms (without the <>) and click the disk/save button. But it is
 silently not accepted.

 After some more experimenting I find that the rather subtle indicator of
 success is that the "x of y" text has to increment. (A popup warning that
 it failed would be nice.)

 After even more experimenting I find that the cause of the trouble is the
 apostrophe in Chris's. If I remove that I can add the new custom CRS ok.
 Some string quoting problem I guess.

 In spite of its dubious nature, as this is now a pretty common projection
 it might be useful to add it to the master list of available CRSs.


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1928>
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