Hi Dugald,

It is not difficult to do that. The first thing you need to do is to use the coordinate system of your specific map using the viewbox attribute on the SVG element. After that you can create whatever object on the fly. I did this for a project we had with the Dutch DOT. We made the necessary parsers to read all shape files (look at GeoTools.org and you will find a huge set of useable tools)

Leo van den Berg
University of Valencia - ESAM


Dugald Morrow escribió:

Hi,

Can anyone tell me whether I could use Batik to overlay information on a map. I am using swing, so I want to use the JSVGCanvas.html <http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/swing/JSVGCanvas.html> to do most of the work, except I need to store the features to be rendered in the SVG file in terms of their geographic locations (latitudes and longitudes), and then convert these into the pixel coordinates on the fly based on the current type of projection (e.g. Lambert, Mercator, etc), scale and location. I have the code to do these conversions, however, I'm not sure where to hook it in. Would I extend/write a bridge to do this?

Any help would be greatly appreciated.

Dugald


<<attachment: l_vdberg.vcf>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to