Пример #1
0
        // <summary>
        // To apply the same options on the next loading
        // </summary>
        private void RestoreCategories(AxMap axMap1, string dataPath)
        {
            string    filename = dataPath + "landuse.shp";
            Shapefile sf       = new Shapefile();

            if (sf.Open(filename, null))
            {
                int    handle      = axMap1.AddLayer(sf, true);
                string description = "";
                axMap1.LoadLayerOptions(handle, "categories_sample", ref description);
            }
        }
Пример #2
0
 public bool LoadOptions(string optionsName, ref string description)
 {
     return(Map.LoadLayerOptions(LayerHandle, optionsName, ref description));
 }