Skip to content

Instantly share code, notes, and snippets.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f37d9d0c7aa in __GI___waitpid (pid=5033, stat_loc=0x7fff203175ec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
[Current thread is 1 (Thread 0x7f37d0998e40 (LWP 5003))]
#0 0x00007f37d9d0c7aa in __GI___waitpid (pid=5033, stat_loc=0x7fff203175ec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
resultvar = 18446744073709551104
sc_cancel_oldtype = 0
sc_ret = <optimized out>
#1 0x0000561bf4f541b0 in ?? ()
QGIS died on signal 11src/providers/wms/qgswmsprovider.cpp:871 : (draw) [14ms] [thread:0x556ade7f49a0] TILE CACHE total: 96 / 256
src/providers/wms/qgswmsprovider.cpp:897 : (readBlock) [0ms] [thread:0x556ade7f49a0] image height = 152 bytesPerLine = 888
src/providers/postgres/qgspostgresfeatureiterator.cpp:312 : (fetchFeature) [308ms] [thread:0x556ade7f49a0] Finished after 17 features
[New LWP 16769]
[New LWP 16770]
[New LWP 16771]
[New LWP 16772]
[New LWP 16773]
[New LWP 16775]
[New LWP 16776]
# -*- coding: utf-8 -*-
"""
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
<head><meta charset="utf-8" /><script src="/home/matteo/.local/share/QGIS/QGIS3/profiles/matteo/python/plugins/DataPlotly/core/../jsscripts/polyfill.min.js"></script><script src="/home/matteo/.local/share/QGIS/QGIS3/profiles/matteo/python/plugins/DataPlotly/core/../jsscripts/plotly-1.34.0.min.js"></script></head><div> <div id="97e673f2-9241-4ef0-85f8-d0b67ecf5b2d" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}
;
if (document.getElementById("97e673f2-9241-4ef0-85f8-d0b67ecf5b2d")) {
Plotly.newPlot( '97e673f2-9241-4ef0-85f8-d0b67ecf5b2d', [ {
"customdata": ["so4"], "hoverinfo": "all", "ids": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "line": {
"dash": "solid", "width": 1
}
, "marker": {
"color": "rgb(142, 186, 217)", "colorbar": {
<head><meta charset="utf-8" /><script src="/home/matteo/.local/share/QGIS/QGIS3/profiles/matteo/python/plugins/DataPlotly/core/../jsscripts/polyfill.min.js"></script><script src="https://cdn.plot.ly/plotly-latest.min.js"></script></head><div> <div id="97e673f2-9241-4ef0-85f8-d0b67ecf5b2d" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}
;
if (document.getElementById("97e673f2-9241-4ef0-85f8-d0b67ecf5b2d")) {
Plotly.newPlot( '97e673f2-9241-4ef0-85f8-d0b67ecf5b2d', [ {
"customdata": ["so4"], "hoverinfo": "all", "ids": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "line": {
"dash": "solid", "width": 1
}
, "marker": {
"color": "rgb(142, 186, 217)", "colorbar": {
@ghtmtt
ghtmtt / cum_sum_datetime.py
Created October 15, 2019 07:02
takes a list of qdatetime objects and returns the difference from every object respect to the first one
vl = iface.activeLayer()
s = 0
l = []
for i, j in enumerate(vl.getFeatures()):
l.append(j['time'].toPyDateTime())
ll = []
from plotly import graph_objs as go
a = [go.Scatter({
#'customdata': [so4],
'hoverinfo': 'all',
'ids': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
'line': {'dash': 'solid', 'width': 1.0},
'marker': {'color': ['#e7f1fa', '#eef6fd', '#d3e4f4',' #f0f7fd', '#d7e7f5', '#d6e6f5',
'#deebf7', '#f7fbff', '#f6faff', '#f7fbff', '#f5faff', '#9fcbe2',
from plotly import graph_objs as go
a = [go.Scatter({
#'customdata': [so4],
'hoverinfo': 'all',
'ids': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
'line': {'dash': 'solid', 'width': 1.0},
'marker': {'color': [203, 151, 350, 137, 319, 329, 267, 88, 98, 84, 100, 627, 306, 513, 267,
457, 683, 791, 788, 265, 296, 680, 536, 1122, 632, 1055, 1322, 1485,
@ghtmtt
ghtmtt / geocoding.py
Last active September 14, 2021 04:40
Geocoding in QGIS Field Calculator
# the function needs geopy
# for Windows users, to install geopy, open the OSGEO4W Shell and type:
# py3_env
# pip3 install geopy
from qgis.core import *
from qgis.gui import *
from geopy.geocoders import Nominatim
locator = Nominatim(user_agent="myGeocoder")
----------------------------------------
Compiled translation files to .qm files.
----------------------------------------
Processing: DataPlotly/i18n/DataPlotly_en.ts
Updating 'DataPlotly/i18n/DataPlotly_en.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 164 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_it.ts
Updating 'DataPlotly/i18n/DataPlotly_it.qm'...