This project is read-only.

Convert Shape File into Grid

Jul 16, 2013 at 9:56 AM
Hi List,
I am using Dot Spatial in my c# application. I want to convert a shape file into grid by a)defining the boundary of the grid (bottom latitude, top latitude, left longitude, right longitude), b) converting the shape to a grid. I have read all the discussions in the forum, and found some similar questions, but without any answer. Would you please help me on this? I have read and used all the tutorial on how to import a grid file, but this is literally converting a shape file into a grid.

Jul 16, 2013 at 11:43 AM
you can use this function
var demRaster2 = DotSpatial.Analysis.VectorToRaster.ToRaster(shap2, 100, "LU", "Map2.bgd");
Jul 16, 2013 at 12:47 PM
Thanks Anasr,
Is there a way to define the grid boundary?