Skip to content

Instantly share code, notes, and snippets.

@sylsta
sylsta / .block
Created May 21, 2021 01:37 — forked from d3noob/.block
Map Pan and Zoom v5
license: mit

Splitter un pdf en n *.png pdftoppm input.pdf outputname -png

@sylsta
sylsta / QgisV3LayerRandomColor.py
Created February 13, 2019 18:30
QGIS3 : Automatic pyqgis categorized renderer classification on 'fieldname' field from 'layer' attribute table
from qgis.core import QgsVectorLayer, QgsField, QgsSymbol, QgsSimpleFillSymbolLayer, QgsRendererCategory, QgsCategorizedSymbolRenderer
def QgisV3LayerRandomColor(layer, fieldName):
"""
QGIS3 : Automatic pyqgis categorized renderer classification on 'fieldname' field from 'layer' attribute table
copyright : (C) 2019 by Sylvain T., CNRS FR 3020
Licence : Creative Commons CC-BY-SA V4+
Sources : https://gis.stackexchange.com/questions/226642/automatic-pyqgis-categorized-renderer-classification
:param layer: QgsVectorLayer
@sylsta
sylsta / README.md
Last active February 13, 2019 18:30
Shellscript to download geolite files from maxmind.com

download_maxmind_geolite_files.sh

Shellscript to download geolite files from maxmind.com https://dev.maxmind.com/geoip/legacy/geolite/ Will not work anymore by january 2019

  1. Modify if needed LOCALPATH="./" variable ;
  2. Launch the script (maxmind server sometimes not answer all the wget queries so you may launch it several times)

Sylvain T., Paris, septembre 2018.