SOS SES Feeder

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

SOS SES Feeder

Vrushu20
Hi,

Has anyone used SOS SES Feeder? I need to connect SOS database and SES. I have copied the code from SVN, But I am not getting where to put SOS url or other details. Please if anyone knows any instructions,Let me know.

Vrushali
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Matthes Rieke (52North)
Hi Vrushu,

I just took a closer look on the implementation of the SosSesFeeder project. As I am not directly involved I only can make some assumptions. Imho the SosSesFeeder does not work on the actual SOS HTTP interface. Instead, it connects to the underlying SOS database. The actual access is probably gained through Hibernate (see config files in package org.n52.sos.feeder.baw.hibernate). I also assume that the SosSesFeeder is highly dependent on a specific SOS version used in a certain project.

Perhaps Jan Schulte or Eike H. Jürrens can give additional advice or maybe point out alternatives?

Best Regards,
Matthes


2012/6/8 Vrushu20 <[hidden email]>
Hi,

Has anyone used SOS SES Feeder? I need to connect SOS database and SES. I
have copied the code from SVN, But I am not getting where to put SOS url or
other details. Please if anyone knows any instructions,Let me know.

Vrushali

--
View this message in context: http://sensorweb.forum.52north.org/SOS-SES-Feeder-tp4024973.html
Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org



--
Matthes Rieke
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-51
Fax: +49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849


_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Matthes Rieke (52North)
Hi Vrushu,

I just had a quick talk with Eike. Apparently, I did not dig deep enough into the code. The feeder retrieves the data from the SOS (e.g. version 3.1 has been tested, but you could try newer ones as well) via GetObservation requests. What the feeder is using hibernate for is the configuration of it. As this is in an incubation project, it is currently not much documented so I think you have to play around a bit. First thing would be to set up a configuration database. See build.properties (e.g., "db.createstatement") to define your local database parameters, it supports the on-the-fly creation at application startup. Once you have setup the database you need to provide at least one SOS url within the dedicated database table.

Do not hesitate to get more help on that if you stumble accross any problems.

Best,
Matthes


2012/6/15 Matthes Rieke (52North) <[hidden email]>
Hi Vrushu,

I just took a closer look on the implementation of the SosSesFeeder project. As I am not directly involved I only can make some assumptions. Imho the SosSesFeeder does not work on the actual SOS HTTP interface. Instead, it connects to the underlying SOS database. The actual access is probably gained through Hibernate (see config files in package org.n52.sos.feeder.baw.hibernate). I also assume that the SosSesFeeder is highly dependent on a specific SOS version used in a certain project.

Perhaps Jan Schulte or Eike H. Jürrens can give additional advice or maybe point out alternatives?

Best Regards,
Matthes



2012/6/8 Vrushu20 <[hidden email]>
Hi,

Has anyone used SOS SES Feeder? I need to connect SOS database and SES. I
have copied the code from SVN, But I am not getting where to put SOS url or
other details. Please if anyone knows any instructions,Let me know.

Vrushali

--
View this message in context: http://sensorweb.forum.52north.org/SOS-SES-Feeder-tp4024973.html
Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org



--
Matthes Rieke
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: <a href="tel:%2B49-%280%29-251%E2%80%93396371-51" value="+4925139637151" target="_blank">+49-(0)-251–396371-51
Fax: <a href="tel:%2B49-%280%29-251%E2%80%93396371-11" value="+4925139637111" target="_blank">+49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849




--
Matthes Rieke
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-51
Fax: +49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849


_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Dana
Hi Matthes,
   I've read your reply and I have a question here. I've deployed the sos-ses-feeder in my tomcat and created a database called 'sossesfeeder' through pgAdminIII. I couldn't understand your last sentence, that is "Once you have setup the database you need to provide at least one SOS url within the dedicated database table". I'm not very clear about how to provide a SOS url within the dedicated database table. Would you please explain it in detail? Thank you very much.
Best regards,
Dana
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Chenfeng
Hi,
   I meet the same problems as you met.

the version of SOS i used is 1.0.0.

   Currently i can use the feeder to connect SES and SOS database successful, and when i check the logs in the feeder, everything works fine. But i still donnot know where should i to provide a SOS url, because when i insert any observtions on SOS side, i cannot received anything on SES side, and when i check the logs of the Feeder, it shows this:

2017-08-10 17:17:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:17:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:17:35,854 INFO (ObservationsTask.java:73) - Number of GetObservations: 0
2017-08-10 17:22:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:22:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:22:35,767 INFO (ObservationsTask.java:73) - Number of GetObservations: 0
2017-08-10 17:27:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:27:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:27:35,768 INFO (ObservationsTask.java:73) - Number of GetObservations: 0

and the feeder cannot get anything.
So i think maybe i need to provide a SOS url, but the problem is where can i set the SOS url?

Does anyone can help me?
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Henning Bredel-5
Hey Chenfeng,

did you add the SOS URL in the SOS database table?

Best

  Henning

On 11.08.2017 14:43, Chenfeng wrote:
>    Currently i can use the feeder to connect SES and SOS database
> successful, and when i check the logs in the feeder, everything works fine.
> But i still donnot know where should i to provide a SOS url, because when i
> insert any observtions on SOS side, i cannot received anything on SES side,
> and when i check the logs of the Feeder, it shows this:
_______________________________________________
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: SOS SES Feeder

Chenfeng
Henning Bredel-5 wrote
Hey Chenfeng,

did you add the SOS URL in the SOS database table?

Best

  Henning

On 11.08.2017 14:43, Chenfeng wrote:
>    Currently i can use the feeder to connect SES and SOS database
> successful, and when i check the logs in the feeder, everything works fine.
> But i still donnot know where should i to provide a SOS url, because when i
> insert any observtions on SOS side, i cannot received anything on SES side,
> and when i check the logs of the Feeder, it shows this:
_______________________________________________
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

Hey, Henning,
Thanks for your answer, yes, I have add an id and a SOS_url into the tsos table in the SOS database, everything works fine now, but only the problem that I cannot get any Observations from SOS database, no matter how many observations i inserted into SOS. the logs is like this:
2017-08-10 17:17:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:17:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:17:35,854 INFO (ObservationsTask.java:73) - Number of GetObservations: 0
2017-08-10 17:22:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:22:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:22:35,767 INFO (ObservationsTask.java:73) - Number of GetObservations: 0
2017-08-10 17:27:35,765 INFO (ObservationsTask.java:68) - Currenty feeded sensors: 0
2017-08-10 17:27:35,765 INFO (ObservationsTask.java:71) - ############## Prepare Observations task ################
2017-08-10 17:27:35,768 INFO (ObservationsTask.java:73) - Number of GetObservations: 0

my SOS is 3.6.1 and I selected the standard version is 1.0.0 when I build it.
currently, my Feeder can do the following functions:
1) send getCapabilities to SOS and get the Capabilities.
2) Describe sensor and get Senser ML
3) Registe Publishers at SES side and recieved Publishers_id.

but after that, I checked my logs carefully, I find that the feeder doesn't do the function of getObservation.

Currently my problem is:
When I inserted a sensor and inserted several observations into SOS, I cannot get anything related to the sensor and any observations in the log and in the database which table is tsensor, and on SES side, i also can't get a new publisher. However, when i shutdown the tomcat and restart the Tomcat service again, i can get the sensor in the database which table is tsensor, i can also get the SensorML in logs, I can also get a new publisher at SES side. But it means if I insert a new sensor into SOS, if i want to the feeder to get the sensor, i have to restart the service.
Did I missed some steps? except the sos_url that i need to insert into the database table, do i need to insert any other parameters in SOS database?



My second question is:
Due to the reason that currently the Feeder can only support  SOS standard version 1.0.0.
However, SOS4.4.0 support both 1.0.0 and 2.0.0. Is  SOS-SES-Feeder compatible SOS4.4.0 or not?
But currently when I use the Feeder to connect SOS4.4.0, there are always errors while init SOS serivce. Is it mean that I have to use a SOS service which is only soppurt 1.0.0 standard version (for example SOS3.6.1) or the Feeder can support SOS4.4.0 for the part of standard version 1.0.0, and the error i met is only because of I did some wrong configuration.
Reply | Threaded
Open this post in threaded view
|

Re: SOS SES Feeder

Henning Bredel-5
Hey,

the sos-ses-feeder of cause needs to know what observations to feed. You would
have to add parameters (phenomenon, procedure, etc) to the other tables as well.

Best

  Henning

On 16.08.2017 15:48, Chenfeng wrote:
> Hey, Henning,
> Thanks for your answer, yes, I have add an id and a SOS_url into the tsos
> table in the SOS database, everything works fine now, but only the problem
> that I cannot get any Observations from SOS database, no matter how many
> observations i inserted into SOS. the logs is like this
_______________________________________________
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