[postgis-users] Has the function GeometryFromText(geometry, int4) dissapeared?

strk at refractions.net strk at refractions.net
Thu Apr 14 11:49:21 PDT 2005


On Thu, Apr 14, 2005 at 08:00:45PM +0200, Miguel R. Luaces wrote:
> Hi,
> 
> we are using Deegree WMS together with PostGIS.
> 
> Deegree tries to do at some point in time the following:
> 
> geometryfromtext('BOX3D(<some coordinates>)'::box3d, -1)

That's not correct code, Deegree should change that to:

setSRID('BOX3D(<some coordinates>)'::box3d, -1);

That call worked in older postgis because it used a dirty hack
accepting GEOMETRY instead of TEXT as first argument. New PostGIS
(1.x) wants a text, and BOX3D::text cast won't ever generate WKT text.

--strk;

> 
> This used to work previously, but it does not work with Postgis 1.0rc6. It 
> seems that the function has dissapeared.
> 
> On the other hand, the function still exists on the version of PostGIS 
> shipped with PostgreSQL for Windows.
> 
> What can I do?
> 
> Thank you very much in advance.
> 
> Best regards,
>  Miguel 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list