com.vividsolutions.jts.geom.Polygon.toString()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(98)

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

Polygon.toString介绍

暂无

代码示例

代码示例来源:origin: com.vividsolutions/jts

public String toString() {
  return getGeometry(new GeometryFactory()).toString();
}

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

public String toString() {
  return polygon.toString();
}

代码示例来源:origin: com.vividsolutions/jts-core

public String toString() {
  return getGeometry(new GeometryFactory()).toString();
}

代码示例来源:origin: osmlab/atlas

/**
 * Given a {@link Supplier}, retrieves {@link List} of {@link Polygon}s and applies given
 * {@link Predicate}, and returns results as {@link CountryBoundary}.
 *
 * @param supplier
 *            {@link Supplier} providing {@link List} of {@link Polygon}s
 * @param filter
 *            {@link Polygon} {@link Predicate} to be used as filter
 * @return Filtered {@link Polygon}s as {@link CountryBoundary}s
 */
private List<CountryBoundary> boundariesHelper(final Supplier<List<Polygon>> supplier,
    final Predicate<Polygon> filter)
{
  final MultiMap<String, Polygon> map = new MultiMap<>();
  final List<Polygon> geometry = supplier.get();
  geometry.stream().filter(filter).forEach(polygon ->
  {
    final String countryCode = getGeometryProperty(polygon, ISOCountryTag.KEY);
    if (countryCode == null)
    {
      logger.error("Null country code for {}", polygon.toString());
    }
    else
    {
      map.add(countryCode, polygon);
    }
  });
  return this.toCountryBoundaryList(map);
}

代码示例来源:origin: kiselev-dv/gazetteer

return "SRID=4326;" + polygon.toString();

代码示例来源:origin: osmlab/atlas

relationIdentifier, e.getMessage(), polygon.toString(), e);
return;

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

long size = indexTree.size();
Envelope env = SpatialOps.boundsOf(indexTree);
String bounds = env == null ? "null" : JTS.toGeometry(env).toString();
progress.setDescription(String.format("Updated index: %s, size: %,d, bounds: %s",
    id, size, bounds));

相关文章