I need just center point of polyline that belongs to polyline.
Ok, I'll do it with Linear Referencing System of NTS (C# port of JTS)
[WebMethod(EnableSession = true)]
[ScriptMethod(UseHttpGet = true)]
public string GetCenterPoint(...)
{
//...
return new NetTopologySuite.IO.WKTWriter().Write(new
NetTopologySuite.Geometries.Point(LengthLocationMap.GetLocation(geometry,
geometry.Length/2).GetCoordinate(geometry)));
}
--
View this message in context:
http://n2.nabble.com/Geometry-Collection-LineString-GetCentroid-fake-tp4584888p4591018.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users