Package com.vividsolutions.jts.algorithm

Examples of com.vividsolutions.jts.algorithm.InteriorPointLine


        } catch (Throwable t) { // NOPMD
          // BUG in JTS for some valid geometries ? fall back to centroid
          log.warn("getInteriorPoint() failed", t);
        }
      } else if (geometry instanceof LineString || geometry instanceof MultiLineString) {
        InteriorPointLine ipa = new InteriorPointLine(geometry);
        labelPoint = ipa.getInteriorPoint();
      } else {
        labelPoint = geometry.getCentroid().getCoordinate();
      }
    }
    if (null == labelPoint && null != geometry) {
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.algorithm.InteriorPointLine

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.