Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 4
Anonymous
293 Views, 3 Replies

API Question

I'm slogging my way through the server API and keep running across things that I can't find any reference to. For example, this line of code:

$queryOptions->SetSpatialFilter('SHPGEOM', $bufferGeometry, $MgFeatureSpatialOperations::Inside);

makes reference to "SHPGEOM". Where in the documentation can I find out more information about what options I can use with SetSpatialFilter? If I wasn't using Shape files, what would I substitute in place of SHPGEOM?

Thanks - Jack
3 REPLIES 3
Message 2 of 4
jumpinjackie
in reply to: Anonymous

SHPGEOM is the name of the property/column in the Feature Source (shape file) that stores the geometry data.

Basically you would substitute SHPGEOM with the name of the geometry property of your Feature Source

- Jackie
http://themapguyde.blogspot.com
http://au.linkedin.com/in/jackieng
Message 3 of 4
Anonymous
in reply to: Anonymous

Jackie,

Thanks for replying. That make senses, but where do I find what that name would be? When I look at the layer in Studio, for the Geometry of a layer sourced by a Shape file it says "Geometry", not SHPGEOM. What I look at a layer sourced by an SDF, it says "Data". So when using an SDF would it be SDFGEOM? or SDFDATA?

Thanks - Jack
Message 4 of 4
jumpinjackie
in reply to: Anonymous

Those names are just the default names generated by MapGuide Studio / AutoCAD Map when you create new Feature Sources.

To get the name of the geometry property:

Get the matching class definition (MgClassDefinition) object for that feature source using MgFeatureService::GetClassDefinition

Calling GetDefaultGeometryPropertyName() on that class definition will give you the name of the geometry property.

- Jackie
http://themapguyde.blogspot.com
http://au.linkedin.com/in/jackieng

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report