src/Provider/GeoTIFF/SRTM1ArcSecondProvider.php 1 location
|
@@ 61-67 (lines=7) @@
|
| 58 |
|
* @param float $longitude |
| 59 |
|
* @return float[] array(row, col) |
| 60 |
|
*/ |
| 61 |
|
protected function getExactRowAndColFor($latitude, $longitude) |
| 62 |
|
{ |
| 63 |
|
return $this->ResourceReader->getExactRowAndColFor( |
| 64 |
|
abs($this->CurrentTileLatitude + 1 - $latitude) / static::DEGREES_PER_TILE, |
| 65 |
|
abs($longitude - $this->CurrentTileLongitude) / static::DEGREES_PER_TILE |
| 66 |
|
); |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|
src/Provider/GeoTIFF/SRTM4Provider.php 1 location
|
@@ 102-108 (lines=7) @@
|
| 99 |
|
* @param float $longitude |
| 100 |
|
* @return float[] array(row, col) |
| 101 |
|
*/ |
| 102 |
|
protected function getExactRowAndColFor($latitude, $longitude) |
| 103 |
|
{ |
| 104 |
|
return $this->ResourceReader->getExactRowAndColFor( |
| 105 |
|
abs($this->CurrentTileLatitude - abs($latitude)) / static::DEGREES_PER_TILE, |
| 106 |
|
abs($this->CurrentTileLongitude - $longitude) / static::DEGREES_PER_TILE |
| 107 |
|
); |
| 108 |
|
} |
| 109 |
|
} |
| 110 |
|
|