Add more spatial extras (length, area, distance_to_filter and intersection_area) - #187
Open
LionelZoubritzky-IGN wants to merge 10 commits into
Open
Add more spatial extras (length, area, distance_to_filter and intersection_area)#187LionelZoubritzky-IGN wants to merge 10 commits into
LionelZoubritzky-IGN wants to merge 10 commits into
Conversation
LionelZoubritzky-IGN
force-pushed
the
142-gpfschemastore0.2.0
branch
from
August 12, 2026 09:40
e1f709c to
f791f43
Compare
…g typenames or field values
LionelZoubritzky-IGN
force-pushed
the
136/more-spatial_extras
branch
from
August 12, 2026 12:01
378cade to
1c76f02
Compare
LionelZoubritzky-IGN
force-pushed
the
136/more-spatial_extras
branch
from
August 12, 2026 14:50
1c76f02 to
67960b8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a number of small refactors (each in their own commit) and finally adds four new
spatial_extrastargets:length,area,distance_to_filterandintersection_area. The latter two can only be used when there is a spatial filter.Requests error when they are absurd, for example asking for
areaon a geometry which is stored asformat: "geometry-point"in the schema. When they are not absurd but still impossible in practice (the same but with"geometry-any"that actually returns a Point for example), the required field is set tonull.Close #136, although we may want to add even more
spatial_extrain the future. For the time being, these newspatial_extrasallow answering new questions like:length) -> 515,08 kmarea) -> La Cousinerie (24ha), Sainte-Radegonde (16ha), ...distance_to_filter) -> Piscine du Sivom des Trois Vallées de Mondeville (1.37 km)intersection_area) -> 1 039,3 ha