Re: [mapserver-users] Raster layer with png legend
http://mapserver.org/mapfile/class.html - KEYIMAGE regards, thomas www.camptocamp.com +33 4 79 26 57 97 2009/7/10 Luis Almería Trenco trencol...@gmail.com: Hi, anybody knows how to associate an image legend (.png) to a raster layer? I’m trying to do so with this .map, but it doesn’t work. LAYER NAME Mapabase20 TYPE raster STATUS on DATA mapa_base20.png MINSCALE 6 MAXSCALE 40 PROJECTION init=epsg:23030 END METADATA wms_title Mapa Base 20 wms_abstract Imagen raster wms_keywordlist WMS imagen raster wms_srs EPSG:23030 wms_style leyendaMapabase20 wms_style_leyendaMapabase20_legendurl_href http://192.168.13.221/leyendaMapaBase/Leyendas/Leyenda_mapabase20.png; wms_style_leyendaMapabase20_legendurl_width 75 wms_style_leyendaMapabase20_legendurl_height 50 wms_style_leyendaMapabase20_legendurl_format image/png END END #fin de mapabase20 Is there anything left? Is it possible to do it? Thank you. Luis ___ 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] Oracle native / Oracle OGR
some of our clients have come up with a few quirks in the native oracle driver that should be taken into account: * the strings storing the fields returned by the database have a fixed length in mapserver, so that might have to be overridden at compile time if you are planning to return data longer than a certain value (2048 bytes from memory). For normal map rendering this shouldn't be a problem, but problems may arise when doing wfs queries and returning a paragraph of text for example in an attribute. * I haven't investigated this much more, but we've also had problems with long query strings (we're talking DATA mapfile strings of several kbytes here) regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Fri, Jul 10, 2009 at 17:59, Schlagel, Joel D IWRjoel.d.schla...@usace.army.mil wrote: For what it's worth - we've used the oracle direct connect in a production environment all day, every day for several years with no quirks to report. -joel On 7/10/09 11:36 AM, Frank Warmerdam warmer...@pobox.com wrote: YOUNESS ELMEDRAOUI wrote: Hello everybody, i have a question: what's the difference between a connection to oracle DB with native oraclespatial and OGR? performance, ...?? Youness, Generally speaking the direct connection should be faster since it avoids a lot of OGR overhead. They are completely distict implementations so you might find each has quirks and strengths though I can't really identify them off hand. Best regards, -joel -- Joel D. Schlagel US Army Engineer Institute for Water Resources http://www.iwr.usace.army.mil ___ 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] Oracle native / Oracle OGR
this can be a solution in some cases yes. In ours the the query is dynamically built and passed on through the url, so it isn't as simple as that. thomas On Fri, Jul 10, 2009 at 21:29, Smith, Michael ERDC-CRREL-NHmichael.sm...@usace.army.mil wrote: Thomas, To solve the second issue, use a view. Mike -- Michael Smith Remote Sensing GIS Center CRREL - ERDC US Army Corps of Engineers Hanover, NH On 7/10/09 2:38 PM, Thomas Bonfort thomas.bonf...@camptocamp.com wrote: some of our clients have come up with a few quirks in the native oracle driver that should be taken into account: * the strings storing the fields returned by the database have a fixed length in mapserver, so that might have to be overridden at compile time if you are planning to return data longer than a certain value (2048 bytes from memory). For normal map rendering this shouldn't be a problem, but problems may arise when doing wfs queries and returning a paragraph of text for example in an attribute. * I haven't investigated this much more, but we've also had problems with long query strings (we're talking DATA mapfile strings of several kbytes here) regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Fri, Jul 10, 2009 at 17:59, Schlagel, Joel D IWRjoel.d.schla...@usace.army.mil wrote: For what it's worth - we've used the oracle direct connect in a production environment all day, every day for several years with no quirks to report. -joel On 7/10/09 11:36 AM, Frank Warmerdam warmer...@pobox.com wrote: YOUNESS ELMEDRAOUI wrote: Hello everybody, i have a question: what's the difference between a connection to oracle DB with native oraclespatial and OGR? performance, ...?? Youness, Generally speaking the direct connection should be faster since it avoids a lot of OGR overhead. They are completely distict implementations so you might find each has quirks and strengths though I can't really identify them off hand. Best regards, -joel -- Joel D. Schlagel US Army Engineer Institute for Water Resources http://www.iwr.usace.army.mil ___ 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
Re: [mapserver-users] Smaller polygon sizes when usingmapserver 5.4.1compare to 5.2.0
the previous versions of mapserver (incorrectly I think) used the value of the label buffer to expand the background billboard. You'd get nice results whith a 1 or 2 px buffer like in your case, but unusable ones when you added larger buffers. I hope we can work around this for 5.6 with the possible label style rewrite. regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Tue, Jul 14, 2009 at 03:01, Steve Limesteve.l...@dnr.state.mn.us wrote: Wonder if it's the same issue as with the polygon size you noted. Even though the shield is a rect it's rendered as a polygon. Thomas, should polygons be drawn with an outline same as the fill color if no outline color is specifiied? Steve Nikolai Nikolov nniko...@gypsii.com 07/09/09 2:43 AM Hi Steve and everyone, The images below are from Mapserver 5.2.0 (left) and 5.4.1 (right) of the same map using AGG. Please note the difference in the size of the road shields (green shields). The following are images from the same servers (Mapserver 5.2.0 (left) and 5.4.1 (right)) of the same map (different zoom) using GD. Please note that the two maps are practically the same. The complete map-file used for the first example is attached to this e-mail. The parts of it specific to the issue are like that: OUTPUTFORMAT NAME AGG_PNG DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png #FORMATOPTION QUANTIZE_FORCE=TRUE #FORMATOPTION QUANTIZE_COLORS=256 FORMATOPTION PALETTE_FORCE=TRUE FORMATOPTION PALETTE=/var/www/html/maps_gypsii/palette.txt FORMATOPTION INTERLACE=OFF END and CLASS EXPRESSION /^E/ LABEL PRIORITY 4 PARTIALS false MINFEATURESIZE 10 MINDISTANCE 300 COLOR 255 255 255 BACKGROUNDCOLOR 128 208 100 BACKGROUNDSHADOWCOLOR 81 145 58 ANGLE 0 BUFFER 2 FONT arial-bold TYPE truetype SIZE 7 END END The difference for the second examples is in the output format used: OUTPUTFORMAT NAME PNG DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png #FORMATOPTION QUANTIZE_FORCE=TRUE #FORMATOPTION QUANTIZE_COLORS=256 FORMATOPTION PALETTE_FORCE=TRUE FORMATOPTION PALETTE=/var/www/html/maps_gypsii/palette.txt FORMATOPTION INTERLACE=OFF END Many thanks, Nick -Original Message- From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Sent: 08 July 2009 15:29 To: Nikolai Nikolov; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Smaller polygon sizes when usingmapserver 5.4.1compare to 5.2.0 Perhaps you could post image samples and a mapfile? Steve On 7/8/2009 at 3:05 AM, in message 65d1c555be9443a180f3b1697ef7e...@benefonuk.local, Nikolai Nikolov nniko...@gypsii.com wrote: Hi everyone, I've just upgraded one of my test servers from 5.2.0 to 5.4.1. I have an issue there and I wonder whether anybody have noticed it. My map polygones seems to be fractionaly smaller (compare to those drawned by 5.2.0). I am using the same maps, map files, PHP scripts, etc. The plygons which belong to the same layer, do not quite well fit with each other - their borders match perfectly before the upgarde to 5.4.1. Also, I use BACKGROUNDCOLOR in my map file to create shield like square behind a label. Those squares are now significantly smaller too. I wander what causes this effect and what I should do to achieve the same image as with 5.2.0? Thanks, Nick ___ 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] Building Mapserver with Mapscript and AGG
Yes, version 5.6 or 6.0, whatever it's called, will include the agg tree, in a hope to cut down on the multiple problems that folks were having with compiling agg correctly. you can already try it out by using a trunk version of mapserver and report back to us if any problems arise. regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Thu, Jul 16, 2009 at 19:55, Jason Beveragejasonbever...@gmail.com wrote: Nick, Thanks for your suggestion of updating to AGG 2.5 from rpm forge! Doing so gave me a nice shared library of AGG and I've got my mapscript Python working now, thanks! From what I've been reading on the mailing list, there are talks of just including AGG directly into the Mapserver source, which would be wonderful. The less dependencies the better :) Thanks again! Jason On Thu, Jul 16, 2009 at 1:49 PM, Andy Colson a...@squeakycode.net wrote: Jason Beverage wrote: Hi Andy, I tried modifying both the Makefile.in.Linux as well as the regular makefile. I can see -fPIC on the command line, so it appears to be doing what I want, but I still get the same error in both cases. Jason Did you build mapserver with agg first, before mapscript? I'm using the perl stuff, but saw a similar error. I went back and did a 'make clean' and make for each of agg, mapserver and then mapscript/perl. (in that order) Otherwise, I'm afraid I dunno... -Andy ___ 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] loadOutputFormat(): error AGG/PNG driver isn't configured.
what's the output of mapserv -v it should include the AGG key somewhere for agg to be supported. regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Fri, Jul 24, 2009 at 09:58, Galigeog...@galigeo.com wrote: Hi kapilmanoj I do have actually the same problem (exept I use Ubuntu 8.04). I had to compile mapscript by myself since I use Java and Java mapscript is not pre-packaged by Ubuntu. Maybe I missed a dependency during the compilation ? Anyway, if anyone has a solution to this problem, I'd be glad to know it! Cheers, Ganael kapilmanoj wrote: Dear users, I am using mapserver 5.0.3 on fedora 9. i have been trying out the examples given in the mapserver 5.x tutorial. i am receiving the following error message when attempting to use AGG Output format. i have installed AGG-2.5 through yum install command in fedora 9 error message: *loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. * This my mapfile for your kind attention MAP NAME Gods own country EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 # LAEA #EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic SIZE 400 300 IMAGECOLOR 255 255 255 SHAPEPATH /var/www/html/ms4w/aapa/tutorial/data SYMBOLSET /var/www/html/ms4w/aapa/tutorial/symbols/symbols35.sym FONTSET /var/www/html/ms4w/aapa/tutorial/fonts/fonts.list IMAGETYPE PNG24 OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE PC256 EXTENSION png END OUTPUTFORMAT NAME png24 DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG FORMATOPTION QUALITY=75 MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg END OUTPUTFORMAT NAME GTiff DRIVER GDAL/GTiff MIMETYPE image/tiff IMAGEMODE RGB EXTENSION tif END OUTPUTFORMAT NAME AGG DRIVER AGG/PNG IMAGEMODE RGB END OUTPUTFORMAT NAME AGGA DRIVER AGG/PNG IMAGEMODE RGBA END OUTPUTFORMAT NAME AGGJ DRIVER AGG/JPEG IMAGEMODE RGB END WEB IMAGEPATH '/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END PROJECTION init=epsg:2163 END LAYER NAME districts DATA parl_04 STATUS OFF TYPE POLYGON PROJECTION init=epsg:4326 END CLASSITEM NAME CLASS EXPRESSION 'party' STYLE SYMBOL 0 COLOR 232 232 232 END END END . . . . LAYER NAME districts DATA parl_04 STATUS OFF TYPE ANNOTATION PROJECTION init=epsg:4326 END CLASSITEM NAME LABELITEM WINNER CLASS EXPRESSION 'party' STYLE COLOR -1 -1 -1 END LABEL COLOR 255 255 255 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # end of class END # States label layer ends here # End of LAYER DEFINITIONS --- END # end of map file can anyone please help me out . suggestion will be appreciated.. Thanks kapilmanoj ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/loadOutputFormat%28%29%3A-error-AGG-PNG-driver-isn%27t-configured.-tp2388899p3314438.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Applying a hatch over a line layer
hi, hatches only apply to polygon layers. what you are probably looking for is the PATTERN keyword: symbol type simple pattern 2 2 end name dashes end regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Mon, Jul 27, 2009 at 11:37, Adrian Popaadrian_gh.p...@romtelecom.ro wrote: Hello, I'm trying to apply a hatch over a line segment, but it doesn't seem to work. My symbol definition is: SYMBOL NAME 'hatch' TYPE HATCH END My layer definition is: LAYER TYPE LINE ... CLASS NAME Test EXPRESSION ( [flag] eq 1) STYLE SYMBOL 'hatch' ANGLE 45 SIZE 3 #spacing between lines WIDTH 4 #width of each line color #00 END style color #fff94d width 2 antialias true end END END The behavior is the following: mapserver draws the lines using the second style (a yellowish color), but doesn't draw a hatch over my line. I've tried with the hatch symbol after the style definition, but it still doesn't work. The hatch worked for POLYGON layers just fine. Is there any way I can use it for LINE data? Thanks, Adrian P.S. I'm using mapserver 5.4.1 ___ 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] Applying a hatch over a line layer
yes, you can definitely do that with an image symbol, although that won't be very flexible if you want to change the width. another solution would be with a vector symbol. in both cases, you'll have to add a negative GAP to your symbol definition. cheers, thomas www.camptocamp.com +33 4 79 26 57 97 On Mon, Jul 27, 2009 at 13:47, Adrian Popaadrian_gh.p...@romtelecom.ro wrote: ...Or, to be more clear, I would like to give my lines a striped look - I don't know if there's an easier way to do it than using a symbol... Thanks. Adrian Popa wrote: Hello Thomas, Thank you for your reply. I tried your solution and it draws a dashed line paralel to my feature (on each side because the symbol is thicker). This is nice, but I was wondering if it's possible to draw the lines at an angle relative to my feature, thus created the hatch effect. If this is not possible with a simple symbol - would it be possible with a graphical symbol (picture)? And if yes, should I expect a high performance penalty? Thanks again, Adrian Thomas Bonfort wrote: hi, hatches only apply to polygon layers. what you are probably looking for is the PATTERN keyword: symbol type simple pattern 2 2 end name dashes end regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Mon, Jul 27, 2009 at 11:37, Adrian Popaadrian_gh.p...@romtelecom.ro wrote: Hello, I'm trying to apply a hatch over a line segment, but it doesn't seem to work. My symbol definition is: SYMBOL NAME 'hatch' TYPE HATCH END My layer definition is: LAYER TYPE LINE ... CLASS NAME Test EXPRESSION ( [flag] eq 1) STYLE SYMBOL 'hatch' ANGLE 45 SIZE 3 #spacing between lines WIDTH 4 #width of each line color #00 END style color #fff94d width 2 antialias true end END END The behavior is the following: mapserver draws the lines using the second style (a yellowish color), but doesn't draw a hatch over my line. I've tried with the hatch symbol after the style definition, but it still doesn't work. The hatch worked for POLYGON layers just fine. Is there any way I can use it for LINE data? Thanks, Adrian P.S. I'm using mapserver 5.4.1 ___ 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] Making labels appear less often on adjacent tiles
yes you can do that, by adding a PROCESSING LABEL_NO_CLIP=ON to the layers where you don't want repeated labels. regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 14, 2009 at 13:29, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello everyone, I'm sure this subject has been discussed before, but I wasn't able to find relevant information so far, so please point me in the right direction please. I have switched to WMS and I am now getting several tiles from my mapserver for one request (this is desired) (actually there are multiple WMS requests for a specific area). I have no label clipping issues, so that's fine also. The thing is, for example, if I zoom over a town and the town is split between several tiles, I will get a label on each tile for the town name. Previously, when I was requesting a large tile from my mapserver (single-tile), this wouldn't happen. I don't want to set the label to not be visible below a certain resolution, because that way I wouldn't get any labels below a point. So, my question is: Is it possible to show the label only once per feature, not once per request? My guess is not (because I wouldn't know how to implement it), but I'm curious if there's a solution... Regards, Adrian -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099 ___ 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] Making labels appear less often on adjacent tiles
simply put, when using that parameter the label point is chosen using geographical coordinates instead of pixel ones, which means that the label is anchored to the ground thus making it appear only once even if the polygon spans multiple rendered tiles. hope this is sufficiently clear regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 14, 2009 at 14:45, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Thank you, Thomas, That worked beautifully. I am curious, though - how does it work? I mean, the requests are independent and as far as I can see there is no state on the server telling him some request are part of a larger request. So, how can it know on which tile to show the label and on which tile not to show the label? Thanks Thomas Bonfort wrote: yes you can do that, by adding a PROCESSING LABEL_NO_CLIP=ON to the layers where you don't want repeated labels. regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 14, 2009 at 13:29, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello everyone, I'm sure this subject has been discussed before, but I wasn't able to find relevant information so far, so please point me in the right direction please. I have switched to WMS and I am now getting several tiles from my mapserver for one request (this is desired) (actually there are multiple WMS requests for a specific area). I have no label clipping issues, so that's fine also. The thing is, for example, if I zoom over a town and the town is split between several tiles, I will get a label on each tile for the town name. Previously, when I was requesting a large tile from my mapserver (single-tile), this wouldn't happen. I don't want to set the label to not be visible below a certain resolution, because that way I wouldn't get any labels below a point. So, my question is: Is it possible to show the label only once per feature, not once per request? My guess is not (because I wouldn't know how to implement it), but I'm curious if there's a solution... Regards, Adrian -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099 ___ 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] AGG renderer: Is there a way to disable the antialias feature with pattern brushes?
Is there a way to disable antialias support with the agg renderer when drawing vector symbol based pattern fills? Not that I know of. I've just wanted to construct some of the pre-defined mapinfo fill patterns (see image attached) but it seems the results are quite different by using the agg and gd renderers (the latter is the desired result). Another issue with this kind of antialiased drawing is that we may encounter glitches at the tile borders (for example when drawing hatches this way.) yes, the antialiasing will almost always cause unwanted results if you want your symbols to fit together at tile borders. why not use the dedicated hatch symbol in this case ? The symbol definition of this one looks something like: SYMBOL NAME 'mapinfo-brush-62' TYPE VECTOR POINTS 0 1 4 5 7 2 -99 -99 4 1 4 1 -99 -99 0 5 0 5 -99 -99 0 7 0 7 -99 -99 2 7 2 7 -99 -99 4 7 4 7 -99 -99 6 7 6 7 END END that symbol seems invalid to me, it creates 4 lines with no length, and thus aren't rendered. GD assumed in this case that you wanted to render a single pixel, AGG will not make this assumption and skip the shape regards, thomas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Shapefiles with islands
Hi, last time I tested, osm2pgsql didn't treat relations for multipolygons correctly if not run in slim mode. are you running your osm2pgsql with -s ? regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Mon, Oct 19, 2009 at 11:43, Lars Westerlind lars.westerl...@enera.se wrote: Hi, I wonder if anyone renders islands in lakes? I use OpenStreetMap Data, where lakes are tagged as multipolygons, with islands as inner polygons. The source I use, mainly the Mapserver recommended cloudmade make simple extracts where those inner polygons are simply skipped, AFAIU. Looks rather funny for islands that are large enough to keep some roads... So, what is recommended? Should I make my own OpenStreetMap extracts for this purpose? Or does anyone have any other good sources? BTW, Do I understand correctly that multipolygon files must be converted in order to be possible to handle by mapserver? I mean, inner polygons should have at least an extra column in the DBfile, telling it's level, or such? Regards, Lars ___ 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] label encoding problem
name is a reserved keyword in mapserver mapfiles, you should use LABELITEM NAME instead of LABELITEM NAME regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 21, 2009 at 14:33, 王连波 happyfor...@gmail.com wrote: I use mapserver5.4.0 on FreeBSD Release7.1. In my mapfile I get data from postgis database whose encoding is EUC_CN, and my label part go as follows: labelitem name CLASS NAME xzqj_x STYLE color 255 255 255 END outlinecolor 0 0 0 label COLOR 0 0 0 # SHADOWCOLOR 0 218 218 # SHADOWSIZE 1 1 TYPE truetype encoding GB2312 font simsun MINSIZE 11 MAXSIZE 256 # size 8 POSITION auto # PARTIALS FALSE # MINDISTANCE 30 BUFFER 4 END # end of label however, when I run http://localhost/cgi-bin/mapserv?map=//maplayer=xzqj_xmode=map, it gives the error: getString(): Symbol definition error. Parsing error near (name):(line 46). when I changed labelitem name(Chinese character) to labelitem ename(English) , everything goes well. I know the problem comes from encoding, but I do not know how to resolve it , I am confused about the encodings. Any help are appreciated. ___ 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] AGG Rendering problem
Tony, could you post the symbol definition and how you used it in your mapfile? thanks, thomas www.camptocamp.com +33 5 16 57 01 02 On Tue, Oct 27, 2009 at 22:34, Tony Baylis tony.bay...@resexmap.com.au wrote: Thanks to Rahkonon and and Paul for their responses but neither solved the problem. I eventually moved a map from my existing working mapserver/agg instance to the rebuilt one and after doing the required bits to point it at the right data IT also did not work in AGG rendering mode. I then removed all layers and started adding them back to the map one by one to see if it was a problem with the layer setup somewhere...sure enough one of the layers was referencing a symbol in the symbolset that AGG obviously dislikes. Once I removed the 'SIZE' criteria from the 'STYLE' AGG rendering worked. Since putting the original map together I have created another (better) symbol for this object and using this all is working well. So there you have it...a symbol working with standard rendering but not with AGG, the result being the application seemed to lose connection. Tony Tony Baylis Spatial Information Specialist Resource and Exploration Mapping Suite 8, 290 Boundary St Spring Hill QLD 4000 Ph 3832 1600 Fax 3832 1603 Mob 0419 759 131 Email tony.bay...@resexmap.com.au www resexmap.com.au Rahkonen Jukka wrote: Hi, Try adding MIMETYPE to outputformat. I guess that without it Mapserver is using default for jpeg requests. If you use, while testing, your own mimetype like MIMETYPE image/jpeg2 and in request use FORMAT=image/jpeg2 you should be able to compare what happens with image/jpeg and image/jpeg2. If jpeg2 works you know that Mapserver if using your own imageformat because otherwise image/jpeg2 would not be recognised. Then rename AGG MIMETYPE to image/jpeg and see if the output now seems to be generated by AGG. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Tony Baylis Lähetetty: 26. lokakuuta 2009 15:15 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] AGG Rendering problem Hi all, This is my first post in a long time so be gentle...My problem is I have finally updated an old server to use MapServer 5.4.2 and want to use AGG rendering I have done this without a problem on another server earlier in the year but for some reason whenever I add the 'OUTPUTFORMAT' section and remove 'IMAGETYPE' I get a Connection Lost type error from the browser. Replace 'IMAGETYPE' and the connection is restored but the map is definitely not anti-aliased. Below is the relevant section from my mapfile and below that the output from a ./mapserv -v. Both outputs match the server that works. #IMAGETYPE JPEG OUTPUTFORMAT NAME AGG_JPEG DRIVER AGG/JPEG IMAGEMODE RGB END ./mapserv -vMapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here's hoping you can help. Tony -- Tony Baylis Spatial Information Specialist Resource and Exploration Mapping Suite 8, 290 Boundary St Spring Hill QLD 4000 Ph 3832 1600 Fax 3832 1603 Mob 0419 759 131 Email tony.bay...@resexmap.com.au www resexmap.com.au ___ 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
Re: [mapserver-users] Use of palette file: Problems with changing colors when tiling
is the blue of your lake inside your palette.txt ? if so, you shouldn't be getting those discrepancies. regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 28, 2009 at 11:25, Espen Isaksen espen.isak...@gmail.com wrote: Hi! We are testing out using a palette file in our outputformat to decrease file size in the png output. Most of the time this works great, but some times when we are tiling the data we get some errors. The color seem to shift to a similar color from one tile to another. We have added the colors we use in the map file in the palette.txt file. The documentation says it needs 256 colors in the map file, but we do not use that many colors right now. (we tried adding the same color more than one time, but that created other problems) I have attached a png file showing the problem across a lake. The color on the right side is the correct color and the color we have added to the palette file. The color on the left side of the lake is not something we have set. I have also added the palette.txt file and the outputformat we use is this: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE rgb EXTENSION png FORMATOPTION PALETTE_FORCE=TRUE FORMATOPTION PALETTE=/data/maps/palette.txt END Does anybody know why this happens in Mapserver and how to fix it? Espen ___ 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] Use of palette file: Problems with changingcolors when tiling
even if it was used in the mapfile, the exact value of the water color should have been chosen given it was present in the initial palette. On Wed, Oct 28, 2009 at 22:16, Steve Lime steve.l...@dnr.state.mn.us wrote: Is the color 125,202,228 (the water value in the image on the left) used in your mapfile? On 10/28/2009 at 5:25 AM, in message a4cd3760910280325l4c4a1feah93782aeb25946...@mail.gmail.com, Espen Isaksen espen.isak...@gmail.com wrote: Hi! We are testing out using a palette file in our outputformat to decrease file size in the png output. Most of the time this works great, but some times when we are tiling the data we get some errors. The color seem to shift to a similar color from one tile to another. We have added the colors we use in the map file in the palette.txt file. The documentation says it needs 256 colors in the map file, but we do not use that many colors right now. (we tried adding the same color more than one time, but that created other problems) I have attached a png file showing the problem across a lake. The color on the right side is the correct color and the color we have added to the palette file. The color on the left side of the lake is not something we have set. I have also added the palette.txt file and the outputformat we use is this: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE rgb EXTENSION png FORMATOPTION PALETTE_FORCE=TRUE FORMATOPTION PALETTE=/data/maps/palette.txt END Does anybody know why this happens in Mapserver and how to fix it? Espen ___ 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] Re: Use of palette file: Problems with changingcolors when tiling
Espen, please provide the complete mapfile and actual palette file that were used for the images you produced. looking at the code there's no reason another color should be picked if it was provided in the palette file, so either you're doing something wrong in your mapfile/palette combination, either there's a bug in the code somewhere. thomas www.camptocamp.com +33 5 16 57 01 02 On Sat, Nov 7, 2009 at 11:48, Espen Isaksen espen.isak...@gmail.com wrote: Is this the only way to make it work correctly? It seems a lot easier to extract all the RGB colors we use from the map file and add that to the palette file? That is what we have done now, and it will be a lot more work to actually extract the colors from all the different map images we then have to create(different colors going from mountain areas, forest areas down to urban areas). Espen 2009/11/6 Steve Lime steve.l...@dnr.state.mn.us: Correct. My palette creation process has been to: 1) create a master image that shows as many possible rendering outputs as possible as a 24-bit PNG. 2) use a tool to reduce the colors in that image to the desired number and create a 8-bit file. In my case I use PhotoShop and produce a gif. Here's a link to the one I used for our rec. compass app but after color reduction to 128 colors. http://maps.dnr.state.mn.us/compass/remove/compass_color_master.gif 3) extract a palette from the 8-bit image. I wrote a little perl script that processes gdalinfo output. 4) my outputformat block is like so: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png FORMATOPTION INTERLACE=OFF FORMATOPTION PALETTE_FORCE=TRUE FORMATOPTION PALETTE=/mapserver/compass/compass.palette END I've not had problems with this method... It's possible there's a bug but it's going to be difficult to fix without a good test case. Steve On 11/6/2009 at 9:52 AM, in message a4cd3760911060752i609ad757g9872b8ff5a9b5...@mail.gmail.com, Espen Isaksen espen.isak...@gmail.com wrote: Sorry, this still creates trouble. And you have omitted FORMATOPTION PALETTE_FORCE=TRUE on this one. That means it does not use the palette file right? Espen 2009/11/6 Stephen Woodbridge wood...@swoodbridge.com: Espen, Try using this: OUTPUTFORMAT NAME agg DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 FORMATOPTION PALETTE=/data/maps/palette.txt END And see if it does what you want. Also note that I use ON and note TRUE as the value of QUANTIZE_FORCE, but I'm not sure if the matters or not. -Steve Espen Isaksen wrote: Yes, that is what we have been doing all along. I guess I never should have mentioned our testing with putting lots of colors in the palette file, as it just confuses people :-) So forget our testing, we have only put the colors we use in the mapfile once in the palette file(attached in the first mail), and the error in the color is like on the map I attached(first mail). Espen 2009/11/6 Thomas Bonfort thomas.bonf...@camptocamp.com: Stephen Woodbridge replied to this thread, and gave the correct usage of the palette file: set the same colors in your palette file as in your mapfile. regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Fri, Nov 6, 2009 at 14:24, Espen Isaksen espen.isak...@gmail.com wrote: Justed wanted to bring this question into attention again since we did not get a solution to the problem, and we have not found one either. Could this possibly be a bug in Mapserver? Should we report it? Espen 2009/10/28 Espen Isaksen espen.isak...@gmail.com: Hi! We are testing out using a palette file in our outputformat to decrease file size in the png output. Most of the time this works great, but some times when we are tiling the data we get some errors. The color seem to shift to a similar color from one tile to another. We have added the colors we use in the map file in the palette.txt file. The documentation says it needs 256 colors in the map file, but we do not use that many colors right now. (we tried adding the same color more than one time, but that created other problems) I have attached a png file showing the problem across a lake. The color on the right side is the correct color and the color we have added to the palette file. The color on the left side of the lake is not something we have set. I have also added the palette.txt file and the outputformat we use is this: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE rgb EXTENSION png FORMATOPTION
Re: [mapserver-users] Problems with agg and character definition in symbol File
please open a bug for this and assign it to me (tbonfort). I'll try to get the fix in for the 5.6 release. regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Nov 11, 2009 at 08:54, Michael Pfeiffer michael.pfeif...@bd.so.ch wrote: Hi list, I have a problem with our True Type Font symbols. Is it possible that defining the character with the character number (eg #104;) in the SYMBOL-definition doesn't work anymore with MS5, agg and Polygon Layer? When defining the symbol like this: SYMBOL NAME fels TYPE TRUETYPE FONT av93 Filled true ANTIALIAS TRUE CHARACTER #104; END I get a -Symbol in my polygons. When defining the symbol like this SYMBOL NAME fels TYPE TRUETYPE FONT av93 Filled true ANTIALIAS TRUE CHARACTER h END it works. For point symbols the definition with #104 is also working. But not for polygon symbols. When using png as outputformat I also get a correct map. This is the outputformat definition in the mapfile: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE image/png TRANSPARENT OFF END We have numerous of these symbols and it would be a lot of work to change them all. Is this a bug or am I doing sth wrong? I didn't find anything about this theme in the list. Mapserver Version is 5.4.1 Thx for your answers. Michael -- View this message in context: http://n2.nabble.com/Problems-with-agg-and-character-definition-in-symbol-File-tp3984869p3984869.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] entities one upon the other
if you're using the AGG rendering backend, you can set an opacity on your polygon styles, in which case you should see varying opacity the more features are piled one upon another. STYLE COLOR r g b OPACITY 50 END regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Thu, Nov 12, 2009 at 15:32, Leonardo Olivieri leonardo.olivi...@imteam.it wrote: Hello, I have a polygon layer with entities, one located upon the other. The result that I have is: The entity located upon, hides the entity underneath. Is it possible to configure mapfile in such a way that where the entities are located ones upon the others, the colour becomes evidenced and different to the case in which the entities aren't located ones upon the others? Thank in advance Leonardo ___ 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] Can I set class name in mapfile to Chinese?
* make sure your mapfile itself is encoded in utf8 * in your legend's label block, add ENCODING utf8. make sure your label are of type truetype and not bitmap, as the included bitmap fonts definitely do not contain more than ascii characters. regards, thomas this should do the trick. I don't know about chinese encodings, but you should be able to replace utf8 with whatever encoding your mapfile is in. On Sat, Jan 9, 2010 at 08:46, 王连波 happyfor...@gmail.com wrote: Hi all, I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 . Firstly, I want to know if it is possible to display Chinese class name in Legend by MapScript function drawLegend(). When I set my class name to Chinese characters in my mapfile, the name will become messy codes. I searched the MapServer website for explanation of Funciton drawLegend, however, there was only simple two sentences about it. I do not know where I can find more information about that, how can I make the legend picture display Chinese characters? Thank you for any hints. -- 天道酬勤 ___ 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] symbol circle (ellipse) rendered not round but oval
hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not round but oval
symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png ) any other idea? ^_^ - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 3:18 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not round but oval
gap in pixels = symbol-gap * style-size On Tue, Jan 12, 2010 at 16:52, Oliver Christen oliver.chris...@camptocamp.com wrote: GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol dots size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 4:36 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png ) any other idea? ^_^ - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 3:18 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not roundbut oval
and I want a space pf 20px between the dots, I need a gap of 20/8 = 2.5 but as far as I can see, Mapserver doesnt like none-integer value for gap. what should I do? :( 2010/1/12 thomas bonfort thomas.bonf...@gmail.com mailto:thomas.bonf...@gmail.com gap in pixels = symbol-gap * style-size On Tue, Jan 12, 2010 at 16:52, Oliver Christen oliver.chris...@camptocamp.com mailto:oliver.chris...@camptocamp.com wrote: GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache9.png http://dev.camptocamp.com/%7Eochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol dots size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? - Original Message - *From:* thomas bonfort mailto:thomas.bonf...@gmail.com *To:* Oliver Christen mailto:oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 4:36 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com mailto:oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png) any other idea? ^_^ - Original Message - *From:* thomas bonfort mailto:thomas.bonf...@gmail.com *To:* Oliver Christen mailto:oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 3:18 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com mailto:oliver.chris...@camptocamp.com wrote: hello
Re: [mapserver-users] symbol at start and end of polyline ?
hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with start and end in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver ___ 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] symbol at start and end of polyline ?
well, if you want only one line segment to have start markers, you must tell mapserver which segment that is. On Tue, Jan 19, 2010 at 10:48, Oliver Christen oliver.chris...@camptocamp.com wrote: thx Thomas, but im not sure I understand what you are telling me here. do line segments have id ? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 19, 2010 10:30 AM *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with start and end in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver ___ 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] symbol at start and end of polyline ?
On Tue, Jan 19, 2010 at 15:12, Oliver Christen oliver.chris...@camptocamp.com wrote: At first I thought I had some oddity with the data I used for my testing ( see http://dev.camptocamp.com/~ochriste/line_with_style.pnghttp://dev.camptocamp.com/%7Eochriste/line_with_style.png with the star symbol on every vertex of one line feature) but after trying with some other set of data, I only have the star symbol on start and end of the whole line feature ( and, strangely, also on cross-section if the line separate in two at some point ) where the stars are put depends on the structure of your geometry, as stored in your database or shapefiles http://dev.camptocamp.com/~ochriste/line_feature_extremities.pnghttp://dev.camptocamp.com/%7Eochriste/line_feature_extremities.png so I thought the problem was solved, but upon zooming on the extrmities of the line feature, im again having strange behavior: http://dev.camptocamp.com/~ochriste/line_feature_extremity_zoomed.pnghttp://dev.camptocamp.com/%7Eochriste/line_feature_extremity_zoomed.png with multiple star symbols. the red star in these two image are from the same line feature. are you sure your class expression matches only one geometry ? why is there more than 2 stars ? does the geomtransform 'end' only work for line features consisting of only 2 points ? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 19, 2010 2:10 PM *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? if you're using postgis, you can use a unique key from your table (i.e. gid) if you have a shapefile, you'll have to find an or a combination of attributes in the dbf that's unique to identify that particular feature. -- thomas On Tue, Jan 19, 2010 at 11:59, Oliver Christen oliver.chris...@camptocamp.com wrote: it makes sens, but how do I do that ? do line segment get automaticaly an id ? or how to get (or set) the id of the line segment? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 19, 2010 10:50 AM *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? well, if you want only one line segment to have start markers, you must tell mapserver which segment that is. On Tue, Jan 19, 2010 at 10:48, Oliver Christen oliver.chris...@camptocamp.com wrote: thx Thomas, but im not sure I understand what you are telling me here. do line segments have id ? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 19, 2010 10:30 AM *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? hi, class expression ([id]=321) style geomtransform end ... end end class style ... #all the others end end On Tue, Jan 19, 2010 at 10:14, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I would like to add a symbol at the start and end of a polyline. I tried using GEOMTRANSFORM with start and end in a style block in the layer but sadely this will add a symbol to all start and end of every vertex of the polyline, which is not the result wanted :/ is there any way to do that, beside creating a new point layer ? thanks in advance Oliver ___ 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] Build Mapserver with OpenGL
don't enable opengl, it's not ready -- thomas On Thu, Jan 28, 2010 at 14:51, Eduardo Almeida Costa eud...@gmail.com wrote: Hi! =) I'm trying (and trying, and trying) to build Mapserver with OpenGL but I got this errors: mapogl.cpp: In function ‘int msPopulateRendererVTableOGL(rendererVTableObj*)’: mapogl.cpp:225: error: invalid conversion from ‘void (*)(imageObj*, shapeObj*, colorObj*, double, int, double*)’ to ‘void (*)(imageObj*, shapeObj*, strokeStyleObj*)’ mapogl.cpp:242: error: invalid conversion from ‘void (*)(imageObj*, shapeObj*, void*)’ to ‘void (*)(imageObj*, shapeObj*, imageObj*)’ mapogl.cpp:243: error: invalid conversion from ‘void (*)(void*)’ to ‘void (*)(imageObj*)’ make: ** [mapogl.o] Erro 1 My .configure: # ./configure --enable-debug --with-php=/usr/include/php5 --with-httpd=/usr/sbin/apache2 --with-gd --with-libiconv=/usr --with-gd --with-freetype=/usr --with-threads --with-tiff --with-curl=/us/bin/curl-config --with-jpeg --with-proj=/usr/local --with-geos=/usr/bin/geos-config --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-wcs --with-wfsclient --with-wmsclient --with-sos --with-ming=/usr/src/ming-0.4.2 --with-cairo --with-fribidi-config=/usr/bin/fribidi-config --with-pdf --with-opengl --with-ftgl checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.6.1' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... using libfreetype from -lfreetype -lz configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from -L/usr/lib -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... yes checking for PDF_load_font in -lpdf... yes using libpdf from system libs. checking if FTGL support requested... looking for ftgl libs in /usr using ftgl from /usr checking if OGL support requested... looking for opengl libs in /usr ./configure: line
Re: [mapserver-users] How to define a transparent background for a raster layer?
the keyword you're looking for is OFFSITE -- thomas On Mon, Feb 1, 2010 at 15:32, David Martinez Morata dama...@gmail.com wrote: I have a WMS service with a re¡aster layer, and I try to filter the white value of the background, but I don't know how...I search in the Mapserver Documentation but I don't found it. Some suggestions please? Thanks -- Martinez Morata David Thinking GIS ___ 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] Symbol problem (trunked) using tiled OpenLayers...
google for labelcache_map_edge_buffer -- thomas On Mon, Feb 22, 2010 at 13:29, Paul james paulj...@gmail.com wrote: Yes... Is there any way to fix that ? Because openlayers without tiles is pretty useless for me... Thanks On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge wood...@swoodbridge.com wrote: Paul are you doing tiles? -Steve W Paul james wrote: Hello guys... My annotation layer : LAYER NAME Test METADATA wms_title Test wms_feature_info_mime_type text/html END TYPE ANNOTATION STATUS ON INCLUDE Connection.map DATA ... LABELITEM 'road' CLASS TEMPLATE dummy STYLE SYMBOL 'RoadFed' END LABEL TYPE TRUETYPE FONT Arial SIZE 7 COLOR 70 70 70 MINDISTANCE 100 MINFEATURESIZE 10 PARTIALS FALSE BUFFER 10 END END END Some symbol are trunked... See the image attached... Any idea? Thanks ___ 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
Re: [mapserver-users] vertical alignment of symbols along a line
OFFSET 2 -99 would be the way to go, but isn't the most optimal solution Havard, we're paving the road right now for the ORIGIN to happen, just have to be patient ;) -- thomas On Tue, Feb 23, 2010 at 08:47, Havard Tveite havard.tve...@umb.no wrote: Perhaps you could use OFFSET (with -99) - I have not tried it. See: http://mapserver.org/mapfile/symbology/construction.html A general mechanism (CENTER/ORIGIN) for defining the centre point of a symbol for more control of the precise placement of symbols was suggested in RFC 45 http://mapserver.org/development/rfc/ms-rfc-45.html , but I don't think this has been implemented yet. Håvard Tveite On 2/23/2010 10:31 AM, windfreak wrote: I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org -- Håvard Tveite Department of Mathematical Sciences and Technology, UMB Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ ___ 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] ALIGN Label option
the label block in http://code.google.com/p/mapserver-utils/source/browse/trunk/places.map is how the wrapping is done on city names on the map shown on the mapserver front page. as for your label block: * center must not be quoted, it's a keyword * maxlength 12 will not wrap many labels, unless you have very long ones (the wrapping length is in characters, not pixels) regards, thomas On Wed, Feb 24, 2010 at 17:28, Simon Mercier mercier.si...@gmail.com wrote: Hi, Does anybody have success with the ALIGN parameter assumed to be implement since 5.4? (http://mapserver.org/development/rfc/ms-rfc-40.html#rfc40) I try with mapserver 5.6.1 on linux and via MS4W-beta10. This is my mapfile and still no success? I have found no example I do not see where I fail on this one? getSymbol(): Symbol definition error. Parsing error near (center):(line 55) LABEL OUTLINECOLOR 255 255 255 COLOR 0 0 0 FONT vera TYPE truetype POSITION AUTO BUFFER 5 SIZE 8 OFFSET 1 1 MAXLENGTH 12 WRAP ALIGN center END ___ 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] line width unit ignored after mapserver upgrade
if you're aiming for webmapping and screen display, you should probably not be setting those to a value other than the default value. resolution is used for high-res print output, eg passing from http://server/mapserv/?[]width=300height=300 to http://server/mapserv/?[]map_resolution=288width=1200height=1200 to get a higher resolution image, but without affecting the actual styles being used. -- thomas On Mon, Mar 1, 2010 at 10:58, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Bart that was it! my map has RESOLUTION 254 so adding a DEFRESOLUTION 254 solved the problem thank you very much best regards Oliver - Original Message - Hi, is your MAP-RESOLUTION different from 72? If so, set DEFRESOLUTION to your value as well. Best regards, Bart On Mar 1, 2010, at 9:32 AM, Oliver Christen wrote: hello I recently upgraded mapserver from 5.4 to 5.6.1 and all my line style are computed in meter (I believe) instead of pixel. here is the result im getting: http://dev.camptocamp.com/~ochriste/wms_line.png here is my layer definition: LAYER NAME SitPrProjetConsLine GROUP GrpConstruction METADATA wms_title SitPrProjetConsLine END TYPE LINE DATA SIT_PR_Projet_cons_line STATUS ON DEBUG 5 MAXSCALE 10001 SIZEUNITS pixels CLASS STYLE COLOR 0 0 255 WIDTH 1 MAXWIDTH 1 MINWIDTH 1 END END END here is the query I do: ?LAYERS=SitPrProjetConsLineFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A21781BBOX=506263.99910144,143335.99917056,506391.99903232,143463.99910144WIDTH=256HEIGHT=256 I want a line width of 1px What am I doing wrong ? thanks in advance Oliver ___ 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
Re: [mapserver-users] OSM Renderer using mapfile. A Projection Problem?
what's the url that is requested for the left image ? On Tue, Mar 2, 2010 at 15:17, Ali_ ali_informat...@yahoo.com wrote: Hi, I have used the tutorial to render OSM from the url: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData The problem is the output image I get seemed to be in the wrong projection. Please find the link below to see the image. http://img7.imageshack.us/img7/8279/imagelw.png On the left, It's been generated using a tutorial and on the right it's an OSM. There is definitely wrong with the map on the left. Is it a projection problem? All the layers in mapfile are using SRID=4326 and the output projection in my openlayers (html page) is google projection which is 900913. The database is PostGIS and the data is imported using osm2pgsql using projection 4326. Any ideas, suggestions will be greatly appreciated. thanks, Ali.. -- View this message in context: http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4661186.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: OSM Renderer using mapfile. A Projection Problem?
no, the url of the actual image (right click on it, the properties) On Thu, Mar 4, 2010 at 19:45, Ali_ ali_informat...@yahoo.com wrote: Hi Thomas, Thanks. Its just: http://localhost I have my index.html file under c:\ms4w\Apache\htdocs cheers, Ali. --- On Thu, 3/4/10, thomas bonfort [via OSGeo.org] [hidden email] wrote: From: thomas bonfort [via OSGeo.org] [hidden email] Subject: Re: OSM Renderer using mapfile. A Projection Problem? To: Ali_ [hidden email] Date: Thursday, March 4, 2010, 7:13 PM what's the url that is requested for the left image ? On Tue, Mar 2, 2010 at 15:17, Ali_ [hidden email] wrote: Hi, I have used the tutorial to render OSM from the url: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData The problem is the output image I get seemed to be in the wrong projection. Please find the link below to see the image. http://img7.imageshack.us/img7/8279/imagelw.png On the left, It's been generated using a tutorial and on the right it's an OSM. There is definitely wrong with the map on the left. Is it a projection problem? All the layers in mapfile are using SRID=4326 and the output projection in my openlayers (html page) is google projection which is 900913. The database is PostGIS and the data is imported using osm2pgsql using projection 4326. Any ideas, suggestions will be greatly appreciated. thanks, Ali.. -- View this message in context: http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4661186.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users View message @ http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4674463.html To unsubscribe from OSM Renderer using mapfile. A Projection Problem?, click here. View this message in context: Re: OSM Renderer using mapfile. A Projection Problem? 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer, OpenStreetMap, OpenLayers + Reprojection from Latlong to Mercator: a real nightmare
the projection blocks in your layer should be the projection of the actual data, i.e. 4326 if you've run osm2pgsql with the -l switch. it should *not* be 3785 as you have put it. -- thomas On Wed, Mar 17, 2010 at 22:39, Mulone mul...@rome.com wrote: (apologies for cross-posting) Hi everybody, I'm trying to render openstreetmap data on a WMS on MapServer and I posted something already about this. Now it's time to summarise everything and make some sense of this. The system used to work with epsg:4326 (LATLONG from now on) but in our project we need a GoogleMaps like projection and we chose epsg:900913/epsg:3785 (MERC from now on). This is our problem. We need the image on the right but we're getting the one on the left, a flattened map: http://img7.imageshack.us/img7/8279/imagelw.png After a lot of work and unsucceful tests I post here the outcome, hoping that it will be helpful to the community - and to us :-) These are the steps I followed from the very start: 1) download osm xml file from Cloudmade (e.g. Italy.osm.bz2) 2) Run 900913.sql on my PostGIS (optional, it shouldn't matter). 3) import that file into PostGIS with command (latlong option selected): ./osm2pgsql -U userid -W -H host -d maps -p myprefix -S default.style -c -l italy.osm.bz2 4) At this point everything seems ok. The geometry columns have latlong as SRID and the tables contain geometries. It's possible to visualise this dataset with uDig or other tools and reproject it. 5) Now we want to render this stuff on MapServer. So we add the espg configs from http://spatialreference.org/ref/epsg/3785/ to our mapserver espg file: 900913 +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 3785 +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 6) define this minimal mapfile with one layer: http://virtualpaste.com/82467 7) run several tests with different projections and annotate the outcome. Have a look at the report: http://docs.google.com/View?id=dftx6j46_166d6r38pcs Does anybody have any idea about how we could tackle this issue? I don't know if the problem is arising from MapServer or OpenLayers, so maybe you can help me design a better test to narrow the problem down. I presume a lot of people are doing something similar to us, so others might come across this issue. Cheers, Mulone - Mulone PhD student -- View this message in context: http://n2.nabble.com/MapServer-OpenStreetMap-OpenLayers-Reprojection-from-Latlong-to-Mercator-a-real-nightmare-tp4753197p4753197.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Adjacent letter problem [Bayesian]
try switching to the AGG outputformat in mapserver, it shouldn't suffer from these kind of bugs. -- thomas On Tue, Apr 6, 2010 at 15:25, Ibrahim Saricicek ibrahimsarici...@gmail.com wrote: Hi all; Is this a BUG? Anyone faced with this situation? Small fonts shouldn't result with adjacent letters, I think. ??? -- View this message in context: http://n2.nabble.com/Adjacent-letter-problem-tp4830536p4858959.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Adjacent letter problem [Bayesian]
please post an image with the AGG renderer On Tue, Apr 6, 2010 at 15:49, Ibrahim Saricicek ibrahimsarici...@gmail.com wrote: Hi all, Different output methods and formats give the same result including AGG rendering. The problem occurs while rendering the labels. Whatever the output is, letters are drawn adjacent. Thanks.. -- View this message in context: http://n2.nabble.com/Adjacent-letter-problem-tp4830536p4859063.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] cartolines in AGG?
what's in the plain AGG rendering that's missing compared to cartolines? -- thomas On Fri, Apr 9, 2010 at 15:45, Mark Volz markv...@co.lyon.mn.us wrote: Hello I received a warning on one of my maps that I had an AGG library error due to Cartoline drawings being depreciated with AGG. Is there a replacement for cartoline or will we have to use other symbol types? Thanks Mark Volz GIS Specialist Lyon County, MN ___ 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] cartolines in AGG?
please keep your replies on list... you can replace that with no symbol, and STYLE WIDTH xxx LINECAP butt PATTERN 2 20 END COLOR r g b END the only missing functionality to my knowledge lost from cartoline to agg is triangle caps regards, thomas On Fri, Apr 9, 2010 at 15:54, Mark Volz markv...@co.lyon.mn.us wrote: Thomas, Here is the line on my error log: [Fri Apr 09 08:30:05 2010].631000 msDrawLineSymbolAGG(): AGG library error. Cartoline drawing is deprecated with AGG Here is the part of my .map file that has a cartoline: SYMBOL Name myRailLine TYPE cartoline LINECAP butt LINEJOIN bevel LINEJOINMAXSIZE 1 STYLE 2 20 END END # Symbol Mark Volz GIS Specialist Lyon County, MN -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Friday, April 09, 2010 8:50 AM To: Mark Volz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] cartolines in AGG? what's in the plain AGG rendering that's missing compared to cartolines? -- thomas On Fri, Apr 9, 2010 at 15:45, Mark Volz markv...@co.lyon.mn.us wrote: Hello I received a warning on one of my maps that I had an AGG library error due to Cartoline drawings being depreciated with AGG. Is there a replacement for cartoline or will we have to use other symbol types? Thanks Mark Volz GIS Specialist Lyon County, MN ___ 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] cartolines in AGG?
since recent versions, most (all?) of the parameters that resided in TYPE SIMPLE symbol have been moved to the STYLE block, and will be deprecated at the symbol level. -- thomas On Fri, Apr 9, 2010 at 16:04, Christy Nieman cnie...@dmsolutions.ca wrote: Hi Mark, You can also make a symbol of type simple. See http://research.dmsolutions.ca/?p=168 Christy On 04/09/2010 10:00 AM, thomas bonfort wrote: please keep your replies on list... you can replace that with no symbol, and STYLE WIDTH xxx LINECAP butt PATTERN 2 20 END COLOR r g b END the only missing functionality to my knowledge lost from cartoline to agg is triangle caps regards, thomas On Fri, Apr 9, 2010 at 15:54, Mark Volzmarkv...@co.lyon.mn.us wrote: Thomas, Here is the line on my error log: [Fri Apr 09 08:30:05 2010].631000 msDrawLineSymbolAGG(): AGG library error. Cartoline drawing is deprecated with AGG Here is the part of my .map file that has a cartoline: SYMBOL Name myRailLine TYPE cartoline LINECAP butt LINEJOIN bevel LINEJOINMAXSIZE 1 STYLE 2 20 END END # Symbol Mark Volz GIS Specialist Lyon County, MN -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Friday, April 09, 2010 8:50 AM To: Mark Volz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] cartolines in AGG? what's in the plain AGG rendering that's missing compared to cartolines? -- thomas On Fri, Apr 9, 2010 at 15:45, Mark Volzmarkv...@co.lyon.mn.us wrote: Hello I received a warning on one of my maps that I had an AGG library error due to Cartoline drawings being depreciated with AGG. Is there a replacement for cartoline or will we have to use other symbol types? Thanks Mark Volz GIS Specialist Lyon County, MN ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Weird multi-line label
are you sure they come from the same class/layer ? try changing the label color to make sure regards, thomas On Wed, Apr 14, 2010 at 11:02, Jackey Cheung cheung.jac...@gmail.com wrote: Hi all, I am playing around with labels and meet weird situations. Here's the class I use to generate the attached image PROJECTION init=epsg:4326 END LABELITEM name CLASS MINSCALEDENOM 1 # STYLE # COLOR 40 160 20 # END LABEL ANGLE [angle] PRIORITY [priority] ENCODING UTF-8 COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT msyh SIZE 8 POSITION AUTO PARTIALS FALSE MINFEATURESIZE 20 ALIGN CENTER MAXLENGTH -4 END END I was expecting every label to be wrapped at the 4th character. However only those in green circles are wrapped, while others are not. Do I get something wrong? P.S. I've try using WRAP and WRAP , but got the same image. ___ 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] Help
I'm not a mapscript expert, but I seem to remember you must use the setBinding methods in that case. -- thomas On Tue, Apr 20, 2010 at 02:57, Ing. Romanuel Ramon Antunez rra...@uci.cu wrote: Hi I am trying to create a dynamic layer of type chart with php-mapscript but when I try to change the field size of the class through the method set() to put the field of DB that I do want to graph this not changing. If anyone knows what the problem or have a sample would appreciate it. -- --- Ing. Romanuel Ramón Antúnez Centro de Desarrollo GEySED Departamento de Geomática Prof. Matemática Facultad 9 - UCI ___ 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] Re: WMS and tiles cutting off
I usually find that an untiled openlayers wms layer with transitionEffect:resize has a pretty similar effect that that of a tiled layer, as the map isn't hidden as soon as the user stops panning, but is replaced with the new image once that one arrives. YMMV. regards, thomas On Thu, Apr 29, 2010 at 21:25, Adam Eskreis aeskr...@gmail.com wrote: Ok, I just gave an untiled layer a try, unfortunately though, due to the large amount of symbols being displayed on the screen, there is about a 2 second delay every time the map is panned. My client will most certainly find this unacceptable. I have tried using smaller images, but I cannot sacrifice any more quality. I believe my database query to be as optimized as it can be (has about 50 ms runtime, I honestly don't think I can get it any lower than that). If these are the only options, is there something else besides WMS that you all would recommend using to solve this issue? Thanks, -Adam On Thu, Apr 29, 2010 at 2:54 PM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: So use two layers. One for the background, use tilecache for that. Then use an untiled wms/mapserver layer for the overlayed points. - Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Adam Eskreis [aeskr...@gmail.com] Sent: Thursday, April 29, 2010 1:24 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Re: WMS and tiles cutting off I have thought about using tilecache with metatiling, however there is a caveat about this map that i forgot to mention in my main post, and it has to do with that categories parameter. Basically, each point/symbol on the map has an associated category in the database backend. I am using mapserver/WMS parameters to change the categories which are called. Each time the user selects a category, only the points in that category are shown. My query in the mapfile looks something like thi: SELECT point_geom,gid,symbol,angle FROM mapdata WHERE category IN(%CATEGORIES%); And each time the user changes the categories, I use openlayers to merge new parameters, and input the new category values that should be used. Is tilecache still useable if I have a system like this set up? Thanks, -Adam On Thu, Apr 29, 2010 at 6:14 AM, kaipi mapcoll...@gmx.netmailto:mapcoll...@gmx.net wrote: Hi, you can use http://tilecache.org/ Tilecache with the option metatiling enabled. With metatiling enabled Tilecache will fetch larger tiles (eg. 4096x4096) from Mapserver and will cut them into smaller tiles (eg. 256x256). It will also increase performance because Mapserver does not need to render tiles when they are already in cache. kaipi -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-and-tiles-cutting-off-tp4978418p4979280.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto: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
Re: [mapserver-users] Difference in GD vs AGG PNG output -- seams in my shape files.
see http://trac.osgeo.org/mapserver/ticket/3165 for an explanation and a patch. regards, thomas On Tue, May 4, 2010 at 08:37, Dane Springmeyer bl...@hailmail.net wrote: You might try setting a map background color the same as your ocean color used for the polygons. Dane On May 3, 2010, at 2:03 PM, Mark Deneen wrote: Steve, I had just tried adding an outline before I received this message. It helps, but at the expense of my coastline. This is, however, not a terrible issue because you can still see the detail as you zoom in further. Thanks, Mark On 5/3/2010 4:38 PM, Lime, Steve D (DNR) wrote: You may be seeing some deficiencies in the analytical AA algorithm AGG uses. I remember reading about it awhile back in discussions about alternative algorithms and recall it being prominent with vertical edges. Have you tried setting an outline color to the same value as your fill color? That may help. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Deneen [mden...@gmail.com] Sent: Monday, May 03, 2010 2:42 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Difference in GD vs AGG PNG output -- seams in my shape files. Hi, I recently upgraded from 5.2.x to 5.6.1, and from GD to AGG. Here is my output: AGG: http://i44.tinypic.com/5oh261.png GD: http://i39.tinypic.com/2h4j409.png Visual Representation of the shapefile: http://i44.tinypic.com/1zz2u76.png Look north of Cancun -- the AGG driver is showing seams where the polygons connect in my shape file. It doesn't do it for all of them, but I see it a lot, especially when the seams are not straight N/S or E/W. I feel that it has something to do with AGG's antialiasing, but I've not been able to pin it down. Is there any way to resolve this? I'd really like to use the AGG driver, I love the output it produces, minus the white lines! Mark ___ 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
Re: [mapserver-users] WMS layers order and copyright
POSTLABELCACHE at the layer level is the keyword you are looking for. regards, thomas On Mon, Jun 7, 2010 at 19:52, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This is what I have been using: LAYER NAME copyright METADATA wms_title copyright END STATUS DEFAULT REQUIRES [aerial_images] # this text appears always with aerial images in WMS TYPE ANNOTATION TRANSFORM ll #set the image origin to be lower left FEATURE POINTS 85 -8 #set the offset from lower left position in pixels END TEXT © 2010 aerial image provider #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 200 100 50 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END UNITS PIXELS #sets the units for the feature object END LAYER NAME copyright2 METADATA wms_title copyright2 END STATUS DEFAULT REQUIRES ![aerial_images] #this layer appears with all WMS layers except aerials TYPE ANNOTATION TRANSFORM lr #set the image origin to be lower right FEATURE POINTS -75 -10 #set the offset END TEXT © 2010 raster map provider #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 200 100 50 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END UNITS PIXELS #sets the units for the feature object END -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta mapser...@meteologica.es Lähetetty: 7. kesäkuuta 2010 20:19 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] WMS layers order and copyright Hi, How can i force our copyright-logo layer to appear above the other layers when serving WMS? Our logo/copyright layer is the last one in the mapfile, and we're using STATUS DEFAULT but it seems mapserver ignores order and draws this layer below the others. We have no problems when caling mapserser cgi directly with its own protocol, only when calling it using wms parameters. Is it a bug? Thanks, Paco ___ 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] Maximum width of line - setting is ignored
there's a default limit of 32 on the max width. you can override it with the MAXWIDTH keyword. regards, thomas On Thu, Jul 1, 2010 at 09:53, Frank Broniewski b...@metrico.lu wrote: Hello, we just noticed that our width settings for a line above 40px is ignored. Whatever size we set, it is no more broader than 40px. Is there an internal limit regarding this? CLASS Name bridge-motorway Expression ('[highway]' eq 'motorway' AND '[bridge]' ne '') MaxScaleDenom 4010 STYLE Symbol line Color 0 0 0 Width 50 -- if bigger than 40 - no effect END END SYMBOL NAME line TYPE SIMPLE PATTERN 1 0 1 0 END LINECAP butt FILLED TRUE END Many thanks Frank -- Frank BRONIEWSKI METRICO s.à r.l. géomètres technologies d'information géographique rue des Romains 36 L-5433 NIEDERDONVEN tél.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu ___ 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] Offset values from database
the -99 is a special offset value that shifts the line as you are looking for. style color 255 0 0 offset -2 -99 width 2 end style color 0 255 0 offset 2 -99 width 2 end not perfect as there are artifacts on sharp angles, but worth a try. regards, thomas On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, You can do these offsets in pixel values at a class level, just not a feature level. This pretty much does what you are describing, although it gets a little funky when the lines are diagonal and not straight. CLASS STYLE COLOR 0 0 0 WIDTH 2 END STYLE COLOR 255 0 0 WIDTH 2 OFFSET 10 10 END STYLE COLOR 0 255 0 WIDTH 2 OFFSET -10 -10 END END David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Offset values from database Maybe this pic helps elaborate on what i'm trying to accomplish: http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png It should be noted that the distance between the 2 (new) lines, should be a fixed value over the zoomlevels. It must not be the case that at the furthest zoomlevel the lines are further apart. I've looked all over for this, but never really found a proper solution. I tried cartographic symbol drawing, but it only draws on the same side every time. Maybe I'm just doing it wrong :). On 12 August 2010 16:28, Wim Vanbelle wimvanbe...@gmail.com wrote: Hello, thanks for your feedback. The issue with this, is that the underlying linestrings (the 2 that would lie on top of eachother), have different colors :(. So they have to be moved apart from one another. I have not found a way to do this with asymmetric line drawing either, as it will always offset to the same side. This is why i would need the offset value to be configurable in the database. I could select a different pixel offset for each line and they would always appear next to eachtoher (no matter what zoomlevel). I can elaborate on the problem more if I am a little too confusing ! On 12 August 2010 16:20, Cristiano Sumariva sumar...@gmail.com wrote: If it is a display problem why not try create some special symbology to overlap one line with another using different symbol strokes. So the user will se that are 2 lines overlayed. 2010/8/12 Wim Vanbelle wimvanbe...@gmail.com Hi David, I read that documentation before though. I was hoping it just hadn't been updated... Is this possibly a feature for 6.0 ? Are there any other ways how one could offset a feature in pixels, rather than in lat/long coords? Maybe I should elaborate on the original problem a little. Consider 2 line segments that lie above one another. The general idea is to 'offset' them a given x , y value, so they will both display next to one another, rather than on top of eachother. If you would however perform this code simply on lat/long values, it would imply, that when scaling your map at the most detailed zoom level, the lines would lie very far apart, and when zoomed out, they would appear to lie on top of eachother. I find it hard to believe that I would need to pre calculate all the data in order to obtain geometry objects for each zoom level. Maybe some veterans have some good insight in this :). On 12 August 2010 15:26, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Wim, If you don’t want me to tell you, you will likely want to look at the mapfile documentation at: http://mapserver.org/mapfile/style.html [Spoiler Alert] You can’t use values from an attribute table to set the value of this property [/Spoiler Alert] David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle Sent: Thursday, August 12, 2010 5:48 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Offset values from database Hi, I'm trying to load offset X, Y data from the postgis database. Each feature has an offset value defined there. My mapfile (relevant part) looks like this: In the layer: DATA geom_mercator from map_links using unique Id using SRID=900913 STYLE WIDTH 6 COLOR 0 255 0 ANTIALIAS TRUE ANGLE AUTO OFFSET [offsetX] [offsetY] END Please don't tell me the offsetX, Y values cannot be read from the database. That would be a huge issue for me. Thank you for your time. Best regards
Re: [mapserver-users] Point/annotation labels and tiles
You must use PARTIALS false in this case. regards, thomas On Fri, Aug 13, 2010 at 11:39, Ludovic Gnemmi lgne...@rgd73-74.fr wrote: Hi list, I'm a bit lost.I'm creating tiles with a php batch script and i have some issues regarding points labels. End of label don't appear on neighbouring tile. label is clipped because only one tile extent know about the presence of the point. I'm using the folowing paramaters but it doesn't help : Map level : METADATA labelcache_map_edge_buffer -10 END Layer level layer (type=annotation): PROCESSING LABEL_NO_CLIP=1 Label level : LABEL COLOR 21 21 21 FONT arial TYPE truetype SIZE 10 POSITION lr FORCE true PARTIALS true END http://osgeo-org.1803224.n2.nabble.com/file/n5419368/labels.png Any idea would be very welcome. Ludovic Mapserver 5.6.5 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Point-annotation-labels-and-tiles-tp5419368p5419368.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: How to appear Graph?
What version of MapServer are you using? Charting appeared in 5.0. Regards, Thomas On Aug 26, 2010 9:02 PM, elisabeth theresia dbee_ka...@yahoo.com wrote: Hi Mr. Sumit, Thanks for your advice. when i tried to apply step by step from: http://mapserver.org/output/dynamic_charting.html then in the browser said: getSymbol(): Symbol definition error. Parsing error near (CHART):(line 66) this is line 66: TYPE CHART why become like this? here the mapfile: ###CHART## LAYER NAME chart bj STATUS ON #TYPE POLYGON TYPE CHART PROCESSING CHART_TYPE=BAR PROCESSING CHART_SIZE=20 10 #specify size of the chart for pie or bar graphs #PROCESSING CHART_SIZE=20 10 #specify width n height for graphs CONNECTIONTYPE POSTGIS CONNECTION user=dbee password=root dbname=dbSpatialSura host=localhost port=5432 DATA the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel CLASS NAME 1000-2000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=1000 and [ljum_bj]=2000) STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 2001-4000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=2001 and [ljum_bj]=4000) STYLE COLOR 255 255 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 4001-8000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=4001 and [ljum_bj]=8000) STYLE COLOR 200 200 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 8001-16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=8001 and [ljum_bj]=16000) STYLE COLOR 150 150 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME 16000 TEMPLATE ./template_gender.html EXPRESSION ([ljum_bj]=16000) STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS END #LAYER Thanks a lot and sorry makes confuse :) -Theresia -- *From:* Sumit Sharma sumit...@hotmail.com *To:* mapserver-users@lists.osgeo.org *Sent:* Wed, August 25, 2010 11:26:23 PM *Subject:* [mapserver-users] Re: How to appear Graph? You may like to visit following URL for charting... http://mapserver.org/output/dynamic_charting.h... ___ 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] Display performance
That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson webturt...@gmail.com wrote: Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM MEAN_SP_PC CLASS EXPRESSION 1 NAME 4.00 (m/s) STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris ___ 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] Display performance
On Fri, Sep 3, 2010 at 11:12, Chris Jackson webturt...@gmail.com wrote: Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME meanspringpeakflow TYPE polygon DEBUG 5 DATA Tide TEMPLATE void PROJECTION +proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs END METADATA DESCRIPTION Mean Spring Peak Flow RESULT_FIELDS ID,DISTANCE,DEPTH,MEAN_SP_PC RESULT_HEADERS ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s) ows_title meanspringpeakflow RESULT_HYPERLINK ID|| Load graphing tool END # Metadata CLASS NAME ' 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] = 4 AND [MEAN_SP_PC] 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] = 3.5 AND [MEAN_SP_PC] 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc you can speed things up a little by simplifying your expressions in case mean_sp_pc is a continous value: class expression ([item]=4) ... end class expression ([item]=3.5) #this suffices and implies [item] 4 as all entries with [item]=4 wil have been treated by the first class ... end class ...etc... end regards, thomas On 3 September 2010 09:04, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 20 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 2 or 20 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- ___ 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] WMS Request for a single point?
have a look at http://www.mail-archive.com/mapserver-us...@lists.umn.edu/msg05881.html the syntax for cgi commands has changed since then, you'd have to use something like map.layer[site]=feature+points+582248.23+4841497.11+end+end or map.layer[site].feature.points=582248.23+4841497.11 (I cant remember what syntax is correct) -- regards, thomas On Fri, Oct 8, 2010 at 17:10, Robert Hicks rob...@gmail.com wrote: Hello all! Ok, this is probably a long shot but, is there a way to request an image from Mapserver that is just a point? The idea is I have another larger (reference) map image and I want to place a push pin on top of it in a specified point. It has to be a WMS call so that I can take the image and merge it with the other larger map into one so that it can be put into a PDF. Any help would be appreciated. Thanks! -- web http://www.hyxspace.com aim hyx1138 ___ 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] WMS Request for a single point?
actually, this is documented here: http://mapserver.org/cgi/controls.html - Changing map file parameters via a form or a URL -- thomas On Fri, Oct 8, 2010 at 18:06, Robert Hicks rob...@gmail.com wrote: Ok, that looks extremely promising. I'm going to go ahead and try it on my local Mapserver. On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort thomas.bonf...@gmail.com wrote: have a look at http://www.mail-archive.com/mapserver-us...@lists.umn.edu/msg05881.html the syntax for cgi commands has changed since then, you'd have to use something like map.layer[site]=feature+points+582248.23+4841497.11+end+end or map.layer[site].feature.points=582248.23+4841497.11 (I cant remember what syntax is correct) -- regards, thomas On Fri, Oct 8, 2010 at 17:10, Robert Hicks rob...@gmail.com wrote: Hello all! Ok, this is probably a long shot but, is there a way to request an image from Mapserver that is just a point? The idea is I have another larger (reference) map image and I want to place a push pin on top of it in a specified point. It has to be a WMS call so that I can take the image and merge it with the other larger map into one so that it can be put into a PDF. Any help would be appreciated. Thanks! -- web http://www.hyxspace.com aim hyx1138 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- web http://www.hyxspace.com aim hyx1138 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Request for a single point?
As you said you were wanting to do a wms call, just append map_layer[0]=FEATURE+POINTS+27+696000+END+END to a regular GetMap request -- thomas On Fri, Oct 8, 2010 at 18:40, Robert Hicks rob...@gmail.com wrote: Great, thanks for all the help everyone! I tried that command: http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.mapmode=mapmap_layer[0]=FEATURE+POINTS+27+696000+END+ENDWIDTH=1000HEIGHT=500 (I had to change a few things), and I get this error: msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image width or height. Any ideas? On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: This example works: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.mapmode=mapmap_layer[0]=FEATURE+POINTS+27+696000+END+END You can access your layer through the layer name or it's (zero-based) index. The simple example layer is below with a simple circle symbol defined in the map file. LAYER NAME 'singlepoint' TYPE point STATUS DEFAULT CLASS STYLE COLOR 255 0 0 SIZE 15 symbol circle END END END SYMBOL NAME circle TYPE ellipse FILLED true POINTS 1 1 END END -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Robert Hicks Sent: Friday, October 08, 2010 11:07 AM To: thomas bonfort Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WMS Request for a single point? Ok, that looks extremely promising. I'm going to go ahead and try it on my local Mapserver. On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort thomas.bonf...@gmail.com wrote: have a look at http://www.mail-archive.com/mapserver-us...@lists.umn.edu/msg05881.html the syntax for cgi commands has changed since then, you'd have to use something like map.layer[site]=feature+points+582248.23+4841497.11+end+end or map.layer[site].feature.points=582248.23+4841497.11 (I cant remember what syntax is correct) -- regards, thomas On Fri, Oct 8, 2010 at 17:10, Robert Hicks rob...@gmail.com wrote: Hello all! Ok, this is probably a long shot but, is there a way to request an image from Mapserver that is just a point? The idea is I have another larger (reference) map image and I want to place a push pin on top of it in a specified point. It has to be a WMS call so that I can take the image and merge it with the other larger map into one so that it can be put into a PDF. Any help would be appreciated. Thanks! -- web http://www.hyxspace.com aim hyx1138 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- web http://www.hyxspace.com aim hyx1138 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- web http://www.hyxspace.com aim hyx1138 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapfile annotation underlined text
Hi, Mapserver currently does not support underlining text. regards, thomas On Thu, Oct 14, 2010 at 08:33, Büttner, Diana (LVG) diana.buett...@lvg.bayern.de wrote: Hi, for a getMap-response I want underlined text. I haven't found any settings for this problem in the Mapfile Reference. Can I use something like decoration or anything else, maybe in the label-obejct, to get my text underlined? Best regards, Diana ___ 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] Problems with AGG rendering
Rendering thick lines is done without symbols with agg (and GD with recent versions of mapserver to, I believe) for an outlined line, you use: CLASS STYLE COLOR outlinecolor WIDTH 5 END STYLE COLOR fillcolor WIDTH 3 #width of the first style minus 2 times the desired outline width END END regards, thomas On Mon, Oct 25, 2010 at 19:21, Sharon Carter carter.sharon...@gmail.com wrote: Hello, We have been working with mapserver for a while and now we are updating our map. We decided to give AGG a try for this new version but we have been having some troubles setting it up to work properly. When we moved from GD to AGG the map starting showing areas with different colors than the ones specified in the map file. Here we have an image with the rendering with GD http://67.23.24.210/mapserver/gd.png And one with AGG http://67.23.24.210/mapserver/agg.png The output format for AGG we are using is OUTPUTFORMAT NAME 'PNG' DRIVER AGG/PNG IMAGEMODE RGBA MIMETYPE image/png;mode=24bit FORMATOPTION FORMAT=image/png END The street lines are painted using a symbol to create the outline for the streets. Any ideas what could be causing this? Thanks Sharon ___ 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] Polygon hatch mismatch at tile borders.
Yes, the problem is known and hasn't been addressed yet. This one would be a candidate for 6.2. cheers, thomas On Thu, Oct 28, 2010 at 15:19, Stephen Woodbridge wood...@swoodbridge.com wrote: On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: Thanks Alex, The gutter solution gives something better and the singleTile solve the problem. Unfortunately I can't use them, because we are pre-generating tiles in order to have good performances, which means that I need a solution at the level MapServer (Mapfile and / or symbol file). I've found that in The MapServer RFC Documentation http://mapserver.org/development/rfc/ms-rfc-45.html: - Polygon fill symbols Give hatches and vector fills a stable geographical coordinate origin (0,0) to better support tiling and continuous rendering of neighboring polygons - Does it mean that the problem is known and have been fixed? Larissa, Have you check to see it there is an open bug for this? The RFC would seem to indicate that the problem is known. And that it was considered in RFC45, but it is not clear from the RFC that it was actually solved as there is no bug number at the bottom that specifically tracks that particular change. This RFC was targeted for Mapserver 5.4. If you are on 5.4 or later then you might want to get a ticket opened asap, and maybe a fix can get put in 6.0 to resolve this. Steve L, Thomas B, - Do you guys know if this was tackled or not? -Steve W Best regards! Larissa -Message d'origine- De : Strunck, Alexander [mailto:stru...@bicc.de] Envoyé : jeudi, 28. octobre 2010 12:21 À : Ausderau Larissa LT; 'mapserver-users@lists.osgeo.org' Objet : AW: Polygon hatch mismatch at tile borders. Hello you can use the parameter gutter. Here an example http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html Or you can use the parameter onetile. Here another example http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html alex Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: 'mapserver-users@lists.osgeo.org' Betreff: [mapserver-users] Polygon hatch mismatch at tile borders. Hi, I'm using MapServer 5.4.2 and when I'm working with tiles the hatches of hatch filled polygons are not matching at tile borders. See example hatch_mismatch.jpg How can I solve that? Thanks Larissa ___ 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
Re: [mapserver-users] Label backgroundcolor
BUFFER used to also expand the size of the billboard, but that's not the case anymore. I don't think it's currently possible to expand the billboard, although it should soon be possible to do so in the near future (we can also imagine rounded rectangle billboards to). (the following is slightly off-topic, bu at least it will be written down somewhere to integrate in the migration guide) we'll probably be removing backgroundcolor and backgroundshadowcolor, and replace them with something like LABEL xxx STYLE GEOMTRANSFORM LABELPOLY#this is were other keywords would be used for expanding the billboard COLOR xxx #ex bgcolor OUTLINECOLOR xxx OFFSET 1 1 #use an offset for obtaining the same result as backgroundshadowcolor SYMBOL 'hatch' #let your imagination play END END regards, thomas On Fri, Nov 19, 2010 at 15:52, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: Thanks Michael. BUFFER just does what I expected it to do. The labels are farther apart and one of them doesn't get drawn because there isn't room for it. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael Schulz Sent: Friday, November 19, 2010 4:35 AM To: Fawcett, David (MPCA) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Label backgroundcolor Hi David, not sure, but have you tried using/increasing the BUFFER value of the label? Cheers, Michael 2010/11/18 Fawcett, David (MPCA) david.fawc...@state.mn.us: I know that you can set a shadow for the backgroundcolor (billboard). Can you increase the size of the billboard? E.g. 5 pixels all of the way around? Thanks, David. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- --- Michael Schulz msch...@webgis.de in medias res Gesellschaft für Informationstechnologie mbH Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -- Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg ___ 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
Re: [mapserver-users] Compiling Trunk - problems with gifs
you have to install the gif header files, ie the giflib-dev package of your system. the configure script is looking for gif_lib.h. regards, thomas On Sun, Nov 28, 2010 at 19:10, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: I am working on compiling a pretty stripped down mapserv binary based on trunk (11/25) on CentOS 5. I successfully compiled GD with jpeg, png, and freetype support. Gdlib-config --features returns GD_JPEG, GD_FREETYPE, GD_PNG, GD_GIF, GD_GIFANIM, GD_OPENPOLYGON. When I try to compile MapServer using the basic ./configure --with-gd=/usr/, I get a bunch of messages saying that MapServer can't find the gif stuff configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... no checking gif_lib.h usability... no checking gif_lib.h presence... no checking for gif_lib.h... no configure: error: cannot find gif headers in system path I noticed a recent post on mapserver-dev about adding an additional flag to configure for gifs. But, when I try ./configure --with-gd=/usr/ --with-gif=/usr/ or (./configure --with-gd=/usr/ --with-gif=/usr) I get an error message telling me that MapServer can't find the gif stuff. configure: checking where GIF is installed... configure: error: cannot find gif lib in /usr/ I didn't compile gif_lib and don't see it anywhere in /usr. Do I need to compile a gif lib before or after compiling GD, or can MapServer just use the gif support in GD? Any help is greatly appreciated. David. ___ 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] PNG Optimization
Cedric, Mapserver currently doesn't support png options, although this souldn't be to difficult to add as a FORMATOPTION (at least for the non GD renderers). You should note that the quality of the compression you apply to pngs has a non trivial effect on the overall rendering time, so we can't just add maximum compression by default. ps: you can see the effect of png compression schemes (on throughput and image size) on this small benchmark I ran for mod-geacache. the use case is the on the fly merging of two 256x256 png tiles: http://mod-geocache.googlecode.com/svn-history/r69/trunk/static/benchmark.png regards, thomas 2010/12/10 Cédric MOULLET cedric.moul...@gmail.com: Hi, We are using MapServer to generate tiles and the following ouptut format is used: OUTPUTFORMAT NAME pnga MIMETYPE image/pnga DRIVER AGG/PNG EXTENSION png IMAGEMODE RGBA TRANSPARENT TRUE FORMATOPTION INTERLACE=OFF END We observe that the size of the tiles can be reduced by a at least factor 2 if we use a tool like optipng. Is it possible to configure MapServer in order to optimize the file output (and for example use optipng) ? Or do you see another way to optimize the image (I'd like to do that on the MapServer side in order to avoid a postprocessing) ? Thanks in advance for any hints. Cédric -- Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowlzoom=11X=185241.24219Y=561288.90625bgOpacity=0selectedNode=node_ch.swisstopo.fixpunkte-lage1 ___ 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] draw hatch pattern with image file (ex. gif, etc)
if your image contains a hatch, yes, it's possible, although you can't change the color. if you want to create a hatch, use: symbol name hatch type hatch end layer ... style symbol hatch color 0 0 0 angle 45 #hatch orientation width 1 #line width size 10 #spacing between lines end end -- thomas On Thu, Dec 16, 2010 at 10:46, Isao NASUNO isao.nas...@ctc-g.co.jp wrote: Hello all, Is it possible to draw hatch pattern without symbol (vector) but using small image file which have tranparency like gif etc ? Layer type is polygon. : type polygon : class name x expression x color 255 200 200 style image smallimage.gif # -- like this.. end end Thanks, Isao NASUNO ___ 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] Is it posible to draw variable feature points
Luis, have a look at the mailing list archives and/or the mapserver documentation. http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067350.html http://mapserver.org/cgi/controls.html -- thomas On Tue, Jan 4, 2011 at 22:54, Luis Treviño ltrevi...@gmail.com wrote: Hi list. I would like to know if it's posible to draw a point layer with variable coordinates as a feature using run-time variable substitution. I want to use cgi mapserver and privide a lat / lon values as variables and would like mapserver to draw a symbol in that point. is it posible? I know you can't use something like this, but it's the idea. LAYER NAME XX STATUS ON TYPE POINT FEATURE POINTS long value lat value END END CLASS STYLE SYMBOL 2 SIZE 20 COLOR 0 255 0 #verde OUTLINECOLOR 255 255 255 END END END Any idea or suggestion? thanks in advance regards, Luis ___ 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] Labels are cut at the borders of the tiles
it does not seem to be documented. when set to ON, what happens is that labels are fixed to a geographical location on the feature, instead of being adjusted to fit in the pixel range of the created map. this is essentially used for tiling, as in that case each feature will be labeled exactly once, instead of once per tile. -- thomas On Mon, Jan 10, 2011 at 16:34, Niccolo Rigacci nicc...@rigacci.org wrote: On Mon, Jan 10, 2011 at 10:43:22AM -0400, Jeff McKenna wrote: PROCESSING LABEL_NO_CLIP=1 Please, do you know if that directive is documented somewhere? I searched www.mapserver.org (with the Quick search box and with Google), but nothing is found. -- Niccolo Rigacci Firenze - Italy ___ 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] WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this
Ralf, not really related to your problem at hand, but the image you provided is exhibiting a bug in the mapserv-utils mapfile. You should change it locally, in two places: UNITS meters must be UNITS dd and the wms_srs metadata key should be capitalized. as for your original request, have a look at wms_group_title in http://mapserver.org/ogc/wms_server.html#layer-object-metadata . best regards, thomas On Wed, Jan 12, 2011 at 08:38, Eckert, Ralf ralf.eck...@stadt-gummersbach.de wrote: Hi, The system was created for this website: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData UMN MapServer as Server on Linux 5.6.5 is used incl PROJ4, PostgreSQL / PostGIS As the district map Cologne has been deposited. The self-test with the command: / path/to/mapserver/shp2img-m-o osm.map osm.png led to a usable image, s: http://gis.gummersbach.de/koeln.png The map file was installing itself, and OSM supplemented with the epsg of me: Currently running the following map file: MAP OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION INTERLACE=false MIMETYPE image/png END FONTSET fonts.lst IMAGETYPE agg MAXSIZE 4000 SIZE 800 800 EXTENT 5.8668561 50.3353631 7.7911996 51.2502162 UNITS meters IMAGECOLOR #B3C6D4 WEB METADATA wms_srs epsg:900913 epsg:31467 epsg:31493 epsg:4326 labelcache_map_edge_buffer -10 wms_title osm stadt-gummersbach END END DEBUG 10 CONFIG PROJ_LIB /home/gkz212/tmp/mapserver-utils CONFIG MS_ERRORFILE stderr PROJECTION init=epsg:4326 END LAYER TYPE POLYGON STATUS ON GROUP default NAME land PROJECTION init=epsg:900913 END DATA coastlines/processed_p CLASS STYLE COLOR #EDEBE6 OUTLINECOLOR #EDEBE6 END END END END Do I get the following error message GetCapabilities: .. Layer NameMS/Name Titleosm stadt-gummersbach/Title AbstractMS/Abstract SRSepsg:900913/SRS SRSepsg:31467/SRS SRSepsg:31493/SRS SRSepsg:4326/SRS LatLonBoundingBox minx=5.86686 miny=50.3354 maxx=7.7912 maxy=51.2502 / BoundingBox SRS=EPSG:4326 minx=5.86686 miny=50.3354 maxx=7.7912 maxy=51.2502 / Layer Namedefault/Name !-- WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this context. -- Titledefault/Title Abstractdefault/Abstract Layer queryable=0 opaque=0 cascaded=0 Nameland/Name !-- WARNING: Mandatory metadata '..._title' was missing in this context. -- Titleland/Title SRSEPSG:900913/SRS LatLonBoundingBox minx=-180 miny=-85.0512 maxx=180 maxy=83.6693 / BoundingBox SRS=EPSG:900913 minx=-2.00375e+07 miny=-2.00377e+07 maxx=2.00375e+07 maxy=1.84644e+07 / /Layer /Layer /Layer .. Does anyone have an approach as I get this error fixed? The attempt to replace the double quotes with simple, gives the same error. Ralf Eckert Stadtverwaltung Gummersbach FB9 - GIS / Vermessung Rathausplatz 1 51463 Gummersbach Tel: 02261 - 872303 http://gis.gummersbach.de ___ 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] mapserver defunct
http://trac.osgeo.org/mapserver/ticket/3099 might be related. I don't know how fastcgi in lighty works, but mapserver in fastcgi definitely does not play nicely with fastcgi implementations that don't expect child processes to ever exit(). As Stpehen pointed out, I'd try with apache/fastcgi , if not only to confirm that the problem is in the fastcgi rather than pure mapserver side. best regards, thomas On Wed, Jan 12, 2011 at 13:23, Wim Vanbelle wimvanbe...@gmail.com wrote: The problem definately seems related to concurrency. Load benching using 1 concurrent requests: 0 fails. Load benching using 2 concurrent requests: +- 30% fails more concurrent = more fails. The failed seem to return with HTTP 500. Running a shp2img during this time, still returns a good image. I'll post more info about this topic and a resolution, if i find one :). Do note that we're dealing with shapefiles with 3 000 000 linestrings. While they consist only of 2 coordinates (begin end obviously), it's still a big thing to load. On 12 January 2011 06:18, Stephen Woodbridge wood...@swoodbridge.com wrote: Wim, I'm not sure I have any magic bullet for this problem, because I'm not sure what is causing it. If this was my project, I would tackle it like this: 1. alert people we have a problem that might impact the release date if you have not already done that 2. divide the problem to try and localize what is causing it a. do the tiles that fail, always fail? this points at a potential mapserver related issue as opposed to a load issue a.1 have you turned on mapfile DEBUG output? can you identify the layer a.2 you can get some maybe useful output from: strace /path/to/mapserv QUERY_STRING='url arguments' gdb /path/to/mapserv run QUERY_STRING='url arguments' where quit valgrind /path/to/mapserv QUERY_STRING='url arguments' a.3 you can run it with shp2img ... b. is it fastcgi, do you see the same problem if you build it as cgi c. is it lighttpd, do you see the same problem if you run it with apache fastcgi? what about apache cgi? Intermittent problems are the hardest to diagnose because they often are not reproducable in a debuging environment. We might be able to help you with more information. I have done a lot of load testing on various versions of mapserver and tiled all of US and Canada about 4-5 different times using mapserver. I have not used FastCGI/Lighty and lighttpd, so I'm not sure about what influence that might have on the problem. Hope this gives you some ideas. Best regards, -Steve W http://imaptools.com/ On 1/11/2011 3:15 PM, Wim Vanbelle wrote: Well, the problem is that the requests are not always served. During load testing, say about 10 concurrent requests I also load the map. But there are randomly tiles that are never loaded. I thought this would be related to the defunct processes, but that is not a certainty. My setup is lighttpd + fastcgi. To be honest I'm in a pretty bad situation now, considering we go live with this in 9 days. Not sure what else I can do honestly. On 11 January 2011 19:05, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: Here is an explanation of defunct processes: http://www.webmasterworld.com/forum40/1032.htm I'm sure there are others. So since you are running fastcgi, it is the responsibility of the fastcgi parent process to clean up dead child processes. It is likely that it is busy because you are doing load testing or there is some subtle issue that is occurring. If you are getting good responses from mapserver, you probably do not need to worry about it unless you are getting tons of them. If you are using apache, I believe there is a parameter that you can set for fastcgi processes which will let them die after N requests. This should clean those up and apache will spawn a new process if needed to replace the that died. -Steve W On 1/11/2011 10:04 AM, Wim Vanbelle wrote: Hi all, I'm getting a lot of 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv defunct 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv defunct while load testing mapserver. Is there any way I can go about checking out why this is happening? Especially when doing concurrency tests it seems to go sideways. Currently i'm using : MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Re: [mapserver-users] Stacked bar charts with mapserver?
Nicol, you have the *vbar examples in msautotest that show how to obtain stacked vertical bar graphs, I assume that's what your looking for? regards, thomas On Wed, Jan 12, 2011 at 22:35, Nicol Hermann mapser...@geoworld.de wrote: Hello list, I wonder if MapServer is able to build stacked bar charts? After checking the wiki documentation at: http://mapserver.org/output/dynamic_charting.html#bar-graphs i am afraid the answer is no. But want to double check with the group. Thanks for any pointers Best regards Nicol ___ 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] Stacked bar charts with mapserver?
Nicol, have a look at http://trac.osgeo.org/mapserver/ticket/3482 for a patch concerning this issue. regards, thomas On Thu, Jan 13, 2011 at 06:47, Nicol Hermann mapser...@geoworld.de wrote: Thomas, sound promising, cool. I checked the image misc/expected/chartlayer_vbar.png and this is exactly what I am looking for. Unfortunately the test for this specific usecase ('misc/chartlayer_vbar.map') fails with mapserver 5.6.5 when i run './run_test.py'. .. Processing: chartlayer_vbar.map * results dont match, TEST FAILED. .. A blank image is returned Do you have an idea why? The debug output contains no further information: [Thu Jan 13 06:41:18 2011].786876 msDrawMap(): Layer 0 (charts), 0.129s [Thu Jan 13 06:41:18 2011].786951 msDrawMap(): Drawing Label Cache, 0.000s [Thu Jan 13 06:41:18 2011].786981 msDrawMap() total time: 0.129s [Thu Jan 13 06:41:18 2011].790139 msSaveImage() total time: 0.003s [Thu Jan 13 06:41:18 2011].790207 msFreeMap(): freeing map at 0x272a760. [Thu Jan 13 06:41:18 2011].790254 freeLayer(): freeing layer at 0x2732290. [Thu Jan 13 06:41:18 2011].790298 shp2img total time: 0.150s Thanks! Best regards Nicol Am Donnerstag, den 13.01.2011, 01:15 +0100 schrieb thomas bonfort: Nicol, you have the *vbar examples in msautotest that show how to obtain stacked vertical bar graphs, I assume that's what your looking for? regards, thomas On Wed, Jan 12, 2011 at 22:35, Nicol Hermann mapser...@geoworld.de wrote: Hello list, I wonder if MapServer is able to build stacked bar charts? After checking the wiki documentation at: http://mapserver.org/output/dynamic_charting.html#bar-graphs i am afraid the answer is no. But want to double check with the group. Thanks for any pointers Best regards Nicol ___ 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] Symbol for striped polygons
lookup HATCH in docs. regards, thomas On Fri, Jan 14, 2011 at 14:17, Simone Frigerio simone.frige...@univie.ac.at wrote: Hi! I need to pubblish a polygon with different styles and classes. Especially I am trying to define a SYMBOL to fill polygon shapes whit stripes and trasparent background color. I am not expert on this issue, can you make me some examples please? Thanks. Simone ___ 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] Is --with-experimental-png still experimental ?
Ivan, for the 5.x branches, it will stay like that. for the 6.0 and subsequent releases, the flag is removed and the functionality is native. regards, thomas On Mon, Jan 17, 2011 at 12:54, Ivan Mincik ivan.min...@gmail.com wrote: Hi, I am using compile option --with-experimental-png for some 2 Years on all production machines to produce nice quantized PNG images. I would like to ask, if this option should be still marked as experimental ? My setting: 1. Debian Lenny 2. Mapserver 5.2 - 5.6 3. Mapfile IMAGETYPE 'AGG_PNG' OUTPUTFORMAT NAME 'AGG_PNG' DRIVER 'AGG/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA FORMATOPTION 'QUANTIZE_FORCE=ON' FORMATOPTION 'QUANTIZE_DITHER=OFF' FORMATOPTION 'QUANTIZE_COLORS=256' FORMATOPTION 'INTERLACE=OFF' EXTENSION 'png' END Thanks, Ivan ___ 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] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make.
add --with-png, and make sure the png development headers are available. regards, thomas On Mon, Jan 17, 2011 at 18:07, Passmore, James H. jp...@bgs.ac.uk wrote: I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to add a patch to support the INSPIRE language requirement (otherwise I'd use one of the existing binaries). I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos --with-experimental-png --with-fribidi-config --with-threads --enable-debug --with-wfs ) and this completes with no errors. ZLIB is found: configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). and I have reported: MapServer is now configured for -- Compiler Info - C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -- Renderer Settings - OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: -DUSE_RGBA_PNG jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -- Support Libraries - Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -- Data Format Drivers --- native tiff support: PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -- OGC Services -- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -- MapScript - PHP MapScript: no However when I run make I get the following error: local/include -I/usr/include/libxml2 -I/usr/local/include maprgbapng.c -o maprgbapng.o maprgbapng.c: In function ‘ms_png_write_image_init’: maprgbapng.c:146: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function) maprgbapng.c:146: error: (Each undeclared identifier is reported only once maprgbapng.c:146: error: for each function it appears in.) make: *** [maprgbapng.o] Error 1 Can anyone tell me where I might be going wrong? thanks James Passmore GIS and WWW Specialist Information Systems and Infrastructure British Geological Survey -- This message (and any attachments) is for the recipient only NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.___ 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] Label text always clipped by tiles
labelcache on is the default setting, and will apply for all layers where you have not set FORCE TRUE on your labels. if you don't want overlapping labels, this should be left as is. when tiling, you should *always* set PARTIALS FALSE on all your labels. - the metabuffer tilecache option should be set, to avoid artifacts on lines due to the the line caps that can be set. it will not have an effect on cut labels. when setting this option, mapserver *must* be configured with its labelcache_map_edge_buffer set to the same value as the tilecache metabuffer, so it will not put labels in the area that will be cut off by the metabuffer. - metatiling has an effect on the number of labels that can be displayed, in the sense that it is easier to display labels in a large image than it is in a 256x256 tile. as for your requirement of having all labels appear, without overlapping, and being continuous across tile boundaries, I'm afraid this is physically impossible to obtain. regards, thomas On Wed, Jan 26, 2011 at 21:43, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I have never done this kind of label stuff myself, but Mapserver documentation seems to say that first the LAYER should have LABELCACHE ON before other advanced features have an effect. You sure have activated labelcache? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Mike Stoddart Lähetetty: 26. tammikuuta 2011 18:58 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Label text always clipped by tiles My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS gre...@hostgis.com wrote: Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up - only if you can recover. ___ 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
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Before starting to implement something extensive around label BACKGROUNDCOLOR, you should be aware that this keyword will not be supported anymore starting from version 6.0. it is replaced with a STYLE GEOMTRANSFORM LABELPOLY COLOR r g b END which greatly extends the possibilities of styling the label background (e.g. outlinecolor, symbol, offset, opacity, etc...), as all the keywords relating to STYLE are applicable. regards, thomas On Thu, Jan 27, 2011 at 22:55, Jean-François Gigand jean-franc...@gigand.fr wrote: Use one CLASS for each colour used, set them to depend on your attribute and repeat the LABEL definition for each of them. If you the number of colours is limited, this would probably be a solution. Jeff 2011/1/27 tommaso tommas...@googlemail.com: On Thu, 2011-01-27 at 16:47 +0100, Julien Cigar wrote: use SLD ? Thanks, this were a solution but I should radically change my project. I will try it if there is not other ways. Other ideas? Tommaso ___ 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
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Stephan, I'm sorry, this isn't documented yet (to my knowledge), but should be rather soon (see http://trac.osgeo.org/mapserver/ticket/3609) the other GEOMTRANSFORM option you can use is LABELPNT, which will apply the current STYLE to a point feature centered on the label point. This should allow to completely remove the need for ANNOTATION layers. regards, thomas On Fri, Jan 28, 2011 at 09:22, Stephan Holl stephan.h...@intevation.de wrote: Hello thomas, thomas bonfort thomas.bonf...@gmail.com, [20110128 - 08:23:31] Before starting to implement something extensive around label BACKGROUNDCOLOR, you should be aware that this keyword will not be supported anymore starting from version 6.0. it is replaced with a STYLE GEOMTRANSFORM LABELPOLY COLOR r g b END which greatly extends the possibilities of styling the label background (e.g. outlinecolor, symbol, offset, opacity, etc...), as all the keywords relating to STYLE are applicable. Interesting, could you point me to the documentation of the GEOMTRANSFORM-stuff? I could not find anything on the net. TIA Stephan On Thu, Jan 27, 2011 at 22:55, Jean-François Gigand jean-franc...@gigand.fr wrote: Use one CLASS for each colour used, set them to depend on your attribute and repeat the LABEL definition for each of them. If you the number of colours is limited, this would probably be a solution. Jeff 2011/1/27 tommaso tommas...@googlemail.com: On Thu, 2011-01-27 at 16:47 +0100, Julien Cigar wrote: use SLD ? Thanks, this were a solution but I should radically change my project. I will try it if there is not other ways. Other ideas? Tommaso ___ 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 -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Bug or User error? MINSIZE not working
what are you trying to obtain? * minsize/maxsize and minwidth/maxwidth are only used when doing scale-dependent scaling of symbols (either by using sizeunits different than pixels, or by having the symbolscaledenom activated) * symbol STYLE is deprecated, and dots and caps are now set at the style level: style width 1 pattern 1 3 end color #aa end -- thomas On Fri, Feb 4, 2011 at 07:11, Stephen Woodbridge wood...@swoodbridge.com wrote: On 2/4/2011 12:19 AM, Rahkonen Jukka wrote: Hi, Documentation shows that MINSIZE under CLASS definitions, not STYLE. Have you tried to place it there? Thanks, I did notice that after I posted. Sadly it does not work there either. It seems to be documented under both STYLE and CLASS as things have been getting reworked in this area of the code. I player with setting MAXSIZE and that seems to work as expected, but I think MINSIZE is broken. I check it on both 5.6.5 and 5.6.6. I can write it up as a bug tomorrow. -Steve W -Jukka Rahkonen- Stephen Woodbridge wrote: Hi All, Thomas maybe you know this? I have a layer: SYMBOL NAME dots TYPE SIMPLE STYLE 1 3 END END LAYER NAME World Admin-1 Z1 GROUP cb STATUS DEFAULT TYPE LINE DATA not-nt2/10m-admin-1-states-provinces-lines-shp PROJECTION init=epsg:4326 END MAXSCALEDENOM 5000 MINSCALEDENOM 500 CLASS STYLE COLOR #aa SYMBOL dots WIDTH 1 MINSIZE 8000.0 END END END MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I can not get any of these lines to turn off. I have tried, variations of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH. No value of MINSIZE seems to have any impact. A large number of the lines are under 5 pixels at the scale I'm using 28M. The lines display fine I just need to turn off the short ones to declutter the image. I spent all night on this with no success so I guess its time to ask. -Steve W ___ 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
Re: [mapserver-users] Compiling with opengl support
Felipe, opengl support should compile and run in the trunk version of mapserver, you'll have to do a checkout if you want to try it out. please report back the bugs you see ;) -- thomas On Tue, Feb 22, 2011 at 16:38, Felipe Alcacibar falcaci...@gmail.com wrote: Hi, i am trying to compile mapserver with the experimental opengl support for experimental proposes too, but i cannot do it, i am using mesa opengl, gentoo 64bits linux system and mapserver 5.6.6 but it seems like this little problems that i cannot figure =/. are a solution to this, i need another library, another implementation of opengl? mapogl.cpp: In function ‘int msPopulateRendererVTableOGL(rendererVTableObj*)’: mapogl.cpp:225: error: invalid conversion from ‘void (*)(imageObj*, shapeObj*, colorObj*, double, int, double*)’ to ‘void (*)(imageObj*, shapeObj*, strokeStyleObj*)’ mapogl.cpp:242: error: invalid conversion from ‘void (*)(imageObj*, shapeObj*, void*)’ to ‘void (*)(imageObj*, shapeObj*, imageObj*)’ mapogl.cpp:243: error: invalid conversion from ‘void (*)(void*)’ to ‘void (*)(imageObj*)’ wait for your ansewers, thanks in advice. Felipe Alcacibar Buccioni ___ 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] MapServer 6.0.0-beta1 release - Please test!
use AGG/JPEG regards, thomas On Thu, Mar 10, 2011 at 18:33, Andy Colson a...@squeakycode.net wrote: On 3/9/2011 8:47 PM, Daniel Morissette wrote: The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. My mapfile has: IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' EXTENSION 'jpeg' END Error I get: ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.:loadOutputFormat() mapserv -v MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Sure enough, no GD... but I did compile it in: configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. So what do I use? I'd also like to try the new opengl stuff.. is there new docs for: http://mapserver.org/mapfile/outputformat.html -Andy ___ 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] Symbol not showing up in MapServer 6.0.0-beta1 release
Phil, what kind of symbology are you trying to obtain. I suspect you're aiming for a thick line, which now does not require the use of a symbol, but rather: style width 20 color 0 0 255 end regards, thomas On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO phil.an...@ftc.usda.gov wrote: All, I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. I'm using the drawmap.exe utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. Can you help? Thanks, - Phil Anzel Web Soil Survey development team Vistronix Inc. for USDA/NRCS/ITC . start of map file . MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 RESOLUTION 70 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points -11760750 5057520 -11752920 5062330 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP . end of map file . ___ 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] MapServer 6.0.0-beta1 release - Please test!
Andy, yes a (beefy) video card is needed or at least wanted, as you want to offset the calculations to the GPU. If one isn't present, you're going to fall back to a software opengl implementation which will be orders of magnitude slower than what AGG is going to take. cc-ing Toby if he wants to comment further on this. regards, thomas On Fri, Mar 11, 2011 at 03:02, Andy Colson a...@squeakycode.net wrote: On 03/10/2011 07:16 PM, Andy Colson wrote: On 03/09/2011 08:47 PM, Daniel Morissette wrote: The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. I cannot seem to get opengl to work. a stacktrace of shp2img: Program received signal SIGSEGV, Segmentation fault. 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 (gdb) backtrace #0 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 #1 0x0047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, colorObj*) () #2 0x00474988 in msImageCreateOgl(int, int, outputFormatObj*, colorObj*) () #3 0x0044cd26 in msPrepareImage () #4 0x0044ce75 in msDrawMap () #5 0x00415067 in main () (gdb) MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I dont need special video card and/or drivers, do I? And I'm not running X. Dont need to, do I? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users To reply to myself, after some googling, it looks like yes, X is needed. Which kinda sucks. This is a webserver, it runs apache and postgresql. In a rack someplace. Doesn't even have a monitor attached. If I ever need to do something I ssh in. Its also has a crappy video card. Cuz its a server. Never thought I'd need good video. So here is my delima: do I buy a $80 video card, and run X, so I can get hardware accelerated maps? Is it worth it? Is it that much faster? How many concurrent maps can be drawn at once? If 10 people hit my website can all 10 images be rendered at once? Or will one run and the others error out? Is there an upper limit for the number of concurrent renderings? Any benchmarks? -Andy ___ 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] Symbol not showing up in MapServer 6.0.0-beta1 release
huh, I may have misinterpreted... you can't expect to obtain a point/marker symbology when using a line geometry. if you effectively want to use marker symbols, you can have a look RFC 48 and its GEOMTRANSFORM start|end|vertices transformations. -- thomas On Fri, Mar 11, 2011 at 12:10, thomas bonfort thomas.bonf...@gmail.com wrote: Phil, what kind of symbology are you trying to obtain. I suspect you're aiming for a thick line, which now does not require the use of a symbol, but rather: style width 20 color 0 0 255 end regards, thomas On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO phil.an...@ftc.usda.gov wrote: All, I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. I'm using the drawmap.exe utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. Can you help? Thanks, - Phil Anzel Web Soil Survey development team Vistronix Inc. for USDA/NRCS/ITC . start of map file . MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 RESOLUTION 70 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points -11760750 5057520 -11752920 5062330 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP . end of map file . ___ 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] Symbol not showing up in MapServer 6.0.0-beta1 release
Phil, You're using the old version of drawing thick lines, that was needed for GD. We'll have to decide at the codesprint if this is something that we want to stop supporting, as this is something that we are trailing along since 4.10. As I said in my first email, thick lines are obtained with the WIDTH keyword. As for vector symbols, there are known limitations actually, which we will try to overcome during the codesprint - what's certain is we won't be able to maintain backwards compatibility *and* expect consistent rendering across renderers. best regards, thomas On Fri, Mar 11, 2011 at 18:25, Anzel, Phil - Fort Collins, CO phil.an...@ftc.usda.gov wrote: Thomas and All, A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729 The test map file is: MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT 0 0 954 589 RESOLUTION 72 IMAGECOLOR 255 255 255 symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points 10 10 950 580 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0. - Phil -Original Message- From: Anzel, Phil - Fort Collins, CO Sent: Friday, March 11, 2011 7:08 AM To: thomas bonfort Cc: mapserver-users@lists.osgeo.org; Anzel, Phil - Fort Collins, CO Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release Thomas, Thanks yet again. I tried your suggestion and it looks quite nice. If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the tie symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1. - Phil -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Friday, March 11, 2011 6:44 AM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release for a tie symbol you should specify a (negative) GAP. something like: http://www2.terriscope.fr/geocache/wms?LAYERS=osmSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FjpegSRS=epsg%3A4326BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625WIDTH=256HEIGHT=256 is obtained with SYMBOL NAME rail TYPE TRUETYPE FONT sc CHARACTER '|' GAP -3 END ... STYLE WIDTH 2 OUTLINEWIDTH 1 OUTLINECOLOR #54 COLOR #ff END STYLE SYMBOL rail SIZE 5 COLOR #54 END On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO phil.an...@ftc.usda.gov wrote: Hi, Thomas, Thanks for looking into this problem. My goal is to create a railroad cross-hatching along a line. I originally used: SYMBOL NAME 'default' Type simple END SYMBOL NAME 'tie' TYPE vector POINTS 0 0 0 7 -99 -99 7 0 7 7 END END These were referenced, within a layer of type line, by: CLASS STYLE SYMBOL 'default' SIZE 1 COLOR 0 0 0 END STYLE SYMBOL 'tie' SIZE 8 COLOR 0 0 0 END END This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the tie cross-hatching had disappeared. I tried several other symbols; I used the circle as an example because it also worked in the past and is used in the MapServer Introduction to MapServer, section 2.4.3, CLASS and STYLE objects. Closer to the 2.4.3 example, if I define: symbol name 'circle' filled true type ellipse points 0 0 1 1 end end and reference this definition, as per the example, with: style symbol circle color 178 114 1 size 15 end style symbol circle color 254 161 0 size 7 end then there is no image created. Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. Is there an error in my map file? How do you recommend that the railroad hatched line be drawn? Thanks again. - Phil -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com
Re: [mapserver-users] MapServer 6 testing: WMS - invalid layer parameter
Is there anything I am missing? yes, the migration guide ! ;) (the part on OGC Web Services) -- thomas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Floating point exception agg png
Daniel, any chance you can create a ticket for that with a mapfile and sample data that reproduces it ? the png vs. jpeg should not intervene as at the point the error is occuring the code path has been nearly identical (i.e. no png or jpeg library calls have been made yet). thomas On Mon, Mar 21, 2011 at 14:47, Daniel Degasperi daniel.degasp...@r3-gis.com wrote: Hi, I'v encountered following problem with outputformat png (agg driver): shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l ropeway -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o test-mtb.png -all_debug 1 (i got a FPE) The debugger backtrace gives me: Program received signal SIGFPE, Arithmetic exception. 0x004ba89e in mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 173 m_filter-pixel_high_res(m_buf.rows(), (gdb) bt #0 0x004ba89e in mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 #1 0x004ba8fb in mapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::pixel (this=0x7fffc9e0, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:860 #2 0x004bafba in mapserver::line_interpolator_imagemapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::step_hor (this=0x7fffc1c0) at renderers/agg/include/agg_renderer_outline_image.h:668 #3 0x004bb27f in mapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::line3_no_clip (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:931 #4 0x004c99f9 in mapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 ::line3 (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:992 #5 0x004cc5b9 in mapserver::rasterizer_outline_aamapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 , mapserver::line_coord_sat::render (this=0x7fffc9a0, close_polygon=false) at renderers/agg/include/agg_rasterizer_outline_aa.h:540 #6 0x004cc9b5 in mapserver::rasterizer_outline_aamapserver::renderer_outline_imagemapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8, mapserver::order_bgra, mapserv_row_ptr_cacheint, int , mapserver::line_image_patternmapserver::pattern_filter_bilinear_rgbamapserver::rgba8 , mapserver::line_coord_sat::add_pathline_adaptor ( this=0x7fffc9a0, vs=..., path_id=0) at renderers/agg/include/agg_rasterizer_outline_aa.h:177 #7 0x004cca3f in AGGMapserverRenderer::renderPathPixmapBGRAline_adaptor (this=0xf74350, line=..., pattern=...) at mapagg.cpp:392 #8 0x004cccea in AGGMapserverRenderer::renderPolylineVectorSymbolline_adaptor, mapserver::conv_strokemapserver::path_basemapserver::vertex_block_storagedouble, 8u, 256u , mapserver::null_markers (this=0xf74350, shape=..., symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at mapagg.cpp:370 #9 0x004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at mapagg.cpp:1723 #10 0x0053d573 in msDrawLineSymbol (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at maprendering.c:488 #11 0x00485521 in msDrawShape (map=0x822ab0, layer=0x87c820, shape=0x7fffd310, image=0x937b30, style=0,
Re: [mapserver-users] Production mapserver
On Mon, Mar 21, 2011 at 18:28, Andy Colson a...@squeakycode.net wrote: On 3/21/2011 11:27 AM, Jeff Dege wrote: What do we need to do to get Mapserver running in a production configuration? I guess that's up to you. Do you need 100% uptime? Mirrors and backups and redundancy? You'll also need an ISP that lets you host data. Many residential plans forbid it. You'll need a commercial plan. Or are you renting a VSP, or something? Your question is a little vague. Do you mean internet connections? Hardware? Just mapserver? There are packages out there to help new users get mapserver up and running in a development/playing-around-in mode, ms4w, etc. But these are designed for ease of installation, not performance on a production server. Do you know the level of performance you'll need? How many concurrent users? Have you put a load on it? Since you said the word performance, I'd say go for FastCGI. If you need more performance than that, well, that's another ballgame. I have a set of shapefiles, and some mapfiles I’ve built to display them. I have them running on a dev machine, just fine. So what do I need to do to go into production. I have a test box, and a live box... and I try to keep them as exact as possible. That way when you make changes, and do load tests, and what not, you know what to expect from the live site. Need to test something? The more identical your live and test boxes are, the more sure you can be about your testing. (Note, however, my live box is running off raid 5, where as my test is just a single HD. CPU's are close. Software wise, they are the same though) I have a dedicated Ubuntu 10.04 box, that will be doing nothing but serving maps through WMS requests, using Mapserver. It currently has both Apache and MapServer installed, using the current apt-get packages. Should I be using Apache? Or should I use Lighttpd? Use the one you are most comfortable with. Speed wise it wont matter. You'll be spending all your time in mapserver code, not apache/lighty code. (unless, of course, you have huge amounts of static files along with the maps... but those should all be marked as cacheable, so still, not gonna make a performance difference) Note that mapserver as fastcgi has issues when running on lighty's fastcgi implementation, so until that is fixed I would stick with apache. Cant answer anything about Ubuntu, never used it, run Slackware myself. I prefer to build mapserver from source. I'm also using mapscript (with perl), so I build that as well. compiling stuff from source also leaves out all the parts of mapserver that can cause some marginal overhead. for example, if you are only serving shapefiles, you can leave out the gdal/ogr and postgis dependencies Standard CGI? FastCGI? Some other alternative? (WSGI?) CGI is slow. FastCGI if you want performance. Never used WSGI. As background: I run on a dual core amd64 3800, 4 green HD's in software raid 5, 6 gig of ram, running Slackware64. I think the box cost me around $400 to build. I get 100K hits a day (about 2 requests a second), and the box sits 75% idle. I have about 350 gig of arial imagery, and 25 gig of shapefiles in PostGIS. It's run on apache/mapscript/mod_perl. -Andy ___ 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] Production mapserver
Jeff, all the documentation is online, the folks producing the open source software you are intending to use have gone to some trouble to produce it. If that isn't sufficient, I highly doubt that the answers you'll get from a mailing list where people don't know your requirements will get you to what you are expecting. I would suggest you either invest some time in learning yourself how to make these projects work together, or contract someone from those communities to do it for you. Expecting folks to do the work for you for free on community mailing lists is, imho, a bit inappropriate. regards, thomas On Mon, Mar 21, 2011 at 20:30, Jeff Dege jeff.d...@korterra.com wrote: So, from what I'm hearing Apache vs. Lighttpd isn't going to make a significant difference. Cgi vs. FastCGI very definitely will. Great. So how do I get FastCGI working? There are docs at: http://mapserver.org/optimization/fastcgi.html They are only getting me part of the way there. 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and mod_fcgi. Are these both needed? Only one needed? Are they replacements, alternatives, or entirely unrelated to each other? 2. In the Configuration section of the above doc, it says to modify http.conf to load the module, and to add a handler. The Ubuntu packages placed fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. I expect that I simply need to create a link to these in /etcs/apache2/mods-enabled, the way the others are. 3. The Configuration section also says to add a FastCgiConfig command. Where should this be? I see nothing in that configuration that indicates that it's the mapserv executable I want to run via fastcgi. ___ 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] showing line direction (without font)
clement, GEOMTRANSFORM END SYMBOL arrowhead ANGLE AUTO does what you want, with the arrowhead symbol being a truetype symbol with character ''. you can also define arrowhead as a vector symbol with the points forming an arrowhead. -- thomas On Thu, Mar 17, 2011 at 15:28, Clément MONIER clement.mon...@v-trafic.com wrote: Hi, Is it possible to display a layer of lines with direction’s marks using MapServer ? With no “font trick” (i.e a char symbol like ‘’,…) See picture attached showing a nice sample Thanks Regards Clement ___ 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] Negative GAP parameter to rotate vector symbols along line
It's supposed to work. If not, you might want to file a bugreport with a screenshot of what you're getting, but in any case the GD driver in the 5.x brach won't be getting much attention. I'd highly suggest using AGG/PNG for any vector symbology rendering. regards, thomas On Thu, Mar 31, 2011 at 08:53, Bartłomiej Burkot pomiarowie...@poczta.onet.pl wrote: Any idea why it doesn't work? Hi thomas what mapserver version? what outputformat/renderer? MapServer version 5.6.5 OUTPUTFORMAT NAME gif DRIVER GD/GIF MIMETYPE image/gif IMAGEMODE PC256 EXTENSION gif END Bartek -- thomas On Wed, Mar 30, 2011 at 15:10, Bartłomiej Burkot pomiarowie...@poczta.onet.pl wrote: Hi Users I would like to render a vector symbol along the line in a layer. This vector symbol should be rotated according to orientation of linesegments (for example a arrow along one way street). When I use negative GAP with truetype symbol it work perfectly but I have probelms with vector symbols to rotate them. I use this definition of Symbol but it doesn't work: SYMBOL NAME testsymbol TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END STYLE 1 8 1 18 END GAP -99 # doesn't work END I read in docu http://mapserver.org/mapfile/symbol.html that: When drawing the symbol along a line segment, a negative GAP will will add 180 degress to the angle. The TrueType and PixMap symbols are always oriented along the line. My layer definiton is: LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT LINESTRING (0 0, 100 100, 0 100) END CLASS STYLE #ANGLE AUTO SYMBOL testsymbol COLOR 0 255 0 #SIZE 8 END END END Does vectorsymbol play with negative GAP parameter? Bartek ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols
Given the artifact, I'd say that you are using the GD renderer. Are you sure it's the AGG one that is being selected when you create that image? -- thomas 2011/4/8 Lime, Steve D (DNR) steve.l...@state.mn.us: Can you share the batnight.png file? Any difference if you remove TRANSPARENT 0? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: Friday, April 08, 2011 8:43 AM To: mapserver-users@lists.osgeo.org Cc: Björn Schilberg Subject: [mapserver-users] Transparency of overlapping PNG-symbols Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME Batnight TYPE PIXMAP IMAGE ./images/batnight.png TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ 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] Transparency of overlapping PNG-symbols [solved]
Ok, thanks. could you check the same mapfile with GD on mapserver 6.0 to see if the issue still exists? thomas On Mon, Apr 11, 2011 at 09:39, Stephan Holl stephan.h...@intevation.de wrote: Hello thomas, thomas bonfort thomas.bonf...@gmail.com, [20110408 - 16:52:53] Given the artifact, I'd say that you are using the GD renderer. Are you sure it's the AGG one that is being selected when you create that image? At least I was, yes, but after looking at the _right_ mapfile it was missing the AGG-rendering-options. setting the following helps. IMAGETYPE aggpng #8bit png, supports transparency. OUTPUTFORMAT NAME aggpng DRIVER AGG/PNG MIMETYPE image/png ## transparency only with RGBA Image Mode ## mapserver had to be compiled -with-experimental-png IMAGEMODE RGBA EXTENSION png FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_COLORS=256 FORMATOPTION QUANTIZE_NEW=ON TRANSPARENT ON END Best regards Stephan 2011/4/8 Lime, Steve D (DNR) steve.l...@state.mn.us: Can you share the batnight.png file? Any difference if you remove TRANSPARENT 0? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Tag SYMBOL - CENTER/ORIGIN
No, it was not implemented, and is on hold until someone funds it. regards, thomas On Mon, Apr 11, 2011 at 10:54, tommaso tommas...@googlemail.com wrote: Hallo List, in the Document http://mapserver.org/trunk/development/rfc/ms-rfc-45.html is mentioned the tag CENTER / ORIGIN for SYMBOL: was this feature already implemented? if yes, in which Mapserver version? Greetings, Tommaso ___ 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] fastcgi mode with raster layer?
Martin, fastcgi will essentially give you speedups in these two cases: * with slow-to-open data connections (i.e. oracle, some gdal/ogr datasources?) if you use CLOSE_CONNECTION=DEFER * and/or when the cost of creation of a process becomes non negligible compared to the time that the mapserv process will actually be running for each request. basically, there is little advantage of using fastcgi if your map draws are heavy, or if you are not using oracle connections. YMMV, -- thomas On Mon, Apr 11, 2011 at 19:22, Martin Ouellet geomart...@gmail.com wrote: I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on my server. is it normal to have no speed increase for a raster layer? Does the fastcgi mode is optimized mainly for database layers as Oracle or PostGIS? thank you in advance. MartinOuellet ___ 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] MS 6.0 beta4 writes always into ms_errorfile with raster layers
fixed in r11537. regards, thomas On Tue, Apr 12, 2011 at 11:59, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I wonder why Mapserver 6.0 beta seems to write two lines into ms_errorfile even if there is no errors and I do not have degug on. [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Filename is: D:\Data\test\suomi1m.tif [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Path is: D:\Data\test\suomi1m.tif Vector layers do not produce similar lines into ms_errorfile. -Jukka Rahkonen- ___ 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] MS 6.0 beta4, is image/jpeg output OK?
I think some browsers do that if the image is corrupt. Try to use curl or wget or view-source to see the actual returned data. -- thomas On Tue, Apr 12, 2011 at 15:47, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I have a pretty basic mapfile without my own OUTPUTFORMAT settings. MS 6.0 beta4 is advertising image/jpeg in the GetCapabilities. However, if I use it in the GetMap I am getting my request back from the server. I mean that by browser shows me exactly the same query as a result in test format that I was sending from the URL line. I have never before seen this behaviour. If I change format into image/png or image/gif I am getting a proper image back. I am testing with MS4W package. -Jukka Rahkonen- ___ 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] label placement problem
Raivo, When using mindistance, we check to see if there are labels with the same text from the same layer that are closer than the specified threshold. Modifying that behavior would not be impossible to make them check for a third condition (i.e. same text, same layer, and same attribute), but is still rather involved in the sense that each label would also have to hold a reference to that attribute. You might want to file an enhancement ticket for that. -- thomas On Thu, Apr 14, 2011 at 17:02, Raivo Alla snaper...@gmail.com wrote: Hey, is it possible that the reason why this feature is not implemented in Mapserver is cause it demands too much computation resource and Mapserver assumes that those kind of issues will be dealt before... modifying data structure maybe? Deleting all the duplicate address points for each building complex and leaving only one (I do not prefer that)? Cause for me it seems quite a common problem one should face in case he needs to display building numbers. Since there could be many buildings closely together at the crossings of the streets, I seek some way to display them decently - ie. showing label (2) for buildings that are located at the street Mündi and other label 2 for buildings at the street Saiakangi so that Mapserver does not see the labels being identical. Still full of hope, Raivo On Wed, Apr 13, 2011 at 1:33 PM, Raivo Alla snaper...@gmail.com wrote: Thank You ! The situation is illustrated here: https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162 I got three different streets that have same label 2, and I would like to display the labels so that for the same street address points I could use declaration like MINDISTANCE 40, but if the same label 2 appears on the address point that belongs to other street, then it will not use MINDISTANCE and should display that label. I have shapefile, whre one attribute REFERENCEPOINT holds the same numerical value for the same address points (ie those points which have label 2 on the screenshot and belong to the same street have same REFERENCEPOINT value). Can I somehow use it to render them differently? I hope I expressed myself correctly :) With regards, Raivo On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: Can you share some pictures that illustrate the issue? From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Raivo Alla Sent: Wednesday, April 06, 2011 6:34 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] label placement problem Hello! I am using MapServer 5.4 and right now I'm facing with label positioning problem. Any help solving that would really be appreciated. 1. I have lots of buildings address points... so for example if two nearby located buildings at the crossing of Some_street and Some_other_street have both same house numbers (for example 1) then the MINDISTANCE 30 declaration will cancel one label out. 2. I cannot remove MINDISTANCE neither since in many cases I have large building complexes where multiple buildings share same address label. And I want mapfile to declare some distance between those addresses that logically will mark the same address object. 3. In my buildings_addresses (points) file I do have attribute, which I could use to separate those two kinds of duplicate labels, but MapServer doent seem to support rendering them differently in a such way Or am I wrong? My LABEL definition: LABEL TYPE truetype ANTIALIAS true FONT arial COLOR 50 50 50 SIZE 9 priority 1 ANGLE [POORDENURK] MINDISTANCE 30 OUTLINECOLOR 220 220 220 POSITION cc BUFFER 2 END Hope that there will be some kind of solution here. Sincerely, Raivo Alla ___ 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] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews
Jukka, please create a ticket and attach your test case, I'll have a look. thanks, thomas On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format image/png; mode=8bit. I have been doing some testing and I believe I can now reproduce the error. The error happens only if the raster image has overviews. If I delete or rename the external .ovr file the 8bit png output is correct at any scales. To be sure that there is nothing odd with the overview file I recreated it with FWTools v. 2.4.2 by using a basic command gdaladdo -r average -ro suomi1m.tif 2 4 8 I prepared also my own outputformat so I could compare the outputs from MS 6.0 and older MS 5.6.5 version. This is my outputformat which I have understood to mean just the same as the inbuild MS 6.0 outputformat image/png; mode=8bit. OUTPUTFORMAT NAME 'AGG_Q' MIMETYPE image/png DRIVER AGG/PNG EXTENSION png IMAGEMODE RGB FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 END With this outputformat the resulting map is correct with MS 5.6.5 at any scales even if the .ovr file is in use. My conclusion is that exectly MS 6.0 version is creating at some scales through ADD driver an 8 bit png output with messed up colours, but it happens only if the source image has overviews. If someone is interested in having a look at this I can prepare and send my mapfile and some imagery to play with. -Jukka Rahkonen- ___ 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] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews
please test with trunk and report back if you're still having the error: http://trac.osgeo.org/mapserver/ticket/3848 -- thomas On Tue, Apr 19, 2011 at 09:32, Erik Gustafson gustafson.e...@gmail.com wrote: On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format image/png; mode=8bit. I have been doing some testing and I believe I can now reproduce the error. The error happens only if the raster image has overviews. If I delete or rename the external .ovr file the 8bit png output is correct at any scales. To be sure that there is nothing odd with the overview file I recreated it with FWTools v. 2.4.2 by using a basic command gdaladdo -r average -ro suomi1m.tif 2 4 8 [snip] My conclusion is that exectly MS 6.0 version is creating at some scales through ADD driver an 8 bit png output with messed up colours, but it happens only if the source image has overviews. If someone is interested in having a look at this I can prepare and send my mapfile and some imagery to play with. -Jukka Rahkonen- Hello, I have a similar problem on vector data, possibly related. The color problem appears when quantize is enabled and a large amount if data is rendered. I can trigger the bug with mapfile below: MAP OUTPUTFORMAT NAME png DRIVER agg/png FORMATOPTION QUANTIZE_FORCE=on END LAYER NAME corine DATA corine TYPE polygon CLASS NAME ALL2 EXPRESSION ([area_ha] 1000) STYLE COLOR 0 0 255 END END CLASS NAME ALL EXPRESSION ([area_ha] 1500) STYLE COLOR 255 0 0 END END CLASS NAME ALL #EXPRESSION ([area_ha] 1500) STYLE COLOR 0 255 0 END END END END ~ To trigger the bug I need at least two classes with different colors. If I use a single color or if I render only a subset of the data the colors look good. I do not have a test case yet as the data used is not free. I will try to create one but it might take a few days. Just writing this to note that problem may not be related to the overviews but the quantizing itself. Another note: If I add and OUTLINECOLOR and WIDTH=1 in the style definition the problem seems heal the bug, I guess thats because fewer antialiasing colors are generated. No problem with this mapfile on Mapserver 5.6. /Erik ___ 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] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews
Erik, the png compression that is applied is now configurable, and defaults to 6. You can set it as it was by default in 5.6 for quantized output with FORMATOPTION COMPRESSION=9 please post your image size after the change. -- thomas On Tue, Apr 19, 2011 at 10:14, Erik Gustafson gustafson.e...@gmail.com wrote: On Tue, Apr 19, 2011 at 9:39 AM, thomas bonfort thomas.bonf...@gmail.com wrote: please test with trunk and report back if you're still having the error: http://trac.osgeo.org/mapserver/ticket/3848 My test case from yesterday has correct colors with trunk of today! The resulting image went from 56kb to 130kb though. (512x512pixels, 3 colors defined in mapfile). With mapserver 5.6.6 the image size is 74kb. I'm using shp2img and default settings in outputformat as shown in the mapfile earlier in this thread. Maybe some default setting has changed between 5.6 and 6.0? Regards Erik Gustafson ___ 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] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews
ok, I see where the issue is arising from: in 5.x you were using gd's quantization algorithm, which to put it frankly, sucked badly (i.e. note the duplicate entries in the color table which are a waste of quality). the current quantization algorithm is much higher quality, and thus produces heavier images. If you want to return to something like GD, try lowering the number of colors , e.g. QUANTIZE_COLORS=64 . Although I'm not sure if by doing that the zlib compression will be able to squeeze the final size down. As before, please post back your findings if you try! -- thomas On Tue, Apr 19, 2011 at 10:44, Erik Gustafson gustafson.e...@gmail.com wrote: On Tue, Apr 19, 2011 at 10:27 AM, thomas bonfort thomas.bonf...@gmail.com wrote: Erik, the png compression that is applied is now configurable, and defaults to 6. You can set it as it was by default in 5.6 for quantized output with FORMATOPTION COMPRESSION=9 please post your image size after the change. Mapserver 5.6: 74kb Mapserver 6, compression 1: 133kb Mapserver 6, compression 9: 129kb I'm on deep water now because I do not know much about the png-format. But, by looking at the output from gdalinfo the image from mapserver 5 seems to have most colors set to rgba 255,255,255,255 rio% gdalinfo out_v5.png|sed '1,/Color Table/d'|head -20 0: 255,255,255,255 1: 8,139,121,255 2: 255,255,255,255 3: 255,255,255,255 4: 5,202,56,255 5: 140,199,90,255 6: 255,255,255,255 7: 81,201,28,255 8: 207,135,90,255 9: 255,255,255,255 10: 255,255,255,255 11: 255,255,255,255 12: 140,138,170,255 13: 255,255,255,255 14: 95,95,132,255 15: 255,255,255,255 16: 255,255,255,255 17: 255,255,255,255 18: 255,255,255,255 19: 255,255,255,255 rio% gdalinfo out_compression9_v6.png|sed '1,/Color Table/d'|head -20 0: 22,253,20,255 1: 6,253,6,255 2: 0,249,0,255 3: 6,253,10,255 4: 0,253,4,255 5: 16,253,18,255 6: 20,20,255,255 7: 6,253,8,255 8: 80,80,255,255 9: 96,94,253,255 10: 102,102,255,255 11: 0,239,16,255 12: 74,76,255,255 13: 64,64,255,255 14: 8,249,16,255 15: 161,255,161,255 16: 34,253,36,255 17: 26,26,255,255 18: 0,235,18,255 19: 0,245,10,255 /Erik ___ 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] Problems with png output when using libpng 1.5
Christy, I suspect this is due to a bug in libpng. see http://sourceforge.net/tracker/index.php?func=detailaid=3288207group_id=5624atid=105624 . On Wed, Apr 20, 2011 at 15:20, Christy Nieman cnie...@dmsolutions.ca wrote: Hi, I compiled MapServer 6.0 beta6 against libpng 1.5.2 and encountered the following problems: when using the default png IMAGETYPE (i.e. no OUTPUTFORMAT block), I got yellow striped maps (see cyprus.png) when using the AGG/PNG driver and IMAGEMODE RGBA, the output image looks fine when using the default png8 IMAGETYPE, the output image looks fine I also compiled with cairo, and with the driver set to CAIRO/PNG, I had the same yellow striped maps. rgba and png8 use different png formats. agg/png and cairo/png use the same codepath when saving images, so the behavior your are observing is normal. With libpng 1.2.44, everything seems to work properly. Has anyone else seen this problem with libpng 1.5? Should it work properly with MapServer? Regards, Christy ___ 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] relative path for .map file inside a WMS url
I don't think it is possible o have this yet. You could file an enhancement request, as this would be a nice feature to have. regards, thomas On Wed, Apr 20, 2011 at 16:43, Clément MONIER clement.mon...@v-trafic.com wrote: Hi, I have a CGI MapServer 5.6.0beta5 instance running on Windows. But I’m not (and won’t never be) able to know for sure the folder’s path where its files are deployed. I know that MapServer is running fine though, delivering maps as needed. But I’m not able to make some WMS web request because I can’t provide an absolute path for the “map=” parameter : I don’t know in which folder my .map files reside. http://myserver/cgi-bin/mapserv.exe?map=?*?/mymapfile.map;... Is there a way to use relative path ? or to use a kind of environment variable MS_INSTALL_PATH inside the “map=” parameter? I can only act on the server’s configuration and MS deployment Thanks for your help Clément ___ 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