{"Entry":{"collection":"func","key":"area","name":"area","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":true,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"84b7f42b5e30dcbd4ae75f8a413e9a5596d1ece75d201ce693f570320ba43423","first_version":"7.1","group":"geometry","group_label":"Geometric Functions And Operators","groups":["geometry"],"imported_at":"2026-09-27T17:57:28.599014+08:00","last_version":"20","name":"area","name_key":"area","position":10000,"present_in":["7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"area ( geometric_type ) → double precision","signature_count":1,"slug":"area","source_rev":"b7bd9cda","summary":"Computes area.","summary_zh":""}},"Definition":{"Collection":"func","Key":"area","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"area","SourceRevision":"b7bd9cda","Facts":{"description":"Computes area. Available for box, path, circle. A path input must be closed, else NULL is returned. Also, if the path is self-intersecting, the result may be meaningless.","description_html":"Computes area. Available for \u003ccode class=\"type\"\u003ebox\u003c/code\u003e, \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003ecircle\u003c/code\u003e. A \u003ccode class=\"type\"\u003epath\u003c/code\u003e input must be closed, else NULL is returned. Also, if the \u003ccode class=\"type\"\u003epath\u003c/code\u003e is self-intersecting, the result may be meaningless.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-GEOMETRY-FUNC-TABLE","file":"functions-geometry.html","slug":"18"},"group":"geometry","group_label":"Geometric Functions And Operators","lang":"en","layout":"table-new","pages":["functions-geometry.html"],"prose_only":false,"signatures":[{"description":"Computes area. Available for box, path, circle. A path input must be closed, else NULL is returned. Also, if the path is self-intersecting, the result may be meaningless.","description_html":"Computes area. Available for \u003ccode class=\"type\"\u003ebox\u003c/code\u003e, \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003ecircle\u003c/code\u003e. A \u003ccode class=\"type\"\u003epath\u003c/code\u003e input must be closed, else NULL is returned. Also, if the \u003ccode class=\"type\"\u003epath\u003c/code\u003e is self-intersecting, the result may be meaningless.","description_zh":"","description_zh_html":"","examples":[{"expr":"area(box '(2,2),(0,0)')","result":"4"}],"html":"\u003ccode class=\"function\"\u003earea\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003egeometric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"area ( geometric_type ) → double precision","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-GEOMETRY-FUNC-TABLE","file":"functions-geometry.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"area","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"area","Summary":"计算面积。适用于 box、path、circle。path 输入必须封闭，否则返回NULL。同样，如果 path 是自交叉的，结果可能是没有意义的。","BodyHTML":"计算面积。适用于 \u003ccode\u003ebox\u003c/code\u003e、\u003ccode\u003epath\u003c/code\u003e、\u003ccode\u003ecircle\u003c/code\u003e。\u003ccode\u003epath\u003c/code\u003e 输入必须封闭，否则返回NULL。同样，如果 \u003ccode\u003epath\u003c/code\u003e 是自交叉的，结果可能是没有意义的。\u003cpre\u003earea ( geometric_type ) → double precision\u003c/pre\u003e计算面积。适用于 \u003ccode\u003ebox\u003c/code\u003e、\u003ccode\u003epath\u003c/code\u003e、\u003ccode\u003ecircle\u003c/code\u003e。\u003ccode\u003epath\u003c/code\u003e 输入必须封闭，否则返回NULL。同样，如果 \u003ccode\u003epath\u003c/code\u003e 是自交叉的，结果可能是没有意义的。","SourceRevision":"ca936764","ContentHash":"e18b0f73b392c859a86cb5eac375de3f90b624b2869d72e5cd9a0b341b70b393","Payload":{"description_zh":"计算面积。适用于 box、path、circle。path 输入必须封闭，否则返回NULL。同样，如果 path 是自交叉的，结果可能是没有意义的。","description_zh_html":"计算面积。适用于 \u003ccode class=\"type\"\u003ebox\u003c/code\u003e、\u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003ecircle\u003c/code\u003e。\u003ccode class=\"type\"\u003epath\u003c/code\u003e 输入必须封闭，否则返回NULL。同样，如果 \u003ccode class=\"type\"\u003epath\u003c/code\u003e 是自交叉的，结果可能是没有意义的。","signatures":[{"description_zh":"计算面积。适用于 box、path、circle。path 输入必须封闭，否则返回NULL。同样，如果 path 是自交叉的，结果可能是没有意义的。","description_zh_html":"计算面积。适用于 \u003ccode class=\"type\"\u003ebox\u003c/code\u003e、\u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003ecircle\u003c/code\u003e。\u003ccode class=\"type\"\u003epath\u003c/code\u003e 输入必须封闭，否则返回NULL。同样，如果 \u003ccode class=\"type\"\u003epath\u003c/code\u003e 是自交叉的，结果可能是没有意义的。","returns":"double precision","text":"area ( geometric_type ) → double precision","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"03542ed40ef3d7c504ba1e21dc3a0c66e6f5859f761f4ac45bf84458ec5881bf","Text":"area ( geometric_type ) → double precision","Returns":"double precision","Payload":{"description":"Computes area. Available for box, path, circle. A path input must be closed, else NULL is returned. Also, if the path is self-intersecting, the result may be meaningless.","description_html":"Computes area. Available for \u003ccode class=\"type\"\u003ebox\u003c/code\u003e, \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003ecircle\u003c/code\u003e. A \u003ccode class=\"type\"\u003epath\u003c/code\u003e input must be closed, else NULL is returned. Also, if the \u003ccode class=\"type\"\u003epath\u003c/code\u003e is self-intersecting, the result may be meaningless.","description_zh":"","description_zh_html":"","examples":[{"expr":"area(box '(2,2),(0,0)')","result":"4"}],"html":"\u003ccode class=\"function\"\u003earea\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003egeometric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"area ( geometric_type ) → double precision","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
