Hi, I fear that recomputing the bounds will not help because the error is this
org.locationtech.jts.io.ParseException: Unknown WKB type 12 WKB type 12 means MultiSurface. I can’t say what is the level of support that JTS has for curved geometries. Some implementations that I know can handle MultiSurface if it only wraps linear polygons and does not really contain curved geometries. The core geometry types in the GeoPackage standard are all linear: A GeoPackage SHALL store feature table geometries with the basic simple feature geometry types (Geometry, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeomCollection) in Geometry Types (Normative)<http://www.geopackage.org/spec121/index.html#geometry_types> Geometry Type Codes (Core)<http://www.geopackage.org/spec121/index.html#geometry_types_core> in the GeoPackageBinary geometry encoding format. Support for non-linear geometries requires an extension: F.1. GeoPackage Non-Linear Geometry Types Introduction This extension of clause SQL Geometry Types defines additional geometry types. Clause 2.1.4 of the GeoPackage Version 1 Encoding Standard specifies support for the Geometry, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeomCollection geometry types in the GeoPackageBinary geometry encoding format specified in clause 2.1.3. This extension specifies support for the additional CircularString, CompoundCurve, CurvePolygon, MultiCurve, MultiSurface, Curve, and Surface geometry types in the GeoPackage Binary geometry encoding format using the codes from Geometry Type Codes (Extension). Documentation https://docs.geoserver.org/latest/en/user/data/vector/geopkg.html does not mention if Geoserver supports the “GeoPackage Non-Linear Geometry Types” extension. Anyway, you have a GeoPackage that is not most interoperable. You may consider to convert multisurfaces into multipolygons if you do not need curved geometries. -Jukka Rahkonen- Lähettäjä: Russell Grew <russell.g...@douglaspartners.com.au> Lähetetty: keskiviikko 21. lokakuuta 2020 23.51 Vastaanottaja: Mohammed Alnajdi <mohdna...@gmail.com>; geoserver-users@lists.sourceforge.net Aihe: Re: [Geoserver-users] Fwd: Error when publishing a layer of store type GeoPackage Hi Mohammed, I think it doesn’t like the coordinates you have in your data layer. You may be able to get it to work by declaring the coordinate system and “compute from SRS bounds” rather than “compute from data”. Or you fix whatever is wrong with the geopackage. Maybe you have multisurfaces or similar per http://osgeo-org.1560.x6.nabble.com/MultiSurface-td5328628.html Cheers. From: Mohammed Alnajdi <mohdna...@gmail.com<mailto:mohdna...@gmail.com>> Sent: Thursday, 22 October 2020 5:38 AM To: geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net> Subject: [Geoserver-users] Fwd: Error when publishing a layer of store type GeoPackage Greeting Everyone, I am using the GeoServer with GeoNode implementation using Docker. I was trying to publish a layer from a GeoPackage Store type and when i click on Compute from data or save the layer i get this error message aused by: java.io.IOException: Error occured calculating bounds for City_Boundary at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1305) at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:508) ... 134 more Caused by: java.io.IOException: org.locationtech.jts.io.ParseException: Unknown WKB type 12 at org.geotools.geopkg.geom.GeoPkgGeomReader.read(GeoPkgGeomReader.java:175) at org.geotools.geopkg.geom.GeoPkgGeomReader.get(GeoPkgGeomReader.java:108) at org.geotools.geopkg.GeoPkgDialect.geometry(GeoPkgDialect.java:184) at org.geotools.geopkg.GeoPkgDialect.geometry(GeoPkgDialect.java:188) at org.geotools.geopkg.GeoPkgDialect.decodeGeometryEnvelope(GeoPkgDialect.java:132) at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1291) ... 135 more Caused by: org.locationtech.jts.io.ParseException: Unknown WKB type 12 at org.locationtech.jts.io.WKBReader.readGeometry(WKBReader.java:235) at org.locationtech.jts.io.WKBReader.read(WKBReader.java:156) at org.geotools.geopkg.geom.GeoPkgGeomReader.read(GeoPkgGeomReader.java:171) ... 140 more Can someone guide me on how to debug this issue ? Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here<http://www.mimecast.com/products/>.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users