Class NodeOSMElement


  • public class NodeOSMElement
    extends OSMElement
    A class to manage the node element properties.
    Author:
    Erwan Bocher
    • Constructor Detail

      • NodeOSMElement

        public NodeOSMElement​(double latitude,
                              double longitude)
        Constructor
        Parameters:
        latitude - Latitude value
        longitude - Longitude value
    • Method Detail

      • setElevation

        public void setElevation​(double elevation)
        Parameters:
        elevation - Elevation (also known as altitude or height) above mean sea level in metre, based on geoid model EGM 96 which is used by WGS 84 (GPS).
      • getPoint

        public org.locationtech.jts.geom.Point getPoint​(org.locationtech.jts.geom.GeometryFactory gf)
        The geometry of the node
        Returns:
        Point value
      • getElevation

        public Double getElevation()
        Returns:
        Elevation (also known as altitude or height) above mean sea level in metre, based on geoid model EGM 96 which is used by WGS 84 (GPS).
      • addTag

        public boolean addTag​(String key,
                              String value)
        Overrides:
        addTag in class OSMElement
        Returns:
        True if the tag should be inserted in the tag table.