SVG Layer

From: Dave Hallam <davehallam@yahoo.com>
Date: Wed Aug 21 2002 - 11:37:51 EDT

Hi,

Has anyone out there written a layer that will display SVG documents. I'm in the process of doing so using Batik 1.1.1 and have got some graphics (GeneralPath's, etc) on the layer by creating my own OMGraphics2D (subclass of Graphics2D) object that projects between x,y and lat/lon space. The SVG document contains things like:

<circle cy="55.0" cx="0.0" r="10" style="fill:red;stroke:pink;stroke-width:0.1"/>
<polygon style="fill:purple; stroke:green; stroke-width:10; stroke-linejoin: miter" points="2.0,55.0 2.0,50 5,50 5,55"/>

The polygon renders fine as the points are all lat, lon but the circle, although it is located in the correct place has a huge clip as the clip bounds are calculated to be 45 to 65 in latitude and -10 to 10 in longitude. This is causing other graphics not to appear. I haven't had chance to look into precisely why.

The other problem is text. The location of the text is fine but the text appears upside down because in the SVG file the points for the text path aren't specified and the y coordinate system is the inverse of the latitude one.

So, as you can see, I'm having a few potential show-stoppers. If anyone has done this already, can they let me know - at leat to give me some advice.

Many thanks,

Dave

Tel: +44 (0) 7092 250 375
Fax: +44 (0) 7092 250 375

---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

http://uk.docs.yahoo.com/mail_storage.html

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Aug 21 11:39:55 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT