Search code examples
javageometryawtshapesjts

How can I convert a JTS-Geometry into an AWT-Shape?


Is it possible to convert a com.vividsolutions.jts.geom.Geometry (or a subclass of it) into a class that implements java.awt.Shape? Which library or method can I use to achieve that goal?


Solution

  • According to:

    http://lists.jump-project.org/pipermail/jts-devel/2007-May/001954.html

    There's a class:

    com.vividsolutions.jump.workbench.ui.renderer.java2D.Java2DConverter
    

    which can do it?