Package com.luciad.format.s57
Class TLcdS57CatalogueDataSource
java.lang.Object
com.luciad.format.s57.TLcdS57CatalogueDataSource
- All Implemented Interfaces:
ILcdDataSource
A data source for S-57 catalogues or virtual catalogues.
It can be decoded by the
com.luciad.format.s57.TLcdS57CatalogueModelDecoder
.
This data source contains a list of one or more S-57 catalogue sources (CATALOG.031 files), and/or individual cell
files (.000, .001, .002, ... files).
In case of multiple catalogues and/or cells, the catalogues will be decoded as one virtual catalogue.
An optional id can be set on the data source; the id is used by the SENC cache as the unique identifier to refer to
this data source.
This data source can also be used for catalogues/cells containing S-63 encrypted data.
In that case it can be decoded by the com.luciad.format.s63.TLcdS63CatalogueModelDecoder
or the com.luciad.format.s63.TLcdS63UnifiedModelDecoder
.
Warning: it is not allowed to mix S-63 and S-57 data in the same TLcdS57CatalogueDataSource
instance, nor is it allowed to mix data of different product types.
The TLcdS57CatalogueDataSource
will accept such a mix, but the model decoding will fail.- Since:
- 2014.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for creatingTLcdS57CatalogueDataSource
data sources. -
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a newTLcdS57CatalogueDataSource
based on the information in theBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns all catalogue sources which are part of this data source.Returns all cell sources which are part of this data source.Returns a string description of the data source.getId()
Returns the unique ID of this data source.int
hashCode()
Returns a new, empty builder for aTLcdS57CatalogueDataSource
.toString()
-
Constructor Details
-
TLcdS57CatalogueDataSource
Creates a new
TLcdS57CatalogueDataSource
based on the information in theBuilder
.This constructor is only here for subclasses. If you want to create a new
TLcdS57CatalogueDataSource
, you should call theTLcdS57CatalogueDataSource.Builder.build()
method on a builder instance.- Parameters:
aBuilder
- The builder
-
-
Method Details
-
getId
Returns the unique ID of this data source. This is used to identify the data source in the SENC cache.- Returns:
- the unique ID of this data source
-
getCatalogueSources
Returns all catalogue sources which are part of this data source.- Returns:
- all catalogue sources which are part of this data source.
- See Also:
-
getCellSources
Returns all cell sources which are part of this data source.- Returns:
- all cell sources which are part of this data source.
- See Also:
-
getDescription
Description copied from interface:ILcdDataSource
Returns a string description of the data source. This will typically be used in a GUI, or in error and warning messages.- Specified by:
getDescription
in interfaceILcdDataSource
- Returns:
- a String describing the data source.
-
equals
-
hashCode
public int hashCode() -
toString
-
newBuilder
Returns a new, empty builder for aTLcdS57CatalogueDataSource
.- Returns:
- a new, empty builder for a
TLcdS57CatalogueDataSource
. - Since:
- 2014.0
-