我正在尝试手动设置空间参考,但它正在崩溃。
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);
有任何想法吗?