[GRASS-dev] [GRASS GIS] #72: PNG driver: boundary rendering is off by one pixel
GRASS GIS
trac at osgeo.org
Tue Jun 4 00:23:40 PDT 2013
#72: PNG driver: boundary rendering is off by one pixel
-------------------------------------------+--------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.4
Component: Default | Version: svn-develbranch6
Keywords: d.vect, rendering, PNG_DRIVER | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by hamish):
Hi,
there is a similar off-by-one problem in the Cairo driver for 6.4 and 6.5,
very easy to reproduce:
{{{
export GRASS_WIDTH=100
export GRASS_HEIGHT=100
d.mon start=cairo
d.mon stop=cairo
}}}
you will see a single pixel black line along both the right and bottom
edges of the resulting map.png file. (trouble if you wanted to use
GRASS_TRANSPARENT=TRUE)
crummy work-around is to make GRASS_WIDTH and HEIGHT one larger, then crop
away the bad edges with pnmcrop.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/72#comment:22>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list