David,
MapBasic has it's own default coordinate system which you will need to reset
to suit your UTM. You can do this by using the coordinate system of an open
table by adding the following into your code:-
Set CoordSys Table <your_tablename>
or by setting it explicitly, e.g. for British National Grid:-
Set Coordsys Earth Projection 8, 79, "m", -2, 49, 0.9996012717,
400000, -100000
If you chose the latter, you can get the correct syntax for UTM (NAD83) Zone
17 from a workspace file with map windows based on this coordinate system.
Keith
-----Original Message-----
From: Windeler, David [mailto:[EMAIL PROTECTED]]
Sent: 31 August 2001 13:53
To: 'MapInfo-L (E-mail)
Subject: MI-L re ObjectGeogrpahy
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
To whom it may concern:
I am currently writing a script to identify the starting point and end point
of all line segments in a given table. I am well aware that this can be
achieved utilizing the ObjectGeography function. My data is stored in UTM
(NAD83) Zone 17 format. When I perform a Select query in MapInfo (i.e.
Select ObjectGeography(obj,1)) I get the UTM coordinate, the desired
result. However, when I create a MapBasic program to do the same, I am
presented with values that do not resemble UTM coordinates at all (i.e.
-80.7345, -0.019). What I am thinking is that the coordinate function in my
MapBasic script does not correctly read the UTM coordinates. Does anyone
know why this is? Do I have to open the layer as a map and thus specify the
units and the coordinate system?
David Windeler Hons. BSc. Geo, GIS Apps. Specialist
GIS Technician / Applications Specialist
City Of Vaughan
Engineering Department
2141 Major Mackenzie Drive
Vaughan, Ontario
L6A 1T1
Tel. (905) 832-8525 Ext. 8747
Fax (905) 832-6145
E-mail [EMAIL PROTECTED]
_______________________________________________________________________
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.
This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.
_______________________________________________________________________
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.