[ckan-dev] ckanext-spatial search modification

Dominik Kapišinský dkapisinsky at gmail.com
Fri Nov 13 12:01:02 UTC 2015


Hello,

I would like to modify my ckanext-spatial fork to search for something like
contains (if package extent is contained by search box) instead of
intersection between them. Is it doable?
I think that I need to change the line in ckanext/spatial/lib/*init*.py :

extents = Session.query(PackageExtent) \
.filter(PackageExtent.package_id==Package.id) \
.filter(PackageExtent.the_geom.intersects(input_geometry)) \
.filter(Package.state==u'active')

Could you help me please?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20151113/4abb31a7/attachment-0002.html>


More information about the ckan-dev mailing list