WKT - Polygon :: Multi-Polygon

344 views
Skip to first unread message

Adrian Gray

unread,
Feb 21, 2012, 11:53:58 PM2/21/12
to mapi...@googlegroups.com

Dear All,

 

I'm currently writing a MapInfo to WKT conversion tool using MapBasic. In the tool I enable the user to split an object and write it to the SQL Server 2008 database. However, for a solid polygon and one with 1:n holes cut out I can use the POLYGON specification, if the object is two or more disparet polygons I need to use the MULTIPOLYGON specification. Typically, I use ObjectInfo to determine the number of polygons in an object but this doesn’t diferentiate between the two scenarios.

 

Apart from comparing co-ords is there any other way of identifiying this?

 

Regards

Adrian Gray

Viewshed Limited

w: www.viewshed.co.uk

t: 01392 861946

Orchard House Church Road Silverton Exeter EX5 4PD

registered in England and Wales: 5661115 VAT# 876 6186 72

 

Thomas Bacon

unread,
Feb 22, 2012, 11:29:16 AM2/22/12
to mapi...@googlegroups.com

Adrian,

 

Have a read of this, it may help:  http://groups.google.com/group/mapinfo-l/browse_thread/thread/8560ffcfd33d95ba

 

Regards,

 

Tom Bacon

Graduate GIS Engineer

Asset Management South

Tel: 01444 472380

www.mouchel.com

 




The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. Mouchel Limited, Registered in England at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX Registered No : 1686040

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

Adrian Gray

unread,
Feb 22, 2012, 12:50:20 AM2/22/12
to mapi...@googlegroups.com

Thanks for that Tom don't know why that didn't pop up in a search for me, was obviously looking for the wrong keywords.

 

Not a very tidy solution but it looks like a solution at least. It would be nice if MapInfo/MapBasic exposed the functions it uses.

 

Regards

Adrian Gray

Viewshed Limited

w: www.viewshed.co.uk

t: 01392 861946

Orchard House Church Road Silverton Exeter EX5 4PD

registered in England and Wales: 5661115 VAT# 876 6186 72

 

Reply all
Reply to author
Forward
0 new messages