<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Dear Johann,<br><br>Thanks a lot for that answer. It helped so much that now I am able to get a picture from demis WorldMap server.<br><br>&gt; &gt; By the way, looking at puzzle gis, I noticed that the URL for the WMS server contains the "&amp;STYLES=null" argument, which makes the server to send a blank image.<br>&gt; &gt; Is it a way to get rid of this ?<br><br>I made small investigations about this. I put here a few links so that you can see what happens. I mainly used Puzzle GIS as example. There, when you create your distance source, the default server is<br><br>&nbsp;&nbsp; http://www2.demis.nl/WMS/wms.asp?wms=WorldMap<br><br>This is the approximate request that Puzzle-GIS cound have sent :<br><br>&nbsp;&nbsp; http://www2.demis.nl/wms/wms.asp?Service=WMS&amp;WMS=WorldMap&amp;Version=1.1.1&amp;Request=GetMap&amp;BBox=-20,-40,60,40&amp;SRS=EPSG:4326&amp;Width=400&amp;Height=400&amp;Layers=Countries&amp;Format=image/png&amp;STYLES=null<br><br>You can see that everything is black, but you get an image. Without the "null" now :<br><br>&nbsp;&nbsp; http://www2.demis.nl/wms/wms.asp?Service=WMS&amp;WMS=WorldMap&amp;Version=1.1.1&amp;Request=GetMap&amp;BBox=-20,-40,60,40&amp;SRS=EPSG:4326&amp;Width=400&amp;Height=400&amp;Layers=Countries&amp;Format=image/png&amp;STYLES=<br><br>And you will see (mainly green) colors.<br><br>Now if you do the same with the BlueMarble WMS :<br><br>&nbsp;&nbsp; http://www2.demis.nl/wms/wms.ashx?Service=WMS&amp;WMS=BlueMarble&amp;Version=1.1.1&amp;Request=GetMap&amp;BBox=-20,-40,60,40&amp;SRS=EPSG:4326&amp;Width=400&amp;Height=400&amp;Layers=Earth%20Image&amp;Format=image/png&amp;STYLES=<br><br>works perfectly well, as <br><br>&nbsp;&nbsp;
http://www2.demis.nl/wms/wms.ashx?Service=WMS&amp;WMS=BlueMarble&amp;Version=1.1.1&amp;Request=GetMap&amp;BBox=-20,-40,60,40&amp;SRS=EPSG:4326&amp;Width=400&amp;Height=400&amp;Layers=Earth%20Image&amp;Format=image/png&amp;STYLES=null<br><br>produces no image.<br><br>This may come from line 225 in AbstractGetMap.java, in which toString(styles) probably returns null when no style has been specified.<br><br>A workaround could be to call WMSMapLayer.setStyles(new String("")), but as WMSMapLayer extends AbstractMapLayer, which doesn't implement setStyles(), I don't know if it is possible. Does someone knows this ??<br><br>I found something else that could maybe be a display bug. Yesterday night I played with Puzzle GIS and were able to get maps from demis, and they displayed correctly on the screen. Now, I am currently developping on another computer. I finally succeeded to get a picture from demis with my test software, but the display was horrible. So I ran PuzzleGIS on the computer I am developping on, and the same "display bug" appears.<br><br>Here is a screenshot from Puzzle GIS. Is it possible that this is a display bug depending on the computer ?<br><br><img src="file:///C:/DOCUME%7E1/SBRUEG%7E1/LOCALS%7E1/Temp/moz-screenshot.png" alt="">http://img353.imageshack.us/img353/1622/puzzlegisbug.jpg<br><br>See you,<br><br>Sam<br><br><br /><hr />La Suisse reçoit plus d'espace! Votre disque dur virtuel de 25 Go:  <a href='http://skydrive.live.com' target='_new'>Windows Live avec SkyDrive!</a></body>
</html>