|
[GRASSLIST:3996] Re: BoundingBox in eps not found by ps.map: msg#00203gis.grass.user
> i want to include an eps file (made with adobe acrobat 6.0) into a > ps.map map, but ps.map complains that the bounding box cannot be > found. i checked the eps file and that seems to be correct as > %%BoundingBox is given. works for me.... [tested with GRASS 5.7] e.g. spearfish data set: ps.map out=test.ps << EOF raster elevation.dem eps 50% -40% epsfile /usr/lib/tk8.3/images/logo.eps end mapinfo where 0.5 8.5 end end EOF gv test.ps here is the code, from 5.7's ps/ps.map/eps.c: ... /* looking for bbox */ while ( fgets(buf, 200, fp) != NULL ) { if (sscanf(buf, "%%%%BoundingBox: %lf %lf %lf %lf", llx, lly, urx, ury) == 4) { fclose (fp); return (1); } } fprintf (stderr,"Bounding box in eps file <%s> was not found\n", eps); fclose (fp); return (0); } so make sure the %%BoundingBox: statement has 4 numbers after it. I don't know why it would fail otherwise. Hamish |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [GRASSLIST:3995] Re: how to access built-in vector attributes (GRASS 5.7)?: 00203, William K |
|---|---|
| Next by Date: | [GRASSLIST:3997] Re: ps.map grid in Lat/Lon: 00203, Hamish |
| Previous by Thread: | [GRASSLIST:3898] BoundingBox in eps not found by ps.mapi: 00203, Florian Goessmann |
| Next by Thread: | [GRASSLIST:3899] Re: getting started in grass: 00203, nicholas . g . lawrence |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |