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
ConstructorDescriptionTLcdVPFLibrary
(String aPathName, String aLibraryName, ILcdBuffer aBuffer) Creates aTLcdVPFLibrary
which path isaPath
and which name isaLibraryName
.TLcdVPFLibrary
(String aPathName, String aLibraryName, ILcdBuffer aBuffer, boolean aFullDecode) Creates aTLcdVPFLibrary
which path isaPath
and which name isaLibraryName
(see description above). -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
Deprecated.theGRT
table is decoded automatically on the first attempt to access it.void
Deprecated.theLHT
table is decoded automatically on the first attempt to access it.void
Deprecated.theTILEREF
table is decoded automatically on the first attempt to access it.boolean
Returnstrue
if this VPF library is equal to the given object.Returns the minimum bounding rectangle (MBR) of this library.getCoverage
(String aCoverageName) Returns theTLcdVPFCoverage
of 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, ornull
if no data quality information is available for this library.Returns a brief textual description for this entity.Returns theILcdModelReference
describing 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/eusproto
for the eusproto library of the vmaplv0 database.Returns the VPF product type identifier of this library (for example 'VMAP Level 0').int
getScale()
Returns the denominator of the source scale of the library.getTiles()
Returns an array ofTLcdVPFTile
objects, representing the tiling scheme used in this library, ornull
if this library is not tiled.int
hashCode()
boolean
isTiled()
Returnstrue
if this library uses a tiling scheme for storing its geometry,false
otherwise.boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setTraceOn
(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 aTLcdVPFLibrary
which path isaPath
and 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 aTLcdVPFLibrary
which path isaPath
and 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/eusproto
for 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 theCAT
table 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 theCAT
table is preserved.- Returns:
- the names of all coverages contained in this library.
-
getCoverage
Returns theTLcdVPFCoverage
of this library which name isaCoverageName
. If no coverage exists with the given name,null
is 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
TLcdVPFCoverage
of 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'sLAT
table. It is always expressed in geodetic coordinates.- Returns:
- the MBR of this library.
-
getModelReference
Returns theILcdModelReference
describing the geographic reference system in which all geometry in this library is expressed.- Returns:
- the
ILcdModelReference
used within this library.
-
getDataQualityDescriptor
Returns a description of the data quality of this library, ornull
if no data quality information is available for this library.- Returns:
- the
TLcdVPFDataQualityDescriptor
describing the data quality of this library.
-
getTiles
Returns an array ofTLcdVPFTile
objects, representing the tiling scheme used in this library, ornull
if this library is not tiled.- Returns:
- an array of
TLcdVPFTile
objects, representing the tiling scheme used in this library.
-
isTiled
public boolean isTiled()Returnstrue
if this library uses a tiling scheme for storing its geometry,false
otherwise.- Returns:
true
if this library uses a tiling scheme,false
otherwise.
-
decodeLHT
Deprecated.theLHT
table is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theLHT
table of this library.- Throws:
TLcdCodecException
- if an IO exception occurs during decoding of theLHT
table.FileNotFoundException
- if theLHT
table does not exist.
-
decodeCAT
Deprecated.theCAT
table is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theCAT
table of this library.- Throws:
TLcdCodecException
- if an IO exception occurs during decoding of theCAT
table.FileNotFoundException
- if theCAT
table does not exist.
-
decodeTILEREF
public void decodeTILEREF()Deprecated.theTILEREF
table is decoded automatically on the first attempt to access it. This method should no longer be called explicitly.Decodes theTILEREF
table of this library.- Throws:
TLcdCodecException
- if an IO exception occurs during decoding of theTILEREF
table.FileNotFoundException
- if theTILEREF
table does not exist.
-
decodeGRT
Deprecated.theGRT
table is decoded automatically on the first attempt to access it. this method should no longer be called explicitly.Decodes theGRT
table.- Throws:
TLcdCodecException
- if an IO exception occurs during decoding of theGRT
table.FileNotFoundException
- if theGRT
table 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
Returnstrue
if 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 istrue
then 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 eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then 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.Returnstrue
if 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.
-
CAT
table is decoded automatically on the first attempt to access it.