Package org.osm2world.core.math

Examples of org.osm2world.core.math.InvalidGeometryException


        }
      }
    }
   
    if (outline.size() >= 3) {
      throw new InvalidGeometryException("failed to triangulate outline."
          + "\nRemaining: " + outline
          + "\nTriangles: " + triangles);
    }
           
//    TODO: try to remove the need for progress check
View Full Code Here


      if (currentRing != null && currentRing.isClosed()) {
        try {
          closedRings.add(new Ring(currentRing));
          currentRing = null;
        } catch (InvalidGeometryException e) {
          throw new InvalidGeometryException(String.format(
              "self-intersecting ring (with %d nodes)",
              currentRing.size() - 1), e);
        }
      }
   
View Full Code Here

    try {
     
      this.polygon = convertToPolygon(nodes, holes);
     
    } catch (InvalidGeometryException e) {
      throw new InvalidGeometryException(
          "outer polygon is not simple for this object: "
          + objectWithTags, e);
    }
   
  }
View Full Code Here

              p1.add(ridgeDirection.mult(-1000)),
              p1.add(ridgeDirection.mult(1000))
          ));

        if (intersections.size() < 2) {
          throw new InvalidGeometryException(
              "cannot handle roof geometry for id "
                  + area.getOsmObject().id);
        }
       
        //TODO choose outermost instead of any pair of intersections
View Full Code Here

TOP

Related Classes of org.osm2world.core.math.InvalidGeometryException

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.