Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a Voronoi Diagram (VoronoiDiagram/DiagramPlot) in Mathematica - and I need to export it to something I can import into ArcGIS.

I'll settle for any sort of data/vector-based (non-raster) format. Obviously a BMP isn't going to work - I need the actual vector data.

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

First take a look at Vector Graphics Formats. This is an easy way to make Voronoi diagram

vd = ListDensityPlot[pts = RandomReal[1, {150, 3}], 
  InterpolationOrder -> 0, ColorFunction -> (White &), Frame -> False,
   BoundaryStyle -> Black, Epilog -> {Red, Point[pts[[All, 1 ;; 2]]]}]

enter image description here

These are some vector formats in Mathematica:

Export["tst." <> #, vd] & /@ {"svg", "wmf", "emf", "eps", "pdf", "dxf"}
{"tst.svg", "tst.wmf", "tst.emf", "tst.eps", "tst.pdf", "tst.dxf"}

For .PDF you may have to look into option "AllowRasterization"->False see details here.

share|improve this answer
    
That worked as far as getting an SVG file out the other end... and the SVG file does contain a (correct) graphical representation of the Voronoi - however, I haven't confirmed yet that the actual data I need is still available in the SVG... we're looking into it now. Thanks! –  Steve Dec 13 '12 at 19:51
    
@Steve please see other formats I added. –  Vitaliy Kaurov Dec 13 '12 at 19:56
2  
The DXF format seems to give me what I need. You didn't list that one, but, it's all the same. Thanks so much for the help! –  Steve Dec 13 '12 at 20:43
1  
@Vitaliy I guess it can hold 3D graphics too, but personally I have only used it for 2D. It does seem that if you re-import it, it gives you a Graphics3D object. But Illustrator (a 2D vector editor) can open the exported DXF. –  Szabolcs Dec 13 '12 at 20:57
    
@Vitaliy I can export without an error on OS X, but please note that the extension is DXF, not DFX –  Szabolcs Dec 13 '12 at 21:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.