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.


1 Answer 1


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.

  • $\begingroup$ 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! $\endgroup$
    – Steve
    Dec 13, 2012 at 19:51
  • $\begingroup$ @Steve please see other formats I added. $\endgroup$ Dec 13, 2012 at 19:56
  • 2
    $\begingroup$ 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! $\endgroup$
    – Steve
    Dec 13, 2012 at 20:43
  • 1
    $\begingroup$ @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. $\endgroup$
    – Szabolcs
    Dec 13, 2012 at 20:57
  • $\begingroup$ @Vitaliy I can export without an error on OS X, but please note that the extension is DXF, not DFX $\endgroup$
    – Szabolcs
    Dec 13, 2012 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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