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

Spatial Data Type related Manuals Update #478

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c218708
Spatial Data Type related Manuals Update
Soyoon-Choi Jan 15, 2024
cb34b93
-lightmode update
Soyoon-Choi Jan 15, 2024
a995051
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
874a748
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
d9d6a3a
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
4278f60
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
13b9e39
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
d724e6e
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
98784b5
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
09ca833
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
cc860a6
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
06ca373
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
fd43292
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
14819ac
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
15db989
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
5695540
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi Jan 15, 2024
1637005
국문 공간 데이터 마이그레이션 수정
Soyoon-Choi Jan 16, 2024
804fb16
Update Utilities Manual.md
Soyoon-Choi Jan 16, 2024
bedc7b7
Update Utilities Manual.md
Soyoon-Choi Jan 16, 2024
c59599a
Update Spatial SQL Reference.md
Soyoon-Choi Jan 16, 2024
2139f84
Update Manuals/Altibase_7.3/kor/Spatial SQL Reference.md
Soyoon-Choi Jan 16, 2024
f963352
Update Spatial SQL Reference.md
Soyoon-Choi Jan 17, 2024
67139c8
Update Spatial SQL Reference.md
Soyoon-Choi Jan 17, 2024
1dbea5f
Update Spatial SQL Reference.md
Jan 17, 2024
bc93fdc
Merge branch 'master' into BUG-50740
Soyoon-Choi Mar 6, 2024
0ecb211
Merge branch 'master' into BUG-50740
Soyoon-Choi Jun 24, 2024
5b2d45a
Merge branch 'master' into BUG-50740
Soyoon-Choi Jun 24, 2024
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
109 changes: 91 additions & 18 deletions Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ INSERT INTO test1 VALUES (6, GEOMCOLLFROMTEXT('GEOMETRYCOLLECTION EMPTY'));

In Altibase, the GEOMETRY data type can be represented using any of the three ways described below:

- WKT (Well-Known Text): A text format in which a spatial object is represented using letters and numbers. This allows it to be processed directly within SQL applications or other similar applications. The WKT format was designed using simple gramar for easy readability.
- WKT (Well-Known Text): A text format in which a spatial object is represented using letters and numbers. This allows it to be processed directly within SQL applications or other similar applications. The WKT format was designed using simple grammar for easy readability.
- WKB (Well-Known Binary): A format in which a spatial object is represented in binary form. It was designed for the purpose of efficiently transferring and performing operations on GEOMETRY type data.
- EWKT(Extended Well-Known Text) format: A text format in which Spatial Reference Identifier (SRID) information representing spatial objects has been added to the WKT format.
- EWKB(Extended Well-Known Binary) format: A text format in which Spatial Reference Identifier (SRID) information representing spatial objects is added to the WKB format
Expand Down Expand Up @@ -1192,9 +1192,8 @@ AThe spatial functions that are available in Altibase can be broadly classified
- Spatial Analysis Functions
These functions are used to perform various analytical tasks on GEOMETRY type data.

Spatial Object Creationg Functions
These functions are used to create spatial objects in WKT or WKB format, rather than in the internal storage format of Altibase.

- Spatial Object Creation Functions
These functions are used to create spatial objects in WKT, WKB, EWKT, or EWKB format, rather than in the internal storage format of Altibase.

### Basic Spatial Functions

Expand Down Expand Up @@ -3012,7 +3011,7 @@ F1 SRID(F2)
##### Syntax

```
GEOMFROMTEXT( WKT)
GEOMFROMTEXT( WKT[, srid])
```

##### Description
Expand All @@ -3023,7 +3022,7 @@ This function accepts a description of a spatial object in WKT (Well-known Text)

The input can be any type of spatial object that can be described using WKT. If the syntax of the input WKT is not valid, this function outputs an error.

The SIRD of the created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Value

Expand All @@ -3048,14 +3047,20 @@ GEOMETRYCOLLECTION( POINT(10 10) , POINT(30 30) , LINESTRING(15 15, 20 20) )

iSQL> INSERT INTO TB3 VALUES (102, GEOMFROMTEXT('POLYGON((10 10, 10 20, 20 20, 20 15, 10))'));
[ERR-A101A : Parsing error of well-known-text]

iSQL> SELECT ASEWKT(GEOMFROMTEXT('POINT(1 1)', 100)) AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;POINT(1 1)
1 row selected.
```

#### POINTFROMTEXT

##### Syntax

```
POINTFROMTEXT( WKT)
POINTFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3066,7 +3071,7 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

The SIRD of the created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

Expand All @@ -3090,14 +3095,20 @@ POINT(10 10)

iSQL> INSERT INTO TB3 VALUES (103, POINTFROMTEXT('GEOMETRYCOLLECTION( POINT(10 10), POINT(30 30), LINESTRING(15 15, 20 20))'));
[ERR-A1019 : Not applicable object type]

iSQL> SELECT ASEWKT(POINTFROMTEXT('POINT(1 1)', 100)) AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;POINT(1 1)
1 row selected.
```

#### LINEFROMTEXT

##### Syntax

```
LINEFROMTEXT( WKT )
LINEFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3108,7 +3119,7 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

The SIRD of the created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

Expand All @@ -3132,6 +3143,12 @@ LINESTRING(10 10, 20 20, 30 40)

iSQL> INSERT INTO TB3 VALUES (104, LINEFROMTEXT('MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 10)), ((60 60, 70 70, 80 60, 60 60)))'));
[ERR-A1019 : Not applicable object type]

iSQL> SELECT ASEWKT(LINEFROMTEXT('LINESTRING(10 10, 20 20, 30 40)', 100) ) FROM DUAL;
OBJ
-------------------------------------
SRID=100;LINESTRING(10 10, 20 20, 30 40)
1 row selected.
```

#### POLYFROMTEXT
Expand All @@ -3150,7 +3167,7 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

The SRID of a created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

Expand Down Expand Up @@ -3185,6 +3202,11 @@ ID ASEWKT(OBJ)
120 SRID=100;POLYGON((10 10, 10 20, 20 20, 20 15, 10 10))
2 rows selected.

iSQL> SELECT ASEWKT(POLYFROMTEXT('POLYGON((10 10, 10 20, 20 20, 20 15, 10 10))', 100)) AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;POLYGON((10 10, 10 20, 20 20, 20 15, 10 10))
1 row selected.
```

#### ST_POLYGONFROMTEXT
Expand Down Expand Up @@ -3240,7 +3262,7 @@ ID ASEWKT(OBJ)
##### Syntax

```
MPOINTFROMTEXT( WKT )
MPOINTFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3251,7 +3273,7 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

The SRID of a created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

Expand All @@ -3275,14 +3297,21 @@ MULTIPOINT(10 10, 20 20)

iSQL> INSERT INTO TB3 VALUES (106, MPOINTFROMTEXT('LINESTRING(10 10, 20 20, 30 40)'));
[ERR-A1019 : Not applicable object type]


iSQL> SELECT ASEWKT( MPOINTFROMTEXT('MULTIPOINT(10 10, 20 20)', 100) ) AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;MULTIPOINT(10 10, 20 20)
1 row selected.
```

#### MLINEFROMTEXT

##### Syntax

```
MLINEFROMTEXT( WKT )
MLINEFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3293,7 +3322,7 @@ This function accepts a spatial object in WKT (Well-known Text) format as input

This function returns NULL if the value of the WKT argument is NULL.

The SRID of a created object is 0.
Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

Expand All @@ -3316,14 +3345,21 @@ MULTILINESTRING((10 10, 20 20), (15 15, 30 15))
1 row selected.
iSQL> INSERT INTO TB3 VALUES (107, MLINEFROMTEXT('POINT(10 10)'));
[ERR-A1019 : Not applicable object type]


iSQL> SELECT ASEWKT(MLINEFROMTEXT('MULTILINESTRING((10 10, 20 20), (15 15, 30 15))', 100))AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;MULTILINESTRING((10 10, 20 20), (15 15, 30 15))
1 row selected.
```

#### MPOLYFROMTEXT

##### Syntax

```
MPOLYFROMTEXT( WKT )
MPOLYFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3334,6 +3370,8 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

```
Expand All @@ -3356,14 +3394,21 @@ MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 10)), ((60 60, 70 70, 80 60, 60 60

iSQL> INSERT INTO TB3 VALUES (108, MPOLYFROMTEXT('MULTIPOINT(10 10, 20 20)'));
[ERR-A1019 : Not applicable object type]


iSQL> SELECT ASEWKT(MPOLYFROMTEXT('MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 10)), ((60 60, 70 70, 80 60, 60 60)))',100)) AS OBJ FROM DUAL;
OBJ
-------------------------------------
SRID=100;MULTIPOLYGON(((10 10, 10 20, 20 20, 20 15, 10 10)), ((60 60, 70 70, 80 60, 60 60)))
1 row selected.
```

#### GEOMCOLLFROMTEXT

##### Syntax

```
GEOMCOLLFROMTEXT( WKT )
GEOMCOLLFROMTEXT( WKT[, srid] )
```

##### Description
Expand All @@ -3374,6 +3419,8 @@ If the syntax of the input WKT is not valid, or if the WKT describes a GEOMETRY

This function returns NULL if the value of the WKT argument is NULL.

Users can specify SRID when using this function. If SRID is not specified, the SRID of the generated geometry object is 0.

##### Return Type

```
Expand All @@ -3398,6 +3445,12 @@ GEOMETRYCOLLECTION( POINT(10 10) , POINT(30 30) , LINESTRING(15 15, 20 20) )

iSQL> INSERT INTO TB3 VALUES (109, GEOMCOLLFROMTEXT('POLYGON((10 10, 10 20, 20 20, 20 15, 10 10))'));
[ERR-A1019 : Not applicable object type]

iSQL> SELECT ASEWKT(GEOMCOLLFROMTEXT('GEOMETRYCOLLECTION(POINT(10 10), POINT(30 30), LINESTRING(15 15, 20 20))',100)) AS OBJ FROM DUAL;
OBJ
---------------------------------------------
SRID=100;GEOMETRYCOLLECTION( POINT(10 10) , POINT(30 30) , LINESTRING(15 15, 20 20) )
1 row selected.
```

#### ST_GEOMETRY
Expand Down Expand Up @@ -6837,7 +6890,27 @@ else

```

# Appendix A. Limitations on the Use of Spatial Data in Altiabase
# 4. Spatial Data Migration

This section describes how to migrate spatial data between Altibase products or other vendor database products.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 product보단 database 만 적는게 낫겠어요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This section describes how to migrate spatial data between Altibase products or other vendor database products.
This section describes how to migrate spatial data between Altibase servers or Altibase and the other vendor database.


### Spatial Data Migration Between Altibase Products

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 국문의 C안에 맞춰서 재 작성해야 할것 같네요~

Altibase Meta version 8.8.1 introduced a change in the spatial data storage format from WKB to EWKB. This alteration divides the scenarios for spatial data migration among Altibase products into four categories.
jina-altibase marked this conversation as resolved.
Show resolved Hide resolved

For products with a meta version below 8.8.1, which cannot recognize EWKB format spatial data, **there may be a need to export EWKB format data into WKB format** in certain situations. Altibase provides functionality for exporting data in WKB format using the ILOADER_GEOM property in aexport and the '-geom WKB' option in iLoader. For detailed information on this feature, please refer to the respective manuals for aexport and iLoader.

| Scenario | Data Migration Process Change |
| -------------------------------------- | ------------------------------------------------------------ |
| All meta versions are below 8.8.1 | None |
| All meta versions are 8.8.1 or above | None |
| Meta version 8.8.1 below → 8.8.1 above | None (WKB format spatial data is automatically converted to EWKB format.) |
| Meta version 8.8.1 above → 8.8.1 below | Add the property statement ILOADER_GEOM = WKB to the aexport.properties file and then proceed as usual.<br/>If users want to migrate only specific tables, use the '-geom WKB' option in iLoader. |

> [!TIP]
> Users can check the Altibase Meta version using the 'altibase -v' command.

# Appendix A. Limitations on the Use of Spatial Data in Altibase

With the expansion of Altibase into the realm of spatial data, inevitably some of Altibase's extensive functionality lacks support for use with spatial data. The current limitations are explained in detail in this Appendix.

Expand Down
Loading