public class IlvMIDMIFReader extends Object implements IlvMapFeatureIterator
IlvManager
.
IlvMapLoader loader = new IlvMapLoader(manager); IlvMIDMIFReader reader = new IlvMIDMIFReader("file.mif", "file.mid"); IlvFeatureRenderer renderer = reader.getDefaultFeatureRenderer(); loader.load(reader, renderer);This reader conforms to The MapInfo Interchange File (MIF) Format Specification - October 1999.
Constructor and Description |
---|
IlvMIDMIFReader(IlvMIFReader MIFReader,
IlvMIDReader MIDReader)
Constructs a MapInfo® Interchange Format reader to read from specified
MIF reader and specified MID reader.
|
IlvMIDMIFReader(String MIFfilename,
String MIDfilename)
Constructs a MapInfo® Interchange Format reader to read from specified
MIF file and specified MID file.
|
IlvMIDMIFReader(URL MIFURL,
URL MIDURL)
Constructs a MapInfo® Interchange Format reader to read from specified
MIF file and specified MID URL.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources allocated by this feature iterator.
|
void |
finalize()
Called by the Java Garbage Collector to release
the resources allocated to the reader.
|
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the coordinate
system of geometric coordinates of the map features.
|
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns a renderer that can be used to translate the map features returned
by this iterator into graphic objects.
|
IlvCoordinate |
getLowerRightCorner()
Returns the lower right corner of the rectangle containing all
the map feature of the list, or
null
if the iterator cannot provide this information. |
IlvMIDReader |
getMIDReader()
Returns the MID reader.
|
IlvMIFReader |
getMIFReader()
Returns the MIF reader.
|
IlvMapFeature |
getNextFeature()
Returns the next map feature of the iterator or
null if the iteration is finished. |
IlvCoordinate |
getUpperLeftCorner()
Returns the upper left corner of the rectangle containing all
the map features of the list, or
null
if the iterator cannot provide this information. |
boolean |
isGeoreferenced()
Returns
true if the map reader can provide the
source coordinate system of its map features. |
public IlvMIDMIFReader(String MIFfilename, String MIDfilename) throws IOException, IlvMapFormatException
MIFfilename
- The name of the MIF file.MIDfilename
- The name of the MID file. If null
, no
attribute is read.IOException
- If an I/O error occurs.IlvMapFormatException
- If the file format is not MID/MIF.public IlvMIDMIFReader(URL MIFURL, URL MIDURL) throws IOException, IlvMapFormatException
MIFURL
- The name of the MIF URL.MIDURL
- The name of the MID URL. If null
, no
attribute is read.IOException
- If an I/O error occurs.IlvMapFormatException
- If the file format is not MID/MIF.public IlvMIDMIFReader(IlvMIFReader MIFReader, IlvMIDReader MIDReader)
MIFReader
- The MIF reader.MIDReader
- The MID reader. If null
, no attribute is
read.public IlvMIFReader getMIFReader()
public IlvMIDReader getMIDReader()
null
if no attribute reader or MID file has been specified at
construction time.public void dispose()
dispose
in interface IlvMapFeatureIterator
public void finalize()
dispose
method
has not been called, it releases the resources used by the reader.public IlvCoordinate getUpperLeftCorner()
null
if the iterator cannot provide this information.getUpperLeftCorner
in interface IlvMapFeatureIterator
public IlvCoordinate getLowerRightCorner()
null
if the iterator cannot provide this information.getLowerRightCorner
in interface IlvMapFeatureIterator
public IlvFeatureRenderer getDefaultFeatureRenderer()
getDefaultFeatureRenderer
in interface IlvMapFeatureIterator
IlvMIFFeatureRenderer
.IlvMIFFeatureRenderer
public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface IlvMapFeatureIterator
null
if the coordinate system is unknown.public boolean isGeoreferenced()
true
if the map reader can provide the
source coordinate system of its map features.isGeoreferenced
in interface IlvMapFeatureIterator
public IlvMapFeature getNextFeature() throws IOException, IlvMapFormatException
null
if the iteration is finished.
The returned map feature must be considered as volatile and
can be modified by the reader during the next call to its
getNextFeature
function.getNextFeature
in interface IlvMapFeatureIterator
IOException
- If an I/O exception occurs.IlvMapFormatException
- If the file format is wrong.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.