IconSymbols: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(+ Category:ps.map)
(→‎Existing symbols: add n_arrow2)
Line 13: Line 13:


== Existing symbols ==
== Existing symbols ==
* Browse built in symbol files in the [http://freegis.org/cgi-bin/viewcvs.cgi/grass6/lib/symbol/symbol/ CVS Web interface]
* Browse built in symbol files in the [http://trac.osgeo.org/grass/browser/grass/trunk/lib/symbol/symbol/ SVN Web interface]


[[image:Symbols.png]]
[[image:Symbols.png]]
Line 21: Line 21:
* <tt>extra/n_arrow1</tt>: [[image:Symb-n_arrow1.png]]
* <tt>extra/n_arrow1</tt>: [[image:Symb-n_arrow1.png]]
* <tt>extra/fiducial</tt>: [[image:Fiducial_125.png]]  (use 45 degree symbol rotation if you wish to align ticks with grid lines)
* <tt>extra/fiducial</tt>: [[image:Fiducial_125.png]]  (use 45 degree symbol rotation if you wish to align ticks with grid lines)
* <tt>extra/n_arrow2</tt>: [[image:Symb-n_arrow2.png]]


<!-- * <tt>extra/newsymb</tt> ''(picture not available)'' -->
<!-- * <tt>extra/newsymb</tt> ''(picture not available)'' -->

Revision as of 09:52, 12 August 2008

Authoring instructions

Modules

Note that starting with GRASS 6.3 many modules can rotate a symbol by a given angle.

Existing symbols

New

  • extra/bridge:
  • extra/n_arrow1:
  • extra/fiducial: (use 45 degree symbol rotation if you wish to align ticks with grid lines)
  • extra/n_arrow2:


Contributions

Please include a small example graphic.

Also please include your name and some sort of license information.

e.g. "(c) 2005 Sara Grassuser, released into the public domain without restriction". This way others may freely improve and further distribute your work (e. g. it can be added to the official GRASS release).

Install in $GISBASE/etc/symbol/custom/ or $MAPSET/symbol/group/

(c) Examples released by Michael O'Donovan into public domain without restriction

Example of a BANK

by MichaelODonovan bank.png:

VERSION 1.0
BOX -1 -1 1 1
POLYGON
  RING
         LINE
         -1      -1
         -1       0.5
          0       1
          1       0.5
         1      -1
          0.75  -1
          0.75  -0.20
          0.25  -0.2
          0.25  -1
        -0.25    -1
        -0.25    -0.2
        -0.75    -0.20
        -0.75     -1
                END
        END
END

Example of a SHACK

by MichaelODonovan shack.png:

VERSION 1.0
BOX -1 -1 1 1
POLYGON
  RING
         LINE
         1      -1
         0      -1
         0       0
        -0.5     0
        -0.5     -1
        -1      -1
        -1       0.5
         1       0.5
        END
END
RING
  LINE
         0.3  -0.25
         0.85 -0.25
         0.85  0.3
         0.3    0.3
        END
 END
END

Example of TRAIN

by MichaelODonovan train.png

VERSION 1.0
BOX -1 -1 1 1
POLYGON
 FCOLOR 0 0 0
  RING
        ARC 0.85 -0.7 0.2 360 0 C        END
          END
        ARC 0.45 -0.7 0.2 360 0 C        END
          END
        ARC -0.45 -0.7 0.2 360 0 C       END
          END
        RING
         ARC -0.85 -0.7 0.2 360 0 C      END
        END
END
POLYGON
RING
         LINE
         1 -0.5
        -1 -0.5
        -1  0.45
         1  0.45
        END
END
RING
  LINE
         0.99 0
         0.99 0.4
         0.7  0.4
         0.7  0
        END
  END
END
RING
 FCOLOR 255 255 255
 POLYGON
  LINE
         0.65  0.55
         0.95  0.75
         0.65  1
         0.25  0.75
        END
 END
END


Example of a FACTORY

by MichaelODonovan factory.png:

VERSION 1.0
BOX -1 -1 1 1
POLYGON
  RING
         LINE
         1 -1
        -1 -1
        -1  0.2
         -0.23 -0.3
         -0.23 0.2
         0.7 -0.3
         0.7 .5
         1 .5
        END
 END
END
POLYGON
RING
        FCOLOR 0 0 0
        ARC 0.85 0.7 0.1 360 0 C         END
        ARC 0.85 0.92 0.15 360 0 C       END
  END
END

Example of a BUS

by MichaelODonovan

bus.png:

VERSION 1.0
BOX -1 -1 1 1
POLYGON
 FCOLOR 0 0 0
  RING
        ARC 0.65 -0.7 0.28 360 0 C       END
          END
        RING
         ARC -0.65 -0.7 0.28 360 0 C     END
        END
END
POLYGON
RING
FCOLOR 255 0 0
         LINE
         1 -0.5
        -1 -0.5
        -1  0.55
        0.8 0.55
         1  0
        END
END
RING
  LINE
         0.95 0
        -0.75 0
        -0.75 0.48
        0.8 0.48
        END
 END
END

Example of a HEADGEAR

by MichaelODonovan headger.png:

VERSION 1.0
BOX -1 -1 1 1
POLYGON
  RING
        ARC 0.5 0.5 0.3 360 0 C  END
        END
RING
FCOLOR 255 0 0
ARC 0.5 0.5 0.4 360 0 C  END
END
RING
LINE
        0 -1
        0.5 0.5
        .7 0.5
        1 -1
        END
        END
RING
         LINE
          0.15 0.75
         -1 -1
        END
END


Other contributions

Symbol families

Add-on symbol packages for download


  • Convert SVG to EPS format (for use with ps.map) with the following command:
(requires Inkscape)
inkscape -z -T -E outputfile.eps inputfile.svg
  • We still need someone to write a little script to convert EPS images into GRASS's display symbol format. It would be nice if the same converter could create d.graph drawing commands as well.


North Arrows

Hydrology symbols

-

Geology symbols

Weather symbols


some ideas here:


  • Write new d.module to draw wind barbs?

Tree symbols