in reply to Drawing Shapefiles in Goo::Canvas
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.my @part = $shape->get_part($p); for(@part) { push(@shape,[$_->X,',',$_->Y]);
|
---|