[postgis-users] MakeBox2D SRID inheritance?
strk at refractions.net
strk at refractions.net
Fri Jul 28 05:56:36 PDT 2006
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
More information about the postgis-users
mailing list