9 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
g_j_m
ee5a8ef061 Remove those pesky ? cvs messages when doing an update
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3163 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-15 05:18:45 +00:00
telwertowski
2e99595690 Add HAVE_QTMAC conditional to configure. Use it to suppress compile-time
paths which cause errors when building with Qt/Mac which obtains paths
from qApp->applicationDirPath() at runtime.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3142 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-13 07:16:57 +00:00
gsherman
a05ea0293a Applied patches from Markus Neteler to allow compilation on Qt 3.1
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-13 05:04:18 +00:00
gsherman
50d9c25814 Applied patches from Markus Neteler to allow compilation on Qt 3.2
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3128 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-11 23:35:07 +00:00
timlinux
906ef71810 Cleaned out some duplicate includes from widgets/projectionselector/qgsprojectionselector.cpp
Added initial start of user custom projection dialog (doesnt do anything much yet and not wired into gui yet)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3118 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 23:50:32 +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