.settings

GeometryZoningWriter property
Description

The .settings property allows access to the settings of the GeometryZoningWriter.

Return type

GeometryZoningWriterSettings implementation

Example 1

from planit import *

planit = Planit()

# zoning converter
zoning_converter = planit.converter_factory.create(ConverterType.ZONING)

# prerequisite network reader
# PLANIT_INPUT_PATH = ...
planit_net_reader = planit_instance.converter_factory.create(ConverterType.NETWORK).create_reader(NetworkReaderType.PLANIT)
planit_net_reader.settings.set_input_directory(PLANIT_INPUT_PATH)

# GeoIo (GIS geometry shape) writer
geo_writer = zoning_converter.create_writer(ZoningWriterType.SHAPE)
geo_writer.settings.set_output_directory(OUTPUT_PATH)
geo_writer.settings.set_country("Australia")

# perform conversion
zoning_converter.convert(planit_reader, geo_writer)

See also

GeometryZoningWriterSettings the settings available

Source code

Class GeometryZoningWriterWrapper in converterwrappers.py