Package gov.nasa.worldwind.formats.shapefile

Examples of gov.nasa.worldwind.formats.shapefile.ShapefileRecordPolygon


               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
               {
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.formats.shapefile.ShapefileRecordPolygon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.