-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add arc_meta()
convenience function for accessing metadata
#163
Labels
enhancement
New feature or request
Comments
@elipousson this is identical to EDIT: this is wrong. The difference is that |
Please see reprex below arcgislayers::arc_open("https://geodata.md.gov/imap/rest/services/Transportation")
#> $currentVersion
#> [1] 10.71
#>
#> $folders
#> NULL
#>
#> $services
#> name type
#> 1 Transportation/MD_AlternativeFuel FeatureServer
#> 2 Transportation/MD_AlternativeFuel MapServer
#> 3 Transportation/MD_AnnualAverageDailyTraffic FeatureServer
#> 4 Transportation/MD_AnnualAverageDailyTraffic MapServer
#> 5 Transportation/MD_FreightNetwork FeatureServer
#> 6 Transportation/MD_FreightNetwork MapServer
#> 7 Transportation/MD_HighwayPerformanceMonitoringSystem MapServer
#> 8 Transportation/MD_LocalTransit FeatureServer
#> 9 Transportation/MD_LocalTransit MapServer
#> 10 Transportation/MD_MDOTSHADistrictBoundaries FeatureServer
#> 11 Transportation/MD_MDOTSHADistrictBoundaries MapServer
#> 12 Transportation/MD_MDOTSHAParkandRideFacilities FeatureServer
#> 13 Transportation/MD_MDOTSHAParkandRideFacilities MapServer
#> 14 Transportation/MD_MVAFacilities FeatureServer
#> 15 Transportation/MD_MVAFacilities MapServer
#> 16 Transportation/MD_RoadCenterlinesComprehensive MapServer
#> 17 Transportation/MD_RoadCenterlines MapServer
#> 18 Transportation/MD_RoadwayAdministrativeClassification FeatureServer
#> 19 Transportation/MD_RoadwayAdministrativeClassification MapServer
#> 20 Transportation/MD_RoadwayInterchangeExits FeatureServer
#> 21 Transportation/MD_RoadwayInterchangeExits MapServer
#> 22 Transportation/MD_RoadwayMileMarkers FeatureServer
#> 23 Transportation/MD_RoadwayMileMarkers MapServer
#> 24 Transportation/MD_TollPlazas FeatureServer
#> 25 Transportation/MD_TollPlazas MapServer
#> 26 Transportation/MD_TrafficCameras FeatureServer
#> 27 Transportation/MD_TrafficCameras MapServer
#> 28 Transportation/MD_Transit FeatureServer
#> 29 Transportation/MD_Transit MapServer
#> 30 Transportation/MD_WelcomeAndVisitorCenters FeatureServer
#> 31 Transportation/MD_WelcomeAndVisitorCenters MapServer
#>
#> $url
#> [1] "https://geodata.md.gov/imap/rest/services/Transportation" Created on 2024-07-05 with reprex v2.1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Add a function, potentially named
arc_meta()
, that wrapsarcgisutils::fetch_layer_metadata()
to allow easy access to service, layer, and folder metadata.At present, folder URLs will encounter an error when supplied to
arc_open()
. See this reprex: https://gist.github.com/elipousson/bcc6420a086a33cdc87725a33d16d031Describe the solution you'd like
Below is a reprex showing a basic example. A more complete function should include URL validation (or this could live in the fetch_layer_metadata function) and potentially could include support for ArcGIS item-level metadata which is accessible at a different API end-point (using the Content API, I think).
Created on 2024-03-06 with reprex v2.1.0
Describe alternatives you've considered
This is currently supported by the
esri2sf::esrimeta()
function: https://github.com/elipousson/esri2sf/blob/e1b1947e6e4c778ae9b4ef660dafe367aa67d80f/R/esri2sf.R#L352Additional context
A more general version of this function could retrieve rendering information and field information that could be useful for users. This functionality could be built into arcgisutils per R-ArcGIS/arcgisutils#4 but this proposed function could potentially provide a common higher-level user interface for a variety of metadata-related resources.
The text was updated successfully, but these errors were encountered: