Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize geo #2707

Merged
merged 4 commits into from
Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs-2.0/3.ngql-guide/3.data-types/10.geography.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ GEOGRAPHY 的基本类型是点,由经纬度确定一个点,例如`"POINT(3
|LineString|`"LINESTRING(3 8, 4.7 73.23)"`|线段类型|
|Polygon|`"POLYGON((0 1, 1 2, 2 3, 0 1))"`|多边形类型|

!!! note

请勿直接插入上述类型的 GEOGRAPHY 数据,例如`INSERT VERTEX any_shape(geo) VALUES "1":("POINT(1 1)")`,需要使用 [geo 函数](../6.functions-and-expressions/14.geo.md)指定数据类型后才能插入,例如`INSERT VERTEX any_shape(geo) VALUES "1":(ST_GeogFromText("POINT(1 1)"));`。


<!--
## 索引

Expand All @@ -24,8 +29,6 @@ CREATE TAG INDEX <index_name> ON <tag_name>(<geo_prop_name>) s2_min_level = <int

## 示例

geo 相关函数请参见 [geo 函数](../6.functions-and-expressions/14.geo.md)。

```ngql
//创建 Tag,允许存储任意形状地理位置数据类型。
nebula> CREATE TAG IF NOT EXISTS any_shape(geo geography);
Expand Down