public class GeometryBuilder extends Object
| Constructor and Description |
|---|
GeometryBuilder()
|
| Modifier and Type | Method and Description |
|---|---|
static Point |
build(OsmNode
Build a Point from the given node.
|
static MultiPolygon |
build(OsmRelation
Build a MultiPolygon from a Relation.
|
static LineString |
build(OsmWay
Build a LinesString from the given way.
|
static Coordinate |
buildCoordinate(OsmNode
Build a Coordinate from the given node.
|
public static CoordinatebuildCoordinate(OsmNode node)
node - the node to use for building.
public static Pointbuild(OsmNode node)
node - the node to use for building.
public static LineStringbuild(OsmWay way, OsmEntityProvider resolver) throws EntityNotFoundException
way - the way to use for building.
EntityNotFoundException - if a node cannot be resolved.
public static MultiPolygonbuild(OsmRelation relation, OsmEntityProvider resolver) throws EntityNotFoundException
relation - a relation to construct the region for.
EntityNotFoundException - when a required entity cannot be obtained.