kylebarron / dem-tiler Goto Github PK
View Code? Open in Web Editor NEWServerless terrain contours, quantized mesh, and RGB-encoded terrain tiles
License: MIT License
Serverless terrain contours, quantized mesh, and RGB-encoded terrain tiles
License: MIT License
TODO
comment in f2a6afc. It's been assigned to @kylebarron because they committed the code.Find dem tile data normally, then pass to pymartini, then pass to quantized-mesh-tile
, then return
Especially when exporting to quantized mesh, it might be ideal to use the existing AWS terrain tiles.
Also look into using the GeoTIFF terrain tiles, which might be a little simpler to work with, because you don't have to encode/decode from a PNG.
It would be helpful to support exporting 260px and 516px tiles: e.g. 256px and 512px tiles with an extra 1-pixel border on each side.
These would allow for client-side hillshade/slope calculations without needing to find nearby tiles to backfill the edges
E.g. Set to None
by default, and then derive from the z
using the same as I do in JS?
function getMeshMaxError(z) {
return (77067.34 / (1 << z)).toFixed(2);
}
attempt with rasterio.features
:
floored = np.floor(tile / 10).astype(np.int16)
shapes = list(features.shapes(floored, transform=transform.from_bounds(*mercantile.bounds(x, y, z), 256, 256)))
fs = []
for geom, value in shapes:
fs.append(Feature(geometry=mapping(LineString(shape(geom).exterior)), properties={'ele': value}))
fc = FeatureCollection(fs)
TODO
comment in a97dea0. It's been assigned to @kylebarron because they committed the code.Contours are in the contour
layer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.