-
Notifications
You must be signed in to change notification settings - Fork 58
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
Soyoon-Choi
wants to merge
27
commits into
master
Choose a base branch
from
BUG-50740
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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 cb34b93
-lightmode update
Soyoon-Choi a995051
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 874a748
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi d9d6a3a
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 4278f60
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 13b9e39
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi d724e6e
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 98784b5
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 09ca833
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi cc860a6
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 06ca373
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi fd43292
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 14819ac
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 15db989
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 5695540
Update Manuals/Altibase_7.3/eng/Spatial SQL Reference.md
Soyoon-Choi 1637005
국문 공간 데이터 마이그레이션 수정
Soyoon-Choi 804fb16
Update Utilities Manual.md
Soyoon-Choi bedc7b7
Update Utilities Manual.md
Soyoon-Choi c59599a
Update Spatial SQL Reference.md
Soyoon-Choi 2139f84
Update Manuals/Altibase_7.3/kor/Spatial SQL Reference.md
Soyoon-Choi f963352
Update Spatial SQL Reference.md
Soyoon-Choi 67139c8
Update Spatial SQL Reference.md
Soyoon-Choi 1dbea5f
Update Spatial SQL Reference.md
bc93fdc
Merge branch 'master' into BUG-50740
Soyoon-Choi 0ecb211
Merge branch 'master' into BUG-50740
Soyoon-Choi 5b2d45a
Merge branch 'master' into BUG-50740
Soyoon-Choi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -3012,7 +3011,7 @@ F1 SRID(F2) | |||||
##### Syntax | ||||||
|
||||||
``` | ||||||
GEOMFROMTEXT( WKT) | ||||||
GEOMFROMTEXT( WKT[, srid]) | ||||||
``` | ||||||
|
||||||
##### Description | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -3240,7 +3262,7 @@ ID ASEWKT(OBJ) | |||||
##### Syntax | ||||||
|
||||||
``` | ||||||
MPOINTFROMTEXT( WKT ) | ||||||
MPOINTFROMTEXT( WKT[, srid] ) | ||||||
``` | ||||||
|
||||||
##### Description | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
``` | ||||||
|
@@ -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 | ||||||
|
@@ -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 | ||||||
|
||||||
``` | ||||||
|
@@ -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 | ||||||
|
@@ -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. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### Spatial Data Migration Between Altibase Products | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||||||
|
||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 product보단 database 만 적는게 낫겠어요~