Hi Richard,
here is the capabilities document.
Hope that it will be usefull.
Tim
-------- Original-Nachricht --------
Datum: Thu, 07 Jun 2007 14:16:18 -0700
Von: Richard Gould <[EMAIL PROTECTED]>
An: Tim Englich <[EMAIL PROTECTED]>
CC: [email protected]
Betreff: Re: [Geotools-gt2-users] Problems using the WMS-Datastore-Plugin
in Release 2.3.2
> Hi Tim,
>
> That sounds insane. Nothing should have changed between 2.2.x, 2.3.x,
> and 2.4.x in the WMS plug-in. At the very least the tests should be
> failing.
>
> Are you able to send me the capabilities document that is served up the
> mapserver?
>
> Richard
>
> On Thu, 2007-06-07 at 21:02 +0200, Tim Englich wrote:
> > Hello GeoToolers,
> >
> > today I switch to the GeoTools 2.3.2 Release.
> > At that Moment the usage of WebMapServices failes.
> >
> > The WMS I called is an UMN-Mapserver.
> > The WMS-Plugin calls the Capabilities and recived an
> Capabilities-Document of the Version 1.1.1
> >
> > When I inspect the Object I noticed that WebMapServer did not have
> Informations like Image-Types.
> > All Layers had no Name, Title, Abstract etc.
> >
> >
> > Here is the Code that fails:
> >
> > WebMapServer _wmServer = null;
> > try {
> > _wmServer = new WebMapServer(url);
> > } catch (Exception e) {
> > _wmServer = null;
> > log.error(e,e);
> > return false;
> > }
> >
> >
> > WMSCapabilities capabilities = _wmServer.getCapabilities();
> > List formats =
> > capabilities.getRequest().getGetMap().getFormats(); ==>
> This list ist Empty
> > Set _srs = WMSUtils.getSRSs(capabilities); ==> This Set
> is Empty
> >
> > Layer[] _layer = WMSUtils.getNamedLayers(capabilities); ==>
> > Array is
> Empty
> >
> >
> > Has anyone an Idea how I can fix this issue?
> >
> > thanks a lot
> > Tim
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
[
<!ELEMENT VendorSpecificCapabilities EMPTY>
]> <!-- end of DOCTYPE declaration -->
<WMT_MS_Capabilities version="1.1.1">
<!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG -->
<Service>
<Name>OGC:WMS</Name>
<Title>mainmap</Title>
<Abstract>mainmap</Abstract>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>application/vnd.ogc.wms_xml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>image/gif</Format>
<Format>image/jpeg</Format>
<Format>image/wbmp</Format>
<Format>image/tiff</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Post>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>text/html</Format>
<Format>application/vnd.ogc.gml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Post>
</HTTP>
</DCPType>
</GetFeatureInfo>
<DescribeLayer>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Post>
</HTTP>
</DCPType>
</DescribeLayer>
<GetLegendGraphic>
<Format>image/png</Format>
<Format>image/gif</Format>
<Format>image/jpeg</Format>
<Format>image/wbmp</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&"/></Post>
</HTTP>
</DCPType>
</GetLegendGraphic>
</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 SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/>
<Layer>
<Name>mainmap</Name>
<Title>mainmap</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="9.37576" miny="52.1521" maxx="10.2453" maxy="52.554" />
<BoundingBox SRS="EPSG:25832"
minx="525705" miny="5.77868e+006" maxx="584439" maxy="5.82273e+006" />
<Layer queryable="1" opaque="0" cascaded="0">
<Name>Gemeinden</Name>
<Title>Gemeinden</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Gemeinden&format=image/png"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Siedlungsgebiete</Name>
<Title>Siedlungsgebiete</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Siedlungsgebiete&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="249.451" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>OeffentlichefFlaechen</Name>
<Title>OeffentlichefFlaechen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=OeffentlichefFlaechen&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="149.671" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Waldflaechen</Name>
<Title>Waldflaechen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Waldflaechen&format=image/png"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Gruenflaechen</Name>
<Title>Gruenflaechen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Gruenflaechen&format=image/png"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Fluesse</Name>
<Title>Fluesse</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Fluesse&format=image/png"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Wasserflaechen</Name>
<Title>Wasserflaechen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Wasserflaechen&format=image/png"/>
</LegendURL>
</Style>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Industriegebiete</Name>
<Title>Industriegebiete</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Industriegebiete&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="124.726" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Flughaefen</Name>
<Title>Flughaefen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Flughaefen&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="124.726" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Hauptstrassen</Name>
<Title>Hauptstrassen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Hauptstrassen&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="149.671" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Bundesstrassen</Name>
<Title>Bundesstrassen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Bundesstrassen&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="399.122" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Eisenbahnen</Name>
<Title>Eisenbahnen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Eisenbahnen&format=image/png"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="249.451" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>Autobahnen</Name>
<Title>Autobahnen</Title>
<SRS>epsg:25832</SRS>
<LatLonBoundingBox minx="54.3076" miny="41.0492" maxx="54.4815" maxy="41.7941" />
<BoundingBox SRS="EPSG:25832"
minx="4.55334e+006" miny="5.78348e+006" maxx="4.62646e+006" maxy="5.8566e+006" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://iitchy.ivu-ag.com/cgi-bin/mapserv?map=D:\Programme\Mapserver\mapfiles\mapfiles\mainmap.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Autobahnen&format=image/png"/>
</LegendURL>
</Style>
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users