Skip to content

Commit

Permalink
Merge pull request orbisgis#783 from gpetit/doc_h2gis_version
Browse files Browse the repository at this point in the history
Add doc for H2GISversion, ST_MakeValid and ST_RemoveDuplicatedCoordinates
  • Loading branch information
ebocher authored Mar 30, 2017
2 parents 38968d9 + 84c2141 commit d165246
Show file tree
Hide file tree
Showing 37 changed files with 3,364 additions and 25 deletions.
12 changes: 8 additions & 4 deletions _data/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@
- geom3D/topography, Topography
- geom3D/triangulation, Triangulation

- title: Raster
page: raster
docs:

- title: System
page: system
docs:

- title: Applications
page: applications
docs:
- h2network, H2Network

- title: Raster
page: raster
docs:
31 changes: 31 additions & 0 deletions _includes/all_system_functions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- For this to work, every page must have a category and a description -->
<table>
<thead>
<tr>
<th>Function</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% assign pages = site.pages | sort: 'name' %}
{% assign version = page.url | replace_first:'/docs/','' | split:"/" | first %}
{% for p in pages %}
{% if p.url contains version %}
{% if p.category contains 'system' %}
{% unless p.permalink contains 'system' %}
{% if p.description %}
{% capture described %}{{ described | plus:1 }}{% endcapture %}
{% endif %}
{% capture total %}{{ total | plus:1 }}{% endcapture %}
<tr>
<td><a href="{{ p.url }}"><code>{{ p.title }}</code></a></td>
<td>{{ p.description }}</td>
</tr>
{% endunless %}
{% endif %}
{% endif %}
{% endfor %}
</tbody>
</table>

Documented functions: {{ described }}/{{ total }}.
7 changes: 7 additions & 0 deletions docs/1.2/H2GISversion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: docs
title: H2GISversion
permalink: /docs/1.2/H2GISversion/
---

Sorry, this function does not exist in this version of H2GIS.
7 changes: 7 additions & 0 deletions docs/1.2/ST_MakeValid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: docs
title: ST_MakeValid
permalink: /docs/1.2/ST_MakeValid/
---

Sorry, this function does not exist in this version of H2GIS.
3 changes: 1 addition & 2 deletions docs/1.2/applications/h2network.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
layout: docs
title: H2Network
category: applications/h2network
prev_section: applications
next_section: raster
prev_section: system
permalink: /docs/1.2/h2network/
---

Expand Down
2 changes: 1 addition & 1 deletion docs/1.2/applications/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: docs
title: Applications
category: applications
prev_section: geom3D/triangulation
prev_section: system
next_section: h2network
permalink: /docs/1.2/applications/
---
Expand Down
2 changes: 1 addition & 1 deletion docs/1.2/geom3D/triangulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: docs
title: Triangulation
category: geom3D/triangulation
prev_section: geom3D/topography
next_section: applications
next_section: raster
permalink: /docs/1.2/geom3D/triangulation/
---

Expand Down
3 changes: 2 additions & 1 deletion docs/1.2/raster/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: docs
title: Raster functions
category: raster
prev_section: h2network
prev_section: geom3D
next_section: system
permalink: /docs/1.2/raster/
---

Expand Down
12 changes: 12 additions & 0 deletions docs/1.2/system/list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: docs
title: System
category: system
prev_section: raster
next_section: applications
permalink: /docs/1.2/system/
---

Sorry, there is no system functions available in the v1.2 of H2GIS.

Please refers to the documentation under [development](../../dev/system).
7 changes: 7 additions & 0 deletions docs/1.3/H2GISversion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: docs
title: H2GISversion
permalink: /docs/1.3/H2GISversion/
---

Sorry, this function does not exist in this version of H2GIS.
7 changes: 7 additions & 0 deletions docs/1.3/ST_MakeValid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: docs
title: ST_MakeValid
permalink: /docs/1.3/ST_MakeValid/
---

Sorry, this function does not exist in this version of H2GIS.
3 changes: 1 addition & 2 deletions docs/1.3/applications/h2network.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
layout: docs
title: H2Network
category: applications/h2network
prev_section: applications
next_section: raster
prev_section: system
permalink: /docs/1.3/h2network/
---

Expand Down
2 changes: 1 addition & 1 deletion docs/1.3/applications/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: docs
title: Applications
category: applications
prev_section: geom3D/triangulation
prev_section: system
next_section: h2network
permalink: /docs/1.3/applications/
---
Expand Down
2 changes: 1 addition & 1 deletion docs/1.3/geom3D/triangulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: docs
title: Triangulation
category: geom3D/triangulation
prev_section: geom3D/topography
next_section: applications
next_section: raster
permalink: /docs/1.3/geom3D/triangulation/
---

Expand Down
3 changes: 2 additions & 1 deletion docs/1.3/raster/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: docs
title: Raster functions
category: raster
prev_section: h2network
prev_section: geom3D
next_section: system
permalink: /docs/1.3/raster/
---

Expand Down
12 changes: 12 additions & 0 deletions docs/1.3/system/list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: docs
title: System
category: system
prev_section: raster
next_section: applications
permalink: /docs/1.3/system/
---

Sorry, there is no system functions available in the v1.3 of H2GIS.

Please refers to the documentation under [development](../../dev/system).
34 changes: 34 additions & 0 deletions docs/dev/H2GISversion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: docs
title: H2GISversion
category: system/version
is_function: true
description: Return H2GIS version
prev_section: system
next_section: applications
permalink: /docs/dev/H2GISversion/
---

### Signature

{% highlight mysql %}
STRING H2GISversion();
{% endhighlight %}

### Description

Return the current version of H2GIS stored in the manifest, otherwise return `unknown`.


### Example

{% highlight mysql %}
SELECT H2GISversion();

-- Answer:
1.3.1-SNAPSHOT
{% endhighlight %}

##### See also

* <a href="https://github.com/orbisgis/h2gis/blob/master/h2gis-functions/src/main/java/org/h2gis/functions/system/H2GISversion.java" target="_blank">Source code</a>
2 changes: 1 addition & 1 deletion docs/dev/ST_LineMerge.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: geom2D/process-geometries
is_function: true
description: Merges a collection of linear components to form maximal-length <code>LINESTRING</code>
prev_section: ST_LineIntersector
next_section: ST_Polygonize
next_section: ST_MakeValid
permalink: /docs/dev/ST_LineMerge/
---

Expand Down
Loading

0 comments on commit d165246

Please sign in to comment.