2995 Commits

Author SHA1 Message Date
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
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
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
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
Nyall Dawson
ce4f93b410 Add method to retrieve corresponding OGR driver from a file extension 2017-05-03 17:13:05 +10:00
Nyall Dawson
fde71cf9b2 Add QgsProxyFeatureSink
A simple feature sink which proxies feature addition on to another feature sink.

This class is designed to allow factory methods which always return new QgsFeatureSink
objects. Since it is not always possible to create an entirely new QgsFeatureSink
(e.g. if the feature sink is a layer or a layer's data provider), a new
QgsProxyFeatureSink can instead be returned which forwards features on to
the destination sink. The proxy sink can be safely deleted without affecting
the destination sink.
2017-05-03 16:56:37 +10:00
Denis Rouzaud
85f3b81b55 remove double spaces in sip files
fix indentation
2017-05-03 08:02:14 +02:00
Matthias Kuhn
8d8fa9466c [feature] Expression performance improvements 2017-05-02 21:25:43 +02:00
Denis Rouzaud
b249d481e9 script to reverse engineering from SIP to header
go grab annotations in SIP files to write them in the header
or what could be called the headerizer
2017-05-02 10:11:50 +02:00
Mathieu Pellerin
81ccfb0de4 Merge pull request #4460 from nirvn/wallpapers 2017-05-02 13:24:56 +07:00
Denis Rouzaud
7d459149c7 [sip] align missing bits and replace nullptr by 0 2017-05-02 08:09:53 +02:00
nirvn
295c21227c Add a QgsMapSettingsUtils::worldFileContent() function 2017-05-02 12:15:46 +07:00
nirvn
a188d4f32a Add missing wordfile creation to revamped save as image 2017-05-02 11:41:11 +07:00
Nyall Dawson
df1ead5ed4 [processing] Remove vector.spatialindex()
Use QgsProcessingUtils.createSpatialIndex() instead.
2017-05-02 13:39:36 +10:00
Nyall Dawson
600518de72 Add unit tests for QgsProcessingUtils::mapLayerFromString 2017-05-02 12:33:22 +10:00
Nyall Dawson
11fb72eef7 Only expose a single mapLayerFromString method in QgsProcessingUtils 2017-05-02 12:33:22 +10:00
Nyall Dawson
f84d703234 Add method QgsProcessingUtils::mapLayerFromString
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.

This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Matthias Kuhn
f511401995 Fix bindings 2017-05-02 01:56:23 +02:00
Matthias Kuhn
6593754f9d Explicitly tag static variables 2017-05-02 01:56:23 +02:00
Matthias Kuhn
b9ec373f4c Fully qualify nested classes for vintage sip 2017-05-02 01:54:58 +02:00
Matthias Kuhn
7a4527d47f Also report ScopedFunctions as static when approporiate 2017-05-02 01:54:58 +02:00
Matthias Kuhn
d70bb9c348 Specify for expression functions if they are static
... and prepare them whenever possible
2017-05-02 01:54:57 +02:00
Matthias Kuhn
8031ac43e0 Expression variables are more often than not static 2017-05-02 01:54:57 +02:00
Denis Rouzaud
7b60d89d6c align pointer and reference in sip files batch 2 2017-05-01 20:00:51 +02:00
Denis Rouzaud
00700292ef Merge branch 'master' into sip-annotated 2017-05-01 19:21:59 +02:00
Denis Rouzaud
93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00
doublebyte1
bb1bded249 - changes to sipify script
- updated gsdataitem header:
  - added qgis.h include
  - skip sDataItemPtr
  - remove , between SIP annotations
- run sipify for qgsvector and qgsdataitem
2017-05-01 17:43:07 +02:00
Alexander Bruy
e581d46166 regenerate SIP files 2017-05-01 17:42:06 +02:00
Alexander Bruy
782c3e5afb sipify QgsStatisticalSummary and QgsStringStatisticalSummary 2017-05-01 17:42:06 +02:00
arnaud.morvan@camptocamp.com
b399ee5d2e Sipify QgsFieldFormatterRegistry 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
1fb7855e17 Sipifi QgsFieldFormatter 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
84abf896bb Sipify QgsFieldConstraints 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
113ab01cfe Sipify QgsField
I've removed the commented __getitem__ method from the sip file.
2017-05-01 11:06:43 +02:00
Matthias Kuhn
c929d2abd8 Fix warnings 2017-05-01 10:22:34 +02:00
Nyall Dawson
ac84326464 [processing] Fix executing models 2017-05-01 17:29:40 +10:00
arnaud.morvan@camptocamp.com
8376a30f7a Sipify QgsField 2017-05-01 01:05:33 +02:00
Matthias Kuhn
7f3941e073 Doxymentation 2017-05-01 00:04:29 +02:00
Matthias Kuhn
a8fc2c13d0 Fix remaining errors 2017-05-01 00:03:55 +02:00