Use sdelayer -o alter -E minx,miny,maxx,maxy to specify the correct layer extent. Use the following SQL query to find the envelope.select min(st_minx(shape)) , min(st_miny(shape)) , max(st_maxx(shape)) , max(st_maxy(shape)) from block_sml_st where st_isempty(shape) = 0;