You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I've tried to use class Squaring of the algo module for building squaring from .geojson file, but doesn't understand where I made a mistake. I would appreciate if you could help me.
Collection<Feature> units = GeoData.getFeatures(inFile);
Collection<Geometry> modyfiyedGeometry = new ArrayList<>();
if (inFile != null && !"".equals(inFile)) {
for (Feature feature : units) {
Collection<Polygon> polygons = JTSGeomUtil.getPolygons(feature.getGeometry());
for (Polygon p : polygons) {
modyfiyedGeometry.add(Squarring.get(p));
}
}
}
units = FeatureUtil.geometriesToFeatures(modyfiyedGeometry);
GeoData.save(units, outFile, GeoData.getCRS(inFile));
The text was updated successfully, but these errors were encountered:
Hello!
I've tried to use class Squaring of the algo module for building squaring from .geojson file, but doesn't understand where I made a mistake. I would appreciate if you could help me.
The text was updated successfully, but these errors were encountered: