Skip to content

Center_bound

cicada edited this page Dec 7, 2022 · 8 revisions

title: Center bound permalink: /Center_bound/

Geometric functions center_bound

syntax

  • center_bound(polygon_data_item)

definition

center_bound(polygon_data_item) results in a point data item with the center of the bounding box of the polygon_data_item.

applies to

Point data item polygon_data_item with fpoint or dpoint value type and composition type polygon

since version

5.15

example

attribute<point_rd> cb (district) := center_bound(district/geometry);

district/geometry cb
{21 {403025, 113810}{4 {402990, 113061}
{17 {400990, 113269}{4 {401207, 112734}
{19 {401238, 115099}{4 {401265, 114026}

domain district, nr of rows = 3

see also

Clone this wiki locally