| Programming with JViews Maps > Introducing the Main Classes > Readers and Writers > The DXF Reader |
The DXF Reader |
INDEX
PREVIOUS
NEXT
|
There are two ways of reading DXF files:
IlvMapDXFReader instance directly. In this case, you must write all of the code required to render the DXF features into graphic objects, and then add them to the manager.
IlvDXFDataSource. This is a convenient way of performing all the above operations at once and is more 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 DXF features from a specified DXF file or catalog. It implements the IlvMapFeatureIterator interface to iterate over the read features.
To read the DXF features using the IlvMapDXFReader object:
IlvMapDXFReader instance from the path of the DXF file:
The IlvDXFDataSource class provides a convenient way of creating a set of layers containing DXF data in a manager. You can also georeference the geographic objects to create, as DXF datasets are usually non-georeferenced.
To read DXF features using the IlvDXFDataSource:
IlvDXFDataSource.setInternalTransformation.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |