Skip to content

Commit

Permalink
add python binding for QgsCoordinateReferenceSystem::createFromUserIn…
Browse files Browse the repository at this point in the history
…put()
  • Loading branch information
etiennesky authored and jef-n committed May 28, 2012
1 parent c8d4420 commit e3868cf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/core/qgscoordinatereferencesystem.sip
Expand Up @@ -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()
* ( http://www.gdal.org/ogr/classOGRSpatialReference.html#aec3c6a49533fe457ddc763d699ff8796 )
* @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.
Expand Down

0 comments on commit e3868cf

Please sign in to comment.