Class NetworkWriterImpl

    • Field Detail

      • idMapper

        protected IdMapperType idMapper
        the id mapper to use
    • Constructor Detail

      • NetworkWriterImpl

        protected NetworkWriterImpl​(IdMapperType idMapperType)
        constructor
        Parameters:
        idMapperType - to use as default
    • Method Detail

      • identifyDestinationCoordinateReferenceSystem

        protected org.opengis.referencing.crs.CoordinateReferenceSystem identifyDestinationCoordinateReferenceSystem​(org.opengis.referencing.crs.CoordinateReferenceSystem overwriteCrs,
                                                                                                                     String countryName,
                                                                                                                     org.opengis.referencing.crs.CoordinateReferenceSystem fallBackCrs)
                                                                                                              throws PlanItException
        identify what the destination Crs is supposed to be. If directly set by user we use the overwrite Crs, if null then we try to extract an appropriate Crs by the country name. If no such mapping exists, we return the fall back option that must be provided.
        Parameters:
        overwriteCrs - this Crs takes precedence and is returned if present
        countryName - extract appropriate Crs based on countryname if overwriteCrs is not provided
        fallBackCrs - returned when none of the two other options yielded a result
        Returns:
        crs for destination
        Throws:
        PlanItException - thrown if error