Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
25 views

Reading Esri file geodatabase (*.gdb) using DotSpatial?

I am a big user of DotSpatial and have even contributed some source code. However, I am having some roadblocks in trying to figure out if DotSpatial can read a file geodatabase. I have posted on the ...
0
votes
0answers
11 views

CRS conversion using Lambert Azimuthal Equal Area project goes wrong for LAEA EUROPE using C#

When I try convert Lat Long from shape file using Dotspatial for Europe LAEA and it gives null values for whole europe region, It is a custom CRS provided by client I have used Dotspatial and tried ...
0
votes
0answers
49 views

Reprojecting shapefile using DotSpatial gives unexpected lat/long coordinates?

I need to take an uploaded polygon shapefile and extract some information from it, including the lat/long positions of the centroids of the features. Using DotSpatial I attempt to Reproject the ...
0
votes
1answer
41 views

Merge feature data rows of a shapefile

I'm using NetTopologySuite to read a shapefile like below code: private FeatureDataTable GetFeatureTableFromShapefile(string shapeFilePath) { GeoAPI.GeometryServiceProvider....
0
votes
0answers
23 views

Reproject Using DotSpatial returns NaN

I am trying to create a grid that is reprojected to Sphere Azimuthal Equidistant. I normally have a map behind it. The screenshot shows the errors. For certain values of Lon, I am getting Nan returned....
0
votes
0answers
93 views

Give field a value in a Featureset Dotspatial

I am creating a shapefile using DotSpatial library in Microsoft Visual Studio and C# programming language. The shapefile consists of a Polygon layer. Each polygon in the layer needs to have a specific ...
1
vote
1answer
95 views

How to obtain a WKT from a DotSpatial IFeature geometry?

I am using DotSpatial 1.9 and I have a feature (sourced from a shapefile). According to the docs, I should be able to call: ToString() on IFeature. // // Summary: // Returns the Well-...
0
votes
0answers
61 views

DotSpatial M and Z values not displaying in ArcGIS Desktop?

I'm making a polyline with M and Z values using DotSpatial. The M an Z values are displayed when the shapefile is dropped in QGIS, but in ArcGIS, though the attribute table indicates that its a ...
1
vote
1answer
453 views

Convert WGS84 to ED50 (non-UTM)

I'm trying to convert between WSG84 and ED50 (non-UTM) using C# and DotSpatial.Projections: using DotSpatial.Projections; using System; using System.Linq; namespace ConvertWGS84ToEd50 { class ...
0
votes
0answers
49 views

Calculating M (shot point) values along points in shapefile using C# and DotSpatial?

I am using DotSpatial library to read the shapefiles and its attributes. My shapefile contains Seismic 2D navigation data. I want to read the navigation information for each line along with M values (...
1
vote
1answer
73 views

DotSpatial Versions on GitHub

Trying to understand how version releases work on GitHub. In particular the DotSpatial library https://github.com/DotSpatial/DotSpatial. If I download the master branch and compile it, the results ...
2
votes
2answers
146 views

Reproject SRID using DotSpatial

I'm nota GIS guy so I need some help. I need to reproject from one SRID to another. I'm trying to take global lat/longs (4326), reproject them to a local SRID (2336). This is basically the line of ...
4
votes
1answer
257 views

How to Add Field to a Shapefile Using DotSpatial

I tried a lots on Google 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 ...
1
vote
1answer
89 views

Does DotSpatial Reproject work for non-global to global projections?

As a small part of a project i need to convert shapefile geometry from OSGB1936 (EPSG:27700) to WGS1984/Pseudo (EPSG:3857) and output as wkt. I found the DotSpatial library which looked promising and ...
0
votes
1answer
119 views

Removing “Invalid or Missing Projection” window when adding an image with DotSpatial

I want to add an image to my win form app using DotSpatial. I use the code below (it works): private void Form1_Load(object sender, EventArgs e) { map1.AddLayer(@"C:\image.png"); } But I see "...
1
vote
1answer
2k views

Loading a shapefile and image using DotSpatial

I am using DotSpatial 1.7 in my win form app. I have an image (original image) downloaded from Universal Map Downloder and then loaded this file with a shapefile in QGIS and then georeferencing the ...
1
vote
0answers
135 views

formula to calculate geo-referencing paramerters

I am trying to overlap the vector and raster data. I have two control points on both raster and vector data. Now I want to generate world file parameters for overlapping two data. I am using ...
0
votes
2answers
178 views

Why does DotSpatial return NaN for point reprojection?

From the master branch and examples @ https://github.com/DotSpatial/DotSpatial the following fills the xy array with NaN but we expect 1755668,5922511 Dim x As Double() = {2666109} Dim y As Double() =...
1
vote
0answers
191 views

Define polygon across the 180 meridian in DotSpatial

I am new to DotSpatial and I try to define a polygon that crosses the 180 meridian by following: FeatureSet fs = new FeatureSet(FeatureType.Polygon); Coordinate[] coord = new ...
0
votes
0answers
113 views

Dotspatial SpatialToolStrip buttons disabled

I have a stand alone map application that uses the DotSpatial.Controls.SpatialToolStrip control, when I added it to the form, only the 'Print' button is enabled, while all others are disabled. I went ...
1
vote
0answers
249 views

Creating features(point) grid on polygon

I am working on GIS based desktop application using C#. I am using dotspatial library in this project. Now I need to create a grid of features on polygon. This grid cell (rectangle) should be 20*20 ...
2
votes
0answers
203 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
0answers
824 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
2answers
631 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....
2
votes
1answer
593 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 ...
2
votes
1answer
1k 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 ...
3
votes
1answer
1k views

DotSpatial problems with reprojecting shapefiles

I have a shapefile 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
1answer
1k 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 ...
6
votes
3answers
11k 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....
0
votes
3answers
749 views

MS Sql Server 2012 UnionAggregate geometry fails in ArcMap [closed]

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 ...
2
votes
0answers
941 views

Draw Polygons by Longitude/Latitude [closed]

I am getting sql spatial results from my database query that consists of long/lat polygons. I am using these results in my c# windows form application. How can I draw each polygon from their long/...
1
vote
0answers
2k 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
596 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
1answer
2k 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
1k views

DotSpatial.Projections Vs. ProjNET4GeoAPI

I have been facing the issue of transform coordinates from a custom spatial reference to a well known spatial reference (let's say WGS84). To do that using ArcObjects is quite straightforward, but I ...
2
votes
1answer
1k views

Creating 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 ArcGIS?
1
vote
1answer
837 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
2k 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). ...
4
votes
0answers
685 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....
2
votes
1answer
535 views

Can't 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
2k 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 ...
1
vote
1answer
2k views

DotSpatial Plugins for Measure, attributes, and query

I want the end product user to open the attributes, measure task and query the shapefile data using the DotSpatial library in C#. I have dll with me but when I create the folder in solution and add ...
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
8k views

Generating shapefile 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 shapefile using DotSpatial that has these ...