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 feature server finding utilities #3
Conversation
import re | ||
|
||
|
||
class FeatureServerOverview: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstrings bij class en functies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toegevoegd!
|
||
|
||
# TODO: These tests can be a lot stricter | ||
def test_get_all_featureserver_layers(all_featureserver_layers): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deze test faalt als mapservices een nieuwe feature toevoegd, terwijl dat deze functionaliteit niet zou breken. Misschien kan je deze test aanpassen dat die checkt dat bepaalde features die vaak gebruikt worden voorkomen in de lijst .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
De tests zijn nu wat minder streng geworden; zo lang er nu enige layers gevonden worden (en het aantal layers met het woord spoor erin er meer zijn dan met het woord hek erin) dan komen de tests er doorheen. Voor de rest durfde ik het niet aan dat het aantal layers toe zal blijven nemen in de toekomst.
Op het moment dat er geen featureservers meer bestaan werkt heel openspoor niet meer, en aangezien er nu meer dan 10 keer zoveel toepassingen zijn met spoor dan met hek durf ik die check voorlopig ook nog wel aan (het is nu 41 om 3).
Is dit iets wat we willen? Zelf vond ik dit een handige richting om ook andere features eruit te kunnen halen.
Mochten we openspoor daar voor klaar willen maken dan moeten we nog regelen dat de URL's die je hier vindt gebruikt kunnen worden in latere queries: de meeste logica daarvoor bestaat al, het moet alleen een stukje generieker dan.
Zomaar een idee, suggesties zijn welkom!