public Double getDistance ( ) { if ( geomA == null || geomB == null ) { return null ; } if ( geomA . isEmpty ( ) || geomB . isEmpty ( ) ) { return 0.0 ; } if ( geomA . equals ( geomB ) ) { sameGeom = true ; } if ( maxDistanceFilter == null ) { computeMaxDistance ( ) ; } return maxDistanceFilter . getDistance ( ) ; }
Return the max distance