You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2021/03/13 21:55:56 UTC

[incubator-sedona-website] branch asf-site updated: Build website

This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-sedona-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 659f8d5  Build website
659f8d5 is described below

commit 659f8d580def61f53cfb0dcc9eb05a482b94676f
Author: Jia Yu <ji...@gmail.com>
AuthorDate: Sat Mar 13 13:55:45 2021 -0800

    Build website
---
 api/sql/GeoSparkSQL-Function/index.html | 54 ++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/api/sql/GeoSparkSQL-Function/index.html b/api/sql/GeoSparkSQL-Function/index.html
index b2433b1..f24eed0 100644
--- a/api/sql/GeoSparkSQL-Function/index.html
+++ b/api/sql/GeoSparkSQL-Function/index.html
@@ -1238,6 +1238,24 @@
   
 </li>
       
+        <li class="md-nav__item">
+  
+  <a href="#st_linesubstring" class="md-nav__link">
+    ST_LineSubstring
+  </a>  
+  
+  
+</li>
+      
+        <li class="md-nav__item">
+  
+  <a href="#st_lineinterpolatepoint" class="md-nav__link">
+    ST_LineInterpolatePoint
+  </a>  
+  
+  
+</li>
+      
     </ul>
   
 </nav>
@@ -2431,6 +2449,24 @@
   
 </li>
       
+        <li class="md-nav__item">
+  
+  <a href="#st_linesubstring" class="md-nav__link">
+    ST_LineSubstring
+  </a>  
+  
+  
+</li>
+      
+        <li class="md-nav__item">
+  
+  <a href="#st_lineinterpolatepoint" class="md-nav__link">
+    ST_LineInterpolatePoint
+  </a>  
+  
+  
+</li>
+      
     </ul>
   
 </nav>
@@ -2505,7 +2541,7 @@
 <p>Transform the Spatial Reference System / Coordinate Reference System of A, from SourceCRS to TargetCRS</p>
 <div class="admonition note">
 <p class="admonition-title">Note</p>
-<p>By default, <mark>ST_Transform</mark> assumes Longitude/Latitude is your coordinate X/Y. If this is not the case, set <mark>ST_FlipCoordinates</mark> to swap X and Y.</p>
+<p>You can use <mark>ST_FlipCoordinates</mark> to swap X and Y.</p>
 </div>
 <div class="admonition note">
 <p class="admonition-title">Note</p>
@@ -2802,6 +2838,22 @@ LINESTRING(0 0, 1 1, 1 0, 21 52)
 <p>Spark SQL example:
 <div class="highlight"><pre><span></span><code><span class="k">SELECT</span> <span class="n">ST_MinimumBoundingCircle</span><span class="p">(</span><span class="n">ST_GeomFromText</span><span class="p">(</span><span class="s1">&#39;POLYGON((1 1,0 0, -1 1, 1 1))&#39;</span><span class="p">))</span>
 </code></pre></div></p>
+<h2 id="st_linesubstring">ST_LineSubstring<a class="headerlink" href="#st_linesubstring" title="Permanent link">&para;</a></h2>
+<p>Return a linestring being a substring of the input one starting and ending at the given fractions of total 2d length. Second and third arguments are Double values between 0 and 1. This only works with LINESTRINGs.</p>
+<p>Format: <code>ST_LineSubstring(geom: LineString, startFraction: Double, endFraction: Double)</code></p>
+<p>Since: <code>v1.0.1</code></p>
+<p>Spark SQL example:
+<div class="highlight"><pre><span></span><code><span class="k">SELECT</span> <span class="n">ST_LineSubstring</span><span class="p">(</span><span class="n">df</span><span class="p">.</span><span class="n">geometry</span><span class="p">,</span> <span class="mi">0</span><span class="p">.</span><span class="mi">333</span><span class="p">,</span> <span class="mi">0</span><span class="p">.</span><span class="mi">666</span><span class="p">)</span>
+<span class="k">FROM</span> <span class="n">df</span>
+</code></pre></div></p>
+<h2 id="st_lineinterpolatepoint">ST_LineInterpolatePoint<a class="headerlink" href="#st_lineinterpolatepoint" title="Permanent link">&para;</a></h2>
+<p>Returns a point interpolated along a line. First argument must be a LINESTRING. Second argument is a Double between 0 and 1 representing fraction of total linestring length the point has to be located.</p>
+<p>Format: <code>ST_LineInterpolatePoint(geom: LineString, fraction: Double)</code></p>
+<p>Since: <code>v1.0.1</code></p>
+<p>Spark SQL example:
+<div class="highlight"><pre><span></span><code><span class="k">SELECT</span> <span class="n">ST_LineInterpolatePoint</span><span class="p">(</span><span class="n">df</span><span class="p">.</span><span class="n">geometry</span><span class="p">,</span> <span class="mi">0</span><span class="p">.</span><span class="mi">5</span><span class="p">)</span>
+<span class="k">FROM</span> <span class="n">df</span>
+</code></pre></div></p>