马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
If you only have GEOTIFF and lost the TFW file, you can get it through the XDRX API function xdrx-geotiff->worldfile
Usage:
 - Command: (xdrx-geotiff->worldfile "D:\\Rectangle_#8.tif")
- "D:\\Rectangle_#8.tfw"
Open D:\\Rectangle_#8.tfw:
0.5971642835
0.0000000000
0.0000000000
-0.5971642835
13783278.1130216978
5143915.5115256160
The following function can determine whether an image file supports geographic information
 - Command: (xdrx-geotiff-isa "D:\\Rectangle_#8.tif")
- (1.37833e+07 5.14392e+06 0.597164 -0.597164 0.0 0.0)
Return:
1. X coordinate of the upper left corner of the image (geographic coordinates)
2. Y coordinate of the upper left corner of the image (geographic coordinates)
3. Actual geographic unit length of each pixel in the X direction
4. Actual geographic unit length of each pixel in the Y direction
5. X direction rotation angle
6. Y direction rotation angle
Get the maximum X and Y pixel coordinates of a geospatial image file
 - Command: (xdrx-tiff-rastersize "D:\\Rectangle_#8.tif")
- (30928 28017)
return:
1.X pixel
2.Y pixel
Get the number of bands in an image dataset
 - Command: (xdrx-geotiff-bandcount "D:\\Rectangle_#8.tif")
- 3
|