Desktop_SampleCode - sindizzy/DSW GitHub Wiki

Sample code

Plugin template
DotSpatial packages
 

This sample code demonstrates the basic function of the DotSpatial.Data library.

Creating a Line Feature C# VB.Net
Opening an Existing Feature Set C# VB.Net
Buffering a Feature Set C# VB.Net
Determining the number of rows in a Feature Set C# VB.Net
Getting the entire Attribute Table C# VB.Net
Getting a value from an Attribute Table C# VB.Net
Saving a FeatureSet as a new shapefile C# VB.Net
Union the intersecting shapes in a featureset C# VB.Net

Feature Sets
Creating a Point Feature Set C# VB.Net
Creating a Line Feature Set C# VB.Net
Creating a Polygon Feature Set C# VB.Net
Create a layer of random Points, then move them C# VB.Net
Create a polygon feature set and add two attribute columns C#
Showing Multiple images on one layer C#

Raster
Opening a Raster and getting various values C# VB.net
Converting to Raster<int> type and reading integer values. C# VB.Net

Shapes
Cycle through the shapes, parts and vertices (without using geometries) C#
Generate FeatureSets from WKB C#
Point in Polygon Testing C#

Create New Vectors
Quickly Add Many Features to a FeatureSet C#

 


This sample code demonstrates the basic function of the DotSpatial.Projections library.

Reading ESRI .prj files C# VB.net
Reading Proj4 strings C# VB.net
Reproject a point using a Known Coordinate Systems C# VB.net
Adding a Geographic Coordinate System to a Feature Set C# VB.net


This sample code demonstrates the basic function of the DotSpatial.Topology library

This page documents how to access the basic functions within this library.
Point/Line.Polygon
Creating a new point C# VB.net
Creating a new linestring C# VB.net
Creating a new polygon C# VB.net
Creating a new polygon with holes C# VB.net

MultiPoint/Line/Polygon
Creating a new multipoint C# VB.net
Creating a new multilinestring C# VB.net
Creating a new multipolygon C# VB.net

Basic geometric calculations
Determining the length of a line C# VB.net
Determining the area of a polygon C# VB.net
Buffering a point C# VB.net

⚠️ **GitHub.com Fallback** ⚠️