Hi Ahmet,
You can use two styles in your class. Something like:
CLASS
...
STYLE #bigger white one
COLOR "#FF"
OPACITY 0.5
WIDTH 4
END
STYLE #smaller black one
COLOR "#00"
WIDTH 2
END
...
END
I think I got the order right - the white one should be drawn
Hi all,
I filed a but about a month ago
(https://github.com/mapserver/mapserver/issues/5107) about an issue that
I started having with a mapfile where the outline on labels with
SIZEUNITS METERS no longer seemed to be correct. No matter what I set
OUTLINEWIDTH to, the outline stays the
You do not need to set both FILTERITEM and FILTER. You can just set
FILTER to an expression using as many attributes as you need. e.g.
FILTER (( [POPULATION] 50 ) AND ([DISPLAY] == 1)). Just like
you can have multiple attributes in a class EXPRESSION.
I think it's the section of the
On 06/26/2013 08:39 AM, Christy Nieman wrote:
Hi all,
I've noticed that if I draw a TIFF that has some transparent pixels
set either by using OFFSITE or alpha values in the TIFF palette, there
are artifacts that appear around the transparent areas with MapServer
6.2, but not with 5.6, when I add
Hi all,
I've noticed that if I draw a TIFF that has some transparent pixels set
either by using OFFSITE or alpha values in the TIFF palette, there are
artifacts that appear around the transparent areas with MapServer 6.2,
but not with 5.6, when I add the resample processing option to the
Hi Jeff,
I've built it on Fedora 16. I can't find my notes from when I built the
dependencies, but it was something like:
- get libsvg 0.5 and libsvg-cairo 0.5 from
http://sourceforge.net/projects/svg2swf/files/ . This version has
better luck rendering more complicated SVGs
- build them
Hi,
ANGLE FOLLOW is subject to MAXOVERLAPANGLE (see
http://mapserver.org/mapfile/label.html). If there is an angle between
letters that is larger than 22.5 (if you don't have a manually-set
value), then the label will not be drawn.
I wrote a blog post that may help you understand:
Hello,
If you are using a recent version of PROJ.4, you should be able to use
epsg:3857 for Web Mercator. MapServer can reproject your data
on-the-fly if you also have projection blocks in your layer definitions
to say what projection the data are (i.e. epsg:4326). This will slow
down the
Hi all,
I have been looking into something I just noticed when I change the
output of a map draw from png to Cairo svg or pdf. A 300px by 300px png
image became a 375 px by 375 px svg according to Inkscape. I realized
this is because the size of the svg was specified in points and Inkscape
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ah. This seems to be a difference between using ANNOTATIONS vs.
POINTS. I was trying to get the same result as using an ANNOTATION to
draw a point marker with a label in a POINT layer (i.e. that the point
only gets drawn if the label does).
Never mind :)
C
On 03/22/2012 11:16 AM, Christy
Hello,
I'm trying to understand the new CLUSTER object. I have a feeling that
I'm just expecting things to work differently than they do, but wanted
to confirm.
If you have a CLUSTER object with a GROUP expression in it (e.g. GROUP (
'[type]' = 'car' ), the Cluster:Group feature attribute
in the union layer, the
two source layers must have STATUS DEFAULT for anything to show up
(which, I think, causes them to be drawn twice?).
Am I missing something with how UNIONs and STYLEITEM AUTO work? Or is
this how it was designed?
Thanks,
Christy
--
Christy Nieman
GIS Technician
DM
Hi,
For the railfar symbol, all you need is for the PATTERN to be in the
style (no symbol required). Something like:
STYLE
COLOR 0 0 0
WIDTH 2
PATTERN 5 5 END
END
For the rail symbol, you need to move the GAP parameter from the
symbol into the style.
Thomas,
Sorry it took me awhile to respond - I'd left things compiling when I
went home last night, and it failed, so I had to fix it and get it going
again this morning. With libpng 1.5.3 beta3 and mapserver 6.0 beta 7
(since it was released before I fixed things this morning), everything
Hello Sergey,
Using ANGLE FOLLOW in the label block will provide labels that follow
the curvature of the line segment that is being labelled. Please note,
that if the line segment is shorter than the label, the label will hang
off the end of the line unless you use MINFEATURESIZE AUTO in the
Hello Ian,
QGIS can handle many different encodings. You set the encoding when you
save a new shapefile or load an existing shapefile.
Regards,
Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
On 12/15/2010 11:03 AM
Of
*Christy Nieman
*Sent:* Wednesday, December 15, 2010 8:13 AM
*To:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] Creating and editing UTF8 shape files
Hello Ian,
QGIS can handle many different encodings. You set the encoding when
you save a new shapefile or load an existing
Hi,
You should be able to use an INCLUDE (see
http://mapserver.org/mapfile/Include.html) that contains the classes. E.g.:
LAYER
...
CLASSITEM CLASS
INCLUDE path/to/include/file.txt
END
Where file.txt would be:
CLASS
EXPRESSION A
COLOR #FF
END
...
CLASS
EXPRESSION Z
COLOR
Hi,
Do you mean that you cannot classify a layer where the data are drawn
using a tile index? I use tile indexed shapefiles all the time and have
never had any problems using CLASSITEM/EXPRESSION and
FILTERITEM/FILTER. Could you provide an example of what's not working?
Regards,
Christy
I tested (and reported back to the ticket), that it looks good now.
On 07/13/2010 11:47 AM, Daniel Morissette wrote:
Christy Nieman wrote:
Attached is a sample.
With mapserver 5.6.3's shp2img, in the mapfile as provided, I get a thin
lines and small labels on them. With 5.6.4's shp2img I
Hi,
You can use the TEXT parameter:
CLASS
...
TEXT (surface is [TXT])
LABEL
...
END
END
Where [TXT] is the attribute field from your data. You can also use
this method to combine two attributes into the label.
Christy
On 05/17/2010 08:22 AM, Tonton wrote:
hello
i use
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
I would be disappointed if they were deprecated at the symbol level, as
I have several SIMPLE symbols that I reuse with different colours/widths.
Christy
On 04/09/2010 10:18 AM, thomas bonfort wrote:
since recent versions, most (all?) of the parameters that resided in
TYPE SIMPLE symbol have
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote:
I don't believe this will get you the desired effect. You'll get the lines but
you'll also get the line
Hi,
If you are indeed using MapServer 5.4, you should be able to control the
width of a polygon's outline by specifying an OUTLINECOLOUR and a
WIDTH. I just tested with the 5.4 svn branch and had no trouble.
I'm not sure what you mean by it seems that MapServer cannot read a
symbol file
to provide.
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman
Hi,
When you say that you could very well use expressions, do you mean
regular expressions? In my experience, unless you are working with a
very large data set they're fine.
E.g.
CLASSITEM flavour
...
EXPRESSION /cherry|mango|lime/
Christy
Lars Westerlind wrote:
AFAIK currently I write
Hi,
I don't think there is any MapServer-specific raster size limit. I have
successfully drawn (very) bigtiff images (~ 30 GB each) with MapServer,
gdal and libgeotiff that were compiled against libtiff 4.
Christy
Rodríguez wrote:
Hi everyone,
We are planning to buy a huge
Hi,
(I don't remember if this has been asked yet or not, but...) does your
OpenLayers application use tiles? Is it possible the duplicate labels
are actually on separate tiles? If so, you can try setting OpenLayers
to single tile mode to see if this is indeed the problem. Then you can
try
Hi,
You can put labelcache_map_edge_buffer -10 in the WEB block
metadata. This will ensure that no labels are drawn within 10 pixels of
a tile boundary (you can change the value to increase or decrease the
buffer zone)
E.g.:
MAP
...
WEB
METADATA
labelcache_map_edge_buffer -10
Hi,
You could set MINFEATURESIZE to AUTO and then only the labels that fit
on the lines should be drawn.
Regards,
Christy
Raivo Alla wrote:
Hello!
I'm stuck in simple-looking problem, but the solution is just hiding somewhere.
The question is: how I can label only those line features,
Hi,
It was addressing some potential security problems:
http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html
Christy
Guillaume Sueur wrote:
Hi,
I think what David meant was about getting an error when SYMBOLSET is
not declared in the symbol file since 5.4.
I ran into
Hi,
If you use an ANNOTATION layer instead of POINT, the only points that
will be drawn are those where the labels will be drawn.
Christy
Nelson Correia wrote:
Hi all,
Is it possible to have points and labels always drawn together when in
a POINT layer? The objective is to draw
,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
Nelson Correia wrote:
Hi,
Do you know how to write an outline on the roads label boxes, just
like the ones that Google Maps has? In Mapserver docs
Hi,
You can set the IMAGECOLOR parameter for the map (see
http://mapserver.org/mapfile/map.html), which sets the background colour
for the map. Then your coloured polygons would be drawn on top of the
background colour.
Regards,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc
Hi,
If you use TYPE ANNOTATION instead of TYPE POINT only the symbols for
features that get labelled will be drawn.
Regards,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
Valeria Muñoz
Melvin,
The syntax is:
gdaltindex /name_of_tile_index/.shp /location_of_rasters
/So, for your example, the syntax would look something like:
gdaltindex sample_index.shp c:\ms4w\data\raster\*.tif
Regards,
Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie
Hi Melvin,
Using a tool such as gdaltindex (see http://www.gdal.org/gdaltindex.html
and http://mapserver.org/optimization/tileindex.html#tileindex) you can
create a shapefile tile index that will give MapServer the information
it needs to use the required rasters for the current map extent.
methods to see if they suffice. In my
experience, one of the best ways to speed up the drawing of vector
layers is to limit the use of filters and class expressions on large
data files.
Regards,
Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web
STYLE
COLOR 102 0 0
SIZE 2
SYMBOL line_solid
END
STYLE
COLOR 204 51 51
SIZE 1
SYMBOL line_solid
END
LABEL
TYPE truetype
FONT PerspectiveBlack
SIZE 11
END
END
END
Best regards,
Christy
--
Christy Nieman
GIS Technician
DM Solutions Group
Hi,
There is a symbol type simple that does more or less the same as
cartolines.
SYMBOL
NAME dotline
TYPE simple
LINECAP butt
LINEJOIN miter
PATTERN
1 20 1 20
END
END
should do the trick.
Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: [EMAIL PROTECTED
Ah, never mind, Thomas' answer is better. But for future reference,
symbol type simple provides the LINECAP and LINEJOIN options for line
styling that cartoline used to provide.
C
Christy Nieman wrote:
Hi,
There is a symbol type simple that does more or less the same as
cartolines
ways to have more than one ms4w on a machine.
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: [EMAIL PROTECTED]
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
zach cruise wrote:
if i setup httpd.conf right, can i unzip and use 2 ms4w versions (4.8
and 5.2
There is the FGS installer package (http://maptools.org/fgs/) for
Linux. But it's still using version 5.0.2, as far as I know.
Christy
Willy-Bas Loos wrote:
exactly.
i built my own 5.2.0 too. But i'm not a system admin really and it's a
bit of a hassle. If i were planning to compile my
In my experiences with Fedora, they tend to keep the same version of
MapServer that the OS version was released with (so Fedora 9 has 5.0.2,
or something like that, by default). As I want to use the latest
version, I build it for myself. I bet that distributions tend to stay
with what they
Hello,
I'm not exactly sure what you mean about the border being broken, but if
you want the polygon border thickness to be larger than one pixel, I
believe the only way is to create a line layer to put on top of the
polygon. For example:
#Polygon layer on the bottom
LAYER
NAME States
I've used GPSBabel (http://www.gpsbabel.org) to download data from my
GPS and get them into more usable formats. It can also convert between
formats.
I'm not sure what you mean by converting between GPS and GIS
coordinates. If you have a delimited table of coordinates you should be
able to
48 matches
Mail list logo