Metadata in PDF files can be stored in at least two places:
- the Info Dictionary, a limited set of key/value pairs
- XMP packets, which contain RDF statements expressed as XML
pandoc -f markdown -t mediawiki test.md -o test.wiki | |
# Thanks to @tillmanj for the updated formatting |
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
This is a proof-of-concept for a numpy/rasterio/shapely based implementation of partial coverage rasterization. It works, barely.
The current GDAL algorithms allow for two methods, both binary: the default centroid method and the all-touched method.
This is a third alternative which provides the percentage of coverage of each cell from 0 to 100 which can be thought of as pixel weights for many spatial analyses.
See discussion at rasterio/rasterio#232
[Repository local-baylibre] | |
... | |
nametrans = lambda folder: { | |
'drafts': '[Gmail]/Drafts', | |
'flagged': '[Gmail]/Starred', | |
'important': '[Gmail]/Important', | |
'inbox': 'INBOX', | |
'spam': '[Gmail]/Spam', | |
'trash': '[Gmail]/Trash', | |
}.get(folder, folder) |
GNU Parallel is a multipurpose program for running shell commands in parallel, which can often be used to replace shell script loops,find -exec
, and find | xargs
. It provides the --sshlogin
and --sshloginfile
options to farm out jobs to multiple hosts, as well as options for sending and retrieving static resources and and per-job input and output files.
For any particular task, however, keeping track of which files need to pushed to and retrieved from the remote hosts is somewhat of a hassle. Furthermore, cancelled or failed runs can leave garbage on the remote hosts, and if input and output files are large, sending them to local disk on the remote hosts is somewhat inefficient.
In a traditional cluster, this problem would be solved by giving all nodes access to a shared filesystem, usually with NFS or something more exotic. However, NFS doesn't wo
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) |
#!/usr/bin/env bash | |
# Working area in EPSG:2154 | |
xmin=892000 | |
ymin=6249000 | |
xmax=894000 | |
ymax=6247000 | |
rm -rf footprints | |
mkdir footprints |