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
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.36
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class mapObj : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
protected object swigParentRef;
protected static object ThisOwn_true() { return null; }
protected object ThisOwn_false() { return this; }
internal mapObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
swigCMemOwn = cMemoryOwn;
swigParentRef = parent;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(mapObj obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
internal static HandleRef getCPtrAndDisown(mapObj obj, object parent) {
if (obj != null)
{
obj.swigCMemOwn = false;
obj.swigParentRef = parent;
return obj.swigCPtr;
}
else
{
return new HandleRef(null, IntPtr.Zero);
}
}
internal static HandleRef getCPtrAndSetReference(mapObj obj, object parent) {
if (obj != null)
{
obj.swigParentRef = parent;
return obj.swigCPtr;
}
else
{
return new HandleRef(null, IntPtr.Zero);
}
}
~mapObj() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
swigCMemOwn = false;
mapscriptPINVOKE.delete_mapObj(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
swigParentRef = null;
GC.SuppressFinalize(this);
}
}
public string processTemplate(int bGenerateImages, string[] names, string[] values)
{
if (names.Length != values.Length)
throw new ArgumentException("Invalid array length specified!");
return processTemplate(bGenerateImages, names, values, values.Length);
}
public string processLegendTemplate(string[] names, string[] values)
{
if (names.Length != values.Length)
throw new ArgumentException("Invalid array length specified!");
return processLegendTemplate(names, values, values.Length);
}
public string processQueryTemplate(string[] names, string[] values)
{
if (names.Length != values.Length)
throw new ArgumentException("Invalid array length specified!");
return processQueryTemplate(names, values, values.Length);
}
public string name {
set {
mapscriptPINVOKE.mapObj_name_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.mapObj_name_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int status {
set {
mapscriptPINVOKE.mapObj_status_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_status_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int height {
set {
mapscriptPINVOKE.mapObj_height_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_height_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int width {
set {
mapscriptPINVOKE.mapObj_width_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_width_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int maxsize {
set {
mapscriptPINVOKE.mapObj_maxsize_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_maxsize_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int refcount {
get {
int ret = mapscriptPINVOKE.mapObj_refcount_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int numlayers {
get {
int ret = mapscriptPINVOKE.mapObj_numlayers_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int maxlayers {
get {
int ret = mapscriptPINVOKE.mapObj_maxlayers_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public symbolSetObj symbolset {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_symbolset_get(swigCPtr);
symbolSetObj ret = (cPtr == IntPtr.Zero) ? null : new symbolSetObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public fontSetObj fontset {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_fontset_get(swigCPtr);
fontSetObj ret = (cPtr == IntPtr.Zero) ? null : new fontSetObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public labelCacheObj labelcache {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_labelcache_get(swigCPtr);
labelCacheObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int transparent {
set {
mapscriptPINVOKE.mapObj_transparent_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_transparent_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int interlace {
set {
mapscriptPINVOKE.mapObj_interlace_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_interlace_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int imagequality {
set {
mapscriptPINVOKE.mapObj_imagequality_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_imagequality_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public rectObj extent {
set {
mapscriptPINVOKE.mapObj_extent_set(swigCPtr, rectObj.getCPtr(value));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_extent_get(swigCPtr);
rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public double cellsize {
set {
mapscriptPINVOKE.mapObj_cellsize_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
double ret = mapscriptPINVOKE.mapObj_cellsize_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public MS_UNITS units {
set {
mapscriptPINVOKE.mapObj_units_set(swigCPtr, (int)value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
MS_UNITS ret = (MS_UNITS)mapscriptPINVOKE.mapObj_units_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public double scaledenom {
set {
mapscriptPINVOKE.mapObj_scaledenom_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
double ret = mapscriptPINVOKE.mapObj_scaledenom_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public double resolution {
set {
mapscriptPINVOKE.mapObj_resolution_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
double ret = mapscriptPINVOKE.mapObj_resolution_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public double defresolution {
set {
mapscriptPINVOKE.mapObj_defresolution_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
double ret = mapscriptPINVOKE.mapObj_defresolution_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public string shapepath {
set {
mapscriptPINVOKE.mapObj_shapepath_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.mapObj_shapepath_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public string mappath {
set {
mapscriptPINVOKE.mapObj_mappath_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.mapObj_mappath_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public colorObj imagecolor {
set {
mapscriptPINVOKE.mapObj_imagecolor_set(swigCPtr, colorObj.getCPtr(value));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_imagecolor_get(swigCPtr);
colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int numoutputformats {
get {
int ret = mapscriptPINVOKE.mapObj_numoutputformats_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public outputFormatObj[] outputformatlist {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_outputformatlist_get(swigCPtr);
IntPtr objPtr;
outputFormatObj[] ret = new outputFormatObj[this.numoutputformats];
for(int cx = 0; cx < this.numoutputformats; cx++) {
objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
ret[cx] = (objPtr == IntPtr.Zero) ? null : new outputFormatObj(objPtr, false, ThisOwn_false());
}
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public outputFormatObj outputformat {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_outputformat_get(swigCPtr);
outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public string imagetype {
get {
string ret = mapscriptPINVOKE.mapObj_imagetype_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public referenceMapObj reference {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_reference_get(swigCPtr);
referenceMapObj ret = (cPtr == IntPtr.Zero) ? null : new referenceMapObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public scalebarObj scalebar {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_scalebar_get(swigCPtr);
scalebarObj ret = (cPtr == IntPtr.Zero) ? null : new scalebarObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public legendObj legend {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_legend_get(swigCPtr);
legendObj ret = (cPtr == IntPtr.Zero) ? null : new legendObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public queryMapObj querymap {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_querymap_get(swigCPtr);
queryMapObj ret = (cPtr == IntPtr.Zero) ? null : new queryMapObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public webObj web {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_web_get(swigCPtr);
webObj ret = (cPtr == IntPtr.Zero) ? null : new webObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public SWIGTYPE_p_int layerorder {
set {
mapscriptPINVOKE.mapObj_layerorder_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_layerorder_get(swigCPtr);
SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int debug {
set {
mapscriptPINVOKE.mapObj_debug_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.mapObj_debug_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public string datapattern {
set {
mapscriptPINVOKE.mapObj_datapattern_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.mapObj_datapattern_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public string templatepattern {
set {
mapscriptPINVOKE.mapObj_templatepattern_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.mapObj_templatepattern_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public hashTableObj configoptions {
get {
IntPtr cPtr = mapscriptPINVOKE.mapObj_configoptions_get(swigCPtr);
hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public mapObj(string filename) : this(mapscriptPINVOKE.new_mapObj(filename), true, null) {
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public mapObj clone() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_clone(swigCPtr);
mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int insertLayer(layerObj layer, int index) {
int ret = mapscriptPINVOKE.mapObj_insertLayer(swigCPtr, layerObj.getCPtrAndSetReference(layer, ThisOwn_false()), index);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public layerObj removeLayer(int index) {
IntPtr cPtr = mapscriptPINVOKE.mapObj_removeLayer(swigCPtr, index);
layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setExtent(double minx, double miny, double maxx, double maxy) {
int ret = mapscriptPINVOKE.mapObj_setExtent(swigCPtr, minx, miny, maxx, maxy);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int offsetExtent(double x, double y) {
int ret = mapscriptPINVOKE.mapObj_offsetExtent(swigCPtr, x, y);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int scaleExtent(double zoomfactor, double minscaledenom, double maxscaledenom) {
int ret = mapscriptPINVOKE.mapObj_scaleExtent(swigCPtr, zoomfactor, minscaledenom, maxscaledenom);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setCenter(pointObj center) {
int ret = mapscriptPINVOKE.mapObj_setCenter(swigCPtr, pointObj.getCPtr(center));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setSize(int width, int height) {
int ret = mapscriptPINVOKE.mapObj_setSize(swigCPtr, width, height);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setRotation(double rotation_angle) {
int ret = mapscriptPINVOKE.mapObj_setRotation(swigCPtr, rotation_angle);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public layerObj getLayer(int i) {
IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayer(swigCPtr, i);
layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public layerObj getLayerByName(string name) {
IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayerByName(swigCPtr, name);
layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int getSymbolByName(string name) {
int ret = mapscriptPINVOKE.mapObj_getSymbolByName(swigCPtr, name);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void prepareQuery() {
mapscriptPINVOKE.mapObj_prepareQuery(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public imageObj prepareImage() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_prepareImage(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void setImageType(string imagetype) {
mapscriptPINVOKE.mapObj_setImageType(swigCPtr, imagetype);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public void selectOutputFormat(string imagetype) {
mapscriptPINVOKE.mapObj_selectOutputFormat(swigCPtr, imagetype);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public void setOutputFormat(outputFormatObj format) {
mapscriptPINVOKE.mapObj_setOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public imageObj draw() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_draw(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public imageObj drawQuery() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_drawQuery(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public imageObj drawLegend() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_drawLegend(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public imageObj drawScalebar() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_drawScalebar(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public imageObj drawReferenceMap() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_drawReferenceMap(swigCPtr);
imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int embedScalebar(imageObj image) {
int ret = mapscriptPINVOKE.mapObj_embedScalebar(swigCPtr, imageObj.getCPtr(image));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int embedLegend(imageObj image) {
int ret = mapscriptPINVOKE.mapObj_embedLegend(swigCPtr, imageObj.getCPtr(image));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int drawLabelCache(imageObj image) {
int ret = mapscriptPINVOKE.mapObj_drawLabelCache(swigCPtr, imageObj.getCPtr(image));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public labelCacheMemberObj getLabel(int i) {
IntPtr cPtr = mapscriptPINVOKE.mapObj_getLabel(swigCPtr, i);
labelCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheMemberObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public labelCacheMemberObj nextLabel() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_nextLabel(swigCPtr);
labelCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheMemberObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int queryByFilter(string arg0) {
int ret = mapscriptPINVOKE.mapObj_queryByFilter(swigCPtr, arg0);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int queryByPoint(pointObj point, int mode, double buffer) {
int ret = mapscriptPINVOKE.mapObj_queryByPoint(swigCPtr, pointObj.getCPtr(point), mode, buffer);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int queryByRect(rectObj rect) {
int ret = mapscriptPINVOKE.mapObj_queryByRect(swigCPtr, rectObj.getCPtr(rect));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int queryByFeatures(int slayer) {
int ret = mapscriptPINVOKE.mapObj_queryByFeatures(swigCPtr, slayer);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int queryByShape(shapeObj shape) {
int ret = mapscriptPINVOKE.mapObj_queryByShape(swigCPtr, shapeObj.getCPtr(shape));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setWKTProjection(string wkt) {
int ret = mapscriptPINVOKE.mapObj_setWKTProjection(swigCPtr, wkt);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public string getProjection() {
string ret = mapscriptPINVOKE.mapObj_getProjection(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setProjection(string proj4) {
int ret = mapscriptPINVOKE.mapObj_setProjection(swigCPtr, proj4);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int save(string filename) {
int ret = mapscriptPINVOKE.mapObj_save(swigCPtr, filename);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int saveQuery(string filename, int results) {
int ret = mapscriptPINVOKE.mapObj_saveQuery(swigCPtr, filename, results);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int loadQuery(string filename) {
int ret = mapscriptPINVOKE.mapObj_loadQuery(swigCPtr, filename);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void freeQuery(int qlayer) {
mapscriptPINVOKE.mapObj_freeQuery(swigCPtr, qlayer);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public int saveQueryAsGML(string filename, string ns) {
int ret = mapscriptPINVOKE.mapObj_saveQueryAsGML(swigCPtr, filename, ns);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public string getMetaData(string name) {
string ret = mapscriptPINVOKE.mapObj_getMetaData(swigCPtr, name);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setMetaData(string name, string value) {
int ret = mapscriptPINVOKE.mapObj_setMetaData(swigCPtr, name, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int removeMetaData(string name) {
int ret = mapscriptPINVOKE.mapObj_removeMetaData(swigCPtr, name);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public string getFirstMetaDataKey() {
string ret = mapscriptPINVOKE.mapObj_getFirstMetaDataKey(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public string getNextMetaDataKey(string lastkey) {
string ret = mapscriptPINVOKE.mapObj_getNextMetaDataKey(swigCPtr, lastkey);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setSymbolSet(string szFileName) {
int ret = mapscriptPINVOKE.mapObj_setSymbolSet(swigCPtr, szFileName);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int getNumSymbols() {
int ret = mapscriptPINVOKE.mapObj_getNumSymbols(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setFontSet(string filename) {
int ret = mapscriptPINVOKE.mapObj_setFontSet(swigCPtr, filename);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int saveMapContext(string szFileName) {
int ret = mapscriptPINVOKE.mapObj_saveMapContext(swigCPtr, szFileName);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int loadMapContext(string szFileName, int useUniqueNames) {
int ret = mapscriptPINVOKE.mapObj_loadMapContext(swigCPtr, szFileName, useUniqueNames);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int moveLayerUp(int layerindex) {
int ret = mapscriptPINVOKE.mapObj_moveLayerUp(swigCPtr, layerindex);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int moveLayerDown(int layerindex) {
int ret = mapscriptPINVOKE.mapObj_moveLayerDown(swigCPtr, layerindex);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public intarray getLayersDrawingOrder() {
IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayersDrawingOrder(swigCPtr);
intarray ret = (cPtr == IntPtr.Zero) ? null : new intarray(cPtr, true, ThisOwn_true());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int setLayersDrawingOrder(SWIGTYPE_p_int panIndexes) {
int ret = mapscriptPINVOKE.mapObj_setLayersDrawingOrder(swigCPtr, SWIGTYPE_p_int.getCPtr(panIndexes));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void setConfigOption(string key, string value) {
mapscriptPINVOKE.mapObj_setConfigOption(swigCPtr, key, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public string getConfigOption(string key) {
string ret = mapscriptPINVOKE.mapObj_getConfigOption(swigCPtr, key);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void applyConfigOptions() {
mapscriptPINVOKE.mapObj_applyConfigOptions(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public int applySLD(string sld) {
int ret = mapscriptPINVOKE.mapObj_applySLD(swigCPtr, sld);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int applySLDURL(string sld) {
int ret = mapscriptPINVOKE.mapObj_applySLDURL(swigCPtr, sld);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public string generateSLD() {
string ret = mapscriptPINVOKE.mapObj_generateSLD(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private string processTemplate(int bGenerateImages, string[] names, string[] values, int numentries) {
string ret = mapscriptPINVOKE.mapObj_processTemplate(swigCPtr, bGenerateImages, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private string processLegendTemplate(string[] names, string[] values, int numentries) {
string ret = mapscriptPINVOKE.mapObj_processLegendTemplate(swigCPtr, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
private string processQueryTemplate(string[] names, string[] values, int numentries) {
string ret = mapscriptPINVOKE.mapObj_processQueryTemplate(swigCPtr, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public outputFormatObj getOutputFormatByName(string name) {
IntPtr cPtr = mapscriptPINVOKE.mapObj_getOutputFormatByName(swigCPtr, name);
outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, false, ThisOwn_false());
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int appendOutputFormat(outputFormatObj format) {
int ret = mapscriptPINVOKE.mapObj_appendOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int removeOutputFormat(string name) {
int ret = mapscriptPINVOKE.mapObj_removeOutputFormat(swigCPtr, name);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int loadOWSParameters(OWSRequest request, string wmtver_string) {
int ret = mapscriptPINVOKE.mapObj_loadOWSParameters(swigCPtr, OWSRequest.getCPtr(request), wmtver_string);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int OWSDispatch(OWSRequest req) {
int ret = mapscriptPINVOKE.mapObj_OWSDispatch(swigCPtr, OWSRequest.getCPtr(req));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int zoomPoint(int zoomfactor, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
int ret = mapscriptPINVOKE.mapObj_zoomPoint(swigCPtr, zoomfactor, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int zoomRectangle(rectObj poPixRect, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
int ret = mapscriptPINVOKE.mapObj_zoomRectangle(swigCPtr, rectObj.getCPtr(poPixRect), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int zoomScale(double scale, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
int ret = mapscriptPINVOKE.mapObj_zoomScale(swigCPtr, scale, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
|