GeoPackage doesn't set extent

Description

If you write a geopackage out using the following code no extent is set in the geopackage:

public class GeopackageWriter {

ogrinfo reports:

ogrinfo -al -so states.gpkg

INFO: Open of `states.gpkg'

using driver `GPKG' successful.

 

Layer name: states

Metadata:

DESCRIPTION=states

Geometry: Multi Polygon

Feature Count: 49

Extent: (0.000000, 0.000000) - (0.000000, 0.000000)

Layer SRS WKT:

GEOGCS["WGS 84",

DATUM["WGS_1984",

SPHEROID["WGS 84",6378137,298.257223563,

AUTHORITY["EPSG","7030"]],

AUTHORITY["EPSG","6326"]],

PRIMEM["Greenwich",0,

AUTHORITY["EPSG","8901"]],

UNIT["degree",0.0174532925199433,

AUTHORITY["EPSG","9122"]],

AUTHORITY["EPSG","4326"]]

FID Column = fid

 

Environment

ubuntu JDK1.8.0

Assignee

Unassigned

Reporter

Ian Turton

Triage

None

Components

Affects versions

Priority

Medium
Configure