4 Commits

Author SHA1 Message Date
timlinux
a7e0445b67 Added a validator to the qgsspatialrefsys that checks the state of the SRS and forces it into a valid state (as a last ditch it will set it to hard coded geocs:wgs84). Before doing that it will first follow the behaviour rules defined in Settings->prefs->projection. This will mean that providers no longer need to handl this and can simply try to set the srs then call validate() on it to make sure its in a valid state. Is valid also not properly checks if the srs is valid.
So you can do something like:

QgsCoordinateTransform * myCS = new QgsCoordinateTransform(srs,srs);
if (!myCS->getSourceSrs()->isValid()) myCs->getSourceSrs->validate();

And you can be sure that the srs will be set. This is not wired into vector or raster layer yet.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-28 11:28:42 +00:00
timlinux
d108b0b098 User projections now shown in projection selector but are still not useable
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3179 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-17 22:19:11 +00:00
timlinux
07a3b797f7 Fix windows ifdef
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3116 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 12:22:44 +00:00
gsherman
86c976272f ** Merged Projections_Branch into HEAD
Problems:
      Polygon outlines are not drawn. This was checked twice and no cause
      was found.

      Projections do not work in all circumstances

      Note that both the proj4 library and sqlite3 are now required. The
      build system has not been modified to test for these yet.

      Qt 3.3.x is required to build this source tree.

      Make sure to increment the EXTRA_VERSION in configure.in when
      committing changes.

      Make sure to update the Changelog with each commit


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3112 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 07:04:07 +00:00