add point to a shapefile

Michael Anderson m_anderson14 at hotmail.com
Fri Jul 14 12:01:14 EDT 2000


Hello,

I am trying to add points to a shapefile and am having problems. When I make 
a new shapeObj and try to add the coordinates with this line:
$pt->{x} = 456848.34843;
I get this error "Undefined subroutine &mapscript::shapeObj_x_set called at 
...".

So I tried making $pt a pointObj() instead. I can set it's coordinates, but 
the add method of shapefileObjs expects a shapeObj instead of a pointObj.

So my question is, how do I set the x,y coordinates of a shapeObj that 
represents a point. This is my first day with Perl so I apologize if the 
answer is obvious.

Thanks.

Mike Anderson
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com




More information about the mapserver-users mailing list