跳转到内容

维基百科:Map data

维基百科,自由的百科全书

这是本页的一个历史版本,由Df910105留言 | 贡献2023年5月13日 (六) 06:43 建立内容为“{{notice|Wikimedia Commons 地圖資料現在已可以使用創用CC授權條款(CC-BY、CC-BY-SA)授權{{small|(以前只允許CC0)}}}} 使用地圖資料作為前綴來儲存GeoJSON地圖。 ==入門== GeoJSON map data cannot be directly uploaded and stored in the File namespace. While map data should usually be stored on Commons (see mw:Help:Map data), until August 2018 only CC0 licences were not allowed.…”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

使用地圖資料作為前綴來儲存GeoJSON地圖。

入門

GeoJSON map data cannot be directly uploaded and stored in the File namespace. While map data should usually be stored on Commons (see mw:Help:Map data), until August 2018 only CC0 licences were not allowed. Because of this former restriction, this process was set up so that data with licences compatible with Wikipedia's CC-BY-SA-3.0 licencing (e.g. as CC-BY licences), they could be stored as subpages here on Wikipedia.

Storing data on Wikipedia subpages can allow the same data to be used in multiple articles with different features given prominent styling depending on the article title. For example, Wikipedia:Map data/Columbus Register of Historic Properties uses parser functions such as "stroke": {{#ifeq:{{PAGENAME}}|Old Oaks Historic District|"#ff0000"|"#666666"}}.

如何貢獻

Created a subpage of this page. It should probably follow the convention used on Commons of /data source/title. At the start of the page, in a <noinclude>...</noinclude> section, include the {{information}} and licencing templates.

使用User:Evad37/kmlToJson英语User:Evad37/kmlToJson可以將KML檔案轉換成GeoJSON。

如果使用轉換器輸出GeoJSON,請確保雙引號在正確的位置,範例:

"stroke": {{#ifeq:{{PAGENAME}}|Foo|"#ff0000"|"#666666"}}

而不是

"stroke": "{{#ifeq:{{PAGENAME}}|Foo|#ff0000|#666666}}"

顯示地圖資料

使用模板{{Mapbox}}{{Maplink}} (並將|raw={{Wikipedia:地圖資料/子頁面}})

參見