Hi Claudia,
To get the center of your feature :
yourFeature.geometry.getCentroid();
Register in the database : you can use the WFS-T protocol with the
Save strategy to do your transactions. See the following example :
http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
You need to have a server supporting WFS-T in order to do so (like
TinyOWS, GeoServer, etc.).
HTH,
Alexandre
On 10-11-30 09:10 PM, claudia wrote:
Hi,
I'm using OpenLayers to draw a circle over a map, for which I have found a
lot of examples / reusable code.
new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.RegularPolygon, {handlerOptions: {sides:40}}),
What I can't find is an example of how to get the center and radius of the
drawn circle to then register in the database.
Can anyone help, please?
Thanks, Cláudia
--
Alexandre Dubé
Mapgears
www.mapgears.com
_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev