[gdal-dev] [gdal 1.8.0] Covert OGRlayer in Graphics2D object, how? [Java]

Even Rouault even.rouault at mines-paris.org
Sat Jul 23 13:32:57 EDT 2011


Le samedi 23 juillet 2011 19:28:50, mett a écrit :
> Hello everybody!
> 
> I created some OGRlayers georeferenced, and I need to convert them somehow
> in a java.awt.Shape object, to handle subsequently the Graphics2D object.
> Is there any clever way to do that?

There's nothing already coded in the OGR Java API to transform a OGR Geometry 
object into a java.awt.Shape object, but you should be able to code it with 
the existing API. You can extract the type of geometry to instanciate the 
appropriate Shape class and then you will have to add the points.

> 
> 
> Thank you very much,
> Matt
> 
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/gdal-1-8-0-Covert-OGRlayer-in-Graph
> ics2D-object-how-Java-tp6614000p6614000.html Sent from the GDAL - Dev
> mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list