Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Drawing Shapefiles in Goo::Canvas

by starbolin (Hermit)
on Jun 14, 2008 at 04:36 UTC ( [id://692051]=note: print w/replies, xml ) Need Help??


in reply to Drawing Shapefiles in Goo::Canvas

my @part = $shape->get_part($p); for(@part) { push(@shape,[$_->X,',',$_->Y]);

get_part() returns a scalar. You are already iterating over the parts of the shape. Call one of area_centroid or vertex_centroid to get a Geo::ShapeFile::Point object that you can retrieve the X and Y from.

s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://692051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found