- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Description
Description
EIC data wishlist consists of datasets from ArcGIS ImageServer, MapServer and FeatureServer. Visualizing ImageServer and MapServer with WMS enabled is mostly figured out. Next is FeatureServer.
It seems like a FeatureServer layer can be converted to a GeoJSON object if the fieldsupportedQueryFormats lists geoJSON.
This basically involves making a request to the layer's /query endpoint with f=pgeojson.
Most of the query params passed here are default values, the only ones that I passed are:
where: 1=1
outFields: *
f: pgeojson
This provides the data in geojson, which should be simple enough to add to the map using mapbox's methods:
map.addSource('earthquakes', {
    type: 'geojson',
    // Use a URL for the value for the `data` property.
    data: 'https://docs.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson'
});
map.addLayer({
    'id': 'earthquakes-layer',
    'type': 'circle',
    'source': 'earthquakes',
    'paint': {
        'circle-radius': 4,
        'circle-stroke-width': 2,
        'circle-color': 'red',
        'circle-stroke-color': 'white'
    }
});Soooo,
we could use similar strategy we used for the (vector) eis fire perimeter dataset (https://staging-stac.delta-backend.com/collections/eis_fire_perimeter) to publish it to the VEDA data catalog. Basically, create a collection with metadata from the arcgis server and have a link object that points to the geojson.