我正在尝试手动设置空间引用,但它正在崩溃。
std::ofstream ofs;
liblas::Header header;
liblas::SpatialReference srs;
srs.SetFromUserInput("EPSG:4326"); // It crashes here
header.SetSRS(srs);
header.SetPointRecordsCount(1);
ofs.open("test.las", std::ios::out | std::ios::binary);
liblas::Writer writer(ofs, header);有什么想法吗?
发布于 2015-02-10 12:45:18
添加环境变量后,问题就消失了。
GDAL_DATA "C:\OSGeo4W64\share\epsg_csv“
https://stackoverflow.com/questions/28407079
复制相似问题