![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GDAL
文章平均质量分 78
gdal使用
乘徐缘
这个作者很懒,什么都没留下…
展开
-
tif高程坐标转换
std::string strSourceRaster = CT2A(strSrcRaster); std::string strDestRaster = CT2A(strDesRaster); OGRSpatialReferenceH destSR = OSRNewSpatialReference(NULL); CString strEPSG2 = strEPSG; strEPSG2.MakeLower(); strEPSG2.Replace(L"epsg...原创 2021-10-27 14:26:51 · 1071 阅读 · 0 评论 -
tif转shp文件
std::string imgPath = CT2A(strTifPath);//tif文件路径 strShpTemp += CFileToolKit::GetFileLogicName(strShpPath); std::string tempShpPath = CT2A(strShpTemp); GDALDataset * pInDataset = (GDALDataset *)GDALOpen(imgPath.c_str(), GA_ReadOnly); if ...原创 2021-10-27 14:24:11 · 3370 阅读 · 2 评论 -
GDAL坐标转换
通过EPSG码转换OGRSpatialReferenceH srcSptRef = OSRNewSpatialReference(nullptr);OSRImportFromEPSG(srcSptRef, nSrcEPSG);OGRSpatialReferenceH dstSptRef = OSRNewSpatialReference(nullptr);OSRImportFromEPSG(dstSptRef, nDstEPSG);OGRCoordinateTransformat原创 2021-10-27 10:46:02 · 758 阅读 · 0 评论