Hello!
I get an error-return when executing a spatial view for the first time.
Everything goes fine when using non-spatial views. The index-generation
is aborting and the following error is displayed:
|{"error":"{function_clause,
[{couch_spatial_updater,process_result,
[[<<\"railway\">>||,[<<\"8091320\">>,<<\"node\">>,<<\"halt\">>]]]},
{couch_spatial_updater,'-process_results/1-fun-0-'||,2},
{lists,foldl,3},
{lists,map,2},
{lists,map,2},
{lists,map,2},
{couch_spatial_updater||,spatial_docs,2},
{couch_spatial_updater,spatial_compute,2}]}","reason":"{gen_server,call,[<0.18574||.0>,{request_group,445226},infinity]}"}|
This happens with different CouchDB installations (Ubuntu 12.04, a
self-compiled 1.2.0 and an older CouchBase in a VirtualMachine) on large
databases (in this case 440.000 entries, the error happens after about
processing 18.000). The view worked fine when executed on a database
with only about 2.300 entries.
The spatial view looks like this (it has become a bit bloated because of
debugging):
function(doc) {
if(doc.geometry && doc.properties) {
if(doc.properties.tags && doc.geometry.coordinates){
if(doc.properties.tags.amenity) {
if(doc.properties.tags.amenity == "bicycle_parking") {
emit(doc.geometry, 1);
}}}}}
I tried other spatial-views but they produce the same error. It seems to
me like an internal problem, or could there be something wrong with the
data? The document that produced the error is this:
{"total_rows":445220,"offset":413135,"rows":[
{"id":"node8091320",
"key":"node8091320",
"value":{
"_id":"node8091320",
"_rev":"1-2eb0febff1242a1aa7514991a03a5e05",
"geometry":{
"type":"Point",
"coordinates":[16.3148334,48.2232677]},
"type":"Feature",
"properties":{
"changeset":9169859,
"uid":129531,
"tags":{
"railway":"halt",
"uic_ref":"8100271",
"name":"Hernals"
},
"timestamp":"2011-08-30T18:27:09Z",
"version":28,
"user":"almich"
}
}
}
]}
I hope you can see something wrong her and would appreciate your help or
comment.
Greetings,
Markus
PS: The installations of the master-branch of CouchDB is going fine, but
the master of GeoCouch does not compile for me.