[mapserver-users] MapServer + Tilecache
tylersticky at gmail.com
Fri Nov 6 05:07:09 EST 2009
Definitely the problem is in the MAP file.
I've removed the projection parameter, still doesn't work.
Some parameters that I've not yet understand, namely: MAXSIZE and SIZE.
I don't understand what I'm doing wrong.
In Mapnik I just define srs="+proj=latlong +datum=WGS84" and is done.
On Thu, Nov 5, 2009 at 6:22 PM, Roger André <randre at gmail.com> wrote:
> Hi Tyler,
> I wonder if the "projection" line in your tilecache.cfg might be causing
> problems? From what you show below, it looks like your "vias" data is in
> EPSG:4326 natively, and that you then force MapServer to reproject it to a
> custom mercator - which you say works fine.
> I think the "projection" and "srs" lines are conflicting with each other in
> your tilecache.cfg.
> In my setup, I have my data's native projection defined in the mapfile like
> you do, as 'PROJECTION "init=epsg:4326" END'. But in my tilecache.cfg, I
> only specify what output projection I want, in this case EPSG:900913.
> My suggestion would be to remove the "projection line entirely and see if
> you get tiles generated in EPSG:4326 correctly. If that works, try
> specifying a different EPSG code. If you get reprojected tiles that way,
> you can try fiddling with the "projection" parameter in the tilecache.cfg,
> or add a new projection line to your /share/proj/epsg file with your custom
> parameters and point to its code in the tilecache.cfg "srs" line.
> Best of luck,
> On Wed, Nov 4, 2009 at 10:52 AM, Tyler Durden <tylersticky at gmail.com> wrote:
>> Hi all,
>> I'm new to MapServer, until now I've used Mapnik to generate my tiles.
>> But I want to try MapServer and I can't figure out what I'm doing
>> If I run via WEB interface it renders fine, but with Tilecache the
>> tiles appears blank.
>> Any idea what I'm doing wrong?
>> Thanks in advance.
>> NAME "test"
>> EXTENT -961006 5034756 -955378 5036634
>> IMAGECOLOR 255 255 0
>> IMAGETYPE JPEG
>> SIZE 256 256
>> STATUS ON
>> UNITS METERS
>> MAXSIZE 5000
>> SHAPEPATH "/home/tyler/Projects/Python/mapserver/tilecache/vias/"
>> NAME vias
>> TYPE LINE
>> DATA vias
>> STATUS default
>> OFFSITE 0 0 0
>> NAME "Countries"
>> OUTLINECOLOR 0 0 0
>> TRANSFORM true
>> 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 +nadgrids=@null +no_defs +over
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
More information about the mapserver-users