Wikidata:Property proposal/region within image

From Wikidata
Jump to navigation Jump to search

region within image[edit]

Originally proposed at Wikidata:Property proposal/Commons

DescriptionQualifier to identify a polygon within an image that the main statement applies to
Data typeString
Example 1Georeferencing statement about File:Pigot_and_Co_(1842)_p2.138_-_Map_of_Lancashire.jpg ; Qualifier: region within image → { "type": "poly", "coords": [ [ 111.0, 2017.0 ], [ 913.0, 2012.0 ], [ 1239.0, 1847.0 ], [ 1235.0, 1296.0 ], [ 1219.0, 595.0 ], [ 1007.0, 533.0 ], [ 872.0, 534.0 ], [ 780.0, 467.0 ], [ 740.0, 375.0 ], [ 623.0, 363.0 ], [ 527.0, 185.0 ], [ 117.0, 181.0 ], [ 95.0, 387.0 ], [ 115.0, 881.0 ], [ 207.0, 1021.0 ], [ 123.0, 1665.0 ], [ 111.0, 2017.0 ] ] }
Planned useTo specify the bounding polygon of a mask that the (jagged, irregular) boundary of the part of an image that represents a map that has been georeferenced.
See alsorelative position within image (P2677)

Motivation[edit]

There are a number of use-cases for annotation etc where it would be useful to define a polygonal sub-region of an image. One is to eg indicate the outline boundary of part of the image that is a map that has been georeferenced. This property is to allow this.

The JSON format proposed would allow the various kinds of regions of images (ie polygons, rectangles, circles) that can currently be defined in mw:Extension:ImageMap to be translated into Structured Data qualifiers. Other types of region we might like to consider might include polygons-with-holes and multi-polygons (cf types of regions definable in Well-known text (WKT)).

Unlike relative position within image (P2677), the present property is intended to be used to specify an irregular region rather than a rectangle, in terms of pixel-perfect coordinates on a single actual image rather than a generic item that might correspond to many images. Jheald (talk) 19:00, 14 August 2019 (UTC)[reply]

Discussion[edit]

@Jheald, Juandev, Tinker Bell: region within image (P8276) has been created. Pamputt (talk) 16:05, 2 June 2020 (UTC)[reply]