/** * Reads a MultiPoint from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The multi point. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPoint readMultiPoint(Object input) throws IOException { return parse(new MultiPointHandler(factory), input); }
@Override public boolean endArray() throws ParseException, IOException { if (ordinates != null) { coordinates.add(coordinate(ordinates)); ordinates = null; } return true; }
@Override public boolean endObject() throws ParseException, IOException { if (coordinates != null) { value = factory.createMultiPoint(coordinates(coordinates)); coordinates = null; } return true; } }
@Override public boolean endObject() throws ParseException, IOException { if (coordinates != null) { value = factory.createMultiPoint(coordinates(coordinates)); coordinates = null; } return true; } }
@Override public boolean endArray() throws ParseException, IOException { if (ordinates != null) { coordinates.add(coordinate(ordinates)); ordinates = null; } return true; }
/** * Reads a MultiPoint from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The multi point. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPoint readMultiPoint(Object input) throws IOException { return parse(new MultiPointHandler(factory), input); }