34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
Created on: 31.01.22
|
|
|
|
"""
|
|
from konova.sub_settings.django_settings import env
|
|
|
|
# MAPS
|
|
DEFAULT_LAT = 50.00
|
|
DEFAULT_LON = 7.00
|
|
DEFAULT_ZOOM = 8.0
|
|
DEFAULT_SRID = 4326
|
|
DEFAULT_SRID_RLP = 25832
|
|
|
|
# Needed to redirect to LANIS
|
|
## Values to be inserted are [zoom_level, x_coord, y_coord]
|
|
LANIS_LINK_DEFAULT = "https://geodaten.naturschutz.rlp.de/kartendienste_naturschutz/index.php?lang=de&zl=7&x=378800&y=5535500&bl=tk_rlp_tms_grau&bo=1&lo=1,0.7,0.7,0.5,0.7,0.7,0.5,0.7,0.7,0.8,0.7,0.7&layers=grenzen_land,eiv_recorded,eiv_unrecorded,eiv_unrecorded_old_entries,kom_recorded,kom_unrecorded,kom_unrecorded_old_entries,ema_recorded,ema_unrecorded,mae,oek_recorded,oek_unrecorded&service=kartendienste_naturschutz"
|
|
LANIS_LINK_TEMPLATE = "https://geodaten.naturschutz.rlp.de/kartendienste_naturschutz/mapinterface.php?qlayer={}&qfield=identifier&qidtyp=text&qid={}&client=&layers=eiv_recorded,eiv_unrecorded,eiv_unrecorded_old_entries,kom_recorded,kom_unrecorded,kom_unrecorded_old_entries,oek_recorded,oek_unrecorded,ema_recorded,ema_unrecorded,mae&zoomobject=true"
|
|
## This look up table (LUT) defines different zoom levels on the size of the calculate area of a geometry.
|
|
LANIS_ZOOM_LUT = {
|
|
1000000000: 6,
|
|
100000000: 10,
|
|
10000000: 17,
|
|
1000000: 20,
|
|
100000: 25,
|
|
10000: 28,
|
|
1000: 30,
|
|
500: 31,
|
|
}
|
|
|
|
MAP_PROXY_HOST_WHITELIST = env.list("MAP_PROXY_HOST_WHITELIST")
|
|
i = 0 |