简体   繁体   English

如何在距海岸线固定距离处找到点(纬度,经度)?

[英]How to find points(latitude, longitude) at a fixed distance from the coast line?

I have latitude, longitude and geohash data for some places in a city near some sea(ex. Miami).我有某个靠近大海的城市(例如迈阿密)中某些地方的纬度、经度和地理散列数据。 I want to know which of these places are near the coast line(lets say within 100 m of the coastline).我想知道这些地方中哪些靠近海岸线(比如在海岸线 100 m 内)。 How can I approach this problem?我该如何解决这个问题?

Data I have : Name of the place, latitude of the place, longitude of the place, geohash of the place, global coastline data(shape file, but this is not accurate)我拥有的数据:地点名称、地点纬度、地点经度、地点地理哈希、全球海岸线数据(形状文件,但这不准确)

Approach Tried : I downloaded the coastline data from here but this data is not very accurate.尝试过的方法:我从这里下载了海岸线数据,但这个数据不是很准确。 When I plot the shape file along with the lat, long of my original places data, I found that many places are lying outside the shorelines which is because the shorelines have been approximated by line segments as we zoom into the map(check the image attached).当我将形状文件与经纬度一起绘制时,我的原始位置数据的长度,我发现许多地方都位于海岸线之外,这是因为当我们放大地图时,海岸线已被线段近似(检查附加的图像)。

Approach I am thinking of trying : I am thinking of finding all geohashes(level 6) that cut the shoreline and then if the place is present inside these geohashes, I will classify them as near-coast places.我正在考虑尝试的方法:我正在考虑找到切割海岸线的所有 geohashes(级别 6),然后如果该地点存在于这些 geohashes 内,我会将它们归类为近海岸地点。 Do you think this approach is good and will give desired results?你认为这种方法很好,会产生预期的结果吗? Also I am really sure how I am going to find the geohashes that cut the polygon.此外,我真的很确定我将如何找到切割多边形的 geohashes。

在此处输入图片说明

How big of a city is it?它有多大的城市? If you want a rought aproximation, you could first turn your wgs84 coordinates into an X,Y plane in UTM and then simply try to get an inequality by approximating the coastline to a straight line and figuring which side of the equation you want to keep.如果您想要粗略近似,您可以首先将 wgs84 坐标转换为UTM 中的 X、Y 平面,然后通过将海岸线近似为直线并确定要保留的方程的哪一侧来简单地尝试获得不等式 You could do this with more lines to make a better representation of the coastline and then offset them by 100 meters to get a polygon您可以使用更多的线来更好地表示海岸线,然后将它们偏移 100 米以获得多边形

One way to approach this is if you already got the coastline as a collection of points as can be found on the internet as shp files for example.解决这个问题的一种方法是,如果您已经将海岸线作为可以在互联网上找到的点集合,例如 shp 文件。 Iterate over these points and calculate the distance to the place and take the minimum.迭代这些点并计算到该地点的距离并取最小值。 If it is less than 100m you got a match.如果它小于 100m,你就会匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不做循环的情况下找到给定经度和纬度的两点之间的距离? - How to find the distance between two points given longitude and latitude without do loop? 如何在python-error中找到在给定经度和纬度的两点之间的距离? - How to find the distance between two points given longitude and latitude in python-error? 基于纬度/经度的点列表之间的距离 - Distance between list of points based on latitude/longitude 具有纬度和经度的点集合之间的成对距离 - Pairwise distance between collections of points with latitude and longitude 使用距离矩阵在Python中计算经纬度点之间的距离 - Using distance matrix to calculate distance between points with latitude and longitude in Python 缩放 GeoJSON 以查找附近的纬度和经度点 - Scale GeoJSON to find latitude and longitude points nearby 如何快速估计两个(纬度、经度)点之间的距离? - How can I quickly estimate the distance between two (latitude, longitude) points? 计算GPS数据的距离[经度和纬度] - Calculate distance from GPS data [longitude and latitude] 根据纬度/经度获取两点之间的距离 - Getting distance between two points based on latitude/longitude 最小化两个经度点之间的距离? - Minimize distance between two latitude-longitude points?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM