42 |
from Thuban.Model.classification import ClassGroupDefault, \ |
from Thuban.Model.classification import ClassGroupDefault, \ |
43 |
ClassGroupSingleton, ClassGroupRange |
ClassGroupSingleton, ClassGroupRange |
44 |
|
|
45 |
|
import mapscript |
46 |
from mapscript import layerObj, classObj, colorObj, styleObj, rectObj, symbolObj, \ |
from mapscript import layerObj, classObj, colorObj, styleObj, rectObj, symbolObj, \ |
47 |
pointObj, lineObj |
pointObj, lineObj |
48 |
|
|
85 |
scalebar_style_type = { 0:"0", |
scalebar_style_type = { 0:"0", |
86 |
1:"1" } |
1:"1" } |
87 |
|
|
88 |
scalebar_position_type = { 0:"ul", |
scalebar_position_type = { mapscript.MS_UL:"ul", |
89 |
1:"lr", |
mapscript.MS_LR:"lr", |
90 |
2:"ur", |
mapscript.MS_UR:"ur", |
91 |
3:"ll", |
mapscript.MS_LL:"ll", |
92 |
6:"uc", |
mapscript.MS_UC:"uc", |
93 |
7:"lc"} |
mapscript.MS_LC:"lc"} |
94 |
|
|
95 |
layer_status_type = { 0:"OFF", |
layer_status_type = { 0:"OFF", |
96 |
1:"ON", |
1:"ON", |
1348 |
self._initcode, self._epsgcode = self._mfprojstring.split(':') |
self._initcode, self._epsgcode = self._mfprojstring.split(':') |
1349 |
else: |
else: |
1350 |
self._params = [] |
self._params = [] |
1351 |
self._params = self._mfprojstring.split("+") |
self._params = [p.strip() for p in self._mfprojstring.split("+")] |
1352 |
if self._params[0] == "": |
if self._params[0] == "": |
1353 |
self._params.remove("") |
self._params.remove("") |
1354 |
|
|