Files
rogaining_srv/rog/mapping.py
Mohamed Nouffer d373283025 update
2022-04-07 14:53:11 +05:30

37 lines
845 B
Python

from django.contrib.gis.utils import LayerMapping
location_mapping = {
'location_id' : 'loc_id',
# 'location_name' : 'loc_name',
# 'category': 'category',
# 'zip':'zip',
# 'address':'address',
# 'prefecture':'prefecture',
# 'area':'area',
# 'city':'city',
# 'photos':'photos',
# 'videos':'videos',
# 'webcontents':'webcontent',
# 'status':'status',
# 'portal':'portal',
# 'group':'group',
# 'phone':'phone',
# 'fax':'fax',
# 'email':'email',
# 'facility':'facility',
# 'remark':'remark',
# 'parammeters':'params',
# 'tags':'tags',
'geom': 'POINT',
}
location_line_mapping = {
'location_id' : 'loc_id',
'geom': 'LINESTRING',
}
location_polygon_mapping = {
'location_id' : 'loc_id',
'geom': 'POLYGON',
}