aude added a comment. thought about this a bit...
I think the best solution is to propose (and have) a property for "GeoData type", based on existing classification generally used by the parser function for wikipedia coordinates: https://www.mediawiki.org/wiki/Extension:GeoData#Parser_function I'm not so enthusiastic about having some magic to infer type. I am sure bots (including mine, if needed) could quickly import / populate the types. then, there are default dim values based on types: $wgTypeToDim = array( 'country' => 1000000, 'satellite' => 1000000, 'state' => 300000, 'adm1st' => 100000, 'adm2nd' => 30000, 'adm3rd' => 10000, 'city' => 10000, 'isle' => 10000, 'mountain' => 10000, 'river' => 10000, 'waterbody' => 10000, 'event' => 5000, 'forest' => 5000, 'glacier' => 5000, 'airport' => 3000, 'railwaystation' => 1000, 'edu' => 1000, 'pass' => 1000, 'camera' => 1000, 'landmark' => 1000, ); We could possibly supplement this with using the area (and length) property values, when available. We could also potentially populate the country column for coordinates from P17. For using geodata for rendering map features, I'd also want to know about https://phabricator.wikimedia.org/P31 (instanceof), subclass and population, though not sure yet where I'd store them and think it's out of scope for now. TASK DETAIL https://phabricator.wikimedia.org/T115481 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: aude Cc: aude, Aklapper, Wikidata-bugs _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs