Package org.openstreetmap.josm.data.osm
Class MultipolygonBuilder.JoinedPolygon
java.lang.Object
org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon
- Enclosing class:
- MultipolygonBuilder
Represents one polygon that consists of multiple ways.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Areathe area in east/north spacethe nodes of the polygon, first node is not duplicated as last node.list of flags that indicate if the nodes of the way in the same position where reversedlist of ways building this polygon -
Constructor Summary
ConstructorsConstructorDescriptionJoinedPolygon(List<Way> ways, List<Boolean> reversed) Constructs a newJoinedPolygonfrom given list of ways.JoinedPolygon(Way way) Creates a polygon from single way. -
Method Summary
-
Field Details
-
ways
list of ways building this polygon -
reversed
list of flags that indicate if the nodes of the way in the same position where reversed -
nodes
the nodes of the polygon, first node is not duplicated as last node. -
area
the area in east/north space
-
-
Constructor Details
-
JoinedPolygon
Constructs a newJoinedPolygonfrom given list of ways.- Parameters:
ways- The ways used to build joined polygonreversed- list of reversed states
-
JoinedPolygon
Creates a polygon from single way.- Parameters:
way- the way to form the polygon
-
-
Method Details
-
getNodes
Builds a list of nodes for this polygon. First node is not duplicated as last node.- Returns:
- list of nodes
-