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