[OpenLayers-Dev] SRS id in BBOX parameter
Eric Lemoine
eric.lemoine at camptocamp.com
Wed Jan 5 15:02:05 EST 2011
On Wed, Jan 5, 2011 at 8:57 PM, <christopher.schmidt at nokia.com> wrote:
>
> On Jan 5, 2011, at 2:42 PM, ext Tim Schaub wrote:
>
>> Hey-
>>
>> Are there people that use the HTTP protocol against services that would break if the BBOX query string parameter included the SRS identifier?
>>
>> E.g.
>>
>> http://example.com/features?bbox=1,2,3,4,foo
>>
>> The WFS 1.1 spec allows clients to specify the SRS for a bounding box by including the SRS identifier as the fifth item in the array. I'd like to add this functionality to the HTTP protocol if it wouldn't make existing applications break.
>
> FeatureServer would break; "action.bbox = map(float, value.split(","))" would barf on
> it if the value were not a float-able number, I believe.
Same for MapFish.
>>> bbox = map(float, "1,2,3,4,foo".split(","))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for float(): foo
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Dev
mailing list