Skip to content

Exceeded Call Stack #7

@dp1140a

Description

@dp1140a

773k world.svg

When running i get the following:

svg2geojson --layers -m world.svg
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
Ignoring unhandled element text
events.js:187
throw er; // Unhandled 'error' event
^

RangeError: Maximum call stack size exceeded
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:55:28)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
at sampleCubicBézier (/usr/local/lib/node_modules/svg2geojson/node_modules/svg-path-to-polygons/svg-path-to-polygons.js:79:5)
Emitted 'error' event on Parser instance at:
at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/svg2geojson/node_modules/xml2js/lib/parser.js:327:16)
at Parser.parseString (/usr/local/lib/node_modules/svg2geojson/node_modules/xml2js/lib/parser.js:5:59)
at loadFromString (/usr/local/lib/node_modules/svg2geojson/lib/svg2geojson.js:21:3)
at loadFromFile (/usr/local/lib/node_modules/svg2geojson/lib/svg2geojson.js:15:2)
at Object. (/usr/local/lib/node_modules/svg2geojson/bin/svg2geojson:41:1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions