0
foreach(Row in table.Search("*","",rowinstance.recycle()))
{
City current_city = new City();
current_city.cityname = row.GetString("cityname");
PointShapeBuffer geometry = row.GetGeometry();
psri.FileGdb.point point = geometry.point;
current_city.xcord = point.x;
current_city.ycord = point.y;
current_city.popCateogry = row.getInteger("pop");
}
在上面的代碼中,我從row.GetString(),row.GetInteger()等一行中檢索不同的值,如果我不知道該行的數據類型,如何檢索值從一般排? 我曾嘗試var type = row.GetType()
但它不工作,它提供了一些其他種類的信息,不是數據類型。如何動態地從文件地理數據庫表中讀取數據?
這是ArcObjects的代碼?還是ArcGIS Runtime?要麼 ...? – HimBromBeere