简体   繁体   English

将wms和wfs与osmdroid或任何其他基于Java的开源Java库一起使用

[英]using wms and wfs with with osmdroid or any other opensource java based library

I was asked to develop an android map application which uses wms-wfs source from geoserver. 我被要求开发一个使用来自geoserver的wms-wfs源的android地图应用程序。

in order to be more clear I want to accomplish 为了更清楚我想完成

  1. send a wms 'getmap' request then get an image then append it to the mapview as an overlay. 发送wms“ getmap”请求,然后获取图片,然后将其作为叠加层添加到mapview中。
  2. when wms overlay is touched(I will take touch point's x and y values) then send a 'getfeatureinfo' request including x and y to geoserver. 当触摸wms叠加层时(我将获取接触点的x和y值),然后向Geoserver发送包括x和y的“ getfeatureinfo”请求。 Geoserver will look for the geometry whose coordinate corresponds to users' touch point. Geoserver将寻找其坐标对应于用户接触点的几何。 if there is a geometry, geoserver will send an xml file, 如果有几何图形,则geoserver将发送一个xml文件,
  3. get xml response(either kml or an xml file I'm not sure about difference) then parse this xml file to get geometry's info which is at touch point. 获取xml响应(kml或我不确定差异的xml文件),然后解析该xml文件以获取处于接触点的几何图形信息。 This xml may include this info 此xml可能包含此信息

    • geographical points (this may be a point, a road, a poligone or a multipoligone... 地理点(这可能是一个点,一条道路,一个警戒线或一个多目标...
    • geometry's display name(city name, raod name etc) 几何图形的显示名称(城市名称,道路名称等)
  4. create appropriate geometry depending on this xml file. 根据此xml文件创建适当的几何。

    I know I need too much help. 我知道我需要太多帮助。 Thanks for any reply(I explain may way for anyone new in this area maybe the question can help) 谢谢您的答复(我向这个领域的任何新人解释可能的方式,也许这个问题可以帮助您)

By the way I have found some resources during this time. 顺便说一下,我在这段时间内找到了一些资源。 They're said to support wms, wfs services. 据说它们支持wms,wfs服务。 Let me share them: 让我分享一下:

  • nutiteq which is a commercial library nutiteq这是一个商业图书馆
  • openscales which is an actionscript based library openscales是基于动作脚本的库
  • mapsforge about which I couldn't find any example 我找不到任何示例的mapsforge

Not exactly sure what you are looking for above, but it would help if you could show some of what you have tried / used, and exactly where you are having problems. 不确定上面的内容,但是如果可以显示您尝试过/使用过的内容以及出现问题的确切位置,则将有所帮助。 To be helpful, here are the results of my googling: 为了提供帮助,以下是我的谷歌搜索结果:

  1. Look here for a simple KML Parser example for Android: http://www.java2s.com/Open-Source/Android/android-core/platform-sdk/com/android/ddmuilib/location/KmlParser.java.htm 在此处查找适用于Android的简单KML解析器示例: http : //www.java2s.com/Open-Source/Android/android-core/platform-sdk/com/android/ddmuilib/location/KmlParser.java.htm

  2. Here is an example of XML parsing on Android: http://www.warriorpoint.com/blog/2009/07/19/android-simplified-source-code-for-parsing-and-working-with-xml-data-and-web-services-in-android/ 这是在Android上进行XML解析的示例: http : //www.warriorpoint.com/blog/2009/07/19/android-simplified-source-code-for-parsing-and-working-with-xml-data-和Android中的网络服务/

  3. Here is a tutorial on mapview on Android: https://developers.google.com/maps/documentation/android/v1/hello-mapview 这是Android上关于Mapview的教程: https : //developers.google.com/maps/documentation/android/v1/hello-mapview

Please update you question with more details and I expect you will get a better response. 请用更多详细信息更新您的问题,我希望您会得到更好的答复。

Take a look at Esri's ArcGIS SDK for Android. 看看Esri的Android版ArcGIS SDK。 It has support for rendering WMS layers (not sure how it stands with more advanced stuff though): 它支持渲染WMS图层(尽管不确定如何与更高级的内容配合使用):

ArcGIS Runtime SDK for Android 适用于Android的ArcGIS Runtime SDK

暂无
暂无

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

相关问题 如何使用javacv或任何其他Java库检测图像中的矩形? - how to detect rectangles in an image using javacv or any other java library? 对帐-是否有任何基于Java的库? - Reconcillation - any java based library? 是否有一个开源java库与图像扫描仪连接? - Is there an opensource java library to interface to an image scanner? 是否有任何简单的Wiki解析开源Java服务? - Is there any simple wiki parsing opensource java service? 有没有办法在桌面应用程序窗口中使用Java或任何其他库获取“控制视图”的所有“属性”? - Is there any way to get all “properties” of “control view” in desktops application window using Java or any other library? 是否有可用的开源“ MSWord doc to PDF”转换库 - Is there any opensource “MSWord doc to PDF” convert library available 使用iText /任何其他库使用现成数据通过Java(Web应用程序)生成PDF报告 - Generate PDF reports through Java(web applications) using iText/ any other library using ready made data Opensource库将java对象的树保存到db或file - Opensource library to save tree of java objects to db or file 是否有任何可产生良好结果的.NET / JAVA免费或开源SPAM检测器? - Are there any .NET/ JAVA free or opensource SPAM detectors that yield good results? Java:使用Ycad / Kabeja或任何其他类似的库来解析dxf文件 - Java: parse dxf file using Ycad / Kabeja or any other simmilar library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM