随笔分类 -  WorldWind

WorldWind三维开发应用研究
wms服务器加载顺序
摘要:world wind wms服务器缓存路径:C:\ProgramData\Application Data\WorldWindDataread avList:{gov.nasa.worldwind.avkey.FileStoreLocation=C:\Users\cjl\Application Data\WorldWindData, gov.nasa.worldwind.avkey.Installed=false}write avList:gov.nasa.worldwind.avkey.FileStoreLocation=C:\ProgramData\Application Data\Wor 阅读全文
posted @ 2011-10-10 09:05 janehlp 阅读(870) 评论(1) 推荐(0)
如何通过服务发布影像及高程数据
摘要:1. 修改 worldwind-servers-0.6.28.15092\WEB-INF\web.xml文件:包括:gdal路径,服务器ip及端口号。2. 修改 worldwind-servers-0.6.28.15092\WEB-INF\wms.DataFileStore.xml文件:在readLocations和writeLocations节添加地图瓦片及高程存放的根目录。如:<readLocations> <location property="" wwDir="D:/WWJ/worldwind-wms/data" isInsta 阅读全文
posted @ 2011-10-10 09:01 janehlp 阅读(2244) 评论(2) 推荐(0)
如何在java版的world wind加载自己的高程数据
摘要:(1)复制worldwind.jar包中config\Earth\EarthElevationModelAsBil16.xml文件。(2)修改这个文件。(3)只需要将这个文件放到config/Earth文件夹下。(4)然后修改config\worldwind.xml里高程模型配置就行了:<Property name="gov.nasa.worldwind.avkey.EarthElevationModelConfigFile" value="config/Earth/EarthElevationModelAsBil16.xml"/> 阅读全文
posted @ 2011-10-10 09:00 janehlp 阅读(1287) 评论(2) 推荐(0)
如何在java版的world wind加载自己的影像数据
摘要:(1)复制worldwind.jar包中config\WMSLayerTemplate.xml文件。(2)修改这个文件。(3)只需要将这个文件放到config/Earth文件夹下(4)然后到config/worldwind.layers.xml里配置就行了配置文件修改注意事项:1)如何配置文件含有中文,xml文件编码必须设置成gb2312。<?xml version="1.0" encoding="gb2312"?>我用的是EditPlus,保存时选择如下编码方式:Chinese Simplified (GB2312) 9362)配置文件中的 阅读全文
posted @ 2011-10-10 08:57 janehlp 阅读(1529) 评论(2) 推荐(0)
WorldWind切图工具开发
摘要:WorldWind.net的切图可分为三种:(1)矢量数据。就像arcgis server缓存工具一样,可切成jpg或png格式。(2)影像数据。DSTile工具可切成jpg或png格式。(3)高程数据。DSTile工具可切成Bil格式。切图永远是麻烦的事。数据来源可能多种多样,工具有时也可能无法完成复杂的任务。采用arcmap地图文档来做为切图数据是再好不过了。任何arcmap能访问的数据都能通过mxd文档来切图。目前我已经完成一个切图工具版本。切1万张图,用了3个小时。该软件具有以下功能特点:(1)针对地图文档进行地图切割。(2)完全支持WorldWind的切片格式。(3)可通过 shap 阅读全文
posted @ 2011-04-04 02:23 janehlp 阅读(2109) 评论(9) 推荐(0)
解决WorldWind 无法正确浏览地图切片的问题
摘要:开发环境:WorldWind.net 1.4.1将影像数据切图,但只切割8-11层,0-7层没有切图。0-7层是行政界,因此不切图。配置文件图层数为12层。格式为png。运行WW,无法显示影像图片。跟踪调试WW,发现在QuadTile.cs的第318行代码:if (newTexture == null){ // At least one texture missing, wait for download WaitingForDownload = true;}这里如果没有发现影像纹理数据就将WaitingForDownload设成true,程序则一直等待数据下载。而不会跳过该级别的瓦片文件。解 阅读全文
posted @ 2011-03-27 15:35 janehlp 阅读(1125) 评论(2) 推荐(1)
成功解决 WorldWind1.4.1 无法浏览到自已发布的影像数据
摘要:PluginSDK项目中ImageStore.cs文件,从第236行代码开始看:-------------------------------------------------------------//List of cache structures to try, in order of preference string[] patternArray = { @"{0}\{1:D1}\{1:D1}_{2:D1}.{3}", @"{0}\{1:D4}\{1:D4}_{2:D4}.{3}" }; foreach(string relativePatt 阅读全文
posted @ 2011-03-14 17:19 janehlp 阅读(1757) 评论(0) 推荐(0)