congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GeometryUtils.minimize
Code IndexAdd Tabnine to your IDE (free)

How to use
minimize
method
in
mil.nga.sf.util.GeometryUtils

Best Java code snippets using mil.nga.sf.util.GeometryUtils.minimize (Showing top 6 results out of 315)

origin: mil.nga/sf

/**
 * Minimize the polygon
 * 
 * @param polygon
 *            polygon
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void minimize(Polygon polygon, double maxX) {
  for (LineString ring : polygon.getRings()) {
    minimize(ring, maxX);
  }
}
origin: mil.nga/sf

switch (geometryType) {
case LINESTRING:
  minimize((LineString) geometry, maxX);
  break;
case POLYGON:
  minimize((Polygon) geometry, maxX);
  break;
case MULTILINESTRING:
  minimize((MultiLineString) geometry, maxX);
  break;
case MULTIPOLYGON:
  minimize((MultiPolygon) geometry, maxX);
  break;
case CIRCULARSTRING:
  minimize((CircularString) geometry, maxX);
  break;
case COMPOUNDCURVE:
  minimize((CompoundCurve) geometry, maxX);
  break;
case CURVEPOLYGON:
  @SuppressWarnings("unchecked")
  CurvePolygon<Curve> curvePolygon = (CurvePolygon<Curve>) geometry;
  minimize(curvePolygon, maxX);
  break;
case POLYHEDRALSURFACE:
  minimize((PolyhedralSurface) geometry, maxX);
  break;
case TIN:
  minimize((TIN) geometry, maxX);
origin: mil.nga/sf

/**
 * Minimize the polyhedral surface
 * 
 * @param polyhedralSurface
 *            polyhedral surface
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void minimize(PolyhedralSurface polyhedralSurface,
    double maxX) {
  for (Polygon polygon : polyhedralSurface.getPolygons()) {
    minimize(polygon, maxX);
  }
}
origin: mil.nga/sf

/**
 * Minimize the multi polygon
 * 
 * @param multiPolygon
 *            multi polygon
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void minimize(MultiPolygon multiPolygon, double maxX) {
  List<Polygon> polygons = multiPolygon.getPolygons();
  for (Polygon polygon : polygons) {
    minimize(polygon, maxX);
  }
}
origin: mil.nga/sf

/**
 * Minimize the compound curve
 * 
 * @param compoundCurve
 *            compound curve
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void minimize(CompoundCurve compoundCurve, double maxX) {
  for (LineString lineString : compoundCurve.getLineStrings()) {
    minimize(lineString, maxX);
  }
}
origin: mil.nga/sf

/**
 * Minimize the multi line string
 * 
 * @param multiLineString
 *            multi line string
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void minimize(MultiLineString multiLineString, double maxX) {
  List<LineString> lineStrings = multiLineString.getLineStrings();
  for (LineString lineString : lineStrings) {
    minimize(lineString, maxX);
  }
}
mil.nga.sf.utilGeometryUtilsminimize

Javadoc

Minimize the compound curve

Popular methods of GeometryUtils

  • simplifyPoints
    Simplify the ordered points (representing a line, polygon, etc) using the Douglas Peucker algorithm
  • hasM
    Determine if the geometries contain a M value
  • hasZ
    Determine if the geometries contain a Z value
  • closedPolygon
    Check if the polygon outer ring is explicitly closed, where the first and last point are the same
  • distance
    Get the Pythagorean theorem distance between two points
  • getCentroid
    Get the centroid point of the Geometry
  • getDimension
    Get the dimension of the Geometry, 0 for points, 1 for curves, 2 for surfaces. If a collection, the
  • minimizeGeometry
    Minimize the geometry using the shortest x distance between each connected set of points. The result
  • normalize
    Normalize the polyhedral surface
  • normalizeGeometry
    Normalize the geometry so all points outside of the min and max value range are adjusted to fall wit
  • perpendicularDistance
    Calculate the perpendicular distance between the point and the line represented by the start and end
  • pointInPolygon
    Check if the point is in the polygon
  • perpendicularDistance,
  • pointInPolygon,
  • pointOnLine,
  • pointOnPath,
  • pointOnPolygonEdge

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • startActivity (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now