mapbox / sentinel-tiler Goto Github PK
View Code? Open in Web Editor NEWA serverless Sentinel-2 tiles server using AWS Lambda
License: BSD 3-Clause "New" or "Revised" License
A serverless Sentinel-2 tiles server using AWS Lambda
License: BSD 3-Clause "New" or "Revised" License
I am hitting CORS issue that is very similar to the one described for the landast-tiler. However, this time setting a AWS_REGION variable doesn't seem to fix the problem.
After digging around a little in the serverless issues (e.g. #4681) it seems that maybe we need to define Access-Control-Allow-* headers ?
If you want to use CORS with the lambda-proxy integration, remember to include the Access-Control-Allow-* headers in your headers object
As defined in the serverless docs
I've created a sentinel-tiler server on AWS, and all seems to be working really well, with the exception that band 10 always produces zero value pixels.
I'm using a URL structured as follows:
api-gateway-url/sentinel/tile/S2A_tile_20161202_16SDG_0/10/262/397.png?rgb=09,10,11&tile=256
All of the other bands are working just fine. Rearranging the rgb parameter (e.g. '10,11,12' or '9,11,10') doesn't help.
Is this a known issue, or am I likely doing something wrong? Or might there be something wrong with my tile server?
EDIT: I'd thought this was happening for band 11, but it's band 10.
Got the error A defined coordinate reference system is required
which appears to be a rasterio error. After rebuilding with the custom image it works fine.
Sorry haven't investigated past that, just thought I'd drop a note here in case anyone else hits this while upgrading.
I would like to output transparent images.
I don't know if that requires png.
Today it looks black outside of the satelite image, if that black color could be transparent, I could have a map (like OSM) and it would be easier to know where you are.
(And I would get something reasonable for two neigbouring (large) tiles.)
In histo: -
delimited rgb histogram min/max (default: 0,16000-0,16000-0,16000 )
It seems like parameter 1, 2, 3 corresponds to RGB. But what does the parameter 0 do? Modifying doesn't seem to do anything. When you supply a single number, does it specify the max?
code url:
https://github.com/mapbox/sentinel-tiler/blame/master/README.md#L133
Live example can be found at http://www.cbroderick.me/sentinel/
Not super fast but will give people the idea.
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.