Skip to content

Commit

Permalink
fixed geometry bug; improved support for defining features properties…
Browse files Browse the repository at this point in the history
… and mvalues for typesafety
  • Loading branch information
Mr Martian committed Jun 21, 2024
1 parent 64dd487 commit ca472da
Show file tree
Hide file tree
Showing 63 changed files with 191 additions and 162 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Notable features of S2JSON are:
* 🧊 Support for 3D geometries.
* ♏ Support for M-Values for each geometry point.
* ♻️ Feature Properties & M-Values are defined in scope to ensure they can be easily processed by lower level languages as structures, but also adds value to other projects down the line.
* GeoJSON no longer supports `GeometryCollection`.
* 🛑 GeoJSON no longer supports `GeometryCollection`.

This spec also extends the spec to include M-Values, Attribution,

Expand Down
2 changes: 1 addition & 1 deletion docs/hierarchy.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>s2json-spec - v1.0.0</title><meta name="description" content="Documentation for s2json-spec"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">s2json-spec - v1.0.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h2>s2json-spec - v1.0.0</h2></div><div class="tsd-panel tsd-typography"><a id="md:s2json--------" class="tsd-anchor"></a><h1><a href="#md:s2json--------">s2json <a href="https://npmjs.org/package/s2json-spec"><img src="https://img.shields.io/npm/v/s2json-spec.svg?logo=npm&logoColor=white" alt="npm"></a> <a href="https://crates.io/crates/s2json"><img src="https://img.shields.io/crates/v/s2json.svg?logo=rust&logoColor=white" alt="crate"></a> <a href="https://www.npmjs.com/package/s2json-spec"><img src="https://img.shields.io/npm/dm/s2json-spec.svg" alt="downloads"></a> <a href="https://bundlejs.com/?q=s2json-spec&treeshake=%5B%7B+VectorTile+%7D%5D"><img src="https://img.shields.io/bundlejs/size/s2json-spec?exports=VectorTile" alt="bundle"></a> <a href="https://open-s2.github.io/s2json/"><img src="https://img.shields.io/badge/docs-typescript-yellow.svg" alt="docs-ts"></a> <a href="https://docs.rs/s2json"><img src="https://img.shields.io/badge/docs-rust-yellow.svg" alt="docs-rust"></a> <img src="https://raw.githubusercontent.com/Open-S2/s2json/master/assets/doc-coverage.svg" alt="doc-coverage"> <a href="https://discord.opens2.com"><img src="https://img.shields.io/discord/953563031701426206?logo=discord&logoColor=white" alt="Discord"></a></a></h1><a id="md:about" class="tsd-anchor"></a><h2><a href="#md:about">About</a></h2><p>S2JSON is a format for encoding a variety of geographic data structures that simplifies the GeoJSON spec and builds ontop of it to include S2 Geometry.</p>
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>s2json-spec - v1.0.1</title><meta name="description" content="Documentation for s2json-spec"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">s2json-spec - v1.0.1</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h2>s2json-spec - v1.0.1</h2></div><div class="tsd-panel tsd-typography"><a id="md:s2json--------" class="tsd-anchor"></a><h1><a href="#md:s2json--------">s2json <a href="https://npmjs.org/package/s2json-spec"><img src="https://img.shields.io/npm/v/s2json-spec.svg?logo=npm&logoColor=white" alt="npm"></a> <a href="https://crates.io/crates/s2json"><img src="https://img.shields.io/crates/v/s2json.svg?logo=rust&logoColor=white" alt="crate"></a> <a href="https://www.npmjs.com/package/s2json-spec"><img src="https://img.shields.io/npm/dm/s2json-spec.svg" alt="downloads"></a> <a href="https://bundlejs.com/?q=s2json-spec&treeshake=%5B%7B+VectorTile+%7D%5D"><img src="https://img.shields.io/bundlejs/size/s2json-spec?exports=VectorTile" alt="bundle"></a> <a href="https://open-s2.github.io/s2json/"><img src="https://img.shields.io/badge/docs-typescript-yellow.svg" alt="docs-ts"></a> <a href="https://docs.rs/s2json"><img src="https://img.shields.io/badge/docs-rust-yellow.svg" alt="docs-rust"></a> <img src="https://raw.githubusercontent.com/Open-S2/s2json/master/assets/doc-coverage.svg" alt="doc-coverage"> <a href="https://discord.opens2.com"><img src="https://img.shields.io/discord/953563031701426206?logo=discord&logoColor=white" alt="Discord"></a></a></h1><a id="md:about" class="tsd-anchor"></a><h2><a href="#md:about">About</a></h2><p>S2JSON is a format for encoding a variety of geographic data structures that simplifies the GeoJSON spec and builds ontop of it to include S2 Geometry.</p>
<p>Notable features of S2JSON are:</p>
<ul>
<li>Properties data is clearly defined on how it can be shaped.</li>
<li>🧊 Support for 3D geometries.</li>
<li>♏ Support for M-Values for each geometry point.</li>
<li>♻️ Feature Properties &amp; M-Values are defined in scope to ensure they can be easily processed by lower level languages as structures, but also adds value to other projects down the line.</li>
<li>GeoJSON no longer supports <code>GeometryCollection</code>.</li>
<li>🛑 GeoJSON no longer supports <code>GeometryCollection</code>.</li>
</ul>
<p>This spec also extends the spec to include M-Values, Attribution,</p>
<p>The</p>
Expand All @@ -27,4 +27,4 @@
<a id="md:generating-coverage-report" class="tsd-anchor"></a><h3><a href="#md:generating-coverage-report">Generating Coverage Report</a></h3><p>To generate the coverage report, use the following command:</p>
<pre><code class="language-bash"><span class="hl-5">cargo</span><span class="hl-1"> </span><span class="hl-3">tarpaulin</span><br/><span class="hl-0"># bacon</span><br/><span class="hl-5">bacon</span><span class="hl-1"> </span><span class="hl-3">coverage</span><span class="hl-1"> </span><span class="hl-0"># or type `l` inside the tool</span>
</code><button>Copy</button></pre>
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#md:s2json--------"><span>s2json </span></a><ul><li><a href="#md:about"><span>About</span></a></li><li><a href="#md:read-the-spec"><span>Read <wbr/>The <wbr/>Spec</span></a></li><li><a href="#md:install"><span>Install</span></a></li><li><a href="#md:development"><span>Development</span></a></li><li><ul><li><a href="#md:requirements"><span>Requirements</span></a></li><li><a href="#md:running-tests"><span>Running <wbr/>Tests</span></a></li><li><a href="#md:generating-coverage-report"><span>Generating <wbr/>Coverage <wbr/>Report</span></a></li></ul></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-1"></use></svg><span>s2json-spec - v1.0.0</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#md:s2json--------"><span>s2json </span></a><ul><li><a href="#md:about"><span>About</span></a></li><li><a href="#md:read-the-spec"><span>Read <wbr/>The <wbr/>Spec</span></a></li><li><a href="#md:install"><span>Install</span></a></li><li><a href="#md:development"><span>Development</span></a></li><li><ul><li><a href="#md:requirements"><span>Requirements</span></a></li><li><a href="#md:running-tests"><span>Running <wbr/>Tests</span></a></li><li><a href="#md:generating-coverage-report"><span>Generating <wbr/>Coverage <wbr/>Report</span></a></li></ul></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-1"></use></svg><span>s2json-spec - v1.0.1</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
Loading

0 comments on commit ca472da

Please sign in to comment.