Moving Multiple Point Objects

838 views
Skip to first unread message

Mortankas

unread,
Mar 5, 2009, 1:50:31 PM3/5/09
to MapInfo-L
Hello All,

Hope everybody is well - quick query...

I'd like to move multiple point objects (Around 100 or so) all to the
same position, without having to drag them all one by one!

These objects have already been geocoded - would i need to update the
X/Y attributes of each object to the same value and re-geocode? Or
would this create a duplicate set of points?

Or would i need to Un-Geocode, amend the XY's and Re-Geocode, i will
not have access to MapInfo for a few days now so i can't test at the
moment.

Many Thanks in advance.

Simon.

Spencer Simpson

unread,
Mar 5, 2009, 1:59:49 PM3/5/09
to mapi...@googlegroups.com
If you know the X and Y of the final position, then:

1. Select the objects to move, using Table->Select... or one of the select
tools in a Map window.

2. Open the MapBasic window (Options->MapBasic)
3. type the following in the mapbasic window:

Set coordsys table selection
Update selection set obj=CreatePoint (<finalx>, <finaly>)

where you type the actual X coordinate of the final position instead of
<finalx>, and the actual Y coordinate instead of <finaly>.

You appear to also have X and Y columns to update, so you'd also type:

Update selection set <xcolumn>=<finalx>, <ycolumn>=<finaly>

HTH
________________________________

Spencer

Mortankas

unread,
Mar 6, 2009, 10:44:57 AM3/6/09
to MapInfo-L
Many Thanks Spencer, much appreciated.
> Simon.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages