How can I implement sea-level Openlayers sample to use a COG as elevation? - openlayers-6

The sea level example in Openlayers uses XYZ tiles to get the elevation (DEM).
Does anyone know how to use a GeoTIFF for the elevation instead of XYZ tiles?

Related

Exclude labels that are outside a designated region in Mapbox Studio

I'm currently working on a visualization on Mapbox that's focused on a given region, let's say Texas for the sake of this example. I want to make it so this region is emphasized on the map, with everything else faded to the background.
So far I've managed to import Natural Earth's shapefiles into Mapbox Studio in order to make everywhere outside of Texas a shade darker:
This is great, but ideally I'd like to hide all of Mapbox's labels that are outside of Texas. I've been trying to use filters in Mapbox studio to "filter out" all of the items on each layer, but it appears their layer settings don't allow me to filter based on a geospacial attribute (only data attributes).
Does anyone know of a way for me to hide all city labels outside of Texas; either programatically on the js Mapbox GL library, or ideally via Mapbox Studio?
In Mapbox Studio, select the layer. Then click 'select data' and then 'filter'. There should be an option to filter the layer by the ISO/parent. I've done the same with admin-1 labels to restrict to only US

Setting up coordinate system in Map Tiler

I am creating Map tiles based on Map Image using Map Tiler software.
Now in that as a first step i selected Map Image from system.
Than i have to set the coordinate system for that i have following options :
See this image:
I choose second option from it. that is WGS84 - Latitude and longitude (EPSG:4326)
In that i have this type of algo to fill up with the coordinate values :
GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84", 6378137,
298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]]
But its not working for me. The tiles are creating well but when i am trying to create the database using Map2Sqlite software than it takes always static lat-long although i specified the Lat-Long of particular region.
Can anyone suggest which of the option mentioned in above Image should i choose ?
Also if there is any alternate way to create tiles & convert it to Sq Lite db than please suggest me.
As i checked map2sqlite is working well. But when i create tiles at that time passing the coordinates is somewhere wrong.
So anyone can please suggest me while creating tiles from Map image how to pass Coordinates of our region.
Any suggestions or hints will be highly appreciated.
Thanks.
Have a look at this video:
https://www.youtube.com/watch?v=eJxdCe9CNYg
It shows a step by step guide how to overlay an image on top of Google Maps or OpenStreetMap.
MapTiler (http://www.maptiler.com/) generates tiles compatible with the popular global mercator system automatically - these are compatible with most of the API and SDKs.

edit location using mapbox ios7?

Is mapbox providing any feature to edit or add location annotations using mapbox iOS SDK??
If yes where the edited or added informations will be stored??(is it stored in mapbox services like google maps )
should i use developer mapid for all users whoever is using my app or i have to get the users mapid
if you suggest any sample tutorial it would be great
I referred this but i am not clear
Yes, check the documentation:
RMAnnotation lets you add annotations to the map.
Map ID refers to the map style if you are hosting the map imagery with Mapbox.
The docs page also links to sample projects and example code snippets.

RGBDToolKit calibrate correspondence cannot display the live view by my canon digital camera

Hi~ I am trying to calibrate my depth camera with my digital camera.. but I meet some problem using the RGBDKinectCapture...
1、why the calibrate correspondence cannot show the RGB view from my digital camera?? (canon EOS 600D)
I have set it the live view mode..
2、it cannot recognize my kinect(1414) on Win7 By the example application (download from the RGBToolKit.com),
and I cannot run the source on Windows,just say the error 'enable_if' also mean the std::tr1::enable_if...
3、What is the methods of taking live preview for (all) the HD camera in RGBToolKit ??
is it without the SDK of camera??
which methods it based on??
which class? and I want to debug it...
I'm so sorry ... I see now...
1、the RGBDToolkit doesnot display the live preview of the HD camera.... it just load its video....
2、I cannot run the example on windows because it run with the different sdk for kinect ...(the source has give the sdk..)

MKMapKit and google tile location

i am trying to add some MKOverlays to a MKMapKit. I'll be using our WMS server to fetch tiles based on google's grid location standard and adding them. To make the call, i need to tell our WMS server the google tile (x, y, and zoom level).
i've looked over apple's TileMap sample code which looks like it uses google's tile system.
Does MKMapKit return this information or do i need to derive it from GPS coords?
You have to derive it yourself. I found this sample very useful:
https://github.com/mtigas/iOS-MapLayerDemo