Package org.goplanit.converter
Class FileBasedConverterWriterSettings
- java.lang.Object
-
- org.goplanit.converter.FileBasedConverterWriterSettings
-
- All Implemented Interfaces:
ConverterWriterSettings
- Direct Known Subclasses:
GeoIoWriterSettings
,SingleFileBasedConverterWriterSettings
public class FileBasedConverterWriterSettings extends Object implements ConverterWriterSettings
Settings relevant for file based converter writers, can be used as base implementation- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_COUNTRY
default destination country to use if none is setprotected org.opengis.referencing.crs.CoordinateReferenceSystem
destinationCoordinateReferenceSystem
the coordinate reference system used for writing entities of this network
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileBasedConverterWriterSettings()
Default constructorprotected
FileBasedConverterWriterSettings(String outputPathDirectory)
Constructorprotected
FileBasedConverterWriterSettings(String outputPathDirectory, String countryName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCountry()
Collect country name usedorg.opengis.referencing.crs.CoordinateReferenceSystem
getDestinationCoordinateReferenceSystem()
Collect the destination CrsString
getOutputDirectory()
The outputPathDirectory usedvoid
logSettings()
Convenience method to log all the current settingsvoid
reset()
Reset contentvoid
setCountry(String countryName)
Set country name usedvoid
setDestinationCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem destinationCoordinateReferenceSystem)
Set the destination Crs to use (if not set, network's native Crs will be used, unless the user has specified a specific country for which we have a more appropriate Crs registered)void
setOutputDirectory(String outputDirectory)
Set the outputDirectory usedprotected boolean
validate()
Validate the settings
-
-
-
Field Detail
-
destinationCoordinateReferenceSystem
protected org.opengis.referencing.crs.CoordinateReferenceSystem destinationCoordinateReferenceSystem
the coordinate reference system used for writing entities of this network
-
DEFAULT_COUNTRY
public static String DEFAULT_COUNTRY
default destination country to use if none is set
-
-
Constructor Detail
-
FileBasedConverterWriterSettings
protected FileBasedConverterWriterSettings()
Default constructor
-
FileBasedConverterWriterSettings
protected FileBasedConverterWriterSettings(String outputPathDirectory)
Constructor- Parameters:
outputPathDirectory
- to use
-
-
Method Detail
-
validate
protected boolean validate()
Validate the settings- Returns:
- true when valid, false otherwise
-
getOutputDirectory
public String getOutputDirectory()
The outputPathDirectory used- Returns:
- directory used
-
setOutputDirectory
public void setOutputDirectory(String outputDirectory)
Set the outputDirectory used- Parameters:
outputDirectory
- to use
-
getCountry
public String getCountry()
Collect country name used- Returns:
- country name
-
setCountry
public void setCountry(String countryName)
Set country name used- Parameters:
countryName
- to use
-
logSettings
public void logSettings()
Convenience method to log all the current settings
-
getDestinationCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem getDestinationCoordinateReferenceSystem()
Collect the destination Crs- Returns:
- destination Crs
-
setDestinationCoordinateReferenceSystem
public void setDestinationCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem destinationCoordinateReferenceSystem)
Set the destination Crs to use (if not set, network's native Crs will be used, unless the user has specified a specific country for which we have a more appropriate Crs registered)- Parameters:
destinationCoordinateReferenceSystem
- to use
-
reset
public void reset()
Reset content- Specified by:
reset
in interfaceConverterWriterSettings
-
-