Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Jul 5, 2017
1 parent 8a93641 commit 4d28a60
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
[![Build Status](https://scrutinizer-ci.com/g/geo6/drawing-tool/badges/build.png?b=master)](https://scrutinizer-ci.com/g/geo6/drawing-tool/build-status/master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/geo6/drawing-tool/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/geo6/drawing-tool/?branch=master)

# Drawing tool
Draw an area and export it using `ogr2ogr` in several formats

Easy tool to draw and export the result in several formats using `ogr2ogr`.

## Configuration

Create `config.yml` file in root directory.

### PostgreSQL

*PostgreSQL* is used to validate the geometry. You'll need to specify the configuration to connect to the database with `PostGIS` extension enabled.

### Export formats

The application allows you to export the geometry in several formats. Those formats are the format produced by `ogr2ogr`. You can find the list here : <http://www.gdal.org/ogr_formats.html>.

To add a format in the resulting ZIP file, you just have to add it (according to the code defined by "OGR Vector Formats") in the configuration file.

If you want to export the geometry with several Spatial Reference Systems (SRS), you just have to specify it in the configuration file (as long as the format allows it, `KML` is always in `EPSG:4326`). You can find more information about SRS here : <https://epsg.io/>.

### Example

```
---
postgresql:
host: "localhost"
port: 5432
dbname: "mydatabase"
user: "myusername"
password: "mypassword"
formats:
- code: "GML"
srs:
- "EPSG:4326"
- "EPSG:31370"
- code: "KML"
- code: "MapInfo File"
srs:
- "EPSG:4326"
- "EPSG:31370"
- code: "ESRI Shapefile"
srs:
- "EPSG:4326"
- "EPSG:31370"
```
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drawing-tool",
"version": "1.0.0",
"version": "1.1.0",
"private": true,
"author": {
"name": "Jonathan Beliën",
Expand All @@ -14,7 +14,6 @@
"browserify": "^14.4.0",
"jquery": "^3.2.1",
"openlayers": "^4.2.0",
"proj4": "^2.4.3",
"uglify-js": "^3.0.23",
"watchify": "^3.9.0"
}
Expand Down

0 comments on commit 4d28a60

Please sign in to comment.