world-from-space/dynacrop
Composer 安装命令:
composer require world-from-space/dynacrop
包简介
SDK for accessing DynaCrop service
README 文档
README
This project is an SDK for DynaCrop service. For more information about the service, please refer to the documentation
Installation
This project using composer.
$ composer require world-from-space/dynacrop
Usage
require __DIR__ . '/vendor/autoload.php';
// Set up authorizations
DynaCropAuth::set_api_key("YOUR_API_KEY");
// Polygon coordinates in WTK format
$geom = 'POLYGON ((16.73123359680176 49.09308591395033, 16.73123359680176 49.092636274448836, 16.732692718505863 49.092608171844766, 16.7327356338501 49.093647957600226, 16.73123359680176 49.09308591395033))';
// Create new Polygon using geometry
$p = new Polygon($geom, 0.5);
// Wait till polygon is ready
$p->block_till_ready();
// Create new Rendering Request
$rr = new RenderingRequest($p->get_id(), "observation", "2020-01-01", "2020-05-01", "NDVI");
// Wait till rendering request is ready
$rr->block_till_ready();
// print results
print_r($rr->get_result());
// save colored tiff
$rr->save_image_color();
// save data tiff
$rr->save_image_raw();
// tile server url
echo $rr->get_tiles();
// print link to preview app
echo $rr->get_demo_url();
Who do I talk to?
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-06-13