예제 #1
0
 private static object GetVectorTemplateByArray(string templateName)
 {
     string[] vectorNames = VectorAOITemplateFactory.VectorTemplateNames;
     foreach (string name in vectorNames)
     {
         if (name == templateName)
         {
             return(VectorAOITemplateFactory.GetAOITemplate(templateName));
         }
     }
     return(null);
 }
예제 #2
0
        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));
        }
예제 #3
0
        private byte[] GetAdminTypeRaster(IRasterDataProvider dataProvider, Size size, out string[] adminNames)
        {
            VectorAOITemplate temp = VectorAOITemplateFactory.GetAOITemplate("省级行政区");

            return(temp.GetRaster(GetEnvelope(dataProvider), size, "NAME", out adminNames));
        }