<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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&nbsp;Mapserver&nbsp;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 href="http://[...]/cgi-bin/stations?request=getfeature&amp;service=WFS&amp;version=1.0.0&amp;typename=DTIS&amp;OUTPUTFORMAT=gml3&amp;featureid=DTIS.231,DTIS.273">http://[...]/cgi-bin/stations?request=getfeature&amp;service=WFS&amp;version=1.0.0&amp;typename=DTIS&amp;OUTPUTFORMAT=gml3&amp;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; ">    &lt;</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; ">&gt;
</span></font></pre><pre id="line17"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px; ">      &lt;</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; ">&gt;
        &lt;</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; ">&gt;[...]&lt;/</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; ">&gt;
        &lt;</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; ">&gt;
</span></font></pre><pre id="line25"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px; ">          &lt;</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; ">&gt;
            &lt;</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; ">&gt;174.081500 -34.949500&lt;/</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; ">&gt;
          &lt;/</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; ">&gt;
        &lt;/</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; ">&gt;
        &lt;</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; ">&gt;231&lt;/</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; ">&gt;</span></font></pre><pre id="line32"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px; ">      &lt;/</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; ">&gt;
</span></font></pre><pre id="line38"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px; ">    &lt;/</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; ">&gt;
    &lt;</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; ">&gt;
      &lt;</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; ">&gt;
      [...]</span></font></pre><pre id="line60"><font class="Apple-style-span" face="Verdana" size="3"><span class="Apple-style-span" style="font-size: 11px; ">    &lt;/</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; ">&gt;
&lt;/</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; ">&gt;</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,&nbsp;</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-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 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 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></body></html>