MappedFeature_MappingFile.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Mapped Feature mapping file
  4. -->
  5. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  6. xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  7. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8. xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd
  9. http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/expr.xsd">
  10. <namespaces>
  11. <Namespace>
  12. <prefix>gml</prefix>
  13. <uri>http://www.opengis.net/gml</uri>
  14. </Namespace>
  15. <Namespace>
  16. <prefix>gsml</prefix>
  17. <uri>http://www.cgi-iugs.org/xml/GeoSciML/2</uri>
  18. </Namespace>
  19. </namespaces>
  20. <sourceDataStores>
  21. <DataStore>
  22. <id>MappedFeaturePropertyfile</id>
  23. <parameters>
  24. <Parameter>
  25. <name>directory</name>
  26. <!-- path can be relative to this file if starts with "file: -->
  27. <value>file:./</value>
  28. </Parameter>
  29. </parameters>
  30. </DataStore>
  31. </sourceDataStores>
  32. <catalog>mappedPolygons.oasis.xml</catalog>
  33. <targetTypes>
  34. <FeatureType>
  35. <schemaUri>
  36. commonSchemas_new/GeoSciML/geosciml.xsd
  37. </schemaUri>
  38. </FeatureType>
  39. </targetTypes>
  40. <typeMappings>
  41. <FeatureTypeMapping>
  42. <sourceDataStore>MappedFeaturePropertyfile</sourceDataStore>
  43. <sourceType>MappedFeaturePropertyfile</sourceType>
  44. <targetElement>
  45. gsml:MappedFeature
  46. </targetElement>
  47. <groupBy />
  48. <attributeMappings>
  49. <AttributeMapping>
  50. <targetAttribute>
  51. gsml:MappedFeature
  52. </targetAttribute>
  53. </AttributeMapping>
  54. <AttributeMapping>
  55. <targetAttribute>gml:name</targetAttribute>
  56. <sourceExpression>
  57. <OCQL>LEX_D</OCQL>
  58. </sourceExpression>
  59. <ClientProperty>
  60. <name>codeSpace</name>
  61. <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitLabel'</value>
  62. </ClientProperty>
  63. </AttributeMapping>
  64. <AttributeMapping>
  65. <targetAttribute>gsml:specification</targetAttribute>
  66. <sourceExpression>
  67. <OCQL>GEOLOGIC_UNIT_ID</OCQL>
  68. <linkElement>gsml:GeologicUnit</linkElement>
  69. <linkField>gml:name[3]</linkField>
  70. </sourceExpression>
  71. </AttributeMapping>
  72. </attributeMappings>
  73. </FeatureTypeMapping>
  74. </typeMappings>
  75. </as:AppSchemaDataAccess>