Class PlanitZoningWriter

    • Constructor Detail

      • PlanitZoningWriter

        protected PlanitZoningWriter​(String zoningPath,
                                     String countryName,
                                     org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
        Constructor
        Parameters:
        zoningPath - to persist zoning on
        countryName - to optimise projection for (if available, otherwise ignore)
        xmlRawZoning - XML zoning to populate
      • PlanitZoningWriter

        protected PlanitZoningWriter​(PlanitZoningWriterSettings settings,
                                     org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
        Constructor
        Parameters:
        settings - to use
        xmlRawZoning - XML zoning to populate
    • Method Detail

      • write

        public void write​(Zoning zoning)
        write a network to the writer's output format.
        Specified by:
        write in interface ConverterWriter<Zoning>
        Parameters:
        zoning - entity to write
      • reset

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