public override void LoadData(string path)
 {
     shapefile = new ShapeFile(path.Replace(".txt",".shp"));
     shapefile.Read();
 }
 public ShapeFileRenderer(ShapeFile initFile)
 {
     shapefile = initFile;
 }
 public ShapeFileRenderer(string path)
 {
     shapefile = new ShapeFile(path);
     shapefile.Read();
 }
        public static Layer LoadShapeFile(string path, string currentMap)
        {
            ShapeFile shapefile = new ShapeFile(path);
            shapefile.Read();

            ShapeFileRenderer layer = new ShapeFileRenderer(shapefile);
            layer.Enabled = true;
            layer.Name = path.Substring(path.LastIndexOf('\\') + 1);
            LayerList.Add(layer.ID, layer);
            layer.ReferenceFrame = currentMap;
            AllMaps[currentMap].Layers.Add(layer);
            AllMaps[currentMap].Open = true;
            version++;
            LoadTree();
            return layer;
        }