There are several questions/answers using ERIS,etc.
like:
Remove holes from polygon
But I am having a challenge applying the solution programmatically using the JTS Topology suite only.
Below is an example of MultiPolygon.. I want to remove/fill the holes.
Best Answer
OpenJUMP has a "remove holes" tool (and an advanced "remove small holes" tool as well). OpenJUMP often uses JTS rather directly but I am not sure about this case. The source code of the function is at https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/analysis/GeometryFunction.java
The idea seems to be simple: Get the list of polygons, get the exterior rings and create new polygons from those. Inner rings disappear and job is done.