-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dynamic data-driven layers #68
Comments
We implemented a project with 620+ services based on OWL ontology classes for one of our clients. The keys are 1) rigorous object type definitions (in this client’s case it was via OWL), 2) auto-generation of TDE templates based on those object type definitions, and 3) auto-generation of service descriptors, again based on the object type definitions. I imagine we could do this via entity type definitions as well.
|
In our case things are much simpler. We have a generic GeoFeatures es object that we use for all features, so we can suffice with one model, and one tde. It is really the service descriptors that is the complex part in our case. You cannot generate those out of the model, it is data-driven. It would be possible to generate a descriptor with each upload of a set, but calculated at runtime would be easier. Just not sure if that would be feasible or not. Wondering if one could provide an extra TDE just to generate layer specifics for instance.. |
Can you provide an example of what you would use as input and what you
would want the descriptor to end up as? They could be generated on the fly
but that would amount to creating some sort of descriptor descriptor :-)
|
It is a bit difficult to wrap your head around this, without having some to look at, so let me provide some code. You can probably guess for which project this would be:
Some details might need more thought, like extent and such, but the most important element is The geometry is stored in GeoFeature/geometry (always that same path for many of the layers), so it is also fair to assume we can come up with one TDE to provide the props. Although we have a challenge there as mentioned in #69. It would be possible to generate descriptors and TDE's at deploy time, but geojson bulk files are loaded after deployment, and part of that will happen in automatic fashion. There are ways to employ triggers and such to do this at post-commit time, but having a way to dynamically retrieve those descriptors would make more sense. In retro-spect not entirely sure it could be mapped on a TDE, but pretty sure you can get close. Either way, I could imagine you just specify the service or services, and inside you reference code or TDE to provide the layer descriptors.. |
One possibility would be a service descriptor "factory":
|
We are working on a project that ingests sets of geojson files, with the idea that each of these files will represent a single layer. It concerns mostly static objects like roads, points of interests etc. There might be many such files, and it would be cumbersome to manage definitions for all of these. Wondering if a dynamic, data-driven approach would be achievable..
The text was updated successfully, but these errors were encountered: