Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Member
4 Posts
0 Kudos
Registered: ‎03-24-2008
Post 1 of 3

Create Columns Geometry in Sql Server which is only point

224 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
434 Posts
74 Kudos
Registered: ‎10-10-2003
Post 2 of 3

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
284 Posts
24 Kudos
Registered: ‎10-06-2008
Post 3 of 3

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!