从多边形中的随机点获取坐标,并将其与qGIS中的shapefile同步

发布于 2025-02-07 12:19:17 字数 518 浏览 2 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欲拥i 2025-02-14 12:19:17

您可以在矢量/研究工具下使用“多边形”功能中的“随机点”。
之后,使用创建点,您可以在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文