Estimating Mapbox tile processing costs - mapbox

We're using ogr2ogr and tippecanoe to generate MBTILES files and then uploading them to Mapbox. This incurs Mapbox's recent-ish tile processing and hosting costs.
We've been hit by a couple of surprise bills. We can work around this by following the advice on https://docs.mapbox.com/help/troubleshooting/manage-tileset-costs/#how-do-i-lower-my-tileset-processing-costs.
But there doesn't seem to be an obvious way to estimate tile processing costs before the upload occurs. I'd like to display the tileset's kilometers squared figure, resolution, and calculate a cost to show to our team before the upload occurs.
Does anyone know how this could be achieved?

Turns out Mapbox does have a tool for this, but it's not linked from any of their documentation.
See https://github.com/mapbox/tilesets-cli/#estimate-area
Example usage:
# tilesets estimate-area tennis.json -p 30cm
{"km2": "502912", "precision": "30cm", "pricing_docs": "For more information, visit https://www.mapbox.com/pricing/#tilesets"}

Related

Digitizing a raster against OSM , issue with ballpark transform or technique?

I've pulled up a 'plot of land' raster and I'm attempting to georeference it to Openstreetmap. I can get the raster and the OSM to line up however it isn't accurate enough - there are straight lines that have warped.
I'm assuming this is an issue relating to the message, "Used a ballpark transform epsg:27700 to EPSG:3857" that I get when I add OSM as a layer to a new project set to EPSG27700.
As you may easily tell, I'm quite a novice at QGIS!

Reservoir boundaries segmentation with cloud cover on Landsat 7 / 8

I'm dealing with reservoir boundaries segmentation. My study area is Vietnam and I try on Landsat 7 ETM+/8 dataset.
But at some point of time, cloud cover has covered almost reservoir water body. For example, with Tri An Reservoir (Landsat 8 dataset can be found at here), the water body has been covered by cloud (approx. 51.6%).
So there are anyways to recover the water pixels have been replaced by cloud pixels? For more explaination, could I get the water body under cloud cover as high accurate as possible?
You're out of luck. Cloud detection is hard problem. Cloud removal would require, well, reconstructing data you do not have.
The way this is most commonly dealt with is to use repeat photography to try to find a day when you can see what you're looking for. If this isn't possible, you're out of luck.

OpenStreetMap (OSM) heatmap

Has anyone used any of the following heat-map api/scritpts for OpenStreetMap:
Bjoern Hoehrmann's OpenLayers Heatmap Layer: http://www.websitedev.de/temp/openlayers-heatmap-layer.html
Heatmap by Patrick Wied: http://www.patrick-wied.at/static/heatmapjs/
I am looking for a free heatmap api that can be used in a production environment (a few thousand hits per day), so, if any one has used any of the above in a high visitor number environment, please share your experiences; otherwise please let me know if you are aware of any other free scripts for OSM heatmap.
Thanks!
Never used them, but you could try:
https://github.com/fredj/openlayers-heatmap
https://github.com/sunng87/heatcanvas

Get elevation of an area

I need to get the elevation in meters, of specific points within in a 1km square of ground.
Each point will be 5 meters apart, meaning a total of 40,000 specific points.
The elevation for each of these points will be stored in a 200x200 matrix.
I have tried to use the Google Maps Elevation API, but I think the amount of data I need to request will exceed the terms of service.
I also need to use the elevation data on Matlab, but reading the terms of service for the Google API, I believe I would be limited to using the data within Google Maps itself.
Please could you suggest a solution for me?
After reading all the Terms and Conditions for Google's elevation API, I believe you would be fine in using it for PERSONAL use in Metlab.
However, if you intend to publish the results or anything derived from the data, you will need to include a google map with it... but that could be in the form of a link to a map with just the 200x200 points plotted - a fifteen minute job to knock up ;)
Go for it :)

Google Earth Heat Maps

Is there a way to create a heat map in google earth, so areas with higher values (of some specified parameter, such as population) appear as hotspots?
This seems possible.
For instance, take a look at those few links :
Disclaimer : I've tried none of those
HeatMapAPI.com
And an example
But I'm not sure how you'd do it ; seems related to .NET and a dll in some way... so might not be as nice as it seems...
Density Mapping in Google Maps with HeatMapAPI
Heat Maps for Google Maps - (a.k.a GeoIQ mashup)
Using Google Maps to Produce Heat Maps
You've got a couple of links in those articles too ; some might be interesting too.
My colleague developed an open source java program that will generate 3D heat maps (KML) files for Google Earth from simply formatted XML data files. It may be of use. The entire project code is up at https://github.com/Noblis/OSAT You can ignore the bulk of what's there, and focus on GUIMain and the supporting files. There's sample files and documentation. I'd call it about a 0.5 version - it works, we used it in our studies, but there's some rough edges. It was done for transportation accessibility studies, but you can change the parameters you're graphing to anything you want, run from command line, whatever.
You can use the vertical axis to either view the same parameter as is used for the color OR use it to map an entirely different variable.
Here's two screen shots so you can see what it does:
tool interface:
example 3D output:
You can create polygons in a KML file and set the color of them. You can also make the polygons 3D, with height perhaps representing temperature.
There is also http://www.openheatmap.com, which offers free heatmaps on top of OpenStreetMap from a CSV upload.
Try free API heat maps. A really interesting implementation : http://en.tixik.com/tools/heatmaps
HeatmapTool.com can take a CSV file of coordinates and intensity values to generate heat map tiles for Google Maps.