Last modified: 2012-08-31 19:01:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40330, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38330 - Add South Africa to the monuments database
Add South Africa to the monuments database
Status: RESOLVED FIXED
Product: Wiki Loves Monuments
Classification: Unclassified
Sources (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: 38314
  Show dependency treegraph
 
Reported: 2012-07-11 17:18 UTC by Maarten Dammers
Modified: 2012-08-31 19:01 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2012-07-11 17:18:51 UTC
Not sure what language
Comment 1 Effeietsanders 2012-08-11 16:52:34 UTC
Language is most likely going to be English
Comment 2 Effeietsanders 2012-08-13 07:12:13 UTC
Don't use http://en.wikipedia.org/wiki/List_of_heritage_sites_in_South_Africa - seems not to be matched properly to SAHRA yet.
Comment 3 Maarten Dammers 2012-08-19 16:33:45 UTC
The have the data, started some notes at https://commons.wikimedia.org/wiki/User:Multichill/Monuments_notes#South_Africa . Not sure what the status is right now. Send them an email.
Comment 4 Effeietsanders 2012-08-31 10:24:57 UTC
Ready for import. See http://en.wikipedia.org/wiki/Template:SAHRA_heritage_site_row for documentation.
Comment 5 Maarten Dammers 2012-08-31 19:01:34 UTC
Elke made the config and database query

mysql> SELECT COUNT(*) FROM `monuments_za_(en)`;
+----------+
| COUNT(*) |
+----------+
|     3549 |
+----------+
1 row in set (0.00 sec)

Manual merge works:

mysql> REPLACE INTO `monuments_all` (`country`, `lang`, `id`, `adm0`, `adm1`, `adm2`, `adm3`, `adm4`, `name`, `address`, `municipality`, `lat`, `lon`, `lat_int`, `lon_int`, `image`, `source`, `changed`, `monument_article`, `registrant_url` )
    -> SELECT 'za' AS `country`,
    ->  'en' AS `lang`,
    ->  `sitereference` AS `id`,
    ->    'za' AS `adm0`,
    ->    LOWER(`province_iso`) AS `adm1`,
    ->    `magisterial_district` AS `adm2`,
    ->    `town` AS `adm3`,
    ->    NULL AS `adm4`,
    ->  `site_name` AS `name`,
    ->  `site_name` AS `address`,
    ->  `town` AS `municipality`,
    ->  `lat` AS `lat`,
    ->  `lon` AS `lon`,
    ->    ROUND(`lat` * @granularity) AS `lat_int`,
    ->    ROUND(`lon` * @granularity) AS `lon_int`,
    ->  `image` AS `image`,
    ->  `source` AS `source`,
    ->  `changed` AS `changed`,
    ->   '' AS `monument_article`,
    ->  '' AS `registrant_url` FROM `monuments_za_(en)`;
Query OK, 3549 rows affected (1 min 2.07 sec)
Records: 3549  Duplicates: 0  Warnings: 0

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links