c# arcengine 開發shape導入sde中圖形縮小不顯示問題,因爲shape不存在domain問題,導入sde中會把shape默認的圖形範圍導入,導致地圖顯示超過domain範圍 就會無法繪製。
IGeoDataset pGeoDataset = pInFeatureClass as IGeoDataset;
double xMin;
double xMax;
double yMin;
double yMax;
pGeoDataset.SpatialReference.GetDomain(out xMin, out xMax, out yMin, out yMax);
pGeoDataset.SpatialReference.SetDomain(xMin / 2, xMax * 2, yMin / 2, yMax * 2);
大家看懂了嗎?取出domain,再重新設置一下,重置了shape的範圍,這樣倒入SDE中就會默認以該範圍爲繪製範圍