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

Error after finished extracting chunks. How to merge multiple JSON files to single GeoJSON file? #38

Open
yusufalma opened this issue Jan 24, 2018 · 4 comments
Assignees

Comments

@yusufalma
Copy link

Dear Mr. Tanner,

Your code is very good to download data from ArcGIS REST server, but I found error after finished extracting chunks, as you can see in picture below:

agsout_error

How would you fix this problem? If I should merge multiple JSON files in folder "partials" by myself, how will I do that?

Regards,
Yusuf Alma

@tannerjt tannerjt self-assigned this Jan 24, 2018
@tannerjt
Copy link
Owner

@yusufalma , I pushed out some updates that should take care of this. The problem was that when merging all the partial files into one, it was storing everything in memory AND THEN piping into a single file. This was causing backflow pressure and taking up memory. It should work fine now. I would also recommend adding a throttle (in milliseconds) to your services.txt file:

ie


http://maps.lacity.org/lahub/rest/services/Recreation_and_Parks_Department/MapServer/4|parks|1000

This will introduce a 1 second delay between requests

@yusufalma
Copy link
Author

yusufalma commented Jan 30, 2018

Dear Mr. Tanner,

Thank you for quick response. The program can merge multiple JSON now. However, yesterday I found another error after merging finished below:
agsout_error1
agsout_error2
agsout_error3
What was happened and can it be solved? Again, thank you for attention and cooperation.

Regards,
Yusuf Alma

@yusufalma yusufalma reopened this Jan 30, 2018
@tannerjt
Copy link
Owner

Looks like you need to install gdal . See instruction on main readme.md file.

@yusufalma
Copy link
Author

yusufalma commented Jan 30, 2018

Dear Mr. Tanner,

I have followed the instruction. Here is my Python, GDAL and node.js status:
agsout_error4
What have I missed?

Regards,
Yusuf Alma

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

No branches or pull requests

2 participants