Skip to content

Instantly share code, notes, and snippets.

View StyXman's full-sized avatar

Marcos Dione StyXman

View GitHub Profile
#! /usr/bin/python3
import shapely.wkt
import shapely.wkb
import shapely.geometry
import psycopg2
s= open('121897178.wkt').read()
sh= shapely.wkt.loads(s)
@StyXman
StyXman / render_svg.py
Created June 16, 2019 07:29
Render SVG maps with mapnik and Pyhton
#! /usr/bin/python2
import mapnik
import cairo
import sys
# a2 = 16.55 x 23.4 inches
# take one inch on each margin
# a2_margin = 14.55 x 21.4
# 300 dpi for printing
@StyXman
StyXman / gist:24dbc8cdda180a30b14d2da10c698178
Created August 13, 2023 15:32
image_blender compile errors
Building wheels for collected packages: image-blender
Building wheel for image-blender (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for image-blender (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Warning: 'classifiers' should be a list, got type 'tuple'
running bdist_wheel
running build