Class WayPoint

java.lang.Object
org.openstreetmap.josm.data.gpx.WithAttributes
org.openstreetmap.josm.data.gpx.WayPoint
All Implemented Interfaces:
Comparable<WayPoint>, ILatLon, GpxConstants, IWithAttributes, TemplateEngineDataProvider

A point in the GPX data
Since:
12167 implements ILatLon
  • Field Details

    • customColoring

      The color to draw the segment before this point in
      See Also:
    • drawLine

      public boolean drawLine
      true indicates that the line before this point should be drawn
    • dir

      public int dir
      The direction of the line before this point. Used as cache to speed up drawing. Should not be relied on.
    • lat

      private final double lat
    • lon

      private final double lon
    • east

      private double east
    • north

      private double north
    • eastNorthCacheKey

  • Constructor Details

    • WayPoint

      public WayPoint(WayPoint p)
      Constructs a new WayPoint from an existing one. Except for PT_TIME attribute, all attribute objects are shallow copied. This means modification of attr objects will affect original and new WayPoint.
      Parameters:
      p - existing waypoint
    • WayPoint

      public WayPoint(LatLon ll)
      Constructs a new WayPoint from lat/lon coordinates.
      Parameters:
      ll - lat/lon coordinates
  • Method Details