Subject: | Funkiness fetching end-points |
Trying to determine whether a polyline had a positive or negative slope,
I used:
printf "%i : %i\n", $shape->has_point($shape->x_min(),
$shape->y_min()), $shape->has_point($shape->x_min(), $shape->y_max());
Which begot:
Can't call method "X" without a package or object reference at
/usr/local/share/perl/5.10.0/Geo/ShapeFile.pm line 397.
I ended up using ->X and ->Y on ($shape->points)[0,-1], but the former
ought to have worked? In particular, the work-around assumes points are
always listed in order...