I have found the pyesridump <https://pypi.org/project/esridump/> python
package quite useful for scraping arcgis servers.

In this particular case, when opening the url
https://indiawris.gov.in/wris/#/riverBasins  in a browser, one can observe
that the arcgis rest services endpoint is
https://arc.indiawris.gov.in/server/rest/services by looking at the network
calls being made by the webpage.

This URL can be directly used in the browser to locate the individual
layers available on the server.. In this case the rivers layer was found at
https://arc.indiawris.gov.in/server/rest/services/Common/River_WRP/MapServer/1


On a machine with python and pip installed, you can run the following
commands to get the rivers data

One time installation of esridump:
*pip install esridump*

Retrieval of the Rivers Layer:

*esri2geojson -m 100 --jsonlines
https://arc.indiawris.gov.in/server/rest/services/Common/River_WRP/MapServer/1
<https://arc.indiawris.gov.in/server/rest/services/Common/River_WRP/MapServer/1>
rivers.geojsonl*

The timeouts, batch size ( -m ) command line arguments can be adjusted if
the default settings fail.

The layer is retrieved here into the geojsonl file *rivers.geojsonl. *

Other layers can be similarly retrieved.





On Fri, Dec 2, 2022 at 10:44 AM Vaidya <vaidyanatha...@gmail.com> wrote:

> Hello,
>
> Has anyone got the shapefiles for IndaWris river basins map?
> https://indiawris.gov.in/wris/#/riverBasins
> More than the basins, trying to find the map of rivers themselves.
>
> Thanks,
> Vaidya
>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAHVy6PE2%3DN-PV_ZjzMyD_VB5aV59nXgHM1BJEB81JjKBHg8qJA%40mail.gmail.com
> <https://groups.google.com/d/msgid/datameet/CAHVy6PE2%3DN-PV_ZjzMyD_VB5aV59nXgHM1BJEB81JjKBHg8qJA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAMgvHC58EBX3Sngavq97ycfhk2m2QMsdLMSkcQac-FQECN0jBw%40mail.gmail.com.

Reply via email to