Opened 15 years ago

#3195 new defect

mapscript and layerObj transform

Reported by: fredj Owned by: hobu
Priority: normal Milestone:
Component: MapScript-Python Version: 5.4
Severity: normal Keywords:
Cc:

Description

With python mapscript, it seems not possible to set the transform attribute to a value other than MS_TRUE or MS_FALSE (eg. MS_CC).

import mapscript

m = mapscript.mapObj()
layer = mapscript.layerObj()
m.insertLayer(layer)

layer.transform = mapscript.MS_FALSE
assert layer.transform == mapscript.MS_FALSE
m.save('ok.map')

layer.transform = mapscript.MS_CC
assert layer.transform == mapscript.MS_CC
m.save('ko.map')

The first mapfile (ok.map) contains the layer with the correct transform value (FALSE) but ko.map do not contains the transform attribute.

Change History (0)

Note: See TracTickets for help on using tickets.