Opened 15 years ago

Last modified 14 years ago

#1928 new bug

Custom CRS def'n fails if name contains an apostrophe

Reported by: hamish Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Projection Support Version: 1.2.0
Keywords: custom crs Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Lenny amd64 Awaiting user input: no



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

Change History (1)

comment:1 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0
Note: See TracTickets for help on using tickets.