Class OsmNetworkReader

    • Method Detail

      • initialiseBeforeParsing

        public void initialiseBeforeParsing()
                                     throws PlanItException
        Call this BEFORE we parse the OSM network to initialise the handler(s) properly
        Throws:
        PlanItException - thrown if error
      • getNetworkReaderData

        protected OsmNetworkReaderData getNetworkReaderData()
        Collect the network data gathered
        Returns:
        network data
      • removeDanglingSubNetworks

        protected void removeDanglingSubNetworks()
                                          throws PlanItException
        Remove dangling subnetworks when settings dictate it
        Throws:
        PlanItException - thrown if error
      • removeDanglingSubNetworks

        public void removeDanglingSubNetworks​(Zoning zoning)
                                       throws PlanItException
        remove dangling subnetworks when settings dictate it. In case the removal of subnetworks causes zones to become dangling the user is required to remove those afterwards themselves, by providing the zoning, only the directly impacted connectoids are removed if affected.
        Parameters:
        zoning - to also remove connectoids from when they reference removed road/rail subnetworks
        Throws:
        PlanItException - thrown if error
      • reset

        public void reset()
        reset the reader to allow for marking unnecessary resources for garbage collection
        Specified by:
        reset in interface ConverterEntity
      • createNetworkToZoningReaderData

        public OsmNetworkToZoningReaderData createNetworkToZoningReaderData()
        Factory method to create bridging data required for an OSM zoning reader to successfully parse the Pt zones based on the osm network parsed by this network reader. Without this data it is not possible to relate the two properly
        Returns:
        created network to zoning reader data to use