[QGIS-trac] [Quantum GIS] #1146: Custom Projection Definition
Quantum GIS
qgis at qgis.org
Tue Jul 8 13:02:09 EDT 2008
#1146: Custom Projection Definition
-----------------------------------------------------------+----------------
Reporter: alf | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone:
Component: Projection Support | Version: 0.10.0
Keywords: Projection, Custom, ellps, proj4, ellipsoid | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
-----------------------------------------------------------+----------------
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
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1146>
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