}
// Need new geometry cursors both initially and after every terminatePartial(),
// because the geometry cursors can not be re-used after extracting the
// unioned geometry with GeometryCursor.next().
//Create an empty listener.
lgc = new ListeningGeometryCursor();
//Obtain union operator - after taking note of spatial reference.
xgc = OperatorUnion.local().execute(lgc, spatialRef, null);
} else if (firstWKID != GeometryUtils.getWKID(geomref)) {
LogUtils.Log_SRIDMismatch(LOG, geomref, firstWKID);
return false;