Skip to content
Browse files
add python binding for QgsCoordinateReferenceSystem::createFromUserIn…
  • Loading branch information
etiennesky authored and jef-n committed May 28, 2012
1 parent c8d4420 commit e3868cf4b967eb74d1bf8c115e368d6f99ddf31c
Showing with 15 additions and 0 deletions.
  1. +15 −0 python/core/qgscoordinatereferencesystem.sip
@@ -79,6 +79,21 @@ class QgsCoordinateReferenceSystem
bool createFromString( const QString theDefinition );

/*! Set up this srs from a various text formats.
* Valid formats: WKT string, "EPSG:n", "EPSGA:n", "AUTO:proj_id,unit_id,lon0,lat0",
* "urn:ogc:def:crs:EPSG::n", PROJ.4 string, filename (with WKT, XML or PROJ.4 string),
* well known name (such as NAD27, NAD83, WGS84 or WGS72),
* ESRI::[WKT string] (directly or in a file), "IGNF:xxx"
* For more details on supported formats see OGRSpatialReference::SetFromUserInput()
* ( )
* @note this function generates a WKT string using OSRSetFromUserInput() and
* passes it to createFromWkt() function.
* @param theDefinition A String containing a coordinate reference system definition.
bool createFromUserInput( const QString theDefinition );

/*! Set up this srs by fetching the appropriate information from the
* sqlite backend. First the system level read only srs.db will be checked
* and then the users ~/.qgis/qgis.db database will be checked for a match.

0 comments on commit e3868cf

Please sign in to comment.