{"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","derived_content_hash":"d3df82785b989b43110c055f7cee09e9b21ce6bfe50be57757a1e1392d4d97f6","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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:a176e25281815aa3a2b50237580ad89a39f0d61fc860f66b7450563be5a2c719","receipt_sha256":"cf5289dcaa7e4e85f05ffb1cf49a38e4a08ccbed95da94cc6e61f77f200fe4a8","repair":"wiki-repair-20261023"},"signature":"npoints ( geometric_type ) → integer","signature_count":1,"slug":"npoints","source_rev":"wiki-repair-20261023:2063704244ec84bc5395c4c680dd6be2d1de3a67a3af62d997537d5de4546d2f","summary":"Returns the number of points.","summary_zh":""}},"Definition":{"Collection":"func","Key":"npoints","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"npoints","SourceRevision":"wiki-repair-20261023:2063704244ec84bc5395c4c680dd6be2d1de3a67a3af62d997537d5de4546d2f","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":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","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":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","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":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-geometry.html","sha256":"d1be5d4c3a0c2a807aa75b06b553f7e3ad67abd125a28210b974e1b14241017d"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-GEOMETRY-FUNC-TABLE","file":"functions-geometry.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"npoints","SourceDatabase":"center","Version":"18","Locale":"en","Title":"npoints","Summary":"Returns the number of points. Available for path, polygon.","BodyHTML":"Returns the number of points. Available for \u003ccode\u003epath\u003c/code\u003e, \u003ccode\u003epolygon\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:2063704244ec84bc5395c4c680dd6be2d1de3a67a3af62d997537d5de4546d2f","ContentHash":"964ce7abaca219a98b860099ada9122ef584c77a1f2fe87dadae07c358cbecb6","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.","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":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","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":"same-version-pgdoc"}]}},"RequestedLocale":"en","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":"返回点的数量。适用于 path、polygon。","description_zh_html":"返回点的数量。适用于 \u003ccode class=\"type\"\u003epath\u003c/code\u003e、\u003ccode class=\"type\"\u003epolygon\u003c/code\u003e。","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":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
