Class SegmentStringsWithData2Features

java.lang.Object
com.vividsolutions.jump.plugin.edit.SegmentStringsWithData2Features

public class SegmentStringsWithData2Features extends Object
Utility class used for noded Geometry reconstruction. It has two public methods :
  • One to build a Geometry from a set of noded SegmentString carrying their SegmentStringData
  • The second to build a full map containing Features and their corresponding SegmentString's Map
Author:
Michaël Michaud
  • Method Details

    • buildGeometry

      public static org.locationtech.jts.geom.Geometry buildGeometry(org.locationtech.jts.geom.Geometry source, Map<Integer, Map<Integer, List<org.locationtech.jts.noding.SegmentString>>> nodedSegmentStrings, boolean interpolate_z, int interpolated_z_dp, org.locationtech.jts.geom.GeometryFactory gf)
      Build a new noded geometry from the source Geometry and a structured map of its SegmentStrings.
      Parameters:
      source - the source geometry
      nodedSegmentStrings - the hierarchical map of noded segment strings
      interpolate_z - whether the z of SegmentString ends must be interpolated or not
      interpolated_z_dp - is the number of decimal digits to keep in interpolated z values
    • getFeature2SegmentStringTreeMap

      public static Map<Feature, Map<Integer, Map<Integer, List<org.locationtech.jts.noding.SegmentString>>>> getFeature2SegmentStringTreeMap(Collection nodedSubstring)
      Creates a hierarchical structure containing all edges derived from Geometry components and linear elements as SegmentStrings.