What steps will reproduce the problem?
1. Create a table with 2 geometry fields. Fill only the second field with a
geometry, leave the first
field null (in order as they are created in the table)
2. SqlServerFeatureSource SqlSpatial = new
SqlServerFeatureSource(.CG_ConnString,"Table");
Layer l = new Layer();
SqlSpatial.ForcedGeometryColumn = "SecondField";
l.Data = SqlSpatial;
m.Width = CG_PictureBoxGIS.Width;
m.Height = CG_PictureBoxGIS.Height;
m.Extents = SqlSpatial.Extents;
3. this will cause an error because it search the extension in the first
Geometry field instead of the
SecondField
If I invert the geometry fileds (the first filled with a geometry, and the
second left to null) it works
fine
What version of the product are you using? On what operating system?
0.4.2
Kiks
Original issue reported on code.google.com by enrico.oemi@gmail.com on 4 Jan 2010 at 11:59
Original issue reported on code.google.com by
enrico.oemi@gmail.com
on 4 Jan 2010 at 11:59