Comments (2)
This works as intended. You have to mind the geodesic lines, see
https://docs.arangodb.com/stable/aql/functions/geo/#geojson-interpretation
The actual outlines of the polygons are as follows:
![image](https://private-user-images.githubusercontent.com/7819991/308740724-598b5cf2-e9ad-47c2-9994-521d4d98f305.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI2ODYwNTgsIm5iZiI6MTcxMjY4NTc1OCwicGF0aCI6Ii83ODE5OTkxLzMwODc0MDcyNC01OThiNWNmMi1lOWFkLTQ3YzItOTk5NC01MjFkNGQ5OGYzMDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MDlUMTgwMjM4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzE2YTcxOTRhNjM4OWU3MmU2NDU4MTZiODc5MDIyZTM5Yzg2NDY2ZjI2MGI0NTQxZGU0ODBkYWNmYjkxZGM3YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4nROYqz6L_dLJvb2f9FvWvRMbX6MqCT5eFBr5JT2mb0)
As you can see, the point is outside the "smaller" polygon:
LET polygon1 = [[65.3703016,68.3299081],[-40.5075508,68.3299081],[-40.5075508,33.2186095],[65.3703016,33.2186095],[65.3703016,68.3299081]]
LET polygon2 = [[60.5243298,66.8664746],[-36.0068898,66.8664746],[-36.0068898,34.3897546],[60.5243298,34.3897546],[60.5243298,66.8664746]]
LET latlon = [45.51395899156041,25.368316795985375]
FOR elem IN [GEO_POLYGON(polygon1), GEO_POLYGON(polygon2), GEO_POINT(latlon[1], latlon[0])]
RETURN elem
from arangodb.
Thank you for the swift reply.
I had no idea that (A) one could display maps in ArangoDB and (B) that ArangoDB was applying geodesic lines. This may be factually correct, but as your image shows, if you're trying to load markers within a visible area, the area you'd want is this one.
I assume there's no built-in way around geodesic, is there?
from arangodb.
Related Issues (20)
- GCC 13.2.0 build devel error HOT 2
- Vulnerability runc CVE-2024-21626 in ArangoDB HOT 1
- Cluster RemoteNode slowdowns query by 50 times comparing to single instance HOT 3
- An integer field cannot be incremented HOT 2
- FATAL [c81f6] {general} failed to bind to endpoint 'http+tcp://[::]:8529'. Please check whether another instance is already running using this endpoint and review your endpoints configuration. HOT 1
- Guix package HOT 1
- After updating to version 3.11.7 of Arango BD, the service is constantly restarting HOT 2
- Graph traversal with cluster from list nodes very slow HOT 1
- Execution time inconsistent with the use of an index with sorting
- What next after Pregel removal?
- User with no access to _system can get/set server license HOT 1
- Follower getting 503 Error HOT 1
- Index not used if attribute has space in the name HOT 5
- Arangobench unreliable behavior HOT 2
- Using a different character to "/" in node ids. HOT 3
- Please make Docker image of v3.12.0 available HOT 2
- GPG key expired on 03/23/2024 HOT 6
- [Optimize graph traversal] How to skip startVertexs that exist in the previous graph traversal results. HOT 2
- 【AQL Grammar】how to write the AQL statement which's function equal to "g.inE("tech").otherV().inE('friends').otherV()" ? 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 arangodb.