ANSI-C program: svg_map.c
NAME
svg_map - Creates a map with scales in scalable vector
graphics format with a linke to a given image using geometry from
a dem_par file.
SYNOPSIS
svg_map <image> <dem_par> <svg>
[font] [fsize] [color] [gcolor] [majorx] [majory] [minorx]
[minory] [thick] [grid]
<image> | (input) URL of background image in bmp, png or jpg format |
<dem_par> | (input) corresponding dem_par file |
<svg> | (output) svg output file |
[font] | name of labelling font (default = sans-serif) |
[fsize] | font size (default = 14) |
[color] | color of ticks and labels (default = black) |
[gcolor] | color of grid (default = black) |
[majorx] | major x-ticks in dem_par coordinates (default = 1) |
[majory] | major y-ticks in dem_par coordinates (default = 1) |
[minorx] | minor x-ticks in dem_par coordinates (default = 0.1) |
[minory] | minor y-ticks in dem_par coordinates (default = 0.1) |
[thick] | tick and gridline thickness in pixels (default = 1) |
[grid] | 1 = draw grid, 0 = no grid (default = 0) |
[gopac] | grid opacity, 0.0 (fully transparent) to 1.0 (fully opaque), default=1.0 |
[gdash] | grid dash size in px (default = 0 = no dashes) |
EXAMPLE
svg_map biomass_6_14_eqa.bmp biomass_6_14_eqa.dem_par
biomass_6_14.svg
Generates a map with standard scales around biomass_6_14_eqa.bmp and stores it in biomass_6_14.svg a scalable vector graphics file. It can be viewed by any SVG capable graphics program such as inkscape, sodipodi or a standard web browser.
DESCRIPTION
svg_map creates a map with scales in SVG XML format that
can be displayed in a wide range of graphics software and image
browsers. Its advantage is its portability and the vector format
that allows to scale text and lines without quality loss. SVG is
an open standard published by the World Wide Web Consortium. The
resulting SVG file can be edited in any text editor.
DIAGNOSTICS
All messages are generally self-explanatory.
SEE ALSO
W3C page: Scalable
Vector Graphics (SVG)