Re: [Geotools-devel] jdbc negative dates

2016-04-09 Thread Andrea Aime
On Sat, Apr 9, 2016 at 11:55 AM, Simone Giannecchini <
simone.giannecch...@geo-solutions.it> wrote:

> > That's quite interesting can you elaborate on how they are using it?
> E.g.,
> > calling it command line (safe) vs JNI in a Java multitheaded application
> > (one glitch and the process is dead),
> > or maybe from a python CGI/FastCGI (irrelevant to our discussion)?
> >
>
> option 2
>

Got a clarification, it's direct python usage, thus irrelevant to the MT an
in-process discussion (if a process crashes they will barely notice, a
single
request will die and apache will start another)

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 di Montramito 3/A
55054  Massarosa (LU)
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.

---
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] jdbc negative dates

2016-04-09 Thread Simone Giannecchini
On Sat, Apr 9, 2016 at 11:36 AM, Andrea Aime
 wrote:
> On Sat, Apr 9, 2016 at 12:25 AM, Jody Garnett 
> wrote:
>>
>> I have been catching up with the GeoNode project this week (interestingly
>> the project is using GDAL 2.0 which we were discussion earlier in the week).
>
>
> That's quite interesting can you elaborate on how they are using it? E.g.,
> calling it command line (safe) vs JNI in a Java multitheaded application
> (one glitch and the process is dead),
> or maybe from a python CGI/FastCGI (irrelevant to our discussion)?
>

option 2


>>
>>
>> Right now the project is running a fork of geotools to have the following
>> fix (from #997):
>>
>>  Date converted = null;
>>  if (target == PostGISDialect.XDate.class) {
>>  converted = Converters.convert(expression.evaluate(null),
>> Date.class);
>>  }
>>  if (converted != null) {
>>  return converted.getTime();
>> } else {
>>  return super.evaluateLiteral(expression, target);
>> }
>>
>> I rejected this fix, since it violated the API contract (by returning a
>> Date rather than the requested XDate). The quickest thing I can think of is
>> to make XDate a real class and write a converter that handles it
>> appropriately.
>
>
> Is there anywhere an explanation of why things are not working now? XDate
> there is a plain jane subclass of Date.class,
> adding nothing extra.
> The pull request seemed to have changes a bit all over the place, but I
> cannot figure out how they are working toghether
> to solve the issue
>
> 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 di Montramito 3/A
> 55054  Massarosa (LU)
> 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.
>
>
> ---
>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers
> of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
> ___
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.ne

Re: [Geotools-devel] jdbc negative dates

2016-04-09 Thread Andrea Aime
On Sat, Apr 9, 2016 at 12:25 AM, Jody Garnett 
wrote:

> I have been catching up with the GeoNode project this week (interestingly
> the project is using GDAL 2.0 which we were discussion earlier in the week).
>

That's quite interesting can you elaborate on how they are using it? E.g.,
calling it command line (safe) vs JNI in a Java multitheaded application
(one glitch and the process is dead),
or maybe from a python CGI/FastCGI (irrelevant to our discussion)?


>
> Right now the project is running a fork of geotools to have the following
> fix (from #997 ):
>
>  Date converted = null;
>  if (target == PostGISDialect.XDate.class) {
>  converted = Converters.convert(expression.evaluate(null),
> Date.class);
>  }
>  if (converted != null) {
>  return converted.getTime();
> } else {
>  return super.evaluateLiteral(expression, target);
> }
>
> I rejected this fix, since it violated the API contract (by returning a
> Date rather than the requested XDate). The quickest thing I can think of is
> to make XDate a real class and write a converter that handles it
> appropriately.
>

Is there anywhere an explanation of why things are not working now? XDate
there is a plain jane subclass of Date.class,
adding nothing extra.
The pull request seemed to have changes a bit all over the place, but I
cannot figure out how they are working toghether
to solve the issue

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 di Montramito 3/A
55054  Massarosa (LU)
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.

---
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel