Code Monkey home page Code Monkey logo

s2-postgis's People

Contributors

placz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

s2-postgis's Issues

role "root" does not exist

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

Assert s2_test

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.