{"Entry":{"collection":"func","key":"npoints","name":"npoints","aliases":[],"metadata":{"changed_in":["8.1"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.3"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":["npoints ( path ) → int","npoints ( polygon ) → int"],"removed":["npoints ( path ) → integer","npoints ( polygon ) → integer"]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"274c514ffd5917f47fcc50f0d5429ae61e457609ddfb7127297691cd9df1771d","first_version":"7.3","group":"geometry","group_label":"Geometric Functions And Operators","groups":["geometry"],"imported_at":"2026-09-27T17:57:28.635381+08:00","last_version":"20","name":"npoints","name_key":"npoints","position":10014,"present_in":["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":"npoints ( geometric_type ) → integer","signature_count":1,"slug":"npoints","source_rev":"b7bd9cda","summary":"Returns the number of points.","summary_zh":""}},"Definition":{"Collection":"func","Key":"npoints","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"npoints","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the number of points. Available for path, polygon.","description_html":"Returns the number of points. Available for \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003epolygon\u003c/code\u003e.","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":"Returns the number of points. Available for path, polygon.","description_html":"Returns the number of points. Available for \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003epolygon\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"npoints(path '[(0,0),(1,1),(2,0)]')","result":"3"}],"html":"\u003ccode class=\"function\"\u003enpoints\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003egeometric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"npoints ( geometric_type ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-GEOMETRY-FUNC-TABLE","file":"functions-geometry.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"npoints","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"npoints","Summary":"返回点的数量。适用于 path、polygon。","BodyHTML":"返回点的数量。适用于 \u003ccode\u003epath\u003c/code\u003e、\u003ccode\u003epolygon\u003c/code\u003e。\u003cpre\u003enpoints ( geometric_type ) → integer\u003c/pre\u003e返回点的数量。适用于 \u003ccode\u003epath\u003c/code\u003e、\u003ccode\u003epolygon\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"63d3bd0b3df6f03f90310d9e23119bff9e3ed528fe89f7faaa3d13663baf09ae","Payload":{"description_zh":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","signatures":[{"description_zh":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","returns":"integer","text":"npoints ( geometric_type ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"ac4c3548d7885f0dedf7b174da2d51386b6f33cc0b4893b1e39e4f9e3f99e3da","Text":"npoints ( geometric_type ) → integer","Returns":"integer","Payload":{"description":"Returns the number of points. Available for path, polygon.","description_html":"Returns the number of points. Available for \u003ccode class=\"type\"\u003epath\u003c/code\u003e, \u003ccode class=\"type\"\u003epolygon\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"npoints(path '[(0,0),(1,1),(2,0)]')","result":"3"}],"html":"\u003ccode class=\"function\"\u003enpoints\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003egeometric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"npoints ( geometric_type ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
