- Iterate over shape files in
INPUT_FOLDER
- Apply style file
- Generate TIFF file using
QgsMapRendererParallelJob
import os
""" | |
The following QGIS tool corrects polygons that are overlapping | |
the antimeridian by creating multipolygons with two parts on | |
both sides of the antimeridian. | |
Limitations: | |
- The geometry must be WGS 84 (EPSG:4326). | |
- Polygons must not have holes. | |
Dependencies: |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Leaflet Map using WFS and GeoServer</title> | |
<script src="https://unpkg.com/rxjs@^7/dist/bundles/rxjs.umd.min.js"></script> |
You could write your own Pandoc Lua Filter which adds target="_blank"
to all links:
links.lua
function Link(element)
You can use arcpy.management.Delete
:
import arcpy
shapefile = r"D:\projects\playground\python\stackgis\data\test.shp"
if arcpy.Exists(shapefile):
arcpy.management.Delete(shapefile)
import pandas as pd # pip install pandas | |
import win32com.client # pip install pywin32 | |
import datetime as dt | |
def get_calendar(begin, end): | |
""" Source: https://pythoninoffice.com/get-outlook-calendar-meeting-data-using-python """ | |
outlook = win32com.client.Dispatch('Outlook.Application').GetNamespace('MAPI') | |
calendar = outlook.getDefaultFolder(9).Items | |
calendar.IncludeRecurrences = True |
# using sys.path | |
# see also https://github.com/qgis/QGIS/issues/45646#issuecomment-950339443 | |
import os | |
import sys | |
import subprocess | |
def find_python(): | |
if sys.platform != "win32": |
conda create --name gis
conda activate gis
conda install shapely pandas geopandas
{ | |
"terminal.integrated.profiles.windows": { | |
"CMD with activated Python env": { | |
"path": [ | |
"${env:windir}\\System32\\cmd.exe" | |
], | |
"args": [ | |
"/k", | |
"env\\Scripts\\activate" | |
], |