Skip to content

Commit 3c661f2

Browse files
author
Documenter.jl
committedSep 25, 2024·
build based on a9322fa
1 parent c7e13d9 commit 3c661f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎dev/.documenter-siteinfo.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-25T07:08:51","documenter_version":"1.7.0"}}
1+
{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-09-25T07:13:39","documenter_version":"1.7.0"}}

‎dev/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
GeoInterface.coordinates(wkt) # 2-element Vector{Float64}: 30.0 10.0
1313

1414
p = convert(ArchGDAL.IGeometry{ArchGDAL.wkbPoint}, wkt) # Geometry: POINT (30 10)</code></pre><p>As ArchGDAL geometries implement GeoInterface, we can generate the WKT for it.</p><pre><code class="language-julia hljs">wkt = WellKnownGeometry.getwkt(p) # WellKnownText{GeoFormatTypes.Geom}(GeoFormatTypes.Geom(), &quot;POINT (30.0 10.0)&quot;)
15-
GeoFormatTypes.val(wkt) # &quot;POINT (30.0 10.0)&quot;</code></pre><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="WellKnownGeometry.getwkt" href="#WellKnownGeometry.getwkt"><code>WellKnownGeometry.getwkt</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">getwkt(geom)</code></pre><p>Retrieve the Well Known Text (WKT) as <code>GeoFormatTypes.WellKnownText</code> for a <code>geom</code> that implements the GeoInterface. Use <code>GeoFormatTypes.val</code> to get the String representation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/evetion/WellKnownGeometry.jl/blob/49612c00f454f43e9a0c3929bfad4bfb5b8813e1/src/wkt.jl#L44-L49">source</a></section></article><h2 id="WellKnownBinary"><a class="docs-heading-anchor" href="#WellKnownBinary">WellKnownBinary</a><a id="WellKnownBinary-1"></a><a class="docs-heading-anchor-permalink" href="#WellKnownBinary" title="Permalink"></a></h2><p>Given a WKB byte string, we can retrieve the type and underlying coordinates, and thus convert it to other geometries using GeoInterface. Note that WKB byte strings are wrapped by GeoFormatTypes so we can distinguish them from any other byte strings.</p><pre><code class="language-julia hljs">using ArchGDAL
15+
GeoFormatTypes.val(wkt) # &quot;POINT (30.0 10.0)&quot;</code></pre><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="WellKnownGeometry.getwkt" href="#WellKnownGeometry.getwkt"><code>WellKnownGeometry.getwkt</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">getwkt(geom)</code></pre><p>Retrieve the Well Known Text (WKT) as <code>GeoFormatTypes.WellKnownText</code> for a <code>geom</code> that implements the GeoInterface. Use <code>GeoFormatTypes.val</code> to get the String representation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/evetion/WellKnownGeometry.jl/blob/a9322fadd3506ef5dcf358522f5a6f3bc1aae08e/src/wkt.jl#L44-L49">source</a></section></article><h2 id="WellKnownBinary"><a class="docs-heading-anchor" href="#WellKnownBinary">WellKnownBinary</a><a id="WellKnownBinary-1"></a><a class="docs-heading-anchor-permalink" href="#WellKnownBinary" title="Permalink"></a></h2><p>Given a WKB byte string, we can retrieve the type and underlying coordinates, and thus convert it to other geometries using GeoInterface. Note that WKB byte strings are wrapped by GeoFormatTypes so we can distinguish them from any other byte strings.</p><pre><code class="language-julia hljs">using ArchGDAL
1616
using GeoFormatTypes
1717
using WellKnownGeometry
1818
using GeoInterface
@@ -25,4 +25,4 @@
2525
GeoInterface.coordinates(wkb) # 2-element Vector{Float64}: 30.0 10.0
2626

2727
p = convert(ArchGDAL.IGeometry{ArchGDAL.wkbPoint}, wkb) # Geometry: POINT (30 10)</code></pre><p>As ArchGDAL geometries implement GeoInterface, we can generate the WKB for it.</p><pre><code class="language-julia hljs">wkb = WellKnownGeometry.getwkb(p) # WellKnownText{GeoFormatTypes.Geom}(GeoFormatTypes.Geom(), &quot;POINT (30.0 10.0)&quot;)
28-
GeoFormatTypes.val(wkb) # &quot;POINT (30.0 10.0)&quot;</code></pre><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="WellKnownGeometry.getwkb" href="#WellKnownGeometry.getwkb"><code>WellKnownGeometry.getwkb</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">getwkb(geom)</code></pre><p>Retrieve the Well Known Binary (WKB) as <code>GeoFormatTypes.WellKnownBinary</code> for a <code>geom</code> that implements the GeoInterface. Use <code>GeoFormatTypes.val</code> to get the Vector{UInt8} representation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/evetion/WellKnownGeometry.jl/blob/49612c00f454f43e9a0c3929bfad4bfb5b8813e1/src/wkb.jl#L48-L53">source</a></section></article><p>We thank Julia Computing for supporting contributions to this package.</p></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Wednesday 25 September 2024 07:08">Wednesday 25 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
28+
GeoFormatTypes.val(wkb) # &quot;POINT (30.0 10.0)&quot;</code></pre><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="WellKnownGeometry.getwkb" href="#WellKnownGeometry.getwkb"><code>WellKnownGeometry.getwkb</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">getwkb(geom)</code></pre><p>Retrieve the Well Known Binary (WKB) as <code>GeoFormatTypes.WellKnownBinary</code> for a <code>geom</code> that implements the GeoInterface. Use <code>GeoFormatTypes.val</code> to get the Vector{UInt8} representation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/evetion/WellKnownGeometry.jl/blob/a9322fadd3506ef5dcf358522f5a6f3bc1aae08e/src/wkb.jl#L48-L53">source</a></section></article><p>We thank Julia Computing for supporting contributions to this package.</p></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Wednesday 25 September 2024 07:13">Wednesday 25 September 2024</span>. Using Julia version 1.6.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

‎dev/objects.inv

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.