Questions tagged [dotspatial]

DotSpatial is a geographic information system library written for .NET 4. It allows developers to incorporate spatial data, analysis and mapping functionality into their applications or to contribute GIS extensions to the community. DotSpatial provides a map control for .NET.

46 questions
1
vote
0 answers

How to Create a Dot Map Using JS

How do I create a high-density dot map? I've tinkered with some basic algorithms for spreading dots around a rectangle, like this: var createOrangeDots = function () { for (var i = 0; i <=orangeNum; i++) { context.beginPath(); var…
glizzard
  • 137
  • 6
1
vote
1 answer

Create new map from shape file and then maintain data using dotspatial or ArcGIS

i am creating a custom map from shapefile with the help of ArcGis. After that how i can plot already stored latlng on the custom map? And if the shapefile updated custom map will updated,How i can maintain the already saved latlng on custom map?
Akash1221
  • 13
  • 4
1
vote
1 answer

How to add field to a Shapefile using DotSpatial?

I tried searching the web to find a sample of showing how to add a Field to attribute table of an existing shapefile. For example I have a Shapefile at C://data/Streets.shp and need to add two field L_CITY and R_CITY both text and 50 characters…
Mona Coder
  • 6,212
  • 18
  • 66
  • 128
1
vote
2 answers

DotSpatial map not inside DotSpatial.Controls

I'm trying to install DotSpatial using c# WinForm, to take a look at the Map control. I've installed DotSpatial.Controls using nuget from VS. Installation successfully. Added inside my toolBar the DotSpatial.Control.dll which is inside ../bin/debug…
Gilbert
  • 63
  • 8
1
vote
2 answers

Calculate area of polygon having WGS coordinates using DotSpatial?

Calculating area: var coordinates = new List { new Coordinate(55, 35), new Coordinate(55, 35.1), new Coordinate(55.1, 35.1), new Coordinate(55.1, 35), }; Console.WriteLine(new Polygon(coordinates).Area); //…
Anton Pavelyev
  • 469
  • 4
  • 20
1
vote
1 answer

How can I traverse a shapefile(.shp) and have height of each coordiantion?

I have downloaded a shapefile from here which provided a cantor map for me. I have got DotSpatial and loaded the map in c#. I need to traverse the map and get the height of each coordination. I have created a 3d ViewPort in WPF by C# and have a…
Loghman
  • 1,500
  • 1
  • 14
  • 30
1
vote
0 answers

How to improve drawing performance of a DotSpatial Map

I am writing sort of a navigation app, that needs to leave a trail of polygon. Creating the polygons and adding them to the map is not a problem, but then I have to update the map with the new polygon. The Standard way of doing this is…
Andrei
  • 961
  • 1
  • 9
  • 29
1
vote
1 answer

After creating shapefile from db the geometry coordinate becomes reverse order

I have a database table named 'hitbgt'. There is a column name 'the_geom' contains the geometry value. Get the data from db table as datatable and create a shapefile based on it. The codes are given below.......... DataTable dt =…
Monowar
  • 106
  • 5
1
vote
2 answers

Imprecision to convert UTM to latitude longitude

I converted UTM coordinates (X/Y) (Datum ED50) to latitude/longitude but the result is not accurate.There is an error of at least 500 meters. I used the library https://proj4net.codeplex.com/ I think the key is the Datum ED50 This is my…
1
vote
1 answer

How to add image layer in dot spatial

I am a c# programmer.I need to work on shape files so i am using dot spatial plugin.There is a class FeatureSet through which i give FeatureType of point,line,polygon but there is no image type to add image layer.So please help me how to add image…
1
vote
1 answer

dotSpatial MapLineLayer memory leak

I'm using dotSpatials Map object to do some operations on a shape file. My program eats up memory when I'm using the code below to add a layer (MapLineLayer) and when I'm done with the layer I want my memory back. I can't manage to dispose of my Map…
haber
  • 13
  • 3
1
vote
1 answer

How to intersect boundingbox and point with radius using dotspatial

I need to check if a lat/lon with radius is intersecting with a bounding box using Dotspatial. Using dotspatial one can intersect using Ifeatures. My problem right now is creating a circle/sphere/ellipse. I found the following code snippet on how to…
1
vote
1 answer

DotSpatial: Convert a Polygon Feature to System.Drawing.Region

I want to paint a Polygon region with a color. I know I can use Symbolizer to do this but I want that region to blink (change it's color in a timer) and using symbolizer seems to be slow for this purpose. I'm already using Map.OnPaint event to…
Mahmood Dehghan
  • 7,761
  • 5
  • 54
  • 71
0
votes
0 answers

How can I read such prj file?

I'm writing gis application using DotSpatial 2.0 Now I have data from town hall and Shapefile sf = Shapefile.OpenFile(Path); throws DotSpatial.Projections.ProjectionException 'Projection Not Found' ProjectionInfo proj =…
CAD Developer
  • 1,532
  • 2
  • 21
  • 27
0
votes
1 answer

Get raw data from shapefile in C#

I want to get a list/array from a shapefile in C#. Like when you use an online shapefile to csv converter but of course not converted in csv but just as an array of strings. I saw some people recommend DotSpatial but I find it very hard to find…
Jay
  • 11