搭建world wind WMS server(For world wind c# with LandSAT&SRTM30)之server配置

参考资料

How to install NASA World Wind WMS serverhttp://forum.worldwindcentral.com/showthread.php?t=24183

How to configure SRTM elevations in WorldWind WMS:

http://forum.worldwindcentral.com/showthread.php?t=21856

SRTM 30 on NASA WW WMS server and bathmetry datahttp://forum.worldwindcentral.com/showthread.php?p=83270#post83270

server配置

1.  安装GDAL

下载http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip,并解压至本地。

 

2.  下载NASA WMS Server

http://builds.worldwind.arc.nasa.gov/download_server.asp下载WMS Server。经测试worldwind-wms-0.6.14.12976.zip的版本可以很好的支持landsatsrtm,最新版(worldwind-wms-0.6.17.13403.zip)处理srtm有问题。

 

3.  下载并解压数据

LandSAT: http://worldwind28.arc.nasa.gov/public/BMNG-cache/landsat.tile.cache/

SRTM30: http://worldwind28.arc.nasa.gov/public/WorldWindWMS/srtm30.7z或另外四个包。
本地文件目录结构如下:
注意对于landsat,请把esta.xml放在根目录,不要放在每个单独的目录中。
 

4.  配置wms server

配置worldwind-wms-0.6.14.12976/WEB-INF/config.xml

l  @PORT@

l  @HOSTNAME@:@PORT@/wms?

l  http://@HOSTNAME@:@PORT@/wms?SERVICE=WMS&REQUEST=GetCapabilit ies

l  @GDALPATH@

l  @TEMPDIR@

l  < /mapsource> srtm添加在这里

 

配置好的config.xml文件内容如下

<wms-config>

    <server>

       

        <port>8085port>

       

        <online-resource>http://10.11.5.23:8085/wms?online-resource>

 

       

        <redirect>http://10.11.5.23:8085/wms?SERVICE=WMS&REQUEST=GetCapabilitiesredirect>

 

       

        <thread-pool-size>8thread-pool-size>

 

       

        <auto-discovery run="true" period="0"/>

 

 

       

        <gdal-path>C:/gdalwin32-1.6/bingdal-path>

        <work-directory>D:/worldwind-wms/Tempwork-directory>

 

    server>

 

 

    <security>

       

        <policy name="default" max="1000" period="86400"/>

        <policy name="unlimited" max="1000000" period="3600"/>

        <policy name="block" max="0" period="86400"/>

 

        <access policy="unlimited" range="10.0.0.1-10.0.0.124"/>

        <access policy="unlimited" ip="127.0.0.1"/>

 

        <access policy="block" ip="188.92.76.208"/>

        <access policy="block" range="188.92.76.0-188.92.76.255"/>

 

       

        <access policy="default" domain="any"/>

    security>

 

   

 

   

  <mapsource name="srtm30" title="SRTM30 Plus">

    <description keywords="srtm30 Elevation">srtm30 Elevation Datadescription>

    <root-dir>d:/worldwind-wms/data/srtm30root-dir>

    <class>gov.nasa.worldwind.servers.wms.generators.ElevationSrtm30class>

    <property name="gov.nasa.worldwind.avkey.MissingDataFlag" value="-9999" />

    <scale-hint min="1.0" max="0.008333330"/>

    <property name="gov.nasa.worldwind.avkey.LastUpdateKey" value="2009-10-06 14:40:00"/>

  mapsource>

wms-config>

 

配置worldwind-wms-0.6.14.12976/WEB-INF/DataFileStore.xml

server查找DataFileStore.xml中指定的目录,自动识别、添加layer。你需要在这个文件里面添加自己的数据路径<location property="" wwDir="your data folder path"/>landsat在这里添加

配置好的DataFileStore.xml文件内容如下:

xml version="1.0"?>

<dataFileStore>

    <readLocations>

       

       

        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindData"/>

        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindData"/>

        <location property="user.dir"  wwDir="WorldWindData"/>

        <location property="user.home" wwDir="WorldWindData"/>

       

        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>

        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>

        <location property="user.dir"  wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>

        <location property="user.home" wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>

        <location property="" wwDir="d:/worldwind-wms/data"/>

    readLocations>

    <writeLocations>

       

       

       

       

       

        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindData" create="true"/>

        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindData" create="true"/>

        <location property="java.io.tmpdir" wwDir="WorldWindData" create="true"/>

        <location property="" wwDir="d:/worldwind-wms/data"/>

    writeLocations>

dataFileStore>

 

5. 启动server

运行startWMS.bat启动wms server

 

6. 测试server

查询server的影像数据层
http://your-wms-server:port/wms?REQUEST=GetCapabilities
查询server的高程数据层http://your-wms-server:port/elev?REQUEST=GetCapabilities

你可能感兴趣的:(World,Wind)