Open main menu

Wikidata:Property proposal/region within image

region within imageEdit

Return to Wikidata:Property proposal/Commons

   Under discussion
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 ] ] }
Example 2MISSING
Example 3MISSING
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)

MotivationEdit

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)

DiscussionEdit

  • Proposed. Jheald (talk) 18:07, 14 August 2019 (UTC)
  •   Support Very well Jheald! --Juandev (talk) 20:24, 29 September 2019 (UTC)
  •   Comment could we have more than one regions within one image? I think that would be usefull too. --Juandev (talk) 20:24, 29 September 2019 (UTC)