Bug report #1928
Custom CRS def'n fails if name contains an apostrophe
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||upstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||11988|
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.
/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 [email protected] +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.