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);
}

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 ) ; }
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 .
