Richard,
Set you status bar to display cursor coordinates. The default is zoom
(window width). Simply click on left side of the status bar and select
what you need, or choose Map>Options and make your choice in the
resulting dialog.
To find out the coordinates in an SQL query, use:
For lines:
Select
ObjectGeography(obj, 1),
ObjectGeography(obj, 2),
ObjectGeography(obj, 3),
ObjectGeography(obj, 4)
From <your_line_table> Into qLineCoords
For polylines:
Select
ObjectNodeX(obj, 1, 1),
ObjectNodeY(obj, 1, 1),
ObjectNodeX(obj, 1, ObjectInfo(obj, 20)),
ObjectNodeY(obj, 1, ObjectInfo(obj, 20))
From <your_polyline_table> Into qPolyLineCoords
Note:
ObjectNodeX(obj, 1, 1), ' gets the x-coord of the first Node of the
first section
ObjectNodeX(obj, 1, ObjectInfo(obj, 20)), ' gets the x-coord of the last
Node of the first section
If your polylines are made up from multiple seperated sections, use:
Select
ObjectNodeX(obj, 1, 1),
ObjectNodeY(obj, 1, 1),
ObjectNodeX(obj, ObjectInfo(obj, 21), ObjectInfo(obj, 21 +
ObjectInfo(obj, 21))),
ObjectNodeY(obj, ObjectInfo(obj, 21), ObjectInfo(obj, 21 +
ObjectInfo(obj, 21)))
From <your_polyline_table> Into qPolyLineCoords
Note:
ObjectNodeX(obj, ObjectInfo(obj, 21), ObjectInfo(obj, 21 +
ObjectInfo(obj, 21))) 'gets the coords of the last node in the last
section
Hope this helps,
Cheers, Andreas
.................................................
Andreas Mahn
dds GmbH
Stumpfstr.1
76131 Karlsruhe
Germany
Tel.: +49 - (0)721 - 9651406
Fax: +49 - (0)721 - 9651419
http://www.dds.ptv.de/
.......................
[EMAIL PROTECTED]
>----------
>Von: Richard Batchelor[SMTP:[EMAIL PROTECTED]]
>Antwort an: Richard Batchelor
>Gesendet: Mittwoch, 14. April 1999 18:56
>An: [EMAIL PROTECTED]
>Betreff: MI start and end point coordinates
>
><<Datei: ATT00308.html>>
>Hello,
>
>Can anyone tell me how to find out the coordinates of the start and end
>points of lines that I draw on a map without double clicking on the object
>after it is drawn?
>
>RB
>
>----------------------------
>Richard Batchelor
>IBI Group (UK)
>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]