Passing features to Squarring algorithm
Closed this issue · 0 comments
chandanchawda commented
As given in previous issue"Yes, it is possible. You need first to load the content of your shapefile using SHPUtil.load(), then you go through the collection of loaded features and apply the squarring algorithm to each feature with a f.setGeom( Squarring.get(f.getGeom()) ), and then save the result with SHPUtil.save()."
But I am getting following problem while doing this:
f.getGeom() returns "com.vividsolution.jts.geom.Geometry" whereas Squarring.get() accepts "com.vividsolution.jts.geom.Polygon".
Any solution for this?