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

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

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

origin: mil.nga/sf

/**
 * Normalize the curve polygon
 * 
 * @param curvePolygon
 *            curve polygon
 * @param maxX
 *            max positive x value in the geometry projection
 */
private static void normalize(CurvePolygon<Curve> curvePolygon, double maxX) {
  for (Curve ring : curvePolygon.getRings()) {
    normalizeGeometry(ring, maxX);
  }
}
origin: mil.nga/sf

GeometryCollection<Geometry> geomCollection = (GeometryCollection<Geometry>) geometry;
for (Geometry subGeometry : geomCollection.getGeometries()) {
  normalizeGeometry(subGeometry, maxX);
mil.nga.sf.utilGeometryUtilsnormalizeGeometry

Javadoc

Normalize the geometry so all points outside of the min and max value range are adjusted to fall within the range. Example: For WGS84 provide a max x of 180.0. Resulting x values will be in the range: -180.0

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
  • minimize
    Minimize the polyhedral surface
  • minimizeGeometry
    Minimize the geometry using the shortest x distance between each connected set of points. The result
  • normalize
    Normalize the polyhedral surface
  • 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
  • Top PhpStorm 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