strk, I'm not sure what you're saying here, but I dont think you should be making the postgis.h GEOMETRY type useable outside of postgresql. All external programs should use either WKB or WKT. This is the whole reason behind OGC and interoperativity... dave