geosdi/GWT-OpenLayers — pull request #13 by sebasbaumh (2014-05-13 08:33:10+00:00)
Title: Try to return instances of Geometry subclasses where possible instead of a generic Geometry instance.

This will this will allow callers to directly use the returned instance without allocating another instance of a Geometry class from the JS object.
For all non-recognized geometries and null geometries the behavior of narrowToGeometry is left unchanged, only known subclasses of Geometry are turned into their respective GWT object representations.