VForWaTer / metacatalog

Modular metadata management platform for environmental data.
https://vforwater.github.io/metacatalog
GNU General Public License v3.0
3 stars 1 forks source link

Add find-by-location #52

Closed mmaelicke closed 3 years ago

mmaelicke commented 4 years ago

Entry records need to be findable by location, to make actually use of PostGIS. I see the scenario:

api.find_entry takes an additional parameter called location. The parameter value can be:

radius could be an additional parameter, to keep locationsimpler. list and tuple should be transformed to a shapely.Geometry, to verify geometric integrity. It could also be possible to pass an integer only, which would refer to a geometry-table in PostgreSQL, containing pre-defined search geometries (like Catchments or whatsoever).

The whole logic has to go into a new spatial submodule (maybe under util) so that a new Entry.neighbors could be introduced as well.