Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial search: Bbox filters #2555

Merged
merged 3 commits into from
Feb 23, 2018
Merged

Spatial search: Bbox filters #2555

merged 3 commits into from
Feb 23, 2018

Conversation

cmangeat
Copy link
Collaborator

@cmangeat cmangeat commented Feb 14, 2018

The PR comes with refactorings which helped to better take measure of geonetwork spatial indexing mechanisms.

The purpose of this PR is to propose two spatial filters operating on bbox rather than on geometries, in order to earn ram and cpu at runtime:

  • as spatial requests emanating form minimap are related to rectangular bounds, theses two filters are substitued to usual minimap geometrical ones.
  • at search time, as features bbox are already stored in SRTTree (spatial index), these two filters don't rely on jcscahe.

In my opinion, replacing Data Pair by POJO helps a lot:
https://github.com/geonetwork/core-geonetwork/pull/2555/files#diff-431f31b5144d54b586f8eabcdda4567aL415.
vs
https://github.com/geonetwork/core-geonetwork/pull/2555/files#diff-431f31b5144d54b586f8eabcdda4567aR559

In this case, for a true multipolygon and within filter POJO help counting and checking that all its parts are enclosed within query bounds.

and remove 'to do javadoc'

refactor
…e...

to handle right 'true' multipolygon and within operator, have to count matching
polygons and to compare with effective parts count

as oguyot showed, forbid call of geometries operating filter from minimap and provide translations for bbox filter (filter is overlaps_bbox when no definition embedded in request)
@cmangeat cmangeat changed the title [WIP] Bbox filters Bbox filters Feb 14, 2018
@cmangeat
Copy link
Collaborator Author

cmangeat commented Feb 14, 2018

@fgravin ?

@fgravin fgravin changed the title Bbox filters Spatial search: Bbox filters Feb 14, 2018
@fgravin
Copy link
Member

fgravin commented Feb 20, 2018

@fxprunayre @josegar74 no objection ?
I'll merge it if no review planned.

Thanks

@fgravin fgravin merged commit 800f5d8 into geonetwork:3.4.x Feb 23, 2018
@cmangeat cmangeat deleted the bbox_filters branch April 19, 2018 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants