how do i create OGRSpatialReference from raster file's georeference C++

المشرف العام

Administrator
طاقم الإدارة
I want to create .shp file using ogr with georeference based on my raster file, so i create an ogr layer using CreateLayer( "point_out", NULL, wkbPoint, NULL ); i want to set the OGRSpatialReference variable from NULL to to my raster file's georefrence, all i know to get raster file georefrence is using GetProjectionRef() function. how do i convert this to OGRSpatialReference ? or there is some other way to done that ?

(note i'm using c++ programming language)



أكثر...
 
أعلى