On Tuesday, 07 June 2011, at 20:55:34 +0200,
Albrecht Dreß wrote:

> This feature is *really* nice indeed!  Would be interesting to know whether 
> is it would be possible to craft similar files for other services (I would be 
> interested e.g. in these ones <http://www.geoserver.nrw.de/gbdaten.html>).  
> Not sure if the license allows it, though.
> 
It seems the WMS servers in the URL above don't behave perfectly, because I
first tried to configure them as a normal WMS in JOSM, and although the
wizard correctly got all the server information, at run time, maps weren't
being downloaded, with several different (WMS protocol, it seems) errors.

I then configured a quick and dirty XML definition file for GDAL/QLGT, see
below, and seems to work ok, but the WMS servers are SOOO slow, that it
makes for a painful experience (lower than 20 KB/s download speed):
<GDAL_WMS>
        <Service name="WMS">
                <Version>1.1.1</Version>
                <ServerUrl>http://www.wms.nrw.de/geobasis/DOP?</ServerUrl>
                <SRS>EPSG:4326</SRS>
                <ImageFormat>image/jpeg</ImageFormat>
                <Layers>WMS</Layers>
        </Service>
        <DataWindow>
                <UpperLeftX>5.59334</UpperLeftX>
                <UpperLeftY>52.7998</UpperLeftY>
                <LowerRightX>9.74158</LowerRightX>
                <LowerRightY>50.0578</LowerRightY>
                <SizeX>1677721</SizeX>
                <SizeY>1677721</SizeY>
        </DataWindow>
        <BlockSizeX>200</BlockSizeX>
        <BlockSizeY>200</BlockSizeY>
        <Cache>
                <Path>/tmp/gdalwmscache</Path>
                <Depth>2</Depth>
                <Extension>.jpg</Extension>
        </Cache>
        <MaxConnections>2</MaxConnections>
        <Timeout>30</Timeout>
        <OfflineMode>false</OfflineMode>
        <AdviseRead>false</AdviseRead>
        <VerifyAdviseRead>true</VerifyAdviseRead>
        <ClampRequests>true</ClampRequests>
        <UserAgent>GDAL WMS driver 
(http://www.gdal.org/frmt_wms.html)</UserAgent>
</GDAL_WMS>

Most of the information in the XML above ("File -> Load Map" from QLGT) is
shown in the XML file the WMS server sends when asked for the
"getCapabilities - Anfrage" URL in the server list quoted above. SizeX and
SizeY is a trial and error game, as you should set them to the dimensions,
in pixels, of the whole area covered by the (in this case) aerial imaginery.

I started using a number ten times the one above (2^24, as good as any
other large number, works fine for WMS including high resolution images for
Spain), but QLGT "zoom x1" was too close to the ground, I think the number
above is a better starting point. Anyways, you can change those values at
will, and try which one fits you best.

The configuration for the rest of the URL in the original message should be
as simple as this one, just replacing the <ServerUrl> with the "URL des
Dienstes", plus a final question mark.

Remember to configure <Cache> to a large enough directory on disk, because
specially for this SLOOOW server will make a big difference. By the way,
yesterday I tried this remote WMS thing in a QLGT 1.1.1 Windows
installation, and works perfectly, even the caching mechanism. Using the
FWtools recommended at install time, and putting a Windows style <Path> .

Hope this helps. Regards,

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Linux Kubuntu 11.04 (Linux 
2.6.38-8-generic-pae)

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to