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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MTQ3MTgsIm5iZiI6MTcyMTYxNDQxOCwicGF0aCI6Ii83ODE5OTkxLzMwODc0MDcyNC01OThiNWNmMi1lOWFkLTQ3YzItOTk5NC01MjFkNGQ5OGYzMDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjJUMDIxMzM4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzVjZWM2NGZlZjc3ZTA4NWM5NmY4OTEyZTU5YjkyZWUzNWRkMjllMjhhZDM1Y2M3ZTgzNzIyNzg4YmQzMjZiZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.1Y7yVTooYe5vx77ZUbAmuMqBDXp4MJxtXRn_ACgH6fw)
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)
- Documentation conflict. Is Active Failover mode deprecated? HOT 2
- ArangoSearch view: sort after pagination breaks view performance HOT 3
- InvalidImageName HOT 2
- How to join arangodb community slack channel? HOT 1
- Search-Alias View can't search on field type array HOT 3
- Arangorestore error 'Connection closed by remote'
- Understanding how switching a license works
- [BUG] mergeObjects does not effect the root document HOT 2
- Number Overflow when using AVG
- Can't add inverted indexes contains same sort fields of other collections to a view search-alias HOT 1
- Can't add a index collection contains primary sort different config primary sort of previous indexes to a search-alias view HOT 8
- High Security vulnerability in Runc HOT 1
- Error doing filtered upsert query, comparing the keys of 2 vertexes HOT 2
- Upgrade from 3.11.9-1 to 3.11.10-1 via apt failed HOT 2
- What's solution for adding new sort index to an existed view
- ArangoSearch storedValues: include fields from objects under array, ie. `array[*].field`
- Feature request: use MEDIAN() funtion in AGGREGATE statement HOT 5
- Duplicate returned documents when using search-alias view HOT 3
- Can't Update Stored Value/Primary Sorted Fields and Low AQL Query Speed from a View That Being Inserted in Parallel
- Can't Update Stored Value/Primary Sorted Fields and Low AQL Query Speed from a View That Being Inserted in Parallel
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.