{"id":13550707,"url":"https://github.com/couchbase/geocouch","last_synced_at":"2025-10-07T15:22:11.698Z","repository":{"id":37736067,"uuid":"1433284","full_name":"couchbase/geocouch","owner":"couchbase","description":"GeoCouch, a spatial index for CouchDB","archived":false,"fork":false,"pushed_at":"2021-11-10T12:00:03.000Z","size":1409,"stargazers_count":516,"open_issues_count":3,"forks_count":62,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-11-03T20:36:00.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/couchbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-03T01:31:01.000Z","updated_at":"2024-08-03T16:50:46.000Z","dependencies_parsed_at":"2022-08-08T21:30:46.289Z","dependency_job_id":null,"html_url":"https://github.com/couchbase/geocouch","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgeocouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgeocouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgeocouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fgeocouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase","download_url":"https://codeload.github.com/couchbase/geocouch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916734,"owners_count":20854511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:01:36.460Z","updated_at":"2025-10-07T15:22:06.661Z","avatar_url":"https://github.com/couchbase.png","language":"Erlang","readme":"Welcome to the world of GeoCouch\n================================\n\nGeoCouch is a spatial extension for Couchbase and Apache CouchDB.\n\n\nFor Couchbase\n-------------\n\nFor compiling Couchbase (it includes GeoCouch), please see https://github.com/couchbase/tlm\n\n\nFor Apache CouchDB\n------------------\n\nThis version of GeoCouch needs at least Apache CouchDB 1.3.x.\n\n\n### Checkout the code\n\nFirst checkout the source code for Apache CouchDB into a directory that will\nbe referred to as `\u003cpath-to-couchdb-source\u003e`.\n\nThen checkout the GeoCouch source:\n\n    git clone https://github.com/couchbase/geocouch.git\n\nThere's a new directory called `geocouch` created. From now on this directory\nwill be referred to as `\u003cpath-to-geocouch-source\u003e`.\n\n\n### Build instructions\n\nMake sure you have built Apache CouchDB from source including `make dev`. So\ngo to your `\u003cpath-to-couchdb-source\u003e` and run:\n\n    ./bootstrap\n    ./configure\n    make dev\n\nAfter that you can compile GeoCouch from within the GeoCouch directory:\n\n    COUCH_SRC=\u003cpath-to-couchdb-source\u003e/src/couchdb make couchdb\n\nNow copy the configuration file into your Apache CouchDB directory:\n\n    cp gc-couchdb/etc/couchdb/default.d/geocouch.ini \u003cpath-to-couchdb-source\u003e/etc/couchdb/default.d/\n\n\n### Running Apache CouchDB\n\nApache CouchDB needs the compiled geocouch in the include path. You can either copy `gc-couchdb` and `vtree` into `\u003cpath-to-couchdb-source\u003e/src/` or set the `ERL_LIBS` environment variable to the GeoCouch root directory.\n\n    cd \u003cpath-to-couchdb-source\u003e\n    ERL_LIBS=\"\u003cpath-to-geocouch-source\u003e\" ./utils/run\n\n\n### Running tests\n\nAfter you've followed the build instructions you can run the tests with\n\n    COUCH_SRC=\u003cpath-to-couchdb-source\u003e/src/couchdb make couchdb-check\n\nIn order to run the JavaScript based tests, you need to start Apache CouchDB first:\n\n    cd \u003cpath-to-couchdb-source\u003e\n    ERL_LIBS=\"\u003cpath-to-geocouch-source\u003e\" ./utils/run\n\nThe tests can either be run from the command line or the browser.\n\n\n#### From command line\n\nFrom the command line the easiest way is to use the supplied runner script.\nFrom within the `\u003cpath-to-geocouch-source\u003e`:\n\n    cd gc-couchdb\n    ./utils/runjstests.sh \u003cpath-to-couchdb-source\u003e/test/javascript/run ./share/www/script/test\n\n\n#### From browser\n\nTo run it from the browser first copy the JavaScript tests into the same directory as the other Apache CouchDB tests:\n\n    cp \u003cpath-to-geocouch-source\u003e/gc-couchdb/share/www/script/test/* \u003cpath-to-couchdb-source\u003e/share/www/script/test/\n\nThen add the tests to `\u003cpath-to-couchdb-source\u003e/share/www/script/couch_tests.js`\n\n    loadTest(\"spatial.js\");\n    loadTest(\"list_spatial.js\");\n    loadTest(\"etags_spatial.js\");\n    loadTest(\"multiple_spatial_rows.js\");\n    loadTest(\"spatial_compaction.js\");\n    loadTest(\"spatial_design_docs.js\");\n    loadTest(\"spatial_bugfixes.js\");\n    loadTest(\"spatial_offsets.js\");\n    loadTest(\"spatial_range.js\");\n\n\n### More information\n\nFor more information and samples please see the [README in the gc-couchdb subdirectory](gc-couchdb/README.md).\n\n\nLicense\n-------\n\nGeoCouch is licensed under the Apache License 2.0.\n","funding_links":[],"categories":["Geolocation","Erlang","Database","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fgeocouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase%2Fgeocouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fgeocouch/lists"}