This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fiona | |
from pyproj import CRS | |
schema={'properties': {'Anode': 'int32', 'Bnode': 'int32', 'LinkID': 'float', }, 'geometry': 'LineString'} | |
crs = "EPSG:4326" | |
coordinates = [(115.638812, -32.62857), (115.637933, -32.631091)] | |
records = [fiona.Feature(geometry=fiona.Geometry(coordinates=coordinates, type='LineString'), id='23998', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Drop in replacement for subprocess.run(..., text/universal_newlines=True) with tee-like behaviour. | |
Inspired by https://github.com/pycontribs/subprocess-tee, but that doesn't work from an | |
asyncio event loop. | |
This is pretty quick and dirty AI soup, but seems to work | |
""" | |
import logging | |
import shlex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place in %APPDATA%\QGIS\QGIS3\ | |
#https://gis.stackexchange.com/questions/132695/how-to-show-python-console-at-qgis-program-start | |
import qgis | |
qgis.utils.iface.actionShowPythonDialog().trigger() |