Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'spatialReference' of undefined #43

Open
bkaplan1 opened this issue Oct 1, 2018 · 0 comments
Open

Cannot read property 'spatialReference' of undefined #43

bkaplan1 opened this issue Oct 1, 2018 · 0 comments

Comments

@bkaplan1
Copy link

bkaplan1 commented Oct 1, 2018

The script has gone through 538 requests before it bombs on this. It it coming upon a record that doesn't have a spatialreference? Is there a way for it to skip over the record or is it something else? Thanks.

The url is http://maps.dekalbcountyga.gov/arcgis/rest/services/TaxParcels/MapServer/20|Parcels|1000

TypeError: Cannot read property 'spatialReference' of undefined
at Object.parse (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\terraformer-arcgis-parser\terraformer-arcgis-parser.js:262:16)
at convert (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\index.js:162:33)
at Parser.parser.onValue (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\JSONStream\index.js:107:32)
at Parser.proto.emit (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\jsonparse\jsonparse.js:337:8)
at Parser.proto.pop (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\jsonparse\jsonparse.js:332:8)
at Parser.proto.onToken (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\jsonparse\jsonparse.js:402:12)
at Parser.parser.onToken (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\JSONStream\index.js:126:12)
at Parser.proto.write (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\jsonparse\jsonparse.js:135:34)
at Stream. (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\JSONStream\index.js:21:12)
at Stream.stream.write (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\through\index.js:26:11)
at Request.ondata (internal/streams/legacy.js:15:31)
at Request.emit (events.js:182:13)
at IncomingMessage. (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\agsout\node_modules\request\request.js:1080:12)
at IncomingMessage.emit (events.js:182:13)
at IncomingMessage.Readable.read (_stream_readable.js:486:10)
at flow (stream_readable.js:922:34)
at resume
(_stream_readable.js:904:3)
at process._tickCallback (internal/process/next_tick.js:63:19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant