[postgis-devel] liblwgeom.so

Paul Ramsey pramsey at opengeo.org
Mon Sep 12 16:03:54 PDT 2011


On Mon, Sep 12, 2011 at 4:30 PM, Bryce L Nordgren <bnordgren at gmail.com> wrote:
> On Mon, Sep 12, 2011 at 9:40 PM, Paul Ramsey <pramsey at cleverelephant.ca> wrote:
>>> So: Is there a non-system-liblwgeom way to detoast a geometry from a
>>> non-postgis module? If so, I'm a happy camper.
>>
>> mynewtype::bytea:;geometry
>
> Provisionally happy: Is that C? What do I #include to get access to
> "geometry"? Remember: in my mind I'm writing a postgresql extension
> module not some plpgsql pseudocode. :)

Your PgSQL extension will have, at some point, a .sql file to bind it
to the engine. In that .sql file you'll wrap your casts from
geometry->newtype in an intermediate cast to bytea.
P.

> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list