Class MultipolygonBuilder.JoinedPolygon

    • Field Detail

      • 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 Detail

      • 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 Detail

      • getNodes

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