Beanshell to convert single-LineString MultiLineStrings to LineStrings
for (feature : wc.layerManager.getLayer("CattaneoLayer").featureCollectionWrapper.features)
{
com.vividsolutions.jts.util.Assert.isTrue(feature.geometry.numGeometries
== 1);
feature.geometry = feature.geometry.getGeometryN(0);
}
{
com.vividsolutions.jts.util.Assert.isTrue(feature.geometry.numGeometries
== 1);
feature.geometry = feature.geometry.getGeometryN(0);
}
0 Comments:
Post a Comment
<< Home