blob: ae22410ec7f0abe61bd4e7d9b7c4a960e02ce475 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (21) on Thu Oct 05 19:54:57 CEST 2023 -->
<title>WritableTiledResource (Apache SIS 1.4 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2023-10-05">
<meta name="description" content="declaration: module: org.apache.sis.storage, package: org.apache.sis.storage.tiling, interface: WritableTiledResource">
<meta name="generator" content="javadoc/ClassWriterImpl">
<meta name="keywords" content="org.apache.sis.storage.tiling.WritableTiledResource interface">
<meta name="keywords" content="getTileMatrixSets()">
<meta name="keywords" content="createTileMatrixSet()">
<meta name="keywords" content="deleteTileMatrixSet()">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var pathtoroot = "../../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span></button>
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="../../../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html#class">Help</a></li>
</ul>
<ul class="sub-nav-list-small">
<li>
<p>Summary:</p>
<ul>
<li>Nested</li>
<li>Field</li>
<li>Constr</li>
<li><a href="#method-summary">Method</a></li>
</ul>
</li>
<li>
<p>Detail:</p>
<ul>
<li>Field</li>
<li>Constr</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</li>
</ul>
</div>
<div class="sub-nav">
<div id="navbar-sub-list">
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><a href="../../../../../../search.html">SEARCH</a>
<input type="text" id="search-input" disabled placeholder="Search">
<input type="reset" id="reset-button" disabled value="reset">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="module-label-in-type">Module</span>&nbsp;<a href="../../../../../module-summary.html">org.apache.sis.storage</a></div>
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.sis.storage.tiling</a></div>
<h1 title="Interface WritableTiledResource" class="title">Interface WritableTiledResource</h1>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>All Superinterfaces:</dt>
<dd><code><a href="../Resource.html" title="interface in org.apache.sis.storage">Resource</a></code>, <code><a href="TiledResource.html" title="interface in org.apache.sis.storage.tiling">Tiled­Resource</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">WritableTiledResource</span><span class="extends-implements">
extends <a href="TiledResource.html" title="interface in org.apache.sis.storage.tiling">TiledResource</a></span></div>
<div class="block">A <code>Tiled­Resource</code> that can write and delete tile matrix sets.
<p>All methods in this interface expect non-null arguments are return non-null values.</p></div>
<dl class="notes">
<dt>Since:</dt>
<dd>1.2</dd>
</dl>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="WritableTileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">Writable­Tile­Matrix­Set</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#createTileMatrixSet(org.apache.sis.storage.tiling.TileMatrixSet)" class="member-name-link">create­Tile­Matrix­Set</a><wbr>(<a href="TileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">Tile­Matrix­Set</a>&nbsp;tiles)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Adds the given tile matrix set to this resource and returns a writable instance for later completion.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#deleteTileMatrixSet(java.lang.String)" class="member-name-link">delete­Tile­Matrix­Set</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;identifier)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Deletes a <code>Tile­Matrix­Set</code> identified by the given name.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><wbr>&lt;? extends <a href="WritableTileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">Writable­Tile­Matrix­Set</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getTileMatrixSets()" class="member-name-link">get­Tile­Matrix­Sets</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the collection of all available tile matrix sets in this resource.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-Resource">Methods inherited from interface&nbsp;<a href="../Resource.html" title="interface in org.apache.sis.storage">Resource</a></h3>
<code><a href="../Resource.html#addListener(java.lang.Class,org.apache.sis.storage.event.StoreListener)">add­Listener</a>, <a href="../Resource.html#getIdentifier()">get­Identifier</a>, <a href="../Resource.html#getMetadata()">get­Metadata</a>, <a href="../Resource.html#removeListener(java.lang.Class,org.apache.sis.storage.event.StoreListener)">remove­Listener</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="getTileMatrixSets()">
<h3>getTileMatrixSets</h3>
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;? extends <a href="WritableTileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">WritableTileMatrixSet</a>&gt;</span>&nbsp;<span class="element-name">getTileMatrixSets</span>()
throws <span class="exceptions"><a href="../DataStoreException.html" title="class in org.apache.sis.storage">DataStoreException</a></span></div>
<div class="block">Returns the collection of all available tile matrix sets in this resource.
The returned collection is unmodifiable but live: additions or removals of
tile matrix sets in this resource are reflected in the returned collection.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="TiledResource.html#getTileMatrixSets()">get­Tile­Matrix­Sets</a></code>&nbsp;in interface&nbsp;<code><a href="TiledResource.html" title="interface in org.apache.sis.storage.tiling">Tiled­Resource</a></code></dd>
<dt>Returns:</dt>
<dd>an unmodifiable view of all <a href="TileMatrixSet.html" title="interface in org.apache.sis.storage.tiling"><code>Tile­Matrix­Set</code></a> instances in this resource.</dd>
<dt>Throws:</dt>
<dd><code><a href="../DataStoreException.html" title="class in org.apache.sis.storage">Data­Store­Exception</a></code> - if an error occurred while fetching the tile matrix sets.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createTileMatrixSet(org.apache.sis.storage.tiling.TileMatrixSet)">
<h3>createTileMatrixSet</h3>
<div class="member-signature"><span class="return-type"><a href="WritableTileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">WritableTileMatrixSet</a></span>&nbsp;<span class="element-name">createTileMatrixSet</span><wbr><span class="parameters">(<a href="TileMatrixSet.html" title="interface in org.apache.sis.storage.tiling">TileMatrixSet</a>&nbsp;tiles)</span>
throws <span class="exceptions"><a href="../DataStoreException.html" title="class in org.apache.sis.storage">DataStoreException</a></span></div>
<div class="block">Adds the given tile matrix set to this resource and returns a writable instance for later completion.
Typically the given <a href="TileMatrixSet.html" title="interface in org.apache.sis.storage.tiling"><code>Tile­Matrix­Set</code></a> instance contains no tile and is used only as a template.
If the <code>Tile­Matrix­Set</code> is not empty, then the tiles that it contains are written immediately.
<p>This method returns a writable tile matrix set with the same tiles than the given <code>Tile­Matrix­Set</code>.
The identifier and the envelope of the returned set may be different, but the CRS and tiling scheme shall
be equivalent with a tolerance for rounding errors.</p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>tiles</code> - the (potentially empty) tile matrix set to create.</dd>
<dt>Returns:</dt>
<dd>a writable tile matrix set to use for adding more tiles.</dd>
<dt>Throws:</dt>
<dd><code><a href="../ReadOnlyStorageException.html" title="class in org.apache.sis.storage">Read­Only­Storage­Exception</a></code> - if this resource is not writable. It may be caused by insufficient credentials.</dd>
<dd><code><a href="../IncompatibleResourceException.html" title="class in org.apache.sis.storage">Incompatible­Resource­Exception</a></code> - if the given tile matrix set is incompatible with this resource.</dd>
<dd><code><a href="../DataStoreException.html" title="class in org.apache.sis.storage">Data­Store­Exception</a></code> - if creating the tile matrix set failed for another reason.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteTileMatrixSet(java.lang.String)">
<h3>deleteTileMatrixSet</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">deleteTileMatrixSet</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;identifier)</span>
throws <span class="exceptions"><a href="../DataStoreException.html" title="class in org.apache.sis.storage">DataStoreException</a></span></div>
<div class="block">Deletes a <code>Tile­Matrix­Set</code> identified by the given name. The given identifier shall be the
<code><a href="TileMatrixSet.html#getIdentifier()">Tile­Matrix­Set​.get­Identifier()</a>.to­String()</code> value of the set to delete.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>identifier</code> - identifier of the <a href="TileMatrixSet.html" title="interface in org.apache.sis.storage.tiling"><code>Tile­Matrix­Set</code></a> to delete.</dd>
<dt>Throws:</dt>
<dd><code><a href="../NoSuchDataException.html" title="class in org.apache.sis.storage">No­Such­Data­Exception</a></code> - if there is no tile matrix set associated to the given identifier in this resource.</dd>
<dd><code><a href="../ReadOnlyStorageException.html" title="class in org.apache.sis.storage">Read­Only­Storage­Exception</a></code> - if this resource is not writable. It may be caused by insufficient credentials.</dd>
<dd><code><a href="../DataStoreException.html" title="class in org.apache.sis.storage">Data­Store­Exception</a></code> - if deleting the tile matrix set failed for another reason.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
</div>
</div>
</body>
</html>