From vini.vineetsingh at gmail.com Wed Feb 1 01:54:28 2017 From: vini.vineetsingh at gmail.com (vineet singh) Date: Wed, 1 Feb 2017 15:24:28 +0530 Subject: [mapserver-users] Apply style on osm layer using sld Message-ID: Hi All, I'm trying style a vector layer containing OSM data (places) using the mapscript style shown below. It works so long as I don't add any styling entry pertaining to labels. However, adding label styling makes MapServer crash while making WMS calls. It shows a few points with labeled but shortly thereafter, the mapserver instance crashes. There is no error statement in log file also. This how my layer looks like in map file : LAYER CONNECTION "host=localhost port=5432 user=abc password=asdf123 dbname=abc" CONNECTIONTYPE POSTGIS DATA 'geom from "OSM_places" using unique gid using srid=4326' EXTENT 68.5094575 6.6791812 97.0315678 35.368417 FILTER ((( ("[type]" ="city") OR ("[type]" ="town") OR ("[type]" ="village") OR ( ("[type]" != "town") And ( ("[type]" != "town") And ("[type]" != "town")) ) ))) METADATA "type" "vector" "wms_srs" "EPSG:4326 CRS:84" "wfs_srs" "EPSG:4326" "tinyows_retrievable" "1" "ows_enable_request" "*" "tinyows_table" "OSM_places" "wfs_namespace_prefix" "abc" "tinyows_writable" "1" "wfs_title" "OSM_places" "wfs_namespace_uri" "http://www.abc.com/" "wms_title" "OSM_places" END # METADATA NAME "OSM_places" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS OFF TEMPLATE "tempalte.html" TILEITEM "location" TYPE POINT UNITS METERS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="city")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 7e+06 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="town")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 900000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="village")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 500000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ( ("[type]" != "town") And ( ("[type]" != "town") And ("[type]" != "town")) ) ) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 100000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS END # LAYER After removing TEXT ("[name]") from each class it shows all points but with this TEXT ("[name]") in layer mapserver crashes. Log file : [Wed Feb 1 13:04:19 2017].298440 msDrawMap(): Layer 12 (OSM_places), 0.012s [Wed Feb 1 13:04:19 2017].298478 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].298713 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].298923 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299227 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299415 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299765 msDrawMap(): Drawing Label Cache, 0.001s [Wed Feb 1 13:04:19 2017].299772 msDrawMap() total time: 0.014s [Wed Feb 1 13:04:19 2017].302860 msSaveImage(stdout) total time: 0.003s [Wed Feb 1 13:04:19 2017].302888 mapserv request processing time (msLoadMap not incl.): 0.017s [Wed Feb 1 13:04:19 2017].302893 msFreeMap(): freeing map at 0x104c030. [Wed Feb 1 13:04:19 2017].318020 CGI Request 309 on process 7081 [Wed Feb 1 13:04:19 2017].318575 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Feb 1 13:04:19 2017].318593 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Feb 1 13:04:19 2017].318604 msDrawRasterLayerLow(world): entering. [Wed Feb 1 13:04:19 2017].319702 msDrawMap(): Layer 0 (world), 0.001s [Wed Feb 1 13:04:19 2017].319724 msDrawMap(): Drawing Label Cache, 0.000s [Wed Feb 1 13:04:19 2017].319728 msDrawMap() total time: 0.002s [Wed Feb 1 13:04:19 2017].324501 msSaveImage(stdout) total time: 0.005s [Wed Feb 1 13:04:19 2017].324533 mapserv request processing time (msLoadMap not incl.): 0.007s [Wed Feb 1 13:04:19 2017].324538 msFreeMap(): freeing map at 0x104c030. [Wed Feb 1 13:04:19 2017].326716 CGI Request 310 on process 7081 [Wed Feb 1 13:04:19 2017].326980 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Feb 1 13:04:19 2017].326992 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Feb 1 13:04:19 2017].327003 msDrawRasterLayerLow(world): entering. [Wed Feb 1 13:04:19 2017].328067 msDrawMap(): Layer 0 (world), 0.001s [Wed Feb 1 13:04:19 2017].328087 msDrawMap(): Drawing La I am using Mapserver 7.0.1 running as an fcgi process via nginx. Any idea on what could be wrong? Is there a way I can get a crash dump to help debug this better? Regards, Vineet SIngh -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Feb 1 02:04:11 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 1 Feb 2017 10:04:11 +0000 Subject: [mapserver-users] Apply style on osm layer using sld Message-ID: Hi, Could you clarify which part of your problem has a connection with SLD? -Jukka Rahkonen- vineet singh wrote: [mapserver-users] Apply style on osm layer using sld Hi All, I'm trying style a vector layer containing OSM data (places) using the mapscript style shown below. It works so long as I don't add any styling entry pertaining to labels. However, adding label styling makes MapServer crash while making WMS calls. It shows a few points with labeled but shortly thereafter, the mapserver instance crashes. There is no error statement in log file also. This how my layer looks like in map file : LAYER CONNECTION "host=localhost port=5432 user=abc password=asdf123 dbname=abc" CONNECTIONTYPE POSTGIS DATA 'geom from "OSM_places" using unique gid using srid=4326' EXTENT 68.5094575 6.6791812 97.0315678 35.368417 FILTER ((( ("[type]" ="city") OR ("[type]" ="town") OR ("[type]" ="village") OR ( ("[type]" != "town") And ( ("[type]" != "town") And ("[type]" != "town")) ) ))) METADATA "type" "vector" "wms_srs" "EPSG:4326 CRS:84" "wfs_srs" "EPSG:4326" "tinyows_retrievable" "1" "ows_enable_request" "*" "tinyows_table" "OSM_places" "wfs_namespace_prefix" "abc" "tinyows_writable" "1" "wfs_title" "OSM_places" "wfs_namespace_uri" "http://www.abc.com/" "wms_title" "OSM_places" END # METADATA NAME "OSM_places" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS OFF TEMPLATE "tempalte.html" TILEITEM "location" TYPE POINT UNITS METERS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="city")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 7e+06 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="town")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 900000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ("[type]" ="village")) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 500000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS CLASS NAME "Unknown" EXPRESSION ( ( ("[type]" != "town") And ( ("[type]" != "town") And ("[type]" != "town")) ) ) LABEL ANGLE AUTO SIZE 12 COLOR 255 255 255 OFFSET 0 5 OUTLINECOLOR 0 0 0 POSITION LC SHADOWSIZE 1 1 END # LABEL MAXSCALEDENOM 100000 STYLE COLOR 255 0 0 SIZE 6 SYMBOL "sld_mark_symbol_circle_filled" END # STYLE TEXT ("[name]") END # CLASS END # LAYER After removing TEXT ("[name]") from each class it shows all points but with this TEXT ("[name]") in layer mapserver crashes. Log file : [Wed Feb 1 13:04:19 2017].298440 msDrawMap(): Layer 12 (OSM_places), 0.012s [Wed Feb 1 13:04:19 2017].298478 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].298713 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].298923 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299227 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299415 setting outlinewidth to 1 (1, 10, 10) [Wed Feb 1 13:04:19 2017].299765 msDrawMap(): Drawing Label Cache, 0.001s [Wed Feb 1 13:04:19 2017].299772 msDrawMap() total time: 0.014s [Wed Feb 1 13:04:19 2017].302860 msSaveImage(stdout) total time: 0.003s [Wed Feb 1 13:04:19 2017].302888 mapserv request processing time (msLoadMap not incl.): 0.017s [Wed Feb 1 13:04:19 2017].302893 msFreeMap(): freeing map at 0x104c030. [Wed Feb 1 13:04:19 2017].318020 CGI Request 309 on process 7081 [Wed Feb 1 13:04:19 2017].318575 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Feb 1 13:04:19 2017].318593 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Feb 1 13:04:19 2017].318604 msDrawRasterLayerLow(world): entering. [Wed Feb 1 13:04:19 2017].319702 msDrawMap(): Layer 0 (world), 0.001s [Wed Feb 1 13:04:19 2017].319724 msDrawMap(): Drawing Label Cache, 0.000s [Wed Feb 1 13:04:19 2017].319728 msDrawMap() total time: 0.002s [Wed Feb 1 13:04:19 2017].324501 msSaveImage(stdout) total time: 0.005s [Wed Feb 1 13:04:19 2017].324533 mapserv request processing time (msLoadMap not incl.): 0.007s [Wed Feb 1 13:04:19 2017].324538 msFreeMap(): freeing map at 0x104c030. [Wed Feb 1 13:04:19 2017].326716 CGI Request 310 on process 7081 [Wed Feb 1 13:04:19 2017].326980 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Feb 1 13:04:19 2017].326992 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Feb 1 13:04:19 2017].327003 msDrawRasterLayerLow(world): entering. [Wed Feb 1 13:04:19 2017].328067 msDrawMap(): Layer 0 (world), 0.001s [Wed Feb 1 13:04:19 2017].328087 msDrawMap(): Drawing La I am using Mapserver 7.0.1 running as an fcgi process via nginx. Any idea on what could be wrong? Is there a way I can get a crash dump to help debug this better? Regards, Vineet SIngh -------------- next part -------------- An HTML attachment was scrubbed... URL: From vini.vineetsingh at gmail.com Wed Feb 1 02:53:04 2017 From: vini.vineetsingh at gmail.com (vineet singh) Date: Wed, 1 Feb 2017 16:23:04 +0530 Subject: [mapserver-users] Apply style on osm layer using sld In-Reply-To: References: Message-ID: Sorry for wrong title, I meant to say styling rather than sld. Thanks Vineet Singh On Feb 1, 2017 3:34 PM, "Rahkonen Jukka (MML)" < jukka.rahkonen at maanmittauslaitos.fi> wrote: > Hi, > > > > Could you clarify which part of your problem has a connection with SLD? > > > > -Jukka Rahkonen- > > > > vineet singh wrote: > [mapserver-users] Apply style on osm layer using sld > > > > Hi All, > > > > > > I'm trying style a vector layer containing OSM data (places) using the > mapscript style shown below. It works so long as I don't add any styling > entry pertaining to labels. > > However, adding label styling makes MapServer crash while making WMS calls. > > It shows a few points with labeled but shortly thereafter, the mapserver > instance crashes. There is no error statement in log file also. > > This how my layer looks like in map file : > > LAYER > > CONNECTION "host=localhost port=5432 user=abc password=asdf123 > dbname=abc" > > CONNECTIONTYPE POSTGIS > > DATA 'geom from "OSM_places" using unique gid using srid=4326' > > EXTENT 68.5094575 6.6791812 97.0315678 35.368417 > > FILTER ((( ("[type]" ="city") OR ("[type]" ="town") OR ("[type]" > ="village") OR ( ("[type]" != "town") And ( ("[type]" != "town") And > ("[type]" != "town")) ) ))) > > METADATA > > "type" "vector" > > "wms_srs" "EPSG:4326 CRS:84" > > "wfs_srs" "EPSG:4326" > > "tinyows_retrievable" "1" > > "ows_enable_request" "*" > > "tinyows_table" "OSM_places" > > "wfs_namespace_prefix" "abc" > > "tinyows_writable" "1" > > "wfs_title" "OSM_places" > > "wfs_namespace_uri" "http://www.abc.com/" > > "wms_title" "OSM_places" > > END # METADATA > > NAME "OSM_places" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS OFF > > TEMPLATE "tempalte.html" > > TILEITEM "location" > > TYPE POINT > > UNITS METERS > > CLASS > > NAME "Unknown" > > EXPRESSION ( ("[type]" ="city")) > > LABEL > > ANGLE AUTO > > SIZE 12 > > COLOR 255 255 255 > > OFFSET 0 5 > > OUTLINECOLOR 0 0 0 > > POSITION LC > > SHADOWSIZE 1 1 > > END # LABEL > > MAXSCALEDENOM 7e+06 > > STYLE > > COLOR 255 0 0 > > SIZE 6 > > SYMBOL "sld_mark_symbol_circle_filled" > > END # STYLE > > TEXT ("[name]") > > END # CLASS > > CLASS > > NAME "Unknown" > > EXPRESSION ( ("[type]" ="town")) > > LABEL > > ANGLE AUTO > > SIZE 12 > > COLOR 255 255 255 > > OFFSET 0 5 > > OUTLINECOLOR 0 0 0 > > POSITION LC > > SHADOWSIZE 1 1 > > END # LABEL > > MAXSCALEDENOM 900000 > > STYLE > > COLOR 255 0 0 > > SIZE 6 > > SYMBOL "sld_mark_symbol_circle_filled" > > END # STYLE > > TEXT ("[name]") > > END # CLASS > > CLASS > > NAME "Unknown" > > EXPRESSION ( ("[type]" ="village")) > > LABEL > > ANGLE AUTO > > SIZE 12 > > COLOR 255 255 255 > > OFFSET 0 5 > > OUTLINECOLOR 0 0 0 > > POSITION LC > > SHADOWSIZE 1 1 > > END # LABEL > > MAXSCALEDENOM 500000 > > STYLE > > COLOR 255 0 0 > > SIZE 6 > > SYMBOL "sld_mark_symbol_circle_filled" > > END # STYLE > > TEXT ("[name]") > > END # CLASS > > CLASS > > NAME "Unknown" > > EXPRESSION ( ( ("[type]" != "town") And ( ("[type]" != "town") And > ("[type]" != "town")) ) ) > > LABEL > > ANGLE AUTO > > SIZE 12 > > COLOR 255 255 255 > > OFFSET 0 5 > > OUTLINECOLOR 0 0 0 > > POSITION LC > > SHADOWSIZE 1 1 > > END # LABEL > > MAXSCALEDENOM 100000 > > STYLE > > COLOR 255 0 0 > > SIZE 6 > > SYMBOL "sld_mark_symbol_circle_filled" > > END # STYLE > > TEXT ("[name]") > > END # CLASS > > END # LAYER > > > > After removing TEXT ("[name]") from each class it shows all points but > with this TEXT ("[name]") in layer mapserver crashes. > > Log file : > > [Wed Feb 1 13:04:19 2017].298440 msDrawMap(): Layer 12 (OSM_places), > 0.012s > > [Wed Feb 1 13:04:19 2017].298478 setting outlinewidth to 1 (1, 10, 10) > > [Wed Feb 1 13:04:19 2017].298713 setting outlinewidth to 1 (1, 10, 10) > > [Wed Feb 1 13:04:19 2017].298923 setting outlinewidth to 1 (1, 10, 10) > > [Wed Feb 1 13:04:19 2017].299227 setting outlinewidth to 1 (1, 10, 10) > > [Wed Feb 1 13:04:19 2017].299415 setting outlinewidth to 1 (1, 10, 10) > > [Wed Feb 1 13:04:19 2017].299765 msDrawMap(): Drawing Label Cache, 0.001s > > [Wed Feb 1 13:04:19 2017].299772 msDrawMap() total time: 0.014s > > [Wed Feb 1 13:04:19 2017].302860 msSaveImage(stdout) total time: 0.003s > > [Wed Feb 1 13:04:19 2017].302888 mapserv request processing time > (msLoadMap not incl.): 0.017s > > [Wed Feb 1 13:04:19 2017].302893 msFreeMap(): freeing map at 0x104c030. > > [Wed Feb 1 13:04:19 2017].318020 CGI Request 309 on process 7081 > > [Wed Feb 1 13:04:19 2017].318575 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > > [Wed Feb 1 13:04:19 2017].318593 msDrawMap(): WMS/WFS set-up and query, > 0.000s > > [Wed Feb 1 13:04:19 2017].318604 msDrawRasterLayerLow(world): entering. > > [Wed Feb 1 13:04:19 2017].319702 msDrawMap(): Layer 0 (world), 0.001s > > [Wed Feb 1 13:04:19 2017].319724 msDrawMap(): Drawing Label Cache, 0.000s > > [Wed Feb 1 13:04:19 2017].319728 msDrawMap() total time: 0.002s > > [Wed Feb 1 13:04:19 2017].324501 msSaveImage(stdout) total time: 0.005s > > [Wed Feb 1 13:04:19 2017].324533 mapserv request processing time > (msLoadMap not incl.): 0.007s > > [Wed Feb 1 13:04:19 2017].324538 msFreeMap(): freeing map at 0x104c030. > > [Wed Feb 1 13:04:19 2017].326716 CGI Request 310 on process 7081 > > [Wed Feb 1 13:04:19 2017].326980 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > > [Wed Feb 1 13:04:19 2017].326992 msDrawMap(): WMS/WFS set-up and query, > 0.000s > > [Wed Feb 1 13:04:19 2017].327003 msDrawRasterLayerLow(world): entering. > > [Wed Feb 1 13:04:19 2017].328067 msDrawMap(): Layer 0 (world), 0.001s > > [Wed Feb 1 13:04:19 2017].328087 msDrawMap(): Drawing La > > > > I am using Mapserver 7.0.1 running as an fcgi process via nginx. > > Any idea on what could be wrong? Is there a way I can get a crash dump to > help debug this better? > > > > Regards, > > Vineet SIngh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ahmed.Tolba at schiebel.net Wed Feb 1 03:37:30 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Wed, 1 Feb 2017 11:37:30 +0000 Subject: [mapserver-users] compiling mapserver regex problem Message-ID: <2abe1f3c25b5477fa286c987e234d8cc@SRV046.seg.local> Hi All, I'm trying to compile mapserver and I get regex errors I can't solve it. ..\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal 1>..\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list illegal 1>..\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list illegal 1>..\regex.c(4877) : error C2055: expected formal parameter list, not a type list -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ahmed.Tolba at schiebel.net Wed Feb 1 08:10:40 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Wed, 1 Feb 2017 16:10:40 +0000 Subject: [mapserver-users] compiling mapserver Message-ID: <2b60918f338f4b839b0d6f2d01f3e0ba@SRV046.seg.local> I get the following errors when I try to compile mapserver trunk version using visual studio 2015 1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll linkage 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous definition of 'strdup' 1> maperror.c -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Feb 1 09:35:34 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 1 Feb 2017 13:35:34 -0400 Subject: [mapserver-users] compiling mapserver In-Reply-To: <2b60918f338f4b839b0d6f2d01f3e0ba@SRV046.seg.local> References: <2b60918f338f4b839b0d6f2d01f3e0ba@SRV046.seg.local> Message-ID: Hi Ahmed, I have no issues with today's master with Visual Studio 2015. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-02-01 12:10 PM, Ahmed Tolba wrote: > I get the following errors when I try to compile mapserver trunk version > using visual studio 2015 > > > > 1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll > linkage > > 1> C:\Program Files (x86)\Windows > Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous > definition of 'strdup' > > 1> maperror.c > From jmckenna at gatewaygeomatics.com Wed Feb 1 14:27:07 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 1 Feb 2017 18:27:07 -0400 Subject: [mapserver-users] MS4W version 3.2.0 available In-Reply-To: <3124c393-4352-a285-eb5d-8c42b6488659@gatewaygeomatics.com> References: <3124c393-4352-a285-eb5d-8c42b6488659@gatewaygeomatics.com> Message-ID: <63f2683e-d231-b187-84be-948be6fa3c0a@gatewaygeomatics.com> Hello everyone, MS4W version 3.2.0 is now available at http://www.ms4w.com This is a substantial release, so please see the very long list of updates to this popular product at: http://ms4w.com/HISTORY.html You'll notice updates for PHP 5.6.30, MapServer 7.0.4, MapCache, and (literally) the entire stack of libraries. Please note that your server must have this C++ Redistributable installed on it beforehand: (use the "x86" one https://www.microsoft.com/en-ca/download/details.aspx?id=30679). MS4W is growing, and 2017 will see lots of action in terms of MS4W; it now has 63 working mapfiles and data, installs to over 1GB of space, with now over 6,000 downloads per month and over 1TB of transfers. It includes plugins for Oracle, ECW, MSSQL, MapScripts (Java, Python, CSharp, PHP). It comes with pre-configured packages for GeoMOOSE, Mapbender, pmapper, OpenLayers (with a custom local WMS service working in the OpenLayers examples) and several MapServer viewers. And of course lots of changes are in progress for PHP 7 inside MS4W, which is working in MS4W Alpha versions (more details at http://mapserver.org/development/rfc/ms-rfc-117.html). Phew lots! Please don't be afraid to also provide feedback and requests through the MS4W tracker (so the comments and requests are not lost or forgotten): http://www.ms4w.com/trac/ Thank you all for sharing your spatial information with MS4W. And happy MapServing! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mafonso333 at gmail.com Wed Feb 1 15:34:14 2017 From: mafonso333 at gmail.com (Marco Afonso) Date: Wed, 1 Feb 2017 23:34:14 +0000 Subject: [mapserver-users] MS4W version 3.2.0 available In-Reply-To: <63f2683e-d231-b187-84be-948be6fa3c0a@gatewaygeomatics.com> References: <3124c393-4352-a285-eb5d-8c42b6488659@gatewaygeomatics.com> <63f2683e-d231-b187-84be-948be6fa3c0a@gatewaygeomatics.com> Message-ID: Congratulations Jeff and all involved in MS4W. This work is priceless! All the best, Em 01/02/2017 22:27, "Jeff McKenna" escreveu: > Hello everyone, > > MS4W version 3.2.0 is now available at http://www.ms4w.com This is a > substantial release, so please see the very long list of updates to this > popular product at: http://ms4w.com/HISTORY.html You'll notice updates > for PHP 5.6.30, MapServer 7.0.4, MapCache, and (literally) the entire stack > of libraries. > > Please note that your server must have this C++ Redistributable installed > on it beforehand: (use the "x86" one https://www.microsoft.com/en-c > a/download/details.aspx?id=30679). > > MS4W is growing, and 2017 will see lots of action in terms of MS4W; it now > has 63 working mapfiles and data, installs to over 1GB of space, with now > over 6,000 downloads per month and over 1TB of transfers. It includes > plugins for Oracle, ECW, MSSQL, MapScripts (Java, Python, CSharp, PHP). It > comes with pre-configured packages for GeoMOOSE, Mapbender, pmapper, > OpenLayers (with a custom local WMS service working in the OpenLayers > examples) and several MapServer viewers. And of course lots of changes are > in progress for PHP 7 inside MS4W, which is working in MS4W Alpha versions > (more details at http://mapserver.org/development/rfc/ms-rfc-117.html). > Phew lots! > > Please don't be afraid to also provide feedback and requests through the > MS4W tracker (so the comments and requests are not lost or forgotten): > http://www.ms4w.com/trac/ > > Thank you all for sharing your spatial information with MS4W. > > And happy MapServing! > > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hardes at 3dis.de Thu Feb 2 00:22:13 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Thu, 2 Feb 2017 09:22:13 +0100 Subject: [mapserver-users] Error with Filter = no results Message-ID: Hello, i have a question with the Filter parameter. without a filter, mapserver does a normal SQL query like: select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((691642.41999 5334989.72599,691642.41999 5335172.82301,691979.17301 5335172.82301,691979.17301 5334989.72599,691642.41999 5334989.72599))',-1) limit 101 but if i add an BBox filter, i got a wrong polygon: select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1) and (st_intersects(groundsurface,ST_GeomFromText('POLYGON ((691813.1405204038600000 5335101.3663145527000000, 691813.1405204038600000 5335921.3585226759000000, 692960.5523786536700000 5335921.3585226759000000, 692960.5523786536700000 5335101.3663145527000000, 691813.1405204038600000 5335101.3663145527000000))',-1)) = TRUE) ... The polygon: 'POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1 is wrong. A normal SQL query without these values, gets my desired result. My map File: -------------------------------------------------------------- MAP NAME "sample" SIZE 800 400 DEBUG 5 OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" END CONFIG MS_ERRORFILE "ms_error.log" PROJECTION "init=epsg:32632" END WEB METADATA ows_enable_request "*" END END LAYER DEBUG 5 NAME "poly" STATUS DEFAULT TYPE POLYGON METADATA "wfs_srs" "EPSG:32632" "wms_transparent" "true" "wfs_getfeature_formatlist" "geojson" END PROJECTION 'init=epsg:32632' END CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 user=postgres password=xxxxx dbname=map_daniel" DATA "groundsurface from building using SRID=-1 using unique id" CLASS STYLE COLOR "#88888888" ANTIALIAS true END END END END ------------------------------------------------------------- And the Request: http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRSNAME=EPSG:32632&TYPENAMES=poly&COUNT=100&outputformat1=geojson&map=C:\Users\d.hardes\Documents\map.map&Filter=poly 691813.1405204039,5335101.366314553 692960.5523786537,5335921.358522676 And result missing where is the Error in my settings? -- 3DIS GmbH Daniel Hardes Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 3DIS GmbH Konrad-Zuse-Stra?e 6 D - 46397 Bocholt www.3dis.de 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | Amtsgericht Coesfeld | HRB 12986 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3dis_64_126.png Type: image/png Size: 5468 bytes Desc: not available URL: From vini.vineetsingh at gmail.com Thu Feb 2 00:32:14 2017 From: vini.vineetsingh at gmail.com (vineet singh) Date: Thu, 2 Feb 2017 14:02:14 +0530 Subject: [mapserver-users] OSM data styling using sld Message-ID: Hi All, I am using OSM data and GeoServer provides sld files for the same data. But, however same sld files don't work with MapServer? Does anyone know how to fix this issue or where to get compatible sld files. Source for osm data : http://download.geofabrik.de/asia.html for example, I have osm_roads.sld from here: https://github.com/MarkCupitt/SLD-s/tree/master/openstreetmap-sld/default It works fine with geoServer but with MapServer style is rendering but labels are not coming. Thanks, VIneet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Feb 2 00:33:27 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 2 Feb 2017 08:33:27 +0000 Subject: [mapserver-users] Error with Filter = no results Message-ID: <077dd9de2326420bb83c77b9fbee9115@C119S212VM022.msvyvi.vaha.local> What happens if you remove srsName from the filter? It can be hard to know how to reproject from EPSG:32632 into unknown. WFS 1.0.0 is anyway tied to the default srs. I would also consider saving data into PostGIS with proper SRID. -Jukka Rahkonen- ----- Alkuper?inen viesti ----- L?hett?j?: "Daniel Hardes" L?hetetty: ?2.?2.?2017 10:22 Vastaanottaja: "mapserver-users at lists.osgeo.org" Aihe: [mapserver-users] Error with Filter = no results Hello, i have a question with the Filter parameter. without a filter, mapserver does a normal SQL query like: select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((691642.41999 5334989.72599,691642.41999 5335172.82301,691979.17301 5335172.82301,691979.17301 5334989.72599,691642.41999 5334989.72599))',-1) limit 101 but if i add an BBox filter, i got a wrong polygon: select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1) and (st_intersects(groundsurface,ST_GeomFromText('POLYGON ((691813.1405204038600000 5335101.3663145527000000, 691813.1405204038600000 5335921.3585226759000000, 692960.5523786536700000 5335921.3585226759000000, 692960.5523786536700000 5335101.3663145527000000, 691813.1405204038600000 5335101.3663145527000000))',-1)) = TRUE) ... The polygon: 'POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1 is wrong. A normal SQL query without these values, gets my desired result. My map File: -------------------------------------------------------------- MAP NAME "sample" SIZE 800 400 DEBUG 5 OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=stream" FORMATOPTION "FORM=SIMPLE" END CONFIG MS_ERRORFILE "ms_error.log" PROJECTION "init=epsg:32632" END WEB METADATA ows_enable_request "*" END END LAYER DEBUG 5 NAME "poly" STATUS DEFAULT TYPE POLYGON METADATA "wfs_srs" "EPSG:32632" "wms_transparent" "true" "wfs_getfeature_formatlist" "geojson" END PROJECTION 'init=epsg:32632' END CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 user=postgres password=xxxxx dbname=map_daniel" DATA "groundsurface from building using SRID=-1 using unique id" CLASS STYLE COLOR "#88888888" ANTIALIAS true END END END END ------------------------------------------------------------- And the Request: http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRSNAME=EPSG:32632&TYPENAMES=poly&COUNT=100&outputformat1=geojson&map=C:\Users\d.hardes\Documents\map.map&Filter=poly 691813.1405204039,5335101.366314553 692960.5523786537,5335921.358522676 And result missing where is the Error in my settings? -- Daniel Hardes Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 3DIS GmbH Konrad-Zuse-Stra?e 6 D - 46397 Bocholt www.3dis.de 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | Amtsgericht Coesfeld | HRB 12986 -------------- next part -------------- A non-text attachment was scrubbed... Name: 3dis_64_126.png Type: image/png Size: 5468 bytes Desc: 3dis_64_126.png URL: From aborruso at gmail.com Thu Feb 2 00:39:12 2017 From: aborruso at gmail.com (aborruso) Date: Thu, 2 Feb 2017 01:39:12 -0700 (MST) Subject: [mapserver-users] Set value_list precision in raster query template Message-ID: <1486024752760-5305926.post@n6.nabble.com> Hi, I have created a query template and I use [value_list] to read pixel values. I would like to set precision to 2, but when I set [value_list precision=2] I do not have any more the pixel values but the string "[value_list precision=2]". How to set precision in raster query template? Thank you -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Set-value-list-precision-in-raster-query-template-tp5305926.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hardes at 3dis.de Thu Feb 2 01:19:46 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Thu, 2 Feb 2017 10:19:46 +0100 Subject: [mapserver-users] Error with Filter = no results In-Reply-To: <077dd9de2326420bb83c77b9fbee9115@C119S212VM022.msvyvi.vaha.local> References: <077dd9de2326420bb83c77b9fbee9115@C119S212VM022.msvyvi.vaha.local> Message-ID: Same query without srsName. I tried it with WFS 1.0.0, 1.1.0, 2.0.0 and no results. Am 02.02.2017 um 09:33 schrieb Rahkonen Jukka (MML): > What happens if you remove srsName from the filter? It can be hard to know how to reproject from EPSG:32632 into unknown. WFS 1.0.0 is anyway tied to the default srs. I would also consider saving data into PostGIS with proper SRID. > > -Jukka Rahkonen- > > ----- Alkuper?inen viesti ----- > L?hett?j?: "Daniel Hardes" > L?hetetty: ?2.?2.?2017 10:22 > Vastaanottaja: "mapserver-users at lists.osgeo.org" > Aihe: [mapserver-users] Error with Filter = no results > > Hello, > i have a question with the Filter parameter. > without a filter, mapserver does a normal SQL query like: > > select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((691642.41999 5334989.72599,691642.41999 5335172.82301,691979.17301 5335172.82301,691979.17301 5334989.72599,691642.41999 5334989.72599))',-1) limit 101 > > but if i add an BBox filter, i got a wrong polygon: > select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1) and (st_intersects(groundsurface,ST_GeomFromText('POLYGON ((691813.1405204038600000 5335101.3663145527000000, 691813.1405204038600000 5335921.3585226759000000, 692960.5523786536700000 5335921.3585226759000000, 692960.5523786536700000 5335101.3663145527000000, 691813.1405204038600000 5335101.3663145527000000))',-1)) = TRUE) > > ... The polygon: > > 'POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1 > is wrong. A normal SQL query without these values, gets my desired result. > > My map File: > -------------------------------------------------------------- > MAP > NAME "sample" > > SIZE 800 400 > DEBUG 5 > OUTPUTFORMAT > NAME "geojson" > DRIVER "OGR/GEOJSON" > MIMETYPE "application/json; subtype=geojson" > FORMATOPTION "STORAGE=stream" > FORMATOPTION "FORM=SIMPLE" > END > > CONFIG MS_ERRORFILE "ms_error.log" > PROJECTION > "init=epsg:32632" > > END > > WEB > METADATA > ows_enable_request "*" > END > END > > LAYER > DEBUG 5 > NAME "poly" > STATUS DEFAULT > TYPE POLYGON > METADATA > "wfs_srs" "EPSG:32632" > "wms_transparent" "true" > "wfs_getfeature_formatlist" "geojson" > END > PROJECTION > 'init=epsg:32632' > END > CONNECTIONTYPE postgis > CONNECTION "host=localhost port=5432 user=postgres password=xxxxx dbname=map_daniel" > DATA "groundsurface from building using SRID=-1 using unique id" > CLASS > STYLE > COLOR "#88888888" > ANTIALIAS true > END > END > END > END > ------------------------------------------------------------- > And the Request: > http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRSNAME=EPSG:32632&TYPENAMES=poly&COUNT=100&outputformat1=geojson&map=C:\Users\d.hardes\Documents\map.map&Filter=poly 691813.1405204039,5335101.366314553 692960.5523786537,5335921.358522676 > > And result > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=poly&OUTPUTFORMAT=XMLSCHEMA"> > > missing > > > > > where is the Error in my settings? > -- 3DIS GmbH Daniel Hardes Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 3DIS GmbH Konrad-Zuse-Stra?e 6 D - 46397 Bocholt www.3dis.de 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | Amtsgericht Coesfeld | HRB 12986 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3dis_64_126.png Type: image/png Size: 5468 bytes Desc: not available URL: From sethg at geographika.co.uk Thu Feb 2 03:54:04 2017 From: sethg at geographika.co.uk (Seth G) Date: Thu, 2 Feb 2017 12:54:04 +0100 Subject: [mapserver-users] compiling mapserver In-Reply-To: <2b60918f338f4b839b0d6f2d01f3e0ba@SRV046.seg.local> References: <2b60918f338f4b839b0d6f2d01f3e0ba@SRV046.seg.local> Message-ID: <4bb72e9e-8420-6dde-2f2a-bd4ad7b51f25@geographika.co.uk> Hi Ahmed, I had issues with strdup on Windows, see: https://github.com/mapserver/mapserver/pull/5313 https://github.com/mapserver/mapserver/pull/5321 All occurrences should be replaced with msStrdup. Maybe your issue is related? Regards, Seth On 01/02/2017 17:10, Ahmed Tolba wrote: > > I get the following errors when I try to compile mapserver trunk > version using visual studio 2015 > > 1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll > linkage > > 1> C:\Program Files (x86)\Windows > Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous > definition of 'strdup' > > 1> maperror.c > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- web: http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Thu Feb 2 05:06:57 2017 From: sethg at geographika.co.uk (Seth G) Date: Thu, 2 Feb 2017 14:06:57 +0100 Subject: [mapserver-users] Error with Filter = no results In-Reply-To: References: <077dd9de2326420bb83c77b9fbee9115@C119S212VM022.msvyvi.vaha.local> Message-ID: <629fc64e-12ec-9d9d-b53f-486bdc8af1ef@geographika.co.uk> Hi Daniel, Does setting the EXTENT for your map or layer make any difference? Also try adding the projections you want to use to the MAP METADATA section. "wfs_srs" "EPSG:32632 EPSG:4326" Regards, Seth On 02/02/2017 10:19, Daniel Hardes wrote: > > Same query without srsName. I tried it with WFS 1.0.0, 1.1.0, 2.0.0 > and no results. > > > Am 02.02.2017 um 09:33 schrieb Rahkonen Jukka (MML): >> What happens if you remove srsName from the filter? It can be hard to know how to reproject from EPSG:32632 into unknown. WFS 1.0.0 is anyway tied to the default srs. I would also consider saving data into PostGIS with proper SRID. >> >> -Jukka Rahkonen- >> >> ----- Alkuper?inen viesti ----- >> L?hett?j?: "Daniel Hardes" >> L?hetetty: ?2.?2.?2017 10:22 >> Vastaanottaja:"mapserver-users at lists.osgeo.org" >> Aihe: [mapserver-users] Error with Filter = no results >> >> Hello, >> i have a question with the Filter parameter. >> without a filter, mapserver does a normal SQL query like: >> >> select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((691642.41999 5334989.72599,691642.41999 5335172.82301,691979.17301 5335172.82301,691979.17301 5334989.72599,691642.41999 5334989.72599))',-1) limit 101 >> >> but if i add an BBox filter, i got a wrong polygon: >> select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1) and (st_intersects(groundsurface,ST_GeomFromText('POLYGON ((691813.1405204038600000 5335101.3663145527000000, 691813.1405204038600000 5335921.3585226759000000, 692960.5523786536700000 5335921.3585226759000000, 692960.5523786536700000 5335101.3663145527000000, 691813.1405204038600000 5335101.3663145527000000))',-1)) = TRUE) >> >> ... The polygon: >> >> 'POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1 >> is wrong. A normal SQL query without these values, gets my desired result. >> >> My map File: >> -------------------------------------------------------------- >> MAP >> NAME "sample" >> >> SIZE 800 400 >> DEBUG 5 >> OUTPUTFORMAT >> NAME "geojson" >> DRIVER "OGR/GEOJSON" >> MIMETYPE "application/json; subtype=geojson" >> FORMATOPTION "STORAGE=stream" >> FORMATOPTION "FORM=SIMPLE" >> END >> >> CONFIG MS_ERRORFILE "ms_error.log" >> PROJECTION >> "init=epsg:32632" >> >> END >> >> WEB >> METADATA >> ows_enable_request "*" >> END >> END >> >> LAYER >> DEBUG 5 >> NAME "poly" >> STATUS DEFAULT >> TYPE POLYGON >> METADATA >> "wfs_srs" "EPSG:32632" >> "wms_transparent" "true" >> "wfs_getfeature_formatlist" "geojson" >> END >> PROJECTION >> 'init=epsg:32632' >> END >> CONNECTIONTYPE postgis >> CONNECTION "host=localhost port=5432 user=postgres password=xxxxx dbname=map_daniel" >> DATA "groundsurface from building using SRID=-1 using unique id" >> CLASS >> STYLE >> COLOR "#88888888" >> ANTIALIAS true >> END >> END >> END >> END >> ------------------------------------------------------------- >> And the Request: >> http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRSNAME=EPSG:32632&TYPENAMES=poly&COUNT=100&outputformat1=geojson&map=C:\Users\d.hardes\Documents\map.map&Filter=poly 691813.1405204039,5335101.366314553 692960.5523786537,5335921.358522676 >> >> And result >> >> > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >> http://mapserver.gis.umn.edu/mapserver >> http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=poly&OUTPUTFORMAT=XMLSCHEMA"> >> >> missing >> >> >> >> >> where is the Error in my settings? >> > > -- > > 3DIS GmbH > > > > Daniel Hardes > Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 > > 3DIS GmbH > Konrad-Zuse-Stra?e 6 D - 46397 Bocholt > www.3dis.de > > 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | > Amtsgericht Coesfeld | HRB 12986 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- web: http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 5468 bytes Desc: not available URL: From hardes at 3dis.de Thu Feb 2 05:09:56 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Thu, 2 Feb 2017 14:09:56 +0100 Subject: [mapserver-users] Error with Filter = no results In-Reply-To: <5ba3eb39-dd32-8932-6cb2-2cbb08f4a198@fastmail.com> References: <077dd9de2326420bb83c77b9fbee9115@C119S212VM022.msvyvi.vaha.local> <5ba3eb39-dd32-8932-6cb2-2cbb08f4a198@fastmail.com> Message-ID: <7deea905-351f-3ca8-6954-ad01a2f75b85@3dis.de> Thank you. EXTENT was the missing setting Am 02.02.2017 um 13:45 schrieb Seth G: > > Hi Daniel, > > Does setting the EXTENT for your map or layer make any difference? > > Also try adding the projections you want to use to the MAP METADATA > section. > > "wfs_srs" "EPSG:32632 EPSG:4326" > > Regards, > > Seth > > > On 02/02/2017 10:19, Daniel Hardes wrote: >> >> Same query without srsName. I tried it with WFS 1.0.0, 1.1.0, 2.0.0 >> and no results. >> >> >> Am 02.02.2017 um 09:33 schrieb Rahkonen Jukka (MML): >>> What happens if you remove srsName from the filter? It can be hard to know how to reproject from EPSG:32632 into unknown. WFS 1.0.0 is anyway tied to the default srs. I would also consider saving data into PostGIS with proper SRID. >>> >>> -Jukka Rahkonen- >>> >>> ----- Alkuper?inen viesti ----- >>> L?hett?j?: "Daniel Hardes" >>> L?hetetty: ?2.?2.?2017 10:22 >>> Vastaanottaja:"mapserver-users at lists.osgeo.org" >>> Aihe: [mapserver-users] Error with Filter = no results >>> >>> Hello, >>> i have a question with the Filter parameter. >>> without a filter, mapserver does a normal SQL query like: >>> >>> select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((691642.41999 5334989.72599,691642.41999 5335172.82301,691979.17301 5335172.82301,691979.17301 5334989.72599,691642.41999 5334989.72599))',-1) limit 101 >>> >>> but if i add an BBox filter, i got a wrong polygon: >>> select "pkid","set","id","lod","type","source","referencepoint","boundingbox",encode(ST_AsBinary(ST_Force_2D("groundsurface"),'NDR'),'hex') as geom,"id" from building where groundsurface && ST_GeomFromText('POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1) and (st_intersects(groundsurface,ST_GeomFromText('POLYGON ((691813.1405204038600000 5335101.3663145527000000, 691813.1405204038600000 5335921.3585226759000000, 692960.5523786536700000 5335921.3585226759000000, 692960.5523786536700000 5335101.3663145527000000, 691813.1405204038600000 5335101.3663145527000000))',-1)) = TRUE) >>> >>> ... The polygon: >>> >>> 'POLYGON((-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785,-0.999888179649133 -0.999999999990785))',-1 >>> is wrong. A normal SQL query without these values, gets my desired result. >>> >>> My map File: >>> -------------------------------------------------------------- >>> MAP >>> NAME "sample" >>> >>> SIZE 800 400 >>> DEBUG 5 >>> OUTPUTFORMAT >>> NAME "geojson" >>> DRIVER "OGR/GEOJSON" >>> MIMETYPE "application/json; subtype=geojson" >>> FORMATOPTION "STORAGE=stream" >>> FORMATOPTION "FORM=SIMPLE" >>> END >>> >>> CONFIG MS_ERRORFILE "ms_error.log" >>> PROJECTION >>> "init=epsg:32632" >>> >>> END >>> >>> WEB >>> METADATA >>> ows_enable_request "*" >>> END >>> END >>> >>> LAYER >>> DEBUG 5 >>> NAME "poly" >>> STATUS DEFAULT >>> TYPE POLYGON >>> METADATA >>> "wfs_srs" "EPSG:32632" >>> "wms_transparent" "true" >>> "wfs_getfeature_formatlist" "geojson" >>> END >>> PROJECTION >>> 'init=epsg:32632' >>> END >>> CONNECTIONTYPE postgis >>> CONNECTION "host=localhost port=5432 user=postgres password=xxxxx dbname=map_daniel" >>> DATA "groundsurface from building using SRID=-1 using unique id" >>> CLASS >>> STYLE >>> COLOR "#88888888" >>> ANTIALIAS true >>> END >>> END >>> END >>> END >>> ------------------------------------------------------------- >>> And the Request: >>> http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRSNAME=EPSG:32632&TYPENAMES=poly&COUNT=100&outputformat1=geojson&map=C:\Users\d.hardes\Documents\map.map&Filter=poly 691813.1405204039,5335101.366314553 692960.5523786537,5335921.358522676 >>> >>> And result >>> >>> >> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> xmlns:wfs="http://www.opengis.net/wfs" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>> http://mapserver.gis.umn.edu/mapserver >>> http://localhost:8081/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=poly&OUTPUTFORMAT=XMLSCHEMA"> >>> >>> missing >>> >>> >>> >>> >>> where is the Error in my settings? >>> >> >> -- >> >> 3DIS GmbH >> >> >> >> Daniel Hardes >> Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 >> >> 3DIS GmbH >> Konrad-Zuse-Stra?e 6 D - 46397 Bocholt >> www.3dis.de >> >> 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | >> Amtsgericht Coesfeld | HRB 12986 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- 3DIS GmbH Daniel Hardes Mail: hardes at 3dis.de | Tel.: +49 (0)2861 8919 84 3DIS GmbH Konrad-Zuse-Stra?e 6 D - 46397 Bocholt www.3dis.de 3DIS GmbH | Gesch?ftsf?hrung: Gerrit Hoven, Andreas Steffens | Amtsgericht Coesfeld | HRB 12986 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 5468 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3dis_64_126.png Type: image/png Size: 5468 bytes Desc: not available URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Feb 2 05:47:11 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 2 Feb 2017 13:47:11 +0000 Subject: [mapserver-users] Error with Filter = no results Message-ID: <539670dad446437ab252105e5d7dcb9e@C119S212VM022.msvyvi.vaha.local> Hi, Fine that you could made it to work but I still think that Mapserver does not behave well. GetFeature without filter works for me also even if I do not have EXTENT at MAP level or in LAYER. However, adding filter with BBOX gives me similar warnings: [Thu Feb 02 15:21:52 2017].585000 msProjectRect(): Warning: degenerate rect {-1.000000,-1.000000,-1.000000,-1.000000} The importance of EXTENT is not documented in relevant documents http://mapserver.org/ogc/wfs_server.html http://www.mapserver.org/mapfile/map.html What is odd is that Mapserver finds no features if EXTENT is not set and BBOX is given inside FILTER. http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w_data\apps\states_pg.map&service=wfs&version=2.0.0&request=getfeature&typenames=ms:states_pg&&filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3Ems:msGeometry%3C/PropertyName%3E%3CBox%3E%20%20%20%3Ccoordinates%3E-80,30%20-60,40%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E BTW. I do know that the query above is not valid WFS 2.0.0 query because it is using a deprecated ?Box? but it does work with Mapserver when MAP-EXTENT is set. However, Mapserver does find features with the if I use BBOX as KVP even without MAP-EXTENT http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w_data\apps\states_pg.map&service=wfs&version=2.0.0&request=getfeature&typenames=ms:states_pg&BBOX=-80,30,-70,40 Should this be called as weird behavior or a bug, I am not sure. -Jukka Rahkonen- Daniel Hardes wrote: Re: [mapserver-users] Error with Filter = no results Thank you. EXTENT was the missing setting Am 02.02.2017 um 13:45 schrieb Seth G: Hi Daniel, Does setting the EXTENT for your map or layer make any difference? Also try adding the projections you want to use to the MAP METADATA section. "wfs_srs" "EPSG:32632 EPSG:4326" Regards, Seth -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Feb 2 14:15:38 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 2 Feb 2017 22:15:38 +0000 Subject: [mapserver-users] Scaling and sizeunits not matching up for hi-rez output. Message-ID: All, I just ran into an interesting problem. I?m trying to output a large image (18000x12600 @ 300DPI or 42inX60in) I?m scaling all the layers with SIZEUNITS set to FEET and have some line widths set at hundreds of feet for the width. It looks like there is a max size (pixels) that mapserver won?t draw a width past, but it looks like it?s variable, based on the size of the output image. The bigger the image out, the smaller the limit. The line I?m measuring in the outputs is set to ?WIDTH 300? in the mapfile. BBOX=543000,132000,599500,177000 (units = feet) 56500 x 45000 (map units of feet.) Output sizes: 24000x16400 = ~32 pixels (Should be about 80) 18000x12600 = ~35 pixels (should be about 60 I think) 12000x8400 = ~32 pixels (Should be about 40) 6000x4200 = ~20 pixels 3000x2100 = ~10 pixels I think it?s being capped at 200 map units. I may have run into this same item a couple of year back when working on making some large labels with MapServer. Anyone with any immediate thoughts? bobb "I've had a wonderful time, but this wasn't it." - Groucho Marx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Feb 2 14:53:49 2017 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 2 Feb 2017 22:53:49 +0000 Subject: [mapserver-users] Set value_list precision in raster query template In-Reply-To: <1486024752760-5305926.post@n6.nabble.com> References: <1486024752760-5305926.post@n6.nabble.com> Message-ID: Those raster attributes are constructed before they are passed to the template so the value list is not a number anymore but rather a delimited string. However, you can process the values independently like so: [item name="value_0" precision="2"],[item name="value_1" precision="2"],[item name="value_2" precision="2"] Etc... Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of aborruso Sent: Thursday, February 02, 2017 2:39 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Set value_list precision in raster query template Hi, I have created a query template and I use [value_list] to read pixel values. I would like to set precision to 2, but when I set [value_list precision=2] I do not have any more the pixel values but the string "[value_list precision=2]". How to set precision in raster query template? Thank you -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Set-value-list-precision-in-raster-query-template-tp5305926.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From Ahmed.Tolba at schiebel.net Fri Feb 3 06:47:53 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Fri, 3 Feb 2017 14:47:53 +0000 Subject: [mapserver-users] getting layers from tinyows Message-ID: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> Hi All, I have created a database and named it as ahmed. Then in config.xml for tinyows I added a layer name. but when I run tinyows.exe ?check, I can?t find the layer that I created. Is there something that I?m missing ? Lg, Ahmed -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborruso at gmail.com Fri Feb 3 09:13:51 2017 From: aborruso at gmail.com (andy) Date: Fri, 3 Feb 2017 18:13:51 +0100 Subject: [mapserver-users] Set value_list precision in raster query template In-Reply-To: References: <1486024752760-5305926.post@n6.nabble.com> Message-ID: On 2 February 2017 at 23:53, Lime, Steve D (MNIT) wrote: > [item name="value_0" precision="2"],[item name="value_1" > precision="2"],[item name="value_2" precision="2"] > WOW! It works, thank you great Steve ___________________ Andrea Borruso website: http://blog.spaziogis.it 38? 7' 48" N, 13? 21' 9" E, EPSG:4326 ___________________ "cercare e saper riconoscere chi e cosa, in mezzo all?inferno, non ? inferno, e farlo durare, e dargli spazio" Italo Calvino -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Feb 3 13:12:33 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 3 Feb 2017 21:12:33 +0000 Subject: [mapserver-users] Scaling and sizeunits not matching up for hi-rez output. In-Reply-To: References: Message-ID: All, apparently the MAXWIDTH setting is a way to override the limit in width display. So for future, a chunk of my Mapfile that works to increase the width of the line at hi-rez: TYPE POLYGON SIZEUNITS feet CLASS STYLE #COLOR 0 255 255 OUTLINECOLOR 0 150 255 WIDTH 200 MAXWIDTH 60 ## Pixels ## MAXWIDTH is a needed setting for scaling line widths ## beyond certain default (pixel) display limits. END END (Thanks Jim.) bobb On Feb 2, 2017, at 4:15 PM, Basques, Bob (CI-StPaul) > wrote: I just ran into an interesting problem. I?m trying to output a large image (18000x12600 @ 300DPI or 42inX60in) I?m scaling all the layers with SIZEUNITS set to FEET and have some line widths set at hundreds of feet for the width. It looks like there is a max size (pixels) that mapserver won?t draw a width past, but it looks like it?s variable, based on the size of the output image. The bigger the image out, the smaller the limit. The line I?m measuring in the outputs is set to ?WIDTH 300? in the mapfile. BBOX=543000,132000,599500,177000 (units = feet) 56500 x 45000 (map units of feet.) Output sizes: 24000x16400 = ~32 pixels (Should be about 80) 18000x12600 = ~35 pixels (should be about 60 I think) 12000x8400 = ~32 pixels (Should be about 40) 6000x4200 = ~20 pixels 3000x2100 = ~10 pixels I think it?s being capped at 200 map units. I may have run into this same item a couple of year back when working on making some large labels with MapServer. Anyone with any immediate thoughts? bobb "I've had a wonderful time, but this wasn't it." - Groucho Marx _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "Interesting - I use a Mac to help me design the next Cray." - Seymoure Cray (1925-1996) when he was told that Apple Inc. had recently bought a Cray supercomputer to help them design the next Mac. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmed.tolba at schiebel.net Sun Feb 5 04:06:29 2017 From: ahmed.tolba at schiebel.net (andreahmed) Date: Sun, 5 Feb 2017 05:06:29 -0700 (MST) Subject: [mapserver-users] getting layers from tinyows In-Reply-To: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> References: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> Message-ID: <1486296389158-5306362.post@n6.nabble.com> please guys I need help. I need the steps on how to create a layer and configuring the .xml of tinyows, that's after creating the database. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/getting-layers-from-tinyows-tp5306192p5306362.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Sun Feb 5 05:11:36 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 5 Feb 2017 09:11:36 -0400 Subject: [mapserver-users] getting layers from tinyows In-Reply-To: <1486296389158-5306362.post@n6.nabble.com> References: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> <1486296389158-5306362.post@n6.nabble.com> Message-ID: <911bc598-6106-65b8-085d-fe097dd952f7@gatewaygeomatics.com> For a working demo for TinyOWS, and data, and working with MapServer 7.0.2, and documented steps, please download MS4W 3.2.0 (http://ms4w.com) and follow the configuration steps for TinyOWS at http://ms4w.com/README_INSTALL.html#i-tinyows -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-02-05 8:06 AM, andreahmed wrote: > please guys I need help. > > I need the steps on how to create a layer and configuring the .xml of > tinyows, that's after creating the database. > > From jmckenna at gatewaygeomatics.com Sun Feb 5 05:12:23 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 5 Feb 2017 09:12:23 -0400 Subject: [mapserver-users] getting layers from tinyows In-Reply-To: <911bc598-6106-65b8-085d-fe097dd952f7@gatewaygeomatics.com> References: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> <1486296389158-5306362.post@n6.nabble.com> <911bc598-6106-65b8-085d-fe097dd952f7@gatewaygeomatics.com> Message-ID: Sorry, working with MapServer 7.0.4 :) -jeff On 2017-02-05 9:11 AM, Jeff McKenna wrote: > For a working demo for TinyOWS, and data, and working with MapServer > 7.0.2, and documented steps, please download MS4W 3.2.0 > (http://ms4w.com) and follow the configuration steps for TinyOWS at > http://ms4w.com/README_INSTALL.html#i-tinyows From bfraser at geoanalytic.com Sun Feb 5 07:44:01 2017 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 5 Feb 2017 08:44:01 -0700 Subject: [mapserver-users] getting layers from tinyows In-Reply-To: References: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> <1486296389158-5306362.post@n6.nabble.com> <911bc598-6106-65b8-085d-fe097dd952f7@gatewaygeomatics.com> Message-ID: <225e85b2-fd2f-92bd-c2aa-4220b3852e21@geoanalytic.com> I had very good success using Jeff's MS4W to figure out tinyows. He has included demo data, a config file, and some doc to remove 95% of grunt work. Once you get an understanding of tinyows using MS4W (with mapserver 7.0.2), you can always migrate to 7.0.4... Best Regards, Brent Fraser On 2/5/2017 6:12 AM, Jeff McKenna wrote: > Sorry, working with MapServer 7.0.4 :) > > -jeff > > > > On 2017-02-05 9:11 AM, Jeff McKenna wrote: >> For a working demo for TinyOWS, and data, and working with MapServer >> 7.0.2, and documented steps, please download MS4W 3.2.0 >> (http://ms4w.com) and follow the configuration steps for TinyOWS at >> http://ms4w.com/README_INSTALL.html#i-tinyows > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Sun Feb 5 08:50:43 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 05 Feb 2017 12:50:43 -0400 Subject: [mapserver-users] getting layers from tinyows In-Reply-To: <225e85b2-fd2f-92bd-c2aa-4220b3852e21@geoanalytic.com> Message-ID: <70da6b60-5237-43aa-9070-42e079d11488@email.android.com> An HTML attachment was scrubbed... URL: From ahmed.tolba at schiebel.net Sun Feb 5 12:22:49 2017 From: ahmed.tolba at schiebel.net (andreahmed) Date: Sun, 5 Feb 2017 13:22:49 -0700 (MST) Subject: [mapserver-users] getting layers from tinyows In-Reply-To: <70da6b60-5237-43aa-9070-42e079d11488@email.android.com> References: <7836b4691e2e4c78939931e21812b7a7@SRV046.seg.local> <1486296389158-5306362.post@n6.nabble.com> <911bc598-6106-65b8-085d-fe097dd952f7@gatewaygeomatics.com> <225e85b2-fd2f-92bd-c2aa-4220b3852e21@geoanalytic.com> <70da6b60-5237-43aa-9070-42e079d11488@email.android.com> Message-ID: <1486326169980-5306393.post@n6.nabble.com> I get error when creating a feature using GDAL and tinyows. I get an error that says it can not insert a feature because we couldn't parse the schema .xsd. However the schema in config.xml is so correct and its like frida schema. So I created a database and wrote a layout in the config.xml, but when I try to run tinyows--check I don't get the layer that I defined. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/getting-layers-from-tinyows-tp5306192p5306393.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Ahmed.Tolba at schiebel.net Mon Feb 6 06:58:53 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Mon, 6 Feb 2017 14:58:53 +0000 Subject: [mapserver-users] getting layers from tinyows References: <225e85b2-fd2f-92bd-c2aa-4220b3852e21@geoanalytic.com> <70da6b60-5237-43aa-9070-42e079d11488@email.android.com> Message-ID: I found the problem. There should be a field name called geom to let the tinyows recognize the layer. That?s not written in the documentation. I have another problem. I created a geom field and I assigned a geometry in postgresql. In GDAL I?m setting a OGRPoint pt; pt.setX( 120 ); pt.setY( 240 ); poFeature->SetGeometry( &pt ); if( poLayer->CreateFeature( poFeature ) != OGRERR_NONE ) { std::cout <<"error creating a feature"< Subject: Re: [mapserver-users] getting layers from tinyows Hi Brent, for the record I have tested TinyOWS (and upgraded it) for MS4W 3.2.0, which is MapServer 7.0.4 (and the same for MapCache) -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From miladnidal2604 at gmail.com Mon Feb 6 12:11:09 2017 From: miladnidal2604 at gmail.com (milad nidal) Date: Mon, 6 Feb 2017 15:11:09 -0500 Subject: [mapserver-users] group and subgroup Message-ID: Hi, I'd like to create a subgroup with 2 layers. is-it posible? I tried what is menionned in the mapserver,s doc but it did not work. something like (groupe : test and subgroup test2 with layer1 and layer 2 in the subgroup) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 6 12:34:06 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 6 Feb 2017 15:34:06 -0500 Subject: [mapserver-users] group and subgroup In-Reply-To: References: Message-ID: On 2/6/2017 3:11 PM, milad nidal wrote: > Hi, > I'd like to create a subgroup with 2 layers. is-it posible? > I tried what is menionned in the mapserver,s doc but it did not work. > something like (groupe : test and subgroup test2 with layer1 and layer 2 > in the subgroup) > Thanks Try this: LAYER NAME "layer1" GROUP "mygroup" STATUS ON ... END LAYER NAME "layer2" GROUP "mygroup" STATUS ON ... END Now you can request layer "mygroup" and both layers will be activated. -SteveW --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From lars.schylberg at blixtmail.se Mon Feb 6 12:47:07 2017 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Mon, 06 Feb 2017 21:47:07 +0100 Subject: [mapserver-users] group and subgroup In-Reply-To: References: Message-ID: <70923dd1b3551dfab620a23155927640@blixtmail.se> 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" > Till: mapserver-users at lists.osgeo.org > Datum: 2017-02-06 21:34 > ?mne: Re: [mapserver-users] group and subgroup > > On 2/6/2017 3:11 PM, milad nidal wrote: > > Hi, > > I'd like to create a subgroup with 2 layers. is-it posible? > > I tried what is menionned in the mapserver,s doc but it did not work. > > something like (groupe : test and subgroup test2 with layer1 and layer 2 > > in the subgroup) > > Thanks > > Try this: > > LAYER > ? NAME "layer1" > ? GROUP "mygroup" > ? STATUS ON > ? ... > END > > LAYER > ? NAME "layer2" > ? GROUP "mygroup" > ? STATUS ON > ? ... > END > > Now you can request layer "mygroup" and both layers will be activated. > > -SteveW > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Tue Feb 7 00:33:45 2017 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 7 Feb 2017 09:33:45 +0100 Subject: [mapserver-users] group and subgroup In-Reply-To: <70923dd1b3551dfab620a23155927640@blixtmail.se> References: <70923dd1b3551dfab620a23155927640@blixtmail.se> Message-ID: Something like this: LAYER NAME "layer1" GROUP "mygroup" STATUS ON METADATA " *wms_layer_group" "test/test2"* END END LAYER NAME "layer2" GROUP "mygroup" STATUS ON ... METADATA " *wms_layer_group" "test/test2"* END END LAYER NAME test2 END Note that curently you should create a fake layer (test2) to call test2 to "merge" layer1 and layer2. Thomas Bonfort created last week a PR in MS to let the user to call test2 without the fake layer. See https://github.com/mapserver/mapserver/pull/5371 Y. 2017-02-06 21:47 GMT+01:00 : > 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" > > Till: mapserver-users at lists.osgeo.org > > Datum: 2017-02-06 21:34 > > ?mne: Re: [mapserver-users] group and subgroup > > > > > On 2/6/2017 3:11 PM, milad nidal wrote: > > > Hi, > > > I'd like to create a subgroup with 2 layers. is-it posible? > > > I tried what is menionned in the mapserver,s doc but it did not work. > > > something like (groupe : test and subgroup test2 with layer1 and layer > 2 > > > in the subgroup) > > > Thanks > > > > Try this: > > > > LAYER > > NAME "layer1" > > GROUP "mygroup" > > STATUS ON > > ... > > END > > > > LAYER > > NAME "layer2" > > GROUP "mygroup" > > STATUS ON > > ... > > END > > > > Now you can request layer "mygroup" and both layers will be activated. > > > > -SteveW > > > > --- > > This email has been checked for viruses by Avast antivirus software. > > https://www.avast.com/antivirus > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ahmed.Tolba at schiebel.net Tue Feb 7 03:41:47 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Tue, 7 Feb 2017 11:41:47 +0000 Subject: [mapserver-users] Setting a point into postgresql Message-ID: <5bfafef92ac347909476b15081b0844a@SRV046.seg.local> Hi All, I?m trying to set a point xyz, which represents longitude altitude latitude, but when I create the feature, I get Error 1 Can?t find transcation response. The Geometry field is set by this in the database: ALTER TABLE poiserver ALTER COLUMN geom TYPE GEOMETRY(POINTZ,4326) USING ST_Force3D(geom); Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Tue Feb 7 12:12:12 2017 From: karsten at terragis.net (karsten) Date: Tue, 7 Feb 2017 12:12:12 -0800 Subject: [mapserver-users] Will Mapserver work with newer Microsoft SQL Server Spatial Databases In-Reply-To: References: Message-ID: Dear All, I am trying to find out if MapServer (and/or OGR) will work with spatial databases newer than Microsoft SQL Server 2008. I know that the drivers work with that older version but did not want to promise to a client that it would. At this point I am not able to test it directly because I do not have access to a Microsoft SQL Server 2012 or newer to verify. Does anyone have experience and succeed with this or anyone who can share their experiences ? Cheers Karsten www.terragis.net From sethg at geographika.co.uk Tue Feb 7 12:17:50 2017 From: sethg at geographika.co.uk (Seth G) Date: Tue, 7 Feb 2017 21:17:50 +0100 Subject: [mapserver-users] Will Mapserver work with newer Microsoft SQL Server Spatial Databases In-Reply-To: References: Message-ID: Hi Karsten, We were running a production system with MS SQL 2012 for 4 years without any problems. We briefly moved to SQL 2014, and are now on SQL 2016 again without issues. Tamas Szekeres does a great job of maintaining and improving the MS SQL driver - https://github.com/mapserver/mapserver/blob/master/mapmssql2008.c The OGR driver also works, but I found it to be much less flexible in terms of complex SQL and adding filters. Regards, Seth On 07/02/2017 21:12, karsten wrote: > > Dear All, > > I am trying to find out if MapServer (and/or OGR) will work with spatial > databases newer than Microsoft SQL Server 2008. I know that the drivers work > with that older version but did not want to promise to a client that it > would. At this point I am not able to test it directly because I do not have > access to a Microsoft SQL Server 2012 or newer to verify. > Does anyone have experience and succeed with this or anyone who can share > their experiences ? > > Cheers > Karsten > > www.terragis.net > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From karsten at terragis.net Tue Feb 7 12:40:38 2017 From: karsten at terragis.net (karsten) Date: Tue, 7 Feb 2017 12:40:38 -0800 Subject: [mapserver-users] Will Mapserver work with newer Microsoft SQL Server Spatial Databases In-Reply-To: References: Message-ID: Dear Seth, Thanks so much for sharing your experiences. Also that it works well is great. The naming of the driver thus does not reflect that it does suports more than only version 2008 ;) Hope this answer will help out others as well. Cheers Karsten -----Original Message----- From: Seth G [mailto:sethg at geographika.co.uk] Sent: Tuesday, February 07, 2017 12:18 To: karsten at terragis.net; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Will Mapserver work with newer Microsoft SQL Server Spatial Databases Hi Karsten, We were running a production system with MS SQL 2012 for 4 years without any problems. We briefly moved to SQL 2014, and are now on SQL 2016 again without issues. Tamas Szekeres does a great job of maintaining and improving the MS SQL driver - https://github.com/mapserver/mapserver/blob/master/mapmssql2008.c The OGR driver also works, but I found it to be much less flexible in terms of complex SQL and adding filters. Regards, Seth On 07/02/2017 21:12, karsten wrote: > > Dear All, > > I am trying to find out if MapServer (and/or OGR) will work with > spatial databases newer than Microsoft SQL Server 2008. I know that > the drivers work with that older version but did not want to promise > to a client that it would. At this point I am not able to test it > directly because I do not have access to a Microsoft SQL Server 2012 or newer to verify. > Does anyone have experience and succeed with this or anyone who can > share their experiences ? > > Cheers > Karsten > > www.terragis.net > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From Ahmed.Tolba at schiebel.net Wed Feb 8 02:12:22 2017 From: Ahmed.Tolba at schiebel.net (Ahmed Tolba) Date: Wed, 8 Feb 2017 10:12:22 +0000 Subject: [mapserver-users] setting bounding box WG84 Message-ID: Hi All, How ?would I set the WGS84 Bounding box in the server ? tows:poiserver poi server database urn:ogc:def:crs:EPSG::4326 0 0 0 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Feb 8 02:25:35 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 8 Feb 2017 10:25:35 +0000 Subject: [mapserver-users] setting bounding box WG84 Message-ID: <667f561155f24d6e95234c080f4d9bf0@C119S212VM022.msvyvi.vaha.local> Hi, You are not supposed to set it manually. TinyOWS is making a database query for finding the extents. You can configure it to use the faster method http://postgis.net/docs/manual-2.0/ST_Estimated_Extent.html if you set it in the config file http://mapserver.org/tinyows/configfile.html. In your case I suppose that the table behind tows:poiserver is empty. It might be good to use titles like ?[TinyOWS] Setting bounding box WG84? because all Mapserver users are not TinyOWS users. -Jukka Rahkonen- Ahmed Tolba wrote: [mapserver-users] setting bounding box WG84 Hi All, How ?would I set the WGS84 Bounding box in the server ? tows:poiserver poi server database urn:ogc:def:crs:EPSG::4326 0 0 0 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Feb 8 14:22:29 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 8 Feb 2017 22:22:29 +0000 Subject: [mapserver-users] Embed map (detail map) in mapserver output? Message-ID: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> All, Anyone know of a way (trick) to embed a map into a regular map query in Mapserver? Something like embedding a legend, but I actaully want to embed another higher resolution detail map. Ideally I would be able to use any of the layers in the main map for the detail as well. Hmm, I wonder if I can make what I want in a LEGEND block?? If an image in a LEGEND block could be another call to mapserver in place of a static image . . . Just a wishlist thing right now. I can stack things in another piece of software currently. bobb "I think there is a world market for maybe five computers." - Thomas Watson (1874-1956), Chairman of IBM, 1943 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 8 14:39:38 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 8 Feb 2017 17:39:38 -0500 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> Message-ID: On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: > All, > > Anyone know of a way (trick) to embed a map into a regular map query in > Mapserver? Something like embedding a legend, but I actaully want to > embed another higher resolution detail map. Ideally I would be able to > use any of the layers in the main map for the detail as well. > > Hmm, I wonder if I can make what I want in a LEGEND block?? If an image > in a LEGEND block could be another call to mapserver in place of a > static image . . . Just a wishlist thing right now. I can stack > things in another piece of software currently. Bob, This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this? I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bob.basques at ci.stpaul.mn.us Wed Feb 8 14:52:36 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 8 Feb 2017 22:52:36 +0000 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> Message-ID: <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> Hi Steve, It?s for compositing for printing. I want to set up some page templates for a map book where any of the pages can be run off when an update occurs in a particular location in the global map, vs printing the whole book. On a more detailed level, this is starting to get into a print tool, which I?ve been pondering building for online use. The idea would be to mix and match (stack) different print features on a canvas for eventual printing. My need right now is for something as an API, but I can see this easily morphing into a user interface. I actually already do some of those other items like ,collars and grids with MapServer, they just use different mapfiles for each. Just trying to figure out the best way to pull it all together. I think I?ll just hardcode something together right now, and see where I can insert URLS and resource links into the hardcoded pipeline after the fact. I have a Fire response map that I?m working on right now as a test. It?s big too, 42?x60?, all in one shot right out of MapServer. Works really nicely for the basemap already. There are a bunch of detail reference maps needed though, which is what I?m working on now. I was pondering things from the point of view that these detail maps are really just another type of Legend (or could be thought of that way) bobb On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge > wrote: On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: All, Anyone know of a way (trick) to embed a map into a regular map query in Mapserver? Something like embedding a legend, but I actaully want to embed another higher resolution detail map. Ideally I would be able to use any of the layers in the main map for the detail as well. Hmm, I wonder if I can make what I want in a LEGEND block?? If an image in a LEGEND block could be another call to mapserver in place of a static image . . . Just a wishlist thing right now. I can stack things in another piece of software currently. Bob, This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this? I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "I think there is a world market for maybe five computers." - Thomas Watson (1874-1956), Chairman of IBM, 1943 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 8 16:15:51 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 8 Feb 2017 19:15:51 -0500 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> Message-ID: <2fb35689-5b61-c480-bc32-68869d94ac66@swoodbridge.com> ImageMagick, and I'm sure others do also, have the ability to composite multiple images in one. Not to mention tools to scale, warp, filter, rotate, annotate, etc any of the image components. I would think that if you can up with a xml definition for your composited page, that it would be really straight forward to read the definition (aka template) can then composite and annotate page. If you did it in perl or Python, you could make calls to mapserver or WMS services for pulling in the pieces. I think the hard part might be coming up with the template definitions but you care already doing that in your hard coding the pipeline. Once you have the components defined then is just a mater of collection the components and compositing the end result. -Steve W On 2/8/2017 5:52 PM, Basques, Bob (CI-StPaul) wrote: > Hi Steve, > > It?s for compositing for printing. I want to set up some page templates > for a map book where any of the pages can be run off when an update > occurs in a particular location in the global map, vs printing the whole > book. > > On a more detailed level, this is starting to get into a print tool, > which I?ve been pondering building for online use. The idea would be to > mix and match (stack) different print features on a canvas for eventual > printing. My need right now is for something as an API, but I can see > this easily morphing into a user interface. > > I actually already do some of those other items like ,collars and grids > with MapServer, they just use different mapfiles for each. Just trying > to figure out the best way to pull it all together. I think I?ll just > hardcode something together right now, and see where I can insert URLS > and resource links into the hardcoded pipeline after the fact. I have a > Fire response map that I?m working on right now as a test. It?s big > too, 42?x60?, all in one shot right out of MapServer. Works really > nicely for the basemap already. > > There are a bunch of detail reference maps needed though, which is what > I?m working on now. > > I was pondering things from the point of view that these detail maps are > really just another type of Legend (or could be thought of that way) > > bobb > > >> On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge >> > wrote: >> >> On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: >>> All, >>> >>> Anyone know of a way (trick) to embed a map into a regular map query in >>> Mapserver? Something like embedding a legend, but I actaully want to >>> embed another higher resolution detail map. Ideally I would be able to >>> use any of the layers in the main map for the detail as well. >>> >>> Hmm, I wonder if I can make what I want in a LEGEND block?? If an image >>> in a LEGEND block could be another call to mapserver in place of a >>> static image . . . Just a wishlist thing right now. I can stack >>> things in another piece of software currently. >> >> Bob, >> >> This sounds like something you might find in a composition tool. There >> might be a way to make (trick) mapserver do this, like allowing a >> image symbol to be create using a url rather than a file, then placing >> that on the map, but mapserver has a great focus on high performance >> map image rendering. What is your use case for this? >> >> I think it might be better to think about this problem in terms of >> creating a composition tool oriented toward maps that would allow >> collars, legends, detailed maps, annotations, grids, etc and be able >> to output PDFs or images, or formats compatible with document systems >> or whatever. >> >> -Steve W >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > "I think there is a world market for maybe five computers." > - Thomas Watson (1874-1956), Chairman of IBM, 1943 > > > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Robert.Sanson at asurequality.com Wed Feb 8 16:12:06 2017 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 9 Feb 2017 00:12:06 +0000 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> Message-ID: I currently do something similar using a Python script to make the different WMS calls and insert the returned maps into a reportlab document. The script produces a PDF which can be saved to disk or printed directly using Ghostscript. Regards, Robert Sanson From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, 9 February 2017 11:53 a.m. To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Embed map (detail map) in mapserver output? Hi Steve, It?s for compositing for printing. I want to set up some page templates for a map book where any of the pages can be run off when an update occurs in a particular location in the global map, vs printing the whole book. On a more detailed level, this is starting to get into a print tool, which I?ve been pondering building for online use. The idea would be to mix and match (stack) different print features on a canvas for eventual printing. My need right now is for something as an API, but I can see this easily morphing into a user interface. I actually already do some of those other items like ,collars and grids with MapServer, they just use different mapfiles for each. Just trying to figure out the best way to pull it all together. I think I?ll just hardcode something together right now, and see where I can insert URLS and resource links into the hardcoded pipeline after the fact. I have a Fire response map that I?m working on right now as a test. It?s big too, 42?x60?, all in one shot right out of MapServer. Works really nicely for the basemap already. There are a bunch of detail reference maps needed though, which is what I?m working on now. I was pondering things from the point of view that these detail maps are really just another type of Legend (or could be thought of that way) bobb On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge > wrote: On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: All, Anyone know of a way (trick) to embed a map into a regular map query in Mapserver? Something like embedding a legend, but I actaully want to embed another higher resolution detail map. Ideally I would be able to use any of the layers in the main map for the detail as well. Hmm, I wonder if I can make what I want in a LEGEND block?? If an image in a LEGEND block could be another call to mapserver in place of a static image . . . Just a wishlist thing right now. I can stack things in another piece of software currently. Bob, This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this? I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "I think there is a world market for maybe five computers." - Thomas Watson (1874-1956), Chairman of IBM, 1943 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith.erdc at gmail.com Wed Feb 8 19:56:49 2017 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Wed, 8 Feb 2017 22:56:49 -0500 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> Message-ID: Bob, I use the MapFish print engine for this. It's a nice templating language, PDF generation, etc. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Feb 8, 2017, at 5:52 PM, Basques, Bob (CI-StPaul) wrote: > > Hi Steve, > > It?s for compositing for printing. I want to set up some page templates for a map book where any of the pages can be run off when an update occurs in a particular location in the global map, vs printing the whole book. > > On a more detailed level, this is starting to get into a print tool, which I?ve been pondering building for online use. The idea would be to mix and match (stack) different print features on a canvas for eventual printing. My need right now is for something as an API, but I can see this easily morphing into a user interface. > > I actually already do some of those other items like ,collars and grids with MapServer, they just use different mapfiles for each. Just trying to figure out the best way to pull it all together. I think I?ll just hardcode something together right now, and see where I can insert URLS and resource links into the hardcoded pipeline after the fact. I have a Fire response map that I?m working on right now as a test. It?s big too, 42?x60?, all in one shot right out of MapServer. Works really nicely for the basemap already. > > There are a bunch of detail reference maps needed though, which is what I?m working on now. > > I was pondering things from the point of view that these detail maps are really just another type of Legend (or could be thought of that way) > > bobb > > >> On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge wrote: >> >>> On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: >>> All, >>> >>> Anyone know of a way (trick) to embed a map into a regular map query in >>> Mapserver? Something like embedding a legend, but I actaully want to >>> embed another higher resolution detail map. Ideally I would be able to >>> use any of the layers in the main map for the detail as well. >>> >>> Hmm, I wonder if I can make what I want in a LEGEND block?? If an image >>> in a LEGEND block could be another call to mapserver in place of a >>> static image . . . Just a wishlist thing right now. I can stack >>> things in another piece of software currently. >> >> Bob, >> >> This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this? >> >> I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever. >> >> -Steve W >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > "I think there is a world market for maybe five computers." > - Thomas Watson (1874-1956), Chairman of IBM, 1943 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith.erdc at gmail.com Thu Feb 9 06:48:13 2017 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Thu, 09 Feb 2017 09:48:13 -0500 Subject: [mapserver-users] WCS layer parameters from data Message-ID: Is there a way to set the WCS layer level parameters, such as rangeset_name, from a data column? Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Feb 9 07:09:21 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 9 Feb 2017 15:09:21 +0000 Subject: [mapserver-users] Embed map (detail map) in mapserver output? In-Reply-To: References: <1B229905-95E7-4D00-AE52-2FFD9BA8EE79@ci.stpaul.mn.us> <1037FDB0-AED3-42A1-9844-DAD7A7DEF362@ci.stpaul.mn.us> Message-ID: <0EFBD702-DB26-429E-A6B3-D1D2EBB3E6A8@ci.stpaul.mn.us> Micheal, MapFish seems like it?s focused on Server based approach. My first thought at a user canvas was a a client side item, but maybe it would need to be a little of both in the end. I think i?ll try some ideas out and see where they lead. bobb On Feb 8, 2017, at 9:56 PM, Michael Smith > wrote: Bob, I use the MapFish print engine for this. It's a nice templating language, PDF generation, etc. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On Feb 8, 2017, at 5:52 PM, Basques, Bob (CI-StPaul) > wrote: Hi Steve, It?s for compositing for printing. I want to set up some page templates for a map book where any of the pages can be run off when an update occurs in a particular location in the global map, vs printing the whole book. On a more detailed level, this is starting to get into a print tool, which I?ve been pondering building for online use. The idea would be to mix and match (stack) different print features on a canvas for eventual printing. My need right now is for something as an API, but I can see this easily morphing into a user interface. I actually already do some of those other items like ,collars and grids with MapServer, they just use different mapfiles for each. Just trying to figure out the best way to pull it all together. I think I?ll just hardcode something together right now, and see where I can insert URLS and resource links into the hardcoded pipeline after the fact. I have a Fire response map that I?m working on right now as a test. It?s big too, 42?x60?, all in one shot right out of MapServer. Works really nicely for the basemap already. There are a bunch of detail reference maps needed though, which is what I?m working on now. I was pondering things from the point of view that these detail maps are really just another type of Legend (or could be thought of that way) bobb On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge > wrote: On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote: All, Anyone know of a way (trick) to embed a map into a regular map query in Mapserver? Something like embedding a legend, but I actaully want to embed another higher resolution detail map. Ideally I would be able to use any of the layers in the main map for the detail as well. Hmm, I wonder if I can make what I want in a LEGEND block?? If an image in a LEGEND block could be another call to mapserver in place of a static image . . . Just a wishlist thing right now. I can stack things in another piece of software currently. Bob, This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this? I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "I think there is a world market for maybe five computers." - Thomas Watson (1874-1956), Chairman of IBM, 1943 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "We didn't lose the game; we just ran out of time." - Vince Lombardi -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschweitzer at usgs.gov Thu Feb 9 14:13:23 2017 From: pschweitzer at usgs.gov (Schweitzer, Peter) Date: Thu, 9 Feb 2017 17:13:23 -0500 Subject: [mapserver-users] mapcache WMTS: can I include contact information? Message-ID: I don't see documentation suggesting that I could include contact information in the mapcache.xml file so that it is included in, for example, my WMTS getCapabilities response. Is that possible? Thanks! Peter -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweitzer at usgs.gov http://geology.usgs.gov/peter/ https://orcid.org/0000-0002-9532-6681 From thomas.bonfort at gmail.com Fri Feb 10 00:58:31 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 10 Feb 2017 08:58:31 +0000 Subject: [mapserver-users] mapcache WMTS: can I include contact information? In-Reply-To: References: Message-ID: No, but you can easily hack lib/service_wmts.c to support that (look at what's done for ows:Abstract for guidelines). -- thomas On Thu, Feb 9, 2017 at 11:14 PM Schweitzer, Peter wrote: > I don't see documentation suggesting that I could include contact > information in the mapcache.xml file so that it is included in, for > example, my WMTS getCapabilities response. Is that possible? > > Thanks! > > Peter > -- > Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) > (703) 648-6533 email: pschweitzer at usgs.gov > http://geology.usgs.gov/peter/ > https://orcid.org/0000-0002-9532-6681 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 13 12:17:45 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 13 Feb 2017 15:17:45 -0500 Subject: [mapserver-users] Cant get polygon labels to show up Message-ID: I have a tileindex for a bunch of DOQQs and I would like to create a layer the displays there filenames and bboxes. I'm using the tileindex shapefile as my data source like with the layer definition below. The BBox polygon lines are showing up but I must be doing something stupid because I can not get the labels to display. And there are no errors in the log file. Any ideas? LAYER NAME "doqq_bbox" STATUS ON TYPE POLYGON DATA "ca_naip_2014_quads/doqq-tileindex" PROJECTION "init=epsg:4326" END LABELITEM "LOCATION" PROCESSING "LABEL_NO_CLIP=ON" CLASS STYLE OUTLINECOLOR "#ff0000" WIDTH 0.5 END LABEL FONT "arial" TYPE TRUETYPE SIZE 14 WRAP '/' ALIGN CENTER POSITION CC COLOR "#880000" OUTLINECOLOR "#ffffff" OUTLINEWIDTH 3 PARTIALS TRUE FORCE TRUE END END END --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From woodbri at swoodbridge.com Mon Feb 13 19:32:47 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 13 Feb 2017 22:32:47 -0500 Subject: [mapserver-users] Cant get polygon labels to show up In-Reply-To: References: Message-ID: <936333f5-9876-debe-ac09-ba8ab3483195@swoodbridge.com> On 2/13/2017 3:19 PM, Basques, Bob (CI-StPaul) wrote: > try lowercase ?location? for the LABELITEM . . . Yeah, I tried that also. The tileindex file was created by gdaltindex and a hexdump on the .dbf does show it is lowercase. This is running on mapserver 7.0.4. I have tried everything I can think of at least twice but can't get it to label or throw any error message. I'm wondering if something in mapserver 7.0 changed in regards to matching shapefile DBF columns. At any rate I would expect some kind of error if there is a problem. I can provide the shapefile if someone is interested in checking it out. This one has me totally stumped. -Steve W > bobb > > >> On Feb 13, 2017, at 2:17 PM, Stephen Woodbridge >> > wrote: >> >> I have a tileindex for a bunch of DOQQs and I would like to create a >> layer the displays there filenames and bboxes. I'm using the tileindex >> shapefile as my data source like with the layer definition below. >> >> The BBox polygon lines are showing up but I must be doing something >> stupid because I can not get the labels to display. And there are no >> errors in the log file. >> >> Any ideas? >> >> LAYER >> NAME "doqq_bbox" >> STATUS ON >> TYPE POLYGON >> DATA "ca_naip_2014_quads/doqq-tileindex" >> PROJECTION "init=epsg:4326" END >> LABELITEM "LOCATION" >> PROCESSING "LABEL_NO_CLIP=ON" >> CLASS >> STYLE >> OUTLINECOLOR "#ff0000" >> WIDTH 0.5 >> END >> LABEL >> FONT "arial" >> TYPE TRUETYPE >> SIZE 14 >> WRAP '/' >> ALIGN CENTER >> POSITION CC >> COLOR "#880000" >> OUTLINECOLOR "#ffffff" >> OUTLINEWIDTH 3 >> PARTIALS TRUE >> FORCE TRUE >> END >> END >> END >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ?There is nothing quite so useless as doing with great efficiency > something that should not be done at all.? > - Peter Drucker > > > > > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From woodbri at swoodbridge.com Mon Feb 13 19:46:22 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 13 Feb 2017 22:46:22 -0500 Subject: [mapserver-users] Cant get polygon labels to show up In-Reply-To: <936333f5-9876-debe-ac09-ba8ab3483195@swoodbridge.com> References: <936333f5-9876-debe-ac09-ba8ab3483195@swoodbridge.com> Message-ID: <4dc2930e-5636-8207-7e75-810e7f4c2c86@swoodbridge.com> As a Followup, I used a hex editor to change the column name to uppercase and that did not change anything so its not a case probelm as far as I can tell. -SteveW On 2/13/2017 10:32 PM, Stephen Woodbridge wrote: > On 2/13/2017 3:19 PM, Basques, Bob (CI-StPaul) wrote: >> try lowercase ?location? for the LABELITEM . . . > > Yeah, I tried that also. The tileindex file was created by gdaltindex > and a hexdump on the .dbf does show it is lowercase. This is running on > mapserver 7.0.4. > > I have tried everything I can think of at least twice but can't get it > to label or throw any error message. > > I'm wondering if something in mapserver 7.0 changed in regards to > matching shapefile DBF columns. At any rate I would expect some kind of > error if there is a problem. > > I can provide the shapefile if someone is interested in checking it out. > This one has me totally stumped. > > -Steve W > >> bobb >> >> >>> On Feb 13, 2017, at 2:17 PM, Stephen Woodbridge >>> > wrote: >>> >>> I have a tileindex for a bunch of DOQQs and I would like to create a >>> layer the displays there filenames and bboxes. I'm using the tileindex >>> shapefile as my data source like with the layer definition below. >>> >>> The BBox polygon lines are showing up but I must be doing something >>> stupid because I can not get the labels to display. And there are no >>> errors in the log file. >>> >>> Any ideas? >>> >>> LAYER >>> NAME "doqq_bbox" >>> STATUS ON >>> TYPE POLYGON >>> DATA "ca_naip_2014_quads/doqq-tileindex" >>> PROJECTION "init=epsg:4326" END >>> LABELITEM "LOCATION" >>> PROCESSING "LABEL_NO_CLIP=ON" >>> CLASS >>> STYLE >>> OUTLINECOLOR "#ff0000" >>> WIDTH 0.5 >>> END >>> LABEL >>> FONT "arial" >>> TYPE TRUETYPE >>> SIZE 14 >>> WRAP '/' >>> ALIGN CENTER >>> POSITION CC >>> COLOR "#880000" >>> OUTLINECOLOR "#ffffff" >>> OUTLINEWIDTH 3 >>> PARTIALS TRUE >>> FORCE TRUE >>> END >>> END >>> END >>> >>> --- >>> This email has been checked for viruses by Avast antivirus software. >>> https://www.avast.com/antivirus >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> ?There is nothing quite so useless as doing with great efficiency >> something that should not be done at all.? >> - Peter Drucker >> >> >> >> >> > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bfraser at geoanalytic.com Mon Feb 13 20:15:26 2017 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2017 21:15:26 -0700 Subject: [mapserver-users] Cant get polygon labels to show up In-Reply-To: <4dc2930e-5636-8207-7e75-810e7f4c2c86@swoodbridge.com> References: <936333f5-9876-debe-ac09-ba8ab3483195@swoodbridge.com> <4dc2930e-5636-8207-7e75-810e7f4c2c86@swoodbridge.com> Message-ID: <015e4193-fe4b-03bc-72be-676440c4913a@geoanalytic.com> Try using CLASS TEXT '[LOCATION]' LABEL instead of LABELITEM? Best Regards, Brent Fraser On 2/13/2017 8:46 PM, Stephen Woodbridge wrote: > As a Followup, I used a hex editor to change the column name to > uppercase and that did not change anything so its not a case probelm > as far as I can tell. > > -SteveW > > On 2/13/2017 10:32 PM, Stephen Woodbridge wrote: >> On 2/13/2017 3:19 PM, Basques, Bob (CI-StPaul) wrote: >>> try lowercase ?location? for the LABELITEM . . . >> >> Yeah, I tried that also. The tileindex file was created by gdaltindex >> and a hexdump on the .dbf does show it is lowercase. This is running on >> mapserver 7.0.4. >> >> I have tried everything I can think of at least twice but can't get it >> to label or throw any error message. >> >> I'm wondering if something in mapserver 7.0 changed in regards to >> matching shapefile DBF columns. At any rate I would expect some kind of >> error if there is a problem. >> >> I can provide the shapefile if someone is interested in checking it out. >> This one has me totally stumped. >> >> -Steve W >> >>> bobb >>> >>> >>>> On Feb 13, 2017, at 2:17 PM, Stephen Woodbridge >>>> > wrote: >>>> >>>> I have a tileindex for a bunch of DOQQs and I would like to create a >>>> layer the displays there filenames and bboxes. I'm using the tileindex >>>> shapefile as my data source like with the layer definition below. >>>> >>>> The BBox polygon lines are showing up but I must be doing something >>>> stupid because I can not get the labels to display. And there are no >>>> errors in the log file. >>>> >>>> Any ideas? >>>> >>>> LAYER >>>> NAME "doqq_bbox" >>>> STATUS ON >>>> TYPE POLYGON >>>> DATA "ca_naip_2014_quads/doqq-tileindex" >>>> PROJECTION "init=epsg:4326" END >>>> LABELITEM "LOCATION" >>>> PROCESSING "LABEL_NO_CLIP=ON" >>>> CLASS >>>> STYLE >>>> OUTLINECOLOR "#ff0000" >>>> WIDTH 0.5 >>>> END >>>> LABEL >>>> FONT "arial" >>>> TYPE TRUETYPE >>>> SIZE 14 >>>> WRAP '/' >>>> ALIGN CENTER >>>> POSITION CC >>>> COLOR "#880000" >>>> OUTLINECOLOR "#ffffff" >>>> OUTLINEWIDTH 3 >>>> PARTIALS TRUE >>>> FORCE TRUE >>>> END >>>> END >>>> END >>>> >>>> --- >>>> This email has been checked for viruses by Avast antivirus software. >>>> https://www.avast.com/antivirus >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> ?There is nothing quite so useless as doing with great efficiency >>> something that should not be done at all.? >>> - Peter Drucker >>> >>> >>> >>> >>> >> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at maanmittauslaitos.fi Tue Feb 14 04:08:44 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 14 Feb 2017 12:08:44 +0000 Subject: [mapserver-users] Cant get polygon labels to show up Message-ID: Hi, I have located the problem into line WRAP '/' Perhaps slash requires escaping or something. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Brent Fraser L?hetetty: 14. helmikuuta 2017 6:15 Vastaanottaja: Stephen Woodbridge ; mapserver-users Aihe: Re: [mapserver-users] Cant get polygon labels to show up Try using CLASS TEXT '[LOCATION]' LABEL instead of LABELITEM? Best Regards, Brent Fraser On 2/13/2017 8:46 PM, Stephen Woodbridge wrote: > As a Followup, I used a hex editor to change the column name to > uppercase and that did not change anything so its not a case probelm > as far as I can tell. > > -SteveW > > On 2/13/2017 10:32 PM, Stephen Woodbridge wrote: >> On 2/13/2017 3:19 PM, Basques, Bob (CI-StPaul) wrote: >>> try lowercase ?location? for the LABELITEM . . . >> >> Yeah, I tried that also. The tileindex file was created by gdaltindex >> and a hexdump on the .dbf does show it is lowercase. This is running >> on mapserver 7.0.4. >> >> I have tried everything I can think of at least twice but can't get >> it to label or throw any error message. >> >> I'm wondering if something in mapserver 7.0 changed in regards to >> matching shapefile DBF columns. At any rate I would expect some kind >> of error if there is a problem. >> >> I can provide the shapefile if someone is interested in checking it out. >> This one has me totally stumped. >> >> -Steve W >> >>> bobb >>> >>> >>>> On Feb 13, 2017, at 2:17 PM, Stephen Woodbridge >>>> > wrote: >>>> >>>> I have a tileindex for a bunch of DOQQs and I would like to create >>>> a layer the displays there filenames and bboxes. I'm using the >>>> tileindex shapefile as my data source like with the layer definition below. >>>> >>>> The BBox polygon lines are showing up but I must be doing something >>>> stupid because I can not get the labels to display. And there are >>>> no errors in the log file. >>>> >>>> Any ideas? >>>> >>>> LAYER >>>> NAME "doqq_bbox" >>>> STATUS ON >>>> TYPE POLYGON >>>> DATA "ca_naip_2014_quads/doqq-tileindex" >>>> PROJECTION "init=epsg:4326" END >>>> LABELITEM "LOCATION" >>>> PROCESSING "LABEL_NO_CLIP=ON" >>>> CLASS >>>> STYLE >>>> OUTLINECOLOR "#ff0000" >>>> WIDTH 0.5 >>>> END >>>> LABEL >>>> FONT "arial" >>>> TYPE TRUETYPE >>>> SIZE 14 >>>> WRAP '/' >>>> ALIGN CENTER >>>> POSITION CC >>>> COLOR "#880000" >>>> OUTLINECOLOR "#ffffff" >>>> OUTLINEWIDTH 3 >>>> PARTIALS TRUE >>>> FORCE TRUE >>>> END >>>> END >>>> END >>>> >>>> --- >>>> This email has been checked for viruses by Avast antivirus software. >>>> https://www.avast.com/antivirus >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> ?There is nothing quite so useless as doing with great efficiency >>> something that should not be done at all.? >>> - Peter Drucker >>> >>> >>> >>> >>> >> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Feb 14 08:09:41 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 14 Feb 2017 11:09:41 -0500 Subject: [mapserver-users] Cant get polygon labels to show up In-Reply-To: References: Message-ID: Jukka, Yes, this is the problem. I suspect that it is interpreting the '/' as the start of a regex or something. I could not find a way to escape it like '\/' or "\/". I think this is a bug, I'll open a ticket for it. I have worked around the problem by using OGR to add a column and populate it with just the filename and not the long path. -SteveW On 2/14/2017 7:08 AM, Rahkonen Jukka (MML) wrote: > Hi, > > I have located the problem into line > WRAP '/' > > Perhaps slash requires escaping or something. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Brent Fraser > L?hetetty: 14. helmikuuta 2017 6:15 > Vastaanottaja: Stephen Woodbridge ; mapserver-users > Aihe: Re: [mapserver-users] Cant get polygon labels to show up > > Try using > > CLASS > TEXT '[LOCATION]' > LABEL > > instead of LABELITEM? > > Best Regards, > Brent Fraser > > On 2/13/2017 8:46 PM, Stephen Woodbridge wrote: >> As a Followup, I used a hex editor to change the column name to >> uppercase and that did not change anything so its not a case probelm >> as far as I can tell. >> >> -SteveW >> >> On 2/13/2017 10:32 PM, Stephen Woodbridge wrote: >>> On 2/13/2017 3:19 PM, Basques, Bob (CI-StPaul) wrote: >>>> try lowercase ?location? for the LABELITEM . . . >>> >>> Yeah, I tried that also. The tileindex file was created by gdaltindex >>> and a hexdump on the .dbf does show it is lowercase. This is running >>> on mapserver 7.0.4. >>> >>> I have tried everything I can think of at least twice but can't get >>> it to label or throw any error message. >>> >>> I'm wondering if something in mapserver 7.0 changed in regards to >>> matching shapefile DBF columns. At any rate I would expect some kind >>> of error if there is a problem. >>> >>> I can provide the shapefile if someone is interested in checking it out. >>> This one has me totally stumped. >>> >>> -Steve W >>> >>>> bobb >>>> >>>> >>>>> On Feb 13, 2017, at 2:17 PM, Stephen Woodbridge >>>>> > wrote: >>>>> >>>>> I have a tileindex for a bunch of DOQQs and I would like to create >>>>> a layer the displays there filenames and bboxes. I'm using the >>>>> tileindex shapefile as my data source like with the layer definition below. >>>>> >>>>> The BBox polygon lines are showing up but I must be doing something >>>>> stupid because I can not get the labels to display. And there are >>>>> no errors in the log file. >>>>> >>>>> Any ideas? >>>>> >>>>> LAYER >>>>> NAME "doqq_bbox" >>>>> STATUS ON >>>>> TYPE POLYGON >>>>> DATA "ca_naip_2014_quads/doqq-tileindex" >>>>> PROJECTION "init=epsg:4326" END >>>>> LABELITEM "LOCATION" >>>>> PROCESSING "LABEL_NO_CLIP=ON" >>>>> CLASS >>>>> STYLE >>>>> OUTLINECOLOR "#ff0000" >>>>> WIDTH 0.5 >>>>> END >>>>> LABEL >>>>> FONT "arial" >>>>> TYPE TRUETYPE >>>>> SIZE 14 >>>>> WRAP '/' >>>>> ALIGN CENTER >>>>> POSITION CC >>>>> COLOR "#880000" >>>>> OUTLINECOLOR "#ffffff" >>>>> OUTLINEWIDTH 3 >>>>> PARTIALS TRUE >>>>> FORCE TRUE >>>>> END >>>>> END >>>>> END >>>>> >>>>> --- >>>>> This email has been checked for viruses by Avast antivirus software. >>>>> https://www.avast.com/antivirus >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> ?There is nothing quite so useless as doing with great efficiency >>>> something that should not be done at all.? >>>> - Peter Drucker >>>> >>>> >>>> >>>> >>>> >>> >> >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From dave at phased.co.uk Wed Feb 15 01:09:42 2017 From: dave at phased.co.uk (Dave Barter) Date: Wed, 15 Feb 2017 09:09:42 +0000 Subject: [mapserver-users] Mapcache to generate TMS? Message-ID: <24E7D6B1-4414-4100-8D5A-63591FA27658@phased.co.uk> This is probably a daft question, but can mapcache be used to generate a static tile set for use by a TMS service? I was thinking this would be achieved using the tile seeder at zoom levels 0 - 20 and then pointing the TMS at the cache directory From woodbri at swoodbridge.com Wed Feb 15 05:49:44 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Feb 2017 08:49:44 -0500 Subject: [mapserver-users] Mapcache to generate TMS? In-Reply-To: <24E7D6B1-4414-4100-8D5A-63591FA27658@phased.co.uk> References: <24E7D6B1-4414-4100-8D5A-63591FA27658@phased.co.uk> Message-ID: <1e4e776f-4407-bdab-fc0b-182ec5cda12e@swoodbridge.com> On 2/15/2017 4:09 AM, Dave Barter wrote: > This is probably a daft question, but can mapcache be used to > generate a static tile set for use by a TMS service? > > I was thinking this would be achieved using the tile seeder at zoom > levels 0 - 20 and then pointing the TMS at the cache directory Yes, at the directive, you can set up a template for how you cache directory structure and filenames are constructed. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From matthew.f.cechini at nasa.gov Wed Feb 15 07:07:03 2017 From: matthew.f.cechini at nasa.gov (Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]) Date: Wed, 15 Feb 2017 15:07:03 +0000 Subject: [mapserver-users] "Custom" GeoTIFF EPSG values not working Message-ID: Once upon a time we were able to request GeoTIFF imagery through mapserver and have gdalinfo report the following as the coordinate system: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Polar_Stereographic"], PARAMETER["latitude_of_origin",70], PARAMETER["central_meridian",-45], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] We?ve since changed to a new environment and version of mapserver (7.0.1 on Centos), and cannot get back to this capability. We now see this, which is the CS for the source imagery: LOCAL_CS["WGS 84 / NSIDC Sea Ice Polar Stereographic North", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], AUTHORITY["EPSG","3413"], UNIT["metre",1]] I?ve tried to override it by adding the following PROJECTION definition at the top of our mapfile as well as in the relevant LAYER, but that doesn?t seem to do the trick. PROJECTION "proj=stere" "lat_0=90" "lat_ts=70" "lon_0=-45" "k=1" "x_0=0" "y_0=0" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END Thoughts? Thanks, Matt ................................................................. Matthew Cechini Contractor, Science Systems and Applications, Inc. NASA GIBS Systems/Software Engineer 410.205.6272 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Feb 15 14:36:35 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 15 Feb 2017 18:36:35 -0400 Subject: [mapserver-users] MS4W version 3.2.1 available In-Reply-To: <914d107d-b192-bbe7-bf39-0344a75466aa@gatewaygeomatics.com> References: <914d107d-b192-bbe7-bf39-0344a75466aa@gatewaygeomatics.com> Message-ID: <1b93ecae-baff-d94f-eafd-c6e6b12d77bf@gatewaygeomatics.com> Hello everyone, MS4W version 3.2.1 is now available at http://www.ms4w.com This is mostly a bug fix release, but users will be very interested that this includes SVG symbol support for MapServer. Here is the list of changes: - fixed SVG symbols display in MapServer (trac ticket 3) - modified setup.exe installer to check for VC Redistributable, and install if necessary - rebuilt ApacheMonitor.exe (trac ticket 106) - fixed MapCache loading issue, by using branch-1-4 (trac ticket 105) - fixed spelling mistake in README_INSTALL.txt (trac ticket 103) Please note that (if you are using the .zip) your server must have this C++ Redistributable installed on it beforehand: (use the "x86" one https://www.microsoft.com/en-ca/download/details.aspx?id=30679). You can also find that installer in /ms4w/tmp/ Please don't be afraid to also provide feedback and requests through the MS4W tracker (so the comments and requests are not lost or forgotten): http://www.ms4w.com/trac/ Thank you all for sharing your spatial information with MS4W. And happy MapServing! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From richard.greenwood at gmail.com Wed Feb 15 18:24:26 2017 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 15 Feb 2017 19:24:26 -0700 Subject: [mapserver-users] "Custom" GeoTIFF EPSG values not working In-Reply-To: References: Message-ID: You should probably first get it sorted with gdalinfo before messing with mapserv. So you're doing gdalinfo on exactly the same file on your old and new systems and getting those results? What version of gdal on the two? Use "gdalinfo --version" and what type of file is it? Does it have an accompanying world file? If so, what happens if you hide the world file? Regarding your inline projection definitions in your map file, they are canceling each other out. The definition at the "top" of your file is the projection that your map fill be served out in. The definition within a LAYER block tells mapserv what projection that layer is in. So if the layer is different than the map, then mapserv will transform it, but if they are the same then mapserv does no transformation. On Wed, Feb 15, 2017 at 8:07 AM, Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] wrote: > Once upon a time we were able to request GeoTIFF imagery through mapserver > and have gdalinfo report the following as the coordinate system: > > PROJCS["unnamed", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]], > PROJECTION["Polar_Stereographic"], > PARAMETER["latitude_of_origin",70], > PARAMETER["central_meridian",-45], > PARAMETER["scale_factor",1], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]]] > > > We?ve since changed to a new environment and version of mapserver (7.0.1 > on Centos), and cannot get back to this capability. We now see this, which > is the CS for the source imagery: > > LOCAL_CS["WGS 84 / NSIDC Sea Ice Polar Stereographic North", > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.257223563, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]], > > AUTHORITY["EPSG","3413"], > > UNIT["metre",1]] > > > I?ve tried to override it by adding the following PROJECTION definition at > the top of our mapfile as well as in the relevant LAYER, but that doesn?t > seem to do the trick. > > PROJECTION > > "proj=stere" > > "lat_0=90" > > "lat_ts=70" > > "lon_0=-45" > > "k=1" > > "x_0=0" > > "y_0=0" > > "ellps=WGS84" > > "datum=WGS84" > > "units=m" > > "no_defs" > > END > > > Thoughts? > > Thanks, > Matt > ................................................................. > Matthew Cechini > Contractor, Science Systems and Applications, Inc. > NASA GIBS Systems/Software Engineer > 410.205.6272 <(410)%20205-6272> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Thu Feb 16 07:10:43 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 16 Feb 2017 16:10:43 +0100 Subject: [mapserver-users] How format the time field in a wms time Message-ID: Hi, I'm try-ing to set a wms time service. I notice the samples reported in documention are always using the "-" char to separate year,month and day. So a date could be express as: 2017-02-16 Is possible to use the "/" as separator between year,month and day ? example: 2017/02/16 I try but with no success, but hope Im missing some setting. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From richard.greenwood at gmail.com Thu Feb 16 12:32:35 2017 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 16 Feb 2017 13:32:35 -0700 Subject: [mapserver-users] "Custom" GeoTIFF EPSG values not working In-Reply-To: References: Message-ID: Your gdalinfo listing shows: PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",0], whereas your in-line definition has: "lat_0=90" "lat_ts=70" "lon_0=-45" which looks fishy. On Thu, Feb 16, 2017 at 7:44 AM, Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] wrote: > Richard, > Thanks for your reply. I looked into gdal versions and did see that I > was running 1.11.1 vs 1.11.4 in a couple different places. When I run > gdalinfo 1.11.4, I get the following output: > > PROJCS["WGS 84 / NSIDC Sea Ice Polar Stereographic North", > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.257223563, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]], > > PROJECTION["Polar_Stereographic"], > > PARAMETER["latitude_of_origin",0], > > PARAMETER["central_meridian",0], > > PARAMETER["scale_factor",1], > > PARAMETER["false_easting",0], > > PARAMETER["false_northing",0], > > UNIT["metre",1, > > AUTHORITY["EPSG","9001"]], > > AUTHORITY["EPSG","3413"]] > > > And it doesn?t matter whether I have this: > > PROJECTION > > "init=epsg:3413" > > END > > > or this: > > PROJECTION > > "proj=stere" > > "lat_0=90" > > "lat_ts=70" > > "lon_0=-45" > > "k=1" > > "x_0=0" > > "y_0=0" > > "ellps=WGS84" > > "datum=WGS84" > > "units=m" > > "no_defs" > > END > > > at the top of my mapfile. In both cases, I have this in the LAYER > definition: > > PROJECTION > > "init=epsg:3413" > > END > > It does not appear that mapserver is using the key/value items provided > in the output PROJECTION definition. > > Thanks, > Matt > > ................................................................. > Matthew Cechini > Contractor, Science Systems and Applications, Inc. > NASA GIBS Systems/Software Engineer > 410.205.6272 <(410)%20205-6272> > > From: Richard Greenwood > Date: Wednesday, February 15, 2017 at 9:24 PM > To: Matthew Cechini > Cc: "mapserver-users at lists.osgeo.org" > Subject: Re: [mapserver-users] "Custom" GeoTIFF EPSG values not working > > You should probably first get it sorted with gdalinfo before messing with > mapserv. So you're doing gdalinfo on exactly the same file on your old and > new systems and getting those results? What version of gdal on the two? Use > "gdalinfo --version" and what type of file is it? Does it have an > accompanying world file? If so, what happens if you hide the world file? > > Regarding your inline projection definitions in your map file, they are > canceling each other out. The definition at the "top" of your file is the > projection that your map fill be served out in. The definition within a > LAYER block tells mapserv what projection that layer is in. So if the layer > is different than the map, then mapserv will transform it, but if they are > the same then mapserv does no transformation. > > On Wed, Feb 15, 2017 at 8:07 AM, Cechini, Matthew F. (GSFC-423.0)[Science > Systems & Applications, Inc.] wrote: > >> Once upon a time we were able to request GeoTIFF imagery through >> mapserver and have gdalinfo report the following as the coordinate system: >> >> PROJCS["unnamed", >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]], >> PROJECTION["Polar_Stereographic"], >> PARAMETER["latitude_of_origin",70], >> PARAMETER["central_meridian",-45], >> PARAMETER["scale_factor",1], >> PARAMETER["false_easting",0], >> PARAMETER["false_northing",0], >> UNIT["metre",1, >> AUTHORITY["EPSG","9001"]]] >> >> >> We?ve since changed to a new environment and version of mapserver (7.0.1 >> on Centos), and cannot get back to this capability. We now see this, which >> is the CS for the source imagery: >> >> LOCAL_CS["WGS 84 / NSIDC Sea Ice Polar Stereographic North", >> >> GEOGCS["WGS 84", >> >> DATUM["WGS_1984", >> >> SPHEROID["WGS 84",6378137,298.257223563, >> >> AUTHORITY["EPSG","7030"]], >> >> AUTHORITY["EPSG","6326"]], >> >> PRIMEM["Greenwich",0], >> >> UNIT["degree",0.0174532925199433], >> >> AUTHORITY["EPSG","4326"]], >> >> AUTHORITY["EPSG","3413"], >> >> UNIT["metre",1]] >> >> >> I?ve tried to override it by adding the following PROJECTION definition >> at the top of our mapfile as well as in the relevant LAYER, but that >> doesn?t seem to do the trick. >> >> PROJECTION >> >> "proj=stere" >> >> "lat_0=90" >> >> "lat_ts=70" >> >> "lon_0=-45" >> >> "k=1" >> >> "x_0=0" >> >> "y_0=0" >> >> "ellps=WGS84" >> >> "datum=WGS84" >> >> "units=m" >> >> "no_defs" >> >> END >> >> >> Thoughts? >> >> Thanks, >> Matt >> ................................................................. >> Matthew Cechini >> Contractor, Science Systems and Applications, Inc. >> NASA GIBS Systems/Software Engineer >> 410.205.6272 <(410)%20205-6272> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joehogan at gmx.com Mon Feb 20 08:12:03 2017 From: joehogan at gmx.com (Joe Hogan) Date: Mon, 20 Feb 2017 11:12:03 -0500 Subject: [mapserver-users] Possible application questions Message-ID: Hello, I am writing to ask if MapServer will work for our application. We are working on a project that will allow us to place on a map of our country various projects. We want to be able to filter them based on various pieces of information, including, for example: year of project population project budget etc... We are compiling the data in a CRM(MySQL database), and want to use the data from the CRM to feed the mapping software. 1 - can I map the type fo information that I need? 2 - can we use the data directly from the CRM database if we tell the mapping software what data to use(so t can be read on the fly, live from the database?), or does it need to be exported before using in the mapping software? 3 - It it needs to be in its own exported format, how to I get it from MtSQL to the correct format? Thanks for any and all help. Joseph From Steve.Toutant at inspq.qc.ca Tue Feb 21 05:48:29 2017 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 21 Feb 2017 08:48:29 -0500 Subject: [mapserver-users] Possible application questions In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From matthew.f.cechini at nasa.gov Tue Feb 21 05:50:09 2017 From: matthew.f.cechini at nasa.gov (Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]) Date: Tue, 21 Feb 2017 13:50:09 +0000 Subject: [mapserver-users] "Custom" GeoTIFF EPSG values not working In-Reply-To: References: Message-ID: Once upon a time we were able to request GeoTIFF imagery through mapserver and have gdalinfo report the following as the coordinate system: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Polar_Stereographic"], PARAMETER["latitude_of_origin",70], PARAMETER["central_meridian",-45], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] We?ve since changed to a new environment and version of mapserver (7.0.1 on Centos), and cannot get back to this capability. We now see this, which is the CS for the source imagery: LOCAL_CS["WGS 84 / NSIDC Sea Ice Polar Stereographic North", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], AUTHORITY["EPSG","3413"], UNIT["metre",1]] I?ve tried to override it by adding the following PROJECTION definition at the top of our mapfile as well as in the relevant LAYER, but that doesn?t seem to do the trick. PROJECTION "proj=stere" "lat_0=90" "lat_ts=70" "lon_0=-45" "k=1" "x_0=0" "y_0=0" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END Thoughts? Thanks, Matt ................................................................. Matthew Cechini Contractor, Science Systems and Applications, Inc. NASA GIBS Systems/Software Engineer 410.205.6272 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joehogan at gmx.com Tue Feb 21 08:14:22 2017 From: joehogan at gmx.com (Joe Hogan) Date: Tue, 21 Feb 2017 11:14:22 -0500 Subject: [mapserver-users] Possible application questions In-Reply-To: References: Message-ID: <64f1c3e3-4bce-aa28-dde7-18ef444dbec7@gmx.com> Hello Steve, Thanks for the reassuring news. We have found our possible solution. The CRM software has not yet been modified, but it will have the two fields for the Longitude and Latitude. Other fields will be used as well, and we will have to add more for those. When you say it has to provide wms/wfs services, what does that mean? I found the 9nitials, but what does it mean? Is it a special format? Like I need to export the data from the data base into a certain format? Sorry for the newbie questions, but I am learning:) Thanks Joseph On 02/21/2017 08:48 AM, Steve.Toutant at inspq.qc.ca wrote: > > hi Joseph > Yes mapserver can be used for your application by providing wms/wfs > services > Here are some links that can help > #connect to mysql > http://mapserver.org/input/vector/mysql.html > > #filters...Runtime substitution > http://mapserver.org/cgi/runsub.html > > Do you have latitude/longitude data in your database, or any other > georeference that can be used to render on a map? > Steve > > > -----"mapserver-users" a > ?crit : ----- > A : mapserver-users at lists.osgeo.org > De : Joe Hogan > Envoy? par : "mapserver-users" > Date : 20/02/2017 11:12 > Objet : [mapserver-users] Possible application questions > > Hello, > > I am writing to ask if MapServer will work for our application. > > We are working on a project that will allow us to place on a map of our > country various projects. We want to be able to filter them based on > various pieces of information, including, for example: > > year of project > population > project budget > etc... > > We are compiling the data in a CRM(MySQL database), and want to use the > data from the CRM to feed the mapping software. > > 1 - can I map the type fo information that I need? > 2 - can we use the data directly from the CRM database if we tell the > mapping software what data to use(so t can be read on the fly, live from > the database?), or does it need to be exported before using in the > mapping software? > 3 - It it needs to be in its own exported format, how to I get it from > MtSQL to the correct format? > > > Thanks for any and all help. > > Joseph > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > Si vous n'?tes pas le destinataire de ce message, veuillez le d?truire > pr?s avoir inform? l'exp?diteur de son erreur. Par ailleurs, il est > interdit de copier ou de modifier ce courriel sans l'autorisation de > l'auteur. > > L'Institut national de sant? publique du Qu?bec n'assume aucune > responsabilit? ? l'?gard du contenu des messages personnels envoy?s > par ses employ?s. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirandziskig at gmail.com Wed Feb 22 00:52:17 2017 From: kirandziskig at gmail.com (gorank) Date: Wed, 22 Feb 2017 01:52:17 -0700 (MST) Subject: [mapserver-users] WMS service doesn't work Message-ID: <1487753537456-5308980.post@n6.nabble.com> I have a problem with connection to wms service and don't now what is the problem. The URL is : http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getcapabilities Maybe the problem is the .map file below MAP CONFIG "MS_ERRORFILE" "C:\ms4w\Apache\cgi-bin\GDZS\Error.txt" DEBUG 5 EXTENT 7446477 4453517 7682148 4763251 FONTSET "ttf-fonts/fonts.txt" IMAGETYPE "png" NAME "MapStatDZS" SHAPEPATH "data/" SIZE 800 600 UNITS METERS OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE FORMATOPTION "QUALITY=95" END # OUTPUTFORMAT PROJECTION "init=epsg:6316" END # PROJECTION LEGEND KEYSIZE 30 17 KEYSPACING 10 10 LABEL FONT "arial" SIZE 10 COLOR 0 0 89 ENCODING "iso-8859-5" OFFSET 0 -3 SHADOWSIZE 5 1 TYPE TRUETYPE END # LABEL STATUS ON TRANSPARENT FALSE END # LEGEND QUERYMAP SIZE -1 -1 STATUS ON STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909" "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" "wms_encoding" "utf-8" "wms_title" "StatMap" END # METADATA #TEMPLATE "C:/ms4w/Apache/cgi-bin/goki/tretTemplejt.html" END # WEB LAYER DATA "NASA.shp" EXTENT 7446477 4453517 7682148 4763251 LABELITEM "NAZIVOP_MK" LABELMAXSCALEDENOM 443652 METADATA "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909" "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" "wms_enable_request" "*" "wfs_enable_request" "*" "coordsys_name" "Macedonia State Coordinate System zone 7" "wms_title" "Opstini" #"default_godina" "2010" END # METADATA NAME "Opstini" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=21" "k=0.9999" "x_0=7500000" "y_0=0" "ellps=bessel" "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE POLYGON UNITS METERS #VALIDATION # "godina" "^[12][09][0-9][0-9]$" #END #VALIDATION CLASS NAME "klasa_1" EXPRESSION ([2011] > 0 and [2011] < 5) LABEL FONT "maccswiss" SIZE 8 #ENCODING "iso-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 255 255 128 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "4.9 ??? ???????" END # CLASS CLASS NAME "klasa_2" EXPRESSION ([2011] >= 5 and [2011] < 10) LABEL FONT "maccswiss" SIZE 8 #ENCODING "iso-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 250 209 85 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "5.0 - 9.9" END # CLASS CLASS NAME "klasa_3" EXPRESSION ([2011] >=10 and [2011] < 15) LABEL FONT "maccswiss" SIZE 8 #ENCODING "iso-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 242 167 46 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "10.0 - 14.9" END # CLASS CLASS NAME "klasa_4" EXPRESSION ([2011] >= 15 and [2011] < 20) LABEL FONT "maccswiss" SIZE 8 #ENCODING "iso-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 173 83 19 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "15.0 - 19.9" END # CLASS CLASS NAME "klasa_5" EXPRESSION ([2011] >= 20 and [2011] < 10000) LABEL FONT "maccswiss" SIZE 8 #ENCODING "iso-8859-5" OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE COLOR 107 0 0 OUTLINECOLOR 130 130 130 WIDTH 0.5 END # STYLE TITLE "20 ? ??????" END # CLASS END # LAYER LAYER DATA "REGIONI2007_NASA.shp" EXTENT 7446477 4453517 7682148 4763251 METADATA "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909" "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" "wms_enable_request" "*" "coordsys_name" "Macedonia State Coordinate System zone 7" "wms_title" "Regioni" END # METADATA NAME "Regioni" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=21" "k=0.9999" "x_0=7500000" "y_0=0" "ellps=bessel" "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" LABELITEM "NAZIV_NTES" TYPE POLYGON UNITS METERS CLASS NAME "Reg" LABEL FONT "maccswiss" SIZE 14 OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE TRUETYPE END # LABEL STYLE OUTLINECOLOR 20 20 20 END # STYLE END # CLASS END # LAYER LAYER DATA "DrzGran_NASA.shp" EXTENT 7446477 4453517 7682148 4763251 METADATA "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909" "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" "wms_enable_request" "*" "coordsys_name" "Macedonia State Coordinate System zone 7" "wms_title" "DrzavnaGranica" END # METADATA NAME "DrzGran" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=21" "k=0.9999" "x_0=7500000" "y_0=0" "ellps=bessel" "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "Drzag" LABEL SIZE SMALL OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STYLE OUTLINECOLOR 50 50 50 WIDTH 1.9 END # STYLE END # CLASS END # LAYER LAYER DATA "EZERA_NASA.shp" EXTENT 7446477 4453517 7682148 4763251 METADATA "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909" "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" "wms_enable_request" "*" "coordsys_name" "Macedonia State Coordinate System zone 7" "wms_title" "Ezera" END # METADATA NAME "Ezera" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=21" "k=0.9999" "x_0=7500000" "y_0=0" "ellps=bessel" "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" "units=m" "no_defs" END # PROJECTION STATUS ON TEMPLATE "query" TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Ezera" LABEL SIZE SMALL OFFSET 0 0 POSITION CC SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STYLE OUTLINECOLOR 0 158 219 WIDTH 0.91 END # STYLE STYLE COLOR 199 234 251 END # STYLE END # CLASS END # LAYER END # MAP -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-doesn-t-work-tp5308980.html Sent from the Mapserver - User mailing list archive at Nabble.com. From emperor_stef at yahoo.gr Wed Feb 22 03:29:42 2017 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Wed, 22 Feb 2017 11:29:42 +0000 (UTC) Subject: [mapserver-users] =?utf-8?b?zqPPh861z4Q6ICBXTVMgc2VydmljZSBkb2Vz?= =?utf-8?q?n=27t_work?= In-Reply-To: <1487753537456-5308980.post@n6.nabble.com> References: <1487753537456-5308980.post@n6.nabble.com> Message-ID: <734679434.4543398.1487762982660@mail.yahoo.com> Hello Gorank,? I see you've set the DEBUG object in the map level. Does it give you any report? If not do you get any errors in your browser ? -Stefanos ???? 10:52 ?.?. ???????, 22 ??????????? 2017, ?/? gorank ??????: I have a problem with connection to wms service and don't now what is the problem. The URL is : http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getcapabilities Maybe the problem is the .map file below MAP ? CONFIG "MS_ERRORFILE" "C:\ms4w\Apache\cgi-bin\GDZS\Error.txt" ? DEBUG 5 ? EXTENT 7446477 4453517 7682148 4763251 ? FONTSET? ? "ttf-fonts/fonts.txt" ? IMAGETYPE "png" ? NAME "MapStatDZS" ? SHAPEPATH "data/" ? SIZE 800 600 ? UNITS METERS ? OUTPUTFORMAT ? ? NAME "png" ? ? MIMETYPE "image/png" ? ? DRIVER "AGG/PNG" ? ? EXTENSION "png" ? ? IMAGEMODE RGB ? ? TRANSPARENT FALSE ? ? FORMATOPTION "QUALITY=95" ? END # OUTPUTFORMAT ? PROJECTION ? ? "init=epsg:6316" ? END # PROJECTION ? LEGEND ? ? KEYSIZE 30 17 ? ? KEYSPACING 10 10 ? ? LABEL ? ? ? FONT "arial" ? ? ? SIZE 10 ? ? ? COLOR 0 0 89 ? ? ? ENCODING "iso-8859-5" ? ? ? OFFSET 0 -3 ? ? ? SHADOWSIZE 5 1 ? ? ? TYPE TRUETYPE ? ? END # LABEL ? ? STATUS ON ? ? TRANSPARENT FALSE ? END # LEGEND ? QUERYMAP ? ? SIZE -1 -1 ? ? STATUS ON ? ? STYLE HILITE ? END # QUERYMAP ? SCALEBAR ? ? INTERVALS 4 ? ? LABEL ? ? ? SIZE MEDIUM ? ? ? OFFSET 0 0 ? ? ? SHADOWSIZE 1 1 ? ? ? TYPE BITMAP ? ? END # LABEL ? ? SIZE 200 3 ? ? STATUS OFF ? ? UNITS MILES ? END # SCALEBAR ? WEB ? ? IMAGEPATH "C:/ms4w/tmp/ms_tmp/" ? ? IMAGEURL "/ms_tmp/" ? ? METADATA ? ? ? "wms_srs"??? "EPSG:6316 EPSG:4326 EPSG:3909" ? ? ? "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" ? ? ? "wms_encoding"??? "utf-8" ? ? ? "wms_title"??? "StatMap" ? ? END # METADATA ? ? #TEMPLATE "C:/ms4w/Apache/cgi-bin/goki/tretTemplejt.html" ? END # WEB ? LAYER ? ? DATA "NASA.shp" ? ? EXTENT 7446477 4453517 7682148 4763251 ? ? LABELITEM "NAZIVOP_MK" ??? LABELMAXSCALEDENOM 443652 ? ? METADATA ? ? ? "wms_srs"??? "EPSG:6316 EPSG:4326 EPSG:3909" ? ? ? "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" ? ? ? "wms_enable_request"??? "*" ? ? ? "wfs_enable_request"??? "*" ? ? ? "coordsys_name"??? "Macedonia State Coordinate System zone 7" ? ? ? "wms_title"??? "Opstini" ??? ? #"default_godina" "2010" ? ? END # METADATA ? ? NAME "Opstini" ? ? PROJECTION ? ? ? "proj=tmerc" ??? ? "lat_0=0" ??? ? "lon_0=21" ??? ? "k=0.9999" ??? ? "x_0=7500000" ??? ? "y_0=0" ??? ? "ellps=bessel" ??? ? "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" ??? ? "units=m" ??? ? "no_defs" ? ? END # PROJECTION ? ? STATUS ON ? ? TEMPLATE "query" ? ? TILEITEM "location" ? ? TYPE POLYGON ? ? UNITS METERS ? ? ? ??? ? ? #VALIDATION ? ? #? "godina" "^[12][09][0-9][0-9]$" ??? ? ? ? #END #VALIDATION ? ? CLASS ? ? ? NAME "klasa_1" ??? ? EXPRESSION ([2011] > 0 and [2011] < 5) ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 8 ? ? ? ? #ENCODING "iso-8859-5" ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? COLOR 255 255 128 ? ? ? ? OUTLINECOLOR 130 130 130 ? ? ? ? WIDTH 0.5 ? ? ? END # STYLE ? ? ? TITLE "4.9 ??? ???????" ? ? END # CLASS ? ? CLASS ? ? ? NAME "klasa_2" ??? ? EXPRESSION ([2011] >= 5 and [2011] < 10) ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 8 ? ? ? ? #ENCODING "iso-8859-5" ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? COLOR 250 209 85 ? ? ? ? OUTLINECOLOR 130 130 130 ? ? ? ? WIDTH 0.5 ? ? ? END # STYLE ? ? ? TITLE "5.0 - 9.9" ? ? END # CLASS ? ? CLASS ? ? ? NAME "klasa_3" ??? ? EXPRESSION ([2011] >=10 and [2011] < 15) ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 8 ? ? ? ? #ENCODING "iso-8859-5" ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? COLOR 242 167 46 ? ? ? ? OUTLINECOLOR 130 130 130 ? ? ? ? WIDTH 0.5 ? ? ? END # STYLE ? ? ? TITLE "10.0 - 14.9" ? ? END # CLASS ? ? CLASS ? ? ? NAME "klasa_4" ??? ? EXPRESSION ([2011] >= 15 and [2011] < 20) ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 8 ? ? ? ? #ENCODING "iso-8859-5" ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? COLOR 173 83 19 ? ? ? ? OUTLINECOLOR 130 130 130 ? ? ? ? WIDTH 0.5 ? ? ? END # STYLE ? ? ? TITLE "15.0 - 19.9" ? ? END # CLASS ? ? CLASS ? ? ? NAME "klasa_5" ??? ? EXPRESSION ([2011] >= 20 and [2011] < 10000) ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 8 ? ? ? ? #ENCODING "iso-8859-5" ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? COLOR 107 0 0 ? ? ? ? OUTLINECOLOR 130 130 130 ? ? ? ? WIDTH 0.5 ? ? ? END # STYLE ? ? ? TITLE "20 ? ??????" ? ? END # CLASS ? ? ? END # LAYER ? LAYER ? ? DATA "REGIONI2007_NASA.shp" ? ? EXTENT 7446477 4453517 7682148 4763251 ? ? METADATA ? ? ? "wms_srs"??? "EPSG:6316 EPSG:4326 EPSG:3909" ? ? ? "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" ? ? ? "wms_enable_request"??? "*" ? ? ? "coordsys_name"??? "Macedonia State Coordinate System zone 7" ? ? ? "wms_title"??? "Regioni" ? ? END # METADATA ? ? NAME "Regioni" ? ? PROJECTION ? ? ? "proj=tmerc" ??? ? "lat_0=0" ??? ? "lon_0=21" ??? ? "k=0.9999" ??? ? "x_0=7500000" ??? ? "y_0=0" ??? ? "ellps=bessel" ??? ? "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" ??? ? "units=m" ??? ? "no_defs" ? ? END # PROJECTION ? ? STATUS ON ? ? TEMPLATE "query" ? ? TILEITEM "location" ? ? LABELITEM "NAZIV_NTES" ? ? TYPE POLYGON ? ? UNITS METERS ? ? CLASS ? ? ? NAME "Reg" ? ? ? LABEL ? ? ? ? FONT "maccswiss" ? ? ? ? SIZE 14 ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE TRUETYPE ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? OUTLINECOLOR 20 20 20 ? ? ? END # STYLE ? ? END # CLASS ? END # LAYER ? LAYER ? ? DATA "DrzGran_NASA.shp" ? ? EXTENT 7446477 4453517 7682148 4763251 ? ? METADATA ? ? ? "wms_srs"??? "EPSG:6316 EPSG:4326 EPSG:3909" ? ? ? "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" ? ? ? "wms_enable_request"??? "*" ? ? ? "coordsys_name"??? "Macedonia State Coordinate System zone 7" ? ? ? "wms_title"??? "DrzavnaGranica" ? ? END # METADATA ? ? NAME "DrzGran" ? ? PROJECTION ? ? ? "proj=tmerc" ??? ? "lat_0=0" ??? ? "lon_0=21" ??? ? "k=0.9999" ??? ? "x_0=7500000" ??? ? "y_0=0" ??? ? "ellps=bessel" ??? ? "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" ??? ? "units=m" ??? ? "no_defs" ? ? END # PROJECTION ? ? STATUS ON ? ? TEMPLATE "query" ? ? TILEITEM "location" ? ? TYPE LINE ? ? UNITS METERS ? ? CLASS ? ? ? NAME "Drzag" ? ? ? LABEL ? ? ? ? SIZE SMALL ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE BITMAP ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? OUTLINECOLOR 50 50 50 ? ? ? ? WIDTH 1.9 ? ? ? END # STYLE ? ? END # CLASS ? END # LAYER ? LAYER ? ? DATA "EZERA_NASA.shp" ? ? EXTENT 7446477 4453517 7682148 4763251 ? ? METADATA ? ? ? "wms_srs"??? "EPSG:6316 EPSG:4326 EPSG:3909" ? ? ? "wms_onlineresource" "http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&" ? ? ? "wms_enable_request"??? "*" ? ? ? "coordsys_name"??? "Macedonia State Coordinate System zone 7" ? ? ? "wms_title"??? "Ezera" ? ? END # METADATA ? ? NAME "Ezera" ? ? PROJECTION ? ? ? "proj=tmerc" ??? ? "lat_0=0" ??? ? "lon_0=21" ??? ? "k=0.9999" ??? ? "x_0=7500000" ??? ? "y_0=0" ??? ? "ellps=bessel" ??? ? "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82" ??? ? "units=m" ??? ? "no_defs" ? ? END # PROJECTION ? ? STATUS ON ? ? TEMPLATE "query" ? ? TILEITEM "location" ? ? TYPE POLYGON ? ? UNITS METERS ? ? CLASS ? ? ? NAME "Ezera" ? ? ? LABEL ? ? ? ? SIZE SMALL ? ? ? ? OFFSET 0 0 ? ? ? ? POSITION CC ? ? ? ? SHADOWSIZE 1 1 ? ? ? ? TYPE BITMAP ? ? ? END # LABEL ? ? ? STYLE ? ? ? ? OUTLINECOLOR 0 158 219 ? ? ? ? WIDTH 0.91 ? ? ? END # STYLE ? ? ? STYLE ? ? ? ? COLOR 199 234 251 ? ? ? END # STYLE ? ? END # CLASS ? END # LAYER ? END # MAP -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-doesn-t-work-tp5308980.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirandziskig at gmail.com Wed Feb 22 04:03:56 2017 From: kirandziskig at gmail.com (gorank) Date: Wed, 22 Feb 2017 05:03:56 -0700 (MST) Subject: [mapserver-users] WMS service can't see the map in QGIS In-Reply-To: <1487753537456-5308980.post@n6.nabble.com> References: <1487753537456-5308980.post@n6.nabble.com> Message-ID: <1487765036813-5309023.post@n6.nabble.com> Dear Stefanos, this the message that is written in the Debug error file for getcapabilities in my browser [Wed Feb 22 12:57:32 2017].461000 CGI Request 1 on process 5572 [Wed Feb 22 12:57:32 2017].477000 mapserv request processing time (msLoadMap not incl.): 0.016s [Wed Feb 22 12:57:32 2017].477000 msFreeMap(): freeing map at 02710048. Record from Apache/logs/access fajl: [22/Feb/2017:12:57:32 +0100] "GET /cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=Getcapabilities HTTP/1.1" 200 11130 Best regards, Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-can-t-see-the-map-in-QGIS-tp5308980p5309023.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed Feb 22 04:38:25 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 22 Feb 2017 08:38:25 -0400 Subject: [mapserver-users] WMS service can't see the map in QGIS In-Reply-To: <1487765036813-5309023.post@n6.nabble.com> References: <1487753537456-5308980.post@n6.nabble.com> <1487765036813-5309023.post@n6.nabble.com> Message-ID: <8eda588f-38c0-de9a-8b1e-11a791edff8a@gatewaygeomatics.com> Hello, For debugging MapServer WMS services in QGIS, please see some steps to try at: https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS Also, a word of advice for you: when writing messages to mailing lists, always be sure to not attach anything, like images or files, as mailing lists often reject these. If you need to include an image, always use an external service such as http://pasteboard.co/ and include that link in your message; if you need to include long text such as source code, always use an external service such as http://pastebin.com/ and include that link in your message. (because your initial message included a long mapfile, now anyone who tries to respond will go over the mailing list size limit, and their messages will be rejected) Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-02-22 8:03 AM, gorank wrote: > Dear Stefanos, > > this the message that is written in the Debug error file for getcapabilities > in my browser > > [Wed Feb 22 12:57:32 2017].461000 CGI Request 1 on process 5572 > [Wed Feb 22 12:57:32 2017].477000 mapserv request processing time (msLoadMap > not incl.): 0.016s > [Wed Feb 22 12:57:32 2017].477000 msFreeMap(): freeing map at 02710048. > > Record from Apache/logs/access fajl: > [22/Feb/2017:12:57:32 +0100] "GET > /cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=Getcapabilities > HTTP/1.1" 200 11130 > > Best regards, > Goran > > From Steve.Toutant at inspq.qc.ca Wed Feb 22 06:32:07 2017 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 22 Feb 2017 09:32:07 -0500 Subject: [mapserver-users] Possible application questions In-Reply-To: <64f1c3e3-4bce-aa28-dde7-18ef444dbec7@gmx.com> References: <64f1c3e3-4bce-aa28-dde7-18ef444dbec7@gmx.com> Message-ID: WMS and WFS are ogc standards to share maps over the web, intranet ... https://en.wikipedia.org/wiki/Web_Map_Service You will not export data from the database. Mapserver will be connected to your mysql DB and render maps as a service. Those services can be viewed by gis softwares or web applications steve De : Joe Hogan A : Steve.Toutant at inspq.qc.ca Cc : mapserver-users at lists.osgeo.org Date : 2017-02-21 11:14 Objet : Re: [mapserver-users] Possible application questions Hello Steve, Thanks for the reassuring news. We have found our possible solution. The CRM software has not yet been modified, but it will have the two fields for the Longitude and Latitude. Other fields will be used as well, and we will have to add more for those. When you say it has to provide wms/wfs services, what does that mean? I found the 9nitials, but what does it mean? Is it a special format? Like I need to export the data from the data base into a certain format? Sorry for the newbie questions, but I am learning:) Thanks Joseph On 02/21/2017 08:48 AM, Steve.Toutant at inspq.qc.ca wrote: hi Joseph Yes mapserver can be used for your application by providing wms/wfs services Here are some links that can help #connect to mysql http://mapserver.org/input/vector/mysql.html #filters...Runtime substitution http://mapserver.org/cgi/runsub.html Do you have latitude/longitude data in your database, or any other georeference that can be used to render on a map? Steve -----"mapserver-users" a ?crit : ----- A : mapserver-users at lists.osgeo.org De : Joe Hogan Envoy? par : "mapserver-users" Date : 20/02/2017 11:12 Objet : [mapserver-users] Possible application questions Hello, I am writing to ask if MapServer will work for our application. We are working on a project that will allow us to place on a map of our country various projects. We want to be able to filter them based on various pieces of information, including, for example: year of project population project budget etc... We are compiling the data in a CRM(MySQL database), and want to use the data from the CRM to feed the mapping software. 1 - can I map the type fo information that I need? 2 - can we use the data directly from the CRM database if we tell the mapping software what data to use(so t can be read on the fly, live from the database?), or does it need to be exported before using in the mapping software? 3 - It it needs to be in its own exported format, how to I get it from MtSQL to the correct format? Thanks for any and all help. Joseph _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users Si vous n'?tes pas le destinataire de ce message, veuillez le d?truire pr?s avoir inform? l'exp?diteur de son erreur. Par ailleurs, il est interdit de copier ou de modifier ce courriel sans l'autorisation de l'auteur. L'Institut national de sant? publique du Qu?bec n'assume aucune responsabilit? ? l'?gard du contenu des messages personnels envoy?s par ses employ?s. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Feb 22 11:55:34 2017 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Wed, 22 Feb 2017 19:55:34 +0000 Subject: [mapserver-users] WMS service doesn't work In-Reply-To: <1487792687618.62331@maanmittauslaitos.fi> References: <1487753537456-5308980.post@n6.nabble.com> , , <1487792687618.62331@maanmittauslaitos.fi> Message-ID: <1487793357824.43189@maanmittauslaitos.fi> Hi, Works for me with OpenJUMP 1.10 and QGIS 2.18.3. I tested only with EPSG:4326 though, and at 21:40 GMT+2 if you have made some changes since your first message. -Jukka Rahkonen- ________________________________ Goran Kirandziski wrote: Re: [mapserver-users] WMS service doesn't work Thanks Jukka., I can't open the map in Arcgis or QGIS as wms service. That is my problem. best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Feb 22 12:24:00 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 22 Feb 2017 20:24:00 +0000 Subject: [mapserver-users] Anyone have an example of SLD to symbolize a line from an ArcServer service? Message-ID: <7B1DB77E-8CAC-4151-8F88-A9DF114250E1@ci.stpaul.mn.us> I can?t seem to get a Line symbolizer to do what I want (make something red based on a parameter value in the WMS service. I?m not getting an error, the SLD validates for XML, but I simply get back the default styling from the server. My Mapfile: MAP STATUS ON PROJECTION "init=epsg:200068" END LAYER NAME "WS Service Laterals" TYPE RASTER STATUS DEFAULT INCLUDE "../wsgisserver2.inc" ## CONNECTION CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:26915" "wms_name" "3" "wms_server_version" "1.1.1" "wms_format" "image/png24" "wms_sld_url" "http://gis.ci.stpaul.mn.us/datasets/UTILITIES_COMM/WATER_UTILITY/SERVICE_LATERALS/sld.line.label.01.xml" #"wms_sld_body" "AUTO" "ows_title" "3" "gml_include_items" "all" END PROJECTION "init=epsg:26915" END TEMPLATE "dummy" END #layer END My SLD (assembled from ESRI web site examples found here: http://server.arcgis.com/en/server/10.3/publish-services/linux/wms-styled-layer-descriptor-sld-samples.htm#GUID-D8E390C5-8F1C-4D1D-8120-D5AE98F4041B): 3 lineSymbolizer lineSymbolizer INPROPMAT Lead #FF0000 1 5 Thanks bobb Work like you don?t need money, love like you?ve never been hurt, and dance like no one?s watching ?Unknown Author -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirandziskig at gmail.com Thu Feb 23 05:41:06 2017 From: kirandziskig at gmail.com (gorank) Date: Thu, 23 Feb 2017 06:41:06 -0700 (MST) Subject: [mapserver-users] WMS service can't see the map in QGIS In-Reply-To: <1487753537456-5308980.post@n6.nabble.com> References: <1487753537456-5308980.post@n6.nabble.com> Message-ID: <1487857266526-5309232.post@n6.nabble.com> Solved. I have put few wms metadata and output formats . It works in QGis 2.16 and 2.18, Gaia3, UDig, Thanks to all for help with their suggestions. Best regards Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-can-t-see-the-map-in-QGIS-tp5308980p5309232.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Thu Feb 23 09:32:00 2017 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 23 Feb 2017 17:32:00 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GeoAnalytic.com Thu Feb 23 10:17:21 2017 From: bfraser at GeoAnalytic.com (Brent Fraser) Date: Thu, 23 Feb 2017 11:17:21 -0700 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> Message-ID: <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> version of Mapserver? ---------------------------------------- From: "Mark Volz" Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Feb 23 11:32:21 2017 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 23 Feb 2017 19:32:21 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> Brent, I am using Mapserver 7.0.4. Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz Subject: re: [mapserver-users] Road shields on Mapserver 7 version of Mapserver? ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GeoAnalytic.com Thu Feb 23 11:39:00 2017 From: bfraser at GeoAnalytic.com (Brent Fraser) Date: Thu, 23 Feb 2017 12:39:00 -0700 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> Message-ID: I don't think you can put a STYLE inside a LABEL. You could put it after the LABEL... ---------------------------------------- From: "Mark Volz" Sent: Thursday, February 23, 2017 12:32 PM To: "bfraser at GeoAnalytic.com" , "mapserver-users at lists.osgeo.org" Subject: RE: [mapserver-users] Road shields on Mapserver 7 Brent, I am using Mapserver 7.0.4. Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz Subject: re: [mapserver-users] Road shields on Mapserver 7 version of Mapserver? ---------------------------------------- From: "Mark Volz" Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Feb 23 11:47:52 2017 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 23 Feb 2017 19:47:52 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> Brent, I think your right. I was under the impression that STYLE could be within a LABEL object because since Mapserver 6.2 we could have multiple labels per class. Anyways, how can I add road shields in Mapserver 7? Apparently annotation layers have been removed. Thanks! Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 1:39 PM To: mapserver-users at lists.osgeo.org; Mark Volz Subject: RE: [mapserver-users] Road shields on Mapserver 7 I don't think you can put a STYLE inside a LABEL. You could put it after the LABEL... ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 12:32 PM To: "bfraser at GeoAnalytic.com" >, "mapserver-users at lists.osgeo.org" > Subject: RE: [mapserver-users] Road shields on Mapserver 7 Brent, I am using Mapserver 7.0.4. Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz > Subject: re: [mapserver-users] Road shields on Mapserver 7 version of Mapserver? ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 23 11:56:01 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Feb 2017 14:56:01 -0500 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> Message-ID: You can have LABEL STYLE but you also need a GEOMTRANSFORM 'labelpoly' or 'labelpnt' http://mapserver.org/mapfile/label.html http://mapserver.org/mapfile/geomtransform.html -Steve W On 2/23/2017 2:47 PM, Mark Volz wrote: > Brent, > > > > I think your right. I was under the impression that STYLE could be > within a LABEL object because since Mapserver 6.2 we could have multiple > labels per class. > > > > Anyways, how can I add road shields in Mapserver 7? Apparently > annotation layers have been removed. > > > > Thanks! > > > > Sincerely, > > *Mark Volz, GISP*** > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] > *Sent:* Thursday, February 23, 2017 1:39 PM > *To:* mapserver-users at lists.osgeo.org; Mark Volz > *Subject:* RE: [mapserver-users] Road shields on Mapserver 7 > > > > I don't think you can put a STYLE inside a LABEL. You could put it > after the LABEL... > > > > > > > > ------------------------------------------------------------------------ > > *From*: "Mark Volz" > > *Sent*: Thursday, February 23, 2017 12:32 PM > *To*: "bfraser at GeoAnalytic.com " > >, > "mapserver-users at lists.osgeo.org > " > > > *Subject*: RE: [mapserver-users] Road shields on Mapserver 7 > > > > Brent, > > > > I am using Mapserver 7.0.4. > > > > Sincerely, > > *Mark Volz, GISP* > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] > *Sent:* Thursday, February 23, 2017 12:17 PM > *To:* mapserver-users at lists.osgeo.org > ; Mark Volz > > > *Subject:* re: [mapserver-users] Road shields on Mapserver 7 > > > > version of Mapserver? > > > > > > > > ------------------------------------------------------------------------ > > *From*: "Mark Volz" > > *Sent*: Thursday, February 23, 2017 10:50 AM > *To*: "mapserver-users at lists.osgeo.org > " > > > *Subject*: [mapserver-users] Road shields on Mapserver 7 > > > > Hello, > > > > I am having trouble adding road shields to my map. The label (and for > that matter the entire class) quits drawing as soon as I uncomment the > STYLE block under label. Please let me know What I can do to add road > shields to my roads layer. > > > > CLASS > > NAME "U.S. Highway" > > EXPRESSION "A10" > > STYLE > > WIDTH 5 > > COLOR 0 0 0 > > END #STYLE > > STYLE > > WIDTH 3 > > COLOR 227 159 2 > > END #STYLE > > LABEL > > TEXT '[ROADNUM]' > > SIZE 10 #for AGG > > FONT vera_sans #for AGG > > MINFEATURESIZE 25 > > MINDISTANCE 200 > > #STYLE ### Mapserver quits drawing this layer as soon as I uncomment > this block > > #SYMBOL > './symbols/USHWY.png' > > #END STYLE > > END #label > > END #class > > > > P.S. Eventually I will want to display both the road number shield and > the road name as well. > > > > Thank You > > Sincerely, > > *Mark Volz, GISP* > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Steve.Lime at state.mn.us Thu Feb 23 11:56:45 2017 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 23 Feb 2017 19:56:45 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> Message-ID: You certainly can have STYLEs inside labels. I use this to do shields on county roads: CLASS NAME 'County Road' STYLE COLOR 255 255 255 WIDTH 1 MAXWIDTH 1.5 MINWIDTH .75 OUTLINECOLOR 200 200 200 OUTLINEWIDTH 1 END LABEL STYLE # shield SYMBOL 'county_road' COLOR 255 255 255 OUTLINECOLOR 146 146 146 SIZE 13 MINSIZE 13 MAXSIZE 13 WIDTH .5 MINWIDTH .5 MAXWIDTH .5 END PRIORITY 1 TYPE TRUETYPE FONT 'myriad_condensed_web' SIZE 5 MINSIZE 5 MAXSIZE 5 COLOR 146 146 146 MINDISTANCE 150 ANTIALIAS TRUE PARTIALS FALSE MINFEATURESIZE 20 END END Where county_road is referencing a true type font glyph. I'm actually doing some other conversions to remove dependency on ANNOTATION layers and haven't run into any problems yet. Perhaps the problem isn't with the style placement in the label but rather the contents of the style. You'd get a parse error otherwise. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, February 23, 2017 1:48 PM To: bfraser at GeoAnalytic.com; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Road shields on Mapserver 7 Brent, I think your right. I was under the impression that STYLE could be within a LABEL object because since Mapserver 6.2 we could have multiple labels per class. Anyways, how can I add road shields in Mapserver 7? Apparently annotation layers have been removed. Thanks! Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 1:39 PM To: mapserver-users at lists.osgeo.org; Mark Volz > Subject: RE: [mapserver-users] Road shields on Mapserver 7 I don't think you can put a STYLE inside a LABEL. You could put it after the LABEL... ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 12:32 PM To: "bfraser at GeoAnalytic.com" >, "mapserver-users at lists.osgeo.org" > Subject: RE: [mapserver-users] Road shields on Mapserver 7 Brent, I am using Mapserver 7.0.4. Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz > Subject: re: [mapserver-users] Road shields on Mapserver 7 version of Mapserver? ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GeoAnalytic.com Thu Feb 23 12:00:55 2017 From: bfraser at GeoAnalytic.com (Brent Fraser) Date: Thu, 23 Feb 2017 13:00:55 -0700 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> Message-ID: <2d9a94ff264b4cb38b27d12f44981387@GeoAnalytic.com> Stephen, Good catch. FYI from my notes: LABEL # -- red background rectangle (billboard), with a "shadow" in grey: STYLE GEOMTRANSFORM 'labelpoly' # labelpnt|labelpoly COLOR 153 153 153 OFFSET 3 2 END # of STYLE STYLE GEOMTRANSFORM 'labelpoly' COLOR 255 0 0 END # of STYLE # ------- (more LABEL def) Brent ---------------------------------------- From: "Stephen Woodbridge" Sent: Thursday, February 23, 2017 12:56 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Road shields on Mapserver 7 You can have LABEL STYLE but you also need a GEOMTRANSFORM 'labelpoly' or 'labelpnt' http://mapserver.org/mapfile/label.html http://mapserver.org/mapfile/geomtransform.html -Steve W On 2/23/2017 2:47 PM, Mark Volz wrote: > Brent, > > > > I think your right. I was under the impression that STYLE could be > within a LABEL object because since Mapserver 6.2 we could have multiple > labels per class. > > > > Anyways, how can I add road shields in Mapserver 7? Apparently > annotation layers have been removed. > > > > Thanks! > > > > Sincerely, > > *Mark Volz, GISP*** > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] > *Sent:* Thursday, February 23, 2017 1:39 PM > *To:* mapserver-users at lists.osgeo.org; Mark Volz > *Subject:* RE: [mapserver-users] Road shields on Mapserver 7 > > > > I don't think you can put a STYLE inside a LABEL. You could put it > after the LABEL... > > > > > > > > ------------------------------------------------------------------------ > > *From*: "Mark Volz" > > *Sent*: Thursday, February 23, 2017 12:32 PM > *To*: "bfraser at GeoAnalytic.com " > >, > "mapserver-users at lists.osgeo.org > " > > > *Subject*: RE: [mapserver-users] Road shields on Mapserver 7 > > > > Brent, > > > > I am using Mapserver 7.0.4. > > > > Sincerely, > > *Mark Volz, GISP* > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] > *Sent:* Thursday, February 23, 2017 12:17 PM > *To:* mapserver-users at lists.osgeo.org > ; Mark Volz > > > *Subject:* re: [mapserver-users] Road shields on Mapserver 7 > > > > version of Mapserver? > > > > > > > > ------------------------------------------------------------------------ > > *From*: "Mark Volz" > > *Sent*: Thursday, February 23, 2017 10:50 AM > *To*: "mapserver-users at lists.osgeo.org > " > > > *Subject*: [mapserver-users] Road shields on Mapserver 7 > > > > Hello, > > > > I am having trouble adding road shields to my map. The label (and for > that matter the entire class) quits drawing as soon as I uncomment the > STYLE block under label. Please let me know What I can do to add road > shields to my roads layer. > > > > CLASS > > NAME "U.S. Highway" > > EXPRESSION "A10" > > STYLE > > WIDTH 5 > > COLOR 0 0 0 > > END #STYLE > > STYLE > > WIDTH 3 > > COLOR 227 159 2 > > END #STYLE > > LABEL > > TEXT '[ROADNUM]' > > SIZE 10 #for AGG > > FONT vera_sans #for AGG > > MINFEATURESIZE 25 > > MINDISTANCE 200 > > #STYLE ### Mapserver quits drawing this layer as soon as I uncomment > this block > > #SYMBOL > './symbols/USHWY.png' > > #END STYLE > > END #label > > END #class > > > > P.S. Eventually I will want to display both the road number shield and > the road name as well. > > > > Thank You > > Sincerely, > > *Mark Volz, GISP* > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Thu Feb 23 12:04:32 2017 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 23 Feb 2017 21:04:32 +0100 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> Message-ID: <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> 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 ??????? CLASS ??????????? EXPRESSION ("[VAGNR1]" ~ "^[E0-9]*$" AND "[VAGNR2]" ~ "^[E0-9]*$" AND "[VAGNR3]" ~ "^[E0-9]*$"? ) ??????????? LABEL ??????????????? EXPRESSION ('[VAGNR1]' ~ '^E.$') ??????????????? # first shield - green - one digit ??????????????? STYLE ??????????????????? GEOMTRANSFORM "labelpnt" ??????????????????? SYMBOL VAGNRBOX ??????????????????? COLOR 115 179 115 ??????????????????? OFFSET 0 -13 ??????????????????? SIZE 10 ??????????????? END ??????????????? TEXT '[VAGNR1]' ??????????????? FONT 'sc' ??????????????? TYPE truetype ??????????????? POSITION CC ??????????????? COLOR 255 255 255 ??????????????? SIZE 7 ??????????????? OFFSET 0 -13 ??????????????? REPEATDISTANCE 100 ??????????????? MINDISTANCE 100 ??????????????? PRIORITY 9 ??????????????? FORCE GROUP ??????????? END ??????????? LABEL ??????????????? EXPRESSION ('[VAGNR1]' ~ '^E..$') ??????????????? # first shield - green - two digits ??????????????? STYLE ??????????????????? GEOMTRANSFORM "labelpnt" ??????????????????? SYMBOL VAGNRBOX_3TKN ??????????????????? COLOR 115 179 115 ??????????????????? OFFSET 0 -13 ??????????????????? SIZE 10 ??????????????? END ??????????????? TEXT '[VAGNR1]' ??????????????? FONT 'sc' ??????????????? TYPE truetype ??????????????? POSITION CC ??????????????? COLOR 255 255 255 ??????????????? SIZE 7 ??????????????? OFFSET 0 -13 ??????????????? REPEATDISTANCE 100 ??????????????? MINDISTANCE 100 ??????????????? PRIORITY 9 ??????????????? FORCE GROUP ??????????? END -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Thu Feb 23 12:15:36 2017 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 23 Feb 2017 21:15:36 +0100 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366556@swmail01.r8nssis.local> <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> Message-ID: <394941d3a58ecbb82fb285ddfa42e7f8@blixtmail.se> 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]$' ) ??????????????? # Blue two digits ??????????????? STYLE ??????????????????? GEOMTRANSFORM "labelpnt" ??????????????????? SYMBOL VAGNRBOX ??????????????????? COLOR 64 168 217 ??????????????????? SIZE 10 ??????????????? END ??????????????? TEXT '[VAGNR1]' ??????????????? FONT 'sc' ??????????????? TYPE truetype ??????????????? POSITION cc ??????????????? COLOR 255 255 255 ??????????????? SIZE 7 ??????????????? # FORCE: TRUE ??????????????? REPEATDISTANCE 150 ??????????????? MINDISTANCE 300 ??????????????? PRIORITY 2 ??????????? END -----Originalmeddelande----- Fr?n: lars.schylberg at blixtmail.se Till: mapserver-users at lists.osgeo.org Datum: 2017-02-23 21:04 ?mne: Re: [mapserver-users] Road shields on Mapserver 7 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 ??????? CLASS ??????????? EXPRESSION ("[VAGNR1]" ~ "^[E0-9]*$" AND "[VAGNR2]" ~ "^[E0-9]*$" AND "[VAGNR3]" ~ "^[E0-9]*$"? ) ??????????? LABEL ??????????????? EXPRESSION ('[VAGNR1]' ~ '^E.$') ??????????????? # first shield - green - one digit ??????????????? STYLE ??????????????????? GEOMTRANSFORM "labelpnt" ??????????????????? SYMBOL VAGNRBOX ??????????????????? COLOR 115 179 115 ??????????????????? OFFSET 0 -13 ??????????????????? SIZE 10 ??????????????? END ??????????????? TEXT '[VAGNR1]' ??????????????? FONT 'sc' ??????????????? TYPE truetype ??????????????? POSITION CC ??????????????? COLOR 255 255 255 ??????????????? SIZE 7 ??????????????? OFFSET 0 -13 ??????????????? REPEATDISTANCE 100 ??????????????? MINDISTANCE 100 ??????????????? PRIORITY 9 ??????????????? FORCE GROUP ??????????? END ??????????? LABEL ??????????????? EXPRESSION ('[VAGNR1]' ~ '^E..$') ??????????????? # first shield - green - two digits ??????????????? STYLE ??????????????????? GEOMTRANSFORM "labelpnt" ??????????????????? SYMBOL VAGNRBOX_3TKN ??????????????????? COLOR 115 179 115 ??????????????????? OFFSET 0 -13 ??????????????????? SIZE 10 ??????????????? END ??????????????? TEXT '[VAGNR1]' ??????????????? FONT 'sc' ??????????????? TYPE truetype ??????????????? POSITION CC ??????????????? COLOR 255 255 255 ??????????????? SIZE 7 ??????????????? OFFSET 0 -13 ??????????????? REPEATDISTANCE 100 ??????????????? MINDISTANCE 100 ??????????????? PRIORITY 9 ??????????????? FORCE GROUP ??????????? END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri Feb 24 08:07:06 2017 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 24 Feb 2017 16:07:06 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> Hello, Thank you everyone for your help. I was able to get road shields to display. I do have a couple follow up questions: First, In the legend, the shield covers up the US Highway line. Is there a way to remove the shield from the legend, or make it the shield smaller on the legend than it is on the map? Second, I would like the roads to be labeled several times alternating between the street name and road shield. For example, the road shield should be placed at positions 0, 500, 1000 and the road name should be placed at positions 250, 750, 1250. I know that I could use REPEATDISTANCE to repeat the labels every 500 pixels, but is there something similar to INITIALGAP that will place the road name at an 250 pixel offset along the line? I should mention that I was able to cheat by text every 250 pixels, and the shield every 500 pixels. This works because the text does not draw at positions 0, 500, 1000 because of the label conflict with the road shield, however I was wondering if there is a cleaner way to alternate labels between the street name and road shield. Sincerely, Mark Volz, From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, February 23, 2017 1:57 PM To: Mark Volz ; bfraser at GeoAnalytic.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Road shields on Mapserver 7 You certainly can have STYLEs inside labels. I use this to do shields on county roads: CLASS NAME 'County Road' STYLE COLOR 255 255 255 WIDTH 1 MAXWIDTH 1.5 MINWIDTH .75 OUTLINECOLOR 200 200 200 OUTLINEWIDTH 1 END LABEL STYLE # shield SYMBOL 'county_road' COLOR 255 255 255 OUTLINECOLOR 146 146 146 SIZE 13 MINSIZE 13 MAXSIZE 13 WIDTH .5 MINWIDTH .5 MAXWIDTH .5 END PRIORITY 1 TYPE TRUETYPE FONT 'myriad_condensed_web' SIZE 5 MINSIZE 5 MAXSIZE 5 COLOR 146 146 146 MINDISTANCE 150 ANTIALIAS TRUE PARTIALS FALSE MINFEATURESIZE 20 END END Where county_road is referencing a true type font glyph. I'm actually doing some other conversions to remove dependency on ANNOTATION layers and haven't run into any problems yet. Perhaps the problem isn't with the style placement in the label but rather the contents of the style. You'd get a parse error otherwise. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, February 23, 2017 1:48 PM To: bfraser at GeoAnalytic.com; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Road shields on Mapserver 7 Brent, I think your right. I was under the impression that STYLE could be within a LABEL object because since Mapserver 6.2 we could have multiple labels per class. Anyways, how can I add road shields in Mapserver 7? Apparently annotation layers have been removed. Thanks! Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 1:39 PM To: mapserver-users at lists.osgeo.org; Mark Volz > Subject: RE: [mapserver-users] Road shields on Mapserver 7 I don't think you can put a STYLE inside a LABEL. You could put it after the LABEL... ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 12:32 PM To: "bfraser at GeoAnalytic.com" >, "mapserver-users at lists.osgeo.org" > Subject: RE: [mapserver-users] Road shields on Mapserver 7 Brent, I am using Mapserver 7.0.4. Sincerely, Mark Volz, GISP From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz > Subject: re: [mapserver-users] Road shields on Mapserver 7 version of Mapserver? ________________________________ From: "Mark Volz" > Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] Road shields on Mapserver 7 Hello, I am having trouble adding road shields to my map. The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label. Please let me know What I can do to add road shields to my roads layer. CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 COLOR 227 159 2 END #STYLE LABEL TEXT '[ROADNUM]' SIZE 10 #for AGG FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 #STYLE ### Mapserver quits drawing this layer as soon as I uncomment this block #SYMBOL './symbols/USHWY.png' #END STYLE END #label END #class P.S. Eventually I will want to display both the road number shield and the road name as well. Thank You Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Fri Feb 24 08:25:24 2017 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 24 Feb 2017 16:25:24 +0000 (UTC) Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> Message-ID: <88277576.396936.1487953524240@mail.yahoo.com> Mark, Any layer class that has no NAME won't be displayed in the legend. Cheers From: Mark Volz To: "Lime, Steve D (MNIT)" ; "bfraser at GeoAnalytic.com" ; "mapserver-users at lists.osgeo.org" Sent: Friday, February 24, 2017 10:07 AM Subject: Re: [mapserver-users] Road shields on Mapserver 7 #yiv7409287684 #yiv7409287684 -- _filtered #yiv7409287684 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7409287684 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7409287684 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv7409287684 #yiv7409287684 p.yiv7409287684MsoNormal, #yiv7409287684 li.yiv7409287684MsoNormal, #yiv7409287684 div.yiv7409287684MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv7409287684 a:link, #yiv7409287684 span.yiv7409287684MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv7409287684 a:visited, #yiv7409287684 span.yiv7409287684MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv7409287684 p.yiv7409287684MsoListParagraph, #yiv7409287684 li.yiv7409287684MsoListParagraph, #yiv7409287684 div.yiv7409287684MsoListParagraph {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv7409287684 p.yiv7409287684msonormal0, #yiv7409287684 li.yiv7409287684msonormal0, #yiv7409287684 div.yiv7409287684msonormal0 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv7409287684 span.yiv7409287684EmailStyle18 {color:windowtext;}#yiv7409287684 span.yiv7409287684EmailStyle19 {color:#1F497D;}#yiv7409287684 span.yiv7409287684EmailStyle20 {color:#1F497D;}#yiv7409287684 span.yiv7409287684EmailStyle21 {color:#1F497D;}#yiv7409287684 span.yiv7409287684EmailStyle22 {color:#1F497D;}#yiv7409287684 .yiv7409287684MsoChpDefault {font-size:10.0pt;} _filtered #yiv7409287684 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv7409287684 div.yiv7409287684WordSection1 {}#yiv7409287684 _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {} _filtered #yiv7409287684 {}#yiv7409287684 ol {margin-bottom:0in;}#yiv7409287684 ul {margin-bottom:0in;}#yiv7409287684 Hello, ? Thank you everyone for your help.? I was able to get road shields to display.? I do have a couple follow up questions: ? First, In the legend, the shield covers up the US Highway line.? Is there a way to remove the shield from the legend, or make it the shield smaller on the legend than it is on the map? ? Second, I would like the roads to be labeled several times alternating between the street name and road shield.? For example, the road shield ?should be placed at positions 0, 500, 1000 and the road name should be placed at positions 250, 750, 1250.? I know that I could use REPEATDISTANCE to repeat the labels every 500 pixels, but is there something similar to INITIALGAP that will place the road name at an 250 pixel offset along the line? ? I should mention that I was able to cheat by text every 250 pixels, and the shield every 500 pixels.? This works because the text does not draw at positions 0, 500, 1000 because of the label conflict with the road shield, however I was wondering if there is a cleaner way to alternate labels between the street name and road shield. ? ? ? Sincerely, Mark Volz, ? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, February 23, 2017 1:57 PM To: Mark Volz ; bfraser at GeoAnalytic.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Road shields on Mapserver 7 ? You certainly can have STYLEs inside labels. I use this to do shields on county roads: ? ? CLASS ??? NAME 'County Road' ??? STYLE ????? COLOR 255 255 255 ????? WIDTH 1 MAXWIDTH 1.5 MINWIDTH .75 ????? OUTLINECOLOR 200 200 200 ????? OUTLINEWIDTH 1 ??? END ??? LABEL ????? STYLE # shield ??????? SYMBOL 'county_road' ??????? COLOR 255 255 255 ??????? OUTLINECOLOR 146 146 146 ??????? SIZE 13 MINSIZE 13 MAXSIZE 13 ??????? WIDTH .5 MINWIDTH .5 MAXWIDTH .5 ????? END ????? PRIORITY 1 ????? TYPE TRUETYPE ????? FONT 'myriad_condensed_web' ????? SIZE 5 MINSIZE 5 MAXSIZE 5 ????? COLOR 146 146 146 ????? MINDISTANCE 150 ????? ANTIALIAS TRUE ????? PARTIALS FALSE ????? MINFEATURESIZE 20 ??? END ? END ? Where county_road is referencing a true type font glyph. I?m actually doing some other conversions to remove dependency on ANNOTATION layers and haven?t run into any problems yet. Perhaps the problem isn?t with the style placement in the label but rather the contents of the style. You?d get a parse error otherwise. ? Steve ? ? From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org]On Behalf Of Mark Volz Sent: Thursday, February 23, 2017 1:48 PM To: bfraser at GeoAnalytic.com; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Road shields on Mapserver 7 ? Brent, ? I think your right.? ?I was under the impression that STYLE could be within a LABEL object because since Mapserver 6.2 we could have multiple labels per class.? ? Anyways, how can I add road shields in Mapserver 7?? Apparently annotation layers have been removed. ? Thanks! ? Sincerely, Mark Volz, GISP ? From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 1:39 PM To: mapserver-users at lists.osgeo.org; Mark Volz Subject: RE: [mapserver-users] Road shields on Mapserver 7 ? I don't think you can put a STYLE inside a LABEL.? You could put it after the LABEL... ? ? ? From: "Mark Volz" Sent: Thursday, February 23, 2017 12:32 PM To: "bfraser at GeoAnalytic.com" , "mapserver-users at lists.osgeo.org" Subject: RE: [mapserver-users] Road shields on Mapserver 7 ? Brent, ? I am using Mapserver 7.0.4. ? Sincerely, Mark Volz, GISP ? From: Brent Fraser [mailto:bfraser at GeoAnalytic.com] Sent: Thursday, February 23, 2017 12:17 PM To: mapserver-users at lists.osgeo.org; Mark Volz Subject: re: [mapserver-users] Road shields on Mapserver 7 ? version of Mapserver? ? ? ? From: "Mark Volz" Sent: Thursday, February 23, 2017 10:50 AM To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] Road shields on Mapserver 7 ? Hello, ? I am having trouble adding road shields to my map.? The label (and for that matter the entire class) quits drawing as soon as I uncomment the STYLE block under label.? Please let me know What I can do to add road shields to my roads layer. ? CLASS NAME "U.S. Highway" EXPRESSION "A10" STYLE WIDTH 5 COLOR 0 0 0 END #STYLE STYLE WIDTH 3 ??????????????? ??????????????? COLOR 227 159 2 ??????????????? END #STYLE ??????????????? LABEL TEXT '[ROADNUM]' ??????????????????????????????? SIZE 10 #for AGG ??????????????????????????????? FONT vera_sans? #for AGG ??????????????????????????????? MINFEATURESIZE 25 ??????????????????????????????? MINDISTANCE 200 #STYLE?? ###? Mapserver quits drawing this layer as soon as I uncomment this block ??????????????????????????????????????????????? #SYMBOL './symbols/USHWY.png' ??????????????????????????????? #END STYLE ??????????????? END #label????????????????????????????????????????? END #class ? P.S.? Eventually I will want to display both the road number shield and the road name as well. ? Thank You Sincerely, Mark Volz, GISP ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri Feb 24 09:25:07 2017 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 24 Feb 2017 17:25:07 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <88277576.396936.1487953524240@mail.yahoo.com> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> <88277576.396936.1487953524240@mail.yahoo.com> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA37C3667A0@swmail01.r8nssis.local> Carlos and others, I still would like to display the line for the highway class in my legend. It?s just the shield is too large for the legend so it either needs to be shrank or removed. I suppose I could cheat by adding two classes for each of my road types, but I don?t know if this is the cleanest solution. Please let me know if you have a better idea. Thank You CLASS # an unnamed class for the map NAME NOTHING #This class should not be displayed in the legend EXPRESSION ?A10? STYLE ? END STYLE LABEL ROAD SHEILD FOR THE MAP END LABEL END CLASS CLASS # A fake class for the legend NAME ?US HIGHWAYS? EXPRESSION ?999999? #This will never show up on the map as there are no segments with a value of 999999, but it should still show up on the legend. STYLE ? END STYLE LABEL POSSIBLE TINY ROAD SHEILD FOR THE LEGEND END LABEL END CLASS Sincerely, Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Fri Feb 24 11:43:51 2017 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Fri, 24 Feb 2017 20:43:51 +0100 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3667A0@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> <88277576.396936.1487953524240@mail.yahoo.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3667A0@swmail01.r8nssis.local> Message-ID: <17d97e31479122fba9df99596425abb2@blixtmail.se> 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 and shields in the same class would be too complex in my case. I guess that You could create a fake class with smaller shields for the legend.? But I haven't tried that. Best regards Lars -----Originalmeddelande----- Fr?n: "Mark Volz" Till: "Carlos Ruiz" , mapserver-users at lists.osgeo.org Datum: 2017-02-24 18:25 ?mne: Re: [mapserver-users] Road shields on Mapserver 7 Carlos and others, ? I still would like to display the line for the highway class in my legend.? It's just the shield is too large for the legend so it either needs to be shrank or removed.? I suppose I could cheat by adding two classes for each of my road types, but I don't know if this is the cleanest solution.? Please let me know if you have a better idea. ? Thank You ? CLASS # an unnamed class for the map ??????????????? NAME NOTHING #This class should not be displayed in the legend ??????????????? EXPRESSION 'A10' STYLE ??????????????????????????????? ? ??????????????? END STYLE ??????????????? LABEL ??????????????????????????????? ROAD SHEILD FOR THE MAP ??????????????? END LABEL END CLASS CLASS? # A fake class for the legend ??????????????? NAME 'US HIGHWAYS' ??????????????? EXPRESSION '999999' ?#This will never show up on the map as there are no segments with a value of 999999, but it should still show up on the legend. STYLE ??????????????????????????????? ? ??????????????? END STYLE ??????????????? LABEL ??????????????????????????????? POSSIBLE TINY ROAD SHEILD FOR THE LEGEND ??????????????? END LABEL END CLASS????????? ? ? Sincerely, Mark Volz _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Feb 26 07:58:41 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 26 Feb 2017 16:58:41 +0100 Subject: [mapserver-users] Define an End-Time attribute in WMS Time Message-ID: Hi, I need to define a WMS Time for using on an our dataset. But I need colud define also a End-Time attribute. Because a single feature has a start-time validity and an end-time validity. Searching for some workaround on internet, I see that this option (start-time and end-time of validity for a feature) is allowed in geoserver. http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions So I hope it could be done also possible in mapserver. Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Sun Feb 26 08:29:52 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 26 Feb 2017 12:29:52 -0400 Subject: [mapserver-users] Define an End-Time attribute in WMS Time In-Reply-To: References: Message-ID: Hi Andrea, The possible WMS Time parameters for MapServer are documented at: http://mapserver.org/ogc/wms_time.html There is a "wms_timeextent" parameter that sets the possible start/end time range, but I am not sure if I am understanding your question fully. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-02-26 11:58 AM, Andrea Peri wrote: > Hi, > I need to define a WMS Time for using on an our dataset. > But I need colud define also a End-Time attribute. Because a single > feature has a > start-time validity and an end-time validity. > > Searching for some workaround on internet, I see that this option > (start-time and end-time of validity for a feature) is allowed in > geoserver. > > http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions > > So I hope it could be done also possible in mapserver. > > Thx. > > From aperi2007 at gmail.com Sun Feb 26 09:32:18 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 26 Feb 2017 18:32:18 +0100 Subject: [mapserver-users] Define an End-Time attribute in WMS Time In-Reply-To: References: Message-ID: Hi Jeff. I was understanding the wms_timeextend as defined in the annex C3 of OGC. AFAIK it is the domains of availability for the values in the time-field in all the dataset But is always one only attribute. This is ok for spot events. Instead when there is a dataset where every feature is a start-date and an end-date of validity for every single feature of dataset. As example: the dataset of county boundaries. Sometime the county bounaries could change so they have a startdate and an enddate. So is need to define both: the end-date and the start-date using two attribute fields. I wrong to understand the wms_timeextend ? Thx, A. 2017-02-26 17:29 GMT+01:00 Jeff McKenna : > Hi Andrea, > > The possible WMS Time parameters for MapServer are documented at: > http://mapserver.org/ogc/wms_time.html There is a "wms_timeextent" > parameter that sets the possible start/end time range, but I am not sure if > I am understanding your question fully. > > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2017-02-26 11:58 AM, Andrea Peri wrote: >> >> Hi, >> I need to define a WMS Time for using on an our dataset. >> But I need colud define also a End-Time attribute. Because a single >> feature has a >> start-time validity and an end-time validity. >> >> Searching for some workaround on internet, I see that this option >> (start-time and end-time of validity for a feature) is allowed in >> geoserver. >> >> >> http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions >> >> So I hope it could be done also possible in mapserver. >> >> Thx. >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From joehogan at gmx.com Sun Feb 26 20:54:38 2017 From: joehogan at gmx.com (Joe Hogan) Date: Sun, 26 Feb 2017 23:54:38 -0500 Subject: [mapserver-users] Possible application questions In-Reply-To: References: <64f1c3e3-4bce-aa28-dde7-18ef444dbec7@gmx.com> Message-ID: <149ffd6d-9cd7-19c1-26c3-da948aeb7e9e@gmx.com> Hello Steve Thanks for your feedback so far. It is slowly painting a picture for me. Before we start the CRM DB, we need ot determine if a mapping software can with with the CRM DB. You seem to say this. We do not want to start the DB in a software, only have to export it once done, to a new DB software. The Ma[pserver part wil be done once the DB part is done. Why, the budget is ready for the DB part, but not yet for the mapserver part. So, a simple scenario would be: -My CRM database is populated with various data concerning projects that we want to map out in Map server, including longitude and latitude. This coudl include: year, budget, different project paramaters, etc... -Mapserver is configured to be able to read the CRM DB. There will be various fields that will be searchable by definable fields in Mapserver. -Mapserver is able to peruse through the CRM DB and grab the data that it needs to display on the map, according to defined choices in our search. -Mapserver displays the files that meet the given criteria. This sound right? Those points that are displayed, are they clickable? IF so (for my project they need to be clickable, or the people doing the search will not be able to see details on the files that meet the criteria), how to we determine what is displayed? If it is displayed, we will want to display additional information that what query criteria. Last question before I sign off. Like I state, we are looking at CRM to do this system. It seems to be much easier than building a new interface and database. The CRM is well advanced, very flexible, modifiable and a great price that fits our budget. By removing a few modules, it seems to suit the project well. When we have a project in the CRM, there are hard data typed right into the profile: name, year, budget, etc... But, we also have data that is "linked" to the project, like: Companies and individuals. This is different from the hard data. Hard data has a field, and whether you enter something in the field or note, the full or empty field is displayed. For the "linked" style, there is a heading, but if there are no "linked" files, nothing is displayed. But, if there are things to display, the page adjusts downward to accommodate the entries. Can we have Mapserver grab the names of these "linked" files? Thanks! Joseph On 02/22/2017 09:32 AM, Steve.Toutant at inspq.qc.ca wrote: > WMS and WFS are ogc standards to share maps over the web, intranet ... > https://en.wikipedia.org/wiki/Web_Map_Service > > You will not export data from the database. Mapserver will be > connected to your mysql DB and render maps as a service. > Those services can be viewed by gis softwares or web applications > steve > > > > > De : Joe Hogan > A : Steve.Toutant at inspq.qc.ca > Cc : mapserver-users at lists.osgeo.org > Date : 2017-02-21 11:14 > Objet : Re: [mapserver-users] Possible application questions > ------------------------------------------------------------------------ > > > > Hello Steve, > > Thanks for the reassuring news. We have found our possible solution. > > The CRM software has not yet been modified, but it will have the two > fields for the Longitude and Latitude. > > Other fields will be used as well, and we will have to add more for > those. > > When you say it has to provide wms/wfs services, what does that mean? > I found the 9nitials, but what does it mean? > > Is it a special format? Like I need to export the data from the data > base into a certain format? > > Sorry for the newbie questions, but I am learning:) > > Thanks > > Joseph > > > On 02/21/2017 08:48 AM, _Steve.Toutant at inspq.qc.ca_ > wrote: > > hi Joseph > Yes mapserver can be used for your application by providing wms/wfs > services > Here are some links that can help > #connect to mysql_ > __http://mapserver.org/input/vector/mysql.html_ > > #filters...Runtime substitution_ > __http://mapserver.org/cgi/runsub.html_ > > Do you have latitude/longitude data in your database, or any other > georeference that can be used to render on a map? > Steve > > > -----"mapserver-users" __ > a ?crit : ----- > A : _mapserver-users at lists.osgeo.org_ > > De : Joe Hogan > Envoy? par : "mapserver-users" > Date : 20/02/2017 11:12 > Objet : [mapserver-users] Possible application questions > > Hello, > > I am writing to ask if MapServer will work for our application. > > We are working on a project that will allow us to place on a map of our > country various projects. We want to be able to filter them based on > various pieces of information, including, for example: > > year of project > population > project budget > etc... > > We are compiling the data in a CRM(MySQL database), and want to use the > data from the CRM to feed the mapping software. > > 1 - can I map the type fo information that I need? > 2 - can we use the data directly from the CRM database if we tell the > mapping software what data to use(so t can be read on the fly, live from > the database?), or does it need to be exported before using in the > mapping software? > 3 - It it needs to be in its own exported format, how to I get it from > MtSQL to the correct format? > > > Thanks for any and all help. > > Joseph > > _______________________________________________ > mapserver-users mailing list_ > __mapserver-users at lists.osgeo.org_ > _ > __https://lists.osgeo.org/mailman/listinfo/mapserver-users_ > > Si vous n'?tes pas le destinataire de ce message, veuillez le d?truire > pr?s avoir inform? l'exp?diteur de son erreur. Par ailleurs, il est > interdit de copier ou de modifier ce courriel sans l'autorisation de > l'auteur. > > L'Institut national de sant? publique du Qu?bec n'assume aucune > responsabilit? ? l'?gard du contenu des messages personnels envoy?s > par ses employ?s. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From edigiacomo at arpae.it Sun Feb 26 22:48:07 2017 From: edigiacomo at arpae.it (Emanuele Di Giacomo) Date: Mon, 27 Feb 2017 07:48:07 +0100 Subject: [mapserver-users] Define an End-Time attribute in WMS Time In-Reply-To: References: Message-ID: Hi Andrea, if you need two datetime attributes for each feature (in your example, for each county), you can use custom dimensions http://mapserver.org/ogc/wms_dimension.html. Emanuele On Sun, Feb 26, 2017 at 6:32 PM, Andrea Peri wrote: > Hi Jeff. > > I was understanding the wms_timeextend as defined in the annex C3 of OGC. > AFAIK it is the domains of availability for the values in the > time-field in all the dataset > > But is always one only attribute. This is ok for spot events. Instead > when there is a dataset where every feature is a start-date and an > end-date of validity for every single feature of dataset. > > As example: > the dataset of county boundaries. Sometime the county bounaries could > change so they have a startdate and an enddate. > So is need to define both: the end-date and the start-date using two > attribute fields. > > I wrong to understand the wms_timeextend ? > > Thx, > A. > > > 2017-02-26 17:29 GMT+01:00 Jeff McKenna : >> Hi Andrea, >> >> The possible WMS Time parameters for MapServer are documented at: >> http://mapserver.org/ogc/wms_time.html There is a "wms_timeextent" >> parameter that sets the possible start/end time range, but I am not sure if >> I am understanding your question fully. >> >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 2017-02-26 11:58 AM, Andrea Peri wrote: >>> >>> Hi, >>> I need to define a WMS Time for using on an our dataset. >>> But I need colud define also a End-Time attribute. Because a single >>> feature has a >>> start-time validity and an end-time validity. >>> >>> Searching for some workaround on internet, I see that this option >>> (start-time and end-time of validity for a feature) is allowed in >>> geoserver. >>> >>> >>> http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions >>> >>> So I hope it could be done also possible in mapserver. >>> >>> Thx. >>> >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Sun Feb 26 23:26:43 2017 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 27 Feb 2017 08:26:43 +0100 Subject: [mapserver-users] Define an End-Time attribute in WMS Time In-Reply-To: References: Message-ID: I see it. You have right infact I could define something like: wms_dimensionlist: = start_date, end_date wms_start_date_item= time wms_end_date_item= time wms_start_date_extent= "1900/01/01" wms_end_date_extent= "2999/01/01" wms_start_date_default=current wms_end_date_default=current This could be a solution on wms server side, but on client side it need to have a wms client able to understant wms-dimension. Actually my client interface is able to recognize and use a wms-time but not able to recognize and use correctly a wms-dimensional from getcapabilities. :( A. 2017-02-27 7:48 GMT+01:00 Emanuele Di Giacomo : > Hi Andrea, > if you need two datetime attributes for each feature (in your example, > for each county), you can use custom dimensions > http://mapserver.org/ogc/wms_dimension.html. > > Emanuele > > > On Sun, Feb 26, 2017 at 6:32 PM, Andrea Peri wrote: >> Hi Jeff. >> >> I was understanding the wms_timeextend as defined in the annex C3 of OGC. >> AFAIK it is the domains of availability for the values in the >> time-field in all the dataset >> >> But is always one only attribute. This is ok for spot events. Instead >> when there is a dataset where every feature is a start-date and an >> end-date of validity for every single feature of dataset. >> >> As example: >> the dataset of county boundaries. Sometime the county bounaries could >> change so they have a startdate and an enddate. >> So is need to define both: the end-date and the start-date using two >> attribute fields. >> >> I wrong to understand the wms_timeextend ? >> >> Thx, >> A. >> >> >> 2017-02-26 17:29 GMT+01:00 Jeff McKenna : >>> Hi Andrea, >>> >>> The possible WMS Time parameters for MapServer are documented at: >>> http://mapserver.org/ogc/wms_time.html There is a "wms_timeextent" >>> parameter that sets the possible start/end time range, but I am not sure if >>> I am understanding your question fully. >>> >>> >>> -jeff >>> >>> >>> -- >>> Jeff McKenna >>> MapServer Consulting and Training Services >>> http://www.gatewaygeomatics.com/ >>> >>> >>> >>> On 2017-02-26 11:58 AM, Andrea Peri wrote: >>>> >>>> Hi, >>>> I need to define a WMS Time for using on an our dataset. >>>> But I need colud define also a End-Time attribute. Because a single >>>> feature has a >>>> start-time validity and an end-time validity. >>>> >>>> Searching for some workaround on internet, I see that this option >>>> (start-time and end-time of validity for a feature) is allowed in >>>> geoserver. >>>> >>>> >>>> http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions >>>> >>>> So I hope it could be done also possible in mapserver. >>>> >>>> Thx. >>>> >>>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From bjorn.danielsson at falubo.se Mon Feb 27 01:04:33 2017 From: bjorn.danielsson at falubo.se (=?iso-8859-1?Q?Bj=F6rn?= Danielsson) Date: Mon, 27 Feb 2017 10:04:33 +0100 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <394941d3a58ecbb82fb285ddfa42e7f8@blixtmail.se> References: <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> <394941d3a58ecbb82fb285ddfa42e7f8@blixtmail.se> Message-ID: Interesting discussion! I have an issue with geotransform 'labelpnt' I so far have failed to solve. Consider a line that depicts a creek. Sometimes it is important to show the direction of flow. That is mostly achieved on maps by placing arrows along the creek showing which way the water flows. I have tried to use LABEL and GEOMTRANSFORM 'labelpoint' with an arrow symbol and where the label has no text but has REPEATDISTANCE and ANGLE. Problem is that the symbol is not affected by ANGLE ( neither FOLLOW, AUTO or AUTO2 ). Does anybody know how to rotate labelpoint symbols or is it not possible?. Plan B is to use a LABEL with TEXT = ">" which works fine but is not that elegant. Bj?rn D -----Original Message----- From: lars.schylberg at blixtmail.se To: mapserver-users at lists.osgeo.org Date: Thu, 23 Feb 2017 21:15:36 +0100 Subject: Re: [mapserver-users] Road shields on Mapserver 7 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]$' ) # Blue two digits STYLE GEOMTRANSFORM "labelpnt" SYMBOL VAGNRBOX COLOR 64 168 217 SIZE 10 END TEXT '[VAGNR1]' FONT 'sc' TYPE truetype POSITION cc COLOR 255 255 255 SIZE 7 # FORCE: TRUE REPEATDISTANCE 150 MINDISTANCE 300 PRIORITY 2 END -----Originalmeddelande----- Fr?n: lars.schylberg at blixtmail.se [mailto:lars.schylberg at blixtmail.se] Till: mapserver-users at lists.osgeo.org [mailto:mapserver-users at lists.osgeo.org] Datum: 2017-02-23 21:04 ?mne: Re: [mapserver-users] Road shields on Mapserver 7 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 CLASS EXPRESSION ("[VAGNR1]" ~ "^[E0-9]*$" AND "[VAGNR2]" ~ "^[E0-9]*$" AND "[VAGNR3]" ~ "^[E0-9]*$" ) LABEL EXPRESSION ('[VAGNR1]' ~ '^E.$') # first shield - green - one digit STYLE GEOMTRANSFORM "labelpnt" SYMBOL VAGNRBOX COLOR 115 179 115 OFFSET 0 -13 SIZE 10 END TEXT '[VAGNR1]' FONT 'sc' TYPE truetype POSITION CC COLOR 255 255 255 SIZE 7 OFFSET 0 -13 REPEATDISTANCE 100 MINDISTANCE 100 PRIORITY 9 FORCE GROUP END LABEL EXPRESSION ('[VAGNR1]' ~ '^E..$') # first shield - green - two digits STYLE GEOMTRANSFORM "labelpnt" SYMBOL VAGNRBOX_3TKN COLOR 115 179 115 OFFSET 0 -13 SIZE 10 END TEXT '[VAGNR1]' FONT 'sc' TYPE truetype POSITION CC COLOR 255 255 255 SIZE 7 OFFSET 0 -13 REPEATDISTANCE 100 MINDISTANCE 100 PRIORITY 9 FORCE GROUP END_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [mailto:mapserver-users at lists.osgeo.org] https://lists.osgeo.org/mailman/listinfo/mapserver-users [https://lists.osgeo.org/mailman/listinfo/mapserver-users] -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Mon Feb 27 06:30:04 2017 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Mon, 27 Feb 2017 09:30:04 -0500 Subject: [mapserver-users] Possible application questions In-Reply-To: <149ffd6d-9cd7-19c1-26c3-da948aeb7e9e@gmx.com> References: <64f1c3e3-4bce-aa28-dde7-18ef444dbec7@gmx.com> <149ffd6d-9cd7-19c1-26c3-da948aeb7e9e@gmx.com> Message-ID: I don't understand what you mean by "-Mapserver displays the files that meet the given criteria. " and linked files There is a GetFeatureInfo request in WMS spec, so yes by clicking on a feature that could launch a request. The fields to query are specified in the mapfile. I think it is time to learn what a mapfile is and how it interacts with data. There are severals basics tutorials available so you can quickly understand how it works Steve De : Joe Hogan A : Steve.Toutant at inspq.qc.ca Cc : mapserver-users at lists.osgeo.org Date : 2017-02-26 23:55 Objet : Re: [mapserver-users] Possible application questions Hello Steve Thanks for your feedback so far. It is slowly painting a picture for me. Before we start the CRM DB, we need ot determine if a mapping software can with with the CRM DB. You seem to say this. We do not want to start the DB in a software, only have to export it once done, to a new DB software. The Ma[pserver part wil be done once the DB part is done. Why, the budget is ready for the DB part, but not yet for the mapserver part. So, a simple scenario would be: -My CRM database is populated with various data concerning projects that we want to map out in Map server, including longitude and latitude. This coudl include: year, budget, different project paramaters, etc... -Mapserver is configured to be able to read the CRM DB. There will be various fields that will be searchable by definable fields in Mapserver. -Mapserver is able to peruse through the CRM DB and grab the data that it needs to display on the map, according to defined choices in our search. -Mapserver displays the files that meet the given criteria. This sound right? Those points that are displayed, are they clickable? IF so (for my project they need to be clickable, or the people doing the search will not be able to see details on the files that meet the criteria), how to we determine what is displayed? If it is displayed, we will want to display additional information that what query criteria. Last question before I sign off. Like I state, we are looking at CRM to do this system. It seems to be much easier than building a new interface and database. The CRM is well advanced, very flexible, modifiable and a great price that fits our budget. By removing a few modules, it seems to suit the project well. When we have a project in the CRM, there are hard data typed right into the profile: name, year, budget, etc... But, we also have data that is "linked" to the project, like: Companies and individuals. This is different from the hard data. Hard data has a field, and whether you enter something in the field or note, the full or empty field is displayed. For the "linked" style, there is a heading, but if there are no "linked" files, nothing is displayed. But, if there are things to display, the page adjusts downward to accommodate the entries. Can we have Mapserver grab the names of these "linked" files? Thanks! Joseph On 02/22/2017 09:32 AM, Steve.Toutant at inspq.qc.ca wrote: WMS and WFS are ogc standards to share maps over the web, intranet ... https://en.wikipedia.org/wiki/Web_Map_Service You will not export data from the database. Mapserver will be connected to your mysql DB and render maps as a service. Those services can be viewed by gis softwares or web applications steve De : Joe Hogan A : Steve.Toutant at inspq.qc.ca Cc : mapserver-users at lists.osgeo.org Date : 2017-02-21 11:14 Objet : Re: [mapserver-users] Possible application questions Hello Steve, Thanks for the reassuring news. We have found our possible solution. The CRM software has not yet been modified, but it will have the two fields for the Longitude and Latitude. Other fields will be used as well, and we will have to add more for those. When you say it has to provide wms/wfs services, what does that mean? I found the 9nitials, but what does it mean? Is it a special format? Like I need to export the data from the data base into a certain format? Sorry for the newbie questions, but I am learning:) Thanks Joseph On 02/21/2017 08:48 AM, Steve.Toutant at inspq.qc.ca wrote: hi Joseph Yes mapserver can be used for your application by providing wms/wfs services Here are some links that can help #connect to mysql http://mapserver.org/input/vector/mysql.html #filters...Runtime substitution http://mapserver.org/cgi/runsub.html Do you have latitude/longitude data in your database, or any other georeference that can be used to render on a map? Steve -----"mapserver-users" a ?crit : ----- A : mapserver-users at lists.osgeo.org De : Joe Hogan Envoy? par : "mapserver-users" Date : 20/02/2017 11:12 Objet : [mapserver-users] Possible application questions Hello, I am writing to ask if MapServer will work for our application. We are working on a project that will allow us to place on a map of our country various projects. We want to be able to filter them based on various pieces of information, including, for example: year of project population project budget etc... We are compiling the data in a CRM(MySQL database), and want to use the data from the CRM to feed the mapping software. 1 - can I map the type fo information that I need? 2 - can we use the data directly from the CRM database if we tell the mapping software what data to use(so t can be read on the fly, live from the database?), or does it need to be exported before using in the mapping software? 3 - It it needs to be in its own exported format, how to I get it from MtSQL to the correct format? Thanks for any and all help. Joseph _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users Si vous n'?tes pas le destinataire de ce message, veuillez le d?truire pr?s avoir inform? l'exp?diteur de son erreur. Par ailleurs, il est interdit de copier ou de modifier ce courriel sans l'autorisation de l'auteur. L'Institut national de sant? publique du Qu?bec n'assume aucune responsabilit? ? l'?gard du contenu des messages personnels envoy?s par ses employ?s. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 27 07:02:32 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 27 Feb 2017 10:02:32 -0500 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: References: <751be252d3dd499e8ac4969f2de26249@GeoAnalytic.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> <394941d3a58ecbb82fb285ddfa42e7f8@blixtmail.se> Message-ID: <0c70fb84-ef17-4720-33cb-36f4a6991096@swoodbridge.com> Don't use the geotransform labelpnt, in fact don't label it: symbol name "arrow-north" type truetype font arrows character "" filled true end LABEL ... CLASS STYLE COLOR "#444488" SIZE 8 END END CLASS STYLE SYMBOL "arrow-north" GAP -60 ANGLE -90 COLOR "#555555" SIZE 8 END END END -Steve W On 2/27/2017 4:04 AM, Bj?rn Danielsson wrote: > Interesting discussion! > I have an issue with geotransform 'labelpnt' I so far have failed to solve. > > Consider a line that depicts a creek. Sometimes it is important to show > the direction of flow. That is mostly achieved on maps by placing arrows > along the creek showing which way the water flows. > > I have tried to use LABEL and GEOMTRANSFORM 'labelpoint' with an arrow > symbol and where the label has no text but has REPEATDISTANCE and ANGLE. > Problem is that the symbol is not affected by ANGLE ( neither FOLLOW, > AUTO or AUTO2 ). Does anybody know how to rotate labelpoint symbols or > is it not possible?. > > Plan B is to use a LABEL with TEXT = ">" which works fine but is not > that elegant. > > Bj?rn D > > > -----Original Message----- > From: lars.schylberg at blixtmail.se > To: mapserver-users at lists.osgeo.org > Date: Thu, 23 Feb 2017 21:15:36 +0100 > Subject: Re: [mapserver-users] Road shields on Mapserver 7 > > 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]$' ) > # Blue two digits > STYLE > GEOMTRANSFORM "labelpnt" > SYMBOL VAGNRBOX > COLOR 64 168 217 > SIZE 10 > END > TEXT '[VAGNR1]' > FONT 'sc' > TYPE truetype > POSITION cc > COLOR 255 255 255 > SIZE 7 > # FORCE: TRUE > REPEATDISTANCE 150 > MINDISTANCE 300 > PRIORITY 2 > END > > > > ------------------------------------------------------------------------ > -----Originalmeddelande----- > Fr?n: lars.schylberg at blixtmail.se > > Till: mapserver-users at lists.osgeo.org > > Datum: 2017-02-23 21:04 > ?mne: Re: [mapserver-users] Road shields on Mapserver 7 > > > > 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 > > > CLASS > EXPRESSION ("[VAGNR1]" ~ "^[E0-9]*$" AND "[VAGNR2]" > ~ "^[E0-9]*$" AND "[VAGNR3]" ~ "^[E0-9]*$" ) > LABEL > EXPRESSION ('[VAGNR1]' ~ '^E.$') > # first shield - green - one digit > STYLE > GEOMTRANSFORM "labelpnt" > SYMBOL VAGNRBOX > COLOR 115 179 115 > OFFSET 0 -13 > SIZE 10 > END > TEXT '[VAGNR1]' > FONT 'sc' > TYPE truetype > POSITION CC > COLOR 255 255 255 > SIZE 7 > OFFSET 0 -13 > REPEATDISTANCE 100 > MINDISTANCE 100 > PRIORITY 9 > FORCE GROUP > END > LABEL > EXPRESSION ('[VAGNR1]' ~ '^E..$') > # first shield - green - two digits > STYLE > GEOMTRANSFORM "labelpnt" > SYMBOL VAGNRBOX_3TKN > COLOR 115 179 115 > OFFSET 0 -13 > SIZE 10 > END > TEXT '[VAGNR1]' > FONT 'sc' > TYPE truetype > POSITION CC > COLOR 255 255 255 > SIZE 7 > OFFSET 0 -13 > REPEATDISTANCE 100 > MINDISTANCE 100 > PRIORITY 9 > FORCE GROUP > END > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bob.basques at ci.stpaul.mn.us Mon Feb 27 07:54:22 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 27 Feb 2017 15:54:22 +0000 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA37C3667A0@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA37C366742@swmail01.r8nssis.local> <88277576.396936.1487953524240@mail.yahoo.com> <36CA828A36E29F45B7CF0A1766E5DFA37C3667A0@swmail01.r8nssis.local> Message-ID: <43D9266B-25DB-4028-847C-BB376C794CB9@ci.stpaul.mn.us> All, You can do the Legend the way you want by just setting up a dummy layer specifically for scaling and styling the Legends. Turn off the NAME value in the ?draw? (real) layer, and turn it on in the dummy layer just for displaying the Legend. You can then scale the Sheilds in the Legends separately from the Linework in the map output. There?s probably some negligible overhead to this route of course, you should do some speed testing for large images in particular. bobb On Feb 24, 2017, at 11:25 AM, Mark Volz > wrote: Carlos and others, I still would like to display the line for the highway class in my legend. It?s just the shield is too large for the legend so it either needs to be shrank or removed. I suppose I could cheat by adding two classes for each of my road types, but I don?t know if this is the cleanest solution. Please let me know if you have a better idea. Thank You CLASS # an unnamed class for the map NAME NOTHING #This class should not be displayed in the legend EXPRESSION ?A10? STYLE ? END STYLE LABEL ROAD SHEILD FOR THE MAP END LABEL END CLASS CLASS # A fake class for the legend NAME ?US HIGHWAYS? EXPRESSION ?999999? #This will never show up on the map as there are no segments with a value of 999999, but it should still show up on the legend. STYLE ? END STYLE LABEL POSSIBLE TINY ROAD SHEILD FOR THE LEGEND END LABEL END CLASS Sincerely, Mark Volz _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "Fill what's empty, empty what's full, and scratch where it itches." - the Duchess of Windsor, when asked what is the secret of a long and happy life -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.leroux at canada.ca Mon Feb 27 08:01:00 2017 From: alexandre.leroux at canada.ca (Leroux, Alexandre (EC)) Date: Mon, 27 Feb 2017 16:01:00 +0000 Subject: [mapserver-users] Define an End-Time attribute in WMS Time References: Message-ID: Hi all, Related to this discussion, there's the OGC Best Practice for using Web Map Services (WMS) with Time-Dependent or Elevation-Dependent Data: http://www.opengis.net/doc/bp/wms-tnz/1.0 Regards -- Alex Alexandre Leroux, M.Sc., ing. Senior geospatial specialist / Sp?cialiste principal en g?omatique Data, Performance and Standards Section / Section des Donn?es, performance et standards Meteorological Service of Canada / Service m?t?orologique du Canada Environment and Climate Change Canada / Environnement et Changement climatique Canada alexandre.leroux at canada.ca - (514) 421-5024 On 02/27/2017 02:26 AM, Andrea Peri wrote: I see it. You have right infact I could define something like: wms_dimensionlist: = start_date, end_date wms_start_date_item= time wms_end_date_item= time wms_start_date_extent= "1900/01/01" wms_end_date_extent= "2999/01/01" wms_start_date_default=current wms_end_date_default=current This could be a solution on wms server side, but on client side it need to have a wms client able to understant wms-dimension. Actually my client interface is able to recognize and use a wms-time but not able to recognize and use correctly a wms-dimensional from getcapabilities. :( A. 2017-02-27 7:48 GMT+01:00 Emanuele Di Giacomo : Hi Andrea, if you need two datetime attributes for each feature (in your example, for each county), you can use custom dimensions http://mapserver.org/ogc/wms_dimension.html. Emanuele On Sun, Feb 26, 2017 at 6:32 PM, Andrea Peri wrote: Hi Jeff. I was understanding the wms_timeextend as defined in the annex C3 of OGC. AFAIK it is the domains of availability for the values in the time-field in all the dataset But is always one only attribute. This is ok for spot events. Instead when there is a dataset where every feature is a start-date and an end-date of validity for every single feature of dataset. As example: the dataset of county boundaries. Sometime the county bounaries could change so they have a startdate and an enddate. So is need to define both: the end-date and the start-date using two attribute fields. I wrong to understand the wms_timeextend ? Thx, A. 2017-02-26 17:29 GMT+01:00 Jeff McKenna : Hi Andrea, The possible WMS Time parameters for MapServer are documented at: http://mapserver.org/ogc/wms_time.html There is a "wms_timeextent" parameter that sets the possible start/end time range, but I am not sure if I am understanding your question fully. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-02-26 11:58 AM, Andrea Peri wrote: Hi, I need to define a WMS Time for using on an our dataset. But I need colud define also a End-Time attribute. Because a single feature has a start-time validity and an end-time validity. Searching for some workaround on internet, I see that this option (start-time and end-time of validity for a feature) is allowed in geoserver. http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions So I hope it could be done also possible in mapserver. Thx. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 27 13:48:50 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 27 Feb 2017 16:48:50 -0500 Subject: [mapserver-users] Road shields on Mapserver 7 In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA37C3665AF@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA37C3665DB@swmail01.r8nssis.local> <41f33ebcce51a9a099f8f49653daec70@blixtmail.se> <394941d3a58ecbb82fb285ddfa42e7f8@blixtmail.se> <0c70fb84-ef17-4720-33cb-36f4a6991096@swoodbridge.com> Message-ID: I think this explains how to do it: http://gis.stackexchange.com/questions/157472/mapserver-symbol-v-line-style-that-automatically-follows-line-direction On 2/27/2017 3:54 PM, Bj?rn Danielsson wrote: > Hello and thanks for answering! > > Look at the attached png. > I would like to replace the '>' on the line with the little red arrow > symbol at the top. > > 'Riktning' means direction. That is if the flow of the creek has the > same direction as the 'flow' of the line, or not. > > Mapfile: > > CLASS > NAME "b?ck/dike" > EXPRESSION ("[TYP]"="40") > STYLE > COLOR 0 0 255 > WIDTH 3 > END > > # STYLE > # GEOMTRANSFORM "start" > # SYMBOL "pil3" > # SIZE 10 > # ANGLE AUTO > # END > > LABEL > EXPRESSION ("[riktning]"="R") > TEXT ">" > COLOR "#ffffff" > OUTLINECOLOR "#0000ff" > SIZE 10 > POSITION CC > REPEATDISTANCE 75 > ANGLE AUTO2 > FORCE TRUE > END > LABEL > EXPRESSION ("[riktning]"="F") > TEXT "<" > COLOR "#ffffff" > OUTLINECOLOR "#0000ff" > SIZE 10 > POSITION CC > REPEATDISTANCE 75 > ANGLE AUTO2 > FORCE TRUE > END > LABEL > TEXT "[text]" > COLOR 0 0 255 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS FALSE > POSITION CC > PARTIALS FALSE > FORCE TRUE > MINDISTANCE 0 > BUFFER 0 > ANGLE FOLLOW > MAXOVERLAPANGLE 180 > OFFSET 7 99 > END > END > > Bj?rn Danielsson > > -----Original Message----- > From: Stephen Woodbridge > To: mapserver-users at lists.osgeo.org > Date: Mon, 27 Feb 2017 10:02:32 -0500 > Subject: Re: [mapserver-users] Road shields on Mapserver 7 > > Don't use the geotransform labelpnt, in fact don't label it: > > symbol > name "arrow-north" > type truetype > font arrows > character "" > filled true > end > LABEL > ... > CLASS > STYLE > COLOR "#444488" > SIZE 8 > END > END > CLASS > STYLE > SYMBOL "arrow-north" > GAP -60 > ANGLE -90 > COLOR "#555555" > SIZE 8 > END > END > END > > -Steve W > > On 2/27/2017 4:04 AM, Bj?rn Danielsson wrote: > > Interesting discussion! > > I have an issue with geotransform 'labelpnt' I so far have failed > to solve. > > > > Consider a line that depicts a creek. Sometimes it is important to > show > > the direction of flow. That is mostly achieved on maps by placing > arrows > > along the creek showing which way the water flows. > > > > I have tried to use LABEL and GEOMTRANSFORM 'labelpoint' with an arrow > > symbol and where the label has no text but has REPEATDISTANCE and > ANGLE. > > Problem is that the symbol is not affected by ANGLE ( neither FOLLOW, > > AUTO or AUTO2 ). Does anybody know how to rotate labelpoint symbols or > > is it not possible?. > > > > Plan B is to use a LABEL with TEXT = ">" which works fine but is not > > that elegant. > > > > Bj?rn D > > > > > > -----Original Message----- > > From: lars.schylberg at blixtmail.se > > > To: mapserver-users at lists.osgeo.org > > > Date: Thu, 23 Feb 2017 21:15:36 +0100 > > Subject: Re: [mapserver-users] Road shields on Mapserver 7 > > > > 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]$' ) > > # Blue two digits > > STYLE > > GEOMTRANSFORM "labelpnt" > > SYMBOL VAGNRBOX > > COLOR 64 168 217 > > SIZE 10 > > END > > TEXT '[VAGNR1]' > > FONT 'sc' > > TYPE truetype > > POSITION cc > > COLOR 255 255 255 > > SIZE 7 > > # FORCE: TRUE > > REPEATDISTANCE 150 > > MINDISTANCE 300 > > PRIORITY 2 > > END > > > > > > > > > ------------------------------------------------------------------------ > > -----Originalmeddelande----- > > Fr?n: lars.schylberg at blixtmail.se > > > > > > Till: mapserver-users at lists.osgeo.org > > > > > > Datum: 2017-02-23 21:04 > > ?mne: Re: [mapserver-users] Road shields on Mapserver 7 > > > > > > > > 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 > > > > > > CLASS > > EXPRESSION ("[VAGNR1]" ~ "^[E0-9]*$" AND > "[VAGNR2]" > > ~ "^[E0-9]*$" AND "[VAGNR3]" ~ "^[E0-9]*$" ) > > LABEL > > EXPRESSION ('[VAGNR1]' ~ '^E.$') > > # first shield - green - one digit > > STYLE > > GEOMTRANSFORM "labelpnt" > > SYMBOL VAGNRBOX > > COLOR 115 179 115 > > OFFSET 0 -13 > > SIZE 10 > > END > > TEXT '[VAGNR1]' > > FONT 'sc' > > TYPE truetype > > POSITION CC > > COLOR 255 255 255 > > SIZE 7 > > OFFSET 0 -13 > > REPEATDISTANCE 100 > > MINDISTANCE 100 > > PRIORITY 9 > > FORCE GROUP > > END > > LABEL > > EXPRESSION ('[VAGNR1]' ~ '^E..$') > > # first shield - green - two digits > > STYLE > > GEOMTRANSFORM "labelpnt" > > SYMBOL VAGNRBOX_3TKN > > COLOR 115 179 115 > > OFFSET 0 -13 > > SIZE 10 > > END > > TEXT '[VAGNR1]' > > FONT 'sc' > > TYPE truetype > > POSITION CC > > COLOR 255 255 255 > > SIZE 7 > > OFFSET 0 -13 > > REPEATDISTANCE 100 > > MINDISTANCE 100 > > PRIORITY 9 > > FORCE GROUP > > END > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From pieter.callewaert at be-mobile.com Tue Feb 28 05:43:32 2017 From: pieter.callewaert at be-mobile.com (Pieter Callewaert) Date: Tue, 28 Feb 2017 13:43:32 +0000 Subject: [mapserver-users] Mapcache segmentation faults under high load Message-ID: Hi, We are trying to add mapcache to our stack, because in the last years the number of requests on our mapservers kept increasing, and we are looking for smarter ways to scale. We have a test setup, and on low load everything works perfectly. An ab benchmark on a single requests has also no problem. However, when we try to replay some production data on the mapcache server, with 500 concurrent users, we see the following errors in apache error log: [Tue Feb 28 12:50:33.789479 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 793 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:34.791605 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1384 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:35.792510 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1346 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:38.795504 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1338 exit signal Segmentation fault (11), possible coredump in /etc/apache2 And also: [Tue Feb 28 12:54:49.804880 2017] [:error] [pid 8256:tid 140568096990976] [client xxx.xxx.xxx.xxx:59612] deleting a possibly stale lock after waiting on it for 30.034 seconds [Tue Feb 28 12:54:49.815800 2017] [:error] [pid 796:tid 140568273237760] [client xxx.xxx.xxx.xxx:59631] deleting a possibly stale lock after waiting on it for 30.037 seconds [Tue Feb 28 12:54:50.052952 2017] [:error] [pid 9502:tid 140568449484544] [client xxx.xxx.xxx.xxx:59900] deleting a possibly stale lock after waiting on it for 30.064 seconds [Tue Feb 28 12:54:50.062164 2017] [:error] [pid 1364:tid 140568264845056] [client xxx.xxx.xxx.xxx:59951] deleting a possibly stale lock after waiting on it for 30.04 seconds [Tue Feb 28 12:54:54.226499 2017] [:error] [pid 796:tid 140568239666944] [client xxx.xxx.xxx.xxx:34636] deleting a possibly stale lock after waiting on it for 30.046 seconds [Tue Feb 28 12:54:55.358419 2017] [:error] [pid 797:tid 140568399128320] [client xxx.xxx.xxx.xxx:35329] deleting a possibly stale lock after waiting on it for 30.047 seconds [Tue Feb 28 12:54:55.949560 2017] [:error] [pid 794:tid 140568256452352] [client xxx.xxx.xxx.xxx:35639] deleting a possibly stale lock after waiting on it for 30.037 seconds [Tue Feb 28 12:55:00.062597 2017] [:error] [pid 1408:tid 140568122169088] [client xxx.xxx.xxx.xxx:38816] deleting a possibly stale lock after waiting on it for 30.036 seconds In the syslog we see a lot of this: [51314200.930086] traps: apache2[7324] general protection ip:7f308fc53fe9 sp:7f3089657b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314204.940646] traps: apache2[7469] general protection ip:7f308fc53fe9 sp:7f3082ffcb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314207.948949] traps: apache2[7626] general protection ip:7f308fc53fe9 sp:7f307c7efb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314209.954537] traps: apache2[7748] general protection ip:7f308fc53fe9 sp:7f30837fdb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314214.966671] traps: apache2[7954] general protection ip:7f308fc53fe9 sp:7f3088e56b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314229.004451] traps: apache2[8562] general protection ip:7f308fc53fe9 sp:7f307c7efb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314235.020377] traps: apache2[8798] general protection ip:7f308fc53fe9 sp:7f307f7f5b10 error:0 [51314235.020395] traps: apache2[8799] general protection ip:7f308fc53fe9 sp:7f307eff4b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314235.020535] in libmapcache.so.1.4.1[7f308fc10000+56000] We compile/run apache/mapcache in docker container (base image 14:04) (with -net host), compiling with this parameters: # Install Mapcache itself ADD https://github.com/mapserver/mapcache/archive/rel-1-4-1.tar.gz / # Compile Mapcache for Apache RUN mkdir -p /usr/local/src/mapcache && \ tar xf rel-1-4-1.tar.gz -C /usr/local/src/mapcache --strip-components=1 && \ mkdir /usr/local/src/mapcache/build && \ cd /usr/local/src/mapcache/build && \ cmake ../ \ -DWITH_FCGI=0 -DWITH_APACHE=1 -DWITH_PCRE=0 \ -DWITH_TIFF=0 -DWITH_BERKELEY_DB=0 -DWITH_MEMCACHE=0 \ -DWITH_SQLITE=0 -DCMAKE_PREFIX_PATH="/etc/apache2" && \ make && \ make install What we've tried: - Change mpm from event to worker, and play with the tuning options - Change cache and/or locking directory from tmpfs to normal disks. - Disable all unneeded options in compile Mapcache.xml: /tmp/mapcache/ image/png layer1,layer2,layer3 /maps/LOS.map http://localhost:81/ms> LOS-all disk WGS84 GoogleMapsCompatible PNG 5 5 10 60 60 PNG assemble bilinear JPEG 4096 report /tmp 30 Andy idea what I can do to find exactly what is going wrong? Thanks in advance! Kind regards, Pieter Callewaert -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjorn.danielsson at falubo.se Tue Feb 28 07:21:11 2017 From: bjorn.danielsson at falubo.se (=?iso-8859-1?Q?Bj=F6rn?= Danielsson) Date: Tue, 28 Feb 2017 16:21:11 +0100 Subject: [mapserver-users] Issue with label offset Message-ID: We are using different mapfiles for different users and sometimes over the same geographical area. Funny thing is that in one of the cases where two mapfiles cover the same area a label for a line works ok in mapfile A but not in mapfile B despite the fact that the label code for one particular line feature is identical in the two mapfiles. I have traced this to OFFSET. OFFSET 3 99 works in mapfile A but gives Error 500 Internal Server Error in mapfile B. On the other hand OFFSET 1 99 and -2 99 works fine in mapfile B. The two mapfiles use different epsg and have different scale levels and as far as I can see that is the only thing that differs. I can contribute with more data if anyone will dig into this. LABEL TEXT "[text]" COLOR 0 0 255 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS FALSE POSITION CC PARTIALS FALSE FORCE TRUE MINDISTANCE 0 BUFFER 0 ANGLE FOLLOW MAXOVERLAPANGLE 180 OFFSET 3 99 END Bj?rn Danielsson -------------- next part -------------- An HTML attachment was scrubbed... URL: From pieter.callewaert at be-mobile.com Tue Feb 28 05:14:05 2017 From: pieter.callewaert at be-mobile.com (Pieter Callewaert) Date: Tue, 28 Feb 2017 13:14:05 +0000 Subject: [mapserver-users] Mapcache segmentation faults under high load Message-ID: Hi, We are trying to add mapcache to our stack, because in the last years the number of requests on our mapservers kept increasing, and we are looking for smarter ways to scale. We have a test setup, and on low load everything works perfectly. An ab benchmark on a single requests has also no problem. However, when we try to replay some production data on the mapcache server, with 500 concurrent users, we see the following errors in apache error log: [Tue Feb 28 12:50:33.789479 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 793 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:34.791605 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1384 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:35.792510 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1346 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Tue Feb 28 12:50:38.795504 2017] [core:notice] [pid 13:tid 140568766519168] AH00051: child pid 1338 exit signal Segmentation fault (11), possible coredump in /etc/apache2 And also: [Tue Feb 28 12:54:49.804880 2017] [:error] [pid 8256:tid 140568096990976] [client xxx.xxx.xxx.xxx:59612] deleting a possibly stale lock after waiting on it for 30.034 seconds [Tue Feb 28 12:54:49.815800 2017] [:error] [pid 796:tid 140568273237760] [client xxx.xxx.xxx.xxx:59631] deleting a possibly stale lock after waiting on it for 30.037 seconds [Tue Feb 28 12:54:50.052952 2017] [:error] [pid 9502:tid 140568449484544] [client xxx.xxx.xxx.xxx:59900] deleting a possibly stale lock after waiting on it for 30.064 seconds [Tue Feb 28 12:54:50.062164 2017] [:error] [pid 1364:tid 140568264845056] [client xxx.xxx.xxx.xxx:59951] deleting a possibly stale lock after waiting on it for 30.04 seconds [Tue Feb 28 12:54:54.226499 2017] [:error] [pid 796:tid 140568239666944] [client xxx.xxx.xxx.xxx:34636] deleting a possibly stale lock after waiting on it for 30.046 seconds [Tue Feb 28 12:54:55.358419 2017] [:error] [pid 797:tid 140568399128320] [client xxx.xxx.xxx.xxx:35329] deleting a possibly stale lock after waiting on it for 30.047 seconds [Tue Feb 28 12:54:55.949560 2017] [:error] [pid 794:tid 140568256452352] [client xxx.xxx.xxx.xxx:35639] deleting a possibly stale lock after waiting on it for 30.037 seconds [Tue Feb 28 12:55:00.062597 2017] [:error] [pid 1408:tid 140568122169088] [client xxx.xxx.xxx.xxx:38816] deleting a possibly stale lock after waiting on it for 30.036 seconds In the syslog we see a lot of this: [51314200.930086] traps: apache2[7324] general protection ip:7f308fc53fe9 sp:7f3089657b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314204.940646] traps: apache2[7469] general protection ip:7f308fc53fe9 sp:7f3082ffcb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314207.948949] traps: apache2[7626] general protection ip:7f308fc53fe9 sp:7f307c7efb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314209.954537] traps: apache2[7748] general protection ip:7f308fc53fe9 sp:7f30837fdb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314214.966671] traps: apache2[7954] general protection ip:7f308fc53fe9 sp:7f3088e56b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314229.004451] traps: apache2[8562] general protection ip:7f308fc53fe9 sp:7f307c7efb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314235.020377] traps: apache2[8798] general protection ip:7f308fc53fe9 sp:7f307f7f5b10 error:0 [51314235.020395] traps: apache2[8799] general protection ip:7f308fc53fe9 sp:7f307eff4b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000] [51314235.020535] in libmapcache.so.1.4.1[7f308fc10000+56000] We compile/run apache/mapcache in docker container (base image 14:04) (with -net host), compiling with this parameters: # Install Mapcache itself ADD https://github.com/mapserver/mapcache/archive/rel-1-4-1.tar.gz / # Compile Mapcache for Apache RUN mkdir -p /usr/local/src/mapcache && \ tar xf rel-1-4-1.tar.gz -C /usr/local/src/mapcache --strip-components=1 && \ mkdir /usr/local/src/mapcache/build && \ cd /usr/local/src/mapcache/build && \ cmake ../ \ -DWITH_FCGI=0 -DWITH_APACHE=1 -DWITH_PCRE=0 \ -DWITH_TIFF=0 -DWITH_BERKELEY_DB=0 -DWITH_MEMCACHE=0 \ -DWITH_SQLITE=0 -DCMAKE_PREFIX_PATH="/etc/apache2" && \ make && \ make install What we've tried: - Change mpm from event to worker, and play with the tuning options - Change cache and/or locking directory from tmpfs to normal disks. - Disable all unneeded options in compile Mapcache.xml: /tmp/mapcache/ image/png layer1,layer2,layer3 /maps/LOS.map http://localhost:81/ms LOS-all disk WGS84 GoogleMapsCompatible PNG 5 5 10 60 60 PNG assemble bilinear JPEG 4096 report /tmp 30 Andy idea what I can do to find exactly what is going wrong? Thanks in advance! Kind regards, Pieter Callewaert -------------- next part -------------- An HTML attachment was scrubbed... URL: