question: private void addFeature ( JsonNode feature , int index ) { PointFeature feat = null ; try { feat = PointFeature . fromJsonNode ( feature ) ; } catch ( EmptyPolygonException e ) { LOG . warn ( "Empty MultiPolygon, skipping." ) ; return ; } catch ( UnsupportedGeometryException e ) { LOG . warn ( e . message ) ; return ; } if ( feat == null ) { return ; } addFeature ( feat , index ) ; }
target:  Add one GeoJSON feature to this FreeFormPointSet from a Jackson node tree. com.bedatadriven.geojson only exposed its streaming Geometry parser as a public method. I made its tree parser public as well. Geotools also has a GeoJSON parser called GeometryJson (which OTP wraps in GeoJsonDeserializer) but it consumes straight text, not a Jackson model or streaming parser.