wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

Support for flags like -dialect sqlite -sql, to extract styles #79

Closed pungiish closed 4 years ago

pungiish commented 4 years ago

I would really like to extract the styles from .dxf which i cannot without the following flags -dialect sqlite -sql "select geometry, ogr_style from entities". Would it be possible to add the ability to send a flags object to the api?

pungiish commented 4 years ago

Found the correct option, var ogr = ogr2ogr(req.files.upload.path).options(['-sql', 'select *, ogr_style from entities']).env({PROJ_LIB: 'path to proj.db});