Category Python
EPANET Viewer using EPyT and #streamlit
ImportEpanetInpFiles #QGIS
Older Videos:
QGIS Open Day – QHF March 2021
Join in on the QGIS INTEGRATED open day. Our amazing lineup of presenters will show you how QGIS can work in a network with other software and programs to create dynamic and sharable spatial data, maps, and systems.
If you would like to discuss topics on our QGISOpenDay, please add sections below for each discussion along with the proposed time and agenda.
Simply join the meeting on Jitsi and say hi! https://meet.jit.si/QGISOpenDay
To keep up to date with QGIS Open Day events, please join the Telegram channel
Programme overview:
Virtual events will be taking place online (see links below) and in the telegram chat room, and with many events also being live-streamed on YouTube. See the individual event descriptions below for an indication of where to join each event.
QGISOpenDay 26th March 2021
No | Name | Time | Coordinator | Language |
---|---|---|---|---|
1 | Input and Mergin: collect data, sync, and collaborate with ease | 08h00 UTC | Saber Razmjooei | English |
2 | Using QGIS, Input, Mergin, and Metabase to map the Waterberg | 09h00 UTC | Gavin Fleming | English |
3 | Using QGIS and a laser cutter to make 3D contour models | 10h30 UTC | Raymond Nijssen | English |
4 | Seamless fieldwork with QField & QFieldCloud | 12h00 UTC | Marco Bernasocchi | English |
QField 1.9.0 – Taivaskero
Taivaskero brings not only new gadgets like the print of atlas features, the Finnish address search, and an improved relation editor widget. There are as well lots of other improvements like a smarter progressive rendering and some revamp in the user interface.
- Search for Finnish addresses
- Print Atlas Features to PDF
- Geometry digitizing when adding a child feature
- Opening of individual vector/raster datasets
- Smarter progressive rendering
- Restore last viewed map extent
- Support for colors in attribute forms
- Other nice things and fixes
-
- NMEA UI/UX improvements
- UI/UX of the fill ring tool improvements
- Preference of lowercase characters when entering username on layer login
- No UI hang/freeze when opening the layer properties panel due to slow feature count
- No lock of screen Orientation in QFieldActivity – means you can change the orientation during runtime
- Use of C locale to validate doubles
- Fixed remembered values
- Fixed not showing the display string in the value relation
- Fixed weird behavior on tab change
Source: https://github.com/opengisch/QField/releases/tag/v1.9.0
QGIS Dashboard
Using basemaps with QGIS temporal controller
QGIS 3.14
Old version:
for i, layer in enumerate(QgsProject.instance().mapLayers().values()):
if isinstance(layer, QgsRasterLayer):
mode = QgsRasterLayerTemporalProperties.ModeFixedTemporalRange
tprops = layer.temporalProperties()
tprops.setFixedTemporalRange(QgsDateTimeRange(QDateTime(QDate(2020, 1, 1), QTime(1, i, 0, 0), Qt.UTC),
QDateTime(QDate(2020, 1, 1), QTime(1, 1+i, 0, 0), Qt.UTC)))
tprops.setMode(mode)
tprops.setIsActive(True)
https://github.com/Mariosmsk/qgis-python
Using multiple map canvas #QGIS #Maps
Github repo traffic
Get traffic of your repository.
GitHub provides traffic data for the last 14 days.
This code can be used to run one time of day or every 14 days to collect the traffic.
Python requirements (GithubAPI):
pip install githubpy
run the python file github_traffic.py
But First set this variables based on your repo:
Example: https://github.com/KIOS-Research/ImportPhotos
repo = ‘ImportPhotos’
org = ‘KIOS-Research’
token = ‘%token%’
Python code:
How to get your token:



traffic.csv
#Date, Visitors, Views
2019-07-04T00:00:00Z, 7, 15
2019-07-05T00:00:00Z, 13, 93
2019-07-06T00:00:00Z, 6, 7
2019-07-07T00:00:00Z, 10, 55
2019-07-08T00:00:00Z, 16, 321
2019-07-09T00:00:00Z, 18, 282
2019-07-10T00:00:00Z, 11, 171
2019-07-11T00:00:00Z, 10, 145
2019-07-12T00:00:00Z, 15, 182
2019-07-13T00:00:00Z, 8, 18
2019-07-14T00:00:00Z, 5, 14
2019-07-15T00:00:00Z, 3, 85
2019-07-16T00:00:00Z, 10, 242
2019-07-17T00:00:00Z, 15, 314
2019-07-18T00:00:00Z, 15, 248
2019-07-19T00:00:00Z, 14, 66
...
totals.csv
Total visitors: 176
Total views: 2258
Other links:
http://www.somsubhra.com/github-release-stats/
https://github.com/seladb/github-traffic-stats
https://developer.github.com/
https://stackoverflow.com/questions/4338358/github-can-i-see-the-number-of-downloads-for-a-repo
SWMM-EPANET User Interface
Load basemaps in EPANETUI (Google satellite & Openstreetmap).