Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternative option for origin encoding missing #25

Open
zoot-inge opened this issue Mar 12, 2019 · 0 comments
Open

alternative option for origin encoding missing #25

zoot-inge opened this issue Mar 12, 2019 · 0 comments

Comments

@zoot-inge
Copy link

zoot-inge commented Mar 12, 2019

in _parseTIFF code should be altered:
// http://geotiff.maptools.org/spec/geotiff2.7.html
// https://geotiffjs.github.io/geotiff.js/geotiffimage.js.html
// http://duff.ess.washington.edu/data/raster/drg/docs/geotiff.txt
if (meta.ModelTiepoint) {
var x_min = meta.ModelTiepoint[3];
var x_max = x_min + meta.ModelPixelScale[0]*meta.ImageWidth;
var y_min = meta.ModelTiepoint[4];
var y_max = y_min - meta.ModelPixelScale[1]*meta.ImageLength;
}
else if (meta.ModelTransformation) {
var x_min = meta.ModelTransformation[3];
var x_max = x_min + meta.ModelTransformation[0]*meta.ImageWidth;
var y_min = meta.ModelTransformation[7];
var y_max = y_min + meta.ModelTransformation[5]*meta.ImageLength;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant