Class UpdateZoning


  • public class UpdateZoning
    extends Object
    This class contains methods to update the Zoning object using input values from the XML zoning input file.
    Author:
    gman6028
    • Constructor Detail

      • UpdateZoning

        public UpdateZoning()
    • Method Detail

      • getCentrePointGeometry

        public static org.opengis.geometry.DirectPosition getCentrePointGeometry​(org.planit.xml.generated.XMLElementZones.Zone zone)
                                                                          throws PlanItException
        Generates an OpenGIS DirectPosition object for the Centroid location from the generated Zone object
        Parameters:
        zone - current generated Zone object
        Returns:
        DirectPosition object containing the location of the centroid
        Throws:
        PlanItException - thrown if there is an error during processing
      • registerNewConnectoid

        public static void registerNewConnectoid​(Zoning zoning,
                                                 PhysicalNetwork.Nodes nodes,
                                                 org.planit.xml.generated.XMLElementZones.Zone zone,
                                                 Centroid centroid,
                                                 InputBuilderListener inputBuilderListener)
                                          throws PlanItException
        Generates and registers a Connectoid object from the current Centroid and generated Zone object
        Parameters:
        zoning - Zoning object to be updated
        nodes - current Nodes object
        zone - current generated Zone object (from XML input file)
        centroid - current Centroid object
        inputBuilderListener - parser which contains nodes by node external Id
        Throws:
        PlanItException - thrown if there is an error during processing