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!

-- 
Antonis Christofides
+30-2118000592 (work)
+30-6979924665 (mobile)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to