public class TLcdGDFMultiLevelTiledModelDecoder extends java.lang.Object implements ILcdModelDecoder, ILcdInputStreamFactoryCapable
ILcdModelDecoder
decodes multileveled, tiled GDF files, generated by the
TLcdGDFMultiLevelTiledModelEncoder
.Constructor and Description |
---|
TLcdGDFMultiLevelTiledModelDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeSource(java.lang.String aSourceName)
Checks whether this model decoder can decode the specified data source.
|
ILcdModel |
decode(java.lang.String aSourceName)
Decodes the given source and returns a model, build from the decoded source.
|
java.lang.String |
getDisplayName()
Returns a short, displayable name for the format that is decoded by this
ILcdModelDecoder . |
ILcdFilter |
getFeatureFilter()
Returns the feature filter used in this model decoder, or
null if none is used. |
ILcdGDFFeatureThemeMap |
getFeatureThemeMap()
Returns the
ILcdGDFFeatureThemeMap used by this decoder. |
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is used.
|
java.lang.String[] |
getTextTypeCodes()
Returns the list of type codes whose attribute value is a pointer to a name record.
|
java.lang.String[] |
getTimeDomainTypeCodes()
Returns the list of type codes whose attribute value is a pointer to a time domain record.
|
boolean |
isDecodeAttributes()
Returns
true if the attribute decoding flag is set, false otherwise. |
boolean |
isDecodeComplexFeatures()
Returns
true if the complex features decoding flag is set,
false otherwise. |
boolean |
isDecodeRelationships()
Returns
true if the relationship decoding flag is set,
false otherwise. |
boolean |
isDecodeZCoordinate()
Returns
true if the z coordinate decoding flag is set,
false otherwise. |
void |
setDecodeAttributes(boolean aDecodeAttributes)
Sets a flag indicating whether attributes should be decoded or not.
|
void |
setDecodeComplexFeatures(boolean aDecodeComplexFeatures)
Sets a flag indicating whether complex features should be decoded or not.
|
void |
setDecodeRelationships(boolean aDecodeRelationships)
Sets a flag indicating whether relationships should be decoded or not.
|
void |
setDecodeZCoordinate(boolean aDecodeZCoordinate)
Sets a flag indicating whether the Z value of coordinates should be taken into account or not.
|
void |
setFeatureFilter(ILcdFilter aFeatureFilter)
Sets a filter to select which features will be added to the decoded models and which not.
|
void |
setFeatureThemeMap(ILcdGDFFeatureThemeMap aFeatureThemeMap)
Sets the
ILcdGDFFeatureThemeMap to be used by this decoder. |
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the factory that will create input streams from which models can be decoded.
|
void |
setTextTypeCodes(java.lang.String[] aTextTypeCodes)
Sets the array of type codes whose attribute value is a pointer to a text record.
|
void |
setTimeDomainTypeCodes(java.lang.String[] aTimeDomainTypeCodes)
Sets the array of type codes whose attribute value is a pointer to a time domain record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the factory that creates an input stream based on a source name.public ILcdInputStreamFactory getInputStreamFactory()
ILcdInputStreamFactoryCapable
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
public void setFeatureFilter(ILcdFilter aFeatureFilter)
aFeatureFilter
- the filter to apply, or null
if no filter should be used.public ILcdFilter getFeatureFilter()
null
if none is used.null
if none is used.public void setFeatureThemeMap(ILcdGDFFeatureThemeMap aFeatureThemeMap)
ILcdGDFFeatureThemeMap
to be used by this decoder. A model is created
per
theme in the feature
theme map - and all features will be put in the appropriate model, according to the feature
theme map. If
null
, all features will be put in one model. By default, the
TLcdGDFDefaultFeatureThemeMap
is
used.aFeatureThemeMap
- the ILcdGDFFeatureThemeMap
that is to be used by this
decoder.public ILcdGDFFeatureThemeMap getFeatureThemeMap()
ILcdGDFFeatureThemeMap
used by this decoder.ILcdGDFFeatureThemeMap
used by this decoder.public void setDecodeZCoordinate(boolean aDecodeZCoordinate)
false
will results in a slightly better memory usage.
The default value is false
.aDecodeZCoordinate
- boolean indicating whether the Z value of coordinates should be
taken
into account or not.public boolean isDecodeZCoordinate()
true
if the z coordinate decoding flag is set,
false
otherwise.true
if the z coordinate decoding flag is set,
false
otherwise.public void setDecodeAttributes(boolean aDecodeAttributes)
false
will result
in a slightly faster decoding and will require less memory, but not all information (e.g. road
classes, names, ...) will
be available in the model.
The default value is true
.aDecodeAttributes
- boolean indicating whether to decode attributes or not.public boolean isDecodeAttributes()
true
if the attribute decoding flag is set, false
otherwise.true
if the attribute decoding flag is set, false
otherwise.public void setDecodeRelationships(boolean aDecodeRelationships)
false
will
result in a slightly faster decoding and will require less memory, but not all information
(e.g. turn restrictions) will
be available in the model.
The default value is true
.aDecodeRelationships
- boolean indicating whether to decode relationships or not.public boolean isDecodeRelationships()
true
if the relationship decoding flag is set,
false
otherwise.true
if the relationship decoding flag is set,
false
otherwise.public void setDecodeComplexFeatures(boolean aDecodeComplexFeatures)
false
will
result in a slightly faster decoding and will require less memory. All features constituting a
complex feature will be
available in the model, but the complex feature itself will not.
The default value is true
.aDecodeComplexFeatures
- boolean indicating whether to decode complex features or not.public boolean isDecodeComplexFeatures()
true
if the complex features decoding flag is set,
false
otherwise.true
if the complex features decoding flag is set,
false
otherwise.public void setTextTypeCodes(java.lang.String[] aTextTypeCodes)
Description | Attribute Type Code |
---|---|
Official Name Prefix | OX |
Official Name Text | ON |
Alternate Name Text | AN |
Multi-media Attachment Name | MN |
Directional Prefix | DP |
Street Type Prefix | SX |
Official Street Name Text | OF |
Alternate Street Name TExt | AL |
Street Type Suffix | ST |
Directional Suffix | DS |
Pronunciation | PO |
Exit Number | EN |
Route Number | RN |
Route Number on Sign | RX |
Building Class Name | BC |
Destination Location | DL |
Other Textual Content on Traffic Sign | CT |
Brand Name | BA |
Place Name | PE |
Street Name | SN |
Telefax Number | TX |
Telephone Number | TL |
aTextTypeCodes
- array of type codes whose attribute value is a pointer to a text record.public java.lang.String[] getTextTypeCodes()
public void setTimeDomainTypeCodes(java.lang.String[] aTimeDomainTypeCodes)
Description | Attribute Type Code |
---|---|
Validity Period | VP |
Opening Record | OP |
aTimeDomainTypeCodes
- array of type codes whose attribute value is a pointer to a time
domain record.public java.lang.String[] getTimeDomainTypeCodes()
public java.lang.String getDisplayName()
ILcdModelDecoder
ILcdModelDecoder
.getDisplayName
in interface ILcdModelDecoder
ILcdModelDecoder
.public boolean canDecodeSource(java.lang.String aSourceName)
ILcdModelDecoder
canDecodeSource
in interface ILcdModelDecoder
aSourceName
- the data source to be verified; typically a file name or a URL.true
if this decoder can likely decode the data specified by the source name, false
otherwise.public ILcdModel decode(java.lang.String aSourceName) throws java.io.IOException
decode
in interface ILcdModelDecoder
aSourceName
- the source document to be decoded.java.io.IOException
- if the given source document cannot be (fully) read or is damaged.