Skip to content

Instantly share code, notes, and snippets.

Thomas Gratier ThomasG77

Block or report user

Report or block ThomasG77

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View time_series_covid19_all_layers_hopkins.vrt
<!-- CONFIRMED. See -->
<OGRVRTLayer name="time_series_covid19_confirmed_global">
<GeometryField encoding="PointFromColumns" x="Long" y="Lat"/>
<!-- DEATHS. See -->
<OGRVRTLayer name="time_series_covid19_deaths_global">

QGIS tips


Insert scale as an expression

In QGIS composer, set for the map an "Item ID" with value main_map and then in an expression in a HTML box or a Text box, you can insert the following expressions

[%'1 : '  || round(map_get(item_variables('main_map'), 'map_scale'),0)%]
import json
from qgis.utils import plugins
from qgisnetworklogger.model import (RequestDetailsItem,
RequestHeadersItem, ReplyDetailsItem, ReplyHeadersItem)
def process_record_to_json(record):
_, tot = record.progress
reply_children = record.children[0].children
response_children = record.children[1].children
View example2.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">
<name>Red Bull X-Alps 2019 Route</name>
<snippet> Created by</snippet>
import sys
import os
import qgis
from qgis.gui import *
from qgis.core import *
from qgis.utils import plugins
from PyQt5.QtCore import *
quickosm = os.path.join(os.environ['HOME'], '.local/share/QGIS/QGIS3/profiles/default/python/plugins/')
ThomasG77 /
Last active Feb 24, 2020
Create, update and list issues from Bitbucket API V2 using CURL

Set variables

export user=my_user_email
export password=my_password
export org=my_org_or_my_user
export repo=my_repo_name
ThomasG77 / index.html
Last active Feb 22, 2020 — forked from Andrew-Reid/index.html
Leaflet and Popup with D3
View index.html
<!DOCTYPE html>
<title>Leaflet with D3 popups</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src=""></script>
<link rel="stylesheet" href="" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/>
<script src="" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
View openstreetmap-logo-only.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href=""
<script src=""
You can’t perform that action at this time.