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);
}
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