查询 lat/lng 行政区域的 shapefile

发布于 2024-08-16 08:19:13 字数 519 浏览 0 评论 0原文

我有我国各县的所有形状文件(shp、dbf...)。我有一个点列表(纬度/经度),需要引用每个点与相应的县。

我研究了这些 工具。他们可以读取、写入和编辑 SHP 文件,但似乎无法搜索其中的内容。我已将 DBF 文件转换为 MySQL(使用此),但这些数据只是元数据数据,而不是实际的多边形。

我们需要将 SHP 几何单位转换为 lat/lng 吗?有没有工具/lib/包可以做到这一点? 对地理知识来说相当陌生。 ;)

谢谢!干杯

I have the all the shapefiles (shp, dbf, ...) for my country's counties. I have a list of points (latitude/longitude) and need to reference each point with corresponding county.

I have looked into these tools and libraries. They can read, write and edit SHP files, but don't seem to be able to search stuff on them. I have converted the DBF file into MySQL (using this) but this data is just meta-data, not the actual polygons.

Do we need to convert SHP geometry units to lat/lng? Is there any tool/lib/package to do it?
Rather new to geo-stuff. ;)

thanks! cheers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

作妖 2024-08-23 08:19:13

形状文件定义一些矢量化的二维区域。加载文件后,问题就是简单的几何图形之一。您将需要使用一些通用几何库(或自定义代码)来确定特定点是否属于定义的形状。

The shape file defines some vectorized two dimensional area(s). Once you have the file loaded, the problem is one of simple geometry. You will need to use some generic geometry library (or custom code) to determine whether a particular point falls within the defined shapes.

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