https://github.com/geo6/drawing-tool
Draw an area and export it using ogr2ogr in several formats
https://github.com/geo6/drawing-tool
gdal nominatim ogr2ogr openlayers openstreetmap osm php proj4
Last synced: about 1 year ago
JSON representation
Draw an area and export it using ogr2ogr in several formats
- Host: GitHub
- URL: https://github.com/geo6/drawing-tool
- Owner: geo6
- License: gpl-3.0
- Created: 2017-06-22T09:23:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T17:56:57.000Z (over 3 years ago)
- Last Synced: 2024-04-14T07:07:32.663Z (about 2 years ago)
- Topics: gdal, nominatim, ogr2ogr, openlayers, openstreetmap, osm, php, proj4
- Language: PHP
- Homepage: https://sandbox.geo6.be/app/drawing-tool/
- Size: 4.28 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drawing tool
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 : .
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 : .
### Example
```yaml
---
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"
```