openlayers/openlayers — pull request #761 by marcjansen (2012-11-20 09:50:49+00:00)
Title: Fix exporting empty vector layers to OWSContext.

When a vector layer is exported to an OWSContext document, we throw an
exception when the layer contains no features, and the geometries are to be
exported inside of an InlineGeometry-element.

This commit fixes this behaviour by exporting sth. like this in such cases:

The patch was developed by me and @chrismayer.

Tests pass in Chrome 23. Please review