Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Avoid partial labels

As above, use metaTiling to avoid partial labels but also use the settings below in tilecache.cfg. This information has been provided from Thomas Bonfort via here and reproduced below.

Code Block
metaTile=true
metaSize=3,3
metaBuffer=10

And in the mapserver files use;


Code Block
WEB
    METADATA
        labelcache_map_edge_buffer "-10"
    END
END

and use PARTIALS FALSE in all label blocks.

Avoid issues with HTTP proxy

HTTP proxy issues can result in a "Bad Gateway 502" error when Seeding your TIlecache. Try running the following in the command prompt prior to running the TileCache seed command to avoid a proxy server being used for local requests. If the host in the WMS URL is not localhost then add the hostname to the list in the command below.

Code Block
set NO_PROXY=localhost,127.0.0.*


Tip

Setting the NO_PROXY environment variable in the command prompt will only affect the current command prompt session. The IP in the example is the local IPv4 address (commonly 127.0.0.1 is the local machine).

Avoid issues with WMS request

It can sometimes be useful to log the URL used for each request to MapServer. That way you can try visiting the URL in a browser to see if it causes an error. To view the URLs can you add the following line at line 58 of TileCache\Client.py which can be found in Astun\Tools\TileCache folder:

Code Block
print urlrequest.get_full_url()

E.g:

The highlighted section in the following screenshot shows the URL within the cmd window. You can then copy and paste any URLs that you wish to investigate.

Image Added