afieldtrails / s2-postgis Goto Github PK
View Code? Open in Web Editor NEWS2 Cell Id functions for PostgreSQL and PostGIS
License: MIT License
S2 Cell Id functions for PostgreSQL and PostGIS
License: MIT License
See also sidewalklabs/s2sphere#38
Hi, trying to install... After sucess with sudo pip3 install s2sphere
, and at my ~/sandbox/s2-postgis
cloned folder, using UBUNTU 16 LTS, run sudo make install && make installcheck
:
Makefile:8: /usr/lib/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target '/usr/lib/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk'. Stop.
So I do sudo apt-get install postgresql-server-dev-all
... running again sudo make install && make installcheck
:
/bin/mkdir -p '/usr/share/postgresql/10/extension'
/bin/mkdir -p '/usr/share/postgresql/10/extension'
/usr/bin/install -c -m 644 .//s2.control '/usr/share/postgresql/10/extension/'
/usr/bin/install -c -m 644 .//s2--0.0.2.sql '/usr/share/postgresql/10/extension/'
/usr/lib/postgresql/10/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress --inputdir=./ --bindir='/usr/lib/postgresql/10/bin' --dbname=contrib_regression s2_test
(using postmaster on Unix socket, default port)
============== dropping database "contrib_regression" ==============
psql: FATAL: role "root" does not exist
command failed: "/usr/lib/postgresql/10/bin/psql" -X -c "DROP DATABASE IF EXISTS \"contrib_regression\"" "postgres"
/usr/lib/postgresql/10/lib/pgxs/src/makefiles/pgxs.mk:283: recipe for target 'installcheck' failed
make: *** [installcheck] Error 2
Hi, this project is connected with the OSGEO's roadmap? https://trac.osgeo.org/postgis/wiki/PostGIS3
The assert validation is very commom in software package distributions... PostgreSQL have assert clause since v9.5, so a possible option is to change all s2_test.sql (example).
Other option, the easiest, is to add at git a s2_test.txt
file with the s2_test.sql
, that is, psql _etc_ < s2_test.sql > s2_test.txt
.
So, any one can assert by diff
... or checking md5sum s2_test.txt
, the my is 7d80522b55bd6e3270fb8ffde3a161cd
.
My s2_test.txt
:
s2_cellid_from_latlng
-----------------------
1152921504606846977
(1 row)
s2_cellid_from_latlng
-----------------------
-8689295774057980903
(1 row)
s2_latlng_from_cellid
--------------------------------------
(40.4999999678024,-105.499999974886)
(1 row)
.....
s2_token_edge_neighbors
-------------------------
87696d
876969
876941
876915
(4 rows)
s2_token_contains
-------------------
f
(1 row)
s2_token_contains
-------------------
t
(1 row)
s2_token_intersects
---------------------
t
(1 row)
s2_token_intersects
---------------------
t
(1 row)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.