LogUtils.Log_ArgumentsNull(LOG);
return null;
}
try {
Polygon mPolygon = new Polygon();
int arg_idx=0;
for (List<DoubleWritable> multipath : multipaths)
{
if (multipath.size() %2 != 0){
LogUtils.Log_VariableArgumentLengthXY(LOG, arg_idx);
return null;
}
mPolygon.startPath(multipath.get(0).get(), multipath.get(0).get());
for (int i=2;i<multipath.size();i+=2){
mPolygon.lineTo(multipath.get(i).get(), multipath.get(i+1).get());
}
mPolygon.closeAllPaths();
arg_idx++;
}
return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(mPolygon, null, true));