Update visualize comments

own
Bobholamovic 2 years ago
parent f403abcadd
commit 543b74a40b
  1. 16
      paddlers/utils/visualize.py
  2. 0
      tools/prepare_dataset/prepare_isaid.py
  3. 0
      tools/prepare_dataset/prepare_massroad.py
  4. 0
      tools/prepare_dataset/prepare_rsc11.py
  5. 0
      tools/prepare_dataset/prepare_rsscn7.py
  6. 0
      tools/prepare_dataset/prepare_satehaze1k.py
  7. 0
      tools/prepare_dataset/prepare_ucmerced.py
  8. 0
      tools/prepare_dataset/prepare_whu.py

@ -31,7 +31,7 @@ except:
import gdal
import osr
CHINATILES = (
CHINA_TILES = (
"GeoQ China Community",
"GeoQ China Street",
"AMAP China",
@ -57,19 +57,15 @@ def map_display(mask_path: str,
In Jupyter Notebook environments,
leave `save_path` as None to display the result immediately in the notebook.
Defaults to None.
tiles (str): Map tileset to use. Due to boundary question,
the map tileset provided by folium cannot be selected.
* Only can choose from this list:
tiles (str): Map tileset to use. Chosen from the following list:
- "GeoQ China Community", "GeoQ China Street" (from http://www.geoq.cn/)
- "AMAP China" (from https://www.amap.com/)
- "TencentMap China" (from https://map.qq.com/)
- "BaiduMaps China" (from https://map.baidu.com/) {
It is worked in some cases, but it is not recommended.
}
- "BaiduMaps China" (from https://map.baidu.com/)
Defaults to "GeoQ China Community".
These tileset have been corrected through the public algorithm on the Internet.
* All tilesets have been corrected through public algorithms from the Internet.
* Please read the relevant terms of use carefully:
- GeoQ [GISUNI] (http://geoq.cn/useragreement.html)
- AMap [AutoNavi] (https://wap.amap.com/doc/serviceitem.html)
@ -80,8 +76,8 @@ def map_display(mask_path: str,
folium.Map: An example of folium map.
"""
if tiles not in CHINATILES:
raise ValueError("The `tiles` must in {}, not {}.".format(CHINATILES,
if tiles not in CHINA_TILES:
raise ValueError("The `tiles` must in {}, not {}.".format(CHINA_TILES,
tiles))
fmap = Map(
tiles=tiles,

Loading…
Cancel
Save