English 中文(简体)
Node.js 空间业务图书馆
原标题:Node.js library for geospatial operations

我正在拟定一份申请,其中我有像这样的地理空间多动:

var polygon = [{"lat": -19.939323, "lng": -43.928983},
               {"lat": -19.939747, "lng": -43.933103},
               {"lat": -19.947291, "lng": -43.93497},
               {"lat": -19.948138, "lng": -43.931451},
               {"lat": -19.943882, "lng": -43.930292}]

我会得到协调,以表示是否在多角。 我发现,在谷歌地图的地质测量图书馆,一个功能完全相同:containsLocation(point:LatLng, Polygon:Polygon)

但这必须是服务器,使用节点。 j. 是否有办法在节点上利用这一功能? 或者说,是否有一个好的图书馆来这样做?

问题回答

有几个节点单元,例如geolib:

提供基本地理空间业务的图书馆,如远距离计算、将精度坐标转换为性别模拟,反之亦然。

which have an equivalent function to determine coordinates relative to a polygon.

<>References

使用Turf Library进行任何地理空间业务。 Turf是一个开放源.的图书馆,允许你在浏览器和电线上进行空间操作。 js。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签