[mapserver-users] Looking for information on SHPXY, specifically an example of a LINE IMAGEMAP template.

Bob Basques Bob.Basques at ci.stpaul.mn.us
Tue Sep 20 14:31:21 PDT 2011


All, 

Should I be using "POLY" as the type for LINE imagemaps? 

This works most of the time:  

     class="Sewers" shape="poly" coords="[shpxy cs=" " xf="," proj="image" buffer=20px] 

Also, related to precision, is there a weeding option of some sort?  A typical output from above looks like (really a LINE feature), notice the same points being written out: 

    class="Sewers" shape="poly" coords="816,525 816,514 815,504 814,494 812,483 810,473 807,463 803,453 799,443 795,434 790,425 785,416 779,407 773,399 766,391 759,383 751,376 743,369 735,362 727,356 718,351 708,346 699,341 689,337 680,333 670,330 659,328 649,326 639,324 628,323 618,323 607,323 597,324 587,325 576,327 566,329 556,332 546,336 536,340 527,344 518,349 509,354 500,360 492,366 484,373 476,380 469,388 462,396 455,404 449,412 444,421 439,431 434,440 430,450 426,459 423,469 421,480 419,490 417,500 416,511 416,521 415,627 415,638 416,648 417,658 419,669 421,679 424,689 428,699 432,709 436,718 441,727 446,736 452,745 458,753 465,761 472,769 480,776 488,783 496,790 504,796 513,801 523,806 532,811 542,815 551,819 561,822 572,824 582,826 592,828 603,829 613,829 624,829 634,828 644,827 655,825 665,823 675,820 685,816 695,812 704,808 713,803 722,798 731,792 739,786 747,779 755,772 762,764 769,756 776,748 782,740 787,731 792,721 797,712 801,702 805,693 808,683 810,672 812,662 814,652 815,641 815,631 816,525" 

. . . but not all of the time, seems to get confused from time to time in how the imagemap is drawn.  The above imagemap is for a two point line feature for example. 

bobb 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110920/ac7b2fe1/attachment.htm>


More information about the MapServer-users mailing list