[mapserver-users] Does tilemode actually work?

Paul Ramsey pramsey at cleverelephant.ca
Thu Sep 24 11:20:26 EDT 2009


It actually worked when I tested against gmaps and virtual earth some
moons ago. It's possible what osm means by '14' and what the others
mean by '14' is different. You can different numbers depending on
whether you start counting from zero and whether your top zoom level
is one tile or four.

P

On Thu, Sep 24, 2009 at 6:54 AM, Sven Geggus
<lists at fuchsschwanzdomain.de> wrote:
> 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
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list