ClasicRando / web_rest_scraper

Single page static web application to scrape data from an ArcGIS REST service
https://ClasicRando.github.io/web_rest_scraper/
MIT License
1 stars 0 forks source link

Loading bar for scrape is near complete, but never downloads the csv #8

Closed sbokman closed 2 years ago

sbokman commented 2 years ago

I am trying to scrape this REST page: https://arcgis.sd.gov/arcgis/rest/services/DENR/NR34_AirQuality_View/MapServer/0 The blue loading bar on the scraper makes it all the way to the end, indicating it is near finished, but the file never downloads. It only happens with this particular REST url (that I know of).

Thanks!

Capture

ClasicRando commented 2 years ago

That's a bug in the extraction of point geometry when the geometry itself is null. You can the error shown in the console output. Screenshot from 2022-09-21 19-16-08

This can be solved with a null safe call to the point geometry parameter. https://github.com/ClasicRando/web_rest_scraper/blob/master/index.js#L760

ClasicRando commented 2 years ago

This has been fixed with pull request #9