Comments (2)
Looking good, does not crash when the coordinates are within the boundaries of the TIF file and it spits out a number that looks accurate. Thanks for the quick turn around!
from geotiffcog.
Hi @johnjore, thanks for posting your issue.
I added a small correction to support the integer raster type (INT) there was a code that applied the value 0 (if there was no factor), so it would always be returned zero.
Also, to obtain the height value using this raster (which is projected in meters) it will be necessary to inform the lat/lon (y,x) in meters.
In your example:
double lat = -37.4075974;
double lon = 145.7524722;
// change to:
double lat = -4496073.92;
double lon = 16225090.99;
Can see more in: https://epsg.io/transform#s_srs=4326&t_srs=3857&x=145.7524722&y=-37.4075975
And you can also use the URL directly in the function (without having to download it from S3), see the example below:
string url_s3 = "https://elevation-tiles-prod.s3.amazonaws.com/geotiff/10/926/626.tif";
GeoTiff geoTiff = new GeoTiff(new Uri(url_s3), directoryTemp);
double value = geoTiff.GetElevationAtLatLon(lat, lon);
Please confirm if this information is useful and solve the problem, so that we can close it.
from geotiffcog.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geotiffcog.