Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stepankuzmin/geojson2postgis
- Owner: stepankuzmin
- License: mit
- Created: 2016-09-12T16:36:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T11:40:36.000Z (over 1 year ago)
- Last Synced: 2024-08-09T22:52:25.238Z (3 months ago)
- Topics: geojson, javascript, postgis, postgresql
- Language: JavaScript
- Size: 140 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
````