| Programming with JViews Maps > Introducing the Main Classes > Readers and Writers > The SVG Reader |
The SVG Reader |
INDEX
PREVIOUS
NEXT
|
There are two ways of reading SVG files:
IlvMapSVGReader instance directly. When you use IlvMapSVGReader, you must write all of the code required to render the SVG features into graphic objects, and to add them to the manager.
IlvSVGDataSource. This is a convenient way of performing all of the above operations at once. Using IlvSVGDataSource is better integrated with the data model of the map.
This section contains the following topics:
The source code for the Map Builder demonstration, which contains all of the code described in this section, can be found at <installdir>/jviews-maps81/samples/mapbuilder/index.html
This class reads SVG features from a specified SVG file or catalog. It implements the IlvMapFeatureIterator interface to iterate over the features to be read.
To read SVG features by means of the IlvMapSVGReader object, do the following:
The IlvSVGDataSource class provides a convenient way to create a set of layers containing SVG data in a manager.
Here are the steps required to read SVG features by means of the IlvSVGDataSource:
| Note |
Alternatively you can use a tailored transformation by calling IlvSVGDataSource.setInternalTransformation.
|
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |