[SERVER-28563] "Casting" geojson polygon to linestring Created: 28/Mar/17  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Buzz Moschetti Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 Description   

A point INSIDE a polygon is considered by $geoNear to be distance zero.
Sometimes it is desirable to treat that polygon like a lake and given a point, calculate distance "to the shore." The same polygon saved as a linestring (first poly only of course; no holes) yields the desired distance behavior.
Since it is not practical to store BOTH reps and we cannot run $geoNear on a "literal shape" a nice feature would be to somehow indicate to $geoNear that polygons should be treated as linestrings for the execution of the command.


Generated at Thu Feb 08 04:18:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.