[OpenLayers-Dev] GML format - unsupported geometry type: box

Francois Van Der Biest francois.vanderbiest at camptocamp.com
Mon Jul 27 04:23:32 EDT 2009


On Wed, Jul 22, 2009 at 5:33 AM, Eric
Lemoine<eric.lemoine at camptocamp.com> wrote:
> Hi François
>
>  I do not really have answers to your questions - I hope others will -
> but I'd have one comment on what we should do with GML features with a
> bounding box but without a geometry.
>
> I'd be -1 on creating geometries without coordinates and just bounds
> (option 3), because an OpenLayers geometry's bounds represent the
> bounds of the geometry's coordinates. I don't like the idea of
> creating a geometry from the gml:BoundedBy (option 2) either, because
> gml:BoundedBy and feature.geometry represent two different things -
> gml:BoundedBy is the feature's bounding box while feature.geometry is
> the feature's geometry. So, among your options, option 2 is the one
> that makes the most sense to me. And in addition to option 2 I think
> we could make the GML format parse the gml:BoundedBy/gml:Box element
> and place the result either in feature.bounds if there's no geometry
> or in feature.geometry.bounds if there's a one.
>
> What do you think?

I think you wanted to say that you'd be in favor of option (1)
;-)
I also like the idea of placing the bounds in feature.bounds, or
feature.geometry.bounds if feature.geometry exists.
So, I'm going to rework the patch attached to ticket
http://trac.openlayers.org/ticket/2191

Thank's,
F.



More information about the Dev mailing list