featureofinterst with polygone geometry not being displayed with JS-Client

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

featureofinterst with polygone geometry not being displayed with JS-Client

Khadija H Rmayti
Hi all,
I am using SOS 4.4.0-SNAPSHOT on a ubuntu 14.04 virtual machine to insert observations using InsertObservation request and it works fine. The feature of interest is a polygon:
<gml:Polygon xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml/3.2" gml:id="ogp-extpoly-3269" srsDimension="2" srsName="urn:ogc:def:crs:EPSG::4326" xsi:schemaLocation="http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd">
<gml:descriptionReference xlink:href="urn:ogc:def:area:EPSG::3269" xlink:type="simple"/>
<gml:identifier codeSpace="OGP">urn:ogc:def:extent-polygon:EPSG::3269</gml:identifier>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
34.64750 35.97277 34.64786 35.97130 34.64735 35.96773 34.64241 35.93356 34.64239 35.93346 34.63713 35.91409 34.63375 35.91560 34.62904 35.91773 34.62539 35.91949 34.62240 35.92107 34.60316 35.92813 34.56202 35.93145 34.55597 35.92982 34.51301 35.86563 34.47416 35.78766 34.47262 35.78477 34.47072 35.78166 34.46821 35.77814 34.34813 35.62701 34.34507 35.62362 34.34255 35.62123 34.33990 35.61905 34.33712 35.61708 34.30571 35.59653 34.30286 35.59481 34.29989 35.59330 34.29685 35.59203 34.29373 35.59101 34.29056 35.59024 34.28735 35.58971 34.28403 35.58944 34.23800 35.58759 34.23548 35.58487 34.23225 35.58176 34.22960 35.57959 34.22683 35.57763 34.22396 35.57590 34.22099 35.57440 34.21794 35.57313 34.21482 35.57211 34.21165 35.57134 34.20844 35.57082 34.20521 35.57055 34.20123 35.57057 34.13887 35.57494 34.13475 35.57552 34.13154 35.57626 34.12824 35.57730 34.10224 35.58673 34.02816 35.57671 33.95599 35.53351 33.95652 35.52955 33.95682 35.52568 33.95690 35.52181 33.95677 35.51794 33.95647 35.51442 33.95103 35.46593 33.95046 35.46196 33.94970 35.45822 33.94873 35.45455 33.94756 35.45097 33.94620 35.44749 33.94464 35.44413 33.94291 35.44090 33.94099 35.43783 33.93891 35.43491 33.93667 35.43217 33.93428 35.42961 33.93175 35.42725 33.92909 35.42509 33.92632 35.42315 33.92344 35.42143 33.92046 35.41995 33.91741 35.41870 33.91429 35.41769 33.91112 35.41693 33.90791 35.41642 33.90467 35.41616 33.90142 35.41616 33.89817 35.41641 33.89487 35.41692 33.85913 35.42399 33.85619 35.42445 33.83137 35.42437 33.81611 35.42152 33.80207 35.41417 33.76669 35.38995 33.76327 35.38788 33.76068 35.38657 33.70657 35.36155 33.65076 35.33886 33.64662 35.33750 33.60289 35.32565 33.55104 35.30351 33.52905 35.28469 33.50993 35.26118 33.49344 35.23617 33.49118 35.23302 33.48893 35.23030 33.48653 35.22777 33.48399 35.22543 33.48133 35.22330 33.47855 35.22138 33.47566 35.21968 33.47269 35.21822 33.46963 35.21699 33.44096 35.20672 33.32061 35.16399 33.31758 35.16305 33.31447 35.16232 33.25803 35.15143 33.23075 35.14733 33.20832 35.13671 33.16343 35.09642 33.13499 35.06609 33.13284 35.06327 33.13060 35.06053 33.12811 35.05769 33.12588 35.05537 33.12334 35.05306 33.12067 35.05094 33.11788 35.04904 33.11499 35.04737 33.11201 35.04592 33.10895 35.04471 33.10583 35.04373 33.10292 35.04303 33.09455 35.06859 33.09351 35.10032 33.09361 35.10083 33.09555 35.10944 33.09861 35.26500 33.08805 35.32194 33.06250 35.35194 33.06208 35.37778 33.06833 35.42555 33.09805 35.50527 33.11499 35.50583 33.12673 35.52569 33.19653 35.54277 33.27027 35.58555 33.24573 35.62363 33.27632 35.62666 33.34111 35.76944 33.34722 35.78666 33.35056 35.79417 33.37111 35.81472 33.40326 35.82639 33.41729 35.85200 33.42958 35.88333 33.46666 35.93417 33.55333 36.03444 33.58562 36.05875 33.61916 36.02555 33.64069 35.96722 33.64416 35.94020 33.71819 35.97111 33.76972 36.01722 33.82753 36.07104 33.85638 36.24083 33.82694 36.35333 33.83111 36.37395 33.85423 36.38874 33.87992 36.35777 33.87833 36.32944 33.91090 36.28347 33.97499 36.32792 33.99722 36.35027 34.03388 36.39750 34.10722 36.51694 34.20499 36.62374 34.22819 36.59361 34.34416 36.54666 34.43194 36.52583 34.49139 36.45444 34.50194 36.42999 34.50075 36.35123 34.53806 36.36417 34.55444 36.39750 34.59472 36.45277 34.63041 36.45930 34.63944 36.37639 34.64194 36.29859 34.64417 36.12194 34.64001 36.11446 34.63876 36.11298 34.63389 36.08749 34.63250 36.03083 34.64750 35.97277
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
The problem is that when I try to see the observations in JS-Client it gives An error occured:
Unexpected Exception occured.
After looking to the log I found the following exception
Caused by: java.lang.ClassCastException: com.vividsolutions.jts.geom.Polygon cannot be cast to com.vividsolutions.jts.geom.Point
        at org.n52.series.api.v1.db.da.StationRepository.createPoint(StationRepository.java:186) ~[timeseries-series-dao-1.7.2.jar:na]
        at org.n52.series.api.v1.db.da.StationRepository.createCondensed(StationRepository.java:175) ~[timeseries-series-dao-1.7.2.jar:na]
        at org.n52.series.api.v1.db.da.StationRepository.getCondensedInstance(StationRepository.java:158) ~[timeseries-series-dao-1.7.2.jar:na]
        at org.n52.series.api.v1.db.da.TimeseriesRepository.createCondensedStation(TimeseriesRepository.java:257) ~[timeseries-series-dao-1.7.2.jar:na]
        at org.n52.series.api.v1.db.da.TimeseriesRepository.createCondensed(TimeseriesRepository.java:242) ~[timeseries-series-dao-1.7.2.jar:na]
I think it means that JS-Client don't support displaying polygon?
If it is, what do you may recommend me to use?

thanks in advance,
Khadija Rmayti
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: featureofinterst with polygone geometry not being displayed with JS-Client

Carsten Hollmann
Hi Khadija Rmayti,

the Series REST API [0] which is accessed by the JS-Client support only
point geometries in the current version.
Therefore the featureOfInterest should be a point, e.g. the center of
your polygon.

Best,
Carsten

[0] https://github.com/52North/series-rest-api
_______________________________________________
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
|  
Report Content as Inappropriate

Re: featureofinterst with polygone geometry not being displayed with JS-Client

Khadija H Rmayti
hi Carsten,

thanks for your reply, can you tell me please if any of the SOS clients support showing featureofinterest with polygon shape

Best Regards,
Khadija Rmayti
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

featureofinterst with polygon geometry

Scholten, Daniel
In reply to this post by Carsten Hollmann
Dear 52n-Team,

does the 52n-sos-webapp support polygon geometry when using the standard SOS with KVP-binding and XML-encoding (getFeatureOfInterestResponse-XML)?

Thanks
Daniel
__________________________________________________
Daniel Scholten

Niersverband
Stabsstelle Informations- und Modelltechnik (IMT)
Sachbereich Softwaretechnik
Am Niersverband 10
41747 Viersen

Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
Fax: +49 2162 3704 - 444
E-Mail: [hidden email]

Körperschaft des öffentlichen Rechts, Sitz: Viersen
Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm


-----Ursprüngliche Nachricht-----
Von: SWE [mailto:[hidden email]] Im Auftrag von Carsten Hollmann
Gesendet: Dienstag, 3. Mai 2016 09:38
An: [hidden email]
Betreff: Re: [52N SWE] featureofinterst with polygone geometry not being displayed with JS-Client

Hi Khadija Rmayti,

the Series REST API [0] which is accessed by the JS-Client support only point geometries in the current version.
Therefore the featureOfInterest should be a point, e.g. the center of your polygon.

Best,
Carsten

[0] https://github.com/52North/series-rest-api
_______________________________________________
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
_______________________________________________
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
|  
Report Content as Inappropriate

Re: featureofinterst with polygon geometry

Carsten Hollmann
Hi Daniel,

yes, the 52n-sos-webapp supports polygons as a geometry of the
featureOfInterest.

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