Hi,<br><br>In my understanding it&#39;s up to the driver how the index is specified and it &#39;s not safe to expose the setter of the shape index value. The most trivial option of setting the indexes to different values by the driver is to increment the index in each addfeature for the inline layers. Otherwise the shapes cannot be distinguished in the query result sets.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/7/14 Vagner Sousa <span dir="ltr">&lt;<a href="mailto:vagner.uru@gmail.com">vagner.uru@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="gmail_quote">Hi, there.<br><br>I&#39;m experiencing some troubles with the new release of MapServer. I got the following while debugging that (Visual Studio IDE):<div class="im"><br><br>
<div style="margin-left: 40px;">


<span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">results.</span>getResult(0)</span><br>{OSGeo.MapServer.resultCacheMemberObj}<br>    classindex: 0<br>    <span style="color: rgb(255, 0, 0);">shapeindex: 1</span><br>



    tileindex: -1<br>results.<span style="color: rgb(255, 0, 0);">getResult(1)</span><br>{OSGeo.MapServer.resultCacheMemberObj}<br>    classindex: 1<br>    <span style="color: rgb(255, 0, 0);">shapeindex: 1</span><br>    tileindex: -1<br>



results.<span style="color: rgb(255, 0, 0);">getResult(2)</span><br>{OSGeo.MapServer.resultCacheMemberObj}<br>    classindex: 0<br>    <span style="color: rgb(255, 0, 0);">shapeindex: 1</span><br>    tileindex: -1<br></div>



<br>The new version of MapServer auto-increments the index property of a feature as soon as it&#39;s added to a layer (unlike older releases). I know there&#39;s a couple of shape.setValue() and shape.getValue() functions one may use to store and recover values, but I&#39;m not able to get the actual index value (unlike this, my classindex values are correct).<br>



<br>am I missing or doing something wrong? It used to work fine before the last release (namely, the auto-incremented shape.index property).<br><br>I&#39;ve posted a little bit more detailed investigations of the above <a href="http://cubicpurunga.blogspot.com/2009/07/shapeobjindex-round-two-fight.html" target="_blank">here</a> and <a href="http://cubicpurunga.blogspot.com/2009/07/shapeobjindex-in-ms-5x.html" target="_blank">here</a> in my blog.<br>



<br>I&#39;d really appreciate if anyone could spend some time to help me with that. If you need more details, just let me know.<br><br></div>(I&#39;ve tried to include some piece of code to give you more details, but my message have been blocked.)<div class="im">
<br>
<br>Thank you very much. Best regards,<br><br>Vagner Sousa<br><a href="http://www.agx.com.br" target="_blank">AGX Tecnologia</a><br></div></div>
</div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>