Package org.goplanit.osm.util
Class PlanitLinkOsmUtils
- java.lang.Object
-
- org.goplanit.osm.util.PlanitLinkOsmUtils
-
public class PlanitLinkOsmUtils extends Object
Utilities regarding PLANit links useful when parsing OSM entities- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PlanitLinkOsmUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MacroscopicLink
getClosestLinkWithOsmWayIdToGeometry(long osmWayId, org.locationtech.jts.geom.Geometry geometry, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils geoUtils)
Collect the closest by link (with the given OSM way id on the layer) to the provided geometry.
-
-
-
Method Detail
-
getClosestLinkWithOsmWayIdToGeometry
public static MacroscopicLink getClosestLinkWithOsmWayIdToGeometry(long osmWayId, org.locationtech.jts.geom.Geometry geometry, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils geoUtils)
Collect the closest by link (with the given OSM way id on the layer) to the provided geometry. This is a very slow method as we lookup the link via the un-indexed external id. Use cautiously.- Parameters:
osmWayId
- to filter links ongeometry
- to check closeness againstnetworkLayer
- the link must reside ongeoUtils
- to use for closeness computations- Returns:
- found link (null if none)
-
-