continue;
}
ShapefileRecordPolygon pol = (ShapefileRecordPolygon) record;
// ---
int intNbParts = pol.getNumberOfParts();
if (intNbParts != 1)
{
if (_INT_CHOICE_WARNING_ == 2) // ok, don't ask again
{
continue;
}
String strLog = "intCount=" + intCount + ", " + "intNbParts != 1, intNbParts=" +
intNbParts + ", intNbRecord=" + intNbRecord;
OurShapefileLoaderLineClosed._LOGGER_.warning(strLog);
String strMessage = "Got wrong number of polygons in record #" + intCount;
strMessage +="\n";
strMessage += "Expecting one, got " + intNbParts;
_INT_CHOICE_WARNING_ = JOptionPane.showOptionDialog(null, strMessage, "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, _STRS_OPTION_WARNING_, _STRS_OPTION_WARNING_[0]);
if (_INT_CHOICE_WARNING_ == 0)
throw new Exception(strLog);
continue;
}
// ---
int intNbPoints = pol.getNumberOfPoints();
if (intNbPoints < 4)
{
if (_INT_CHOICE_WARNING_ == 2) // ok, don't ask again
{