<!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 text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I just tried this with my test data and url similar you yours [1]
and was not able to reproduce it locally using 5.4 and 5.6. If your
data/map are not sensitive, would it be possible to send it to me
directly and I will give it a try again (It would be easier for me
to see the problem)?<br>
<br>
best regards<br>
<br>
<br>
[1];
<a class="moz-txt-link-freetext" href="http://127.0.0.1/cgi-bin/mapserv.exe?map=f:/projects/mapserver-buildkit-2008/mapserver/msautotest/wxs/wfs_filter_mine2.map&&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace_postgis&featureid=popplace_postgis.Tignish,popplace_postgis.Cheticamp,popplace_postgis.Halifax">http://127.0.0.1/cgi-bin/mapserv.exe?map=f:/projects/mapserver-buildkit-2008/mapserver/msautotest/wxs/wfs_filter_mine2.map&&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace_postgis&featureid=popplace_postgis.Tignish,popplace_postgis.Cheticamp,popplace_postgis.Halifax</a><br>
<br>
<br>
On 24/02/2011 7:33 PM, Rainer Spittel wrote:
<blockquote
cite="mid:D9CCF0E6-694D-42D4-BF7D-27813ABDC7A8@silverstripe.com"
type="cite"><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">Hi,</span></font>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">I didn't
had problems with UMN Mapserver for a very long time. I
really love the product, and now I really need help.</span></font></div>
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 11px;">I set up a WFS Server, accessing a PostGIS
point table. I use OpenLayers to visualise the WFS layer, and
use the cluster strategy to group close points to a large
cluster point.</span></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">Now to the
problem:</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">I want to
retrieve the feature data from a cluster point. I already
have the IDs of the features of the cluster.</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">Now I send
a GetFeature request to the Mapserver to get all attribute
information for the features, i.e. ID=231 and ID=273:</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><a
moz-do-not-send="true"
href="http://[...]/cgi-bin/stations?request=getfeature&service=WFS&version=1.0.0&typename=DTIS&OUTPUTFORMAT=gml3&featureid=DTIS.231,DTIS.273">http://[...]/cgi-bin/stations?request=getfeature&service=WFS&version=1.0.0&typename=DTIS&OUTPUTFORMAT=gml3&featureid=DTIS.231,DTIS.273</a></span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="Verdana" size="3"><span
class="Apple-style-span" style="font-size: 11px;">The
response of this request contains the feature 231 twice in
the response. If I add another ID to the request, I get the
feature 231 three times returned:</span></font></div>
<div>
<pre id="line1"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">[...]</span></font></pre>
<pre id="line1"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> <</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:featureMember</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</span></font></pre>
<pre id="line17"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> <</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:DTIS</span></font></span><span class="attribute-name"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> gml:id</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">=</span></font><span class="attribute-value"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">"DTIS.231"</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:boundedBy</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>[...]</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:boundedBy</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:msGeometry</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</span></font></pre>
<pre id="line25"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> <</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:Point</span></font></span><span class="attribute-name"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> srsName</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">=</span></font><span class="attribute-value"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">"EPSG:4326"</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:pos</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>174.081500 -34.949500</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:pos</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:Point</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:msGeometry</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:id</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>231</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:id</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">></span></font></pre>
<pre id="line32"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> </</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:DTIS</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</span></font></pre>
<pre id="line38"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> </</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:featureMember</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:featureMember</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
<</span></font><span class="start-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:DTIS</span></font></span><span class="attribute-name"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> gml:id</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">=</span></font><span class="attribute-value"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">"DTIS.231"</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
[...]</span></font></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;"> </</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">gml:featureMember</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">>
</</span></font><span class="end-tag"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">ms:msFeatureCollection</span></font></span><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">></span></font></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">As soon as I export the table from PostgreSQL into a shapefile, update the mapfile to use the shapefile and run the same query, I get the correct response. </span></font><span class="Apple-style-span" style="font-family: Verdana; font-size: 11px;">I also tracked the SQL query, which is sent to Postgres, and the query is correct. PostgreSQL returns the correct rows.</span></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">I use MapServer V5.4.1, which is not a very newer version, </span></font><span class="Apple-style-span" style="font-family: Verdana; font-size: 11px;">but I am constraint by the Debian packages.</span></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">Is this an user error (I am not smart enough)? Or a bug? If so, has this bug been resolved in a later version?</span></font></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">Any help is really appreciated.</span></font></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">Thanks,</span></font></pre>
<pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px;">Rainer</span></font></pre>
</div>
<div>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; font-size: medium;">
<div>
<div style="font-size: 12px;">Rainer Spittel | Head of
Development</div>
<div style="font-size: 12px;">
<div>SilverStripe</div>
<div><a moz-do-not-send="true"
href="http://silverstripe.com/">http://silverstripe.com</a></div>
<div><br>
</div>
<div>Phone: +64 4 978 7330</div>
<div>Mobile: +64 21 1390370</div>
<div>Skype: fb3rasp</div>
</div>
</div>
</span>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: <a class="moz-txt-link-abbreviated" href="mailto:yassefa@dmsolutions.ca">yassefa@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
</pre>
</body>
</html>