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

Type error #19

Open
iskandari opened this issue Oct 28, 2016 · 3 comments
Open

Type error #19

iskandari opened this issue Oct 28, 2016 · 3 comments

Comments

@iskandari
Copy link

After changing the services in the service.txt file to:

http://gis.dallascityhall.com/wwwgis/rest/services/Sdc_public/Zoning/MapServer/0

I encounter the following error:

/Users/alexander/Downloads/AGStoShapefile/AGStoSHP.js:64
            requestService(service[0].trim(), service[1].trim(), body.objectIds);
                                                        ^

TypeError: Cannot read property 'trim' of undefined
    at Request._callback (/Users/alexander/Downloads/AGStoShapefile/AGStoSHP.js:64:48)
    at Request.self.callback (/Users/alexander/Downloads/AGStoShapefile/node_modules/request/request.js:186:22)
    at emitTwo (events.js:100:13)
    at Request.emit (events.js:185:7)
    at Request.<anonymous> (/Users/alexander/Downloads/AGStoShapefile/node_modules/request/request.js:1060:10)
    at emitOne (events.js:90:13)
    at Request.emit (events.js:182:7)
    at IncomingMessage.<anonymous> (/Users/alexander/Downloads/AGStoShapefile/node_modules/request/request.js:980:12)
    at IncomingMessage.g (events.js:273:16)
    at emitNone (events.js:85:20)

Does it having something to do with having no spaces in the url?

@iskandari
Copy link
Author

iskandari commented Oct 28, 2016

@tannerjt
Copy link
Owner

Hey @iskandarblue, the services.txt file should be formatted with a 'pipe' symbol and a name for the output. It should look like this:

http://gis.dallascityhall.com/wwwgis/rest/services/Sdc_public/Zoning/MapServer/0|Deed_Restrictions

@tannerjt
Copy link
Owner

I juste tested and was able to grab all 827 features

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

2 participants