Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 162 | All time: 8,768 This week: 206![]() |
Version | License | PHP version | Categories | |||
esrigrid 1.0.0 | GNU General Publi... | 5.2 | PHP 5, Geography, Parsers |
Description | Author | |||||||||||||||||||||||
This class can parse Esri Grid ASCII GIS files. Innovation Award
|
|
# Esri ARC/INFO ASCII GRID reader Designed to handle large files. Tested with SRTM 90m Digital Elevation Data: http://srtm.csi.cgiar.org/. ## Usage ### Single tile handling ```php <?php use infojunkie\EsriGrid; $max = -99999; $min = 100000; $file = new GridFile('test_dem1.txt'); $grid = $file->getGridFromPoints(0, 0, 140, 230, 'calc_stats'); echo "max: $max, min: $min\n"; var_dump($grid); function calc_stats($x, $y, $elevation) { global $max, $min; echo "$x, $y: $elevation\n"; if (!is_null($elevation)) { $max = max($max, $elevation); $min = min($min, $elevation); } } ?> ``` ### Multiple tile handling ```php <?php use infojunkie\EsriGrid; $files = new GridFiles(array( 'test_dem1.txt', 'test_dem2.txt', 'test_dem3.txt', 'test_dem4.txt', 'test_dem5.txt', 'test_dem6.txt', )); $grid = $files->getGridFromPoints(175, 225, 325, 675, 'calc_stats'); echo "max: $max, min: $min\n"; var_dump($grid); ?> ``` |
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Doc. | Auxiliary data |
![]() |
/ | lib | / | infojunkie | / | EsriGrid |
File | Role | Description |
---|---|---|
![]() |
Class | Auxiliary script |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | tests |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | tests | / | data |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Documentation |
![]() ![]() |
Data | Documentation |
![]() ![]() |
Data | Documentation |
![]() ![]() |
Doc. | Documentation |
![]() ![]() |
Data | Documentation |
![]() ![]() |
Data | Documentation |
![]() |
/ | tests | / | unit | / | lib | / | infojunkie | / | EsriGrid |
File | Role | Description |
---|---|---|
![]() ![]() |
Test | Unit test script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.