mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Fix truncated PyQGIS docs for QgsCoordinateReferenceSystem
This commit is contained in:
parent
161ef62ca0
commit
a8ae54ca44
@ -166,9 +166,15 @@ settings (either show CRS selector dialog or use project/custom CRS).
|
||||
Object Construction and Copying
|
||||
===============================
|
||||
|
||||
The easiest way of creating CRS instances is to use
|
||||
QgsCoordinateReferenceSystem(const QString&) constructor that
|
||||
automatically recognizes definition format from the given string.
|
||||
The easiest way of creating CRS instances is to use the string argument
|
||||
constructor, which automatically recognizes the definition format from
|
||||
the given string. E.g.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
crs_from_authid = QgsCoordinateReferenceSystem("EPSG:27700")
|
||||
crs_from_proj = QgsCoordinateReferenceSystem("+proj=lcc +lat_0=-37 +lon_0=145 +lat_1=-36 +lat_2=-38 +x_0=2500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
|
||||
crs_from_wkt = QgsCoordinateReferenceSystem('PROJCS["Arc 1950 / UTM zone 36S",GEOGCS["Arc 1950...')
|
||||
|
||||
Creation of CRS object involves some queries in a local SQLite database,
|
||||
which may be potentially expensive. Consequently, CRS creation methods
|
||||
|
@ -166,9 +166,15 @@ settings (either show CRS selector dialog or use project/custom CRS).
|
||||
Object Construction and Copying
|
||||
===============================
|
||||
|
||||
The easiest way of creating CRS instances is to use
|
||||
QgsCoordinateReferenceSystem(const QString&) constructor that
|
||||
automatically recognizes definition format from the given string.
|
||||
The easiest way of creating CRS instances is to use the string argument
|
||||
constructor, which automatically recognizes the definition format from
|
||||
the given string. E.g.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
crs_from_authid = QgsCoordinateReferenceSystem("EPSG:27700")
|
||||
crs_from_proj = QgsCoordinateReferenceSystem("+proj=lcc +lat_0=-37 +lon_0=145 +lat_1=-36 +lat_2=-38 +x_0=2500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
|
||||
crs_from_wkt = QgsCoordinateReferenceSystem('PROJCS["Arc 1950 / UTM zone 36S",GEOGCS["Arc 1950...')
|
||||
|
||||
Creation of CRS object involves some queries in a local SQLite database,
|
||||
which may be potentially expensive. Consequently, CRS creation methods
|
||||
|
@ -178,8 +178,14 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
|
||||
*
|
||||
* \section crs_construct_and_copy Object Construction and Copying
|
||||
*
|
||||
* The easiest way of creating CRS instances is to use QgsCoordinateReferenceSystem(const QString&)
|
||||
* constructor that automatically recognizes definition format from the given string.
|
||||
* The easiest way of creating CRS instances is to use the string argument
|
||||
* constructor, which automatically recognizes the definition format from the given string. E.g.
|
||||
*
|
||||
* \code{.py}
|
||||
* crs_from_authid = QgsCoordinateReferenceSystem("EPSG:27700")
|
||||
* crs_from_proj = QgsCoordinateReferenceSystem("+proj=lcc +lat_0=-37 +lon_0=145 +lat_1=-36 +lat_2=-38 +x_0=2500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
|
||||
* crs_from_wkt = QgsCoordinateReferenceSystem('PROJCS["Arc 1950 / UTM zone 36S",GEOGCS["Arc 1950...')
|
||||
* \endcode
|
||||
*
|
||||
* Creation of CRS object involves some queries in a local SQLite database, which may
|
||||
* be potentially expensive. Consequently, CRS creation methods use an internal cache to avoid
|
||||
|
Loading…
x
Reference in New Issue
Block a user