Files
tryton/trytond-gis/trytond_gis/__init__.py
T
2024-04-29 18:03:56 +02:00

19 lines
557 B
Python

# This file is part of trytond_gis. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.config import config
from .const import WGS_84
__version__ = "7.3.0"
class _GeoJSON(dict):
def __init__(self, *args, **kwargs):
super(_GeoJSON, self).__init__(*args, **kwargs)
if 'meta' not in self:
self['meta'] = {}
if 'srid' not in self['meta']:
self['meta']['srid'] = config.getint(
'database', 'srid', default=WGS_84)