<div dir="ltr"><div><div><div><div><div>Hello<br></div>I need a advice about this problem<br></div>I'm trying to write some C fuction for making geojson as aggregate from records as full regular geojson with properties.<br></div>I tried to use function lwgeom_to_geojson inside my code.<br><br></div><div>something like this<br><br> case JSONTYPE_GEOM: //je;<br> {<br> LWGEOM *lwgeom;<br> lwgeom = lwgeom_from_gserialized(<br> (GSERIALIZED*)DatumGetPointer(val)<br> );<br> outputstr = lwgeom_to_geojson(lwgeom, 0, 0, false);<br> escape_json(result, outputstr);<br> pfree(outputstr);<br></div><div> break;<br></div><div> }<br><br><br></div><div><br></div>I have <br>#include "liblwgeom.h"<br></div>And I`m able to compile this. But if I try use function in postgre, it get me an error<br><div><div><div><div><div><div>ERROR: could not load library "/usr/lib/postgresql/jelejson.so": /usr/lib/postgresql/jelejson.so: undefined symbol: lwgeom_to_geojson.<br><br></div><div>What i should do? Is posible to use this function like this?<br><br></div><div>Thanks Je;<br></div><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jelen<br></div>Starší čeledín datovýho chlíva<br></div></div>
</div></div></div></div></div></div></div>