Re: [Geotools-devel] WMS Date filters not working with MongoDB
On Fri, Jul 24, 2015 at 12:28 AM, Reese, Nathan nre...@integrity-apps.com wrote: The query below is what the query generated by geoserver should look like { date : { $gt : ISODate(2015-07-01T00:00:00Z) } } How can I get the date query to be typed as Date instead of String? I believe you'll have to modify this method, checking if the https://github.com/geotools/geotools/blob/master/modules/unsupported/mongodb/src/main/java/org/geotools/data/mongodb/FilterToMongo.java#L530 There is a catch though, if you have the filter expressed in CQL, the date will be parsed as a java.util.Date and you can just do a instanceof in that encodeLiteral method, if instead it comes from a OGC filter (xml form) it will be parsed as a String, and the encoder is supposed to cast it to the right type, like FilterToSQL does, by checking what data type the attribute it's compared to is: https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/FilterToSQL.java#L712 Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 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-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] 14-M1 artifacts
Jody, I'm pretty confused, where is this M1 coming from? Don't think it was ever discussed? Cheers Andrea On Thu, Jul 23, 2015 at 11:11 PM, Jody Garnett jody.garn...@gmail.com wrote: Release artifacts are up on ares: - http://ares.boundlessgeo.com/geotools/release/14-M1/ Going to deploy next (to maven at least) although I have no confidence they will upload to SF (could not connect via SFTP). This release includes the following two commits: * Clarify RobustDeterminant use of LGPL https://github.com/geotools/geotools/commit/8a886b6295abb9a896ad5ad2f1a81ff016317f92 * Clarify implementation of computeRect (GEOT-5155) https://github.com/geotools/geotools/commit/c900bf5a921d0095576341c12df191464095ffca -- Jody Garnett -- ___ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 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-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
[Geotools-devel] Jenkins build is unstable: GeoTools-13.x » MBTiles Module #72
See http://winbuild.geo-solutions.it/jenkins/job/GeoTools-13.x/org.geotools$gt-mbtiles/72/ -- ___ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Jenkins build is unstable: GeoTools-13.x » MBTiles Module #72
On Fri, Jul 24, 2015 at 2:57 PM, winbu...@geo-solutions.it wrote: See http://winbuild.geo-solutions.it/jenkins/job/GeoTools-13.x/org.geotools$gt-mbtiles/72/ Looks unrelated to my mosaic commit, seems to be related to some native lib issue instead (sqlite related I suppose?) Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 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-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] WMS Date filters not working with MongoDB
Hi,here is a pull request that should fix the issue: https://github.com/geotools/geotools/pull/919 Reviews are welcome ;-) Best regards, Stefano Costa == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Dott. Stefano Costa Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 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. Da: Andrea Aime andrea.a...@geo-solutions.it A: Reese, Nathan nre...@integrity-apps.com Cc: geotools-devel@lists.sourceforge.net geotools-devel@lists.sourceforge.net Data: Fri, 24 Jul 2015 08:26:58 +0200 Oggetto: Re: [Geotools-devel] WMS Date filters not working with MongoDB On Fri, Jul 24, 2015 at 12:28 AM, Reese, Nathan nre...@integrity-apps.com wrote: The query below is what the query generated by geoserver should look like { date : { $gt : ISODate(2015-07-01T00:00:00Z) } } How can I get the date query to be typed as Date instead of String? I believe you'll have to modify this method, checking if the https://github.com/geotools/geotools/blob/master/modules/unsupported/mongodb/src/main/java/org/geotools/data/mongodb/FilterToMongo.java#L530 There is a catch though, if you have the filter expressed in CQL, the date will be parsed as a java.util.Date and you can just do a instanceof in that encodeLiteral method, if instead it comes from a OGC filter (xml form) it will be parsed as a String, and the encoder is supposed to cast it to the right type, like FilterToSQL does, by checking what data type the attribute it's compared to is: https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/FilterToSQL.java#L712 Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 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
Re: [Geotools-devel] WMS Date filters not working with MongoDB
Wow, That is an amazingly fast turn around time. Thanks for the patch - I am now able to filter by Date with MongoDB! In the file FilterToMongo.java, line 261, did you mean to create leftValueType with getValueType(right). Class? leftValueType = getValueType(right), rightValueType = getValueType(left); It seams like this line should be Class? leftValueType = getValueType(left), rightValueType = getValueType(right); Nathan From: stefano.costa [stefano.co...@geo-solutions.it] Sent: Friday, July 24, 2015 8:25 AM To: andrea.a...@geo-solutions.it Cc: Reese, Nathan; geotools-devel@lists.sourceforge.net Subject: Re: [Geotools-devel] WMS Date filters not working with MongoDB Hi, here is a pull request that should fix the issue: https://github.com/geotools/geotools/pull/919 Reviews are welcome ;-) Best regards, Stefano Costa == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Dott. Stefano Costa Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 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. Da: Andrea Aime andrea.a...@geo-solutions.it A: Reese, Nathan nre...@integrity-apps.com Cc: geotools-devel@lists.sourceforge.net geotools-devel@lists.sourceforge.net Data: Fri, 24 Jul 2015 08:26:58 +0200 Oggetto: Re: [Geotools-devel] WMS Date filters not working with MongoDB On Fri, Jul 24, 2015 at 12:28 AM, Reese, Nathan nre...@integrity-apps.commailto:nre...@integrity-apps.com wrote: The query below is what the query generated by geoserver should look like { date : { $gt : ISODate(2015-07-01T00:00:00Z) } } How can I get the date query to be typed as Date instead of String? I believe you'll have to modify this method, checking if the https://github.com/geotools/geotools/blob/master/modules/unsupported/mongodb/src/main/java/org/geotools/data/mongodb/FilterToMongo.java#L530https://github.com/geotools/geotools/blob/master/modules/unsupported/mongodb/src/main/java/org/geotools/data/mongodb/FilterToMongo.java#L530 There is a catch though, if you have the filter expressed in CQL, the date will be parsed as a java.util.Date and you can just do a instanceof in that encodeLiteral method, if instead it comes from a OGC filter (xml form) it will be parsed as a String, and the encoder is supposed to cast it to the right type, like FilterToSQL does, by checking what data type the attribute it's compared to is: https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/FilterToSQL.java#L712https://github.com/geotools/geotools/blob/master/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/FilterToSQL.java#L712 Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488Vhttp://goo.gl/it488V 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.ithttp://www.geo-solutions.it
Re: [Geotools-devel] 14-M1 artifacts
Was discussed in meeting and out on release schedule earlier in the month. Was waiting in IP clarifications which Simone provided. Jim and myself were going to do it yesterday but he had a schedule conflict. On the release schedule you can see this is justin geotools release. On Thu, Jul 23, 2015 at 11:27 PM Andrea Aime andrea.a...@geo-solutions.it wrote: Jody, I'm pretty confused, where is this M1 coming from? Don't think it was ever discussed? Cheers Andrea On Thu, Jul 23, 2015 at 11:11 PM, Jody Garnett jody.garn...@gmail.com wrote: Release artifacts are up on ares: - http://ares.boundlessgeo.com/geotools/release/14-M1/ Going to deploy next (to maven at least) although I have no confidence they will upload to SF (could not connect via SFTP). This release includes the following two commits: * Clarify RobustDeterminant use of LGPL https://github.com/geotools/geotools/commit/8a886b6295abb9a896ad5ad2f1a81ff016317f92 * Clarify implementation of computeRect (GEOT-5155) https://github.com/geotools/geotools/commit/c900bf5a921d0095576341c12df191464095ffca -- Jody Garnett -- ___ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 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. --- -- -- Jody Garnett -- ___ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel