blocks by ThomasG77

c4a8fcc25bf7f635562d

2bcdaef08b79546bbb4b

85b65534beca578b8eab

e8b9281d07334f3b77eb

OSMF 2021 Survey Regions

32c349dbe43e41e4653e

968bea4c8a1c394a4de6

418a391e5d6183c10eea

Generate image from drawing https://py.plainenglish.io/convert-a-photo-to-pencil-sketch-using-python-in-12-lines-of-code-4346426256d4

Need to split PDF every n pages, do it with pdftk

420946967a519c071075

243f658d1001b2e31c18

a28c4484e7ca5d4a2d83

Recipe to get JSON using pagination using command line tools e.g curl, jq, bc, cat

Test torrent command line from URL using lftp and aria2c

Convert single OpenVPN file to multiple to be compatible for import in Gnome VPN manager (improved from https://askubuntu.com/questions/134918/setting-vpn-client)

3388a4589aa43af7bcb9

867491f6299f0ed2cfb5

About PyQGIS processing to print atlas

Tagging enseigne Flam's OpenStreetMap

PyQGIS add WMS layer standalone sample (use capabilities listing from owslib)

321ccc367625d447f426

46e36e9f2879ba0fb455

Modified version of demo http://viglino.github.io/ol-ext/examples/control/map.switcher.html

dc91529c294a3062db44

d15771bb30c231166701

d9c04724e63f3d327bd3

URL des KMZ de https://www.francebleu.fr/sports/cyclisme/cartes-tour-de-france-2020-zoomez-sur-le-trace-des-21-etapes-1596713392

7ef3163f2c45f83fd900

4e22024b5742c4550f00

fcc5e496a00471f276d7

576c57eecd647647aef4

dbe3643ffd070acdfbbc

CSV of https://www.arcgis.com/sharing/rest/content/items/a182011915884ca987b217294c30f6c1/data?f=json

Script to write QGIS expressions on one page (easy to reference to help people on the web, text search from your browser) https://gist.githack.com/ThomasG77/0c6862fb2b6b3fc301ea994733688ea5/raw/99ecc5e6127e7238814da330a4d5d0b9fa2afe4e/qgis-3-12-expressions-single-page.html

Demo to make single WMS call using "image" source in Mapbox GL JS. Useful for correctly managing labels (default WMS source multiply them because it calls tiled WMS)

Python functions to convert from/to zoom level to scale (assuming 96 dpi and latitude 0)

Set scale from zoom level value for EPSG 3857. See if you want to do the opposite https://gist.github.com/ThomasG77/7c2ecd106091a335a2138dcd82565db8#file-pyqgis-add-zoom-levels-3857-py-L5

Add this script in startup.py to now see zoom for EPSG 3857 when the canevas is using it

2d1531a8ec270b986065

Call QGIS Server via Flask

Comptes SDIS sur Twitter au 6 juin 2020

PyQGIS recipe to learn about selected features and return result as an ordered dict of fields names, values

822b9ac2cd180793021c

Run PyQGIS in Jupyter Notebook

440006f4c5f88bd38dfa

992665c4e851cf140c0a

96f29b1687fef0a07353

https://veillecarto2-0.fr/2020/05/18/premiers-pas-sur-leaflet-partie-iii-afficher-un-geojson/

57de3f1dc94817df1537

72fd711bda2ec0c8b95a

6ab06618c0df1ddbd8de

fc612be255c2626997a0

947212b91b57e69e2598

ffd07819ff8e9532619b

ded019fbd2d7ba05c219

71def7a758bfa75425d5

Create, update and list issues from Bitbucket API V2 using CURL

Leaflet and Popup with D3

ddd8d5fded6cc531f00b

963f269756daf33c4c1b

QGIS 3 standalone application sample

Archives Séminaire QGIS FR

Cleaned result from http://ws.carmencarto.fr/WMS/105/ONF_Forets?request=GetCapabilities

73f691bb9828d4f88de1

Get shp count from directory

Geocode Labelisation France Service

#30DayMapChallenge template

Greasemonkey script to restore URL view in Google search

Demo récupération cityway API

Import pour scrapper parcs et jardins de Nantes

Docker/Docker-compose recipes

e9e3d4541836de6f608d

Use GDAL2Tiles to view images in Leaflet

Leaflet.Spin standalone (similar to official https://github.com/makinacorpus/Leaflet.Spin but use only CDNs)

Take a GeoJSON as an input, take all H3 hexagons within and output GeoJSON hexagons with their id

Generate H3 hexagons

Standalone QGIS app for QGIS 3.0 (borrowed code for QGIS 2.x from https://subscription.packtpub.com/book/application_development/9781783984985/1/ch01lvl1sec18/creating-a-standalone-application)

Démo pour montrer comment reprojeter en EPSG 2154 un CSV issu du géocodage de l'API CSV de http://adresse.data.gouv.fr/

Google Open Lcoation Code demos (borrowed from https://github.com/google/open-location-code/blob/master/tile_server/example.html)

Promise.race illustrated with sourceforge mirrors

Using JSTS to measure how far a line travels through a polygon

Line Chart

Docopt in JavaScript

Demo for https://stackoverflow.com/questions/50764281/draw-openlayers-polyline-from-geojson

Fetch Adresse.data.gouv when geolocation activated

Colors events snippet

ol.control.Button without jQuery

Demo using native ECMAScript modules in OpenLayers 5.0.0-beta.12

Demo to use Overpass JSON API with OpenLayers 3 & 4

Browserifiied version of arc.js

Finland map with local OpenStreetMap basemap OpenLayers

Demo to use OpenLayers with Finland projection and WMS Aeromagnetic anomalous layer from GTK

Use ol.source.Raster to mask only 2 layers instead of playing between full canvas and a particular layer

Map Export with PNGW & PRJ files

OpenLayers + Webpack

PyQGIS script to save/load/wipe XYZ sources in Browser Panel in QGIS3

Constrainted drawing within another layer area with OpenLayers (based on official Measure example)

Demo fixing issues in https://gis.stackexchange.com/questions/267468/wfs-not-working-in-openlayers-working-in-qgis-wms-working-ok

Using WMS Capabilities to get layer center (OK only if layer center is not the CRS center but really the layer data center...)

Create legend for proportional circles in OpenLayers

OpenLayers demo to useAnchor option in ol.interaction.MouseWheelZoom

Minimal project to use OpenLayers with Parcel bundler

Leaflet With simplestyle Markers

Videos link including timing for the "7th QGIS UK Scottish user group"

Simple OpenLayers Reverse Geocoding sample with Nominatim

f5e73e2d2b6fe50b2806

Vanilla JS fork of ol3-ext GeoBookmark http://bl.ocks.org/ThomasG77/77bee632812a3441a72eb534603930a6 (original version at http://viglino.github.io/ol3-ext/examples/map.control.geobookmark.html) due to jQuery dependency

Proto OpenStreetMap BZH - v0 - Peillac - Opération Libre - Demo at http://bl.ocks.org/ThomasG77/910965e896320945d2aa1d313bcb43c9

436f701dc8248786a662

Dirty Javascript reproduction of https://twitter.com/jplur_/status/891358168688754688

gpkg vrt sample using http://ngageoint.github.io/GeoPackage/examples/rivers.gpkg

Promise and exec

Sleep function in JavaScript (need node v7.10+, borrowed from https://twitter.com/samccone/status/859777976199659521)

Simple Map with GeoJSON markers

Essai d'envoi de SMS uniquement avec Node et un abonnement Free.fr (adaptée à 90% de http://blog.nicolasc.eu/utiliser-api-de-notification-sms-free-mobile-depuis-node-js/)

List of questions related to Node (from https://medium.freecodecamp.com/before-you-bury-yourself-in-packages-learn-the-node-js-runtime-itself-f9031fbd8b69) 2 ​

Leaflet demo to use autocompletion with French GeoAPI and Leaflet.js library http://bl.ocks.org/ThomasG77/0b99013795f76699c5c9a0d7daf4411e

Basic exploration of vue-i18next (https://github.com/rse/vue-i18next) with demo link http://bl.ocks.org/ThomasG77/415ade3a505b7cf321528352032beecc

1fe4abada8a79cf42dce

Scribble map

Correction for cluster example in my "Beginner's Guide OpenLayers 3" due to change in OpenLayers library itself

vega for time series chart with shaded blocks

Minard online demos inventory

Tangram plaything with OSM2VectorTiles tiles

5 minutes PgAdmin4 Desktop install guide

"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory" running npm search

4f26bebf7a16e3716ed1

Réponse par l'absurbe à la notion de "plaque tournante" sur https://twitter.com/chdelporte/status/712756689364258816 suite aux attentats à Bruxelles

Python sample to call to adresse.data.gouv.fr

Translate extent to use with gdal_translate

Minimal WebWorker example

OpenLayers 3 Google Maps API

Prepare Github repo to manage npmjs release publication

Default file for adding OSM background in QGIS

Sample Leaflet with GeoJSON

019eb4d29d1d9742ef41

Villes ou arrondissements > 100 000 habitants en France

b4a5703e2751da61952b

Use OpenLayers 3 with TSV through GeoJSON

9e05f8cd04f0406e4529

Sample to display GeoJSON as cluster in Openlayers 3. derived from http://openlayers.org/en/v3.6.0/examples/cluster.html?mode=advanced

Exemple SVG

c82aafb197157f2bd666

Demo WMS 1.1.1 due to question https://groups.google.com/forum/?#!msg/ol3-dev/D-I_zmVZKP8/7r7yiwJeHE4J

Minimum demo to use browserify with ol3

JSTS options with OpenLayers 3

Just one method to convert 2D to 3D geometry with shapely

GBIF OpenLayers 2

Leaflet simple marker

Minimum fabfile.py to connect to Vagrant

ba74aeceb82ba00ca603

0fc446643d2d8b3e0e05

Proj4js classic demo based on OpenLayers 2.x and Proj4js 1.1. Open the brower console to see the result

Proj4js 2.x support with OpenLayers 2.x. Open the brower console to see the result

16bfcdab4671c7e8a300

Leaflet swipe (Adapted from https://www.mapbox.com/mapbox.js/example/v1.0.0/swipe-layers/ to use only Leaflet and not the MapBox API)

4a2a21c09769d29597bb

d4a6d55663d524237c14

2758a01711fa26beb023

42c1174287e3ed60f7bb

1e983339031c51389bde

Proj4js conversion using Lambert 93 and the new proj4js API (v2.x)Open your JavaScript console to see the result

Get each individual EU-DEM tiles from http://www.eea.europa.eu with a batch. You need wget (apt-get install wget for Ubuntu/Debian or on Windows go to http://gnuwin32.sourceforge.net/packages/wget.htm for installing) After, just do in command-line wget -c -i dem_eu.txt

How to deal with renaming invalid UTF8 characters in directories or files

OpenLayers zoom level display

PHP PostGIS to GeoJSON

Liste fichiers orthophotos nantes 2005

Orthophotos nantes telecahrgement et decompression

Javascript equivalent to python dict(zip(['AB', 'CD', 'EF', 'GH'],[1, 2, 3, 4])) - 2 js arrays to one js object

Given a WGS84 bounding box and an OSM tile zoom range calculates a total number of tiles.