Ian, I haven't used tilemode, but my assumption is that the map projection block is used to define what the output projection for your tile is (like in the other MapServer modes).
Try setting map projection to epsg:3785 or using the proj4 text: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs If tilemode requires a map extent, it should be expressed in units of the output projection. David. From: [email protected] [mailto:[email protected]] On Behalf Of Ian Dees Sent: Wednesday, January 06, 2010 2:24 PM To: [email protected] Subject: [mapserver-users] Tilemode Projection Problem Hi everyone, I've spent the better part of today scouring the internet for documentation and help on the tile mode present in mapserver, but I couldn't find an answer to my problem, so please forgive me if I'm missing some obvious documentation some where... I am attempting to show some GeoTIFFs (from here: ftp://geoftp.ibge.gov.br/mapas/ortofoto/). My research says they're in epsg:31984. I'm trying to use MapServer's tile mode to display them on a Google Map API instance, but can't seem to get any of the images to show up. Also, why am I required to give a PROJECTION statement as a child to the MAP statement (what I assume is the "viewing projection") if the tile mode is just going to reproject to spherical mercator? My .map file is below. Thanks! MAP NAME GMAP_TILE STATUS ON PROJECTION "init=epsg:31984" END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' TRANSPARENT ON END LAYER NAME brazil TYPE raster DATA "/var/www/map/2414-1-SO.tif" STATUS ON PROJECTION "init=epsg:31984" END END END
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
