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:
- DOPBot will add precise coordinates (SDC coordinates of the point of view (P1259)) to ~ 74,000 Orthophotos kindly provided by the Bavarian Agency for Digitisation, High-Speed Internet and Surveying. The files are currently organized by districts in Orthophotos from Bayerische Vermessungsverwaltung.
- Currently, every file has the district's geographical center assigned als coordinates of the point of view (P1259) value. The same location is sometimes also hard-coded in the page text using {{Location}}. Using the district's geographic center for every file renders the geocoding almost useless (the real location might be off about 10 kilometers...).
- To determine the exact location, DOPBot will check the file names for UTM coordinates. E.g., for DOP40_-_Stadt_Nürnberg_32643_5488_(Bayerische_Vermessungsverwaltung).tif, the UTM values are 32 / 643 / 5488, which reads
32U 643000 5488000as UTM coordinate for the lower left corner of the orthophoto. The corresponding decimal geolocation is 49°31′40″N 10°58′34″E / 49.527730°N 10.976109°E. - For exact geocoding, DOPBot will use the center of each image to calculate the coordinates, which is very easy: just add 500 to the UTM northing/easting values. For geocoding DOP40_-_Stadt_Nürnberg_32643_5488_(Bayerische_Vermessungsverwaltung).tif, DOPBot will use the UTM coordinates
32U 643500 5488500, yielding the exact decimal geolocation of the orthophoto's center: 49°31′56″N 10°59′00″E / 49.532107°N 10.983196°E.
- Additionally, DOPBot will delete any existing {{Location}} template, since {{Information}} template will render the exact SDC values automatically.
- DOPBot won't touch an orthophoto at all if there are no UTM coordinates available.
- DOPBot will add precise coordinates (SDC coordinates of the point of view (P1259)) to ~ 74,000 Orthophotos kindly provided by the Bavarian Agency for Digitisation, High-Speed Internet and Surveying. The files are currently organized by districts in Orthophotos from Bayerische Vermessungsverwaltung.
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):
- File:DOP40 - Stadt Nürnberg 32643 5488 (Bayerische Vermessungsverwaltung).tif
- File:DOP40 - Stadt Nürnberg 32643 5489 (Bayerische Vermessungsverwaltung).tif
- File:DOP40 - Stadt Nürnberg 32644 5472 (Bayerische Vermessungsverwaltung).tif
- File:DOP40 - Stadt Nürnberg 32644 5471 (Bayerische Vermessungsverwaltung).tif
- File:DOP40 - Stadt Nürnberg 32644 5476 (Bayerische Vermessungsverwaltung).tif
- 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:
- DOP40 - Stadt Nürnberg 32644 5488 (Bayerische Vermessungsverwaltung).tif
- DOP40 - Stadt Nürnberg 32644 5487 (Bayerische Vermessungsverwaltung).tif
- DOP40 - Stadt Nürnberg 32644 5486 (Bayerische Vermessungsverwaltung).tif
- DOP40 - Stadt Nürnberg 32644 5479 (Bayerische Vermessungsverwaltung).tif
- DOP40 - Stadt Nürnberg 32644 5478 (Bayerische Vermessungsverwaltung).tif
- DOP40 - Stadt Nürnberg 32644 5477 (Bayerische Vermessungsverwaltung).tif
- 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)
- @Schlurcher: good points - both done. Here are the next six files edited:
- 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)
- 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)
- @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):
@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)