Skip to content

Where are grid shift files saved? #90

Answered by MaxRev-Dev
TJPovey asked this question in Q&A
Discussion options

You must be logged in to vote

If you have a different directory for the proj data (grid shifts), you can include it when configuring PROJ search paths.
Of course, you can specify your proj data with Proj.Configure(@"C:\OSGeo4W\share\proj");.
By default, I do package only a small proj.db file from proj build folder.
To keep packages neater and more concise other projections or newer proj-datumgrid are omitted.

You can ensure that proj CRS is set by checking the output of

var targetCrs = new SpatialReference(string.Empty);
var isSet = targetCrs.SetWellKnownGeogCS("EPSG:27700");
if (isSet == 0) {
// your projection
} else { 
// this CRS is not defined
}

But you can import a CRS from WKT (EPSG source).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TJPovey
Comment options

@MaxRev-Dev
Comment options

@TJPovey
Comment options

@MaxRev-Dev
Comment options

Answer selected by MaxRev-Dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants