从多边形中的随机点获取坐标,并将其与qGIS中的shapefile同步
在QGIS中,我有一个shapefile,其中包含一个国家的行政边界多边形。我需要在多边形内添加六个随机点。
我可以从随机点功能中获取坐标并将其与多边形同步吗?
例如:我拥有包含“ country_name”
和“ state_name”
的“ code>” 的shapefile。然后,我为每个州生成六个随机点。之后,我想要一个导出的 .xlsx 文件,其中包含
“ country_name”
,“ state_name”
,“ lat_long_1”
,“ lat_long_2”
,“ lat_long_3”
,“ lat_long_4”
,“ lat_long_5”
,“
每个“ lat_long”
均符合其状态。
我应该怎么办?
In QGIS, I have a shapefile that contains a polygon of administrative boundaries in a country. I need to add six random points inside the polygon.
Can i get the coordinates from random points feature and sync it with my polygons?
Ex: I have US administrative boundaries shapefile that contains "country_name"
and "state_name"
. Then, i generate six random points for every states. Afterward, i want an exported .xlsx file which contains "country_name"
, "state_name"
, "lat_long_1"
, "lat_long_2"
, "lat_long_3"
, "lat_long_4"
, "lat_long_5"
,"lat_long_6"
which every "lat_long"
is accordance with its state.
What should i do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在矢量/研究工具下使用“多边形”功能中的“随机点”。
之后,使用创建点,您可以在Vector/Data Management工具下使用“按位置”函数使用“连接属性”。
You can use 'Random Points Inside Polygons' functions under Vector/Research Tools.
After that with created points, you can use 'Connect Attributes by Location' functions under Vector/Data Management Tools.