File tree 7 files changed +577
-11
lines changed
7 files changed +577
-11
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,13 @@ class QgsLayerMetadata
382
382
:rtype: QgsLayerMetadata.ConstraintList
383
383
%End
384
384
385
+ void addConstraint( const QgsLayerMetadata::Constraint &constraint );
386
+ %Docstring
387
+ Adds an individual constraint to the existing constraints.
388
+ .. seealso:: constraints()
389
+ .. seealso:: setConstraints()
390
+ %End
391
+
385
392
void setConstraints( const QgsLayerMetadata::ConstraintList &constraints );
386
393
%Docstring
387
394
Sets the list of ``constraints`` associated with using the resource.
@@ -641,6 +648,25 @@ class QgsLayerMetadata
641
648
.. seealso:: saveToLayer()
642
649
%End
643
650
651
+ bool readMetadataXml( const QDomElement &metadataElement );
652
+ %Docstring
653
+ Sets state from Dom document
654
+ \param metadataElement The Dom element corresponding to ``resourceMetadata'' tag
655
+
656
+ :return: true if successful
657
+ :rtype: bool
658
+ %End
659
+
660
+ bool writeMetadataXml( QDomElement &metadataElement, QDomDocument &document ) const;
661
+ %Docstring
662
+ Stores state in Dom node
663
+ \param metadataElement is a Dom element corresponding to ``resourceMetadata'' tag
664
+ \param document is a the dom document being written
665
+
666
+ :return: true if successful
667
+ :rtype: bool
668
+ %End
669
+
644
670
};
645
671
646
672
Original file line number Diff line number Diff line change 15
15
</keywords >
16
16
<fees >None</fees >
17
17
<constraints type =" access" >None</constraints >
18
+ <constraints type =" other" >None</constraints >
18
19
<rights >Copyright foo 2017</rights >
20
+ <license >License 1</license >
21
+ <license >License 2</license >
19
22
<encoding >utf-8</encoding >
20
23
<crs >EPSG:4326</crs >
21
24
<extent >
22
25
<spatial dimensions =" 2" crs =" EPSG:4326" minx =" -180" miny =" -90" maxx =" 180" maxy =" 90" />
26
+ <spatial dimensions =" 2" crs =" EPSG:4326" minx =" -180" miny =" -90" maxx =" 180" maxy =" 90" minz =" 10" maxz =" 50" />
23
27
<temporal >
24
28
<instant >2001-12-17T09:30:47Z</instant >
29
+ <period >
30
+ <start >2001-12-17T09:30:47Z</start >
31
+ <end >2020-12-17T09:30:47Z</end >
32
+ </period >
25
33
</temporal >
26
34
</extent >
27
35
<contact >
46
54
<link name =" geonode:roads" type =" OGC:WFS" description =" my GeoNode road layer" url =" http://example.org/wfs" />
47
55
<link name =" roads" type =" WWW:LINK" description =" full dataset download" url =" http://example.org/roads.tgz" format =" ESRI Shapefile" mimeType =" application/gzip" size =" 283676" />
48
56
</links >
57
+ <history >Buffering</history >
58
+ <history >Reprojecting</history >
49
59
</ResourceMetadata >
Original file line number Diff line number Diff line change 84
84
<xs : element name =" license" type =" xs:string" minOccurs =" 1" maxOccurs =" unbounded" >
85
85
<xs : annotation >
86
86
<xs : documentation >License associated with a given resource (examples: http://opendefinition.org/licenses/).</xs : documentation >
87
- </xs : annotation >
87
+ </xs : annotation >
88
88
</xs : element >
89
89
<xs : element name =" encoding" type =" xs:string" minOccurs =" 0" >
90
90
<xs : annotation >
122
122
<xs : annotation >
123
123
<xs : documentation >Freeform description of the history or lineage of the resource.</xs : documentation >
124
124
</xs : annotation >
125
- </xs : element >
125
+ </xs : element >
126
126
</xs : sequence >
127
127
<xs : attribute name =" version" use =" required" fixed =" 1.0" >
128
128
<xs : annotation >
339
339
<xs : attributeGroup ref =" rm:linkAttrs" />
340
340
</xs : complexType >
341
341
<xs : attributeGroup name =" linkAttrs" >
342
- <xs : attribute name =" name" type =" xs:string" />
343
- <xs : attribute name =" type" type =" xs:string" />
344
- <xs : attribute name =" description" type =" xs:string" use =" optional" />
342
+ <xs : attribute name =" name" type =" xs:string" use =" required" />
343
+ <xs : attribute name =" type" type =" xs:string" use =" required" />
345
344
<xs : attribute name =" url" type =" xs:anyURI" use =" required" />
346
- <xs : attribute name =" format" type =" xs:string" use =" optional" />
345
+ <xs : attribute name =" description" type =" xs:string" use =" optional" />
346
+ <xs : attribute name =" format" type =" xs:string" use =" optional" />
347
347
<xs : attribute name =" mimeType" type =" xs:string" use =" optional" />
348
348
<xs : attribute name =" size" type =" xs:string" use =" optional" />
349
349
</xs : attributeGroup >
You can’t perform that action at this time.
0 commit comments