object GeometrySnapper
Snaps the vertices and segments of a {link Geometry} to another Geometry's vertices. A snap distance tolerance is used to control where snapping is performed. Snapping one geometry to another can improve robustness for overlay operations by eliminating nearly-coincident edges (which cause problems during noding and intersection calculation). It can also be used to eliminate artifacts such as narrow slivers, spikes and gores.
Too much snapping can result in invalid topology being created, so the number and location of snapped vertices is decided using heuristics to determine when it is safe to snap. This can result in some potential snaps being omitted, however.
- Version
1.7
- Alphabetic
- By Inheritance
- GeometrySnapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def computeOverlaySnapTolerance(g0: Geometry, g1: Geometry): Double
- def computeOverlaySnapTolerance(g: Geometry): Double
Estimates the snap tolerance for a Geometry, taking into account its precision model.
Estimates the snap tolerance for a Geometry, taking into account its precision model.
- g
a Geometry return the estimated snap tolerance
- def computeSizeBasedSnapTolerance(g: Geometry): Double
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def snap(g0: Geometry, g1: Geometry, snapTolerance: Double): Array[Geometry]
Snaps two geometries together with a given tolerance.
Snaps two geometries together with a given tolerance.
- g0
a geometry to snap
- g1
a geometry to snap
- snapTolerance
the tolerance to use return the snapped geometries
- def snapToSelf(geom: Geometry, snapTolerance: Double, cleanResult: Boolean): Geometry
Snaps a geometry to itself.
Snaps a geometry to itself. Allows optionally cleaning the result to ensure it is topologically valid (which fixes issues such as topology collapses in polygonal inputs).
Snapping a geometry to itself can remove artifacts such as very narrow slivers, gores and spikes.
- geom
the geometry to snap
- snapTolerance
the snapping tolerance
- cleanResult
whether the result should be made valid return a new snapped Geometry
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()