Skip to content

Commit

Permalink
Add description for ST_StartPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mlecoeuvre committed Feb 5, 2014
1 parent 9515f5a commit e447d9b
Show file tree
Hide file tree
Showing 4 changed files with 366 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/dev/ST_EndPoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ SELECT ST_EndPoint('MULTILINESTRING((1 1, 3 2, 3 1),

##### See also

* [`ST_StartPoint`](../ST_StartPoint)
* <a href="https://github.com/irstv/H2GIS/blob/master/h2spatial/src/main/java/org/h2gis/h2spatial/internal/function/spatial/properties/ST_EndPoint.java" target="_blank">Source code</a>
15 changes: 11 additions & 4 deletions docs/dev/ST_StartPoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,35 @@
layout: docs
title: ST_StartPoint
category: h2spatial/properties
description:
description: Return the first point of a <code>LINESTRING</code>
prev_section: ST_SRID
next_section: ST_X
permalink: /docs/dev/ST_StartPoint/
---

### Signatures
### Signature

{% highlight mysql %}
POINT ST_StartPoint(GEOMETRY geom);
{% endhighlight %}

### Description


Returns the first `POINT` of a `LINESTRING` as a `POINT`.
If the input parameter is not a `LINESTRING` this function returns `null`.

{% include sfs-1-2-1.html %}

### Examples
### Example

{% highlight mysql %}
SELECT ST_StartPoint('LINESTRING(1 2, 5 3, 2 6)');
-- Answer: POINT(1 2)
{% endhighlight %}

<img class="displayed" src="../ST_StartPoint.png"/>

##### See also

* [`ST_EndPoint`](../ST_EndPoint)
* <a href="https://github.com/irstv/H2GIS/blob/master/h2spatial/src/main/java/org/h2gis/h2spatial/internal/function/spatial/properties/ST_StartPoint.java" target="_blank">Source code</a>
Binary file added docs/dev/ST_StartPoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e447d9b

Please sign in to comment.