public void Filter(CoordinateSequence seq, int index)
            {
                if (index == 0)
                {
                    return;
                }

                var p0    = seq.GetCoordinate(index - 1);
                var p1    = seq.GetCoordinate(index);
                var midPt = new Coordinate(
                    (p0.X + p1.X) / 2,
                    (p0.Y + p1.Y) / 2);

                minPtDist.Initialize();
                DistanceToPointFinder.ComputeDistance(geom, midPt, minPtDist);
                maxPtDist.SetMaximum(minPtDist);
            }
 public void Filter(Coordinate pt)
 {
     minPtDist.Initialize();
     DistanceToPointFinder.ComputeDistance(geom, pt, minPtDist);
     maxPtDist.SetMaximum(minPtDist);
 }