@@ -203,6 +203,11 @@ If no prefix is specified, WKT definition is assumed.
203
203
204
204
:param definition: A String containing a coordinate reference system definition.
205
205
206
+ .. note::
207
+
208
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
209
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
210
+
206
211
.. seealso:: :py:func:`createFromString`
207
212
%End
208
213
@@ -245,6 +250,11 @@ QgsCoordinateReferenceSystem object.
245
250
%Docstring
246
251
Creates a CRS from a given OGC WMS-format Coordinate Reference System string.
247
252
253
+ .. note::
254
+
255
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
256
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
257
+
248
258
:param ogcCrs: OGR compliant CRS definition, e.g., "EPSG:4326"
249
259
250
260
:return: matching CRS, or an invalid CRS if string could not be matched
@@ -256,6 +266,11 @@ Creates a CRS from a given OGC WMS-format Coordinate Reference System string.
256
266
%Docstring
257
267
Creates a CRS from a given EPSG ID.
258
268
269
+ .. note::
270
+
271
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
272
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
273
+
259
274
:param epsg: epsg CRS ID
260
275
261
276
:return: matching CRS, or an invalid CRS if string could not be matched
@@ -265,6 +280,11 @@ Creates a CRS from a given EPSG ID.
265
280
%Docstring
266
281
Creates a CRS from a proj style formatted string.
267
282
283
+ .. note::
284
+
285
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
286
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
287
+
268
288
:return: matching CRS, or an invalid CRS if string could not be matched
269
289
270
290
.. seealso:: :py:func:`createFromProj`
@@ -291,6 +311,11 @@ Creates a CRS from a proj style formatted string.
291
311
%Docstring
292
312
Creates a CRS from a WKT spatial ref sys definition string.
293
313
314
+ .. note::
315
+
316
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
317
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
318
+
294
319
:param wkt: WKT for the desired spatial reference system.
295
320
296
321
:return: matching CRS, or an invalid CRS if string could not be matched
@@ -302,6 +327,11 @@ Creates a CRS from a WKT spatial ref sys definition string.
302
327
%Docstring
303
328
Creates a CRS from a specified QGIS SRS ID.
304
329
330
+ .. note::
331
+
332
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
333
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
334
+
305
335
:param srsId: internal QGIS SRS ID
306
336
307
337
:return: matching CRS, or an invalid CRS if ID could not be found
@@ -354,7 +384,8 @@ and refer to QGIS internal CRS IDs.
354
384
355
385
.. note::
356
386
357
- this method uses an internal cache. Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
387
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
388
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
358
389
359
390
.. seealso:: :py:func:`fromOgcWmsCrs`
360
391
%End
@@ -390,7 +421,8 @@ and :py:func:`~QgsCoordinateReferenceSystem.createFromOgcWmsCrs` is used to init
390
421
391
422
.. note::
392
423
393
- this method uses an internal cache. Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
424
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
425
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
394
426
395
427
.. seealso:: :py:func:`fromWkt`
396
428
%End
@@ -408,7 +440,8 @@ user's local CRS database from home directory is used.
408
440
409
441
.. note::
410
442
411
- this method uses an internal cache. Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
443
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
444
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
412
445
413
446
.. seealso:: :py:func:`fromSrsId`
414
447
@@ -445,7 +478,8 @@ We try to match the Proj string to internal QGIS CRS ID using the following logi
445
478
446
479
.. note::
447
480
448
- This method uses an internal cache. Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
481
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
482
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
449
483
450
484
.. seealso:: :py:func:`fromProj`
451
485
@@ -484,7 +518,8 @@ We try to match the Proj string to internal QGIS CRS ID using the following logi
484
518
485
519
.. note::
486
520
487
- This method uses an internal cache. Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
521
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
522
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
488
523
489
524
.. seealso:: :py:func:`fromProj`
490
525
@@ -507,6 +542,11 @@ If no prefix is specified, WKT definition is assumed.
507
542
508
543
:param definition: A String containing a coordinate reference system definition.
509
544
545
+ .. note::
546
+
547
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
548
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
549
+
510
550
:return: ``True`` on success else ``False``
511
551
%End
512
552
@@ -531,6 +571,11 @@ For more details on supported formats see OGRSpatialReference.SetFromUserInput()
531
571
532
572
this function generates a WKT string using OSRSetFromUserInput() and
533
573
passes it to :py:func:`~QgsCoordinateReferenceSystem.createFromWkt` function.
574
+
575
+ .. note::
576
+
577
+ This method uses an internal cache to speed up creation of multiple CRS with the same definition.
578
+ Call :py:func:`~QgsCoordinateReferenceSystem.invalidateCache` to clear the cache.
534
579
%End
535
580
536
581
static void setupESRIWktFix() /Deprecated/;
0 commit comments