#14704 closed enhancement (fixed)
Add possibility to export validator warnings and errors
Reported by: | Polyglot | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 17.08 |
Component: | Core validator | Version: | |
Keywords: | export json xml osmose | Cc: | giackserva |
Description
It would be nice if it were possible to export validator warnings to a JSON file. I would like to be able to use them on a web site for a specific dataset (In my case all public transport data for Belgium).
Attachments (0)
Change History (19)
comment:1 by , 7 years ago
Keywords: | json export added |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Cc: | added |
---|---|
Keywords: | xml csv added |
See #15182
@giackserva: did you work on the subject, as originally planned on the wiki?
comment:4 by , 7 years ago
We had quite a few other features Giacomo worked on, that were more directly useful for the mappers.
comment:6 by , 7 years ago
Osmose has already a file format we can reuse/extend. Maybe this could lead to future interoperability :)
comment:7 by , 7 years ago
Keywords: | osmose added |
---|
comment:8 by , 7 years ago
Keywords: | csv removed |
---|---|
Summary: | Add possibility to export validator warnings and errors as JSON → Add possibility to export validator warnings and errors as JSON/XML |
comment:9 by , 7 years ago
Milestone: | → 17.08 |
---|
comment:10 by , 7 years ago
Summary: | Add possibility to export validator warnings and errors as JSON/XML → Add possibility to export validator warnings and errors |
---|
comment:13 by , 7 years ago
Produces e.g.
<error class="2"> <location lat="50.6996597" lon="12.8487661"> <node id='3302732733' timestamp='2015-01-21T17:19:44Z' uid='550300' user='Klumbumbus' visible='true' version='1' changeset='28310606' lat='50.6996597' lon='12.8487661'> <tag k='addr:city' v='Thalheim/Erzgebirge' /> <tag k='addr:country' v='DE' /> <tag k='addr:housenumber' v='1a' /> <tag k='addr:postcode' v='09380' /> <tag k='addr:street' v='Friedrichstraße' /> <tag k='club' v='social' /> <tag k='name' v='Teelicht' /> <tag k='social_facility' v='outreach' /> <tag k='website' v='http://www.teelicht-thalheim.de/' /> </node> <text lang="de" value="Schlüssel "club" nicht in Vorlagen."> </error>
It seems the "
in the text element produces an invalid xml file. The indentation looks weired too.
comment:15 by , 7 years ago
one remaining problem :) the text element is not properly closed
<error class='2'> <location lat='50.6996597' lon='12.8487661'> <node id='3302732733' timestamp='2015-01-21T17:19:44Z' uid='550300' user='Klumbumbus' visible='true' version='1' changeset='28310606' lat='50.6996597' lon='12.8487661'> <tag k='addr:city' v='Thalheim/Erzgebirge' /> <tag k='addr:country' v='DE' /> <tag k='addr:housenumber' v='1a' /> <tag k='addr:postcode' v='09380' /> <tag k='addr:street' v='Friedrichstraße' /> <tag k='club' v='social' /> <tag k='name' v='Teelicht' /> <tag k='social_facility' v='outreach' /> <tag k='website' v='http://www.teelicht-thalheim.de/' /> </node> <text lang='de' value='Schlüssel "club" nicht in Vorlagen.'> </error>
planned for gsoc project https://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2017/PT_Assistant_Plugin