Insert NaN value to sos - Helgoland visualization problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Insert NaN value to sos - Helgoland visualization problem

and.vianello
Hi all,
We need to insert into the database a NaN ( null ) value.

I tested that "NaN" string is allowed and accepted by the database, but
Helgoland stops working: the timeseries with NaN value is hanging and no
values are visualized.
The other timeseries are still working.

Is there any way to insert a null value accepted by DB and Helgoland too?
Thank you in advance,
Andrea.



--
Sent from: http://sensorweb.forum.52north.org/
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert NaN value to sos - Helgoland visualization problem

Carsten Hollmann
Hi Andrea,

we have checked this and probably this is caused by the examples in the
configuration files of the REST-API. These files describes for example
how a phenomenon should be rendered or which status intervals are
defined for the values.

To avoid this you should remove the content of the following
configuration JSON files an add only "{}" to the files in the folder
[TOMCAT_HOME]\webapps\[SOS_NAME]\WEB-INF\classes:

- config-extension-resultTime.json
- config-rendering-hints.json
- config-status-intervals.json
- config-task-prerendering.json

After that you should restart the Tomcat/SOS.

We have tested this with inserted "NaN" values and the helgoland client
shows gaps, as expected, where the values are "NaN".

Best,
Carsten
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert NaN value to sos - Helgoland visualization problem

and.vianello
Hi Carsten,

We tested your suggestion but the timeseries with NaN values still continues
hanging.

We are using the 4.3.15 SOS version and here the file
config-extension-resultTime.json was missing, so we created it.
Then we modified the files:
- config-rendering-hints.json
- config-status-intervals.json
- config-task-prerendering.json

After the restart of tomcat, helgoland is not able to read the timeseries
with NaN values.

Is there something else to do?




--
Sent from: http://sensorweb.forum.52north.org/
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert NaN value to sos - Helgoland visualization problem

Carsten Hollmann
Hi Andrea,

I have tested it with the SOS 4.4.0 which uses a release candidate of
the REST-API 2.0.

The SOS 4.3.15 uses the REST-API version 1.10.x which does not yet check
for "NaN" value before the value is formatted which cause an exception.
Bu you can define another "no data" value and define this in the
configuration file:

    [SOS]\WEB-INF\spring\timeseries-api_v1_beans.xml

I the line 14 you find

   <property name="noDataValues" value="-9999.0,99999" />

You can add the no data value you prefer and this values would then not
displayed in the Helgoland client. The value in the SOS database should
also be changed to the no data value.
After a restart the changes in the configuration file would be applied.

Best,
Carsten
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines