如何在点空间中添加图像层

时间:2015-11-25 05:56:43

标签: c# dotspatial

我是ac#程序员。我需要处理形状文件,所以我使用点空间插件。有一个类FeatureSet,我通过它给出Point,line,polygon的FeatureType但是没有图像类型来添加图像层那么请帮我看看如何添加图片层

1 个答案:

答案 0 :(得分:1)

您是否使用此代码:

map.AddLayer("pathToImageFile");

或:

IImageData i = ImageData.Open("pathToImageFile");
IMapImageLayer ly = map1.Layers.Add(i);

另请参阅Loading a shapefile and image using DotSpatial