Fix bug in params binding
This commit is contained in:
parent
70976340da
commit
5e1ab19dfc
|
@ -20,7 +20,7 @@ def get_srid(crs):
|
||||||
else:
|
else:
|
||||||
srid = crs
|
srid = crs
|
||||||
|
|
||||||
return int(srid)
|
return srid
|
||||||
|
|
||||||
def save_extent(package,extent=False):
|
def save_extent(package,extent=False):
|
||||||
'''Updates the package extent in the package_extent geometry column
|
'''Updates the package extent in the package_extent geometry column
|
||||||
|
@ -46,6 +46,8 @@ def save_extent(package,extent=False):
|
||||||
crs = package.extras.get('spatial-reference-system')
|
crs = package.extras.get('spatial-reference-system')
|
||||||
if crs:
|
if crs:
|
||||||
srid = get_srid(crs)
|
srid = get_srid(crs)
|
||||||
|
if srid:
|
||||||
|
srid = str(srid)
|
||||||
try:
|
try:
|
||||||
|
|
||||||
# Check if extent already exists
|
# Check if extent already exists
|
||||||
|
|
Loading…
Reference in New Issue