[GRASS-dev] Two new features in ps.output

Hi all,

I present two new features in ps.output (soon in grass-addons) as you see in
attach:
- transparent colors. This is possible only using ghostscript (with standard
postscript is not implemented) via -g flag of ps.output, but you can traslate
to PDF 1.4 to retain transparency.
- eps symbols along a line or boundary with a constant separation. Perhaps,
this is not prefect but work fine in my simple test maps.

--
Dr. E. Jorge Tizado
Dpt. Biodiversity and Environmental Management
University of León

(attachments)

nw_features.jpg

Jorge,

This is beautiful! Thank you…

Tom

E. Jorge Tizado wrote:

Hi all,

I present two new features in ps.output (soon in grass-addons) as you see in attach: - transparent colors. This is possible only using ghostscript (with standard postscript is not implemented) via -g flag of ps.output, but you can traslate to PDF 1.4 to retain transparency.
- eps symbols along a line or boundary with a constant separation. Perhaps, this is not prefect but work fine in my simple test maps.

------------------------------------------------------------------------

------------------------------------------------------------------------

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL: thomas.adams@noaa.gov

VOICE: 937-383-0528
FAX: 937-383-0033

Very Nice work. Is this an extension to ps.map, or something new? Can
you elaborate on the intermediate format-- is it completely
vector-based?

Cheers,
Dylan

On Sat, Jun 6, 2009 at 9:08 AM, E. Jorge Tizado<ejtizado@ono.com> wrote:

Hi all,

I present two new features in ps.output (soon in grass-addons) as you see in
attach:
- transparent colors. This is possible only using ghostscript (with standard
postscript is not implemented) via -g flag of ps.output, but you can traslate
to PDF 1.4 to retain transparency.
- eps symbols along a line or boundary with a constant separation. Perhaps,
this is not prefect but work fine in my simple test maps.

--
Dr. E. Jorge Tizado
Dpt. Biodiversity and Environmental Management
University of León

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks Dylan,

No completely vector-based, obiously the raster map is a bitmap, but all lines
and the green area with transparent color are vector based. I send you a
screen snapshot of a 400% KPDF magnification (this attach with grey n, see
below) to test quality.

For the moment ps.output is a grass-addon different of ps.map but trying to
retain similar script files. For example, to draw the attached map the kernel
code of the script is:

ps.output -g out=$OUTPUT.ps << EOF

[... paper, grid, maparea, not commented -- in general just in
grass-addons ...]

raster 30m.3d@bierzo <- raster in the main area (dark gray)
  grey y <- draw raster in greyscale (this attach N)
  maskcolor 200:200:200 <- tint of the raster background (outside main area)
  maskcell mask@bierzo 30m.3d@bierzo <- mask of main area and raster for
                                background (here the same as the main area)
end

vareas cs_lim@bierzo <- vector map of the green area
  line <- style of the limit line of the area
    width .1mm <- line width
    color none <- no color = no line
  end
  fcolor 0:130:0$.5 <- fill color 0:130:0 = green, .5 = transparent 50%
end

vpoint bz_lim@bierzo <- boundary of main area (El Bierzo, spanish region :slight_smile:
  type boundary <- this is vpoint but use along boundary
  symbol basic/circle <- symbol to repeat
  line <- style of the line of the symbol
    width .3mm
    color black
  end
  fcolor yellow <- fill of the symbol
  size 3.5 <- scale of the symbol
  dist 20 <- separation between symbols (for the moment, points)
  cline <- style of the conection line
    width .3mm
    color black
  end
end

vpoint meteo@bierzo <- vpoint type point (default)
  symbol basic/circle
  line
    width .3mm
    color black
  end
  fcolor red
  size 3
end
EOF

Many new features are just in grass-addons ps/ps.output with new styles of
grids, etc.
The new features are not in grass-addons because I am testing and cleaning the
code for transparent colors (all colors are named or red:green:blue$alpha
colores -lines, areas, patterns, symbols, etc), and for symbol along lines (I
develop the code in the last 2 days).

All new ideas to improve the postscript output of GRASS are wellcome.
The idea of symbol along lines if from the INT1: "symbols, abbreviation and
terms used on charts" of the Organisation Hydrographique International -- to
can draw their area limits, railways, overhead transporter, dykes... :slight_smile:

Very Nice work. Is this an extension to ps.map, or something new? Can
you elaborate on the intermediate format-- is it completely
vector-based?

Cheers,
Dylan

On Sat, Jun 6, 2009 at 9:08 AM, E. Jorge Tizado<ejtizado@ono.com> wrote:
> Hi all,
>
> I present two new features in ps.output (soon in grass-addons) as you see
> in attach:
> - transparent colors. This is possible only using ghostscript (with
> standard postscript is not implemented) via -g flag of ps.output, but you
> can traslate to PDF 1.4 to retain transparency.
> - eps symbols along a line or boundary with a constant separation.
> Perhaps, this is not prefect but work fine in my simple test maps.
>
> --
> Dr. E. Jorge Tizado
> Dpt. Biodiversity and Environmental Management
> University of León
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Dr. E. Jorge Tizado
Dpt. Biodiversity and Environmental Management
University of León

(attachments)

nw_features1.jpg