From sithilamadushanka at gmail.com Wed Oct 1 00:50:37 2014 From: sithilamadushanka at gmail.com (Sithila Konara) Date: Wed, 1 Oct 2014 09:50:37 +0200 Subject: [mapserver-users] Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis and imposm using GitHub tutorial . After completing the tutorial all map services display pink tiles not map info. i was not encounter with any issues during the tutorial run. any reason to this? Following screenshots for your reference. [image: enter image description here] [image: enter image description here] [image: enter image description here] When I check network I saw some errors as follows it shows as bad gate way and internal server error [image: enter image description here] here's my basemap makefile and mapcache.xml file - *basemap/makefile* UNAME := $(shell uname) ifeq ($(UNAME), Darwin) SED=sed -i ""else SED=sed -i endif CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion) OSM_PREFIX=osm_new_ OSM_NAME_COLUMN=name OSM_SRID=4326 OSM_UNITS=dd OSM_EXTENT=-180 -90 180 90 OSM_SRID=3857 OSM_UNITS=meters OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432 OSM_EXTENT=-20000000 -20000000 20000000 20000000 OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 DEBUG=1 LAYERDEBUG=1 STYLE=google#can also use google or bing - *mapcache-osm.xml* /home/sithila/osm-demo/mapcache/cache image/png default /home/sithila/osm-demo/basemaps/osm-google.map http://localhost/cgi-bin/mapserv? OSM MapServer served map see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2 osm disk WGS84 g PNG 5 5 10 10000 86400 JPEG assemble bilinear JPEG 4096 report/tmp -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Oct 1 05:52:09 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Oct 2014 14:52:09 +0200 Subject: [mapserver-users] Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: Sithila, try right clicking on one of the pink tiles to open it in a new browser window, or alternately look in your apache access/error logs. You should get an error message that should give you a head start. 502 errors are usually a sign that the source wms server is producing an error instead of an image, the actual error message should be returned back to you. -- thomas On 1 October 2014 09:50, Sithila Konara wrote: > > > > > > I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis > and imposm using GitHub tutorial > . > After completing the tutorial all map services display pink tiles not map > info. i was not encounter with any issues during the tutorial run. any > reason to this? > > Following screenshots for your reference. > > [image: enter image description here] [image: enter image description > here] [image: enter image description here] > > When I check network I saw some errors as follows it shows as bad gate way > and internal server error [image: enter image description here] > > here's my basemap makefile and mapcache.xml file > > - *basemap/makefile* > > UNAME := $(shell uname) > > ifeq ($(UNAME), Darwin) > SED=sed -i ""else > SED=sed -i > endif > > CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion) > > > OSM_PREFIX=osm_new_ > OSM_NAME_COLUMN=name > OSM_SRID=4326 > OSM_UNITS=dd > OSM_EXTENT=-180 -90 180 90 > OSM_SRID=3857 > OSM_UNITS=meters > OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432 > OSM_EXTENT=-20000000 -20000000 20000000 20000000 > OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 > DEBUG=1 > LAYERDEBUG=1 > STYLE=google#can also use google or bing > > > - *mapcache-osm.xml* > > > /home/sithila/osm-demo/mapcache/cache > > > > > image/png > default > /home/sithila/osm-demo/basemaps/osm-google.map > > > > http://localhost/cgi-bin/mapserv? > > > OSM MapServer served map > see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2 > > osm > disk > WGS84 > g > PNG > 5 5 > 10 > 10000 > 86400 > JPEG > > assemble > bilinear > JPEG > 4096 > > report/tmp > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at schartz.net Wed Oct 1 07:15:02 2014 From: mapserver at schartz.net (Fergus McDonald) Date: Wed, 1 Oct 2014 10:15:02 -0400 Subject: [mapserver-users] Mapserver CGI URL parameter parsing with plus character escaped as %2b Message-ID: <20141001101502.7b586bf4@roxy> I am having an issue with Mapserver 6.4.1 when attempting to pass a layer labelitem parameter setting via URL. The map file contains the following validation for layer 0 VALIDATION "labelitem" "[a-z]+" END The following request works (ignore the double quotes around the entire URL): "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer[0]=labelitem+columnname" as does this (note the brackets replaced with html escapes) "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem+columnname" ..but if the plus sign is escaped also: "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem%2Bcolumnname" Mapserver fails with the following error: getString(): Symbol definition error. Parsing error near (+):(line 1) This problem arises because when generating such requests from OpenLayers, any such parameters automatically have the plus sign escaped before the request is sent. It does seem unconsistent that escapes are recognised for some parts of the URL and not others. Am I doing something wrong or should this be a bug report? Thanks in advance From thomas.bonfort at gmail.com Wed Oct 1 07:30:08 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Oct 2014 16:30:08 +0200 Subject: [mapserver-users] Mapserver CGI URL parameter parsing with plus character escaped as %2b In-Reply-To: <20141001101502.7b586bf4@roxy> References: <20141001101502.7b586bf4@roxy> Message-ID: the + sign is used to encode a space in a url, and that space is what mapserver's parser is looking for. translated to mapfile syntax, your first two requests are parsed as labelitem columnname whereas the last one is labelitem+columnname which is invalid. tl;dr don't escape the + sign, mapserver is expecting a space not a + -- thomas On 1 October 2014 16:15, Fergus McDonald wrote: > I am having an issue with Mapserver 6.4.1 when attempting to pass a > layer labelitem parameter setting via URL. > > The map file contains the following validation for layer 0 > > VALIDATION > "labelitem" "[a-z]+" > END > > The following request works (ignore the double quotes around the entire > URL): > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer[0]=labelitem+columnname" > > as does this (note the brackets replaced with html escapes) > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem+columnname" > > ..but if the plus sign is escaped also: > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem%2Bcolumnname" > > Mapserver fails with the following error: > > getString(): Symbol definition error. Parsing error near (+):(line 1) > > This problem arises because when generating such requests from > OpenLayers, any such parameters automatically have the plus sign > escaped before the request is sent. It does seem unconsistent that > escapes are recognised for some parts of the URL and not others. > > Am I doing something wrong or should this be a bug report? > > Thanks in advance > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Wed Oct 1 07:48:22 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 1 Oct 2014 14:48:22 +0000 Subject: [mapserver-users] Mapserver CGI URL parameter parsing with plus character escaped as %2b In-Reply-To: References: <20141001101502.7b586bf4@roxy> Message-ID: All, I ran into something similar recently, You should be able to leave the space in the URL or if you prefer you can encode as a space (instead of a + sign) and Mapserver should accept that (or at least I would expect it to . . . :c). the encoding/decoding should be handled by the webserver, then passed on to MapServer. Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, October 01, 2014 9:30 AM To: Fergus McDonald Cc: MapserverList OSGEO Subject: Re: [mapserver-users] Mapserver CGI URL parameter parsing with plus character escaped as %2b the + sign is used to encode a space in a url, and that space is what mapserver's parser is looking for. translated to mapfile syntax, your first two requests are parsed as labelitem columnname whereas the last one is labelitem+columnname which is invalid. tl;dr don't escape the + sign, mapserver is expecting a space not a + -- thomas On 1 October 2014 16:15, Fergus McDonald wrote: > I am having an issue with Mapserver 6.4.1 when attempting to pass a > layer labelitem parameter setting via URL. > > The map file contains the following validation for layer 0 > > VALIDATION > "labelitem" "[a-z]+" > END > > The following request works (ignore the double quotes around the > entire > URL): > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer[0]=labelitem+columnname" > > as does this (note the brackets replaced with html escapes) > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem+columnname" > > ..but if the plus sign is escaped also: > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem%2Bcolumnname" > > Mapserver fails with the following error: > > getString(): Symbol definition error. Parsing error near (+):(line 1) > > This problem arises because when generating such requests from > OpenLayers, any such parameters automatically have the plus sign > escaped before the request is sent. It does seem unconsistent that > escapes are recognised for some parts of the URL and not others. > > Am I doing something wrong or should this be a bug report? > > Thanks in advance > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at schartz.net Wed Oct 1 08:01:30 2014 From: mapserver at schartz.net (Fergus McDonald) Date: Wed, 1 Oct 2014 11:01:30 -0400 Subject: [mapserver-users] Mapserver CGI URL parameter parsing with plus character escaped as %2b In-Reply-To: References: <20141001101502.7b586bf4@roxy> Message-ID: <20141001110130.651ee4d1@roxy> Thank you for the speedy response. Yes.. that was exactly the issue. By placing a literal space within the parameter within OpenLayers, the URL arrives at mapserver escaped as labelitem%20columnname and everything works. May I suggest somewhere in the Mapserver CGI documentation it might mention that the plus sign is used to encode a space.. particularly in the section on CGI "Changing map file parameters via a form or a URL", as I couldn't find any mention of this. Thanks again for your help. On Wed, 1 Oct 2014 16:30:08 +0200 thomas bonfort wrote: > the + sign is used to encode a space in a url, and that space is what > mapserver's parser is looking for. translated to mapfile syntax, your > first two requests are parsed as > > labelitem columnname > > whereas the last one is > > labelitem+columnname > > which is invalid. > > tl;dr don't escape the + sign, mapserver is expecting a space not a + > > -- > thomas > > On 1 October 2014 16:15, Fergus McDonald > wrote: > > I am having an issue with Mapserver 6.4.1 when attempting to pass a > > layer labelitem parameter setting via URL. > > > > The map file contains the following validation for layer 0 > > > > VALIDATION > > "labelitem" "[a-z]+" > > END > > > > The following request works (ignore the double quotes around the > > entire URL): > > > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer[0]=labelitem+columnname" > > > > as does this (note the brackets replaced with html escapes) > > > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem+columnname" > > > > ..but if the plus sign is escaped also: > > > > "http://sitename/cgi-bin/map=pathtomapfile&mode=map&map.layer%5B0%5D=labelitem%2Bcolumnname" > > > > Mapserver fails with the following error: > > > > getString(): Symbol definition error. Parsing error near (+):(line > > 1) > > > > This problem arises because when generating such requests from > > OpenLayers, any such parameters automatically have the plus sign > > escaped before the request is sent. It does seem unconsistent that > > escapes are recognised for some parts of the URL and not others. > > > > Am I doing something wrong or should this be a bug report? > > > > Thanks in advance > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Wed Oct 1 14:47:22 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 1 Oct 2014 21:47:22 +0000 Subject: [mapserver-users] Conditional SQL fragment via CGI . . Message-ID: Oh, geez, just found my own answer . . . http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url dopey me . . . bobb From: Basques, Bob (CI-StPaul) Sent: Wednesday, October 01, 2014 4:44 PM To: mapserver-users at lists.osgeo.org Subject: Conditional SQL fragment via CGI . . I know, probably not possible, but, I want to change a fragment of a SQL request inside of a DATA block via MapServer CGI, using some conditions, namely if a null value is passed in, I want to ignore that null value. Is there any way of setting a default CGI value inside of the mapfile so if a value isn't sent in, it defaults to something automatically? Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From tnasman at rollingleaf.com Wed Oct 1 14:58:36 2014 From: tnasman at rollingleaf.com (Tim Nasman) Date: Wed, 1 Oct 2014 17:58:36 -0400 Subject: [mapserver-users] Mapcache Question Message-ID: I have read through the Mapcache documentation but I feel like I am missing some basic elements to how it works. I am using Mapcache to display a mbtile that I have created. Now from what I understand, my mapcache .xml will list out the parameters of the mbtile and then I add a layer within my mapfile referencing the .xml which I should then be able to to use as WMTS using openlayers. I just haven't grasped how mapcache and mapserv work together so any clarification would be helpful. Thanks for your time. -- Timothy Nasman Data Analyst | Programmer Rolling Leaf Inc. [V] : 910.274.1436 [E] : tnasman at rollingleaf.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Oct 1 14:44:15 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 1 Oct 2014 21:44:15 +0000 Subject: [mapserver-users] Conditional SQL fragment via CGI . . Message-ID: I know, probably not possible, but, I want to change a fragment of a SQL request inside of a DATA block via MapServer CGI, using some conditions, namely if a null value is passed in, I want to ignore that null value. Is there any way of setting a default CGI value inside of the mapfile so if a value isn't sent in, it defaults to something automatically? Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at firstbasesolutions.com Wed Oct 1 16:33:12 2014 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Wed, 1 Oct 2014 19:33:12 -0400 Subject: [mapserver-users] Mapcache Question In-Reply-To: References: Message-ID: Tim, MapCache Is simply a tiling server. It will take images from a source and store them in a cache. These tiles are exposed as services to clients - WMTS, WMS, TMS etc... MapServer on the other hand will read source data (GIS files / database) and render images based on rules defined in the mapfile. These images are used as the source for MapCache. On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman wrote: > I have read through the Mapcache documentation but I feel like I am > missing some basic elements to how it works. > > I am using Mapcache to display a mbtile that I have created. Now from > what I understand, my mapcache .xml will list out the parameters of the > mbtile and then I add a layer within my mapfile referencing the .xml which > I should then be able to to use as WMTS using openlayers. I just haven't > grasped how mapcache and mapserv work together so any clarification would > be helpful. Thanks for your time. > > -- > Timothy Nasman > Data Analyst | Programmer > Rolling Leaf Inc. > [V] : 910.274.1436 > [E] : tnasman at rollingleaf.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- [image: FBS Logo] *Travis Kirstine*, Web Development Supervisor *t *905?477?3600* x *301 | *m *905?534?4798 | tkirstine at firstbasesolution.com *First Base Solutions Inc.* 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3 *t* 905?477?3600 | *f* 905?477?0892 | www.firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgarrido at tracom.info Thu Oct 2 02:47:43 2014 From: jgarrido at tracom.info (jongarrido) Date: Thu, 2 Oct 2014 02:47:43 -0700 (PDT) Subject: [mapserver-users] Mapserver MSSQL connect In-Reply-To: <1336658902514-4965776.post@n6.nabble.com> References: <1336583683738-4963596.post@n6.nabble.com> <4FAABD1B.8010105@gatewaygeomatics.com> <1336658902514-4965776.post@n6.nabble.com> Message-ID: <1412243263728-5165454.post@n6.nabble.com> j5c077 wrote > thanks for your reply. i had tried that as well but i thought that was for > windows. i am using mapserver on linux. the error i got then was > Failed to load dynamic Layer LIB: msplugin_mssql2008.dll.so msGetSymbol(): > General error message. Dynamic loading failed: msplugin_mssql2008.dll.so: > cannot open shared object file: No such file or directory Hi j5c077, I' hope you're still around this mailing list. I'm exactly in the same issue. Linux instaltion (in my case ubuntu) and can't connect mssqlserver .... no with ogr connection, no with plugin mode (with this error as well). Did you finally find a solution??.. BR Jon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-MSSQL-connect-tp4963596p5165454.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paul.malm at saabgroup.com Thu Oct 2 05:23:50 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Thu, 2 Oct 2014 12:23:50 +0000 Subject: [mapserver-users] error finding objects with wfs mapserver 6.4.1 Message-ID: Hi, I'm using mapserver 6.4.1 on a 64 bits Linux. I have problems finding WFS objects when the BBOX is narrow (although the object is completely within the BBOX). I only get an error code, see below. It is not a big difference if we compare Query 2 with Query 1. It is only the bounding box (but the symbol to search for is within both boxes ) Can anyone, please tell me what I'm doing wrong? I'm trying to send the request trough Firefox. Kind regards, Paul __________________________________________________________________________________________________________________ QUERY 1: http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=0,0,90,90&MaxFeatures=1 results in: 24.925816,59.452003 24.925816,59.452003 24.925816,59.452003 24.925816,59.452003 24.925816,59.452003 847 -105865197 _________________________________________________________________________________________________________________________ QUERY 2: (only changed the BBOX to a more narrow box) http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=24.0,59.45,24.93,59.48&MaxFeatures=1 results in: XML Parsing Error: no element found Location: http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=24.0,59.45,24.93,59.48&MaxFeatures=1 Line Number 1, Column 1: ^ --------------------------------------------------------------------------------------------------------------------------------------------------------------------- MAP FILE, I have tried to combine WMS/WFS map file: MAP NAME 'test' CONFIG "PROJ_LIB" "/usr/share/proj" EXTENT -180 -90 180 90 SIZE 512 512 RESOLUTION 96 DEFRESOLUTION 96 FONTSET './fontset.lst' SYMBOLSET "./symbols.sym" PROJECTION 'init=epsg:4326' END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA ' wms_enable_request' ' *' 'wms_title' 'S57 Charts' 'wms_srs' 'epsg:4326' 'wfs_title' 'S57 Charts' 'wfs_srs' 'epsg:4326' ' wfs_enable_request' ' *' END END LAYER NAME "Lm_2" GROUP "Landmarks_Infrastructure" METADATA "wms_title" "Lm_2" "wfs_title" "Lm_2" "wms_enable_request" "*" "wfs_enable_request" "*" "gml_include_items" "all" END TYPE POINT STATUS OFF TILEINDEX "/tmp/rbase/index/2_LNDMRK_POINT" TILEITEM "LOCATION" PROCESSING "CLOSE_CONNECTION=DEFER" CLASS EXPRESSION (([CATLMK] == 17) OR ([CATLMK] == 7)) # tower or mast STYLE SYMBOL "lndmrk" COLOR 0 0 0 SIZE 15 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From sithilamadushanka at gmail.com Fri Oct 3 02:03:39 2014 From: sithilamadushanka at gmail.com (Sithila Konara) Date: Fri, 3 Oct 2014 11:03:39 +0200 Subject: [mapserver-users] Fwd: Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: Hi, Out put as follows... 404 Not Found

Not Found

The requested URL /cgi-bin/mapserv was not found on this server.


Apache/2.4.7 (Ubuntu) Server at localhost Port 80
]]>
On Wed, Oct 1, 2014 at 6:45 PM, thomas bonfort wrote: > from a terminal, type: > > curl ' > http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 > ' > > -- > thomas > > On 1 October 2014 18:38, Sithila Konara > wrote: > >> hi, >> >> Following URL is a one of my image URL >> >> >> http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 >> >> This is how errors get occors >> nd i have examined Apache error logs, but unable find much details. I'm >> working in a Ubuntu server in a VM environment. server is directly >> connected to internet using NAT interface to get the Internet. But i think >> server should provide tiles from only using local resources, after >> successful mapserver implementation. But I noticed that pink tiles also not >> display when i disconnect the server from the Internet. I'm new to Linux >> and Mapserver so difficult to extract meaning of error logs etc >> >> On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort >> wrote: >> >>> Sithila, >>> try right clicking on one of the pink tiles to open it in a new browser >>> window, or alternately look in your apache access/error logs. You should >>> get an error message that should give you a head start. 502 errors are >>> usually a sign that the source wms server is producing an error instead of >>> an image, the actual error message should be returned back to you. >>> >>> -- >>> thomas >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Fri Oct 3 09:03:35 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 03 Oct 2014 18:03:35 +0200 Subject: [mapserver-users] Unsubscribe In-Reply-To: References: Message-ID: <2976709.UNtOST5m2g@tatras> On Saturday, September 27, 2014 16:04:32 Krishna Priya Patury wrote: > Hi there, > > I would like to be removed from this mailing list. > > Thanks much, Krishna, Jut click at the bottom of this email the link http://lists.osgeo.org/mailman/listinfo/mapserver-users You can manage your subscribtion (suspend or leave for ever). Regards, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 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 From bob.basques at ci.stpaul.mn.us Fri Oct 3 13:41:06 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 3 Oct 2014 20:41:06 +0000 Subject: [mapserver-users] have the docs for STYLE COLORRANGE been added yet? Message-ID: All, I can't seem to find them . . . Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Sat Oct 4 01:30:42 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Sat, 04 Oct 2014 10:30:42 +0200 Subject: [mapserver-users] have the docs for STYLE COLORRANGE been added yet? In-Reply-To: References: Message-ID: <13328170.m6K18rlPLA@tatras> On Friday, October 03, 2014 20:41:06 Basques, Bob wrote: > All, > > I can't seem to find them . . . > > Thanks > Bobb, As far as I know, this is not yet in the documentation. One answer I get in the past is this is not an official feature, see [1] Voting history: None. And finally, there is no support for the legend for this feature. Y. [1] http://mapserver.org/de/development/rfc/ms-rfc-6.html -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 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 From yeryry at gmail.com Sat Oct 4 07:01:15 2014 From: yeryry at gmail.com (yeryry) Date: Sat, 4 Oct 2014 15:01:15 +0100 Subject: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output Message-ID: It seems that the problem described in http://osgeo-org.1560.x6.nabble.com/CLUSTER-and-GetFeatureInfo-td4227414.html is still present. When retrieving the details for a cluster, the cluster-related attributes are set only for the last member of the cluster, and normal attributes for that member aren't sent. The normal attributes for all members should be sent, and I would think the cluster-related ones should be set for each member, not just the last. From szekerest at gmail.com Sat Oct 4 09:49:05 2014 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 4 Oct 2014 18:49:05 +0200 Subject: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output In-Reply-To: References: Message-ID: I'm not sure which MapServer version we are talking about. The recent versions should provide all attributes. When using CLUSTER_GET_ALL_SHAPES you can use the Cluster_BaseFID attribute to identify the shapes which belong to the same cluster and Cluster_BaseFID is in fact the feature ID of the main shape of the cluster. Tamas 2014-10-04 16:01 GMT+02:00 yeryry : > It seems that the problem described in > > http://osgeo-org.1560.x6.nabble.com/CLUSTER-and-GetFeatureInfo-td4227414.html > is still present. When retrieving the details for a cluster, the > cluster-related attributes are set only for the last member of the > cluster, and normal attributes for that member aren't sent. The normal > attributes for all members should be sent, and I would think the > cluster-related ones should be set for each member, not just the last. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yeryry at gmail.com Sat Oct 4 13:03:52 2014 From: yeryry at gmail.com (yeryry) Date: Sat, 4 Oct 2014 21:03:52 +0100 Subject: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output In-Reply-To: References: Message-ID: Ah, thanks. I had been using 6.4.1, with WMS GetFeatureInfo. https://github.com/mapserver/mapserver/commit/898ab8b944a6340b5a8742fe12d3aee6ca236e88 fixed my main problem. Using a newer version, the attributes for the last item are again present. The FeatureCount (Now Cluster_FeatureCount rather than Cluster:FeatureCount it seems?) is still only present for the last item in the cluster though. The new Cluster_BaseFID is present for each item. From szekerest at gmail.com Sat Oct 4 13:22:01 2014 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 4 Oct 2014 22:22:01 +0200 Subject: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output In-Reply-To: References: Message-ID: That might be true. The aggregated attributes are set only for the main shape of the cluster. Feel free to submit a ticket for the issue, I hope that this can be implemented with no performance impact. Colons have been replaced with underscores which are more xml friendly, but we might also require to modify the aggregate values (Min:, Max:, Sum:, Count:) this way. Best regards, Tamas 2014-10-04 22:03 GMT+02:00 yeryry : > Ah, thanks. I had been using 6.4.1, with WMS GetFeatureInfo. > > https://github.com/mapserver/mapserver/commit/898ab8b944a6340b5a8742fe12d3aee6ca236e88 > fixed my main problem. Using a newer version, the attributes for the > last item are again present. > The FeatureCount (Now Cluster_FeatureCount rather than > Cluster:FeatureCount it seems?) is still only present for the last > item in the cluster though. The new Cluster_BaseFID is present for > each item. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sithilamadushanka at gmail.com Wed Oct 1 10:01:32 2014 From: sithilamadushanka at gmail.com (Sithila Konara) Date: Wed, 1 Oct 2014 19:01:32 +0200 Subject: [mapserver-users] Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: Hi, Out put as follows... 404 Not Found

Not Found

The requested URL /cgi-bin/mapserv was not found on this server.


Apache/2.4.7 (Ubuntu) Server at localhost Port 80
]]>
On Wed, Oct 1, 2014 at 6:45 PM, thomas bonfort wrote: > from a terminal, type: > > curl ' > http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 > ' > > -- > thomas > > On 1 October 2014 18:38, Sithila Konara > wrote: > >> hi, >> >> Following URL is a one of my image URL >> >> >> http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 >> >> This is how errors get occors >> [image: Inline image 1] >> >> and i have examined Apache error logs, but unable find much details. I'm >> working in a Ubuntu server in a VM environment. server is directly >> connected to internet using NAT interface to get the Internet. But i think >> server should provide tiles from only using local resources, after >> successful mapserver implementation. But I noticed that pink tiles also not >> display when i disconnect the server from the Internet. I'm new to Linux >> and Mapserver so difficult to extract meaning of error logs etc >> >> [image: Inline image 2] >> >> On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort >> wrote: >> >>> Sithila, >>> try right clicking on one of the pink tiles to open it in a new browser >>> window, or alternately look in your apache access/error logs. You should >>> get an error message that should give you a head start. 502 errors are >>> usually a sign that the source wms server is producing an error instead of >>> an image, the actual error message should be returned back to you. >>> >>> -- >>> thomas >>> >>> On 1 October 2014 09:50, Sithila Konara >>> wrote: >>> >>>> >>>> >>>> >>>> >>>> >>>> I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, >>>> postgis and imposm using GitHub tutorial >>>> . >>>> After completing the tutorial all map services display pink tiles not map >>>> info. i was not encounter with any issues during the tutorial run. any >>>> reason to this? >>>> >>>> Following screenshots for your reference. >>>> >>>> [image: enter image description here] [image: enter image description >>>> here] [image: enter image description here] >>>> >>>> When I check network I saw some errors as follows it shows as bad gate >>>> way and internal server error [image: enter image description here] >>>> >>>> here's my basemap makefile and mapcache.xml file >>>> >>>> - *basemap/makefile* >>>> >>>> UNAME := $(shell uname) >>>> >>>> ifeq ($(UNAME), Darwin) >>>> SED=sed -i ""else >>>> SED=sed -i >>>> endif >>>> >>>> CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion) >>>> >>>> >>>> OSM_PREFIX=osm_new_ >>>> OSM_NAME_COLUMN=name >>>> OSM_SRID=4326 >>>> OSM_UNITS=dd >>>> OSM_EXTENT=-180 -90 180 90 >>>> OSM_SRID=3857 >>>> OSM_UNITS=meters >>>> OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432 >>>> OSM_EXTENT=-20000000 -20000000 20000000 20000000 >>>> OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 >>>> DEBUG=1 >>>> LAYERDEBUG=1 >>>> STYLE=google#can also use google or bing >>>> >>>> >>>> - *mapcache-osm.xml* >>>> >>>> >>>> /home/sithila/osm-demo/mapcache/cache >>>> >>>> >>>> >>>> >>>> image/png >>>> default >>>> /home/sithila/osm-demo/basemaps/osm-google.map >>>> >>>> >>>> >>>> http://localhost/cgi-bin/mapserv? >>>> >>>> >>>> OSM MapServer served map >>>> see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2 >>>> >>>> osm >>>> disk >>>> WGS84 >>>> g >>>> PNG >>>> 5 5 >>>> 10 >>>> 10000 >>>> 86400 >>>> JPEG >>>> >>>> assemble >>>> bilinear >>>> JPEG >>>> 4096 >>>> >>>> report/tmp >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 69802 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 245015 bytes Desc: not available URL: From sithilamadushanka at gmail.com Wed Oct 1 09:38:47 2014 From: sithilamadushanka at gmail.com (Sithila Konara) Date: Wed, 1 Oct 2014 18:38:47 +0200 Subject: [mapserver-users] Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: hi, Following URL is a one of my image URL http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 This is how errors get occors [image: Inline image 1] and i have examined Apache error logs, but unable find much details. I'm working in a Ubuntu server in a VM environment. server is directly connected to internet using NAT interface to get the Internet. But i think server should provide tiles from only using local resources, after successful mapserver implementation. But I noticed that pink tiles also not display when i disconnect the server from the Internet. I'm new to Linux and Mapserver so difficult to extract meaning of error logs etc [image: Inline image 2] On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort wrote: > Sithila, > try right clicking on one of the pink tiles to open it in a new browser > window, or alternately look in your apache access/error logs. You should > get an error message that should give you a head start. 502 errors are > usually a sign that the source wms server is producing an error instead of > an image, the actual error message should be returned back to you. > > -- > thomas > > On 1 October 2014 09:50, Sithila Konara > wrote: > >> >> >> >> >> >> I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis >> and imposm using GitHub tutorial >> . >> After completing the tutorial all map services display pink tiles not map >> info. i was not encounter with any issues during the tutorial run. any >> reason to this? >> >> Following screenshots for your reference. >> >> [image: enter image description here] [image: enter image description >> here] [image: enter image description here] >> >> When I check network I saw some errors as follows it shows as bad gate >> way and internal server error [image: enter image description here] >> >> here's my basemap makefile and mapcache.xml file >> >> - *basemap/makefile* >> >> UNAME := $(shell uname) >> >> ifeq ($(UNAME), Darwin) >> SED=sed -i ""else >> SED=sed -i >> endif >> >> CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion) >> >> >> OSM_PREFIX=osm_new_ >> OSM_NAME_COLUMN=name >> OSM_SRID=4326 >> OSM_UNITS=dd >> OSM_EXTENT=-180 -90 180 90 >> OSM_SRID=3857 >> OSM_UNITS=meters >> OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432 >> OSM_EXTENT=-20000000 -20000000 20000000 20000000 >> OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 >> DEBUG=1 >> LAYERDEBUG=1 >> STYLE=google#can also use google or bing >> >> >> - *mapcache-osm.xml* >> >> >> /home/sithila/osm-demo/mapcache/cache >> >> >> >> >> image/png >> default >> /home/sithila/osm-demo/basemaps/osm-google.map >> >> >> >> http://localhost/cgi-bin/mapserv? >> >> >> OSM MapServer served map >> see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2 >> >> osm >> disk >> WGS84 >> g >> PNG >> 5 5 >> 10 >> 10000 >> 86400 >> JPEG >> >> assemble >> bilinear >> JPEG >> 4096 >> >> report/tmp >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 245015 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 69802 bytes Desc: not available URL: From thomas.bonfort at gmail.com Wed Oct 1 09:45:38 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Oct 2014 18:45:38 +0200 Subject: [mapserver-users] Fwd: All map services display pink tiles In-Reply-To: References: Message-ID: from a terminal, type: curl ' http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 ' -- thomas On 1 October 2014 18:38, Sithila Konara wrote: > hi, > > Following URL is a one of my image URL > > > http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256 > > This is how errors get occors > [image: Inline image 1] > > and i have examined Apache error logs, but unable find much details. I'm > working in a Ubuntu server in a VM environment. server is directly > connected to internet using NAT interface to get the Internet. But i think > server should provide tiles from only using local resources, after > successful mapserver implementation. But I noticed that pink tiles also not > display when i disconnect the server from the Internet. I'm new to Linux > and Mapserver so difficult to extract meaning of error logs etc > > [image: Inline image 2] > > On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort > wrote: > >> Sithila, >> try right clicking on one of the pink tiles to open it in a new browser >> window, or alternately look in your apache access/error logs. You should >> get an error message that should give you a head start. 502 errors are >> usually a sign that the source wms server is producing an error instead of >> an image, the actual error message should be returned back to you. >> >> -- >> thomas >> >> On 1 October 2014 09:50, Sithila Konara >> wrote: >> >>> >>> >>> >>> >>> >>> I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, >>> postgis and imposm using GitHub tutorial >>> . >>> After completing the tutorial all map services display pink tiles not map >>> info. i was not encounter with any issues during the tutorial run. any >>> reason to this? >>> >>> Following screenshots for your reference. >>> >>> [image: enter image description here] [image: enter image description >>> here] [image: enter image description here] >>> >>> When I check network I saw some errors as follows it shows as bad gate >>> way and internal server error [image: enter image description here] >>> >>> here's my basemap makefile and mapcache.xml file >>> >>> - *basemap/makefile* >>> >>> UNAME := $(shell uname) >>> >>> ifeq ($(UNAME), Darwin) >>> SED=sed -i ""else >>> SED=sed -i >>> endif >>> >>> CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion) >>> >>> >>> OSM_PREFIX=osm_new_ >>> OSM_NAME_COLUMN=name >>> OSM_SRID=4326 >>> OSM_UNITS=dd >>> OSM_EXTENT=-180 -90 180 90 >>> OSM_SRID=3857 >>> OSM_UNITS=meters >>> OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432 >>> OSM_EXTENT=-20000000 -20000000 20000000 20000000 >>> OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986 >>> DEBUG=1 >>> LAYERDEBUG=1 >>> STYLE=google#can also use google or bing >>> >>> >>> - *mapcache-osm.xml* >>> >>> >>> /home/sithila/osm-demo/mapcache/cache >>> >>> >>> >>> >>> image/png >>> default >>> /home/sithila/osm-demo/basemaps/osm-google.map >>> >>> >>> >>> http://localhost/cgi-bin/mapserv? >>> >>> >>> OSM MapServer served map >>> see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2 >>> >>> osm >>> disk >>> WGS84 >>> g >>> PNG >>> 5 5 >>> 10 >>> 10000 >>> 86400 >>> JPEG >>> >>> assemble >>> bilinear >>> JPEG >>> 4096 >>> >>> report/tmp >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 245015 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 69802 bytes Desc: not available URL: From juanma.mr at gmail.com Tue Oct 7 09:13:37 2014 From: juanma.mr at gmail.com (Juanma M. R.) Date: Tue, 7 Oct 2014 18:13:37 +0200 Subject: [mapserver-users] Rendering OSM data with MapServer+MapCache Message-ID: Dear list, I have managed to install and configure succesfully a server showing data from OSM with the MapServer+MapCache convination. I followed these instructions and some hacks that were necessary. The issue is that I have migrated from a mapnik+mod_tile server because some requirements that it didn't acomplished but the rendering of the map with mapnik was the same as the one shown in the OSM server. I also managed to configure a mapserver (without cache feature) with a .map file styling OSM but it is neither the one from OSM server. Does anyone know how to apply this style, the one from OSM server, to this data being renderd by MapServer? Does anyone done the migration from the OSM server style to mapfile or XML format for MapServer? Regards, Juan Manuel Moreno Rivera. Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group Instituto de Desarrollo Regional / Institute for Regional Development Universidad de Castilla-La Mancha / University of Castilla-La Mancha Tlf: +34 967599200 (Ext: 2623) http://www.teledeteccionysig.es/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue Oct 7 09:20:30 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 7 Oct 2014 12:20:30 -0400 Subject: [mapserver-users] RE Rendering OSM data with MapServer+MapCache In-Reply-To: References: Message-ID: If you can use postgis this might help https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows Steve "Juanma M. R." @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-10-07 12:13 A "mapserver-users at lists.osgeo.org" cc Objet [mapserver-users] Rendering OSM data with MapServer+MapCache Dear list, I have managed to install and configure succesfully a server showing data from OSM with the MapServer+MapCache convination. I followed these instructions and some hacks that were necessary. The issue is that I have migrated from a mapnik+mod_tile server because some requirements that it didn't acomplished but the rendering of the map with mapnik was the same as the one shown in the OSM server. I also managed to configure a mapserver (without cache feature) with a .map file styling OSM but it is neither the one from OSM server. Does anyone know how to apply this style, the one from OSM server, to this data being renderd by MapServer? Does anyone done the migration from the OSM server style to mapfile or XML format for MapServer? Regards, Juan Manuel Moreno Rivera. Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group Instituto de Desarrollo Regional / Institute for Regional Development Universidad de Castilla-La Mancha / University of Castilla-La Mancha Tlf: +34 967599200 (Ext: 2623) http://www.teledeteccionysig.es/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue Oct 7 09:23:25 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 7 Oct 2014 12:23:25 -0400 Subject: [mapserver-users] RE Rendering OSM data with MapServer+MapCache In-Reply-To: References: Message-ID: I'm sorry I just saw the link you provided that uses basemap. I didn't read it but hopefully you'll find some answers in the link I provided "Juanma M. R." @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-10-07 12:13 A "mapserver-users at lists.osgeo.org" cc Objet [mapserver-users] Rendering OSM data with MapServer+MapCache Dear list, I have managed to install and configure succesfully a server showing data from OSM with the MapServer+MapCache convination. I followed these instructions and some hacks that were necessary. The issue is that I have migrated from a mapnik+mod_tile server because some requirements that it didn't acomplished but the rendering of the map with mapnik was the same as the one shown in the OSM server. I also managed to configure a mapserver (without cache feature) with a .map file styling OSM but it is neither the one from OSM server. Does anyone know how to apply this style, the one from OSM server, to this data being renderd by MapServer? Does anyone done the migration from the OSM server style to mapfile or XML format for MapServer? Regards, Juan Manuel Moreno Rivera. Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group Instituto de Desarrollo Regional / Institute for Regional Development Universidad de Castilla-La Mancha / University of Castilla-La Mancha Tlf: +34 967599200 (Ext: 2623) http://www.teledeteccionysig.es/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From yeryry at gmail.com Tue Oct 7 13:40:42 2014 From: yeryry at gmail.com (yeryry) Date: Tue, 7 Oct 2014 21:40:42 +0100 Subject: [mapserver-users] KML output problems/crashes/bad reprojection Message-ID: I've been trying to get KML output working (6.5, OSgeo4W). After a lot of experimentation and all kinds of strange results, I managed to get something somewhat working, but still have some problems... The IRC channel seems dead, so here I am again. I've adapted the Itasca example map file to try to make it simpler... My example query strings are at the bottom. https://gist.github.com/anonymous/f0516f2766699e1ce3db With the driver set to "OGR/KML" (this is undocumented?): WFS (queries 1 and 2) works. WMS (query 3) causes mapserv.exe to crash. With the driver set to "KML": WFS (queries 1 and 2) produces output with no points. There must be some projection problem. "Projection library error. All points failed to reproject". If I use the other EXTENT line, it crashes. WMS (query 3) now works. Or seems to... There may be a problem with my settings, but I don't think it should ever crash because of that. I've had lots of problems before I tried to use KML output, but they didn't include crashing. Because making various apparently unrelated changes results in it crashing, with no output to the log at all, perhaps there's a problem with some error message routine? This may be a problem with the OSgeo4W build, but they seem to have no user support at all... And should the output options affect the projection at all? Another problem... With WMS, the width and height parameters in the query have a big effect on the coordinates in the output (same as this? https://trac.osgeo.org/mapserver/ticket/3928). This doesn't make sense to me, as KML doesn't have "pixels", so the width and height of a hypothetical "image" should have no effect on coordinates, and maybe no effect on output at all. Also "non-square pixels" ( https://trac.osgeo.org/mapserver/ticket/3949) makes no sense for vector output. After discovering this problem with WMS, I switched to trying WFS, but then had the other problems. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yeryry at gmail.com Wed Oct 8 10:00:51 2014 From: yeryry at gmail.com (yeryry) Date: Wed, 8 Oct 2014 18:00:51 +0100 Subject: [mapserver-users] KML output problems/crashes/bad reprojection In-Reply-To: References: Message-ID: I think I've discovered two causes of crashes... First, one with the KML driver... msDrawQueryLayer creates and draws a temporary layer here: https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L1205 The KML renderer sets a reference to the temporary layer here: https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L371 msDrawQueryLayer later calls msDrawShape here: https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L1295 which eventually results in a call to KmlRenderer::renderGlyphs https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L693 which gets to KmlRenderer::createPlacemarkNode and reuses that reference that was set: https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L585 even though that temporary layer was freed earlier, leading to the crash. And one with WMS: It crashes around here: https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L106 Probably due to trying to setting NULL->map... That error message should probably be moved before that line. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Fri Oct 10 00:23:32 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Fri, 10 Oct 2014 11:23:32 +0400 Subject: [mapserver-users] =?utf-8?q?Mapcache_Question?= In-Reply-To: References: Message-ID: <1412925812.717977415@f432.i.mail.ru> Hello ALL! I dig into MapCache now and my modest?comprehension is: 1) MapCache uses Mapserv for seeding tiles or more exactly - sends WMS request to Mapserv for getting a map: .... section in a mapcache.xml file 2) Ol uses MapCache for rendering that tiles or more exactly - sends WMS(or other) request to MapCache: new ol.layer.Tile({ source: new ol.source.TileWMS(({ url: 'myhost/mapcache/?', params: {'LAYERS': 'mytileset'}, serverType: 'mapserver' })) }) where /mapcache/ is path to a mapcache.xml(aliased through Apache), 'mytileset' is section in a mapcache.xml file 3)The Seeding and the rendering needs other configuration of mapcache.xml file(it is needs clarification). 4)The seeding may be through: mapcache_seed -c mapcache.xml -t mytileset-g mygrid or during a certain map area is requested by client (it is needs clarification). Thanks for any correction. Best regards. Wed, 1 Oct 2014 19:33:12 -0400 ?? Travis Kirstine : >Tim, > >MapCache Is simply a tiling server.? It will take images from a source and store them in a cache.? These tiles are exposed as services to clients - WMTS, WMS, TMS etc...? MapServer on the other hand will read source data (GIS files / database) and render images based on rules defined in the mapfile.? These images are used as the source for MapCache. > >On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman < tnasman at rollingleaf.com > wrote: >>I have read through the Mapcache documentation but I feel like I am missing some basic elements to how it works. >> >>?I am using Mapcache to display a mbtile that I have created. Now from what I understand, my mapcache .xml will list out the parameters of the mbtile and then I add a layer within my mapfile referencing the .xml which I should then be able to to use as WMTS using openlayers. I just haven't grasped how mapcache and mapserv work together so any clarification would be helpful. Thanks for your time.? >> >>-- >>Timothy Nasman >>Data Analyst | Programmer >>Rolling Leaf Inc. >>[V] : 910.274.1436 >>[E] :? tnasman at rollingleaf.com >> >> >>_______________________________________________ >>mapserver-users mailing list >>mapserver-users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > >-- >Travis Kirstine , Web Development Supervisor >t? 905?477?3600 ?x 301 | m? 905?534?4798 | tkirstine at firstbasesolution.com >First?Base?Solutions?Inc. >140?Renfrew?Drive, Suite?100 | Markham | Ontario | L3R?6B3 >t ?905?477?3600 | f ?905?477?0892 | www.firstbasesolutions.com >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ???????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Oct 10 05:16:34 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 10 Oct 2014 08:16:34 -0400 Subject: [mapserver-users] Mapcache Question In-Reply-To: <1412925812.717977415@f432.i.mail.ru> References: <1412925812.717977415@f432.i.mail.ru> Message-ID: <5437CE22.9020408@swoodbridge.com> On 10/10/2014 3:23 AM, Vladimir wrote: > Hello ALL! > > I dig into MapCache now and my modest comprehension is: > > 1) MapCache uses Mapserv for seeding tiles or more exactly - > sends WMS request to Mapserv for getting a map: > > .... section in a mapcache.xml file > > 2) Ol uses MapCache for rendering that tiles or more exactly - > sends WMS(or other) request to MapCache: > > new ol.layer.Tile({ > source: new ol.source.TileWMS(({ > url: 'myhost/mapcache/?', > params: {'LAYERS': 'mytileset'}, > serverType: 'mapserver' > })) > }) > where > /mapcache/ is path to a mapcache.xml(aliased through Apache), > 'mytileset' is section in a mapcache.xml file > > 3)The Seeding and the rendering needs other configuration of > mapcache.xml file(it is needs clarification). > > 4)The seeding may be through: > mapcache_seed -c mapcache.xml -t mytileset-g mygrid > or > during a certain map area is requested by client (it is needs > clarification). Yes, this seems correct. I will not that you CAN NOT use mapcache_seed AND web requests TOGETHER as they do not use compatible locking mechanisms. So either use mapcache_seed before you deploy or use the web requests to dynamically seed the cache. You can use mapcache_seed to do a partial pre seeding (like rectangles around major cities) then change over to web request which will generate tiles as needed in the remaining areas. -Steve W > Thanks for any correction. > Best regards. > > > > > Wed, 1 Oct 2014 19:33:12 -0400 ?? Travis Kirstine > : > > Tim, > > MapCache Is simply a tiling server. It will take images from a > source and store them in a cache. These tiles are exposed as > services to clients - WMTS, WMS, TMS etc... MapServer on the other > hand will read source data (GIS files / database) and render images > based on rules defined in the mapfile. These images are used as the > source for MapCache. > > On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman > wrote: > > I have read through the Mapcache documentation but I feel like I > am missing some basic elements to how it works. > > I am using Mapcache to display a mbtile that I have created. > Now from what I understand, my mapcache .xml will list out the > parameters of the mbtile and then I add a layer within my > mapfile referencing the .xml which I should then be able to to > use as WMTS using openlayers. I just haven't grasped how > mapcache and mapserv work together so any clarification would be > helpful. Thanks for your time. > > -- > Timothy Nasman > Data Analyst | Programmer > Rolling Leaf Inc. > [V] : 910.274.1436 > [E] : tnasman at rollingleaf.com > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > FBS Logo > > *Travis Kirstine*, Web Development Supervisor > *t *905?477?3600/ x /301 | *m *905?534?4798 | > tkirstine at firstbasesolution.com > > > *First Base Solutions Inc.* > 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3 > *t* 905?477?3600 | *f* 905?477?0892 | www.firstbasesolutions.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ???????? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Toutant at inspq.qc.ca Fri Oct 10 09:14:41 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Oct 2014 12:14:41 -0400 Subject: [mapserver-users] WFS DescribeFeatureType returns string for all attributes Message-ID: Hi, I'm using mapserv 6.4.1 as a wfs server to publish hundreds of layers. Most of the Layers are Postgis table or view DescribeFeatureType on a layer returns "string" as data type for each attributes. This is an issue when we want to flter on WFS layer. I saw that this issue was discussed years ago https://github.com/mapserver/docs/issues/65 Before Adding gml_[item name]_type for each non string attributes of every layers...Is there a plan to fix this bug? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Oct 10 09:29:16 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 10 Oct 2014 16:29:16 +0000 Subject: [mapserver-users] WFS DescribeFeatureType returns string for all attributes In-Reply-To: References: Message-ID: Hi, TinyOWS publish the schema automatically right and it belongs to the Mapserver family. Perhaps you could have a try with it? Live test server here http://hip.latuviitta.org/cgi-bin/tinyows?service=wfs&version=1.0.0&request=GetCapabilities -Jukka Rahkonen- ________________________________ Steve Toutant wrote: Hi, I'm using mapserv 6.4.1 as a wfs server to publish hundreds of layers. Most of the Layers are Postgis table or view DescribeFeatureType on a layer returns "string" as data type for each attributes. This is an issue when we want to flter on WFS layer. I saw that this issue was discussed years ago https://github.com/mapserver/docs/issues/65 Before Adding gml_[item name]_type for each non string attributes of every layers...Is there a plan to fix this bug? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Fri Oct 10 09:29:31 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Fri, 10 Oct 2014 16:29:31 +0000 Subject: [mapserver-users] [EXTERNAL] WFS DescribeFeatureType returns string for all attributes In-Reply-To: References: Message-ID: Steve, Does ?gml_types? ?auto" not work for you? Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Steve.Toutant at inspq.qc.ca" > Date: Friday, October 10, 2014 at 12:14 PM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WFS DescribeFeatureType returns string for all attributes Resent-From: Michael Smith > Hi, I'm using mapserv 6.4.1 as a wfs server to publish hundreds of layers. Most of the Layers are Postgis table or view DescribeFeatureType on a layer returns "string" as data type for each attributes. This is an issue when we want to flter on WFS layer. I saw that this issue was discussed years ago https://github.com/mapserver/docs/issues/65 Before Adding gml_[item name]_type for each non string attributes of every layers...Is there a plan to fix this bug? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Oct 10 09:41:34 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Oct 2014 12:41:34 -0400 Subject: [mapserver-users] [EXTERNAL] WFS DescribeFeatureType returns string for all attributes In-Reply-To: References: Message-ID: Yes it works! I didn't know about this Wow, Many thanks Steve "Smith, Michael ERDC-RDE-CRREL-NH" 2014-10-10 12:29 A "Steve.Toutant at inspq.qc.ca" , "mapserver-users at lists.osgeo.org" cc Objet Re: [EXTERNAL] [mapserver-users] WFS DescribeFeatureType returns string for all attributes Steve, Does ?gml_types? ?auto" not work for you? Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Steve.Toutant at inspq.qc.ca" Date: Friday, October 10, 2014 at 12:14 PM To: "mapserver-users at lists.osgeo.org" Subject: [EXTERNAL] [mapserver-users] WFS DescribeFeatureType returns string for all attributes Resent-From: Michael Smith Hi, I'm using mapserv 6.4.1 as a wfs server to publish hundreds of layers. Most of the Layers are Postgis table or view DescribeFeatureType on a layer returns "string" as data type for each attributes. This is an issue when we want to flter on WFS layer. I saw that this issue was discussed years ago https://github.com/mapserver/docs/issues/65 Before Adding gml_[item name]_type for each non string attributes of every layers...Is there a plan to fix this bug? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Oct 10 09:21:36 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 10 Oct 2014 16:21:36 +0000 Subject: [mapserver-users] WFS DescribeFeatureType returns string for all attributes In-Reply-To: References: Message-ID: Hi Steve: I'm not aware of a plan to fix this in the short term (patches gladly accepted though)... Sorry. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Friday, October 10, 2014 11:15 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS DescribeFeatureType returns string for all attributes Hi, I'm using mapserv 6.4.1 as a wfs server to publish hundreds of layers. Most of the Layers are Postgis table or view DescribeFeatureType on a layer returns "string" as data type for each attributes. This is an issue when we want to flter on WFS layer. I saw that this issue was discussed years ago https://github.com/mapserver/docs/issues/65 Before Adding gml_[item name]_type for each non string attributes of every layers...Is there a plan to fix this bug? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From michal.seidl at gmail.com Fri Oct 10 13:30:06 2014 From: michal.seidl at gmail.com (Michal Seidl) Date: Fri, 10 Oct 2014 22:30:06 +0200 Subject: [mapserver-users] Documentation of erlier versions of Mapserver Message-ID: <543841CE.2040905@gmail.com> Hello, because I did not find any direct contact to www.mapserver.org website administrator I am sending this issue to this list. There are wrong links to documentation in Pdf of erlier versions. Currents is: http://mapserver.org/MapServer-xx.pdf Correct is: http://mapserver.org/pdf/MapServer-xx.pdf Michal S. From mapserver at markus-spring.de Fri Oct 10 13:12:48 2014 From: mapserver at markus-spring.de (mapserver) Date: Fri, 10 Oct 2014 22:12:48 +0200 Subject: [mapserver-users] mapcache WMTS - TMS one tile offset Message-ID: <54383DC0.8030400@markus-spring.de> Disclaimer: I have asked this question already on openlayers-users, but not received any answer --- I have set up a mapserver/mapcache service for tiled background maps, which should offer WMTS and TMS services in the EPSG:31468 projection. The TMS tiles I've verified to be correctly placed against a standard wms layer, however the WMTS tiles get placed with a one tile offset to the south compared to the TMS tiles. Please see the screenshot: http://markus-spring.info/varia/wmts_tms_offset_problem.jpg The grid definition is as follows: Mapcache Service City of Munich EPSG 31468 EPSG:31468 256 256 4440016 5313983 4492016 5359983 m 141.11153491115225 70.55561745557612 42.33331047334567 35.27775872778806 26.458319045841048 17.63887936389403 8.819439681947015 3.527775872778806 2.6458319045841043 1.763887936389403 0.8819439681947016 0.35277758727788067 0.17638879363894033 and the tileset karte_2014-1 disk karte_2014-1 PNG 5 5 10 ^[a-zA-Z0-9\./]*\.map$ MUC31468 while the service definitions (for OpenLayers 2.13) are these: var wmts = new OpenLayers.Layer.WMTS({ name: "WMTS basemap", url: "http://centmap/mapcache/wmts?", layer: "karte_2014-1", matrixSet: "MUC31468", format: "image/png", style: "default", opacity: 0.7, maxExtent: maxExtent, isBaseLayer: true }); var tms = new OpenLayers.Layer.TMS( "TMS basemap", "http://centmap/mapcache/tms/", { layername: "karte_2014-1", type: "png" } ); Any help would be greatly appreciated. ---Markus From jmckenna at gatewaygeomatics.com Fri Oct 10 14:15:02 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 10 Oct 2014 18:15:02 -0300 Subject: [mapserver-users] Documentation of erlier versions of Mapserver In-Reply-To: <543841CE.2040905@gmail.com> References: <543841CE.2040905@gmail.com> Message-ID: <54384C56.90409@gatewaygeomatics.com> Good catch Michal. I've checked-in an attempted fix for this, it should be visible soon. By the way, in the future if you want to report (or maybe submit fixes) to the docs the best way is to file a ticket here: https://github.com/mapserver/docs/issues Speaking for myself, I can't keep up to hundreds of mailing list emails a day, but tickets are easier to follow. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-10-10 5:30 PM, Michal Seidl wrote: > Hello, > because I did not find any direct contact to www.mapserver.org website > administrator I am sending this issue to this list. > > There are wrong links to documentation in Pdf of erlier versions. > Currents is: > http://mapserver.org/MapServer-xx.pdf > > Correct is: > http://mapserver.org/pdf/MapServer-xx.pdf > > Michal S. From txstudio at yeah.net Sun Oct 12 23:21:23 2014 From: txstudio at yeah.net (TENGDA) Date: Mon, 13 Oct 2014 14:21:23 +0800 (CST) Subject: [mapserver-users] STYLEITEM AUTO and LABEL ENCODING can't exist simultaneously?? Message-ID: <70f376c2.7624.149082b1e10.Coremail.txstudio@yeah.net> Hi All, Is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030? NOTE: my mapserv is V5.2.1. [PROBLEM]: I am now using mapinfo tab files as my map data. Labels in the mapinfo files are in Chinese. In order to support styles within mapinfo, I use 'STYLEITEM AUTO'. Then style are displayed well, however, Chinese characters are not displayed properly. [PROBLEM DESCRIPTION]: Mapserver version: 5.2.1. MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ogrinfo of tab file: OGRFeature(2000_BJ10):4 blank (String) = Style = LABEL(t:"?",a:0.000000,s:1.380000g,c:#000000,p:1,f:"") POINT (1017054046.578231 612967797.60216415) [CONFUSING]: When I use STYLEITEM AUTO, I can't set 'ENCODING GB18030' for LABEL. If not using STYLEITEM AUTO, I can't set LABELITEM, because the chinese character is within Style=LABEL(t:"Chinese character"....). Method I also tried includes: Change mapfile encoding from ANSI to UTF-8 Change MIF/MID encoding from ANSI to UTF-8, or even to BIG5. So, is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030? NOTE: my mapserv is V5.2.1. [MORE INFORMATION]: I also have another mapinfo tab file, whose data is like this: ENAME2000: String (50.0) OGRFeature(??):1 NAME (String) = ??? AREA (Real) = 1.733 PERIMETER (Real) = 8.498 ??_ (Real) = 9 ??_ID (Real) = 11 CODE2000 (Real) = 110000 ENAME2000 (String) = Beijing Municipality Style = BRUSH(fc:#f0f0f0,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p x,c:#d0d0d0,id:"mapinfo-pen-2.ogr-pen-0") In this situation, I can use one layer with 'STYLEITEM AUTO' to display styles, and another layer with 'LABELITEM NAME' and LABEL ... END to display Labels, without any problem. Mapfile is as follow: LAYER ##DATASOURCETYPE 0 NAME "test" TYPE polygon STATUS DEFAULT OPACITY 100 SIZEUNITS pixels DATA "??" CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" CONNECTIONTYPE ogr STYLEITEM "AUTO" PROJECTION AUTO END CLASS NAME "Untitled class" END END LAYER ##DATASOURCETYPE 0 NAME "??" TYPE annotation STATUS DEFAULT OPACITY 100 SIZEUNITS pixels DATA "??" CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" CONNECTIONTYPE ogr PROJECTION AUTO END LABELITEM "NAME" CLASS NAME "Untitled class" LABEL ANGLE auto FONT "HEITI" ENCODING "GB18030" TYPE truetype PRIORITY 1 SIZE 10 MAXSIZE 256 MINSIZE 4 COLOR 255 0 0 OUTLINECOLOR 0 255 255 BACKGROUNDSHADOWSIZE 1 1 POSITION cc ANTIALIAS FALSE FORCE FALSE PARTIALS FALSE END END END As you can see the difference between the two kinds of tab file, one set chinese character in to LABEL(t:'') field, in which I not know how to both set STYLEITEM AUTO and set ENCODING to LABEL. the other set Chinese character to the NAME field, in which I can set one layer with STYLEITEM AUTO, and another layer with LABELITEM. Can anyone solve the problem I described in this post? Waiting for your reply. Thanks very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Sun Oct 12 23:54:58 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 13 Oct 2014 06:54:58 +0000 Subject: [mapserver-users] STYLEITEM AUTO and LABEL ENCODING can't exist simultaneously?? Message-ID: Hi, It seems that you have done a good work by studying the situation yourself and it looks like combination ?styleitem auto? and ?encoding GB18030? does not work in your environment. However, it is unlikely that you will get any better answer that this one I am writing because you are using version 5.2.1 which was released 2008-12-08.? There can?t be many users worldwide who are using that old version, Chinase character set, and data from MapInfo TAB. I suggest you to update to version 6.5-dev or at least 6.4.1 and repeat your test. If it still fails, prepare a test package with a small sample of MapInfo data and a minimal but complete mapfile so other users and developers can reproduce the issue. -Jukka Rahkonen- TENGDA wrote: Hi All, Is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030? ?NOTE: my mapserv is V5.2.1. [PROBLEM]: I am now using mapinfo tab files as my map data.? Labels in the mapinfo files are in Chinese. In order to support styles within mapinfo, I use 'STYLEITEM AUTO'.? Then style are displayed well, however, Chinese characters are?not?displayed?properly. [PROBLEM DESCRIPTION]: ? Mapserver version: 5.2.1. MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF ?OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR ?INPUT=GDAL INPUT=SHAPEFILE ? ogrinfo of tab file: OGRFeature(2000_BJ10):4 ? blank (String) =? ? Style = LABEL(t:"?",a:0.000000,s:1.380000g,c:#000000,p:1,f:"") ? POINT (1017054046.578231 612967797.60216415) [CONFUSING]: ? When I use STYLEITEM AUTO, I can't set 'ENCODING GB18030' for LABEL.? ? If not using STYLEITEM AUTO, I can't set LABELITEM, because the chinese character is within Style=LABEL(t:"Chinese character"....). Method I also tried includes: ? Change mapfile encoding from ANSI to UTF-8 ? Change MIF/MID encoding from ANSI to UTF-8, or even to BIG5. So, is there any method that I can both set 'STYLEITEM AUTO', and also set ENCODING GB18030? ?NOTE: my mapserv is V5.2.1. [MORE INFORMATION]: I also have another mapinfo tab file, whose data is like this: ENAME2000: String (50.0) OGRFeature(??):1 ??NAME (String) = ??? ? AREA (Real) = ? ? ? ? ? ? 1.733 ? PERIMETER (Real) = ? ? ? ? ? ? 8.498 ? ??_ (Real) = ? ? ? ? ? 9 ? ??_ID (Real) = ? ? ? ? ?11 ? CODE2000 (Real) = 110000 ? ENAME2000 (String) = Beijing Municipality ? Style = BRUSH(fc:#f0f0f0,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p x,c:#d0d0d0,id:"mapinfo-pen-2.ogr-pen-0") In this situation, I can use one layer with 'STYLEITEM AUTO' to display styles, and another layer with 'LABELITEM NAME' and LABEL ... END to display Labels, without any problem. Mapfile is as follow: ??????????????????? LAYER ????????????????????????????????????????? ##DATASOURCETYPE 0 ????????????????????????????????????????? NAME "test" ????????????????????????????????????????? TYPE polygon ????????????????????????????????????????? STATUS DEFAULT ????????????????????????????????????????? OPACITY 100 ????????????????????????????????????????? SIZEUNITS pixels ????????????????????????????????????????? DATA "??" ????????????????????????????????????????? CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" ????????????????????????????????????????? CONNECTIONTYPE ogr ????????????????????????????????????????? STYLEITEM "AUTO" ????????????????????????????????????????? PROJECTION ??????????????????????????????????????????????????????????????? AUTO ????????????????????????????????????????? END ????????????????????????????????????????? CLASS ??????????????????????????????????????????????????????????????? NAME "Untitled class" ????????????????????????????????????????? END ??????????????????? END ??????????????????? LAYER ????????????????????????????????????????? ##DATASOURCETYPE 0 ????????????????????????????????????????? NAME "??" ????????????????????????????????????????? TYPE annotation ????????????????????????????????????????? STATUS DEFAULT ????????????????????????????????????????? OPACITY 100 ????????????????????????????????????????? SIZEUNITS pixels ????????????????????????????????????????? DATA "??" ????????????????????????????????????????? CONNECTION "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" ????????????????????????????????????????? CONNECTIONTYPE ogr ????????????????????????????????????????? PROJECTION ??????????????????????????????????????????????????????????????? AUTO ????????????????????????????????????????? END ????????????????????????????????????????? LABELITEM "NAME" ????????????????????????????????????????? CLASS ??????????????????????????????????????????????????????????????? NAME "Untitled class" ??????????????????????????????????????????????????????????????? LABEL ????????????????????????????????????????????????????????????????????????????????????? ANGLE auto ????????????????????????????????????????????????????????????????????????????????????? FONT "HEITI" ????????????????????????????????????????????????????????????????????????????????????? ENCODING "GB18030" ????????????????????????????????????????????????????????????????????????????????????? TYPE truetype ????????????????????????????????????????????????????????????????????????????????????? PRIORITY 1 ????????????????????????????????????????????????????????????????????????????????????? SIZE 10 ????????????????????????????????????????????????????????????????????????????????????? MAXSIZE 256 ????????????????????????????????????????????????????????????????????????????????????? MINSIZE 4 ????????????????????????????????????????????????????????????????????????????????????? COLOR 255 0 0 ????????????????????????????????????????????????????????????????????????????????????? OUTLINECOLOR 0 255 255 ????????????????????????????????????????????????????????????????????????????????????? BACKGROUNDSHADOWSIZE 1 1 ????????????????????????????????????????????????????????????????????????????????????? POSITION cc ????????????????????????????????????????????????????????????????????????????????????? ANTIALIAS FALSE ????????????????????????????????????????????????????????????????????????????????????? FORCE FALSE ????????????????????????????????????????????????????????????????????????????????????? PARTIALS FALSE ??????????????????????????????????????????????????????????????? END ????????????????????????????????????????? END ??????????????????? END As you can see the difference between the two kinds of tab file,? ? one set chinese character in to LABEL(t:'') field, in which I not know how to both set STYLEITEM AUTO and set ENCODING to LABEL. ? the other set Chinese character to the NAME field, in which I can set one layer with STYLEITEM AUTO, and another layer with LABELITEM. Can anyone solve the problem I described in this post? Waiting for your reply.?Thanks very much. From richard.greenwood at gmail.com Mon Oct 13 08:41:38 2014 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 13 Oct 2014 09:41:38 -0600 Subject: [mapserver-users] installing scribeui on Ubuntu 14.04 Message-ID: Following the instructions at https://github.com/mapgears/scribeui when I did 'sudo make' I got the error: http://simple.crate.io/ uses an insecure transport scheme (http). Consider using https if simple.crate.io has it available Could not find a version that satisfies the requirement fixture==1.6 (from -r requirements.txt (line 14)) (from versions: 0.9.1, 0.9.2, 0.9, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.3.1, 1.3, 1.4, 1.5) Some externally hosted files were ignored (use --allow-external to allow). No distributions matching the version for fixture==1.6 (from -r requirements.txt (line 14)) Storing debug log for failure in /home/rich/.pip/pip.log make: *** [dep_requirements] Error 1 Any suggestions? Thanks, Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Mon Oct 13 18:14:33 2014 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 13 Oct 2014 19:14:33 -0600 Subject: [mapserver-users] installing scribeui on Ubuntu 14.04 In-Reply-To: References: Message-ID: In requirements.txt I changed fixture from 1.6 to 1.5 and got it to build, but not sure of possible ramifications. On Mon, Oct 13, 2014 at 9:41 AM, Richard Greenwood < richard.greenwood at gmail.com> wrote: > Following the instructions at https://github.com/mapgears/scribeui > when I did 'sudo make' I got the error: > > http://simple.crate.io/ uses an insecure transport scheme (http). > Consider using https if simple.crate.io has it available > Could not find a version that satisfies the requirement fixture==1.6 > (from -r requirements.txt (line 14)) (from versions: 0.9.1, 0.9.2, 0.9, > 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.3.1, 1.3, 1.4, 1.5) > Some externally hosted files were ignored (use --allow-external to > allow). > No distributions matching the version for fixture==1.6 (from -r > requirements.txt (line 14)) > Storing debug log for failure in /home/rich/.pip/pip.log > make: *** [dep_requirements] Error 1 > > Any suggestions? > Thanks, > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Tue Oct 14 02:58:58 2014 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 14 Oct 2014 11:58:58 +0200 Subject: [mapserver-users] Problems compiling current git master on CentOS 6 due to lack of HarfBuzz Message-ID: <543CF3E2.5000301@r3-gis.com> I'd like to test if https://github.com/mapserver/mapserver/issues/4980 persists in the current development tree. Trying to compile on CentOS6 with mkdir build cd build cmake -DWITH_KML=ON -DWITH_FREEBIDI=0 -DWITH_HARFBUZZ=0 .. it fails, complaining for the lack of harfbuzz. Currently I'm not aware of any "official" package of HarfBuzz for C6, so I'm struck at this point. Will HarfBuzz be a mandatory requirement for MapServer 7? Regards, Peter -- Peter Hopfgartner web : http://www.r3-gis.com From thomas.bonfort at gmail.com Tue Oct 14 03:03:31 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 14 Oct 2014 12:03:31 +0200 Subject: [mapserver-users] Problems compiling current git master on CentOS 6 due to lack of HarfBuzz In-Reply-To: <543CF3E2.5000301@r3-gis.com> References: <543CF3E2.5000301@r3-gis.com> Message-ID: can you start with a new build directory, I've just tested and can correctly disable harfbuzz/fribidi... cmake ~/dev/mapserver -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF -- thomas On 14 October 2014 11:58, Peter Hopfgartner wrote: > I'd like to test if https://github.com/mapserver/mapserver/issues/4980 > persists in the current development tree. > > Trying to compile on CentOS6 with > > mkdir build > cd build > cmake -DWITH_KML=ON -DWITH_FREEBIDI=0 -DWITH_HARFBUZZ=0 .. > > it fails, complaining for the lack of harfbuzz. > > Currently I'm not aware of any "official" package of HarfBuzz for C6, so I'm > struck at this point. Will HarfBuzz be a mandatory requirement for MapServer > 7? > > Regards, > > Peter > > -- > Peter Hopfgartner > web : http://www.r3-gis.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue Oct 14 03:13:41 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 14 Oct 2014 12:13:41 +0200 Subject: [mapserver-users] mapcache WMTS - TMS one tile offset In-Reply-To: <54383DC0.8030400@markus-spring.de> References: <54383DC0.8030400@markus-spring.de> Message-ID: Markus, TMS expects tiles starting at the bottom left whereas WMTS expects them starting top left. Mapcache by default uses bottom-left ordered grids, and creates a WMTS capabilities document that accounts for that in the sense that the TopLeftCorner of each TileMatrix is adjusted and may vary if the combination of your grid extents and resolutions do not produce a stable topleftcorner for each resolution. You have multiple ways forward: - use a combination of grid extents and resolutions that force a stable topleftcorner whatever the resolution. This is usually done by using power-of-two resolutions. - force the grid to be fixed to the top left corner instead of bottom left. top-left. Your tileset will not be compatible with TMS requests. - use a wmts client that knows how to parse WMTS capabilities so that the correct topleftcorner is used for each resolution - (not sure, but check if openlayers supports overiding the topleft origin for its grid for WMTS requests) cheers, thomas On 10 October 2014 22:12, mapserver wrote: > Disclaimer: I have asked this question already on openlayers-users, but not > received any answer > --- > > I have set up a mapserver/mapcache service for tiled background maps, which > should offer WMTS and TMS services > in the EPSG:31468 projection. > > The TMS tiles I've verified to be correctly placed against a standard wms > layer, however the WMTS tiles get placed with > a one tile offset to the south compared to the TMS tiles. > > Please see the screenshot: > http://markus-spring.info/varia/wmts_tms_offset_problem.jpg > > The grid definition is as follows: > > > > Mapcache Service City of Munich EPSG 31468 > > EPSG:31468 > 256 256 > 4440016 5313983 4492016 5359983 > m > 141.11153491115225 70.55561745557612 > 42.33331047334567 35.27775872778806 26.458319045841048 > 17.63887936389403 8.819439681947015 3.527775872778806 > 2.6458319045841043 1.763887936389403 0.8819439681947016 > 0.35277758727788067 0.17638879363894033 > > > and the tileset > > > karte_2014-1 > disk > > karte_2014-1 > > > PNG > 5 5 > 10 > > default="/path/to/mapfile.map">^[a-zA-Z0-9\./]*\.map$ > > MUC31468 > > > > while the service definitions (for OpenLayers 2.13) are these: > > var wmts = new OpenLayers.Layer.WMTS({ > name: "WMTS basemap", > url: "http://centmap/mapcache/wmts?", > layer: "karte_2014-1", > matrixSet: "MUC31468", > format: "image/png", > style: "default", > opacity: 0.7, > maxExtent: maxExtent, > isBaseLayer: true > }); > > var tms = new OpenLayers.Layer.TMS( > "TMS basemap", > "http://centmap/mapcache/tms/", > { layername: "karte_2014-1", > type: "png" } > ); > > Any help would be greatly appreciated. > > ---Markus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From peter.hopfgartner at r3-gis.com Tue Oct 14 03:40:32 2014 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 14 Oct 2014 12:40:32 +0200 Subject: [mapserver-users] Problems compiling current git master on CentOS 6 due to lack of HarfBuzz In-Reply-To: References: <543CF3E2.5000301@r3-gis.com> Message-ID: <543CFDA0.1040407@r3-gis.com> Hmm, now it works. Thanks, Peter On 10/14/2014 12:03 PM, thomas bonfort wrote: > can you start with a new build directory, I've just tested and can > correctly disable harfbuzz/fribidi... > > cmake ~/dev/mapserver -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF > > -- > thomas > > On 14 October 2014 11:58, Peter Hopfgartner > wrote: >> I'd like to test if https://github.com/mapserver/mapserver/issues/4980 >> persists in the current development tree. >> >> Trying to compile on CentOS6 with >> >> mkdir build >> cd build >> cmake -DWITH_KML=ON -DWITH_FREEBIDI=0 -DWITH_HARFBUZZ=0 .. >> >> it fails, complaining for the lack of harfbuzz. >> >> Currently I'm not aware of any "official" package of HarfBuzz for C6, so I'm >> struck at this point. Will HarfBuzz be a mandatory requirement for MapServer >> 7? >> >> Regards, >> >> Peter >> >> -- >> Peter Hopfgartner >> web : http://www.r3-gis.com >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Peter Hopfgartner web : http://www.r3-gis.com From richard.greenwood at gmail.com Tue Oct 14 05:18:07 2014 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 14 Oct 2014 06:18:07 -0600 Subject: [mapserver-users] ScribeUI Message-ID: I got scribeui and the sample data installed. What's the password for the "default" workspace? Thanks -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlapointe at mapgears.com Tue Oct 14 05:38:10 2014 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Tue, 14 Oct 2014 08:38:10 -0400 Subject: [mapserver-users] ScribeUI In-Reply-To: References: Message-ID: The default workspace's password is default. That workspace is a bit special, as if you change the maps in that workspace, it'll change the default map used when you create a new map from a template. Have a good day! Jessica Lapointe On Tue, Oct 14, 2014 at 8:18 AM, Richard Greenwood wrote: > I got scribeui and the sample data installed. What's the password for the > "default" workspace? > > Thanks > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bhudspeth at edac.unm.edu Tue Oct 14 12:31:40 2014 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Tue, 14 Oct 2014 13:31:40 -0600 (MDT) Subject: [mapserver-users] Can't find mapserv.exe In-Reply-To: <2073722746.1015502.1413315094100.JavaMail.zimbra@edac.unm.edu> Message-ID: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> Hello, I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package manager. I know it is installed on my system. When I run mapserv -v, I get: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE When I search for the file (mapserv.exe) with locate or find, it is not found. I want to place a copy in my cgi-bin, as follows: /var/www/website/public_html/cgi-bin .... What am I missing? Thanks! Vick From wal3 at mindspring.com Tue Oct 14 12:49:00 2014 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 14 Oct 2014 15:49:00 -0400 Subject: [mapserver-users] Can't find mapserv.exe In-Reply-To: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> References: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> Message-ID: <543D7E2C.3000401@mindspring.com> ubuntu is linux ... no ".exe" mapserv should already be in /usr/lib/cgi-bin/ and /usr/bin/ No need to move it. try locate mapserv to find it. *Worth Lutz* ------------------ On 10/14/2014 03:31 PM, Bill Hudspeth wrote: > Hello, > > I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package manager. I know it is installed on my system. When I run > > mapserv -v, I get: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > When I search for the file (mapserv.exe) with locate or find, it is not found. I want to place a copy in my cgi-bin, as follows: > > /var/www/website/public_html/cgi-bin .... > > What am I missing? > > Thanks! Vick > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Oct 14 12:59:45 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 14 Oct 2014 16:59:45 -0300 Subject: [mapserver-users] Can't find mapserv.exe In-Reply-To: <543D7E2C.3000401@mindspring.com> References: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> <543D7E2C.3000401@mindspring.com> Message-ID: <543D80B1.70205@gatewaygeomatics.com> Another nice trick to see where something is installed on Ubuntu is to use the 'which' command: $ which mapserv /usr/local/bin/mapserv -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-10-14 4:49 PM, Worth Lutz wrote: > ubuntu is linux ... no ".exe" > > mapserv should already be in /usr/lib/cgi-bin/ > and /usr/bin/ > > No need to move it. > > try > > locate mapserv > > to find it. > > > *Worth Lutz* > ------------------ > > On 10/14/2014 03:31 PM, Bill Hudspeth wrote: >> Hello, >> >> I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package manager. I know it is installed on my system. When I run >> >> mapserv -v, I get: >> >> MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> When I search for the file (mapserv.exe) with locate or find, it is not found. I want to place a copy in my cgi-bin, as follows: >> >> /var/www/website/public_html/cgi-bin .... >> >> What am I missing? >> >> Thanks! Vick > From forums at craniumjuice.com Tue Oct 14 13:10:35 2014 From: forums at craniumjuice.com (forums) Date: Tue, 14 Oct 2014 15:10:35 -0500 Subject: [mapserver-users] Can't find mapserv.exe In-Reply-To: <543D7E2C.3000401@mindspring.com> References: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> <543D7E2C.3000401@mindspring.com> Message-ID: which mapserv Will tell you where it is in your path. On Tue, Oct 14, 2014 at 2:49 PM, Worth Lutz wrote: > ubuntu is linux ... no ".exe" > > mapserv should already be in /usr/lib/cgi-bin/ > and /usr/bin/ > > No need to move it. > > try > > locate mapserv > > to find it. > > > *Worth Lutz* > ------------------ > > On 10/14/2014 03:31 PM, Bill Hudspeth wrote: > > Hello, > > I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package manager. I know it is installed on my system. When I run > > mapserv -v, I get: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > When I search for the file (mapserv.exe) with locate or find, it is not found. I want to place a copy in my cgi-bin, as follows: > > /var/www/website/public_html/cgi-bin .... > > What am I missing? > > Thanks! Vick > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anttij.lind at birdlife.fi Tue Oct 14 12:44:50 2014 From: anttij.lind at birdlife.fi (Antti J. Lind) Date: Tue, 14 Oct 2014 22:44:50 +0300 Subject: [mapserver-users] Can't find mapserv.exe In-Reply-To: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> References: <738765598.1015503.1413315100663.JavaMail.zimbra@edac.unm.edu> Message-ID: <8969878fe610a256f88d74e6c1269e0e@ajl.fi> Hi, I think that the filename on linux-os is just mapserv try "which mapserv" -- AJL Bill Hudspeth kirjoitti 2014-10-14 22:31: > Hello, > > I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package > manager. I know it is installed on my system. When I run > > mapserv -v, I get: > > MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > When I search for the file (mapserv.exe) with locate or find, it is > not found. I want to place a copy in my cgi-bin, as follows: > > /var/www/website/public_html/cgi-bin .... > > What am I missing? > > Thanks! Vick > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From peter.hopfgartner at r3-gis.com Wed Oct 15 02:57:58 2014 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 15 Oct 2014 11:57:58 +0200 Subject: [mapserver-users] Symbols in KML outout Message-ID: <543E4526.4030906@r3-gis.com> From http://mapserver.org/output/kml_output.html#id2, it should be possible to have icons for sysmbols. The pixmap of the ison should be referenced in the href node. In my output, the href ode looks like: (null) Is there anything I missed? Regards, Peter -- Peter Hopfgartner web : http://www.r3-gis.com From tds at tds-net.de Wed Oct 15 04:30:02 2014 From: tds at tds-net.de (TDS) Date: Wed, 15 Oct 2014 13:30:02 +0200 Subject: [mapserver-users] Symbols in KML outout In-Reply-To: <543E4526.4030906@r3-gis.com> References: <543E4526.4030906@r3-gis.com> Message-ID: <543E5ABA.5050806@tds-net.de> Hello, look at this: http://lists.osgeo.org/pipermail/mapserver-users/2014-July/076732.html Problem is known but nobody says why it won't be fixed or similar... Bye, TDS ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 15.10.2014 um 11:57 schrieb Peter Hopfgartner: > From http://mapserver.org/output/kml_output.html#id2, it should be > possible to have icons for sysmbols. The pixmap of the ison should be > referenced in the href node. > In my output, the href ode looks like: > > (null) > > Is there anything I missed? > > Regards, > > Peter > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Thu Oct 16 01:09:22 2014 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 16 Oct 2014 10:09:22 +0200 Subject: [mapserver-users] Symbols in KML outout In-Reply-To: <543E4526.4030906@r3-gis.com> References: <543E4526.4030906@r3-gis.com> Message-ID: <543F7D32.7050001@r3-gis.com> Just as a quick fix, I'd propose to drop the href node if no reasonable value is given. Anything more elaborate can be added later on. Comments? Peter On 10/15/2014 11:57 AM, Peter Hopfgartner wrote: > From http://mapserver.org/output/kml_output.html#id2, it should be > possible to have icons for sysmbols. The pixmap of the ison should be > referenced in the href node. > In my output, the href ode looks like: > > (null) > > Is there anything I missed? > > Regards, > > Peter > -- Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web : www.r3-gis.com mail : peter.hopfgartner at r3-gis.com phone: +39 0473 494949 fax : +39 0473 069902 ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) From Andreas.Eichner at sid.sachsen.de Thu Oct 16 05:56:27 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Thu, 16 Oct 2014 12:56:27 +0000 Subject: [mapserver-users] Symbols in KML outout In-Reply-To: <543F7D32.7050001@r3-gis.com> References: <543E4526.4030906@r3-gis.com>,<543F7D32.7050001@r3-gis.com> Message-ID: <6F331135492B944D90731CE93743D5680D3400@FS-EX-DB102.fs.sachsen.de> Never used it but it seems the KML driver creates PNG images on the fly and returns them as href. This seems to be independent of the type of symbol. So you should make sure MS is able to write those images into /tmp or $MS_TEMPPATH. The "(null)" indicates that it was unable to do so. HTH ________________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "Peter Hopfgartner [peter.hopfgartner at r3-gis.com] Gesendet: Donnerstag, 16. Oktober 2014 10:09 An: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Symbols in KML outout Just as a quick fix, I'd propose to drop the href node if no reasonable value is given. Anything more elaborate can be added later on. Comments? Peter On 10/15/2014 11:57 AM, Peter Hopfgartner wrote: > From http://mapserver.org/output/kml_output.html#id2, it should be > possible to have icons for sysmbols. The pixmap of the ison should be > referenced in the href node. > In my output, the href ode looks like: > > (null) > > Is there anything I missed? > > Regards, > > Peter > -- Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web : www.r3-gis.com mail : peter.hopfgartner at r3-gis.com phone: +39 0473 494949 fax : +39 0473 069902 ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Michael.Smith at erdc.dren.mil Thu Oct 16 06:16:10 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 16 Oct 2014 13:16:10 +0000 Subject: [mapserver-users] [EXTERNAL] Re: Symbols in KML outout Message-ID: You also have to make sure that the IMAGEURL is a full web URL not just a path. Mike On 10/16/14, 8:56 AM, "Eichner, Andreas - SID" wrote: >Never used it but it seems the KML driver creates PNG images on the fly >and returns them as href. This seems to be independent of the type of >symbol. So you should make sure MS is able to write those images into >/tmp or $MS_TEMPPATH. The "(null)" indicates that it was unable to do so. > >HTH >________________________________________ >Von: mapserver-users-bounces at lists.osgeo.org >[mapserver-users-bounces at lists.osgeo.org]" im Auftrag von >"Peter Hopfgartner [peter.hopfgartner at r3-gis.com] >Gesendet: Donnerstag, 16. Oktober 2014 10:09 >An: mapserver-users at lists.osgeo.org >Betreff: Re: [mapserver-users] Symbols in KML outout > >Just as a quick fix, I'd propose to drop the href node if no reasonable >value is given. Anything more elaborate can be added later on. Comments? > >Peter > >On 10/15/2014 11:57 AM, Peter Hopfgartner wrote: >> From http://mapserver.org/output/kml_output.html#id2, it should be >> possible to have icons for sysmbols. The pixmap of the ison should be >> referenced in the href node. >> In my output, the href ode looks like: >> >> (null) >> >> Is there anything I missed? >> >> Regards, >> >> Peter >> > > >-- >Peter Hopfgartner >R3 GIS Srl - GmbH >Via Johann Kravogl-Str. 2 >I-39012 Meran/Merano (BZ) >web : www.r3-gis.com >mail : peter.hopfgartner at r3-gis.com >phone: +39 0473 494949 >fax : +39 0473 069902 > >ATTENZIONE! Le informazioni contenute nella presente e-mail e nei >documenti eventualmente allegati sono confidenziali. La loro diffusione, >distribuzione e/o riproduzione da parte di terzi, senza autorizzazione >del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di >ricezione per errore, Vogliate immediatamente informare il mittente del >messaggio e distruggere la e-mail. > >ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten >beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung >und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders >verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie >diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns >umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. > >WARNING! This e-mail may contain confidential and/or privileged >information. If you are not the intended recipient (or have received this >e-mail in error) please notify the sender immediately and destroy this >e-mail. Any unauthorised copying, disclosure or distribution of the >material in this e-mail is strictly forbidden and could be against the >law (D. Lgs. 196/2003) > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From palermo.frances at gmail.com Thu Oct 16 08:04:18 2014 From: palermo.frances at gmail.com (Francesco Palermo) Date: Thu, 16 Oct 2014 17:04:18 +0200 Subject: [mapserver-users] WMS rendering Message-ID: <543FDE72.3040202@gmail.com> Hello, I'm experimenting the use of Mapserver as WMS and I'm encountering some problems on map rendering. I'm using a shapefile as a map source and it's a map of points (generated by a csv using ogr2ogr - Could I use directly csv with Mapserver? I don't know). I can't get the rendering of this map using for example QGIS or this URL in the browser (which I hope it's correct): http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test& This is the mapfile: MAP NAME "test" STATUS ON SIZE 500 300 IMAGETYPE PNG EXTENT 9.2990 43.0105 9.4894 43.0524 UNITS METERS DEBUG 5 PROJECTION "init=epsg:4269" END WEB TEMPLATE "template.html" IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" "wms_enable_request" "*" END END #IMAGECOLOR 255 255 255 TRANSPARENT ON SHAPEPATH "oilspill/" OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "GAMMA=0.75" END SYMBOL NAME "square" TYPE vector POINTS 0 0 0 1 1 1 1 0 0 0 END FILLED true ANCHORPOINT 0.5 0.5 END LAYER NAME "test" TYPE POINT STATUS DEFAULT DATA "timestep24" DEBUG 5 SIZEUNITS meters PROJECTION "init=epsg:4269" END METADATA "wms_title" "test" END CLASSITEM "weight" CLASS STYLE COLOR "#1014FF" SYMBOL "square" SIZE 0.0019 END END END END Any suggestions? Are there any errors in the mapfile? Or am I wrong in the procedure? Thanks, Francesco From jt at mapmedia.de Thu Oct 16 08:22:38 2014 From: jt at mapmedia.de (=?windows-1252?Q?J=F6rg_Thomsen?=) Date: Thu, 16 Oct 2014 17:22:38 +0200 Subject: [mapserver-users] WMS rendering In-Reply-To: <543FDE72.3040202@gmail.com> References: <543FDE72.3040202@gmail.com> Message-ID: <543FE2BE.8010505@mapmedia.de> Hello Francesco, no error-message, only a blank image? What's in the error-log? The MS_ERRORFILE ist set in httpd.conf? I think symbol is veryvery small. Try >= 1. You can use a csv-file in MapServer via OGR :) http://mapserver.org/input/vector/ogr.html J?rg Am 16.10.2014 um 17:04 schrieb Francesco Palermo: > Hello, > I'm experimenting the use of Mapserver as WMS and I'm encountering some > problems on map rendering. I'm using a shapefile as a map source and > it's a map of points (generated by a csv using ogr2ogr - Could I use > directly csv with Mapserver? I don't know). I can't get the rendering of > this map using for example QGIS or this URL in the browser (which I hope > it's correct): > http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test& > > > This is the mapfile: > MAP > NAME "test" > STATUS ON > SIZE 500 300 > IMAGETYPE PNG > EXTENT 9.2990 43.0105 9.4894 43.0524 > UNITS METERS > DEBUG 5 > PROJECTION > "init=epsg:4269" > END > WEB > TEMPLATE "template.html" > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" > "wms_enable_request" "*" > END > END > #IMAGECOLOR 255 255 255 > TRANSPARENT ON > SHAPEPATH "oilspill/" > OUTPUTFORMAT > NAME "png" > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "GAMMA=0.75" > END > SYMBOL > NAME "square" > TYPE vector > POINTS > 0 0 > 0 1 > 1 1 > 1 0 > 0 0 > END > FILLED true > ANCHORPOINT 0.5 0.5 > END > LAYER > NAME "test" > TYPE POINT > STATUS DEFAULT > DATA "timestep24" > DEBUG 5 > SIZEUNITS meters > PROJECTION > "init=epsg:4269" > END > METADATA > "wms_title" "test" > END > CLASSITEM "weight" > CLASS > STYLE > COLOR "#1014FF" > SYMBOL "square" > SIZE 0.0019 > END > END > END > END > > Any suggestions? Are there any errors in the mapfile? Or am I wrong in > the procedure? > > Thanks, > Francesco > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Oct 16 10:44:07 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 16 Oct 2014 19:44:07 +0200 Subject: [mapserver-users] WMS rendering In-Reply-To: <543FDE72.3040202@gmail.com> References: <543FDE72.3040202@gmail.com> Message-ID: sizeunits meters along with size 0.0019 is very probably false unless you're mapping microscopic particles :) try removing the sizeunits parameter completely and setting size to something visible in pixels (e.g. 3-5), once that is working you can start looking into scale-dependant rendering with sizeunits.... -- thomas On 16 October 2014 17:04, Francesco Palermo wrote: > Hello, > I'm experimenting the use of Mapserver as WMS and I'm encountering some > problems on map rendering. I'm using a shapefile as a map source and it's a > map of points (generated by a csv using ogr2ogr - Could I use directly csv > with Mapserver? I don't know). I can't get the rendering of this map using > for example QGIS or this URL in the browser (which I hope it's correct): > http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test& > > This is the mapfile: > MAP > NAME "test" > STATUS ON > SIZE 500 300 > IMAGETYPE PNG > EXTENT 9.2990 43.0105 9.4894 43.0524 > UNITS METERS > DEBUG 5 > PROJECTION > "init=epsg:4269" > END > WEB > TEMPLATE "template.html" > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" > "wms_enable_request" "*" > END > END > #IMAGECOLOR 255 255 255 > TRANSPARENT ON > SHAPEPATH "oilspill/" > OUTPUTFORMAT > NAME "png" > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "GAMMA=0.75" > END > SYMBOL > NAME "square" > TYPE vector > POINTS > 0 0 > 0 1 > 1 1 > 1 0 > 0 0 > END > FILLED true > ANCHORPOINT 0.5 0.5 > END > LAYER > NAME "test" > TYPE POINT > STATUS DEFAULT > DATA "timestep24" > DEBUG 5 > SIZEUNITS meters > PROJECTION > "init=epsg:4269" > END > METADATA > "wms_title" "test" > END > CLASSITEM "weight" > CLASS > STYLE > COLOR "#1014FF" > SYMBOL "square" > SIZE 0.0019 > END > END > END > END > > Any suggestions? Are there any errors in the mapfile? Or am I wrong in the > procedure? > > Thanks, > Francesco > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Fri Oct 17 00:19:08 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 17 Oct 2014 07:19:08 +0000 Subject: [mapserver-users] [mapserver-dev] - Tile index Message-ID: <182910e86431451882059ba411d168e2@C119S212VM017.msvyvi.vaha.local> Hi, I would say that a question like this belongs to mapserver-users list. If discussion leads to conclusion that there is a bug in Mapserver the next step would be to create a ticket to github or continue discussion about how to fix it best on mapserver-dev. My guess is that you do not use the same mapfiles with your 6.4.1 and 6.5-dev on x64 wheezy. The tileindex should be found from layer "panchro" but the mapfile in your message does not define that layer. > TILEITEM "the_path" > TILEINDEX "panchro" -Jukka Rahkonen- scott159 wrote: > Hi, > > I want to use mapserver with spatial index in postgres/postgis. The mapfile looks > like : > > ...... > > LAYER > NAME "footprint" > STATUS ON > TYPE POLYGON > EXTENT -180 -90 180 90 > CONNECTIONTYPE postgis > CONNECTION "dbname=test host=X.X.X.X > port=5432 user='usr' password='pwd'" > DATA "the_geom FROM view USING UNIQUE id > USING srid=4326" > FILTER "the_geom is not null" > PROCESSING "CLOSE_CONNECTION=DEFER" > > OPACITY 100 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME 'footprint1' > STYLE > WIDTH 2 > OUTLINECOLOR 0 0 > 0 > OPACITY 10 > END > END > CLASS > NAME 'footprint2' > STYLE > WIDTH 2 > OUTLINECOLOR 0 0 > 0 > END > END > END > > LAYER > DEBUG 3 > NAME "raster" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > OPACITY 100 > PROJECTION > "init=epsg:4326" > END > TILEITEM "the_path" > TILEINDEX "panchro" > END > ...... > > With 6.4.1, everything is ok, raster layer is visible and there is no error in log file. > But when I try to use this mapfile with 6.5-dev on x64 wheezy, only footprint > layer is visible. The raster layer is not visible and it seems non item index is > defined cf log file below : > > ...... > msDrawRasterLayerLow(raster): entering. > msEvalExpression(): General error message. Cannot evaluate expression, no > item index defined. > ...... > > How to defined item index with 6.5-dev ? > > Thanks a lot > > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From peter.hopfgartner at r3-gis.com Fri Oct 17 00:57:28 2014 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 17 Oct 2014 09:57:28 +0200 Subject: [mapserver-users] Symbols in KML outout In-Reply-To: <6F331135492B944D90731CE93743D5680D3400@FS-EX-DB102.fs.sachsen.de> References: <543E4526.4030906@r3-gis.com>, <543F7D32.7050001@r3-gis.com> <6F331135492B944D90731CE93743D5680D3400@FS-EX-DB102.fs.sachsen.de> Message-ID: <5440CBE8.50502@r3-gis.com> On 10/16/2014 02:56 PM, Eichner, Andreas - SID wrote: > Never used it but it seems the KML driver creates PNG images on the fly and returns them as href. This seems to be independent of the type of symbol. So you should make sure MS is able to write those images into /tmp or $MS_TEMPPATH. The "(null)" indicates that it was unable to do so. Hi Andreas, setting reasonable values for TEMPPATH, IMAGEPATH and IMAGEURL fixed the issue, indeed. Thanks, Peter > HTH > ________________________________________ > Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "Peter Hopfgartner [peter.hopfgartner at r3-gis.com] > Gesendet: Donnerstag, 16. Oktober 2014 10:09 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Symbols in KML outout > > Just as a quick fix, I'd propose to drop the href node if no reasonable > value is given. Anything more elaborate can be added later on. Comments? > > Peter > > On 10/15/2014 11:57 AM, Peter Hopfgartner wrote: >> From http://mapserver.org/output/kml_output.html#id2, it should be >> possible to have icons for sysmbols. The pixmap of the ison should be >> referenced in the href node. >> In my output, the href ode looks like: >> >> (null) >> >> Is there anything I missed? >> >> Regards, >> >> Peter >> > -- Peter Hopfgartner web : http://www.r3-gis.com From havard.tveite at nmbu.no Fri Oct 17 02:03:11 2014 From: havard.tveite at nmbu.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=) Date: Fri, 17 Oct 2014 11:03:11 +0200 Subject: [mapserver-users] WMS rendering In-Reply-To: <543FDE72.3040202@gmail.com> References: <543FDE72.3040202@gmail.com> Message-ID: <5440DB4F.4060804@nmbu.no> Hi Francesco, Do you get any error messages? Your map file looks a bit like the example from the WMS Server documentation (http://mapserver.org/ogc/wms_server.html), and that should be a good starting point. To make it easier to find the source of your problems, I suggest that you start with the basic example in the WMS Server documentation and expand it gradually. H?vard PS: You are using SIZEUNITS meters in your test layer. That means that your SIZE 0.0019 symbols will be very small if you are not operating close to a 1:1 map scale. On 2014-10-16 17:04, Francesco Palermo wrote: > Hello, > I'm experimenting the use of Mapserver as WMS and I'm encountering some problems on map rendering. I'm using a shapefile as a map source and it's a map of points (generated by a csv using ogr2ogr - Could I use directly csv with Mapserver? I don't know). I can't get the rendering of this map using for example QGIS or this URL in the browser (which I hope it's correct): > http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test& > > This is the mapfile: > MAP > NAME "test" > STATUS ON > SIZE 500 300 > IMAGETYPE PNG > EXTENT 9.2990 43.0105 9.4894 43.0524 > UNITS METERS > DEBUG 5 > PROJECTION > "init=epsg:4269" > END > WEB > TEMPLATE "template.html" > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" > "wms_enable_request" "*" > END > END > #IMAGECOLOR 255 255 255 > TRANSPARENT ON > SHAPEPATH "oilspill/" > OUTPUTFORMAT > NAME "png" > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "GAMMA=0.75" > END > SYMBOL > NAME "square" > TYPE vector > POINTS > 0 0 > 0 1 > 1 1 > 1 0 > 0 0 > END > FILLED true > ANCHORPOINT 0.5 0.5 > END > LAYER > NAME "test" > TYPE POINT > STATUS DEFAULT > DATA "timestep24" > DEBUG 5 > SIZEUNITS meters > PROJECTION > "init=epsg:4269" > END > METADATA > "wms_title" "test" > END > CLASSITEM "weight" > CLASS > STYLE > COLOR "#1014FF" > SYMBOL "square" > SIZE 0.0019 > END > END > END > END > > Any suggestions? Are there any errors in the mapfile? Or am I wrong in the procedure? > > Thanks, > Francesco > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ From mapserver at markus-spring.de Fri Oct 17 03:50:30 2014 From: mapserver at markus-spring.de (mapserver) Date: Fri, 17 Oct 2014 12:50:30 +0200 Subject: [mapserver-users] mapcache WMTS - TMS one tile offset In-Reply-To: References: <54383DC0.8030400@markus-spring.de> Message-ID: <5440F476.4030708@markus-spring.de> Thomas, thank you very much for explaining how to step forward to solve this problem. With qGIS I am able to retrieve the WMTS tiles, so my next try for the web fronted will be OL 3.0, which might have improved on that problem. Best regards - Markus Spring Am 14.10.2014 um 12:13 schrieb thomas bonfort: > Markus, > > TMS expects tiles starting at the bottom left whereas WMTS expects > them starting top left. Mapcache by default uses bottom-left ordered > grids, and creates a WMTS capabilities document that accounts for that > in the sense that the TopLeftCorner of each TileMatrix is adjusted and > may vary if the combination of your grid extents and resolutions do > not produce a stable topleftcorner for each resolution. You have > multiple ways forward: > > - use a combination of grid extents and resolutions that force a > stable topleftcorner whatever the resolution. This is usually done by > using power-of-two resolutions. > - force the grid to be fixed to the top left corner instead of bottom > left. top-left. Your tileset will not be > compatible with TMS requests. > - use a wmts client that knows how to parse WMTS capabilities so that > the correct topleftcorner is used for each resolution > - (not sure, but check if openlayers supports overiding the topleft > origin for its grid for WMTS requests) > > cheers, > thomas > > On 10 October 2014 22:12, mapserver wrote: >> Disclaimer: I have asked this question already on openlayers-users, but not >> received any answer >> --- >> >> I have set up a mapserver/mapcache service for tiled background maps, which >> should offer WMTS and TMS services >> in the EPSG:31468 projection. >> >> The TMS tiles I've verified to be correctly placed against a standard wms >> layer, however the WMTS tiles get placed with >> a one tile offset to the south compared to the TMS tiles. >> >> Please see the screenshot: >> http://markus-spring.info/varia/wmts_tms_offset_problem.jpg >> >> The grid definition is as follows: >> >> >> >> Mapcache Service City of Munich EPSG 31468 >> >> EPSG:31468 >> 256 256 >> 4440016 5313983 4492016 5359983 >> m >> 141.11153491115225 70.55561745557612 >> 42.33331047334567 35.27775872778806 26.458319045841048 >> 17.63887936389403 8.819439681947015 3.527775872778806 >> 2.6458319045841043 1.763887936389403 0.8819439681947016 >> 0.35277758727788067 0.17638879363894033 >> >> >> and the tileset >> >> >> karte_2014-1 >> disk >> >> karte_2014-1 >> >> >> PNG >> 5 5 >> 10 >> >> > default="/path/to/mapfile.map">^[a-zA-Z0-9\./]*\.map$ >> >> MUC31468 >> >> >> >> while the service definitions (for OpenLayers 2.13) are these: >> >> var wmts = new OpenLayers.Layer.WMTS({ >> name: "WMTS basemap", >> url: "http://centmap/mapcache/wmts?", >> layer: "karte_2014-1", >> matrixSet: "MUC31468", >> format: "image/png", >> style: "default", >> opacity: 0.7, >> maxExtent: maxExtent, >> isBaseLayer: true >> }); >> >> var tms = new OpenLayers.Layer.TMS( >> "TMS basemap", >> "http://centmap/mapcache/tms/", >> { layername: "karte_2014-1", >> type: "png" } >> ); >> >> Any help would be greatly appreciated. >> >> ---Markus >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jukka.rahkonen at mmmtike.fi Fri Oct 17 06:11:00 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 17 Oct 2014 13:11:00 +0000 Subject: [mapserver-users] WMS rendering Message-ID: <43692638301b43d1932df027d9fd3acf@C119S212VM017.msvyvi.vaha.local> Hi, I tested your mapfile and I believe that you indeed have trouble with 0.0019 meters wide box symbol that does not show easily. If you leave out sizeunits or use the default unit "pixels" and size of around 10 the symbol should show at all scales. Of course you can use meters as well with some reasonable value as size. Some comments about your mapfile: - Do not use the same name for the whole service (MAP-NAME) and a layer (LAYER-NAME). In this case it does not matter because you have only one layer. If you add more, with &layers=test you would get all layers that you have in the mapfile. - MAP-UNITS should match the MAP-PROJECTION, thus correct for you is UNITS DD For the developers, shouldn't we have some built-in symbols for the points so that poor new users would not need to create a symbol before getting points visible? Even just a filled circle SYMBOL NAME "point" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END That would be used automatically if mapfile has only CLASS STYLE COLOR 0 0 0 SIZE 30 END END However, why not to make a built-in support for all these which the SLD specification mandates (copied from Geoserver docs): Name Description square A square circle A circle triangle A triangle pointing up star five-pointed star cross A square cross with space around (not suitable for hatch fills) x A square X with space around (not suitable for hatch fills) -Jukka Rahkonen- H?vard Tveite wrote > Hi Francesco, > > Do you get any error messages? > > Your map file looks a bit like the example from the WMS Server documentation > (http://mapserver.org/ogc/wms_server.html), > and that should be a good starting point. > > To make it easier to find the source of your problems, I suggest that you start > with the basic example in the WMS Server documentation and expand it > gradually. > > H?vard > > PS: You are using SIZEUNITS meters in your test layer. That means that your SIZE > 0.0019 symbols will be very small if you are not operating close to a 1:1 map > scale. > > > On 2014-10-16 17:04, Francesco Palermo wrote: > > Hello, > > I'm experimenting the use of Mapserver as WMS and I'm encountering some > problems on map rendering. I'm using a shapefile as a map source and it's a map > of points (generated by a csv using ogr2ogr - Could I use directly csv with > Mapserver? I don't know). I can't get the rendering of this map using for > example QGIS or this URL in the browser (which I hope it's correct): > > http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/ > > > wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS= > EPSG:4326 > > > &BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=i > mage/ > > png&LAYERS=test& > > > > This is the mapfile: > > MAP > > NAME "test" > > STATUS ON > > SIZE 500 300 > > IMAGETYPE PNG > > EXTENT 9.2990 43.0105 9.4894 43.0524 > > UNITS METERS > > DEBUG 5 > > PROJECTION > > "init=epsg:4269" > > END > > WEB > > TEMPLATE "template.html" > > IMAGEPATH "/var/www/html/tmp/" > > IMAGEURL "/tmp/" > > METADATA > > "wms_title" "WMS Demo Server" > > "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" > > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" > > "wms_enable_request" "*" > > END > > END > > #IMAGECOLOR 255 255 255 > > TRANSPARENT ON > > SHAPEPATH "oilspill/" > > OUTPUTFORMAT > > NAME "png" > > DRIVER AGG/PNG > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > FORMATOPTION "GAMMA=0.75" > > END > > SYMBOL > > NAME "square" > > TYPE vector > > POINTS > > 0 0 > > 0 1 > > 1 1 > > 1 0 > > 0 0 > > END > > FILLED true > > ANCHORPOINT 0.5 0.5 > > END > > LAYER > > NAME "test" > > TYPE POINT > > STATUS DEFAULT > > DATA "timestep24" > > DEBUG 5 > > SIZEUNITS meters > > PROJECTION > > "init=epsg:4269" > > END > > METADATA > > "wms_title" "test" > > END > > CLASSITEM "weight" > > CLASS > > STYLE > > COLOR "#1014FF" > > SYMBOL "square" > > SIZE 0.0019 > > END > > END > > END > > END > > > > Any suggestions? Are there any errors in the mapfile? Or am I wrong in the > procedure? > > > > Thanks, > > Francesco > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, > POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at seandisanti.com Fri Oct 17 10:04:28 2014 From: mapserver at seandisanti.com (Sean DiSanti) Date: Fri, 17 Oct 2014 10:04:28 -0700 Subject: [mapserver-users] Converting a working mapserver request to a mapcache request Message-ID: <651273d7145f3052d1f91d0ea16ade97.squirrel@webmail.seandisanti.com> I have a page using esri maps that currently requests pre-generated overlay images from a mapserver. That part is working perfectly, but now we're looking to pass the requests through mapcache, and I'm having trouble getting the requested tile. Any help would be greatly appreciated. The working request to mapserver is: http://dev.domain.com/cgi-bin/mapserv?map=/map/ahps/precip.map&shape_path=2014/10/16/nws_precip_1day_observed_20141016&mode=tile&tilemode=gmap&service=WMS&version=1.1.1&request=GetMap&Styles=default&SRS=EPSG:102100&width=256&height=256&format=image/PNG&TRANSPARENT=TRUE&layers=conus-raster&dpi=120&tile=8+12+5 and it is correctly handled by this mapfile: MAP NAME "combined" STATUS ON SIZE 15000 7785 SYMBOLSET "/shp/ahps/symbols/symbols35.sym" EXTENT -180 -90 180 90 UNITS DD SHAPEPATH "/SHP" IMAGECOLOR 0 0 0 TRANSPARENT TRUE # # Start of web interface definition # WEB METADATA "ows_enable_request" "*" "wms_transparent" "TRUE" END END # # Start of layer definitions # LAYER NAME 'conus-raster' TYPE RASTER STATUS DEFAULT PROJECTION "init=epsg:4326" END VALIDATION "shape_path" "^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}" END DATA "/shp/ahps/%shape_path%_conus.png" END In building the mapcache.xml file, I added a grid, source and tileset: GoogleMapsCompatible -180 -90 180 90 EPSG:4326 EPSG:102100 256 256 m 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 1.1.1 TRUE image/png conus-raster /map/ahps/precip.map tile gmap 256 256 http://mapserver.domain.com precip disk esri PNG 5 5 10 1 1 ^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}$ ^\d{1,3}\s\d{1,3}\s\d{1,3}$ I added the tile dimension because mapserver was complaining that the tile dimensions were not being passed, and then even after adding it, I was getting errors that the wrong number of dimensions were being passed. I figured that was being caused because mapserver is expecting the value as 'tile=x+y+z' but mapcache is parsing it first and sending along 'tile=x y z'. This was confirmed by removing the tile parameter from the call so the default value '17+25+6' was successfully used. I'm sorry for the book here, but I've completely run out of ideas to get mapcache to return the same tile and figured giving too much info would be preferably to not giving enough. Thanks in advance for any suggestions From bhudspeth at edac.unm.edu Sat Oct 18 17:28:31 2014 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Sat, 18 Oct 2014 18:28:31 -0600 Subject: [mapserver-users] Mapserv executable and path on Ubuntu linux Message-ID: <544305AF.4020805@edac.unm.edu> Hello, I have written my first mapfile, and I am trying to view a layer. I am using a time-enabled raster layer indexed in Postgis. I am a little confused about building the correct mapserv URL and referencing my mapfile. I am running Ubuntu linux 14.01, and trying to view my map from localhost. I have a path like this where I have the mapfile: /var/www/pm25/public_html The permissions on the mapfile are 755 with the owner myself, and the group is www-data. I am not sure how to construct a URL to point to mapserv and the mapfile to see a map.... Thanks -- William Hudspeth, PhD Analyst-Programmer III Earth Data Analysis Center MSC01 1110, Bandelier Hall West 212 1 University of New Mexico Albuquerque, NM 87131-0001 Tel: (505) 277-3622, ext. 249 Email: bhudspeth at edac.unm.edu From aperi2007 at gmail.com Sun Oct 19 01:39:19 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 19 Oct 2014 10:39:19 +0200 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. Message-ID: Hi, I upgrade to the last dev of mapserver. After this, I'm having some troubles when go to do Identify on a layer with a GetFeatureInfo. Now I'm havig this error: [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. I'm using a postgis to host the layer and this is the setting: CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=test user=test password=test port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" FILTER "(FOGLIO like '%idtpn%')" VALIDATION 'idtpn' '^[a-zA-Z0-9\-_]+$' 'default_idtpn' '%' END This setting work for me before, so I guess there is some change to do in mapfile settings, but I don't understand what. Any hints ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Sun Oct 19 05:21:09 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 19 Oct 2014 09:21:09 -0300 Subject: [mapserver-users] Mapserv executable and path on Ubuntu linux In-Reply-To: <544305AF.4020805@edac.unm.edu> References: <544305AF.4020805@edac.unm.edu> Message-ID: <5443ACB5.2040002@gatewaygeomatics.com> On 2014-10-18 9:28 PM, William Hudspeth wrote: > Hello, > > I have written my first mapfile, and I am trying to view a layer. I am > using a time-enabled raster layer indexed in Postgis. I am a little > confused about building the correct mapserv URL and referencing my > mapfile. I am running Ubuntu linux 14.01, and trying to view my map from > localhost. I have a path like this where I have the mapfile: > > /var/www/pm25/public_html > > The permissions on the mapfile are 755 with the owner myself, and the > group is www-data. > > I am not sure how to construct a URL to point to mapserv and the mapfile > to see a map.... > > Thanks > Welcome to the MapServer community William! Some thoughts: - on Ubuntu 14.01 your mapserv executable likely lives at /usr/lib/cgi-bin/mapserv - test that you can call it in your browser, through a URL like http://demo.mapserver.org/cgi-bin/mapserv? - if you are using MapServer >= 6.0, then you can view your mapfile in your browser with a URL such as http://yourhost.org/cgi-bin/mapserv?MAP=/path/to/mapfile&MODE=browse&TEMPLATE=openlayers More info on that handy way of viewing your mapfile is found here: http://www.mapserver.org/cgi/openlayers.html Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From even.rouault at spatialys.com Sun Oct 19 08:37:52 2014 From: even.rouault at spatialys.com (Even Rouault) Date: Sun, 19 Oct 2014 17:37:52 +0200 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. In-Reply-To: References: Message-ID: <201410191737.52469.even.rouault@spatialys.com> Le dimanche 19 octobre 2014 10:39:19, Andrea Peri a ?crit : > Hi, > I upgrade to the last dev of mapserver. > > After this, I'm having some troubles when go to do Identify on a layer > with a GetFeatureInfo. > > Now I'm havig this error: > > [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error > message. Cannot evaluate expression, no item index defined. > > I'm using a postgis to host the layer and this is the setting: > > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=test user=test password=test > port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" > FILTER "(FOGLIO like '%idtpn%')" > VALIDATION > 'idtpn' '^[a-zA-Z0-9\-_]+$' > 'default_idtpn' '%' > END > > This setting work for me before, so I guess there is some change to do > in mapfile settings, but I don't understand what. > > Any hints ? Andrea, I believe this is a consequence of http://mapserver.org/development/rfc/ms- rfc-91.html where FILTER without FILTERITEM is now interpreted as a MapServer expression in all cases, and not a SQL filter for PostGIS connections. Although there are following disucssions on that email. See the following thread : http://lists.osgeo.org/pipermail/mapserver-dev/2014-September/014228.html Even -- Spatialys - Geospatial professional services http://www.spatialys.com From aperi2007 at gmail.com Sun Oct 19 09:11:14 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 19 Oct 2014 18:11:14 +0200 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. In-Reply-To: <201410191737.52469.even.rouault@spatialys.com> References: <201410191737.52469.even.rouault@spatialys.com> Message-ID: Hi Even, thx for precious info. So is sufficient add the FILTERITEM. :) Thx, A. 2014-10-19 17:37 GMT+02:00 Even Rouault : > Le dimanche 19 octobre 2014 10:39:19, Andrea Peri a ?crit : >> Hi, >> I upgrade to the last dev of mapserver. >> >> After this, I'm having some troubles when go to do Identify on a layer >> with a GetFeatureInfo. >> >> Now I'm havig this error: >> >> [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error >> message. Cannot evaluate expression, no item index defined. >> >> I'm using a postgis to host the layer and this is the setting: >> >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=test user=test password=test >> port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" >> FILTER "(FOGLIO like '%idtpn%')" >> VALIDATION >> 'idtpn' '^[a-zA-Z0-9\-_]+$' >> 'default_idtpn' '%' >> END >> >> This setting work for me before, so I guess there is some change to do >> in mapfile settings, but I don't understand what. >> >> Any hints ? > > Andrea, > > I believe this is a consequence of http://mapserver.org/development/rfc/ms- > rfc-91.html where FILTER without FILTERITEM is now interpreted as a MapServer > expression in all cases, and not a SQL filter for PostGIS connections. > > Although there are following disucssions on that email. See the following > thread : > http://lists.osgeo.org/pipermail/mapserver-dev/2014-September/014228.html > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From scott159 at free.fr Sun Oct 19 23:22:25 2014 From: scott159 at free.fr (scott159 at free.fr) Date: Mon, 20 Oct 2014 08:22:25 +0200 (CEST) Subject: [mapserver-users] - Tile index In-Reply-To: <2119354705.105635648.1413786038560.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <863021748.105638146.1413786145229.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I transfer this question to mapserver-users : I want to use mapserver with spatial index in postgres/postgis. The mapfile looks like : ...... LAYER NAME "footprint" STATUS ON TYPE POLYGON EXTENT -180 -90 180 90 CONNECTIONTYPE postgis CONNECTION "dbname=test host=X.X.X.X port=5432 user='usr' password='pwd'" DATA "the_geom FROM view USING UNIQUE id USING srid=4326" FILTER "the_geom is not null" PROCESSING "CLOSE_CONNECTION=DEFER" OPACITY 100 PROJECTION "init=epsg:4326" END CLASS NAME 'footprint1' STYLE WIDTH 2 OUTLINECOLOR 0 0 0 OPACITY 10 END END CLASS NAME 'footprint2' STYLE WIDTH 2 OUTLINECOLOR 0 0 0 END END END LAYER DEBUG 3 NAME "raster" STATUS ON TYPE RASTER OFFSITE 0 0 0 OPACITY 100 PROJECTION "init=epsg:4326" END TILEITEM "the_path" TILEINDEX "footprint" END ...... With 6.4.1, everything is ok, raster layer is visible and there is no error in log file. But when I try to use this mapfile with 6.5-dev on x64 wheezy, only footprint layer is visible. The raster layer is not visible and it seems non item index is defined cf log file below : ...... msDrawRasterLayerLow(raster): entering. msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. ...... How to defined item index with 6.5-dev ? Cheers From bikram.gangwar at gmail.com Sun Oct 19 23:44:52 2014 From: bikram.gangwar at gmail.com (bag20) Date: Sun, 19 Oct 2014 23:44:52 -0700 (PDT) Subject: [mapserver-users] Problem during installation ! Message-ID: <1413787492671-5168330.post@n6.nabble.com> Hi, I am using ubuntu 14 trusty OS and I am trying to install mapserver and having problem related to cmake. I am having cmake in my OS but the script provided in mapserver installation documentation is not working fine. If it is possible please provide me step by step procedure for installation of mapserver . I was following the documentation for installation provied by Mapserver but I am not getting how to install through that. I am newbie in linux so please help me regarding this. Thanks ! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-during-installation-tp5168330.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Oct 20 01:18:10 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 20 Oct 2014 08:18:10 +0000 Subject: [mapserver-users] - Tile index Message-ID: <72efd505ad53437487adb53edabee599@C119S212VM022.msvyvi.vaha.local> Hi Scott, I managed to get PostGIS tileindex work as follows with Mapserver 6.5-dev: CONNECTIONTYPE OGR CONNECTION "PG:dbname=xxx host=yyy port=5432 user='zzz' password='xyz'" DATA "select * from tindextest" # FILTER "geom is not null" and with native connection as CONNECTIONTYPE postgis CONNECTION "dbname=xxx host=yyy port=5432 user=zzz password='xyz'" DATA "geom FROM tindextest USING UNIQUE gid USING srid=3067" #FILTER "geom is not null" With both connection types I got this error before I commented the FILTER out: "msEvalExpression(): General error message. Cannot evaluate expression, no item index defined." This feels like a bug that could be a side effect of new development made with filters. Make a ticket to Github if you can verify. -Jukka Rahkonen- scott159 at free.fr > Hi, > > I transfer this question to mapserver-users : > I want to use mapserver with spatial index in postgres/postgis. The mapfile looks > like : > > ...... > > LAYER > NAME "footprint" > STATUS ON > TYPE POLYGON > EXTENT -180 -90 180 90 > CONNECTIONTYPE postgis > CONNECTION "dbname=test host=X.X.X.X port=5432 user='usr' > password='pwd'" > DATA "the_geom FROM view USING UNIQUE id USING srid=4326" > FILTER "the_geom is not null" > PROCESSING "CLOSE_CONNECTION=DEFER" > OPACITY 100 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME 'footprint1' > STYLE > WIDTH 2 > OUTLINECOLOR 0 0 0 > OPACITY 10 > END > END > CLASS > NAME 'footprint2' > STYLE > WIDTH 2 > OUTLINECOLOR 0 0 0 > END > END > END > > LAYER > DEBUG 3 > NAME "raster" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > OPACITY 100 > PROJECTION > "init=epsg:4326" > END > TILEITEM "the_path" > TILEINDEX "footprint" > END > ...... > > With 6.4.1, everything is ok, raster layer is visible and there is no error in log file. > But when I try to use this mapfile with 6.5-dev on x64 wheezy, only footprint > layer is visible. The raster layer is not visible and it seems non item index is > defined cf log file below : > > ...... > msDrawRasterLayerLow(raster): entering. > msEvalExpression(): General error message. Cannot evaluate expression, no > item index defined. > ...... > > How to defined item index with 6.5-dev ? > > Cheers > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gamejihou at hotmail.com Mon Oct 20 02:18:34 2014 From: gamejihou at hotmail.com (Gery) Date: Mon, 20 Oct 2014 02:18:34 -0700 (PDT) Subject: [mapserver-users] installing mapserver in cygwin - regex.c problem Message-ID: <1413796714723-5168357.post@n6.nabble.com> Hi, This is my first time installing mapserver in cygwin, but I'm a quite old user of both cygwin and mapserver (but still young =D ). The thing is that I'm getting a regex issue after doing cmake in the build directory inside the mapserver-6.4.1 directory (after doing tar -zxvf mapserver-6.4.1.tar.gz, etc, etc). My cygwin installation meets all the requirements afaik to build mapserver. I'm not sure, though, if regex.h is causing a problem. This is what I get after running cmake: -- Gery at gery /opt/mapserver/mapserver-6.4.1/build $ cmake .. -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_SOS=1 -DWITH_KML=1 -DWITH_PHP=1 -DWITH_PERL=1 -DWITH_PYTHON=1 -DWITH_GD=1 -DWITH_GDAL=1 -DCMAKE_PREFIX_PATH="/opt/gdal/gdal-1.11.0" -DWITH_OGR=1 -DWITH_PROJ=1 -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DWITH_ICONV=0 -DWITH_EXEMPI=0 -DWITH_MYSQL=0 -- Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32 -- /usr/include/php/main -- Found PHP5-Version 5.5.16 (using /usr/bin/php-config) -- * Summary of configured options for this build -- * Mandatory components -- * png: /usr/lib/libpng.dll.a -- * jpeg: /usr/lib/libjpeg.dll.a -- * freetype: /usr/lib/libfreetype.dll.a -- * Optional components -- * GDAL: /opt/gdal/gdal-1.11.0/libgdal.a -- * OGR: /opt/gdal/gdal-1.11.0/libgdal.a -- * GD: /usr/lib/libgd.dll.a -- * GIF: /usr/lib/libgif.dll.a -- * MYSQL: disabled -- * FRIBIDI: /usr/lib/libfribidi.dll.a -- * GIF: /usr/lib/libgif.dll.a -- * CAIRO: /usr/lib/libcairo.dll.a -- * SVGCAIRO: disabled -- * RSVG: disabled -- * CURL: /usr/lib/libcurl.dll.a -- * PROJ: /usr/lib/libproj.dll.a -- * LIBXML2: /usr/lib/libxml2.dll.a -- * POSTGIS: /usr/lib/libpq.a -- * GEOS: /usr/local/lib/libgeos_c.dll.a -- * FastCGI: /usr/lib/libfcgi.dll.a -- * Oracle Spatial: disabled -- * SDE: disabled -- * Exempi XMP: disabled -- * Optional features -- * WMS SERVER: ENABLED -- * WFS SERVER: ENABLED -- * WCS SERVER: ENABLED -- * SOS SERVER: ENABLED -- * WMS CLIENT: ENABLED -- * WFS CLIENT: ENABLED -- * ICONV: disabled -- * Thread-safety support: disabled -- * KML output: ENABLED -- * Z+M point coordinate support: disabled -- * XML Mapfile support: disabled -- * Mapscripts -- * Python: ENABLED -- * PHP: ENABLED -- * PERL: ENABLED -- * RUBY: disabled -- * JAVA: disabled -- * C#: disabled -- * Apache Module (Experimental): disabled -- -- Will install files to /usr/local -- Will install libraries to /usr/local/lib -- Configuring done CMake Error at CMakeLists.txt:233 (add_library): Cannot find source file: //regex.c Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx -- Build files have been written to: /opt/mapserver/mapserver-6.4.1/build Gery at gery /opt/mapserver/mapserver-6.4.1/build $ -- then it stops. make and make install do nothing, just a "stop" message appears: -- Gery at gery /opt/mapserver/mapserver-6.4.1/build $ make make: *** No targets specified and no makefile found. Stop. Gery at gery /opt/mapserver/mapserver-6.4.1/build $ make install make: *** No rule to make target 'install'. Stop. -- Any ideas? Thanks in advance, Gery -- View this message in context: http://osgeo-org.1560.x6.nabble.com/installing-mapserver-in-cygwin-regex-c-problem-tp5168357.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Oct 20 10:15:12 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Oct 2014 14:15:12 -0300 Subject: [mapserver-users] LAYER example for kernerdensity wanted In-Reply-To: References: Message-ID: <54454320.6070400@gatewaygeomatics.com> On 2014-09-27 4:51 PM, Rahkonen Jukka (Tike) wrote: > Hi, > > I am running MapServer version 6.5-dev on Windows and I suppose it has the support for kerneldensity layers. Could someone show the LAYER part that works with the Natural Earth populated places dataset http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip? I have created .qix index but not touched the data in other ways. > > I have indeed managed to get some coloured stripes out at some scales but what I mostly get is Internal server error (http 500). MS_ERRORFILE does not show any errors and Apache error log is probably recording just this: > [Sat Sep 27 21:57:27 2014] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe > > My current LAYER (or layers, one for data and one for kerneldensity): > > LAYER > NAME "points" > DATA "c:\data\ne\ne_10m_populated_places" > TYPE POINT > STATUS ON > PROJECTION > "init=epsg:4326" > END > debug 5 > CLASS > STYLE > SIZE 5 > SYMBOL "circle" > COLOR 200 200 200 > OUTLINECOLOR 0 0 0 > END > END > END > layer > name "heatmap" > type raster > connectiontype kerneldensity > connection "points" > status on > debug 5 > #processing "RANGE_COLORSPACE=HSL" > processing "KERNELDENSITY_RADIUS=20" > processing "KERNELDENSITY_ATTRIBUTE=RANK_MIN" > #processing "KERNELDENSITY_COMPUTE_BORDERS=ON" > processing "KERNELDENSITY_NORMALIZATION=AUTO" > offsite 0 0 0 > class > style > COLORRANGE "#0000ff00" "#0000ffff" > DATARANGE 0 32 > end > style > COLORRANGE "#0000ffff" "#ff0000ff" > DATARANGE 32 255 > end > end > end > > What I have tried so far has been to comment out this and that but result seems to be always the same. > > -Jukka Rahkonen- Hi Jukka, The good news/bad news is that I can reproduce this same issue on Windows, with MapServer-master and GDAL (both trunk and 1.11.1 release). I have built both MapServer and GDAL in debug mode, and have placed the debug messages (and test case) in a ticket at https://github.com/mapserver/mapserver/issues/5019 It seems to crash on a memcpy call by GDAL, hmmm... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Mon Oct 20 10:43:00 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Oct 2014 14:43:00 -0300 Subject: [mapserver-users] LAYER example for kernerdensity wanted In-Reply-To: <54454320.6070400@gatewaygeomatics.com> References: <54454320.6070400@gatewaygeomatics.com> Message-ID: <544549A4.1070704@gatewaygeomatics.com> On 2014-10-20 2:15 PM, Jeff McKenna wrote: > On 2014-09-27 4:51 PM, Rahkonen Jukka (Tike) wrote: >> Hi, >> >> I am running MapServer version 6.5-dev on Windows and I suppose it has >> the support for kerneldensity layers. Could someone show the LAYER >> part that works with the Natural Earth populated places dataset >> http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip? >> I have created .qix index but not touched the data in other ways. >> >> I have indeed managed to get some coloured stripes out at some scales >> but what I mostly get is Internal server error (http 500). >> MS_ERRORFILE does not show any errors and Apache error log is probably >> recording just this: >> [Sat Sep 27 21:57:27 2014] [error] [client 127.0.0.1] Premature end of >> script headers: mapserv.exe >> >> My current LAYER (or layers, one for data and one for kerneldensity): >> >> LAYER >> NAME "points" >> DATA "c:\data\ne\ne_10m_populated_places" >> TYPE POINT >> STATUS ON >> PROJECTION >> "init=epsg:4326" >> END >> debug 5 >> CLASS >> STYLE >> SIZE 5 >> SYMBOL "circle" >> COLOR 200 200 200 >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> layer >> name "heatmap" >> type raster >> connectiontype kerneldensity >> connection "points" >> status on >> debug 5 >> #processing "RANGE_COLORSPACE=HSL" >> processing "KERNELDENSITY_RADIUS=20" >> processing "KERNELDENSITY_ATTRIBUTE=RANK_MIN" >> #processing "KERNELDENSITY_COMPUTE_BORDERS=ON" >> processing "KERNELDENSITY_NORMALIZATION=AUTO" >> offsite 0 0 0 >> class >> style >> COLORRANGE "#0000ff00" "#0000ffff" >> DATARANGE 0 32 >> end >> style >> COLORRANGE "#0000ffff" "#ff0000ff" >> DATARANGE 32 255 >> end >> end >> end >> >> What I have tried so far has been to comment out this and that but >> result seems to be always the same. >> >> -Jukka Rahkonen- > > Hi Jukka, > > The good news/bad news is that I can reproduce this same issue on > Windows, with MapServer-master and GDAL (both trunk and 1.11.1 release). > I have built both MapServer and GDAL in debug mode, and have placed > the debug messages (and test case) in a ticket at > https://github.com/mapserver/mapserver/issues/5019 It seems to crash on > a memcpy call by GDAL, hmmm... > > > -jeff > Update: fixed by EvenR in MapServer-master! Thanks Even! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Mon Oct 20 12:20:08 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 20 Oct 2014 19:20:08 +0000 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. In-Reply-To: References: <201410191737.52469.even.rouault@spatialys.com> Message-ID: Hmmm... This should have still been interpreted as native SQL without adding the FILTERITEM (did that work by the way?). This is an example of a configuration that will change once 7.0 is completely ready. Regardless, instead of using a FILTER, it would be simpler to just put the where clause in the DATA statement itself, e.g.: DATA "geometry from (select geometry mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri Sent: Sunday, October 19, 2014 11:11 AM To: Even Rouault Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Trouble with last dev in the GetFeatureInfo. Hi Even, thx for precious info. So is sufficient add the FILTERITEM. :) Thx, A. 2014-10-19 17:37 GMT+02:00 Even Rouault : > Le dimanche 19 octobre 2014 10:39:19, Andrea Peri a ?crit : >> Hi, >> I upgrade to the last dev of mapserver. >> >> After this, I'm having some troubles when go to do Identify on a >> layer with a GetFeatureInfo. >> >> Now I'm havig this error: >> >> [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error >> message. Cannot evaluate expression, no item index defined. >> >> I'm using a postgis to host the layer and this is the setting: >> >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=test user=test password=test >> port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" >> FILTER "(FOGLIO like '%idtpn%')" >> VALIDATION >> 'idtpn' '^[a-zA-Z0-9\-_]+$' >> 'default_idtpn' '%' >> END >> >> This setting work for me before, so I guess there is some change to >> do in mapfile settings, but I don't understand what. >> >> Any hints ? > > Andrea, > > I believe this is a consequence of > http://mapserver.org/development/rfc/ms- > rfc-91.html where FILTER without FILTERITEM is now interpreted as a > MapServer expression in all cases, and not a SQL filter for PostGIS connections. > > Although there are following disucssions on that email. See the > following thread : > http://lists.osgeo.org/pipermail/mapserver-dev/2014-September/014228.h > tml > > Even > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Mon Oct 20 12:53:20 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 20 Oct 2014 21:53:20 +0200 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. In-Reply-To: References: <201410191737.52469.even.rouault@spatialys.com> Message-ID: Hi Steve, thx for hint , >DATA "geometry from (select geometry mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" I dont know this sintax. It will support the access to all the attributes of the table without need to list them ? I like the old sintax because access all the fields without need to list them one by one in the query. Also I like to know if this alternative sintax is supported from Spatialite (by ogr) We use it with mapserver more often then postgis. Thx, Andrea. 2014-10-20 21:20 GMT+02:00 Lime, Steve D (MNIT) : > Hmmm... This should have still been interpreted as native SQL without adding the FILTERITEM (did that work by the way?). This is an example of a configuration that will change once 7.0 is completely ready. > > Regardless, instead of using a FILTER, it would be simpler to just put the where clause in the DATA statement itself, e.g.: > > DATA "geometry from (select geometry mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri > Sent: Sunday, October 19, 2014 11:11 AM > To: Even Rouault > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Trouble with last dev in the GetFeatureInfo. > > Hi Even, > > thx for precious info. > > So is sufficient add the > FILTERITEM. > :) > > Thx, > > A. > > > 2014-10-19 17:37 GMT+02:00 Even Rouault : >> Le dimanche 19 octobre 2014 10:39:19, Andrea Peri a ?crit : >>> Hi, >>> I upgrade to the last dev of mapserver. >>> >>> After this, I'm having some troubles when go to do Identify on a >>> layer with a GetFeatureInfo. >>> >>> Now I'm havig this error: >>> >>> [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error >>> message. Cannot evaluate expression, no item index defined. >>> >>> I'm using a postgis to host the layer and this is the setting: >>> >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "host=localhost dbname=test user=test password=test >>> port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" >>> FILTER "(FOGLIO like '%idtpn%')" >>> VALIDATION >>> 'idtpn' '^[a-zA-Z0-9\-_]+$' >>> 'default_idtpn' '%' >>> END >>> >>> This setting work for me before, so I guess there is some change to >>> do in mapfile settings, but I don't understand what. >>> >>> Any hints ? >> >> Andrea, >> >> I believe this is a consequence of >> http://mapserver.org/development/rfc/ms- >> rfc-91.html where FILTER without FILTERITEM is now interpreted as a >> MapServer expression in all cases, and not a SQL filter for PostGIS connections. >> >> Although there are following disucssions on that email. See the >> following thread : >> http://lists.osgeo.org/pipermail/mapserver-dev/2014-September/014228.h >> tml >> >> Even >> >> -- >> Spatialys - Geospatial professional services http://www.spatialys.com > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From gamejihou at hotmail.com Tue Oct 21 03:30:42 2014 From: gamejihou at hotmail.com (Gery) Date: Tue, 21 Oct 2014 03:30:42 -0700 (PDT) Subject: [mapserver-users] installing mapserver in cygwin - regex.c problem In-Reply-To: <1413796714723-5168357.post@n6.nabble.com> References: <1413796714723-5168357.post@n6.nabble.com> Message-ID: <1413887442617-5168627.post@n6.nabble.com> The solution is here: http://gis.stackexchange.com/questions/118943/installing-mapserver-in-cygwin-regex-c-problem/118969#118969 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/installing-mapserver-in-cygwin-regex-c-problem-tp5168357p5168627.html Sent from the Mapserver - User mailing list archive at Nabble.com. From juanma.mr at gmail.com Tue Oct 21 05:12:07 2014 From: juanma.mr at gmail.com (Juanma M. R.) Date: Tue, 21 Oct 2014 14:12:07 +0200 Subject: [mapserver-users] RE Rendering OSM data with MapServer+MapCache In-Reply-To: References: Message-ID: Hi Steve, Thanks for your link. I will check it right now to see if I could learn something about how to replicate the drawing styles from OSM servers but using mapserver. The main problem is that the styles I use show less information than the ones in OSM servers. I only use basemaps to configure the mapfiles for OSM, but I don't know how to do it to generate a mapfile that draws OSM servers styled maps. Regards, Juan Manuel Moreno Rivera. Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group Instituto de Desarrollo Regional / Institute for Regional Development Universidad de Castilla-La Mancha / University of Castilla-La Mancha Tlf: +34 967599200 (Ext: 2623) http://www.teledeteccionysig.es/ 2014-10-07 18:23 GMT+02:00 : > I'm sorry I just saw the link you provided that uses basemap. > I didn't read it but hopefully you'll find some answers in the link I > provided > > > > *"Juanma M. R." >@lists.osgeo.org * > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2014-10-07 12:13 > A > "mapserver-users at lists.osgeo.org" > cc > Objet > [mapserver-users] Rendering OSM data with MapServer+MapCache > > > > > > > Dear list, > > I have managed to install and configure succesfully a server showing data > from OSM with the MapServer+MapCache convination. I followed these > *instructions* > and > some hacks that were necessary. > > The issue is that I have migrated from a mapnik+mod_tile server because > some requirements that it didn't acomplished but the rendering of the map > with mapnik was the same as the one shown in the OSM server. > > I also managed to configure a mapserver (without cache feature) with a > .map file styling OSM but it is neither the one from OSM server. > > Does anyone know how to apply this style, the one from OSM server, to this > data being renderd by MapServer? Does anyone done the migration from the > OSM server style to mapfile or XML format for MapServer? > > Regards, > Juan Manuel Moreno Rivera. > > Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group > > Instituto de Desarrollo Regional / Institute for Regional Development > > Universidad de Castilla-La Mancha / University of Castilla-La Mancha > > Tlf: +34 967599200 (Ext: 2623) > > *http://www.teledeteccionysig.es/* > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanma.mr at gmail.com Tue Oct 21 06:19:11 2014 From: juanma.mr at gmail.com (Juanma M. R.) Date: Tue, 21 Oct 2014 15:19:11 +0200 Subject: [mapserver-users] RE Rendering OSM data with MapServer+MapCache In-Reply-To: References: Message-ID: Hi again, I think that the link is based on basemaps but I don't know how to modify the basemaps generate_style.py and Makefile to change maps drawing. It seems that there is no documentation for customizing basemaps. I will go on looking for it and maybe I will have to configure my map adding part of the information with my own rules in the OSM servers style. However it is extrange nobody has migrated OSM new style to mapserver mapfile. It would be a good point for mapserver as OSM data server. Regards, Juan Manuel Moreno Rivera. Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group Instituto de Desarrollo Regional / Institute for Regional Development Universidad de Castilla-La Mancha / University of Castilla-La Mancha Tlf: +34 967599200 (Ext: 2623) http://www.teledeteccionysig.es/ 2014-10-21 14:12 GMT+02:00 Juanma M. R. : > Hi Steve, > > Thanks for your link. I will check it right now to see if I could learn > something about how to replicate the drawing styles from OSM servers but > using mapserver. The main problem is that the styles I use show less > information than the ones in OSM servers. > > I only use basemaps to configure the mapfiles for OSM, but I don't know > how to do it to generate a mapfile that draws OSM servers styled maps. > > Regards, > > Juan Manuel Moreno Rivera. > > Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group > > Instituto de Desarrollo Regional / Institute for Regional Development > > Universidad de Castilla-La Mancha / University of Castilla-La Mancha > > Tlf: +34 967599200 (Ext: 2623) > http://www.teledeteccionysig.es/ > > 2014-10-07 18:23 GMT+02:00 : > > I'm sorry I just saw the link you provided that uses basemap. >> I didn't read it but hopefully you'll find some answers in the link I >> provided >> >> >> >> *"Juanma M. R." > >@lists.osgeo.org * >> Envoy? par : mapserver-users-bounces at lists.osgeo.org >> >> 2014-10-07 12:13 >> A >> "mapserver-users at lists.osgeo.org" >> cc >> Objet >> [mapserver-users] Rendering OSM data with MapServer+MapCache >> >> >> >> >> >> >> Dear list, >> >> I have managed to install and configure succesfully a server showing data >> from OSM with the MapServer+MapCache convination. I followed these >> *instructions* >> and >> some hacks that were necessary. >> >> The issue is that I have migrated from a mapnik+mod_tile server because >> some requirements that it didn't acomplished but the rendering of the map >> with mapnik was the same as the one shown in the OSM server. >> >> I also managed to configure a mapserver (without cache feature) with a >> .map file styling OSM but it is neither the one from OSM server. >> >> Does anyone know how to apply this style, the one from OSM server, to >> this data being renderd by MapServer? Does anyone done the migration from >> the OSM server style to mapfile or XML format for MapServer? >> >> Regards, >> Juan Manuel Moreno Rivera. >> >> Secci?n de Teledetecci?n y SIG / Remote Sensing & GIS group >> >> Instituto de Desarrollo Regional / Institute for Regional Development >> >> Universidad de Castilla-La Mancha / University of Castilla-La Mancha >> >> Tlf: +34 967599200 (Ext: 2623) >> >> *http://www.teledeteccionysig.es/* >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Oct 21 08:07:05 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 21 Oct 2014 15:07:05 +0000 Subject: [mapserver-users] Trouble with last dev in the GetFeatureInfo. In-Reply-To: References: <201410191737.52469.even.rouault@spatialys.com> Message-ID: You can certainly do: DATA "geometry from (select * mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" and access all attributes. All of the database back-ends, including OGR, support a similar syntax where a "where" clause is embedded in the DATA statement. Steve -----Original Message----- From: Andrea Peri [mailto:aperi2007 at gmail.com] Sent: Monday, October 20, 2014 2:53 PM To: Lime, Steve D (MNIT) Cc: Even Rouault; mapserver-users at lists.osgeo.org; Andrea Peri Subject: Re: [mapserver-users] Trouble with last dev in the GetFeatureInfo. Hi Steve, thx for hint , >DATA "geometry from (select geometry mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" I dont know this sintax. It will support the access to all the attributes of the table without need to list them ? I like the old sintax because access all the fields without need to list them one by one in the query. Also I like to know if this alternative sintax is supported from Spatialite (by ogr) We use it with mapserver more often then postgis. Thx, Andrea. 2014-10-20 21:20 GMT+02:00 Lime, Steve D (MNIT) : > Hmmm... This should have still been interpreted as native SQL without adding the FILTERITEM (did that work by the way?). This is an example of a configuration that will change once 7.0 is completely ready. > > Regardless, instead of using a FILTER, it would be simpler to just put the where clause in the DATA statement itself, e.g.: > > DATA "geometry from (select geometry mytest.layer1 where FOGLIO like '%idtpn%') using unique gid srid=25832" > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea > Peri > Sent: Sunday, October 19, 2014 11:11 AM > To: Even Rouault > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Trouble with last dev in the GetFeatureInfo. > > Hi Even, > > thx for precious info. > > So is sufficient add the > FILTERITEM. > :) > > Thx, > > A. > > > 2014-10-19 17:37 GMT+02:00 Even Rouault : >> Le dimanche 19 octobre 2014 10:39:19, Andrea Peri a ?crit : >>> Hi, >>> I upgrade to the last dev of mapserver. >>> >>> After this, I'm having some troubles when go to do Identify on a >>> layer with a GetFeatureInfo. >>> >>> Now I'm havig this error: >>> >>> [Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error >>> message. Cannot evaluate expression, no item index defined. >>> >>> I'm using a postgis to host the layer and this is the setting: >>> >>> CONNECTIONTYPE POSTGIS >>> CONNECTION "host=localhost dbname=test user=test password=test >>> port=5432" DATA "geometry from mytest.layer1 using unique gid srid=25832" >>> FILTER "(FOGLIO like '%idtpn%')" >>> VALIDATION >>> 'idtpn' '^[a-zA-Z0-9\-_]+$' >>> 'default_idtpn' '%' >>> END >>> >>> This setting work for me before, so I guess there is some change to >>> do in mapfile settings, but I don't understand what. >>> >>> Any hints ? >> >> Andrea, >> >> I believe this is a consequence of >> http://mapserver.org/development/rfc/ms- >> rfc-91.html where FILTER without FILTERITEM is now interpreted as a >> MapServer expression in all cases, and not a SQL filter for PostGIS connections. >> >> Although there are following disucssions on that email. See the >> following thread : >> http://lists.osgeo.org/pipermail/mapserver-dev/2014-September/014228. >> h >> tml >> >> Even >> >> -- >> Spatialys - Geospatial professional services http://www.spatialys.com > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From bhudspeth at edac.unm.edu Tue Oct 21 09:29:44 2014 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Tue, 21 Oct 2014 10:29:44 -0600 (MDT) Subject: [mapserver-users] Mapserver wms request throws error when trying to load SLD file In-Reply-To: <489087394.2784463.1413908770866.JavaMail.zimbra@edac.unm.edu> Message-ID: <1099761831.2785182.1413908984472.JavaMail.zimbra@edac.unm.edu> Hello, Thanks Jeff for answering my questions about Mapserv executables and path on Ubuntu Linux. I can now view my raster image fine, but I am trying to apply an SLD file and get the error: msSLDApplySLDURL: WMS server error. Could not open SLD http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 403 () for http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml I have set my temp file path in the Web section of the mapfile to: WEB TEMPPATH "/tmp/" IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END and my SLD is: pm25_monthly PM 2.5 Feature Can't see why it is failing... Thanks, Bill From bob.basques at ci.stpaul.mn.us Tue Oct 21 09:32:21 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 21 Oct 2014 16:32:21 +0000 Subject: [mapserver-users] Mapserver wms request throws error when trying to load SLD file In-Reply-To: <1099761831.2785182.1413908984472.JavaMail.zimbra@edac.unm.edu> References: <489087394.2784463.1413908770866.JavaMail.zimbra@edac.unm.edu> <1099761831.2785182.1413908984472.JavaMail.zimbra@edac.unm.edu> Message-ID: It doesn't look like MapServer can find your SLD, does that Link work from a browser directly? Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Hudspeth Sent: Tuesday, October 21, 2014 11:30 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver wms request throws error when trying to load SLD file Hello, Thanks Jeff for answering my questions about Mapserv executables and path on Ubuntu Linux. I can now view my raster image fine, but I am trying to apply an SLD file and get the error: msSLDApplySLDURL: WMS server error. Could not open SLD http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 403 () for http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml I have set my temp file path in the Web section of the mapfile to: WEB TEMPPATH "/tmp/" IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END and my SLD is: pm25_monthly PM 2.5 Feature Can't see why it is failing... Thanks, Bill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bhudspeth at edac.unm.edu Tue Oct 21 10:30:01 2014 From: bhudspeth at edac.unm.edu (Bill Hudspeth) Date: Tue, 21 Oct 2014 11:30:01 -0600 (MDT) Subject: [mapserver-users] Mapserver wms request throws error when trying to load SLD file In-Reply-To: References: <489087394.2784463.1413908770866.JavaMail.zimbra@edac.unm.edu> <1099761831.2785182.1413908984472.JavaMail.zimbra@edac.unm.edu> Message-ID: <1318830695.2796242.1413912601566.JavaMail.zimbra@edac.unm.edu> That was indeed the problem...I changed the path and it now works..! thanks ----- Original Message ----- From: "Bob Basques (CI-StPaul)" To: "Bill Hudspeth" , mapserver-users at lists.osgeo.org Sent: Tuesday, October 21, 2014 10:32:21 AM Subject: RE: [mapserver-users] Mapserver wms request throws error when trying to load SLD file It doesn't look like MapServer can find your SLD, does that Link work from a browser directly? Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Hudspeth Sent: Tuesday, October 21, 2014 11:30 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver wms request throws error when trying to load SLD file Hello, Thanks Jeff for answering my questions about Mapserv executables and path on Ubuntu Linux. I can now view my raster image fine, but I am trying to apply an SLD file and get the error: msSLDApplySLDURL: WMS server error. Could not open SLD http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 403 () for http://localhost/var/www/pm25_geoserver/public_html/pm25_sld.xml I have set my temp file path in the Web section of the mapfile to: WEB TEMPPATH "/tmp/" IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END and my SLD is: pm25_monthly PM 2.5 Feature Can't see why it is failing... Thanks, Bill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From palermo.frances at gmail.com Tue Oct 21 13:10:24 2014 From: palermo.frances at gmail.com (Francesco Palermo) Date: Tue, 21 Oct 2014 22:10:24 +0200 Subject: [mapserver-users] WMS rendering In-Reply-To: <5440DB4F.4060804@nmbu.no> References: <543FDE72.3040202@gmail.com> <5440DB4F.4060804@nmbu.no> Message-ID: <5446BDB0.5030806@gmail.com> No, I don't get any error message. I tried to remove UNITS on mapfile but it doesn't change anything. Then I tried to remove SIZEUNITS from the layer and the map finally appears! Thanks to all! Now I'll try to overlay this map on the Google Maps ;) Francesco Il 17/10/2014 11:03, H?vard Tveite ha scritto: > Hi Francesco, > > Do you get any error messages? > > Your map file looks a bit like the example from the WMS > Server documentation (http://mapserver.org/ogc/wms_server.html), > and that should be a good starting point. > > To make it easier to find the source of your problems, I > suggest that you start with the basic example in the > WMS Server documentation and expand it gradually. > > H?vard > > PS: You are using SIZEUNITS meters in your test layer. That > means that your SIZE 0.0019 symbols will be very small if > you are not operating close to a 1:1 map scale. > > > On 2014-10-16 17:04, Francesco Palermo wrote: >> Hello, >> I'm experimenting the use of Mapserver as WMS and I'm encountering >> some problems on map rendering. I'm using a shapefile as a map source >> and it's a map of points (generated by a csv using ogr2ogr - Could I >> use directly csv with Mapserver? I don't know). I can't get the >> rendering of this map using for example QGIS or this URL in the >> browser (which I hope it's correct): >> http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test& >> >> >> This is the mapfile: >> MAP >> NAME "test" >> STATUS ON >> SIZE 500 300 >> IMAGETYPE PNG >> EXTENT 9.2990 43.0105 9.4894 43.0524 >> UNITS METERS >> DEBUG 5 >> PROJECTION >> "init=epsg:4269" >> END >> WEB >> TEMPLATE "template.html" >> IMAGEPATH "/var/www/html/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "WMS Demo Server" >> "wms_onlineresource" "http://localhost/cgi-bin/mapserv?" >> "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" >> "wms_enable_request" "*" >> END >> END >> #IMAGECOLOR 255 255 255 >> TRANSPARENT ON >> SHAPEPATH "oilspill/" >> OUTPUTFORMAT >> NAME "png" >> DRIVER AGG/PNG >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> FORMATOPTION "GAMMA=0.75" >> END >> SYMBOL >> NAME "square" >> TYPE vector >> POINTS >> 0 0 >> 0 1 >> 1 1 >> 1 0 >> 0 0 >> END >> FILLED true >> ANCHORPOINT 0.5 0.5 >> END >> LAYER >> NAME "test" >> TYPE POINT >> STATUS DEFAULT >> DATA "timestep24" >> DEBUG 5 >> SIZEUNITS meters >> PROJECTION >> "init=epsg:4269" >> END >> METADATA >> "wms_title" "test" >> END >> CLASSITEM "weight" >> CLASS >> STYLE >> COLOR "#1014FF" >> SYMBOL "square" >> SIZE 0.0019 >> END >> END >> END >> END >> >> Any suggestions? Are there any errors in the mapfile? Or am I wrong >> in the procedure? >> >> Thanks, >> Francesco >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- Francesco Palermo From zach.chehayeb at airborne.aero Tue Oct 21 14:37:45 2014 From: zach.chehayeb at airborne.aero (Zach Chehayeb) Date: Tue, 21 Oct 2014 21:37:45 +0000 Subject: [mapserver-users] Square Edges Using labelpoly Message-ID: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> Hi All, Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? Regards, Zach -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at nmbu.no Wed Oct 22 00:17:22 2014 From: havard.tveite at nmbu.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=) Date: Wed, 22 Oct 2014 09:17:22 +0200 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> Message-ID: <54475A02.7080100@nmbu.no> LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ From evka.jelinkova at gmail.com Wed Oct 22 01:57:18 2014 From: evka.jelinkova at gmail.com (=?UTF-8?B?RXZhIEplbMOtbmtvdsOh?=) Date: Wed, 22 Oct 2014 10:57:18 +0200 Subject: [mapserver-users] STYLEITEM AUTO and LABEL ENCODING can't exist simultaneously?? In-Reply-To: References: Message-ID: Hi, I am using MapServer 6.4.1 and I also encountered the problem with encoding while using STYLEITEM AUTO. There is my mapfile and DGN file in an attachment. This mapfile works well, because I defined LABEL there (I can! what an advantage compared to Chinese...), but when I leave CLASS empty and set STYLEITEM AUTO, special characters are not displaying. In this small case I can use LABEL encoding and I can display data correctly, but if I have different DGN file with many labels in it and in many styles, it is really unpleasant to style them all just because of encoding... I would really appreciate if there is possibility to define encoding in STYLEITEM AUTO mode. Thank you, Eva Jelinkova P.S.: EPSG:5514 is: <5514> +proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +pm=greenwich +units=m +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 +no_defs <> 2014-10-13 8:54 GMT+02:00 Rahkonen Jukka (Tike) : > Hi, > > It seems that you have done a good work by studying the situation yourself > and it looks like combination ?styleitem auto? and ?encoding GB18030? does > not work in your environment. However, it is unlikely that you will get any > better answer that this one I am writing because you are using version > 5.2.1 which was released 2008-12-08. There can?t be many users worldwide > who are using that old version, Chinase character set, and data from > MapInfo TAB. > > I suggest you to update to version 6.5-dev or at least 6.4.1 and repeat > your test. If it still fails, prepare a test package with a small sample of > MapInfo data and a minimal but complete mapfile so other users and > developers can reproduce the issue. > > -Jukka Rahkonen- > > > TENGDA wrote: > > Hi All, > > Is there any method that I can both set 'STYLEITEM AUTO', and also set > ENCODING GB18030? NOTE: my mapserv is V5.2.1. > > [PROBLEM]: > I am now using mapinfo tab files as my map data. > Labels in the mapinfo files are in Chinese. In order to support styles > within mapinfo, I use 'STYLEITEM AUTO'. > Then style are displayed well, however, Chinese characters > are not displayed properly. > > [PROBLEM DESCRIPTION]: > ? Mapserver version: 5.2.1. > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICO > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUP > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > ? ogrinfo of tab file: > OGRFeature(2000_BJ10):4 > blank (String) = > Style = LABEL(t:"?",a:0.000000,s:1.380000g,c:#000000,p:1,f:"") > POINT (1017054046.578231 612967797.60216415) > > [CONFUSING]: > ? When I use STYLEITEM AUTO, I can't set 'ENCODING GB18030' for LABEL. > ? If not using STYLEITEM AUTO, I can't set LABELITEM, because the chinese > character is within Style=LABEL(t:"Chinese character"....). > Method I also tried includes: > ? Change mapfile encoding from ANSI to UTF-8 > ? Change MIF/MID encoding from ANSI to UTF-8, or even to BIG5. > So, is there any method that I can both set 'STYLEITEM AUTO', and also set > ENCODING GB18030? NOTE: my mapserv is V5.2.1. > > [MORE INFORMATION]: > I also have another mapinfo tab file, whose data is like this: > ENAME2000: String (50.0) > OGRFeature(??):1 > NAME (String) = ??? > AREA (Real) = 1.733 > PERIMETER (Real) = 8.498 > ??_ (Real) = 9 > ??_ID (Real) = 11 > CODE2000 (Real) = 110000 > ENAME2000 (String) = Beijing Municipality > Style = > BRUSH(fc:#f0f0f0,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1p > x,c:#d0d0d0,id:"mapinfo-pen-2.ogr-pen-0") > In this situation, I can use one layer with 'STYLEITEM AUTO' to display > styles, and another layer with 'LABELITEM NAME' and LABEL ... END to > display Labels, without any problem. Mapfile is as follow: > LAYER > ##DATASOURCETYPE 0 > NAME "test" > TYPE polygon > STATUS DEFAULT > OPACITY 100 > SIZEUNITS pixels > DATA "??" > CONNECTION > "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" > CONNECTIONTYPE ogr > STYLEITEM "AUTO" > PROJECTION > AUTO > END > CLASS > NAME > "Untitled class" > END > END > LAYER > ##DATASOURCETYPE 0 > NAME "??" > TYPE annotation > STATUS DEFAULT > OPACITY 100 > SIZEUNITS pixels > DATA "??" > CONNECTION > "C:\ms4w\Apache\htdocs\mapinfo\??.TAB" > CONNECTIONTYPE ogr > PROJECTION > AUTO > END > LABELITEM "NAME" > CLASS > NAME > "Untitled class" > LABEL > > ANGLE auto > > FONT "HEITI" > > ENCODING "GB18030" > > TYPE truetype > > PRIORITY 1 > > SIZE 10 > > MAXSIZE 256 > > MINSIZE 4 > > COLOR 255 0 0 > > OUTLINECOLOR 0 255 255 > > BACKGROUNDSHADOWSIZE 1 1 > > POSITION cc > > ANTIALIAS FALSE > > FORCE FALSE > > PARTIALS FALSE > END > END > END > > As you can see the difference between the two kinds of tab file, > ? one set chinese character in to LABEL(t:'') field, in which I not know > how to both set STYLEITEM AUTO and set ENCODING to LABEL. > ? the other set Chinese character to the NAME field, in which I can set > one layer with STYLEITEM AUTO, and another layer with LABELITEM. > Can anyone solve the problem I described in this post? > Waiting for your reply. Thanks very much. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver-dgn.zip Type: application/zip Size: 13061 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: label-definition_correct-encoding.png Type: image/png Size: 434752 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: styleitem-auto_incorrect-encoding.png Type: image/png Size: 423414 bytes Desc: not available URL: From jukka.rahkonen at mmmtike.fi Wed Oct 22 04:45:46 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 22 Oct 2014 11:45:46 +0000 Subject: [mapserver-users] LAYER example for kernerdensity wanted In-Reply-To: <544549A4.1070704@gatewaygeomatics.com> References: <54454320.6070400@gatewaygeomatics.com>, <544549A4.1070704@gatewaygeomatics.com> Message-ID: <88031ee77bf843998bee9640bde55dec@C119S212VM022.msvyvi.vaha.local> Jeff McKenna wrote: L?hetetty: 20. lokakuuta 2014 20:43 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] LAYER example for kernerdensity wanted On 2014-10-20 2:15 PM, Jeff McKenna wrote: >> Hi Jukka, >> >> The good news/bad news is that I can reproduce this same issue on >> Windows, with MapServer-master and GDAL (both trunk and 1.11.1 release). >> I have built both MapServer and GDAL in debug mode, and have placed >> the debug messages (and test case) in a ticket at >> https://github.com/mapserver/mapserver/issues/5019 It seems to crash on >> a memcpy call by GDAL, hmmm... >> >> >> -jeff >> > Update: fixed by EvenR in MapServer-master! Thanks Even! Hi Jeff and Even, It works now for me too with the gisinternals binaries. And it works very well indeed. -Jukka- From aperi2007 at gmail.com Wed Oct 22 06:26:09 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 22 Oct 2014 15:26:09 +0200 Subject: [mapserver-users] Using cluster with spatialite ? Message-ID: Hi, I'm testing the Cluster capability of Mapserver. I use this configuration: CLUSTER MAXDISTANCE 20 # in pixels REGION "ellipse" # can be rectangle or ellipse #GROUP (expression) # an expression to create separate groups for each value #FILTER (expression) # a logical expression to specify the grouping condition END LABELITEM "Cluster:FeatureCount" CLASS NAME "ingressi grotte" ..... But, I'm having an error: OGR Error INvalid Cluster:FeatureCount. The sample is take from doc so I guess the issue is somewhere else. I'm using spatialite, sothe my doubt is if the Cluster is working with spatialite. I guess yes because the interface is OGR, but no other explain why -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Wed Oct 22 06:34:17 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 22 Oct 2014 15:34:17 +0200 Subject: [mapserver-users] Using cluster with spatialite ? In-Reply-To: References: Message-ID: Hi, I found the expalin. Seeing the code I see the labelitem is not Cluster:FeatureCount but instead: Cluster_FeatureCount This is different from documentation. I guess the issue is in the code. If confirmed, I check in last dev in repository and fill an issue if necessary. Regards, Andrea. 2014-10-22 15:26 GMT+02:00 Andrea Peri : > Hi, > > I'm testing the Cluster capability of Mapserver. > > I use this configuration: > > CLUSTER > MAXDISTANCE 20 # in pixels > REGION "ellipse" # can be rectangle or ellipse > #GROUP (expression) # an expression to create separate groups > for each value > #FILTER (expression) # a logical expression to specify the > grouping condition > END > LABELITEM "Cluster:FeatureCount" > CLASS > NAME "ingressi grotte" > ..... > > But, I'm having an error: > > OGR Error INvalid Cluster:FeatureCount. > > The sample is take from doc so I guess the issue is somewhere else. > I'm using spatialite, sothe my doubt is if the Cluster is working with > spatialite. > I guess yes because the interface is OGR, but no other explain why > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From yves.jacolin at camptocamp.com Wed Oct 22 06:46:36 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 22 Oct 2014 15:46:36 +0200 Subject: [mapserver-users] [mapserver-dev] Using cluster with spatialite ? In-Reply-To: References: Message-ID: <1722733.DoSOBDmasp@tatras> On Wednesday, October 22, 2014 15:34:17 Andrea Peri wrote: > If confirmed, I check in last dev in repository and fill an issue if > necessary. and assign it to me, I will correct it. Thanks, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 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 From jmckenna at gatewaygeomatics.com Wed Oct 22 06:56:41 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 22 Oct 2014 10:56:41 -0300 Subject: [mapserver-users] Using cluster with spatialite ? In-Reply-To: References: Message-ID: <5447B799.8070707@gatewaygeomatics.com> On 2014-10-22 10:34 AM, Andrea Peri wrote: > Hi, > I found the expalin. > > Seeing the code I see the labelitem is not > > Cluster:FeatureCount > but instead: > Cluster_FeatureCount > > This is different from documentation. > I guess the issue is in the code. > > If confirmed, I check in last dev in repository and fill an issue if necessary. > > Regards, > > Andrea. > Careful, I believe that change was made to the unreleased 6.5-dev version. So that is why docs have not been updated for 6.4.1 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yves.jacolin at camptocamp.com Wed Oct 22 06:59:06 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 22 Oct 2014 15:59:06 +0200 Subject: [mapserver-users] Using cluster with spatialite ? In-Reply-To: <5447B799.8070707@gatewaygeomatics.com> References: <5447B799.8070707@gatewaygeomatics.com> Message-ID: <2421717.7faKDkd2za@tatras> On Wednesday, October 22, 2014 10:56:41 Jeff McKenna wrote: > On 2014-10-22 10:34 AM, Andrea Peri wrote: > > Hi, > > I found the expalin. > > > > Seeing the code I see the labelitem is not > > > > Cluster:FeatureCount > > but instead: > > Cluster_FeatureCount > > > > This is different from documentation. > > I guess the issue is in the code. > > > > If confirmed, I check in last dev in repository and fill an issue if > > necessary. > > > > Regards, > > > > Andrea. > > Careful, I believe that change was made to the unreleased 6.5-dev > version. So that is why docs have not been updated for 6.4.1 > > -jeff I confirm this, I have an old working mapfile with the Cluster:FeatureCount parameter. I will do some testing if I have some time. Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 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 From aperi2007 at gmail.com Wed Oct 22 07:25:21 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 22 Oct 2014 16:25:21 +0200 Subject: [mapserver-users] Using cluster with spatialite ? In-Reply-To: <2421717.7faKDkd2za@tatras> References: <5447B799.8070707@gatewaygeomatics.com> <2421717.7faKDkd2za@tatras> Message-ID: done https://github.com/mapserver/mapserver/issues/5021 Thx, A. 2014-10-22 15:59 GMT+02:00 Yves Jacolin : > On Wednesday, October 22, 2014 10:56:41 Jeff McKenna wrote: >> On 2014-10-22 10:34 AM, Andrea Peri wrote: >> > Hi, >> > I found the expalin. >> > >> > Seeing the code I see the labelitem is not >> > >> > Cluster:FeatureCount >> > but instead: >> > Cluster_FeatureCount >> > >> > This is different from documentation. >> > I guess the issue is in the code. >> > >> > If confirmed, I check in last dev in repository and fill an issue if >> > necessary. >> > >> > Regards, >> > >> > Andrea. >> >> Careful, I believe that change was made to the unreleased 6.5-dev >> version. So that is why docs have not been updated for 6.4.1 >> >> -jeff > I confirm this, I have an old working mapfile with the Cluster:FeatureCount > parameter. > > I will do some testing if I have some time. > > Y. > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > Tel (France) : +33 4 79 26 57 98 > Tel (Suisse) : 021 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From zach.chehayeb at airborne.aero Wed Oct 22 11:38:25 2014 From: zach.chehayeb at airborne.aero (Zach Chehayeb) Date: Wed, 22 Oct 2014 18:38:25 +0000 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: <54475A02.7080100@nmbu.no> References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> <54475A02.7080100@nmbu.no> Message-ID: <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> H?vard, Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas? STYLE ANGLE 0 COLOR 149 149 149 GEOMTRANSFORM "labelpoly" OFFSET 0 0 OUTLINECOLOR 149 149 149 WIDTH 22 LINEJOIN miter END # STYLE Regards, Zach -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of H?vard Tveite Sent: Wednesday, October 22, 2014 12:17 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Wed Oct 22 11:47:27 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 22 Oct 2014 20:47:27 +0200 Subject: [mapserver-users] Using cluster with spatialite ? In-Reply-To: References: <5447B799.8070707@gatewaygeomatics.com> <2421717.7faKDkd2za@tatras> Message-ID: Just to complete information. At the end the issue was explained to be really not an issue but instead a break api. In the mapserver 6.4 is need to use "Cluster:FeatureCount" in next coming mapserver 7.x will be use "Cluster_FeatureCount". Regards, Andrea Peri 2014-10-22 16:25 GMT+02:00 Andrea Peri : > done > > https://github.com/mapserver/mapserver/issues/5021 > > Thx, > > A. > > > 2014-10-22 15:59 GMT+02:00 Yves Jacolin : >> On Wednesday, October 22, 2014 10:56:41 Jeff McKenna wrote: >>> On 2014-10-22 10:34 AM, Andrea Peri wrote: >>> > Hi, >>> > I found the expalin. >>> > >>> > Seeing the code I see the labelitem is not >>> > >>> > Cluster:FeatureCount >>> > but instead: >>> > Cluster_FeatureCount >>> > >>> > This is different from documentation. >>> > I guess the issue is in the code. >>> > >>> > If confirmed, I check in last dev in repository and fill an issue if >>> > necessary. >>> > >>> > Regards, >>> > >>> > Andrea. >>> >>> Careful, I believe that change was made to the unreleased 6.5-dev >>> version. So that is why docs have not been updated for 6.4.1 >>> >>> -jeff >> I confirm this, I have an old working mapfile with the Cluster:FeatureCount >> parameter. >> >> I will do some testing if I have some time. >> >> Y. >> -- >> Responsable Formation et Support >> Camptocamp France SAS >> Savoie Technolac, BP 352 >> 73377 Le Bourget du Lac, Cedex >> Tel (France) : +33 4 79 26 57 98 >> Tel (Suisse) : 021 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 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Lime at state.mn.us Wed Oct 22 14:23:03 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 22 Oct 2014 21:23:03 +0000 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> <54475A02.7080100@nmbu.no> <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> Message-ID: Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test: 1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map 2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm... Sure seems like a bug... However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below) 3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map Steve ------------ snip ------------ MAP NAME 'test' EXTENT 0 0 500 500 SIZE 500 500 FONTSET 'fonts.list' SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'label' TYPE POINT STATUS DEFAULT FEATURE POINTS 50 250 END TEXT 'my label text' END LABELITEM 'text' CLASS LABEL POSITION UR TYPE TRUETYPE FONT 'arial' SIZE 40 COLOR 0 0 0 STYLE GEOMTRANSFORM labelpoly # COLOR 255 0 0 OUTLINECOLOR 255 0 0 WIDTH 10 LINEJOIN miter LINECAP square END # Style STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 END # Style END # Label END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Zach Chehayeb Sent: Wednesday, October 22, 2014 1:38 PM To: H?vard Tveite; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly H?vard, Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas? STYLE ANGLE 0 COLOR 149 149 149 GEOMTRANSFORM "labelpoly" OFFSET 0 0 OUTLINECOLOR 149 149 149 WIDTH 22 LINEJOIN miter END # STYLE Regards, Zach -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of H?vard Tveite Sent: Wednesday, October 22, 2014 12:17 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From zach.chehayeb at airborne.aero Wed Oct 22 14:46:04 2014 From: zach.chehayeb at airborne.aero (Zach Chehayeb) Date: Wed, 22 Oct 2014 21:46:04 +0000 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> <54475A02.7080100@nmbu.no> <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> Message-ID: <268228FFE3711546AD482C63D40232CF0C60DC@DAGN07B-e6.exg6.exghost.com> The two styles suggestion worked. Thank you both for your help! Steve, Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this? Regards, Zach -----Original Message----- From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, October 22, 2014 2:23 PM To: Zach Chehayeb; H?vard Tveite; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Square Edges Using labelpoly Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test: 1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map 2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm... Sure seems like a bug... However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below) 3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map Steve ------------ snip ------------ MAP NAME 'test' EXTENT 0 0 500 500 SIZE 500 500 FONTSET 'fonts.list' SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'label' TYPE POINT STATUS DEFAULT FEATURE POINTS 50 250 END TEXT 'my label text' END LABELITEM 'text' CLASS LABEL POSITION UR TYPE TRUETYPE FONT 'arial' SIZE 40 COLOR 0 0 0 STYLE GEOMTRANSFORM labelpoly # COLOR 255 0 0 OUTLINECOLOR 255 0 0 WIDTH 10 LINEJOIN miter LINECAP square END # Style STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 END # Style END # Label END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Zach Chehayeb Sent: Wednesday, October 22, 2014 1:38 PM To: H?vard Tveite; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly H?vard, Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas? STYLE ANGLE 0 COLOR 149 149 149 GEOMTRANSFORM "labelpoly" OFFSET 0 0 OUTLINECOLOR 149 149 149 WIDTH 22 LINEJOIN miter END # STYLE Regards, Zach -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of H?vard Tveite Sent: Wednesday, October 22, 2014 12:17 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Oct 22 14:48:44 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 22 Oct 2014 21:48:44 +0000 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: <268228FFE3711546AD482C63D40232CF0C60DC@DAGN07B-e6.exg6.exghost.com> References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> <54475A02.7080100@nmbu.no> <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> <268228FFE3711546AD482C63D40232CF0C60DC@DAGN07B-e6.exg6.exghost.com> Message-ID: It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas refactored a bunch of the labeling code in 7.0 so maybe it's not an issue. -----Original Message----- From: Zach Chehayeb [mailto:zach.chehayeb at airborne.aero] Sent: Wednesday, October 22, 2014 4:46 PM To: Lime, Steve D (MNIT); H?vard Tveite; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Square Edges Using labelpoly The two styles suggestion worked. Thank you both for your help! Steve, Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this? Regards, Zach -----Original Message----- From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, October 22, 2014 2:23 PM To: Zach Chehayeb; H?vard Tveite; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Square Edges Using labelpoly Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test: 1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map 2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm... Sure seems like a bug... However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below) 3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map Steve ------------ snip ------------ MAP NAME 'test' EXTENT 0 0 500 500 SIZE 500 500 FONTSET 'fonts.list' SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'label' TYPE POINT STATUS DEFAULT FEATURE POINTS 50 250 END TEXT 'my label text' END LABELITEM 'text' CLASS LABEL POSITION UR TYPE TRUETYPE FONT 'arial' SIZE 40 COLOR 0 0 0 STYLE GEOMTRANSFORM labelpoly # COLOR 255 0 0 OUTLINECOLOR 255 0 0 WIDTH 10 LINEJOIN miter LINECAP square END # Style STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 END # Style END # Label END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Zach Chehayeb Sent: Wednesday, October 22, 2014 1:38 PM To: H?vard Tveite; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly H?vard, Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas? STYLE ANGLE 0 COLOR 149 149 149 GEOMTRANSFORM "labelpoly" OFFSET 0 0 OUTLINECOLOR 149 149 149 WIDTH 22 LINEJOIN miter END # STYLE Regards, Zach -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of H?vard Tveite Sent: Wednesday, October 22, 2014 12:17 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Wed Oct 22 14:56:44 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 22 Oct 2014 21:56:44 +0000 Subject: [mapserver-users] Square Edges Using labelpoly Message-ID: <24b02e0b11f54dd9ac5fa584ec3846ce@C119S212VM022.msvyvi.vaha.local> Round edges also with Mapserver 6.5-dev from last night. -Jukka Rahkonen- Lime, Steve D wrote: > > It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas > refactored a bunch of the labeling code in 7.0 so maybe it's not an issue. > > -----Original Message----- > From: Zach Chehayeb [mailto:zach.chehayeb at airborne.aero] > Sent: Wednesday, October 22, 2014 4:46 PM > To: Lime, Steve D (MNIT); H?vard Tveite; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Square Edges Using labelpoly > > The two styles suggestion worked. Thank you both for your help! > > Steve, > > Do you know if this is still an issue with the current release of mapserver? I am > running 6.0.3 so I am curious to know if this issue still exists. If so, would you like > me to raise a ticket for this? > > Regards, > > Zach > > > -----Original Message----- > From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] > Sent: Wednesday, October 22, 2014 2:23 PM > To: Zach Chehayeb; H?vard Tveite; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Square Edges Using labelpoly > > Seems to be the combination of the fill and the outline that forces the rounded > outline. Here's a test: > > 1) Outline, LINEJOIN MITER, LINECAP SQUARE: > http://maps1.dnr.state.mn.us/cgi- > bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mod > e=map > 2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: > http://maps1.dnr.state.mn.us/cgi- > bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mod > e=map > > Besides seemingly not respecting the LINEJOIN/LINECAP values, the label > polygon doesn't include the baseline decent of the lower case y. Hmmm... > > Sure seems like a bug... > > However, you can work around it. Just use two styles. One to draw the outline > and one to fill... (see mapfile below) > > 3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: > http://maps1.dnr.state.mn.us/cgi- > bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mod > e=map > > Steve > > ------------ snip ------------ > MAP > NAME 'test' > EXTENT 0 0 500 500 > SIZE 500 500 > > FONTSET 'fonts.list' > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > LAYER > NAME 'label' > TYPE POINT > STATUS DEFAULT > > FEATURE > POINTS 50 250 END > TEXT 'my label text' > END > > LABELITEM 'text' > CLASS > LABEL > POSITION UR > TYPE TRUETYPE > FONT 'arial' > SIZE 40 > COLOR 0 0 0 > STYLE > GEOMTRANSFORM labelpoly > # COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > WIDTH 10 > LINEJOIN miter > LINECAP square > END # Style > STYLE > GEOMTRANSFORM labelpoly > COLOR 255 0 0 > END # Style > END # Label > END > END > END > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Zach Chehayeb > Sent: Wednesday, October 22, 2014 1:38 PM > To: H?vard Tveite; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Square Edges Using labelpoly > > H?vard, > > Thanks for your help. Unfortunately, the polygon did not change when > specifying "LINEJOIN miter" (see below) and still has curved edges. Any other > ideas? > STYLE > ANGLE 0 > COLOR 149 149 149 > GEOMTRANSFORM "labelpoly" > OFFSET 0 0 > OUTLINECOLOR 149 149 149 > WIDTH 22 > LINEJOIN miter > END # STYLE > > Regards, > > Zach > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of H?vard Tveite > Sent: Wednesday, October 22, 2014 12:17 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Square Edges Using labelpoly > > LINEJOIN miter > in the STYLE element should work also for labelpoly see > http://mapserver.org/mapfile/style.html > > LABEL > STYLE > GEOMTRANSFORM labelpoly > OUTLINECOLOR 255 0 0 > WIDTH 4 > LINEJOIN miter > END # Style > ... > END # Label > > H?vard > > On 2014-10-21 23:37, Zach Chehayeb wrote: > > Hi All, > > > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM > labelpoly) with straight edges instead of curved edges? > > > > Regards, > > > > Zach > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, > POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Oct 22 14:58:24 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 22 Oct 2014 21:58:24 +0000 Subject: [mapserver-users] Square Edges Using labelpoly In-Reply-To: References: <268228FFE3711546AD482C63D40232CF0C5CF2@DAGN07B-e6.exg6.exghost.com> <54475A02.7080100@nmbu.no> <268228FFE3711546AD482C63D40232CF0C6021@DAGN07B-e6.exg6.exghost.com> <268228FFE3711546AD482C63D40232CF0C60DC@DAGN07B-e6.exg6.exghost.com> Message-ID: 7.0 still suffers from the issue in the second image URL I posted - please file a ticket if you would. On the bright side the label poly now properly includes the lowercase y! http://maps1.dnr.state.mn.us/cgi-bin/mapserv70?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Wednesday, October 22, 2014 4:49 PM To: Zach Chehayeb; H?vard Tveite; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas refactored a bunch of the labeling code in 7.0 so maybe it's not an issue. -----Original Message----- From: Zach Chehayeb [mailto:zach.chehayeb at airborne.aero] Sent: Wednesday, October 22, 2014 4:46 PM To: Lime, Steve D (MNIT); H?vard Tveite; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Square Edges Using labelpoly The two styles suggestion worked. Thank you both for your help! Steve, Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this? Regards, Zach -----Original Message----- From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, October 22, 2014 2:23 PM To: Zach Chehayeb; H?vard Tveite; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Square Edges Using labelpoly Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test: 1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map 2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm... Sure seems like a bug... However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below) 3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map Steve ------------ snip ------------ MAP NAME 'test' EXTENT 0 0 500 500 SIZE 500 500 FONTSET 'fonts.list' SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'label' TYPE POINT STATUS DEFAULT FEATURE POINTS 50 250 END TEXT 'my label text' END LABELITEM 'text' CLASS LABEL POSITION UR TYPE TRUETYPE FONT 'arial' SIZE 40 COLOR 0 0 0 STYLE GEOMTRANSFORM labelpoly # COLOR 255 0 0 OUTLINECOLOR 255 0 0 WIDTH 10 LINEJOIN miter LINECAP square END # Style STYLE GEOMTRANSFORM labelpoly COLOR 255 0 0 END # Style END # Label END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Zach Chehayeb Sent: Wednesday, October 22, 2014 1:38 PM To: H?vard Tveite; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly H?vard, Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas? STYLE ANGLE 0 COLOR 149 149 149 GEOMTRANSFORM "labelpoly" OFFSET 0 0 OUTLINECOLOR 149 149 149 WIDTH 22 LINEJOIN miter END # STYLE Regards, Zach -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of H?vard Tveite Sent: Wednesday, October 22, 2014 12:17 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Square Edges Using labelpoly LINEJOIN miter in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html LABEL STYLE GEOMTRANSFORM labelpoly OUTLINECOLOR 255 0 0 WIDTH 4 LINEJOIN miter END # Style ... END # Label H?vard On 2014-10-21 23:37, Zach Chehayeb wrote: > Hi All, > > Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges? > > Regards, > > Zach > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Wed Oct 22 21:55:20 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Thu, 23 Oct 2014 04:55:20 +0000 Subject: [mapserver-users] Is kerneldensity_attribute implemented? Message-ID: Hi, I have tried to use attribute based weights in heatmaps as in RFC 108 example http://mapserver.org/development/rfc/ms-rfc-108.html processing "KERNELDENSITY_ATTRIBUTE=POP2010" However, this processing option does not seem to have any affect. It is not used in the MS autotest mapfile and I wonder if it has been implemented at all yet. Does somebody know? -Jukka Rahkonen- From thomas.bonfort at gmail.com Wed Oct 22 23:57:09 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 23 Oct 2014 08:57:09 +0200 Subject: [mapserver-users] Is kerneldensity_attribute implemented? In-Reply-To: References: Message-ID: Jukka, All the functionality is tested in msautotest, the KERNELDENSITY_ATTRIBUTE is an error is the RFC. To use an attribute use STYLE SIZE [attribute] END in your linked vector layer. -- thomas On 23 October 2014 06:55, Rahkonen Jukka (Tike) wrote: > Hi, > > I have tried to use attribute based weights in heatmaps as in RFC 108 example http://mapserver.org/development/rfc/ms-rfc-108.html > processing "KERNELDENSITY_ATTRIBUTE=POP2010" > > However, this processing option does not seem to have any affect. It is not used in the MS autotest mapfile and I wonder if it has been implemented at all yet. Does somebody know? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Thu Oct 23 01:21:03 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Thu, 23 Oct 2014 08:21:03 +0000 Subject: [mapserver-users] Is kerneldensity_attribute implemented? Message-ID: <4baf86e8387541acb0194f4e1eb2b031@C119S212VM022.msvyvi.vaha.local> Hi, Fine, I could make is work with this knowledge. Is it so that the only documentation right now is in the RFC and main documentation page http://mapserver.org/documentation.html does not know about dynamic heatmaps yet? Might be worth having an own entry in the Output section. I was trying to normalize my source data. There seems to be some limited possibilities for doing that with source layer and kerneldensity layer: - In source LAYER the attribute to be used for weighting can be selected with "STYLE SIZE [attribute] END. The [attribute] is selected as it stands and no expressions can be used in STYLE - SIZE - In the kerneldensity LAYER " processing "KERNELDENSITY_NORMALIZATION" can be used for normalizing data by a multiplication factor. - For more advanced normalization it must be done in the data because for example expression [POPULATION]/[AREA] can't be resolved on-the-fly because expressions are not supported in STYLE - SIZE. Have I understood right? With some sources of the point layer data there could perhaps be a workaround by computing new field on-the-fly inside LAYER - DATA: "select geometry, population/area as popar from source" and by using then "popar" as size attribute. I made some trials with connnectiontype OGR but it was not trivial to make my selection to work from a shapefile. -Jukka Rahkonen- thomas bonfort wrote: > Jukka, > All the functionality is tested in msautotest, the KERNELDENSITY_ATTRIBUTE is > an error is the RFC. To use an attribute use STYLE SIZE [attribute] END in your > linked vector layer. > > -- > thomas > > On 23 October 2014 06:55, Rahkonen Jukka (Tike) > wrote: > > Hi, > > > > I have tried to use attribute based weights in heatmaps as in RFC 108 > > example http://mapserver.org/development/rfc/ms-rfc-108.html > > processing "KERNELDENSITY_ATTRIBUTE=POP2010" > > > > However, this processing option does not seem to have any affect. It is not > used in the MS autotest mapfile and I wonder if it has been implemented at all > yet. Does somebody know? > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From yves.jacolin at camptocamp.com Thu Oct 23 05:04:08 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 23 Oct 2014 14:04:08 +0200 Subject: [mapserver-users] Is kerneldensity_attribute implemented? In-Reply-To: <4baf86e8387541acb0194f4e1eb2b031@C119S212VM022.msvyvi.vaha.local> References: <4baf86e8387541acb0194f4e1eb2b031@C119S212VM022.msvyvi.vaha.local> Message-ID: <2114413.pBTP7vVf9P@tatras> Hello, If documentation is not uptodate you can either send a PR or create an issue with some text and information (where? what?). More information you give, easier and better it is for us. Y. On Thursday, October 23, 2014 8:21:03 Rahkonen Jukka wrote: > Hi, > > Fine, I could make is work with this knowledge. Is it so that the only > documentation right now is in the RFC and main documentation page > http://mapserver.org/documentation.html does not know about dynamic > heatmaps yet? Might be worth having an own entry in the Output section. > > I was trying to normalize my source data. There seems to be some limited > possibilities for doing that with source layer and kerneldensity layer: - > In source LAYER the attribute to be used for weighting can be selected with > "STYLE SIZE [attribute] END. The [attribute] is selected as it stands and > no expressions can be used in STYLE - SIZE - In the kerneldensity LAYER " > processing "KERNELDENSITY_NORMALIZATION" can be used for normalizing data > by a multiplication factor. - For more advanced normalization it must be > done in the data because for example expression [POPULATION]/[AREA] can't > be resolved on-the-fly because expressions are not supported in STYLE - > SIZE. > > Have I understood right? With some sources of the point layer data there > could perhaps be a workaround by computing new field on-the-fly inside > LAYER - DATA: "select geometry, population/area as popar from source" and > by using then "popar" as size attribute. I made some trials with > connnectiontype OGR but it was not trivial to make my selection to work > from a shapefile. > > -Jukka Rahkonen- > > thomas bonfort wrote: > > Jukka, > > All the functionality is tested in msautotest, the KERNELDENSITY_ATTRIBUTE > > is an error is the RFC. To use an attribute use STYLE SIZE [attribute] > > END in your linked vector layer. > > > > -- > > thomas > > > > On 23 October 2014 06:55, Rahkonen Jukka (Tike) > > > > wrote: > > > Hi, > > > > > > I have tried to use attribute based weights in heatmaps as in RFC 108 > > > example http://mapserver.org/development/rfc/ms-rfc-108.html > > > processing "KERNELDENSITY_ATTRIBUTE=POP2010" > > > > > > However, this processing option does not seem to have any affect. It is > > > not > > > > used in the MS autotest mapfile and I wonder if it has been implemented at > > all yet. Does somebody know? > > > > > -Jukka Rahkonen- > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://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 79 26 57 98 Tel (Suisse) : 021 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 From jukka.rahkonen at mmmtike.fi Thu Oct 23 05:58:04 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Thu, 23 Oct 2014 12:58:04 +0000 Subject: [mapserver-users] Is kerneldensity_attribute implemented? Message-ID: <2d5b1b4a45af47b1b52a751efd5f98bd@C119S212VM022.msvyvi.vaha.local> Hi, I made an issue to Github. By browsing through the list of RFCs there may be also some other features in Mapserver which are best or only documented in corresponding RFCs. That is OK as an initial documentation but if things are a 'changing and usage is perhaps no more exactly as it was written to RFC. It looks like there is usually no considerations in RFCs about how and where to document the fine new features for the users. -Jukka Rahkonen- Yves Jacolin wrote: > Hello, > > If documentation is not uptodate you can either send a PR or create an issue > with some text and information (where? what?). > > More information you give, easier and better it is for us. > > Y. > On Thursday, October 23, 2014 8:21:03 Rahkonen Jukka wrote: > > Hi, > > > > Fine, I could make is work with this knowledge. Is it so that the only > > documentation right now is in the RFC and main documentation page > > http://mapserver.org/documentation.html does not know about dynamic > > heatmaps yet? Might be worth having an own entry in the Output section. > > > > I was trying to normalize my source data. There seems to be some > > limited possibilities for doing that with source layer and > > kerneldensity layer: - In source LAYER the attribute to be used for > > weighting can be selected with "STYLE SIZE [attribute] END. The > > [attribute] is selected as it stands and no expressions can be used in STYLE - > SIZE - In the kerneldensity LAYER " > > processing "KERNELDENSITY_NORMALIZATION" can be used for normalizing > > data by a multiplication factor. - For more advanced normalization it > > must be done in the data because for example expression > > [POPULATION]/[AREA] can't be resolved on-the-fly because expressions > > are not supported in STYLE - SIZE. > > > > Have I understood right? With some sources of the point layer data > > there could perhaps be a workaround by computing new field on-the-fly > > inside LAYER - DATA: "select geometry, population/area as popar from > > source" and by using then "popar" as size attribute. I made some > > trials with connnectiontype OGR but it was not trivial to make my > > selection to work from a shapefile. > > > > -Jukka Rahkonen- > > > > thomas bonfort wrote: > > > Jukka, > > > All the functionality is tested in msautotest, the > > > KERNELDENSITY_ATTRIBUTE is an error is the RFC. To use an attribute > > > use STYLE SIZE [attribute] END in your linked vector layer. > > > > > > -- > > > thomas > > > > > > On 23 October 2014 06:55, Rahkonen Jukka (Tike) > > > > > > wrote: > > > > Hi, > > > > > > > > I have tried to use attribute based weights in heatmaps as in RFC > > > > 108 example http://mapserver.org/development/rfc/ms-rfc-108.html > > > > processing "KERNELDENSITY_ATTRIBUTE=POP2010" > > > > > > > > However, this processing option does not seem to have any affect. > > > > It is not > > > > > > used in the MS autotest mapfile and I wonder if it has been > > > implemented at all yet. Does somebody know? > > > > > > > -Jukka Rahkonen- > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://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 79 26 57 98 > Tel (Suisse) : 021 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 From bob.basques at ci.stpaul.mn.us Thu Oct 23 14:09:37 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 23 Oct 2014 21:09:37 +0000 Subject: [mapserver-users] Color-ramps for features? Message-ID: All, Can color ramp/ranges be used to style features, based on attribute value? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Oct 24 09:38:54 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 24 Oct 2014 16:38:54 +0000 Subject: [mapserver-users] Color-ramps for features? In-Reply-To: References: Message-ID: They can be used to set colors based on an attribute value. What more are you looking for? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, October 23, 2014 4:10 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Color-ramps for features? All, Can color ramp/ranges be used to style features, based on attribute value? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Oct 24 11:20:19 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 24 Oct 2014 18:20:19 +0000 Subject: [mapserver-users] Color-ramps for features? In-Reply-To: References: Message-ID: Mor info . . . Separate classes clobber each other too, only one class is honored in the output, first in the list. OUTLINECOLOR is ignored . . . WIDTH works!! Looks like I need to make a whole new layer to get that outline . . . It's still simpler than the ten ranges (x2, I had a fading outline as well. . .) I was using to begin with though . . . Bobb From: Lime, Steve D (MNIT) Sent: Friday, October 24, 2014 11:39 AM To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org Subject: RE: Color-ramps for features? They can be used to set colors based on an attribute value. What more are you looking for? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, October 23, 2014 4:10 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Color-ramps for features? All, Can color ramp/ranges be used to style features, based on attribute value? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.malm at saabgroup.com Mon Oct 27 03:23:04 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Mon, 27 Oct 2014 10:23:04 +0000 Subject: [mapserver-users] Calculation of scale in mapserver Message-ID: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> Hi, I wounder how MapServer can know the current scale I'm using in my client, it must be calculated from the URL BBOX. But how does WMS know the physical size of this box on the clients screen? The MIN/MAX-SCALEDENOM are used in WMS but not in WFS. I would like to search for WFS objects from objects that are visible om my screen (WMS). To do that I need to know what scale WMS is currently using, or how it's calculated. Otherwise I can't filter out the correct layers in my WFS query (layers that are not WMS-rendered). Any ideas? Kind regards, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Mon Oct 27 05:04:31 2014 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 27 Oct 2014 08:04:31 -0400 Subject: [mapserver-users] Calculation of scale in mapserver In-Reply-To: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> Message-ID: <544E34CF.30402@mindspring.com> WMS call has WIDTH and HEIGHT in pixels and combined with BBOX calculates the scale. http://localhost/wms/maps?LAYERS=parcels&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A2264&BBOX=1843216.8888889,468292.22222222,2517439.1111111,835847.77777778&WIDTH=1517&HEIGHT=827 *Worth Lutz* ------------------ On 10/27/2014 06:23 AM, Malm Paul wrote: > > Hi, > > I wounder how MapServer can know the current scale I?m using in my > client, it must be calculated from the URL BBOX. But how does WMS know > the physical size of this box on the clients screen? > > The MIN/MAX-SCALEDENOM are used in WMS but not in WFS. > > I would like to search for WFS objects from objects that are visible > om my screen (WMS). > > To do that I need to know what scale WMS is currently using, or how > it?s calculated. Otherwise I can?t filter out the correct layers in my > WFS query (layers that are not WMS-rendered). > > Any ideas? > > Kind regards, > > Paul > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Mon Oct 27 05:27:47 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 27 Oct 2014 12:27:47 +0000 Subject: [mapserver-users] Calculation of scale in mapserver In-Reply-To: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> References: <778b73336d624af59d14c7a744a9e76f@corpappl844.corp.saab.se> Message-ID: <6F331135492B944D90731CE93743D5680D4916@FS-EX-DB102.fs.sachsen.de> This is part of section "7.2.4.6.9 Scale denominators" of the WMS spec: ... For the purposes of this International Standard, the common pixel size is defined to be 0,28 mm ? 0,28 mm. Because arbitrary clients can request maps from a server, the true pixel size of the final rendering device is unknown to the server. ... But in your case you simply need to use the same BBOX for the WFS filter as for the current WMS view. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Malm Paul > Gesendet: Montag, 27. Oktober 2014 11:23 > An: 'mapserver-users at lists.osgeo.org' > Betreff: [mapserver-users] Calculation of scale in mapserver > > Hi, > > I wounder how MapServer can know the current scale I'm using in my client, > it must be calculated from the URL BBOX. But how does WMS know the > physical size of this box on the clients screen? > > > > The MIN/MAX-SCALEDENOM are used in WMS but not in WFS. > > I would like to search for WFS objects from objects that are visible om my > screen (WMS). > > To do that I need to know what scale WMS is currently using, or how it's > calculated. Otherwise I can't filter out the correct layers in my WFS > query (layers that are not WMS-rendered). > > > > Any ideas? > > Kind regards, > > Paul > >