Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify initialization of projections in NationalGridsSweden. This i…
…s also sample how to fix #729 for all known projections.
- Loading branch information
Showing
3 changed files
with
49 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace DotSpatial.Projections | ||
{ | ||
internal static class ProjectionInfoExtensions | ||
{ | ||
/// <summary> | ||
/// Sets names for given projection info | ||
/// </summary> | ||
/// <param name="pi">Projection Info</param> | ||
/// <param name="projectionName">Projection name</param> | ||
/// <param name="geograficInfoName">Geografic info name</param> | ||
/// <param name="datumName">Geografic info datu name</param> | ||
public static ProjectionInfo SetNames(this ProjectionInfo pi, string projectionName, string geograficInfoName, string datumName) | ||
{ | ||
pi.Name = projectionName; | ||
pi.GeographicInfo.Name = geograficInfoName; | ||
pi.GeographicInfo.Datum.Name = datumName; | ||
return pi; | ||
} | ||
} | ||
} |