private static object GetVectorTemplateByArray(string templateName) { string[] vectorNames = VectorAOITemplateFactory.VectorTemplateNames; foreach (string name in vectorNames) { if (name == templateName) { return(VectorAOITemplateFactory.GetAOITemplate(templateName)); } } return(null); }
private byte[] GetLanduseTypeRaster(IRasterDataProvider dataProvider, Size size, out string[] landuseTypes, string vectorTemplate) { VectorAOITemplate temp = VectorAOITemplateFactory.GetAOITemplate(vectorTemplate); return(temp.GetRaster(GetEnvelope(dataProvider), size, "NAME", out landuseTypes)); }
private byte[] GetAdminTypeRaster(IRasterDataProvider dataProvider, Size size, out string[] adminNames) { VectorAOITemplate temp = VectorAOITemplateFactory.GetAOITemplate("省级行政区"); return(temp.GetRaster(GetEnvelope(dataProvider), size, "NAME", out adminNames)); }