可以geographiclib用于将(WGS84)纬度 - 经度对转换为3d /笛卡尔/ xyz点吗?
如果没有,是否有另一种方法可以在不使用球面近似值的情况下从一个转换为另一个?
答案 0 :(得分:0)
是。如下例所示,@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL("create table CustomerTemp as select * from Customer;");
db.execSQL("insert into CustomerTemp select * from Customer;");
db.execSQL("drop table if exists Customer;");
onCreate(db);//create table customer...
//this line throws Unique Constraint Exception on Customer._id
db.execSQL("insert into Customer select * from CustomerTemp ;");
db.execSQL("drop table if exists CustomerTemp;");
}
类提供了这样的转换:
Geographiclib::Geocentric