getLength method
Returns the length of this Geometry
.
Linear geometries return their length.
Areal geometries return their perimeter.
They override this function to compute the area.
Others return 0.0
@return the length of the Geometry
Implementation
double getLength() {
double sum = 0.0;
for (int i = 0; i < geometries.length; i++) {
sum += (geometries[i]).getLength();
}
return sum;
}