Exemplo n.º 1
0
    def from_json(crs_json: str) -> "CRS":
        """
        .. versionadded:: 2.4.0

        Create CRS from a CRS JSON string.

        Parameters
        ----------
        crs_json: str
            CRS JSON string.

        Returns
        -------
        CRS
        """
        return CRS.from_json_dict(_load_proj_json(crs_json))
Exemplo n.º 2
0
    def from_json(cls, crs_json):
        """
        Create CRS from a CRS JSON string.

        .. versionadded:: 2.4.0

        Parameters
        ----------
        crs_json: str
            CRS JSON string.

        Returns
        -------
        CRS
        """
        return cls.from_json_dict(_load_proj_json(crs_json))