User Tools

Site Tools


tecnica:gps_cartografia_gis:mapserver_styles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tecnica:gps_cartografia_gis:mapserver_styles [2010/10/12 07:45] niccolotecnica:gps_cartografia_gis:mapserver_styles [2010/10/12 15:26] niccolo
Line 98: Line 98:
 </file> </file>
  
-===== Line Symbol with Offset =====+===== Line Symbol with Map Offset ===== 
 + 
 +MapServer 5.6. L'offset del simbolo (in questo caso due cerchi, uno rosso e uno verde) è specificato rispetto al bordo della mappa.
  
 {{.:mapserver:mapserver-line-offset.png  }} {{.:mapserver:mapserver-line-offset.png  }}
Line 133: Line 135:
       COLOR 32 212 32       COLOR 32 212 32
       OFFSET 1 3       OFFSET 1 3
 +    END
 +  END
 +END
 +</file>
 +
 +===== Line Symbol with Line Offset =====
 +
 +MapServer 5.6. L'offset è calcolato rispetto ad una retta tangente alla linea (secondo parametro di **''OFFSET''** pari a **''-99''**):
 +
 +{{.:mapserver:mapserver-symbol-line-offset.png  }}
 +
 +<file>
 +SYMBOL
 +  NAME "circle"
 +  TYPE ELLIPSE
 +  POINTS
 +    1 1
 +  END
 +  FILLED true
 +END
 +
 +LAYER
 +  NAME "curve_livello"
 +  STATUS ON
 +  TYPE LINE
 +  DATA "shape"
 +  CLASS
 +    STYLE
 +      WIDTH 3
 +      COLOR 0 0 0
 +    END
 +    STYLE
 +      SYMBOL "circle"
 +      SIZE 6
 +      COLOR 212 192 32
 +      OFFSET 3 -99
     END     END
   END   END
 END END
 </file> </file>
tecnica/gps_cartografia_gis/mapserver_styles.txt · Last modified: 2010/10/12 16:19 by niccolo