public class OsmGeometryConversion extends Object
Constructor and Description |
---|
OsmGeometryConversion(String epsg) |
Modifier and Type | Method and Description |
---|---|
ILineString |
convertOSMLine(OSMWay way,
Collection<OSMResource> nodes)
Converts a way into a
ILineString using a collection of the nodes,
as ways only describe the node id of the vertices. |
static ILineString |
convertOSMLineToLambert93(OSMWay way,
Collection<OSMResource> nodes)
Converts a way into a
ILineString using a collection of the nodes,
as ways only describe the node id of the vertices. |
IPoint |
convertOsmPoint(OSMNode node) |
static IPoint |
convertOsmPointToLambert93(OSMNode node) |
IPolygon |
convertOSMPolygon(OSMWay way,
Collection<OSMResource> nodes)
Converts a way into a
IPolygon using a collection of the nodes, as
ways only describe the node id of the vertices. |
static IPolygon |
convertOSMPolygonToLambert93(OSMWay way,
Collection<OSMResource> nodes)
Converts a way into a
IPolygon using a collection of the nodes, as
ways only describe the node id of the vertices. |
public OsmGeometryConversion(String epsg)
public ILineString convertOSMLine(OSMWay way, Collection<OSMResource> nodes) throws Exception
ILineString
using a collection of the nodes,
as ways only describe the node id of the vertices. The coordinates are
projected in the given coordinate system.way
- nodes
- Exception
public static ILineString convertOSMLineToLambert93(OSMWay way, Collection<OSMResource> nodes)
ILineString
using a collection of the nodes,
as ways only describe the node id of the vertices. The coordinates are
projected in Lambert93 so it doesn't work on non-French data.way
- nodes
- public static IPolygon convertOSMPolygonToLambert93(OSMWay way, Collection<OSMResource> nodes)
IPolygon
using a collection of the nodes, as
ways only describe the node id of the vertices. If the way does not
represent a polygon, returns null. The coordinates are projected in
Lambert93 so it doesn't work on non-French data.way
- nodes
- public IPolygon convertOSMPolygon(OSMWay way, Collection<OSMResource> nodes) throws Exception
IPolygon
using a collection of the nodes, as
ways only describe the node id of the vertices. If the way does not
represent a polygon, returns null.way
- nodes
- Exception
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.