Dev Stories/지리정보(Spatial)
[geoserver] ERROR:ST_Estimated_Extent
레드트레인
2014. 3. 10. 20:45
반응형
GeoServer를 이용하여 PostGIS에 있는 레이어를 추가하려고 할 때 레이어 Extent를 설정한다.
그때 결과는 나오지만 아래와 같은 오류가 서버 콘솔창에 발생한다.
...
Failed to use ST_Estimated_Extent, falling back on envelope aggregation
org.postgresql.util.PSQLException: ERROR: stats for "layer_name.the_geom" do not exist
Where: SQL function "st_estimated_extent" statement 2
...
GeoServer에서 레이어의 Extent를 확인하기 위해 ST_Estimated_Extent() 함수를 요청하는데 그 때 발생하는 오류이다.
오류없이 PostgreSQL에서 다음의 함수를 먼저 실행해야 한다.
PostgreSQL Version |
Function |
8.0.0 이하 |
update_geometry_stats() |
8.0.0 이상 |
VACUUM ANALYZE |
Reference
- http://www.onspatial.com/2012/01/postgiserror-lwgeomestimatedextent.html
반응형