2009/5/27 pub cog <[email protected]>: > The actual search is based on postgis sql builtin function. > > Currently the process has 2 main steps: > Step n°1- on ressource creation/update, I parse the provided kml > file to extract geographical informations > create a 'geom' (4) using > postgis function and store it in a database table column > Step n°2- on search I transform query coordinnates into a 'geom' and > use it against the computed geom(s) created above > I found rows in > the db and return them as a list > > > How could I do this with Sling ?
Just a quick thought. I don't know much about KML, but from the docs it looks like a fairly simple XML format. Have you considered storing the KML data as JCR nodes, and not as KML files? That would certainly make it easier to implement advanced search features, as you describe. -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Akersgata 16, N-0158 Oslo, Norway +47 21 531941, ext 2070
