Ticket #61 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Missing code in cartography.engine.mapserver.rendering.py

Reported by: dokai Owned by: seang
Priority: major Milestone: 0.11
Component: MapServer Engine Version:
Keywords: Cc:

Description

In the _initialize_layerObj method there is a branch in a if-statement chain for disk based datastores that seems to be missing something.

       elif hasattr(datastore, 'path'):
            ft = datastore.featuretype(layer.typename)
            _set_projection(lo, ft.defaultsrs())
            ldef = _get_backend_mapserver_layerdef(datastore.path,
                                                   layer.typename)
            lo.connectiontype = ldef[0]
            lo.connection = ldef[1]
            lo.data = ldef[2]
            if layer.filter:
                lo.filter

The last statement should probably be an assignment to lo.filter. Currently it just throws an AttributeError, because lo doesn't have a filter attribute yet. This naturally happens only when the layer.filter evaluates to True.

Change History

Changed 4 years ago by seang

  • status changed from new to closed
  • resolution set to fixed

Fixed.

Note: See TracTickets for help on using tickets.