Last active
August 29, 2015 14:25
-
-
Save bradbrowne/42bc7dbc053c15e5040e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
List<int> GetEpsgFromProj4(string proj4) | |
{ | |
var pattern = new Regex("<(\\d+)>"); | |
return EpsgLines | |
.Where(x => x.Contains(proj4)) | |
.Select(text => int.Parse(pattern.Match(text).Groups[1].Value)).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment