Interface GISPolylineSet<P extends MapPolyline>

    • Method Detail

      • add

        boolean add​(P polyline,
                    double precision,
                    OutputParameter<P> firstNeighbour,
                    OutputParameter<P> secondNeighbour)
        Add the selected polyline inside the tree and replies the two nearest polylines that are already inside the tree.
        Parameters:
        polyline - is the polyline to add
        precision - is the precision (in meters) used to detect the neighbours.
        firstNeighbour - is one of the two nearest polylines that could be connected to the new segment.
        secondNeighbour - is one of the two nearest polylines that could be connected to the new segment.
        Returns:
        true if successfully added, false otherwise
      • getNearestEnd

        P getNearestEnd​(Point2D<?,​?> position)
        Replies the object that has the nearest end to the specified point.
        Parameters:
        position - is the position from which the nearest primitive must be replied.
        Returns:
        the nearest element or null if none.
        See Also:
        getNearestEnd(double, double)
      • getNearestEnd

        P getNearestEnd​(double x,
                        double y)
        Replies the object that has the nearest end to the specified point.
        Parameters:
        x - is the position from which the nearest primitive must be replied.
        y - is the position from which the nearest primitive must be replied.
        Returns:
        the nearest element or null if none.