[postgis-users] postgis.backend and legacy functions

Willy-Bas Loos willybas at gmail.com
Wed Feb 24 08:41:25 PST 2016


I had suspected that i would be able to use either of both libraries,
depending of what is in postgis.backend.  But it's not like that.
area(geometry) uses postgis-2.1
and st_area(geometry) uses postgis-2.2

select public.st_area(st_geomfromewkt('SRID=28992;POLYGON((100000
400000,100000 401000,101000 401000,101000 400000,100000 400000))'))
-->1000000
select public.area(st_geomfromewkt('SRID=28992;POLYGON((100000
400000,100000 401000,101000 401000,101000 400000,100000 400000))'))
-->1000000

Both work well now, so it seems that postgis.backend (or the GUC) is not a
limiting factor anymore at all.
Next: i wil try to reproduce this and share the code.
(BTW is it OK to top post?)



On Wed, Feb 24, 2016 at 5:01 PM, Willy-Bas Loos <willybas at gmail.com> wrote:

> ah
> reading into this: https://trac.osgeo.org/postgis/ticket/2382
> hints me that this "GUC" thing remembers the postgis version somehow. This
> especially has something to do with DDL.
> So my loading legacy 2.2 set the GUC to postgis-2.2, solving the problem
> for most functions.
>
> This isn't very reassuring though.
> I'll look further into it and let you know.
>
> Cheers,
>
> WBL
>
>
-- 
Willy-Bas Loos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20160224/da09f579/attachment.html>


More information about the postgis-users mailing list