Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c44be93

Browse files
committedSep 20, 2017
[processing] Add new projection candidate to test
1 parent 8bcde36 commit c44be93

File tree

3 files changed

+35
-17
lines changed

3 files changed

+35
-17
lines changed
 

‎python/plugins/processing/tests/testdata/expected/projection_candidates.gfs

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎python/plugins/processing/tests/testdata/expected/projection_candidates.gml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<ogr:FeatureCollection
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation=""
4+
xsi:schemaLocation="http://ogr.maptools.org/ projection_candidates.xsd"
55
xmlns:ogr="http://ogr.maptools.org/"
66
xmlns:gml="http://www.opengis.net/gml">
77
<gml:boundedBy><gml:null>missing</gml:null></gml:boundedBy>
@@ -46,4 +46,9 @@
4646
<ogr:auth_id>EPSG:5552</ogr:auth_id>
4747
</ogr:projection_candidates>
4848
</gml:featureMember>
49+
<gml:featureMember>
50+
<ogr:projection_candidates fid="projection_candidates.8">
51+
<ogr:auth_id>EPSG:7856</ogr:auth_id>
52+
</ogr:projection_candidates>
53+
</gml:featureMember>
4954
</ogr:FeatureCollection>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3+
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
4+
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
5+
<xs:complexType name="FeatureCollectionType">
6+
<xs:complexContent>
7+
<xs:extension base="gml:AbstractFeatureCollectionType">
8+
<xs:attribute name="lockId" type="xs:string" use="optional"/>
9+
<xs:attribute name="scope" type="xs:string" use="optional"/>
10+
</xs:extension>
11+
</xs:complexContent>
12+
</xs:complexType>
13+
<xs:element name="projection_candidates" type="ogr:projection_candidates_Type" substitutionGroup="gml:_Feature"/>
14+
<xs:complexType name="projection_candidates_Type">
15+
<xs:complexContent>
16+
<xs:extension base="gml:AbstractFeatureType">
17+
<xs:sequence>
18+
<xs:element name="auth_id" nillable="true" minOccurs="0" maxOccurs="1">
19+
<xs:simpleType>
20+
<xs:restriction base="xs:string">
21+
<xs:maxLength value="20"/>
22+
</xs:restriction>
23+
</xs:simpleType>
24+
</xs:element>
25+
</xs:sequence>
26+
</xs:extension>
27+
</xs:complexContent>
28+
</xs:complexType>
29+
</xs:schema>

0 commit comments

Comments
 (0)
Please sign in to comment.