Class OsmNetworkToZoningReaderData


  • public class OsmNetworkToZoningReaderData
    extends Object
    Class that hosts all the data gathered (e.g., references, mappings, etc.) during the parsing of the OSM network that is also of use to the OSM zoning reader. It is used by the intermodal OSM reader to pass this information along in an elegant fashion.
    Author:
    markr
    • Constructor Detail

      • OsmNetworkToZoningReaderData

        protected OsmNetworkToZoningReaderData​(OsmNetworkReaderData networkData,
                                               OsmNetworkReaderSettings networkReaderSettings)
        Constructor
        Parameters:
        networkData - to use
        networkReaderSettings - to use
    • Method Detail

      • getNetworkLayerData

        public OsmNetworkReaderLayerData getNetworkLayerData​(NetworkLayer networkLayer)
        Collect layer specific data
        Parameters:
        networkLayer - to collect for
        Returns:
        layer data
      • getNetworkBoundingBox

        public org.locationtech.jts.geom.Envelope getNetworkBoundingBox()
        collect the bounding box of the network that is parsed
        Returns:
        network bounding box
      • getNetworkSettings

        public OsmNetworkReaderSettings getNetworkSettings()
        network reader settings as used for populating the planti network absed on osm data
        Returns:
        network reader settings used
      • getNetworkOsmNodes

        public Map<Long,​de.topobyte.osm4j.core.model.iface.OsmNode> getNetworkOsmNodes()
        Collect the retained OSM nodes used to extract PLANit network infrastructure
        Returns:
        retained OSM nodes
      • registerNetworkOsmNode

        public void registerNetworkOsmNode​(de.topobyte.osm4j.core.model.iface.OsmNode osmNode)
        Register additional OSM nodes as being part of the network after the network has been parsed. This may happen when we artificially expand the network while identifying OSM nodes that should in fact be part of the network, such as dangling ferry stops that we want to connect.
        Parameters:
        osmNode - node to register
      • isOsmWayProcessedAndUnavailable

        public boolean isOsmWayProcessedAndUnavailable​(long osmWayId)
        Verify if an OSM way is processed but identified as unavailable. Any subsequent dependencies on this OSM way can be safely ignored without issuing further warnings
        Parameters:
        osmWayId - to verify
        Returns:
        true when processed and unavailable, false otherwise