AreaFillPatterns: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
Line 14: Line 14:
=== Authoring instructions ===
=== Authoring instructions ===


Use the ps.map ''vareas'' command's '''pat''' instruction with the full path to pattern file. Pattern file contains header and simple PS commands. It is similar to EPS but more limited, that means that each pattern file is EPS file but EPS files are not usually usefull as pattern files because contain restricted commands. Color and width of patterns are set by '''fcolor''' and '''width''' instructions until overwritten in pattern file. Create new pattern files in a text editor.
Use the ps.map ''vareas'' command's '''pat''' instruction with the full path to pattern file. The pattern file contains header and simple PS commands. It is similar to EPS but more limited, meaning that while each pattern file is a true EPS file, most EPS files are not usually useful as pattern files because they contain restricted commands. Color and width of patterns is set by '''fcolor''' and '''width''' instructions until overwritten in the pattern file. The pattern may be scaled with the '''scale''' command. Several standard hatching patterns are provided in <TT>$GISBASE/etc/paint/patterns/</TT>. You can also create your own custom pattern files in a text editor.


=== Example use ===
=== Example use ===

Revision as of 09:10, 22 June 2006

ps.map's vector area filling command will let you set a fill pattern (hatching). You can create custom patterns. User contributed patterns can be found on this page.

Alternative: QGIS will let you load a GRASS map (with the GDAL GRASS-plugin installed) and change the area fill pattern on-screen.


Contributions

Please include a small example graphic. Upload instructions.

Also please include your name and some sort of license information.
e.g. "© 2006 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 distributed with the next official GRASS release).

Authoring instructions

Use the ps.map vareas command's pat instruction with the full path to pattern file. The pattern file contains header and simple PS commands. It is similar to EPS but more limited, meaning that while each pattern file is a true EPS file, most EPS files are not usually useful as pattern files because they contain restricted commands. Color and width of patterns is set by fcolor and width instructions until overwritten in the pattern file. The pattern may be scaled with the scale command. Several standard hatching patterns are provided in $GISBASE/etc/paint/patterns/. You can also create your own custom pattern files in a text editor.

Example use

vareas fields
  pat $GISBASE/etc/paint/patterns/brick.eps
  where label ~ 'Natl. Forest'
  fcolor green
  end

Example Pattern files

  • Standard pattern files can be found in $GISBASE/etc/paint/patterns/ or from the CVS web interface.


Vertical line

(|)

%!PS-Adobe-2.0 EPSF-1.2
%%BoundingBox: 0 0 10 10
newpath
5 0 moveto
5 10 lineto
stroke

[insert demonstrative image here]

User contributions

-