if (!(jtsGeometry instanceof LineString)) {
throw new GeomajasException(ExceptionCode.UNEXPECTED_PROBLEM, "splitter has to be a LineString");
}
LineString preciseLine = (LineString) jtsGeometry;
int precision = polygon.getPrecisionModel().getMaximumSignificantDigits() - 1;
com.vividsolutions.jts.geom.Geometry bufferedLine = preciseLine.buffer(Math.pow(10.0, -precision));
com.vividsolutions.jts.geom.Geometry diff = polygon.difference(bufferedLine);
if (diff instanceof Polygon) {
response.setGeometries(new Geometry[] { converter.toDto(diff) });
} else if (diff instanceof MultiPolygon) {