Comments (4)
Strange issue. It seems S2ClosestPointQuery is what you want.
from s2geometry.
@a1983 Looks a good API to use. Certainly will do what I want.
Can you clarify on the precision part ? Should I index at the highest "level" which I believe is 30 for my bounding box coordinates ?
I also need to know what precision I should index my query coordinates.
from s2geometry.
What @a1983 said.
@winash12: you don't need to worry about "precision" or which level to index at. Just create an S2PointIndex
, add your points, then use S2ClosestPointQuery
to find the closest points. There's an example in point_index.cc
.
from s2geometry.
Strange issue. It seems S2ClosestPointQuery is what you want.
Sorry, this is only available in C++. Does java has the same function or can achieve the same function?
from s2geometry.
Related Issues (20)
- Reason: tried: '/usr/lib/libs2.0.dylib' (no such file) HOT 1
- ABI compatability and SOVERSION HOT 7
- fails to build on on ppc64el HOT 7
- Build warning: s2winding_operation.cc:413:1: warning: control reaches end of non-void function HOT 5
- Undefined sanitizer issue HOT 3
- intersects or not slow HOT 12
- Is exist way to get initial shapes from s2 index intersection.
- Shouldn't this public function check for null? HOT 4
- Points only optimization doesn't exist for indexing HOT 6
- Move s2geometry to C++14 because abseil minimum is also C++14 HOT 2
- s2 cannot handle more than 2^31 - 1 vertices in polyline/polygon HOT 7
- What is correct way to find point intersects with polygon? HOT 6
- Build fails on PowerPC (ppc32) almost immediately on encoded_s2shape_index.cc HOT 33
- Test errors on PowerPC: 85% tests passed, 16 tests failed out of 110 HOT 8
- Fails to build with abseil-20230125.3: /usr/local/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported." HOT 2
- set_target_properties called with incorrect number of arguments HOT 1
- trouble generating cell ids for MultiPollygons
- Is there any method to calculate the ecef coord of the left-up corner of a specified cell id?
- ce8e338 breaks MSVC on Windows HOT 3
- Calculate S2 of polygon with OOM Error in golang HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2geometry.