blocks by ThomasG77

Leaflet styling source to black&white/grayscale on client side

"Poor man" head tail in QGIS

afa06f80766db293173c

Recette génération fantoir

Download data from WFS using GDAL Python bindings

Génération GeoJSON Territoires d'industrie

Recette génération tuiles monde OpenMaptiles

Generate altitude for French mairies for COG 2024

Athletes fr JO 2024

Generation diagramme image pour Photoshop

Bureaux de vote des circonscriptions de l'étranger

Generate vector tiles for Planet with tilemaker

Consommation CSW Observatoire des territoires

Pompage dump données Geoportail de l'urbanisme

Add WMS from capabilities and query features - demo with URL already added https://gist.githack.com/ThomasG77/e4136b0fd01df07578392cb9dbffcc04/raw/cb89525bb850499633766fe27a47871447a13d89/map.wmscapabilities.html?lon=4.310961&lat=48.608933&z=5.7&url=https%3A%2F%2Fservices.sandre.eaufrance.fr%2Fgeo%2Fsandre%3Flanguage%3Dfre%26&layer=Hydroecoregion1

Compile Node - quick recipe

Generate daily stations from meteo france data

Fichiers IGN à disposition via la Géoplateforme

IGN 7z vs zip with some parquet experiments

HTML browser favorites to CSV recipe with CLI

EPCIs from DROM moved to area of metropolitan French area

e559fb6f37ed8f8c6d97

Reset your MySQL root password

72be73d247fa60de4393

Conversion id parcelle Etalab vers commune, prefixe, section, numero et inversement

Generation EPT 2023 "one-shot"

Lien Adresse et parcelles

Lister les fichiers INAO sur leur owncloud pour le Portail des plans officiels de délimitation

Recette génération Territoire vie santé (TVS) 2022

Load GTFS as GPKG with GDAL 3.7

1a5dc1decf3b506fe862

67ede8b65420f40492f2

8dafcac4cab52f5242b0

GeoJSON maptam 22 metropoles avec communes

eafff0441de1209802ed

7d99b7d79138bda9a2df

List schema and tables from all databases in PostgreSQL cluster

4ab7840c00aa352f2786

Java certificate issues recipe + basic java demo

Java basic http client API Geo (Java 11+)

WMS Leaflet

WMS maplibre tiled

WMS maplibre untiled

Leaflet WFS

Log related to answer https://gis.stackexchange.com/questions/446578/how-does-qgis-extract-features-from-the-xml-response-of-an-inspire-wfs-server/446580

Get datasets/ressources from demo.data.gouv.fr

Identify if issue with same name in XML WMS capabilities

Permalinks entre les applis carto métier

Base historique population INSEE rapportée aux géographies 2022

c8b3e33ae90180e98564

d64af23db4c1bd6bbacb

89bf9a577b15f0a68bb5

POC pour rechercher remplacer des URLS dans un projet QGIS

Miniconda with gdal install

Issue for path cli resolving when migrating CommonJS to ES6

mapshaper-info-recreated-via-gdal

dfebda550a6847a46725

Generation GeoJSON des mairies avec code INSEE

Fix QPV validity

SIREN et autres traitements autour dont la validation VIES (TVA intracommunautaire)

Multiple approaches to solve question at https://lists.osgeo.org/pipermail/gdal-dev/2022-June/055949.html

Données encadrement loyers

Données centre des communes (centroide des mairies sinon centroide commune)

Recipe to use MySQL/MariaDB with QGIS and GDAL, with or without geom column

Calcul zonage lié à https://www.gouvernement.fr/civen-comment-etre-indemnise-3002

Extrait datatourisme bibliothèques Nouvelle Aquitaine

Play with gdal.vectorTranslate in Node.js

Use https certificate on localhost with Express

edaa46d0ee945829befb

508a2b148de71108a848

Demo plotly

56db21b335e25668ff86

8be3539eabe0a1c2e07e

Suivi avancement LIDAR copie de https://macarte.ign.fr/carte/322ea69dab4c7e5afabc6ec7043b5994/acquisitionslidarhd

Consommation à distance du Geopackage BDTOPO France entière Sept 2021 - 83Go

72f66c20c08cc6241b20

Bookstores and libraries in Ukraine, Extract from OpenStreetMap

e6f4c2723682e0180ff0

Proxy to IGN actu RSS

6523b832fc4d3fca8814

3e4479ddb389f73888da

349fc7fda8932252cbcb

Process to convert laz file to DTM

ab738ee0d721842fbea5

e6643b4e6d13daf7753f

0bdc45cce93d15fce0d1

9ea54f64f11961c49476

32329a8557135f11cb56

861f6687b3916be94703

2bd25e856943977444ba

IGN API elevation line

fdd290466b27483228fe

CMake 3.20 in Ubuntu 18.04 (reversible way)

12513350e4462cdfb258

4ed97370af8355feabf5

a645c021f4872350f7fc

e9eacae4cd4c75e61327

Une proposition pour avoir les accès https et FTP aux ressources actuellement uniquement en FTP

Play with pkg to bundle offline content in a binary, to serve through local server

VRT Demo. Derived corners from building to get a CSV with xmin, xmax, ymin and ymax. The goal: create a polygon from these 4 coordinates using a VRT

12c85e5e65b7776fd6d8

9dec6e17e2afdf246f4f

f2c843666c84195a872e

b3d6991a9d7ab3de6f7f

37d680b8e49134f16f4b

f123512d54fa23de8797

Make OpenLayers GL JS sample for IGN plan. Live demo at https://gist.githack.com/ThomasG77/3047b6072f0411d11d23cfed1fdb2c5c/raw/9ac46a1652d47352b3d55d5bf9ac4840d383fa3b/index.html

Make maplibre GL JS sample for IGN plan. Live demo at https://gist.githack.com/ThomasG77/5a122812635a85af7f762858ecf052a3/raw/b315d7ff1a9d9c49ece0ab0207687205263c549b/index.html

Adding keybase.io proof

1aa1bf66d847be043a24

516c27edc013850e5fa7

003d087ad317bf871eab

dae8e8a76db4fc720fb1

f1a627d4af91444f3fca

80f99a186a44e6fa1930

6f142ddb8609f0b0a058

28a1d2e30c530c6a170f

c5b36ec2877ccb9f2988

d565b50701a16aff8c2e

61afda568887fcc603e1

0f103baa5001934bf981

c32a8597373bd00c1002

e7979376a3a870dd0087

207d4ca5cb9d116c8175

220c74f4b10f7cac94fc

5d532db200169ca3dc1c

Convert coordinates in DMS notation to decimal in Python.

eefc2cc7ff02ccc2d4f7

048fc9a490b8fef7d11c

f5a6a1b8d5a2b7c3f6c8

0f063f92e149710175b9

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.