| 1 | = Spatial Filter in LUcene = |
| 2 | |
| 3 | || '''Date''' || 2008/11/04 || |
| 4 | || '''Contact(s)''' || fxprunayre, jesse || |
| 5 | || '''Last edited''' || [[Timestamp]] || |
| 6 | || '''Status''' || draft || |
| 7 | || '''Assigned to release''' || to be determined || |
| 8 | || '''Resources''' || Resource available || |
| 9 | |
| 10 | == Overview == |
| 11 | |
| 12 | Actually GeoNetwork only handle bbox search using Lucene |
| 13 | |
| 14 | In a metadata record you could define an extent using |
| 15 | |
| 16 | * a description |
| 17 | * a bbox in latlong |
| 18 | * or a gml object |
| 19 | |
| 20 | In the search interface, we could search using a geographic keyword (matched to description in the metadata) or bbox matched to bbox in metadata |
| 21 | |
| 22 | Requirements: |
| 23 | * handle geographic search between user search criteria (which could be description (eg. canton, commune), bbox, geomtries and metadata records extent information |
| 24 | |
| 25 | |
| 26 | |
| 27 | === Proposal Type === |
| 28 | * '''Type''': Index |
| 29 | * '''App''': !GeoNetwork |
| 30 | * '''Module''': Lucene Index |
| 31 | |
| 32 | === Links === |
| 33 | * '''Documents''': |
| 34 | * '''Email discussions''': |
| 35 | * '''Other wiki discussions''': |
| 36 | |
| 37 | === Voting History === |
| 38 | * Vote proposed by X on Y, result was +/-n (m non-voting members). |
| 39 | |
| 40 | ---- |
| 41 | |
| 42 | == Motivations == |
| 43 | Improve spatial search support in GeoNetwork. |
| 44 | |
| 45 | == Proposal == |
| 46 | On indexing procedure, populate a spatial index based on Shapefile. Store the shapefile index in memory to run the spatial filter after the search. |
| 47 | |
| 48 | The following operations are supported : |
| 49 | * ENCLOSES |
| 50 | * CROSSES, |
| 51 | * OUTSIDEOF, |
| 52 | * EQUAL, |
| 53 | * INTERSECTION, |
| 54 | * OVERLAPS, |
| 55 | * TOUCHES, |
| 56 | * WITHIN, |
| 57 | |
| 58 | Query Examples : |
| 59 | * http://localhost:8080/geonetwork/srv/en/xml.search?geometry=POLYGON((10%2010,10%2020,20%2020,20%2015,10%2010))&relation=intersection |
| 60 | |
| 61 | |
| 62 | === Backwards Compatibility Issues === |
| 63 | |
| 64 | == Risks == |
| 65 | |
| 66 | == Participants == |
| 67 | * fxprunayre, jesse |
| 68 | |
| 69 | |