net.fortuna.ical4j.model.property.Geo.getLatitude()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(108)

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

Geo.getLatitude介绍

暂无

代码示例

代码示例来源:origin: org.bedework/bw-ical4j-cl

/**
 * {@inheritDoc}
 */
public final String getValue() {
  return String.valueOf(getLatitude()) + ";"
      + String.valueOf(getLongitude());
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-ical

@Override
 public void emitValue(final JsonGenerator jgen,
            final Property prop) throws Throwable {
  final Geo p = (Geo)prop;
  jgen.writeStartArray();
  jgen.writeNumber(p.getLatitude());
  jgen.writeNumber(p.getLongitude());
  jgen.writeEndArray();
 }
}

代码示例来源:origin: org.bedework.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  return String.valueOf(getLatitude()) + ";"
      + String.valueOf(getLongitude());
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  return String.valueOf(getLatitude()) + ";"
      + String.valueOf(getLongitude());
}

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

/**
 * {@inheritDoc}
 */
public final String getValue() {
  return String.valueOf(getLatitude()) + ";"
      + String.valueOf(getLongitude());
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  return String.valueOf(getLatitude()) + ";"
      + String.valueOf(getLongitude());
}

代码示例来源:origin: apache/marmotta

private void createLocation(Resource uri, URI prop, Geo geo) throws RDFHandlerException, RDFParseException {
  Resource r_location = createBNode();
  Resource t_adr = createURI(NS_GEO + "Point");
  URI p_type     = createURI(NS_RDF + "type");
  rdfHandler.handleStatement(createStatement(r_location,p_type,t_adr));
  URI p_latitute = createURI(NS_GEO+"latitude");
  URI p_longitude = createURI(NS_GEO+"longitude");
  URI t_decimal   = createURI("http://www.w3.org/2001/XMLSchema#double");
  if(geo.getLatitude() != null) {
    Literal v_latitude = createLiteral(geo.getLatitude().toPlainString(),null,t_decimal);
    rdfHandler.handleStatement(createStatement(r_location,p_latitute,v_latitude));
  }
  if(geo.getLongitude() != null) {
    Literal v_longitude = createLiteral(geo.getLongitude().toPlainString(), null, t_decimal);
    rdfHandler.handleStatement(createStatement(r_location,p_longitude,v_longitude));
  }
  rdfHandler.handleStatement(createStatement(uri,prop,r_location));
}

代码示例来源:origin: org.bedework/bw-util2-calendar

GeoPropType g = new GeoPropType();
g.setLatitude(geo.getLatitude().floatValue());
g.setLatitude(geo.getLongitude().floatValue());
return of.createGeo(g);

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-ical

BwGeo geo = new BwGeo(g.getLatitude(), g.getLongitude());
if (chg.changed(pi, ev.getGeo(), geo)) {
 ev.setGeo(geo);

相关文章