Thank you Andrea, I have found out that mapserver is not working correclty with some wfs queries when using a mysql table as data source, for example a query having 2 BBOX filters with AND. For now I will add the layer as a wfs geoserver layer in udig so I can see in geoserver's log what requests are being sent :)
Joaquín ________________________________________ De: [email protected] [[email protected]] En nombre de Andrea Aime [[email protected]] Enviado el: martes, 12 de abril de 2011 12:42 Para: Joaquín Rodriguez-Guerra Urcelay CC: [email protected] Asunto: Re: [Geotools-gt2-users] OGC requests logging 2011/4/12 Joaquín Rodriguez-Guerra Urcelay <[email protected]>: > Hello List, > > I wonder if there is any way to see what ogc requests (xml for the wfs > filters mostly) are being sent by geotools to the GIS server in order to > render maps. I am using uDig, and I think that geotools streaming renderer is > adding filters (bbox) to the initial filters I apply. Is there any way to see > the final requests as they are being sent to mapserver? maybe adding a > log4j.properties file to my project? It would help the debugging a lot :) I don't know if there is a flag to log the requests, but I'm certain the renderer adds a bbox filter, it would be criminal not to, since it's the main filter one can add in a rendering request. I followed up the thread in udig and yeah, the wfs request encoder should be smart enough to see there are fid filters and imho should try to just encode the fid filter alone in that case (since we cannot encode both, and supposedly the fid filter is very selective). To do that I would feed the fliter splitter with two different filter capabilities in a row: first call with a filter caps saying the only supported filter is the id filter, and see if the returned encodable part contains any fid filter, if so, I'd use it for encoding and leave the rest for in memory post processing, if not, I'd use a second caps that contains all filters but the fid filter, split and use the result for the processing. Just an idea. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
