mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Added functionality to export location of nearby missing pictures to GPX file and KML file (#5645)
* Fixed Grey empty screen at Upload wizard caption step after denying files permission * Empty commit * Fixed loop issue * Created docs for earlier commits * Fixed javadoc * Fixed spaces * Added added basic features to OSM Maps * Added search location feature * Added filter to Open Street Maps * Fixed chipGroup in Open Street Maps * Removed mapBox code * Removed mapBox's code * Reformat code * Reformatted code * Removed rotation feature to map * Removed rotation files and Fixed Marker click problem * Ignored failing tests * Added voice input feature * Fixed test cases * Changed caption and description text * Replaced mapbox to osmdroid in upload activity * Fixed Unit Tests * Made selected marker to be fixed on map * Changed color of map marker * Fixes #5439 by capitalizing first letter of voice input * Removed mapbox code1 * Removed mapbox code2 * Fixed failing tests * Fixed failing due to merging * Added feature to save nearby places as GPX and KML * Fixed error caused by null
This commit is contained in:
parent
dae1f2557e
commit
c41940241b
7 changed files with 443 additions and 0 deletions
22
app/src/main/resources/queries/places_query.rq
Normal file
22
app/src/main/resources/queries/places_query.rq
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
SELECT
|
||||
?item
|
||||
(SAMPLE(COALESCE(?en_label, ?fr_label, ?id_label, ?item_label)) as ?label)
|
||||
(SAMPLE(?location) as ?location)
|
||||
(GROUP_CONCAT(DISTINCT ?class_label ; separator=",") as ?class)
|
||||
WHERE {
|
||||
SERVICE wikibase:box {
|
||||
?item wdt:P625 ?location .
|
||||
bd:serviceParam wikibase:cornerSouthWest "Point(${LONGITUDE} ${LATITUDE})"^^geo:wktLiteral .
|
||||
bd:serviceParam wikibase:cornerNorthEast "Point(${NEXT_LONGITUDE} ${NEXT_LATITUDE})"^^geo:wktLiteral .
|
||||
}
|
||||
MINUS {?item wdt:P18 ?image}
|
||||
MINUS {?item wdt:P582 ?endtime.}
|
||||
MINUS {?item wdt:P582 ?dissolvedOrAbolished.}
|
||||
MINUS {?item p:P31 ?instanceStatement. ?instanceStatement pq:P582 ?endtimeQualifier.}
|
||||
OPTIONAL {?item rdfs:label ?en_label . FILTER(LANG(?en_label) = "en")}
|
||||
OPTIONAL {?item rdfs:label ?fr_label . FILTER(LANG(?fr_label) = "fr")}
|
||||
OPTIONAL {?item rdfs:label ?vn_label . FILTER(LANG(?id_label) = "id")}
|
||||
OPTIONAL {?item rdfs:label ?item_label}
|
||||
OPTIONAL {?item wdt:P31 ?class. ?class rdfs:label ?class_label. FILTER(LANG(?class_label) = "en")}
|
||||
}
|
||||
GROUP BY ?item
|
||||
Loading…
Add table
Add a link
Reference in a new issue