[postgis-devel] Is posible to use function lwgeom_to_geojson in another c fuctions

Jan Michálek godzilalalala at gmail.com
Sat Jun 25 07:47:35 PDT 2016


No, something is wrong

test=# CREATE extension jelejson;
ERROR:  could not load library "/usr/lib/postgresql/jelejson.so":
/usr/lib/postgresql/jelejson.so: undefined symbol: lwgeom_to_geojson
test=#

It works, but
lwgeom_from_gserialized throws error

test=# select f_jelejson(t4) from t4;
ERROR:  Unknown geometry type: 256 - Unknown

So I make some minor changes, reinstall and it is not able to find lwgeom
to geojson. I revert changes, but it is not able to find lwgeom_to_geojson

but i haven`t liblwgeom in my search path
[jelen at laptak geojson_s_proprtama]$ locate liblwgeom.a
/home/jelen/Downloads/postgis-2.2.2/liblwgeom/.libs/liblwgeom.a
/home/jelen/packages/posgis_pitva/src/postgis-2.2.2/liblwgeom/.libs/liblwgeom.a
[jelen at laptak geojson_s_proprtama]$








2016-06-25 15:51 GMT+02:00 Leknín Řepánek <godzilalalala at gmail.com>:

> Thanks, it helped.
>
> Have a nice day.
> Je;
>
> On Sat, Jun 25, 2016 at 11:08:29AM +0200, Sebastiaan Couwenberg wrote:
> > On 06/25/2016 08:59 AM, Sandro Santilli wrote:
> > > Or lobby to change PostGIS to link to liblwgeom dynamically
> > > and do they same yourself :)
> >
> > You can use the patch from the Debian package for that too:
> >
> >
> https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/patches/link-liblwgeom
> >
> > Kind Regards,
> >
> > Bas
> >
> > --
> >  GPG Key ID: 4096R/6750F10AE88D4AF1
> > Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/postgis-devel
>



-- 
Jelen
Starší čeledín datovýho chlíva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20160625/ef7e11a6/attachment.html>


More information about the postgis-devel mailing list