[OpenLayers-Trac] [OpenLayers] #3178: Geometry validation methods
OpenLayers
trac-20090302 at openlayers.org
Fri Mar 18 11:08:53 EDT 2011
#3178: Geometry validation methods
----------------------+-----------------------------------------------------
Reporter: adube | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Geometry | Version: 2.10
Keywords: | State:
----------------------+-----------------------------------------------------
It would be nice to be able to have geometry validation methods. For
example, A LineString isn't valid if it has less than 2 Points, a Polygon
less than 3 and so on.
'''Where would it be useful ?'''
For example, while drawing a new feature with the DrawFeature control you
can have unfinished drawn features. Lunching a print request to the
MapFish print module with the current layers would result in an error
because of the invalid geometries.
'''Version'''
In 2.10, it's less of a big deal since features added to the handler
vector layer (with the DrawFeature control) only when the user begins to
draw.
In current trunk, as soon as you activate the same control and hover the
map with the mouse, it begins drawing a feature, which can result in
having the issue more often.
--
Ticket URL: <http://trac.openlayers.org/ticket/3178>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list