Class PlanitZoningWriterFactory


  • public class PlanitZoningWriterFactory
    extends Object
    Factory for creating PLANit Zoning Writers
    Author:
    markr
    • Constructor Detail

      • PlanitZoningWriterFactory

        public PlanitZoningWriterFactory()
    • Method Detail

      • create

        public static PlanitZoningWriter create​(String zoningPath,
                                                String countryName,
                                                org.opengis.referencing.crs.CoordinateReferenceSystem zoningCrs)
        Create a PLANitZonginWriter which can persist a PLANit zoning in the native PLANit XML format
        Parameters:
        zoningPath - the file to use for persisting
        countryName - the country to base the projection method on if available
        zoningCrs - crs used by the zoning
        Returns:
        created zoning writer
      • create

        public static PlanitZoningWriter create​(String zoningPath,
                                                String countryName,
                                                org.opengis.referencing.crs.CoordinateReferenceSystem zoningCrs,
                                                org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
        Create a PLANitZoningWriter which can persist a PLANit zoning in the native PLANit XML format. By providing the XML memory model instance to populate we make it possible for the writer to embed the persisting in another larger XML memory model that is marshalled by an entity other than this writer in the future
        Parameters:
        zoningPath - the file to use for persisting
        countryName - the country to base the projection method on if available
        zoningCrs - crs used by the zoning
        xmlRawZoning - , use this specific xml memory model equivalent in this instance before marshalling via JAXb
        Returns:
        created network writer