Class ComponentCoordinateExtracter

    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentCoordinateExtracter​(java.util.List coords)
      Constructs a LineExtracterFilter with a list in which to store LineStrings found.
    • Constructor Detail

      • ComponentCoordinateExtracter

        public ComponentCoordinateExtracter​(java.util.List coords)
        Constructs a LineExtracterFilter with a list in which to store LineStrings found.
    • Method Detail

      • getCoordinates

        public static java.util.List getCoordinates​(Geometry geom)
        Extracts a representative Coordinate from each connected component in a geometry.

        If more than one geometry is to be processed, it is more efficient to create a single ComponentCoordinateExtracter instance and pass it to each geometry.

        Parameters:
        geom - the Geometry from which to extract
        Returns:
        a list of representative Coordinates