I have some shape files (shp,shx,dbf) and I want to load them in a division using c#.net, currently I am using easy Gis for web, I want to add the ability for the user to be able to draw a polygon over map so that a closed area is defined , and I want this polygon coordinates so that I can define whether some places are in polygon or not.
Any Idea what is the best plugin or anything for .net , is it possible to be done in Easy GIS?
I would appreciate your help.thanks
P.S:
I should mention that I need this to be done on a webpage, so desktop softwares are useless.
after days of searching ,I found the follwoing link very useful: wiki.openstreetmap.org/wiki/OpenLayers_Local_Tiles_Example OpenLayers is a free javascript libray that gives you lots of functionality like drawing polygons and etc ...
Related
I'm currently learning swarm intelligence algorithms and I want write a C# app for testing those in the context of a vehicle routing problem.
I want to write an app that will show a graph that will be a representation of of cities (vertices) and roads (edges) and implement new algorithms as I learn more of them.
The problem is I don't know how I can draw such graph. I was thinking about using adjacency matrix to know if the vertices are connected and another to represent the distance between them if they are connected.
If You know any way to visualize such graph in a efficient way it will be much appreciated. I saw someone was able to do so using picture box which is mind blowing.
The simplest option is probably to create a winforms application and attach an event handler for your paint-event. This will give you a graphics object that can be used to draw squared, lines etc. Note that you probably need to translate your coordinates from your internal coordinate system to screen/image coordinates.
I am trying to create a C# software that can control the CNC machines, First I am trying to create a 3d Space area in the PictureBox (or Pannel), I have gone through the internet and reached about this and I got one video. He made a 3D place in the form space, and it was a good tutorial but I don't know how to create a coordinate system in that space as you see in the image that I have given below.
Pls, Help me to do this.
enter image description here
enter image description here
If I get the proper solution for this, in the future I can develop this project.
Thank you, guys...
Update:
Actually, I have designed a C# program That controls the CNC machines,
For example, we can take UGS, There is much software out there but I need to create this in C#. The Only thing I am suffering here is the 3D coordinate system. How to create the Axis diagram in 3D.
Example: Planet Cnc's "Cnc USB Controller" I want to create this software in C#.
Thanks...
Build a CNC CAD programmer from skratch it's not a trivial activity.
You should be skilled in:
Math and Geometry in particular (vector/matrix calculus, base transformation, ...)
A language to comunicate with CNC (maybe G Code)
3D file formats
etc.
This is old, and you should have fixed the problem by now... but I hope to help someone in the future.
Have you seen Helix-toolkit? This library provides easy 3D camera and object controls for .Net Framework. I used this library in WPF C# for an application that generated G-Code for a CNC machine... this saved me in the simulation.
You can import 3D models (.3Ds or .obj) from your machine to 3D Panels (HelixViewport3D) and use them in the simulation or create meshes on demand in C#.
The documentation is simple, but on GitHub there are lots of examples.
Helix-toolkit on GitHub
I have a Leaflet website that uses a custom tile set for a game map.
I want to display in my C# client app, tiles from the Leaflet map using basically the same algorithm, as if re-creating leaflet in C#.
I already have the placeholder tiles layed out in a grid and have basic navigation, but running into the problem of knowing the tile values to use for the URL (from leaflet docs):
'http://map.somedomain.com/{layer}/{z}/{x}/{y}.png'
I have the layers names, and I want to know the exact X,Y for each tile from a provided zoom level.
How can I calculate this so that when I send out a download request it doesn't hit file not found?
Hope that makes sense.
Thank you.
PS: I don't have access to windows forms, I am using Unity3D engine, if that makes a difference.
I think you would be best off by going over the sourcecode of L.GridLayer which L.TileLayer is extended from. The _pruneTiles function would be a good starting point:
https://github.com/Leaflet/Leaflet/blob/master/src/layer/tile/GridLayer.js#L204
You Can find a tutorial for embedding Leaflet in a C# app in this book:
Leaflet.js Essentials - Chapter 6
I have a couple of images that I would like to create an interactive map of in Silverlight and WPF. The pictures are of States and counties. I tried doing some search on how this is done but have not been able to find a good example on how to go about accomplishing this. So I would appreciate your help. Thanks in advance.
I was involved in creating a Xaml World map from scratch (below) and that alone took nearly a day for a stylised polygon version (no fine detail)....
I have since purchased a Wacom Bamboo tablet & stylus and found that to be about 5 times faster to work with compared with a mouse.
Quoting myself: "You import a map as a background image and use the pen tool to dot-to-dot trace around the country. Combine all those path segments into a single path. Then create a separate poly-path for each state (close them to allow for a fill)."
Once you create them you can name the individual country polygons and connect up mouse logic to make them all glow on mouse over or change colour on press etc.
Basically all the other stuff on that screen are user controls and custom controls. Work out the behaviour you want and create controls to suit your own needs.
In your instance you can use less accurate polygons as they will only be for hit-testing and highlighting and you will want to retain the actual map images under the polygons.
I am first time using Google Map..
I have to add the Google Map in my web application with following functionality.
User can create polygon on the Map by using Mouse.
Then the values of polygon's Lat/Lon will be saved in the Database.
Like wise he can create multiple polygons but with the restriction that any polygons should not be overlapped.
Please help me on it..
Thaks in advance
As far as rendering the polys I would consider using a open source tool kit that already does that . Open Layers is a nice javascript library that works with Google Maps enables you to draw overlays and collect lat lon information, etc. As far as the database entries and overlapping issues see the comments on your question.