From ae90aad45725d60834055751cfd437c8dea40e3b Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Thu, 6 Jun 2024 05:48:56 +0000 Subject: [PATCH] check multipart proj string --- R/vapour-gdal-library.R | 6 +++--- man/vapour_crs_is_lonlat.Rd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/vapour-gdal-library.R b/R/vapour-gdal-library.R index a743789..38d6447 100644 --- a/R/vapour-gdal-library.R +++ b/R/vapour-gdal-library.R @@ -85,12 +85,12 @@ vapour_srs_wkt <- function(crs) { #' @export #' #' @examples -#' vapour_crs_is_lonlat("+proj=longlat") +#' vapour_gdal_version() ## versions to catch problems with string input +#' vapour_proj_version() +#' vapour_crs_is_lonlat("+proj=aeqd +lon_0=147 +lat_0=-42") #' vapour_crs_is_lonlat("EPSG:4326") #' vapour_srs_wkt("+proj=laea") #' vapour_crs_is_lonlat("+proj=laea +type=crs") -#' #vapour_crs_is_lonlat("+proj=longlat +type=crs") -#' vapour_crs_is_lonlat("EPSG:4326") #' vapour_crs_is_lonlat("OGC:CRS84") #' vapour_crs_is_lonlat("WGS84") #' vapour_crs_is_lonlat("NAD27") diff --git a/man/vapour_crs_is_lonlat.Rd b/man/vapour_crs_is_lonlat.Rd index 2556589..adef6df 100644 --- a/man/vapour_crs_is_lonlat.Rd +++ b/man/vapour_crs_is_lonlat.Rd @@ -16,12 +16,12 @@ logical value \code{TRUE} for lonlat, \code{FALSE} otherwise Returns \code{TRUE} if this is longitude latitude data. Missing, malformed, zero-length values are disallowed. } \examples{ -vapour_crs_is_lonlat("+proj=longlat") +vapour_gdal_version() ## versions to catch problems with string input +vapour_proj_version() +vapour_crs_is_lonlat("+proj=aeqd +lon_0=147 +lat_0=-42") vapour_crs_is_lonlat("EPSG:4326") vapour_srs_wkt("+proj=laea") vapour_crs_is_lonlat("+proj=laea +type=crs") -#vapour_crs_is_lonlat("+proj=longlat +type=crs") -vapour_crs_is_lonlat("EPSG:4326") vapour_crs_is_lonlat("OGC:CRS84") vapour_crs_is_lonlat("WGS84") vapour_crs_is_lonlat("NAD27")