public static void SaveAsShapefile(string shpFileName, IEnumerable <IShape> data, bool createEmptyDbf, CoordinateReferenceSystemBase coordinateReferenceSystem, bool overwrite = false) { Writer.ShpWriter.Write(shpFileName, data, createEmptyDbf, overwrite); var prj = GetPrjFileName(shpFileName); if (overwrite && System.IO.File.Exists(prj)) { System.IO.File.Delete(prj); } coordinateReferenceSystem.AsEsriPrj().Save(prj); }