here the task about adding support ordering<br><a href="http://trac.osgeo.org/mapguide/ticket/618">http://trac.osgeo.org/mapguide/ticket/618</a><br><br>can you create a MGP ?<br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 10:22 AM, ralph2008 <span dir="ltr"><<a href="mailto:rmoreno@voxiva.net">rmoreno@voxiva.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Moog,<br>
I have tried your code and it fixes partially the error.<br>
The code avoids that the error to be raised, however the theming is not done<br>
suitably. I don't know whether it happens to you, but in my case the code is<br>
not theming the first feature of a layer.<br>
I have a featureSource(SHP unmanaged) with 5 features:<br>
featId=1<br>
featId=2<br>
featId=3<br>
featId=4<br>
featId=5<br>
The Id order is created by mapguide studio (I guess).<br>
Then when this layer is themed only the features 2,3,4 and 5 are displayed.<br>
It happens only with linked layers for either individual or numerical<br>
distribution.<br>
<br>
I think that is an issue of mapguide, at least 2.0.1 since it's the version<br>
that I have.<br>
<br>
Regards<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Rodolfo Moreno wrote:<br>
><br>
><br>
> Yeah, that's rigth, I have gotten this error with linked layer (layer with<br>
> join to a database)<br>
> I have received your new post in my email (with your code), but even it<br>
> has<br>
> not been posted in the forum, odd. I will try it.<br>
> Thank very much Moog.<br>
><br>
><br>
> Moog wrote:<br>
>><br>
>><br>
>> hi, of course. i'm at college now i will send u the code when i arrive<br>
>> home.<br>
>> btw, my code its just a quicky way to solve this problem. i dont know if<br>
>> it's smooth enough. however it helps, i guess. did you get the error in a<br>
>> linked layer? i only got that error when i was linking my layer with a<br>
>> database.<br>
>><br>
>> regards<br>
>><br>
>><br>
>> Rodolfo Moreno wrote:<br>
>>><br>
>>><br>
>>> Hi Moog I got the same error in .NET.<br>
>>> I did what Mauricio suggested (put the selectDistinct statement before<br>
>>> that<br>
>>> Addfeatureproperty ), but the same error is raised.<br>
>>> Could share you share your solution, please.<br>
>>><br>
>>> thanks in advance<br>
>>><br>
>>><br>
>>><br>
>>> Moog wrote:<br>
>>>><br>
>>>><br>
>>>> that's right. i fixed it making my own algorithm, but it want to know<br>
>>>> why<br>
>>>> i<br>
>>>> got that error. thanks<br>
>>>><br>
>>>><br>
>>>> Mauricio Villablanca wrote:<br>
>>>>><br>
>>>>><br>
>>>>> Your variable $aggregateOptions is a MgFeatureAggregateOptions object<br>
>>>>> and<br>
>>>>> your featureService variable is a MgFeatureService object, right?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Moog wrote:<br>
>>>>>><br>
>>>>>><br>
>>>>>> hello,<br>
>>>>>> i need some help. Do you know why i get the following error in this<br>
>>>>>> line?<br>
>>>>>><br>
>>>>>> $dataReader = $featureService->SelectAggregate($resId,<br>
>>>>>> $layer->GetFeatureClassName(), $aggregateOptions);<br>
>>>>>><br>
>>>>>> where, $aggregateOptions is<br>
>>>>>> $aggregateOptions->AddFeatureProperty($this->args['PROPERTYNAME']);<br>
>>>>>> $aggregateOptions->SelectDistinct(true);<br>
>>>>>><br>
>>>>>> Index is out of range. Exception occurred in method GetItem at line<br>
>>>>>> 81<br>
>>>>>> in<br>
>>>>>> file<br>
>>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp<br>
>>>>>> Index is out of range.<br>
>>>>>> - MgFeatureServiceHandler.ProcessOperation line 83 file<br>
>>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\FeatureServiceHandler.cpp<br>
>>>>>> - MgOpSelectFeaturesSpatial.Execute line 110 file<br>
>>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\OpSelectFeaturesSpatial.cpp<br>
>>>>>> - MgServerSelectFeatures.SelectFeatures line 249 file<br>
>>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\ServerSelectFeatures.cpp<br>
>>>>>> - GetItem line 81 file<br>
>>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp<br>
>>>>>><br>
>>>>>> thanks ;)<br>
>>>>>><br>
>>>>>> --<br>
>>>>>> View this message in context:<br>
>>>>>> <a href="http://www.nabble.com/selectAggregate-error-tp19690193p19690193.html" target="_blank">http://www.nabble.com/selectAggregate-error-tp19690193p19690193.html</a><br>
>>>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> mapguide-users mailing list<br>
>>>>>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> View this message in context:<br>
>>>>> <a href="http://n2.nabble.com/selectAggregate-error-tp1121116p1299635.html" target="_blank">http://n2.nabble.com/selectAggregate-error-tp1121116p1299635.html</a><br>
>>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> mapguide-users mailing list<br>
>>>>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> --<br>
>>>> View this message in context:<br>
>>>> <a href="http://www.nabble.com/selectAggregate-error-tp19690193p19838822.html" target="_blank">http://www.nabble.com/selectAggregate-error-tp19690193p19838822.html</a><br>
>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> mapguide-users mailing list<br>
>>>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>> -----<br>
>>> Rodolfo Moreno<br>
>>> CivilEng<br>
>>><br>
>>> --<br>
>>> View this message in context:<br>
>>> <a href="http://n2.nabble.com/selectAggregate-error-tp1121116p1384640.html" target="_blank">http://n2.nabble.com/selectAggregate-error-tp1121116p1384640.html</a><br>
>>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>>><br>
>>> _______________________________________________<br>
>>> mapguide-users mailing list<br>
>>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>>><br>
>>><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://www.nabble.com/selectAggregate-error-tp19690193p20198179.html" target="_blank">http://www.nabble.com/selectAggregate-error-tp19690193p20198179.html</a><br>
>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
><br>
><br>
> -----<br>
> Rodolfo Moreno<br>
> CivilEng<br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://n2.nabble.com/selectAggregate-error-tp1121116p1387543.html" target="_blank">http://n2.nabble.com/selectAggregate-error-tp1121116p1387543.html</a><br>
> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
><br>
> _______________________________________________<br>
> mapguide-users mailing list<br>
> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/selectAggregate-error-tp19690193p20218082.html" target="_blank">http://www.nabble.com/selectAggregate-error-tp19690193p20218082.html</a><br>
<div><div></div><div class="Wj3C7c">Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zac Spitzer -<br><a href="http://zacster.blogspot.com">http://zacster.blogspot.com</a> (My Blog)<br>+61 405 847 168<br>