Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Thursday, September 30, 2004

z-values

{
coordinates = 0;
coordinatesWithZ = 0;
for (feature : wc.layerManager.getLayer("a").featureCollectionWrapper.features) {
for (int i = 0; i < feature.geometry.numPoints; i++) {
coordinates++;
if (!Double.isNaN(feature.geometry.getCoordinateN(i).z)) { coordinatesWithZ++; }
}
}
print(coordinatesWithZ+" / "+coordinates);
}

0 Comments:

Post a Comment

<< Home