网友投稿 | 设为首页 | 加入收藏
1/1页1 跳转到查看:5292
回复该主题 发新话题
键盘左右键可以进行前后翻页操作
帮助

worldwind中怎么加载geoserver发布的地图呀?需要修改哪几个配置文件?怎么修改?

worldwind中怎么加载geoserver发布的地图呀?需要修改哪几个配置文件?怎么修改?

worldwind中怎么加载geoserver发布的地图呀?需要修改哪几个配置文件?怎么修改?我在config.earth中添加了一个***wmslayer.xml文件,是仿照系统自带的BMNGWMSLayer.xml文件写的,但是加载不上,不知道为什么?xml文件如下:




<?xml version="1.0" encoding="UTF-8"?>
<!--Blue Marble Next generation 2004 + Bathymetry imagery, using the default month (May).-->
<!--$Id: BMNGWMSLayer.xml 1 2011-07-16 23:22:47Z dcollins $-->
<Layer version="1" layerType="TiledImageLayer">
    <DisplayName>USAWMSPlayer</DisplayName>
    <Service serviceName="OGC:WMS" version="1.1">
        <GetCapabilitiesURL>http://127.0.0.1:9000/geoserver/nurc/wms<;/GetCapabilitiesURL>
        <GetMapURL>http://127.0.0.1:9000/geoserver/nurc/wms<;/GetMapURL>
        <LayerNames>USA</LayerNames>
    </Service>
    <RetrievePropertiesFromService>true</RetrievePropertiesFromService>
    <!-- day month year hours:minutes:seconds timezone -->

    <DataCacheName>Earth/USA</DataCacheName>
    <ImageFormat>image/jpg</ImageFormat>
    <AvailableImageFormats>
        <ImageFormat>image/png</ImageFormat>
        <ImageFormat>image/jpg</ImageFormat>
    </AvailableImageFormats>
    <FormatSuffix>.jpg</FormatSuffix>
    <NumLevels count="19" numEmpty="0"/>
    <TileOrigin>
        <LatLon units="degrees" latitude="-90" l/>
    </TileOrigin>
    <LevelZeroTileDelta>
        <LatLon units="degrees" latitude="36" l/>
    </LevelZeroTileDelta>
    <TileSize>
        <Dimension width="512" height="512"/>
    </TileSize>
    <Sector>
        <SouthWest>
            <LatLon units="degrees" latitude="-90" l/>
        </SouthWest>
        <NorthEast>
            <LatLon units="degrees" latitude="90" l/>
        </NorthEast>
    </Sector>
    <ForceLevelZeroLoads>true</ForceLevelZeroLoads>
    <RetainLevelZeroTiles>true</RetainLevelZeroTiles>
    <UseTransparentTextures>false</UseTransparentTextures>
    <RetrievalTimeouts>
        <ReadTimeout>
            <Time units="milliseconds" value="30000"/>
        </ReadTimeout>
    </RetrievalTimeouts>
    <!-- The following lines are included just to show how to set the values to other than their defaults -->
    <MaxAbsentTileAttempts>2</MaxAbsentTileAttempts>
    <MinAbsentTileCheckInterval>1000</MinAbsentTileCheckInterval>
</Layer>
最后编辑cuidl 最后编辑于 2014-07-14 14:21:37

TOP

 

如下

worldwind.layersxml
   
<Layer href="config/Earth/tdt.xml" actuate="onLoad"/>
/Earth/tdt.xml
<?xml version="1.0" encoding="UTF-8"?>
<Layer version="1" layerType="TiledImageLayer">
<DisplayName>DOM</DisplayName>
<Service serviceName="OGC:WMS" version="1.3">
        <GetCapabilitiesURL>http://www.scgis.net.cn/imap/iMapServer/defaultRest/services/newtianditudom/WMS?</GetCapabilitiesURL>
        <GetMapURL>http://www.scgis.net.cn/imap/iMapServer/defaultRest/services/newtianditudom/WMS?</GetMapURL>
        <LayerNames>0</LayerNames>
    </Service>
<DataCacheName>Earth/tianditu</DataCacheName>
<FormatSuffix>.png</FormatSuffix>
<ImageFormat>image/png</ImageFormat>
<AvailableImageFormats>
        <ImageFormat>image/png</ImageFormat>
        <ImageFormat>image/jpg</ImageFormat>
    </AvailableImageFormats>
<Sector>
        <SouthWest>
            <LatLon units="degrees" latitude="-90" longitude="-180"/>
        </SouthWest>
        <NorthEast>
            <LatLon units="degrees" latitude="90" longitude="180"/>
        </NorthEast>
    </Sector>
    <!--Transparent textures must be enabled if any of the layers contain transparent regions in the above Sector.-->
    <UseTransparentTextures>true</UseTransparentTextures>
</Layer>

TOP

 
1/1页1 跳转到
回复该主题 发表新主题
  <<上一主题 | 下一主题>>

相关主题

swing的jpanel和jlabel显示在worldwind上面为什么不是透明的?而且拖动的时候走样.
worldwind控制3D模型移动编辑的问题
worldwind代理服务器问题
worldwind出错
如何控制WorldWind球体的转动速度?