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
723 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.
1
vote
2answers
130 views

Error Dotspatial featureset

Writing code using C# and the DotSpatial library, with the following code: FeatureSet fs = new FeatureSet(FeatureType.Polygon); fs = FeatureSet.Open(Application.StartupPath + "\\MapFile\\Land....
0
votes
1answer
458 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 ...
0
votes
0answers
218 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
32 views

Adding OSM layer in Dotspatial 1.9

I am developing an application in VB.NET , I am using dotspatial 1.9 library .i need to add OpenStreetMap layer to the map. However i cannot find any documentation on this.
0
votes
0answers
41 views

DotSpatial Opposite of Featureset.Intersection

DotSpatial 1.8: I have some code to give me the intersection of my trip polyline and where it crosses key polygon regions. That works well: Dim fsResults As IFeatureSet = fsTripLne.Intersection(...
2
votes
0answers
329 views

Draw Polygons by Longitude/Latitude [closed]

I am getting sql spatial results from my database query that consists of long/lat of polygons. I am using these results in my c# windows form application. Now the problem I am facing is that how ...
2
votes
3answers
2k views

Coordinate transformation/reprojection using DotSpatial

need some help. The following piece og code worked with an older version of DotSpatial. public static Geometry Project_EPSG25832_To_EPSG3857(byte[] wkb, int SRID) { NetTopologySuite.IO....
4
votes
0answers
464 views

Creating 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); features....
0
votes
0answers
96 views

How to change Raster Layer drawing shape using DotSpatial

I am using DotSpatial and geostatisticaltool in a application. I want to change Raster Layer drawing type after kriging. Here the example. This is a kriging result. It creates new layer and draws ...
2
votes
0answers
31 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 library which helps me to do it..Do you know any library for this purpose? The library ...
1
vote
1answer
508 views

How do you set a polygon layers transparency in DotSpatial

How do you set a polygon layers transparency in DotSpatial? I'm using vb.net in visual studio express 2013 and using a Dotspatial nugets package which has given me DotSpatial version 1.7. Please see ...
0
votes
0answers
51 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 ...
1
vote
0answers
108 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 +...
2
votes
1answer
379 views

C#/.Net Library that can draw a line across the date line

I want to be have an embedded map in my application that can handle drawing lines across the date line. I have tried out dotspatial and sharpmap and neither have been able to handle this. Edit: Here ...
1
vote
0answers
66 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
49 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. ...
3
votes
1answer
471 views

DotSpatial problems with reprojecting shape files

I have a shape file with this projection: PROJCS["RD_New",GEOGCS["GCS_Amersfoort",DATUM["D_Amersfoort",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0....
0
votes
2answers
340 views

MS Sql Server 2012 UnionAggregate geometry fails in ArcMap

I have following two geometries. Geometry 1 (G1): MULTIPOLYGON (((148.134707676 -34.1519003565, 148.143738823 -34.1540810687, 148.14648294 -34.1396863245, 148.143196834 -34.1392361445, 148.140859243 ...
0
votes
0answers
738 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 ...
1
vote
1answer
553 views

using DotSpatial plugins in my app

I am new with dotspatial and I want to enable and use plugins on my own. I have a custom button that I want to add, it's a click handle measure function and shows the results in a text label. Is ...
0
votes
1answer
927 views

converting projections using dotspatial or proj4

how can i convert projections using either dotspatial or proj4? i am making a program using sharpmap and dotspatial in VB.net have to convert a EPSG 4030 into a Lambert conformal conic projection and ...
3
votes
1answer
623 views

DotSpatial.Projections Vs. ProjNET4GeoAPI

DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far… I have been facing the issue of transform coordinates from a custom spatial reference to a well known spatial reference (let's say ...
1
vote
2answers
1k views

How to connect Dotspatial with PostGIS/PosgresSQL database and perform SQL function

I am currently doing a project that needs a GIS front-end interface to visualize geographical objects (road networks), and a back-end geo-spatial database to implement network analysis (SQL based). ...
1
vote
1answer
649 views

Alignment/Projection issue when opening a shapefile in ArcMap that was created from DotSpatial code

I have a number of Polyline and Point features stored in a SQL Server 2012 database. I am using a website with C# and DotSpatial to create and export a shapefile of any one of these features ...
2
votes
1answer
328 views

Cant' Find DotSpatial.Geometries.dll

I am trying to follow a simple tutorial on Dotspatial web page "Sample code that demonstrates how to create a Multi Polygon Feature Set" I add the DotSpatial.Data.dll to the project References but I ...
4
votes
1answer
1k views

How to use DotSpatial to project/reproject shapefiles on the fly

I would like to use DotSpatial to reproject shapefiles on the fly before loading them to GeoServer. I've been looking for tutorials on how to get started with this in vain. Any pointers on where I can ...
0
votes
1answer
1k views

DotSpatial Plugins for Measure,attributes,query

I want the end product user to open the attributes,measure task and query the shapefile data using the DotSpatial library in c# . Thank you in advance.I have Dll with me but when i create the folder ...
3
votes
1answer
1k views

Open-source projects that use DotSpatial?

I'm intrigued by what I see with DotSpatial, mainly for its C# interface with GDAL. I've downloaded the source (and the 3.5 x86 package) and I'm a bit stuck with using the GDALHelper class to ...
3
votes
0answers
6k views

How to generate a Shape File in DotSpatial [closed]

I have a .csv file of coordinates such as the following: -90.19, 38.62, St Louis -122.42, 37.82, San Francisco -74.04, 40.68, New York I want to create a shape file using DotSpatial that has these ...