Class ElevationFilter

  • All Implemented Interfaces:
    org.locationtech.jts.geom.CoordinateSequenceFilter

    public final class ElevationFilter
    extends Object
    implements org.locationtech.jts.geom.CoordinateSequenceFilter
    • Constructor Detail

      • ElevationFilter

        public ElevationFilter​(ProfileBuilder profileBuilder,
                               boolean resetZ)
        Constructor
        Parameters:
        profileBuilder - Initialised instance of profileBuilder
        resetZ - If filtered geometry contain Z and resetZ is false, do not update Z.
    • Method Detail

      • reset

        public void reset()
      • filter

        public void filter​(org.locationtech.jts.geom.CoordinateSequence coordinateSequence,
                           int i)
        Specified by:
        filter in interface org.locationtech.jts.geom.CoordinateSequenceFilter
        Parameters:
        coordinateSequence - the CoordinateSequence to which the filter is applied
        i - the index of the coordinate to apply the filter to
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface org.locationtech.jts.geom.CoordinateSequenceFilter
      • isGeometryChanged

        public boolean isGeometryChanged()
        Specified by:
        isGeometryChanged in interface org.locationtech.jts.geom.CoordinateSequenceFilter