hi!
Does anyone know how to create some regions with a tab which include
columns:placename longitude 、latitude and direction ?
I am successful to create line ,following are code(in mapbasic5.5) :
.....
.....
Create Map For mytable CoordSys Earth Projection 1, 0
Update mytable
Set obj = CreateLine
(longitude,latitude,(longitude+10*sin(dir*3.14/180)),(latitude+10*cos(dir*3.14/180)))
Map From mytable
set map redraw off
Set Map Layer 1 Display Global Global Symbol ("myicon.bmp",8388736,12,2)
set map redraw on
Commit Table mytable Interactive
.....
But i alwayes failed to create region,these are code:
.....
dim i as integer
Create Region Into Variable obj_region 0
For i = 1 to 100
Alter Object obj_region Node Add (longitude(i),latitude(i))
Next
Insert Into mytab (Object) Values(obj_region)
Map From mytab
set map redraw off
Set Map Layer 1 Display Global Global Symbol ("myicon.bmp",8388736,12,2)
set map redraw on
BR
Gaetam
[EMAIL PROTECTED]
2004-06-21
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12307