Skip to content
Permalink
Browse files

Added docs

  • Loading branch information
wonder-sk committed Oct 18, 2018
1 parent 56bf486 commit f437a7e02bd1228b568c233e2fc56b1173ac1716
Showing with 15 additions and 0 deletions.
  1. +7 −0 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +8 −0 src/core/qgsvectorlayer.h
@@ -65,6 +65,13 @@ to the data provider definition. type is one of "integer", "double", "string".

An example url is "Point?crs=epsg:4326&field=id:integer&field=name:string(20)&index=yes"

Since QGIS 3.4 when closing a project, the application shows a warning about potential data
loss if there are any non-empty memory layers present. If your memory layer should not
trigger such warning, it is possible to suppress that by setting the following custom variable:
.. code-block:: python

layer.setCustomProperty("skipMemoryLayersCheck", 1)

\subsection ogr OGR data provider (ogr)

Accesses data using the OGR drivers (http://www.gdal.org/ogr/ogr_formats.html). The url
@@ -124,6 +124,14 @@ typedef QSet<int> QgsAttributeIds;
*
* An example url is "Point?crs=epsg:4326&field=id:integer&field=name:string(20)&index=yes"
*
* Since QGIS 3.4 when closing a project, the application shows a warning about potential data
* loss if there are any non-empty memory layers present. If your memory layer should not
* trigger such warning, it is possible to suppress that by setting the following custom variable:
* \code{.py}
* layer.setCustomProperty("skipMemoryLayersCheck", 1)
* \endcode
*
*
* \subsection ogr OGR data provider (ogr)
*
* Accesses data using the OGR drivers (http://www.gdal.org/ogr/ogr_formats.html). The url

0 comments on commit f437a7e

Please sign in to comment.
You can’t perform that action at this time.