add tests

This commit is contained in:
Alexander Bruy 2022-04-03 13:55:43 +03:00 committed by Nyall Dawson
parent 184f3d61d0
commit 34a20f8b2d
24 changed files with 480 additions and 0 deletions

View File

@ -17,6 +17,7 @@ if(ENABLE_TESTS)
ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTestPt2 QgisAlgorithmsTest2.py)
ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTestPt3 QgisAlgorithmsTest3.py)
ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTestPt4 QgisAlgorithmsTest4.py)
ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTestPt5 QgisAlgorithmsTest5.py)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsGeneralTest GdalAlgorithmsGeneralTest.py)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsRasterTest GdalAlgorithmsRasterTest.py)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsVectorTest GdalAlgorithmsVectorTest.py)

View File

@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
"""
***************************************************************************
QgisAlgorithmTests2.py
---------------------
Date : January 2016
Copyright : (C) 2016 by Matthias Kuhn
Email : matthias@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Matthias Kuhn'
__date__ = 'January 2016'
__copyright__ = '(C) 2016, Matthias Kuhn'
import AlgorithmsTestBase
import nose2
import shutil
import os
from qgis.testing import start_app, unittest
class TestQgisAlgorithms5(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
@classmethod
def setUpClass(cls):
start_app()
from processing.core.Processing import Processing
Processing.initialize()
cls.cleanup_paths = []
@classmethod
def tearDownClass(cls):
from processing.core.Processing import Processing
Processing.deinitialize()
for path in cls.cleanup_paths:
shutil.rmtree(path)
def test_definition_file(self):
return 'qgis_algorithm_tests5.yaml'
if __name__ == '__main__':
nose2.main()

View File

@ -0,0 +1 @@
UTF-8

Binary file not shown.

View File

@ -0,0 +1 @@
PROJCS["WGS_1984_Cape_Verde_Grid",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",161587.83],PARAMETER["False_Northing",128511.202],PARAMETER["Central_Meridian",-24.0],PARAMETER["Standard_Parallel_1",15.0],PARAMETER["Standard_Parallel_2",16.6666666666667],PARAMETER["Latitude_Of_Origin",15.8333333333333],UNIT["Meter",1.0]]

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
UTF-8

Binary file not shown.

View File

@ -0,0 +1 @@
PROJCS["WGS_1984_Cape_Verde_Grid",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",161587.83],PARAMETER["False_Northing",128511.202],PARAMETER["Central_Meridian",-24.0],PARAMETER["Standard_Parallel_1",15.0],PARAMETER["Standard_Parallel_2",16.6666666666667],PARAMETER["Latitude_Of_Origin",15.8333333333333],UNIT["Meter",1.0]]

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
UTF-8

Binary file not shown.

View File

@ -0,0 +1 @@
PROJCS["WGS_1984_Cape_Verde_Grid",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",161587.83],PARAMETER["False_Northing",128511.202],PARAMETER["Central_Meridian",-24.0],PARAMETER["Standard_Parallel_1",15.0],PARAMETER["Standard_Parallel_2",16.6666666666667],PARAMETER["Latitude_Of_Origin",15.8333333333333],UNIT["Meter",1.0]]

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
gml:id="aFeatureCollection"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ multi_difference.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml/3.2">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249178.585106786 68772.0339473782</gml:lowerCorner><gml:upperCorner>250611.079225401 69877.6158725408</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:featureMember>
<ogr:multi_difference gml:id="multi_difference.0">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249178.585106786 68772.0339473782</gml:lowerCorner><gml:upperCorner>250611.079225401 69877.6158725408</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_difference.geom.0"><gml:surfaceMember><gml:Polygon gml:id="multi_difference.geom.0.0"><gml:exterior><gml:LinearRing><gml:posList>249744.563673448 69769.0726908435 249570.650384346 69547.9964758824 250281.268699923 69155.9311983224 250296.424066843 69160.4216774098 250611.079225401 68994.8136992215 250420.125152392 68772.0339473782 249750.346969894 68780.201973994 249178.585106786 69621.5087154249 249712.14168411 69877.6158725408 249744.563673448 69769.0726908435</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
</ogr:multi_difference>
</ogr:featureMember>
</ogr:FeatureCollection>

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/3.2"
xmlns:gmlsf="http://www.opengis.net/gmlsf/2.0"
elementFormDefault="qualified"
version="1.0">
<xs:annotation>
<xs:appinfo source="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd">
<gmlsf:ComplianceLevel>0</gmlsf:ComplianceLevel>
</xs:appinfo>
</xs:annotation>
<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
<xs:import namespace="http://www.opengis.net/gmlsf/2.0" schemaLocation="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd"/>
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="FeatureCollectionType">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="featureMember">
<xs:complexType>
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureMemberType">
<xs:sequence>
<xs:element ref="gml:AbstractFeature"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="multi_difference" type="ogr:multi_difference_Type" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="multi_difference_Type">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="geometryProperty" type="gml:MultiSurfacePropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> <!-- restricted to MultiPolygon --><!-- srsName="urn:ogc:def:crs:EPSG::4826" -->
<xs:element name="id" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
gml:id="aFeatureCollection"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ multi_intersection.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml/3.2">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249744.563673448 69160.4216774098</gml:lowerCorner><gml:upperCorner>250812.829027203 70013.573992985</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:featureMember>
<ogr:multi_intersection gml:id="multi_intersection.0">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249744.563673448 69160.4216774098</gml:lowerCorner><gml:upperCorner>250812.829027203 70013.573992985</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_intersection.geom.0"><gml:surfaceMember><gml:Polygon gml:id="multi_intersection.geom.0.0"><gml:exterior><gml:LinearRing><gml:posList>250501.805418551 69784.8692477416 250812.829027203 69448.9637503969 250722.342137178 69286.6196241757 250296.424066843 69160.4216774098 250134.244220838 69245.7794910966 249766.683023126 69695.0209549674 249744.563673448 69769.0726908435 249901.42396604 69968.4713678672 249995.387768369 70013.573992985 250501.805418551 69784.8692477416</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
<ogr:id_2>1</ogr:id_2>
<ogr:valor_2>maio</ogr:valor_2>
<ogr:id_3>1</ogr:id_3>
<ogr:valor_3>norte</ogr:valor_3>
</ogr:multi_intersection>
</ogr:featureMember>
</ogr:FeatureCollection>

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/3.2"
xmlns:gmlsf="http://www.opengis.net/gmlsf/2.0"
elementFormDefault="qualified"
version="1.0">
<xs:annotation>
<xs:appinfo source="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd">
<gmlsf:ComplianceLevel>0</gmlsf:ComplianceLevel>
</xs:appinfo>
</xs:annotation>
<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
<xs:import namespace="http://www.opengis.net/gmlsf/2.0" schemaLocation="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd"/>
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="FeatureCollectionType">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="featureMember">
<xs:complexType>
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureMemberType">
<xs:sequence>
<xs:element ref="gml:AbstractFeature"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="multi_intersection" type="ogr:multi_intersection_Type" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="multi_intersection_Type">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="geometryProperty" type="gml:MultiSurfacePropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> <!-- restricted to MultiPolygon --><!-- srsName="urn:ogc:def:crs:EPSG::4826" -->
<xs:element name="id" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="id_2" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor_2" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="id_3" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor_3" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
gml:id="aFeatureCollection"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ multi_union.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml/3.2">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249178.585106786 68772.0339473782</gml:lowerCorner><gml:upperCorner>251563.648878609 70675.1841488675</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.0">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249744.563673448 69160.4216774098</gml:lowerCorner><gml:upperCorner>250812.829027203 70013.573992985</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.0"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.0.0"><gml:exterior><gml:LinearRing><gml:posList>250501.805418551 69784.8692477416 250812.829027203 69448.9637503969 250722.342137178 69286.6196241757 250296.424066843 69160.4216774098 250134.244220838 69245.7794910966 249766.683023126 69695.0209549674 249744.563673448 69769.0726908435 249901.42396604 69968.4713678672 249995.387768369 70013.573992985 250501.805418551 69784.8692477416</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
<ogr:id_2>1</ogr:id_2>
<ogr:valor_2>maio</ogr:valor_2>
<ogr:id_3>1</ogr:id_3>
<ogr:valor_3>norte</ogr:valor_3>
</ogr:multi_union>
</ogr:featureMember>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.1">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249570.650384346 69155.9311983224</gml:lowerCorner><gml:upperCorner>250296.424066843 69769.0726908435</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.1"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.1.0"><gml:exterior><gml:LinearRing><gml:posList>249766.683023126 69695.0209549674 250134.244220838 69245.7794910966 250296.424066843 69160.4216774098 250281.268699923 69155.9311983224 249570.650384346 69547.9964758824 249744.563673448 69769.0726908435 249766.683023126 69695.0209549674</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
<ogr:id_2 xsi:nil="true"/>
<ogr:valor_2 xsi:nil="true"/>
<ogr:id_3>1</ogr:id_3>
<ogr:valor_3>norte</ogr:valor_3>
</ogr:multi_union>
</ogr:featureMember>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.2">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249901.42396604 69448.9637503969</gml:lowerCorner><gml:upperCorner>251000.055042117 70160.59847207</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.2"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.2.0"><gml:exterior><gml:LinearRing><gml:posList>250501.805418551 69784.8692477416 249995.387768369 70013.573992985 249901.42396604 69968.4713678672 250052.56395468 70160.59847207 251000.055042117 69784.8692477416 250812.829027203 69448.9637503969 250501.805418551 69784.8692477416</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id xsi:nil="true"/>
<ogr:valor xsi:nil="true"/>
<ogr:id_2>1</ogr:id_2>
<ogr:valor_2>maio</ogr:valor_2>
<ogr:id_3>1</ogr:id_3>
<ogr:valor_3>norte</ogr:valor_3>
</ogr:multi_union>
</ogr:featureMember>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.3">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249712.14168411 68994.8136992215</gml:lowerCorner><gml:upperCorner>250910.206749343 69968.4713678672</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.3"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.3.0"><gml:exterior><gml:LinearRing><gml:posList>250910.206749343 69343.7958104866 250611.079225401 68994.8136992215 250296.424066843 69160.4216774098 250722.342137178 69286.6196241757 250812.829027203 69448.9637503969 250910.206749343 69343.7958104866</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.3.1"><gml:exterior><gml:LinearRing><gml:posList>249712.14168411 69877.6158725408 249901.42396604 69968.4713678672 249744.563673448 69769.0726908435 249712.14168411 69877.6158725408</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
<ogr:id_2>1</ogr:id_2>
<ogr:valor_2>maio</ogr:valor_2>
<ogr:id_3 xsi:nil="true"/>
<ogr:valor_3 xsi:nil="true"/>
</ogr:multi_union>
</ogr:featureMember>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.4">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249178.585106786 68772.0339473782</gml:lowerCorner><gml:upperCorner>250611.079225401 69877.6158725408</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.4"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.4.0"><gml:exterior><gml:LinearRing><gml:posList>249744.563673448 69769.0726908435 249570.650384346 69547.9964758824 250281.268699923 69155.9311983224 250296.424066843 69160.4216774098 250611.079225401 68994.8136992215 250420.125152392 68772.0339473782 249750.346969894 68780.201973994 249178.585106786 69621.5087154249 249712.14168411 69877.6158725408 249744.563673448 69769.0726908435</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id>1</ogr:id>
<ogr:valor>terras sal</ogr:valor>
<ogr:id_2 xsi:nil="true"/>
<ogr:valor_2 xsi:nil="true"/>
<ogr:id_3 xsi:nil="true"/>
<ogr:valor_3 xsi:nil="true"/>
</ogr:multi_union>
</ogr:featureMember>
<ogr:featureMember>
<ogr:multi_union gml:id="multi_union.5">
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4826"><gml:lowerCorner>249578.818410962 68919.0584264632</gml:lowerCorner><gml:upperCorner>251563.648878609 70675.1841488675</gml:upperCorner></gml:Envelope></gml:boundedBy>
<ogr:geometryProperty><gml:MultiSurface srsName="urn:ogc:def:crs:EPSG::4826" gml:id="multi_union.geom.5"><gml:surfaceMember><gml:Polygon gml:id="multi_union.geom.5.0"><gml:exterior><gml:LinearRing><gml:posList>251253.263867208 70185.1025519175 251563.648878609 69270.2835709441 250755.014243642 68919.0584264632 250611.079225401 68994.8136992215 250910.206749343 69343.7958104866 250812.829027203 69448.9637503969 251000.055042117 69784.8692477416 250052.56395468 70160.59847207 249901.42396604 69968.4713678672 249712.14168411 69877.6158725408 249578.818410962 70323.9590043866 250256.764620076 70675.1841488675 251253.263867208 70185.1025519175</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></ogr:geometryProperty>
<ogr:id xsi:nil="true"/>
<ogr:valor xsi:nil="true"/>
<ogr:id_2>1</ogr:id_2>
<ogr:valor_2>maio</ogr:valor_2>
<ogr:id_3 xsi:nil="true"/>
<ogr:valor_3 xsi:nil="true"/>
</ogr:multi_union>
</ogr:featureMember>
</ogr:FeatureCollection>

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/3.2"
xmlns:gmlsf="http://www.opengis.net/gmlsf/2.0"
elementFormDefault="qualified"
version="1.0">
<xs:annotation>
<xs:appinfo source="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd">
<gmlsf:ComplianceLevel>0</gmlsf:ComplianceLevel>
</xs:appinfo>
</xs:annotation>
<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
<xs:import namespace="http://www.opengis.net/gmlsf/2.0" schemaLocation="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd"/>
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="FeatureCollectionType">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="featureMember">
<xs:complexType>
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureMemberType">
<xs:sequence>
<xs:element ref="gml:AbstractFeature"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="multi_union" type="ogr:multi_union_Type" substitutionGroup="gml:AbstractFeature"/>
<xs:complexType name="multi_union_Type">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="geometryProperty" type="gml:MultiSurfacePropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> <!-- restricted to MultiPolygon --><!-- srsName="urn:ogc:def:crs:EPSG::4826" -->
<xs:element name="id" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="id_2" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor_2" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="id_3" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="valor_3" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>

View File

@ -0,0 +1,57 @@
tests:
- name: Difference (multiple overlays)
algorithm: native:multidifference
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
results:
OUTPUT:
name: expected/multi_difference.gml
type: vector
- name: Intersection (multiple overlays)
algorithm: native:multiintersection
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
OVERLAY_FIELDS_PREFIX: ''
results:
OUTPUT:
name: expected/multi_intersection.gml
type: vector
- name: Union (multiple overlays)
algorithm: native:multiunion
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
OVERLAY_FIELDS_PREFIX: ''
results:
OUTPUT:
name: expected/multi_union.gml
type: vector