Skip to content
Snippets Groups Projects
Commit 94539f13 authored by Rune Åvar Ødegård's avatar Rune Åvar Ødegård
Browse files

Removed hardcode projection to EPSG 4326

parent 44728e4c
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class StationsPostHandler:
%(heavy_duty_fraction)s,
%(street_width)s,
%(height_facades)s,
ST_Transform(ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),4326),
ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),
%(municipality)s,
%(eoi_code)s
)
......@@ -95,7 +95,7 @@ class StationsPostHandler:
heavy_duty_fraction = %(heavy_duty_fraction)s,
street_width = %(street_width)s,
height_facades = %(height_facades)s,
geom = ST_Transform(ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),4326),
geom = ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),
municipality = %(municipality)s,
eoi_code = %(eoi_code)s
"""
......
......@@ -53,7 +53,7 @@ class UpdateHandler:
heavy_duty_fraction=%(heavy_duty_fraction)s,
street_width=%(street_width)s,
height_facades=%(height_facades)s,
geom = ST_Transform(ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),4326),
geom = ST_SetSRID(ST_MakePoint(%(longitude)s,%(latitude)s,%(altitude)s),%(epsg)s),
municipality=%(municipality)s,
eoi_code=%(eoi_code)s
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment