[Gdal-dev] Creation of *.PRJ file from Shapefile (*.shp) - reg.

Mateusz Loskot mateusz at loskot.net
Tue Apr 24 07:41:07 EDT 2007


sen thil wrote:
> Hai all,
> 
> I am working on shapefile using C#.NET. I would like
> to know how to create a PRJ file from a shape file.

During layer creation with OGRDataSource::CreateLayer [1]
pass valid object of SRS and OGR will save it for you,
in Shapefile as .prj file.

[1]
http://www.gdal.org/ogr/classOGRDataSource.html#39cfc6e0ee790506d7638b0dce03c7da

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list