Class MultipolygonBuilder.JoinedPolygon

java.lang.Object
org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon
Enclosing class:
MultipolygonBuilder

public static class MultipolygonBuilder.JoinedPolygon extends Object
Represents one polygon that consists of multiple ways.
  • Field Details

    • ways

      public final List<Way> ways
      list of ways building this polygon
    • reversed

      public final List<Boolean> reversed
      list of flags that indicate if the nodes of the way in the same position where reversed
    • nodes

      public final List<Node> nodes
      the nodes of the polygon, first node is not duplicated as last node.
    • area

      public final Area area
      the area in east/north space
  • Constructor Details

    • JoinedPolygon

      public JoinedPolygon(List<Way> ways, List<Boolean> reversed)
      Constructs a new JoinedPolygon from given list of ways.
      Parameters:
      ways - The ways used to build joined polygon
      reversed - list of reversed states
    • JoinedPolygon

      public JoinedPolygon(Way way)
      Creates a polygon from single way.
      Parameters:
      way - the way to form the polygon
  • Method Details

    • getNodes

      public List<Node> getNodes()
      Builds a list of nodes for this polygon. First node is not duplicated as last node.
      Returns:
      list of nodes