Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 설치완료안됨
- GeoJSON object too complex/large
- ERR_PNPM_NO_GLOBAL_BIN_DIR
- 반응형 페이지 좌표 변환
- C언어
- rwdImageMaps
- react
- node
- nodejs
- credential error
- S3
- expo
- 어셈블리어
- AWS CodeBuild
- Error:error:0308010C:digital envelope routines::unsupported
- can't getting credentials
- ogr2ogr
- EC2
- CSS
- 이미지 맵
- aws ec2
- SASS
- NODE_VERSION
- AWS
- netlify variables
- 김골라
- Sequelize Error: Dialect needs to be explicitly supplied as of v4.0.0
- AWS CodePipeline
- 이미지 좌표 추출
- Unable to find the global bin directory
Archives
- Today
- Total
ImFe's study
[GIS] GeoJSON object too complex/large. You may define the OGR_GEOJSON_MAX_OBJ_SIZE configuration option to a value in megabytes to allow for larger features, or 0 to remove any size limit. 오류 본문
카테고리 없음
[GIS] GeoJSON object too complex/large. You may define the OGR_GEOJSON_MAX_OBJ_SIZE configuration option to a value in megabytes to allow for larger features, or 0 to remove any size limit. 오류
ImFe 2024. 3. 28. 17:49
산림청 프로젝트 진행중에
Open API 결과값을 파싱하여 생성한 지도 데이터를 ogr2ogr을 이용하여 Postgresql(PostGIS)에 업로드 하던 중 오류 발생
에러 내용이 이해가 좀 안갔던 점은
용량만 보면 훨씬 큰 "리" 단위 지도(256MB)도 잘 말려서 올라가는데, 1/4 수준인 시군구 단위 지도를 올릴 때 발생한다는 것
용량 뿐만 아니라 geojson 내부 객체 depth도 중요한 부분이여서 발생했던 것 같다.
다행히도 아래 stackexchange question에서 해결 방법을 찾아서 해결하였다.
export OGR_GEOJSON_MAX_OBJ_SIZE=500MB # 시군구 올릴 때 발생하는 오류 해결
추가)
37GB 분량의 연속지적도를 Postgresql(PostGIS)에 업로드 할 땐 이러한 문제가 발생하지 않았다.
파싱 후 결과물의 json depth가 너무 깊어서 이러한 오류가 발생한 것 같다.
Comments