XP is just a number | |
PerlMonks |
Re: Drawing Shapefiles in Goo::Canvasby starbolin (Hermit) |
on Jun 14, 2008 at 04:36 UTC ( [id://692051]=note: print w/replies, xml ) | Need Help?? |
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}
In Section
Seekers of Perl Wisdom
|
|