Thanks for everyone's imput, here is a summary of suggestions. Thanks to
Chris Perry (sum#5) for showing me how to get the users input from the edit
boxes to work with the routine. I wasn't quite thourough enough in my
initial posting that my objective was to generate a point object from the
"Goto" routine whilest causing the mapper window to be recentered to that
point, all while not dropping erroneous points into which ever table was set
to edit.
Q.
Is there some feature built into Mapinfo or is there a known MB utility that
would perform a coordinate, "go to" function.
That is to say, one could enter the lat long coordinates of a point and by
button function, "find" or "goto" that location.
1.
From: "Cinda Graubard" <[EMAIL PROTECTED]>
I always create a random point (symbol), double click it and then type in
the coords I need.
2.
From: "Francoys Bernier" <[EMAIL PROTECTED]>
If you don't need any automation or fancy form and are just looking for a
way to go to some coordinate, you can do the following:
-Create a point object on any editable layer (perhaps the Cosmetic);
-Double-click on the point just created and enter the desired coordinates;
-The point is now "gone" to the desired location, use Query - Find
selection to zoom to that location.
3.
From: "MAGS-Gerencia" <[EMAIL PROTECTED]>
You have an option in MI called Change View.
There you can enter the coordinates you want and the map will be center in
these.
4.
From: "Karpovich, Robert" <[EMAIL PROTECTED]>
In MapBasic you could write a simple dialog where the user types in the Lat,
Long and then issue this command:
set map Center(-75.2,40.00)
I'm assuming Lat /Long you probably need to issue the Set CoordSys Earth
Projection 1, 33 the first time. In MapInfo show the MapBasic window and
try this. It works.
5.
From: "PERRY Chris" <[EMAIL PROTECTED]>
It would be a pretty simple MB
app though.
Dim sXcoord, sYcoord as String
Dialog
Control StaticText "Enter X coord: "
Control EditText into sXCoord
Control StaticText "Enter Y coord: "
Control EditText into sYCoord
Control OKButton
Control CancelButton
Set Map Center(sXcoord, sYcoord)
Insert Into Cosmetic1 (Obj) Values ( CreatePoint(sXcoord, sYcoord) )
NOTE: Chris later indicated that the first line of this should read: >>>Dim
sXcoord, sYcoord as Float<<<<
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.