GRASS and xfig map drawing

Hi,

as far as I am currently working with lots of vector maps:
Does anyone know an way to export GRASS vector maps
to "xfig"?

(Xfig is a nice freeware drawing tool, which can be used
to produce nice maps: http://www-epb.lbl.gov/BVSmith/xfig/

- it accepts raster images (r.out tiff -> xv -> GIF)
- it accepts vector drawings (but only its own ASCII format)
- it outputs Postscript, Latex, raster images etc.
- it accepts xx MB raster files for big maps
)

So something like a module "v.out.xfig" would be helpful for
importing GRASS vector maps directly into xfig.
Did anyone start writing this or is there a different way?

Thanks!

  Markus

Markus Neteler wrote:

So something like a module "v.out.xfig" would be helpful for
importing GRASS vector maps directly into xfig.
Did anyone start writing this or is there a different way?

Thought about it, but then found xcircuit instead, which had a far
easier though more limited user interface. It does have the advantage
of storing the data straight in PostScript. I preferred the object
encapsulation model of xcircuit over xfig.

Never got around to needing to move GRASS vectors to it though.

--
James Cameron (cameron@stl.dec.com)

OpenVMS, Linux, Firewalls, Software Engineering, CGI, HTTP, X, C, FORTH,
COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers,
Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control,
Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband.

"Specialisation is for insects." -- Robert Heinlein.

Should not be too difficult using an script over
the output of v.out.ascii
Could you send me a (short) example of input xfig vector file?

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo@ija.csic.es
http://pangea.ija.csic.es/alobo

On Tue, 12 Jan 1999, Markus Neteler wrote:

Hi,

as far as I am currently working with lots of vector maps:
Does anyone know an way to export GRASS vector maps
to "xfig"?

(Xfig is a nice freeware drawing tool, which can be used
to produce nice maps: http://www-epb.lbl.gov/BVSmith/xfig/

- it accepts raster images (r.out tiff -> xv -> GIF)
- it accepts vector drawings (but only its own ASCII format)
- it outputs Postscript, Latex, raster images etc.
- it accepts xx MB raster files for big maps
)

So something like a module "v.out.xfig" would be helpful for
importing GRASS vector maps directly into xfig.
Did anyone start writing this or is there a different way?

Thanks!

  Markus

as far as I am currently working with lots of vector maps:
Does anyone know an way to export GRASS vector maps
to "xfig"?
...
So something like a module "v.out.xfig" would be helpful for
importing GRASS vector maps directly into xfig.
Did anyone start writing this or is there a different way?

Here are 2 small AWK programs that could help you:

- grass2fig converts a file that has been exported from GRASS
  in ASCII vector format (with v.export / format 2) to FIG 3.2 format

- fig2grass converts a file in FIG 3.2 format to a file in
  ASCII vector format (to be imported in GRASS with v.import / format 2)

Bye

Jacques

(attachments)

grass2fig (817 Bytes)
fig2grass (846 Bytes)