[mapserver-users] Re: annotations in mapserver 5.4
This is a bit old problem (still got that bug), but I found that I typed the second link not right, the right link to the problematic output is that: http://picasaweb.google.com/snaperski/Ort#5365984697960162578 I assume this is some 5.4 version bug? Sincerely, Raivo On Tue, Aug 4, 2009 at 9:12 AM, Raivo Allasnaper...@gmail.com wrote: Hey, I got some weird behavior while trying to display labels with mapserver 5.4. With mapserver 5.0.3 these labels show up nicely: http://picasaweb.google.com/snaperski/Ort#5365984694609689634 But with mapserver 5.4, these layers are shown at scale about 35-20, but they will disappear at higher scales, so nothing can be seen: http://picasaweb.google.com/snaperski/Ort#5365984694609689634 This could'nt be collision conflict either as they have enough space to fit in. Is something changed in the way mapserver treats annotations elements? Data source is a polygon shapefile: I hope that (polygon type) is not the problem? The layer itself in the mapfile: LAYER NAME alevikAnno_1 GROUP HYBRID METADATA wms_title alevikAnno wms_srs EPSG:3301 wms_extent 355000 636 754000 666 END STATUS default TYPE annotation DATA kohanimed/alevikud_1 LABELITEM TEXTSTRING CLASS MAXSCALE 133 MINSCALE 20 LABEL TYPE truetype ANTIALIAS true FONT arial COLOR 255 255 255 SIZE 9 priority 6 force false ANGLE auto OUTLINECOLOR 25 25 25 POSITION cr BUFFER 1 END END END Raivo Alla Estonian Land Board ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Postgis tile index not working
Nelson Correia wrote: Hi, I'm trying to use a postgis layer as tile index of a raster layer and can't get it working. Here are the layers I'm using: LAYER NAME layer_tindex TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=5432 dbname=mydb user=myuser password=mypwd DATA bbox from shapes CLASS STYLE OUTLINECOLOR 0 0 0 END END END LAYER NAME layer_raster TYPE RASTER STATUS DEFAULT DUMP TRUE TILEINDEX layer_tindex TILEITEM image_path PROJECTION init=epsg:4326 END END When I make a request to Mapserver, everything gets into the image, except the images from the layer_raster layer. I can even see the bboxes if I turn on the layer layer_tindex. I can't find much documentation about this integration between Mapserver and Postgis, so tell me if I'm making some mistake. By the way, I'm doing this with a Mapserver 5.2.1. Thanks in advance, I would start by using the commandline utility shp2img with the '-all_debug 3' switch to see all errors (example#3 on http://www.mapserver.org/utilities/shp2img.html). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
I've got a large map that, for various reasons, wants to have all the layers on by default. Since it's all the streets in the US, some of them highlighted by size, it takes a long time to draw - in fact, mapserver often takes too long to respond, such that apache times out. I'm trying to use the MIN/MAXSCALEDENOM to control display. The examples are not immediately helpful, since they only use a single value, and don't leave me with a sense of how min or max applies. For example - which of these is correct if I want the layer to only appear when the map scale is lower than 1:5 (that is, between 1:1 and 1:5, or rather, with very small features shown)? LAYER NAME controlled-access-fc5 TYPE LINE STATUS DEFAULT TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp TILEITEM LOCATION CLASS NAME Controlled Access FC5 EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y')) MAXSCALEDENOM 5 STYLE SYMBOL 1 SIZE 3 COLOR 0 255 0 END END END or LAYER NAME controlled-access-fc5 TYPE LINE STATUS DEFAULT TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp TILEITEM LOCATION CLASS NAME Controlled Access FC5 EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y')) MINSCALEDENOM 5 STYLE SYMBOL 1 SIZE 3 COLOR 0 255 0 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users