Giter Club home page Giter Club logo

json-to-geojson's Introduction

JSON to GeoJSON

Introduction

JSON to GEOJSON is an open source command line tool built in Python 3 to convert JSON to GeoJSON file.

It takes the input of: JSON file path, dot notation path of properties object if nested, keys of the properties wanted in final GeoJSON file, and properties key containing longitude-latitude values (used for the GeoJSON's coordinate property). The geometry primitives type is currently set to Point.

The program outputs a "convert.geojson" file, which holds data in GeoJSON format according to RFC7946. The features are contained by a FeatureCollection objects.

Visit From D3 Meetup, To Jam Session, To Writing A JSON to GeoJSON Convertor to read my post on how it got started and what I did.

Usage

First clone the tool repo where you want the output to be:

git clone https://github.com/amychan331/json-to-geojson.git

or

git clone [email protected]:amychan331/json-to-geojson.git

Enter into the project folder:

cd json-to-geojson

Then start the tool:

python3 json_to_geojson.py

The command line should then output the what information you should input. Note that JSON to GeoJSON reads file based on input, then outputs data into current directory, so please adjust permissions accordingly.

Screenshot

Demo:

Demo

Resulted GeoJSON File:

Resulted GeoJSON file

json-to-geojson's People

Contributors

amychan331 avatar

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.