Package org.goplanit.io.converter.zoning
Class PlanitZoningWriter
- java.lang.Object
-
- org.goplanit.converter.BaseWriterImpl<T>
-
- org.goplanit.io.converter.PlanitWriterImpl<Zoning>
-
- org.goplanit.io.converter.zoning.PlanitZoningWriter
-
- All Implemented Interfaces:
ConverterEntity,ConverterWriter<Zoning>,ZoningWriter
public class PlanitZoningWriter extends PlanitWriterImpl<Zoning> implements ZoningWriter
A class that takes a PLANit zoning and persists it to file in the Planit native XML format.- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ZONING_FILE_NAMEdefault network file name to use-
Fields inherited from class org.goplanit.converter.BaseWriterImpl
idMapper
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlanitZoningWriter(String zoningPath, String countryName, org.opengis.referencing.crs.CoordinateReferenceSystem zoningCrs, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanitZoningWriterSettingsgetSettings()any settings to configure the writer can be configured by collecting these settingsvoidreset()reset the reader to allow for marking unnecessary resources for garbage collectionvoidwrite(Zoning zoning)write a network to the writer's output format.-
Methods inherited from class org.goplanit.io.converter.PlanitWriterImpl
createGmlCoordType, createGmlDirectPositionType, createGmlLineStringType, createGmlPointType, createGmlPolygonType, extractSrsName, getConnectoidIdMapper, getDestinationCrsTransformer, getGeoUtils, getLinkIdMapper, getLinkSegmentIdMapper, getLinkSegmentTypeIdMapper, getModeIdMapper, getTransferZoneGroupIdMapper, getVertexIdMapper, getZoneIdMapper, initialiseIdMappingFunctions, persist, prepareCoordinateReferenceSystem
-
Methods inherited from class org.goplanit.converter.BaseWriterImpl
getIdMapperType, identifyDestinationCoordinateReferenceSystem, setIdMapperType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.converter.ConverterWriter
getIdMapperType, setIdMapperType
-
Methods inherited from interface org.goplanit.converter.zoning.ZoningWriter
getTypeDescription
-
-
-
-
Field Detail
-
DEFAULT_ZONING_FILE_NAME
public static final String DEFAULT_ZONING_FILE_NAME
default network file name to use- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlanitZoningWriter
protected PlanitZoningWriter(String zoningPath, String countryName, org.opengis.referencing.crs.CoordinateReferenceSystem zoningCrs, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
Constructor- Parameters:
zoningPath- to persist zoning oncountryName- to optimise projection for (if available, otherwise ignore)zoningCrs- to usexmlRawZoning- XML zoning to populate
-
-
Method Detail
-
write
public void write(Zoning zoning) throws PlanItException
write a network to the writer's output format.- Specified by:
writein interfaceConverterWriter<Zoning>- Parameters:
zoning- entity to write- Throws:
PlanItException- thrown if error
-
reset
public void reset()
reset the reader to allow for marking unnecessary resources for garbage collection- Specified by:
resetin interfaceConverterEntity
-
getSettings
public PlanitZoningWriterSettings getSettings()
any settings to configure the writer can be configured by collecting these settings- Specified by:
getSettingsin interfaceConverterWriter<Zoning>- Returns:
- the settings to configure the writer
-
-