This project has moved and is read-only. For the latest updates, please go here.

no display point in map

Topics: General Topics, SharpMap v0.9 / v1.x
Aug 5, 2007 at 5:56 AM
i have shapefile
bangdo_lin.dbf 4,216kb DBF file
bangdo_lin.shp 2,927kb Graphique shapefile
bangdo_lin.shx 250 kb autocard compiled shape

they have converted from AutocardFile. when i add a point in shapmap by

SharpMap.Map map = new SharpMap.Map(outputsize);
SharpMap.Layers.VectorLayer layCountries = new SharpMap.Layers.VectorLayer("Countries");
string path = Server.MapPath(@"~\App_data\Countries.shp");
layCountries.DataSource = new SharpMap.Data.Providers.ShapeFile(path, true);
layCountries.Style.Fill = new SolidBrush(Color.Green);
layCountries.Style.Outline = System.Drawing.Pens.Black;
layCountries.Style.EnableOutline = true;

SharpMap.Geometries.Point point = new SharpMap.Geometries.Point(50, 12);
SharpMap.Data.Providers.GeometryProvider provider = new SharpMap.Data.Providers.GeometryProvider(point);
SharpMap.Layers.VectorLayer layer = new SharpMap.Layers.VectorLayer("point", provider);
layer.MinVisible = double.Epsilon;
layer.Style.Enabled = true;
layer.Style.Fill = Brushes.Red;


but shapefile no display that display a point

I need everybody of help, i want display a point (lat/long) in my shapfile