9267 Commits

Author SHA1 Message Date
Nyall Dawson
b5ae888b60 Merge pull request #4478 from nyalldawson/layer_store
Split off map layer storage handling from QgsProject to QgsMapLayerStore
2017-05-06 13:00:05 +10:00
Martin Dobias
0a0c33dcf2 Remove QgsGeometryCache class
The geometry cache was only used for few geometry editing operations anyway. In earlier versions
of QGIS the geometry cache was also used by old snapping classes which have been replaced
by QgsPointLocator that also keeps a spatial index of geometries and it is not rebuilt on every re-render.

Reasons for removal:
- geometry cache was repopulated on every redraw of layers in editing mode, slowing down rendering
- data structure for the cache was a simple map with features accessed by their ID (no spatial index)
- the cache was only getting refreshed for the current view of the main map canvas (not a generic cache)
- not used for snapping anymore where caching was important to avoid roundtrips to data provider
2017-05-06 10:34:23 +08:00
Nyall Dawson
ba2fdf00ab Rename some QgsProviderRegistry methods to clarify that they are factories
- provider() was renamed to createProvider()
- selectWidget() was renamed to createSelectionWidget()
- providerLibrary() was renamed to createProviderLibrary()
2017-05-06 12:28:06 +10:00
Nyall Dawson
6502864c69 Add missing /Factory/ annotations to QgsProviderMetadata
Also sipify QgsProviderMetadata and QgsProviderRegistry
2017-05-06 12:20:59 +10:00
Nyall Dawson
767cb12c2a Add QgsMemoryProviderUtils.createMemoryLayer for easy creation
of new memory layers from QgsFields/QgsCoordinateReferenceSystem/etc

Since memory provider cannot use QgsVectorLayerImport we need
another centeralized function for creating new memory layers
without the need to manually create the uri string.
2017-05-06 12:05:12 +10:00
Nyall Dawson
5511b07e40 Move memory provider to core
This commit introduces basic support for non-library based
data providers, and moves the memory provider from a library
based provider to a core provider.

The memory provider is used so frequently throughout QGIS that
it has become integral to QGIS functionality and must be
available wherever the QGIS core library is used.

The changes here (while not exposed yet to Python) could potentially
be built on to allow creation of pure Python data providers.
2017-05-06 12:05:12 +10:00
Matthias Kuhn
931bf32a9f Doxymentation for QgsTransaction 2017-05-05 15:39:29 +02:00
Matthias Kuhn
fd25288a64 Documentation for custom functions 2017-05-05 15:39:29 +02:00
Matthias Kuhn
5f7a2912f6 Expose "context" to expression functions 2017-05-05 15:39:29 +02:00
Alexander Bruy
9c88faf416 Merge pull request #4499 from alexbruy/processing-fieldcalc
[processing] reset variables list in field calculator on layer change  (fix #15633)
2017-05-05 15:16:22 +03:00
Nyall Dawson
67e1558fcf Remove unused symbols from qgis.h
Also slow down @NathanW2's build
2017-05-05 20:38:36 +10:00
Nyall Dawson
02e96a2d80 Partially revert 636a37f
Fix processing modeler error on startup
2017-05-05 07:00:36 +10:00
Denis Rouzaud
cc887c631b [sipify] use a distinct header to simplify includes
there was an issue in libdxf which includes qgslogger in debug mode
and qgsdebug.h includes qgis.h include qgswkbtypes.h (which geometry directory was not listed in libdxrw included paths)
2017-05-04 10:49:17 +02:00
Matthias Kuhn
41dc9d1e17 SIP_SKIP QgsExpression::cloneTo 2017-05-04 09:41:29 +02:00
Alexander Bruy
c2699b4640 [processing] reset variables list in field calculator on layer change (fix #15633) 2017-05-04 10:14:37 +03:00
Denis Rouzaud
3d43f639d5 add missing signals 2017-05-04 08:59:45 +02:00
Alexander Bruy
6f4b0c995d doxymentation 2017-05-04 08:59:45 +02:00
Alexander Bruy
fd9569febe fix qgsgraphanalyzer.h for sipification 2017-05-04 08:59:45 +02:00
Alexander Bruy
31cd113b55 update SIP files 2017-05-04 08:59:45 +02:00
Alexander Bruy
433b21f7aa remove qgsgraphanalyzer from SIP blacklist 2017-05-04 08:59:45 +02:00
Alexander Bruy
b93e925ba2 [sipify] follow-up 634c7aa3f460ee945743850f6715940d47a12579 2017-05-04 08:59:45 +02:00
Alexander Bruy
e1c35883c5 [sipify] remove space before ModuleTypeHeader
also update network analysis SIP files
2017-05-04 08:59:45 +02:00
Alexander Bruy
f6266130eb also sipify QgsGraphAnalyzer 2017-05-04 08:59:45 +02:00
Alexander Bruy
77d34ddd3a initial sipification of the network analysis library 2017-05-04 08:59:45 +02:00
arnaud.morvan@camptocamp.com
3b43543e48 Sipify core.QgsGemlSchema 2017-05-04 08:26:31 +02:00
arnaud.morvan@camptocamp.com
742c1aa99d Sipify core.QgsGml 2017-05-04 08:26:31 +02:00
arnaud.morvan@camptocamp.com
264c9028de Sypify core.QgsHistogram 2017-05-04 08:26:31 +02:00
arnaud.morvan@camptocamp.com
8e61d48362 Sipify core.QgsJsonUtils 2017-05-04 08:26:31 +02:00
arnaud.morvan@camptocamp.com
d56eef1f4e Sipify core.QgsInterval 2017-05-04 08:26:31 +02:00
Nyall Dawson
8389b9a04f Sipify update 2017-05-04 07:30:27 +10:00
Nyall Dawson
75f5a5fbcf Add spatial and temporal extents to metadata 2017-05-04 07:29:56 +10:00
Nyall Dawson
8545b80487 Add doxygen note about metadata validation 2017-05-04 07:29:56 +10:00
Nyall Dawson
bf2ce3d8c9 Add history item to metadata 2017-05-04 07:29:56 +10:00
Nyall Dawson
b2f52d8a71 Add license section to metadata 2017-05-04 07:29:56 +10:00
Nyall Dawson
5600395e29 Add metadata validator
Adds a new abstract base class QgsMetadataValidator for validating
metadata against standard schemas.

Initially only QgsNativeMetadataValidator for validating against
the native QGIS metadata schema is implemented.

In future this could be extended with Dublin Core, ISO 19115
validators, etc...
2017-05-04 07:29:56 +10:00
Nyall Dawson
cc3d67a207 Add temporary methods to save layer metadata in layer custom properties
Allows temporary persistance of metadata inside a single project. Will
be removed when later work packages from the metadata project are
merged.
2017-05-04 07:29:56 +10:00
Nyall Dawson
40fccf550a Implement metadata store for map layers
QgsLayerMetadata handles storage and management of the metadata
for a QgsMapLayer. This class is an internal QGIS format with a common
metadata structure, which allows for code to access the metadata properties for
layers in a uniform way.

The metadata store is designed to be compatible with the Dublin Core metadata
specifications, and will be expanded to allow compatibility with ISO specifications
in future releases. However, the QGIS internal schema does not represent a superset
of all existing metadata schemas and accordingly conversion from specific
metadata formats to QgsLayerMetadata may result in a loss of information.

This class is designed to follow the specifications detailed in
the schema definition available at resources/qgis-resource-metadata.xsd
within the QGIS source code.
2017-05-04 07:29:56 +10:00
Nyall Dawson
3a965e6dbb Attach layer metadata to QgsMapLayer 2017-05-04 07:29:56 +10:00
Nyall Dawson
269bfe7bf7 Metadata class shell 2017-05-04 07:29:56 +10:00
Nyall Dawson
18478ab6a4 Remove duplicate gui/effects include 2017-05-04 07:29:56 +10:00
Nyall Dawson
998ca4a8ce Preparation for metadata directory 2017-05-04 07:29:56 +10:00
Nyall Dawson
87e2aab0f3 Merge pull request #4492 from nyalldawson/driver_from_extension
Add method to retrieve corresponding OGR driver from a file extension
2017-05-04 07:21:57 +10:00
Nyall Dawson
32ff0921f4 Merge pull request #4491 from nyalldawson/proxy_sink
Add QgsProxyFeatureSink
2017-05-04 07:21:20 +10:00
Nyall Dawson
a87e8d1aa6 Merge pull request #4493 from arnaud-morvan/sipify_core_classes_2
Sipify core classes 2
2017-05-04 07:20:40 +10:00
Alessandro Pasotti
cdb947c8d5 Merge pull request #4465 from boundlessgeo/server-plugins-api-refactoring2
[server] Server plugins API refactoring
2017-05-03 19:20:37 +02:00
arnaud.morvan@camptocamp.com
04a9264e86 Sipify core.QgsFeatureIterator 2017-05-03 19:11:16 +02:00
arnaud.morvan@camptocamp.com
05933b171a Sipify core.QgsFeatureFilterProvider 2017-05-03 19:07:52 +02:00
Tom Kralidis
3be20f8680 update qgisMinimumVersion to current LTR 2017-05-03 08:39:41 -04:00
Nyall Dawson
e40cb0716c Move QgsProxyFeatureSink methods to header
To allow better compiler optimisation
2017-05-03 19:51:32 +10:00
Nyall Dawson
96ad51138b Add method to retrieve sink 2017-05-03 19:50:38 +10:00