Uses of Class
org.goplanit.utils.geo.PlanitJtsCrsUtils
-
Packages that use PlanitJtsCrsUtils Package Description org.goplanit.algorithms.shortestpath Shortest Path algorithms for PlanItorg.goplanit.graph.modifier org.goplanit.io.converter org.goplanit.io.converter.network org.goplanit.io.xml.network.physical.macroscopic PLANit IO XML parsing for macroscopic networkorg.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.shortestpath
Fields in org.goplanit.algorithms.shortestpath declared as PlanitJtsCrsUtils Modifier and Type Field Description protected PlanitJtsCrsUtils
AStarShortestPathAlgorithm. geoUtils
CRS based utility class to interpret the position information of vertices -
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 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.<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.io.converter
Methods in org.goplanit.io.converter that return PlanitJtsCrsUtils Modifier and Type Method Description protected PlanitJtsCrsUtils
PlanitWriterImpl. getGeoUtils()
geo util class based on source Crs (if any) -
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.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>
ConnectoidHelper. createAndRegisterDirectedConnectoidsOnTopOfTransferZone(TransferZone transferZone, MacroscopicNetworkLayer networkLayer, Mode planitMode, PlanitJtsCrsUtils geoUtils)
Create directed connectoids for transfer zones that reside on osw 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, Collection<String> eligibleOsmModes, PlanitJtsCrsUtils geoUtils)
Attempt to create a new transfer zone and register it, do not create connectoids for it.boolean
ConnectoidHelper. extractDirectedConnectoidsForMode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, TransferZone transferZone, Mode planitMode, PlanitJtsCrsUtils geoUtils)
create and/or update directed connectoids for the given mode and layer based on the passed in osm node (location) where the connectoids access link segments are extracted for.boolean
ConnectoidHelper. extractDirectedConnectoidsForMode(org.locationtech.jts.geom.Point location, TransferZone transferZone, Mode planitMode, Collection<Link> eligibleAccessLinks, 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 Collection<Link>
PlanitLinkUtils. excludeLinksOnWrongSideOf(org.locationtech.jts.geom.Geometry waitingAreaGeometry, Collection<Link> links, boolean isLeftHandDrive, Collection<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 org.locationtech.jts.geom.LineSegment
PlanitLinkSegmentUtils. extractClosestLineSegmentToGeometryFromLinkSegment(org.locationtech.jts.geom.Geometry referenceGeometry, MacroscopicLinkSegment linkSegment, PlanitJtsCrsUtils geoUtils)
Extract a JTS 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
PlanitTransferZoneUtils. extractClosestProjectedLinearLocationOnEdgeForTransferZone(TransferZone transferZone, Edge accessEdge, PlanitJtsCrsUtils geoUtils)
Find the linear location reflecting the closest projected location between the transfer zone and link geometries.static 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, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest edge to the node location.static Edge
OsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the closest link 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, 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, 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, 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, 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, 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, double maxDistanceMeters, 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, 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, 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, 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 Link
PlanitLinkUtils. 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 double
OsmNodeUtils. getDistanceToZone(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Zone zone, PlanitJtsCrsUtils geoUtils)
find the distance from the zone to the node.static Collection<EdgeSegment>
PlanitTransferZoneUtils. identifyInvalidTransferZoneAccessLinkSegmentsBasedOnRelativeLocationToInfrastructure(Collection<EdgeSegment> accessLinkSegments, TransferZone transferZone, Mode planitMode, boolean leftHandDrive, PlanitJtsCrsUtils geoUtils)
Find the access link segments ineligible given the intended location of the to be created connectoid, the transfer zone provided, and the access mode.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 boolean
PlanitTransferZoneUtils. isTransferZoneLeftOf(TransferZone transferZone, org.locationtech.jts.geom.Coordinate coordA, org.locationtech.jts.geom.Coordinate coordB, PlanitJtsCrsUtils geoUtils)
Verify of the transfer zone resides left of the line coordA to coordBstatic 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 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.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> Map<T,Double>
PlanitGraphGeoUtils. findPlanitEntitiesDistance(org.locationtech.jts.geom.Point referencePoint, 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> 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.protected static <T> Set<? extends T>
PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.Point referencePoint, 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> 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> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Point referencePoint, 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> Double
PlanitGraphGeoUtils. findPlanitEntityDistance(org.locationtech.jts.geom.Point referencePoint, 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 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.
-