We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
JSTS 可以在浏览器中进行几何对象的并集。 JSTS 与 openlayers 库集成,并扩展了 openlayers 几何类(例如 OpenLayers.Geometry.Polygon),因此它们能够进行几何操作。示例:
如果您想在 JS 中进行服务器端几何操作,Geoscript JS 会很好。
JSTS can do unions of geometric objects in the browser. JSTS integrates with the openlayers library and it extends openlayers geometric classes (e.g. OpenLayers.Geometry.Polygon) so they are capable of geometric operations. Example:
Geoscript JS is nice if you want to do serverside geometric operations in JS.
我编写了空间查询 https://github.com/netshade/spatial_query 来做到这一点。
或者,您可以查看 http://geoscript.org/index.html ,这可能得到更好的支持比空间查询是。如果您决定查看 SQ,我会很高兴听到它是否适合您。
I wrote Spatial Query https://github.com/netshade/spatial_query to do just this.
Alternatively, you could check out http://geoscript.org/index.html , which is likely better supported than Spatial Query is. If you decide to check out SQ though, I'd be flattered to hear if it worked for you.
您可以扩展 OpenLayers 以支持此操作。我使用 OpenLayers 本机函数来实现此目的。尝试一下,也许您必须修复并自定义此代码。
You can extend OpenLayers to support this operation. I make this using OpenLayers native functions. Try this, maybe you must fix and customize this code.
您可以获取包含多边形的半径或矩形的查询结果,然后使用此处描述的技术筛选结果:http://msdn.microsoft.com/en-us/library/cc451895.aspx。该示例使用 bing 地图,但您可以使用您喜欢的任何地图服务轻松地使用相同的原理。
You can get query results for a radius or rectangle that includes your polygon, then filter the results using the technique described here: http://msdn.microsoft.com/en-us/library/cc451895.aspx. The example uses bing maps, but you could easily use the same principles using whatever mapping service you prefer.
你看过geoUtils吗?
我不确定它是否支持工会操作,但可能值得一试。
Did you look at geoUtils?
I am not sure whether it supports the union op, but might be worth giving a try.
如果您有可用的服务器,则可以运行 ESRI ArcGIS Server 10 并启动几何服务。通过 API(包括 REST)接口可以使用此功能。查看他们的帮助文档:SOAP SDK
If you have a server available, you can run the ESRI ArcGIS Server 10 and start a Geometry service. This has this functionality available through an API (including REST) interface. Look at their help documentation: SOAP SDK
您可以使用支持 JDBC 的 PostGIS DB。
请查看此处的示例:
http://postgis.refractions.net/docs/ch05.html#id2644717
:)
DSP
You cound use the PostGIS DB wich has support for JDBC.
Check here for an example:
http://postgis.refractions.net/docs/ch05.html#id2644717
:)
DsP
您真的需要在客户端执行此操作吗?联合是一项相当繁重的操作,最好在服务器端完成。
另一个可能有用的 API 是 ArcGIS Javascript API,尽管从我所看到的情况来看,我认为如果没有 ArcGIS Server,它不会进行联合: http://help.arcgis.com/en/webapi/javascript/arcgis/
Do you really need to do this on the client side? Union is a fairly heavy operation and might be better done on the server side.
Another API that may be useful is the ArcGIS Javascript API, although from what I can see I don't think it will do union without ArcGIS Server: http://help.arcgis.com/en/webapi/javascript/arcgis/