[mapserver-users] Labels rendering different in MS 5.4 and 5.6
Hi everybody, I have a problem with rendering my Labels after upgrading from MS 5.4 to 5.6. The rendering in 5.6 differs from rendering in 5.4 (see attached pictures) http://osgeo-org.1803224.n2.nabble.com/file/n6452476/MS54.png http://osgeo-org.1803224.n2.nabble.com/file/n6452476/MS56.png You can clearly see the difference for the house numbers. In MS 5.4 they are more broad and they are positioned below/above the line. In MapServer 5.6 they are positioned on the line. Here the appendent part of the Mapfile . . . FONTSET ../../fonts/fonts.list RESOLUTION 96 DEFRESOLUTION 96 . . . LAYER NAME bdbed6 #Ortsplan#Legende GROUP Ortsplan STATUS ON CONNECTIONTYPE POSTGIS CONNECTION dbname=sogis host=localhost user=mspublic DATA wkb_geometry from kva_av_gebadr using SRID=-1 TYPE ANNOTATION FILTER archive=0 LABELITEM polizein #LABELCACHE ON POSTLABELCACHE TRUE MINSCALEDENOM 1 MAXSCALEDENOM 3000 #TEMPLATE ttt METADATA dis_name ortsplan SKIP_LEGEND 2 END CLASS MINSCALEDENOM 100 MAXSCALEDENOM 1300 LABEL ANGLE [txt_rot] TYPE truetype FONT verdana_italic_fett COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINSIZE 4 MAXSIZE 11 SIZE 11 POSITION cc END END END The font is in the same file as the fonts.list The Map is generated with MapScript and not with cgi PHP 5.3.2 Apache 2 Any ideas? Is it a MapServer problem or coluld there be another reason for this? Thx in advance for your hints Michael -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Labels-rendering-different-in-MS-5-4-and-5-6-tp6452476p6452476.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Fixed labels for polygons
Hi there, I just subscribed to the list so I want to say hello before posing my question ;-) And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. I read the documentation but as I understand it the POSITION parameter only tells mapserver the priority and not the absolute emplacement of the label. Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? Thanks for your help A. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fixed labels for polygons
PROCESSING LABEL_NO_CLIP=ON on the polygon layer -- thomas On Wed, Jun 8, 2011 at 10:18, Ambrogio Foletti afole...@gmail.com wrote: Hi there, I just subscribed to the list so I want to say hello before posing my question ;-) And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. I read the documentation but as I understand it the POSITION parameter only tells mapserver the priority and not the absolute emplacement of the label. Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? Thanks for your help A. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fixed labels for polygons
On 08.06.2011, at 10:18, Ambrogio Foletti wrote: And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. I read the documentation but as I understand it the POSITION parameter only tells mapserver the priority and not the absolute emplacement of the label. Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? As Thomas said, PROCESSING LABEL_NO_CLIP=ON is the right option. See http://mapproxy.org/docs/nightly/labeling.html for more detailed information about labeling for tiled services. Regards, Oliver -- Oliver Tonnhofer| Omniscale GmbH Co KG| http://omniscale.de http://mapproxy.org | https://bitbucket.org/olt | @oltonn ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fixed labels for polygons
Thanks for the answer and the precious link. That worked perfectly. Cheers, A. 2011/6/8 Oliver Tonnhofer o...@omniscale.de On 08.06.2011, at 10:18, Ambrogio Foletti wrote: And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. I read the documentation but as I understand it the POSITION parameter only tells mapserver the priority and not the absolute emplacement of the label. Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? As Thomas said, PROCESSING LABEL_NO_CLIP=ON is the right option. See http://mapproxy.org/docs/nightly/labeling.html for more detailed information about labeling for tiled services. Regards, Oliver -- Oliver Tonnhofer| Omniscale GmbH Co KG| http://omniscale.de http://mapproxy.org | https://bitbucket.org/olt | @oltonn ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem in extent using openlayers with Mapserver
- Forwarded Message From: Saka Royban sakaroy...@yahoo.com To: Stephen Woodbridge wood...@swoodbridge.com Sent: Wed, June 8, 2011 5:38:17 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver Thanks stephen for ur help (and sorry for bit abit latency in reply) I've already tried that, i.e. constructing map object without any argument but no result. In fact, in first step i created map without any extra argument and faced that problem and after that i added some arguments to maybe solve the problem. Any idea now? From: Stephen Woodbridge wood...@swoodbridge.com To: mapserver-users@lists.osgeo.org Sent: Sat, June 4, 2011 10:04:29 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver try just using: map = new OpenLayers.Map( 'map' ); -Steve On 6/4/2011 1:21 PM, Saka Royban wrote: Hi all. I've really got stuck in this problem and need some help as i'm a newbie using openlayers with mapserver. In mapfile i've set output to be: EXTENT -180 -90 180 90 # Geographic SIZE 800 400 IMAGECOLOR 128 128 255 when i request mapserver through URL, i recieve a complete 800*400 image, but when i use openlayers i get a 800*400 image which original map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. this is my code: map = new OpenLayers.Map( 'map',{'tileSize': new OpenLayers.Size(400,400)} ); layer = new OpenLayers.Layer.MapServer( World Map, http://localhost/cgi-bin/mapserv.exe;, {map: '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, width: 800}, {singleTile: true} ); map.addLayer(layer); map.zoomToMaxExtent(); I asked this question in openlayers mailing list with no success. It sounds it is related to mapserver. Any help would be greatly appreciated Regards (also sorry if my english is not very good) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] email
mlacari...@gmail.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Openlayers Identify Problem
Hello all, I´m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762 http://localhost/cgi-bin/mapserv.exe?img.x=762img.y=433mode=querylayer=g tile_topodatamap=C:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-m ap_004.mapimgext=-104.42206737491+-39.398253504337+-2.9560446250874+11.3982 53504337 img.y=433mode=querylayer=gtile_topodatamap=C:/var/webmapit/mapserver.d/m apfiles/users/sntgeo/sntgeo-map_004.mapimgext=-104.42206737491+-39.39825350 4337+-2.9560446250874+11.398253504337 Part of my map file : NAME sntgeo-map_004_ EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET /var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg CONFIG MS_ERRORFILE c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log DEBUG5 IMAGETYPE AGGPNG24 MAXSIZE4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH /var/webmapit/mapserver.d/mapfiles/users SYMBOLSET /var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym UNITS DD INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map INCLUDE /var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map WEB IMAGEPATH /var/www/html/tmp/ #--alterar no servidor IMAGEURL /tmp/ #--alterar no servidor HEADER topodata_web_header.html FOOTER topodata_web_footer.html Layer file: ... HEADER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html TEMPLATE C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html FOOTER C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html END Índex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] ); //alert('X=' + aLonLat.lon + ' Y=' + aLonLat.lat); } }); var controls; controls = { single: new OpenLayers.Control.Click({ handlerOptions: { single: true } }) }; var props = document.getElementById(props); // FIM: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml . // INI - do identify... var control; for(var key in controls) { control = controls[key]; // only to route output here control.key = key; map.addControl(control); } ...
[mapserver-users] Problem using mapserver with WCS
Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's not working. The url that i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=localidadesmode=mapSERVICE=WCSVERSION=1.0.0REQUEST=GetCapabilities but i cant see the xml it just stil shows the tiff image. I attached the mapfile so it can help to check which is the problem. Colud you help me with this issue? Thanks!! Virginia example1-1.map Description: Binary data ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem using mapserver with WCS
On 11-06-08 07:54 PM, Virginia Maffei wrote: Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's not working. The url that i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=localidadesmode=mapSERVICE=WCSVERSION=1.0.0REQUEST=GetCapabilities http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.maplayer=localidadesmode=mapSERVICE=WCSVERSION=1.0.0REQUEST=GetCapabilities but i cant see the xml it just stil shows the tiff image. I attached the mapfile so it can help to check which is the problem. Virginia, I suspect the mode=map is interfering - try dropping it out of the request. It is not a proper WCS keyword. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users