Class ProjParser


  • public class ProjParser
    extends Object
    CRS to PROJ parser
    Since:
    1.1.0
    Author:
    osbornb
    • Constructor Detail

      • ProjParser

        public ProjParser()
    • Method Detail

      • params

        public static ProjParams params​(String wkt)
                                 throws IOException
        Parse crs well-known text into PROJ params
        Parameters:
        wkt - crs well-known text
        Returns:
        params
        Throws:
        IOException - upon failure to read
      • paramsText

        public static String paramsText​(String wkt)
                                 throws IOException
        Parse crs well-known text into PROJ params text
        Parameters:
        wkt - crs well-known text
        Returns:
        params text
        Throws:
        IOException - upon failure to read
      • params

        public static ProjParams params​(CRS crs)
        Convert a CRS object into PROJ params
        Parameters:
        crs - CRS object
        Returns:
        params
      • paramsText

        public static String paramsText​(CRS crs)
        Convert a CRS object into PROJ params text
        Parameters:
        crs - CRS object
        Returns:
        params text
      • params

        public static ProjParams params​(GeoCoordinateReferenceSystem geo)
        Convert a geodetic or geographic crs into PROJ params
        Parameters:
        geo - geodetic or geographic crs
        Returns:
        params
      • paramsText

        public static String paramsText​(GeoCoordinateReferenceSystem geo)
        Convert a geodetic or geographic crs into PROJ params text
        Parameters:
        geo - geodetic or geographic crs
        Returns:
        params text
      • paramsText

        public static String paramsText​(ProjectedCoordinateReferenceSystem projected)
        Convert a projected crs into PROJ params text
        Parameters:
        projected - projected crs
        Returns:
        params text
      • paramsText

        public static String paramsText​(CompoundCoordinateReferenceSystem compound)
        Convert a compound crs into PROJ params text
        Parameters:
        compound - compound crs
        Returns:
        params text