Geoserver does not calculate the extent correctly

Description

Hallo,

we have the above-named Geoserver, PostGis and the following table:

\d waterway.waterway_axis
Table "waterway.waterway_axis"

Column

Type

Collation

Nullable

default

id

integer

not null

generated by default as indentity

wtwaxs

geography(LineString,4326)

not null

objnam

character varying

not null

nobjnam

character varying

Indexes:
"waterway_axis_pkey" PRIMARY KEY, btree (id)
Check constraints:
"waterway_axis_wtwaxs_check" CHECK (st_issimple(wtwaxs::geometry))

Opening layer preview from the administration interface and then opening waterway_axis layer does not show the features right in the box(lines and polygons) what is expected.
we must zoom out to see the layer then move to the right coordinates and again zoom in to show it.

another observation:
getting the values from the db with :
select st_extent(wtwaxs::geometry) from waterway.waterway_axis;
st_extent
--------------------------------------------------------------------------
BOX(13.3886796784167 48.0908715400774,17.1462820066055 48.5922161670332)

and entering these values manually into geoserver (edit layer from admin interface)------>> all worked as expected (we can see the features without zooming in and out), so that we have right extent.

compute from data button in the Edit layer admin interface calculates wrong values
the values in fields are following:
Min X: 0.637170732021332, Min Y:0.152935296297073, Max X:0.645281612873077, Max Y:0.197139039635658
which leads to do not show the correct extent of the layer in layer preview

Environment

Geoserver 2.15.0, Postgres 11.2, PostGis 2.5.1 (ubuntu 11.2-1)

Assignee

Unassigned

Reporter

Fadi

Triage

None

Fix versions

None

Affects versions

None

Priority

Medium
Configure