[OpenLayers-Dev] centroid for linestrings

Pierre Giraud pierre.giraud at camptocamp.com
Wed Jan 4 06:09:35 EST 2012

Hello all,

Recently I found out that the getCentroid method for linestring
geometries return the first point of the line.
According to this changeset [1], user needs to set true to the
getCentroid argument (weighted) in order to get the *real* centroid.

In my opinion, this "weighted" option should be set to true unless
user explicitely set it to false.
Any other opinion?


[1] http://trac.osgeo.org/openlayers/changeset/10652

Géomaticien, Analyste

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com

More information about the Dev mailing list