koopjs / koop-provider-agol

ArcGIS Online provider for Koop (public services only).
Other
12 stars 10 forks source link

Add support for portal (local feature services) #110

Open efbenson opened 5 years ago

efbenson commented 5 years ago

We would like to pull data from a feature service we have locally and enrich the feature data before exposing the new combined service (I guess we would need to fork the repo for that anyway). The urls in this provider are hard coded for AGOL,

rgwozdz commented 5 years ago

Hi @efbenson - this repo has suffered from some neglect. It's still stuck on Koop 3.0.0-alpha.29 and not compatible with current Koop version and requires use of postgres.

Depending on the details of your needs, it might be easier to just create a new feature-service pass-through provider. The koop-provider-agol has a lot of code for downloading ALL the data from a feature-service; if you're just doing enrichments on individual feature-service requests you don't need all of that additional complexity.

Just by coincidence, I had started something like a feature-service pass-through provider a week or two back. I'll try to push it up to github later today; that might be a better starting point for a fork.

efbenson commented 5 years ago

Excellent thanks. We are starting work on that shortly so that will be a great help. We are going to be using Koop a good bit to enrich BDS backed layers (data can't be mutated) and send it out to AGOL. That is reason for asking about https://github.com/koopjs/koop-core/issues/65.

rgwozdz commented 5 years ago

Re: koopjs/koop-core#65 - I understand and agree that this could be very useful. In the short-term (next few weeks), I won't have the bandwidth to address, but will try to conceptualize how it might work.

rgwozdz commented 5 years ago

@efbenson - take a look at https://github.com/koopjs/koop-provider-arcgis-service