[mapserver-users] LABEL_NO_CLIP seems not working in mapserver 5.4.1

Rodriguez, Heraldo hrodriguez at siscat.com.ar
Tue Jun 30 11:02:46 EDT 2009


Hi everyone,
              We have just upgraded from mapserver 5.2.0 to 5.4.1
Our application use OpenLayers, Tilecache with metatiles on, and
postgis.
The label positioning in polygons has improved a lot but now we are
experiencing  label duplication on metatile boundaries.

The layer with the issues is parcelas. We are using
labelcache_map_edge_buffer and LABEL_NO_CLIP=ON .

Has anyone an idea why  this is happening? The labels length varies from
2 to 4 characters maximum .


A fragment of our map is the following 


WEB
    	#	TEMPLATE "set in index.html"
    	#	MINscale 1000
    		MAXscaleDENOM 1550000
		METADATA
			"wms_title"			...
			"wfs_title"			...
			"wms_onlineresource" ... 
			"wfs_onlineresource" ...
"WMS_FEATURE_INFO_MIME_TYPE" "text/html"
			"wms_srs"			...
			"wfs_srs"			...
			"wms_encoding"		...
			"labelcache_map_edge_buffer" "-10"
		END
    		IMAGEPATH "/tmp/mapserver/"
			IMAGEURL "/mapserver/"
  
END

LAYER

		NAME		parcelas
		METADATA
			"wms_title"		"parcelas"
			"wms_include_items" "all"
			"wms_group_title" "Geograficos"
			"wfs_title"		"parcelas"
			"gml_include_items" "all"
			"gml_featureid" "gid"
		END		
		CONNECTION  "user=xxxxx password=xxxxxx dbname=scgis
host=localhost port=5432"
		CONNECTIONTYPE  postgis
		PROCESSING "CLOSE_CONNECTION=DEFER"
		 PROCESSING "LABEL_NO_CLIP=ON"
		DATA		"the_geom FROM parcelas USING UNIQUE
gid"
		STATUS		DEFAULT
		TYPE		POLYGON
		OPACITY   80
		MAXscaledenom	15000
		LABELITEM 	parcela
		LabelMaxscaledenom 1200
		DUMP true
		CLASS
			NAME		"parcelas"
			TEMPLATE './QueryTemplates/parcelas.html'
			STYLE
				COLOR			242 239 233 #g
earth
				OUTLINECOLOR	210 210 210
			END
			Label
				minsize 7
				Size	7 
				maxsize 8
				type	truetype
				PARTIALS false
				POSITION AUTO
				MINDISTANCE 	20
				PRIORITY     5
				font	"vera"
				color 	86 86 86
			end
			
		END
	END


Any help would be appreciated. Thanks in advance
Regards,


Lic. Heraldo G. Rodriguez
  hrodriguez at siscat.com.ar
  TEL: 54-11-4326-4002 int 255
  Dpto. Desarrollo
  Sistemas Catastrales S.A
 
 



More information about the mapserver-users mailing list