Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs
  • Loading branch information
wonder-sk committed Oct 18, 2018
1 parent 56bf486 commit f437a7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/core/qgsvectorlayer.h
Expand Up @@ -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
Expand Down

0 comments on commit f437a7e

Please sign in to comment.