Package org.planit.io.xml.zoning
Class UpdateZoning
- java.lang.Object
-
- org.planit.io.xml.zoning.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 Summary
Constructors Constructor Description UpdateZoning()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.opengis.geometry.DirectPositiongetCentrePointGeometry(org.planit.xml.generated.XMLElementZones.Zone zone)Generates an OpenGIS DirectPosition object for the Centroid location from the generated Zone objectstatic voidregisterNewConnectoid(Zoning zoning, PhysicalNetwork.Nodes nodes, org.planit.xml.generated.XMLElementZones.Zone zone, Centroid centroid, InputBuilderListener inputBuilderListener)Generates and registers a Connectoid object from the current Centroid and generated Zone object
-
-
-
Method Detail
-
getCentrePointGeometry
public static org.opengis.geometry.DirectPosition getCentrePointGeometry(org.planit.xml.generated.XMLElementZones.Zone zone) throws PlanItExceptionGenerates 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 updatednodes- current Nodes objectzone- current generated Zone object (from XML input file)centroid- current Centroid objectinputBuilderListener- parser which contains nodes by node external Id- Throws:
PlanItException- thrown if there is an error during processing
-
-