[CDBI] Re: Working with OGC geometry data types...

[prev] [thread] [next] [Date index for 2006/03/01]

From: Edward J. Sabol
Subject: [CDBI] Re: Working with OGC geometry data types...
Date: 00:04 on 01 Mar 2006
> I'll try the SQL overrides as soon as I get a chance tomorrow. I'll
> post the results here.

Judd, I just realized that what I previously posted probably won't work. I'd
try the following instead:

__PACKAGE__->set_sql(Retrieve => <<'');
SELECT __ESSENTIAL__, geometry=AsText(geometry)
FROM   __TABLE__
WHERE  %s

__PACKAGE__->set_sql(RetrieveAll => <<'');
SELECT __ESSENTIAL__, geometry=AsText(geometry)
FROM   __TABLE__

Or possibly "AsText(geometry) AS geometry", depending upon your DBMS's SQL
dialect.

Later,
Ed

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Working with OGC geometry data types...
Judd Taylor 17:41 on 28 Feb 2006

[CDBI] Re: Working with OGC geometry data types...
Edward J. Sabol 23:46 on 28 Feb 2006

[CDBI] Re: Working with OGC geometry data types...
Edward J. Sabol 00:04 on 01 Mar 2006

Generated at 20:45 on 01 Mar 2006 by mariachi v0.52