Class SegmentStringUtil


  • public class SegmentStringUtil
    extends Object
    Utility methods for processing SegmentStrings.
    Author:
    Martin Davis
    • Constructor Detail

      • SegmentStringUtil

        public SegmentStringUtil()
    • Method Detail

      • extractSegmentStrings

        public static List extractSegmentStrings​(Geometry geom)
        Extracts all linear components from a given Geometry to SegmentStrings. The SegmentString data item is set to be the source Geometry.
        Parameters:
        geom - the geometry to extract from
        Returns:
        a List of SegmentStrings
      • extractNodedSegmentStrings

        public static List extractNodedSegmentStrings​(Geometry geom)
        Extracts all linear components from a given Geometry to NodedSegmentStrings. The SegmentString data item is set to be the source Geometry.
        Parameters:
        geom - the geometry to extract from
        Returns:
        a List of NodedSegmentStrings
      • extractBasicSegmentStrings

        public static List extractBasicSegmentStrings​(Geometry geom)
        Extracts all linear components from a given Geometry to BasicSegmentStrings. The SegmentString data item is set to be the source Geometry.
        Parameters:
        geom - the geometry to extract from
        Returns:
        a List of BasicSegmentStrings
      • toString

        public static String toString​(List segStrings)