An example related to question on Twitter https://twitter.com/drewdaraabrams/status/1359933543619547137
Try curl https://entreprise.data.gouv.fr/api/sirene/v1/full_text/MONTPELLIERAIN
Among result, look at
"total_results": 161,
# Recipe from https://unix.stackexchange.com/questions/66931/split-pdf-into-documents-with-several-pages-each | |
pagesper=2 | |
file=layout_atlas_multipage.pdf | |
number=$(pdfinfo -- "$file" 2> /dev/null | awk '$1 == "Pages:" {print $2}') | |
count=$((number / pagesper)) | |
filename=${file%.pdf} | |
counter=0 | |
while [ "$count" -gt "$counter" ]; do |
from owslib.csw import CatalogueServiceWeb | |
url_csw = 'https://www.observatoire-des-territoires.gouv.fr/outils/cartographie-interactive/services/csw/' | |
csw = CatalogueServiceWeb(url_csw) | |
infos = [] | |
csw.getrecords2(startposition=0, maxrecords=20) | |
for rec in csw.records: | |
result = [csw.records[rec].title, csw.records[rec].identifier] |
An example related to question on Twitter https://twitter.com/drewdaraabrams/status/1359933543619547137
Try curl https://entreprise.data.gouv.fr/api/sirene/v1/full_text/MONTPELLIERAIN
Among result, look at
"total_results": 161,
<!DOCTYPE> | |
<html> | |
<head> | |
<title>Overpass JSON</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css"> | |
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x --> |
Ici on prend les données GPKG mais shp et CSV aussi disponibles selon vos préférences
# Infos pompées de https://www.geoportail-urbanisme.gouv.fr/image/Manuel_export_massif.pdf
# Obtenu via discussion https://georezo.net/forum/viewtopic.php?pid=367182#p367182
# Do once (to get ssh key)
timeout 5 ssh -oStrictHostKeyChecking=accept-new -p 2200 gpu_depot_exports@sftp-public.ign.fr
# List files
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Copyright (c) 2015-2020 Jean-Marc VIGLINO, | |
released under CeCILL-B (french BSD like) licence: http://www.cecill.info/ | |
--> | |
<title>ol-ext: WMS Capabilities control</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
On est parti du Service Géoplateforme de téléchargement https://geoservices.ign.fr/services-geoplateforme-telechargement
Prendre le zip ign_files_list.zip. Il contient
Les filtres listés sur le point d'entrée principal
Look at this existing tutorial https://lerryws.xyz/posts/PyQGIS-in-Jupyter-Notebook