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

Error in h2gis documentation #862

Closed
nicolas-f opened this issue Nov 6, 2017 · 6 comments
Closed

Error in h2gis documentation #862

nicolas-f opened this issue Nov 6, 2017 · 6 comments

Comments

@nicolas-f
Copy link
Member

In this page http://www.h2gis.org/docs/dev/ST_MakeGridPoints/ (add other versions)

The following sample does not work :

-- Using a table:
CREATE TABLE TEST(THE_GEOM GEOMETRY);
INSERT INTO TEST VALUES ('POLYGON((0 0, 2 0, 2 2, 0 0))');
CREATE TABLE grid AS SELECT * FROM
    ST_MakeGridPoints('TEST'::GEOMETRY, 1, 1);

The issue here is the cast of 'TEST' into a geometry. Test is a table not a WKT. The the sample should be:

-- Using a table:
CREATE TABLE TEST(THE_GEOM GEOMETRY);
INSERT INTO TEST VALUES ('POLYGON((0 0, 2 0, 2 2, 0 0))');
CREATE TABLE grid AS SELECT * FROM
    ST_MakeGridPoints('TEST', 1, 1);
@ebocher
Copy link
Member

ebocher commented Nov 13, 2017

Thanks

@ebocher
Copy link
Member

ebocher commented Nov 19, 2017

There is also an error on http://www.h2gis.org/docs/dev/quickstart/
that explains how to load the H2GIS function. The "org.h2gis.ext.H2GISExtension.load" has been removed since #845
@gpetit

@ebocher
Copy link
Member

ebocher commented Dec 6, 2017

@gpetit ping

1 similar comment
@ebocher
Copy link
Member

ebocher commented Feb 21, 2018

@gpetit ping

@gpetit
Copy link
Contributor

gpetit commented Feb 26, 2018

I'm on it

SPalominos added a commit that referenced this issue Feb 26, 2018
Update the doc of ST_MakeGridPoints, as asked in #862
@gpetit
Copy link
Contributor

gpetit commented Feb 26, 2018

Done.
Since the error on QuickStart has already been resolved by @SPalominos we can now close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants