Class CrsWriterImpl<T>

    • Constructor Detail

      • CrsWriterImpl

        protected CrsWriterImpl​(IdMapperType idMapperType)
        Constructor
        Parameters:
        idMapperType - to use
    • Method Detail

      • createTransformedCoordinate

        protected org.locationtech.jts.geom.Coordinate createTransformedCoordinate​(org.locationtech.jts.geom.Coordinate coordinate)
        transform the coordinate absed on the destination transformer
        Parameters:
        coordinate - to transform
        Returns:
        transformed coordinate
      • getTransformedCoordinates

        protected org.locationtech.jts.geom.Coordinate[] getTransformedCoordinates​(org.locationtech.jts.geom.Coordinate[] coordinates)
        Transform the coordinate absed on the destination transformer
        Parameters:
        coordinates - to transform
        Returns:
        transformed coordinates (if no conversion is required, input is returned
      • getDestinationCoordinateReferenceSystem

        protected org.opengis.referencing.crs.CoordinateReferenceSystem getDestinationCoordinateReferenceSystem()
      • extractSrsName

        protected static String extractSrsName​(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
        Extract the srs name to use based on the available crs information on network and this writer
        Parameters:
        crs - to use
        Returns:
        srsName to use
      • prepareCoordinateReferenceSystem

        protected void prepareCoordinateReferenceSystem​(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCrs,
                                                        org.opengis.referencing.crs.CoordinateReferenceSystem userDefinedDestinationCrs,
                                                        String destinationCountry)
        prepare the Crs transformer (if any) based on the user configuration settings. To be invoked internally by deriving writer just before actual writing starts
        Parameters:
        sourceCrs - the crs used for the source material of this writer
        userDefinedDestinationCrs - the user configured destination Crs (if any)
        destinationCountry - the destination country for which we can construct a Crs in case no specific destination Crs is provided
      • getGeoUtils

        protected PlanitJtsCrsUtils getGeoUtils()
        geo util class based on source Crs (if any)
        Returns:
        geoUtils