throw new Exception(strLog);
continue;
}
ShapefileRecordPolyline pol = (ShapefileRecordPolyline) 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;
OurShapefileLoaderLineOpen._LOGGER_.warning(strLog);
String strMessage = "Got wrong number of polylines 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 < 2)
{
if (_INT_CHOICE_WARNING_ == 2) // ok, don't ask again
{