From: <svn...@os...> - 2012-03-21 06:22:31
|
Author: bencaradocdavies Date: 2012-03-20 23:22:23 -0700 (Tue, 20 Mar 2012) New Revision: 38640 Added: trunk/modules/extension/app-schema/app-schema-resolver/src/test/java/org/geotools/xml/AppSchemaValidatorDemo.java trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/ trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/ trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/README.txt trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/file-to-be-validated.xml Modified: trunk/modules/extension/app-schema/app-schema-resolver/src/main/java/org/geotools/xml/AppSchemaResolver.java Log: Made app-schema-resolver classpath resolution of schemas optional. Added AppSchemaValidatorDemo for validation with downloaded schemas only. Modified: trunk/modules/extension/app-schema/app-schema-resolver/src/main/java/org/geotools/xml/AppSchemaResolver.java =================================================================== --- trunk/modules/extension/app-schema/app-schema-resolver/src/main/java/org/geotools/xml/AppSchemaResolver.java 2012-03-19 20:24:06 UTC (rev 38639) +++ trunk/modules/extension/app-schema/app-schema-resolver/src/main/java/org/geotools/xml/AppSchemaResolver.java 2012-03-21 06:22:23 UTC (rev 38640) @@ -60,6 +60,11 @@ private AppSchemaCatalog catalog; /** + * True if schemas can be resolved on the classpath. + */ + private boolean classpath = true; + + /** * Cache of schemas with optional downloading support(null if not present). */ private AppSchemaCache cache; @@ -77,14 +82,26 @@ * Constructor. * * @param catalog + * @param classpath whether schemas can be located on the classpath * @param cache */ - public AppSchemaResolver(AppSchemaCatalog catalog, AppSchemaCache cache) { + public AppSchemaResolver(AppSchemaCatalog catalog, boolean classpath, AppSchemaCache cache) { this.catalog = catalog; + this.classpath = classpath; this.cache = cache; } /** + * Constructor. + * + * @param catalog + * @param cache + */ + public AppSchemaResolver(AppSchemaCatalog catalog, AppSchemaCache cache) { + this(catalog, true, cache); + } + + /** * Convenience constructor for a resolver with neither catalog nor cache (just classpath). */ public AppSchemaResolver() { @@ -175,7 +192,7 @@ resolvedLocation = catalog.resolveLocation(location); } // Look on classpath. - if (resolvedLocation == null) { + if (resolvedLocation == null && classpath) { resolvedLocation = resolveClasspathLocation(location); } // Use download cache. Added: trunk/modules/extension/app-schema/app-schema-resolver/src/test/java/org/geotools/xml/AppSchemaValidatorDemo.java =================================================================== --- trunk/modules/extension/app-schema/app-schema-resolver/src/test/java/org/geotools/xml/AppSchemaValidatorDemo.java (rev 0) +++ trunk/modules/extension/app-schema/app-schema-resolver/src/test/java/org/geotools/xml/AppSchemaValidatorDemo.java 2012-03-21 06:22:23 UTC (rev 38640) @@ -0,0 +1,94 @@ +/* + * GeoTools - The Open Source Java GIS Toolkit + * http://geotools.org + * + * (C) 2012, Open Source Geospatial Foundation (OSGeo) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + +package org.geotools.xml; + +import java.io.IOException; +import java.io.InputStream; + +/** + * <p> + * A demonstration of schema-validation in which XML schemas are downloaded from the network. + * Schemas on the classpath are not used. + * </p> + * + * <p> + * This demo validates the content of + * <code>src/test/resources/test-data/validator-demo/file-to-be-validated.xml</code> against the + * schemas declared in its <code>schemaLocation</code>. The schema-validation should report two + * validation failures to stderr when run as an application in Eclipse. + * </p> + * + * <p> + * To validate any other XML document with an XML Schema grammer, replace the content of + * <code>src/test/resources/test-data/validator-demo/file-to-be-validated.xml</code> with the + * document to be validated and run this class as an application in Eclipse. Validation requires the + * presence of a <code>schemaLocation</code> in the instance document. + * </p> + * + * <p> + * Schemas required for validation will be downloaded from the network and placed in + * <code>target/test-classes/test-data/validator-demo/app-schema-cache</code>. The cache is + * configured by the existence of + * <code>src/test/resources/test-data/validator-demo/app-schema-cache</code>, which is copied to + * <code>target/test-classes</code> by Eclipse and discovered by searching the ancestor directories + * of the file under validation (also copied and found earlier on the classpath). + * </p> + * + * @author Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering) + */ +public class AppSchemaValidatorDemo { + + /** + * The classpath resource to be schema-validated. + */ + public static final String RESOURCE = "/test-data/validator-demo/file-to-be-validated.xml"; + + /** + * Perform the schema-validation. + * + * @param args + * ignored + */ + public static void main(String[] args) { + // download and cache schemas using app-schema-cache discovered from resource path + AppSchemaCache cache = AppSchemaCache + .buildAutomaticallyConfiguredUsingFileUrl(AppSchemaValidatorDemo.class + .getResource(RESOURCE)); + // no classpath resolution of schemas; cached downloads only + AppSchemaResolver resolver = new AppSchemaResolver(null, false, cache); + AppSchemaValidator validator = AppSchemaValidator.buildValidator(resolver); + InputStream input = null; + try { + input = AppSchemaValidator.class.getResourceAsStream(RESOURCE); + validator.parse(input); + // validation failures result in an RuntimeException that lists them + validator.checkForFailures(); + System.err.println("Successful schema-validation of " + RESOURCE); + } finally { + if (input != null) { + try { + input.close(); + } catch (IOException e) { + // we tried + } + } + } + + } + +} Property changes on: trunk/modules/extension/app-schema/app-schema-resolver/src/test/java/org/geotools/xml/AppSchemaValidatorDemo.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Id URL Added: svn:eol-style + native Added: trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/README.txt =================================================================== --- trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/README.txt (rev 0) +++ trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/README.txt 2012-03-21 06:22:23 UTC (rev 38640) @@ -0,0 +1,9 @@ +The presence of the folder "app-schema-cache" triggers automatic configuration +of the AppSchemaCache used by AppSchemaValidationDemo. + +If you are looking for downloaded schemas, they should be in the copy of this +folder in target/test-classes/test-data/validator-demo/app-schema-cache +because file-to-be-validated.xml is loaded from the classpath before the +source path. + +See AppSchemaValidatorDemo for more. \ No newline at end of file Property changes on: trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/app-schema-cache/README.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Id URL Added: svn:eol-style + native Added: trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/file-to-be-validated.xml =================================================================== --- trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/file-to-be-validated.xml (rev 0) +++ trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/file-to-be-validated.xml 2012-03-21 06:22:23 UTC (rev 38640) @@ -0,0 +1,805 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- The content of this file undergoes schema-validation by AppSchemaValidationDemo. --> +<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0" xmlns:gml="http://www.opengis.net/gml" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:er="urn:cgi:xmlns:GGIC:EarthResource:1.1" xsi:schemaLocation="urn:cgi:xmlns:GGIC:EarthResource:1.1 http://www.earthresourceml.org/earthresourceml/1.1/xsd/earthResource.xsd http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" numberOfFeatures="10"> +<gml:boundedBy> +<gml:Envelope srsName="EPSG:4326"> +<gml:lowerCorner>8.8888 -8.8888</gml:lowerCorner> +<gml:upperCorner>8.8888 -8.8888</gml:upperCorner> +</gml:Envelope> +</gml:boundedBy> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.372122"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:372122</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Zzzz</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.372122"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:372122</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">200</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.372122"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Unknown</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Unknown</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:372122:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.366920"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:366920</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Example River</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.366920"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:366920</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.366920"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Placer - modern</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:366920:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.367108"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:367108</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Lower Example River</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.367108"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:367108</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">2000</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.367108"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Vein hosted - general</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Unknown</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:367108:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.366991"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:366991</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Example River</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.366991"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:366991</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">55</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.366991"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Vein hosted - general</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Unknown</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:366991:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.368989"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:368989</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Example-Example Goldfield</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.368989"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:368989</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">7</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.368989"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Unknown</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Unknown</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:368989:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.372258"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:372258</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Fiction</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.372258"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:372258</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">250</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.372258"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Placer - modern</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Alluvial Au</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:372258:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.875599"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:875599</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.875599"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:875599</gml:name> +<!-- intentional error for testing: positionalAccuracy should be after observationMethod --> +<gsml:positionalAccuracy> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:positionalAccuracy> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.875599"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:depth> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:depth> +<er:length> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:length> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Primary</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:linearOrientation> +<gsml:CGI_LinearOrientation> +<gsml:plunge> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:plunge> +<gsml:trend> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:trend> +</gsml:CGI_LinearOrientation> +</er:linearOrientation> +<er:planarOrientation> +<gsml:CGI_PlanarOrientation> +<gsml:convention>dip dip direction</gsml:convention> +<gsml:azimuth> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:azimuth> +<gsml:dip> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:dip> +<gsml:polarity>not applicable</gsml:polarity> +</gsml:CGI_PlanarOrientation> +</er:planarOrientation> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Mesozonal orogenic Au</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:875599:au"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.378079"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:378079</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Fabricated</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.378079"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:378079</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">5</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.378079"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:depth> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">37.9</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:depth> +<er:width> +<gsml:CGI_NumericRange> +<gsml:lower> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">34.4</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:lower> +<gsml:upper> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">49.7</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:upper> +</gsml:CGI_NumericRange> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Placer - ancient & buried</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Alluvial Au</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:378079:au"/> +<er:composition> +<er:EarthResourceMaterial> +<er:earthResourceMaterialRole>unspecified</er:earthResourceMaterialRole> +<er:material> +<gsml:RockMaterial> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:consolidationDegree> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:consolidationDegree> +<gsml:lithology xlink:href="urn:cgi:classifier:CGI:SimpleLithology:2008:gravel"/> +</gsml:RockMaterial> +</er:material> +<er:proportion> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</er:proportion> +</er:EarthResourceMaterial> +</er:composition> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:23418"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21381"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21380"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21379"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21378"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21377"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21376"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21375"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21374"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21373"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21372"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21371"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21370"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21369"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21368"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21367"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21366"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21365"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21364"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21363"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21362"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21361"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21360"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21359"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21358"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21357"/> +<er:resourceExtraction xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MiningActivity:378079:21356"/> +<er:child xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MineralOccurrence:376747"/> +<er:child xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MineralOccurrence:377559"/> +<er:child xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:MineralOccurrence:377987"/> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.365344"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:365344</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.365344"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:365344</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">5</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.365344"/> +<gsml:shape> +<gml:Point srsName="EPSG:4326"> +<gml:pos>8.8888 -8.8888</gml:pos> +</gml:Point> +</gsml:shape> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:length> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">900</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:length> +<er:width> +<gsml:CGI_NumericRange> +<gsml:lower> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:lower> +<gsml:upper> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">7.6</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:upper> +</gsml:CGI_NumericRange> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Vein hosted - general</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:planarOrientation> +<gsml:CGI_PlanarOrientation> +<gsml:convention>dip dip direction</gsml:convention> +<gsml:azimuth> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">325</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:azimuth> +<gsml:polarity>not applicable</gsml:polarity> +</gsml:CGI_PlanarOrientation> +</er:planarOrientation> +<er:classification> +<er:MineralDepositModel> +<er:mineralDepositGroup codeSpace="http://www.example.org/earth-resources">Unknown</er:mineralDepositGroup> +</er:MineralDepositModel> +</er:classification> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:365344:cu"/> +<er:composition> +<er:EarthResourceMaterial> +<er:earthResourceMaterialRole>unspecified</er:earthResourceMaterialRole> +<er:material> +<gsml:RockMaterial> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:consolidationDegree> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:consolidationDegree> +<gsml:lithology xlink:href="urn:cgi:classifier:CGI:SimpleLithology:2008:granodiorite"/> +</gsml:RockMaterial> +</er:material> +<er:proportion> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</er:proportion> +</er:EarthResourceMaterial> +</er:composition> +<er:type>occurrence</er:type> +</er:MineralOccurrence> +</gml:featureMember> +<gml:featureMember> +<er:MineralOccurrence gml:id="er.mineraloccurrence.365023"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MineralOccurrence:365023</gml:name> +<gml:name codeSpace="http://www.example.org/earth-resources">Sanitised</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:occurrence> +<gsml:MappedFeature gml:id="gsml.mappedfeature.mineraloccurrence.365023"> +<gml:name codeSpace="http://www.ietf.org/rfc/rfc2141">urn:cgi:feature:Example:MappedFeature:MineralOccurrence:365023</gml:name> +<gsml:observationMethod> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:observationMethod> +<gsml:positionalAccuracy> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">300</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:positionalAccuracy> +<gsml:samplingFrame xlink:href="urn:cgi:feature:CGI:EarthNaturalSurface"/> +<gsml:specification xlink:href="#er.mineraloccurrence.365023"/> +<!-- intentional error for testing: shape is missing --> +</gsml:MappedFeature> +</gsml:occurrence> +<er:dimension> +<er:EarthResourceDimension> +<er:area> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::har">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:area> +<er:width> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">0</gsml:principalValue> +</gsml:CGI_NumericValue> +</er:width> +</er:EarthResourceDimension> +</er:dimension> +<er:form> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://www.example.org/earth-resources">Vein hosted - general</gsml:value> +</gsml:CGI_TermValue> +</er:form> +<er:planarOrientation> +<gsml:CGI_PlanarOrientation> +<gsml:convention>dip dip direction</gsml:convention> +<gsml:azimuth> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">12</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:azimuth> +<gsml:dip> +<gsml:CGI_NumericValue> +<gsml:principalValue uom="urn:ogc:def:uom:UCUM::deg">55</gsml:principalValue> +</gsml:CGI_NumericValue> +</gsml:dip> +<gsml:polarity>not applicable</gsml:polarity> +</gsml:CGI_PlanarOrientation> +</er:planarOrientation> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:365023:tin"/> +<er:commodityDescription xlink:href="http://services.example.org/EarthResourceML/1.1/urn/?uri=urn:cgi:feature:Example:Commodity:365023:tunx"/> +<er:composition> +<er:EarthResourceMaterial> +<er:earthResourceMaterialRole>unspecified</er:earthResourceMaterialRole> +<er:material> +<gsml:RockMaterial> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:consolidationDegree> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:consolidationDegree> +<gsml:lithology xlink:href="urn:cgi:classifier:CGI:SimpleLithology:2008:granodiorite"/> +</gsml:RockMaterial> +</er:material> +<er:proportion> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</er:proportion> +</er:EarthResourceMaterial> +</er:composition> +<er:composition> +<er:EarthResourceMaterial> +<er:earthResourceMaterialRole>unspecified</er:earthResourceMaterialRole> +<er:material> +<gsml:RockMaterial> +<gsml:purpose>typicalNorm</gsml:purpose> +<gsml:consolidationDegree> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</gsml:consolidationDegree> +<gsml:lithology xlink:href="urn:cgi:classifier:CGI:SimpleLithology:2008:schist"/> +</gsml:RockMaterial> +</er:material> +<er:proportion> +<gsml:CGI_TermValue> +<gsml:value codeSpace="http://urn.opengis.net/">urn:ogc:def:nil:OGC::missing</gsml:value> +</gsml:CGI_TermValue> +</er:proportion> +</er:EarthResourceMaterial> +</er:composition> +<er:type>mineral deposit</er:type> +</er:MineralOccurrence> +</gml:featureMember> +</wfs:FeatureCollection> \ No newline at end of file Property changes on: trunk/modules/extension/app-schema/app-schema-resolver/src/test/resources/test-data/validator-demo/file-to-be-validated.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Id URL Added: svn:eol-style + native |