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
Update and add image of ST_CompactnessRatio #138
Conversation
@@ -2,7 +2,7 @@ | |||
layout: docs | |||
title: ST_CompactnessRatio | |||
category: h2spatial-ext/properties | |||
description: | |||
description: Returns the ratio of this computed perimeter to the given `polygon`'s perimeter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style guide 1.ii
@@ -2,7 +2,7 @@ | |||
layout: docs | |||
title: ST_CompactnessRatio | |||
category: h2spatial-ext/properties | |||
description: | |||
description: Returns the ratio of this computed perimeter to the given <CODE>POLYGON</CODE>'s perimeter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
You still need to fix your line breaks |
@@ -11,14 +11,52 @@ permalink: /docs/dev/ST_CompactnessRatio/ | |||
### Signature | |||
|
|||
{% highlight mysql %} | |||
double ST_CompactnessRatio(POLYGON poly) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.ii
geom rather than poly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actualy poly is better, since this function accepts only POLYGON
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok :-)
-- Answer: 0.9983912919723259 | ||
-- Note : That a buffer is not a circle. It's an | ||
-- approximation, ST_Buffer create 32 segments to arc of a | ||
-- cercle. That's why the compactness ratio is not equal to 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling
See #105.