Skip to content

Commit

Permalink
fix: update geometry type arg and return
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia committed Sep 26, 2023
1 parent 6f0a392 commit 024523b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions extensions/functions_geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ scalar_functions:
Return the x coordinate of the point. Return null if not available.
impls:
- args:
- value: geometry
name: point
- name: point
value: u!geometry
return: fp64
-
name: "y_coodinate"
description: >
Return the y coordinate of the point. Return null if not available.
impls:
- args:
- value: geometry
name: point
- name: point
value: u!geometry
return: fp64
-
name: "numpoints"
Expand All @@ -26,35 +26,35 @@ scalar_functions:
or circularstring.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: i64
-
name: "isempty"
description: >
Return true is the geometry is an ampty geometry.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: boolean
-
name: "isclosed"
description: >
Return true if the geometry's start and end points are the same.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: geometry
return: boolean
-
name: "issimple"
description: >
Return true if the geometry does not self intersect.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: boolean
-
name: "isring"
Expand All @@ -63,17 +63,17 @@ scalar_functions:
intersect.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: boolean
-
name: "geometrytype"
description: >
Return the type of geometry as a string.
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: string
-
name: "envelope"
Expand All @@ -84,9 +84,9 @@ scalar_functions:
input geometry is a point or a line, the returned geometry can also be a point or line.
impls:
- args:
- value: geometry
name: geom
return: geometry
- name: geom
value: u!geometry
return: u!geometry
-
name: "dimension"
description: >
Expand All @@ -98,6 +98,6 @@ scalar_functions:
POLYGON - 2
impls:
- args:
- value: geometry
name: geom
- name: geom
value: u!geometry
return: i8

0 comments on commit 024523b

Please sign in to comment.