<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
To answer my own question: the response is created in the gmgml
namespace so OpenLayers cannot interpret it. It can be solved by
turning on the Feature Collection Namespace in WFS option in
Geomedia before publishing the WFS service.<br>
<br>
Probably it can be solved by implementing gmgml namespace in
OpenLayers as well, does it worth a new feature ticket?<br>
<br>
BR,<br>
Attila<br>
<br>
2010.06.22. 20:36 keltezéssel, BERÉNYI Attila írta:
<blockquote cite="mid:4C210290.2000300@airdesignstudio.hu"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2">
Hi,<br>
<br>
I've facing a problem regarding the GetFeature function again, and
I'm
not quite sure whether it is an OpenLayers bug or the server
application fails. <br>
So, I've a WMS and a WFS service served by Geomedia WebMap:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://webmap.viamap.hu/ol/getFeatureTest.html">http://webmap.viamap.hu/ol/getFeatureTest.html</a><br>
The GetFeature gets a correct response from the WFS service, e.g.:<br>
<div selected="true" role="tabpanel" class="netInfoResponseText
netInfoText ">
<pre role="list"><code class="wrappedText focusRow" role="listitem"><?xml version="1.0" encoding="UTF-8"?>
</code><code class="wrappedText focusRow" role="listitem"><gmgml:FeatureCollection xmlns=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.intergraph.com/geomedia/gml">"http://www.intergraph.com/geomedia/gml"</a> xmlns:gml="<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opengis">http://www.opengis</a></code><code class="wrappedText focusRow" role="listitem">.net/gml" xmlns:gmgml=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.intergraph.com/geomedia/gml">"http://www.intergraph.com/geomedia/gml"</a> xmlns:xsi=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a></code><code class="wrappedText focusRow" role="listitem"> xsi:schemaLocation='<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.intergraph.com/geomedia/gml">http://www.intergraph.com/geomedia/gml</a> <a moz-do-not-send="tr
ue" class="moz-txt-link-freetext" href="http://webmap.viamap.hu/testWFS/request.aspx">http://webmap.viamap.hu/testWFS/request.aspx</a></code><code class="wrappedText focusRow" role="listitem">?request=DescribeFeatureType&amp;VERSION=1.1.0&amp;SERVICE=WFS&amp;OUTPUTFORMAT=text/xml;subtype=gml</code><code class="wrappedText focusRow" role="listitem">/3.1.1'><gml:boundedBy><gml:Envelope srsName="EPSG:23700"><gml:lowerCorner>660000 236000</gml:lowerCorner</code><code class="wrappedText focusRow" role="listitem">><gml:upperCorner>666000 240000</gml:upperCorner></gml:Envelope></gml:boundedBy><gml:featureMember><gmgml</code><code class="wrappedText focusRow" role="listitem">:szelvenyhalo gml:id="szelvenyhalo.2676"><gmgml:szelvenyszam>65-421</gmgml:szelvenyszam><gmgml:felmeres</code><code class="wrappedText focusRow" role="listitem">>1997</gmgml:felmeres><gmgml:ID>2676</gmgml:I
D><gmgml:Geometry><gml:Polygon srsName="EPSG:23700"><gml</code><code class="wrappedText focusRow" role="listitem">:exterior><gml:LinearRing><gml:posList srsDimension="2">660000 236000 660000 240000 666000 240000 666000</code><code class="wrappedText focusRow" role="listitem"> 238000 666000 236000 660000 236000 </gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gmgml</code><code class="wrappedText focusRow" role="listitem">:Geometry></gmgml:szelvenyhalo></gml:featureMember></gmgml:FeatureCollection></code></pre>
</div>
although the result cannot be processed, because of the following
error:<br>
<pre>obj.attributes is undefined</pre>
<pre><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://webmap.viamap.hu/ol/lib/OpenLayers-2.9.1/lib/OpenLayers/Format/GML/Base.js">http://webmap.viamap.hu/ol/lib/OpenLayers-2.9.1/lib/OpenLayers/Format/GML/Base.js</a></pre>
<pre>Line 397</pre>
Is it an OpenLayers bug?<br>
<br>
BR,<br>
<br>
Attila<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>