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_Touches #148

Merged
merged 4 commits into from
Jan 27, 2014

Conversation

gpetit
Copy link
Contributor

@gpetit gpetit commented Jan 24, 2014

Add description and images for ST_Touches

TODO : add some unit tests for this function

See #108.

@agouge agouge mentioned this pull request Jan 24, 2014
@@ -2,7 +2,7 @@
layout: docs
title: ST_Touches
category: h2spatial/predicates
description:
description: Return true if the geometry A touches the geometry B
Copy link
Contributor

Choose a reason for hiding this comment

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

Return true if Geometry A touches Geometry B

Copy link
Contributor

Choose a reason for hiding this comment

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

I know, the Javadoc says this too

@agouge
Copy link
Contributor

agouge commented Jan 24, 2014

Any example where ST_Touches is false?


##### Remarks
* `ST_Touches` can only be used to determine the relation between pairs listed here : `(POLYGON, POLYGON)`, `(POLYGON, LINESTRING)`, `(POLYGON, POINT)`, `(LINESTRING, LINESTRING)` and `(LINESTRING, POINT)`. The relation `(POINT, POINT)` is excluded.
* `GEOMETRYCOLLECTION`s are not taken into account.
Copy link
Contributor

Choose a reason for hiding this comment

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

Sure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I confirm. Since JTS 1.13, GeometryCollections are not allowed. I made a test on JTS and on H2GIS.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK thanks!

@agouge
Copy link
Contributor

agouge commented Jan 27, 2014

So do you want to include an example where ST_Touches is false?

@agouge
Copy link
Contributor

agouge commented Jan 27, 2014

Great!

agouge added a commit that referenced this pull request Jan 27, 2014
Add description and images for ST_Touches
@agouge agouge merged commit 0c6424f into orbisgis:gh-pages Jan 27, 2014
@gpetit gpetit deleted the st-touches branch January 28, 2014 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants