Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stepankuzmin/geojson2postgis

Insert GeoJSON features into PostGIS database
https://github.com/stepankuzmin/geojson2postgis

geojson javascript postgis postgresql

Last synced: 24 days ago
JSON representation

Insert GeoJSON features into PostGIS database

Awesome Lists containing this project

README

        

# geojson2postgis

[![Build Status](https://travis-ci.org/stepankuzmin/geojson2postgis.svg?branch=master)](https://travis-ci.org/stepankuzmin/geojson2postgis)
[![Greenkeeper badge](https://badges.greenkeeper.io/stepankuzmin/geojson2postgis.svg)](https://greenkeeper.io/)

Insert GeoJSON features into PostGIS database

## Installation

```
npm install geojson2postgis
```

...or build from source

```shell
git clone https://github.com/stepankuzmin/geojson2postgis.git
cd geojson2postgis
npm install
```

## Usage

```shell
Usage: geojson2postgis [filename] [options]

where [filename] is path to GeoJSON data and [options] is any of:
--database - database
--host - database host (default: localhost)
--port - database port (default: 5432)
--user - database user (default: postgres)
--password - database user password
--version - returns running version then exits
```

```
geojson2postgis --database moria --user gandalf --password mellon map.geojson
````