Hi and welcome to the list!
I've not used vector tiles myself so my reply is limited, but I can see your
JSON problem is as you describe:
"id": "27283",
"lat": "27.038510519999999",
"lng": "88.459210400000003",
They're all encoded as JSON strings and should be of type Number: "id": 27283 -
no quotes around the value.
Looking through the three GeoServer doc pages that mention "pbf", they all
demonstrate JSON that seems to be correctly encoding numbers, but I don't see
anything about configuration (maybe I missed it). I'd suggest this may be a
bug, but others who know more should hopefully be able to clarify further.
What version of GeoServer are you using?
Also - does it do it for all formats? MVT, GeoJSON and TopoJSON? -
http://docs.geoserver.org/stable/en/user/extensions/vectortiles/tutorial.html?highlight=pbf#vector-tile-formats
Cheers,
Jonathan
---- On Wed, 27 Dec 2017 10:58:33 +0000 Priyanshu
Agarwal<priyanshu6...@gmail.com> wrote ----
Hi all,
This is my first post to the list so please pardon any mistakes.
I started using geoserver recently to generate vector tiles for mapbox-gl and
am facing a strange behaviour. One of my database tables has some attributes of
'numeric' type. On the geoserver portal, their data type is being shown as
'BigDecimal'. But when I request a vector tile in .pbf format, the JSON object
on the from object shows the data as String and hence unable to perform
range-based styling. Is there some configuration I need to mention how to
interpret this particular data type?
I have posted this question on stackexcahnge in detail with screenshots and
code fragments.
Any help is greatly appreciated.
Thanks!
--
Priyanshu Agarwal
------------------------------------------------------------------------------
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
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
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
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users