gsml_MappedFeature.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  4. <namespaces>
  5. <Namespace>
  6. <prefix>gml</prefix>
  7. <uri>http://www.opengis.net/gml</uri>
  8. </Namespace>
  9. <Namespace>
  10. <prefix>gsml</prefix>
  11. <uri>urn:cgi:xmlns:CGI:GeoSciML:2.0</uri>
  12. </Namespace>
  13. <Namespace>
  14. <prefix>xlink</prefix>
  15. <uri>http://www.w3.org/1999/xlink</uri>
  16. </Namespace>
  17. </namespaces>
  18. <sourceDataStores>
  19. <DataStore>
  20. <id>datastore</id>
  21. <parameters>
  22. <Parameter>
  23. <name>directory</name>
  24. <value>file:./</value>
  25. </Parameter>
  26. </parameters>
  27. </DataStore>
  28. </sourceDataStores>
  29. <targetTypes>
  30. <FeatureType>
  31. <schemaUri>http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
  32. </FeatureType>
  33. </targetTypes>
  34. <typeMappings>
  35. <FeatureTypeMapping>
  36. <sourceDataStore>datastore</sourceDataStore>
  37. <sourceType>gsml_MappedFeature</sourceType>
  38. <targetElement>gsml:MappedFeature</targetElement>
  39. <attributeMappings>
  40. <AttributeMapping>
  41. <targetAttribute>
  42. gsml:MappedFeature
  43. </targetAttribute>
  44. <idExpression>
  45. <OCQL>ID</OCQL>
  46. </idExpression>
  47. </AttributeMapping>
  48. <AttributeMapping>
  49. <targetAttribute>
  50. gml:name[1]
  51. </targetAttribute>
  52. <sourceExpression>
  53. <OCQL>NAME</OCQL>
  54. </sourceExpression>
  55. </AttributeMapping>
  56. <AttributeMapping>
  57. <targetAttribute>
  58. gml:name[2]
  59. </targetAttribute>
  60. <sourceExpression>
  61. <OCQL>GU_URN</OCQL>
  62. </sourceExpression>
  63. </AttributeMapping>
  64. <AttributeMapping>
  65. <targetAttribute>
  66. gsml:specification
  67. </targetAttribute>
  68. <ClientProperty>
  69. <name>xlink:href</name>
  70. <value>GU_URN</value>
  71. </ClientProperty>
  72. </AttributeMapping>
  73. <AttributeMapping>
  74. <targetAttribute>
  75. gsml:shape
  76. </targetAttribute>
  77. <sourceExpression>
  78. <OCQL>SHAPE</OCQL>
  79. </sourceExpression>
  80. </AttributeMapping>
  81. <AttributeMapping>
  82. <targetAttribute>gsml:observationMethod/gsml:CGI_TermValue/gsml:value</targetAttribute>
  83. <sourceExpression>
  84. <OCQL>'urn:ogc:def:nil:OGC:missing'</OCQL>
  85. </sourceExpression>
  86. <ClientProperty>
  87. <name>codeSpace</name>
  88. <value>'urn:ietf:rfc:2141'</value>
  89. </ClientProperty>
  90. </AttributeMapping>
  91. <AttributeMapping>
  92. <targetAttribute>gsml:positionalAccuracy</targetAttribute>
  93. <targetAttributeNode>gsml:CGI_TermValuePropertyType</targetAttributeNode>
  94. </AttributeMapping>
  95. <AttributeMapping>
  96. <targetAttribute>gsml:positionalAccuracy/gsml:CGI_TermValue/gsml:value</targetAttribute>
  97. <sourceExpression>
  98. <OCQL>'urn:ogc:def:nil:OGC:missing'</OCQL>
  99. </sourceExpression>
  100. <ClientProperty>
  101. <name>codeSpace</name>
  102. <value>'urn:ietf:rfc:2141'</value>
  103. </ClientProperty>
  104. </AttributeMapping>
  105. </attributeMappings>
  106. </FeatureTypeMapping>
  107. </typeMappings>
  108. </as:AppSchemaDataAccess>