Package com.luciad.format.vpf
Class TLcdVPFLibrary
java.lang.Object
com.luciad.format.vpf.TLcdVPFLibrary
Models the VPF library level.
A VPF library is part of a database (
TLcdVPFDatabase) and contains a set of coverages
(TLcdVPFCoverage), all having the same geographic extent (for example Europa & Asia).
All geometry within a VPF library is expressed in the same geographic reference system, associated
with this library.
Optionally, a data quality descriptor can be associated with each coverage.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdVPFLibrary(String aPathName, String aLibraryName, ILcdBuffer aBuffer) Creates aTLcdVPFLibrarywhich path isaPathand which name isaLibraryName.TLcdVPFLibrary(String aPathName, String aLibraryName, ILcdBuffer aBuffer, boolean aFullDecode) Creates aTLcdVPFLibrarywhich path isaPathand which name isaLibraryName(see description above). -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.theGRTtable is decoded automatically on the first attempt to access it.voidDeprecated.theLHTtable is decoded automatically on the first attempt to access it.voidDeprecated.theTILEREFtable is decoded automatically on the first attempt to access it.booleanReturnstrueif this VPF library is equal to the given object.Returns the minimum bounding rectangle (MBR) of this library.getCoverage(String aCoverageName) Returns theTLcdVPFCoverageof this library which name isaCoverageName.String[]Returns the names of all coverages contained in this library.Returns an array containing all coverages that are part of this library.Returns the database to which this library belongs.Returns a description of the data quality of this library, ornullif no data quality information is available for this library.Returns a brief textual description for this entity.Returns theILcdModelReferencedescribing the geographic reference system in which all geometry in this library is expressed.getName()Returns the short name of this entity, used as identifier in the VPF database.Returns the path to the directory of this library, for example/data/vmaplv0/eusprotofor the eusproto library of the vmaplv0 database.Returns the VPF product type identifier of this library (for example 'VMAP Level 0').intgetScale()Returns the denominator of the source scale of the library.getTiles()Returns an array ofTLcdVPFTileobjects, representing the tiling scheme used in this library, ornullif this library is not tiled.inthashCode()booleanisTiled()Returnstrueif this library uses a tiling scheme for storing its geometry,falseotherwise.booleanDeprecated.This method has been deprecated.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.toString()Returns a brief textual description for this library.
-
Constructor Details
-
TLcdVPFLibrary
public TLcdVPFLibrary(String aPathName, String aLibraryName, ILcdBuffer aBuffer) throws TLcdCodecException, FileNotFoundException Creates aTLcdVPFLibrarywhich path isaPathand which name isaLibraryName.- Parameters:
aPathName- The path to the directory of this library.aLibraryName- The name of this library.aBuffer- This argument is no longer used.- Throws:
TLcdCodecException- If an IO exception occurs during initialization.FileNotFoundException- If a required table could not be found.
-
TLcdVPFLibrary
public TLcdVPFLibrary(String aPathName, String aLibraryName, ILcdBuffer aBuffer, boolean aFullDecode) throws TLcdCodecException, FileNotFoundException Creates aTLcdVPFLibrarywhich path isaPathand which name isaLibraryName(see description above).- Parameters:
aPathName- The path to the directory of this library.aLibraryName- The name of this library.aBuffer- This argument is no longer used.aFullDecode- This argument is no longer used.- Throws:
TLcdCodecException- If an IO exception occurs during initialization.FileNotFoundException- If a required table could not be found.
-
-
Method Details
-
getPathName
Returns the path to the directory of this library, for example/data/vmaplv0/eusprotofor the eusproto library of the vmaplv0 database.- Returns:
- the path to the directory of this library.
-
getDescription
Returns a brief textual description for this entity.- Returns:
- a brief textual description for this entity.
-
getDatabase
Returns the database to which this library belongs.- Returns:
- the database to which this library belongs.
-
getCoverages
Returns an array containing all coverages that are part of this library. If the library contains no coverages, an array of length zero will be returned. The order of the coverages in theCATtable is preserved.- Returns:
- all coverages that are part of this library.
-
getCoverageNames
Returns the names of all coverages contained in this library. The order of the coverages in theCATtable is preserved.- Returns:
- the names of all coverages contained in this library.
-
getCoverage
Returns theTLcdVPFCoverageof this library which name isaCoverageName. If no coverage exists with the given name,nullis returned.- Parameters:
aCoverageName- the name of the coverage to be returned. This should correspond to the name that is in the COVERAGE_NAME column of the CAT table.- Returns:
- the
TLcdVPFCoverageof this library which name isaCoverageName. - Throws:
NullPointerException- ifaLibraryName == null
-
getProductType
Returns the VPF product type identifier of this library (for example 'VMAP Level 0').- Returns:
- the VPF product type identifier of this library.
-
getScale
public int getScale()Returns the denominator of the source scale of the library.- Returns:
- the denominator of the source scale of the library.
-
getBounds
Returns the minimum bounding rectangle (MBR) of this library. The MBR is retrieved from the database'sLATtable. It is always expressed in geodetic coordinates.- Returns:
- the MBR of this library.
-
getModelReference
Returns theILcdModelReferencedescribing the geographic reference system in which all geometry in this library is expressed.- Returns:
- the
ILcdModelReferenceused within this library.
-
getDataQualityDescriptor
Returns a description of the data quality of this library, ornullif no data quality information is available for this library.- Returns:
- the
TLcdVPFDataQualityDescriptordescribing the data quality of this library.
-
getTiles
Returns an array ofTLcdVPFTileobjects, representing the tiling scheme used in this library, ornullif this library is not tiled.- Returns:
- an array of
TLcdVPFTileobjects, representing the tiling scheme used in this library.
-
isTiled
public boolean isTiled()Returnstrueif this library uses a tiling scheme for storing its geometry,falseotherwise.- Returns:
trueif this library uses a tiling scheme,falseotherwise.
-
decodeLHT
Deprecated.theLHTtable is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theLHTtable of this library.- Throws:
TLcdCodecException- if an IO exception occurs during decoding of theLHTtable.FileNotFoundException- if theLHTtable does not exist.
-
decodeCAT
Deprecated.theCATtable is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theCATtable of this library.- Throws:
TLcdCodecException- if an IO exception occurs during decoding of theCATtable.FileNotFoundException- if theCATtable does not exist.
-
decodeTILEREF
public void decodeTILEREF()Deprecated.theTILEREFtable is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theTILEREFtable of this library.- Throws:
TLcdCodecException- if an IO exception occurs during decoding of theTILEREFtable.FileNotFoundException- if theTILEREFtable does not exist.
-
decodeGRT
Deprecated.theGRTtable is decoded automatically on the first attempt to access it. this method should no longer be called explicitly.Decodes theGRTtable.- Throws:
TLcdCodecException- if an IO exception occurs during decoding of theGRTtable.FileNotFoundException- if theGRTtable does not exist.
-
toString
Returns a brief textual description for this library. The exact details of the representation are unspecified and subject to change. Depending on the application, thegetName()orgetDescription()might be used as a good source of a textual description for this library. -
equals
Returnstrueif this VPF library is equal to the given object. Two VPF libraries are considered equal if the databases to which they belong are equal, and their names are equal. -
hashCode
public int hashCode() -
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istruethen all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getName
Returns the short name of this entity, used as identifier in the VPF database. For example:- vmaplv0 for a database
- eusproto for a library
- trans for a coverage
- roadl for a feature class
- Returns:
- the short name of this entity.
-
CATtable is decoded automatically on the first attempt to access it.