meteo_stations-appschema.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?xml version="1.0" encoding="UTF-8"?><ns3:AppSchemaDataAccess xmlns:ns2="http://www.opengis.net/ogc" xmlns:ns3="http://www.geotools.org/app-schema">
  2. <namespaces>
  3. <Namespace>
  4. <prefix>gml</prefix>
  5. <uri>http://www.opengis.net/gml/3.2</uri>
  6. </Namespace>
  7. <Namespace>
  8. <prefix>st</prefix>
  9. <uri>http://www.stations.org/1.0</uri>
  10. </Namespace>
  11. </namespaces>
  12. <includedTypes/>
  13. <targetTypes>
  14. <FeatureType>
  15. <schemaUri>./meteo_stations-gml.xsd</schemaUri>
  16. </FeatureType>
  17. </targetTypes>
  18. <typeMappings>
  19. <FeatureTypeMapping>
  20. <sourceDataStore>smartappschematest</sourceDataStore>
  21. <sourceType>meteo_stations</sourceType>
  22. <targetElement>st:MeteoStationsFeature</targetElement>
  23. <attributeMappings>
  24. <AttributeMapping>
  25. <targetAttribute>st:MeteoStationsFeature</targetAttribute>
  26. <idExpression>
  27. <OCQL>strConcat('MeteoStationsFeature.',id)</OCQL>
  28. </idExpression>
  29. </AttributeMapping>
  30. <AttributeMapping>
  31. <targetAttribute>st:id</targetAttribute>
  32. <sourceExpression>
  33. <OCQL>id</OCQL>
  34. </sourceExpression>
  35. </AttributeMapping>
  36. <AttributeMapping>
  37. <targetAttribute>st:code</targetAttribute>
  38. <sourceExpression>
  39. <OCQL>code</OCQL>
  40. </sourceExpression>
  41. </AttributeMapping>
  42. <AttributeMapping>
  43. <targetAttribute>st:common_name</targetAttribute>
  44. <sourceExpression>
  45. <OCQL>common_name</OCQL>
  46. </sourceExpression>
  47. </AttributeMapping>
  48. <AttributeMapping>
  49. <targetAttribute>st:position</targetAttribute>
  50. <sourceExpression>
  51. <OCQL>position</OCQL>
  52. </sourceExpression>
  53. </AttributeMapping>
  54. <AttributeMapping>
  55. <targetAttribute>meteoObservations</targetAttribute>
  56. <sourceExpression>
  57. <linkField>FEATURE_LINK[1]</linkField>
  58. <linkElement>st:MeteoObservationsFeature</linkElement>
  59. <OCQL>id</OCQL>
  60. </sourceExpression>
  61. </AttributeMapping>
  62. <AttributeMapping>
  63. <targetAttribute>meteoStationsMaintainers</targetAttribute>
  64. <sourceExpression>
  65. <linkField>FEATURE_LINK[1]</linkField>
  66. <linkElement>st:MeteoStationsMaintainersFeature</linkElement>
  67. <OCQL>id</OCQL>
  68. </sourceExpression>
  69. </AttributeMapping>
  70. </attributeMappings>
  71. </FeatureTypeMapping>
  72. <FeatureTypeMapping>
  73. <sourceDataStore>smartappschematest</sourceDataStore>
  74. <sourceType>meteo_observations</sourceType>
  75. <targetElement>st:MeteoObservationsFeature</targetElement>
  76. <attributeMappings>
  77. <AttributeMapping>
  78. <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  79. <sourceExpression>
  80. <OCQL>station_id</OCQL>
  81. </sourceExpression>
  82. </AttributeMapping>
  83. <AttributeMapping>
  84. <targetAttribute>st:MeteoObservationsFeature</targetAttribute>
  85. <idExpression>
  86. <OCQL>strConcat('MeteoObservationsFeature.',id)</OCQL>
  87. </idExpression>
  88. </AttributeMapping>
  89. <AttributeMapping>
  90. <targetAttribute>st:id</targetAttribute>
  91. <sourceExpression>
  92. <OCQL>id</OCQL>
  93. </sourceExpression>
  94. </AttributeMapping>
  95. <AttributeMapping>
  96. <targetAttribute>st:time</targetAttribute>
  97. <sourceExpression>
  98. <OCQL>time</OCQL>
  99. </sourceExpression>
  100. </AttributeMapping>
  101. <AttributeMapping>
  102. <targetAttribute>st:value</targetAttribute>
  103. <sourceExpression>
  104. <OCQL>value</OCQL>
  105. </sourceExpression>
  106. </AttributeMapping>
  107. <AttributeMapping>
  108. <targetAttribute>meteoParameters</targetAttribute>
  109. <sourceExpression>
  110. <linkField>FEATURE_LINK[1]</linkField>
  111. <linkElement>st:MeteoParametersFeature</linkElement>
  112. <OCQL>parameter_id</OCQL>
  113. </sourceExpression>
  114. </AttributeMapping>
  115. </attributeMappings>
  116. </FeatureTypeMapping>
  117. <FeatureTypeMapping>
  118. <sourceDataStore>smartappschematest</sourceDataStore>
  119. <sourceType>meteo_parameters</sourceType>
  120. <targetElement>st:MeteoParametersFeature</targetElement>
  121. <attributeMappings>
  122. <AttributeMapping>
  123. <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  124. <sourceExpression>
  125. <OCQL>id</OCQL>
  126. </sourceExpression>
  127. </AttributeMapping>
  128. <AttributeMapping>
  129. <targetAttribute>st:MeteoParametersFeature</targetAttribute>
  130. <idExpression>
  131. <OCQL>strConcat('MeteoParametersFeature.',id)</OCQL>
  132. </idExpression>
  133. </AttributeMapping>
  134. <AttributeMapping>
  135. <targetAttribute>st:id</targetAttribute>
  136. <sourceExpression>
  137. <OCQL>id</OCQL>
  138. </sourceExpression>
  139. </AttributeMapping>
  140. <AttributeMapping>
  141. <targetAttribute>st:param_name</targetAttribute>
  142. <sourceExpression>
  143. <OCQL>param_name</OCQL>
  144. </sourceExpression>
  145. </AttributeMapping>
  146. <AttributeMapping>
  147. <targetAttribute>st:param_unit</targetAttribute>
  148. <sourceExpression>
  149. <OCQL>param_unit</OCQL>
  150. </sourceExpression>
  151. </AttributeMapping>
  152. </attributeMappings>
  153. </FeatureTypeMapping>
  154. <FeatureTypeMapping>
  155. <sourceDataStore>smartappschematest</sourceDataStore>
  156. <sourceType>meteo_stations_maintainers</sourceType>
  157. <targetElement>st:MeteoStationsMaintainersFeature</targetElement>
  158. <attributeMappings>
  159. <AttributeMapping>
  160. <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  161. <sourceExpression>
  162. <OCQL>station_id</OCQL>
  163. </sourceExpression>
  164. </AttributeMapping>
  165. <AttributeMapping>
  166. <targetAttribute>st:MeteoStationsMaintainersFeature</targetAttribute>
  167. <idExpression>
  168. <OCQL>strConcat('MeteoStationsMaintainersFeature.',id)</OCQL>
  169. </idExpression>
  170. </AttributeMapping>
  171. <AttributeMapping>
  172. <targetAttribute>st:id</targetAttribute>
  173. <sourceExpression>
  174. <OCQL>id</OCQL>
  175. </sourceExpression>
  176. </AttributeMapping>
  177. <AttributeMapping>
  178. <targetAttribute>meteoMaintainers</targetAttribute>
  179. <sourceExpression>
  180. <linkField>FEATURE_LINK[1]</linkField>
  181. <linkElement>st:MeteoMaintainersFeature</linkElement>
  182. <OCQL>manteiner_id</OCQL>
  183. </sourceExpression>
  184. </AttributeMapping>
  185. </attributeMappings>
  186. </FeatureTypeMapping>
  187. <FeatureTypeMapping>
  188. <sourceDataStore>smartappschematest</sourceDataStore>
  189. <sourceType>meteo_maintainers</sourceType>
  190. <targetElement>st:MeteoMaintainersFeature</targetElement>
  191. <attributeMappings>
  192. <AttributeMapping>
  193. <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  194. <sourceExpression>
  195. <OCQL>id</OCQL>
  196. </sourceExpression>
  197. </AttributeMapping>
  198. <AttributeMapping>
  199. <targetAttribute>st:MeteoMaintainersFeature</targetAttribute>
  200. <idExpression>
  201. <OCQL>strConcat('MeteoMaintainersFeature.',id)</OCQL>
  202. </idExpression>
  203. </AttributeMapping>
  204. <AttributeMapping>
  205. <targetAttribute>st:id</targetAttribute>
  206. <sourceExpression>
  207. <OCQL>id</OCQL>
  208. </sourceExpression>
  209. </AttributeMapping>
  210. <AttributeMapping>
  211. <targetAttribute>st:name</targetAttribute>
  212. <sourceExpression>
  213. <OCQL>name</OCQL>
  214. </sourceExpression>
  215. </AttributeMapping>
  216. <AttributeMapping>
  217. <targetAttribute>st:surname</targetAttribute>
  218. <sourceExpression>
  219. <OCQL>surname</OCQL>
  220. </sourceExpression>
  221. </AttributeMapping>
  222. <AttributeMapping>
  223. <targetAttribute>st:company</targetAttribute>
  224. <sourceExpression>
  225. <OCQL>company</OCQL>
  226. </sourceExpression>
  227. </AttributeMapping>
  228. </attributeMappings>
  229. </FeatureTypeMapping>
  230. </typeMappings>
  231. <sourceDataStores>
  232. <DataStore>
  233. <id>smartappschematest</id>
  234. <parameters>
  235. <Parameter>
  236. <name>schema</name>
  237. <value>smartappschematest</value>
  238. </Parameter>
  239. <Parameter>
  240. <name>database</name>
  241. <value>mock?sslmode=DISABLE&amp;binaryTransferEnable=bytea</value>
  242. </Parameter>
  243. <Parameter>
  244. <name>port</name>
  245. <value>5432</value>
  246. </Parameter>
  247. <Parameter>
  248. <name>passwd</name>
  249. <value>postgres</value>
  250. </Parameter>
  251. <Parameter>
  252. <name>Expose primary keys</name>
  253. <value>true</value>
  254. </Parameter>
  255. <Parameter>
  256. <name>dbtype</name>
  257. <value>postgis</value>
  258. </Parameter>
  259. <Parameter>
  260. <name>host</name>
  261. <value>localhost</value>
  262. </Parameter>
  263. <Parameter>
  264. <name>user</name>
  265. <value>postgres</value>
  266. </Parameter>
  267. </parameters>
  268. </DataStore>
  269. </sourceDataStores>
  270. </ns3:AppSchemaDataAccess>