<div dir="ltr"><div>Thank you, I had not set gml_ID_type "Real" - however setting:<br><br>      "gml_ID_type"           "Real"<br>      "gml_ID_precision"    "0"<br><br></div>
still results in one decimal:<br><pre>{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "ID": "91.0", "NAME": "10th and Neacoxie Avenue", "OWNER": "Gearhart, City of", "CTYPE": "Beach", "ATYPE": "Vehicle" }, "geometry": { "type": "Point", "coordinates": [ -123.92739999997939, 46.030950000943108 ] } }]}</pre>

<div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">however your hint got me to a solution that skips precision altogether, apologies for missing it before:<br><br>"gml_ID_type"             "Integer"<br>
<br></div><div class="gmail_extra">results in:<br></div><div class="gmail_extra"><pre>{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "ID": "91", "NAME": "10th and Neacoxie Avenue", "OWNER": "Gearhart, City of", "CTYPE": "Beach", "ATYPE": "Vehicle" }, "geometry": { "type": "Point", "coordinates": [ -123.92739999997939, 46.030950000943108 ] } }]}</pre>

<div class="gmail_extra"><br></div>many thanks!<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 12:40 AM, Martin Kofahl <span dir="ltr"><<a href="mailto:martin.kofahl@gmail.com" target="_blank">martin.kofahl@gmail.com</a>></span> wrote:<br>
<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,<br>did you set gml_ID_type "Real"?<br><br></div>Kind regards, Martin<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-10 5:35 GMT+01:00 TC Haddad <span dir="ltr"><<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><br>Hello, I'm trying to use "gml_[item name]_precision" and having trouble. I've tried:<br>

</div></div><br><div style="margin-left:40px">gml_ID_precision   0   <br></div><br>
which fails with "getString(): Symbol definition error. Parsing error near (0):(line 14)", and:<br><br><div style="margin-left:40px">gml_ID_precision   "0"<br></div><br></div>which succeeds in producing GeoJSON as expected but the setting seems to be ignored, e.g.:<br>


<div><div><pre>{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "ID": "91.00000", "NAME": "10th and Neacoxie Avenue", "OWNER": "Gearhart, City of", "CTYPE": "Beach", "ATYPE": "Vehicle" }, "geometry": { "type": "Point", "coordinates": [ -123.92739999997939, 46.030950000943108 ] } }]}</pre>


<br><div> The docs say:<br><br><div style="margin-left:40px"><i>Precision is
the number of decimal places, and is only needed for “Real” fields</i><br></div><br>I'm not sure what "Real" fields mean, but I am trying to use it for the ID field, so maybe that is why I am failing? <br><br>


I'm using Mapserver 6.2.1. with:<br><br>    OUTPUTFORMAT<br>        NAME "GEOJSON"<br>        DRIVER "OGR/GEOJSON"<br>        MIMETYPE "application/json; subtype=geojson"<br>        FORMATOPTION "STORAGE=stream"<br>


        FORMATOPTION "FORM=SIMPLE"<br>    END<br>    <br><br></div></div></div></div>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div></div></div></div></div>