Is there some problem that can make PostGIS point geometry unreadable by GeoServer WMTS? The points are generated with st_makepoint with lon/lat float args.

I'm especially confused because I have other layers that work fine.

java.lang.RuntimeException: org.geotools.data.DataSourceException: An exception occurred while parsing WKB data org.geotools.data.DataSourceException: An exception occurred while parsing WKB data An exception occurred while parsing WKB data Unknown WKB type 77


pgadmin query result


geometry as text

  • Geoserver doesn't handle that type of wkb geometry.
    – Ian Turton
    Jan 11, 2021 at 19:36
  • @IanTurton OK so what is type 77 anyway and why is st_makepoint creating that type instead of a simple point? Jan 11, 2021 at 19:50
  • Please post one such WKB string. Jan 11, 2021 at 20:48
  • No idea what type 77 is as far as I know there are only 25 types (en.wikipedia.org/wiki/…) - the link you include works fine for me
    – Ian Turton
    Jan 12, 2021 at 8:34

1 Answer 1


I believe I resolved this problem. The issue was that the table was being created without an id primary key. The database was using the geom column as the PK because it was first in the data insert.

The fix was to delete the primary key constraint, add an auto-increment id integer column and make it the primary key. I then updated the layer in geoserver by using the 'reload geometry type' and the data began to be served correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.