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

please, help me.

Topics: General Topics, SharpMap v0.9 / v1.x
Aug 7, 2007 at 3:35 PM
hi, when i write code :

SharpMap.Map map = new SharpMap.Map(outputsize);
SharpMap.Layers.VectorLayer layCountries = new SharpMap.Layers.VectorLayer("Countries");
string path = Server.MapPath(@"~\App_data\tot.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.Layers.VectorLayer VLayer = new SharpMap.Layers.VectorLayer("GeometryLayer");
SharpMap.Geometries.GeometryCollection Collection = new SharpMap.Geometries.GeometryCollection();
System.Collections.Generic.List<SharpMap.Geometries.Geometry> GeomColl = new System.Collections.Generic.List<SharpMap.Geometries.Geometry>();

System.Drawing.PointF p1 = map.WorldToImage(new SharpMap.Geometries.Point(10.8058972, 106.6711917));
SharpMap.Geometries.Point point = new SharpMap.Geometries.Point(p1.X, p1.Y);
VLayer.DataSource = new SharpMap.Data.Providers.GeometryProvider(GeomColl);

i can see, before i add a pointF p1 (10.8058972, 106.6711917), myMap.Zoom is 443.488843147011939, affter i add a pointF, myMap.Zoom is 421151.44394073047 and X =5652.94873046879 ,Y = -53085.59765625

A shapefile have convert by CAD2Shape 3.0 software with MinX,Y is -149520 , 367628 and maxX,Y is
-149139,368091 i can alter MixX,Y and MaxXY by CAD2Shape 3.0 software. but i dont know how size

Can everybody help me to zoom of value is equal. when runcode i dont display a point