Opened 8 years ago

Last modified 8 years ago

#2584 new defect

SELECTFEATURES on SQL Server Spatial data source returns no geometry types/geometric types when specifying properties

Reported by: morkl Owned by:
Priority: low Milestone:
Component: Feature Service Version: 3.0.0
Severity: trivial Keywords:
Cc: External ID:

Description

I'm not sure if this is an FDO problem or a MapGuide problem, but I'll start here and see where it leads.

We are starting to add support for SQL Server Spatial in our products, and have run into a problem when selecting features.

Selecting features without specifying properties works as expected: http://localhost/mapguide30/mapagent/mapagent.fcgi?OPERATION=SELECTFEATURES&VERSION=1.0.0&RESOURCEID=Library://Path/To/Data/Source.FeatureSource&CLASSNAME=dbo:MY_VIEW_NAME

<xs:element name="GEOM" type="gml:AbstractGeometryType" fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default" fdo:geometricTypes="point curve surface " fdo:geometryTypes="point multipoint linestring multilinestring curvestring multicurvestring polygon multipolygon curvepolygon multicurvepolygon ">

However, selecting features and specifying properties returns empty geometricTypes and geometryTypes: http://localhost/mapguide30/mapagent/mapagent.fcgi?OPERATION=SELECTFEATURES&VERSION=1.0.0&RESOURCEID=Library://Path/To/Data/Source.FeatureSource&CLASSNAME=dbo:MY_VIEW_NAME&PROPERTIES=GEOM

<xs:element name="GEOM" type="gml:AbstractGeometryType" fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default" fdo:geometricTypes="" fdo:geometryTypes="">

DescribeFeatureSchema returns the expected geometricTypes and geometryTypes: http://localhost/mapguide30/mapagent/mapagent.fcgi?OPERATION=DESCRIBEFEATURESCHEMA&VERSION=1.0.0&RESOURCEID=Library://Path/To/Data/Source.FeatureSource&SCHEMA=dbo&CLASSNAMES=MY_VIEW_NAME

<xs:element name="GEOM" type="gml:AbstractGeometryType" fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default" fdo:geometricTypes="point curve surface " fdo:geometryTypes="point multipoint linestring multilinestring curvestring multicurvestring polygon multipolygon curvepolygon multicurvepolygon "/>

The empty strings cause MaestroAPI to throw an ArgumentException in GeometricPropertyDefinition.ProcessGeometricTypes, making it difficult for us to use MaestroAPI for SQL Server Spatial data sources at the moment.

Change History (1)

comment:1 by jng, 8 years ago

I'd say it would be something with the FDO provider.

Nothing in the MapGuide codebase to my knowledge writes that kind of XML, it would have be some part of the MapGuide Server farming off XML serialization to FDO.

Note: See TracTickets for help on using tickets.