Francios,
Thanks for the reply, in the end I found that I only needed to add the northbl etc and most importantly the relation variable to the page and the alpha-1 release worked without having to change the lucene.xsl. Oh and thanks for the tip on QuickWMS, a very simple and effective drag interface.
-----Original Message-----
From: François Prunayre [mailto:fx.prunayre@anonymised.com]
Sent: Saturday, 4 November 2006 2:40
To: Gannon Michael
Cc: geonetwork-devel@lists.sourceforge.net
Subject: RE: [GeoNetwork-devel] advanced search, alpha-1
Hi Mickael, yes I have the same problem in advanced search. The search works only when setting a region. Could you try to add
the following in lucene.xsl
- line 142
<xsl:if test=“/request/relation and ($region or ($westBL != ‘NaN’ and $eastBL != ‘NaN’ and $southBL != ‘NaN’ and $northBL != ‘NaN’))”>
- line 171
</xsl:if>
And come back to me if it works ok, I will add this to the version.
This will make a bbox query when relation as value - then it will be BBOX or REGION query.
Try this 3 queries for testing :
http://pc-fxp:8080/geonetwork/srv/en/main.search?relation=equal®ion=338&
http://pc-fxp:8080/geonetwork/srv/en/main.search? - should return all
It’s related to that email from Andrea. We have to check both region and bbox search query.
History :
Hi all,
I have found the bug related to the BBOX search failure.
Instructions:
- edit the file : web/xml/search/lucene.xsl
- remove line 126:
<xsl:if test=“$region”> - remove line 155:
</xsl:if>
To perform a bbox query you have to: - use the ‘region’ and ‘relation’ parameters
or - use the ‘relation’, ‘northBL’, ‘southBL’, ‘eastBL’, ‘westBL’ parameters
Cheers,
Andrea
For the bbox search interface you could have a look to :http://www.fao.org/geonetwork/
or the http://sandre.eaufrance.fr/geonetwork . We use quickwms which is quite old (search the archive for more comments on that). Maybe the use of intermap or openlayers could be much better.
Ciao. Francois
De : geonetwork-devel-bounces@lists.sourceforge.net [mailto:geonetwork-devel-bounces@lists.sourceforge.net] De la part de Michael.Gannon@anonymised.com.
Envoyé : mercredi 1 novembre 2006 00:52
À : Michael.Gannon@anonymised.com.105…; geonetwork-devel@lists.sourceforge.net
Objet : [GeoNetwork-devel] advanced search, alpha-1
Hi List,
We are currently using GeoNetwork 2.1.0 alpha-1 and have been experiencing some problems with the advanced search and we were wondering if anyone else might be having the same troubles. Regardless of the input to the search criteria, or indeed leaving everything blank, the search returns zero results. Simple search seems to work just fine and there are no exceptions being thrown when executing the advanced search that might lead us to the problem. Is anyone else having difficulty with this function?
We are also looking to implement a bounding box search criteria, separate to the predefined regions list, so that a user may drag a box on a world map to determining the north, south, east and west bounds. Has anyone gone down this road with GeoNetwork already with any success?
Cheers,
Michael Gannon.
–
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n’a ete trouve.
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privis.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.
–
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n’a ete trouve.
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.