英文:
Download GeoJSON-Map from ArcGis-Server
问题
I just added f=geojson to the REST-URL but then nothing happens although the GeoJSON-format should be supported. Where did I make a mistake?
我只是在REST-URL中添加了 f=geojson,但什么也没有发生,尽管应该支持GeoJSON格式。我犯了哪个错误?
英文:
I'm trying to download a map of all roads in the German state of North Rhine Westphalia in the GeoJSON-format. I found an ArcGIS-hosted server using a REST-Api and tried to understand how it works but as I am completely new to using these services, I might have made a mistake somewhere. Maybe anyone can help me...
I just added f=geojson to the REST-URL but then nothing happens although the GeoJSON-format should be supported. Where did I make a mistake?
The address is: https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/0/
So in my case I tried https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/0/f=geojson.
答案1
得分: 1
以下是翻译好的部分:
"The URL you mentioned is meant to provide general information about a single layer (id=0) in a Map Service.
To get the actual data, you need to use the Query operation. You can see a link to the supported operations in the end of the HTML page of the layer (first URL in your question), and you can also add the f=geojson
parameter to get it in GeoJson format. Note that you must provide at least where
parameter to specify the query.
For example, this will fetch all features where OBJECTID field is lower than 10, as GeoJson:
If you set f=html
(or just omit f
), you'll get an HTML form for setting all optional parameters."
英文:
The URL you mentioned is meant to provide general information about a single layer (id=0) in a Map Service.
To get the actual data, you need to use the Query operation. You can see a link to the supported operations in the end of the HTML page of the layer (first URL in your question), and you can also add the f=geojson
parameter to get it in GeoJson format. Note that you must provide at least where
parameter to specify the quety.
For example, this will fetch all features where OBJECTID field is lower than 10, as GeoJson:
If you set f=html
(or just omit f
), you'll get an HTML form for setting all optional parameters.
答案2
得分: 0
我也是新手,但只需更改f值。它有效。
2个图层:
Strassennetz_Stand20190731_Dis(0)
https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/0/?f=pjson
Bahnstrecken_Stand012019(1)
https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/1/?f=pjson
英文:
I am new too but just change f value. It works
2 Layers:
Strassennetz_Stand20190731_Dis (0)
https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/0/?f=pjson
Bahnstrecken_Stand012019 (1)
https://www.arcgishostedserver.nrw.de/arcgis/rest/services/Verkehrswege_NRW/MapServer/1/?f=pjson
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论