Sep 18, 2012 at 4:15 PM
Edited Sep 18, 2012 at 4:18 PM
Thanks for the aswer. I've replaced some parts of older code with NetTopologySuite/GeoAPI geometries. I have been able to read Points from db and put them in vertices Collection, like shown in code below:
Collection<NetTopologySuite.Geometries.Point> vertices = new Collection<NetTopologySuite.Geometries.Point>();
NetTopologySuite.IO.WKTReader wktReader = new NetTopologySuite.IO.WKTReader();
foreach (DataRow dr in ds.Tables["trajektorije"].Rows)
vertices.Add((NetTopologySuite.Geometries.Point )wktReader.Read( dr["the_geom"].ToString()));
Everything is ok, I've managed to show these Points on the map (with NTS Provider as DataSource for Layer), and use them in IntersectionQuery with some polygone and it's working.
My problems is that I need to connect these Points and create LineString from them, and then show these Lines on the map (and later do some IntersectionQuery on them, not Points). I can't find a way to do that. This is probably very basic stuff but i am
new to NTS...