Nicolas Lambert

3 Followers
295 Following
33 Posts
Buache Projection

This is my current approximation of the projection for this map drawn in 1752 by Philippe Buache, called “Planisphère physique où l'on voit du pôle septentrional ce que l'on connoit de terres et de mers, avec les grandes chaînes de montagnes”. I'm sure it’s possible to do better, with shapes closer to the drawing, and a graticule that can extend to the South Pole. Please tweak, fork, and send suggestions!

Observable
Hello Bertin.js

bertin.js is an easy to use wrapper around d3js to facilitate the process of making thematic maps. The principle is to work with layers stacked on each other. As in a GIS, the layers that are displayed above are placed at the top in the code, the layers that are displayed below are placed at the bottom in the code. The layers that can be displayed are of several types: header, footer, graticule, outline, choro, typo, prop, shadow, scalebar, text... Each type has its own parameters. This list will be complet

Observable
$12? Nope! Did you know that @observablehq pro teams are free for research and education?
Actually, the new `custom` type in #bertinjs is barely 10 lines of code. But it really makes the library more flexible and more interoperable. Now we can:
✅ Combine `bertin` and #d3js
✅ Combine `bertin` and #Plot
✅ Combine several `bertin` maps on the same svg document.
Good news. It is now possible to combine a map and a chart by using @observablehq #Plot within #bertinjs. Explanations in this notebook 🔽
https://observablehq.com/@neocartocnrs/combine-bertin-with-plot-and-d3js?collection=@neocartocnrs/bertin
Combine bertin with plot and d3js

Since the version `[email protected]`, it is now possible to add your own layer types, thanks to the `custom` (or `function`) type. Thanks to @saneef for this brilliant idea. Find some examples of application below. 1. Add a rectangle In this first simple exemple, we show how to add a simple rectangle on the map with an internal function. To have a rectangle at the map's dimensions, we can use `map.height` and `map.width`. 2. Add a custom geojson In this example, we add a new geojson to the map via an external fun

Observable
Mastodon 🐘

Appendix The list of the instances of Mastodon is a scrapped from the Mastodon website on november 14, 2022, via this notebook. We keep only the instances whose number of users is at least 10. Now, let's get location informations with ipapi. The requests look like this: `http://ip-api.com/json/m.rthome.me`. You can test them in your web browser. Here, in order for all the requests to pass, they must be launched every 1000 milliseconds. So it takes time. That's why the result has been saved in an attached fi

Observable
An up-to-date list of Mastodon 🐘 instances.
https://observablehq.com/@neocartocnrs/mastodon-instances-list
Mastodon instances list

There are currently __ __ Mastodon instances. See the list on the mastodon website. You can now download the data as of November 14, 2022. Or wait while up-to-date data is being retrieved. Appendix

Observable
I am currently testing @[email protected] teams to teach #cartography at @[email protected]. If you want to discuss this or have any feedback or questions, please contact me. Everything is private for now, but all resources (in french) will become public gradually. #JSspatial
Geocountries.js is a small tool to retrieve ISO3 codes from country names. It is based on the Levenshtein distance. https://observablehq.com/@neocartocnrs/geocountries
Hello geocountries

`geocountries` is a small tool to add ISO3 codes in a json file from country names. Load geocountries And then, you can get an ISO3 code from a coungtruy name. Add a data file Checking ISO3 retrieval NB: The calculation of the scores is based on the calculation of the Levenshtein distance. You can threshold on this score to adjust the results. 1 = perfect match Add patch if needed Once you have determined the level of similarity, you can also add a patch. Get codes for real

Observable