本文整理了Java中com.vividsolutions.jts.geom.Geometry.hashCode()
方法的一些代码示例,展示了Geometry.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.hashCode()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Geometry
类名称:Geometry
方法名:hashCode
[英]Gets a hash code for the Geometry.
[中]获取几何体的哈希代码。
代码示例来源:origin: opentripplanner/OpenTripPlanner
/**
* Hash the relevant features of this PointFeature for efficient use in HashSets, etc.
* PointFeatures are put in HashSets in the conveyal/otpa-cluster project.
*/
public int hashCode () {
return (int) (this.lat * 1000) + (int) (this.lon * 1000) +
(this.geom != null ? this.geom.hashCode() : 0) +
(this.id != null ? this.id.hashCode() : 0) +
this.properties.hashCode();
}
}
代码示例来源:origin: org.geotools/gt-render
public int hashCode() {
return geometry.hashCode();
}
代码示例来源:origin: com.rgi-corp/ori-core
@Override
public int hashCode(){
return this.preparedPolygon.getGeometry().hashCode()+(int)this.scalar;
}
内容来源于网络,如有侵权,请联系作者删除!