[mapserver-users] Tilemode Projection Problem

Ian Dees ian.dees at gmail.com
Thu Jan 7 09:22:12 EST 2010


After getting all the projection sections into my .map file without any
correctly-drawn tiles, I've given up on tilemode for now and am trying out
tilecache with MapServer's WMS. However, it appears that EPSG:900913 is not
known in my system. On a Linux install, where is the list of
projections/WKT?

I've tried using upper and lower-case namespace (epsg and EPSG) to no avail.

I get the following error through tilecache when it attempts to hit my WMS:

<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS
must be valid for all requested layers.
</ServiceException>
</ServiceExceptionReport>

URL it tries:
http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.map&layers=states&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A900913&version=1.1.1&bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384

On Wed, Jan 6, 2010 at 2:56 PM, Ian Dees <ian.dees at gmail.com> wrote:

> I tried this and am still not getting anything from my TIFFs. I switched
> over to using the statesp020.shp data (which is epsg:4326, right?) and am
> getting very oddly-garbled tiles:
>
> http://209.98.160.119:8080/map.html
>
>
> On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) <
> David.Fawcett at state.mn.us> wrote:
>
>>  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:* mapserver-users-bounces at lists.osgeo.org [mailto:
>> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Ian Dees
>> *Sent:* Wednesday, January 06, 2010 2:24 PM
>> *To:* mapserver-users at lists.osgeo.org
>> *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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100107/01874f35/attachment-0001.html


More information about the mapserver-users mailing list