Class ComponentCoordinateExtracter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List coords  
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(Geometry geom)
      Performs an operation with or on geom.
      static java.util.List getCoordinates​(Geometry geom)
      Extracts the linear components from a single geometry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • coords

        private java.util.List coords
    • 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 the linear components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a single ComponentCoordinateExtracter instance and pass it to multiple geometries.
        Parameters:
        geom - the Geometry from which to extract
        Returns:
        a list of Coordinates