Changes between Version 3 and Version 4 of SymbologyExchangeVector


Ignore:
Timestamp:
Nov 23, 2008, 7:19:39 PM (15 years ago)
Author:
dougrenwick
Comment:

added symbol sections from old site

Legend:

Unmodified
Added
Removed
Modified
  • SymbologyExchangeVector

    v3 v4  
    141141
    142142
     143=== Dave Fawcett's symbols from the old Mapserver wiki ===
     144Posted by HostGIS at 2007-08-09
     145
     146This defines a pair of symbols which, when overlaid on each other, creates a thick line with a dashed line down the middle. This is appropriate for highways, for example.
     147
     148{{{
     149SYMBOL
     150    name circle
     151    Type ELLIPSE
     152    Filled true
     153    POINTS
     154        1 1
     155    END
     156END
     157
     158SYMBOL
     159    name dashed
     160    Type ELLIPSE
     161    FILLED true
     162    POINTS
     163        1 1
     164    END
     165    STYLE
     166        5 3
     167    END
     168END
     169
     170CLASS
     171    NAME Highway
     172    STYLE
     173    SYMBOL circle
     174    SIZE 7
     175    COLOR
     176        0 0 0
     177    END
     178    STYLE
     179        SYMBOL circle
     180        SIZE 5
     181        COLOR 255 255 0
     182    END
     183    STYLE
     184        SYMBOL dashed
     185        SIZE 1
     186        COLOR 0 0 0
     187    END
     188END
     189}}}
     190
     191
     192=== From Dave Fawcett's wiki page: railroad tracks ===
     193Posted by HostGIS at 2007-08-09
     194
     195Here's a method for drawing railroad tracks. THis is the usual line with shorter lines ("ties") across it.
     196
     197{{{
     198SYMBOL
     199    NAME 'line'
     200    TYPE ellipse
     201    FILLED true
     202    POINTS
     203        1 1
     204    END
     205END
     206SYMBOL
     207    NAME 'tie'
     208    TYPE Ellipse
     209    FILLED TRUE
     210    POINTS 1 1 END
     211    STYLE 1 3 END
     212
     213END
     214SYMBOL 'railroad'
     215    SIZE 1
     216    OVERLAYSYMBOL 'tie'
     217    OVERLAYSIZE 3
     218END
     219}}}
     220
     221
     222=== From Dave Fawcett's wiki page: Some fill patterns for polygons ===
     223Posted by HostGIS at 2007-08-09
     224
     225{{{
     226# A hatch pattern tilted 45 degrees
     227SYMBOL
     228    NAME "fill45"
     229    TYPE vector
     230    POINTS
     231        0 1
     232        1 0
     233    END
     234END
     235
     236# Horizontal & vertical hatching
     237SYMBOL
     238    NAME "fillrect"
     239    TYPE vector
     240    POINTS
     241        0 0
     242        1 0
     243        1 1
     244    END
     245END
     246
     247# Double cross hatching
     248SYMBOL
     249    NAME "fillcross"
     250    TYPE vector
     251    POINTS
     252        0 0
     253        1 1
     254        -1 -1
     255        1 0
     256        0 1
     257    END
     258END
     259
     260# wave hatching
     261SYMBOL
     262    NAME "fillwave"
     263    TYPE vector
     264    POINTS
     265        0 0
     266        1 1
     267        2 0
     268    END
     269END
     270
     271# Horizontal hatching
     272SYMBOL
     273
     274    NAME "fill0"
     275    TYPE vector
     276    POINTS
     277        0 0
     278        1 0
     279        -1 -1
     280        0 1
     281        1 1
     282    END
     283END
     284
     285# Vertical hatching
     286SYMBOL
     287    NAME "fill90"
     288    TYPE vector
     289    POINTS
     290        0 0
     291        0 1
     292        -1 -1
     293        1 0
     294        1 1
     295    END
     296END
     297}}}
     298
     299=== Swamp/Marsh fill pattern and Railroad ===
     300Posted by Bill Thoen at 2007-08-10
     301
     302This is a self contained sampler of two symbol types. The first is a polygon fill pattern for swamp land. The second is a railroad symbol and while not particularly special, it illustrates the method of combining multiple styles to build up a decorated line type. The example consists of two files: a MAP file and its associated HTML file. Copy them both and then simply run the MAP file with mapserv to see the symbology.
     303
     304{{{
     305sym_sampler.html
     306================
     307<html>
     308  <head>
     309    <title>Symbology Viewer</title>
     310  </head>
     311  <body>
     312    <h1>Cartographic Symbols</h1>
     313    <p>
     314    <img src="[img]" />
     315    </p>
     316  </body>
     317</html>
     318
     319sym_sampler.map
     320===============
     321MAP
     322  NAME 'Symbology'
     323  EXTENT 0 0 400 400
     324  SIZE 400 400
     325  SYMBOL
     326    NAME 'swamp'
     327    TYPE VECTOR
     328    FILLED FALSE
     329    POINTS
     330      5 6 
     331      4 5
     332      -99 -99
     333      6 6
     334      5 4
     335      -99 -99
     336      7 6
     337      7 3
     338      -99 -99
     339      8 6
     340      9 4
     341      -99 -99
     342      9 6
     343      10 5
     344      -99 -99
     345      19 13
     346      18 12
     347      -99 -99
     348      20 13
     349      19 11
     350      -99 -99
     351      21 13
     352      21 10
     353      -99 -99
     354      22 13
     355      23 11
     356      -99 -99
     357      23 13
     358      24 12
     359    END
     360  END
     361
     362  SYMBOL
     363    NAME 'track'
     364    TYPE ELLIPSE
     365    FILLED TRUE
     366    POINTS 1 1 END
     367  END
     368
     369  SYMBOL
     370    NAME "tie"
     371    TYPE cartoline
     372    LINECAP butt
     373    LINEJOIN miter
     374    LINEJOINMAXSIZE 3
     375    STYLE
     376      1 10 1 10
     377    END
     378  END
     379
     380  WEB
     381    TEMPLATE "/var/www/html/blt/sym_sampler.html"
     382    IMAGEPATH "/var/www/html/tmp/"
     383    IMAGEURL "/tmp/"
     384  END
     385
     386  LAYER
     387    NAME "Wetlands"
     388    TYPE POLYGON
     389    STATUS DEFAULT
     390    FEATURE
     391      POINTS
     392        5 345
     393        105 345
     394        105 395
     395        5 395
     396        5 345
     397      END
     398    END
     399    CLASS
     400      COLOR 240 255 240
     401      OUTLINECOLOR 128 255 128
     402      STYLE
     403        SYMBOL "swamp"
     404        SIZE 22
     405        COLOR 96 128 64
     406      END
     407    END
     408  END
     409
     410  LAYER
     411    TYPE LINE
     412    STATUS DEFAULT
     413    NAME "Railroad"
     414    FEATURE
     415      POINTS
     416        115 345
     417        148 395
     418        182 345
     419        215 395
     420      END
     421    END
     422    CLASS
     423      STYLE
     424        SYMBOL 'track'
     425        SIZE 1
     426        COLOR 0 0 0
     427        ANTIALIAS TRUE
     428      END
     429      STYLE
     430        SYMBOL 'tie'
     431        SIZE 5
     432        COLOR 0 0 0
     433        ANTIALIAS TRUE
     434      END
     435    END
     436  END
     437
     438  LAYER
     439    NAME "label2"
     440    TYPE ANNOTATION
     441    STATUS OFF
     442    FEATURE
     443      POINTS 165 345 END
     444      TEXT "Railroad"
     445    END
     446    CLASS
     447      LABEL
     448        TYPE BITMAP
     449        SIZE MEDIUM
     450        COLOR 0 0 0
     451        POSITION lc
     452      END
     453    END
     454  END
     455
     456  LAYER
     457    NAME "Labels"
     458    TYPE ANNOTATION
     459    STATUS DEFAULT
     460    FEATURE
     461      POINTS 53 345 END
     462      TEXT "Swamp or Marsh"
     463    END
     464    FEATURE
     465      POINTS 165 345 END
     466      TEXT "Railroad"
     467    END
     468    CLASS
     469      LABEL
     470        TYPE BITMAP
     471        SIZE MEDIUM
     472        COLOR 0 0 128
     473        POSITION lc
     474      END
     475    END
     476  END
     477END
     478}}}
     479
     480
     481=== Symbol for Orchard and Scrub ===
     482Posted by Anton Sizo at 2008-03-17
     483
     484{{{
     485CLASS
     486  NAME 'Orchard'
     487  STYLE
     488    COLOR 231 255 170
     489  END
     490  STYLE
     491    SYMBOL "octahedron"
     492    SIZE 10
     493    COLOR 100 100 100
     494  END
     495  END #CLASS
     496
     497SYMBOL
     498  NAME 'octahedron'
     499  TYPE VECTOR
     500  POINTS
     501    20 18
     502    22 18
     503    24 20
     504    24 22
     505    22 24
     506    20 24
     507    18 22
     508    18 20
     509    20 18
     510  END
     511  FILLED FALSE
     512END
     513
     514
     515CLASS
     516  NAME 'Scrub'
     517  STYLE
     518    COLOR 231 255 170
     519  END
     520  STYLE
     521    SYMBOL "scrub"
     522    SIZE 30
     523    COLOR 100 100 100
     524  END
     525END #CLASS
     526
     527SYMBOL
     528  NAME 'scrub'
     529  TYPE VECTOR
     530  POINTS
     531    88 122
     532    90 122
     533    92 124
     534    92 126
     535    90 128
     536    88 128
     537    86 126
     538    86 124
     539    88 122
     540    -99 -99
     541    120 122
     542    122 122
     543    124 124
     544    124 126
     545    122 128
     546    120 128
     547    118 126
     548    118 124
     549    120 122
     550    -99 -99
     551    106 84
     552    108 84
     553    110 86
     554    110 88
     555    108 90
     556    106 90
     557    104 88
     558    104 86
     559    106 84
     560    -99 -99
     561    107 102
     562    109 102
     563    111 106
     564    111 108
     565    109 110
     566    107 110
     567    103 108
     568    103 106
     569    107 102
     570    -99 -99
     571  END
     572  FILLED FALSE
     573END
     574}}}
     575
     576
     577=== Plane symbol ===
     578Posted by John Zastrow at 2008-05-05
     579
     580I've been working on an improved version of the Itasca.map and taught myself how to make vector symbols (based on this excellent site!  http://umn.mapserver.ch/index_en.php ). The symbol is below, but perhaps more importantly I created a little Excel to help me and included a brief explanation how to use it. http://northredoubt.com/mapserver/mapserver-vector-symbol-designer.xls
     581
     582An improved itasca.map is also available (a work in progress) http://northredoubt.com/mapserver/itasca.map.html
     583
     584{{{
     585SYMBOL
     586 NAME 'plane'
     587 TYPE VECTOR
     588 FILLED TRUE
     589 POINTS
     590   0.5 0.025
     591   0.45 0.075
     592   0.45 0.225
     593   0.45 0.3
     594   0.225 0.325
     595   0.175 0.375
     596   0.45 0.425
     597   0.45 0.6
     598
     599   0.475 0.675
     600   0.425 0.725
     601   0.575 0.725
     602   0.525 0.675
     603   0.55 0.6
     604   0.55 0.425
     605   0.825 0.375
     606   0.775 0.325
     607   0.55 0.3
     608
     609   0.55 0.225
     610   0.55 0.075
     611   0.5 0.025
     612 END
     613END
     614}}}