<SimpleSQLFeatureStore xmlns="http://www.deegree.org/datasource/feature/simplesql"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.deegree.org/datasource/feature/simplesql https://schemas.deegree.org/core/3.6/datasource/feature/simplesql/simplesql.xsd">

  <!-- [1] CRS for storing geometries -->
  <StorageCRS>EPSG:4326</StorageCRS>

  <!-- [0...1] Local name of the feature type (defaults to 'Feature') -->
  <FeatureTypeName>MyFeature</FeatureTypeName>

  <!-- [0...1] Namespace of the feature type (defaults to NULL namespace) -->
  <FeatureTypeNamespace>http://www.deegree.org/app</FeatureTypeNamespace>

  <!-- [0...1] Prefix of the feature type (defaults to auto-generated prefix) -->
  <FeatureTypePrefix>app</FeatureTypePrefix>

  <!-- [1] database connection -->
  <JDBCConnId>connid</JDBCConnId>

  <!-- [1] query statement -->
  <SQLStatement>
    SELECT name, title, asbinary(the_geom) FROM some_table
    WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
  </SQLStatement>

  <!-- [1] bounding box statement -->
  <BBoxStatement>SELECT astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox</BBoxStatement>

  <!-- [0..n] different statements for specific WMS scale ranges -->
  <LODStatement aboveScale="3000">
    SELECT name, title, asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table
    WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
  </LODStatement>
  <LODStatement aboveScale="6000">
    SELECT name, title, asbinary(st_simplify(the_geom, 30)) FROM some_table
    WHERE the_geom &amp;&amp; st_geomfromtext(?, -1) and not st_isempty(st_simplify(the_geom, 30))
  </LODStatement>


</SimpleSQLFeatureStore>