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.

learn more… | top users | synonyms

2
votes
1answer
615 views

How to create Map Document for DotSpatial?

How can I create a Map Document (including layers, symbology info etc.) for DotSpatial just like we have MXD File in ESRI ARCGIS.
0
votes
1answer
295 views

Drawing a line and getting the length of the line C#?

I am trying to get the length of a drawn line to a textbox but its throwing an NullReferenceException at var length = f.ToShape().ToGeometry().Length;. what else should i use in the code to finish ...
4
votes
0answers
419 views

Creating a ShapeFile spatial index programmatically in .Net

I am creating a shapefile programmatically using DotSpatial using the following example syntax / pseudo code FeatureSet features = new FeatureSet(DotSpatial.Topology.FeatureType.Polygon); ...
1
vote
0answers
34 views

Dotspatial.Projections with custom Proj.4 string

I have lat,long values that I need to convert to x,y in a custom Lambert Conformal Conic projection defined as +units=m +a=6371229 +b=6371229 +x_0=0 +y_0=0 +proj=lcc +lon_0=0 +lat_2=25.0 +lat_1=25.0 ...
1
vote
0answers
45 views

How do I read the attribute data associated with my SHP?

I'm using DotSpatial to aid in processing some geospatial data. I'm using the code below to determine if a point (lat/lon location) is within a polygon contained in the SHP. If the point is in a ...
0
votes
0answers
2 views

Looking for a raster calculator C# class

I am developing an application using C# and dotspatial. I need to performs raster calculation a lot..I need a liberary which helps me to do it..Do you know any liberary for this porpuse? The liberary ...
0
votes
0answers
49 views

Web application using Dot Spatial not rendering shapefile?

I want to create Asp.Net web application which can do following things. Import Image file and render on Dot spatial's map control in web application. create dynamic shape file. I have created the ...
0
votes
0answers
24 views

Performing Raster Algebra using DotSpatial?

I want to perform some Raster Algebra using DotSpatial. Is there any solution for it? Or any examples? this is a class which I am developing to perform raster algabra but as you see there is some ...
0
votes
0answers
41 views

Find line where the beginning or end of line touches a polygon with minimal radius

I need to check, If a point from a beginning or an end of a line is nearby a polygon. The target is to check, whether the line is nearly connected to a polygon. The data are coming from a shapefile. ...
0
votes
0answers
227 views

How to draw a selectable line feature in Dot-Spatial and export its length to textbox?

I would like to draw a line in dot-spatial using mouse-move event at runtime and user can select and manupulate it. further i want to extracts its length to textbox or spatialStatusStrip. p.s i have ...
0
votes
0answers
221 views

Adding attributes to sharpmap vector

i m making points using the following code Dim strFile = strLayer & ".wkt" Dim vectorLayer As SharpMap.Layers.VectorLayer = New SharpMap.Layers.VectorLayer(strLayer) Dim geomColl = New List(Of ...
0
votes
0answers
50 views

ProjToCell and CellToProj method of DotSpatial in ArcGIS C# SDK

In DotSpatial there are two methods which are vary helpful to me. 1. Coordinate IRaster.CellToProj(row, column); //here Coordinate is left-top corner of the cell 2. RcIndex IRaster.ProjToCell(x,y); ...
0
votes
0answers
572 views

How to convert multipolygons to a single polygon

I have converted a set of gps points to polygon and then using .makevalid() I saved them in sql server.But It converted them to multypolygons.Is there any way to fix this problem and convert them to ...