remove(store, "doc1", ImmutableMultimap.of(TIME, 1001), false); add(store, "doc1", ImmutableMultimap.of(TIME, 1005, WEIGHT, 11.1, LOCATION, Geoshape.point(-48.0, 0.0), BOUNDARY, Geoshape.circle(-48.0, 0.0, 1.0)), false); final Geoshape multiPoint = Geoshape.geoshape(Geoshape.getShapeFactory().multiPoint().pointXY(60.0, 60.0).pointXY(120.0, 60.0).build()); add(store, "doc5", getDocument("A Full Yes", -100, -11.2, Geoshape.point(48.0, 8.0), multiPoint, Arrays.asList("10", "11", "12"), Sets.newHashSet("10", "11"), Instant.ofEpochSecond(400)), true); final Geoshape multiLine = Geoshape.geoshape(Geoshape.getShapeFactory().multiLineString().add(Geoshape.getShapeFactory().lineString().pointXY(59.0, 60.0).pointXY(61.0, 60.0))
protected Shape readMultiPoint(JSONParser parser) throws IOException, ParseException { assert (parser.lastEvent() == JSONParser.ARRAY_START); ShapeFactory.MultiPointBuilder builder = shapeFactory.multiPoint(); readCoordListXYZ(parser, builder); return builder.build(); }
ShapeFactory.MultiPointBuilder b = factory.multiPoint(); fillPoints(b, arr); return b.build();
/** * Parses a MULTIPOINT shape from the raw string -- a collection of points. * * <pre> * '(' coordinate (',' coordinate )* ')' * </pre> * * Furthermore, coordinate can optionally be wrapped in parenthesis. * * @see #point(State, ShapeFactory.PointsBuilder) */ protected Shape parseMultiPointShape(State state) throws ParseException { ShapeFactory.MultiPointBuilder builder = shapeFactory.multiPoint(); if (state.nextIfEmptyAndSkipZM()) return builder.build(); state.nextExpect('('); do { boolean openParen = state.nextIf('('); point(state, builder); if (openParen) state.nextExpect(')'); } while (state.nextIf(',')); state.nextExpect(')'); return builder.build(); }
lastShape = reader.readPoints(shpFactory.multiPoint()).build(); break;
ShapeFactory.MultiPointBuilder shapeBuilder = sf.multiPoint(); Collection<ShapePoint> shapePoints = gtfsData.getAllShapePoints(); if (shapePoints != null && !ignoreShapes && shapePoints.size() > 3) { ShapeFactory.MultiPointBuilder stopBuilder = sf.multiPoint(); Collection<Stop> stops = gtfsData.getAllStops(); for (Stop stop : stops) {