Geoplot map low resolution

32 ビュー (過去 30 日間)
Joseph Pierre
Joseph Pierre 2019 年 6 月 10 日
回答済み: Jonas 2020 年 4 月 3 日
I'm using geobubble (along with geoplot, geobasemap, etc...) to model dynamics at a city scale. The map appears but the resolution is so low that we can't even recognize the city. Are there ways to import a map of higher quality into matlab to improve my figure, without having to buy the Mapping Toolbox?
See image below.
Screen Shot 2019-06-10 at 1.00.38 PM.png

回答 (2 件)

Hiro Yoshino
Hiro Yoshino 2019 年 8 月 23 日
How about using maps provided by third parties?
The one provided by "open street map" worked well for me in terms of resolution. (find the attached file please.)
name = 'openstreetmap';
url = 'a.tile.openstreetmap.org';
copyright = char(uint8(169));
attribution = copyright + "OpenStreetMap contributors";
displayName = 'Open Street Map';
addCustomBasemap(name,url,'Attribution',attribution,'DisplayName',displayName)
This script adds "open street map" to your geobasemap.
Once you run this, you'll get a new list of base maps to choose from - that has the open street map in itself.
You can change the base map by
geobasemap("opensteetmap");

Jonas
Jonas 2020 年 4 月 3 日
There are higher resolution maps available with version R2019b, without needing the Mapping Toolbox. You can change the base map with the command geobasemap, for example:
geobasemap streets
It will change your figure's basemap immediately. More info on which other basemaps are available go check the documentation. I personally like satellite, streets, and topography.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by