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

0
votes
1answer
26 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
20 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. ...
2
votes
1answer
45 views

DotSpatial problems with reprojecting shape files

I have a shape file with this projection: ...
0
votes
1answer
94 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
71 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
85 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
40 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
59 views

ClipRaster Class of DotSpatial is problematic

I want to clip a raster data with a polygon extent. Here is my Layers. Polygon layer is colored and raster is black and white. When I cliped using ...
0
votes
1answer
330 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) { ...
0
votes
2answers
155 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
18 views

Display Preview Images In Map Extends

I am displaying some map extends by lat/long on map control by using shapefile writer of DotSpatial library. Now I want to display preview image within each extend that is selected. How can I achieve ...
0
votes
0answers
349 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
163 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 ...
1
vote
1answer
187 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 ...
0
votes
1answer
567 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 ...
1
vote
1answer
393 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 ...
2
votes
1answer
464 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
1answer
414 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 ...
1
vote
2answers
926 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). ...
3
votes
0answers
359 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); ...
2
votes
1answer
258 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
905 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
993 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
1answer
4k views

How to generate a Shape File in DotSpatial

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 ...