Up vote 1 down vote favorite share g+ share fb share tw.
I need to visualize a large vector graphic. It's a map of roads, the roads are just lines. Is there a library for that?
It would be nice if that library had support for zoom-in/zoom-out and would be easy to extend. E.g. To implement selection of roads or some nice mouse-over effects.
The licence should permit usage in a commercial project. Thanks, Philip Edit: Is there a reason not to go with Graphics2D or SWT Graphics? (The project is on SWT and doesn't involve any SVGs.
) java zoom vector-graphics java-libraries link|improve this question edited Feb 2 '11 at 14:24 asked Feb 2 '11 at 14:01Philip357112 67% accept rate.
Have a look at Apache Batik Batik is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation. Another possibility is to use Batik’s modules to convert SVG to various formats, such as raster images (JPEG, PNG or TIFF) or other vector formats (EPS or PDF, the latter two due to the transcoders provided by Apache FOP). The latest revision of Batik, release 1.7, is a conformant static SVG implementation and supports interactivity, linking and scripting features of the SVG specification.
Another good alternatives are FreeHEP and VectorGraphics2D.
Batik is no option as far as I can see it be it must be possible to implement selections of objects. For that I would have to implement some mapping between the SVG and the data source, I think this would be over-kill. FreeHEP is a Graphics2D->SVG-Exporter, VectorGraphics2D seems to have no nice graphics.
:S – Philip Feb 2 '11 at 14:48 1 You can use AsSvg() from SpatiaLite or SVG generator from Batik distribution as alternative to over-kill. – Lev Khomich Feb 2 '11 at 15:07.
If you're talking about SVG-like graphics, I think Batik is the way.
Yeah I also stumbled over Batik, but I am not using SVG in that project. – Philip Feb 2 '11 at 14:11 What are you using then? – BigMac66 Feb 2 '11 at 14:22 SQLite/SpatiaLite, SHP or an internal binary format.
(Though the data might be processed by the JTS library. ) Of course there is existing GIS software but this is over-kill, and there are licence problems. – Philip Feb 2 '11 at 14:50 @Philip I suggest you ask the question to StackOverflow, as you are not displaying simple vector graphics, but inf act cartographic data, which is quite a different problem.
– Riduidel Feb 2 '11 at 15:52.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.