Opened 16 years ago
Last modified 16 years ago
#2744 new defect
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 (1)
Change History (3)
by , 16 years ago
Attachment: | setLayersDrawingOrder.py added |
---|
comment:1 by , 16 years ago
Priority: | lowest → low |
---|
comment:2 by , 16 years ago
Type: | enhancement → defect |
---|