Antonis Christofides
2017-07-12 10:15:22 UTC
Hello,
I have a layer which has some properties that geoserver indicates are "Double".
If I get these properties through WFS (e.g.
http://chemicalse.etme.gr/geoserver/etme/ows?service=WFS&version=1.1.0&request=GetFeature&typename=etme:DIKTYO_EPIFANEIAKWN_POTAMIA&srsname=EPSG:3857&outputformat=gml3),
here is (part of) what I get (I've bolded the problem):
<etme:DIKTYO_EPIFANEIAKWN_POTAMIA gml:id="DIKTYO_EPIFANEIAKWN_POTAMIA.1">
<etme:the_geom>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#3857" srsDimension="2">
<gml:pos>2413731.81975826 4690224.47314216</gml:pos>
</gml:Point>
</etme:the_geom>
***<etme:A_A>1.0</etme:A_A>*
<etme:CODE>1-P-KARPENISIOTIS</etme:CODE>
<etme:P_E>Åõñõôáíßáò</etme:P_E>
</etme:DIKTYO_EPIFANEIAKWN_POTAMIA>
OpenLayers thinks that the etme:A_A property is a string (whereas in geoserver,
as I said, it is registered as "Double"). Is this a geoserver issue or a WFS
limitation?
In addition, if I ask for json instead of gml3, the value is still a string, but
it shows as "1", without decimal places. Why is this?
(I'm running geoserver 2.11.1).
Thanks!
I have a layer which has some properties that geoserver indicates are "Double".
If I get these properties through WFS (e.g.
http://chemicalse.etme.gr/geoserver/etme/ows?service=WFS&version=1.1.0&request=GetFeature&typename=etme:DIKTYO_EPIFANEIAKWN_POTAMIA&srsname=EPSG:3857&outputformat=gml3),
here is (part of) what I get (I've bolded the problem):
<etme:DIKTYO_EPIFANEIAKWN_POTAMIA gml:id="DIKTYO_EPIFANEIAKWN_POTAMIA.1">
<etme:the_geom>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#3857" srsDimension="2">
<gml:pos>2413731.81975826 4690224.47314216</gml:pos>
</gml:Point>
</etme:the_geom>
***<etme:A_A>1.0</etme:A_A>*
<etme:CODE>1-P-KARPENISIOTIS</etme:CODE>
<etme:P_E>Åõñõôáíßáò</etme:P_E>
</etme:DIKTYO_EPIFANEIAKWN_POTAMIA>
OpenLayers thinks that the etme:A_A property is a string (whereas in geoserver,
as I said, it is registered as "Double"). Is this a geoserver issue or a WFS
limitation?
In addition, if I ask for json instead of gml3, the value is still a string, but
it shows as "1", without decimal places. Why is this?
(I'm running geoserver 2.11.1).
Thanks!
--
Antonis Christofides
+30-2118000592 (work)
+30-6979924665 (mobile)
Antonis Christofides
+30-2118000592 (work)
+30-6979924665 (mobile)