Code Monkey home page Code Monkey logo

convert_to_geojson_jp's Introduction

convert_to_geojson_jp

This script converts the shapefile of National Land numerical information Administrative Zones data to Geojson/Topojson files.

National Land numerical information Administrative Zones data is distributed by National Land Information Division, National Spatial Planning and Regional Policy Bureau, MLIT of Japan. This data contains prefectural name, branch name, county/government ordinance city name, municipality name, administrative code, etc. for nation-wide administrative boundaries.

Original file format of Administrative Zones data is ESRI Shapefile. This script converts shapefile to geojson/topojson for web uses.

Sample page

Usage

  1. Download the data from National Land numerical information website.
  1. Copy the download file to src_data directory.
  2. run the command:
> npm install
> npm run geojson
  1. generate geojson files in dest/geojson directory.

Sample page

You can see the map data localy. Command npm start, then your browser open http://localhost:3000.

Output geojson/topojson files

Coverted data is simplified by mapshaper to reduce data size. Every feature of geojson/topojson data has the following properties.

property description
pref Prefecture name containing corresponding area
office Corresponding branch name when corresponding Prefecture is Hokkaido
county Name of county of government ordinance for corresponding administrative area
city Name of city of government ordinance for corresponding administrative area
name Name of municipality for corresponding administrative area
code5 Code for identifying administrative zone composed of prefectural code and municipal code
code6 code5 with check digit

License

The license of the scripts in this repository is ISC. But you have to follow the terms of use for National Land numerical information about converted data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.