TransWikia.com

PostGIS St_AsGeoBuf: how to handle Boolean type?

Geographic Information Systems Asked on April 25, 2021

I am using ST_AsGeoBuf function in a query like that one:

SELECT ST_AsGeoBuf(t.*, 'geom') 
FROM table t

After decoding the geobuf to a legible JSON the boolean types show up as strings with values "f" or "t".

I also tested encoding and decoding GeoJSONs with Boolean attributes and it worked properly, so now I know that the issue lies within PostGIS and not the decoder or the format. I need to get a geobuf with proper Boolean types. Any workarounds for this?

PostGIS v3.0

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP