从哪里获得 R 中的印度官方印度政府地图?
From where to get the Official Indian Governmental Map of India in R?
我正在寻找印度官方 Government-acceptable 印度地图。
我对 r
比较陌生。.到目前为止,我已经尝试 highcharts
& GADM
和 geom_sf
来plot interactive Indian Map 但他们都提供了 Indian map 这在印度是不可接受的.
Microsoft Excel 显示了正确的印度地图
(更新:比较地图的顶部以注意差异):
Highchart
提供了备用 link https://jsfiddle.net/BlackLabel/jaL7q5x3/2/ when it was raised in this SO post How to get right Map for India in highcharts?
不幸的是不能在r
highcharts
中直接使用或者可能是我不知道该怎么做以及何时下载json
来自上面的 link 那么它 在 r 中不可用,因为坐标列的取消嵌套问题并将其提升到 SO post.[=28= 以下]
How to unnest fields in json that contain map coordinates int list column in r?
我只想使用国家/地区的官方地图,自从我试图找到 印度的官方地图 以在交互式仪表板闪亮应用程序: https://vineet-sansi.shinyapps.io/IndiaCovid19Dashboard/ 一直无法这样做。
一个居住着世界人口 ~20% 的国家,我仍然无法使用 r
找到其可接受的地图
更新:地图 & Link 到印度政府。显示印度和印度政府使用的地图的网站。:
https://indiamaps.gov.in//soiapp/
https://mapservice.gov.in/BMSA/LoginModule/index.aspx
stategisportal.nic.in/stategisportal
schoolgis.nic.in
postalgis.nic.in/view
findmybank.gov.in/FMB
surveyofindia.gov.in/documents/polmap-eng-11012021.jpg
我终于找到了这个问题的解决方案,它可能会帮助其他几个像我一样正在寻找 印度官方印度政府地图。
(如果我在本文中使用了任何错误的行话,或者如果有其他更好的方法,请忽略,请分享您的答案,因为我不是 geospatial
人)。
1.a 下载包含印度 geojson、shapefile 等的 zip 文件 你可以在下面的网站上查看links 数据集:
datameet github link for more Indian data including maps
但这似乎附带了一些 许可证,它可能是免费使用的,并且需要注明发起者的姓名,但我不确定,建议您阅读更多关于它的信息以上 links 和你自己的交叉检查。
(更新其他来源:
1.b 在其中一个 SO post Is there any way to draw INDIA Map in plotly?
上遇到了 geojson
文件
1.c 根据 surveyofIndia 的推文回复 国家级边界 .shp
文件也可以从 https://surveyofindia.gov.in/pages/public-awareness 下载。正在等待 带有州边界的国家级地图 的另一个回复,一旦收到回复,我将更新 link)
2. 从 datameet 下载 zip 文件后 link 解压 你会得到多个文件和文件夹我只使用了下面的几个,您可以根据需要尝试更多。
使用下载的 zip 文件中的文件 maps-master\Country\india-soi.geojson
library(tidyverse)
library(geojsonio)
library(broom)
ind_soi <- geojson_read("E:\3. R\India shape file downloaded\maps-master\Country\india-soi.geojson", what = "sp")
按照 (https://www.r-graph-gallery.com/325-background-map-from-geojson-format-in-r.html)
整理您的数据
ind_soi <- ind_soi %>%
broom::tidy()
ind_soi %>%
ggplot(aes(x = long, y = lat, group = group),
color = "white") + # fill = "grey",
geom_polygon() +
ggthemes::theme_map() +
coord_map()
它不显示 States
但至少我知道它有国家地图的正确形状边界。
- 使用 下载的 zip 文件 中的
.shp
文件(使用 maps-master\States\Admin2 创建印度地图 。 shp)
library(rgdal)
library(sf)
ind_states <- st_read("E:\3. R\India shape file downloaded\maps-master\States\Admin2.shp")
ind_states %>%
st_as_sf() %>%
ggplot() +
geom_sf() +
theme_map()
任何寻找印度用印度政府定义的边界显示的世界地图的 topojson 的人可以参考以下文件:
https://gist.github.com/dwannat/24d6e65c6770faad006e3f613036deb4
我正在寻找印度官方 Government-acceptable 印度地图。
我对 r
比较陌生。.到目前为止,我已经尝试 highcharts
& GADM
和 geom_sf
来plot interactive Indian Map 但他们都提供了 Indian map 这在印度是不可接受的.
Microsoft Excel 显示了正确的印度地图
(更新:比较地图的顶部以注意差异):
Highchart
提供了备用 link https://jsfiddle.net/BlackLabel/jaL7q5x3/2/ when it was raised in this SO post How to get right Map for India in highcharts?
不幸的是不能在r
highcharts
中直接使用或者可能是我不知道该怎么做以及何时下载json
来自上面的 link 那么它 在 r 中不可用,因为坐标列的取消嵌套问题并将其提升到 SO post.[=28= 以下]
How to unnest fields in json that contain map coordinates int list column in r?
我只想使用国家/地区的官方地图,自从我试图找到 印度的官方地图 以在交互式仪表板闪亮应用程序: https://vineet-sansi.shinyapps.io/IndiaCovid19Dashboard/ 一直无法这样做。
一个居住着世界人口 ~20% 的国家,我仍然无法使用 r
找到其可接受的地图更新:地图 & Link 到印度政府。显示印度和印度政府使用的地图的网站。:
https://indiamaps.gov.in//soiapp/
https://mapservice.gov.in/BMSA/LoginModule/index.aspx
stategisportal.nic.in/stategisportal
schoolgis.nic.in
postalgis.nic.in/view
findmybank.gov.in/FMB
surveyofindia.gov.in/documents/polmap-eng-11012021.jpg
我终于找到了这个问题的解决方案,它可能会帮助其他几个像我一样正在寻找 印度官方印度政府地图。
(如果我在本文中使用了任何错误的行话,或者如果有其他更好的方法,请忽略,请分享您的答案,因为我不是 geospatial
人)。
1.a 下载包含印度 geojson、shapefile 等的 zip 文件 你可以在下面的网站上查看links 数据集:
datameet github link for more Indian data including maps
但这似乎附带了一些 许可证,它可能是免费使用的,并且需要注明发起者的姓名,但我不确定,建议您阅读更多关于它的信息以上 links 和你自己的交叉检查。
(更新其他来源:
1.b 在其中一个 SO post Is there any way to draw INDIA Map in plotly?
上遇到了geojson
文件
1.c 根据 surveyofIndia 的推文回复 国家级边界 .shp
文件也可以从 https://surveyofindia.gov.in/pages/public-awareness 下载。正在等待 带有州边界的国家级地图 的另一个回复,一旦收到回复,我将更新 link)
2. 从 datameet 下载 zip 文件后 link 解压 你会得到多个文件和文件夹我只使用了下面的几个,您可以根据需要尝试更多。
使用下载的 zip 文件中的文件 maps-master\Country\india-soi.geojson
library(tidyverse)
library(geojsonio)
library(broom)
ind_soi <- geojson_read("E:\3. R\India shape file downloaded\maps-master\Country\india-soi.geojson", what = "sp")
按照 (https://www.r-graph-gallery.com/325-background-map-from-geojson-format-in-r.html)
整理您的数据
ind_soi <- ind_soi %>%
broom::tidy()
ind_soi %>%
ggplot(aes(x = long, y = lat, group = group),
color = "white") + # fill = "grey",
geom_polygon() +
ggthemes::theme_map() +
coord_map()
它不显示 States
但至少我知道它有国家地图的正确形状边界。
- 使用 下载的 zip 文件 中的
.shp
文件(使用 maps-master\States\Admin2 创建印度地图 。 shp)
library(rgdal)
library(sf)
ind_states <- st_read("E:\3. R\India shape file downloaded\maps-master\States\Admin2.shp")
ind_states %>%
st_as_sf() %>%
ggplot() +
geom_sf() +
theme_map()
任何寻找印度用印度政府定义的边界显示的世界地图的 topojson 的人可以参考以下文件:
https://gist.github.com/dwannat/24d6e65c6770faad006e3f613036deb4