Re: [mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

2016-03-23 Thread wiltomap
Thanks for your suggestions. I eventually found a simple solution to me: EXPRESSION ("[datinter]" ~ '^2016') -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-current-year-in-a-CLASS-EXPRESSION-mapfile-tp5257968p5258031.html Sent from the Mapserver - User mailing list ar

Re: [mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

2016-03-23 Thread wiltomap
What about the possibility to get the current year inside the mapfile? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-current-year-in-a-CLASS-EXPRESSION-mapfile-tp5257968p5257990.html Sent from the Mapserver - User mailing list archive at Nabble.com. __

Re: [mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

2016-03-23 Thread wiltomap
Would you have regex syntax example for mapfiles? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-current-year-in-a-CLASS-EXPRESSION-mapfile-tp5257968p5257985.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___

Re: [mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

2016-03-23 Thread wiltomap
Thanks Michael! Of course, I had thought about creating a view or manipulating the DATA parameter. The fact is that I can't do both because the layer related to the mapfile is used for online data editing, and the framework used for the website reclaims exactly identical columns inside tables and v

[mapserver-users] Get current year in a CLASS EXPRESSION (mapfile)

2016-03-23 Thread wiltomap
I have a mapfile defining a layer which is about leaks fixes on a drinking water network. I would like to write an EXPRESSION (inside a CLASS) to select all current year operations. I rely upon a PostgreSQL/PostGIS table which is storing leaks fixes dates in a DATE type field named "datinter" (for

[mapserver-users] Mapserver: set symbol on lines according to line features length

2015-11-30 Thread wiltomap
I need to display arrows alongside to line features. Lines represent water pipes. The issue I'm facing is that lines are a concatenation of numerous line features of various lengths. Therefore, symbols are attached to every line, whatever its length. This makes symbols either overlaying or touching

Re: [mapserver-users] Anchorpoint for pixmap symbol?

2015-04-15 Thread wiltomap
Sorry, this did not work so far. I had to restart my Web browser and empty cache. Things are doing better now! Thank you for replying and sending an example. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Anchorpoint-for-pixmap-symbol-tp5201394p5201412.html Sent from the

[mapserver-users] Anchorpoint for pixmap symbol?

2015-04-15 Thread wiltomap
Hi all, I need to set an anchorpoint for a pixmap symbol (*png file). Is there a way to achieve that in a mapfile? So far, I have tested the following code inside a mapfile, which gives no result: SYMBOL NAME 'mySymbol' TYPE pixmap ANCHORPOINT 0 1 IMAGE "symbols/my

Re: [mapserver-users] A particular line symbology in a mapfile

2014-07-08 Thread wiltomap
Here is the solution with using the -99 value for OFFSET property : CLASS NAME "test" STYLE WIDTH 5 COLOR 0 255 0 OFFSET 5 -99 END # STYLE STYLE OFFSET -5 -99 COLOR 0 255 0 WIDTH 5 END # STYLE END # CLASS Thank you for your help ! Thomas -- View this message

Re: [mapserver-users] A particular line symbology in a mapfile

2014-07-08 Thread wiltomap
Thank you Andrea. The object 2 is in a separate mapfile. I just want to define object 1 in my current mapfile... So that I can display each other separately. How would you do that just for object 1 ? Thanks again ! Thomas -- View this message in context: http://osgeo-org.1560.x6.nabble.com/A

[mapserver-users] A particular line symbology in a mapfile

2014-07-08 Thread wiltomap
Hello all, I have to define a markup STYLE ... END in order to represent a double line. It could be similar to a traditional representation of a motorway (2 parallel red lines with a yellow background) but I need a transparent background, so that I can see other lines from other mapfiles. I have p

[mapserver-users] Clickable label

2014-01-10 Thread wiltomap
Hello all, I have to display labels instead of points on a layer. The labels rely on an attribute value. I would like to click on the label to make an attribute windows open up. So far, no problem with mapfile configuration... The only thing is that the attribute window opens up when I click rig

Re: [mapserver-users] Displaying a line between objet and label

2014-01-08 Thread wiltomap
yed (if not necessary, ie if there is enough place to position a label next to each object). Thank you for your precious help ! wiltomap -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Displaying-a-line-between-objet-and-label-tp5095640p5097080.html Sent from the Mapserver - U

Re: [mapserver-users] Displaying a line between objet and label

2014-01-07 Thread wiltomap
Sorry Steve. I have just realized that I'm working with Mapserver 6.2 so the leaderlines are not supported... This is where my issue comes from. I will have to manage my labels in another way, then. Thanks again for your help ! Thomas -- View this message in context: http://osgeo-org.1560.x6.

Re: [mapserver-users] Displaying a line between objet and label

2014-01-06 Thread wiltomap
Dear Steve, Thank you for your answer. I'm just back from a week off, so sorry for late reply... I enclose a screenshot of the mapfile I use to display labels. I have disabled the lines 39 - 40 where I use the LEADERMAXDISTANCE and LEADERGRIDSTEP parameters. The use of these parameters crashes the

[mapserver-users] Displaying a line between objet and label

2013-12-27 Thread wiltomap
Hello, I'm working on mapfiles featuring little linear objects, sometimes very closed from each other. I have to label these objects with a quite long string attribute value... Therefore, the positionning of the labels on the line completely covers it, unless you zoom in considerably. So I'm tryin