###presented by
# Google Drive file ID
id <- "1icDRT8jQ86A7Ya_5-n5vIuHapiqsjHYu"
# Download & unzip
zip <- tempfile(fileext = ".zip")
dir <- tempdir()
download.file(sprintf("https://drive.google.com/uc?export=download&id=%s", id), zip, mode = "wb")
unzip(zip, exdir = dir)
# Read shapefile
shp <- list.files(dir, "hotosm_bgd_health_facilities_points_shp\\.shp$",
full.names = TRUE, recursive = TRUE)
health_facilities <- st_read(shp[1])
## Reading layer `hotosm_bgd_health_facilities_points_shp' from data source
## `C:\Users\DELL 3190\AppData\Local\Temp\RtmpElNnB9\hotosm_bgd_health_facilities_points_shp.shp'
## using driver `ESRI Shapefile'
## Simple feature collection with 6929 features and 14 fields
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: 88.10011 ymin: 20.63178 xmax: 92.58573 ymax: 26.41615
## Geodetic CRS: WGS 84
names(health_facilities)
## [1] "name" "name_en" "amenity" "building" "healthcare"
## [6] "healthca_1" "operator_t" "capacity_p" "addr_full" "addr_city"
## [11] "source" "name_bn" "osm_id" "osm_type" "geometry"
## Simple feature collection with 6 features and 14 fields
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: 89.99964 ymin: 22.32273 xmax: 91.83414 ymax: 24.72241
## Geodetic CRS: WGS 84
## name name_en amenity building
## 1 <NA> <NA> hospital <NA>
## 2 Kashipur Community Clinic <NA> clinic <NA>
## 3 Centre Point Hospital (Pvt) Limited <NA> hospital <NA>
## 4 Ad-Din Women's Medical college & Hospital <NA> hospital <NA>
## 5 Health Care Medical Centre, Hospital <NA> hospital <NA>
## 6 Shapla Medical Center, Hospital <NA> hospital <NA>
## healthcare healthca_1 operator_t capacity_p addr_full addr_city source
## 1 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 2 <NA> <NA> <NA> <NA> <NA> <NA> survey
## 3 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 4 <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 5 hospital <NA> <NA> <NA> <NA> <NA> <NA>
## 6 hospital <NA> <NA> <NA> <NA> <NA> <NA>
## name_bn osm_id osm_type geometry
## 1 <NA> 4634235837 nodes POINT (91.80701 22.32273)
## 2 <NA> 6124500144 nodes POINT (91.21184 24.72241)
## 3 <NA> 9845671541 nodes POINT (91.83414 22.34366)
## 4 <NA> 871761335 nodes POINT (90.40507 23.7485)
## 5 <NA> 12536073021 nodes POINT (89.99965 23.86726)
## 6 <NA> 12536085040 nodes POINT (89.99964 23.86734)