[mapserver-users] Label text always clipped by tiles

Mike Stoddart stodge at gmail.com
Wed Jan 26 11:37:43 EST 2011


Sorry, the server is on my laptop and isn't accessible from the
outside world. Yeah I've been burned too with a stale cache so I
delete it everytime I make a change. I also restart Apache to make
sure the new configuration is read.

test.map:

 LAYER
  NAME "test_text"
  CONNECTIONTYPE postgis
  CONNECTION "host=localhost port=5432 dbname=dbname user=username
password=password"
  DATA "the_geom from gis_geometry using unique id"
  FILTER "dataset='test_text' and etype='text'"
  STATUS DEFAULT
  PROCESSING "LABEL_NO_CLIP=ON"
  TYPE POINT
    TRANSPARENCY ALPHA
    LABELITEM "text"
    PROJECTION
        "init=epsg:4326"
    END
  CLASS
    NAME "text"
    STYLE
      COLOR 0 0 0
    END
    LABEL
      TYPE TRUETYPE
      FONT "free-vera"
      SIZE 10
      COLOR 255 0 0
      POSITION CC
      PARTIALS TRUE
      FORCE TRUE
    END
  END
END

tilecache.cfg:

[test_text]
type=MapServerLayer
layers=test_text
mapfile=/opt/test.map
bbox=-50000, -50000, 50000, 50000
extension=png
srs=epsg:4326
extent_type=loose
resolutions=390.625, 195.3125, 97.65625, 48.828125, 24.4140625,
12.20703125, 6.103515625, 3.0517578125, 1.52587890625, 0.762939453125,
0.3814697265625, 0.19073486328125, 0.095367431640625,
0.0476837158203125, 0.02384185791015625, 0.011920928955078125,
0.0059604644775390625, 0.0029802322387695312, 0.0014901161193847656,
0.00074505805969238281
extent_type=loose
metaTile=true
metaBuffer=20


Thanks
Mike


On Wed, Jan 26, 2011 at 11:30 AM, Gregor at HostGIS <gregor at hostgis.com> wrote:
> On 1/26/2011 8:25 AM, Mike Stoddart wrote:
>>
>> I set metaBuffer to 20 (I have SIZE=10) and there's no difference.
>> metaTile="yes"
>> metaBuffer=20
>
> Try metaTile=true, without the " marks.
>
> And of course, erase any existing cached tiles, so you're sure to be
> generating new ones. I hate when I forget that; it's so embarrassing. :)
>
> Then, the relevant paragraph and maybe a URL of the map?
>
> --
> HostGIS, Open Source solutions for the global GIS community
> Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
>   Network+   Server+   A+   Security+   Linux+
>   PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX
>
> "No one cares if you can back up — only if you can recover."
>


More information about the mapserver-users mailing list