Skip to content

Commit

Permalink
When saving a user crs, if a WKT representation of the CRS is available,
Browse files Browse the repository at this point in the history
then store and save that

Proj string representations of CRSes are lossy, so we should always prefer
WKT when it's available
  • Loading branch information
nyalldawson committed Dec 12, 2019
1 parent 4e4cd31 commit 187b8f3
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 144 deletions.
Expand Up @@ -696,10 +696,9 @@ Update proj.4 parameters in our database from proj.4
This is used internally and should not be necessary to call in client code
%End


long saveAsUserCrs( const QString &name );
%Docstring
Save the proj4-string as a custom CRS.
Saves the CRS as a custom ("USER") CRS.

Returns the new CRS srsid(), or -1 if the CRS could not be saved.
%End
Expand Down

0 comments on commit 187b8f3

Please sign in to comment.