Sorry for not testing more, Steve. Answers to your questions
below.
Stephen Woodbridge wrote:
Håvard,
Try:
trim(both from direction)
works
which does the same thing as:
trim(both ' ' from direction)
this looks like it might be an unescaped ' and in single quotes string.
you could also
Giacomo Sacchetti wrote:
Hi all,
how I can create dashed HATCH symbols? There are just few lines of
documentation for the HATCH symbol...
I don't think you can accomplish this using HATCH, but you
can make such a symbol using VECTOR or PIXMAP.
Håvard
--
Håvard Tveite
Department of
I don't think ANGLE can be used in your case (if you do not
use scripting to calculate the ANGLEs yourself for each
generated map).
Is there a need for a new TAG - for instance with the name
ORIENTATION, that could be used to specify compass
directions (0=north, 90=east, 180=south, 270=west) for
Precise symbol placement is among the issues that are being
addressed in RFC45 (Symbology, Labeling, and Cartography
Improvements)
URL: http://mapserver.osgeo.org/development/rfc/ms-rfc-45.html
In RFC45, a new tag called CENTER or ORIGIN is proposed. ANCHORPOINT
is perhaps a better name for it.
Donald Kerr wrote:
In a previous thread that I started about positioning of LABELs, Thomas
Bonfort said, I'd be in favor of having a way to specify the anchor point,
either by fixing it on
0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2. I
agree that this would be good for
RFC 45 suggests several rendering improvements for Mapserver,
including adding a tag (CENTER/ORIGIN) for specifying the
centre of a symbol. This feature has, however, not been
given priority yet (there are workarounds for the most
important cases).
Dear Steve,
Is this another case for allowing the user to explicitly specify
the centre of a symbol (as proposed in RFC 45 -
http://mapserver.org/development/rfc/ms-rfc-45.html)?
Håvard
Steve Lime wrote:
Hi David: There is no connection between offset and symbol size. The offset is
Dear Oliver Christen,
Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so
Oliver Christen wrote:
Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse
Oliver Christen wrote:
mmm, then whats the difference between points 1 1 end and points 8 8 end
?
For an ELLIPSE symbol definition without GAP, there is no
difference.
The bounding box of the symbol will be used when rendering
the symbol. The height of the symbol bounding box on the
map will
If Thomas B. agrees, I think it would be reasonable to also
open a bug on the gap calculation.
In my opinion, since the word gap is used, the correct
way to specify a symbol with ellipses that has the same
gap between them as the diameter of the ellipses should be
as follows:
symbol
name dots
).
Something seems to be wrong when the GAP is close to
half the diameter specified in POINTS - some of the gaps
will be as expected, while others are larger (closer to the
actual number specified in GAP).
Håvard
-Steve W
Havard Tveite wrote:
If Thomas B. agrees, I think it would be reasonable
, while others are larger (closer to the
actual number specified in GAP).
Håvard
-Steve W
Havard Tveite wrote:
If Thomas B. agrees, I think it would be reasonable to also
open a bug on the gap calculation.
In my opinion, since the word gap is used, the correct
way to specify a symbol
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
The LAYER- CLASS- STYLE- SIZE parameter can specify an
attribute of the data set, so this should be possible.
URL: http://mapserver.org/mapfile/style.html
Håvard
On 17/05/11 13:21, jude mwenda wrote:
Hi, is this possible using mapserver and openlayers? where the values
used are based on
For northern Europe you can check:
http://openmetoc.met.no/about.html
Håvard Tveite
On 27/05/11 18:45, Matt Miller wrote:
Does anyone know of a source of weather data in WMS format for Europe
and parts of North African and the middle east? I am using
According to URL: http://www.mapserver.org/mapfile/style.html
that should be possible.
Håvard
On 6/1/2011 8:09 AM, prab.raja wrote:
Hi,
I would like to know if it's posible to draw line layer with variable width
from database table.
Something like this?
LAYER
NAME line_layer
Dear Jukka,
It is in RFC55 and mentioned in the symbol construction
document, but it should of course be documented with MAP.
If this is not to be kept a secret, I think a documentation
ticket would be a good idea.
Håvard
On 6/14/2011 1:51 PM, Rahkonen Jukka wrote:
Hi,
I know more or less
On 14/07/11 22:35, Nicolas Chenier wrote:
Good day all,
This is a bump as I never received an answer... Quick update - I updated
my binary to 6.0.1 but this issue remains:
I am investigating an issue where the background in the PNG generated by
the example map that comes with MapServer changes
Valeria,
To display simple lines (in the latest versions of
Mapserver), you should take away the SYMBOL from the
STYLE, and specify the WIDTH of the line (not the
SIZE). You can skip ANTIALIAS (you can't even turn
it off for AGG).
STYLE
WIDTH 12
COLOR 200 112 64
END
STYLE
WIDTH 10
COLOR
The following should work with AGG (don't use SYMBOL):
ODTOKLINIE_NEJ
###
LAYER
. . . .
CLASS
NAME odtoková linie nejdelší (červená)
STYLE
OUTLINECOLOR 255 255 0
WIDTH 2
PATTERN
The example I provided should give you an outline
(color 200 112 64).
Håvard
On 8/28/2011 8:30 PM, Valeria Munoz I wrote:
Can i display a outliner?
Thanks for the reply!!
Enviado desde mi iPhone
El 27-08-2011, a las 17:44, Havard Tveitehavard.tve...@umb.no escribió:
Valeria,
To display
Interesting. I am sure that a bug report would be appreciated.
Do you think you could create an example that demonstrates the
problem?
Håvard
On 8/29/2011 5:03 PM, Mark Deneen wrote:
We had an issue where, depending on your projection, the dashed lines
would only show up further north. As
I think that you have to use only one Typename per WFS request.
Håvard
On 9/20/2011 8:09 PM, Hawk AA wrote:
Hi,
It seems for me that by entering multiple layers in Typename, I am not getting
the same results. For instance would using Typename=Traseer give me all of the
geometries in the
Dear Bob,
Mapserver does not allow sensible styling of dashed lines with for
instance point symbols.
To be able to do this, a new mechanism will have to be introduced
(for instance INITIALGAP, as used in the SLD specification). This
is what Mapserver ticket #3879 suggests.
Have you seen:
http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol
Håvard Tveite
On 9/27/2011 4:12 AM, Puneet Kishor wrote:
My arrows look like so instead of with declarations like so
SYMBOL
NAME vert-line
TYPE
. If maxFeatures is not reached then the result should be the same as when
making two separate getFeatures for Traseer and Punkter. Otherwise it looks
like a bug.
-Jukka Rahkonen-
Havard Tveite wrote:
Lähetetty: 22. syyskuuta 2011 9:26
I think that you have to use only one Typename per WFS
GEOMTRANSFORM end only works for the lines of a line layer.
Is your layer a line layer?
Håvard
On 9/27/2011 4:48 PM, Puneet Kishor wrote:
On Sep 27, 2011, at 2:18 AM, Havard Tveite wrote:
Have you seen:
http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point
/27/2011 4:48 PM, Puneet Kishor wrote:
On Sep 27, 2011, at 2:18 AM, Havard Tveite wrote:
Have you seen:
http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol
Yup, seen and read it from end to end until my eyes glazed. Perhaps it is clear
as crystal
Have you seen:
http://www.mapserver.org/mapfile/expressions.html
Feedback on the contents of that page would be appreciated.
Håvard
On 9/30/2011 3:51 PM, Bistrais, Bob wrote:
I’m trying to create an Expression to select features in a Class, MapServer
6.0.1. I want to do something such as a
Thanks, the example has been added. Good idea to show also
this alternative (it was only mentioned in the introduction
to the regexp section).
Håvard
On 30/09/11 16:34, Stephen Woodbridge wrote:
On 9/30/2011 10:30 AM, Havard Tveite wrote:
Have you seen:
http://www.mapserver.org/mapfile
. But this part of the RFC has not yet been implemented.
Håvard
On 9/27/2011 4:48 PM, Puneet Kishor wrote:
On Sep 27, 2011, at 2:18 AM, Havard Tveite wrote:
Have you seen:
http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol
Yup, seen and read
Dear Jackey Cheung,
I am not sure what exactly you are trying to achieve.
Your arrows seem to point in the direction of the lines.
The topmost arrow in figure 1 is placed at a strange
position - is that the problem?
Some comments:
The result shown in image 2 is expected. The arrow
symbols are
Jukka,
I have updated the documentation according to your comments.
I have also filed (and closed) a ticket (#4088).
If you (or anyone else) find other issues with the
documentation, please don't hesitate to file tickets (with
proposed solutions, if possible :-) ).
I think you have to do this in Mapscript.
You could create a new line layer where each line is
cropped so that its length is proportional to the
number of symbols you want. Then you can style the lines
in this new layer using SYMBOL and GAP (negative number
to make the direction of the symbols
Hello Jorge,
Your interpretation of the documentation seems correct.
Regarding the need for a PROJECTION object at the MAP
level:
Without it, Mapserver will generate an error message.
I agree with you that for a WMS service it seems illogical
to have to provide a PROJECTION element at the MAP
Hi Guillaume,
You seem to have discovered a Mapserver bug. It would
be very nice if you could take the trouble to report it
(so that it can be addressed / fixed).
http://trac.osgeo.org/mapserver/newticket
(everyone can create tickets, you just need to log in -
if you do not have an account, it
? It might help to find the bug more easily.
Guillaume Loiselle
2011/11/28 Havard Tveite havard.tve...@umb.no mailto:havard.tve...@umb.no
Hi Guillaume,
You seem to have discovered a Mapserver bug. It would
be very nice if you could take the trouble to report it
(so that it can
Thanks, Thomas.
I changed it to:
labelpnt generates the point relative to which the label
will be placed.
Better?
Håvard
On 12/1/2011 8:58 AM, thomas bonfort wrote:
Havard,
labelpnt generates a point with its center at the middle of the
bounding rectangle of the text.
Unless there's a
I have been able to reproduce this problem with trunk.
It seems to occur for gap lengths that are longer than
the length of the line. In that case, the arrows are
rendered for each line segment from the middle of the
line to the end of the line. Slightly different
behaviour for 6.0 and trunk.
I think your subselect has to include gid.
Examples on:
URL: http://mapserver.org/input/vector/postgis.html#data-access-connection-method
Håvard
On 12/29/2011 12:19 PM, Dejan Gambin wrote:
Thanks,
I tried something like:
DATA the_geom from (select the_geom, attr1, attr2 from table) as
This might be related to ticket #4112.
http://trac.osgeo.org/mapserver/ticket/4112
Håvard
On 13/01/12 11:51, knut.landm...@ffi.no wrote:
Hi all,
I want to do attribute dependent rendering using SLD with filters inside
the Rule element, but cannot get it to work properly with MapServer
6.0.1
The type cartoline for symbols is no longer used.
Dashed lines and styling are specified in LAYER-CLASS-STYLE.
Some examples:
http://mapserver.org/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters
Håvard
On 1/26/2012 1:03 PM, Francesc Cañas wrote:
Hello, I want to
Your WMS seems to work fine for me in QGIS 1.7.3.
I tried the layer MS.
Håvard
On 2/15/2012 2:09 PM, Raffaele Morelli wrote:
Hi, (sorry for double posting but I forgot the subject in the previous email)
I am working on a wms server and no matter how I try increasing MAXSIZE value I
always
You can't do this with Mapserver 5.6.6.
You will need INITIALGAP, which is introduced in
Mapserver 6.2.
http://www.mapserver.org/trunk/mapfile/style.html
http://www.mapserver.org/trunk/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters
If you want to test this, you can
Seems to work here. I get vector PDF output using 6.0.2 on Debian.
Håvard
On 4/23/2012 9:17 AM, Rahkonen Jukka wrote:
Hi,
PDF output works for me on Windows (MS4W) but I seem to have problems with
Linux and Mapserver 6.0.1 also. This one gives HTTP 500 Internal error message
and on the
You could try OFFSET - see http://mapserver.org/mapfile/style.html
For lines, an OFFSET of n -99 will produce a line geometry that
is shifted n SIZEUNITS perpendicular to the original line geometry.
A positive n shifts the line to the right when seen along the
direction of the line. A negative n
ANCHORPOINT is coming in 6.2.
See: http://www.mapserver.org/trunk/mapfile/symbol.html
Håvard
On 6/6/2012 2:37 PM, Jason Jackson wrote:
I am using mapserver 5.6.7 and it appears that when using a pixmap
symbol to represent a point geometry on the map, the image is placed
with its center on the
In later versions of Mapserver, you seem to need to use a symbol.
For example:
SYMBOL
NAME circle
TYPE ellipse
POINTS
1 1
END
END
LAYER
...
CLASS
NAME places1_color
STYLE
SYMBOL 'circle'
COLOR 255 215 0
SIZE 1
END #
The behaviour of the GAP parameter has changed - before 6.2,
it specified some variation of the distance between the
bounding boxes of the symbols. In 6.2 it specifies the
centre to centre distance between the symbols.
This change is described in the migration guide for 6.2,
which I can not
You are right, PATTERN was moved from SYMBOL to STYLE.
See the migration guide:
http://mapserver.org/MIGRATION_GUIDE.html
I don't think it is possible to have a map file that serves
both versions.
Håvard
On 10/03/2012 11:48 PM, Ian Walberg wrote:
Folks,
We cannot create a map file which
If you have moved to 6.2, you can consider using
ANCHORPOINT
http://mapserver.org/trunk/en/mapfile/symbol.html
On earlier verions you could try the approach suggested
in
http://mapserver.org/trunk/en/mapfile/symbology/construction.html#tricks
But that is kind of similar to what you have tried
Regards,
2012/10/30 Havard Tveite havard.tve...@umb.no mailto:havard.tve...@umb.no
Dear Steve,
FYI, I have now documented the possibility for multiple labels
in a class (updated the class document in master).
Håvard
On 10/30/2012 3:37 PM, Andrea Peri wrote:
Hi
Have you checked the WMS Client documentation page?
http://mapserver.org/en/ogc/wms_client.html
There is an example of a WMS layer there that looks OK.
Håvard
On 11/5/2012 7:15 AM, Murad Jamal wrote:
Hello
I am having trouble adding an WMS layer in map files. Can anybody please send
me an
I have updated the documentation for 6.2 by including
a reference to MAXOVERLAPANGLE in the description of
ANGLE FOLLOW.
Håvard
On 12/3/2012 3:35 PM, Olivier Courtin wrote:
Hi,
For same kind of need (i.e hydrologic line to label), i've found that:
- Your lines must be long enough to allow
I have added
PROCESSING CHART_SIZE_RANGE = itemname
as an alternative use in the dynamic charting document.
Håvard
On 1/9/2013 5:25 PM, steve.tout...@inspq.qc.ca wrote:
I didn't find a way to modify the processing statement but in this trac
http://trac.osgeo.org/mapserver/ticket/2136
It
Dear Gary,
The v-poly symbol should be OK (I just tested it with
6.2 and 5.6.6). If you want an open V, you should
use only outlinecolor:
STYLE
SYMBOL v-poly
SIZE 30
OUTLINECOLOR 0 255 0
END # STYLE
Håvard
On 2/26/2013 12:36 AM, Gery wrote:
Hello folks,
Creating vector symbols:
Unless you have a formulae, you will have to measure.
In 6.2, precise placement of symbols is easy using SYMBOL
ANCHORPOINT. It is therefore possible to split a complex
symbol into more manageable parts (for instance some parts
using lines and some parts using
ANCHORPOINT was introduced in 6.2.
Mapserver does not care about the units of measure, so you
can use what is most convenient for you.
Instead of measuring manually, you could digitize with
your favourite digitizing software and extract the numbers
from the resulting digital representation.
There was a typo in the change log link. This one is correct:
http://mapserver.org/development/changelog/changelog-6-2-1.html
Håvard
On 04/20/2013 06:53 AM, Lime, Steve D (MNIT) wrote:
The MapServer Team is pleased to announce version 6.2.1. This is a
maintenance release that addresses some
I am not sure where the Upper left corner would be for
a rotated rectangle, but if you have a criterion for it,
a lot can be done with PostGIS (if that is your data source).
Mapscript might also be an option.
Håvard
On 5/15/2013 7:21 PM, thomas bonfort wrote:
No, I don't think this is possible
Both SYMBOL 0 + SIZE 1 and WIDTH 1 should work, but why don't
you want to use WIDTH?
WIDTH is now the recommended way of specifying the width of
lines. It is also used in
http://mapserver.org/mapfile/symbology/construction.html
Håvard
On 8/28/2013 4:29 PM, andy wrote:
It still draw's
The implementation of GAP has been fixed (center to center
distance between symbols), and so has the calculation of
symbol height.
I guess that the following should work:
STYLE
SYMBOL wavy_line
WIDTH 1
SIZE 2
GAP -6
COLOR 0 0 0
END
Since you have y values from -1 to 1, and x values
It would be useful if someone (preferably a developer ...)
could file a documentation issue for this (and issues for
other enhancements that have not yet been documented).
http://github.org/mapserver/docs
Håvard
On 26/10/2015 22:54:PM, lars.schylb...@blixtmail.se wrote:
Since I mentioned the
I get one error on
this file.
Y.
On Tuesday, October 20, 2015 10:05:30 Jeff McKenna wrote:
Thanks for pushing this Håvard, I'll dive in...
-jeff
On 2015-10-20 9:57 AM, Havard Tveite wrote:
Another similar(?) issue with mapserver.org:
Some time ago, the documentation index disappeared from
map
Another similar(?) issue with mapserver.org:
Some time ago, the documentation index disappeared from
mapserver.org together with the blue navigation line near
the top of the page.
Could that be a similar issue, Jeff?
When compiling the docs locally the blue navigation line
below the
S57 is supported in Mapserver through OGR:
http://mapserver.org/input/vector/S57.html
I guess it should be possible to implement S52 using
Mapserver's quite powerful symbol mechanisms. But I don't
know if has been done before.
Håvard
On 22. des. 2015 04:34, AuroraGH wrote:
NOAA provides free
Try a negative GAP value.
http://mapserver.org/mapfile/style.html:
GAP
"For lines, a negative GAP value will cause the symbols’ X axis to be
aligned relative to the tangent of the line."
Håvard
On 05. sep. 2016 14:49, Ahmet Temiz wrote:
Hi,
I have line layer.
I couldn't make my arrows
Depending on your lines and how you want to arrange your
arrows along the lines, you could try GAP with OFFSET or
ANCHORPOINT. INITIALGAP and GEOMTRANSFORM might also be useful.
See http://mapserver.org/mapfile/symbology/construction.html
Håvard
On 1/9/2016 10:06, Ahmet Temiz wrote:
Hi,
Hi,
I can't see any mistakes.
I tried to test this on with 6.4.2 and 7.0.1 (sorry I have not
installed 7.0.2 yet), and am not able to reproduce the behaviour
that you describe. ANCHORPOINT seems to work as expected.
Which Mapserver version are you using?
I have run it using shp2img -m
I
According to the STYLE-> WIDTH documentation, for POLYGON
symbols (filled symbols of type vector) WIDTH refers to
the width of the outline of the symbol:
"If used with SYMBOL and OUTLINECOLOR, WIDTH specifies the width of the
symbol outlines. This applies to SYMBOL TYPE vector (polygons),
I have added a doc issue
(https://github.com/mapserver/docs/issues/163)
Håvard
On 21. des. 2016 12:36, Rahkonen Jukka (MML) wrote:
Hi,
For making Mapserver to accept the definition of the stored query from a saved
XML file I had to add xml header line
http://www.w3.org/2001/XMLSchema;
Thanks for reporting, Thomas.
I have added a documentation issue for RFC98.
Håvard
On 10. aug. 2017 09:28, thomas bonfort wrote:
Dave,
The Noto font aims at resolving this issue: https://www.google.com/get/noto/
Aside from that mapserver supports language specific fonts. This needs
For examples see:
http://mapserver.org/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters
Håvard
On 15. sep. 2017 14:44, Rahkonen Jukka (MML) wrote:
Hi,
When I say ”GAP” I mean “GAP”. You have that in the “railway” symbol.
SYMBOL
NAME 'railway'
TYPE
74 matches
Mail list logo