Skip to content

Commit

Permalink
Update sources.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner authored Apr 29, 2024
1 parent 1409eec commit a20ac1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sources.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ wms_ESA_worldcover_2020_tms <- function()"<GDAL_WMS><Service name=\"WMS\"><Versi
wms_mapbox_satellite <- function()"<GDAL_WMS><Service name=\"TMS\"><ServerUrl>https://api.mapbox.com/v4/mapbox.satellite/${z}/${x}/${y}.jpg?access_token=%s</ServerUrl></Service><DataWindow><UpperLeftX>-20037508.34</UpperLeftX><UpperLeftY>20037508.34</UpperLeftY><LowerRightX>20037508.34</LowerRightX><LowerRightY>-20037508.34</LowerRightY><TileLevel>22</TileLevel><TileCountX>1</TileCountX><TileCountY>1</TileCountY><YOrigin>top</YOrigin></DataWindow><Projection>EPSG:3857</Projection><BlockSizeX>256</BlockSizeX><BlockSizeY>256</BlockSizeY><BandsCount>3</BandsCount><!--<UserAgent>Please add a specific user agent text, to avoid the default one being used, and potentially blocked by OSM servers in case a too big usage of it would be seen</UserAgent>--><Cache /><ZeroBlockHttpCodes>204,404,401</ZeroBlockHttpCodes><ZeroBlockOnServerException>true</ZeroBlockOnServerException></GDAL_WMS>"
#' @name dsn-sources
#' @export
wms_amazon_elevation <- function() "<GDAL_WMS>\n <Service name=\"TMS\">\n <ServerUrl>https://s3.amazonaws.com/elevation-tiles-prod/geotiff/${z}/${x}/${y}.tif</ServerUrl>\n </Service>\n <DataWindow>\n <UpperLeftX>-20037508.340000</UpperLeftX>\n <UpperLeftY>20037508.340000</UpperLeftY>\n <LowerRightX>20037508.340000</LowerRightX>\n <LowerRightY>-20037508.340000</LowerRightY>\n <TileLevel>15</TileLevel>\n <TileCountX>1</TileCountX>\n <TileCountY>1</TileCountY>\n <YOrigin>top</YOrigin>\n </DataWindow>\n <Projection>EPSG:3857</Projection>\n <BlockSizeX>256</BlockSizeX>\n <BlockSizeY>256</BlockSizeY>\n <BandsCount>3</BandsCount>\n <UserAgent>RStudio Server (2022.7.0.548); R (4.2.1 x86_64-pc-linux-gnu x86_64 linux-gnu)</UserAgent>\n</GDAL_WMS>"
wms_amazon_elevation <- function() "<GDAL_WMS>\n <Service name=\"TMS\">\n <ServerUrl>https://s3.amazonaws.com/elevation-tiles-prod/geotiff/${z}/${x}/${y}.tif</ServerUrl>\n </Service>\n <DataWindow>\n <UpperLeftX>-20037508.340000</UpperLeftX>\n <UpperLeftY>20037508.340000</UpperLeftY>\n <LowerRightX>20037508.340000</LowerRightX>\n <LowerRightY>-20037508.340000</LowerRightY>\n <TileLevel>15</TileLevel>\n <TileCountX>1</TileCountX>\n <TileCountY>1</TileCountY>\n <YOrigin>top</YOrigin>\n </DataWindow>\n <Projection>EPSG:3857</Projection>\n <BlockSizeX>256</BlockSizeX>\n <BlockSizeY>256</BlockSizeY>\n <BandsCount>1</BandsCount>\n <UserAgent>RStudio Server (2022.7.0.548); R (4.2.1 x86_64-pc-linux-gnu x86_64 linux-gnu)</UserAgent>\n</GDAL_WMS>"


#' @name dsn-sources
Expand Down

0 comments on commit a20ac1b

Please sign in to comment.