This project has moved. For the latest updates, please go here.

Filter query and choose color

Topics: Data Access, SharpMap v0.9 / v1.x, WinForms Controls
Jan 3, 2008 at 4:06 PM

First, sorry by my bad english, but I'm from Brazil...

My question is...

I'm working with postgis, and I have one VectorLayer called Unidades, in this layer I have a collumn called Altimetria that have numeric values, I need show in a datagridview only the rows that have altimetria <= 82, how I do this???

I'm using this code to get all the rows:

private void button1_Click(object sender, EventArgs e)
SharpMap.Data.FeatureDataSet ds = new SharpMap.Data.FeatureDataSet();
Unidades.DataSource.ExecuteIntersectionQuery(Unidades.Envelope, ds);
this.dataGridView1.DataSource = ds.Tables0;

Other question...

All this geometry that was selected where altimetria <= 82 need choose the color, to the user can see the polygons that have altimetria <= 82, how I do this????