title: CQL filter multiple typenames to retrieve features within specified geometry
body: <p><strong>Environment</strong></p>
  
  <p>I'm trying to fetch featuredata from a WFS layer running on GeoServer using CQL filtering. I have no access to the server.</p>
  
  <p><strong>Goal</strong></p>
  
  <p>Receive all features of two types within the geometry of another feature of another layer; with at most one request per layer (thus not per type)</p>
  
  <p><strong>Train of thought</strong></p>
  
  <p>I have to:</p>
  
  <ul>
  <li>Receive geometry from a wfs layer (geometryA)</li>
  <li>Use this geometry to receive two typenames from another layer with geometry within "geometryA". </li>
  </ul>
  
  <p><strong>Attempts</strong></p>
  
  <p>For a single typename it would be easy. First fetch geometryA, then:
  <code>
  https://src/wfs?request=getFeature&amp;version=2.0.0&amp;typenames=namespace:typename&amp;srsName=EPSG:28992&amp;outputFormat=application/json&amp;cql_filter=WITHIN(geometry, geometryA)
  </code></p>
  
  <p>But I can't get it figured out for multiple type names... I've tried:
  <code>
  https://src/wfs?request=getFeature&amp;version=2.0.0&amp;typenames=namespace:typename;namespace:typename2&amp;srsName=EPSG:28992&amp;outputFormat=application/json&amp;cql_filter=WITHIN(geometry, geometryA)
  </code>
  which results in:
  <code>
  Extracted invalid join sub-filter [ geometrie within POLYGON ((154884 463434, 154884 463455,
        154905 463455, 154905 463434, 154884 463434)) ], it users more than one feature type + []
  </code></p>
  
  <p>So I've tried, after some googling,
  <code>
  https://src/wfs?request=getFeature&amp;version=2.0.0&amp;typenames=namespace:typename;namespace:typename2&amp;srsName=EPSG:28992&amp;outputFormat=application/json&amp;cql_filter=WITHIN(geometry, geometryA);WITHIN(geometry, geometryA)
  </code>
  which results in:
  <code>
  Join query must specify a filter
  </code></p>
  
  <p>And now I'm quite lost... </p>
  
  <p><strong>Question</strong></p>
  
  <p>Would anyone be able to tell me how to use CQL (or anything else) to retreive two typenames within a fixed geometry?</p>