Hi,
Khurram_munawar
i read your problem, I am giving syx for getting
x and y cordinates of a line and polyline object
below.
dim x,y float
x = ObjectNodeX(Table_Name.obj,1,1)
y = ObjectNodeY(Table_Name.obj,1,1)
note x
note y
table_Name = your table name
1 = row_num of the object
1 = 1 is used to find the x cordinates of first node
Same for the y cordinates use
If you want to take last x and y cordinates of the
every object than .
dim x,y float
x = ObjectNodeX(Table_Name.obj,1,1)
y = ObjectNodeY(Table_Name.obj,1,1)
note x
note y
dim ax,ay as float
dim r,s as smallint
select * from table_name where obj into World
r = tableinfo(world,TAB_INFO_NROWS)
for s = 1 to r
dim sy as smallint
sy = Objectinfo(World.obj,OBJ_INFO_NPNTS)
dim qwe as integer
dim IX,IY as float
IX = ObjectNodeX(Table_Name.obj,1,sy)
IY = ObjectNodeY(Table_Name.obj,1,sy)
note IX
note IY
next
this syn is for get first and last cordinates of
polyline
for the line
dim IX,IY,x,y as float
IX = ObjectNodeX(Table_Name.obj,1,1)
IY = ObjectNodeY(Table_Name.obj,1,1)
note IX
note IY
X = ObjectNodeX(Table_Name.obj,1,2)
Y = ObjectNodeY(Table_Name.obj,1,2)
Cheers
Sann
'------------------------------------------------------
--- [EMAIL PROTECTED] wrote:
>
> Hi all,
>
> Can any one help me, how I will be able to get the
> first Node (the starting
> cordinates) of a line object.
>
> Thanks
>
>
>
>
_______________________________________________________________________
> 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.
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
_______________________________________________________________________
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.