On Thu, May 28, 2015 at 7:15 PM, Mark Prins <mc.pr...@gmail.com> wrote:
> 2015-05-28 16:33 GMT+02:00 Andrea Aime <andrea.a...@geo-solutions.it>: > > On Thu, May 28, 2015 at 4:08 PM, Mark Prins <mc.pr...@gmail.com> wrote: > >> > >> I've been experimenting with a RELATE + DE-9IM matrix query and the > >> setMaxFeatures method on postgis and it appears that setting the max > >> features prevents returning proper results because the query to the > >> database sets a limit, but the filter is executed locally...(so only > >> run on the retrieved features) which leads to some unexpected results, > >> eg. no faatures returned, but count says there should be. > > > > > > Looks like a bug, if the filter is not completely encodable, we should > not > > encode > > limit and offset either. > > OK > Could you open a bug report? https://osgeo-org.atlassian.net/projects/GEOT > > >> > >> > >> > >> Q: is there any way to force geotools to send the complete query to > >> the database? which would be something like: > >> select * from editable where ST_relate( > >> begrenzing_perceel, > >> st_geomfromtext('LINESTRING(63712 553056,100576 556640,146912 > >> 555360,190176 557664)',28992), > >> '1F20F1102' > >> ); > > > > > > I believe you are using the relate filter function right? You can modify > the > > PostgisFilterToSql to encode it. > > so adding a public Object visit(FilterFunction_relatePattern filter, > Object extraData) {} in PostgisFilterToSql that writes the SQL should > do the trick? or would I need to add a filter capability as well? > Also to the filter capabilities Cheers Andrea -- == Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit http://goo.gl/WHKDXT for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. -------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users