[postgis-devel] KML from PostGIS patch

Markus Schaber schabi at logix-tt.com
Wed Dec 6 05:42:43 PST 2006

Hi, Eduin,

Eduin Carrillo wrote:
> Ok. Here a new patch with these changes. What about transform the geometry to
> WGS84 directly from lwgeom_kml.c?  I made public the "transform" function in
> lwgeom_pg.h (Datum transform(PG_FUNCTION_ARGS);) and tried this code but
> postgresql crashes... ideas?

What about exposing your function without transforming, and add SQL
function "wrappers" which call transform and your function? Simple SQL
functions are even inlined by the query planner sometimes...

Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org

More information about the postgis-devel mailing list