JSON encoding of 1-d linear geometries fails

Description

Try extending the Gsml32BoreholeWfsTest with this:

1 2 3 4 5 6 @Test public void testGetJSONContent() throws Exception { String path = "wfs?request=GetFeature&typename=gsmlbh:Borehole&outputFormat=json"; JSON json = getAsJSON(path, 200); print(json); }

and it will fail trying to encode a missing Y as NaN (which JSON cannot encode).

Thinking out loud, either the Y is encoded as "null" or maybe it's skipped, and a "srsDimension" property is added to the dimension to make evident that ordinates should be interpreted as a list of "x" values only (well, in this case they are depths, but whatever)

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure