org.opengis.filter.FilterFactory2.begunBy()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.opengis.filter.FilterFactory2.begunBy()方法的一些代码示例,展示了FilterFactory2.begunBy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilterFactory2.begunBy()方法的具体详情如下:
包路径:org.opengis.filter.FilterFactory2
类名称:FilterFactory2
方法名:begunBy

FilterFactory2.begunBy介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

public Object visit(BegunBy begunBy, Object extraData) {
  return getFactory(extraData)
      .begunBy(
          visit(begunBy.getExpression1(), extraData),
          visit(begunBy.getExpression2(), extraData),
          begunBy.getMatchAction());
}

代码示例来源:origin: geotools/geotools

public void testCapabilities_BegunBy() throws ParseException {
    Capabilities capabilities = new Capabilities();
    capabilities.addType(BegunBy.class);

    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
    dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
    Date date1 = dateFormat.parse("1970-07-19T01:02:03.456Z");
    Instant temporalInstant = new DefaultInstant(new DefaultPosition(date1));
    Date date2 = dateFormat.parse("1970-07-19T07:08:09.101Z");
    Instant temporalInstant2 = new DefaultInstant(new DefaultPosition(date2));
    Period period = new DefaultPeriod(temporalInstant, temporalInstant2);
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
    BegunBy filter = ff.begunBy(ff.literal(period), ff.property("dateAttr"));
    assertTrue("supports", capabilities.supports(filter));

    assertTrue("fullySupports", capabilities.fullySupports(filter));
  }
}

代码示例来源:origin: geotools/geotools

@Test
public void testAndTemporalBegunBy() throws Exception {
  final Instant start = instant("2016-01-01T00:00:00.000-0500");
  final Filter f =
      ff.and(
          ff.bbox("geom", -10, -10, 10, 10, null),
          ff.begunBy(ff.literal("someDate"), ff.literal(start)));
  final Envelope env = (Envelope) f.accept(visitor, null);
  assertEquals(new Envelope(-10, 10, -10, 10), env);
}

代码示例来源:origin: org.geotools/gt-main

public Object visit(BegunBy begunBy, Object extraData) {
  return getFactory(extraData).begunBy(visit(begunBy.getExpression1(), extraData), 
    visit(begunBy.getExpression2(), extraData));
}

代码示例来源:origin: locationtech/geogig

assertFullyUnsupported(ff.begins(nonMaterializedProp, dateLiteral));
assertFullySupported(ff.begunBy(dateProp, dateLiteral));
assertFullySupported(ff.begunBy(dateLiteral, dateProp));
assertFullyUnsupported(ff.begunBy(nonMaterializedProp, dateLiteral));

代码示例来源:origin: org.locationtech.geogig/geogig-datastore

assertFullyUnsupported(ff.begins(nonMaterializedProp, dateLiteral));
assertFullySupported(ff.begunBy(dateProp, dateLiteral));
assertFullySupported(ff.begunBy(dateLiteral, dateProp));
assertFullyUnsupported(ff.begunBy(nonMaterializedProp, dateLiteral));

相关文章