Create Japanese Administration Area and Office Maps

Utilizing the data that Japanese administration area provided by the National Land Numerical Information download service (< http://nlftp.mlit.go.jp/ksj/index.html>). This package provide map data is based on the Digital Map 25000 (Map Image) published by Geospatial Information Authority of Japan (Approval No.603FY2017 information usage < http://www.gsi.go.jp>).


Travis-CI Build Status CRAN_Status_Badge AppVeyor build status Coverage status

Overview

In this package, the administrative area data to be provided uses the National Land Numerical Information "National Land Numeral Information" http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03.html http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-P34.html. Shinya Uryu is editing and processing this data. Therefore, when preparing a secondary work using this data, it is necessary to follow the term of the National Land Numerical Information.

This package provide map data is based on the Digital Map 25000 (Map Image) published by Geospatial Information Authority of Japan (Approval No.603FY2017 information usage http://www.gsi.go.jp).

Installation

Install from CRAN.

install.packages("jpndistrict")

For developers, please use the devtool package to install via the GitHub repository.

install.packages("devtools")
devtools::install_github("uribo/jpndistrict")

Usage

library(jpndistrict)

Administrative area data

jpn_pref(14)
jpn_pref(14, district = FALSE)
jpn_cities(14, admin_name = "海老名市")
jpn_cities(33, admin_name = c("倉敷市", "笠岡市"))

Administration office data

jpn_admins(jis_code = 33)
jpn_admins(jis_code = c("33101", "33212"))

News

jpndistrict 0.3.2

  • Clarified the arguments that to select administration area. pref_code is jis code from 1 to 47. jis_code is an identifier for a city that range of 5 digits.
  • find_city() is support sf geometry.

Fixed Issues

  • Remove redundant character from prefecture code 13 data #13
  • mesh_district() now return only selected administation area #15
  • Broken district_viewer() #16

jpndistrict 0.3.1

  • Setup tidy development environment.

Issues

  • Fix some bugs.
    • City administration data update #4
    • Reverse geocoding failed behabior #10

jpndistrict 0.3.0

  • Updated citation and licence.
    • Approval No.603FY2017 information usage

Issues

  • Fix some bugs (#6, #7).

API

  • New function a find from coordinates to prefecture and city that find_pref() and find_city().
  • Add a function mesh_district() that export to meshed city area.
  • Projected coordinates are unified to WGS84 (espg: 4326).
  • Rename spdf_jpn_pref() function to jpn_pref().

jpndistrict 0.2.0

  • Added support for sf.
  • Remove gg_jpn_district(). Use instead ggplot2::geom_sf() (ggplot2 > 2.2.1)
  • Convert string variables to factor always FALSE.

jpndistrict 0.1.1

  • Modified raw data download method wget to auto.
  • Character encoding for administration area dataset to UTF8. (#2)

jpndistrict 0.1.0

  • Added a NEWS.md file to track changes to the package.
  • Prepare base functions.
  • Added district_viewer() for shiny gadgets.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("jpndistrict")

0.3.2 by Shinya Uryu, 6 months ago


https://github.com/uribo/jpndistrict#readme


Report a bug at https://github.com/uribo/jpndistrict/issues


Browse source code at https://github.com/cran/jpndistrict


Authors: Shinya Uryu [aut, cre] , Geospatial Information Authority of Japan [dtc] (This package data sets , National Land numerical information by the Geographical Survey Institute with the approval of Geographical Survey Institute Head (Approval No.603FY2017 information usage))


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, leaflet, magrittr, miniUI, purrr, rlang, sf, shiny, tibble, tidyr

Depends on jpmesh

Suggests covr, knitr, rvest, testthat


Enhanced by NipponMap.


See at CRAN