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

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

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

origin: mil.nga/sf

/**
 * Get the mathematical centroid for this Geometry as a Point
 * 
 * @return centroid point
 */
public Point getCentroid() {
  return GeometryUtils.getCentroid(this);
}
mil.nga.sf.utilGeometryUtilsgetCentroid

Javadoc

Get the centroid point of the Geometry

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
  • 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
  • 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

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Path (java.nio.file)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Github Copilot alternatives
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