roadsegments.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  3. xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  5. <namespaces>
  6. <Namespace>
  7. <prefix>tut</prefix>
  8. <uri>http://example.org/tutorial</uri>
  9. </Namespace>
  10. <Namespace>
  11. <prefix>gml</prefix>
  12. <uri>http://www.opengis.net/gml</uri>
  13. </Namespace>
  14. </namespaces>
  15. <sourceDataStores>
  16. <DataStore>
  17. <id>datastore</id>
  18. <parameters>
  19. <Parameter>
  20. <name>directory</name>
  21. <value>file:./</value>
  22. </Parameter>
  23. </parameters>
  24. </DataStore>
  25. </sourceDataStores>
  26. <targetTypes>
  27. <FeatureType>
  28. <schemaUri>RoadSegment.xsd</schemaUri>
  29. </FeatureType>
  30. </targetTypes>
  31. <typeMappings>
  32. <FeatureTypeMapping>
  33. <sourceDataStore>datastore</sourceDataStore>
  34. <sourceType>tut_RoadSegment</sourceType>
  35. <targetElement>tut:RoadSegment</targetElement>
  36. <groupBy />
  37. <attributeMappings>
  38. <AttributeMapping>
  39. <targetAttribute>tut:RoadSegment</targetAttribute>
  40. <idExpression>
  41. <OCQL>ID</OCQL>
  42. </idExpression>
  43. </AttributeMapping>
  44. <AttributeMapping>
  45. <targetAttribute>gml:name</targetAttribute>
  46. <sourceExpression>
  47. <OCQL>FID</OCQL>
  48. </sourceExpression>
  49. <ClientProperty>
  50. <name>codeSpace</name>
  51. <value>'urn:x-test:classifierScheme:TestAuthority:SDI:transport:v1'</value>
  52. </ClientProperty>
  53. </AttributeMapping>
  54. <AttributeMapping>
  55. <targetAttribute>tut:name</targetAttribute>
  56. <sourceExpression>
  57. <OCQL>NAME</OCQL>
  58. </sourceExpression>
  59. </AttributeMapping>
  60. <AttributeMapping>
  61. <targetAttribute>tut:fromToNodes</targetAttribute>
  62. <idExpression>
  63. <OCQL>FID</OCQL>
  64. </idExpression>
  65. </AttributeMapping>
  66. <AttributeMapping>
  67. <targetAttribute>tut:fromToNodes/tut:fromNode</targetAttribute>
  68. <sourceExpression>
  69. <OCQL>fromNode</OCQL>
  70. </sourceExpression>
  71. </AttributeMapping>
  72. <AttributeMapping>
  73. <targetAttribute>tut:fromToNodes/tut:toNode</targetAttribute>
  74. <sourceExpression>
  75. <OCQL>toNode</OCQL>
  76. </sourceExpression>
  77. </AttributeMapping>
  78. <AttributeMapping>
  79. <targetAttribute>tut:the_geom</targetAttribute>
  80. <sourceExpression>
  81. <OCQL>the_geom</OCQL>
  82. </sourceExpression>
  83. </AttributeMapping>
  84. </attributeMappings>
  85. </FeatureTypeMapping>
  86. </typeMappings>
  87. </as:AppSchemaDataAccess>