Michael,
MapBasic uses an ObjectGeography() function to return various info about objects. In
your case, you would want to define four object variables
( dim x1,y1,x2,y2 as float ) to represent the coordinate pairs for the beginning
and ending nodes of the line.
Then populate the variables like so:
fetch first from line.tab
x1 = objectgeography(line.obj,obj_geo_linebegx)
y1 = objectgeography(line.obj,obj_geo_linebegy)
x2 = objectgeography(line.obj,obj_geo_lineendx)
y2 = objectgeography(line.obj,obj_geo_lineendy)
you can then use the variable values to update a column in your table etc..
gary
>>> branagan <[EMAIL PROTECTED]> 08/10/99 10:51AM >>>
Is there a way to extract to Lat/Long's of the starting and ending points
of a line object? Does anyone know where I can get that mapbasic code,
as I don't think that can be done in MI alone. Thanks ... Mike
Michael F. Branagan
Home/Casa:
10207 Green Holly Terrace
Silver Spring, MD 20902-5812
Voice: (301)-754-0160
Fax: (301)-754-0160
Email: [EMAIL PROTECTED]
Web: none
Office/Officina:
USEPA, Office of Policy
401 M Street, SW (Room 3208)
Washington, DC 20460
Voice: (202)-260-7569
Fax: (202)-260-6732
Email: [EMAIL PROTECTED]
Web: www.epa.gov
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]