Commit bf55bf4
Flatten geometry to 2D before writing GeoPackage
Sites with an elevation produce 3D point geometry ([lon, lat, elev]).
GeoServer's GeoPackage reader then fails computing bounds:
MismatchedDimensionException: Argument "WGS 84" has 3 dimensions, while 2 was expected.
Call force_2d() on the GeoDataFrame before to_file(GPKG). Elevation is
still carried as an attribute; only the geometry dimensionality changes.
The GeoJSON product on GCS is unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a1df53d commit bf55bf4
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
| |||
0 commit comments