Valery Mironov
Valery Mironov
Sounds good if it will be faster. I think I can provide some benchmarks later. In general I tried to speedup arangodb searching geo data with inverted index (of course...
@smcallis Thanks for detailed answer. > I don't see how GeoJson can be smaller since it's text based We store GeoJson in binary representation, something like messagepack/bson/etc if you familiar...
> S2LaxPolygon[Polyline]Shape are lax not lazy I meant they have EncodedS2Lax* interface to decode them lazily
> and they still work with things like S2BooleanOperation. Yes, but they need to compute index. For an example S2Polygon::Contains(Point) not always need to do it. I think my main...
> s2shapeutil::ContainsBruteForce Thanks!
> What is the larger problem you're trying to solve? @jmr Written in comment. In general I need to check S2Polygon contains S2LatLngRect. I can create S2Polygon from S2LatLngRect, but...
@jmr https://github.com/arangodb/arangodb/blob/devel/lib/Geo/ShapeContainer.cpp#L64 Example
> By correctness, I mean, will it be wrong if you use GetRectBound()? Yes, because otherwise S2Polygon also should use rect bound not subregion bound. If I understand correctly can...
https://github.com/google/s2geometry/blob/f28f17930d128a8d879132f4d1f9d68c5de27402/src/s2/s2polygon.h#L975 @jmr Yep, check it please
Hmm, ok, I will try to write test