EOFarm / geoportal.ypen.gr

0 stars 0 forks source link

Natural Risk Zones geometry validation #25

Open kalxas opened 2 years ago

kalxas commented 2 years ago

After trying to validate a multipolygon gml with INSPIRE validator we get the following problem:

image

Then we break multipolygons to simple polygons and get this error:

image

kalxas commented 2 years ago

The last issue is fixed when we replace the following in the GML header:

<?xml version="1.0" ?>
<gml:FeatureCollection xmlns:ns1="http://www.w3.org/1999/xhtml" xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:tn-a="urn:x-inspire:specification:gmlas:AirTransportNetwork:3.0" xmlns:stat="urn:x-inspire:specification:gmlas:StatisticalUnits:0.0" xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3" xmlns:gmlcov="http://www.opengis.net/gmlcov/1.0" xmlns:au="urn:x-inspire:specification:gmlas:AdministrativeUnits:3.0" xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:cp="urn:x-inspire:specification:gmlas:CadastralParcels:3.0" xmlns:tn="urn:x-inspire:specification:gmlas:CommonTransportElements:3.0" xmlns:nz-core="http://inspire.ec.europa.eu/schemas/nz-core/3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ns2="urn:x-inspire:specification:gmlas:BaseTypes:3.2" xmlns:bui="urn:x-inspire:specification:gmlas:Buildings:0.0" xmlns:ad="urn:x-inspire:specification:gmlas:Addresses:3.0" xmlns:ef="http://inspire.ec.europa.eu/schemas/ef/3.0" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:net="urn:x-inspire:specification:gmlas:Network:3.2" xmlns:om="http://www.opengis.net/om/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:base2="http://inspire.ec.europa.eu/schemas/base2/1.0" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/nz-core/3.0 http://inspire.ec.europa.eu/schemas/nz-core/3.0/NaturalRiskZonesCore.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/deprecatedTypes.xsd">

with

<?xml version="1.0" ?>
<gml:FeatureCollection xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo" xmlns:ef="http://inspire.ec.europa.eu/schemas/ef/4.0" xmlns:gmlcov="http://www.opengis.net/gmlcov/1.0" xmlns:base2="http://inspire.ec.europa.eu/schemas/base2/2.0" xmlns:nz-core="http://inspire.ec.europa.eu/schemas/nz-core/4.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:ns1="http://www.w3.org/1999/xhtml" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:ad="http://inspire.ec.europa.eu/schemas/ad/4.0" xmlns:au="http://inspire.ec.europa.eu/schemas/au/4.0" xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0" xmlns:bu-base="http://inspire.ec.europa.eu/schemas/bu-base/4.0" xmlns:tn="http://inspire.ec.europa.eu/schemas/tn/4.0" xmlns:cp="http://inspire.ec.europa.eu/schemas/cp/4.0" xmlns:net="http://inspire.ec.europa.eu/schemas/net/4.0" xmlns:om="http://www.opengis.net/om/2.0" xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/nz-core/4.0 http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/deprecatedTypes.xsd">