In the user home, define a parent .gitconfig file for your main account (eg: work account)
[user]
name = John Doe
email = [email protected]
[credential]
helper = store --file /home/johndoe/.git-credentials| from urllib.request import urlretrieve | |
| import rasterio | |
| import pyproj | |
| from shapely.geometry import box | |
| from shapely.ops import transform | |
| from shapely.geometry import shape, GeometryCollection | |
| import sys | |
| import os | |
| import json | |
| import tarfile |
In the user home, define a parent .gitconfig file for your main account (eg: work account)
[user]
name = John Doe
email = [email protected]
[credential]
helper = store --file /home/johndoe/.git-credentials| #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
| #include <CGAL/IO/read_points.h> | |
| #include <CGAL/property_map.h> | |
| #include <CGAL/Surface_mesh.h> | |
| #include <CGAL/Shape_detection/Efficient_RANSAC.h> | |
| #include <CGAL/Polygonal_surface_reconstruction.h> | |
| #ifdef CGAL_USE_SCIP // defined (or not) by CMake scripts, do not define by hand |
| #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
| #include <CGAL/IO/read_points.h> | |
| #include <CGAL/property_map.h> | |
| #include <CGAL/Surface_mesh.h> | |
| #include <CGAL/Shape_detection/Efficient_RANSAC.h> | |
| #include <CGAL/Polygonal_surface_reconstruction.h> | |
| #include <CGAL/Polygon_mesh_processing/triangulate_faces.h> | |
| #include <CGAL/Polygon_mesh_processing/orientation.h> | |
| #include <CGAL/Polygon_mesh_processing/polygon_mesh_to_polygon_soup.h> | |
| #include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h> |
Question pratique: Comment extraire un morceau de LIDAR HD depuis les dalles COPC mises à disposition par l'IGN en utilisant PDAL ?
On streame la donnée pour n'en récupérer qu'un morceau sur une emprise (bounds)
[| import sys | |
| try: | |
| from osgeo import ogr, osr, gdal | |
| except: | |
| sys.exit('ERROR: cannot find GDAL/OGR modules') | |
| # create the spatial reference | |
| srs = osr.SpatialReference() | |
| srs.ImportFromEPSG(2154) |
| #!/usr/bin/env python3 | |
| import os | |
| import laspy | |
| import shutil | |
| file_ext = ".las" | |
| output_file = "output.las" | |
| if os.path.exists(output_file): |
| #!/usr/bin/env bash | |
| # Working area in EPSG:2154 | |
| xmin=892000 | |
| ymin=6249000 | |
| xmax=894000 | |
| ymax=6247000 | |
| rm -rf footprints | |
| mkdir footprints |
| resource "google_storage_bucket" "osm_dl_planet" { | |
| project = var.project-id | |
| name = var.bucket-name | |
| uniform_bucket_level_access = true | |
| location = var.project-region | |
| storage_class = "REGIONAL" | |
| force_destroy = true | |
| } | |
| resource "google_service_account" "scheduler" { |
This how I managed to push a Docker image in a Google Cloud Artifact Registry using a GitHub Actions workflow without using a GCP Service Account.
Before using this tutorial make sure you have :
gcloud tool installed, authenticated and configured to use the GCP project. We will not use the --project flag in the following gcloud commands.