Perfect — you want the square centered on a point rather than giving fixed coordinates. In MapBasic you can take a point’s X and Y, then compute the corners of the square from that center. Here’s a working example:
(x,y) is your point.
halfSide controls the size of the square (so side length = 2 * halfSide).
The square is built by offsetting the point’s coordinates.
The polygon is explicitly closed by repeating the first coordinate at the end.
👉 Do you want this program to take the point from an existing MapInfo table (e.g., you click a point on the map), or is a fixed coordinate good enough?
--
--
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
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mapinfo-l/bc2fab96-dbbe-4f0c-8785-2912abf0c3e8n%40googlegroups.com.
--
--
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
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mapinfo-l/d2acf6c0-00cc-4157-9f45-490d62b7a6een%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mapinfo-l/4d9af376-418c-4ab4-bf31-672c4496bc2b%40routeware.dk.