Class FileBasedConverterWriterSettings

    • 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
      • FileBasedConverterWriterSettings

        protected FileBasedConverterWriterSettings​(String outputPathDirectory,
                                                   String countryName)
        Constructor
        Parameters:
        outputPathDirectory - to use
        countryName - 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