User:Bomm

From OpenStreetMap

Jump to: navigation, search

Contents

Allgemeines

Deutsch

Ich beteilige mich beim Mappen des Gebiets um meinen Wohnort zwischen Schongau und Füssen, außerdem auf der Insel Giglio (Italien, Toskanischer Archipel).

Ich benutze ein Garmin GPSMAP76CSx. Ich bin Programmierer.

English

I participate in mapping the area around my home location between Schongau and Füssen (Germany, Bavaria) and on Giglio island (Italy, Tuscan Archipelago)

I use a Garmin GPSMAP76CSx. I'm a programmer.

JOSM-WMS-Plugin - Tiled WMS

Letzte Änderung der Test-Version / latest change of test version: 20:02, 9 August 2008 (UTC)

Deutsch

Weil das Laden der Landsat-Bilder mit dem JOSM-Plugin wmsplugin derzeit oft nicht funktioniert, arbeite ich an der Erweiterung des wmsplugin, so daß es "tiled WMS" entsprechend der NASA-Implementierung beherrscht. siehe http://onearth.jpl.nasa.gov/index.html und http://onearth.jpl.nasa.gov/tiled.html. Ich hoffe, daß es dadurch zuverlässiger funktionieren wird.

Ich habe eine Erweiterung implementiert und zum Testen bereitgelegt unter http://bodo-m.de/josm/. Dort gibt es eine geänderte Version des Plugins als .jar-Datei und die Quelltext-Änderungen und -Erweiterungen als Patch. Dieser Stand ist noch nicht im SVN.

Bei den WMS-Einstellungen habe ich zu Name und URL ein Feld "tiled" hinzugefügt, mit dem die Verwendung des Tiled-WMS erlaubt/verboten werden kann. Standard ist "ein", d.h. wenn der Server "tiled WMS" unterstützt, wird es verwendet.

Für jeden konfigurierten Server wird beim ersten Aufruf eine GetCapabilities-Abfrage durchgeführt. Wenn in der Antwort die Abfrage GetTileService vorgesehen ist, wird diese Abfrage ebenfalls ausgeführt und die Antwort analysiert.

Da der NPE-Maps-Server keine GetCapabilities nicht unterstützt, habe ich ein weiteres Konfigurationsfeld eingebaut, mit dem die GetCapabilities-Abfrage unterdrückt werden kann.

Wenn der Server "tiled WMS" unterstützt und die Verwendung in der Konfiguration erlaubt, werden anstelle einer normalen WMS-Abrage entsprechend dem aktuell gewählten Aussschnitt ein oder mehrere Kacheln (Tiles) nach vorgegebenen Zugriffsmustern angefordert. Dazu wird zuerst das Muster mit der am besten geeigneten Auflösung (pixel per degree) gesucht. Es wird die nächstgrößere verfügbare Auflösung gewählt, sofern eine solche vorhanden ist, andernfalls die größtmögliche Auflösung. Entsprechend dem gewählten Zugriffsmuster werden Abfragen für einzelne Kacheln im vorgegebenen Raster erzeugt, um den gewünschten Bereich komplett zu überdecken. Diese Kacheln werden als Einzel-Bilder der aktuellen Ebene (Layer) hinzugefügt. Die Auflösung der Bilder muß durch JOSM an die aktuelle Vergrößerung angepaßt werden, so wie dies bisher schon erforderlich ist, wenn der Darstellungs-Maßstab bei bereits geladenen WMS-Bildern verändert wird.

English

Since loading Landsat images with the JOSM plugin wmsplugin currently does not work at some times, I work on extending wmsplugin to support "tiled WMS" according to NASA's implementation. see http://onearth.jpl.nasa.gov/index.html and http://onearth.jpl.nasa.gov/tiled.html. I hope this will make it work more reliably.

I implemented this extension and provide it for testing at http://bodo-m.de/josm/. There you can fiond the modified version of the plugin as .jar file and the source code changes and extensions as patch. This version is not yet in SVN.

I added a field "tiled" to name and URL in the WMS preferences, to allow/disallow using tiled WMS. Default is "on", that means if the server supports tiled WMS this will be used.

For every configured service the plugin will do a GetCapabilities request on the first access. If the response lists the GetTileService request, it will send this request and analyze the response.

Since the NPE Maps server doesn't support GetCapabilities, I added another preferences field that allows to suppress the GetCapabilities request.

If the server supports "tiled WMS" and it is enabled in the configuration, the plugin will replace the normal WMS request for the currently viewed area with requests for one or more tiles with pre-defined access patterns. First it searches for the pattern with the best suited resolution (pixel per degree). The plugin will select the next available solution higher than or equal to the requested resolution, if available, otherwise the highest available resolution. According to the selected access pattern a set of requests for tiles of defined size and grid will be created to cover the currently viewed area. The tiles will be added to the WMS layer as individual images. JOSM has to adapt the resolution as it currently does this already when changing the scale with a WMS image already loaded.

Personal tools
recent changes