地理信息TIF文件转出TFW
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
本帖最后由 zhong2013 于 2025-3-11 21:07 编辑
给楼主提个建议,从照片文件中提取位置信息,现在手机的照片都有位置信息,在属性中是EXIF格式的经纬度,vlisp想直接提取到这个位置数据好像有点麻烦。API中可以增加这个功能么,有了经纬度就可以把照片插入到图上了。
页:
[1]