-
Notifications
You must be signed in to change notification settings - Fork 460
Description
The new CoverageCleaner fixes most gaps in between polygons, but on the outskirts of the coverage, some surfaces are removed and some new surfaces are introduced. I would have expected the algorithm to preserve the borders of the coverage.
For instance when running Coverage.cleanSnap and snapDistance of 5 on the attached text file.
The missing surfaces, i.e. the surfaces from the original data that is missing from the cleaned data, are:
GEOMETRYCOLLECTION (POLYGON ((905357.5 7877870, 905360 7877852.5, 905352.5 7877870, 905357.5 7877870)), POLYGON ((905367.5 7877800, 905370 7877785, 905362.5 7877800, 905367.5 7877800)), POLYGON ((905390 7877708.085099999, 905355.0866 7877701.397399999, 905390 7877710, 905390 7877708.085099999)), POLYGON ((905282.5 7877760, 905280 7877765, 905287.5 7877760, 905282.5 7877760)), POLYGON ((905057.5 7879210, 905060 7879202.5, 905052.5 7879210, 905057.5 7879210)), POLYGON ((905447.5 7878640, 905450 7878597.5, 905442.5 7878640, 905447.5 7878640)))
While these are the new surfaces that are introduced by the cleaning:
GEOMETRYCOLLECTION (POLYGON ((905310 7877967.5, 905312.5 7877980, 905317.5 7877980, 905310 7877967.5)), POLYGON ((905049.3317999998 7877676.943599999, 905127.3246999998 7877678.223200001, 905131.6261999998 7877678.2782999985, 905049.3317999998 7877676.943599999)), POLYGON ((905050 7877780, 905047.5 7877760, 905044.4718000004 7877760.000100002, 905050 7877780)), POLYGON ((905062.5 7877860, 905057.5 7877840, 905054.4342 7877840.000100002, 905062.5 7877860)), POLYGON ((905169.4358000001 7878150.807300001, 905165 7878137.5, 905160.7324999999 7878135.3664, 905169.4358000001 7878150.807300001)), POLYGON ((905170 7878159.678800002, 905170 7878152.5, 905169.4446 7878150.833500002, 905169.4437999995 7878150.8215, 905169.4358000001 7878150.807300001, 905170 7878159.678800002)), POLYGON ((905420 7878372.5, 905422.5 7878390, 905427.5 7878390, 905420 7878372.5)))
If this is the expected behaviour , are there other algorithms better suited to clean up coverages while preserving the borders?