<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
Thank you for your response, I'm able to request data from both layers
(typenames) this way, however I'd like to achieve this in OpenLayers.
So I've created a small demo application which uses XMLHttp to request
data from Mapserver. <br>
<a class="moz-txt-link-freetext" href="http://webgis.fmt.bme.hu/gfi/xml.html">http://webgis.fmt.bme.hu/gfi/xml.html</a><br>
The requests are hard coded, please take a look at the source.<br>
<br>
How could I achieve the </font></font><font size="-1"><font
 face="Helvetica, Arial, sans-serif">below </font></font><font
 size="-1"><font face="Helvetica, Arial, sans-serif">described </font></font><font
 size="-1"><font face="Helvetica, Arial, sans-serif">functionality with
XML request(s)?<br>
<br>
Thanks in advance,<br>
<br>
BR,<br>
<br>
Attila<br>
</font></font><br>
2010.04.06. 15:42 keltezéssel, Yewondwossen Assefa írta:
<blockquote cite="mid:4BBB3A52.2@dmsolutions.ca" type="cite">The
following URL on your server gives the output for the 2 typenames I
believe:
  <br>
  <br>
<a class="moz-txt-link-freetext" href="http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/og
c:Filter%3E%29">http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29</a>
  <br>
  <br>
Attila BERÉNYI wrote:
  <br>
  <blockquote type="cite">Thank you guys, I've tried with comma and
brackets as well, no success so far :(
    <br>
    <br>
2010.04.06. 14:46 keltezéssel, Yewondwossen Assefa írta:
    <br>
    <blockquote type="cite"><a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a> wrote:
      <br>
      <blockquote type="cite">Hi,
        <br>
        <br>
you need to repeat your filter (comma-separated) IIRC.
        <br>
        <br>
      </blockquote>
I believe it should be brackets instead of comma: something like
...&FILTER=(<Filter>...</Filter>)(<Filter>...</Filter>)
      <br>
      <blockquote type="cite">Best regards,
        <br>
Bart
        <br>
        <br>
        <blockquote type="cite">Dear All,
          <br>
          <br>
I've two layers (elteresek and elteresek2), and I'd like to get
features
          <br>
from both of them using WFS GetFeature request.
          <br>
If I apply one typename at a time, it works correct, but if I include
          <br>
two typenames in the request only the first is processed and included
in
          <br>
the response.
          <br>
This works correct (note TYPENAME=elteresek):
          <br>
<a class="moz-txt-link-freetext" href="http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek&Filter=">http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek&Filter=</a><ogc:Filter
          <br>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope
          <br>
xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
          <br>
srsName="EPSG:23700"><gml:lowerCorner>649971.6696
          <br>
236508.4728</gml:lowerCorner><gml:upperCorner>651559.1688
          <br>
237919.5832</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter>
          <br>
          <br>
This works correct (note TYPENAME=elteresek2) as well:
          <br>
<a class="moz-txt-link-freetext" href="http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek2&Filter=">http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek2&Filter=</a><ogc:Filter
          <br>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope
          <br>
xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
          <br>
srsName="EPSG:23700"><gml:lowerCorner>649971.6696
          <br>
236508.4728</gml:lowerCorner><gml:upperCorner>651559.1688
          <br>
237919.5832</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter>
          <br>
          <br>
But the reply for this link includes only the first typename (in this
          <br>
case elteresek):
          <br>
<a class="moz-txt-link-freetext" href="http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=">http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=</a><ogc:Filter
          <br>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope
          <br>
xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
          <br>
srsName="EPSG:23700"><gml:lowerCorner>649971.6696
          <br>
236508.4728</gml:lowerCorner><gml:upperCorner>651559.1688
          <br>
237919.5832</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter>
          <br>
          <br>
What am I doing wrong?
          <br>
          <br>
Thanks,
          <br>
          <br>
Attila
          <br>
_______________________________________________
          <br>
mapserver-users mailing list
          <br>
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
          <br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
          <br>
          <br>
        </blockquote>
        <br>
        <br>
_______________________________________________
        <br>
mapserver-users mailing list
        <br>
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
        <br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
  </blockquote>
  <br>
  <br>
</blockquote>
</body>
</html>