- update dependencies
- update dependencies
- add typescript definitions #81 thanks @enko!
- fix a bug (tyrasd/overpass-turbo#353) where duplicate multipolygon members in input produced wrong and broken geojson output
- output linestrings for waterway relations, too
- improve handling of data with duplicate osm objects
- make multipolygon/route handlers robust against empty members
- (breaking) objects are by default returned with flat (un-nested) properties ("flatProperties" option is enabled by default)
- create (Multi)LineString features for route relations
- add pbf file support
- add newline delimited GeoJSON output mode (ndjson compatible)
- new API option: feature callback for custom output
- new API option: allow customized object deduplication handling
backported from 3.0.0-dev: de-namespace full geometry content in output (internal state leak)
revert "use strict" because of some issues on older (0.…) nodejs
- fix another undeclared variable breaking the module in strict mode
- enable "use strict";
split off polygon detection data: https://github.com/tyrasd/osm-polygon-features
fix variable leaking into global scope
fix a bug where loading certain complex out geom
content resulted in invalid polygon geometries
add bower support #45
add -m
parameter that minifies output json
fixed a bug where full geometry information caused additional Point features in the output
- updates to polygon detection: natural=cliff is not automatically an area, golf=* is rendered as polygons
- speed optimizations for xml input in CLI mode #34
- fix bug with ref-less, clipped full geometry ways in JSON mode
- support for Overpass API "full" geometry
- implemented support for Overpass API geometry types "center" and "bounds"
- new command line option
-n
to make properties numeric - added verbose option/mode that displays some debug info to the console/stderr
- support input files larger than 256 MB. #17
- fix unresolved xml entities in command line mode
- fix a dangling dependency (which led fresh installations to crash prematurely)
- simpler API (module exports as a plain function), old
.toGeojson
still available as a fallback - output (multi)polygons with consistent winding orders
- improve handling of simple multipolygons
- use browserify for browser library (comes bundeled with dependencies)
- some minor speed improvements
- fix various speed bottlenecks (xml parsing, geojson construction, …)
- better performance when handling large xml files with the cli tool:
- add --help and --version parameters to cli tool
- fix bug with not automatically detected file formats in pipe mode (cli tool)
- more versatile cli tool (can read osm json, optionally enhanced output)
- many more unit tests
- fixed bugs with some partially incomplete data
- fix wrong (inverse) logic in uninterestingTags callback evaluation (backported from master)
- add demo page
- support for pipes in cli tool:
echo '<osm><node lat="1.23" lon="3.21" id="-1" /></osm>' | osmtogeojson
- add flat-properties output mode (default for the cli tool)
- add options to override default
uninterestingTags
andpolygonFeatures
- better documentation
- more test cases
- further improvements in polygon feature detection
- bugfix: remove unneeded debugging code
- command line tool added
- initial release