Mon, May 24 2004
04:50:17
|
|
Request created by guest
|
|
Subject: ps.map raster drawing filesize
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.3 cvs may 2004
As it is, when ps.map draws a raster map all NULL cells are drawn with whatever
color they were given with r.colors (usually white). This is fine, but results
in the same PostScript filesize regardless of the number of NULLs in the map.
I have a 1400x2000 map which is only 3% non-NULL, but the filesize is still 20mb;
mostly FFFFFF's. Is it at least possible to replace a line of all NULLs with
a y_position++ type PS command, even if raster data must be written in blocks[*]?
or shrink the actual PS raster box to the outer bounds of the non-NULL data &
reposition?
My data is mostly on the diagonal covering all rows so neither of these solutions
would help my situation much, but maybe someone else?
[*] just a guess that it has to be this way
see grass/src/ps.map/ps.map/cmd/rast_plot.c ps_write_mask_row()
thanks,
Hamish
|
|
Mon, May 24 2004
17:18:19
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<16561.29757.232541.53711@cerise.nosuchdomain.co.uk>
|
Date |
Mon, 24 May 2004 05:04:13 +0100
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #2423] (grass) ps.map raster drawing filesize
|
In-Reply-To |
<20040524025017.BBB3013B93@lists.intevation.de>
|
References |
<20040524025017.BBB3013B93@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Spam-Status |
No, hits=-4.2 tagged_above=-999.0 required=3.0 tests=BAYES_00, DATE_IN_PAST_06_12
|
X-Spam-Level |
|
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2423
> Subject: ps.map raster drawing filesize
> As it is, when ps.map draws a raster map all NULL cells are drawn with
> whatever color they were given with r.colors (usually white). This is
> fine, but results in the same PostScript filesize regardless of the
> number of NULLs in the map.
>
> I have a 1400x2000 map which is only 3% non-NULL, but the filesize is
> still 20mb; mostly FFFFFF's. Is it at least possible to replace a line
> of all NULLs with a y_position++ type PS command, even if raster data
> must be written in blocks[*]?
It would probably be easier to replace the call to "readhexstring"
with a procedure which decodes e.g. run-length encoded data (and
encode the actual image data accordingly).
Otherwise, you would need a y_position+=dy type command, which means
that you have to figure out what dy should be.
> or shrink the actual PS raster box to
> the outer bounds of the non-NULL data & reposition?
That would be feasible.
> see grass/src/ps.map/ps.map/cmd/rast_plot.c ps_write_mask_row()
Yep. That's the file you need to change ;)
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Fri, Feb 9 2007
07:32:28
|
|
Priority changed to 10 by hbowman
|
|