[postgis-devel] RE: [postgis-users] Problem with PostGIS 1.0.0 RC1

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Tue Jan 25 01:59:40 PST 2005

Hi strk,

> -----Original Message-----
> From: strk at refractions.net [mailto:strk at refractions.net] 
> Sent: 25 January 2005 09:46
> To: Mark Cave-Ayland
> Cc: postgis-devel at postgis.refractions.net; 'PostGIS Users 
> Discussion'; 'Markus Schaber'
> Subject: Re: [postgis-devel] RE: [postgis-users] Problem with 
> PostGIS 1.0.0 RC1


> > Great, I think that having the consistency can only be a 
> good thing :)
> We also have all of GeomFromText() which is currently taking
> a 'geometry' instead of 'text'. This allows users to use 
> non-standard OGC functions, and I think should be changed.
> Note that current behaviour makes this possible (as side-effects):
> 	SELECT GeomFromText('00..FF');
> 	SELECT GeomFromText('\\000\\001...'::bytea);
> .. which I think should be forbidden.
> What do you think ?

Good catch. I would say definitely make it forbidden; I can't see a rational
case for letting binary inputs into a *FromText() function at all(!).
Markus, do you agree?

Kind regards,


WebBased Ltd
South West Technology Centre
Tamar Science Park
PL6 8BT 

T: +44 (0)1752 791021
F: +44 (0)1752 791023
W: http://www.webbased.co.uk

More information about the postgis-users mailing list