Custom Projection Definition #11206
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Projections/Transformations
Related to coordinate reference systems or coordinate transformation
Author Name: Alessandro Frigeri (Alessandro Frigeri)
Original Redmine Issue: 1146
Redmine category:projection_support
Assignee: nobody -
Hello,
while adding a projection definition in the Custom Projection Definition dialog, if I pass 'a' and 'b' parameters instead the 'ellps' I got the error message: "This proj4 ellps definition is not valid. Please add a valid ellps clause before pressing save".
Even adding the ellipsoid name (e.g. foo) and relative parameters to qgis.db and passing +ellps=foo does not work, as qgis rises up: "This proj4 definition is not valid. Please correct before saving".
To fix this beaviour temporarily I commented out lines 775-780 of src/app/qgscustomprojectiondialog.cpp ( conditional statement on myEllipsoidAcronym.isNull() ); in this way, the projection definition is accepted also with 'a' and 'b' parameters and the reprojection on the fly works as expected (I've checked coordinates with proj using the same proj4 definition on the command line).
Best regards,
Alessandro Frigeri
The text was updated successfully, but these errors were encountered: