Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.vividsolutions.jts.geom.util
Class PointExtracter

    java.lang.Object
      com.vividsolutions.jts.geom.util.PointExtracter

All Implemented Interfaces:
  GeometryFilter

public class PointExtracter
extends java.lang.Object
implements GeometryFilter

Extracts all the 0-dimensional (`Point`) components from a `Geometry`.

Version:
  1.7

Constructor Summary
`PointExtracter(java.util.List pts)` Constructs a PointExtracterFilter with a list in which to store Points found.

Method Summary
`void` | `filter(Geometry geom)` Performs an operation with or on `geom`.
`static java.util.List` | `getPoints(Geometry geom)` Returns the Point components from a single geometry.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PointExtracter

    public PointExtracter(java.util.List pts)

  Constructs a PointExtracterFilter with a list in which to store Points found.

Method Detail

### getPoints

    public static java.util.List getPoints(Geometry geom)

  Returns the Point components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a single `PointExtracterFilter` instance and pass it to multiple geometries.

### filter

    public void filter(Geometry geom)

  Description copied from interface: `GeometryFilter`
  Performs an operation with or on `geom`.

  Specified by:
    `filter` in interface `GeometryFilter`
  Parameters:
    `geom` - a `Geometry` to which the filter is applied.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD