Have you specified the projection also inside LAYER?  There are two places for 
giving projections, in MAP section to give the set of available output 
projections, and in LAYER section to tell Mapserver which projection the layer 
data are in.

-Jukka Rahkonen- 

> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
> Chad Clabaugh
> Lähetetty: 20. tammikuuta 2009 16:29
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73
> 
> Am I not specifying my projection by using "init=epsg:4326" 
> within the PROJECTION BLOCK????  I have tried as many 
> different projections as I can find. Including 4326, 900913, 
> 3785, and the following block...
> 
> PROJECTION
>       "proj=merc"
>       "a=6378137"
>       "b=6378137"
>       "lat_ts=0.0"
>       "lon_0=0.0"
>       "x_0=0.0"
>       "y_0=0"
>       "k=1.0"
>       "units=m"
>       "nadgri...@null"
>       "wktext"
>       "no_defs"
> END
> 
> ...which didn't work for me.
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 19 Jan 2009 20:16:28 -0800
> From: "Paul Ramsey" <pram...@cleverelephant.ca>
> Subject: Re: [mapserver-users] google tiles
> To: "Chad Clabaugh" <cclaba...@centwire.com>
> Cc: mapserver-users@lists.osgeo.org
> Message-ID:
>       <30fe546d0901192016u1ad26e6fy7ec54e13da416...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> You need to specify the PROJECTION of your LAYER.
> 
> P.
> 
> On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh 
> <cclaba...@centwire.com>
> wrote:
> > Greetings,
> >
> > I have been trying to generate google tiles from shapefiles using 
> > mapserver.  I have been able to successfully generate maps 
> by calling 
> > the url
> >
> http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/c
> overage.map&mo
> de=map
> > . but when I attempt to use the url
> >
> http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/maps
> erver/coverage
> .map&mode=tile&tile=4+6+4
> > I receive only empty images, regardless of tile specified.
> >
> >
> >
> > Thanks for any help!
> >
> >
> >
> > MAP
> >
> >   NAME COVERAGE
> >
> >   STATUS ON
> >
> >   SIZE 1400 900
> >
> >   EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000
> >
> >   UNITS METERS
> >
> >   SHAPEPATH "shapefiles"
> >
> >   IMAGECOLOR 220 220 220
> >
> >
> >
> >   IMAGETYPE PNG
> >
> >
> >
> >   PROJECTION
> >
> >     "init=epsg:4326"
> >
> >   END
> >
> >
> >
> >   LAYER
> >
> >     NAME CoverageMap
> >
> >     TYPE POLYGON
> >
> >     STATUS DEFAULT
> >
> >     DATA notforchad
> >
> >
> >
> >     CLASS
> >
> >       STYLE
> >
> >         OUTLINECOLOR 255 128 128
> >
> >         COLOR 225 0 0
> >
> >       END
> >
> >     END
> >
> >
> >
> >   END
> >
> > END
> >
> >
> >
> > Chad Clabaugh
> >
> > Technical Support, Engineering
> >
> > Office: 260.760.6398
> >
> > Mobile: 260.466.8861
> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to