[mapguide-users] selectAggregate error
Nandorov
nandorov at gmail.com
Mon Oct 27 18:55:11 EDT 2008
hi, of course. i'm at college now i will send u the code when i arrive home.
btw, my code its just a quicky way to solve this problem. i dont know if
it's smooth enough. however it helps, i guess. did you get the error in a
linked layer? i only got that error when i was linking my layer with a
database.
regards
Rodolfo Moreno wrote:
>
>
> Hi Moog I got the same error in .NET.
> I did what Mauricio suggested (put the selectDistinct statement before
> that
> Addfeatureproperty ), but the same error is raised.
> Could share you share your solution, please.
>
> thanks in advance
>
>
>
> Moog wrote:
>>
>>
>> that's right. i fixed it making my own algorithm, but it want to know why
>> i
>> got that error. thanks
>>
>>
>> Mauricio Villablanca wrote:
>>>
>>>
>>> Your variable $aggregateOptions is a MgFeatureAggregateOptions object
>>> and
>>> your featureService variable is a MgFeatureService object, right?
>>>
>>>
>>>
>>> Moog wrote:
>>>>
>>>>
>>>> hello,
>>>> i need some help. Do you know why i get the following error in this
>>>> line?
>>>>
>>>> $dataReader = $featureService->SelectAggregate($resId,
>>>> $layer->GetFeatureClassName(), $aggregateOptions);
>>>>
>>>> where, $aggregateOptions is
>>>> $aggregateOptions->AddFeatureProperty($this->args['PROPERTYNAME']);
>>>> $aggregateOptions->SelectDistinct(true);
>>>>
>>>> Index is out of range. Exception occurred in method GetItem at line 81
>>>> in
>>>> file
>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>> Index is out of range.
>>>> - MgFeatureServiceHandler.ProcessOperation line 83 file
>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\FeatureServiceHandler.cpp
>>>> - MgOpSelectFeaturesSpatial.Execute line 110 file
>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\OpSelectFeaturesSpatial.cpp
>>>> - MgServerSelectFeatures.SelectFeatures line 249 file
>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\ServerSelectFeatures.cpp
>>>> - GetItem line 81 file
>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>>
>>>> thanks ;)
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/selectAggregate-error-tp19690193p19690193.html
>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/selectAggregate-error-tp1121116p1299635.html
>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/selectAggregate-error-tp19690193p19838822.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
>
> -----
> Rodolfo Moreno
> CivilEng
>
> --
> View this message in context:
> http://n2.nabble.com/selectAggregate-error-tp1121116p1384640.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://www.nabble.com/selectAggregate-error-tp19690193p20198179.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list