}
}
ArrayList<Geometry> result = new ArrayList<Geometry>(3);
if (dstMultiPoint != null) {
Geometry resMP = OperatorSimplifyOGC.local().execute(dstMultiPoint,
esriSR, true, null);
result.add(resMP);
}
if (dstPolylines.size() > 0) {
if (dstPolylines.size() == 1) {
Geometry resMP = OperatorSimplifyOGC.local().execute(
dstPolylines.get(0), esriSR, true, null);
result.add(resMP);
} else {
GeometryCursor res = OperatorUnion.local().execute(
new SimpleGeometryCursor(dstPolylines), esriSR, null);
Geometry resPolyline = res.next();
Geometry resMP = OperatorSimplifyOGC.local().execute(
resPolyline, esriSR, true, null);
result.add(resMP);
}
}
if (dstPolygons.size() > 0) {
if (dstPolygons.size() == 1) {
Geometry resMP = OperatorSimplifyOGC.local().execute(
dstPolygons.get(0), esriSR, true, null);
result.add(resMP);
} else {
GeometryCursor res = OperatorUnion.local().execute(
new SimpleGeometryCursor(dstPolygons), esriSR, null);
Geometry resPolygon = res.next();
Geometry resMP = OperatorSimplifyOGC.local().execute(
resPolygon, esriSR, true, null);
result.add(resMP);
}
}