Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Gratier ThomasG77

View GitHub Profile
View barrages_infos_cleaned.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasG77
ThomasG77 / ign_fr_proxy.php
Created Feb 25, 2022
Proxy to IGN actu RSS
View ign_fr_proxy.php
<?php
header('Content-type: text/xml;charset=UTF-8');
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$url = 'https://geoservices.ign.fr/actualites/rss.xml';
$homepage = file_get_contents($url, false, stream_context_create($arrContextOptions));
View README.md
View srs.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View urls_data_licence_download_ign.csv
url name
https://geoservices.ign.fr/ressource/165872 BD TOPO® Départementale Shapefile - D001 Ain - Décembre 2021
https://geoservices.ign.fr/ressource/158218 BD TOPO® Départementale Shapefile - D001 Ain - Mars 2021
https://geoservices.ign.fr/ressource/165876 BD TOPO® Départementale Shapefile - D002 Aisne - Décembre 2021
https://geoservices.ign.fr/ressource/158225 BD TOPO® Départementale Shapefile - D002 Aisne - Mars 2021
https://geoservices.ign.fr/ressource/165881 BD TOPO® Départementale Shapefile - D003 Allier - Décembre 2021
https://geoservices.ign.fr/ressource/158220 BD TOPO® Départementale Shapefile - D003 Allier - Mars 2021
https://geoservices.ign.fr/ressource/165891 BD TOPO® Départementale Shapefile - D004 Alpes-de-Haute-Provence - Décembre 2021
https://geoservices.ign.fr/ressource/158232 BD TOPO® Départementale Shapefile - D004 Alpes-de-Haute-Provence - Mars 2021
https://geoservices.ign.fr/ressource/165887 BD TOPO® Départementale Shapefile - D005 Hautes-Alpes - Décembre 2021
@ThomasG77
ThomasG77 / process_lidar_laz.md
Last active Feb 13, 2022
Process to convert laz file to DTM
View process_lidar_laz.md
View pyqgis-point-cloud-layer-laz-ign.py
from qgis.core import QgsProject, QgsPointCloudLayer
# File url from the demo to download and uncompress
# https://wxs.ign.fr/c90xknypoz1flvgojchbphgt/telechargement/prepackage/LIDARHD_PACK_NP_2021$LIDARHD_1-0_LAZ_NP-0808_6307-2021/file/LIDARHD_1-0_LAZ_NP-0808_6307-2021.7z
# Add layer and add index automatically if not present
cl1 = QgsPointCloudLayer('LIDARHD_1-0_LAZ_NP-0808_6307-2021/Semis_2021_0808_6306_LA93_IGN69.laz', 'Semis_2021_0808_6306_LA93_IGN69', 'pdal')
if cl1.isValid():
QgsProject.instance().addMapLayer(cl1)
View datasets-bal-communes.csv
id_bal code nom type dateMAJ rowsCount ignored
5be174928b4c412c5b8cc23f 69003 Albigny-sur-Saône commune-actuelle 2021-12-10 782
5be174928b4c412c5b8cc23f 69029 Bron commune-actuelle 2022-01-25 4988
5be174928b4c412c5b8cc23f 69033 Cailloux-sur-Fontaines commune-actuelle 2021-12-30 740
5be174928b4c412c5b8cc23f 69034 Caluire-et-Cuire commune-actuelle 2022-01-06 4916
5be174928b4c412c5b8cc23f 69040 Champagne-au-Mont-d'Or commune-actuelle 2021-11-08 1029
5be174928b4c412c5b8cc23f 69044 Charbonnières-les-Bains commune-actuelle 2020-06-11 1181
5be174928b4c412c5b8cc23f 69046 Charly commune-actuelle 2022-01-25 1693
5be174928b4c412c5b8cc23f 69063 Collonges-au-Mont-d'Or commune-actuelle 2021-12-15 952
5be174928b4c412c5b8cc23f 69068 Couzon-au-Mont-d'Or commune-actuelle 2021-12-28 880
View issue-lidar-size-7z.sh
wget 'https://wxs.ign.fr/c90xknypoz1flvgojchbphgt/telechargement/prepackage/LIDARHD_PACK_NP_2021$LIDARHD_1-0_LAZ_NP-0808_6307-2021/file/LIDARHD_1-0_LAZ_NP-0808_6307-2021.7z'
unp LIDARHD_1-0_LAZ_NP-0808_6307-2021.7z
zip -r LIDARHD_1-0_LAZ_NP-0808_6307-2021.zip LIDARHD_1-0_LAZ_NP-0808_6307-2021/
du -cksh LIDARHD_1-0_LAZ_NP-0808_6307-2021
View debug-geocoder-related-issue.sh