SymbolixAU

Results 144 comments of SymbolixAU

### Progress ```r library(microbenchmark) microbenchmark( r = { googlePolylines:::geometryRow.sfencoded( e, "POLYGON", multi = T) }, rcpp = { googlePolylines:::rcpp_get_geometry_types( e$geometry, "MULTIPOLYGON") }, rcpp_mult = { googlePolylines:::rcpp_get_geometry_types_multi( e$geometry, "POLYGON", "MULTIPOLYGON") }...

[precision defined](https://github.com/SymbolixAU/googlePolylines/commit/78eed8b36217f5a06c95cac8863a8a210f1b1438) and set as 12. Should this be user defined? ``` library(sf) library(googlePolylines) coords

Or perhaps using `std::to_string()` is the more appropriate solution ``` library(sf) library(googlePolylines) coords

related https://github.com/SymbolixAU/googlePolylines/issues/15

related: https://github.com/SymbolixAU/googlePolylines/issues/5

This is why I created [`mongolitedt`](https://github.com/SymbolixAU/mongolitedt) - which does the `rbindlist`-ing for you. Would be good if this could be incorporated into `mongolite`?

@renkun-ken - that's what `mongolitedt` is meant to address

That's a fair statement. I'm playing about with manipulating the data in C directly from the pointer/cursor. Making the assumption that the query will return a 'tabular' data set. This...

@mlampros - I may have missed the point of your issue, but I was able to create a geospatial index using ``` m$index((add = '{"geometry" : "2dsphere"}')) ## where m...

@mlampros I think your issue might be that you've specified the index on the `geometry` column, yet your first line in the query is querying against `{ "location" : {`....