댕글 포인트 처리를 위해 v.clean을 이용하여 자동 라인 연결을 하려는데 알고리즘 처리는 되지만 레이어에서 삭제한 출력물은 레이어 범위로 확대를 해도 내용이 표시가 안됩니다. 저장에서 잘못된 부분이 있는 것 같은데 어떤 부분이 잘못됐는지 그리고 어떻게 해결하면 되는지 알려주시면 감사합니다. 아래는 참고를 위해 로그를 복사했습니다.
=======================================================================
입력 파라미터:
{ '-b' : False, '-c' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001, 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None, 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'error' : 'C:/Lab#04/la4e.shp', 'input' : 'C:/Lab#04/lab4.shp', 'output' : 'C:/Lab#04/la4t.shp', 'threshold' : '0,5,5', 'tool' : [0,1,2], 'type' : [0,1,2,3,4,5,6] }
g.proj -c proj4="+proj=longlat +datum=WGS84 +no_defs"
v.in.ogr min_area=0.0001 snap=-1.0 input="C:\Lab#04\lab4.shp" output="vector_5f70aee9567ee6" --overwrite -o
g.region n=36.57396714682543 s=36.54903626435947 e=126.67619406819632 w=126.65121140512181
v.clean input=vector_5f70aee9567ee6 type="point,line,boundary,centroid,area,face,kernel" tool="break,snap,rmdangle" threshold="0,5,5" output=output9b71ebb5ca66445cb15d273f7244bd3f error=error9b71ebb5ca66445cb15d273f7244bd3f --overwrite
v.out.ogr type="auto" input="output9b71ebb5ca66445cb15d273f7244bd3f" output="C:\Lab#04\la4t.shp" format="ESRI_Shapefile" --overwrite
v.out.ogr type="auto" input="error9b71ebb5ca66445cb15d273f7244bd3f" output="C:\Lab#04\la4e.shp" format="ESRI_Shapefile" --overwrite
GRASS GIS를 시작하는 중입니다...
WARNING: Concurrent mapset locking is not supported on Windows
임시 파일을 정리하는 중입니다...
<C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\grass_batch_job.cmd>를 실행하는 중입니다...
C:\Users\정기수\Documents>chcp 949 1>NUL
C:\Users\정기수\Documents>g.proj -c proj4="+proj=longlat +datum=WGS84 +no_defs"
Default region was updated to the new projection, but if you have multiple mapsets `g.region -d` should be run in each to update the region from the default
투영 정보가 갱신되었습니다
C:\Users\정기수\Documents>v.in.ogr min_area=0.0001 snap=-1.0 input="C:\Lab#04\lab4.shp" output="vector_5f70aee9567ee6" --overwrite -o
Over-riding projection check
OGR 레이어 <lab4>가 다각형을 포함하고 있는지 확인하는 중입니다...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Creating attribute table for layer <lab4>...
WARNING: 데이터베이스 <C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\temp_location\PERMANENT\sqlite\sqlite.db>를 드라이버 <sqlite>로 열 수 없습니다
ERROR: 데이터베이스 <C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\temp_location\PERMANENT\sqlite\sqlite.db>를 드라이버 <sqlite>로 열 수 없습니다
C:\Users\정기수\Documents>g.region n=36.57396714682543 s=36.54903626435947 e=126.67619406819632 w=126.65121140512181
C:\Users\정기수\Documents>v.clean input=vector_5f70aee9567ee6 type="point,line,boundary,centroid,area,face,kernel" tool="break,snap,rmdangle" threshold="0,5,5" output=output9b71ebb5ca66445cb15d273f7244bd3f error=error9b71ebb5ca66445cb15d273f7244bd3f --overwrite
no database is open
Note: In latitude-longitude coordinate system specify threshold in degree unit
--------------------------------------------------
Tool: Threshold
Break: 0
정점 끌어붙이기: 5
댕글을 제거합니다: 5
--------------------------------------------------
WARNING: Coor file of vector map <vector_5f70aee9567ee6@PERMANENT> is larger than it should be (18 bytes excess)
WARNING: 데이터베이스 <C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\temp_location\PERMANENT\sqlite\sqlite.db>를 드라이버 <sqlite>로 열 수 없습니다
no database is open
WARNING: Unable to copy table <output9b71ebb5ca66445cb15d273f7244bd3f>
WARNING: Unable to copy table <vector_5f70aee9567ee6> for layer 1 from <vector_5f70aee9567ee6@PERMANENT> to <output9b71ebb5ca66445cb15d273f7244bd3f>
WARNING: Failed to copy attribute table to output vector map
Rebuilding parts of topology...
Building topology for vector map <output9b71ebb5ca66445cb15d273f7244bd3f@PERMANENT>...
Registering primitives...
--------------------------------------------------
Tool: Break lines at intersections
100
--------------------------------------------------
Building topology for vector map <output9b71ebb5ca66445cb15d273f7244bd3f@PERMANENT>...
--------------------------------------------------
Tool: Snap line to vertex in threshold
Reading features...
--------------------------------------------------
Building topology for vector map <output9b71ebb5ca66445cb15d273f7244bd3f@PERMANENT>...
--------------------------------------------------
도구: 댕글을 제거합니다
--------------------------------------------------
Rebuilding topology for output vector map...
Building topology for vector map <output9b71ebb5ca66445cb15d273f7244bd3f@PERMANENT>...
Registering primitives...
--------------------------------------------------
오류 벡터 지도를 위한 위상을 생성하고 있습니다...
Building topology for vector map <error9b71ebb5ca66445cb15d273f7244bd3f@PERMANENT>...
Registering primitives...
C:\Users\정기수\Documents>v.out.ogr type="auto" input="output9b71ebb5ca66445cb15d273f7244bd3f" output="C:\Lab#04\la4t.shp" format="ESRI_Shapefile" --overwrite
WARNING: 입력 지도의 벡터 피처 유형을 결정할 수 없습니다
WARNING: 데이터베이스 <C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\temp_location\PERMANENT\sqlite\sqlite.db>를 드라이버 <sqlite>로 열 수 없습니다
ERROR: 데이터베이스 <C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\temp_location\PERMANENT\sqlite\sqlite.db>를 드라이버 <sqlite>로 열 수 없습니다
C:\Users\정기수\Documents>v.out.ogr type="auto" input="error9b71ebb5ca66445cb15d273f7244bd3f" output="C:\Lab#04\la4e.shp" format="ESRI_Shapefile" --overwrite
WARNING: 입력 지도의 벡터 피처 유형을 결정할 수 없습니다
WARNING: No attribute table found -> using only category numbers as attributes
WARNING: Output layer is empty, no features written
v.out.ogr complete. 0 features (Unknown (any) type) written to <error9b71ebb5ca66445cb15d273f7244bd3f> (ESRI_Shapefile format).
C:\Users\정기수\Documents>exit
<C:\Users\정기수\AppData\Local\Temp\processing_fUUkiD\grassdata\grass_batch_job.cmd>의 실행을 종료했습니다.
Cleaning up temporary files...
3.53 초만에 실행을 완료했습니다
결과:
{'error': 'C:\\Lab#04\\la4e.shp', 'output': 'C:\\Lab#04\\la4t.shp'}
출력 레이어 불러오기
'v.clean' 알고리즘을 처리했습니다