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

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

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

Geometry.hashCode介绍

[英]Gets a hash code for the Geometry.
[中]获取几何体的哈希代码。

代码示例

代码示例来源:origin: opentripplanner/OpenTripPlanner

  1. /**
  2. * Hash the relevant features of this PointFeature for efficient use in HashSets, etc.
  3. * PointFeatures are put in HashSets in the conveyal/otpa-cluster project.
  4. */
  5. public int hashCode () {
  6. return (int) (this.lat * 1000) + (int) (this.lon * 1000) +
  7. (this.geom != null ? this.geom.hashCode() : 0) +
  8. (this.id != null ? this.id.hashCode() : 0) +
  9. this.properties.hashCode();
  10. }
  11. }

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

  1. public int hashCode() {
  2. return geometry.hashCode();
  3. }

代码示例来源:origin: com.rgi-corp/ori-core

  1. @Override
  2. public int hashCode(){
  3. return this.preparedPolygon.getGeometry().hashCode()+(int)this.scalar;
  4. }

相关文章