Configuration¶
In your project :
Add geostore to your INSTALLED_APPS
:
# install required apps
INSTALLED_APPS = [
...
'django.contrib.gis', # assume contrib.gis is installed
...
'rest_framework',
'rest_framework_gis',
'geostore',
...
]
Settings¶
- warning::
- Geostore will change the geojson serializer on app loading.
INTERNAL_GEOMETRY_SRID¶
Default: 4326
It’s the installation SRID, it must be set before the first migration and never change after installation, else you must create your own migrations to change your database SRID.
TERRA_TILES_HOSTNAMES¶
Default: [HOSTNAME, ]
It contains the list of base URLs where are served the vector tiles. Since web browsers limit the number of connections to one domain name, a workaround is to use many domains to serve vector tiles, so browser will create more tcp connections, and the tiles loading will be faster.
MAX_TILE_ZOOM¶
Default: 15
It represent the max authorized zoom, if a tile with a zoom above this setting is requested, geostore will refuse to serve it.
MIN_TILE_ZOOM¶
Default: 10
Like for MAX_TILE_ZOOM
setting, if a tile of a lesser zoom than this setting is requested, backend will refuse to serve it.