Hi everyone

I was wondering how I should assign a spatial reference to my OGRLayer.

virtual 
OGRSpatialReference<http://www.gdal.org/ogr/classOGRSpatialReference.html>
 * 
OGRLayer::GetSpatialRef<http://www.gdal.org/ogr/classOGRLayer.html#75c06b4993f8eb76b569f37365cd19ab>
 ()


There  seems to be no SetSpatialRef method. The current spatial reference is
null, since it was imported from a shapefile without spatial ref, so I can
not simply fill in the values of the existing sref object. I tried assigning
to each geometry, but this seems less than elegant, and the layer still
returns 0.

Thanks in advance,
Anders
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to