All Implemented Interfaces:
AutoCloseable, ResourceOnFileSystem, StoreResource, Resource, Localized

final class Store extends URIDataStore
A data store which creates data objects from a WKT definition.
Note: this class differs from PRJDataStore in that the file containing WKT definition is the main file, not an auxiliary file.
Since:
0.7
Version:
1.3
  • Field Details

    • SIZE_LIMIT

      private static final int SIZE_LIMIT
      Arbitrary size limit. Files that big are likely to be something else than WKT, so this limit allows earlier error reporting than loading huge amount of data before to detect that those data are not what we taught they are.
      See Also:
    • source

      private Reader source
      The reader, set by the constructor and cleared when no longer needed.
    • locale

      private final Locale locale
      The locale for InternationalString localization or null for Locale.ROOT (usually English). This locale is not used for parsing numbers or dates.
    • timezone

      private final TimeZone timezone
      Timezone for dates, or null for UTC.
    • library

      private final GeometryLibrary library
      The geometry library, or null for the default.
    • objects

      private final List<Object> objects
      The parsed objects, filled only when first needed. May still be empty if the parsing failed.
    • metadata

      private org.opengis.metadata.Metadata metadata
      The metadata object, created when first needed.
  • Constructor Details

    • Store

      public Store(StoreProvider provider, StorageConnector connector) throws DataStoreException
      Creates a new WKT store from the given file, URL or stream.
      Parameters:
      provider - the factory that created this DataStore instance, or null if unspecified.
      connector - information about the storage (URL, stream, etc).
      Throws:
      DataStoreException - if an error occurred while opening the stream.
  • Method Details