









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Reading a Postscript file?
- Subject: [NMLUG] Reading a Postscript file?
- From: _sarang_ at sarangworld.com (Sarang)
- Date: Thu Nov 11 18:32:32 2004
SYNOPSIS: I have a Postscript file that prints several red lines plus lots
of other stuff. How do I get the co-ordinates of the red lines? The
(nonprivate) file is at:
http://sarangworld.com/NMLUG/timezone1999.ps
DETAIL: I realize I could use ImageMagick (which calls gs) to convert the
file to GIF and just read off the red lines manually or automatically from
the GIF file, but this seems inelegant and would lose precision.
Additionally, the PostScript file appears to be "layered" w/ a layer of
black lines "on top of" the red lines, so some of the red lines render as
dark red when GIF-ified. I could probably work around this, but I'd really
like to read the co-ordinates directly from the PostScript file, if
possible.
My larger goal is to create a mysql (4.1+) db of global timezone
boundaries (above/beyond /usr/share/zoneinfo/zone.tab)-- this information
*has* been published for free:
http://sarangworld.com/NMLUG/us_main_timezones.zip
http://sarangworld.com/NMLUG/WorldTZ_102.zip
http://sarangworld.com/NMLUG/WorldTZ.zip
(originally downloaded from manifold.net's FTP servers), but in Manifold's
proprietary(?) MFD format, and I can't find a free way to convert this to
WKT/WKB or some other well-known "shape" format.
I am familiar with http://mdbtools.sourceforge.net/ but this doesn't quite
do the trick.
--
Sincerely, Sarang (sarang@sarangworld.com)
AOL Instant Messenger ID: JavaMath
Backup Email: saranghome@softhome.net
<html><img src='http://noproxy.sarangworld.com/EXP/rr.php?20041111.181544'></html>
|
|