Document link to a map fails if no geoserver layers

Bug #1405461 reported by Daniele Viganò
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Confirmed
Medium
Daniele Viganò

Bug Description

Linking a document to a map fails if the map doesn't have a geoserver layer in it (i.e. Geodetic strain).

Internal Server Error: /documents/46
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geonode/documents/views.py", line 110, in document_detail
    document.save()
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 546, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 570, in save_base
    update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 170, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/models.py", line 100, in catalogue_pre_save
    record = catalogue.get_record(instance.uuid)
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/backends/pycsw_local.py", line 65, in get_record
    results = self._csw_local_dispatch(identifier=uuid)
  File "/usr/local/lib/python2.7/dist-packages/geonode/catalogue/backends/pycsw_local.py", line 151, in _csw_local_dispatch
    response = csw.getrecordbyid()
  File "/usr/lib/python2.7/dist-packages/pycsw/server.py", line 1538, in getrecordbyid
    self.kvp['outputschema'], self.repository.queryables['_all']))
  File "/usr/lib/python2.7/dist-packages/pycsw/plugins/profiles/apiso/apiso.py", line 508, in write_record
    bboxel = write_extent(val, self.namespaces)
  File "/usr/lib/python2.7/dist-packages/pycsw/plugins/profiles/apiso/apiso.py", line 632, in write_extent
    bbox2 = loads(bbox).envelope.bounds
  File "/usr/lib/python2.7/dist-packages/shapely/wkt.py", line 17, in loads
    "Could not create geometry because of errors while reading input."
ReadingError: Could not create geometry because of errors while reading input.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.