GeoWebCache, установка и настройка
Добавлено: 24 май 2009, 21:26
Геоинформационные системы (ГИС) и Дистанционное зондирование Земли
https://gis-lab.info/forum/
Код: Выделить всё
<zoomStart>0</zoomStart>
<zoomStop>10</zoomStop>
Код: Выделить всё
<resolutions>
<double>17.638880</double>
<double>8.8194397</double>
<double>3.5277759</double>
<double>1.7638879</double>
<double>0.7055552</double>
<double>0.3527776</double>
<double>0.1763888</double>
</resolutions>
Проблему решили в 1.2.0-alphaMavka писал(а):Работа со списком разрешений [resolutions]. Столкнулся с неприятной проблемой.
Код: Выделить всё
http://localhost:8080/geowebcache/service/wms?tiled=true
Код: Выделить всё
INFO | jvm 1 | 2013/01/18 12:03:07 | 18 янв 12:03:07 INFO [storage.DefaultStorageFinder] - INFO | jvm 1 | 2013/01/18 12:03:07 | 18 янв 12:03:07 INFO [config.XMLConfiguration] - Will look for geowebcache.xml in 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\geowebcache'
INFO | jvm 1 | 2013/01/18 12:03:07 | 18 янв 12:03:07 INFO [config.GetCapabilitiesConfiguration] - Constructing from url http://******************?map=e:/map/vector/STP Kraya/Project/test.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
INFO | jvm 1 | 2013/01/18 12:03:08 | 18 янв 12:03:08 ERROR [config.GetCapabilitiesConfiguration] - Unable to retrieve or parse Capabilities document.
INFO | jvm 1 | 2013/01/18 12:03:08 | 18 янв 12:03:08 ERROR [layer.TileLayerDispatcher] - Failed to add layers from http://***********?map=e:/map/vector/STP Kraya/Project/test.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
INFO | jvm 1 | 2013/01/18 12:03:08 | org.geowebcache.config.ConfigurationException: Unable to connect to http://**************?map=e:/map/vector/STP Kraya/Project/test.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.geowebcache.config.GetCapabilitiesConfiguration.getTileLayers(GetCapabilitiesConfiguration.java:135)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.geowebcache.config.GetCapabilitiesConfiguration.initialize(GetCapabilitiesConfiguration.java:401)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:189)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatcher.java:164)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.geowebcache.layer.TileLayerDispatcher.<init>(TileLayerDispatcher.java:61)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at java.lang.reflect.Constructor.newInstance(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
INFO | jvm 1 | 2013/01/18 12:03:08 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
INFO | jvm 1 | 2013/01/18 12:03:08 | at javax.servlet.GenericServlet.init(GenericServlet.java:241)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:736)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.Server.doStart(Server.java:224)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.start.Main.invokeMain(Main.java:194)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.start.Main.start(Main.java:534)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.start.Main.start(Main.java:441)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.start.Main.main(Main.java:119)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.mortbay.jetty.win32service.JettyServiceWrapperListener.start(JettyServiceWrapperListener.java:47)
INFO | jvm 1 | 2013/01/18 12:03:08 | at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
Код: Выделить всё
<?xml version="1.0" encoding="WINDOWS-1251"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd">
<!-- end of DOCTYPE declaration -->
-<WMT_MS_Capabilities version="1.1.1">
<!-- MapServer version 6.0.3 (MS4W 3.0.6) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
-<Service> <Name>OGC:WMS</Name> <Title>STPKraya</Title> <Abstract>STPZabaykalskogoKraya</Abstract> <OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/> <ContactInformation> </ContactInformation> </Service> -<Capability> -<Request> -<GetCapabilities> <Format>application/vnd.ogc.wms_xml</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </GetCapabilities> -<GetMap> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>image/gif</Format> <Format>image/png; mode=8bit</Format> <Format>application/x-pdf</Format> <Format>image/svg+xml</Format> <Format>image/tiff</Format> <Format>application/vnd.google-earth.kml+xml</Format> <Format>application/vnd.google-earth.kmz</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </GetMap> -<GetFeatureInfo> <Format>text/html</Format> <Format>application/vnd.ogc.gml</Format> <Format>text/plain</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </GetFeatureInfo> -<DescribeLayer> <Format>text/xml</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </DescribeLayer> -<GetLegendGraphic> <Format>image/png</Format> <Format>image/jpeg</Format> <Format>image/gif</Format> <Format>image/png; mode=8bit</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </GetLegendGraphic> -<GetStyles> <Format>text/xml</Format> -<DCPType> -<HTTP> -<Get><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Get> -<Post><OnlineResource xlink:href="http://****/cgi-bin/mapserv.exe?map=e:/map/vector/STP Kraya/Project/test.map&" xmlns:xlink="http://www.w3.org/1999/xlink"/></Post> </HTTP> </DCPType> </GetStyles> </Request> -<Exception> <Format>application/vnd.ogc.se_xml</Format> <Format>application/vnd.ogc.se_inimage</Format> <Format>application/vnd.ogc.se_blank</Format> </Exception> <VendorSpecificCapabilities/> <UserDefinedSymbolization RemoteWFS="0" UserStyle="1" UserLayer="0" SupportSLD="1"/> -<Layer> <Name>TestWMSMap</Name> <Title>STPKraya</Title> <Abstract>STPZabaykalskogoKraya</Abstract> <SRS>EPSG:4326</SRS> <SRS>EPSG:900913</SRS> <LatLonBoundingBox maxy="59" maxx="123" miny="49" minx="107"/> <BoundingBox maxy="59" maxx="123" miny="49" minx="107" SRS="EPSG:4326"/> -<Layer cascaded="0" opaque="0" queryable="1"> <Name>test</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this context. -->
<Title>test</Title> <LatLonBoundingBox maxy="57.8964" maxx="117.99" miny="49.5165" minx="108.551"/> <BoundingBox maxy="57.8964" maxx="117.99" miny="49.5165" minx="108.551" SRS="EPSG:4326"/> </Layer> </Layer> </Capability> </WMT_MS_Capabilities>
Код: Выделить всё
http://localhost:8080/geoserver/gwc/demo
Код: Выделить всё
http://localhost:8080/geoserver/gwc/demo/cite:ru_boundary-polygon?gridSet=EPSG:4326&format=image/jpeg
Код: Выделить всё
http://localhost:8080/geoserver/cite/wms?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities