[OpenLayers-Dev] projection property on Geometry?

bartvde at osgis.nl bartvde at osgis.nl
Tue Jul 22 08:12:56 EDT 2008


Hi Chris,

but not all geometries are necessarily tied to layers are they?

Imagine a polygon created by a handler, which is then used in Filters for
a WFS Request. There is no way to tell which projection the geometry is in
currently.

Best regards,
Bart

> On Tue, Jul 22, 2008 at 11:56:12AM +0200, bartvde at osgis.nl wrote:
>> Hi list,
>>
>> I am looking into ticket 1254, and this got me to wonder, isn't an
>> OpenLayers.Geometry missing a projection property?
>
> I don't think it's 'missing' it. It doesn't have one, but I've never
> felt the lack :)
>
> Generally, projection information lives at a higher level: Typically, in
> the layer or map (which the Geometry can get to through the feature,
> usually?)
>
> See line 456 of Format.GeoJSON.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>





More information about the Dev mailing list