[GRASS-dev] [GRASS GIS] #355: ps.map generates invalid postscript
when vlegend item does not appear on map
Bob Covill
bcovill at tekmap.ns.ca
Tue Nov 4 10:16:02 EST 2008
I encountered the same problem a couple of weeks ago. I was able to get
around it by adding the following to ps_vlegend.c around line 172 ...
pat_save ( PS.fp, vector.layer[i].pat, pat);
Insert this line after "sprintf ( pat, "APATTEPS%d", i);" to ensure the
pattern definition is saved.
Hope this helps.
--
Bob
On Tue, 2008-11-04 at 14:20 +0000, GRASS GIS wrote:
> #355: ps.map generates invalid postscript when vlegend item does not appear on
> map
> ------------------------+---------------------------------------------------
> Reporter: scottygamm | Owner: grass-dev at lists.osgeo.org
> Type: defect | Status: new
> Priority: minor | Milestone: 6.3.1
> Component: default | Version: 6.3.0
> Keywords: | Platform: MSWindows CygWin
> Cpu: x86-32 |
> ------------------------+---------------------------------------------------
> I have a map control file that generates several (21) vareas with pattern
> fill and defines label and lpos entries for the legend. As it happens,
> one of those vareas does not appear on the map area. As a result, the
> postscript output omits the dictionary entry for that pattern. When
> vlegend generates the legend output, it attempts to reference the missing
> pattern definition (of the form APATTEPSnn) and applications that try to
> render the postscript fail in various ways. Workaround is to omit the
> vareas causing the problem. I have not included files but can provide
> them if needed.
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
More information about the grass-dev
mailing list