Commons:Bots/Requests/DOPBot

DOPBot (talk · contribs)

Operator: Fl.schmitt (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought:

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): One time run

Maximum edit rate (e.g. edits per minute): 5-6?

Bot flag requested: (Y/N): Y

Programming language(s): Python (pywikibot)

--Fl.schmitt (talk) 11:24, 13 July 2025 (UTC)

Discussion

Please make test run. --EugeneZelenko (talk) 14:38, 13 July 2025 (UTC)

Please also add coordinates of depicted place (P9149) with the same coordinates as coordinates of the point of view (P1259), but set the precision value to like 0.01 not the sandard 0.000001 --Schlurcher (talk) 15:26, 13 July 2025 (UTC)

Also, I think {{Information}} does not include coordinates from SDC. You would need to add an {{Location}} without parameters. Also you should add {{Object location}} without parameters. --Schlurcher (talk) 15:31, 13 July 2025 (UTC)

@Schlurcher: ok, no problem. I'm not sure yet if and how to set a source claim for the calculated coordinates - see also my corresponding question on the SDC Talk. Additionally, I'll have to adapt the bot code to set both coordinate claims in a single edit. Fl.schmitt (talk) 16:42, 13 July 2025 (UTC)
@EugeneZelenko, @Schlurcher: Removing obsolete SDC locations and adding new ones now works in a single step. Here are the first five edited DOPs (had to rework the first and second file, the last three ones are solely edited by DOPBot):
with their respective new position on a wikimap: https://wikimap.toolforge.org/?cat=Orthophotos_of_Nuremberg_from_Bayerische_Vermessungsverwaltung. Fl.schmitt (talk) 20:49, 13 July 2025 (UTC)
I've just modified the source claim in SDC of those five files manually, bot code already adapted. Fl.schmitt (talk) 05:46, 14 July 2025 (UTC)
Is there property for bounding box? It makes much more sense for aerial/satellite photos than location and object location. EugeneZelenko (talk) 14:22, 14 July 2025 (UTC)
I've thought about this already, but AFAIK there's no such property in Wikidata (I couldn't even find any discussion about that point). There are properties for the northernmost / southernmost / easternmost / westernmost point of a location (see coordinates of northernmost point (P1332) / coordinates of southernmost point (P1333) / coordinates of easternmost point (P1334) / coordinates of westernmost point (P1335)), but this isn't the same - additionally, there's no single northernmost point of an UTM-grid-based area. It would be very easy to calculate the exact position of the four corners (as it is the case regarding the area's center), but there's no Wikidata property for those values.
Having defined location / object location IMO makes sense on its own, esp. for a map-based access (see the wikimap i've linked) and for further categorization (name of villages, POIs and so on). So i think this information is quite useful as it is. Fl.schmitt (talk) 15:12, 14 July 2025 (UTC)
BTW: The Bounding Box question also affects maps. As far as I see, there's no SDC way to describe the boundingbox of a map, but the {{Map}} template allows for describing that property using the latitude property. See, for example File:Berlin Dusableau 1737.jpg with boundingbox information provided as template parameters, but not as SDC. Fl.schmitt (talk) 15:22, 14 July 2025 (UTC)
Thanks. For the SDC edits, please add the Special:Tags of "BotSDC" (this can be achived by setting the corresponding option in the wbeditentity function that you are using). Lot's of users like to filter these type of edits out. Also please perform 5 more of these edits including all corrections. There should be no manual edits been required afterwards. Overall this is looking good to me, thanks for making the effort. --Schlurcher (talk) 16:23, 14 July 2025 (UTC)
Please also update the second edit description (the one that will show up on the watch list to something like "... cleared to show SDC location based on UTM values from file name). As only the last edit is shown there, people should not need to go into the history to understand what and why this is happening. Thanks. --Schlurcher (talk) 16:26, 14 July 2025 (UTC)
@Schlurcher: good points - both done. Here are the next six files edited:
and the corresponding wikimap: https://wikimap.toolforge.org/?cat=Orthophotos_of_Nuremberg_from_Bayerische_Vermessungsverwaltung Fl.schmitt (talk) 17:43, 14 July 2025 (UTC)
Thanks. Fine for me. Schlurcher (talk) 21:40, 14 July 2025 (UTC)

@Fl.schmitt: What is the status of this request? --Krd 04:58, 11 September 2025 (UTC)

@Krd: "V" - still waiting for approval... Fl.schmitt (talk) 05:12, 11 September 2025 (UTC)

Approved. --Krd 06:54, 18 September 2025 (UTC)