Uses of Class
org.goplanit.utils.geo.PlanitJtsCrsUtils
-
Packages that use PlanitJtsCrsUtils Package Description org.goplanit.algorithms.shortest Shortest Path algorithms for PlanItorg.goplanit.converter org.goplanit.converter.zoning org.goplanit.graph.directed.modifier org.goplanit.graph.modifier org.goplanit.gtfs.converter.zoning.handler org.goplanit.gtfs.util org.goplanit.io.converter.network org.goplanit.io.xml.network.physical.macroscopic PLANit IO XML parsing for macroscopic networkorg.goplanit.network.transport Integrated network component object classesorg.goplanit.osm.converter.network org.goplanit.osm.converter.zoning.handler org.goplanit.osm.converter.zoning.handler.helper org.goplanit.osm.util org.goplanit.utils.geo org.goplanit.utils.graph.modifier -
-
Uses of PlanitJtsCrsUtils in org.goplanit.algorithms.shortest
Fields in org.goplanit.algorithms.shortest declared as PlanitJtsCrsUtils Modifier and Type Field Description protected PlanitJtsCrsUtils
ShortestPathAStar. geoUtils
CRS based utility class to interpret the position information of vertices -
Uses of PlanitJtsCrsUtils in org.goplanit.converter
Methods in org.goplanit.converter that return PlanitJtsCrsUtils Modifier and Type Method Description protected PlanitJtsCrsUtils
CrsWriterImpl. getGeoUtils()
geo util class based on source Crs (if any) -
Uses of PlanitJtsCrsUtils in org.goplanit.converter.zoning
Methods in org.goplanit.converter.zoning with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description static Pair<MacroscopicLink,Boolean>
ZoningConverterUtils. excludeClosestLinksIncrementallyOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
Exclude the closest link if it is situated on the wrong side of the road, then if links are remaining keep going with removing the then closest if it is also on the wrong side of the road etc.static Collection<MacroscopicLink>
ZoningConverterUtils. excludeLinksOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
create a subset of links from the passed in ones, removing all links for which we can be certain that geometry is located on the wrong side of the road infrastructure geometry.static Collection<LinkSegment>
ZoningConverterUtils. findAccessEntryLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node node, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
Find the link segments that are accessible for the given access link, node, mode combination taking into account the relative location of the transfer zone if needed and mode compatibility.static Collection<? extends LinkSegment>
ZoningConverterUtils. findAccessLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
static org.locationtech.jts.geom.Point
ZoningConverterUtils. findConnectoidLocationForWaitingAreaOnLink(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, double maxAllowedDistanceMeters, Function<Node,String> getOverwrittenWaitingAreaSourceIdForNode, Function<org.locationtech.jts.geom.Point,String> getOverwrittenWaitingAreaSourceIdForPoint, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Deprecated.static org.locationtech.jts.geom.Point
ZoningConverterUtils. findConnectoidLocationForWaitingAreaOnLinkSegment(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLinkSegment accessLinkSegment, String accessLinkSourceId, Mode accessMode, double maxAllowedDistanceMeters, Function<Node,String> getOverwrittenWaitingAreaSourceIdForNode, Function<org.locationtech.jts.geom.Point,String> getOverwrittenWaitingAreaSourceIdForPoint, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
find a suitable connectoid location on the given link based on the constraints that it must be able to reside on a link segment that is in the correct relative position to the transfer zone and supports the access mode on at least one of the designated link segment(s) that is eligible (if any).static boolean
ZoningConverterUtils. hasWaitingAreaPotentialAccessLinkSegmentForLinkNodeModeCombination(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node accessNode, Mode accessMode, Function<Node,String> getOverwrittenWaitingAreaSourceId, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Verify if any valid access link segments exist for the given combination of link, one of its extreme nodes, and the access mode, taking into account any explicit overwrites that may exist that are not bounded by any limitations on compatibility.static Collection<LinkSegment>
ZoningConverterUtils. identifyLinkSegmentsOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<LinkSegment> accessLinkSegments, boolean leftHandDrive, PlanitJtsCrsUtils geoUtils)
Find the access link segments ineligible given the intended location and the access mode.static boolean
ZoningConverterUtils. isPotentialAccessEntryLinkSegmentForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLinkSegment accessLinkSegment, String accessLinkSourceId, Node accessNode, Mode accessMode, Function<Node,String> getOverwrittenWaitingAreaSourceId, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Verify if given link segment is potentially viable as access link segment for the given extreme node and access mode, taking into account any explicit overwrites that may exist that are not bounded by any limitations on compatibility.static boolean
ZoningConverterUtils. isWaitingAreaLeftOfAccessLineSegment(org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLinkSegment accessLinkSegment, org.locationtech.jts.geom.LineSegment accessLinkSegmentLineSegment, PlanitJtsCrsUtils geoUtils)
Verify if the provided line segment (somewhere along the geometry of the access link segment) resides on the correct side of the waiting area location, assuming this matters -
Uses of PlanitJtsCrsUtils in org.goplanit.graph.directed.modifier
Methods in org.goplanit.graph.directed.modifier with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description <Ex extends DirectedEdge>
ExDirectedGraphModifierImpl. breakEdgeAt(DirectedVertex vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)
Identical to theGraphImpl
implementation except that we now also account for the edge segments present on the edge. -
Uses of PlanitJtsCrsUtils in org.goplanit.graph.modifier
Methods in org.goplanit.graph.modifier with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description <Ex extends Edge>
ExGraphModifierImpl. breakEdgeAt(Vertex vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)
Break the passed in edge by inserting the passed in vertex in between. -
Uses of PlanitJtsCrsUtils in org.goplanit.gtfs.converter.zoning.handler
Methods in org.goplanit.gtfs.converter.zoning.handler that return PlanitJtsCrsUtils Modifier and Type Method Description PlanitJtsCrsUtils
GtfsZoningHandlerData. getGeoTools()
Get geo tools to provide PLANit related GIS functionality -
Uses of PlanitJtsCrsUtils in org.goplanit.gtfs.util
Methods in org.goplanit.gtfs.util with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description static boolean
GtfsLinkSegmentHelper. isGeometryOnCorrectSideOfLinkSegment(org.locationtech.jts.geom.Geometry geometry, LinkSegment linkSegment, boolean shouldBeOnLeft, PlanitJtsCrsUtils geoTools)
check if geometry is on correct side of link segment by taking the link segment's extreme nodes as reference point. -
Uses of PlanitJtsCrsUtils in org.goplanit.io.converter.network
Methods in org.goplanit.io.converter.network with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description void
PlanitNetworkReader. parseLinkAndLinkSegments(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils jtsUtils)
parse link and link segments -
Uses of PlanitJtsCrsUtils in org.goplanit.io.xml.network.physical.macroscopic
Methods in org.goplanit.io.xml.network.physical.macroscopic with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description static double
XmlMacroscopicNetworkLayerHelper. parseLength(org.goplanit.xml.generated.XMLElementLinks.Link xmlLink, org.locationtech.jts.geom.LineString theLineString, PlanitJtsCrsUtils jtsUtils)
parse the length of an XML Link based on geometry or length attributestatic Double
XmlMacroscopicNetworkLayerHelper. parseLengthFromLineString(org.goplanit.xml.generated.XMLElementLinks.Link generatedLink, PlanitJtsCrsUtils jtsUtils)
Get the link length from the gml:LineString element in the XML file, if this has been set -
Uses of PlanitJtsCrsUtils in org.goplanit.network.transport
Methods in org.goplanit.network.transport with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description protected void
TransportModelNetwork. createAndRegisterConnectoidEdgeAndEdgeSegments(ConnectoidEdgeFactory connectoidEdgeFactory, ConnectoidSegmentFactory connectoidSegmentFactory, CentroidVertex centroidVertex, Zone accessZone, Connectoid connectoid, PlanitJtsCrsUtils geoTools)
Given context of centroid vertex and connectoid + access zone, we create the required connectoid edges and connected segments with the provided factories -
Uses of PlanitJtsCrsUtils in org.goplanit.osm.converter.network
Methods in org.goplanit.osm.converter.network with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description protected void
OsmNetworkReaderData. initialiseLayerParsers(PlanitOsmNetwork network, OsmNetworkReaderSettings settings, PlanitJtsCrsUtils geoUtils)
initialise for each layerConstructors in org.goplanit.osm.converter.network with parameters of type PlanitJtsCrsUtils Constructor Description OsmNetworkLayerParser(MacroscopicNetworkLayer networkLayer, OsmNetworkReaderData networkData, OsmNetworkReaderSettings settings, PlanitJtsCrsUtils geoUtils)
Constructor -
Uses of PlanitJtsCrsUtils in org.goplanit.osm.converter.zoning.handler
Methods in org.goplanit.osm.converter.zoning.handler that return PlanitJtsCrsUtils Modifier and Type Method Description protected PlanitJtsCrsUtils
OsmZoningHandlerBase. getGeoUtils()
Get geo utils -
Uses of PlanitJtsCrsUtils in org.goplanit.osm.converter.zoning.handler.helper
Methods in org.goplanit.osm.converter.zoning.handler.helper with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description Collection<DirectedConnectoid>
OsmConnectoidHelper. createAndRegisterDirectedConnectoidsOnTopOfTransferZone(TransferZone transferZone, MacroscopicNetworkLayer networkLayer, PredefinedModeType planitModeType, PlanitJtsCrsUtils geoUtils)
Create directed connectoids for transfer zones that reside on OSM ways.TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithConnectoidsAtOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, String defaultOsmMode, TransferZoneType defaultTransferZoneType, PlanitJtsCrsUtils geoUtils)
Method that will attempt to create both a transfer zone and its connectoids at the location of the OSM node.TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsFindAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, String defaultOsmMode, PlanitJtsCrsUtils geoUtils)
Attempt to create a new transfer zone and register it, do not yet create connectoids for it.TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsSetAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, SortedSet<String> eligibleOsmModes, PlanitJtsCrsUtils geoUtils)
Attempt to create a new transfer zone and register it, do not create connectoids for it.boolean
OsmConnectoidHelper. extractDirectedConnectoidsForMode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, boolean locationIsKnownOsmStopPosition, TransferZone transferZone, PredefinedModeType planitModeType, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
boolean
OsmConnectoidHelper. extractDirectedConnectoidsForMode(org.locationtech.jts.geom.Point location, boolean locationIsKnownOsmStopPosition, TransferZone transferZone, PredefinedModeType planitModeType, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
create and/or update directed connectoids for the given mode and layer based on the passed in location where the connectoids access link segments are extracted for. -
Uses of PlanitJtsCrsUtils in org.goplanit.osm.util
Methods in org.goplanit.osm.util with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description static org.locationtech.jts.geom.Envelope
OsmBoundingAreaUtils. createBoundingBox(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, double offsetInMeters, PlanitJtsCrsUtils geoUtils)
create a (Rectangular) bounding box around the osm node geometry based on the provided offsetstatic org.locationtech.jts.geom.Envelope
OsmBoundingAreaUtils. createBoundingBoxForOsmWay(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, double offsetInMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)
create a bounding box based on the provided offset and OSM entity geometry.static MacroscopicLink
PlanitNetworkLayerUtils. createPopulateAndRegisterLink(Node nodeA, Node nodeB, org.locationtech.jts.geom.LineString geometry, MacroscopicNetworkLayer layer, String externalId, String name, PlanitJtsCrsUtils geoUtils)
Default way to create a link (and register it on its nodes) in OSMstatic org.locationtech.jts.geom.Coordinate
OsmNodeUtils. findClosestProjectedCoordinateTo(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, org.locationtech.jts.geom.LineString geometry, PlanitJtsCrsUtils geoUtils)
Create a coordinate at the location that represents the closest point between the osmNode and the passed in geometrystatic Edge
OsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
Find the closest link to the node location.static Edge
OsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, double maxDistanceMeters, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
Find the closest edge to the node location.static Edge
OsmWayUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Edge> edges, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest edge to the way from the available edges.static Edge
OsmWayUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Edge> edges, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest edge to the way from the available edges.static Edge
PlanitOsmUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Collection<? extends Edge> edges, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the link closest to the passed in osm Entitystatic org.locationtech.jts.geom.LineSegment
OsmWayUtils. findMinimumLineSegmentBetween(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, org.locationtech.jts.geom.LineString geometry, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)
find the minimum distance line segment that connects the osmWay to the passed in line string geometryprotected static <T> T
OsmWayUtils. findPlanitEntityClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends T> planitEntities, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest PLANit entity to the way from the available entities.static TransferZone
PlanitTransferZoneUtils. findTransferZoneClosestByTransferGroup(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Collection<? extends TransferZoneGroup> transferZoneGroups, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
Find the zone (within any of the transfer zone groups) closest to the passed in OSM Entitystatic Zone
OsmNodeUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest zone to the node location.static Zone
OsmNodeUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest zone to the node location.static Zone
OsmWayUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Zone> zones, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
Find the closest zone to the way .static Zone
OsmWayUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Zone> zones, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
Find the closest zone to the way .static Zone
OsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
find the closest zone to the node location.static Zone
OsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)
identical to findZoneWithClosest coordinate that requires a maximum search distance.static MacroscopicLink
PlanitLinkOsmUtils. 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.static boolean
OsmBoundingAreaUtils. isNearNetworkBoundingBox(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope networkBoundingBox, PlanitJtsCrsUtils geoUtils)
check if geometry is near network bounding box using buffer based on PlanitOsmNetworkReaderData.BOUNDINGBOX_NEARNESS_DISTANCE_METERSstatic void
OsmBoundingAreaUtils. logWarningIfNotNearBoundingBox(String message, org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope boundingBox, PlanitJtsCrsUtils geoUtils)
log the given warning message but only when it is not too close to the bounding box, because then it is too likely that it is discarded due to missing infrastructure or other missing assets that could not be parsed fully as they pass through the bounding box barrier. -
Uses of PlanitJtsCrsUtils in org.goplanit.utils.geo
Methods in org.goplanit.utils.geo with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description static <T extends EdgeSegment>
org.locationtech.jts.geom.LineSegmentPlanitGraphGeoUtils. extractClosestLineSegmentTo(org.locationtech.jts.geom.Geometry referenceGeometry, T edgeSegment, PlanitJtsCrsUtils geoUtils)
Extract the JTS line segment from the edge segment that is closest to the reference geometry in its intended direction.static org.locationtech.jts.geom.LineSegment
PlanitEntityGeoUtils. extractClosestLineSegmentToGeometryFromLinkSegment(org.locationtech.jts.geom.Geometry referenceGeometry, LinkSegment linkSegment, PlanitJtsCrsUtils geoUtils)
Extract the closest existing linear line segment based on the closest two coordinates on the link segment geometry in its intended direction to the reference geometry providedstatic org.locationtech.jts.linearref.LinearLocation
PlanitEntityGeoUtils. extractClosestProjectedLinearLocationToGeometryFromEdge(org.locationtech.jts.geom.Geometry referenceGeometry, Edge accessEdge, PlanitJtsCrsUtils geoUtils)
Find the linear location reflecting the closest projected location between the transfer zone and link geometries.static Edge
PlanitGraphGeoUtils. findEdgeClosest(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in geometry using a projection from any existing coordinate on the geometry to the geometry of the link.static Edge
PlanitGraphGeoUtils. findEdgeClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in line string using a projection from any existing coordinate on the line string to the geometry of the link.static Edge
PlanitGraphGeoUtils. findEdgeClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in point using a projection from any existing coordinate on the geometry to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosest(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, double marginToClosestMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in geometry as well as all other edges within the provided marging using a projection from any existing coordinate on the geometry to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToGeometry(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in geometry as well as all other edges within the given margin using a projection from any existing coordinate on the geometry to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in line string using a projection from any existing coordinate on the line string to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in point as well as all other edges within the given margin using a projection from any existing coordinate on the geometry to the geometry of the link.static <T extends Edge>
Map<T,Double>PlanitGraphGeoUtils. findEdgesWithinClosestDistanceDeltaToGeometry(org.locationtech.jts.geom.Geometry geometry, Collection<T> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edges within the given buffer distance (around shortest distance found) to the passed in geometry using a projection from any existing coordinate on the geometry to the geometry of the link.protected static <T> Map<T,Double>
PlanitGraphGeoUtils. findPlanitEntitiesDistance(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, PlanitJtsCrsUtils geoUtils)
Find the distances to the reference point and the geometry for all given PLANit entities with a supported geometry from the provided collection.protected static <T> Map<T,Double>
PlanitGraphGeoUtils. findPlanitEntitiesDistance(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, PlanitJtsCrsUtils geoUtils)
Find the distances to the line string and the geometry for all given PLANit entities with a supported geometry from the provided collection.protected static <T> Set<? extends T>
PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.protected static <T> Set<? extends T>
PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.static <T> Pair<T,Double>
PlanitEntityGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate coord, Collection<? extends T> planitEntities, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
identical toPlanitEntityGeoUtils.findPlanitEntityClosest(Coordinate, Collection, double, boolean, PlanitJtsCrsUtils)
but without a distance criteriastatic <T> Pair<T,Double>
PlanitEntityGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate coord, Collection<? extends T> planitEntities, double maxDistanceMeters, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest distance to the coordinate for some PLANit entity with a supported geometry from the provided collection.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest distance to the reference point and the geometry for some PLANit entity with a supported geometry from the provided collection.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest PLANit entity to the line string from the available entities.protected static <T> Double
PlanitGraphGeoUtils. findPlanitEntityDistance(org.locationtech.jts.geom.Coordinate reference, T planitEntity, PlanitJtsCrsUtils geoUtils)
Find the closest distance to the reference point and the geometry for some PLANit entity with a supported geometry from the provided collection.static double
PlanitEntityGeoUtils. getDistanceToEdge(org.locationtech.jts.geom.Coordinate coord, Edge edge, PlanitJtsCrsUtils geoUtils)
find the distance from the edge to the point.static double
PlanitEntityGeoUtils. getDistanceToZone(org.locationtech.jts.geom.Coordinate coord, Zone zone, PlanitJtsCrsUtils geoUtils)
find the distance from the zone to the coordinate.static boolean
PlanitGraphGeoUtils. isVertexNearBoundingBox(Vertex node, org.locationtech.jts.geom.Envelope boundingBox, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Verify if node is within maximum distance of provided bounding box -
Uses of PlanitJtsCrsUtils in org.goplanit.utils.graph.modifier
Methods in org.goplanit.utils.graph.modifier with parameters of type PlanitJtsCrsUtils Modifier and Type Method Description <Ex extends E>
ExGraphModifier. breakEdgeAt(V vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)
Break the passed in edge by inserting the passed in vertex in between.
-