IShapeReaderInfo
Description
- Extended by
Base interface for classes that provide read-only information for shape readers.
This interface may be used to pass around IShapeReader objects with read-only access.
Public / Methods
PeekGeoref
Peeks at the geo-reference of the shape that is going to be read next.
- IOException
-
If an I/O error has occurred.
PeekId
Peeks at the unique ordinal number identifier of the next shape feature in the shape data.
The ordinal number can be used to identify individual shape features that are present in the shape data, before they get classified as compatible shape data and are merged in one IShape object.
- IOException
-
If an I/O error has occurred.
PeekMetadata
Peeks at the metadata of the shape that is going to be read next.
Modified metadata may be passed to a subsequent call to IShapeReader.ReadShape.
- IOException
-
If an I/O error has occurred.
PeekType
Peeks at the type of the shape that is going to be read next.
After returning ShapeType.Mesh from the PeekType method, an implementation may choose to build a shape of type ShapeType.Polygon instead. This way, the triangulation step may be omitted if the shape data uses polygon contours to describe mesh data. Use IShapeOps.Convert to get a ShapeType.Mesh shape, which will perform triangulation if necessary.
- IOException
-
If an I/O error has occurred.
PeekValues
Peeks at the set of custom values of the shape that is going to be read next.
- IOException
-
If an I/O error has occurred.
Public / Attributes
HasFinished
Has the shape reader finished, i.e. all shape data has been read?
If this property returns true
, subsequent calls to IShapeReader.ReadShape and IShapeReader.SkipShape will always return null
resp. false
, because there is no more shape data to process.
If this property returns false
, subsequent calls to IShapeReader.ReadShape and IShapeReader.SkipShape may still return null
resp. false
, because the remaining shape data does not contain any more shape geometry that would yield a IShape object.
- IOException
-
If an I/O error has occurred.