Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description and images for ST_ExteriorRing #188

Merged
merged 2 commits into from
Feb 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 13 additions & 3 deletions docs/dev/ST_ExteriorRing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,38 @@
layout: docs
title: ST_ExteriorRing
category: h2spatial/properties
description:
description: <code>POLYGON</code> &rarr; <code>LinearRing</code>
prev_section: ST_Envelope
next_section: ST_GeometryN
permalink: /docs/dev/ST_ExteriorRing/
---

### Signatures
### Signature

{% highlight mysql %}
LinearRing ST_ExteriorRing(GEOMETRY geom);
{% endhighlight %}

### Description


Returns a `LinearRing` instance or Null if parameter is not a `POLYGON`.

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

### Examples

{% highlight mysql %}
SELECT ST_ExteriorRing('POLYGON((0 -1, 0 2, 3 2, 3 -1, 0 -1))');
-- Answer: LINEARRING(0 -1, 0 2, 3 2, 3 -1, 0 -1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an example of a polygon with a hole? The point of this function is to contrast the exterior ring with the interior ring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I add an example of polygon with a hole , do you thing it's necessary add a comparison between ST_ExteriorRing and ST_InteriorRing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sounds good

{% endhighlight %}

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

##### Comparison with [`ST_Boundary`](../ST_Boundary)

{% include exteriorring-boundary-cf.html %}

##### See also

* [`ST_Boundary`](../ST_Boundary), [`ST_InteriorRingN`](../ST_InteriorRingN)
* <a href="https://github.com/irstv/H2GIS/blob/master/h2spatial/src/main/java/org/h2gis/h2spatial/internal/function/spatial/properties/ST_ExteriorRing.java" target="_blank">Source code</a>