Spatial views trough Sync Gateway

Hello everyone,

Im trying to create spatial view in design document as it described there just replaced original view with spatial declaration as it described there

when i do my PUT everything looks fine, no errors or anything, when i try to access my _spatial i get

http GET mydomain.com:4985/sync_gateway/_design/spatialphoto/_spatial/points

HTTP/1.1 404 Not Found
Content-Length: 44
Content-Type: application/json
Date: Sat, 04 Apr 2015 18:01:04 GMT

{
“error”: “not_found”,
“reason”: “unknown URL”
}
spatialphoto.js

{
“spatial”:
{
“points”:{
“map”:“function(doc, meta) { if (doc.loc) { emit({ type: "Point", coordinates: doc.loc}, [meta.id, doc.loc]);}}”
}
}
}

When i put ordinal view in same design document, everything works as expected. When i put this design document in couchbase directly, everything is fine also. Is sync gateway support geospatial views at all?

Or i do something wrong?

I think this is a Gateway limitation/bug. The view support has to rewrite the map function in the design doc (to return extra metadata), and that code knows to look for map functions for regular views but not geospatial ones. It should be easy to fix this. Could you file an issue on Github, please?

ok, I will report an issue an github.

thanks for help!