RE: Usuari os SharpMap que habl amos español [SharpM ap:9485]

Sep 2, 2012 at 12:46 AM
crea una capa de multiples geometrias y añadele las dos lines


From: [email removed]
To: [email removed]
Date: Sat, 1 Sep 2012 08:54:37 -0700
Subject: Re: Usuarios SharpMap que hablamos español [SharpMap:9485]

From: danielvkp
si estaba revisando la libreria y necesito hacer unas lineas separas
tngo este codigo
while (reader.Read())
{
Xi = Convert.ToDouble(reader["xi"]);
Yi = Convert.ToDouble(reader["xf"]);
Xf = Convert.ToDouble(reader["yi"]);
Yf = Convert.ToDouble(reader["yf"]);
SharpMap.Geometries.Point firstPoint = new SharpMap.Geometries.Point(Xpi, Xpf);
verticesNodes.Add(firstPoint);
SharpMap.Geometries.Point lastPoint = new SharpMap.Geometries.Point(Ypi,Ypf);
verticesNodes.Add(lastPoint);
}
SharpMap.Geometries.LineString ls = new SharpMap.Geometries.LineString(verticesNodes);
SharpMap.Geometries.GeometryCollection gc = new SharpMap.Geometries.GeometryCollection();
gc.Collection.Add(ls);
SharpMap.Data.Providers.GeometryProvider gp = new SharpMap.Data.Providers.GeometryProvider(gc);
SharpMap.Layers.VectorLayer vl = new SharpMap.Layers.VectorLayer("lineLayer");
vl.DataSource = gp;
MapBox.Map.Layers.Add(vl);
quiero que me haga las lineas separadas, pero termina uniéndolas, como puedo crear lineas separadas en la misma capa a partir de coordenadas?
gracias un saludo
Read the full discussion online.
To add a post to this discussion, reply to this email (SharpMap@discussions.codeplex.com)
To start a new discussion for this project, email SharpMap@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com