Answered by:
Sharpmap and Gauges

Question
-
Hi,
I have a 2 question:
- Does somebody compile SharpMap for CF2 ???
- Does somebody know free Gauges for simulation speed, fuel, etc on CF2 ???
thanks for answer.
- Moved by edhickey Thursday, October 14, 2010 7:30 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
Tuesday, July 10, 2007 12:43 PM
Answers
-
Hi, Lukaashek
This is the Windows Workflow Foundation forums and it appears that your questions are not related to Windows Workflow Foundation. I am also not sure what specific product/technology this belongs to. You should ask this question in the correct forums for the technology/product you're experiencing the issue with.
Thanks, --Moustafa
Tuesday, July 10, 2007 8:40 PM
All replies
-
Hi, Lukaashek
This is the Windows Workflow Foundation forums and it appears that your questions are not related to Windows Workflow Foundation. I am also not sure what specific product/technology this belongs to. You should ask this question in the correct forums for the technology/product you're experiencing the issue with.
Thanks, --Moustafa
Tuesday, July 10, 2007 8:40 PM -
hi
moustafa
i am fresher in gis, i don't have any knowledge of sharpmap. i have two questions please reply me.
1. How to add the sharpmap on windows form (vb.net 2.0)
2. how to add the shape files in sharpmap control
plz help me.
Irshad Shaikh
Friday, July 13, 2007 6:09 AM -
Hi,
- you must download assembly sharpmap.dll from http://www.codeplex.com/SharpMap/Release/ProjectReleases.aspx?ReleaseId=154. And then if you create a new project, click add reference and browse this assembly.
Code Snippet// create a new instance
Map myMap = new Map(new Size(Width, Height));
// set background color
myMap.BackColor = Color.White;// create a new layer
SharpMap.Layers.VectorLayer layer = new SharpMap.Layers.VectorLayer("name_of_layer");
// Set a DataSource
layer.DataSource = new SharpMap.Data.Providers.ShapeFile("file.shp");// add layer
myMap.Layers.Add(layer);
myMap.ZoomToExtents();// render map
MapImage.Image = myMap.GetMap();Friday, July 13, 2007 6:48 AM -
hi
Lukaashek
thanks for replying to me.
i dowload sharpmap.dll file . please solve my following problem
what is Mapimage.Image = myMap.Getmap(); in your code
Friday, July 13, 2007 9:02 AM -
MapImage is a PictureBox. Method GetMap return Image and so I set property PictureBox.Image = myMap.GetMap()Saturday, July 14, 2007 1:12 PM
-
hi friend
I have to zoom in ,zoom out ,pan and identify (means when i click on the layer it retrieves the information ) to the sharpmap is it possible? please send me the any tips for that.
Thanks in advance
Irshad
Saturday, July 28, 2007 8:51 AM -
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);
GeomColl.Add(point);
VLayer.DataSource = new SharpMap.Data.Providers.GeometryProvider(GeomColl);
map.Layers.Add(layCountries);
map.Layers.Add(VLayer);
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 you help me to set zoom of value to display point and shapefile. when runcode i dont display a pointTuesday, August 7, 2007 4:04 PM -
hello Lukaashek
i have to pan the shape file and identify the particular symbol on the layer plz how is it possible tell me. i am waiting for your reply. Thanks in advance
Wednesday, August 8, 2007 6:00 AM -
Hi,
If you want retrieve information when you clicked on the map, you use this code:
Code Snippet// Create new instance
SharpMap.Map _map = new SharpMap();
// create new layer
SharpMap.Layers.VectorLayer _layer = new SharpMap.Layers.VectorLayer("My Layer");
// set datasource to shape file
_layer.DataSource = new SharpMap.Data.Providers.ShapeFile("shape.shp");
// get position where mouse clicked
SharpMap.Geometries.Point clickPoint = _map.ImageToWorld(new PointF(e.X, e.Y));
// create new dataset
SharpMap.Data.FeatureDataSet ds = new FeatureDataSet();
// open DataSource
((SharpMap.Layers.VectorLayer)_map.Layers[0]).DataSource.Open();
// retrieve information from clicked point...this method fill dataset
((SharpMap.Layers.VectorLayer)_map.Layers[0]).DataSource.ExecuteIntersectionQuery(clickPoint.GetBoundingBox(), ds);
// close datasource
((SharpMap.Layers.VectorLayer)_map.Layers[0]).DataSource.Close();
if (ds.Tables.Count > 0)
{
StringBuilder str= new StringBuilder();
DataTable dt = ds.Tables[0];
foreach (DataRow r in dt.Rows)
{
str.Append(r["name_of_column"].ToString());
}}
Wednesday, August 8, 2007 1:21 PM -
Hi,
look at my last answer about clicked information. I hope that usefiul for you
Wednesday, August 8, 2007 1:25 PM -
hi
Lukaashek
Thanks for giving the solution for the identify.
I have another problem it's pan. plz give me the some tips for pan the map. plz reply me.
Monday, August 13, 2007 1:09 PM -
Hi,
Try use this code
Code Snippet// get the position of mouse clicked
SharpMap.Geometries.Point clickPoint = _map.ImageToWorld(new PointF(e.X, e.Y));
// set the map.center
_map.Center = clickPoint;// render map
pictureBox1.Image = _map.GetMap();Monday, August 13, 2007 1:15 PM -
Please post this at the SharpMap forum: http://www.codeplex.com/SharpMap/Thread/List.aspx.
Thursday, August 16, 2007 11:01 PM -
hi
I want to design a GIS tools which is operate on the PDA's and i want to edit the shape file data and i have to add the pollygons , circles points, etc. on the shape file. Like ESRI's ArcPad product. i want to help for the following
1. Which component is used for the design the this GIS tools
2. Is it support for the ESRI shape file. and
plz provide the information regarding that. IT's very urgent.
Irshad
Saturday, August 25, 2007 5:36 AM -
Hi,
Some useful pages are located here
http://www.solutionwindow.com/sharpmap/default.asp
RegardsFriday, August 21, 2009 6:31 AM -
Hi All,
I want to have marker click with popup message same like below link.
http://econym.org.uk/gmap/example_elabel.htm
as you can see on click of marker pop message is coming I want to do this.
is this possible I have the marker on my map.
I am working on windows forms.
Please let me know some code example.
Thanks,
Vivek Kumar
Thursday, October 14, 2010 2:16 PM