Skip to content

Commit

Permalink
footnote about reprojecting tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed May 23, 2024
1 parent 08d31f4 commit a4052b4
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 42 deletions.
4 changes: 3 additions & 1 deletion 08-mapping.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,11 @@ Basemaps are ubiquitous in interactive maps (see @sec-interactive-maps).
However, they are often useful in static maps too.

Basemaps can be added to **geopandas** static plots using the [**contextily**](https://contextily.readthedocs.io/en/latest/index.html) package.
A preliminary step is to convert our layers to `EPSG:3857` (["Web Mercator"](https://en.wikipedia.org/wiki/Web_Mercator_projection)), to be in agreement with the basemaps, which are typically provided in this CRS.
A preliminary step is to convert our layers to `EPSG:3857` (["Web Mercator"](https://en.wikipedia.org/wiki/Web_Mercator_projection)), to be in agreement with the basemaps, which are typically provided in this CRS[^reproject_tiles].
For example, let's take the small `"Nelson"` polygon from `nz`, and reproject it to `3857`.

[^reproject_tiles]: Another option is to [reproject the tiles](https://contextily.readthedocs.io/en/latest/warping_guide.html) to match the CRS of the foreground layers; this is less commonly used workflow, as it may lead to distorted appearance of the background layer.

```{python}
nzw = nz[nz['Name'] == 'Nelson'].to_crs(epsg=3857)
```
Expand Down
135 changes: 135 additions & 0 deletions geckodriver.log
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,138 @@ Gtk-Message: 09:48:32.997: Not loading module "atk-bridge": The functionality is
*** You are running in headless mode.
Gtk-Message: 09:50:46.532: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450050425 geckodriver INFO Listening on 127.0.0.1:33361
1716450050671 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "35321" "-no-remote" "-profile" "/tmp/rust_mozprofileQ80m7j"
*** You are running in headless mode.
Gtk-Message: 10:40:50.893: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450182001 geckodriver INFO Listening on 127.0.0.1:47311
1716450182730 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47459" "-no-remote" "-profile" "/tmp/rust_mozprofileSvpV9S"
*** You are running in headless mode.
Gtk-Message: 10:43:02.965: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450313264 geckodriver INFO Listening on 127.0.0.1:32883
1716450313992 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47419" "-no-remote" "-profile" "/tmp/rust_mozprofile6hI9yG"
*** You are running in headless mode.
Gtk-Message: 10:45:14.223: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450444514 geckodriver INFO Listening on 127.0.0.1:39383
1716450445260 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "44579" "-no-remote" "-profile" "/tmp/rust_mozprofileUMB6jr"
*** You are running in headless mode.
Gtk-Message: 10:47:25.507: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450575806 geckodriver INFO Listening on 127.0.0.1:53997
1716450576561 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "57447" "-no-remote" "-profile" "/tmp/rust_mozprofile0XisqW"
*** You are running in headless mode.
Gtk-Message: 10:49:36.799: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450707117 geckodriver INFO Listening on 127.0.0.1:41637
1716450707856 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "43579" "-no-remote" "-profile" "/tmp/rust_mozprofilenbfu8x"
*** You are running in headless mode.
Gtk-Message: 10:51:48.066: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450838367 geckodriver INFO Listening on 127.0.0.1:40373
1716450839082 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "55245" "-no-remote" "-profile" "/tmp/rust_mozprofileCTGhri"
*** You are running in headless mode.
Gtk-Message: 10:53:59.330: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716450969580 geckodriver INFO Listening on 127.0.0.1:53113
1716450970293 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "48763" "-no-remote" "-profile" "/tmp/rust_mozprofiles8ZNjW"
*** You are running in headless mode.
Gtk-Message: 10:56:10.534: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451100983 geckodriver INFO Listening on 127.0.0.1:58219
1716451101701 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "54647" "-no-remote" "-profile" "/tmp/rust_mozprofilexTQ2rc"
*** You are running in headless mode.
Gtk-Message: 10:58:21.922: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451375143 geckodriver INFO Listening on 127.0.0.1:49069
1716451375888 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "33331" "-no-remote" "-profile" "/tmp/rust_mozprofileIzBbWz"
*** You are running in headless mode.
Gtk-Message: 11:02:56.127: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451506407 geckodriver INFO Listening on 127.0.0.1:39353
1716451506635 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "50619" "-no-remote" "-profile" "/tmp/rust_mozprofile3u6Qjv"
*** You are running in headless mode.
Gtk-Message: 11:05:06.874: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451637172 geckodriver INFO Listening on 127.0.0.1:51093
1716451637926 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "37455" "-no-remote" "-profile" "/tmp/rust_mozprofile6K2mNL"
*** You are running in headless mode.
Gtk-Message: 11:07:18.167: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451768460 geckodriver INFO Listening on 127.0.0.1:40865
1716451769208 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "56763" "-no-remote" "-profile" "/tmp/rust_mozprofileEM5yi6"
*** You are running in headless mode.
Gtk-Message: 11:09:29.427: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716451899755 geckodriver INFO Listening on 127.0.0.1:49157
1716451900492 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "41085" "-no-remote" "-profile" "/tmp/rust_mozprofileV473cQ"
*** You are running in headless mode.
Gtk-Message: 11:11:40.725: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716452031058 geckodriver INFO Listening on 127.0.0.1:47959
1716452031792 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "41529" "-no-remote" "-profile" "/tmp/rust_mozprofilePk0YD0"
*** You are running in headless mode.
Gtk-Message: 11:13:52.021: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716452162276 geckodriver INFO Listening on 127.0.0.1:60677
1716452163098 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "36399" "-no-remote" "-profile" "/tmp/rust_mozprofilewcq2cL"
*** You are running in headless mode.
Gtk-Message: 11:16:03.339: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716452293648 geckodriver INFO Listening on 127.0.0.1:50639
1716452293896 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47459" "-no-remote" "-profile" "/tmp/rust_mozprofile7XJJpc"
*** You are running in headless mode.
Gtk-Message: 11:18:14.118: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716452424421 geckodriver INFO Listening on 127.0.0.1:58237
1716452425160 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "40319" "-no-remote" "-profile" "/tmp/rust_mozprofilezYZdQx"
*** You are running in headless mode.
Gtk-Message: 11:20:25.399: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716453942906 geckodriver INFO Listening on 127.0.0.1:51693
1716453943661 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "46897" "-no-remote" "-profile" "/tmp/rust_mozprofile9liCMm"
*** You are running in headless mode.
Gtk-Message: 11:45:43.900: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454074790 geckodriver INFO Listening on 127.0.0.1:60547
1716454075523 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47653" "-no-remote" "-profile" "/tmp/rust_mozprofileHjObOt"
*** You are running in headless mode.
Gtk-Message: 11:47:55.739: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454206059 geckodriver INFO Listening on 127.0.0.1:33097
1716454206816 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "43559" "-no-remote" "-profile" "/tmp/rust_mozprofileuZW2qN"
*** You are running in headless mode.
Gtk-Message: 11:50:07.032: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454337326 geckodriver INFO Listening on 127.0.0.1:47017
1716454338082 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "56307" "-no-remote" "-profile" "/tmp/rust_mozprofilebswvsg"
*** You are running in headless mode.
Gtk-Message: 11:52:18.302: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454468636 geckodriver INFO Listening on 127.0.0.1:37881
1716454469385 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "40553" "-no-remote" "-profile" "/tmp/rust_mozprofileDt02GY"
*** You are running in headless mode.
Gtk-Message: 11:54:29.615: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454600015 geckodriver INFO Listening on 127.0.0.1:40967
1716454600759 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "37887" "-no-remote" "-profile" "/tmp/rust_mozprofiledZ7eYx"
*** You are running in headless mode.
Gtk-Message: 11:56:40.997: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454731222 geckodriver INFO Listening on 127.0.0.1:52425
1716454732011 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "33239" "-no-remote" "-profile" "/tmp/rust_mozprofilebpMiza"
*** You are running in headless mode.
Gtk-Message: 11:58:52.252: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454862547 geckodriver INFO Listening on 127.0.0.1:52895
1716454863337 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "44835" "-no-remote" "-profile" "/tmp/rust_mozprofileaur7Di"
*** You are running in headless mode.
Gtk-Message: 12:01:03.543: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1716454993857 geckodriver INFO Listening on 127.0.0.1:40127
1716454994099 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "32877" "-no-remote" "-profile" "/tmp/rust_mozprofile4MwRng"
*** You are running in headless mode.
Gtk-Message: 12:03:14.317: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
82 changes: 41 additions & 41 deletions output/plot_rasterio2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a4052b4

Please sign in to comment.