[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] MakeBox2D SRID inheritance?
From:       strk () refractions ! net
Date:       2006-07-28 12:56:36
Message-ID: 20060728125636.GD70212 () keybit ! net
[Download RAW message or body]

A BOX2d is * not* a Geometry object, so does not contain
SRID information. You do see a srid only because an implicit
cast is converting it to a geometry, so -1 (unspecified) is
the only possible SRID for output.

Still, we might add a SRID-match check for input.

--strk;

On Fri, Jul 28, 2006 at 09:17:44AM +0200, Guido Lemoine wrote:
> Dear All,
> 
> I am creating rectangular polygons using the MakeBox2D(<LL>, <RR>)
> function. For LL and RR I use PointFromText('POINT(<x> <y>)', <srid>)
> which creates the point with the relevant srid. The resulting polygon does
> not seem to inherit the srid from the points, however, but I need to 
> specifically
> (re)assign with SetSRID (SetSRID(MakeBox2D(<LL>, <RR>), <srid>)).
> 
> I'd expect the function to check for srid of the corners points and pass 
> it on
> to the resulting output. The other "Make*" functions appear to have that
> behavior. But I can live with this. Just wondering whether this is 
> consistent.
> 
> Postgresql/Postgis 8.0.3/1.0
> 
> GL

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic