gmlasconf.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <!-- This file is under the public domain -->
  2. <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="gmlasconf.xsd">
  4. <AllowRemoteSchemaDownload>true</AllowRemoteSchemaDownload>
  5. <SchemaCache enabled="true">
  6. <Directory/> <!-- empty: use $HOME/.gdal/gmlas_xsd_cache by default -->
  7. </SchemaCache>
  8. <SchemaAnalysisOptions>
  9. <SchemaFullChecking>true</SchemaFullChecking>
  10. <HandleMultipleImports>false</HandleMultipleImports>
  11. </SchemaAnalysisOptions>
  12. <Validation enabled="false">
  13. <FailIfError>false</FailIfError>
  14. </Validation>
  15. <ExposeMetadataLayers>false</ExposeMetadataLayers>
  16. <LayerBuildingRules>
  17. <AlwaysGenerateOGRId>false</AlwaysGenerateOGRId>
  18. <RemoveUnusedLayers>false</RemoveUnusedLayers>
  19. <RemoveUnusedFields>false</RemoveUnusedFields>
  20. <UseArrays>true</UseArrays>
  21. <UseNullState>false</UseNullState>
  22. <GML>
  23. <IncludeGeometryXML>false</IncludeGeometryXML>
  24. <InstantiateGMLFeaturesOnly>true</InstantiateGMLFeaturesOnly>
  25. </GML>
  26. <!-- 60 for PostgreSQL compatibility. The maximum is 64 but reserve
  27. some space so that the spatial index name can be formed -->
  28. <IdentifierMaxLength>60</IdentifierMaxLength>
  29. <!-- Whether layer and field names should be consider equal in a
  30. case insensitive way. This is important for conversion to
  31. Postgres when identifiers are laundered in lower case -->
  32. <CaseInsensitiveIdentifier>true</CaseInsensitiveIdentifier>
  33. <!-- Launder identifiers like the OGR PG driver does.
  34. Note: this laundering is safe for other backends as well. -->
  35. <PostgreSQLIdentifierLaundering>true</PostgreSQLIdentifierLaundering>
  36. <FlatteningRules>
  37. <!-- Maximum number of fields allowed for element flattening -->
  38. <MaximumNumberOfFields>10</MaximumNumberOfFields>
  39. <Namespaces>
  40. <Namespace prefix="swe" uri="http://www.opengis.net/swe/2.0"/>
  41. </Namespaces>
  42. <!-- Exception to MaximumNumberOfFields:
  43. force this element(s) to be flattened even if they have more elements -->
  44. <ForceFlatteningXPath>swe:values</ForceFlatteningXPath>
  45. <!-- Exception to MaximumNumberOfFields:
  46. prevent this element(s) from being flattened even if they have less elements -->
  47. <!--
  48. <DisableFlatteningXPath>...</DisableFlatteningXPath>
  49. -->
  50. </FlatteningRules>
  51. <SWEProcessing>
  52. <Activation>ifSWENamespaceFoundInTopElement</Activation>
  53. <ProcessDataRecord>true</ProcessDataRecord>
  54. <ProcessDataArray>true</ProcessDataArray>
  55. </SWEProcessing>
  56. </LayerBuildingRules>
  57. <!-- constraints typically expressed as schematrons -->
  58. <TypingConstraints>
  59. <Namespaces>
  60. <Namespace prefix="gwml2w" uri="http://www.opengis.net/gwml-well/2.2"/>
  61. <Namespace prefix="om" uri="http://www.opengis.net/om/2.0"/>
  62. </Namespaces>
  63. <ChildConstraint>
  64. <ContainerXPath>gwml2w:GW_GeologyLog/om:result</ContainerXPath>
  65. <ChildrenElements>
  66. <Element>gwml2w:GW_GeologyLogCoverage</Element>
  67. </ChildrenElements>
  68. </ChildConstraint>
  69. </TypingConstraints>
  70. <XLinkResolution>
  71. <Timeout>10</Timeout> <!-- can be set with GDAL_HTTP_TIMEOUT -->
  72. <!-- <MaxGlobalResolutionTime></MaxGlobalResolutionTime> -->
  73. <MaxFileSize>1048576</MaxFileSize>
  74. <!--
  75. <ProxyServerPort>myproxy.com:8080</ProxyServerPort> Can be set with GDAL_HTTP_PROXY
  76. <ProxyUserPassword>user:password<ProxyUserPassword> Can be set with GDAL_HTTP_PROXYUSERPW
  77. <ProxyAuth>Basic or NTLM or Digest or Any</ProxyAuth> Can be set with GDAL_PROXY_AUTH
  78. -->
  79. <CacheDirectory/> <!-- empty: use $HOME/.gdal/gmlas_xlink_resolution_cache by default -->
  80. <DefaultResolution enabled="false">
  81. <AllowRemoteDownload>true</AllowRemoteDownload>
  82. <ResolutionMode>RawContent</ResolutionMode>
  83. <ResolutionDepth>1</ResolutionDepth>
  84. <CacheResults>false</CacheResults>
  85. </DefaultResolution>
  86. <!--
  87. <URLSpecificResolution>
  88. <URLPrefix>http://inspire.ec.europa.eu/codelist</URLPrefix>
  89. <HTTPHeader>
  90. <Name>Accept</Name>
  91. <Value>application/x-iso19135+xml</Value>
  92. </HTTPHeader>
  93. <HTTPHeader>
  94. <Name>Accept-Language</Name>
  95. <Value>en</Value>
  96. </HTTPHeader>
  97. <AllowRemoteDownload>true</AllowRemoteDownload>
  98. <ResolutionMode>FieldsFromXPath</ResolutionMode>
  99. <ResolutionDepth>1</ResolutionDepth>
  100. <CacheResults>true</CacheResults>
  101. <Field>
  102. <Name>name</Name>
  103. <Type>string</Type>
  104. <XPath>RE_RegisterItem/name/gco:CharacterString</XPath>
  105. </Field>
  106. <Field>
  107. <Name>definition</Name>
  108. <Type>string</Type>
  109. <XPath>RE_RegisterItem/definition/gco:CharacterString</XPath>
  110. </Field>
  111. </URLSpecificResolution>
  112. -->
  113. <ResolveInternalXLinks>true</ResolveInternalXLinks>
  114. </XLinkResolution>
  115. <IgnoredXPaths>
  116. <WarnIfIgnoredXPathFoundInDocInstance>true</WarnIfIgnoredXPathFoundInDocInstance>
  117. <Namespaces>
  118. <Namespace prefix="gml" uri="http://www.opengis.net/gml"/>
  119. <Namespace prefix="gml32" uri="http://www.opengis.net/gml/3.2"/>
  120. <Namespace prefix="swe" uri="http://www.opengis.net/swe/2.0"/>
  121. </Namespaces>
  122. <XPath warnIfIgnoredXPathFoundInDocInstance="false">gml:boundedBy</XPath>
  123. <XPath warnIfIgnoredXPathFoundInDocInstance="false">gml32:boundedBy</XPath>
  124. <XPath>gml:priorityLocation</XPath>
  125. <XPath>gml32:priorityLocation</XPath>
  126. <XPath>gml32:descriptionReference/@owns</XPath>
  127. <XPath>@xlink:show</XPath>
  128. <XPath>@xlink:type</XPath>
  129. <XPath>@xlink:role</XPath>
  130. <XPath>@xlink:arcrole</XPath>
  131. <XPath>@xlink:actuate</XPath>
  132. <XPath>@gml:remoteSchema</XPath>
  133. <XPath>@gml32:remoteSchema</XPath>
  134. <XPath>swe:Quantity/swe:extension</XPath>
  135. <XPath>swe:Quantity/@referenceFrame</XPath>
  136. <XPath>swe:Quantity/@axisID</XPath>
  137. <XPath>swe:Quantity/@updatable</XPath>
  138. <XPath>swe:Quantity/@optional</XPath>
  139. <XPath>swe:Quantity/@id</XPath>
  140. <XPath>swe:Quantity/swe:identifier</XPath>
  141. <!-- <XPath>swe:Quantity/@definition</XPath> -->
  142. <XPath>swe:Quantity/swe:label</XPath>
  143. <XPath>swe:Quantity/swe:nilValues</XPath>
  144. <XPath>swe:Quantity/swe:constraint</XPath>
  145. <XPath>swe:Quantity/swe:quality</XPath>
  146. </IgnoredXPaths>
  147. <!-- Section for GMLAS writer config -->
  148. <WriterConfig>
  149. <IndentationSize>2</IndentationSize>
  150. <Comment/>
  151. <LineFormat>NATIVE</LineFormat>
  152. <SRSNameFormat>OGC_URL</SRSNameFormat>
  153. <Wrapping>WFS2_FEATURECOLLECTION</Wrapping>
  154. <!-- <Timestamp></Timestamp> -->
  155. <WFS20SchemaLocation>http://schemas.opengis.net/wfs/2.0/wfs.xsd</WFS20SchemaLocation>
  156. </WriterConfig>
  157. </Configuration>