Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to assign projection to shapefile in my web C# application, for this i am using Gdal/OGR/OSR C# bindings and add osr_csharp.dll and ogr_csharp.dll references. But i am facing some difficulty while writing the code for assigning projection to shapefile. I want to know is there any API documentation for this which can help me to understand the classes/methods of these libraries. OR if anybody have some piece of code for assigning projection to shapefile , then it will be great help for me.

share|improve this question
up vote 10 down vote accepted

This directory in the GDAL project tree has some C# examples, specifically this one that might suit your needs.

share|improve this answer

You can find the GDAL API documentation here
There is an GDAL API tutorial here
The OGR API documentation is here
The OSR API documentation is here

All the links you need for GDAL can be reached from
All the links you need for OGR/OSR can be reached from

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.