cleanup layer2img.py

main
Motiejus Jakštys 2021-05-19 22:57:51 +03:00 committed by Motiejus Jakštys
parent 671d1fdfb8
commit 00bc6b2141
1 changed files with 3 additions and 10 deletions

View File

@ -3,21 +3,18 @@ import argparse
import geopandas
import psycopg2
import matplotlib.pyplot as plt
from matplotlib import rc
# CMAP = 'Set3' # is nice too
CMAP = 'tab20c'
BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax')
CMAP = 'tab20c' # 'Set3' # is nice too
PSQL_CREDS = "host=127.0.0.1 dbname=osm user=osm password=osm"
COLORS = {
'black': '#000000',
'green': '#1b9e77',
'orange': '#d95f02',
'purple': '#7570b3',
}
# see `NOTICE` in the LaTeX document; this is the width of the main text block.
TEXTWIDTH_CM = 12.12364
def color(string):
@ -26,10 +23,6 @@ def color(string):
return COLORS[string]
# see `NOTICE` in the LaTeX document; this is the width of the main text block.
TEXTWIDTH_CM = 12.12364
def inch(cm):
return cm / 2.54