/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf
Have fun / Lars Schylberg
Den 2023-08-03 kl. 19:07, skrev Bob Basques:
Yes this approach would work. I'm really trying to shoot for the > Blur effect though the further away from the line it gets, it fades
>
/github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf
>
> I will look for the actual mapfile as well, when I can remember which machine
> I have it on.
>
> Have fun / Lars Schylberg
>
> 1 mars 2023 kl. 18:17, "Bob Basques" skrev:
>
>>
have it on.
Have fun / Lars Schylberg
1 mars 2023 kl. 18:17, "Bob Basques" skrev:
> All,
>
> Anyone want to share any MapFile examples they have for styling a line with a
> scaled shadow width?
> Also any examples of scaled line offse
really
complicated.
FEATURE
POINTS
50 50
END
ITEMS "E4;55;655;9"
END
PROCESSING "ITEMS=label1,label2,label3,label4"
Just wondering if I have overlooked something in the Mapserver manual.
Thanks in advance / Lars Schylberg
___
is here: https://www.youtube.com/watch?v=vlagaZLxekg
Some example code can be found at:
https://github.com/LarsSchy/Mapserver-Circles.
I do agree that there exists some problem with circle symbols with size
unit meters, that I really can't explain
Have fun!
/Lars Schylberg
Den 2022-09-05 kl
in
Mapserver so far.
/Lars Schylberg
Den 2022-04-25 kl. 21:32, skrev Jeff McKenna:
Hi all,
I've spent some effort to document how to enable the optimized
FlatGeobuf (FGB) format for vectors in MapServer, for both
reading/access as well as steps to output FGB through WFS (you could
also use
Seth G. has written a good summany about this in a blog entry that hopefully
will land in the 8.0 documentation.
https://geographika.net/posts/securing_mapserver.html#web-server-level-security
Have fun / Lars S.
8 april 2022 kl. 11:03, "Rahkonen Jukka (MML)"
skrev:
> Hi,
>
> Mapserver 8
oint_examples.map -o point_examples.png
My MapServer version this evening was: MapServer version 7.2.2
I guess that these should behave differently when You zoom.
Have fun / Lars Schylberg
26 februari 2022 kl. 15:19, "Rahkonen Jukka (MML)"
mailto:jukka.rahko...@maanmittauslaitos.fi?to=%22Rahkonen%
Thomas B. has described on the users-list in the past.
In addition to that I have added examples with a line and a point symbol.
Have fun / Lars Schylberg
22 februari 2022 kl. 15:01, "Steve Lime" mailto:sdl...@gmail.com?to=%22Steve%20Lime%22%20)> skrev:
I don't believe you can s
Hi,
I just spent some hours doing some of that. It is all in this GIST.
https://gist.github.com/LarsSchy/4aa75fd2a6bc7eb01a7cff9beb64b59a
(https://gist.github.com/LarsSchy/4aa75fd2a6bc7eb01a7cff9beb64b59a)
Lars Schylberg
23 februari 2022 kl. 16:08, "Basques, Bob (CI-StPaul)"
mailt
/ Lars Schylberg
Den 2021-09-16 kl. 18:46, skrev Steve Lime:
Hi all: I think this is possible. What's the easiest/best way to
recolor a raster image, so for example, turning all pixels of 255 0 0
to 0 0 255? There are only 6 colors in the input image I need to deal
with.
--Steve
Hi,
When I look at the images it seems like the 7.6 have anti-aliasing but
the 6.4 does not have it. The 7.6 is more fuzzy and the 6.4 image You
could that the river is not as smooth.
/Lars S.
Den 2021-05-15 kl. 17:43, skrTo ev Richard Greenwood:
I get significantly different image sizes
his up on the Wiki sometime.
Have fun / Lars Schylberg
-
Den 2021-03-24 kl. 15:39, skrev Jeff McKenna:
..
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
that
the results were strange.
I thought that the fake label would do the trick, but it didn't
/Lars Schylberg
17 februari 2021 kl. 20:05, "Iljya Kalai" mailto:iljya.ka...@gmail.com?to=%22Iljya%20Kalai%22%20)>
skrev:
Hi Steve,
I've created a minimal example to demonstrate the issue:
https://gi
Hi,
I did a similar thing with mapfiles and substituted colors and other
info with sed. I had the values in a csv file. Then read the values into
a associative array in bash.
Finally I had a very long sed script to do the substitutitons.
You can find the example here:
the mapserver syntax, install and use:
https://mappyfile.readthedocs.io/en/latest/ and use the validate
command on the command line.
Good luck !
/Lars Schylberg
Den 2020-10-02 kl. 18:54, skrev BRIAN STIFFENN LUNA BOLIVAR:
Hello everyone, good day. I have a problem when making the wms request
Hi, I am not using PHP Mapscript, but shouldn't You set the extent to
valid EPSG coordinates for EPSG:3857. IE. Projected bounds:
-20026376.39 -20048966.10
20026376.39 20048966.10
for global coverage.
/Lars S.
Den 2020-09-20 kl. 18:32, skrev magma:
Hi all.
I have used PHP Mapscript for a
Hi,
I had the same issue a couple a years ago and made some examples with the help
from this list.
Please find this full example that I brushed up a little today.
https://gist.github.com/LarsSchy/d3a8285f4d06bc47ae358151048ed792
Best regards
Lars Schylberg
15 september 2020 kl. 09:28
ixtmail.se skrev:
> Hi,
>
> I had the same issue a couple a years ago and made some examples with the
> help from this list.
> Please find this full example that I brushed up a little today.
>
> https://gist.github.com/LarsSchy/d3a8285f4d06bc47ae358151048ed792
>
> Bes
You can do multiple labels in a layer like this, since Mapserver 6.2
https://image.slidesharecdn.com/nouveautesdemapserver6-2-121119075750-phpapp02/95/nouveauts-de-mapserver-62-9-638.jpg
You work with offset for each label.
/Lars S.
24 januari 2020 kl. 10:27, "DESCHAMPS Olivier - DDT
this helps to debug further.
Lars Schylberg
22 januari 2020 kl. 17:16, "Johannes Paul" mailto:johannespau...@gmail.com?to=%22Johannes%20Paul%22%20)>
skrev:
Yes i do have a working url having 5 digits coordinates Jo Le mer. 22 janv.
2020 à 17:06, Jörg Thomsen (WhereGroup) mailto:joerg.tho
'land_clr': '"#E8E6E1"' where the “80” is 50 %
transparency in hex. Then that color should be part of your new style.
Then you must have an OUTPUTFORMAT that is rendering with alpha
transparency (RGBA)
I haven’t tried this, but it should work.
Have fun / Lars Schylberg
Den 2019-12
/644b37ab2b1e58b48808bfb2b57d0359)
The script snippet also shows the normal optimizations we do.
Hope this could give You some ideas how optimize and make Mapserver and
Mapcache run faster. I also ran into the problem with to many inodes.
That got solved by using sqlite as backend in Mapcache.
Best regards / Lars
Hi,
The best way is most likely to set up a WMTS service with mapcache.
It handles meta tiling in a more proper way.
There are good examples in the mapproxy documentation how to do labels in
mapserver.
https://mapproxy.org/docs/nightly/labeling.html
79
*import_raster_retile_v3.sh*
<https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c#file-import_raster_retile_v3-sh>
https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c
Have fun
/Lars Schylberg
___
mapserver-
Does it make a difference if You define:
CONFIG 'ON_MISSING_DATA' 'IGNORE'
on the map level?
/Lars S.
4 juni 2019 kl. 21:44, "Peter Schmitt" mailto:pschm...@gmail.com?to=%22Peter%20Schmitt%22%20)>
skrev:
Hi,
I have MapServer configured to serve a WFS endpoint with GeoJSON. The data
itself
Have You tried: CONFIG "CPL_DEBUG" "ON"
/Lars Schylberg
April 4, 2019 11:23 AM, "Lars Fricke" mailto:lars.fri...@skendata.de?to=%22Lars%20Fricke%22%20)>
wrote:
Hello,
First of all: thank you for your time!
I have been running into a strange problem lately. We
then import projects easily.
Good luck! /Lars Schylberg
Den 2019-04-01 kl. 16:51, skrev Jeremy JK:
Hello,
I am Jeremy from Trinidad and Tobago, West Indies Caribbean
Do any of you guys use ScribeUI? I spent the entire weekend trying to
install the program on Ubuntu but I couldn't get
/generate_light_sector.py)
Best regards
Lars Schylberg
March 12, 2019 6:17 PM, "Marek Bąk" mailto:rai...@poczta.onet.pl?to=%22Marek%20B%C4%85k%22%20)>
wrote:
Hi All,
Thanks for all suggestions and ideas. I've evaluated them using the ms4w
binaries (v3.3.0):
- there is no support for V8 at the moment
che. Those were some future techniques that
could be added to the
layer composite pipeline if anyone was interested.
Best regards
Lars Schylberg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo
lect
sqlite_version(),
spatialite_version(),
lwgeom_version(),
geos_version(),
proj4_version()
FROM lights_point
#
Have fun !
Lars Schylberg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailma
the Nordic countries.
I guess this could be fine tuned even more.
/Lars Schylberg
September 20, 2018 3:18 PM, "Travis Kirstine" mailto:traviskirst...@gmail.com?to=%22Travis%20Kirstine%22%20)>
wrote:
Lars,
Sorry for the side questions
Is there any performance benefit (specifi
that.
/Lars Schylberg
September 20, 2018 2:40 PM, "Sebastiano Laini"
mailto:sebastiano.la...@buchanancomputing.co.uk?to=%22Sebastiano%20Laini%22%20)>
wrote:
Thanks guys,
I will try to do it after I will recompile again Mapcache to use SQLite
as I compite it -DWI
much You want to store in each sqlite db file
before it creates a new db file.
mapcache is creating the db files automatically. So seeding a large area You
end up with many sqlite db files that all work together.
This has worked really good for our use case.
Lars Schylberg
September 20, 2018 1:24
To get a nice Santa red color use: -2 200 200
For a nice green color for green plants: 128 -2 128
Finally -255 -255 -255 gives You black color.
Have fun and a good weekend.
Lars Schylberg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
a.
I could show some examples if any one is interested.
Actually I heard that someone was doing dynamic SVGs but I don't now the
procedure for that.
/Lars Schylberg
December 9, 2017 12:56 PM, "Björn Danielsson" <bjorn.daniels...@falubo.se
(mailto:%22Bj%C3%B6rn%20Danielsson%22%20<
that option be described in the manual page for LAYER, even if it is
the default behavior ?
/Lars Schylberg
-Originalmeddelande-
Från: "Peter Schmitt" <pschm...@gmail.com>
Till: mapserver-users@lists.osgeo.org
Datum: 2017-10-27 20:58
Ämne: Re: [mapserver-users] Underst
td_poly.map -o 01_polygon_td_poly.png -i png_G0
I did some tests with both polygons, polygon outlines and lines and they all
seems to have anti-aliasing as far as I could see.
Would this be an ok way to test it? I also have some people that would like to
do lines without anti-aliasing f
I would like to do a demo site with open data, but haven't had time to do this
yet.
The script: process_layer_color.sh shows the real processing part and the sed
script.
https://github.com/LarsSchy/SMAC-M/blob/master/chart-installation/generate_map_files/scripts/process_layer_colors.sh
Have
/9b697cb02c0a4637512a1b1026069352
and the result is shown here:
https://i.imgur.com/z0yXKdh.png
Good luck
Lars Schylberg
-Originalmeddelande-
> Från: "Håvard Tveite" <havard.tve...@nmbu.no>
> Till: mapserver-users@lists.osgeo.org
> Datum: 2017-10-11 23:21
>
Hi,
I guess that your symbol definition of square says filled false, it should be
be filled true. Do another symbol.
Next thing is that if You would like to do fancy borders symbols along a
polygon you could set LAYER - TYPE to line.
The syntax becomes easier. Last thing is to get the
I guess this is ok as long as You have a CLASS for each feature.
The GetLegendGraphics looks for the NAME in each class and makes an entry in
the legend based on that.
/Lars S.
-Originalmeddelande-
> Från: "Andrea Peri"
> Till: mapserver-users@lists.osgeo.org
This should help:
http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url
/Lars S.
Den 2017-03-14 kl. 19:38, skrev Stefanos Anastasiou:
Hi all.
I'm trying to perform a runtime substitution in MapServer. My
mapfile snippet is the following:
VALIDATION
Mark,
In my case I don't do legend for the shields. Actually I am going thru the
road data twice. I have a separate layer just to do the shields.
In the shields layer I start with a FILTER just to select the road classes that
should have shields shown.
Doing both the road symbology
Hi,
I more detail in my previous example the offset in the style block is because
the example is part of a block with three road shields stacked.
/Lars S.
One single shield would be like this:
LABEL
EXPRESSION ('[VAGNR1]' ~ '^[0-9][0-9]$' )
Hi,
This is how I do it in MS7.0. This is just part of the class with the first
two labels. I have different shield depending on the number of digits.
I also have different color depending on the color of the shield. This is
following European road label standard.
/Lars S
Another way to do it, is with "wms_layer_group"
as decribed here; http://mapserver.org/ogc/wms_server.html
But that might be a little more complicated but allows You more levels of
subgroups.
Lars S.
-Originalmeddelande-
> Från: "Stephen Woodbridge"
>
This blog entry from Simon Mercier describes how this works.
http://www.mapgears.com/en/blog/archive/2013-03-05-roads_network_mapping
Lars S.
-Originalmeddelande-
> Från: "Stephen Woodbridge"
> Till: mapserver-users@lists.osgeo.org
> Datum:
You find it here:
http://mapserver.org/input/raster.html#special-processing-directives
/Lars S.
-Originalmeddelande-
> Från: "Andrea Peri"
> Till: mapserver-users@lists.osgeo.org
> Datum: 2016-12-01 10:36
> Ämne: [mapserver-users] Searching documents on
In this case I would do the computation in a OGR SQL request to create a new
variable.
The SQL computation could also be done in a VRT.
Lars S.-Originalmeddelande-
> Från: "Stephen Woodbridge"
> Till: mapserver-users@lists.osgeo.org
> Datum: 2016-11-04 16:17
>
Thanks Jeff and Even,
Now I also understand. I have been using a Debian standard built Mapserver
7.01 for development and
a Centos Mapserver 7.01 as target env.
It was in the Centos environment I had the trouble last week with the Layer
opacity.
I guess we built the Centos Mapserver with
I am experiencing exactly the same thing. Trying to find out when it happens
just now.
I had this problem in February, but then it disappeared after a while. Now it
started to happen sometimes again last week.
Lars S.
-Originalmeddelande-
Från:
COLOR 0 104 0
SYMBOL "arrow-start"
SIZE 10.0
INITIALGAP 15
GAP -50
OFFSET 10 -99
ANGLE 180
END # STYLE
-Originalmeddelande-
Från: "Ahmet Temiz" <ah
Ahmet,
Here is an example: just run it with: shp2img -m arrow-on-line.map -o
arrows-on-line.png
It shows both outline and what You asked for the other day with arrows.
Have fun
Lars S.
MAP # arrows-on-line.map
IMAGETYPE png
EXTENT 0 0 100 100
I guess that You need a layer definition in a DATA statement.
LAYER ... CONNECTIONTYPE OGR CONNECTION "" DATA
"" ...END
http://mapserver.org/input/vector/ogr.html
/Lars S.
-Originalmeddelande-
> Från: lagrange123
> Till:
Hi Marco,
We ha a similar discussion last year. I didn't find a direct way to specify
sqlite dialect in the data statement. You could however write it in a vrt file
where You could set the sql dialect.
An example can be found in this discussion tread:
Simon,
I guess that You need to do a GEOTRANSFORM with a buffer as shown here:
https://lists.osgeo.org/pipermail/mapserver-users/2015-October/078302.html
I haven't verified this myself yet. It is on my "want to do list".
/Lars Schylberg
Den 2016-03-17 kl. 00:42, skrev Simon Merc
Here is a full example with a default value also:
http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/
/Lars S.
-Originalmeddelande-
Från: "milad nidal"
Till: "Richard Greenwood" ,
ogrtindex or vrt:s
Generally VRT:s are more flexible. The VRT can be used directly in
mapserver as data.
Writing VRT:s can also be a good way to really merge and process data in
a smart way with ogr2ogr.
Lars Schylberg
Den 2016-01-29 kl. 16:31, skrev Francis, Mike:
Thanks, I
database (or geopackage with symbology included) for the S57 databases
but right now I am using shapefiles.
Good luck
Lars Schylberg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver
c1.setExpression(" \"yas=Eosen\" "); looks like it should be
c1.setExpression(" \"yas=Eosen"\ ");
without knowing mapscript
Lars
Den 2015-11-10 kl. 16:30, skrev Ahmet Temiz:
with Following code, resulting map looks blank.
classObj c1 = new classObj(jeo_layer);
styleObj new_style = new
labels in the
following layers have polygon features underneath. If You are using GROUP for
the WMS layers, be sure to have the command PROCESSING
"FORCE_DRAW_LABEL_CACHE=FLUSH" in a GROUP that is always drawn.
/ Lars Schylberg
-Originalmeddelande-
Från: l
. The example
shows the effect of using and not using the FORCE DRAW LABEL CACHE command.
Just run the example with shp2img.
MAP
NAME FDLC
# Author: Lars
to organize things is to use an approach like the “basemap
example” (https://github.com/mapserver/basemaps) to combine a lot of layers.
Have fun
Lars Schylberg
-Originalmeddelande-
> Från: "Andrea Peri" <aperi2...@gmail.com>
> Till: mapserver-users@lists.os
There is actually two ways to do this with Mapserver:
You could join them with a ogrtindex. Then You are not actually merging the
polygons but that doesn't matter
since You will only display the polygon and not the outline.
To do the ogrtindex You will do something like this with a bash
I would try to do a VRT file that describes both raster files and work
with that.
I don't have an good example but maybe this could get You started
together with the GDAL docs.
http://www.paolocorti.net/2012/03/08/gdal_virtual_formats/
/Lars S.
Matt McClelland skrev den 2015-07-23 08:54:
How about making sqlite/spatialite databases instead. That will only be
simple files but with almost the same interface as Postgis.
/Lars
Brent Wood skrev den 2015-06-28 01:46:
Hi,
I'm looking to build a LiveDVD/USB key with QGIS, OSM base layer and
web services for New Zealand.
Our road
I think You should have a
wms_include_items all
in the LAYER METADATA section.
Same comment as I had last week.
/Lars
Jörg Thomsen skrev den 2015-06-10 16:00:
Hello,
in my WMS getFeatureInfo works fine with info_format html [1] and gml,
but I don't get a result with text/plain [2]. And I
I think that You need to declare a
wms_include_items all
in the LAYER METADATA section.
or
'wms_include_items' 'GEMEINDE, BEZIRK, BRW'
if You just would like to expose a some items.
/Lars S.
-Originalmeddelande-
Från: Jörg Thomsen j...@mapmedia.de
Till:
,
Lars Schylberg
-Originalmeddelande-
Från: Eichner, Andreas - SID andreas.eich...@sid.sachsen.de
Till: lars.schylb...@blixtmail.se, mapserver-users@lists.osgeo.org
Datum: 2015-05-29 10:51
Ämne: AW: [mapserver-users] Named WMS styles - CLASSGROUP and GROUP
Have you tried using
.
Lars Schylberg
New mapfile: style_test_5.map
--
MAP
NAME ST
EXTENT 0 0 20 15
SIZE 200 150
UNITS DD
IMAGECOLOR 200 200 200
CONFIG MS_ERRORFILE /tmp/style_test.log
DEBUG 5
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END
WEB
Hi,
I have tried to understand how to create named styles in a WMS configuration,
for some time.
I would like to have one style that is color and one style for grey scale.
The manual says the You can do that:
http://mapserver.org/ogc/sld.html#named-styles-support
With the basic set up I get
72 matches
Mail list logo