OpenLayers OpenLayers

Ticket #1543 (new task)

Opened 2 months ago

Last modified 2 months ago

add support for writing spatial filters in an SLD document

Reported by: bartvde Assigned to: tschaub
Priority: minor Milestone: 2.7 Release
Component: Format.SLD Version: 2.6
Keywords: Cc:
State: Review

Description

I need support for using BBOX, Intersects and DWithin spatial filters in an SLD document, but OL currently does not support this.

I'll try and come up with a patch implementing this.

Attachments

ticket1543.patch (6.3 kB) - added by bartvde on 05/08/08 10:22:19.
patch implementing spatial filters and writing them in SLD

Change History

05/08/08 10:22:19 changed by bartvde

  • attachment ticket1543.patch added.

patch implementing spatial filters and writing them in SLD

05/08/08 10:23:36 changed by bartvde

  • keywords set to review.

The Trac view of the patch does not show all files affected (download in original format does).

Would be great if someone could review this sometime.

05/08/08 10:28:31 changed by bartvde

One thing I did not like is that I had to use an OpenLayers.Geometry.Rectangle (which is about to be deprecated) to represent a gml:Box. The comments state one should use a OpenLayers.Bounds.toGeometry() which will yield a Polygon, but in that case I think we would need a utility function on a Polygon to see if it is a rectangle or not, to represent it in its right GML form.

Also, is it necessary to create OpenLayers.Format.GML objects like I do now to serialize the geometries, or can we inherit Format.SLD from Format.GML?

05/14/08 07:51:01 changed by bartvde

  • keywords deleted.
  • state set to Review.

05/14/08 09:07:48 changed by bartvde

  • milestone set to 2.7 Release.