This file is indexed.

/usr/lib/python2.7/dist-packages/mapscript.py is in python-mapscript 7.0.0-9ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_mapscript', [dirname(__file__)])
        except ImportError:
            import _mapscript
            return _mapscript
        if fp is not None:
            try:
                _mod = imp.load_module('_mapscript', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _mapscript = swig_import_helper()
    del swig_import_helper
else:
    import _mapscript
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0


class intarray(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, intarray, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, intarray, name)
    __repr__ = _swig_repr

    def __init__(self, nelements):
        this = _mapscript.new_intarray(nelements)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_intarray
    __del__ = lambda self: None

    def __getitem__(self, index):
        return _mapscript.intarray___getitem__(self, index)

    def __setitem__(self, index, value):
        return _mapscript.intarray___setitem__(self, index, value)

    def cast(self):
        return _mapscript.intarray_cast(self)
    __swig_getmethods__["frompointer"] = lambda x: _mapscript.intarray_frompointer
    if _newclass:
        frompointer = staticmethod(_mapscript.intarray_frompointer)
intarray_swigregister = _mapscript.intarray_swigregister
intarray_swigregister(intarray)

def intarray_frompointer(t):
    return _mapscript.intarray_frompointer(t)
intarray_frompointer = _mapscript.intarray_frompointer


MapServerError = _mapscript.MapServerError
MapServerChildError = _mapscript.MapServerChildError


_mapscript.MS_TRUE_swigconstant(_mapscript)
MS_TRUE = _mapscript.MS_TRUE

_mapscript.MS_FALSE_swigconstant(_mapscript)
MS_FALSE = _mapscript.MS_FALSE

_mapscript.MS_UNKNOWN_swigconstant(_mapscript)
MS_UNKNOWN = _mapscript.MS_UNKNOWN

_mapscript.MS_ON_swigconstant(_mapscript)
MS_ON = _mapscript.MS_ON

_mapscript.MS_OFF_swigconstant(_mapscript)
MS_OFF = _mapscript.MS_OFF

_mapscript.MS_DEFAULT_swigconstant(_mapscript)
MS_DEFAULT = _mapscript.MS_DEFAULT

_mapscript.MS_EMBED_swigconstant(_mapscript)
MS_EMBED = _mapscript.MS_EMBED

_mapscript.MS_DELETE_swigconstant(_mapscript)
MS_DELETE = _mapscript.MS_DELETE

_mapscript.MS_YES_swigconstant(_mapscript)
MS_YES = _mapscript.MS_YES

_mapscript.MS_NO_swigconstant(_mapscript)
MS_NO = _mapscript.MS_NO

_mapscript.MS_LAYER_ALLOCSIZE_swigconstant(_mapscript)
MS_LAYER_ALLOCSIZE = _mapscript.MS_LAYER_ALLOCSIZE

_mapscript.MS_CLASS_ALLOCSIZE_swigconstant(_mapscript)
MS_CLASS_ALLOCSIZE = _mapscript.MS_CLASS_ALLOCSIZE

_mapscript.MS_STYLE_ALLOCSIZE_swigconstant(_mapscript)
MS_STYLE_ALLOCSIZE = _mapscript.MS_STYLE_ALLOCSIZE

_mapscript.MS_LABEL_ALLOCSIZE_swigconstant(_mapscript)
MS_LABEL_ALLOCSIZE = _mapscript.MS_LABEL_ALLOCSIZE

_mapscript.MS_MAX_LABEL_PRIORITY_swigconstant(_mapscript)
MS_MAX_LABEL_PRIORITY = _mapscript.MS_MAX_LABEL_PRIORITY

_mapscript.MS_MAX_LABEL_FONTS_swigconstant(_mapscript)
MS_MAX_LABEL_FONTS = _mapscript.MS_MAX_LABEL_FONTS

_mapscript.MS_DEFAULT_LABEL_PRIORITY_swigconstant(_mapscript)
MS_DEFAULT_LABEL_PRIORITY = _mapscript.MS_DEFAULT_LABEL_PRIORITY

_mapscript.MS_LABEL_FORCE_GROUP_swigconstant(_mapscript)
MS_LABEL_FORCE_GROUP = _mapscript.MS_LABEL_FORCE_GROUP

_mapscript.MS_RENDER_WITH_SWF_swigconstant(_mapscript)
MS_RENDER_WITH_SWF = _mapscript.MS_RENDER_WITH_SWF

_mapscript.MS_RENDER_WITH_RAWDATA_swigconstant(_mapscript)
MS_RENDER_WITH_RAWDATA = _mapscript.MS_RENDER_WITH_RAWDATA

_mapscript.MS_RENDER_WITH_IMAGEMAP_swigconstant(_mapscript)
MS_RENDER_WITH_IMAGEMAP = _mapscript.MS_RENDER_WITH_IMAGEMAP

_mapscript.MS_RENDER_WITH_TEMPLATE_swigconstant(_mapscript)
MS_RENDER_WITH_TEMPLATE = _mapscript.MS_RENDER_WITH_TEMPLATE

_mapscript.MS_RENDER_WITH_OGR_swigconstant(_mapscript)
MS_RENDER_WITH_OGR = _mapscript.MS_RENDER_WITH_OGR

_mapscript.MS_RENDER_WITH_PLUGIN_swigconstant(_mapscript)
MS_RENDER_WITH_PLUGIN = _mapscript.MS_RENDER_WITH_PLUGIN

_mapscript.MS_RENDER_WITH_CAIRO_RASTER_swigconstant(_mapscript)
MS_RENDER_WITH_CAIRO_RASTER = _mapscript.MS_RENDER_WITH_CAIRO_RASTER

_mapscript.MS_RENDER_WITH_CAIRO_PDF_swigconstant(_mapscript)
MS_RENDER_WITH_CAIRO_PDF = _mapscript.MS_RENDER_WITH_CAIRO_PDF

_mapscript.MS_RENDER_WITH_CAIRO_SVG_swigconstant(_mapscript)
MS_RENDER_WITH_CAIRO_SVG = _mapscript.MS_RENDER_WITH_CAIRO_SVG

_mapscript.MS_RENDER_WITH_OGL_swigconstant(_mapscript)
MS_RENDER_WITH_OGL = _mapscript.MS_RENDER_WITH_OGL

_mapscript.MS_RENDER_WITH_AGG_swigconstant(_mapscript)
MS_RENDER_WITH_AGG = _mapscript.MS_RENDER_WITH_AGG

_mapscript.MS_RENDER_WITH_KML_swigconstant(_mapscript)
MS_RENDER_WITH_KML = _mapscript.MS_RENDER_WITH_KML

_mapscript.MS_RENDER_WITH_UTFGRID_swigconstant(_mapscript)
MS_RENDER_WITH_UTFGRID = _mapscript.MS_RENDER_WITH_UTFGRID

_mapscript.MS_FILE_MAP_swigconstant(_mapscript)
MS_FILE_MAP = _mapscript.MS_FILE_MAP

_mapscript.MS_FILE_SYMBOL_swigconstant(_mapscript)
MS_FILE_SYMBOL = _mapscript.MS_FILE_SYMBOL

_mapscript.MS_INCHES_swigconstant(_mapscript)
MS_INCHES = _mapscript.MS_INCHES

_mapscript.MS_FEET_swigconstant(_mapscript)
MS_FEET = _mapscript.MS_FEET

_mapscript.MS_MILES_swigconstant(_mapscript)
MS_MILES = _mapscript.MS_MILES

_mapscript.MS_METERS_swigconstant(_mapscript)
MS_METERS = _mapscript.MS_METERS

_mapscript.MS_KILOMETERS_swigconstant(_mapscript)
MS_KILOMETERS = _mapscript.MS_KILOMETERS

_mapscript.MS_DD_swigconstant(_mapscript)
MS_DD = _mapscript.MS_DD

_mapscript.MS_PIXELS_swigconstant(_mapscript)
MS_PIXELS = _mapscript.MS_PIXELS

_mapscript.MS_PERCENTAGES_swigconstant(_mapscript)
MS_PERCENTAGES = _mapscript.MS_PERCENTAGES

_mapscript.MS_NAUTICALMILES_swigconstant(_mapscript)
MS_NAUTICALMILES = _mapscript.MS_NAUTICALMILES

_mapscript.MS_SHAPE_POINT_swigconstant(_mapscript)
MS_SHAPE_POINT = _mapscript.MS_SHAPE_POINT

_mapscript.MS_SHAPE_LINE_swigconstant(_mapscript)
MS_SHAPE_LINE = _mapscript.MS_SHAPE_LINE

_mapscript.MS_SHAPE_POLYGON_swigconstant(_mapscript)
MS_SHAPE_POLYGON = _mapscript.MS_SHAPE_POLYGON

_mapscript.MS_SHAPE_NULL_swigconstant(_mapscript)
MS_SHAPE_NULL = _mapscript.MS_SHAPE_NULL

_mapscript.MS_LAYER_POINT_swigconstant(_mapscript)
MS_LAYER_POINT = _mapscript.MS_LAYER_POINT

_mapscript.MS_LAYER_LINE_swigconstant(_mapscript)
MS_LAYER_LINE = _mapscript.MS_LAYER_LINE

_mapscript.MS_LAYER_POLYGON_swigconstant(_mapscript)
MS_LAYER_POLYGON = _mapscript.MS_LAYER_POLYGON

_mapscript.MS_LAYER_RASTER_swigconstant(_mapscript)
MS_LAYER_RASTER = _mapscript.MS_LAYER_RASTER

_mapscript.MS_LAYER_ANNOTATION_swigconstant(_mapscript)
MS_LAYER_ANNOTATION = _mapscript.MS_LAYER_ANNOTATION

_mapscript.MS_LAYER_QUERY_swigconstant(_mapscript)
MS_LAYER_QUERY = _mapscript.MS_LAYER_QUERY

_mapscript.MS_LAYER_CIRCLE_swigconstant(_mapscript)
MS_LAYER_CIRCLE = _mapscript.MS_LAYER_CIRCLE

_mapscript.MS_LAYER_TILEINDEX_swigconstant(_mapscript)
MS_LAYER_TILEINDEX = _mapscript.MS_LAYER_TILEINDEX

_mapscript.MS_LAYER_CHART_swigconstant(_mapscript)
MS_LAYER_CHART = _mapscript.MS_LAYER_CHART

_mapscript.MS_TRUETYPE_swigconstant(_mapscript)
MS_TRUETYPE = _mapscript.MS_TRUETYPE

_mapscript.MS_BITMAP_swigconstant(_mapscript)
MS_BITMAP = _mapscript.MS_BITMAP

_mapscript.MS_POSITIONS_LENGTH_swigconstant(_mapscript)
MS_POSITIONS_LENGTH = _mapscript.MS_POSITIONS_LENGTH

_mapscript.MS_UL_swigconstant(_mapscript)
MS_UL = _mapscript.MS_UL

_mapscript.MS_LR_swigconstant(_mapscript)
MS_LR = _mapscript.MS_LR

_mapscript.MS_UR_swigconstant(_mapscript)
MS_UR = _mapscript.MS_UR

_mapscript.MS_LL_swigconstant(_mapscript)
MS_LL = _mapscript.MS_LL

_mapscript.MS_CR_swigconstant(_mapscript)
MS_CR = _mapscript.MS_CR

_mapscript.MS_CL_swigconstant(_mapscript)
MS_CL = _mapscript.MS_CL

_mapscript.MS_UC_swigconstant(_mapscript)
MS_UC = _mapscript.MS_UC

_mapscript.MS_LC_swigconstant(_mapscript)
MS_LC = _mapscript.MS_LC

_mapscript.MS_CC_swigconstant(_mapscript)
MS_CC = _mapscript.MS_CC

_mapscript.MS_AUTO_swigconstant(_mapscript)
MS_AUTO = _mapscript.MS_AUTO

_mapscript.MS_XY_swigconstant(_mapscript)
MS_XY = _mapscript.MS_XY

_mapscript.MS_NONE_swigconstant(_mapscript)
MS_NONE = _mapscript.MS_NONE

_mapscript.MS_AUTO2_swigconstant(_mapscript)
MS_AUTO2 = _mapscript.MS_AUTO2

_mapscript.MS_FOLLOW_swigconstant(_mapscript)
MS_FOLLOW = _mapscript.MS_FOLLOW

_mapscript.MS_TINY_swigconstant(_mapscript)
MS_TINY = _mapscript.MS_TINY

_mapscript.MS_SMALL_swigconstant(_mapscript)
MS_SMALL = _mapscript.MS_SMALL

_mapscript.MS_MEDIUM_swigconstant(_mapscript)
MS_MEDIUM = _mapscript.MS_MEDIUM

_mapscript.MS_LARGE_swigconstant(_mapscript)
MS_LARGE = _mapscript.MS_LARGE

_mapscript.MS_GIANT_swigconstant(_mapscript)
MS_GIANT = _mapscript.MS_GIANT

_mapscript.MS_NORMAL_swigconstant(_mapscript)
MS_NORMAL = _mapscript.MS_NORMAL

_mapscript.MS_HILITE_swigconstant(_mapscript)
MS_HILITE = _mapscript.MS_HILITE

_mapscript.MS_SELECTED_swigconstant(_mapscript)
MS_SELECTED = _mapscript.MS_SELECTED

_mapscript.MS_INLINE_swigconstant(_mapscript)
MS_INLINE = _mapscript.MS_INLINE

_mapscript.MS_SHAPEFILE_swigconstant(_mapscript)
MS_SHAPEFILE = _mapscript.MS_SHAPEFILE

_mapscript.MS_TILED_SHAPEFILE_swigconstant(_mapscript)
MS_TILED_SHAPEFILE = _mapscript.MS_TILED_SHAPEFILE

_mapscript.MS_UNUSED_2_swigconstant(_mapscript)
MS_UNUSED_2 = _mapscript.MS_UNUSED_2

_mapscript.MS_OGR_swigconstant(_mapscript)
MS_OGR = _mapscript.MS_OGR

_mapscript.MS_UNUSED_1_swigconstant(_mapscript)
MS_UNUSED_1 = _mapscript.MS_UNUSED_1

_mapscript.MS_POSTGIS_swigconstant(_mapscript)
MS_POSTGIS = _mapscript.MS_POSTGIS

_mapscript.MS_WMS_swigconstant(_mapscript)
MS_WMS = _mapscript.MS_WMS

_mapscript.MS_ORACLESPATIAL_swigconstant(_mapscript)
MS_ORACLESPATIAL = _mapscript.MS_ORACLESPATIAL

_mapscript.MS_WFS_swigconstant(_mapscript)
MS_WFS = _mapscript.MS_WFS

_mapscript.MS_GRATICULE_swigconstant(_mapscript)
MS_GRATICULE = _mapscript.MS_GRATICULE

_mapscript.MS_MYSQL_swigconstant(_mapscript)
MS_MYSQL = _mapscript.MS_MYSQL

_mapscript.MS_RASTER_swigconstant(_mapscript)
MS_RASTER = _mapscript.MS_RASTER

_mapscript.MS_PLUGIN_swigconstant(_mapscript)
MS_PLUGIN = _mapscript.MS_PLUGIN

_mapscript.MS_UNION_swigconstant(_mapscript)
MS_UNION = _mapscript.MS_UNION

_mapscript.MS_UVRASTER_swigconstant(_mapscript)
MS_UVRASTER = _mapscript.MS_UVRASTER

_mapscript.MS_CONTOUR_swigconstant(_mapscript)
MS_CONTOUR = _mapscript.MS_CONTOUR

_mapscript.MS_KERNELDENSITY_swigconstant(_mapscript)
MS_KERNELDENSITY = _mapscript.MS_KERNELDENSITY

_mapscript.MS_DB_XBASE_swigconstant(_mapscript)
MS_DB_XBASE = _mapscript.MS_DB_XBASE

_mapscript.MS_DB_CSV_swigconstant(_mapscript)
MS_DB_CSV = _mapscript.MS_DB_CSV

_mapscript.MS_DB_MYSQL_swigconstant(_mapscript)
MS_DB_MYSQL = _mapscript.MS_DB_MYSQL

_mapscript.MS_DB_ORACLE_swigconstant(_mapscript)
MS_DB_ORACLE = _mapscript.MS_DB_ORACLE

_mapscript.MS_DB_POSTGRES_swigconstant(_mapscript)
MS_DB_POSTGRES = _mapscript.MS_DB_POSTGRES

_mapscript.MS_JOIN_ONE_TO_ONE_swigconstant(_mapscript)
MS_JOIN_ONE_TO_ONE = _mapscript.MS_JOIN_ONE_TO_ONE

_mapscript.MS_JOIN_ONE_TO_MANY_swigconstant(_mapscript)
MS_JOIN_ONE_TO_MANY = _mapscript.MS_JOIN_ONE_TO_MANY

_mapscript.MS_SINGLE_swigconstant(_mapscript)
MS_SINGLE = _mapscript.MS_SINGLE

_mapscript.MS_MULTIPLE_swigconstant(_mapscript)
MS_MULTIPLE = _mapscript.MS_MULTIPLE

_mapscript.MS_QUERY_SINGLE_swigconstant(_mapscript)
MS_QUERY_SINGLE = _mapscript.MS_QUERY_SINGLE

_mapscript.MS_QUERY_MULTIPLE_swigconstant(_mapscript)
MS_QUERY_MULTIPLE = _mapscript.MS_QUERY_MULTIPLE

_mapscript.MS_QUERY_IS_NULL_swigconstant(_mapscript)
MS_QUERY_IS_NULL = _mapscript.MS_QUERY_IS_NULL

_mapscript.MS_QUERY_BY_POINT_swigconstant(_mapscript)
MS_QUERY_BY_POINT = _mapscript.MS_QUERY_BY_POINT

_mapscript.MS_QUERY_BY_RECT_swigconstant(_mapscript)
MS_QUERY_BY_RECT = _mapscript.MS_QUERY_BY_RECT

_mapscript.MS_QUERY_BY_SHAPE_swigconstant(_mapscript)
MS_QUERY_BY_SHAPE = _mapscript.MS_QUERY_BY_SHAPE

_mapscript.MS_QUERY_BY_ATTRIBUTE_swigconstant(_mapscript)
MS_QUERY_BY_ATTRIBUTE = _mapscript.MS_QUERY_BY_ATTRIBUTE

_mapscript.MS_QUERY_BY_INDEX_swigconstant(_mapscript)
MS_QUERY_BY_INDEX = _mapscript.MS_QUERY_BY_INDEX

_mapscript.MS_QUERY_BY_FILTER_swigconstant(_mapscript)
MS_QUERY_BY_FILTER = _mapscript.MS_QUERY_BY_FILTER

_mapscript.MS_ALIGN_DEFAULT_swigconstant(_mapscript)
MS_ALIGN_DEFAULT = _mapscript.MS_ALIGN_DEFAULT

_mapscript.MS_ALIGN_LEFT_swigconstant(_mapscript)
MS_ALIGN_LEFT = _mapscript.MS_ALIGN_LEFT

_mapscript.MS_ALIGN_CENTER_swigconstant(_mapscript)
MS_ALIGN_CENTER = _mapscript.MS_ALIGN_CENTER

_mapscript.MS_ALIGN_RIGHT_swigconstant(_mapscript)
MS_ALIGN_RIGHT = _mapscript.MS_ALIGN_RIGHT

_mapscript.MS_CJC_NONE_swigconstant(_mapscript)
MS_CJC_NONE = _mapscript.MS_CJC_NONE

_mapscript.MS_CJC_BEVEL_swigconstant(_mapscript)
MS_CJC_BEVEL = _mapscript.MS_CJC_BEVEL

_mapscript.MS_CJC_BUTT_swigconstant(_mapscript)
MS_CJC_BUTT = _mapscript.MS_CJC_BUTT

_mapscript.MS_CJC_MITER_swigconstant(_mapscript)
MS_CJC_MITER = _mapscript.MS_CJC_MITER

_mapscript.MS_CJC_ROUND_swigconstant(_mapscript)
MS_CJC_ROUND = _mapscript.MS_CJC_ROUND

_mapscript.MS_CJC_SQUARE_swigconstant(_mapscript)
MS_CJC_SQUARE = _mapscript.MS_CJC_SQUARE

_mapscript.MS_CJC_TRIANGLE_swigconstant(_mapscript)
MS_CJC_TRIANGLE = _mapscript.MS_CJC_TRIANGLE

_mapscript.MS_CJC_DEFAULT_JOIN_MAXSIZE_swigconstant(_mapscript)
MS_CJC_DEFAULT_JOIN_MAXSIZE = _mapscript.MS_CJC_DEFAULT_JOIN_MAXSIZE

_mapscript.MS_SUCCESS_swigconstant(_mapscript)
MS_SUCCESS = _mapscript.MS_SUCCESS

_mapscript.MS_FAILURE_swigconstant(_mapscript)
MS_FAILURE = _mapscript.MS_FAILURE

_mapscript.MS_DONE_swigconstant(_mapscript)
MS_DONE = _mapscript.MS_DONE

_mapscript.MS_IMAGEMODE_PC256_swigconstant(_mapscript)
MS_IMAGEMODE_PC256 = _mapscript.MS_IMAGEMODE_PC256

_mapscript.MS_IMAGEMODE_RGB_swigconstant(_mapscript)
MS_IMAGEMODE_RGB = _mapscript.MS_IMAGEMODE_RGB

_mapscript.MS_IMAGEMODE_RGBA_swigconstant(_mapscript)
MS_IMAGEMODE_RGBA = _mapscript.MS_IMAGEMODE_RGBA

_mapscript.MS_IMAGEMODE_INT16_swigconstant(_mapscript)
MS_IMAGEMODE_INT16 = _mapscript.MS_IMAGEMODE_INT16

_mapscript.MS_IMAGEMODE_FLOAT32_swigconstant(_mapscript)
MS_IMAGEMODE_FLOAT32 = _mapscript.MS_IMAGEMODE_FLOAT32

_mapscript.MS_IMAGEMODE_BYTE_swigconstant(_mapscript)
MS_IMAGEMODE_BYTE = _mapscript.MS_IMAGEMODE_BYTE

_mapscript.MS_IMAGEMODE_FEATURE_swigconstant(_mapscript)
MS_IMAGEMODE_FEATURE = _mapscript.MS_IMAGEMODE_FEATURE

_mapscript.MS_IMAGEMODE_NULL_swigconstant(_mapscript)
MS_IMAGEMODE_NULL = _mapscript.MS_IMAGEMODE_NULL

_mapscript.MS_GEOS_EQUALS_swigconstant(_mapscript)
MS_GEOS_EQUALS = _mapscript.MS_GEOS_EQUALS

_mapscript.MS_GEOS_DISJOINT_swigconstant(_mapscript)
MS_GEOS_DISJOINT = _mapscript.MS_GEOS_DISJOINT

_mapscript.MS_GEOS_TOUCHES_swigconstant(_mapscript)
MS_GEOS_TOUCHES = _mapscript.MS_GEOS_TOUCHES

_mapscript.MS_GEOS_OVERLAPS_swigconstant(_mapscript)
MS_GEOS_OVERLAPS = _mapscript.MS_GEOS_OVERLAPS

_mapscript.MS_GEOS_CROSSES_swigconstant(_mapscript)
MS_GEOS_CROSSES = _mapscript.MS_GEOS_CROSSES

_mapscript.MS_GEOS_INTERSECTS_swigconstant(_mapscript)
MS_GEOS_INTERSECTS = _mapscript.MS_GEOS_INTERSECTS

_mapscript.MS_GEOS_WITHIN_swigconstant(_mapscript)
MS_GEOS_WITHIN = _mapscript.MS_GEOS_WITHIN

_mapscript.MS_GEOS_CONTAINS_swigconstant(_mapscript)
MS_GEOS_CONTAINS = _mapscript.MS_GEOS_CONTAINS

_mapscript.MS_GEOS_BEYOND_swigconstant(_mapscript)
MS_GEOS_BEYOND = _mapscript.MS_GEOS_BEYOND

_mapscript.MS_GEOS_DWITHIN_swigconstant(_mapscript)
MS_GEOS_DWITHIN = _mapscript.MS_GEOS_DWITHIN

_mapscript.MS_TRANSFORM_NONE_swigconstant(_mapscript)
MS_TRANSFORM_NONE = _mapscript.MS_TRANSFORM_NONE

_mapscript.MS_TRANSFORM_ROUND_swigconstant(_mapscript)
MS_TRANSFORM_ROUND = _mapscript.MS_TRANSFORM_ROUND

_mapscript.MS_TRANSFORM_SNAPTOGRID_swigconstant(_mapscript)
MS_TRANSFORM_SNAPTOGRID = _mapscript.MS_TRANSFORM_SNAPTOGRID

_mapscript.MS_TRANSFORM_FULLRESOLUTION_swigconstant(_mapscript)
MS_TRANSFORM_FULLRESOLUTION = _mapscript.MS_TRANSFORM_FULLRESOLUTION

_mapscript.MS_TRANSFORM_SIMPLIFY_swigconstant(_mapscript)
MS_TRANSFORM_SIMPLIFY = _mapscript.MS_TRANSFORM_SIMPLIFY

_mapscript.MS_COMPOP_CLEAR_swigconstant(_mapscript)
MS_COMPOP_CLEAR = _mapscript.MS_COMPOP_CLEAR

_mapscript.MS_COMPOP_SRC_swigconstant(_mapscript)
MS_COMPOP_SRC = _mapscript.MS_COMPOP_SRC

_mapscript.MS_COMPOP_DST_swigconstant(_mapscript)
MS_COMPOP_DST = _mapscript.MS_COMPOP_DST

_mapscript.MS_COMPOP_SRC_OVER_swigconstant(_mapscript)
MS_COMPOP_SRC_OVER = _mapscript.MS_COMPOP_SRC_OVER

_mapscript.MS_COMPOP_DST_OVER_swigconstant(_mapscript)
MS_COMPOP_DST_OVER = _mapscript.MS_COMPOP_DST_OVER

_mapscript.MS_COMPOP_SRC_IN_swigconstant(_mapscript)
MS_COMPOP_SRC_IN = _mapscript.MS_COMPOP_SRC_IN

_mapscript.MS_COMPOP_DST_IN_swigconstant(_mapscript)
MS_COMPOP_DST_IN = _mapscript.MS_COMPOP_DST_IN

_mapscript.MS_COMPOP_SRC_OUT_swigconstant(_mapscript)
MS_COMPOP_SRC_OUT = _mapscript.MS_COMPOP_SRC_OUT

_mapscript.MS_COMPOP_DST_OUT_swigconstant(_mapscript)
MS_COMPOP_DST_OUT = _mapscript.MS_COMPOP_DST_OUT

_mapscript.MS_COMPOP_SRC_ATOP_swigconstant(_mapscript)
MS_COMPOP_SRC_ATOP = _mapscript.MS_COMPOP_SRC_ATOP

_mapscript.MS_COMPOP_DST_ATOP_swigconstant(_mapscript)
MS_COMPOP_DST_ATOP = _mapscript.MS_COMPOP_DST_ATOP

_mapscript.MS_COMPOP_XOR_swigconstant(_mapscript)
MS_COMPOP_XOR = _mapscript.MS_COMPOP_XOR

_mapscript.MS_COMPOP_PLUS_swigconstant(_mapscript)
MS_COMPOP_PLUS = _mapscript.MS_COMPOP_PLUS

_mapscript.MS_COMPOP_MINUS_swigconstant(_mapscript)
MS_COMPOP_MINUS = _mapscript.MS_COMPOP_MINUS

_mapscript.MS_COMPOP_MULTIPLY_swigconstant(_mapscript)
MS_COMPOP_MULTIPLY = _mapscript.MS_COMPOP_MULTIPLY

_mapscript.MS_COMPOP_SCREEN_swigconstant(_mapscript)
MS_COMPOP_SCREEN = _mapscript.MS_COMPOP_SCREEN

_mapscript.MS_COMPOP_OVERLAY_swigconstant(_mapscript)
MS_COMPOP_OVERLAY = _mapscript.MS_COMPOP_OVERLAY

_mapscript.MS_COMPOP_DARKEN_swigconstant(_mapscript)
MS_COMPOP_DARKEN = _mapscript.MS_COMPOP_DARKEN

_mapscript.MS_COMPOP_LIGHTEN_swigconstant(_mapscript)
MS_COMPOP_LIGHTEN = _mapscript.MS_COMPOP_LIGHTEN

_mapscript.MS_COMPOP_COLOR_DODGE_swigconstant(_mapscript)
MS_COMPOP_COLOR_DODGE = _mapscript.MS_COMPOP_COLOR_DODGE

_mapscript.MS_COMPOP_COLOR_BURN_swigconstant(_mapscript)
MS_COMPOP_COLOR_BURN = _mapscript.MS_COMPOP_COLOR_BURN

_mapscript.MS_COMPOP_HARD_LIGHT_swigconstant(_mapscript)
MS_COMPOP_HARD_LIGHT = _mapscript.MS_COMPOP_HARD_LIGHT

_mapscript.MS_COMPOP_SOFT_LIGHT_swigconstant(_mapscript)
MS_COMPOP_SOFT_LIGHT = _mapscript.MS_COMPOP_SOFT_LIGHT

_mapscript.MS_COMPOP_DIFFERENCE_swigconstant(_mapscript)
MS_COMPOP_DIFFERENCE = _mapscript.MS_COMPOP_DIFFERENCE

_mapscript.MS_COMPOP_EXCLUSION_swigconstant(_mapscript)
MS_COMPOP_EXCLUSION = _mapscript.MS_COMPOP_EXCLUSION

_mapscript.MS_COMPOP_CONTRAST_swigconstant(_mapscript)
MS_COMPOP_CONTRAST = _mapscript.MS_COMPOP_CONTRAST

_mapscript.MS_COMPOP_INVERT_swigconstant(_mapscript)
MS_COMPOP_INVERT = _mapscript.MS_COMPOP_INVERT

_mapscript.MS_COMPOP_INVERT_RGB_swigconstant(_mapscript)
MS_COMPOP_INVERT_RGB = _mapscript.MS_COMPOP_INVERT_RGB
class CompositingFilter(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, CompositingFilter, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, CompositingFilter, name)
    __repr__ = _swig_repr
    __swig_setmethods__["filter"] = _mapscript.CompositingFilter_filter_set
    __swig_getmethods__["filter"] = _mapscript.CompositingFilter_filter_get
    if _newclass:
        filter = _swig_property(_mapscript.CompositingFilter_filter_get, _mapscript.CompositingFilter_filter_set)

    def __init__(self):
        this = _mapscript.new_CompositingFilter()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_CompositingFilter
    __del__ = lambda self: None
CompositingFilter_swigregister = _mapscript.CompositingFilter_swigregister
CompositingFilter_swigregister(CompositingFilter)

class LayerCompositer(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, LayerCompositer, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, LayerCompositer, name)
    __repr__ = _swig_repr
    __swig_setmethods__["comp_op"] = _mapscript.LayerCompositer_comp_op_set
    __swig_getmethods__["comp_op"] = _mapscript.LayerCompositer_comp_op_get
    if _newclass:
        comp_op = _swig_property(_mapscript.LayerCompositer_comp_op_get, _mapscript.LayerCompositer_comp_op_set)
    __swig_setmethods__["opacity"] = _mapscript.LayerCompositer_opacity_set
    __swig_getmethods__["opacity"] = _mapscript.LayerCompositer_opacity_get
    if _newclass:
        opacity = _swig_property(_mapscript.LayerCompositer_opacity_get, _mapscript.LayerCompositer_opacity_set)
    __swig_setmethods__["filter"] = _mapscript.LayerCompositer_filter_set
    __swig_getmethods__["filter"] = _mapscript.LayerCompositer_filter_get
    if _newclass:
        filter = _swig_property(_mapscript.LayerCompositer_filter_get, _mapscript.LayerCompositer_filter_set)
    __swig_setmethods__["next"] = _mapscript.LayerCompositer_next_set
    __swig_getmethods__["next"] = _mapscript.LayerCompositer_next_get
    if _newclass:
        next = _swig_property(_mapscript.LayerCompositer_next_get, _mapscript.LayerCompositer_next_set)

    def __init__(self):
        this = _mapscript.new_LayerCompositer()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_LayerCompositer
    __del__ = lambda self: None
LayerCompositer_swigregister = _mapscript.LayerCompositer_swigregister
LayerCompositer_swigregister(LayerCompositer)


_mapscript.MS_STYLE_BINDING_LENGTH_swigconstant(_mapscript)
MS_STYLE_BINDING_LENGTH = _mapscript.MS_STYLE_BINDING_LENGTH

_mapscript.MS_STYLE_BINDING_SIZE_swigconstant(_mapscript)
MS_STYLE_BINDING_SIZE = _mapscript.MS_STYLE_BINDING_SIZE

_mapscript.MS_STYLE_BINDING_WIDTH_swigconstant(_mapscript)
MS_STYLE_BINDING_WIDTH = _mapscript.MS_STYLE_BINDING_WIDTH

_mapscript.MS_STYLE_BINDING_ANGLE_swigconstant(_mapscript)
MS_STYLE_BINDING_ANGLE = _mapscript.MS_STYLE_BINDING_ANGLE

_mapscript.MS_STYLE_BINDING_COLOR_swigconstant(_mapscript)
MS_STYLE_BINDING_COLOR = _mapscript.MS_STYLE_BINDING_COLOR

_mapscript.MS_STYLE_BINDING_OUTLINECOLOR_swigconstant(_mapscript)
MS_STYLE_BINDING_OUTLINECOLOR = _mapscript.MS_STYLE_BINDING_OUTLINECOLOR

_mapscript.MS_STYLE_BINDING_SYMBOL_swigconstant(_mapscript)
MS_STYLE_BINDING_SYMBOL = _mapscript.MS_STYLE_BINDING_SYMBOL

_mapscript.MS_STYLE_BINDING_OUTLINEWIDTH_swigconstant(_mapscript)
MS_STYLE_BINDING_OUTLINEWIDTH = _mapscript.MS_STYLE_BINDING_OUTLINEWIDTH

_mapscript.MS_STYLE_BINDING_OPACITY_swigconstant(_mapscript)
MS_STYLE_BINDING_OPACITY = _mapscript.MS_STYLE_BINDING_OPACITY

_mapscript.MS_STYLE_BINDING_OFFSET_X_swigconstant(_mapscript)
MS_STYLE_BINDING_OFFSET_X = _mapscript.MS_STYLE_BINDING_OFFSET_X

_mapscript.MS_STYLE_BINDING_OFFSET_Y_swigconstant(_mapscript)
MS_STYLE_BINDING_OFFSET_Y = _mapscript.MS_STYLE_BINDING_OFFSET_Y

_mapscript.MS_STYLE_BINDING_POLAROFFSET_PIXEL_swigconstant(_mapscript)
MS_STYLE_BINDING_POLAROFFSET_PIXEL = _mapscript.MS_STYLE_BINDING_POLAROFFSET_PIXEL

_mapscript.MS_STYLE_BINDING_POLAROFFSET_ANGLE_swigconstant(_mapscript)
MS_STYLE_BINDING_POLAROFFSET_ANGLE = _mapscript.MS_STYLE_BINDING_POLAROFFSET_ANGLE

_mapscript.MS_LABEL_BINDING_LENGTH_swigconstant(_mapscript)
MS_LABEL_BINDING_LENGTH = _mapscript.MS_LABEL_BINDING_LENGTH

_mapscript.MS_LABEL_BINDING_SIZE_swigconstant(_mapscript)
MS_LABEL_BINDING_SIZE = _mapscript.MS_LABEL_BINDING_SIZE

_mapscript.MS_LABEL_BINDING_ANGLE_swigconstant(_mapscript)
MS_LABEL_BINDING_ANGLE = _mapscript.MS_LABEL_BINDING_ANGLE

_mapscript.MS_LABEL_BINDING_COLOR_swigconstant(_mapscript)
MS_LABEL_BINDING_COLOR = _mapscript.MS_LABEL_BINDING_COLOR

_mapscript.MS_LABEL_BINDING_OUTLINECOLOR_swigconstant(_mapscript)
MS_LABEL_BINDING_OUTLINECOLOR = _mapscript.MS_LABEL_BINDING_OUTLINECOLOR

_mapscript.MS_LABEL_BINDING_FONT_swigconstant(_mapscript)
MS_LABEL_BINDING_FONT = _mapscript.MS_LABEL_BINDING_FONT

_mapscript.MS_LABEL_BINDING_PRIORITY_swigconstant(_mapscript)
MS_LABEL_BINDING_PRIORITY = _mapscript.MS_LABEL_BINDING_PRIORITY

_mapscript.MS_LABEL_BINDING_POSITION_swigconstant(_mapscript)
MS_LABEL_BINDING_POSITION = _mapscript.MS_LABEL_BINDING_POSITION

_mapscript.MS_LABEL_BINDING_SHADOWSIZEX_swigconstant(_mapscript)
MS_LABEL_BINDING_SHADOWSIZEX = _mapscript.MS_LABEL_BINDING_SHADOWSIZEX

_mapscript.MS_LABEL_BINDING_SHADOWSIZEY_swigconstant(_mapscript)
MS_LABEL_BINDING_SHADOWSIZEY = _mapscript.MS_LABEL_BINDING_SHADOWSIZEY
class fontSetObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, fontSetObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, fontSetObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["filename"] = _mapscript.fontSetObj_filename_get
    if _newclass:
        filename = _swig_property(_mapscript.fontSetObj_filename_get)
    __swig_getmethods__["numfonts"] = _mapscript.fontSetObj_numfonts_get
    if _newclass:
        numfonts = _swig_property(_mapscript.fontSetObj_numfonts_get)
    __swig_getmethods__["fonts"] = _mapscript.fontSetObj_fonts_get
    if _newclass:
        fonts = _swig_property(_mapscript.fontSetObj_fonts_get)

    def __init__(self):
        this = _mapscript.new_fontSetObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_fontSetObj
    __del__ = lambda self: None
fontSetObj_swigregister = _mapscript.fontSetObj_swigregister
fontSetObj_swigregister(fontSetObj)


_mapscript.MS_TOKEN_LOGICAL_AND_swigconstant(_mapscript)
MS_TOKEN_LOGICAL_AND = _mapscript.MS_TOKEN_LOGICAL_AND

_mapscript.MS_TOKEN_LOGICAL_OR_swigconstant(_mapscript)
MS_TOKEN_LOGICAL_OR = _mapscript.MS_TOKEN_LOGICAL_OR

_mapscript.MS_TOKEN_LOGICAL_NOT_swigconstant(_mapscript)
MS_TOKEN_LOGICAL_NOT = _mapscript.MS_TOKEN_LOGICAL_NOT

_mapscript.MS_TOKEN_LITERAL_NUMBER_swigconstant(_mapscript)
MS_TOKEN_LITERAL_NUMBER = _mapscript.MS_TOKEN_LITERAL_NUMBER

_mapscript.MS_TOKEN_LITERAL_STRING_swigconstant(_mapscript)
MS_TOKEN_LITERAL_STRING = _mapscript.MS_TOKEN_LITERAL_STRING

_mapscript.MS_TOKEN_LITERAL_TIME_swigconstant(_mapscript)
MS_TOKEN_LITERAL_TIME = _mapscript.MS_TOKEN_LITERAL_TIME

_mapscript.MS_TOKEN_LITERAL_SHAPE_swigconstant(_mapscript)
MS_TOKEN_LITERAL_SHAPE = _mapscript.MS_TOKEN_LITERAL_SHAPE

_mapscript.MS_TOKEN_LITERAL_BOOLEAN_swigconstant(_mapscript)
MS_TOKEN_LITERAL_BOOLEAN = _mapscript.MS_TOKEN_LITERAL_BOOLEAN

_mapscript.MS_TOKEN_COMPARISON_EQ_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_EQ = _mapscript.MS_TOKEN_COMPARISON_EQ

_mapscript.MS_TOKEN_COMPARISON_NE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_NE = _mapscript.MS_TOKEN_COMPARISON_NE

_mapscript.MS_TOKEN_COMPARISON_GT_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_GT = _mapscript.MS_TOKEN_COMPARISON_GT

_mapscript.MS_TOKEN_COMPARISON_LT_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_LT = _mapscript.MS_TOKEN_COMPARISON_LT

_mapscript.MS_TOKEN_COMPARISON_LE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_LE = _mapscript.MS_TOKEN_COMPARISON_LE

_mapscript.MS_TOKEN_COMPARISON_GE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_GE = _mapscript.MS_TOKEN_COMPARISON_GE

_mapscript.MS_TOKEN_COMPARISON_IEQ_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_IEQ = _mapscript.MS_TOKEN_COMPARISON_IEQ

_mapscript.MS_TOKEN_COMPARISON_RE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_RE = _mapscript.MS_TOKEN_COMPARISON_RE

_mapscript.MS_TOKEN_COMPARISON_IRE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_IRE = _mapscript.MS_TOKEN_COMPARISON_IRE

_mapscript.MS_TOKEN_COMPARISON_IN_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_IN = _mapscript.MS_TOKEN_COMPARISON_IN

_mapscript.MS_TOKEN_COMPARISON_LIKE_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_LIKE = _mapscript.MS_TOKEN_COMPARISON_LIKE

_mapscript.MS_TOKEN_COMPARISON_INTERSECTS_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_INTERSECTS = _mapscript.MS_TOKEN_COMPARISON_INTERSECTS

_mapscript.MS_TOKEN_COMPARISON_DISJOINT_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_DISJOINT = _mapscript.MS_TOKEN_COMPARISON_DISJOINT

_mapscript.MS_TOKEN_COMPARISON_TOUCHES_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_TOUCHES = _mapscript.MS_TOKEN_COMPARISON_TOUCHES

_mapscript.MS_TOKEN_COMPARISON_OVERLAPS_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_OVERLAPS = _mapscript.MS_TOKEN_COMPARISON_OVERLAPS

_mapscript.MS_TOKEN_COMPARISON_CROSSES_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_CROSSES = _mapscript.MS_TOKEN_COMPARISON_CROSSES

_mapscript.MS_TOKEN_COMPARISON_WITHIN_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_WITHIN = _mapscript.MS_TOKEN_COMPARISON_WITHIN

_mapscript.MS_TOKEN_COMPARISON_CONTAINS_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_CONTAINS = _mapscript.MS_TOKEN_COMPARISON_CONTAINS

_mapscript.MS_TOKEN_COMPARISON_EQUALS_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_EQUALS = _mapscript.MS_TOKEN_COMPARISON_EQUALS

_mapscript.MS_TOKEN_COMPARISON_BEYOND_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_BEYOND = _mapscript.MS_TOKEN_COMPARISON_BEYOND

_mapscript.MS_TOKEN_COMPARISON_DWITHIN_swigconstant(_mapscript)
MS_TOKEN_COMPARISON_DWITHIN = _mapscript.MS_TOKEN_COMPARISON_DWITHIN

_mapscript.MS_TOKEN_FUNCTION_LENGTH_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_LENGTH = _mapscript.MS_TOKEN_FUNCTION_LENGTH

_mapscript.MS_TOKEN_FUNCTION_TOSTRING_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_TOSTRING = _mapscript.MS_TOKEN_FUNCTION_TOSTRING

_mapscript.MS_TOKEN_FUNCTION_COMMIFY_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_COMMIFY = _mapscript.MS_TOKEN_FUNCTION_COMMIFY

_mapscript.MS_TOKEN_FUNCTION_AREA_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_AREA = _mapscript.MS_TOKEN_FUNCTION_AREA

_mapscript.MS_TOKEN_FUNCTION_ROUND_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_ROUND = _mapscript.MS_TOKEN_FUNCTION_ROUND

_mapscript.MS_TOKEN_FUNCTION_FROMTEXT_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_FROMTEXT = _mapscript.MS_TOKEN_FUNCTION_FROMTEXT

_mapscript.MS_TOKEN_FUNCTION_BUFFER_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_BUFFER = _mapscript.MS_TOKEN_FUNCTION_BUFFER

_mapscript.MS_TOKEN_FUNCTION_DIFFERENCE_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_DIFFERENCE = _mapscript.MS_TOKEN_FUNCTION_DIFFERENCE

_mapscript.MS_TOKEN_FUNCTION_SIMPLIFY_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_SIMPLIFY = _mapscript.MS_TOKEN_FUNCTION_SIMPLIFY

_mapscript.MS_TOKEN_FUNCTION_SIMPLIFYPT_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_SIMPLIFYPT = _mapscript.MS_TOKEN_FUNCTION_SIMPLIFYPT

_mapscript.MS_TOKEN_FUNCTION_GENERALIZE_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_GENERALIZE = _mapscript.MS_TOKEN_FUNCTION_GENERALIZE

_mapscript.MS_TOKEN_FUNCTION_SMOOTHSIA_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_SMOOTHSIA = _mapscript.MS_TOKEN_FUNCTION_SMOOTHSIA

_mapscript.MS_TOKEN_FUNCTION_JAVASCRIPT_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_JAVASCRIPT = _mapscript.MS_TOKEN_FUNCTION_JAVASCRIPT

_mapscript.MS_TOKEN_FUNCTION_UPPER_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_UPPER = _mapscript.MS_TOKEN_FUNCTION_UPPER

_mapscript.MS_TOKEN_FUNCTION_LOWER_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_LOWER = _mapscript.MS_TOKEN_FUNCTION_LOWER

_mapscript.MS_TOKEN_FUNCTION_INITCAP_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_INITCAP = _mapscript.MS_TOKEN_FUNCTION_INITCAP

_mapscript.MS_TOKEN_FUNCTION_FIRSTCAP_swigconstant(_mapscript)
MS_TOKEN_FUNCTION_FIRSTCAP = _mapscript.MS_TOKEN_FUNCTION_FIRSTCAP

_mapscript.MS_TOKEN_BINDING_DOUBLE_swigconstant(_mapscript)
MS_TOKEN_BINDING_DOUBLE = _mapscript.MS_TOKEN_BINDING_DOUBLE

_mapscript.MS_TOKEN_BINDING_INTEGER_swigconstant(_mapscript)
MS_TOKEN_BINDING_INTEGER = _mapscript.MS_TOKEN_BINDING_INTEGER

_mapscript.MS_TOKEN_BINDING_STRING_swigconstant(_mapscript)
MS_TOKEN_BINDING_STRING = _mapscript.MS_TOKEN_BINDING_STRING

_mapscript.MS_TOKEN_BINDING_TIME_swigconstant(_mapscript)
MS_TOKEN_BINDING_TIME = _mapscript.MS_TOKEN_BINDING_TIME

_mapscript.MS_TOKEN_BINDING_SHAPE_swigconstant(_mapscript)
MS_TOKEN_BINDING_SHAPE = _mapscript.MS_TOKEN_BINDING_SHAPE

_mapscript.MS_TOKEN_BINDING_MAP_CELLSIZE_swigconstant(_mapscript)
MS_TOKEN_BINDING_MAP_CELLSIZE = _mapscript.MS_TOKEN_BINDING_MAP_CELLSIZE

_mapscript.MS_TOKEN_BINDING_DATA_CELLSIZE_swigconstant(_mapscript)
MS_TOKEN_BINDING_DATA_CELLSIZE = _mapscript.MS_TOKEN_BINDING_DATA_CELLSIZE

_mapscript.MS_PARSE_TYPE_BOOLEAN_swigconstant(_mapscript)
MS_PARSE_TYPE_BOOLEAN = _mapscript.MS_PARSE_TYPE_BOOLEAN

_mapscript.MS_PARSE_TYPE_STRING_swigconstant(_mapscript)
MS_PARSE_TYPE_STRING = _mapscript.MS_PARSE_TYPE_STRING

_mapscript.MS_PARSE_TYPE_SHAPE_swigconstant(_mapscript)
MS_PARSE_TYPE_SHAPE = _mapscript.MS_PARSE_TYPE_SHAPE
class clusterObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, clusterObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, clusterObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["maxdistance"] = _mapscript.clusterObj_maxdistance_set
    __swig_getmethods__["maxdistance"] = _mapscript.clusterObj_maxdistance_get
    if _newclass:
        maxdistance = _swig_property(_mapscript.clusterObj_maxdistance_get, _mapscript.clusterObj_maxdistance_set)
    __swig_setmethods__["buffer"] = _mapscript.clusterObj_buffer_set
    __swig_getmethods__["buffer"] = _mapscript.clusterObj_buffer_get
    if _newclass:
        buffer = _swig_property(_mapscript.clusterObj_buffer_get, _mapscript.clusterObj_buffer_set)
    __swig_setmethods__["region"] = _mapscript.clusterObj_region_set
    __swig_getmethods__["region"] = _mapscript.clusterObj_region_get
    if _newclass:
        region = _swig_property(_mapscript.clusterObj_region_get, _mapscript.clusterObj_region_set)

    def updateFromString(self, snippet):
        return _mapscript.clusterObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.clusterObj_convertToString(self)

    def setGroup(self, group):
        return _mapscript.clusterObj_setGroup(self, group)

    def getGroupString(self):
        return _mapscript.clusterObj_getGroupString(self)

    def setFilter(self, filter):
        return _mapscript.clusterObj_setFilter(self, filter)

    def getFilterString(self):
        return _mapscript.clusterObj_getFilterString(self)

    def __init__(self):
        this = _mapscript.new_clusterObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_clusterObj
    __del__ = lambda self: None
clusterObj_swigregister = _mapscript.clusterObj_swigregister
clusterObj_swigregister(clusterObj)

class outputFormatObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, outputFormatObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, outputFormatObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numformatoptions"] = _mapscript.outputFormatObj_numformatoptions_get
    if _newclass:
        numformatoptions = _swig_property(_mapscript.outputFormatObj_numformatoptions_get)
    __swig_setmethods__["name"] = _mapscript.outputFormatObj_name_set
    __swig_getmethods__["name"] = _mapscript.outputFormatObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.outputFormatObj_name_get, _mapscript.outputFormatObj_name_set)
    __swig_setmethods__["mimetype"] = _mapscript.outputFormatObj_mimetype_set
    __swig_getmethods__["mimetype"] = _mapscript.outputFormatObj_mimetype_get
    if _newclass:
        mimetype = _swig_property(_mapscript.outputFormatObj_mimetype_get, _mapscript.outputFormatObj_mimetype_set)
    __swig_setmethods__["driver"] = _mapscript.outputFormatObj_driver_set
    __swig_getmethods__["driver"] = _mapscript.outputFormatObj_driver_get
    if _newclass:
        driver = _swig_property(_mapscript.outputFormatObj_driver_get, _mapscript.outputFormatObj_driver_set)
    __swig_setmethods__["extension"] = _mapscript.outputFormatObj_extension_set
    __swig_getmethods__["extension"] = _mapscript.outputFormatObj_extension_get
    if _newclass:
        extension = _swig_property(_mapscript.outputFormatObj_extension_get, _mapscript.outputFormatObj_extension_set)
    __swig_setmethods__["renderer"] = _mapscript.outputFormatObj_renderer_set
    __swig_getmethods__["renderer"] = _mapscript.outputFormatObj_renderer_get
    if _newclass:
        renderer = _swig_property(_mapscript.outputFormatObj_renderer_get, _mapscript.outputFormatObj_renderer_set)
    __swig_setmethods__["imagemode"] = _mapscript.outputFormatObj_imagemode_set
    __swig_getmethods__["imagemode"] = _mapscript.outputFormatObj_imagemode_get
    if _newclass:
        imagemode = _swig_property(_mapscript.outputFormatObj_imagemode_get, _mapscript.outputFormatObj_imagemode_set)
    __swig_setmethods__["transparent"] = _mapscript.outputFormatObj_transparent_set
    __swig_getmethods__["transparent"] = _mapscript.outputFormatObj_transparent_get
    if _newclass:
        transparent = _swig_property(_mapscript.outputFormatObj_transparent_get, _mapscript.outputFormatObj_transparent_set)
    __swig_setmethods__["bands"] = _mapscript.outputFormatObj_bands_set
    __swig_getmethods__["bands"] = _mapscript.outputFormatObj_bands_get
    if _newclass:
        bands = _swig_property(_mapscript.outputFormatObj_bands_get, _mapscript.outputFormatObj_bands_set)
    __swig_setmethods__["inmapfile"] = _mapscript.outputFormatObj_inmapfile_set
    __swig_getmethods__["inmapfile"] = _mapscript.outputFormatObj_inmapfile_get
    if _newclass:
        inmapfile = _swig_property(_mapscript.outputFormatObj_inmapfile_get, _mapscript.outputFormatObj_inmapfile_set)

    def __init__(self, driver, name=None):
        this = _mapscript.new_outputFormatObj(driver, name)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_outputFormatObj
    __del__ = lambda self: None

    def setExtension(self, extension):
        return _mapscript.outputFormatObj_setExtension(self, extension)

    def setMimetype(self, mimetype):
        return _mapscript.outputFormatObj_setMimetype(self, mimetype)

    def setOption(self, key, value):
        return _mapscript.outputFormatObj_setOption(self, key, value)

    def validate(self):
        return _mapscript.outputFormatObj_validate(self)

    def getOption(self, *args):
        return _mapscript.outputFormatObj_getOption(self, *args)

    def getOptionAt(self, i):
        return _mapscript.outputFormatObj_getOptionAt(self, i)

    def attachDevice(self, device):
        return _mapscript.outputFormatObj_attachDevice(self, device)
outputFormatObj_swigregister = _mapscript.outputFormatObj_swigregister
outputFormatObj_swigregister(outputFormatObj)


_mapscript.MS_NOOVERRIDE_swigconstant(_mapscript)
MS_NOOVERRIDE = _mapscript.MS_NOOVERRIDE
class queryMapObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, queryMapObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, queryMapObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["height"] = _mapscript.queryMapObj_height_set
    __swig_getmethods__["height"] = _mapscript.queryMapObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.queryMapObj_height_get, _mapscript.queryMapObj_height_set)
    __swig_setmethods__["width"] = _mapscript.queryMapObj_width_set
    __swig_getmethods__["width"] = _mapscript.queryMapObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.queryMapObj_width_get, _mapscript.queryMapObj_width_set)
    __swig_setmethods__["status"] = _mapscript.queryMapObj_status_set
    __swig_getmethods__["status"] = _mapscript.queryMapObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.queryMapObj_status_get, _mapscript.queryMapObj_status_set)
    __swig_setmethods__["style"] = _mapscript.queryMapObj_style_set
    __swig_getmethods__["style"] = _mapscript.queryMapObj_style_get
    if _newclass:
        style = _swig_property(_mapscript.queryMapObj_style_get, _mapscript.queryMapObj_style_set)
    __swig_setmethods__["color"] = _mapscript.queryMapObj_color_set
    __swig_getmethods__["color"] = _mapscript.queryMapObj_color_get
    if _newclass:
        color = _swig_property(_mapscript.queryMapObj_color_get, _mapscript.queryMapObj_color_set)

    def updateFromString(self, snippet):
        return _mapscript.queryMapObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.queryMapObj_convertToString(self)

    def __init__(self):
        this = _mapscript.new_queryMapObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_queryMapObj
    __del__ = lambda self: None
queryMapObj_swigregister = _mapscript.queryMapObj_swigregister
queryMapObj_swigregister(queryMapObj)

class webObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, webObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, webObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["log"] = _mapscript.webObj_log_set
    __swig_getmethods__["log"] = _mapscript.webObj_log_get
    if _newclass:
        log = _swig_property(_mapscript.webObj_log_get, _mapscript.webObj_log_set)
    __swig_setmethods__["imagepath"] = _mapscript.webObj_imagepath_set
    __swig_getmethods__["imagepath"] = _mapscript.webObj_imagepath_get
    if _newclass:
        imagepath = _swig_property(_mapscript.webObj_imagepath_get, _mapscript.webObj_imagepath_set)
    __swig_setmethods__["imageurl"] = _mapscript.webObj_imageurl_set
    __swig_getmethods__["imageurl"] = _mapscript.webObj_imageurl_get
    if _newclass:
        imageurl = _swig_property(_mapscript.webObj_imageurl_get, _mapscript.webObj_imageurl_set)
    __swig_setmethods__["temppath"] = _mapscript.webObj_temppath_set
    __swig_getmethods__["temppath"] = _mapscript.webObj_temppath_get
    if _newclass:
        temppath = _swig_property(_mapscript.webObj_temppath_get, _mapscript.webObj_temppath_set)
    __swig_getmethods__["map"] = _mapscript.webObj_map_get
    if _newclass:
        map = _swig_property(_mapscript.webObj_map_get)
    __swig_setmethods__["template"] = _mapscript.webObj_template_set
    __swig_getmethods__["template"] = _mapscript.webObj_template_get
    if _newclass:
        template = _swig_property(_mapscript.webObj_template_get, _mapscript.webObj_template_set)
    __swig_setmethods__["header"] = _mapscript.webObj_header_set
    __swig_getmethods__["header"] = _mapscript.webObj_header_get
    if _newclass:
        header = _swig_property(_mapscript.webObj_header_get, _mapscript.webObj_header_set)
    __swig_setmethods__["footer"] = _mapscript.webObj_footer_set
    __swig_getmethods__["footer"] = _mapscript.webObj_footer_get
    if _newclass:
        footer = _swig_property(_mapscript.webObj_footer_get, _mapscript.webObj_footer_set)
    __swig_setmethods__["empty"] = _mapscript.webObj_empty_set
    __swig_getmethods__["empty"] = _mapscript.webObj_empty_get
    if _newclass:
        empty = _swig_property(_mapscript.webObj_empty_get, _mapscript.webObj_empty_set)
    __swig_setmethods__["error"] = _mapscript.webObj_error_set
    __swig_getmethods__["error"] = _mapscript.webObj_error_get
    if _newclass:
        error = _swig_property(_mapscript.webObj_error_get, _mapscript.webObj_error_set)
    __swig_setmethods__["extent"] = _mapscript.webObj_extent_set
    __swig_getmethods__["extent"] = _mapscript.webObj_extent_get
    if _newclass:
        extent = _swig_property(_mapscript.webObj_extent_get, _mapscript.webObj_extent_set)
    __swig_setmethods__["minscaledenom"] = _mapscript.webObj_minscaledenom_set
    __swig_getmethods__["minscaledenom"] = _mapscript.webObj_minscaledenom_get
    if _newclass:
        minscaledenom = _swig_property(_mapscript.webObj_minscaledenom_get, _mapscript.webObj_minscaledenom_set)
    __swig_setmethods__["maxscaledenom"] = _mapscript.webObj_maxscaledenom_set
    __swig_getmethods__["maxscaledenom"] = _mapscript.webObj_maxscaledenom_get
    if _newclass:
        maxscaledenom = _swig_property(_mapscript.webObj_maxscaledenom_get, _mapscript.webObj_maxscaledenom_set)
    __swig_setmethods__["mintemplate"] = _mapscript.webObj_mintemplate_set
    __swig_getmethods__["mintemplate"] = _mapscript.webObj_mintemplate_get
    if _newclass:
        mintemplate = _swig_property(_mapscript.webObj_mintemplate_get, _mapscript.webObj_mintemplate_set)
    __swig_setmethods__["maxtemplate"] = _mapscript.webObj_maxtemplate_set
    __swig_getmethods__["maxtemplate"] = _mapscript.webObj_maxtemplate_get
    if _newclass:
        maxtemplate = _swig_property(_mapscript.webObj_maxtemplate_get, _mapscript.webObj_maxtemplate_set)
    __swig_setmethods__["queryformat"] = _mapscript.webObj_queryformat_set
    __swig_getmethods__["queryformat"] = _mapscript.webObj_queryformat_get
    if _newclass:
        queryformat = _swig_property(_mapscript.webObj_queryformat_get, _mapscript.webObj_queryformat_set)
    __swig_setmethods__["legendformat"] = _mapscript.webObj_legendformat_set
    __swig_getmethods__["legendformat"] = _mapscript.webObj_legendformat_get
    if _newclass:
        legendformat = _swig_property(_mapscript.webObj_legendformat_get, _mapscript.webObj_legendformat_set)
    __swig_setmethods__["browseformat"] = _mapscript.webObj_browseformat_set
    __swig_getmethods__["browseformat"] = _mapscript.webObj_browseformat_get
    if _newclass:
        browseformat = _swig_property(_mapscript.webObj_browseformat_get, _mapscript.webObj_browseformat_set)
    __swig_getmethods__["metadata"] = _mapscript.webObj_metadata_get
    if _newclass:
        metadata = _swig_property(_mapscript.webObj_metadata_get)
    __swig_getmethods__["validation"] = _mapscript.webObj_validation_get
    if _newclass:
        validation = _swig_property(_mapscript.webObj_validation_get)

    def __init__(self):
        this = _mapscript.new_webObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_webObj
    __del__ = lambda self: None

    def updateFromString(self, snippet):
        return _mapscript.webObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.webObj_convertToString(self)
webObj_swigregister = _mapscript.webObj_swigregister
webObj_swigregister(webObj)

class styleObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, styleObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["refcount"] = _mapscript.styleObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.styleObj_refcount_get)
    __swig_setmethods__["autoangle"] = _mapscript.styleObj_autoangle_set
    __swig_getmethods__["autoangle"] = _mapscript.styleObj_autoangle_get
    if _newclass:
        autoangle = _swig_property(_mapscript.styleObj_autoangle_get, _mapscript.styleObj_autoangle_set)
    __swig_setmethods__["color"] = _mapscript.styleObj_color_set
    __swig_getmethods__["color"] = _mapscript.styleObj_color_get
    if _newclass:
        color = _swig_property(_mapscript.styleObj_color_get, _mapscript.styleObj_color_set)
    __swig_setmethods__["backgroundcolor"] = _mapscript.styleObj_backgroundcolor_set
    __swig_getmethods__["backgroundcolor"] = _mapscript.styleObj_backgroundcolor_get
    if _newclass:
        backgroundcolor = _swig_property(_mapscript.styleObj_backgroundcolor_get, _mapscript.styleObj_backgroundcolor_set)
    __swig_setmethods__["outlinecolor"] = _mapscript.styleObj_outlinecolor_set
    __swig_getmethods__["outlinecolor"] = _mapscript.styleObj_outlinecolor_get
    if _newclass:
        outlinecolor = _swig_property(_mapscript.styleObj_outlinecolor_get, _mapscript.styleObj_outlinecolor_set)
    __swig_setmethods__["opacity"] = _mapscript.styleObj_opacity_set
    __swig_getmethods__["opacity"] = _mapscript.styleObj_opacity_get
    if _newclass:
        opacity = _swig_property(_mapscript.styleObj_opacity_get, _mapscript.styleObj_opacity_set)
    __swig_setmethods__["mincolor"] = _mapscript.styleObj_mincolor_set
    __swig_getmethods__["mincolor"] = _mapscript.styleObj_mincolor_get
    if _newclass:
        mincolor = _swig_property(_mapscript.styleObj_mincolor_get, _mapscript.styleObj_mincolor_set)
    __swig_setmethods__["maxcolor"] = _mapscript.styleObj_maxcolor_set
    __swig_getmethods__["maxcolor"] = _mapscript.styleObj_maxcolor_get
    if _newclass:
        maxcolor = _swig_property(_mapscript.styleObj_maxcolor_get, _mapscript.styleObj_maxcolor_set)
    __swig_setmethods__["minvalue"] = _mapscript.styleObj_minvalue_set
    __swig_getmethods__["minvalue"] = _mapscript.styleObj_minvalue_get
    if _newclass:
        minvalue = _swig_property(_mapscript.styleObj_minvalue_get, _mapscript.styleObj_minvalue_set)
    __swig_setmethods__["maxvalue"] = _mapscript.styleObj_maxvalue_set
    __swig_getmethods__["maxvalue"] = _mapscript.styleObj_maxvalue_get
    if _newclass:
        maxvalue = _swig_property(_mapscript.styleObj_maxvalue_get, _mapscript.styleObj_maxvalue_set)
    __swig_setmethods__["rangeitem"] = _mapscript.styleObj_rangeitem_set
    __swig_getmethods__["rangeitem"] = _mapscript.styleObj_rangeitem_get
    if _newclass:
        rangeitem = _swig_property(_mapscript.styleObj_rangeitem_get, _mapscript.styleObj_rangeitem_set)
    __swig_setmethods__["rangeitemindex"] = _mapscript.styleObj_rangeitemindex_set
    __swig_getmethods__["rangeitemindex"] = _mapscript.styleObj_rangeitemindex_get
    if _newclass:
        rangeitemindex = _swig_property(_mapscript.styleObj_rangeitemindex_get, _mapscript.styleObj_rangeitemindex_set)
    __swig_setmethods__["symbol"] = _mapscript.styleObj_symbol_set
    __swig_getmethods__["symbol"] = _mapscript.styleObj_symbol_get
    if _newclass:
        symbol = _swig_property(_mapscript.styleObj_symbol_get, _mapscript.styleObj_symbol_set)
    __swig_setmethods__["symbolname"] = _mapscript.styleObj_symbolname_set
    __swig_getmethods__["symbolname"] = _mapscript.styleObj_symbolname_get
    if _newclass:
        symbolname = _swig_property(_mapscript.styleObj_symbolname_get, _mapscript.styleObj_symbolname_set)
    __swig_setmethods__["size"] = _mapscript.styleObj_size_set
    __swig_getmethods__["size"] = _mapscript.styleObj_size_get
    if _newclass:
        size = _swig_property(_mapscript.styleObj_size_get, _mapscript.styleObj_size_set)
    __swig_setmethods__["minsize"] = _mapscript.styleObj_minsize_set
    __swig_getmethods__["minsize"] = _mapscript.styleObj_minsize_get
    if _newclass:
        minsize = _swig_property(_mapscript.styleObj_minsize_get, _mapscript.styleObj_minsize_set)
    __swig_setmethods__["maxsize"] = _mapscript.styleObj_maxsize_set
    __swig_getmethods__["maxsize"] = _mapscript.styleObj_maxsize_get
    if _newclass:
        maxsize = _swig_property(_mapscript.styleObj_maxsize_get, _mapscript.styleObj_maxsize_set)
    __swig_getmethods__["patternlength"] = _mapscript.styleObj_patternlength_get
    if _newclass:
        patternlength = _swig_property(_mapscript.styleObj_patternlength_get)
    __swig_setmethods__["gap"] = _mapscript.styleObj_gap_set
    __swig_getmethods__["gap"] = _mapscript.styleObj_gap_get
    if _newclass:
        gap = _swig_property(_mapscript.styleObj_gap_get, _mapscript.styleObj_gap_set)
    __swig_setmethods__["initialgap"] = _mapscript.styleObj_initialgap_set
    __swig_getmethods__["initialgap"] = _mapscript.styleObj_initialgap_get
    if _newclass:
        initialgap = _swig_property(_mapscript.styleObj_initialgap_get, _mapscript.styleObj_initialgap_set)
    __swig_setmethods__["position"] = _mapscript.styleObj_position_set
    __swig_getmethods__["position"] = _mapscript.styleObj_position_get
    if _newclass:
        position = _swig_property(_mapscript.styleObj_position_get, _mapscript.styleObj_position_set)
    __swig_setmethods__["linecap"] = _mapscript.styleObj_linecap_set
    __swig_getmethods__["linecap"] = _mapscript.styleObj_linecap_get
    if _newclass:
        linecap = _swig_property(_mapscript.styleObj_linecap_get, _mapscript.styleObj_linecap_set)
    __swig_setmethods__["linejoin"] = _mapscript.styleObj_linejoin_set
    __swig_getmethods__["linejoin"] = _mapscript.styleObj_linejoin_get
    if _newclass:
        linejoin = _swig_property(_mapscript.styleObj_linejoin_get, _mapscript.styleObj_linejoin_set)
    __swig_setmethods__["linejoinmaxsize"] = _mapscript.styleObj_linejoinmaxsize_set
    __swig_getmethods__["linejoinmaxsize"] = _mapscript.styleObj_linejoinmaxsize_get
    if _newclass:
        linejoinmaxsize = _swig_property(_mapscript.styleObj_linejoinmaxsize_get, _mapscript.styleObj_linejoinmaxsize_set)
    __swig_setmethods__["width"] = _mapscript.styleObj_width_set
    __swig_getmethods__["width"] = _mapscript.styleObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.styleObj_width_get, _mapscript.styleObj_width_set)
    __swig_setmethods__["outlinewidth"] = _mapscript.styleObj_outlinewidth_set
    __swig_getmethods__["outlinewidth"] = _mapscript.styleObj_outlinewidth_get
    if _newclass:
        outlinewidth = _swig_property(_mapscript.styleObj_outlinewidth_get, _mapscript.styleObj_outlinewidth_set)
    __swig_setmethods__["minwidth"] = _mapscript.styleObj_minwidth_set
    __swig_getmethods__["minwidth"] = _mapscript.styleObj_minwidth_get
    if _newclass:
        minwidth = _swig_property(_mapscript.styleObj_minwidth_get, _mapscript.styleObj_minwidth_set)
    __swig_setmethods__["maxwidth"] = _mapscript.styleObj_maxwidth_set
    __swig_getmethods__["maxwidth"] = _mapscript.styleObj_maxwidth_get
    if _newclass:
        maxwidth = _swig_property(_mapscript.styleObj_maxwidth_get, _mapscript.styleObj_maxwidth_set)
    __swig_setmethods__["offsetx"] = _mapscript.styleObj_offsetx_set
    __swig_getmethods__["offsetx"] = _mapscript.styleObj_offsetx_get
    if _newclass:
        offsetx = _swig_property(_mapscript.styleObj_offsetx_get, _mapscript.styleObj_offsetx_set)
    __swig_setmethods__["offsety"] = _mapscript.styleObj_offsety_set
    __swig_getmethods__["offsety"] = _mapscript.styleObj_offsety_get
    if _newclass:
        offsety = _swig_property(_mapscript.styleObj_offsety_get, _mapscript.styleObj_offsety_set)
    __swig_setmethods__["polaroffsetpixel"] = _mapscript.styleObj_polaroffsetpixel_set
    __swig_getmethods__["polaroffsetpixel"] = _mapscript.styleObj_polaroffsetpixel_get
    if _newclass:
        polaroffsetpixel = _swig_property(_mapscript.styleObj_polaroffsetpixel_get, _mapscript.styleObj_polaroffsetpixel_set)
    __swig_setmethods__["polaroffsetangle"] = _mapscript.styleObj_polaroffsetangle_set
    __swig_getmethods__["polaroffsetangle"] = _mapscript.styleObj_polaroffsetangle_get
    if _newclass:
        polaroffsetangle = _swig_property(_mapscript.styleObj_polaroffsetangle_get, _mapscript.styleObj_polaroffsetangle_set)
    __swig_setmethods__["angle"] = _mapscript.styleObj_angle_set
    __swig_getmethods__["angle"] = _mapscript.styleObj_angle_get
    if _newclass:
        angle = _swig_property(_mapscript.styleObj_angle_get, _mapscript.styleObj_angle_set)
    __swig_setmethods__["minscaledenom"] = _mapscript.styleObj_minscaledenom_set
    __swig_getmethods__["minscaledenom"] = _mapscript.styleObj_minscaledenom_get
    if _newclass:
        minscaledenom = _swig_property(_mapscript.styleObj_minscaledenom_get, _mapscript.styleObj_minscaledenom_set)
    __swig_setmethods__["maxscaledenom"] = _mapscript.styleObj_maxscaledenom_set
    __swig_getmethods__["maxscaledenom"] = _mapscript.styleObj_maxscaledenom_get
    if _newclass:
        maxscaledenom = _swig_property(_mapscript.styleObj_maxscaledenom_get, _mapscript.styleObj_maxscaledenom_set)

    def __init__(self, parent_class=None):
        this = _mapscript.new_styleObj(parent_class)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_styleObj
    __del__ = lambda self: None

    def updateFromString(self, snippet):
        return _mapscript.styleObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.styleObj_convertToString(self)

    def clone(self):
        return _mapscript.styleObj_clone(self)

    def setSymbolByName(self, map, symbolname):
        return _mapscript.styleObj_setSymbolByName(self, map, symbolname)

    def removeBinding(self, binding):
        return _mapscript.styleObj_removeBinding(self, binding)

    def setBinding(self, binding, item):
        return _mapscript.styleObj_setBinding(self, binding, item)

    def getBinding(self, binding):
        return _mapscript.styleObj_getBinding(self, binding)

    def getGeomTransform(self):
        return _mapscript.styleObj_getGeomTransform(self)

    def setGeomTransform(self, transform):
        return _mapscript.styleObj_setGeomTransform(self, transform)

    def pattern_set(self, nListSize):
        return _mapscript.styleObj_pattern_set(self, nListSize)

    def pattern_get(self):
        return _mapscript.styleObj_pattern_get(self)

    def patternlength_set2(self, patternlength):
        return _mapscript.styleObj_patternlength_set2(self, patternlength)


    __swig_setmethods__["patternlength"] = _mapscript.styleObj_patternlength_set2
    __swig_getmethods__["patternlength"] = _mapscript.styleObj_patternlength_get
    if _newclass:patternlength = _swig_property(_mapscript.styleObj_patternlength_get, _mapscript.styleObj_patternlength_set2)

    __swig_setmethods__["pattern"] = _mapscript.styleObj_pattern_set
    __swig_getmethods__["pattern"] = _mapscript.styleObj_pattern_get
    if _newclass:pattern = _swig_property(_mapscript.styleObj_pattern_get, _mapscript.styleObj_pattern_set)

styleObj_swigregister = _mapscript.styleObj_swigregister
styleObj_swigregister(styleObj)


_mapscript.MS_STYLE_SINGLE_SIDED_OFFSET_swigconstant(_mapscript)
MS_STYLE_SINGLE_SIDED_OFFSET = _mapscript.MS_STYLE_SINGLE_SIDED_OFFSET

_mapscript.MS_STYLE_DOUBLE_SIDED_OFFSET_swigconstant(_mapscript)
MS_STYLE_DOUBLE_SIDED_OFFSET = _mapscript.MS_STYLE_DOUBLE_SIDED_OFFSET
class labelLeaderObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, labelLeaderObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, labelLeaderObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["maxdistance"] = _mapscript.labelLeaderObj_maxdistance_set
    __swig_getmethods__["maxdistance"] = _mapscript.labelLeaderObj_maxdistance_get
    if _newclass:
        maxdistance = _swig_property(_mapscript.labelLeaderObj_maxdistance_get, _mapscript.labelLeaderObj_maxdistance_set)
    __swig_setmethods__["gridstep"] = _mapscript.labelLeaderObj_gridstep_set
    __swig_getmethods__["gridstep"] = _mapscript.labelLeaderObj_gridstep_get
    if _newclass:
        gridstep = _swig_property(_mapscript.labelLeaderObj_gridstep_get, _mapscript.labelLeaderObj_gridstep_set)
    __swig_getmethods__["numstyles"] = _mapscript.labelLeaderObj_numstyles_get
    if _newclass:
        numstyles = _swig_property(_mapscript.labelLeaderObj_numstyles_get)

    def __init__(self):
        this = _mapscript.new_labelLeaderObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_labelLeaderObj
    __del__ = lambda self: None
labelLeaderObj_swigregister = _mapscript.labelLeaderObj_swigregister
labelLeaderObj_swigregister(labelLeaderObj)

class labelObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, labelObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, labelObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["refcount"] = _mapscript.labelObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.labelObj_refcount_get)
    __swig_setmethods__["font"] = _mapscript.labelObj_font_set
    __swig_getmethods__["font"] = _mapscript.labelObj_font_get
    if _newclass:
        font = _swig_property(_mapscript.labelObj_font_get, _mapscript.labelObj_font_set)
    __swig_setmethods__["color"] = _mapscript.labelObj_color_set
    __swig_getmethods__["color"] = _mapscript.labelObj_color_get
    if _newclass:
        color = _swig_property(_mapscript.labelObj_color_get, _mapscript.labelObj_color_set)
    __swig_setmethods__["outlinecolor"] = _mapscript.labelObj_outlinecolor_set
    __swig_getmethods__["outlinecolor"] = _mapscript.labelObj_outlinecolor_get
    if _newclass:
        outlinecolor = _swig_property(_mapscript.labelObj_outlinecolor_get, _mapscript.labelObj_outlinecolor_set)
    __swig_setmethods__["outlinewidth"] = _mapscript.labelObj_outlinewidth_set
    __swig_getmethods__["outlinewidth"] = _mapscript.labelObj_outlinewidth_get
    if _newclass:
        outlinewidth = _swig_property(_mapscript.labelObj_outlinewidth_get, _mapscript.labelObj_outlinewidth_set)
    __swig_setmethods__["shadowcolor"] = _mapscript.labelObj_shadowcolor_set
    __swig_getmethods__["shadowcolor"] = _mapscript.labelObj_shadowcolor_get
    if _newclass:
        shadowcolor = _swig_property(_mapscript.labelObj_shadowcolor_get, _mapscript.labelObj_shadowcolor_set)
    __swig_setmethods__["shadowsizex"] = _mapscript.labelObj_shadowsizex_set
    __swig_getmethods__["shadowsizex"] = _mapscript.labelObj_shadowsizex_get
    if _newclass:
        shadowsizex = _swig_property(_mapscript.labelObj_shadowsizex_get, _mapscript.labelObj_shadowsizex_set)
    __swig_setmethods__["shadowsizey"] = _mapscript.labelObj_shadowsizey_set
    __swig_getmethods__["shadowsizey"] = _mapscript.labelObj_shadowsizey_get
    if _newclass:
        shadowsizey = _swig_property(_mapscript.labelObj_shadowsizey_get, _mapscript.labelObj_shadowsizey_set)
    __swig_setmethods__["size"] = _mapscript.labelObj_size_set
    __swig_getmethods__["size"] = _mapscript.labelObj_size_get
    if _newclass:
        size = _swig_property(_mapscript.labelObj_size_get, _mapscript.labelObj_size_set)
    __swig_setmethods__["minsize"] = _mapscript.labelObj_minsize_set
    __swig_getmethods__["minsize"] = _mapscript.labelObj_minsize_get
    if _newclass:
        minsize = _swig_property(_mapscript.labelObj_minsize_get, _mapscript.labelObj_minsize_set)
    __swig_setmethods__["maxsize"] = _mapscript.labelObj_maxsize_set
    __swig_getmethods__["maxsize"] = _mapscript.labelObj_maxsize_get
    if _newclass:
        maxsize = _swig_property(_mapscript.labelObj_maxsize_get, _mapscript.labelObj_maxsize_set)
    __swig_setmethods__["position"] = _mapscript.labelObj_position_set
    __swig_getmethods__["position"] = _mapscript.labelObj_position_get
    if _newclass:
        position = _swig_property(_mapscript.labelObj_position_get, _mapscript.labelObj_position_set)
    __swig_setmethods__["offsetx"] = _mapscript.labelObj_offsetx_set
    __swig_getmethods__["offsetx"] = _mapscript.labelObj_offsetx_get
    if _newclass:
        offsetx = _swig_property(_mapscript.labelObj_offsetx_get, _mapscript.labelObj_offsetx_set)
    __swig_setmethods__["offsety"] = _mapscript.labelObj_offsety_set
    __swig_getmethods__["offsety"] = _mapscript.labelObj_offsety_get
    if _newclass:
        offsety = _swig_property(_mapscript.labelObj_offsety_get, _mapscript.labelObj_offsety_set)
    __swig_setmethods__["angle"] = _mapscript.labelObj_angle_set
    __swig_getmethods__["angle"] = _mapscript.labelObj_angle_get
    if _newclass:
        angle = _swig_property(_mapscript.labelObj_angle_get, _mapscript.labelObj_angle_set)
    __swig_setmethods__["anglemode"] = _mapscript.labelObj_anglemode_set
    __swig_getmethods__["anglemode"] = _mapscript.labelObj_anglemode_get
    if _newclass:
        anglemode = _swig_property(_mapscript.labelObj_anglemode_get, _mapscript.labelObj_anglemode_set)
    __swig_setmethods__["buffer"] = _mapscript.labelObj_buffer_set
    __swig_getmethods__["buffer"] = _mapscript.labelObj_buffer_get
    if _newclass:
        buffer = _swig_property(_mapscript.labelObj_buffer_get, _mapscript.labelObj_buffer_set)
    __swig_setmethods__["align"] = _mapscript.labelObj_align_set
    __swig_getmethods__["align"] = _mapscript.labelObj_align_get
    if _newclass:
        align = _swig_property(_mapscript.labelObj_align_get, _mapscript.labelObj_align_set)
    __swig_setmethods__["wrap"] = _mapscript.labelObj_wrap_set
    __swig_getmethods__["wrap"] = _mapscript.labelObj_wrap_get
    if _newclass:
        wrap = _swig_property(_mapscript.labelObj_wrap_get, _mapscript.labelObj_wrap_set)
    __swig_setmethods__["maxlength"] = _mapscript.labelObj_maxlength_set
    __swig_getmethods__["maxlength"] = _mapscript.labelObj_maxlength_get
    if _newclass:
        maxlength = _swig_property(_mapscript.labelObj_maxlength_get, _mapscript.labelObj_maxlength_set)
    __swig_setmethods__["minlength"] = _mapscript.labelObj_minlength_set
    __swig_getmethods__["minlength"] = _mapscript.labelObj_minlength_get
    if _newclass:
        minlength = _swig_property(_mapscript.labelObj_minlength_get, _mapscript.labelObj_minlength_set)
    __swig_setmethods__["space_size_10"] = _mapscript.labelObj_space_size_10_set
    __swig_getmethods__["space_size_10"] = _mapscript.labelObj_space_size_10_get
    if _newclass:
        space_size_10 = _swig_property(_mapscript.labelObj_space_size_10_get, _mapscript.labelObj_space_size_10_set)
    __swig_setmethods__["minfeaturesize"] = _mapscript.labelObj_minfeaturesize_set
    __swig_getmethods__["minfeaturesize"] = _mapscript.labelObj_minfeaturesize_get
    if _newclass:
        minfeaturesize = _swig_property(_mapscript.labelObj_minfeaturesize_get, _mapscript.labelObj_minfeaturesize_set)
    __swig_setmethods__["autominfeaturesize"] = _mapscript.labelObj_autominfeaturesize_set
    __swig_getmethods__["autominfeaturesize"] = _mapscript.labelObj_autominfeaturesize_get
    if _newclass:
        autominfeaturesize = _swig_property(_mapscript.labelObj_autominfeaturesize_get, _mapscript.labelObj_autominfeaturesize_set)
    __swig_setmethods__["minscaledenom"] = _mapscript.labelObj_minscaledenom_set
    __swig_getmethods__["minscaledenom"] = _mapscript.labelObj_minscaledenom_get
    if _newclass:
        minscaledenom = _swig_property(_mapscript.labelObj_minscaledenom_get, _mapscript.labelObj_minscaledenom_set)
    __swig_setmethods__["maxscaledenom"] = _mapscript.labelObj_maxscaledenom_set
    __swig_getmethods__["maxscaledenom"] = _mapscript.labelObj_maxscaledenom_get
    if _newclass:
        maxscaledenom = _swig_property(_mapscript.labelObj_maxscaledenom_get, _mapscript.labelObj_maxscaledenom_set)
    __swig_setmethods__["mindistance"] = _mapscript.labelObj_mindistance_set
    __swig_getmethods__["mindistance"] = _mapscript.labelObj_mindistance_get
    if _newclass:
        mindistance = _swig_property(_mapscript.labelObj_mindistance_get, _mapscript.labelObj_mindistance_set)
    __swig_setmethods__["repeatdistance"] = _mapscript.labelObj_repeatdistance_set
    __swig_getmethods__["repeatdistance"] = _mapscript.labelObj_repeatdistance_get
    if _newclass:
        repeatdistance = _swig_property(_mapscript.labelObj_repeatdistance_get, _mapscript.labelObj_repeatdistance_set)
    __swig_setmethods__["maxoverlapangle"] = _mapscript.labelObj_maxoverlapangle_set
    __swig_getmethods__["maxoverlapangle"] = _mapscript.labelObj_maxoverlapangle_get
    if _newclass:
        maxoverlapangle = _swig_property(_mapscript.labelObj_maxoverlapangle_get, _mapscript.labelObj_maxoverlapangle_set)
    __swig_setmethods__["partials"] = _mapscript.labelObj_partials_set
    __swig_getmethods__["partials"] = _mapscript.labelObj_partials_get
    if _newclass:
        partials = _swig_property(_mapscript.labelObj_partials_get, _mapscript.labelObj_partials_set)
    __swig_setmethods__["force"] = _mapscript.labelObj_force_set
    __swig_getmethods__["force"] = _mapscript.labelObj_force_get
    if _newclass:
        force = _swig_property(_mapscript.labelObj_force_get, _mapscript.labelObj_force_set)
    __swig_setmethods__["encoding"] = _mapscript.labelObj_encoding_set
    __swig_getmethods__["encoding"] = _mapscript.labelObj_encoding_get
    if _newclass:
        encoding = _swig_property(_mapscript.labelObj_encoding_get, _mapscript.labelObj_encoding_set)
    __swig_setmethods__["priority"] = _mapscript.labelObj_priority_set
    __swig_getmethods__["priority"] = _mapscript.labelObj_priority_get
    if _newclass:
        priority = _swig_property(_mapscript.labelObj_priority_get, _mapscript.labelObj_priority_set)
    __swig_setmethods__["numstyles"] = _mapscript.labelObj_numstyles_set
    __swig_getmethods__["numstyles"] = _mapscript.labelObj_numstyles_get
    if _newclass:
        numstyles = _swig_property(_mapscript.labelObj_numstyles_get, _mapscript.labelObj_numstyles_set)
    __swig_setmethods__["leader"] = _mapscript.labelObj_leader_set
    __swig_getmethods__["leader"] = _mapscript.labelObj_leader_get
    if _newclass:
        leader = _swig_property(_mapscript.labelObj_leader_get, _mapscript.labelObj_leader_set)

    def __init__(self):
        this = _mapscript.new_labelObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_labelObj
    __del__ = lambda self: None

    def updateFromString(self, snippet):
        return _mapscript.labelObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.labelObj_convertToString(self)

    def removeBinding(self, binding):
        return _mapscript.labelObj_removeBinding(self, binding)

    def getBinding(self, binding):
        return _mapscript.labelObj_getBinding(self, binding)

    def setBinding(self, binding, item):
        return _mapscript.labelObj_setBinding(self, binding, item)

    def setExpression(self, expression):
        return _mapscript.labelObj_setExpression(self, expression)

    def getExpressionString(self):
        return _mapscript.labelObj_getExpressionString(self)

    def setText(self, text):
        return _mapscript.labelObj_setText(self, text)

    def getTextString(self):
        return _mapscript.labelObj_getTextString(self)

    def getStyle(self, i):
        return _mapscript.labelObj_getStyle(self, i)

    def insertStyle(self, style, index=-1):
        return _mapscript.labelObj_insertStyle(self, style, index)

    def removeStyle(self, index):
        return _mapscript.labelObj_removeStyle(self, index)

    def moveStyleUp(self, index):
        return _mapscript.labelObj_moveStyleUp(self, index)

    def moveStyleDown(self, index):
        return _mapscript.labelObj_moveStyleDown(self, index)
labelObj_swigregister = _mapscript.labelObj_swigregister
labelObj_swigregister(labelObj)


_mapscript.MS_LABEL_PERPENDICULAR_OFFSET_swigconstant(_mapscript)
MS_LABEL_PERPENDICULAR_OFFSET = _mapscript.MS_LABEL_PERPENDICULAR_OFFSET

_mapscript.MS_LABEL_PERPENDICULAR_TOP_OFFSET_swigconstant(_mapscript)
MS_LABEL_PERPENDICULAR_TOP_OFFSET = _mapscript.MS_LABEL_PERPENDICULAR_TOP_OFFSET
class classObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, classObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, classObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["status"] = _mapscript.classObj_status_set
    __swig_getmethods__["status"] = _mapscript.classObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.classObj_status_get, _mapscript.classObj_status_set)
    __swig_getmethods__["numstyles"] = _mapscript.classObj_numstyles_get
    if _newclass:
        numstyles = _swig_property(_mapscript.classObj_numstyles_get)
    __swig_setmethods__["numlabels"] = _mapscript.classObj_numlabels_set
    __swig_getmethods__["numlabels"] = _mapscript.classObj_numlabels_get
    if _newclass:
        numlabels = _swig_property(_mapscript.classObj_numlabels_get, _mapscript.classObj_numlabels_set)
    __swig_setmethods__["name"] = _mapscript.classObj_name_set
    __swig_getmethods__["name"] = _mapscript.classObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.classObj_name_get, _mapscript.classObj_name_set)
    __swig_setmethods__["title"] = _mapscript.classObj_title_set
    __swig_getmethods__["title"] = _mapscript.classObj_title_get
    if _newclass:
        title = _swig_property(_mapscript.classObj_title_get, _mapscript.classObj_title_set)
    __swig_setmethods__["template"] = _mapscript.classObj_template_set
    __swig_getmethods__["template"] = _mapscript.classObj_template_get
    if _newclass:
        template = _swig_property(_mapscript.classObj_template_get, _mapscript.classObj_template_set)
    __swig_getmethods__["metadata"] = _mapscript.classObj_metadata_get
    if _newclass:
        metadata = _swig_property(_mapscript.classObj_metadata_get)
    __swig_getmethods__["validation"] = _mapscript.classObj_validation_get
    if _newclass:
        validation = _swig_property(_mapscript.classObj_validation_get)
    __swig_setmethods__["minscaledenom"] = _mapscript.classObj_minscaledenom_set
    __swig_getmethods__["minscaledenom"] = _mapscript.classObj_minscaledenom_get
    if _newclass:
        minscaledenom = _swig_property(_mapscript.classObj_minscaledenom_get, _mapscript.classObj_minscaledenom_set)
    __swig_setmethods__["maxscaledenom"] = _mapscript.classObj_maxscaledenom_set
    __swig_getmethods__["maxscaledenom"] = _mapscript.classObj_maxscaledenom_get
    if _newclass:
        maxscaledenom = _swig_property(_mapscript.classObj_maxscaledenom_get, _mapscript.classObj_maxscaledenom_set)
    __swig_setmethods__["minfeaturesize"] = _mapscript.classObj_minfeaturesize_set
    __swig_getmethods__["minfeaturesize"] = _mapscript.classObj_minfeaturesize_get
    if _newclass:
        minfeaturesize = _swig_property(_mapscript.classObj_minfeaturesize_get, _mapscript.classObj_minfeaturesize_set)
    __swig_getmethods__["refcount"] = _mapscript.classObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.classObj_refcount_get)
    __swig_getmethods__["layer"] = _mapscript.classObj_layer_get
    if _newclass:
        layer = _swig_property(_mapscript.classObj_layer_get)
    __swig_setmethods__["debug"] = _mapscript.classObj_debug_set
    __swig_getmethods__["debug"] = _mapscript.classObj_debug_get
    if _newclass:
        debug = _swig_property(_mapscript.classObj_debug_get, _mapscript.classObj_debug_set)
    __swig_setmethods__["keyimage"] = _mapscript.classObj_keyimage_set
    __swig_getmethods__["keyimage"] = _mapscript.classObj_keyimage_get
    if _newclass:
        keyimage = _swig_property(_mapscript.classObj_keyimage_get, _mapscript.classObj_keyimage_set)
    __swig_setmethods__["group"] = _mapscript.classObj_group_set
    __swig_getmethods__["group"] = _mapscript.classObj_group_get
    if _newclass:
        group = _swig_property(_mapscript.classObj_group_get, _mapscript.classObj_group_set)
    __swig_setmethods__["leader"] = _mapscript.classObj_leader_set
    __swig_getmethods__["leader"] = _mapscript.classObj_leader_get
    if _newclass:
        leader = _swig_property(_mapscript.classObj_leader_get, _mapscript.classObj_leader_set)

    def __init__(self, layer=None):
        this = _mapscript.new_classObj(layer)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
        if 1:
                    self.p_layer =None
                    try:
        # python 2.5
                        if args and len(args)!=0: 
                            self.p_layer=args[0]
                    except NameError:
        # python 2.6
                        if layer: 
                            self.p_layer=layer



    __swig_destroy__ = _mapscript.delete_classObj
    __del__ = lambda self: None

    def updateFromString(self, snippet):
        return _mapscript.classObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.classObj_convertToString(self)

    def clone(self):
        return _mapscript.classObj_clone(self)

    def setExpression(self, expression):
        return _mapscript.classObj_setExpression(self, expression)

    def getExpressionString(self):
        return _mapscript.classObj_getExpressionString(self)

    def setText(self, text):
        return _mapscript.classObj_setText(self, text)

    def getTextString(self):
        return _mapscript.classObj_getTextString(self)

    def getMetaData(self, name):
        return _mapscript.classObj_getMetaData(self, name)

    def setMetaData(self, name, value):
        return _mapscript.classObj_setMetaData(self, name, value)

    def getFirstMetaDataKey(self):
        return _mapscript.classObj_getFirstMetaDataKey(self)

    def getNextMetaDataKey(self, lastkey):
        return _mapscript.classObj_getNextMetaDataKey(self, lastkey)

    def drawLegendIcon(self, map, layer, width, height, dstImage, dstX, dstY):
        return _mapscript.classObj_drawLegendIcon(self, map, layer, width, height, dstImage, dstX, dstY)

    def createLegendIcon(self, map, layer, width, height):
        return _mapscript.classObj_createLegendIcon(self, map, layer, width, height)

    def getLabel(self, i):
        return _mapscript.classObj_getLabel(self, i)

    def addLabel(self, label):
        return _mapscript.classObj_addLabel(self, label)

    def removeLabel(self, index):
        return _mapscript.classObj_removeLabel(self, index)

    def getStyle(self, i):
        return _mapscript.classObj_getStyle(self, i)

    def insertStyle(self, style, index=-1):
        return _mapscript.classObj_insertStyle(self, style, index)

    def removeStyle(self, index):
        return _mapscript.classObj_removeStyle(self, index)

    def moveStyleUp(self, index):
        return _mapscript.classObj_moveStyleUp(self, index)

    def moveStyleDown(self, index):
        return _mapscript.classObj_moveStyleDown(self, index)
classObj_swigregister = _mapscript.classObj_swigregister
classObj_swigregister(classObj)

class labelCacheMemberObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheMemberObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheMemberObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["textsymbols"] = _mapscript.labelCacheMemberObj_textsymbols_get
    if _newclass:
        textsymbols = _swig_property(_mapscript.labelCacheMemberObj_textsymbols_get)
    __swig_getmethods__["numtextsymbols"] = _mapscript.labelCacheMemberObj_numtextsymbols_get
    if _newclass:
        numtextsymbols = _swig_property(_mapscript.labelCacheMemberObj_numtextsymbols_get)
    __swig_getmethods__["layerindex"] = _mapscript.labelCacheMemberObj_layerindex_get
    if _newclass:
        layerindex = _swig_property(_mapscript.labelCacheMemberObj_layerindex_get)
    __swig_getmethods__["classindex"] = _mapscript.labelCacheMemberObj_classindex_get
    if _newclass:
        classindex = _swig_property(_mapscript.labelCacheMemberObj_classindex_get)
    __swig_getmethods__["point"] = _mapscript.labelCacheMemberObj_point_get
    if _newclass:
        point = _swig_property(_mapscript.labelCacheMemberObj_point_get)
    __swig_getmethods__["bbox"] = _mapscript.labelCacheMemberObj_bbox_get
    if _newclass:
        bbox = _swig_property(_mapscript.labelCacheMemberObj_bbox_get)
    __swig_getmethods__["status"] = _mapscript.labelCacheMemberObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.labelCacheMemberObj_status_get)
    __swig_getmethods__["markerid"] = _mapscript.labelCacheMemberObj_markerid_get
    if _newclass:
        markerid = _swig_property(_mapscript.labelCacheMemberObj_markerid_get)
    __swig_getmethods__["leaderline"] = _mapscript.labelCacheMemberObj_leaderline_get
    if _newclass:
        leaderline = _swig_property(_mapscript.labelCacheMemberObj_leaderline_get)
    __swig_getmethods__["leaderbbox"] = _mapscript.labelCacheMemberObj_leaderbbox_get
    if _newclass:
        leaderbbox = _swig_property(_mapscript.labelCacheMemberObj_leaderbbox_get)

    def __init__(self):
        this = _mapscript.new_labelCacheMemberObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_labelCacheMemberObj
    __del__ = lambda self: None
labelCacheMemberObj_swigregister = _mapscript.labelCacheMemberObj_swigregister
labelCacheMemberObj_swigregister(labelCacheMemberObj)

class markerCacheMemberObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, markerCacheMemberObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, markerCacheMemberObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["id"] = _mapscript.markerCacheMemberObj_id_get
    if _newclass:
        id = _swig_property(_mapscript.markerCacheMemberObj_id_get)
    __swig_getmethods__["bounds"] = _mapscript.markerCacheMemberObj_bounds_get
    if _newclass:
        bounds = _swig_property(_mapscript.markerCacheMemberObj_bounds_get)

    def __init__(self):
        this = _mapscript.new_markerCacheMemberObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_markerCacheMemberObj
    __del__ = lambda self: None
markerCacheMemberObj_swigregister = _mapscript.markerCacheMemberObj_swigregister
markerCacheMemberObj_swigregister(markerCacheMemberObj)

class labelCacheSlotObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheSlotObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheSlotObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["labels"] = _mapscript.labelCacheSlotObj_labels_get
    if _newclass:
        labels = _swig_property(_mapscript.labelCacheSlotObj_labels_get)
    __swig_getmethods__["numlabels"] = _mapscript.labelCacheSlotObj_numlabels_get
    if _newclass:
        numlabels = _swig_property(_mapscript.labelCacheSlotObj_numlabels_get)
    __swig_getmethods__["cachesize"] = _mapscript.labelCacheSlotObj_cachesize_get
    if _newclass:
        cachesize = _swig_property(_mapscript.labelCacheSlotObj_cachesize_get)
    __swig_getmethods__["markers"] = _mapscript.labelCacheSlotObj_markers_get
    if _newclass:
        markers = _swig_property(_mapscript.labelCacheSlotObj_markers_get)
    __swig_getmethods__["nummarkers"] = _mapscript.labelCacheSlotObj_nummarkers_get
    if _newclass:
        nummarkers = _swig_property(_mapscript.labelCacheSlotObj_nummarkers_get)
    __swig_getmethods__["markercachesize"] = _mapscript.labelCacheSlotObj_markercachesize_get
    if _newclass:
        markercachesize = _swig_property(_mapscript.labelCacheSlotObj_markercachesize_get)

    def __init__(self):
        this = _mapscript.new_labelCacheSlotObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_labelCacheSlotObj
    __del__ = lambda self: None
labelCacheSlotObj_swigregister = _mapscript.labelCacheSlotObj_swigregister
labelCacheSlotObj_swigregister(labelCacheSlotObj)

class labelCacheObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["slots"] = _mapscript.labelCacheObj_slots_get
    if _newclass:
        slots = _swig_property(_mapscript.labelCacheObj_slots_get)
    __swig_getmethods__["gutter"] = _mapscript.labelCacheObj_gutter_get
    if _newclass:
        gutter = _swig_property(_mapscript.labelCacheObj_gutter_get)
    __swig_getmethods__["rendered_text_symbols"] = _mapscript.labelCacheObj_rendered_text_symbols_get
    if _newclass:
        rendered_text_symbols = _swig_property(_mapscript.labelCacheObj_rendered_text_symbols_get)
    __swig_getmethods__["num_allocated_rendered_members"] = _mapscript.labelCacheObj_num_allocated_rendered_members_get
    if _newclass:
        num_allocated_rendered_members = _swig_property(_mapscript.labelCacheObj_num_allocated_rendered_members_get)
    __swig_getmethods__["num_rendered_members"] = _mapscript.labelCacheObj_num_rendered_members_get
    if _newclass:
        num_rendered_members = _swig_property(_mapscript.labelCacheObj_num_rendered_members_get)

    def freeCache(self):
        return _mapscript.labelCacheObj_freeCache(self)

    def __init__(self):
        this = _mapscript.new_labelCacheObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_labelCacheObj
    __del__ = lambda self: None
labelCacheObj_swigregister = _mapscript.labelCacheObj_swigregister
labelCacheObj_swigregister(labelCacheObj)

class resultObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, resultObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, resultObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["shapeindex"] = _mapscript.resultObj_shapeindex_get
    if _newclass:
        shapeindex = _swig_property(_mapscript.resultObj_shapeindex_get)
    __swig_getmethods__["tileindex"] = _mapscript.resultObj_tileindex_get
    if _newclass:
        tileindex = _swig_property(_mapscript.resultObj_tileindex_get)
    __swig_getmethods__["resultindex"] = _mapscript.resultObj_resultindex_get
    if _newclass:
        resultindex = _swig_property(_mapscript.resultObj_resultindex_get)
    __swig_getmethods__["classindex"] = _mapscript.resultObj_classindex_get
    if _newclass:
        classindex = _swig_property(_mapscript.resultObj_classindex_get)

    def __init__(self, shapeindex):
        this = _mapscript.new_resultObj(shapeindex)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_resultObj
    __del__ = lambda self: None
resultObj_swigregister = _mapscript.resultObj_swigregister
resultObj_swigregister(resultObj)

class resultCacheObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, resultCacheObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, resultCacheObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numresults"] = _mapscript.resultCacheObj_numresults_get
    if _newclass:
        numresults = _swig_property(_mapscript.resultCacheObj_numresults_get)
    __swig_getmethods__["bounds"] = _mapscript.resultCacheObj_bounds_get
    if _newclass:
        bounds = _swig_property(_mapscript.resultCacheObj_bounds_get)
    __swig_setmethods__["usegetshape"] = _mapscript.resultCacheObj_usegetshape_set
    __swig_getmethods__["usegetshape"] = _mapscript.resultCacheObj_usegetshape_get
    if _newclass:
        usegetshape = _swig_property(_mapscript.resultCacheObj_usegetshape_get, _mapscript.resultCacheObj_usegetshape_set)

    def getResult(self, i):
        return _mapscript.resultCacheObj_getResult(self, i)

    def __init__(self):
        this = _mapscript.new_resultCacheObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_resultCacheObj
    __del__ = lambda self: None
resultCacheObj_swigregister = _mapscript.resultCacheObj_swigregister
resultCacheObj_swigregister(resultCacheObj)

class symbolSetObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, symbolSetObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, symbolSetObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["filename"] = _mapscript.symbolSetObj_filename_set
    __swig_getmethods__["filename"] = _mapscript.symbolSetObj_filename_get
    if _newclass:
        filename = _swig_property(_mapscript.symbolSetObj_filename_get, _mapscript.symbolSetObj_filename_set)
    __swig_setmethods__["imagecachesize"] = _mapscript.symbolSetObj_imagecachesize_set
    __swig_getmethods__["imagecachesize"] = _mapscript.symbolSetObj_imagecachesize_get
    if _newclass:
        imagecachesize = _swig_property(_mapscript.symbolSetObj_imagecachesize_get, _mapscript.symbolSetObj_imagecachesize_set)
    __swig_getmethods__["numsymbols"] = _mapscript.symbolSetObj_numsymbols_get
    if _newclass:
        numsymbols = _swig_property(_mapscript.symbolSetObj_numsymbols_get)
    __swig_getmethods__["maxsymbols"] = _mapscript.symbolSetObj_maxsymbols_get
    if _newclass:
        maxsymbols = _swig_property(_mapscript.symbolSetObj_maxsymbols_get)

    def __init__(self, symbolfile=None):
        this = _mapscript.new_symbolSetObj(symbolfile)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_symbolSetObj
    __del__ = lambda self: None

    def getSymbol(self, i):
        return _mapscript.symbolSetObj_getSymbol(self, i)

    def getSymbolByName(self, symbolname):
        return _mapscript.symbolSetObj_getSymbolByName(self, symbolname)

    def index(self, symbolname):
        return _mapscript.symbolSetObj_index(self, symbolname)

    def appendSymbol(self, symbol):
        return _mapscript.symbolSetObj_appendSymbol(self, symbol)

    def removeSymbol(self, index):
        return _mapscript.symbolSetObj_removeSymbol(self, index)

    def save(self, filename):
        return _mapscript.symbolSetObj_save(self, filename)
symbolSetObj_swigregister = _mapscript.symbolSetObj_swigregister
symbolSetObj_swigregister(symbolSetObj)

class referenceMapObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, referenceMapObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, referenceMapObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["extent"] = _mapscript.referenceMapObj_extent_set
    __swig_getmethods__["extent"] = _mapscript.referenceMapObj_extent_get
    if _newclass:
        extent = _swig_property(_mapscript.referenceMapObj_extent_get, _mapscript.referenceMapObj_extent_set)
    __swig_setmethods__["height"] = _mapscript.referenceMapObj_height_set
    __swig_getmethods__["height"] = _mapscript.referenceMapObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.referenceMapObj_height_get, _mapscript.referenceMapObj_height_set)
    __swig_setmethods__["width"] = _mapscript.referenceMapObj_width_set
    __swig_getmethods__["width"] = _mapscript.referenceMapObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.referenceMapObj_width_get, _mapscript.referenceMapObj_width_set)
    __swig_setmethods__["color"] = _mapscript.referenceMapObj_color_set
    __swig_getmethods__["color"] = _mapscript.referenceMapObj_color_get
    if _newclass:
        color = _swig_property(_mapscript.referenceMapObj_color_get, _mapscript.referenceMapObj_color_set)
    __swig_setmethods__["outlinecolor"] = _mapscript.referenceMapObj_outlinecolor_set
    __swig_getmethods__["outlinecolor"] = _mapscript.referenceMapObj_outlinecolor_get
    if _newclass:
        outlinecolor = _swig_property(_mapscript.referenceMapObj_outlinecolor_get, _mapscript.referenceMapObj_outlinecolor_set)
    __swig_setmethods__["image"] = _mapscript.referenceMapObj_image_set
    __swig_getmethods__["image"] = _mapscript.referenceMapObj_image_get
    if _newclass:
        image = _swig_property(_mapscript.referenceMapObj_image_get, _mapscript.referenceMapObj_image_set)
    __swig_setmethods__["status"] = _mapscript.referenceMapObj_status_set
    __swig_getmethods__["status"] = _mapscript.referenceMapObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.referenceMapObj_status_get, _mapscript.referenceMapObj_status_set)
    __swig_setmethods__["marker"] = _mapscript.referenceMapObj_marker_set
    __swig_getmethods__["marker"] = _mapscript.referenceMapObj_marker_get
    if _newclass:
        marker = _swig_property(_mapscript.referenceMapObj_marker_get, _mapscript.referenceMapObj_marker_set)
    __swig_setmethods__["markername"] = _mapscript.referenceMapObj_markername_set
    __swig_getmethods__["markername"] = _mapscript.referenceMapObj_markername_get
    if _newclass:
        markername = _swig_property(_mapscript.referenceMapObj_markername_get, _mapscript.referenceMapObj_markername_set)
    __swig_setmethods__["markersize"] = _mapscript.referenceMapObj_markersize_set
    __swig_getmethods__["markersize"] = _mapscript.referenceMapObj_markersize_get
    if _newclass:
        markersize = _swig_property(_mapscript.referenceMapObj_markersize_get, _mapscript.referenceMapObj_markersize_set)
    __swig_setmethods__["minboxsize"] = _mapscript.referenceMapObj_minboxsize_set
    __swig_getmethods__["minboxsize"] = _mapscript.referenceMapObj_minboxsize_get
    if _newclass:
        minboxsize = _swig_property(_mapscript.referenceMapObj_minboxsize_get, _mapscript.referenceMapObj_minboxsize_set)
    __swig_setmethods__["maxboxsize"] = _mapscript.referenceMapObj_maxboxsize_set
    __swig_getmethods__["maxboxsize"] = _mapscript.referenceMapObj_maxboxsize_get
    if _newclass:
        maxboxsize = _swig_property(_mapscript.referenceMapObj_maxboxsize_get, _mapscript.referenceMapObj_maxboxsize_set)
    __swig_getmethods__["map"] = _mapscript.referenceMapObj_map_get
    if _newclass:
        map = _swig_property(_mapscript.referenceMapObj_map_get)

    def updateFromString(self, snippet):
        return _mapscript.referenceMapObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.referenceMapObj_convertToString(self)

    def __init__(self):
        this = _mapscript.new_referenceMapObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_referenceMapObj
    __del__ = lambda self: None
referenceMapObj_swigregister = _mapscript.referenceMapObj_swigregister
referenceMapObj_swigregister(referenceMapObj)

class scalebarObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, scalebarObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, scalebarObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["imagecolor"] = _mapscript.scalebarObj_imagecolor_set
    __swig_getmethods__["imagecolor"] = _mapscript.scalebarObj_imagecolor_get
    if _newclass:
        imagecolor = _swig_property(_mapscript.scalebarObj_imagecolor_get, _mapscript.scalebarObj_imagecolor_set)
    __swig_setmethods__["height"] = _mapscript.scalebarObj_height_set
    __swig_getmethods__["height"] = _mapscript.scalebarObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.scalebarObj_height_get, _mapscript.scalebarObj_height_set)
    __swig_setmethods__["width"] = _mapscript.scalebarObj_width_set
    __swig_getmethods__["width"] = _mapscript.scalebarObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.scalebarObj_width_get, _mapscript.scalebarObj_width_set)
    __swig_setmethods__["style"] = _mapscript.scalebarObj_style_set
    __swig_getmethods__["style"] = _mapscript.scalebarObj_style_get
    if _newclass:
        style = _swig_property(_mapscript.scalebarObj_style_get, _mapscript.scalebarObj_style_set)
    __swig_setmethods__["intervals"] = _mapscript.scalebarObj_intervals_set
    __swig_getmethods__["intervals"] = _mapscript.scalebarObj_intervals_get
    if _newclass:
        intervals = _swig_property(_mapscript.scalebarObj_intervals_get, _mapscript.scalebarObj_intervals_set)
    __swig_setmethods__["label"] = _mapscript.scalebarObj_label_set
    __swig_getmethods__["label"] = _mapscript.scalebarObj_label_get
    if _newclass:
        label = _swig_property(_mapscript.scalebarObj_label_get, _mapscript.scalebarObj_label_set)
    __swig_setmethods__["color"] = _mapscript.scalebarObj_color_set
    __swig_getmethods__["color"] = _mapscript.scalebarObj_color_get
    if _newclass:
        color = _swig_property(_mapscript.scalebarObj_color_get, _mapscript.scalebarObj_color_set)
    __swig_setmethods__["backgroundcolor"] = _mapscript.scalebarObj_backgroundcolor_set
    __swig_getmethods__["backgroundcolor"] = _mapscript.scalebarObj_backgroundcolor_get
    if _newclass:
        backgroundcolor = _swig_property(_mapscript.scalebarObj_backgroundcolor_get, _mapscript.scalebarObj_backgroundcolor_set)
    __swig_setmethods__["outlinecolor"] = _mapscript.scalebarObj_outlinecolor_set
    __swig_getmethods__["outlinecolor"] = _mapscript.scalebarObj_outlinecolor_get
    if _newclass:
        outlinecolor = _swig_property(_mapscript.scalebarObj_outlinecolor_get, _mapscript.scalebarObj_outlinecolor_set)
    __swig_setmethods__["units"] = _mapscript.scalebarObj_units_set
    __swig_getmethods__["units"] = _mapscript.scalebarObj_units_get
    if _newclass:
        units = _swig_property(_mapscript.scalebarObj_units_get, _mapscript.scalebarObj_units_set)
    __swig_setmethods__["status"] = _mapscript.scalebarObj_status_set
    __swig_getmethods__["status"] = _mapscript.scalebarObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.scalebarObj_status_get, _mapscript.scalebarObj_status_set)
    __swig_setmethods__["position"] = _mapscript.scalebarObj_position_set
    __swig_getmethods__["position"] = _mapscript.scalebarObj_position_get
    if _newclass:
        position = _swig_property(_mapscript.scalebarObj_position_get, _mapscript.scalebarObj_position_set)
    __swig_setmethods__["postlabelcache"] = _mapscript.scalebarObj_postlabelcache_set
    __swig_getmethods__["postlabelcache"] = _mapscript.scalebarObj_postlabelcache_get
    if _newclass:
        postlabelcache = _swig_property(_mapscript.scalebarObj_postlabelcache_get, _mapscript.scalebarObj_postlabelcache_set)
    __swig_setmethods__["align"] = _mapscript.scalebarObj_align_set
    __swig_getmethods__["align"] = _mapscript.scalebarObj_align_get
    if _newclass:
        align = _swig_property(_mapscript.scalebarObj_align_get, _mapscript.scalebarObj_align_set)

    def updateFromString(self, snippet):
        return _mapscript.scalebarObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.scalebarObj_convertToString(self)

    def __init__(self):
        this = _mapscript.new_scalebarObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_scalebarObj
    __del__ = lambda self: None
scalebarObj_swigregister = _mapscript.scalebarObj_swigregister
scalebarObj_swigregister(scalebarObj)

class legendObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, legendObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, legendObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["imagecolor"] = _mapscript.legendObj_imagecolor_set
    __swig_getmethods__["imagecolor"] = _mapscript.legendObj_imagecolor_get
    if _newclass:
        imagecolor = _swig_property(_mapscript.legendObj_imagecolor_get, _mapscript.legendObj_imagecolor_set)
    __swig_getmethods__["label"] = _mapscript.legendObj_label_get
    if _newclass:
        label = _swig_property(_mapscript.legendObj_label_get)
    __swig_setmethods__["keysizex"] = _mapscript.legendObj_keysizex_set
    __swig_getmethods__["keysizex"] = _mapscript.legendObj_keysizex_get
    if _newclass:
        keysizex = _swig_property(_mapscript.legendObj_keysizex_get, _mapscript.legendObj_keysizex_set)
    __swig_setmethods__["keysizey"] = _mapscript.legendObj_keysizey_set
    __swig_getmethods__["keysizey"] = _mapscript.legendObj_keysizey_get
    if _newclass:
        keysizey = _swig_property(_mapscript.legendObj_keysizey_get, _mapscript.legendObj_keysizey_set)
    __swig_setmethods__["keyspacingx"] = _mapscript.legendObj_keyspacingx_set
    __swig_getmethods__["keyspacingx"] = _mapscript.legendObj_keyspacingx_get
    if _newclass:
        keyspacingx = _swig_property(_mapscript.legendObj_keyspacingx_get, _mapscript.legendObj_keyspacingx_set)
    __swig_setmethods__["keyspacingy"] = _mapscript.legendObj_keyspacingy_set
    __swig_getmethods__["keyspacingy"] = _mapscript.legendObj_keyspacingy_get
    if _newclass:
        keyspacingy = _swig_property(_mapscript.legendObj_keyspacingy_get, _mapscript.legendObj_keyspacingy_set)
    __swig_setmethods__["outlinecolor"] = _mapscript.legendObj_outlinecolor_set
    __swig_getmethods__["outlinecolor"] = _mapscript.legendObj_outlinecolor_get
    if _newclass:
        outlinecolor = _swig_property(_mapscript.legendObj_outlinecolor_get, _mapscript.legendObj_outlinecolor_set)
    __swig_setmethods__["status"] = _mapscript.legendObj_status_set
    __swig_getmethods__["status"] = _mapscript.legendObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.legendObj_status_get, _mapscript.legendObj_status_set)
    __swig_setmethods__["height"] = _mapscript.legendObj_height_set
    __swig_getmethods__["height"] = _mapscript.legendObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.legendObj_height_get, _mapscript.legendObj_height_set)
    __swig_setmethods__["width"] = _mapscript.legendObj_width_set
    __swig_getmethods__["width"] = _mapscript.legendObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.legendObj_width_get, _mapscript.legendObj_width_set)
    __swig_setmethods__["position"] = _mapscript.legendObj_position_set
    __swig_getmethods__["position"] = _mapscript.legendObj_position_get
    if _newclass:
        position = _swig_property(_mapscript.legendObj_position_get, _mapscript.legendObj_position_set)
    __swig_setmethods__["postlabelcache"] = _mapscript.legendObj_postlabelcache_set
    __swig_getmethods__["postlabelcache"] = _mapscript.legendObj_postlabelcache_get
    if _newclass:
        postlabelcache = _swig_property(_mapscript.legendObj_postlabelcache_get, _mapscript.legendObj_postlabelcache_set)
    __swig_setmethods__["template"] = _mapscript.legendObj_template_set
    __swig_getmethods__["template"] = _mapscript.legendObj_template_get
    if _newclass:
        template = _swig_property(_mapscript.legendObj_template_get, _mapscript.legendObj_template_set)
    __swig_getmethods__["map"] = _mapscript.legendObj_map_get
    if _newclass:
        map = _swig_property(_mapscript.legendObj_map_get)

    def updateFromString(self, snippet):
        return _mapscript.legendObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.legendObj_convertToString(self)

    def __init__(self):
        this = _mapscript.new_legendObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_legendObj
    __del__ = lambda self: None
legendObj_swigregister = _mapscript.legendObj_swigregister
legendObj_swigregister(legendObj)

class imageObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, imageObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, imageObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["width"] = _mapscript.imageObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.imageObj_width_get)
    __swig_getmethods__["height"] = _mapscript.imageObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.imageObj_height_get)
    __swig_getmethods__["resolution"] = _mapscript.imageObj_resolution_get
    if _newclass:
        resolution = _swig_property(_mapscript.imageObj_resolution_get)
    __swig_getmethods__["resolutionfactor"] = _mapscript.imageObj_resolutionfactor_get
    if _newclass:
        resolutionfactor = _swig_property(_mapscript.imageObj_resolutionfactor_get)
    __swig_getmethods__["imagepath"] = _mapscript.imageObj_imagepath_get
    if _newclass:
        imagepath = _swig_property(_mapscript.imageObj_imagepath_get)
    __swig_getmethods__["imageurl"] = _mapscript.imageObj_imageurl_get
    if _newclass:
        imageurl = _swig_property(_mapscript.imageObj_imageurl_get)
    __swig_getmethods__["format"] = _mapscript.imageObj_format_get
    if _newclass:
        format = _swig_property(_mapscript.imageObj_format_get)
    __swig_destroy__ = _mapscript.delete_imageObj
    __del__ = lambda self: None

    def save(self, filename, map=None):
        return _mapscript.imageObj_save(self, filename, map)

    def getBytes(self):
        return _mapscript.imageObj_getBytes(self)

    def getSize(self):
        return _mapscript.imageObj_getSize(self)

    def __init__(self, *args):
        this = _mapscript.new_imageObj(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this

    def write(self, *args):
        return _mapscript.imageObj_write(self, *args)

    def saveToString(self):
        return _mapscript.imageObj_saveToString(self)
imageObj_swigregister = _mapscript.imageObj_swigregister
imageObj_swigregister(imageObj)

class scaleTokenEntryObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, scaleTokenEntryObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, scaleTokenEntryObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["minscale"] = _mapscript.scaleTokenEntryObj_minscale_set
    __swig_getmethods__["minscale"] = _mapscript.scaleTokenEntryObj_minscale_get
    if _newclass:
        minscale = _swig_property(_mapscript.scaleTokenEntryObj_minscale_get, _mapscript.scaleTokenEntryObj_minscale_set)
    __swig_setmethods__["maxscale"] = _mapscript.scaleTokenEntryObj_maxscale_set
    __swig_getmethods__["maxscale"] = _mapscript.scaleTokenEntryObj_maxscale_get
    if _newclass:
        maxscale = _swig_property(_mapscript.scaleTokenEntryObj_maxscale_get, _mapscript.scaleTokenEntryObj_maxscale_set)
    __swig_setmethods__["value"] = _mapscript.scaleTokenEntryObj_value_set
    __swig_getmethods__["value"] = _mapscript.scaleTokenEntryObj_value_get
    if _newclass:
        value = _swig_property(_mapscript.scaleTokenEntryObj_value_get, _mapscript.scaleTokenEntryObj_value_set)

    def __init__(self):
        this = _mapscript.new_scaleTokenEntryObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_scaleTokenEntryObj
    __del__ = lambda self: None
scaleTokenEntryObj_swigregister = _mapscript.scaleTokenEntryObj_swigregister
scaleTokenEntryObj_swigregister(scaleTokenEntryObj)

class scaleTokenObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, scaleTokenObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, scaleTokenObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["name"] = _mapscript.scaleTokenObj_name_set
    __swig_getmethods__["name"] = _mapscript.scaleTokenObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.scaleTokenObj_name_get, _mapscript.scaleTokenObj_name_set)
    __swig_setmethods__["n_entries"] = _mapscript.scaleTokenObj_n_entries_set
    __swig_getmethods__["n_entries"] = _mapscript.scaleTokenObj_n_entries_get
    if _newclass:
        n_entries = _swig_property(_mapscript.scaleTokenObj_n_entries_get, _mapscript.scaleTokenObj_n_entries_set)
    __swig_setmethods__["tokens"] = _mapscript.scaleTokenObj_tokens_set
    __swig_getmethods__["tokens"] = _mapscript.scaleTokenObj_tokens_get
    if _newclass:
        tokens = _swig_property(_mapscript.scaleTokenObj_tokens_get, _mapscript.scaleTokenObj_tokens_set)

    def __init__(self):
        this = _mapscript.new_scaleTokenObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_scaleTokenObj
    __del__ = lambda self: None
scaleTokenObj_swigregister = _mapscript.scaleTokenObj_swigregister
scaleTokenObj_swigregister(scaleTokenObj)

class layerObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, layerObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["classitem"] = _mapscript.layerObj_classitem_set
    __swig_getmethods__["classitem"] = _mapscript.layerObj_classitem_get
    if _newclass:
        classitem = _swig_property(_mapscript.layerObj_classitem_get, _mapscript.layerObj_classitem_set)
    __swig_getmethods__["refcount"] = _mapscript.layerObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.layerObj_refcount_get)
    __swig_getmethods__["numclasses"] = _mapscript.layerObj_numclasses_get
    if _newclass:
        numclasses = _swig_property(_mapscript.layerObj_numclasses_get)
    __swig_getmethods__["maxclasses"] = _mapscript.layerObj_maxclasses_get
    if _newclass:
        maxclasses = _swig_property(_mapscript.layerObj_maxclasses_get)
    __swig_getmethods__["index"] = _mapscript.layerObj_index_get
    if _newclass:
        index = _swig_property(_mapscript.layerObj_index_get)
    __swig_getmethods__["map"] = _mapscript.layerObj_map_get
    if _newclass:
        map = _swig_property(_mapscript.layerObj_map_get)
    __swig_setmethods__["header"] = _mapscript.layerObj_header_set
    __swig_getmethods__["header"] = _mapscript.layerObj_header_get
    if _newclass:
        header = _swig_property(_mapscript.layerObj_header_get, _mapscript.layerObj_header_set)
    __swig_setmethods__["footer"] = _mapscript.layerObj_footer_set
    __swig_getmethods__["footer"] = _mapscript.layerObj_footer_get
    if _newclass:
        footer = _swig_property(_mapscript.layerObj_footer_get, _mapscript.layerObj_footer_set)
    __swig_setmethods__["template"] = _mapscript.layerObj_template_set
    __swig_getmethods__["template"] = _mapscript.layerObj_template_get
    if _newclass:
        template = _swig_property(_mapscript.layerObj_template_get, _mapscript.layerObj_template_set)
    __swig_setmethods__["name"] = _mapscript.layerObj_name_set
    __swig_getmethods__["name"] = _mapscript.layerObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.layerObj_name_get, _mapscript.layerObj_name_set)
    __swig_setmethods__["group"] = _mapscript.layerObj_group_set
    __swig_getmethods__["group"] = _mapscript.layerObj_group_get
    if _newclass:
        group = _swig_property(_mapscript.layerObj_group_get, _mapscript.layerObj_group_set)
    __swig_setmethods__["status"] = _mapscript.layerObj_status_set
    __swig_getmethods__["status"] = _mapscript.layerObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.layerObj_status_get, _mapscript.layerObj_status_set)
    __swig_setmethods__["data"] = _mapscript.layerObj_data_set
    __swig_getmethods__["data"] = _mapscript.layerObj_data_get
    if _newclass:
        data = _swig_property(_mapscript.layerObj_data_get, _mapscript.layerObj_data_set)
    __swig_setmethods__["type"] = _mapscript.layerObj_type_set
    __swig_getmethods__["type"] = _mapscript.layerObj_type_get
    if _newclass:
        type = _swig_property(_mapscript.layerObj_type_get, _mapscript.layerObj_type_set)
    __swig_setmethods__["tolerance"] = _mapscript.layerObj_tolerance_set
    __swig_getmethods__["tolerance"] = _mapscript.layerObj_tolerance_get
    if _newclass:
        tolerance = _swig_property(_mapscript.layerObj_tolerance_get, _mapscript.layerObj_tolerance_set)
    __swig_setmethods__["toleranceunits"] = _mapscript.layerObj_toleranceunits_set
    __swig_getmethods__["toleranceunits"] = _mapscript.layerObj_toleranceunits_get
    if _newclass:
        toleranceunits = _swig_property(_mapscript.layerObj_toleranceunits_get, _mapscript.layerObj_toleranceunits_set)
    __swig_setmethods__["symbolscaledenom"] = _mapscript.layerObj_symbolscaledenom_set
    __swig_getmethods__["symbolscaledenom"] = _mapscript.layerObj_symbolscaledenom_get
    if _newclass:
        symbolscaledenom = _swig_property(_mapscript.layerObj_symbolscaledenom_get, _mapscript.layerObj_symbolscaledenom_set)
    __swig_setmethods__["minscaledenom"] = _mapscript.layerObj_minscaledenom_set
    __swig_getmethods__["minscaledenom"] = _mapscript.layerObj_minscaledenom_get
    if _newclass:
        minscaledenom = _swig_property(_mapscript.layerObj_minscaledenom_get, _mapscript.layerObj_minscaledenom_set)
    __swig_setmethods__["maxscaledenom"] = _mapscript.layerObj_maxscaledenom_set
    __swig_getmethods__["maxscaledenom"] = _mapscript.layerObj_maxscaledenom_get
    if _newclass:
        maxscaledenom = _swig_property(_mapscript.layerObj_maxscaledenom_get, _mapscript.layerObj_maxscaledenom_set)
    __swig_setmethods__["minfeaturesize"] = _mapscript.layerObj_minfeaturesize_set
    __swig_getmethods__["minfeaturesize"] = _mapscript.layerObj_minfeaturesize_get
    if _newclass:
        minfeaturesize = _swig_property(_mapscript.layerObj_minfeaturesize_get, _mapscript.layerObj_minfeaturesize_set)
    __swig_setmethods__["labelminscaledenom"] = _mapscript.layerObj_labelminscaledenom_set
    __swig_getmethods__["labelminscaledenom"] = _mapscript.layerObj_labelminscaledenom_get
    if _newclass:
        labelminscaledenom = _swig_property(_mapscript.layerObj_labelminscaledenom_get, _mapscript.layerObj_labelminscaledenom_set)
    __swig_setmethods__["labelmaxscaledenom"] = _mapscript.layerObj_labelmaxscaledenom_set
    __swig_getmethods__["labelmaxscaledenom"] = _mapscript.layerObj_labelmaxscaledenom_get
    if _newclass:
        labelmaxscaledenom = _swig_property(_mapscript.layerObj_labelmaxscaledenom_get, _mapscript.layerObj_labelmaxscaledenom_set)
    __swig_setmethods__["mingeowidth"] = _mapscript.layerObj_mingeowidth_set
    __swig_getmethods__["mingeowidth"] = _mapscript.layerObj_mingeowidth_get
    if _newclass:
        mingeowidth = _swig_property(_mapscript.layerObj_mingeowidth_get, _mapscript.layerObj_mingeowidth_set)
    __swig_setmethods__["maxgeowidth"] = _mapscript.layerObj_maxgeowidth_set
    __swig_getmethods__["maxgeowidth"] = _mapscript.layerObj_maxgeowidth_get
    if _newclass:
        maxgeowidth = _swig_property(_mapscript.layerObj_maxgeowidth_get, _mapscript.layerObj_maxgeowidth_set)
    __swig_setmethods__["sizeunits"] = _mapscript.layerObj_sizeunits_set
    __swig_getmethods__["sizeunits"] = _mapscript.layerObj_sizeunits_get
    if _newclass:
        sizeunits = _swig_property(_mapscript.layerObj_sizeunits_get, _mapscript.layerObj_sizeunits_set)
    __swig_setmethods__["maxfeatures"] = _mapscript.layerObj_maxfeatures_set
    __swig_getmethods__["maxfeatures"] = _mapscript.layerObj_maxfeatures_get
    if _newclass:
        maxfeatures = _swig_property(_mapscript.layerObj_maxfeatures_get, _mapscript.layerObj_maxfeatures_set)
    __swig_setmethods__["startindex"] = _mapscript.layerObj_startindex_set
    __swig_getmethods__["startindex"] = _mapscript.layerObj_startindex_get
    if _newclass:
        startindex = _swig_property(_mapscript.layerObj_startindex_get, _mapscript.layerObj_startindex_set)
    __swig_setmethods__["offsite"] = _mapscript.layerObj_offsite_set
    __swig_getmethods__["offsite"] = _mapscript.layerObj_offsite_get
    if _newclass:
        offsite = _swig_property(_mapscript.layerObj_offsite_get, _mapscript.layerObj_offsite_set)
    __swig_setmethods__["transform"] = _mapscript.layerObj_transform_set
    __swig_getmethods__["transform"] = _mapscript.layerObj_transform_get
    if _newclass:
        transform = _swig_property(_mapscript.layerObj_transform_get, _mapscript.layerObj_transform_set)
    __swig_setmethods__["labelcache"] = _mapscript.layerObj_labelcache_set
    __swig_getmethods__["labelcache"] = _mapscript.layerObj_labelcache_get
    if _newclass:
        labelcache = _swig_property(_mapscript.layerObj_labelcache_get, _mapscript.layerObj_labelcache_set)
    __swig_setmethods__["postlabelcache"] = _mapscript.layerObj_postlabelcache_set
    __swig_getmethods__["postlabelcache"] = _mapscript.layerObj_postlabelcache_get
    if _newclass:
        postlabelcache = _swig_property(_mapscript.layerObj_postlabelcache_get, _mapscript.layerObj_postlabelcache_set)
    __swig_setmethods__["labelitem"] = _mapscript.layerObj_labelitem_set
    __swig_getmethods__["labelitem"] = _mapscript.layerObj_labelitem_get
    if _newclass:
        labelitem = _swig_property(_mapscript.layerObj_labelitem_get, _mapscript.layerObj_labelitem_set)
    __swig_setmethods__["tileitem"] = _mapscript.layerObj_tileitem_set
    __swig_getmethods__["tileitem"] = _mapscript.layerObj_tileitem_get
    if _newclass:
        tileitem = _swig_property(_mapscript.layerObj_tileitem_get, _mapscript.layerObj_tileitem_set)
    __swig_setmethods__["tileindex"] = _mapscript.layerObj_tileindex_set
    __swig_getmethods__["tileindex"] = _mapscript.layerObj_tileindex_get
    if _newclass:
        tileindex = _swig_property(_mapscript.layerObj_tileindex_get, _mapscript.layerObj_tileindex_set)
    __swig_setmethods__["tilesrs"] = _mapscript.layerObj_tilesrs_set
    __swig_getmethods__["tilesrs"] = _mapscript.layerObj_tilesrs_get
    if _newclass:
        tilesrs = _swig_property(_mapscript.layerObj_tilesrs_get, _mapscript.layerObj_tilesrs_set)
    __swig_setmethods__["units"] = _mapscript.layerObj_units_set
    __swig_getmethods__["units"] = _mapscript.layerObj_units_get
    if _newclass:
        units = _swig_property(_mapscript.layerObj_units_get, _mapscript.layerObj_units_set)
    __swig_setmethods__["connection"] = _mapscript.layerObj_connection_set
    __swig_getmethods__["connection"] = _mapscript.layerObj_connection_get
    if _newclass:
        connection = _swig_property(_mapscript.layerObj_connection_get, _mapscript.layerObj_connection_set)
    __swig_setmethods__["plugin_library"] = _mapscript.layerObj_plugin_library_set
    __swig_getmethods__["plugin_library"] = _mapscript.layerObj_plugin_library_get
    if _newclass:
        plugin_library = _swig_property(_mapscript.layerObj_plugin_library_get, _mapscript.layerObj_plugin_library_set)
    __swig_setmethods__["plugin_library_original"] = _mapscript.layerObj_plugin_library_original_set
    __swig_getmethods__["plugin_library_original"] = _mapscript.layerObj_plugin_library_original_get
    if _newclass:
        plugin_library_original = _swig_property(_mapscript.layerObj_plugin_library_original_get, _mapscript.layerObj_plugin_library_original_set)
    __swig_setmethods__["connectiontype"] = _mapscript.layerObj_connectiontype_set
    __swig_getmethods__["connectiontype"] = _mapscript.layerObj_connectiontype_get
    if _newclass:
        connectiontype = _swig_property(_mapscript.layerObj_connectiontype_get, _mapscript.layerObj_connectiontype_set)
    __swig_getmethods__["numitems"] = _mapscript.layerObj_numitems_get
    if _newclass:
        numitems = _swig_property(_mapscript.layerObj_numitems_get)
    __swig_setmethods__["bandsitem"] = _mapscript.layerObj_bandsitem_set
    __swig_getmethods__["bandsitem"] = _mapscript.layerObj_bandsitem_get
    if _newclass:
        bandsitem = _swig_property(_mapscript.layerObj_bandsitem_get, _mapscript.layerObj_bandsitem_set)
    __swig_setmethods__["filteritem"] = _mapscript.layerObj_filteritem_set
    __swig_getmethods__["filteritem"] = _mapscript.layerObj_filteritem_get
    if _newclass:
        filteritem = _swig_property(_mapscript.layerObj_filteritem_get, _mapscript.layerObj_filteritem_set)
    __swig_setmethods__["styleitem"] = _mapscript.layerObj_styleitem_set
    __swig_getmethods__["styleitem"] = _mapscript.layerObj_styleitem_get
    if _newclass:
        styleitem = _swig_property(_mapscript.layerObj_styleitem_get, _mapscript.layerObj_styleitem_set)
    __swig_setmethods__["requires"] = _mapscript.layerObj_requires_set
    __swig_getmethods__["requires"] = _mapscript.layerObj_requires_get
    if _newclass:
        requires = _swig_property(_mapscript.layerObj_requires_get, _mapscript.layerObj_requires_set)
    __swig_setmethods__["labelrequires"] = _mapscript.layerObj_labelrequires_set
    __swig_getmethods__["labelrequires"] = _mapscript.layerObj_labelrequires_get
    if _newclass:
        labelrequires = _swig_property(_mapscript.layerObj_labelrequires_get, _mapscript.layerObj_labelrequires_set)
    __swig_getmethods__["metadata"] = _mapscript.layerObj_metadata_get
    if _newclass:
        metadata = _swig_property(_mapscript.layerObj_metadata_get)
    __swig_getmethods__["validation"] = _mapscript.layerObj_validation_get
    if _newclass:
        validation = _swig_property(_mapscript.layerObj_validation_get)
    __swig_getmethods__["bindvals"] = _mapscript.layerObj_bindvals_get
    if _newclass:
        bindvals = _swig_property(_mapscript.layerObj_bindvals_get)
    __swig_getmethods__["cluster"] = _mapscript.layerObj_cluster_get
    if _newclass:
        cluster = _swig_property(_mapscript.layerObj_cluster_get)
    __swig_setmethods__["dump"] = _mapscript.layerObj_dump_set
    __swig_getmethods__["dump"] = _mapscript.layerObj_dump_get
    if _newclass:
        dump = _swig_property(_mapscript.layerObj_dump_get, _mapscript.layerObj_dump_set)
    __swig_setmethods__["debug"] = _mapscript.layerObj_debug_set
    __swig_getmethods__["debug"] = _mapscript.layerObj_debug_get
    if _newclass:
        debug = _swig_property(_mapscript.layerObj_debug_get, _mapscript.layerObj_debug_set)
    __swig_getmethods__["extent"] = _mapscript.layerObj_extent_get
    if _newclass:
        extent = _swig_property(_mapscript.layerObj_extent_get)
    __swig_getmethods__["numprocessing"] = _mapscript.layerObj_numprocessing_get
    if _newclass:
        numprocessing = _swig_property(_mapscript.layerObj_numprocessing_get)
    __swig_getmethods__["numjoins"] = _mapscript.layerObj_numjoins_get
    if _newclass:
        numjoins = _swig_property(_mapscript.layerObj_numjoins_get)
    __swig_setmethods__["classgroup"] = _mapscript.layerObj_classgroup_set
    __swig_getmethods__["classgroup"] = _mapscript.layerObj_classgroup_get
    if _newclass:
        classgroup = _swig_property(_mapscript.layerObj_classgroup_get, _mapscript.layerObj_classgroup_set)
    __swig_setmethods__["mask"] = _mapscript.layerObj_mask_set
    __swig_getmethods__["mask"] = _mapscript.layerObj_mask_get
    if _newclass:
        mask = _swig_property(_mapscript.layerObj_mask_get, _mapscript.layerObj_mask_set)
    __swig_setmethods__["encoding"] = _mapscript.layerObj_encoding_set
    __swig_getmethods__["encoding"] = _mapscript.layerObj_encoding_get
    if _newclass:
        encoding = _swig_property(_mapscript.layerObj_encoding_get, _mapscript.layerObj_encoding_set)
    __swig_setmethods__["utfitem"] = _mapscript.layerObj_utfitem_set
    __swig_getmethods__["utfitem"] = _mapscript.layerObj_utfitem_get
    if _newclass:
        utfitem = _swig_property(_mapscript.layerObj_utfitem_get, _mapscript.layerObj_utfitem_set)
    __swig_setmethods__["utfitemindex"] = _mapscript.layerObj_utfitemindex_set
    __swig_getmethods__["utfitemindex"] = _mapscript.layerObj_utfitemindex_get
    if _newclass:
        utfitemindex = _swig_property(_mapscript.layerObj_utfitemindex_get, _mapscript.layerObj_utfitemindex_set)
    __swig_setmethods__["utfdata"] = _mapscript.layerObj_utfdata_set
    __swig_getmethods__["utfdata"] = _mapscript.layerObj_utfdata_get
    if _newclass:
        utfdata = _swig_property(_mapscript.layerObj_utfdata_get, _mapscript.layerObj_utfdata_set)
    __swig_setmethods__["compositer"] = _mapscript.layerObj_compositer_set
    __swig_getmethods__["compositer"] = _mapscript.layerObj_compositer_get
    if _newclass:
        compositer = _swig_property(_mapscript.layerObj_compositer_get, _mapscript.layerObj_compositer_set)

    def __init__(self, map=None):
        this = _mapscript.new_layerObj(map)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
        if 1:
                    self.p_map=None
                    try:
        # python 2.5
                        if args and len(args)!=0: 
                            self.p_map=args[0]
                    except NameError:
        # python 2.6
                        if map: 
                            self.p_map=map




    def setOpacity(self, opacity):
        return _mapscript.layerObj_setOpacity(self, opacity)

    def getOpacity(self):
        return _mapscript.layerObj_getOpacity(self)
    __swig_destroy__ = _mapscript.delete_layerObj
    __del__ = lambda self: None

    def clone(self):
        return _mapscript.layerObj_clone(self)

    def updateFromString(self, snippet):
        return _mapscript.layerObj_updateFromString(self, snippet)

    def convertToString(self):
        return _mapscript.layerObj_convertToString(self)

    def insertClass(*args):
           actualIndex=_mapscript.layerObj_insertClass(*args)
           args[1].p_layer=args[0]
           return actualIndex


    def removeClass(self, index):
        return _mapscript.layerObj_removeClass(self, index)

    def open(self):
        return _mapscript.layerObj_open(self)

    def whichShapes(self, rect):
        return _mapscript.layerObj_whichShapes(self, rect)

    def nextShape(self):
        return _mapscript.layerObj_nextShape(self)

    def close(self):
        return _mapscript.layerObj_close(self)

    def getShape(self, record):
        return _mapscript.layerObj_getShape(self, record)

    def getNumResults(self):
        return _mapscript.layerObj_getNumResults(self)

    def getResultsBounds(self):
        return _mapscript.layerObj_getResultsBounds(self)

    def getResult(self, i):
        return _mapscript.layerObj_getResult(self, i)

    def getClass(*args):
    	clazz = _mapscript.layerObj_getClass(*args)
    	if clazz:
    		if args and len(args)!=0:
    			clazz.p_layer=args[0]
    		else:
    			clazz.p_layer=None
    	return clazz


    def getItem(self, i):
        return _mapscript.layerObj_getItem(self, i)

    def setItems(self, items, numitems):
        return _mapscript.layerObj_setItems(self, items, numitems)

    def draw(self, map, image):
        return _mapscript.layerObj_draw(self, map, image)

    def drawQuery(self, map, image):
        return _mapscript.layerObj_drawQuery(self, map, image)

    def queryByFilter(self, map, string):
        return _mapscript.layerObj_queryByFilter(self, map, string)

    def queryByAttributes(self, map, qitem, qstring, mode):
        return _mapscript.layerObj_queryByAttributes(self, map, qitem, qstring, mode)

    def queryByPoint(self, map, point, mode, buffer):
        return _mapscript.layerObj_queryByPoint(self, map, point, mode, buffer)

    def queryByRect(self, map, rect):
        return _mapscript.layerObj_queryByRect(self, map, rect)

    def queryByFeatures(self, map, slayer):
        return _mapscript.layerObj_queryByFeatures(self, map, slayer)

    def queryByShape(self, map, shape):
        return _mapscript.layerObj_queryByShape(self, map, shape)

    def queryByIndex(self, map, tileindex, shapeindex, bAddToQuery=0):
        return _mapscript.layerObj_queryByIndex(self, map, tileindex, shapeindex, bAddToQuery)

    def getResults(self):
        return _mapscript.layerObj_getResults(self)

    def setFilter(self, filter):
        return _mapscript.layerObj_setFilter(self, filter)

    def getFilterString(self):
        return _mapscript.layerObj_getFilterString(self)

    def setWKTProjection(self, wkt):
        return _mapscript.layerObj_setWKTProjection(self, wkt)

    def getProjection(self):
        return _mapscript.layerObj_getProjection(self)

    def setProjection(self, proj4):
        return _mapscript.layerObj_setProjection(self, proj4)

    def addFeature(self, shape):
        return _mapscript.layerObj_addFeature(self, shape)

    def getNumFeatures(self):
        return _mapscript.layerObj_getNumFeatures(self)

    def getExtent(self):
        return _mapscript.layerObj_getExtent(self)

    def setExtent(self, minx=-1.0, miny=-1.0, maxx=-1.0, maxy=-1.0):
        return _mapscript.layerObj_setExtent(self, minx, miny, maxx, maxy)

    def getMetaData(self, name):
        return _mapscript.layerObj_getMetaData(self, name)

    def setMetaData(self, name, value):
        return _mapscript.layerObj_setMetaData(self, name, value)

    def removeMetaData(self, name):
        return _mapscript.layerObj_removeMetaData(self, name)

    def getFirstMetaDataKey(self):
        return _mapscript.layerObj_getFirstMetaDataKey(self)

    def getNextMetaDataKey(self, lastkey):
        return _mapscript.layerObj_getNextMetaDataKey(self, lastkey)

    def getWMSFeatureInfoURL(self, map, click_x, click_y, feature_count, info_format):
        return _mapscript.layerObj_getWMSFeatureInfoURL(self, map, click_x, click_y, feature_count, info_format)

    def executeWFSGetFeature(self, layer):
        return _mapscript.layerObj_executeWFSGetFeature(self, layer)

    def applySLD(self, sld, stylelayer):
        return _mapscript.layerObj_applySLD(self, sld, stylelayer)

    def applySLDURL(self, sld, stylelayer):
        return _mapscript.layerObj_applySLDURL(self, sld, stylelayer)

    def generateSLD(self):
        return _mapscript.layerObj_generateSLD(self)

    def isVisible(self):
        return _mapscript.layerObj_isVisible(self)

    def moveClassUp(self, index):
        return _mapscript.layerObj_moveClassUp(self, index)

    def moveClassDown(self, index):
        return _mapscript.layerObj_moveClassDown(self, index)

    def setProcessingKey(self, key, value):
        return _mapscript.layerObj_setProcessingKey(self, key, value)

    def setProcessing(self, directive):
        return _mapscript.layerObj_setProcessing(self, directive)

    def addProcessing(self, directive):
        return _mapscript.layerObj_addProcessing(self, directive)

    def getProcessing(self, index):
        return _mapscript.layerObj_getProcessing(self, index)

    def getProcessingKey(self, key):
        return _mapscript.layerObj_getProcessingKey(self, key)

    def clearProcessing(self):
        return _mapscript.layerObj_clearProcessing(self)

    def setConnectionType(self, connectiontype, library_str):
        return _mapscript.layerObj_setConnectionType(self, connectiontype, library_str)

    def getClassIndex(self, map, shape, classgroup=None, numclasses=0):
        return _mapscript.layerObj_getClassIndex(self, map, shape, classgroup, numclasses)

    def getGeomTransform(self):
        return _mapscript.layerObj_getGeomTransform(self)

    def setGeomTransform(self, transform):
        return _mapscript.layerObj_setGeomTransform(self, transform)
layerObj_swigregister = _mapscript.layerObj_swigregister
layerObj_swigregister(layerObj)

class mapObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, mapObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, mapObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["name"] = _mapscript.mapObj_name_set
    __swig_getmethods__["name"] = _mapscript.mapObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.mapObj_name_get, _mapscript.mapObj_name_set)
    __swig_setmethods__["status"] = _mapscript.mapObj_status_set
    __swig_getmethods__["status"] = _mapscript.mapObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.mapObj_status_get, _mapscript.mapObj_status_set)
    __swig_setmethods__["height"] = _mapscript.mapObj_height_set
    __swig_getmethods__["height"] = _mapscript.mapObj_height_get
    if _newclass:
        height = _swig_property(_mapscript.mapObj_height_get, _mapscript.mapObj_height_set)
    __swig_setmethods__["width"] = _mapscript.mapObj_width_set
    __swig_getmethods__["width"] = _mapscript.mapObj_width_get
    if _newclass:
        width = _swig_property(_mapscript.mapObj_width_get, _mapscript.mapObj_width_set)
    __swig_setmethods__["maxsize"] = _mapscript.mapObj_maxsize_set
    __swig_getmethods__["maxsize"] = _mapscript.mapObj_maxsize_get
    if _newclass:
        maxsize = _swig_property(_mapscript.mapObj_maxsize_get, _mapscript.mapObj_maxsize_set)
    __swig_getmethods__["refcount"] = _mapscript.mapObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.mapObj_refcount_get)
    __swig_getmethods__["numlayers"] = _mapscript.mapObj_numlayers_get
    if _newclass:
        numlayers = _swig_property(_mapscript.mapObj_numlayers_get)
    __swig_getmethods__["maxlayers"] = _mapscript.mapObj_maxlayers_get
    if _newclass:
        maxlayers = _swig_property(_mapscript.mapObj_maxlayers_get)
    __swig_getmethods__["symbolset"] = _mapscript.mapObj_symbolset_get
    if _newclass:
        symbolset = _swig_property(_mapscript.mapObj_symbolset_get)
    __swig_getmethods__["fontset"] = _mapscript.mapObj_fontset_get
    if _newclass:
        fontset = _swig_property(_mapscript.mapObj_fontset_get)
    __swig_getmethods__["labelcache"] = _mapscript.mapObj_labelcache_get
    if _newclass:
        labelcache = _swig_property(_mapscript.mapObj_labelcache_get)
    __swig_setmethods__["transparent"] = _mapscript.mapObj_transparent_set
    __swig_getmethods__["transparent"] = _mapscript.mapObj_transparent_get
    if _newclass:
        transparent = _swig_property(_mapscript.mapObj_transparent_get, _mapscript.mapObj_transparent_set)
    __swig_setmethods__["interlace"] = _mapscript.mapObj_interlace_set
    __swig_getmethods__["interlace"] = _mapscript.mapObj_interlace_get
    if _newclass:
        interlace = _swig_property(_mapscript.mapObj_interlace_get, _mapscript.mapObj_interlace_set)
    __swig_setmethods__["imagequality"] = _mapscript.mapObj_imagequality_set
    __swig_getmethods__["imagequality"] = _mapscript.mapObj_imagequality_get
    if _newclass:
        imagequality = _swig_property(_mapscript.mapObj_imagequality_get, _mapscript.mapObj_imagequality_set)
    __swig_setmethods__["extent"] = _mapscript.mapObj_extent_set
    __swig_getmethods__["extent"] = _mapscript.mapObj_extent_get
    if _newclass:
        extent = _swig_property(_mapscript.mapObj_extent_get, _mapscript.mapObj_extent_set)
    __swig_setmethods__["cellsize"] = _mapscript.mapObj_cellsize_set
    __swig_getmethods__["cellsize"] = _mapscript.mapObj_cellsize_get
    if _newclass:
        cellsize = _swig_property(_mapscript.mapObj_cellsize_get, _mapscript.mapObj_cellsize_set)
    __swig_setmethods__["units"] = _mapscript.mapObj_units_set
    __swig_getmethods__["units"] = _mapscript.mapObj_units_get
    if _newclass:
        units = _swig_property(_mapscript.mapObj_units_get, _mapscript.mapObj_units_set)
    __swig_setmethods__["scaledenom"] = _mapscript.mapObj_scaledenom_set
    __swig_getmethods__["scaledenom"] = _mapscript.mapObj_scaledenom_get
    if _newclass:
        scaledenom = _swig_property(_mapscript.mapObj_scaledenom_get, _mapscript.mapObj_scaledenom_set)
    __swig_setmethods__["resolution"] = _mapscript.mapObj_resolution_set
    __swig_getmethods__["resolution"] = _mapscript.mapObj_resolution_get
    if _newclass:
        resolution = _swig_property(_mapscript.mapObj_resolution_get, _mapscript.mapObj_resolution_set)
    __swig_setmethods__["defresolution"] = _mapscript.mapObj_defresolution_set
    __swig_getmethods__["defresolution"] = _mapscript.mapObj_defresolution_get
    if _newclass:
        defresolution = _swig_property(_mapscript.mapObj_defresolution_get, _mapscript.mapObj_defresolution_set)
    __swig_setmethods__["shapepath"] = _mapscript.mapObj_shapepath_set
    __swig_getmethods__["shapepath"] = _mapscript.mapObj_shapepath_get
    if _newclass:
        shapepath = _swig_property(_mapscript.mapObj_shapepath_get, _mapscript.mapObj_shapepath_set)
    __swig_setmethods__["mappath"] = _mapscript.mapObj_mappath_set
    __swig_getmethods__["mappath"] = _mapscript.mapObj_mappath_get
    if _newclass:
        mappath = _swig_property(_mapscript.mapObj_mappath_get, _mapscript.mapObj_mappath_set)
    __swig_setmethods__["imagecolor"] = _mapscript.mapObj_imagecolor_set
    __swig_getmethods__["imagecolor"] = _mapscript.mapObj_imagecolor_get
    if _newclass:
        imagecolor = _swig_property(_mapscript.mapObj_imagecolor_get, _mapscript.mapObj_imagecolor_set)
    __swig_getmethods__["numoutputformats"] = _mapscript.mapObj_numoutputformats_get
    if _newclass:
        numoutputformats = _swig_property(_mapscript.mapObj_numoutputformats_get)
    __swig_getmethods__["outputformat"] = _mapscript.mapObj_outputformat_get
    if _newclass:
        outputformat = _swig_property(_mapscript.mapObj_outputformat_get)
    __swig_getmethods__["imagetype"] = _mapscript.mapObj_imagetype_get
    if _newclass:
        imagetype = _swig_property(_mapscript.mapObj_imagetype_get)
    __swig_getmethods__["reference"] = _mapscript.mapObj_reference_get
    if _newclass:
        reference = _swig_property(_mapscript.mapObj_reference_get)
    __swig_getmethods__["scalebar"] = _mapscript.mapObj_scalebar_get
    if _newclass:
        scalebar = _swig_property(_mapscript.mapObj_scalebar_get)
    __swig_getmethods__["legend"] = _mapscript.mapObj_legend_get
    if _newclass:
        legend = _swig_property(_mapscript.mapObj_legend_get)
    __swig_getmethods__["querymap"] = _mapscript.mapObj_querymap_get
    if _newclass:
        querymap = _swig_property(_mapscript.mapObj_querymap_get)
    __swig_getmethods__["web"] = _mapscript.mapObj_web_get
    if _newclass:
        web = _swig_property(_mapscript.mapObj_web_get)
    __swig_setmethods__["layerorder"] = _mapscript.mapObj_layerorder_set
    __swig_getmethods__["layerorder"] = _mapscript.mapObj_layerorder_get
    if _newclass:
        layerorder = _swig_property(_mapscript.mapObj_layerorder_get, _mapscript.mapObj_layerorder_set)
    __swig_setmethods__["debug"] = _mapscript.mapObj_debug_set
    __swig_getmethods__["debug"] = _mapscript.mapObj_debug_get
    if _newclass:
        debug = _swig_property(_mapscript.mapObj_debug_get, _mapscript.mapObj_debug_set)
    __swig_setmethods__["datapattern"] = _mapscript.mapObj_datapattern_set
    __swig_getmethods__["datapattern"] = _mapscript.mapObj_datapattern_get
    if _newclass:
        datapattern = _swig_property(_mapscript.mapObj_datapattern_get, _mapscript.mapObj_datapattern_set)
    __swig_setmethods__["templatepattern"] = _mapscript.mapObj_templatepattern_set
    __swig_getmethods__["templatepattern"] = _mapscript.mapObj_templatepattern_get
    if _newclass:
        templatepattern = _swig_property(_mapscript.mapObj_templatepattern_get, _mapscript.mapObj_templatepattern_set)
    __swig_getmethods__["configoptions"] = _mapscript.mapObj_configoptions_get
    if _newclass:
        configoptions = _swig_property(_mapscript.mapObj_configoptions_get)

    def __init__(self, *args):
        this = _mapscript.new_mapObj(*args)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_mapObj
    __del__ = lambda self: None

    def clone(self):
        return _mapscript.mapObj_clone(self)

    def insertLayer(*args):
           actualIndex=_mapscript.mapObj_insertLayer(*args)
           args[1].p_map=args[0]
           return actualIndex


    def removeLayer(self, index):
        return _mapscript.mapObj_removeLayer(self, index)

    def setExtent(self, minx, miny, maxx, maxy):
        return _mapscript.mapObj_setExtent(self, minx, miny, maxx, maxy)

    def offsetExtent(self, x, y):
        return _mapscript.mapObj_offsetExtent(self, x, y)

    def scaleExtent(self, zoomfactor, minscaledenom, maxscaledenom):
        return _mapscript.mapObj_scaleExtent(self, zoomfactor, minscaledenom, maxscaledenom)

    def setCenter(self, center):
        return _mapscript.mapObj_setCenter(self, center)

    def setSize(self, width, height):
        return _mapscript.mapObj_setSize(self, width, height)

    def setRotation(self, rotation_angle):
        return _mapscript.mapObj_setRotation(self, rotation_angle)

    def getLayer(*args):
    	layer = _mapscript.mapObj_getLayer(*args)
    	if layer:
    		if args and len(args)!=0:
    			layer.p_map=args[0]
    		else:
    			layer.p_map=None
    	return layer


    def getLayerByName(*args):
    	layer = _mapscript.mapObj_getLayerByName(*args)
    	if layer:
    		if args and len(args)!=0:
    			layer.p_map=args[0]
    		else:
    			layer.p_map=None
    	return layer


    def getSymbolByName(self, name):
        return _mapscript.mapObj_getSymbolByName(self, name)

    def prepareQuery(self):
        return _mapscript.mapObj_prepareQuery(self)

    def prepareImage(self):
        return _mapscript.mapObj_prepareImage(self)

    def setImageType(self, imagetype):
        return _mapscript.mapObj_setImageType(self, imagetype)

    def selectOutputFormat(self, imagetype):
        return _mapscript.mapObj_selectOutputFormat(self, imagetype)

    def getOutputFormat(self, i):
        return _mapscript.mapObj_getOutputFormat(self, i)

    def setOutputFormat(self, format):
        return _mapscript.mapObj_setOutputFormat(self, format)

    def draw(self):
        return _mapscript.mapObj_draw(self)

    def drawQuery(self):
        return _mapscript.mapObj_drawQuery(self)

    def drawLegend(self):
        return _mapscript.mapObj_drawLegend(self)

    def drawScalebar(self):
        return _mapscript.mapObj_drawScalebar(self)

    def drawReferenceMap(self):
        return _mapscript.mapObj_drawReferenceMap(self)

    def embedScalebar(self, image):
        return _mapscript.mapObj_embedScalebar(self, image)

    def embedLegend(self, image):
        return _mapscript.mapObj_embedLegend(self, image)

    def drawLabelCache(self, image):
        return _mapscript.mapObj_drawLabelCache(self, image)

    def queryByFilter(self, string):
        return _mapscript.mapObj_queryByFilter(self, string)

    def queryByPoint(self, point, mode, buffer):
        return _mapscript.mapObj_queryByPoint(self, point, mode, buffer)

    def queryByRect(self, rect):
        return _mapscript.mapObj_queryByRect(self, rect)

    def queryByFeatures(self, slayer):
        return _mapscript.mapObj_queryByFeatures(self, slayer)

    def queryByShape(self, shape):
        return _mapscript.mapObj_queryByShape(self, shape)

    def setWKTProjection(self, wkt):
        return _mapscript.mapObj_setWKTProjection(self, wkt)

    def getProjection(self):
        return _mapscript.mapObj_getProjection(self)

    def setProjection(self, proj4):
        return _mapscript.mapObj_setProjection(self, proj4)

    def save(self, filename):
        return _mapscript.mapObj_save(self, filename)

    def saveQuery(self, filename, results=0):
        return _mapscript.mapObj_saveQuery(self, filename, results)

    def loadQuery(self, filename):
        return _mapscript.mapObj_loadQuery(self, filename)

    def freeQuery(self, qlayer=-1):
        return _mapscript.mapObj_freeQuery(self, qlayer)

    def saveQueryAsGML(self, *args):
        return _mapscript.mapObj_saveQueryAsGML(self, *args)

    def getMetaData(self, name):
        return _mapscript.mapObj_getMetaData(self, name)

    def setMetaData(self, name, value):
        return _mapscript.mapObj_setMetaData(self, name, value)

    def removeMetaData(self, name):
        return _mapscript.mapObj_removeMetaData(self, name)

    def getFirstMetaDataKey(self):
        return _mapscript.mapObj_getFirstMetaDataKey(self)

    def getNextMetaDataKey(self, lastkey):
        return _mapscript.mapObj_getNextMetaDataKey(self, lastkey)

    def setSymbolSet(self, szFileName):
        return _mapscript.mapObj_setSymbolSet(self, szFileName)

    def getNumSymbols(self):
        return _mapscript.mapObj_getNumSymbols(self)

    def setFontSet(self, filename):
        return _mapscript.mapObj_setFontSet(self, filename)

    def saveMapContext(self, szFileName):
        return _mapscript.mapObj_saveMapContext(self, szFileName)

    def loadMapContext(self, szFileName, useUniqueNames=0):
        return _mapscript.mapObj_loadMapContext(self, szFileName, useUniqueNames)

    def moveLayerUp(self, layerindex):
        return _mapscript.mapObj_moveLayerUp(self, layerindex)

    def moveLayerDown(self, layerindex):
        return _mapscript.mapObj_moveLayerDown(self, layerindex)

    def getLayersDrawingOrder(self):
        return _mapscript.mapObj_getLayersDrawingOrder(self)

    def setLayersDrawingOrder(self, panIndexes):
        return _mapscript.mapObj_setLayersDrawingOrder(self, panIndexes)

    def setConfigOption(self, key, value):
        return _mapscript.mapObj_setConfigOption(self, key, value)

    def getConfigOption(self, key):
        return _mapscript.mapObj_getConfigOption(self, key)

    def applyConfigOptions(self):
        return _mapscript.mapObj_applyConfigOptions(self)

    def applySLD(self, sld):
        return _mapscript.mapObj_applySLD(self, sld)

    def applySLDURL(self, sld):
        return _mapscript.mapObj_applySLDURL(self, sld)

    def generateSLD(self):
        return _mapscript.mapObj_generateSLD(self)

    def processTemplate(self, bGenerateImages, names, values, numentries):
        return _mapscript.mapObj_processTemplate(self, bGenerateImages, names, values, numentries)

    def processLegendTemplate(self, names, values, numentries):
        return _mapscript.mapObj_processLegendTemplate(self, names, values, numentries)

    def processQueryTemplate(self, names, values, numentries):
        return _mapscript.mapObj_processQueryTemplate(self, names, values, numentries)

    def getOutputFormatByName(self, name):
        return _mapscript.mapObj_getOutputFormatByName(self, name)

    def appendOutputFormat(self, format):
        return _mapscript.mapObj_appendOutputFormat(self, format)

    def removeOutputFormat(self, name):
        return _mapscript.mapObj_removeOutputFormat(self, name)

    def loadOWSParameters(self, *args):
        return _mapscript.mapObj_loadOWSParameters(self, *args)

    def OWSDispatch(self, req):
        return _mapscript.mapObj_OWSDispatch(self, req)

    def convertToString(self):
        return _mapscript.mapObj_convertToString(self)

    def zoomPoint(self, zoomfactor, poPixPos, width, height, poGeorefExt, poMaxGeorefExt):
        return _mapscript.mapObj_zoomPoint(self, zoomfactor, poPixPos, width, height, poGeorefExt, poMaxGeorefExt)

    def zoomRectangle(self, poPixRect, width, height, poGeorefExt, poMaxGeorefExt):
        return _mapscript.mapObj_zoomRectangle(self, poPixRect, width, height, poGeorefExt, poMaxGeorefExt)

    def zoomScale(self, scale, poPixPos, width, height, poGeorefExt, poMaxGeorefExt):
        return _mapscript.mapObj_zoomScale(self, scale, poPixPos, width, height, poGeorefExt, poMaxGeorefExt)

    def getLayerOrder(self):
        return _mapscript.mapObj_getLayerOrder(self)

    def setLayerOrder(self, order):
        return _mapscript.mapObj_setLayerOrder(self, order)

    def getSize(self):
        return _mapscript.mapObj_getSize(self)


    def get_height(self):
        return self.getSize()[1] # <-- second member is the height
    def get_width(self):
        return self.getSize()[0] # <-- first member is the width
    def set_height(self, value):
        return self.setSize(self.getSize()[0], value)
    def set_width(self, value):
        return self.setSize(value, self.getSize()[1])
    width = property(get_width, set_width)
    height = property(get_height, set_height)


mapObj_swigregister = _mapscript.mapObj_swigregister
mapObj_swigregister(mapObj)


def msSaveImage(map, img, filename):
    return _mapscript.msSaveImage(map, img, filename)
msSaveImage = _mapscript.msSaveImage

def msFreeImage(img):
    return _mapscript.msFreeImage(img)
msFreeImage = _mapscript.msFreeImage

def msSetup():
    return _mapscript.msSetup()
msSetup = _mapscript.msSetup

def msCleanup():
    return _mapscript.msCleanup()
msCleanup = _mapscript.msCleanup

def msLoadMapFromString(buffer, new_mappath):
    return _mapscript.msLoadMapFromString(buffer, new_mappath)
msLoadMapFromString = _mapscript.msLoadMapFromString

_mapscript.MS_VERSION_MAJOR_swigconstant(_mapscript)
MS_VERSION_MAJOR = _mapscript.MS_VERSION_MAJOR

_mapscript.MS_VERSION_MINOR_swigconstant(_mapscript)
MS_VERSION_MINOR = _mapscript.MS_VERSION_MINOR

_mapscript.MS_VERSION_REV_swigconstant(_mapscript)
MS_VERSION_REV = _mapscript.MS_VERSION_REV

_mapscript.MS_VERSION_swigconstant(_mapscript)
MS_VERSION = _mapscript.MS_VERSION

_mapscript.MS_VERSION_NUM_swigconstant(_mapscript)
MS_VERSION_NUM = _mapscript.MS_VERSION_NUM
class rectObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, rectObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, rectObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["minx"] = _mapscript.rectObj_minx_set
    __swig_getmethods__["minx"] = _mapscript.rectObj_minx_get
    if _newclass:
        minx = _swig_property(_mapscript.rectObj_minx_get, _mapscript.rectObj_minx_set)
    __swig_setmethods__["miny"] = _mapscript.rectObj_miny_set
    __swig_getmethods__["miny"] = _mapscript.rectObj_miny_get
    if _newclass:
        miny = _swig_property(_mapscript.rectObj_miny_get, _mapscript.rectObj_miny_set)
    __swig_setmethods__["maxx"] = _mapscript.rectObj_maxx_set
    __swig_getmethods__["maxx"] = _mapscript.rectObj_maxx_get
    if _newclass:
        maxx = _swig_property(_mapscript.rectObj_maxx_get, _mapscript.rectObj_maxx_set)
    __swig_setmethods__["maxy"] = _mapscript.rectObj_maxy_set
    __swig_getmethods__["maxy"] = _mapscript.rectObj_maxy_get
    if _newclass:
        maxy = _swig_property(_mapscript.rectObj_maxy_get, _mapscript.rectObj_maxy_set)

    def __init__(self, minx=-1.0, miny=-1.0, maxx=-1.0, maxy=-1.0, imageunits=0):
        this = _mapscript.new_rectObj(minx, miny, maxx, maxy, imageunits)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_rectObj
    __del__ = lambda self: None

    def project(self, projin, projout):
        return _mapscript.rectObj_project(self, projin, projout)

    def fit(self, width, height):
        return _mapscript.rectObj_fit(self, width, height)

    def draw(self, map, layer, image, classindex, text):
        return _mapscript.rectObj_draw(self, map, layer, image, classindex, text)

    def getCenter(self):
        return _mapscript.rectObj_getCenter(self)

    def toPolygon(self):
        return _mapscript.rectObj_toPolygon(self)

    def toString(self):
        return _mapscript.rectObj_toString(self)


    def __str__(self):
        return self.toString()

    def __contains__(self, item):
        item_type = str(type(item))
        if item_type == "<class 'mapscript.pointObj'>":
            if item.x >= self.minx and item.x <= self.maxx \
            and item.y >= self.miny and item.y <= self.maxy:
                return True
            else:
                return False
        else:
            raise TypeError, \
                '__contains__ does not yet handle %s' % (item_type)


rectObj_swigregister = _mapscript.rectObj_swigregister
rectObj_swigregister(rectObj)

class pointObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, pointObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, pointObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["x"] = _mapscript.pointObj_x_set
    __swig_getmethods__["x"] = _mapscript.pointObj_x_get
    if _newclass:
        x = _swig_property(_mapscript.pointObj_x_get, _mapscript.pointObj_x_set)
    __swig_setmethods__["y"] = _mapscript.pointObj_y_set
    __swig_getmethods__["y"] = _mapscript.pointObj_y_get
    if _newclass:
        y = _swig_property(_mapscript.pointObj_y_get, _mapscript.pointObj_y_set)

    def __init__(self, x=0.0, y=0.0, z=0.0, m=-2e38):
        this = _mapscript.new_pointObj(x, y, z, m)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_pointObj
    __del__ = lambda self: None

    def project(self, projin, projout):
        return _mapscript.pointObj_project(self, projin, projout)

    def draw(self, map, layer, image, classindex, text):
        return _mapscript.pointObj_draw(self, map, layer, image, classindex, text)

    def distanceToPoint(self, point):
        return _mapscript.pointObj_distanceToPoint(self, point)

    def distanceToSegment(self, a, b):
        return _mapscript.pointObj_distanceToSegment(self, a, b)

    def distanceToShape(self, shape):
        return _mapscript.pointObj_distanceToShape(self, shape)

    def setXY(self, x, y, m=-2e38):
        return _mapscript.pointObj_setXY(self, x, y, m)

    def setXYZ(self, x, y, z, m=-2e38):
        return _mapscript.pointObj_setXYZ(self, x, y, z, m)

    def setXYZM(self, x, y, z, m):
        return _mapscript.pointObj_setXYZM(self, x, y, z, m)

    def toString(self):
        return _mapscript.pointObj_toString(self)

    def toShape(self):
        return _mapscript.pointObj_toShape(self)


    def __str__(self):
        return self.toString()


pointObj_swigregister = _mapscript.pointObj_swigregister
pointObj_swigregister(pointObj)

class lineObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, lineObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, lineObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numpoints"] = _mapscript.lineObj_numpoints_get
    if _newclass:
        numpoints = _swig_property(_mapscript.lineObj_numpoints_get)

    def __init__(self):
        this = _mapscript.new_lineObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_lineObj
    __del__ = lambda self: None

    def project(self, projin, projout):
        return _mapscript.lineObj_project(self, projin, projout)

    def get(self, i):
        return _mapscript.lineObj_get(self, i)

    def add(self, p):
        return _mapscript.lineObj_add(self, p)

    def set(self, i, p):
        return _mapscript.lineObj_set(self, i, p)
lineObj_swigregister = _mapscript.lineObj_swigregister
lineObj_swigregister(lineObj)

class shapeObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, shapeObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, shapeObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numlines"] = _mapscript.shapeObj_numlines_get
    if _newclass:
        numlines = _swig_property(_mapscript.shapeObj_numlines_get)
    __swig_getmethods__["numvalues"] = _mapscript.shapeObj_numvalues_get
    if _newclass:
        numvalues = _swig_property(_mapscript.shapeObj_numvalues_get)
    __swig_setmethods__["bounds"] = _mapscript.shapeObj_bounds_set
    __swig_getmethods__["bounds"] = _mapscript.shapeObj_bounds_get
    if _newclass:
        bounds = _swig_property(_mapscript.shapeObj_bounds_get, _mapscript.shapeObj_bounds_set)
    __swig_setmethods__["type"] = _mapscript.shapeObj_type_set
    __swig_getmethods__["type"] = _mapscript.shapeObj_type_get
    if _newclass:
        type = _swig_property(_mapscript.shapeObj_type_get, _mapscript.shapeObj_type_set)
    __swig_setmethods__["index"] = _mapscript.shapeObj_index_set
    __swig_getmethods__["index"] = _mapscript.shapeObj_index_get
    if _newclass:
        index = _swig_property(_mapscript.shapeObj_index_get, _mapscript.shapeObj_index_set)
    __swig_setmethods__["tileindex"] = _mapscript.shapeObj_tileindex_set
    __swig_getmethods__["tileindex"] = _mapscript.shapeObj_tileindex_get
    if _newclass:
        tileindex = _swig_property(_mapscript.shapeObj_tileindex_get, _mapscript.shapeObj_tileindex_set)
    __swig_setmethods__["classindex"] = _mapscript.shapeObj_classindex_set
    __swig_getmethods__["classindex"] = _mapscript.shapeObj_classindex_get
    if _newclass:
        classindex = _swig_property(_mapscript.shapeObj_classindex_get, _mapscript.shapeObj_classindex_set)
    __swig_setmethods__["text"] = _mapscript.shapeObj_text_set
    __swig_getmethods__["text"] = _mapscript.shapeObj_text_get
    if _newclass:
        text = _swig_property(_mapscript.shapeObj_text_get, _mapscript.shapeObj_text_set)
    __swig_setmethods__["scratch"] = _mapscript.shapeObj_scratch_set
    __swig_getmethods__["scratch"] = _mapscript.shapeObj_scratch_get
    if _newclass:
        scratch = _swig_property(_mapscript.shapeObj_scratch_get, _mapscript.shapeObj_scratch_set)
    __swig_setmethods__["resultindex"] = _mapscript.shapeObj_resultindex_set
    __swig_getmethods__["resultindex"] = _mapscript.shapeObj_resultindex_get
    if _newclass:
        resultindex = _swig_property(_mapscript.shapeObj_resultindex_get, _mapscript.shapeObj_resultindex_set)

    def __init__(self, type=MS_SHAPE_NULL):
        this = _mapscript.new_shapeObj(type)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_shapeObj
    __del__ = lambda self: None
    __swig_getmethods__["fromWKT"] = lambda x: _mapscript.shapeObj_fromWKT
    if _newclass:
        fromWKT = staticmethod(_mapscript.shapeObj_fromWKT)

    def project(self, projin, projout):
        return _mapscript.shapeObj_project(self, projin, projout)

    def get(self, i):
        return _mapscript.shapeObj_get(self, i)

    def add(self, line):
        return _mapscript.shapeObj_add(self, line)

    def draw(self, map, layer, image):
        return _mapscript.shapeObj_draw(self, map, layer, image)

    def setBounds(self):
        return _mapscript.shapeObj_setBounds(self)

    def clone(self):
        return _mapscript.shapeObj_clone(self)

    def copy(self, dest):
        return _mapscript.shapeObj_copy(self, dest)

    def toWKT(self):
        return _mapscript.shapeObj_toWKT(self)

    def buffer(self, width):
        return _mapscript.shapeObj_buffer(self, width)

    def simplify(self, tolerance):
        return _mapscript.shapeObj_simplify(self, tolerance)

    def topologyPreservingSimplify(self, tolerance):
        return _mapscript.shapeObj_topologyPreservingSimplify(self, tolerance)

    def convexHull(self):
        return _mapscript.shapeObj_convexHull(self)

    def boundary(self):
        return _mapscript.shapeObj_boundary(self)

    def getCentroid(self):
        return _mapscript.shapeObj_getCentroid(self)

    def Union(self, shape):
        return _mapscript.shapeObj_Union(self, shape)

    def intersection(self, shape):
        return _mapscript.shapeObj_intersection(self, shape)

    def difference(self, shape):
        return _mapscript.shapeObj_difference(self, shape)

    def symDifference(self, shape):
        return _mapscript.shapeObj_symDifference(self, shape)

    def overlaps(self, shape):
        return _mapscript.shapeObj_overlaps(self, shape)

    def within(self, shape):
        return _mapscript.shapeObj_within(self, shape)

    def crosses(self, shape):
        return _mapscript.shapeObj_crosses(self, shape)

    def intersects(self, shape):
        return _mapscript.shapeObj_intersects(self, shape)

    def touches(self, shape):
        return _mapscript.shapeObj_touches(self, shape)

    def equals(self, shape):
        return _mapscript.shapeObj_equals(self, shape)

    def disjoint(self, shape):
        return _mapscript.shapeObj_disjoint(self, shape)

    def getArea(self):
        return _mapscript.shapeObj_getArea(self)

    def getLength(self):
        return _mapscript.shapeObj_getLength(self)

    def getValue(self, i):
        return _mapscript.shapeObj_getValue(self, i)

    def contains(self, *args):
        return _mapscript.shapeObj_contains(self, *args)

    def distanceToPoint(self, point):
        return _mapscript.shapeObj_distanceToPoint(self, point)

    def distanceToShape(self, shape):
        return _mapscript.shapeObj_distanceToShape(self, shape)

    def getLabelPoint(self):
        return _mapscript.shapeObj_getLabelPoint(self)

    def setValue(self, i, value):
        return _mapscript.shapeObj_setValue(self, i, value)

    def initValues(self, numvalues):
        return _mapscript.shapeObj_initValues(self, numvalues)
shapeObj_swigregister = _mapscript.shapeObj_swigregister
shapeObj_swigregister(shapeObj)

def shapeObj_fromWKT(wkt):
    return _mapscript.shapeObj_fromWKT(wkt)
shapeObj_fromWKT = _mapscript.shapeObj_fromWKT


_mapscript.SHX_BUFFER_PAGE_swigconstant(_mapscript)
SHX_BUFFER_PAGE = _mapscript.SHX_BUFFER_PAGE

_mapscript.MS_SHAPEFILE_POINT_swigconstant(_mapscript)
MS_SHAPEFILE_POINT = _mapscript.MS_SHAPEFILE_POINT

_mapscript.MS_SHAPEFILE_ARC_swigconstant(_mapscript)
MS_SHAPEFILE_ARC = _mapscript.MS_SHAPEFILE_ARC

_mapscript.MS_SHAPEFILE_POLYGON_swigconstant(_mapscript)
MS_SHAPEFILE_POLYGON = _mapscript.MS_SHAPEFILE_POLYGON

_mapscript.MS_SHAPEFILE_MULTIPOINT_swigconstant(_mapscript)
MS_SHAPEFILE_MULTIPOINT = _mapscript.MS_SHAPEFILE_MULTIPOINT

_mapscript.MS_SHP_POINTZ_swigconstant(_mapscript)
MS_SHP_POINTZ = _mapscript.MS_SHP_POINTZ

_mapscript.MS_SHP_ARCZ_swigconstant(_mapscript)
MS_SHP_ARCZ = _mapscript.MS_SHP_ARCZ

_mapscript.MS_SHP_POLYGONZ_swigconstant(_mapscript)
MS_SHP_POLYGONZ = _mapscript.MS_SHP_POLYGONZ

_mapscript.MS_SHP_MULTIPOINTZ_swigconstant(_mapscript)
MS_SHP_MULTIPOINTZ = _mapscript.MS_SHP_MULTIPOINTZ

_mapscript.MS_SHP_POINTM_swigconstant(_mapscript)
MS_SHP_POINTM = _mapscript.MS_SHP_POINTM

_mapscript.MS_SHP_ARCM_swigconstant(_mapscript)
MS_SHP_ARCM = _mapscript.MS_SHP_ARCM

_mapscript.MS_SHP_POLYGONM_swigconstant(_mapscript)
MS_SHP_POLYGONM = _mapscript.MS_SHP_POLYGONM

_mapscript.MS_SHP_MULTIPOINTM_swigconstant(_mapscript)
MS_SHP_MULTIPOINTM = _mapscript.MS_SHP_MULTIPOINTM
class DBFInfo(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, DBFInfo, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, DBFInfo, name)
    __repr__ = _swig_repr
    __swig_getmethods__["fp"] = _mapscript.DBFInfo_fp_get
    if _newclass:
        fp = _swig_property(_mapscript.DBFInfo_fp_get)
    __swig_getmethods__["nRecords"] = _mapscript.DBFInfo_nRecords_get
    if _newclass:
        nRecords = _swig_property(_mapscript.DBFInfo_nRecords_get)
    __swig_getmethods__["nRecordLength"] = _mapscript.DBFInfo_nRecordLength_get
    if _newclass:
        nRecordLength = _swig_property(_mapscript.DBFInfo_nRecordLength_get)
    __swig_getmethods__["nHeaderLength"] = _mapscript.DBFInfo_nHeaderLength_get
    if _newclass:
        nHeaderLength = _swig_property(_mapscript.DBFInfo_nHeaderLength_get)
    __swig_getmethods__["nFields"] = _mapscript.DBFInfo_nFields_get
    if _newclass:
        nFields = _swig_property(_mapscript.DBFInfo_nFields_get)
    __swig_getmethods__["panFieldOffset"] = _mapscript.DBFInfo_panFieldOffset_get
    if _newclass:
        panFieldOffset = _swig_property(_mapscript.DBFInfo_panFieldOffset_get)
    __swig_getmethods__["panFieldSize"] = _mapscript.DBFInfo_panFieldSize_get
    if _newclass:
        panFieldSize = _swig_property(_mapscript.DBFInfo_panFieldSize_get)
    __swig_getmethods__["panFieldDecimals"] = _mapscript.DBFInfo_panFieldDecimals_get
    if _newclass:
        panFieldDecimals = _swig_property(_mapscript.DBFInfo_panFieldDecimals_get)
    __swig_getmethods__["pachFieldType"] = _mapscript.DBFInfo_pachFieldType_get
    if _newclass:
        pachFieldType = _swig_property(_mapscript.DBFInfo_pachFieldType_get)
    __swig_getmethods__["pszHeader"] = _mapscript.DBFInfo_pszHeader_get
    if _newclass:
        pszHeader = _swig_property(_mapscript.DBFInfo_pszHeader_get)
    __swig_getmethods__["nCurrentRecord"] = _mapscript.DBFInfo_nCurrentRecord_get
    if _newclass:
        nCurrentRecord = _swig_property(_mapscript.DBFInfo_nCurrentRecord_get)
    __swig_getmethods__["bCurrentRecordModified"] = _mapscript.DBFInfo_bCurrentRecordModified_get
    if _newclass:
        bCurrentRecordModified = _swig_property(_mapscript.DBFInfo_bCurrentRecordModified_get)
    __swig_getmethods__["pszCurrentRecord"] = _mapscript.DBFInfo_pszCurrentRecord_get
    if _newclass:
        pszCurrentRecord = _swig_property(_mapscript.DBFInfo_pszCurrentRecord_get)
    __swig_getmethods__["bNoHeader"] = _mapscript.DBFInfo_bNoHeader_get
    if _newclass:
        bNoHeader = _swig_property(_mapscript.DBFInfo_bNoHeader_get)
    __swig_getmethods__["bUpdated"] = _mapscript.DBFInfo_bUpdated_get
    if _newclass:
        bUpdated = _swig_property(_mapscript.DBFInfo_bUpdated_get)
    __swig_getmethods__["pszStringField"] = _mapscript.DBFInfo_pszStringField_get
    if _newclass:
        pszStringField = _swig_property(_mapscript.DBFInfo_pszStringField_get)
    __swig_getmethods__["nStringFieldLen"] = _mapscript.DBFInfo_nStringFieldLen_get
    if _newclass:
        nStringFieldLen = _swig_property(_mapscript.DBFInfo_nStringFieldLen_get)

    def getFieldName(self, iField):
        return _mapscript.DBFInfo_getFieldName(self, iField)

    def getFieldWidth(self, iField):
        return _mapscript.DBFInfo_getFieldWidth(self, iField)

    def getFieldDecimals(self, iField):
        return _mapscript.DBFInfo_getFieldDecimals(self, iField)

    def getFieldType(self, iField):
        return _mapscript.DBFInfo_getFieldType(self, iField)

    def __init__(self):
        this = _mapscript.new_DBFInfo()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_DBFInfo
    __del__ = lambda self: None
DBFInfo_swigregister = _mapscript.DBFInfo_swigregister
DBFInfo_swigregister(DBFInfo)


_mapscript.FTString_swigconstant(_mapscript)
FTString = _mapscript.FTString

_mapscript.FTInteger_swigconstant(_mapscript)
FTInteger = _mapscript.FTInteger

_mapscript.FTDouble_swigconstant(_mapscript)
FTDouble = _mapscript.FTDouble

_mapscript.FTInvalid_swigconstant(_mapscript)
FTInvalid = _mapscript.FTInvalid
class shapefileObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, shapefileObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, shapefileObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["source"] = _mapscript.shapefileObj_source_get
    if _newclass:
        source = _swig_property(_mapscript.shapefileObj_source_get)
    __swig_getmethods__["type"] = _mapscript.shapefileObj_type_get
    if _newclass:
        type = _swig_property(_mapscript.shapefileObj_type_get)
    __swig_getmethods__["numshapes"] = _mapscript.shapefileObj_numshapes_get
    if _newclass:
        numshapes = _swig_property(_mapscript.shapefileObj_numshapes_get)
    __swig_getmethods__["bounds"] = _mapscript.shapefileObj_bounds_get
    if _newclass:
        bounds = _swig_property(_mapscript.shapefileObj_bounds_get)
    __swig_getmethods__["lastshape"] = _mapscript.shapefileObj_lastshape_get
    if _newclass:
        lastshape = _swig_property(_mapscript.shapefileObj_lastshape_get)
    __swig_getmethods__["status"] = _mapscript.shapefileObj_status_get
    if _newclass:
        status = _swig_property(_mapscript.shapefileObj_status_get)
    __swig_getmethods__["statusbounds"] = _mapscript.shapefileObj_statusbounds_get
    if _newclass:
        statusbounds = _swig_property(_mapscript.shapefileObj_statusbounds_get)
    __swig_getmethods__["isopen"] = _mapscript.shapefileObj_isopen_get
    if _newclass:
        isopen = _swig_property(_mapscript.shapefileObj_isopen_get)

    def __init__(self, filename, type=-1):
        this = _mapscript.new_shapefileObj(filename, type)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_shapefileObj
    __del__ = lambda self: None

    def get(self, i, shape):
        return _mapscript.shapefileObj_get(self, i, shape)

    def getShape(self, i):
        return _mapscript.shapefileObj_getShape(self, i)

    def getPoint(self, i, point):
        return _mapscript.shapefileObj_getPoint(self, i, point)

    def getTransformed(self, map, i, shape):
        return _mapscript.shapefileObj_getTransformed(self, map, i, shape)

    def getExtent(self, i, rect):
        return _mapscript.shapefileObj_getExtent(self, i, rect)

    def add(self, shape):
        return _mapscript.shapefileObj_add(self, shape)

    def addPoint(self, point):
        return _mapscript.shapefileObj_addPoint(self, point)

    def getDBF(self):
        return _mapscript.shapefileObj_getDBF(self)
shapefileObj_swigregister = _mapscript.shapefileObj_swigregister
shapefileObj_swigregister(shapefileObj)


_mapscript.wkp_none_swigconstant(_mapscript)
wkp_none = _mapscript.wkp_none

_mapscript.wkp_lonlat_swigconstant(_mapscript)
wkp_lonlat = _mapscript.wkp_lonlat

_mapscript.wkp_gmerc_swigconstant(_mapscript)
wkp_gmerc = _mapscript.wkp_gmerc
class projectionObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, projectionObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, projectionObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numargs"] = _mapscript.projectionObj_numargs_get
    if _newclass:
        numargs = _swig_property(_mapscript.projectionObj_numargs_get)
    __swig_getmethods__["automatic"] = _mapscript.projectionObj_automatic_get
    if _newclass:
        automatic = _swig_property(_mapscript.projectionObj_automatic_get)
    __swig_setmethods__["wellknownprojection"] = _mapscript.projectionObj_wellknownprojection_set
    __swig_getmethods__["wellknownprojection"] = _mapscript.projectionObj_wellknownprojection_get
    if _newclass:
        wellknownprojection = _swig_property(_mapscript.projectionObj_wellknownprojection_get, _mapscript.projectionObj_wellknownprojection_set)

    def __init__(self, proj4):
        this = _mapscript.new_projectionObj(proj4)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_projectionObj
    __del__ = lambda self: None

    def setWKTProjection(self, wkt):
        return _mapscript.projectionObj_setWKTProjection(self, wkt)

    def getUnits(self):
        return _mapscript.projectionObj_getUnits(self)
projectionObj_swigregister = _mapscript.projectionObj_swigregister
projectionObj_swigregister(projectionObj)


_mapscript.MS_SYMBOL_SIMPLE_swigconstant(_mapscript)
MS_SYMBOL_SIMPLE = _mapscript.MS_SYMBOL_SIMPLE

_mapscript.MS_SYMBOL_VECTOR_swigconstant(_mapscript)
MS_SYMBOL_VECTOR = _mapscript.MS_SYMBOL_VECTOR

_mapscript.MS_SYMBOL_ELLIPSE_swigconstant(_mapscript)
MS_SYMBOL_ELLIPSE = _mapscript.MS_SYMBOL_ELLIPSE

_mapscript.MS_SYMBOL_PIXMAP_swigconstant(_mapscript)
MS_SYMBOL_PIXMAP = _mapscript.MS_SYMBOL_PIXMAP

_mapscript.MS_SYMBOL_TRUETYPE_swigconstant(_mapscript)
MS_SYMBOL_TRUETYPE = _mapscript.MS_SYMBOL_TRUETYPE

_mapscript.MS_SYMBOL_HATCH_swigconstant(_mapscript)
MS_SYMBOL_HATCH = _mapscript.MS_SYMBOL_HATCH

_mapscript.MS_SYMBOL_SVG_swigconstant(_mapscript)
MS_SYMBOL_SVG = _mapscript.MS_SYMBOL_SVG

_mapscript.MS_SYMBOL_ALLOCSIZE_swigconstant(_mapscript)
MS_SYMBOL_ALLOCSIZE = _mapscript.MS_SYMBOL_ALLOCSIZE

_mapscript.MS_MAXVECTORPOINTS_swigconstant(_mapscript)
MS_MAXVECTORPOINTS = _mapscript.MS_MAXVECTORPOINTS

_mapscript.MS_MAXPATTERNLENGTH_swigconstant(_mapscript)
MS_MAXPATTERNLENGTH = _mapscript.MS_MAXPATTERNLENGTH

_mapscript.MS_IMAGECACHESIZE_swigconstant(_mapscript)
MS_IMAGECACHESIZE = _mapscript.MS_IMAGECACHESIZE
class colorObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, colorObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, colorObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["red"] = _mapscript.colorObj_red_set
    __swig_getmethods__["red"] = _mapscript.colorObj_red_get
    if _newclass:
        red = _swig_property(_mapscript.colorObj_red_get, _mapscript.colorObj_red_set)
    __swig_setmethods__["green"] = _mapscript.colorObj_green_set
    __swig_getmethods__["green"] = _mapscript.colorObj_green_get
    if _newclass:
        green = _swig_property(_mapscript.colorObj_green_get, _mapscript.colorObj_green_set)
    __swig_setmethods__["blue"] = _mapscript.colorObj_blue_set
    __swig_getmethods__["blue"] = _mapscript.colorObj_blue_get
    if _newclass:
        blue = _swig_property(_mapscript.colorObj_blue_get, _mapscript.colorObj_blue_set)
    __swig_setmethods__["alpha"] = _mapscript.colorObj_alpha_set
    __swig_getmethods__["alpha"] = _mapscript.colorObj_alpha_get
    if _newclass:
        alpha = _swig_property(_mapscript.colorObj_alpha_get, _mapscript.colorObj_alpha_set)

    def __init__(self, red=0, green=0, blue=0, alpha=255):
        this = _mapscript.new_colorObj(red, green, blue, alpha)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_colorObj
    __del__ = lambda self: None

    def setRGB(self, red, green, blue, alpha=255):
        return _mapscript.colorObj_setRGB(self, red, green, blue, alpha)

    def setHex(self, psHexColor):
        return _mapscript.colorObj_setHex(self, psHexColor)

    def toHex(self):
        return _mapscript.colorObj_toHex(self)
colorObj_swigregister = _mapscript.colorObj_swigregister
colorObj_swigregister(colorObj)

class symbolObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, symbolObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, symbolObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["name"] = _mapscript.symbolObj_name_set
    __swig_getmethods__["name"] = _mapscript.symbolObj_name_get
    if _newclass:
        name = _swig_property(_mapscript.symbolObj_name_get, _mapscript.symbolObj_name_set)
    __swig_setmethods__["type"] = _mapscript.symbolObj_type_set
    __swig_getmethods__["type"] = _mapscript.symbolObj_type_get
    if _newclass:
        type = _swig_property(_mapscript.symbolObj_type_get, _mapscript.symbolObj_type_set)
    __swig_setmethods__["inmapfile"] = _mapscript.symbolObj_inmapfile_set
    __swig_getmethods__["inmapfile"] = _mapscript.symbolObj_inmapfile_get
    if _newclass:
        inmapfile = _swig_property(_mapscript.symbolObj_inmapfile_get, _mapscript.symbolObj_inmapfile_set)
    __swig_setmethods__["sizex"] = _mapscript.symbolObj_sizex_set
    __swig_getmethods__["sizex"] = _mapscript.symbolObj_sizex_get
    if _newclass:
        sizex = _swig_property(_mapscript.symbolObj_sizex_get, _mapscript.symbolObj_sizex_set)
    __swig_setmethods__["sizey"] = _mapscript.symbolObj_sizey_set
    __swig_getmethods__["sizey"] = _mapscript.symbolObj_sizey_get
    if _newclass:
        sizey = _swig_property(_mapscript.symbolObj_sizey_get, _mapscript.symbolObj_sizey_set)
    __swig_setmethods__["minx"] = _mapscript.symbolObj_minx_set
    __swig_getmethods__["minx"] = _mapscript.symbolObj_minx_get
    if _newclass:
        minx = _swig_property(_mapscript.symbolObj_minx_get, _mapscript.symbolObj_minx_set)
    __swig_setmethods__["miny"] = _mapscript.symbolObj_miny_set
    __swig_getmethods__["miny"] = _mapscript.symbolObj_miny_get
    if _newclass:
        miny = _swig_property(_mapscript.symbolObj_miny_get, _mapscript.symbolObj_miny_set)
    __swig_setmethods__["maxx"] = _mapscript.symbolObj_maxx_set
    __swig_getmethods__["maxx"] = _mapscript.symbolObj_maxx_get
    if _newclass:
        maxx = _swig_property(_mapscript.symbolObj_maxx_get, _mapscript.symbolObj_maxx_set)
    __swig_setmethods__["maxy"] = _mapscript.symbolObj_maxy_set
    __swig_getmethods__["maxy"] = _mapscript.symbolObj_maxy_get
    if _newclass:
        maxy = _swig_property(_mapscript.symbolObj_maxy_get, _mapscript.symbolObj_maxy_set)
    __swig_getmethods__["refcount"] = _mapscript.symbolObj_refcount_get
    if _newclass:
        refcount = _swig_property(_mapscript.symbolObj_refcount_get)
    __swig_getmethods__["numpoints"] = _mapscript.symbolObj_numpoints_get
    if _newclass:
        numpoints = _swig_property(_mapscript.symbolObj_numpoints_get)
    __swig_setmethods__["filled"] = _mapscript.symbolObj_filled_set
    __swig_getmethods__["filled"] = _mapscript.symbolObj_filled_get
    if _newclass:
        filled = _swig_property(_mapscript.symbolObj_filled_get, _mapscript.symbolObj_filled_set)
    __swig_setmethods__["anchorpoint_x"] = _mapscript.symbolObj_anchorpoint_x_set
    __swig_getmethods__["anchorpoint_x"] = _mapscript.symbolObj_anchorpoint_x_get
    if _newclass:
        anchorpoint_x = _swig_property(_mapscript.symbolObj_anchorpoint_x_get, _mapscript.symbolObj_anchorpoint_x_set)
    __swig_setmethods__["anchorpoint_y"] = _mapscript.symbolObj_anchorpoint_y_set
    __swig_getmethods__["anchorpoint_y"] = _mapscript.symbolObj_anchorpoint_y_get
    if _newclass:
        anchorpoint_y = _swig_property(_mapscript.symbolObj_anchorpoint_y_get, _mapscript.symbolObj_anchorpoint_y_set)
    __swig_getmethods__["imagepath"] = _mapscript.symbolObj_imagepath_get
    if _newclass:
        imagepath = _swig_property(_mapscript.symbolObj_imagepath_get)
    __swig_setmethods__["transparent"] = _mapscript.symbolObj_transparent_set
    __swig_getmethods__["transparent"] = _mapscript.symbolObj_transparent_get
    if _newclass:
        transparent = _swig_property(_mapscript.symbolObj_transparent_get, _mapscript.symbolObj_transparent_set)
    __swig_setmethods__["transparentcolor"] = _mapscript.symbolObj_transparentcolor_set
    __swig_getmethods__["transparentcolor"] = _mapscript.symbolObj_transparentcolor_get
    if _newclass:
        transparentcolor = _swig_property(_mapscript.symbolObj_transparentcolor_get, _mapscript.symbolObj_transparentcolor_set)
    __swig_setmethods__["character"] = _mapscript.symbolObj_character_set
    __swig_getmethods__["character"] = _mapscript.symbolObj_character_get
    if _newclass:
        character = _swig_property(_mapscript.symbolObj_character_get, _mapscript.symbolObj_character_set)
    __swig_setmethods__["font"] = _mapscript.symbolObj_font_set
    __swig_getmethods__["font"] = _mapscript.symbolObj_font_get
    if _newclass:
        font = _swig_property(_mapscript.symbolObj_font_get, _mapscript.symbolObj_font_set)

    def __init__(self, symbolname, imagefile=None):
        this = _mapscript.new_symbolObj(symbolname, imagefile)
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_symbolObj
    __del__ = lambda self: None

    def setImagepath(self, imagefile):
        return _mapscript.symbolObj_setImagepath(self, imagefile)

    def setPoints(self, line):
        return _mapscript.symbolObj_setPoints(self, line)

    def getPoints(self):
        return _mapscript.symbolObj_getPoints(self)

    def getImage(self, input_format):
        return _mapscript.symbolObj_getImage(self, input_format)

    def setImage(self, image):
        return _mapscript.symbolObj_setImage(self, image)
symbolObj_swigregister = _mapscript.symbolObj_swigregister
symbolObj_swigregister(symbolObj)


_mapscript.MS_NOERR_swigconstant(_mapscript)
MS_NOERR = _mapscript.MS_NOERR

_mapscript.MS_IOERR_swigconstant(_mapscript)
MS_IOERR = _mapscript.MS_IOERR

_mapscript.MS_MEMERR_swigconstant(_mapscript)
MS_MEMERR = _mapscript.MS_MEMERR

_mapscript.MS_TYPEERR_swigconstant(_mapscript)
MS_TYPEERR = _mapscript.MS_TYPEERR

_mapscript.MS_SYMERR_swigconstant(_mapscript)
MS_SYMERR = _mapscript.MS_SYMERR

_mapscript.MS_REGEXERR_swigconstant(_mapscript)
MS_REGEXERR = _mapscript.MS_REGEXERR

_mapscript.MS_TTFERR_swigconstant(_mapscript)
MS_TTFERR = _mapscript.MS_TTFERR

_mapscript.MS_DBFERR_swigconstant(_mapscript)
MS_DBFERR = _mapscript.MS_DBFERR

_mapscript.MS_IDENTERR_swigconstant(_mapscript)
MS_IDENTERR = _mapscript.MS_IDENTERR

_mapscript.MS_EOFERR_swigconstant(_mapscript)
MS_EOFERR = _mapscript.MS_EOFERR

_mapscript.MS_PROJERR_swigconstant(_mapscript)
MS_PROJERR = _mapscript.MS_PROJERR

_mapscript.MS_MISCERR_swigconstant(_mapscript)
MS_MISCERR = _mapscript.MS_MISCERR

_mapscript.MS_CGIERR_swigconstant(_mapscript)
MS_CGIERR = _mapscript.MS_CGIERR

_mapscript.MS_WEBERR_swigconstant(_mapscript)
MS_WEBERR = _mapscript.MS_WEBERR

_mapscript.MS_IMGERR_swigconstant(_mapscript)
MS_IMGERR = _mapscript.MS_IMGERR

_mapscript.MS_HASHERR_swigconstant(_mapscript)
MS_HASHERR = _mapscript.MS_HASHERR

_mapscript.MS_JOINERR_swigconstant(_mapscript)
MS_JOINERR = _mapscript.MS_JOINERR

_mapscript.MS_NOTFOUND_swigconstant(_mapscript)
MS_NOTFOUND = _mapscript.MS_NOTFOUND

_mapscript.MS_SHPERR_swigconstant(_mapscript)
MS_SHPERR = _mapscript.MS_SHPERR

_mapscript.MS_PARSEERR_swigconstant(_mapscript)
MS_PARSEERR = _mapscript.MS_PARSEERR

_mapscript.MS_UNUSEDERR_swigconstant(_mapscript)
MS_UNUSEDERR = _mapscript.MS_UNUSEDERR

_mapscript.MS_OGRERR_swigconstant(_mapscript)
MS_OGRERR = _mapscript.MS_OGRERR

_mapscript.MS_QUERYERR_swigconstant(_mapscript)
MS_QUERYERR = _mapscript.MS_QUERYERR

_mapscript.MS_WMSERR_swigconstant(_mapscript)
MS_WMSERR = _mapscript.MS_WMSERR

_mapscript.MS_WMSCONNERR_swigconstant(_mapscript)
MS_WMSCONNERR = _mapscript.MS_WMSCONNERR

_mapscript.MS_ORACLESPATIALERR_swigconstant(_mapscript)
MS_ORACLESPATIALERR = _mapscript.MS_ORACLESPATIALERR

_mapscript.MS_WFSERR_swigconstant(_mapscript)
MS_WFSERR = _mapscript.MS_WFSERR

_mapscript.MS_WFSCONNERR_swigconstant(_mapscript)
MS_WFSCONNERR = _mapscript.MS_WFSCONNERR

_mapscript.MS_MAPCONTEXTERR_swigconstant(_mapscript)
MS_MAPCONTEXTERR = _mapscript.MS_MAPCONTEXTERR

_mapscript.MS_HTTPERR_swigconstant(_mapscript)
MS_HTTPERR = _mapscript.MS_HTTPERR

_mapscript.MS_CHILDERR_swigconstant(_mapscript)
MS_CHILDERR = _mapscript.MS_CHILDERR

_mapscript.MS_WCSERR_swigconstant(_mapscript)
MS_WCSERR = _mapscript.MS_WCSERR

_mapscript.MS_GEOSERR_swigconstant(_mapscript)
MS_GEOSERR = _mapscript.MS_GEOSERR

_mapscript.MS_RECTERR_swigconstant(_mapscript)
MS_RECTERR = _mapscript.MS_RECTERR

_mapscript.MS_TIMEERR_swigconstant(_mapscript)
MS_TIMEERR = _mapscript.MS_TIMEERR

_mapscript.MS_GMLERR_swigconstant(_mapscript)
MS_GMLERR = _mapscript.MS_GMLERR

_mapscript.MS_SOSERR_swigconstant(_mapscript)
MS_SOSERR = _mapscript.MS_SOSERR

_mapscript.MS_NULLPARENTERR_swigconstant(_mapscript)
MS_NULLPARENTERR = _mapscript.MS_NULLPARENTERR

_mapscript.MS_AGGERR_swigconstant(_mapscript)
MS_AGGERR = _mapscript.MS_AGGERR

_mapscript.MS_OWSERR_swigconstant(_mapscript)
MS_OWSERR = _mapscript.MS_OWSERR

_mapscript.MS_OGLERR_swigconstant(_mapscript)
MS_OGLERR = _mapscript.MS_OGLERR

_mapscript.MS_RENDERERERR_swigconstant(_mapscript)
MS_RENDERERERR = _mapscript.MS_RENDERERERR

_mapscript.MS_V8ERR_swigconstant(_mapscript)
MS_V8ERR = _mapscript.MS_V8ERR

_mapscript.MS_NUMERRORCODES_swigconstant(_mapscript)
MS_NUMERRORCODES = _mapscript.MS_NUMERRORCODES

_mapscript.MESSAGELENGTH_swigconstant(_mapscript)
MESSAGELENGTH = _mapscript.MESSAGELENGTH

_mapscript.ROUTINELENGTH_swigconstant(_mapscript)
ROUTINELENGTH = _mapscript.ROUTINELENGTH

_mapscript.MS_ERROR_LANGUAGE_swigconstant(_mapscript)
MS_ERROR_LANGUAGE = _mapscript.MS_ERROR_LANGUAGE
class errorObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, errorObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, errorObj, name)
    __repr__ = _swig_repr
    __swig_setmethods__["code"] = _mapscript.errorObj_code_set
    __swig_getmethods__["code"] = _mapscript.errorObj_code_get
    if _newclass:
        code = _swig_property(_mapscript.errorObj_code_get, _mapscript.errorObj_code_set)
    __swig_setmethods__["routine"] = _mapscript.errorObj_routine_set
    __swig_getmethods__["routine"] = _mapscript.errorObj_routine_get
    if _newclass:
        routine = _swig_property(_mapscript.errorObj_routine_get, _mapscript.errorObj_routine_set)
    __swig_setmethods__["message"] = _mapscript.errorObj_message_set
    __swig_getmethods__["message"] = _mapscript.errorObj_message_get
    if _newclass:
        message = _swig_property(_mapscript.errorObj_message_get, _mapscript.errorObj_message_set)
    __swig_setmethods__["isreported"] = _mapscript.errorObj_isreported_set
    __swig_getmethods__["isreported"] = _mapscript.errorObj_isreported_get
    if _newclass:
        isreported = _swig_property(_mapscript.errorObj_isreported_get, _mapscript.errorObj_isreported_set)
    __swig_setmethods__["errorcount"] = _mapscript.errorObj_errorcount_set
    __swig_getmethods__["errorcount"] = _mapscript.errorObj_errorcount_get
    if _newclass:
        errorcount = _swig_property(_mapscript.errorObj_errorcount_get, _mapscript.errorObj_errorcount_set)

    def __init__(self):
        this = _mapscript.new_errorObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_errorObj
    __del__ = lambda self: None

    def next(self):
        return _mapscript.errorObj_next(self)
errorObj_swigregister = _mapscript.errorObj_swigregister
errorObj_swigregister(errorObj)


def msGetErrorObj():
    return _mapscript.msGetErrorObj()
msGetErrorObj = _mapscript.msGetErrorObj

def msResetErrorList():
    return _mapscript.msResetErrorList()
msResetErrorList = _mapscript.msResetErrorList

def msGetVersion():
    return _mapscript.msGetVersion()
msGetVersion = _mapscript.msGetVersion

def msGetVersionInt():
    return _mapscript.msGetVersionInt()
msGetVersionInt = _mapscript.msGetVersionInt

def msGetErrorString(delimiter):
    return _mapscript.msGetErrorString(delimiter)
msGetErrorString = _mapscript.msGetErrorString

_mapscript.MS_DEBUGLEVEL_ERRORSONLY_swigconstant(_mapscript)
MS_DEBUGLEVEL_ERRORSONLY = _mapscript.MS_DEBUGLEVEL_ERRORSONLY

_mapscript.MS_DEBUGLEVEL_DEBUG_swigconstant(_mapscript)
MS_DEBUGLEVEL_DEBUG = _mapscript.MS_DEBUGLEVEL_DEBUG

_mapscript.MS_DEBUGLEVEL_TUNING_swigconstant(_mapscript)
MS_DEBUGLEVEL_TUNING = _mapscript.MS_DEBUGLEVEL_TUNING

_mapscript.MS_DEBUGLEVEL_V_swigconstant(_mapscript)
MS_DEBUGLEVEL_V = _mapscript.MS_DEBUGLEVEL_V

_mapscript.MS_DEBUGLEVEL_VV_swigconstant(_mapscript)
MS_DEBUGLEVEL_VV = _mapscript.MS_DEBUGLEVEL_VV

_mapscript.MS_DEBUGLEVEL_VVV_swigconstant(_mapscript)
MS_DEBUGLEVEL_VVV = _mapscript.MS_DEBUGLEVEL_VVV

_mapscript.MS_DEBUGLEVEL_DEVDEBUG_swigconstant(_mapscript)
MS_DEBUGLEVEL_DEVDEBUG = _mapscript.MS_DEBUGLEVEL_DEVDEBUG

_mapscript.MS_HASHSIZE_swigconstant(_mapscript)
MS_HASHSIZE = _mapscript.MS_HASHSIZE
class hashTableObj(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, hashTableObj, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, hashTableObj, name)
    __repr__ = _swig_repr
    __swig_getmethods__["numitems"] = _mapscript.hashTableObj_numitems_get
    if _newclass:
        numitems = _swig_property(_mapscript.hashTableObj_numitems_get)

    def __init__(self):
        this = _mapscript.new_hashTableObj()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_hashTableObj
    __del__ = lambda self: None

    def set(self, key, value):
        return _mapscript.hashTableObj_set(self, key, value)

    def get(self, key, default_value=None):
        return _mapscript.hashTableObj_get(self, key, default_value)

    def remove(self, key):
        return _mapscript.hashTableObj_remove(self, key)

    def clear(self):
        return _mapscript.hashTableObj_clear(self)

    def nextKey(self, prevkey=None):
        return _mapscript.hashTableObj_nextKey(self, prevkey)
hashTableObj_swigregister = _mapscript.hashTableObj_swigregister
hashTableObj_swigregister(hashTableObj)


_mapscript.MS_DEFAULT_CGI_PARAMS_swigconstant(_mapscript)
MS_DEFAULT_CGI_PARAMS = _mapscript.MS_DEFAULT_CGI_PARAMS

_mapscript.MS_GET_REQUEST_swigconstant(_mapscript)
MS_GET_REQUEST = _mapscript.MS_GET_REQUEST

_mapscript.MS_POST_REQUEST_swigconstant(_mapscript)
MS_POST_REQUEST = _mapscript.MS_POST_REQUEST
class OWSRequest(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OWSRequest, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OWSRequest, name)
    __repr__ = _swig_repr
    __swig_getmethods__["NumParams"] = _mapscript.OWSRequest_NumParams_get
    if _newclass:
        NumParams = _swig_property(_mapscript.OWSRequest_NumParams_get)
    __swig_setmethods__["type"] = _mapscript.OWSRequest_type_set
    __swig_getmethods__["type"] = _mapscript.OWSRequest_type_get
    if _newclass:
        type = _swig_property(_mapscript.OWSRequest_type_get, _mapscript.OWSRequest_type_set)
    __swig_setmethods__["contenttype"] = _mapscript.OWSRequest_contenttype_set
    __swig_getmethods__["contenttype"] = _mapscript.OWSRequest_contenttype_get
    if _newclass:
        contenttype = _swig_property(_mapscript.OWSRequest_contenttype_get, _mapscript.OWSRequest_contenttype_set)
    __swig_setmethods__["postrequest"] = _mapscript.OWSRequest_postrequest_set
    __swig_getmethods__["postrequest"] = _mapscript.OWSRequest_postrequest_get
    if _newclass:
        postrequest = _swig_property(_mapscript.OWSRequest_postrequest_get, _mapscript.OWSRequest_postrequest_set)
    __swig_setmethods__["httpcookiedata"] = _mapscript.OWSRequest_httpcookiedata_set
    __swig_getmethods__["httpcookiedata"] = _mapscript.OWSRequest_httpcookiedata_get
    if _newclass:
        httpcookiedata = _swig_property(_mapscript.OWSRequest_httpcookiedata_get, _mapscript.OWSRequest_httpcookiedata_set)

    def __init__(self):
        this = _mapscript.new_OWSRequest()
        try:
            self.this.append(this)
        except Exception:
            self.this = this
    __swig_destroy__ = _mapscript.delete_OWSRequest
    __del__ = lambda self: None

    def loadParams(self):
        return _mapscript.OWSRequest_loadParams(self)

    def loadParamsFromURL(self, url):
        return _mapscript.OWSRequest_loadParamsFromURL(self, url)

    def setParameter(self, name, value):
        return _mapscript.OWSRequest_setParameter(self, name, value)

    def addParameter(self, name, value):
        return _mapscript.OWSRequest_addParameter(self, name, value)

    def getName(self, index):
        return _mapscript.OWSRequest_getName(self, index)

    def getValue(self, index):
        return _mapscript.OWSRequest_getValue(self, index)

    def getValueByName(self, name):
        return _mapscript.OWSRequest_getValueByName(self, name)
OWSRequest_swigregister = _mapscript.OWSRequest_swigregister
OWSRequest_swigregister(OWSRequest)


def msConnPoolCloseUnreferenced():
    return _mapscript.msConnPoolCloseUnreferenced()
msConnPoolCloseUnreferenced = _mapscript.msConnPoolCloseUnreferenced

def msIO_resetHandlers():
    return _mapscript.msIO_resetHandlers()
msIO_resetHandlers = _mapscript.msIO_resetHandlers

def msIO_installStdoutToBuffer():
    return _mapscript.msIO_installStdoutToBuffer()
msIO_installStdoutToBuffer = _mapscript.msIO_installStdoutToBuffer

def msIO_installStdinFromBuffer():
    return _mapscript.msIO_installStdinFromBuffer()
msIO_installStdinFromBuffer = _mapscript.msIO_installStdinFromBuffer

def msIO_stripStdoutBufferContentType():
    return _mapscript.msIO_stripStdoutBufferContentType()
msIO_stripStdoutBufferContentType = _mapscript.msIO_stripStdoutBufferContentType

def msIO_stripStdoutBufferContentHeaders():
    return _mapscript.msIO_stripStdoutBufferContentHeaders()
msIO_stripStdoutBufferContentHeaders = _mapscript.msIO_stripStdoutBufferContentHeaders

def msIO_getStdoutBufferString():
    return _mapscript.msIO_getStdoutBufferString()
msIO_getStdoutBufferString = _mapscript.msIO_getStdoutBufferString

def msIO_getStdoutBufferBytes():
    return _mapscript.msIO_getStdoutBufferBytes()
msIO_getStdoutBufferBytes = _mapscript.msIO_getStdoutBufferBytes

def fromstring(data, mappath=None):
    """Creates map objects from mapfile strings.

    Parameters
    ==========
    data : string
        Mapfile in a string.
    mappath : string
        Optional root map path, enabling relative paths in mapfile.

    Example
    =======
    >>> mo = fromstring("MAP\nNAME 'test'\nEND")
    >>> mo.name
    'test'
    """
    import re
    if re.search("^\s*MAP", data, re.I): 
        return msLoadMapFromString(data, mappath)
    elif re.search("^\s*LAYER", data, re.I):
        ob = layerObj()
        ob.updateFromString(data)
        return ob
    elif re.search("^\s*CLASS", data, re.I):
        ob = classObj()
        ob.updateFromString(data)
        return ob
    elif re.search("^\s*STYLE", data, re.I):
        ob = styleObj()
        ob.updateFromString(data)
        return ob
    else:
        raise ValueError, "No map, layer, class, or style found. Can not load from provided string"

# This file is compatible with both classic and new-style classes.