[OpenLayers-Users] Signatures cutting by tiles

Arnd Wippermann arnd.wippermann at web.de
Tue Feb 27 14:04:40 EST 2007


Hello Claus,

There are a solution from Tim Schaub:

http://www.nabble.com/tile-gutters-t2950864.html

I have not yet tested, but the example looks good.

Mit freundlichen Grüssen

Arnd Wippermann



-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Krinke, Claus
Gesendet: Montag, 26. Februar 2007 16:12
An: 'users at openlayers.org'
Betreff: [OpenLayers-Users] Signatures cutting by tiles

Hello List, 

The image http://www.lrop.niedersachsen.de/FIS-RO/tile_signature.jpg shows
the problem. Signatures are cut off by the tiles. The WMS service is
supplied by the UMN-Mapserver. Is there a solution for the problem?


My layer definition in the html ist:

layers[0] = newWMSlayer("Oberzentren",
"http://10.4.103.89/cgi-bin/mapserv.xml?map=D:/ms4w/Apache/htdocs/gis/ZO.map
", {layers: 'Oberzentren', request:
'getmap',transparent:true,format:'image/png'}, {tileSize: new
OpenLayers.Size(512,512), buffer: 1}, true, false, 1);

layers[1] = newWMSlayer("Mittelzentren",
"http://10.4.103.89/cgi-bin/mapserv.xml?map=D:/ms4w/Apache/htdocs/gis/ZO.map
", {layers: 'Mittelzentren', request:
'getmap',transparent:true,format:'image/png'}, {tileSize: new
OpenLayers.Size(512,512), buffer: 1}, true, false, 1);

And the layer definition in the .map file is:

# Start of layer definitions #
#

LAYER
 NAME 'Oberzentren'
 TEMPLATE 'Export_Output_OZ_query.html'
 DATA 'Export_Output_OZ'
 STATUS on
 TYPE Point
 TRANSPARENCY 100
 TOLERANCE 10
 TOLERANCEUNITS pixels
 SYMBOLSCALE 500000
 
 METADATA
  WMS_SRS  'epsg:31467'
  WMS_TITLE 'Strukturdaten Oberzentren'
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 END #METADATA
 
 PROJECTION
  'init=epsg:31467'
 END
 
 LABELITEM 'GEM_NAME'
 CLASSITEM 'GEM_NAME'
 
 CLASS
  NAME 'Export_Output_OZ'
  EXPRESSION /./
 
  STYLE
   SYMBOL 'circle'
   SIZE 30
   COLOR 0 0 0
   OUTLINECOLOR -1 -1 -1
  END #STYLE
  STYLE
   SYMBOL 'circle'
   SIZE 20
   COLOR 254 254 254
   OUTLINECOLOR -1 -1 -1
  END #STYLE
 
  LABEL
   TYPE BITMAP
   SIZE tiny
   COLOR 0 0 0
   POSITION UL
   ANGLE 0
   OFFSET 0 0
  END #LABEL
 END #CLASS
 
END #LAYER

LAYER
 NAME 'Mittelzentren'
 TEMPLATE 'Export_Output_MZ_query.html'
 DATA 'Export_Output_MZ'
 STATUS on
 TYPE Point
 TRANSPARENCY 100
 TOLERANCE 10
 TOLERANCEUNITS pixels
 SYMBOLSCALE 500000
 
 METADATA
  WMS_SRS  'epsg:31467'
  WMS_TITLE 'Strukturdaten Mittelzentren'
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 END #METADATA
 
 PROJECTION
  'init=epsg:31467'
 END
 
 LABELITEM 'GEM_NAME'
 CLASSITEM 'GEM_NAME'
 
 CLASS
  NAME 'Export_Output_MZ'
  EXPRESSION /./
 
  STYLE
   SYMBOL 'circle'
   SIZE 20
   COLOR 0 0 0
   OUTLINECOLOR -1 -1 -1
  END #STYLE
  STYLE
   SYMBOL 'circle'
   SIZE 13
   COLOR 254 254 254
   OUTLINECOLOR -1 -1 -1
  END #STYLE
 
  LABEL
   TYPE BITMAP
   SIZE tiny
   COLOR 0 0 0
   POSITION UL
   ANGLE 0
   OFFSET 0 0
  END #LABEL
 END #CLASS
 
END #LAYER 



Mit freundlichen Grüßen

Claus Krinke

Niedersächsisches Ministerium
für den ländlichen Raum, Ernährung,
Landwirtschaft und Verbraucherschutz

Telefon:   0511 120-5960
E-Mail:    claus.krinke at ml.niedersachsen.de
FAX:       0511 12099-5960

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list