[mapserver-users] Does tilemode actually work?

Sven Geggus lists at fuchsschwanzdomain.de
Thu Sep 24 09:54:01 EDT 2009


Starting from a mapserver setup which works fine in WMS Mode I tried to
access the same machine with mode=tile.

Unfortunately it looks like something is wrong with the zoom factor.
Position seems to be fairly correct however:

Just compare the following URLs:

http://a.tile.openstreetmap.org/14/8574/5625.png
http://geo.gegg.us/lv-bw.cgi?LAYERS=DVDOP2&mode=tile&tilemode=gmap&tile=8574+5625+14

The first URL is from the Openstreetmap Tileserver, the second is just the
image of a public WMS-Server reprojected from GK2 (epsg:31467).

Mapfile looks like this:

--cut--
MAP
    NAME lv-bw
    STATUS ON
    UNITS METERS
    WEB         
        METADATA
           "wms_title"     "Svens lv-bw Proxyserver"
           "wms_onlineresource" "http://geo.gegg.us/lv-bw.cgi?"
           "wms_srs"       "EPSG:4326"
        END
    END    
    PROJECTION "init=epsg:31467" END
    EXTENT 3340000 5230000 3615000 5550000
    WEB
      IMAGEPATH "/tmp/"
    END
    LAYER                                                      
        NAME "DVDOP2"
        METADATA
           "wms_title"    "lv-bw.de Data"  ##required
        END
        TYPE RASTER
        STATUS ON
        CONNECTION "http://www.lv-bw.de/rdsaccess/default.aspx?ServiceName=geodata31467&reaspect=false&"
        CONNECTIONTYPE WMS
        METADATA
           "wms_srs" "EPSG:31467"
           "wms_server_version" "1.1.1"
           "wms_name" "DOP2"
	    # Non Standard :(
           "wms_format" "png"
        END
    END
END
--cut--

The mapserver Version in use is 5.4.2 from Debian GNU/Linux:

$ /usr/lib/cgi-bin/mapserv -v
MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Regards

Sven

-- 
"Whenever there is a conflict between human rights and property
rights, human rights must prevail." (Abraham Lincoln)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web


More information about the mapserver-users mailing list