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

[Bug] MapServers are returned as a FeatureServer #57

Closed
JosiahParry opened this issue Sep 20, 2023 · 0 comments
Closed

[Bug] MapServers are returned as a FeatureServer #57

JosiahParry opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JosiahParry
Copy link
Collaborator

MapServers are conceptually different than a FeatureServer. Their class should reflect this. Reprex from #55

library(arcgis)
#> Attaching core arcgis packages:
#>   - {arcgisutils} v0.1.0
#>   - {arcgislayers} v0.1.0

nhd <- file.path(
  "https://hydro.nationalmap.gov", 
  "arcgis/rest/services", 
  "NHDPlus_HR", 
  "MapServer"
)

(nhd_srv <- arc_open(nhd))
#> <FeatureServer <13 layers, 0 tables>>
#> CRS: 3857
#> Capabilities: Data,Map,Query
#>   0: NHDPlusGage (esriGeometryPoint)
#>   1: NHDPlusSink (esriGeometryPoint)
#>   2: NHDPoint (esriGeometryPoint)
#>   3: NetworkNHDFlowline (esriGeometryPolyline)
#>   4: NonNetworkNHDFlowline (esriGeometryPolyline)
#>   5: FlowDirection (esriGeometryPolyline)
#>   6: NHDPlusWall (esriGeometryPolyline)
#>   7: NHDLine (esriGeometryPolyline)
#>   8: NHDArea (esriGeometryPolygon)
#>   9: NHDWaterbody (esriGeometryPolygon)
#>   10: NHDPlusCatchment (esriGeometryPolygon)
#>   11: NHDPlusBoundaryUnit (esriGeometryPolygon)
#>   12: WBDHU12 (esriGeometryPolygon)
class(nhd_srv)
#> [1] "FeatureServer"
@JosiahParry JosiahParry self-assigned this Sep 20, 2023
@JosiahParry JosiahParry added the bug Something isn't working label Oct 16, 2023
JosiahParry added a commit that referenced this issue Nov 6, 2023
add support for mapservers. closes #57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant