[mapguide-trac] #745: Error Theming Layer using data source
with feature joins
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Oct 30 18:45:30 EDT 2008
#745: Error Theming Layer using data source with feature joins
------------------------------------+---------------------------------------
Reporter: CivilEng | Owner:
Type: defect | Status: new
Priority: high | Milestone: 2.1
Component: Web API | Version: 2.0.1
Severity: critical | Resolution:
Keywords: Theming, feature joins | External_id:
------------------------------------+---------------------------------------
Old description:
> The error is raised when individual distribution is requested.
>
> MgFeatureAggregateOptions aggregateOptions = new
> MgFeatureAggregateOptions();
> aggregateOptions.AddFeatureProperty(UFunctions.GetParameter(this.args,
> "PROPERTYNAME"));
> aggregateOptions.SelectDistinct(true);
>
> // this line raises the exception
> dataReader = featureService.SelectAggregate(resId,
> layer.GetFeatureClassName(), aggregateOptions);
>
> Error: Index is out of range.
> StackTrace:
> - MgFeatureServiceHandler.ProcessOperation line 83 file
> d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
> - MgOpSelectFeaturesSpatial.Execute line 110 file
> d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\OpSelectFeaturesSpatial.cpp
> - MgServerSelectFeatures.SelectFeatures line 249 file
> d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\ServerSelectFeatures.cpp
> - GetItem line 81 file
> d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\foundation\System/DisposableCollection.cpp
> Index is out of range.
>
> I am attaching mgp file and access database in order to replicate the
> error.
> the mgp contains the flexible(fusion) and basic layout. Both layouts
> invoke to thememain.aspx (It's the same that comes with the
> dotnetviewersample).
>
> I have tested for manage and unmanage data source, just as SHP, SDF, and
> SQL2008 providers.
New description:
The error is raised when individual distribution is requested.
{{{
#!cpp
MgFeatureAggregateOptions aggregateOptions = new
MgFeatureAggregateOptions();
aggregateOptions.AddFeatureProperty(UFunctions.GetParameter(this.args,
"PROPERTYNAME"));
aggregateOptions.SelectDistinct(true);
// this line raises the exception
dataReader = featureService.SelectAggregate(resId,
layer.GetFeatureClassName(), aggregateOptions);
Error: Index is out of range.
StackTrace:
- MgFeatureServiceHandler.ProcessOperation line 83 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
- MgOpSelectFeaturesSpatial.Execute line 110 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\OpSelectFeaturesSpatial.cpp
- MgServerSelectFeatures.SelectFeatures line 249 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\ServerSelectFeatures.cpp
- GetItem line 81 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\foundation\System/DisposableCollection.cpp
Index is out of range.
}}}
I am attaching mgp file and access database in order to replicate the
error.
the mgp contains the flexible(fusion) and basic layout. Both layouts
invoke to thememain.aspx (It's the same that comes with the
dotnetviewersample).
I have tested for manage and unmanage data source, just as SHP, SDF, and
SQL2008 providers.
--
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/745#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list