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 StringDEFAULT_COUNTRYdefault destination country to use if none is setprotected org.opengis.referencing.crs.CoordinateReferenceSystemdestinationCoordinateReferenceSystemthe coordinate reference system used for writing entities of this network
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileBasedConverterWriterSettings()Default constructorprotectedFileBasedConverterWriterSettings(String outputPathDirectory)ConstructorprotectedFileBasedConverterWriterSettings(String outputPathDirectory, String countryName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCountry()Collect country name usedorg.opengis.referencing.crs.CoordinateReferenceSystemgetDestinationCoordinateReferenceSystem()Collect the destination CrsStringgetOutputDirectory()The outputPathDirectory usedvoidlogSettings()Convenience method to log all the current settingsvoidreset()Reset contentvoidsetCountry(String countryName)Set country name usedvoidsetDestinationCoordinateReferenceSystem(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)voidsetOutputDirectory(String outputDirectory)Set the outputDirectory usedprotected booleanvalidate()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:
resetin interfaceConverterWriterSettings
-
-