nicolas-raoul / wikidata-missing-pictures-offline

Generate a KML/KMZ/GPX file containing the latitudes/longitudes of Wikidata items that lack a picture (P18), for use in your GPS app
The Unlicense
4 stars 1 forks source link

Duplicated lines #6

Closed nicolas-raoul closed 5 years ago

nicolas-raoul commented 6 years ago

Some lines are duplicated, example:

<wpt lat='80.0' lon='-178.0'><name>Mendeleev Ridge (landform)</name><url>http://www.wikidata.org/entity/Q973293</url></wpt>
<wpt lat='80.0' lon='-178.0'><name>Mendeleev Ridge (landform)</name><url>http://www.wikidata.org/entity/Q973293</url></wpt>

This is due to the request taking points to 80 (included) and then from 80 (included).

If SPARQL can not solve this, a quick workaround is to filter duplicated adjacent lines using uniq.

nicolas-raoul commented 5 years ago

Fixed