SOS Importer and samplingGeometry

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

SOS Importer and samplingGeometry

debard
Hi,
I am a SOS Importer User and (sorry for my English). I have a problem with inserting data into the sos database. In fact, I saw in a publication of this forum that the <ObservationArea> in the Offering (GetCapabilities) is generated when the observation column of the "sampleGeometry" array is not null.
When I used the SOSimporter to insert data into the database (postgresql + Postgis) with a repeated feeder, i look for where to place the information in the XML configuration.
Thank you very much,
Regards,
Reply | Threaded
Open this post in threaded view
|

Re: SOS Importer and samplingGeometry

debard
Hi, I update my question
I saw it is possible with the "om:parameter"  - tag for adding in request a spatialFilter :
http://blog.52north.org/2013/08/20/spatial-filtering-and-time-dependent-sensor-descriptions-for-sos/

and also i saw an exemple for XML config here:
https://github.com/52North/sos-importer/pull/85/commits/5ad2b11e4b03827d330bf69329b312470a5f99ce

But i don't know if it's possible for Geometric value to update the column samplingGeometry
thanks a lot
Reply | Threaded
Open this post in threaded view
|

Re: SOS Importer and samplingGeometry

Eike Hinderk Jürrens
Hi Stephane,
it is possible to use the om:parameter attribute of an observation for
providing a sampling geometry different from the feature of interest
geometry with the 52N SOS implementation. At the moment, this is not
possible with the importer implementation.

Are you willing to provide this feature?

If yes, I can give you some more information where and how to start?

If no, please add an issue at github, hence we don't miss it in the next
implementation period.

Kind regards,
Eike


Am 23.08.2017 um 15:22 schrieb debard:

> Hi, I update my question
> I saw it is possible with the "om:parameter"  - tag for adding in request a
> spatialFilter :
> http://blog.52north.org/2013/08/20/spatial-filtering-and-time-dependent-sensor-descriptions-for-sos/
>
> and also i saw an exemple for XML config here:
> https://github.com/52North/sos-importer/pull/85/commits/5ad2b11e4b03827d330bf69329b312470a5f99ce
>
> But i don't know if it's possible for Geometric value to update the column
> samplingGeometry
> thanks a lot
>
>
>
>
> --
> View this message in context: http://sensorweb.forum.52north.org/SOS-Importer-and-samplingGeometry-tp4029008p4029009.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
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines


--
Eike Hinderk Jürrens
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-33
Fax: +49-(0)-251–396371-11
http://52north.org/
Twitter: @FiveTwoN
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
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 Importer and samplingGeometry

debard
Hi Eike,
For my needs it's not a sampling geometry different from the feature of interest
geometry, but the same (for five geometry point). I just want to add, with the sosimporter in sampling geometry --> the geometry of the feature interest. But if it's the same problem like to add a different sampling geometry, i can try to develop with more information to do this implementation.
Regards,
Reply | Threaded
Open this post in threaded view
|

Re: SOS Importer and samplingGeometry

Eike Hinderk Jürrens
Am 28.08.2017 um 14:17 schrieb debard:
> Hi Eike,
> For my needs it's not a sampling geometry different from the feature of
> interest
> geometry, but the same (for five geometry point). I just want to add, with
> the sosimporter in sampling geometry --> the geometry of the feature
> interest. But if it's the same problem like to add a different sampling
> geometry, i can try to develop with more information to do this
> implementation.

Hi Stephane,
this sound like you need a full implementation of sampling geometry
support via om:parameter.

This requires two changes:

1. Extend the OX-Framework to support geometry within the om:parameter
of an observation:

1.1. Add type GeometryParameter as subtype of
org.n52.oxf.om.x20.OmParamter<T> where T is java.lang.String containing
the XML encoded geometry
1.2. Extend the method
org.n52.oxf.sos.adapter.v200.SOSRequestBuilder200POX.addOMParameters(..)
to handle the newly added GeometryParameter type.

2. Extend the SOS-Importer to support om:parameter of type Geometry.

2.1. Add documentation to import-configuration.xsd that GEOMETRY is a
supported TYPE of TYPE OM_PARAMETER
2.2. Extend the method
org.n52.sos.importer.feeder.DataFile.getOmParameter() to handle the case
of TYPE GEOMETRY

Any questions or comments?

Kind regards,
Eike

--
Eike Hinderk Jürrens
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-33
Fax: +49-(0)-251–396371-11
http://52north.org/
Twitter: @FiveTwoN
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
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 Importer and samplingGeometry

debard
Hi Eike,

Thank you for your reply. I worked this week on your recommendations.
All of the implementation is ok now for me  (1.1, 1.2, 2.1, 2.2)
The compilation with plug-in maven is a success and the .jar(s) is ready to be useful. I think in my config-file.xml , i must to import geometry like this:

<Column> <Number>5</Number> <Type>OM_PARAMETER</Type> <Metadata> <Key>TYPE</Key> <Value>GEOMETRY</Value> </Metadata> <Metadata> <Key>NAME</Key> <Value>geometry-parameter</Value> </Metadata> </Column> But i don't know how to match the new parameter with the samplingGeometry colums in observation table.

Many Thank ,
Regards,
Stephane


Le 29/08/2017 à 14:49, Eike Hinderk Jürrens a écrit :
Am 28.08.2017 um 14:17 schrieb debard:
Hi Eike,
For my needs it's not a sampling geometry different from the feature of
interest 
geometry, but the same (for five geometry point). I just want to add, with
the sosimporter in sampling geometry --> the geometry of the feature
interest. But if it's the same problem like to add a different sampling
geometry, i can try to develop with more information to do this
implementation.
Hi Stephane,
this sound like you need a full implementation of sampling geometry
support via om:parameter.

This requires two changes:

1. Extend the OX-Framework to support geometry within the om:parameter
of an observation:

1.1. Add type GeometryParameter as subtype of
org.n52.oxf.om.x20.OmParamter<T> where T is java.lang.String containing
the XML encoded geometry
1.2. Extend the method
org.n52.oxf.sos.adapter.v200.SOSRequestBuilder200POX.addOMParameters(..)
to handle the newly added GeometryParameter type.

2. Extend the SOS-Importer to support om:parameter of type Geometry.

2.1. Add documentation to import-configuration.xsd that GEOMETRY is a
supported TYPE of TYPE OM_PARAMETER
2.2. Extend the method
org.n52.sos.importer.feeder.DataFile.getOmParameter() to handle the case
of TYPE GEOMETRY

Any questions or comments?

Kind regards,
Eike



_______________________________________________
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 Importer and samplingGeometry

Eike Hinderk Jürrens
Am 01.09.2017 um 16:21 schrieb Stéphane DEBARD:

> Hi Eike,
>
> Thank you for your reply. I worked this week on your recommendations.
> All of the implementation is ok now for me  (1.1, 1.2, 2.1, 2.2)
> The compilation with plug-in maven is a success and the .jar(s) is
> ready to be useful. I think in my config-file.xml , i must to import
> geometry like this:
>
> <Column> <Number>5</Number> <Type>OM_PARAMETER</Type> <Metadata>
> <Key>TYPE</Key> <Value>GEOMETRY</Value> </Metadata> <Metadata>
> <Key>NAME</Key> <Value>geometry-parameter</Value> </Metadata> </Column>

That looks good. I am currently implementing support for this is the GUI
except support for geometry types atm.


> But i don't know how to match the new parameter with the
> samplingGeometry colums in observation table.


This depends how the information is available in the column. Do you have
an example available?
Kind regards,
Eike

--
Eike Hinderk Jürrens
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-33
Fax: +49-(0)-251–396371-11
http://52north.org/
Twitter: @FiveTwoN
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
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 Importer and samplingGeometry

debard
Hi Eike,

i can put different format in my csv column of value because i have a pre
treatment on my csv files before the feeder module. Now my column is like
that:

 ...;Humidite_air_Sensor;POINT(14.74358 -61.04236)   <--- geometryparameter

thank , regards
Stephane




--
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: SOS Importer and samplingGeometry

Eike Hinderk Jürrens
Hi Stephane,
I think supporting WKT in one single column is fine.
Kind regards,
Eike

Am 07.09.2017 um 17:00 schrieb debard:
Hi Eike,

i can put different format in my csv column of value because i have a pre
treatment on my csv files before the feeder module. Now my column is like
that:

 ...;Humidite_air_Sensor;POINT(14.74358 -61.04236)   <--- geometryparameter

thank , regards
Stephane




--
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


-- 
Eike Hinderk Jürrens
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-33
Fax: +49-(0)-251–396371-11
http://52north.org/
Twitter: @FiveTwoN
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
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 Importer and samplingGeometry

debard
Hi,

I encountered a new problem because for this function:

private void addOMParameters(ParameterContainer parameters,
OMObservationType xbObservation) {
        final ParameterShell omParameters =
parameters.getParameterShellWithServiceSidedName(INSERT_OBSERVATION_OM_PARAMETER_PARAMETERS);

my result is for omParameters  == "null"  and my XML is build without
<om:parameter>
    <om:NamedValue>
     ...
</om:parameter>
    </om:NamedValue>

Could you give me element to resolved this developement ?

thanks
Stephane



--
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: SOS Importer and samplingGeometry

Eike Hinderk Jürrens
Am 14.09.2017 um 14:37 schrieb debard:
> I encountered a new problem because for this function:
>
> private void addOMParameters(ParameterContainer parameters,
> OMObservationType xbObservation) {
>         final ParameterShell omParameters =
>
parameters.getParameterShellWithServiceSidedName(INSERT_OBSERVATION_OM_PARAMETER_PARAMETERS);
>
> my result is for omParameters  == "null"  and my XML is build without
> <om:parameter>
>     <om:NamedValue>
>      ...
> </om:parameter>
>     </om:NamedValue>
>
> Could you give me element to resolved this developement ?

You need to extend the method
org.n52.oxf.sos.adapter.v200.SOSRequestBuilder200POX.addOMParameters(..)
and add an additional else if statement checking for
org.n52.oxf.om.x20.GeometryParameter which is a new sub type
org.n52.oxf.om.x20.OmParameter to be implemented by you.

Kind regards,
Eike


--
Eike Hinderk Jürrens
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-33
Fax: +49-(0)-251–396371-11
http://52north.org/
Twitter: @FiveTwoN
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
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 Importer and samplingGeometry

debard
Hi Eike,

I work with 'insertSweArrayObservation' and to add OmParameter isn't
implemented. With SingleObservation the insert of "samplingGeometry" is
good.
I don't know if it's possible with "insertSweArrayObservation" mode.

Many thank
Stephane



--
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