id = idNode.asText();
Geometry jtsGeom = null;
JsonNode geom = feature.get("geometry");
if (geom != null && geom.getNodeType() == JsonNodeType.OBJECT) {
GeometryDeserializer deserializer = new GeometryDeserializer(); // FIXME
// lots
// of
// short-lived
// objects...
jtsGeom = deserializer.parseGeometry(geom);
}
PointFeature ret = new PointFeature(id);
ret.setGeom(jtsGeom);
ret.setAttributes(properties);