Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Member
samuel
Posts: 4
Registered: ‎03-24-2008
Message 1 of 3 (223 Views)

Create Columns Geometry in Sql Server which is only point

223 Views, 2 Replies
02-06-2014 11:26 AM

We need to create a spatial table with the geometry field with only point. But when we create a table in sql server directly using the Geometry field, and when we connected at AIMS is always the same line, point and polygon.

 

I wonder how to create a table that only accepts point.

Valued Mentor
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 2 of 3 (187 Views)

Re: Create Columns Geometry in Sql Server which is only point

02-11-2014 06:12 PM in reply to: samuel
SQL Server Spatial tables will always accept any type. If you mean that the legend in Studio shows Points, Lines and Polygons, then you can turn off the Lines and Polygons in Studio and then AIMS will ignore those types.

If you use MapGuide Maestro, you can completely remove the line and polygon with a checkbox.
Valued Mentor
jackie.ng
Posts: 284
Registered: ‎10-06-2008
Message 3 of 3 (184 Views)

Re: Create Columns Geometry in Sql Server which is only point

02-11-2014 07:42 PM in reply to: samuel

Unless SQL Server lets you specify some kind of geometry type constraint on that column, I doubt MapGuide/FDO would know anything about that and thus just returns all geometry types as supported.

 

You can exclude certain geometry types from showing in the legend (if that's your concern) by removing their style rules in the Layer Definition.

 

- Jackie

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.