I believe that what you are looking for is DEFRESOLUTION in the mapfile at the MAP level. From what I remember seeing on this list is that you set
RESOLUTION 300 DEFRESOLUTION 72 And then increase the size of your map to get the large size at 300 dpi. I'm not sure when this was added but it is not in the documentation. Hopefully someone will add to this information. Worth -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ben Tuttle Sent: Wednesday, April 21, 2010 5:40 PM To: [email protected] Subject: [mapserver-users] having trouble with label size Hi all- I am working on a mapfile based on the mapfile available by following: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData I would like to be able to print these at resolutions of about 300dpi and about 12"x7" so I am looking at making requests of about 3825x2118 pixels. Unfortunately, this is my first time using labels in MapServer and I don't think I fully grasp all the relevant details of labeling yet. I don't think I understand hw to properly change the font size on the maps. So far no matter what pixel dimensions I choose for the output map the labels stay the same size. I need the labels to be much bigger for printing. I have tried adjusting the label size in the mapfile to no avail. I even made them absurdly (between 200 and 300) large with no luck. Can someone help me get going in the right direction to adjust the sizes. Not sure what I am missing, perhaps I need to be using something for label scale? Any help would be greatly appreciated. You can see the output at different resolutions, but with the same label sizes at the following links. The server is pretty slow right now so they take a good bit of time to return an image. http://184.73.51.171/cgi-bin/ev1.rb?extent=-105.5,39.5,-104.5,40&size=600,30 0 http://184.73.51.171/cgi-bin/ev1.rb?extent=-105.5,39.5,-104.5,40&size=1200,6 00 http://184.73.51.171/cgi-bin/ev1.rb?extent=-105.5,39.5,-104.5,40&size=3825,2 118 The mapfile (about 3200 lines) is available at http://184.73.51.171/mf/osm-mapserverV4.map I have included an excerpt of one of the place layers below for a quick example: LAYER STATUS ON GROUP "default" PROJECTION "init=epsg:4326" END CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=www-data password=www-data port=5432" PROCESSING "CLOSE_CONNECTION=DEFER" maxscaledenom 100000000010 minscaledenom 10000010 TYPE ANNOTATION NAME "places" DATA "way from (select way,osm_id ,place , capital, name from osm_point where capital='yes' or place='country') as foo using unique osm_id using srid=4326" LABELITEM 'name' CLASSITEM 'place' CLASS EXPRESSION ("[place]"="city" and "[capital]"="yes") STYLE SIZE 5 SYMBOL "citycircle" COLOR "#FF6767" OUTLINECOLOR 0 0 0 END STYLE SIZE 2 SYMBOL "citycircle" COLOR "#000000" END LABEL FONT sc TYPE TRUETYPE SIZE 280 COLOR 0 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 4 WRAP ' ' MAXLENGTH 8 ALIGN CENTER PRIORITY 10 BUFFER 10 PARTIALS FALSE POSITION auto END END CLASS EXPRESSION 'country' LABEL FONT scb TYPE TRUETYPE SIZE 320 COLOR "#777777" WRAP ' ' MAXLENGTH 8 ALIGN CENTER PRIORITY 9 BUFFER 1 PARTIALS FALSE POSITION auto END END END -- Cheers, Ben Tuttle _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
