Skip to content

Commit

Permalink
[Fixes #4025] Regression with uploading a shapefile with no ascii cha…
Browse files Browse the repository at this point in the history
…racters
  • Loading branch information
afabiani committed Oct 29, 2018
1 parent 9cdc528 commit ac64c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/geoserver/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def geoserver_upload(
_native_bbox = gs_resource.native_bbox
except BaseException:
pass
if _native_bbox:
if _native_bbox and len(_native_bbox) >= 5 and _native_bbox[4:5][0] == 'EPSG:4326':
box = _native_bbox[:4]
minx, maxx, miny, maxy = [float(a) for a in box]
if -180 <= minx <= 180 and -180 <= maxx <= 180 and \
Expand Down

0 comments on commit ac64c41

Please sign in to comment.