Skip to content

Commit

Permalink
fix: update data types
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia committed Sep 12, 2023
1 parent 00eb384 commit 0196131
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion extensions/extension_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ types:
structure:
x: fp64
y: fp64
- name: crs_point
structure:
x: fp64
y: fp64
crs: string
- name: linestring
structure:
T: List<coordinate>
Expand All @@ -27,7 +32,11 @@ types:
- name: multipolygon
structure:
T: List<polygon>
- name: mixed
parameters:
- name: T
type: union<crs_point, linestring, polygon, multipoint, multilinestring, multipolygon>
- name: geometry
parameters:
- name: T
type: union<point, linestring, polygon, multipoint, multilinestring, multipolygon>
type: List<mixed>
4 changes: 2 additions & 2 deletions extensions/functions_geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
scalar_functions:
-
name: "st_point"
name: "point"
description: >
Return a 2D point with the given `x` and `y` coordinate values.
impls:
Expand All @@ -13,7 +13,7 @@ scalar_functions:
value: fp64
return: geometry
-
name: "st_makeline"
name: "makeline"
description: >
Return a linestring containing the points of the two input geometries.
Repeated points at the beginning of input geometries are collapsed to a single point.
Expand Down

0 comments on commit 0196131

Please sign in to comment.