How can I use free libraries to transform spatial data?
For example, I want to change the projection of a Shapefile within the code of my C# web application. How do I do that?
|
How can I use free libraries to transform spatial data? For example, I want to change the projection of a Shapefile within the code of my C# web application. How do I do that? |
|||||||||
|
|
You can try the DotSpatial.Projections library. The website lists an example "Converting from a Geographic Coordinate System to a Projected Coordinate System":
|
||||
|
|
|
Another alternative is http://projnet.codeplex.com/ |
||||
|
|
|
There is also GDAL/OGR: http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp The page looks quite old, I'm not sure if the bindings are up to date. |
||||
|
|
|
I was a bit surprised nobody mentioned proj.4 and shapelib. Although both are C projects, C# bindings have been made (or you could just p/invoke them). |
||||
|
|