mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
292 stars 186 forks source link

Error: Index out of range #14

Closed niftylettuce closed 10 years ago

niftylettuce commented 10 years ago

Trying to create a POLYLINE shapefile via write method...

Error: Index out of range.
    at writePolyLine (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/poly.js:44:17)
    at Array.forEach (native)
    at Object.writePoints [as write] (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/poly.js:18:16)
    at Object.write (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/write.js:38:12)
tmcw commented 10 years ago

Please add actual data inputs or a test case to make this fixable

On Mon, Dec 30, 2013 at 5:09 PM, niftylettuce notifications@github.com wrote:

Trying to create a POLYLINE shapefile via write method...

Error: Index out of range.
    at writePolyLine (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/poly.js:44:17)
    at Array.forEach (native)
    at Object.writePoints [as write] (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/poly.js:18:16)
    at Object.write (/media/nexus/Data/Public/charter_aro/node_modules/shp-write/src/write.js:38:12)

Reply to this email directly or view it on GitHub: https://github.com/mapbox/shp-write/issues/14

tmcw commented 10 years ago

Closing - reopen if you can provide a testcase.