Skip to content

Commit e3868cf

Browse files
etienneskyjef-n
authored andcommittedMay 28, 2012
add python binding for QgsCoordinateReferenceSystem::createFromUserInput()
1 parent c8d4420 commit e3868cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎python/core/qgscoordinatereferencesystem.sip

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,21 @@ class QgsCoordinateReferenceSystem
7979
*/
8080
bool createFromString( const QString theDefinition );
8181

82+
/*! Set up this srs from a various text formats.
83+
*
84+
* Valid formats: WKT string, "EPSG:n", "EPSGA:n", "AUTO:proj_id,unit_id,lon0,lat0",
85+
* "urn:ogc:def:crs:EPSG::n", PROJ.4 string, filename (with WKT, XML or PROJ.4 string),
86+
* well known name (such as NAD27, NAD83, WGS84 or WGS72),
87+
* ESRI::[WKT string] (directly or in a file), "IGNF:xxx"
88+
*
89+
* For more details on supported formats see OGRSpatialReference::SetFromUserInput()
90+
* ( http://www.gdal.org/ogr/classOGRSpatialReference.html#aec3c6a49533fe457ddc763d699ff8796 )
91+
* @note this function generates a WKT string using OSRSetFromUserInput() and
92+
* passes it to createFromWkt() function.
93+
* @param theDefinition A String containing a coordinate reference system definition.
94+
*/
95+
bool createFromUserInput( const QString theDefinition );
96+
8297
/*! Set up this srs by fetching the appropriate information from the
8398
* sqlite backend. First the system level read only srs.db will be checked
8499
* and then the users ~/.qgis/qgis.db database will be checked for a match.

0 commit comments

Comments
 (0)