Ticket #2744 (new defect)

Opened 5 years ago

Last modified 5 years ago

Python Mapscript's SetLayerDrawingOrder/GetLayerDrawing typemap

Reported by: dstrevinas Owned by: hobu
Priority: low Milestone:
Component: MapScript-Python Version: unspecified
Severity: minor Keywords:
Cc:

Description

Currently those functions need a typemap between SWIG pointers to the integer array and a python integer tuple. Observing pyextend.i which contains some extensions to the python mapObj, there currently exist two functions doing exactly the same thing while using the correct conversions to the PyObjects?:

PyObject? *getLayerOrder()

int setLayerOrder(PyObject? *order)

I propose that they are renamed getLayersDrawingOrder and setLayersDrawingOrder respectively to agree with the documentation. An addition should be to check if setLayersDrawingOrder's python tuple argument contains integer values and return the appropriate exception string. I have attached a working version of setLayersDrawingOrder.

Attachments

setLayersDrawingOrder.py Download (454 bytes) - added by dstrevinas 5 years ago.

Change History

Changed 5 years ago by dstrevinas

Changed 5 years ago by dstrevinas

  • priority changed from lowest to low

Changed 5 years ago by dstrevinas

  • type changed from enhancement to defect
Note: See TracTickets for help on using tickets.