Nodejs 上的 geocouch 错误
我有 3 个与 nodejs 环境中的 geocouch 有关的问题。
我的代码如下。与数据库的连接没有发生,并且在“连接到数据库之前”之后不会打印任何内容。怎么了?
var 连接 = new(cradle.Connection)(settings.COUCHDB_HOST, settings.COUCHDB_PORT, {身份验证:settings.COUCHDB_AUTH});
console.log("连接数据库之前"); var db = connection.database(settings.COUCHDB_DATABASE, function(err) { 如果(错误){ console.log("数据库连接问题:", err); 抛出错误; } console.log("已连接到 iriscouch", settings.COUCHDB_HOST); });
geocouch 是否支持除 bbox 之外的任何操作?我的意思是像半径、多边形这样的操作?
最近函数spatiallist发生了一些变化。知道它是什么吗?我在哪里可以找到最新、最好的文档?
I have 3 questions pertaining to geocouch on nodejs environment.
my code is as follows. The connection to the database is not happening and it does not print anything after "before connecting to database". what's wrong ?
var connection = new(cradle.Connection)(settings.COUCHDB_HOST, settings.COUCHDB_PORT,
{auth: settings.COUCHDB_AUTH});console.log("before connecting to database");
var db = connection.database(settings.COUCHDB_DATABASE, function(err) {
if (err) {
console.log("database connection problem :", err);
throw err;
}
console.log("connected to iriscouch", settings.COUCHDB_HOST);
});Does geocouch support any operation other than bbox ? i mean operation like, radius, polygon ?
recently the function spatiallist has been changed to something. Any idea what it is ? Where can I find the latest and greatest documentation ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道
目前仅支持边界框搜索。更多内容即将推出
_spatiallist 更改为 _spatial/_list。自述文件始终保持最新:https://github.com/couchbase/geocouch/#readme< /a>
no idea
Only bounding box search is supported at the moment. More to come
_spatiallist changed to _spatial/_list. The README is always kept up to date: https://github.com/couchbase/geocouch/#readme