diff --git a/NAMESPACE b/NAMESPACE index 311c01af..0a4fec94 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -64,4 +64,5 @@ importFrom(utils,menu) importFrom(xml2,as_list) importFrom(xml2,xml_attr) importFrom(xml2,xml_find_all) +importFrom(xml2,xml_name) importFrom(xml2,xml_text) diff --git a/NEWS.md b/NEWS.md index 22464f41..25972c6c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# happign 0.2.1 +* Fix `get_wms_raster()` because of [#21](https://github.com/paul-carteron/happign/issues/21) + # happign 0.2.0 * `get_wms_raster` is made faster by using gdalwarp from `sf::gdal_utils`. There is no longer need to download several tiles. diff --git a/R/get_apicarto_gpu.R b/R/get_apicarto_gpu.R index 8199d21f..8b31674c 100644 --- a/R/get_apicarto_gpu.R +++ b/R/get_apicarto_gpu.R @@ -13,7 +13,7 @@ #' "secteur-cc", "prescription-surf", "prescription-lin", "prescription-pct", #' "info-surf", "info-lin", "info-pct". See detail for more info. #' @param categorie public utility easement according to the -#' [national nomenclature](http://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html) +#' [national nomenclature](https://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html) #' @param dTolerance numeric; Complex shape cannot be handle by API; using `dTolerance` allow to simplify them. See `?sf::st_simplify` #' #' @details diff --git a/R/get_layers_metadata.R b/R/get_layers_metadata.R index e9326bac..14b3fdeb 100644 --- a/R/get_layers_metadata.R +++ b/R/get_layers_metadata.R @@ -11,7 +11,7 @@ #' information about these two Webservice formats. #' #' @importFrom httr2 req_perform req_url_path req_url_query request resp_body_xml -#' @importFrom xml2 xml_find_all +#' @importFrom xml2 xml_find_all xml_name xml_text #' #' @seealso #' [get_apikeys()] @@ -39,7 +39,7 @@ get_layers_metadata <- function(apikey, data_type) { - match.arg(data_type, c("wms", "wfs")) + match.arg(data_type, c("wms", "wfs", "wmts")) # check input ---- # check parameter : apikey @@ -55,17 +55,21 @@ get_layers_metadata <- function(apikey, version <- switch(data_type, "wms" = "1.3.0", - "wfs" = "2.0.0") + "wfs" = "2.0.0", + "wmts" = "1.0.0") path <- switch(data_type, "wms" = "r", - "wfs" = NULL) + "wfs" = NULL, + "wmts" = NULL) xpath <- switch(data_type, - "wfs" = "//d1:FeatureType", + # /*[position() <= 3] select first three node of each selected node + "wfs" = "//d1:FeatureType/*[position() <= 3]", # first element is always "Cache IGN" so I remove it with position()>1 - # parenthesis are needed for creating a node set but I don't get it - "wms" = "(//d1:Layer)[position()>1]") + # parenthesis are needed for creating a node set but + "wms" = "(//d1:Layer)[position() > 1]/*[position() <= 3]", + "wmts" = "//d1:Layer/*[position() <= 2 or self::ows:Identifier]") req <- request("https://wxs.ign.fr/") |> req_url_path(apikey,"geoportail", path) |> @@ -84,11 +88,9 @@ get_layers_metadata <- function(apikey, return(NULL) } - clean_metadata <- suppressWarnings( - as.data.frame(do.call(rbind, as_list(req)))[, 1:3]) - clean_metadata <- - as.data.frame(apply(clean_metadata, c(1, 2), unlist)) + metadata <- as.data.frame(matrix(xml_text(req), ncol = 3, byrow = T)) |> + setNames(xml_name(req)[1:3]) - return(clean_metadata) + return(metadata) } diff --git a/cran-comments.md b/cran-comments.md index 4ebd3750..4ffd766d 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,7 +1,3 @@ -# Warning : - I test with happign 1.0.0 but i finally decided to stay at 0.2.0. There's -no difference in code between both version. - ## Test environments * Windows Server 2022, R-devel, 64 bit @@ -15,73 +11,59 @@ There were no ERRORs or WARNINGs for each environnement ### Windows Server 2022, R-devel, 64 bit -There are 2 NOTES which can be ignored : -- lastMiKTeXException : see https://github.com/r-hub/rhub/issues/503 -- NULL : see https://github.com/r-hub/rhub/issues/560 - -── happign 1.0.0: NOTE +── happign 0.2.1: NOTE - Build ID: happign_1.0.0.tar.gz-3f5a67511a43498bbc0b99be7af2f6df + Build ID: happign_0.2.1.tar.gz-d913df9579c1400dba591299ccc039e8 Platform: Windows Server 2022, R-devel, 64 bit - Submitted: 48m 59.5s ago - Build time: 7m 21.6s + Submitted: 1h 12m 9s ago + Build time: 8m 57s + +❯ checking CRAN incoming feasibility ... [43s] NOTE + Maintainer: 'Paul Carteron ' + + Found the following (possibly) invalid URLs: + URL: http://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html (moved to https://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html) + From: man/get_apicarto_gpu.Rd + Status: 200 + Message: OK ❯ checking for non-standard things in the check directory ... NOTE Found the following files/directories: ''NULL'' - -❯ checking for detritus in the temp directory ... NOTE Found the following files/directories: 'lastMiKTeXException' 0 errors ✔ | 0 warnings ✔ | 2 notes ✖ -### Windows Server 2022, R-release, 32/64 bit - -There is 1 NOTE but i cannot do much because data contain accent - -── happign 1.0.0: NOTE +── happign 0.2.1: IN-PROGRESS -Build ID: happign_1.0.0.tar.gz-3ecf3a4b4d2547fd9803fc834070abe9 -Platform: Windows Server 2022, R-release, 32/64 bit -Submitted: 7 minutes 52.1 seconds ago -Build time: 7 minutes 49.2 seconds - -NOTES: - -* checking data for non-ASCII characters ... NOTE - Note: found 7592 marked UTF-8 strings - -### Ubuntu Linux 20.04.1 LTS, R-release, GCC + Build ID: happign_0.2.1.tar.gz-297c789019a748c3a20531c4a5676423 + Platform: Ubuntu Linux 20.04.1 LTS, R-release, GCC + Submitted: 1h 12m 9.1s ago -There is 1 NOTE that can be ignored : -- tidy : https://github.com/r-hub/rhub/issues/548 -── happign 1.0.0: NOTE +── happign 0.2.1: NOTE - Build ID: happign_1.0.0.tar.gz-85edc5b55e4b484cbd4c71c8a0f68332 - Platform: Ubuntu Linux 20.04.1 LTS, R-release, GCC - Submitted: 48m 59.6s ago - Build time: 43m 54.3s + Build ID: happign_0.2.1.tar.gz-abc42f0e197d416a90bd15908ed4e383 + Platform: Fedora Linux, R-devel, clang, gfortran + Submitted: 1h 12m 9.2s ago + Build time: 1h 6m 32.6s + +❯ checking CRAN incoming feasibility ... [11s/67s] NOTE + Maintainer: ‘Paul Carteron ’ + + Found the following (possibly) invalid URLs: + URL: http://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html (moved to https://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html) + From: man/get_apicarto_gpu.Rd + Status: 200 + Message: OK ❯ checking HTML version of manual ... NOTE Skipping checking HTML validation: no command 'tidy' found -0 errors ✔ | 0 warnings ✔ | 1 note ✖ - -### Fedora Linux, R-devel, clang, gfortran - -There is 1 NOTE that can be ignored : -- tidy : https://github.com/r-hub/rhub/issues/548 - -── happign 1.0.0: NOTE +### Windows Server 2022, R-release, 32/64 bit - Build ID: happign_1.0.0.tar.gz-4edc205be092475bb1d3180ac532e29a - Platform: Fedora Linux, R-devel, clang, gfortran - Submitted: 48m 59.6s ago - Build time: 37m 21.6s +### Ubuntu Linux 20.04.1 LTS, R-release, GCC -❯ checking HTML version of manual ... NOTE - Skipping checking HTML validation: no command 'tidy' found +### Fedora Linux, R-devel, clang, gfortran -0 errors ✔ | 0 warnings ✔ | 1 note ✖ diff --git a/man/get_apicarto_gpu.Rd b/man/get_apicarto_gpu.Rd index 5d305959..d4f23ce7 100644 --- a/man/get_apicarto_gpu.Rd +++ b/man/get_apicarto_gpu.Rd @@ -19,7 +19,7 @@ a \code{character} corresponding to \strong{GPU partition} or "info-surf", "info-lin", "info-pct". See detail for more info.} \item{categorie}{public utility easement according to the -\href{http://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html}{national nomenclature}} +\href{https://www.geoinformations.developpement-durable.gouv.fr/nomenclature-nationale-des-sup-r1082.html}{national nomenclature}} \item{dTolerance}{numeric; Complex shape cannot be handle by API; using \code{dTolerance} allow to simplify them. See \code{?sf::st_simplify}} } diff --git a/tests/testthat/get_layers_metada_null/wxs.ign.fr/adresse/geoportail/r/wms-3fee96.R b/tests/testthat/get_layers_metada_null/wxs.ign.fr/adresse/geoportail/r/wms-3fee96.R index 3b297fe7..89bf4e8c 100644 --- a/tests/testthat/get_layers_metada_null/wxs.ign.fr/adresse/geoportail/r/wms-3fee96.R +++ b/tests/testthat/get_layers_metada_null/wxs.ign.fr/adresse/geoportail/r/wms-3fee96.R @@ -1,7 +1,11 @@ structure(list(method = "GET", url = "https://wxs.ign.fr/adresse/geoportail/r/wms?service=wms&version=1.3.0&request=GetCapabilities§ions=FeatureTypeList", - status_code = 200L, headers = structure(list(date = "Thu, 03 Aug 2023 10:22:27 GMT", + status_code = 200L, headers = structure(list(date = "Thu, 16 Nov 2023 20:24:03 GMT", `content-type` = "text/xml;charset=utf-8", `transfer-encoding` = "chunked", `wl-original-content-type` = "text/xml;charset=utf-8", `cache-control` = "public, max-age=1814400", `access-control-allow-methods` = "GET, POST", `access-control-max-age` = "43200", `access-control-allow-origin` = "*"), class = "httr2_headers"), - body = charToRaw("WMSService WMS Raster Geoportail PublicsCe service permet la visualisation de couches de données raster IGN au travers d'un flux WMSWMSParcelles cadastralesPhotographies aériennesCartesCartes historiquesAltitudeGéoportail SAVIGNcustodian
73 avenue de Paris
Saint Mandé94160France
geop_services@geoportail.fr
licencesConditions Générales d'Utilisation disponibles ici : https://geoservices.ign.fr/cgu-licences21000010000
text/xmlimage/jpegimage/pngimage/tiffimage/geotiffimage/x-bil;bits=32text/asctext/plaintext/htmltext/xmlapplication/xmlapplication/jsonXMLcache IGNCache IGNCRS:84EPSG:2154IGNF:LAMB93EPSG:21781EPSG:23030EPSG:23031EPSG:23032EPSG:27561IGNF:LAMB1EPSG:27562IGNF:LAMB2EPSG:27563IGNF:LAMB3EPSG:27564IGNF:LAMB4EPSG:27571IGNF:LAMB1CEPSG:27572IGNF:LAMB2CIGNF:LAMBEEPSG:27573IGNF:LAMB3CEPSG:27574IGNF:LAMB4CEPSG:27581EPSG:27582EPSG:27583EPSG:27584EPSG:27591EPSG:27592EPSG:27593EPSG:27594EPSG:2969IGNF:GUADFM49U20EPSG:2970IGNF:GUAD48UTM20EPSG:2971IGNF:CSG67UTM22EPSG:2972IGNF:UTM22RGFG95EPSG:2973IGNF:MART38UTM20EPSG:2975IGNF:RGR92UTM40SEPSG:2976IGNF:TAHI51UTM06SEPSG:2977EPSG:2978EPSG:2980IGNF:MAYO50UTM38SEPSG:2981EPSG:2987IGNF:STPM50UTM21EPSG:2988IGNF:WALL78UTM1SEPSG:2989EPSG:2990EPSG:3034EPSG:3035EPSG:3042EPSG:3043EPSG:3044EPSG:3170EPSG:3171EPSG:3172EPSG:32620IGNF:UTM20W84GUADIGNF:WGS84UTM20IGNF:UTM20W84MARTIGNF:UTM20W84EPSG:32621EPSG:32622EPSG:32630IGNF:UTM30W84EPSG:32631IGNF:UTM31W84EPSG:32632IGNF:UTM32W84EPSG:32701IGNF:UTM01SW84EPSG:32705EPSG:32706EPSG:32707EPSG:32738EPSG:32739IGNF:UTM39SW84EPSG:32740EPSG:3296IGNF:RGPFUTM5SEPSG:3297IGNF:RGPFUTM6SEPSG:3298IGNF:RGPFUTM7SEPSG:3302IGNF:IGN63UTM7SEPSG:3303EPSG:3304IGNF:TAHI79UTM6SEPSG:3305EPSG:3306EPSG:3727EPSG:3857EPSG:3942IGNF:RGF93CC42EPSG:3943IGNF:RGF93CC43EPSG:3944IGNF:RGF93CC44EPSG:3945IGNF:RGF93CC45EPSG:3946IGNF:RGF93CC46EPSG:3947IGNF:RGF93CC47EPSG:3948IGNF:RGF93CC48EPSG:3949IGNF:RGF93CC49EPSG:3950IGNF:RGF93CC50EPSG:4171IGNF:RGF93GEPSG:4258EPSG:4275EPSG:4326EPSG:4463EPSG:4467IGNF:RGSPM06U21EPSG:4470EPSG:4471IGNF:RGM04UTM38SEPSG:4558EPSG:4559EPSG:4621EPSG:4622EPSG:4623EPSG:4624EPSG:4625EPSG:4626EPSG:4627EPSG:4628EPSG:4629EPSG:4630EPSG:4632EPSG:4633EPSG:4636EPSG:4637EPSG:4638EPSG:4639EPSG:4641EPSG:4642EPSG:4643EPSG:4644EPSG:4687EPSG:4688EPSG:4689EPSG:4690EPSG:4691EPSG:4692EPSG:4749EPSG:4807IGNF:CSG67GEOIGNF:GUAD48GEOIGNF:GUADFM49GEOIGNF:MART38GEOIGNF:MAYO50GEOIGNF:REUN47GAUSSLIGNF:REUN47GEOIGNF:RGFG95GEOIGNF:STPM50GEOIGNF:WGS84G
")), class = "httr2_response") + body = charToRaw("WMSService WMS Raster Geoportail PublicsCe service permet la visualisation de couches de données raster IGN au travers d'un flux WMSWMSParcelles cadastralesPhotographies aériennesCartesCartes historiquesAltitudeGéoportail SAVIGNcustodian
73 avenue de Paris
Saint Mandé94160France
geop_services@geoportail.fr
licencesConditions Générales d'Utilisation disponibles ici : https://geoservices.ign.fr/cgu-licences21000010000
text/xmlimage/jpegimage/pngimage/tiffimage/geotiffimage/x-bil;bits=32text/asctext/plaintext/htmltext/xmlapplication/xmlapplication/jsonXMLcache IGNCache IGNCRS:84EPSG:2154IGNF:LAMB93EPSG:21781EPSG:23030EPSG:23031EPSG:23032EPSG:27561IGNF:LAMB1EPSG:27562IGNF:LAMB2EPSG:27563IGNF:LAMB3EPSG:27564IGNF:LAMB4EPSG:27571IGNF:LAMB1CEPSG:27572IGNF:LAMB2CIGNF:LAMBEEPSG:27573IGNF:LAMB3CEPSG:27574IGNF:LAMB4CEPSG:27581EPSG:27582EPSG:27583EPSG:27584EPSG:27591EPSG:27592EPSG:27593EPSG:27594EPSG:2969IGNF:GUADFM49U20EPSG:2970IGNF:GUAD48UTM20EPSG:2971IGNF:CSG67UTM22EPSG:2972IGNF:UTM22RGFG95EPSG:2973IGNF:MART38UTM20EPSG:2975IGNF:RGR92UTM40SEPSG:2976IGNF:TAHI51UTM06SEPSG:2977EPSG:2978EPSG:2980IGNF:MAYO50UTM38SEPSG:2981EPSG:2987IGNF:STPM50UTM21EPSG:2988IGNF:WALL78UTM1SEPSG:2989EPSG:2990EPSG:3034EPSG:3035EPSG:3042EPSG:3043EPSG:3044EPSG:3170EPSG:3171EPSG:3172EPSG:32620IGNF:UTM20W84GUADIGNF:WGS84UTM20IGNF:UTM20W84MARTIGNF:UTM20W84EPSG:32621EPSG:32622EPSG:32630IGNF:UTM30W84EPSG:32631IGNF:UTM31W84EPSG:32632IGNF:UTM32W84EPSG:32701IGNF:UTM01SW84EPSG:32705EPSG:32706EPSG:32707EPSG:32738EPSG:32739IGNF:UTM39SW84EPSG:32740EPSG:3296IGNF:RGPFUTM5SEPSG:3297IGNF:RGPFUTM6SEPSG:3298IGNF:RGPFUTM7SEPSG:3302IGNF:IGN63UTM7SEPSG:3303EPSG:3304IGNF:TAHI79UTM6SEPSG:3305EPSG:3306EPSG:3727EPSG:3857EPSG:3942IGNF:RGF93CC42EPSG:3943IGNF:RGF93CC43EPSG:3944IGNF:RGF93CC44EPSG:3945IGNF:RGF93CC45EPSG:3946IGNF:RGF93CC46EPSG:3947IGNF:RGF93CC47EPSG:3948IGNF:RGF93CC48EPSG:3949IGNF:RGF93CC49EPSG:3950IGNF:RGF93CC50EPSG:4171IGNF:RGF93GEPSG:4258EPSG:4275EPSG:4326EPSG:4463EPSG:4467IGNF:RGSPM06U21EPSG:4470EPSG:4471IGNF:RGM04UTM38SEPSG:4558EPSG:4559EPSG:4621EPSG:4622EPSG:4623EPSG:4624EPSG:4625EPSG:4626EPSG:4627EPSG:4628EPSG:4629EPSG:4630EPSG:4632EPSG:4633EPSG:4636EPSG:4637EPSG:4638EPSG:4639EPSG:4641EPSG:4642EPSG:4643EPSG:4644EPSG:4687EPSG:4688EPSG:4689EPSG:4690EPSG:4691EPSG:4692EPSG:4749EPSG:4807IGNF:CSG67GEOIGNF:GUAD48GEOIGNF:GUADFM49GEOIGNF:MART38GEOIGNF:MAYO50GEOIGNF:REUN47GAUSSLIGNF:REUN47GEOIGNF:RGFG95GEOIGNF:STPM50GEOIGNF:WGS84G
"), + request = structure(list(url = "https://wxs.ign.fr/adresse/geoportail/r/wms?service=wms&version=1.3.0&request=GetCapabilities§ions=FeatureTypeList", + method = NULL, headers = list(), body = NULL, fields = list(), + options = list(), policies = list()), class = "httr2_request"), + cache = new.env(parent = emptyenv())), class = "httr2_response") diff --git a/tests/testthat/get_layers_metada_wfs/wxs.ign.fr/altimetrie/geoportail/wfs-866ab9.xml b/tests/testthat/get_layers_metada_wfs/wxs.ign.fr/altimetrie/geoportail/wfs-866ab9.xml index 7dccf36b..f8e6977d 100644 --- a/tests/testthat/get_layers_metada_wfs/wxs.ign.fr/altimetrie/geoportail/wfs-866ab9.xml +++ b/tests/testthat/get_layers_metada_wfs/wxs.ign.fr/altimetrie/geoportail/wfs-866ab9.xml @@ -1 +1 @@ -ELEVATION.CONTOUR.LINE:courbeELEVATION.CONTOUR.LINE:courbe.titleLe produit « Courbes de niveau » est un modèle numérique de terrain sous forme de courbes de même altitude, appelées aussi « isoplèthes d’altitude », ou plus techniquement « isohypses ». Ces courbes permettent la description du relief français.courbes de niveauurn:ogc:def:crs:EPSG::4326-63.1534009200235 -21.389673199489755.8367873301623 51.1208683472447ELEVATIONGRIDCOVERAGE.HIGHRES.QUALITY:source_fraELEVATIONGRIDCOVERAGE.HIGHRES.QUALITY:source_fra.titleInformations sur la précision du RGEAlti.Altitudeurn:ogc:def:crs:EPSG::4326-63.1890421078016 -21.427277338595455.844532355254 51.129651588879 \ No newline at end of file +ELEVATION.CONTOUR.LINE:courbeELEVATION.CONTOUR.LINE:courbe.titleLe produit « Courbes de niveau » est un modèle numérique de terrain sous forme de courbes de même altitude, appelées aussi « isoplèthes d’altitude », ou plus techniquement « isohypses ». Ces courbes permettent la description du relief français.courbes de niveauurn:ogc:def:crs:EPSG::4326-63.1534009200235 -21.389673199489755.8367873301623 51.1208683472447ELEVATIONGRIDCOVERAGE.HIGHRES.QUALITY:source_fraELEVATIONGRIDCOVERAGE.HIGHRES.QUALITY:source_fra.titleInformations sur la précision du RGEAlti.Altitudeurn:ogc:def:crs:EPSG::4326-63.1890421078016 -21.427277338595455.844532355254 51.129651588879 \ No newline at end of file diff --git a/tests/testthat/get_layers_metada_wms/wxs.ign.fr/ortho/geoportail/r/wms-3fee96.R b/tests/testthat/get_layers_metada_wms/wxs.ign.fr/ortho/geoportail/r/wms-3fee96.R index 6d9222ea..7f574ccb 100644 --- a/tests/testthat/get_layers_metada_wms/wxs.ign.fr/ortho/geoportail/r/wms-3fee96.R +++ b/tests/testthat/get_layers_metada_wms/wxs.ign.fr/ortho/geoportail/r/wms-3fee96.R @@ -1,7 +1,11 @@ structure(list(method = "GET", url = "https://wxs.ign.fr/ortho/geoportail/r/wms?service=wms&version=1.3.0&request=GetCapabilities§ions=FeatureTypeList", - status_code = 200L, headers = structure(list(date = "Thu, 03 Aug 2023 10:22:25 GMT", + status_code = 200L, headers = structure(list(date = "Thu, 16 Nov 2023 20:23:53 GMT", `content-type` = "text/xml;charset=utf-8", `transfer-encoding` = "chunked", `wl-original-content-type` = "text/xml;charset=utf-8", `cache-control` = "public, max-age=1814400", `access-control-allow-methods` = "GET, POST", `access-control-max-age` = "43200", `access-control-allow-origin` = "*"), class = "httr2_headers"), - body = charToRaw("WMSService WMS Raster Geoportail PublicsCe service permet la visualisation de couches de données raster IGN au travers d'un flux WMSWMSParcelles cadastralesPhotographies aériennesCartesCartes historiquesAltitudeGéoportail SAVIGNcustodian
73 avenue de Paris
Saint Mandé94160France
geop_services@geoportail.fr
licencesConditions Générales d'Utilisation disponibles ici : https://geoservices.ign.fr/cgu-licences21000010000
text/xmlimage/jpegimage/pngimage/tiffimage/geotiffimage/x-bil;bits=32text/asctext/plaintext/htmltext/xmlapplication/xmlapplication/jsonXMLcache IGNCache IGNCRS:84EPSG:2154IGNF:LAMB93EPSG:21781EPSG:23030EPSG:23031EPSG:23032EPSG:27561IGNF:LAMB1EPSG:27562IGNF:LAMB2EPSG:27563IGNF:LAMB3EPSG:27564IGNF:LAMB4EPSG:27571IGNF:LAMB1CEPSG:27572IGNF:LAMB2CIGNF:LAMBEEPSG:27573IGNF:LAMB3CEPSG:27574IGNF:LAMB4CEPSG:27581EPSG:27582EPSG:27583EPSG:27584EPSG:27591EPSG:27592EPSG:27593EPSG:27594EPSG:2969IGNF:GUADFM49U20EPSG:2970IGNF:GUAD48UTM20EPSG:2971IGNF:CSG67UTM22EPSG:2972IGNF:UTM22RGFG95EPSG:2973IGNF:MART38UTM20EPSG:2975IGNF:RGR92UTM40SEPSG:2976IGNF:TAHI51UTM06SEPSG:2977EPSG:2978EPSG:2980IGNF:MAYO50UTM38SEPSG:2981EPSG:2987IGNF:STPM50UTM21EPSG:2988IGNF:WALL78UTM1SEPSG:2989EPSG:2990EPSG:3034EPSG:3035EPSG:3042EPSG:3043EPSG:3044EPSG:3170EPSG:3171EPSG:3172EPSG:32620IGNF:UTM20W84GUADIGNF:WGS84UTM20IGNF:UTM20W84MARTIGNF:UTM20W84EPSG:32621EPSG:32622EPSG:32630IGNF:UTM30W84EPSG:32631IGNF:UTM31W84EPSG:32632IGNF:UTM32W84EPSG:32701IGNF:UTM01SW84EPSG:32705EPSG:32706EPSG:32707EPSG:32738EPSG:32739IGNF:UTM39SW84EPSG:32740EPSG:3296IGNF:RGPFUTM5SEPSG:3297IGNF:RGPFUTM6SEPSG:3298IGNF:RGPFUTM7SEPSG:3302IGNF:IGN63UTM7SEPSG:3303EPSG:3304IGNF:TAHI79UTM6SEPSG:3305EPSG:3306EPSG:3727EPSG:3857EPSG:3942IGNF:RGF93CC42EPSG:3943IGNF:RGF93CC43EPSG:3944IGNF:RGF93CC44EPSG:3945IGNF:RGF93CC45EPSG:3946IGNF:RGF93CC46EPSG:3947IGNF:RGF93CC47EPSG:3948IGNF:RGF93CC48EPSG:3949IGNF:RGF93CC49EPSG:3950IGNF:RGF93CC50EPSG:4171IGNF:RGF93GEPSG:4258EPSG:4275EPSG:4326EPSG:4463EPSG:4467IGNF:RGSPM06U21EPSG:4470EPSG:4471IGNF:RGM04UTM38SEPSG:4558EPSG:4559EPSG:4621EPSG:4622EPSG:4623EPSG:4624EPSG:4625EPSG:4626EPSG:4627EPSG:4628EPSG:4629EPSG:4630EPSG:4632EPSG:4633EPSG:4636EPSG:4637EPSG:4638EPSG:4639EPSG:4641EPSG:4642EPSG:4643EPSG:4644EPSG:4687EPSG:4688EPSG:4689EPSG:4690EPSG:4691EPSG:4692EPSG:4749EPSG:4807IGNF:CSG67GEOIGNF:GUAD48GEOIGNF:GUADFM49GEOIGNF:MART38GEOIGNF:MAYO50GEOIGNF:REUN47GAUSSLIGNF:REUN47GEOIGNF:RGFG95GEOIGNF:STPM50GEOIGNF:WGS84GHR.ORTHOIMAGERY.ORTHOPHOTOSOrtho 20 cmLe produit BD ORTHO® V3 est une collection de mosaïques d'orthophotographies numériques en couleurs ou en Infra Rouge couleurs, rectifiées dans la projection adaptée au territoire couvert. La BD ORTHO® V3 se compose d'images numériques (sans habillage ni surcharge) et d'indications de géoréférencement. Le contenu informationnel permet localement une utilisation jusqu'au 1 :2,000ième pour mettre en valeur le territoire, enrichir la visualisation des données et des projets.PhotographiesIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-63.16070698055.846431162-21.40126311551.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOS.RESTRICTEDAREASZones interdites à la captation aérienne des donnéesZones interdites à la captation aérienne des données (ZICAD) fixées par voie d'arrêté (arrêté du 02-01-2023 fixant la liste des zones interdites à la prise de vue aérienne par appareil photographique, cinématographique ou tout autre capteur). Édition 02-01-2023ZIPVAIGNF:RGR92GEOEPSG:3299IGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-178.309250775168.298110838-22.97230715751.312119281xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOSPhotographies aériennesPhotographies aériennesPhotographiesIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-179.499994634179.499994634-74.99999974074.999999740xmlxmlxmlxmlxml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.BDORTHOOrtho 50 cmLe produit BD ORTHO® est une collection de mosaïques d'orthophotographies numériques en couleurs ou en Infra Rouge couleurs, rectifiées dans la projection adaptée au territoire couvert.bdorthoIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-178.187136618168.190410515-22.76433179351.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.IRCBDORTHO en infrarouge fausses couleursBDORTHO en infrarouge fausses couleursIRCIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-62.97168750255.846431162-21.40126311551.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.IRC-EXPRESS.2022ortho-express IRC 2022L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forteIRCortho-express-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.IRC-EXPRESS.2023ortho-express IRC 2023L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forteortho-expressIRC1.4883243833.13498739747.47186720148.354308526xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-ASP_PAC2022ORTHO-ASP_PAC2022ortho ASP PAC 2022PAC 2022bdortho-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-ASP_PAC2023ORTHO-ASP_PAC2023ortho ASP PAC 2023PAC 2023-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-EXPRESS.2022ortho-express 2022L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forte.ortho-express-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-EXPRESS.2023ortho-express 2023L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forte.ortho-express-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.TPM.OMBRESOrthophotographies PCRS TPM traitement ombreOrthophotographies très haute résolution avec traitements sur les ombres sur la communauté d'agglomérations de Toulon Provence Méditerrannée. Diffusion limitée.ortho5.7443867426.53880506342.96042963443.247394541xml71.428571429535714.285714286PCRS.LAMB93PCRS LAMB93PCRS LAMB93pcrs-3.8077919786.92318562742.69755165748.810701468xml178.571428571748982857.142857075THR.ORTHOIMAGERY.ORTHOPHOTOSPhotographies aériennes très haute résolutionOrthophotographies aériennes d'une résolution de 10cm à 5cm selon disponibilité.Orthos-6.92466336811.49645934340.43781616851.909785922xmlxmlxmlxmlxmlxml267.857142857559082264.285714269
")), class = "httr2_response") + body = charToRaw("WMSService WMS Raster Geoportail PublicsCe service permet la visualisation de couches de données raster IGN au travers d'un flux WMSWMSParcelles cadastralesPhotographies aériennesCartesCartes historiquesAltitudeGéoportail SAVIGNcustodian
73 avenue de Paris
Saint Mandé94160France
geop_services@geoportail.fr
licencesConditions Générales d'Utilisation disponibles ici : https://geoservices.ign.fr/cgu-licences21000010000
text/xmlimage/jpegimage/pngimage/tiffimage/geotiffimage/x-bil;bits=32text/asctext/plaintext/htmltext/xmlapplication/xmlapplication/jsonXMLcache IGNCache IGNCRS:84EPSG:2154IGNF:LAMB93EPSG:21781EPSG:23030EPSG:23031EPSG:23032EPSG:27561IGNF:LAMB1EPSG:27562IGNF:LAMB2EPSG:27563IGNF:LAMB3EPSG:27564IGNF:LAMB4EPSG:27571IGNF:LAMB1CEPSG:27572IGNF:LAMB2CIGNF:LAMBEEPSG:27573IGNF:LAMB3CEPSG:27574IGNF:LAMB4CEPSG:27581EPSG:27582EPSG:27583EPSG:27584EPSG:27591EPSG:27592EPSG:27593EPSG:27594EPSG:2969IGNF:GUADFM49U20EPSG:2970IGNF:GUAD48UTM20EPSG:2971IGNF:CSG67UTM22EPSG:2972IGNF:UTM22RGFG95EPSG:2973IGNF:MART38UTM20EPSG:2975IGNF:RGR92UTM40SEPSG:2976IGNF:TAHI51UTM06SEPSG:2977EPSG:2978EPSG:2980IGNF:MAYO50UTM38SEPSG:2981EPSG:2987IGNF:STPM50UTM21EPSG:2988IGNF:WALL78UTM1SEPSG:2989EPSG:2990EPSG:3034EPSG:3035EPSG:3042EPSG:3043EPSG:3044EPSG:3170EPSG:3171EPSG:3172EPSG:32620IGNF:UTM20W84GUADIGNF:WGS84UTM20IGNF:UTM20W84MARTIGNF:UTM20W84EPSG:32621EPSG:32622EPSG:32630IGNF:UTM30W84EPSG:32631IGNF:UTM31W84EPSG:32632IGNF:UTM32W84EPSG:32701IGNF:UTM01SW84EPSG:32705EPSG:32706EPSG:32707EPSG:32738EPSG:32739IGNF:UTM39SW84EPSG:32740EPSG:3296IGNF:RGPFUTM5SEPSG:3297IGNF:RGPFUTM6SEPSG:3298IGNF:RGPFUTM7SEPSG:3302IGNF:IGN63UTM7SEPSG:3303EPSG:3304IGNF:TAHI79UTM6SEPSG:3305EPSG:3306EPSG:3727EPSG:3857EPSG:3942IGNF:RGF93CC42EPSG:3943IGNF:RGF93CC43EPSG:3944IGNF:RGF93CC44EPSG:3945IGNF:RGF93CC45EPSG:3946IGNF:RGF93CC46EPSG:3947IGNF:RGF93CC47EPSG:3948IGNF:RGF93CC48EPSG:3949IGNF:RGF93CC49EPSG:3950IGNF:RGF93CC50EPSG:4171IGNF:RGF93GEPSG:4258EPSG:4275EPSG:4326EPSG:4463EPSG:4467IGNF:RGSPM06U21EPSG:4470EPSG:4471IGNF:RGM04UTM38SEPSG:4558EPSG:4559EPSG:4621EPSG:4622EPSG:4623EPSG:4624EPSG:4625EPSG:4626EPSG:4627EPSG:4628EPSG:4629EPSG:4630EPSG:4632EPSG:4633EPSG:4636EPSG:4637EPSG:4638EPSG:4639EPSG:4641EPSG:4642EPSG:4643EPSG:4644EPSG:4687EPSG:4688EPSG:4689EPSG:4690EPSG:4691EPSG:4692EPSG:4749EPSG:4807IGNF:CSG67GEOIGNF:GUAD48GEOIGNF:GUADFM49GEOIGNF:MART38GEOIGNF:MAYO50GEOIGNF:REUN47GAUSSLIGNF:REUN47GEOIGNF:RGFG95GEOIGNF:STPM50GEOIGNF:WGS84GHR.ORTHOIMAGERY.ORTHOPHOTOSOrtho 20 cmLe produit BD ORTHO® V3 est une collection de mosaïques d'orthophotographies numériques en couleurs ou en Infra Rouge couleurs, rectifiées dans la projection adaptée au territoire couvert. La BD ORTHO® V3 se compose d'images numériques (sans habillage ni surcharge) et d'indications de géoréférencement. Le contenu informationnel permet localement une utilisation jusqu'au 1 :2,000ième pour mettre en valeur le territoire, enrichir la visualisation des données et des projets.PhotographiesIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-63.16070698055.846431162-21.40126311551.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOS.RESTRICTEDAREASZones interdites à la captation aérienne des donnéesZones interdites à la captation aérienne des données (ZICAD) fixées par voie d'arrêté (arrêté du 02-01-2023 fixant la liste des zones interdites à la prise de vue aérienne par appareil photographique, cinématographique ou tout autre capteur). Édition 02-01-2023ZIPVAIGNF:RGR92GEOEPSG:3299IGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-178.309250775168.298110838-22.97230715751.312119281xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOSPhotographies aériennesPhotographies aériennesPhotographiesIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-179.499994634179.499994634-74.99999974074.999999740xmlxmlxmlxmlxml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.BDORTHOOrtho 50 cmLe produit BD ORTHO® est une collection de mosaïques d'orthophotographies numériques en couleurs ou en Infra Rouge couleurs, rectifiées dans la projection adaptée au territoire couvert.bdorthoIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-178.187136618168.190410515-22.76433179351.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.IRCBDORTHO en infrarouge fausses couleursBDORTHO en infrarouge fausses couleursIRCIGNF:RGR92GEOIGNF:RGM04GEOIGNF:CSG67UTM21EPSG:3312EPSG:3313-62.97168750255.846431162-21.40126311551.112418912xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.IRC-EXPRESS.2023ortho-express IRC 2023L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forteortho-expressIRC1.4883243833.13498739747.47186720148.354308526xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-ASP_PAC2022ORTHO-ASP_PAC2022ortho ASP PAC 2022PAC 2022bdortho-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-ASP_PAC2023ORTHO-ASP_PAC2023ortho ASP PAC 2023PAC 2023-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-EXPRESS.2023ortho-express 2023L’Ortho Express est une mosaïque d’ortho‐images numériques. Elle se différencie des autres produits orthophotographiques de l’IGN par le fait que, par souci de minimiser les délais de sa production, elle résulte d’un traitement massivement automatisé . L’Ortho Express vise en premier lieu à répondre à une exigence sur les délais de production. Il s’agit donc d’un produit dont les caractéristiques techniques sont contraintes par cette exigence forte.ortho-express-179.499994634179.499994634-74.99999974074.999999740xml267.857142857559082264.285714269ORTHOIMAGERY.ORTHOPHOTOS.TPM.OMBRESOrthophotographies PCRS TPM traitement ombreOrthophotographies très haute résolution avec traitements sur les ombres sur la communauté d'agglomérations de Toulon Provence Méditerrannée. Diffusion limitée.ortho5.7443867426.53880506342.96042963443.247394541xml71.428571429535714.285714286PCRS.LAMB93PCRS LAMB93PCRS LAMB93pcrs-3.8077919786.92318562742.69755165748.810701468xml178.571428571748982857.142857075THR.ORTHOIMAGERY.ORTHOPHOTOSPhotographies aériennes très haute résolutionOrthophotographies aériennes d'une résolution de 10cm à 5cm selon disponibilité.Orthos-6.92466336811.49645934340.43781616851.909785922xmlxmlxmlxmlxmlxml267.857142857559082264.285714269
"), + request = structure(list(url = "https://wxs.ign.fr/ortho/geoportail/r/wms?service=wms&version=1.3.0&request=GetCapabilities§ions=FeatureTypeList", + method = NULL, headers = list(), body = NULL, fields = list(), + options = list(), policies = list()), class = "httr2_request"), + cache = new.env(parent = emptyenv())), class = "httr2_response") diff --git a/tests/testthat/get_layers_metada_wmts/wxs.ign.fr/administratif/geoportail/wmts-36368b.xml b/tests/testthat/get_layers_metada_wmts/wxs.ign.fr/administratif/geoportail/wmts-36368b.xml new file mode 100644 index 00000000..535c8998 --- /dev/null +++ b/tests/testthat/get_layers_metada_wmts/wxs.ign.fr/administratif/geoportail/wmts-36368b.xml @@ -0,0 +1 @@ +Service de visualisation WMTS Geoportail PubliqueCe service permet la visualisation de couches de données raster IGN au travers d'un flux WMTSWTMSUnités administrativesLimites administrativesSurfaces bâtiesRéseaux de transportRoutesRéseaux ferroviairesAérodromesRéseau hydrographiqueParcelles cadastralesBâtimentsServices d'utilité publique et services publicsRéseaux de transportHydrographiePhotographies aériennesCartesCartes historiquesAltitudeOGC WMTS1.0.0licencesConditions Générales d'Utilisation disponibles ici : https://geoservices.ign.fr/cgu-licencesIGNGéoportail SAVcustodian73 avenue de ParisSaint Mandé94160Francegeop_services@geoportail.frKVPKVPKVPADMINEXPRESS COG CARTOLimites administratives Express COG code officiel géographique 2023Unités administratives-63.3725 -21.475655.9259 51.3121ADMINEXPRESS-COG-CARTO.LATESTimage/pngtext/plaintext/htmltext/xmlapplication/xmlapplication/jsonPM621352041742714183885143821679170287165335103415743316711168211496631342121365229813262684132731459626535368145462919353071073715109241838610615214741621849367722123142948ADMINEXPRESS COGLimites administratives Express COG code officiel géographique. 2023Unités administratives-63.3725 -21.475655.9259 51.3121ADMINEXPRESS-COG.LATESTimage/pngtext/plaintext/htmltext/xmlapplication/xmlapplication/jsonPM621352041742714183885143821679170287165335103415743316711168211496631342121365229813262684132731459626535368145462919353071073715109241838610615214741621849367722123142948ADMIN_EXPRESSLimites administratives des collectivités territoriales. Régions, départements, cantons, communes, arrondissements (pour Paris, Lyon et Marseille) et établissements publics de coopération intercommunale (EPCI).PM-6.50391 40.97999.84375 51.2894ADMIN_EXPRESSapplication/x-protobufPM621352041742714183885143831679171287166335103425743326701168411486641341121369229713292683132738459426585366145477918953171073315109551837810634214671621911367572126942934174382273515425398586918876451470308507917173819175290294060170158343476Limites administratives mises à jour en continu.Limites administratives mises à jour en continu, édition octobre 2023Unités administratives-63.3725 -21.475655.9259 51.3121LIMITES_ADMINISTRATIVES_EXPRESS.LATESTimage/pngtext/plaintext/htmltext/xmlapplication/xmlapplication/jsonPM621352041742714183885143821679170287165335103415743316711168211496631342121365229813262684132731459626535368145462919353071073715109241838610615214741621849367722123142948LAMB93EPSG:21540373497230.53533575718756770.0000000000000000 12000000.0000000000000000256256221186705472.69210894044954330.0000000000000000 12000000.000000000000000025625622293341025.28069786823471080.0000000000000000 12000000.000000000000000025625622346667469.22071429012430600.0000000000000000 12000000.000000000000000025625623423332959.30040536024353060.0000000000000000 12000000.000000000000000025625625511666284.01593821605911220.0000000000000000 12000000.00000000000000002562563965833092.87356214361670940.0000000000000000 12000000.000000000000000025625651672916534.12495000031435670.0000000000000000 12000000.000000000000000025625683081458263.98098857149159360.0000000000000000 12000000.000000000000000025625614599729131.21968178574599050.0000000000000000 12000000.00000000000000002562562611710364565.41708285715583320.0000000000000000 12000000.00000000000000002562565123211182282.66034500001549650.0000000000000000 12000000.00000000000000002562561004621291141.31812250001309650.0000000000000000 12000000.00000000000000002562561999221345570.65604857143010160.0000000000000000 12000000.000000000000000025625639618421422785.32727142857334180.0000000000000000 12000000.000000000000000025625679136821511392.66344750000124450.0000000000000000 12000000.000000000000000025625615817363165696.33167678571498720.0000000000000000 12000000.0000000000000000256256316114724172848.16582678571446910.0000000000000000 12000000.0000000000000000256256632129447181424.08291035714289590.0000000000000000 12000000.0000000000000000256256126415889219712.04145464285721710.0000000000000000 12000000.00000000000000002562562528111778220356.02072750000005190.0000000000000000 12000000.00000000000000002562565056123556321178.01036357142858260.0000000000000000 12000000.0000000000000000256256101121471125LAMB93_1M_MNTIGNF:LAMB9303571428.5714285717415351-500.0000000000000000 12000500.000000000000000025625642311785714.2857142858707675-250.0000000000000000 12000250.00000000000000002562568462892857.1428571429353838-125.0000000000000000 12000125.000000000000000025625616923357142.8571428571741535-50.0000000000000000 12000050.0000000000000000256256402304267857.1428571428806151-37.5000000000000000 12000037.5000000000000000256256543075178571.4285714285870768-25.0000000000000000 12000025.000000000000000025625680460689285.7142857142935384-12.5000000000000000 12000012.5000000000000000256256160920717857.1428571428587073-2.5000000000000000 12000002.5000000000000000256256800460083571.4285714285717415-0.5000000000000000 12000000.5000000000000000256256400023000LAMB93_5cmIGNF:LAMB930748982857.14285725005902350.0000000000000000 12000000.0000000000000000256256111374491428.57142862502951170.0000000000000000 12000000.0000000000000000256256112187245714.28571431251475590.0000000000000000 12000000.000000000000000025625611393622857.14285715625737790.0000000000000000 12000000.000000000000000025625612446811428.57142857812868900.0000000000000000 12000000.000000000000000025625614523405714.28571428906434450.0000000000000000 12000000.000000000000000025625617611702857.14285714453217220.0000000000000000 12000000.000000000000000025625621375851428.57142857226608610.0000000000000000 12000000.000000000000000025625642682925714.28571428613304310.0000000000000000 12000000.000000000000000025625675291462857.14285714306652150.0000000000000000 12000000.00000000000000002562561310310731428.57142857153326080.0000000000000000 12000000.00000000000000002562562520611365714.28571428576663040.0000000000000000 12000000.00000000000000002562565041112182857.14285714288331520.0000000000000000 12000000.0000000000000000256256998221391428.57142857144165760.0000000000000000 12000000.000000000000000025625619716431445714.28571428572082880.0000000000000000 12000000.000000000000000025625639432851522857.14285714286041440.0000000000000000 12000000.000000000000000025625678865691611428.57142857143020720.0000000000000000 12000000.0000000000000000256256157513138175714.28571428571510360.0000000000000000 12000000.0000000000000000256256315026276182857.14285714285755180.0000000000000000 12000000.0000000000000000256256630052552191428.57142857142877590.0000000000000000 12000000.00000000000000002562561260010510220714.28571428571438790.0000000000000000 12000000.00000000000000002562562520021020521357.14285714285719400.0000000000000000 12000000.00000000000000002562565040042040922178.57142857142859700.0000000000000000 12000000.0000000000000000256256100800840818LAMB93_5cm_EPSGEPSG:21540748982857.14285725005902350.0000000000000000 12000000.0000000000000000256256111374491428.57142862502951170.0000000000000000 12000000.0000000000000000256256112187245714.28571431251475590.0000000000000000 12000000.000000000000000025625611393622857.14285715625737790.0000000000000000 12000000.000000000000000025625612446811428.57142857812868900.0000000000000000 12000000.000000000000000025625614523405714.28571428906434450.0000000000000000 12000000.000000000000000025625617611702857.14285714453217220.0000000000000000 12000000.000000000000000025625621375851428.57142857226608610.0000000000000000 12000000.000000000000000025625642682925714.28571428613304310.0000000000000000 12000000.000000000000000025625675291462857.14285714306652150.0000000000000000 12000000.00000000000000002562561310310731428.57142857153326080.0000000000000000 12000000.00000000000000002562562520611365714.28571428576663040.0000000000000000 12000000.00000000000000002562565041112182857.14285714288331520.0000000000000000 12000000.0000000000000000256256998221391428.57142857144165760.0000000000000000 12000000.000000000000000025625619716431445714.28571428572082880.0000000000000000 12000000.000000000000000025625639432851522857.14285714286041440.0000000000000000 12000000.000000000000000025625678865691611428.57142857143020720.0000000000000000 12000000.0000000000000000256256157513138175714.28571428571510360.0000000000000000 12000000.0000000000000000256256315026276182857.14285714285755180.0000000000000000 12000000.0000000000000000256256630052552191428.57142857142877590.0000000000000000 12000000.00000000000000002562561260010510220714.28571428571438790.0000000000000000 12000000.00000000000000002562562520021020521357.14285714285719400.0000000000000000 12000000.00000000000000002562565040042040922178.57142857142859700.0000000000000000 12000000.0000000000000000256256100800840818PMEPSG:38570559082264.0287178958533332-20037508.3427892476320267 20037508.3427892476320267256256111279541132.0143588959472254-20037508.3427892476320267 20037508.3427892476320267256256222139770566.0071793960087234-20037508.3427892476320267 20037508.342789247632026725625644369885283.0035897239868063-20037508.3427892476320267 20037508.342789247632026725625688434942641.5017948619934032-20037508.3427892476320267 20037508.34278924763202672562561616517471320.7508974309967016-20037508.3427892476320267 20037508.3427892476320267256256323268735660.3754487154983508-20037508.3427892476320267 20037508.3427892476320267256256646474367830.1877243577491754-20037508.3427892476320267 20037508.342789247632026725625612812882183915.0938621788745877-20037508.3427892476320267 20037508.342789247632026725625625625691091957.5469310886252288-20037508.3427892476320267 20037508.342789247632026725625651251210545978.7734655447186469-20037508.3427892476320267 20037508.34278924763202672562561024102411272989.3867327723085907-20037508.3427892476320267 20037508.34278924763202672562562048204812136494.6933663861796617-20037508.3427892476320267 20037508.3427892476320267256256409640961368247.3466831930771477-20037508.3427892476320267 20037508.3427892476320267256256819281921434123.6733415965449154-20037508.3427892476320267 20037508.342789247632026725625616384163841517061.8366707982724577-20037508.3427892476320267 20037508.34278924763202672562563276832768168530.9183353991362289-20037508.3427892476320267 20037508.34278924763202672562566553665536174265.4591676995681144-20037508.3427892476320267 20037508.3427892476320267256256131072131072182132.7295838497840572-20037508.3427892476320267 20037508.3427892476320267256256262144262144191066.3647919248918304-20037508.3427892476320267 20037508.342789247632026725625652428852428820533.1823959624461134-20037508.3427892476320267 20037508.34278924763202672562561048576104857621266.5911979812228585-20037508.3427892476320267 20037508.342789247632026725625620971522097152PM_5cmEPSG:38570559082264.0287178958533332-20037508.3427892476320267 20037508.3427892476320267256256111279541132.0143588959472254-20037508.3427892476320267 20037508.3427892476320267256256222139770566.0071793960087234-20037508.3427892476320267 20037508.342789247632026725625644369885283.0035897239868063-20037508.3427892476320267 20037508.342789247632026725625688434942641.5017948619934032-20037508.3427892476320267 20037508.34278924763202672562561616517471320.7508974309967016-20037508.3427892476320267 20037508.3427892476320267256256323268735660.3754487154983508-20037508.3427892476320267 20037508.3427892476320267256256646474367830.1877243577491754-20037508.3427892476320267 20037508.342789247632026725625612812882183915.0938621788745877-20037508.3427892476320267 20037508.342789247632026725625625625691091957.5469310886252288-20037508.3427892476320267 20037508.342789247632026725625651251210545978.7734655447186469-20037508.3427892476320267 20037508.34278924763202672562561024102411272989.3867327723085907-20037508.3427892476320267 20037508.34278924763202672562562048204812136494.6933663861796617-20037508.3427892476320267 20037508.3427892476320267256256409640961368247.3466831930771477-20037508.3427892476320267 20037508.3427892476320267256256819281921434123.6733415965449154-20037508.3427892476320267 20037508.342789247632026725625616384163841517061.8366707982724577-20037508.3427892476320267 20037508.34278924763202672562563276832768168530.9183353991362289-20037508.3427892476320267 20037508.34278924763202672562566553665536174265.4591676995681144-20037508.3427892476320267 20037508.3427892476320267256256131072131072182132.7295838497840572-20037508.3427892476320267 20037508.3427892476320267256256262144262144191066.3647919248918304-20037508.3427892476320267 20037508.342789247632026725625652428852428820533.1823959624461134-20037508.3427892476320267 20037508.34278924763202672562561048576104857621266.5911979812228585-20037508.3427892476320267 20037508.34278924763202672562562097152209715222133.2955989906114292-20037508.3427892476320267 20037508.342789247632026725625641943044194304WGS84GIGNF:WGS84G0279541132.0143588675418869-180.0000000000000000 90.0000000000000000256256211139770566.0071794337709434-180.0000000000000000 90.000000000000000025625642269885283.0035897168854717-180.0000000000000000 90.000000000000000025625684334942641.5017948584427359-180.0000000000000000 90.0000000000000000256256168417471320.7508974292213679-180.0000000000000000 90.0000000000000000256256321658735660.3754487146106840-180.0000000000000000 90.0000000000000000256256643264367830.1877243573053420-180.0000000000000000 90.00000000000000002562561286472183915.0938621786526710-180.0000000000000000 90.000000000000000025625625612881091957.5469310893263355-180.0000000000000000 90.00000000000000002562565122569545978.7734655446631677-180.0000000000000000 90.0000000000000000256256102451210272989.3867327723315839-180.0000000000000000 90.00000000000000002562562048102411136494.6933663861657919-180.0000000000000000 90.0000000000000000256256409620481268247.3466831930828960-180.0000000000000000 90.0000000000000000256256819240961334123.6733415965414480-180.0000000000000000 90.00000000000000002562561638481921417061.8366707982707240-180.0000000000000000 90.00000000000000002562563276816384158530.9183353991353620-180.0000000000000000 90.00000000000000002562566553632768164265.4591676995676810-180.0000000000000000 90.000000000000000025625613107265536172132.7295838497838405-180.0000000000000000 90.0000000000000000256256262144131072181066.3647919248919202-180.0000000000000000 90.000000000000000025625652428826214419533.1823959624459601-180.0000000000000000 90.00000000000000002562561048576524288WGS84G_POIGNF:WGS84G0279541132.0143588675418869-180.0000000000000000 90.0000000000000000256256211139770566.0071794337709434-180.0000000000000000 90.000000000000000025625642269885283.0035897168854717-180.0000000000000000 90.000000000000000025625684334942641.5017948584427359-180.0000000000000000 90.0000000000000000256256168417471320.7508974292213679-180.0000000000000000 90.0000000000000000256256321658735660.3754487146106840-180.0000000000000000 90.0000000000000000256256643264367830.1877243573053420-180.0000000000000000 90.00000000000000002562561286472183915.0938621786526710-180.0000000000000000 90.000000000000000025625625612881091957.5469310893263355-180.0000000000000000 90.00000000000000002562565122569545978.7734655446631677-180.0000000000000000 90.0000000000000000256256102451210272989.3867327723315839-180.0000000000000000 90.00000000000000002562562048102411136494.6933663861657919-180.0000000000000000 90.0000000000000000256256409620481268247.3466831930828960-180.0000000000000000 90.000000000000000025625681924096 \ No newline at end of file diff --git a/tests/testthat/test-get_layers_metadata.R b/tests/testthat/test-get_layers_metadata.R index 41f05bbf..ece6c67b 100644 --- a/tests/testthat/test-get_layers_metadata.R +++ b/tests/testthat/test-get_layers_metadata.R @@ -15,12 +15,24 @@ with_mock_dir("get_layers_metada_wms", { res <- get_layers_metadata("ortho", "wms") - expect_equal(dim(res), c(14, 3)) + expect_equal(dim(res), c(12, 3)) expect_equal(names(res), c("Name", "Title", "Abstract")) }) }) +with_mock_dir("get_layers_metada_wmts", { + # /!\ you have to manually change encoding to "ISO-8859-1" inside .xml or .R file from mocking + test_that("get_layers_metada_wmts", { + + res <- get_layers_metadata("administratif", "wmts") + + expect_equal(dim(res), c(4, 3)) + expect_equal(names(res), + c("Title", "Abstract", "Identifier")) + }) +}) + with_mock_dir("get_layers_metada_null", { test_that("get_layers_metada_null", {