[mapguide-users] selectAggregate error
Mauricio Villablanca
mgvillablanca at yahoo.com
Mon Oct 20 15:59:12 EDT 2008
You got that error because you tried to restrict the feature property with
the SelectDistinct method after you had already added a feature property. As
I suggested in my previous post, you need to set the restriction first then
add the feature properties.
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
>
>
--
View this message in context: http://n2.nabble.com/selectAggregate-error-tp1121116p1356906.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list