Hi,

I've noticed that the latest version of the gt-geojson-core module fails with 
an exception when you convert the a JTS geometry to a JsonNode:

Caused by: tools.jackson.core.exc.StreamWriteException: 
`tools.jackson.databind.node.TreeBuildingGenerator` does not support 
`writeNumber(String)`, must write Numbers as typed
at [No location information]
at 
tools.jackson.core.JsonGenerator._constructWriteException(JsonGenerator.java:2455)
at 
tools.jackson.core.JsonGenerator._constructWriteException(JsonGenerator.java:2459)
at 
tools.jackson.databind.node.TreeBuildingGenerator.writeNumber(TreeBuildingGenerator.java:449)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writeNumber(GeometrySerializer.java:237)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writePointCoords(GeometrySerializer.java:226)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writeLineStringCoords(GeometrySerializer.java:200)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writePolygonCoordinates(GeometrySerializer.java:187)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writePolygon(GeometrySerializer.java:180)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.writeGeometry(GeometrySerializer.java:81)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.serialize(GeometrySerializer.java:75)
at 
com.bedatadriven.jackson.datatype.jts.serialization.GeometrySerializer.serialize(GeometrySerializer.java:55)
at 
tools.jackson.databind.ser.SerializationContextExt._serialize(SerializationContextExt.java:456)
at 
tools.jackson.databind.ser.SerializationContextExt.valueToTree(SerializationContextExt.java:194)
at tools.jackson.databind.ObjectMapper.valueToTree(ObjectMapper.java:1387)

It was a pretty simple fix, so I opened a PR for it: 
https://github.com/geotools/geotools/pull/5652

I wanted to also create a Jira ticket, but I wasn't able to. I suspect I don't 
have the permission.

I want to follow the contribution guidelines as much as possible so I would 
like to know how I can move this PR forward.

Many thanks.

--
  Leonard Ehrenfried
  [email protected] - https://leonard.io
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to