logo       

Re: SVG capabilities: msg#00117

Subject: Re: SVG capabilities
Hi,

> 1.  Can an SVG app be coded so that the map file (.svg or a 'wrapper' 
> file that contains an SVG file + meta data 'header', etc) contains 
> layers that can be turned on and off within the program, using SVG's 
> visibility?  An example would be allowing a viewer to turn off grid 
> lines, for instance, or turn off the foliage+terrain shading and turn on 
> terrain lines only (no fills) using menu options.  The SVG file would 
> contain this layer information, so that each map would be self-contained.

I think you can simulate layer in SVG by using <g> element and use
visibility on/off

> 2.  One of the ideas I have for one of these layers is a gray-scale 
> height map that the application uses as a terrain map during 
> calculations of Line-Of-Sight checks.  One of the issues I will have to 
> tackle is having a 'reference' somehow embedded into the map file that 
> gives the app a height in meters for a particular shade of gray.  I was 
> considering having the map file consist of the svg itself, in addition 
> to other metadata, such as this height reference, author/date 
> information and authenticity/"Certified" status/CRC signature of some sort.

> The question here is, given that SVG is XML, can these 'metadata 
> elements' be contained inside the SVG element tree itself without 
> confusing the Batik rendering sections of the code?  It is possible, I 
> think, using CDATA elements, but what are the thoughts of everyone out 
> there?

I am not really sure about this one, I think SVG support Metadata out of
the box. Beside for SVG 1.2 there is really interesting stuff such as
xbl, etc. Check out the SVG 1.2 spec for more info

> 3.  This one is a long-shot, and I am relatively sure the answer is 
> 'no', but the designer in me begs to ask:  Can an app/viewer/loader be 
> built that reads in a large svg file (say, a 100km x 100km map file), 
> allows the user to find a smaller section of a map to use for a scenario 
> (say a 20km by 20km square of that), and 'crop' the map data into a 
> smaller memory footprint svg?  A sort of sub-svg file?

About the memory footprint, I think it is depend on the UA itself,
but for pure SVG, I think you could use viewbox. I forget then name (if
I am not wrong), svg have attribute that can give hint to UA not to draw
the thing not currently displayed. Maybe this can save some memory.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe