From ian.walberg at airborne.aero Mon Jan 2 09:10:28 2017 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 2 Jan 2017 17:10:28 +0000 Subject: [mapserver-users] Label position not as expected version 7.0.x Message-ID: Folks, Happy New Year to everyone. Using version 7.0.x we are not seeing the label positon as we had for previous versions for mapserver. The vertical label position now appears to not center naturally on the text but is towards the bottom of the center line. Are we missing something? Thanks Ian MAP EXTENT 0.0 0.0 10.0 10.0 SIZE 1024 720 IMAGECOLOR 140 140 140 SYMBOL NAME 'City' TYPE ELLIPSE POINTS 1 1 END FILLED true END LAYER NAME "Label position" TYPE POINT STATUS DEFAULT FEATURE POINTS 1.00 5.00 1.00 8.00 END # POINTS END # FEATURE CLASS TEXT 'Label text' STYLE SYMBOL 'City' SIZE 12 COLOR 255 255 255 END # STYLE LABEL TYPE BITMAP SIZE 30 COLOR 255 255 255 POSITION CR END # LABEL END # CLASS END # LAYER END # MAP -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Jan 2 09:40:33 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 02 Jan 2017 17:40:33 +0000 Subject: [mapserver-users] Label position not as expected version 7.0.x In-Reply-To: References: Message-ID: Ian, It's the intented effect, with the label baseline aligned with the symbol baseline. You can probably nudge it manually with an offset if you need to. -- thomas On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg wrote: > Folks, > > > > Happy New Year to everyone. > > > > Using version 7.0.x we are not seeing the label positon as we had for > previous versions for mapserver. > > > > The vertical label position now appears to not center naturally on the > text but is towards the bottom of the center line. > > > > Are we missing something? > > > > Thanks > > > > Ian > > > > MAP > > > > EXTENT 0.0 0.0 10.0 10.0 > > SIZE 1024 720 > > IMAGECOLOR 140 140 140 > > > > SYMBOL > > NAME 'City' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED true > > END > > > > LAYER > > > > NAME "Label position" > > TYPE POINT > > STATUS DEFAULT > > > > FEATURE > > POINTS > > 1.00 5.00 > > 1.00 8.00 > > END # POINTS > > END # FEATURE > > > > CLASS > > TEXT 'Label text' > > STYLE > > SYMBOL 'City' > > SIZE 12 > > COLOR 255 255 255 > > END # STYLE > > > > LABEL > > TYPE BITMAP > > SIZE 30 > > COLOR 255 255 255 > > POSITION CR > > END # LABEL > > > > END # CLASS > > > > END # LAYER > > > > END # MAP > _______________________________________________ > 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 ian.walberg at airborne.aero Mon Jan 2 09:58:30 2017 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 2 Jan 2017 17:58:30 +0000 Subject: [mapserver-users] Label position not as expected version 7.0.x In-Reply-To: References: Message-ID: Thomas. Hmm, I do not understand why the change was made from the older versions. So the vertical ?center? position is actually align the text baseline with the point position and not the ?center? of the text as previously? Regards Ian From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, January 2, 2017 9:41 AM To: Ian Walberg ; mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-users] Label position not as expected version 7.0.x Ian, It's the intented effect, with the label baseline aligned with the symbol baseline. You can probably nudge it manually with an offset if you need to. -- thomas On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg > wrote: Folks, Happy New Year to everyone. Using version 7.0.x we are not seeing the label positon as we had for previous versions for mapserver. The vertical label position now appears to not center naturally on the text but is towards the bottom of the center line. Are we missing something? Thanks Ian MAP EXTENT 0.0 0.0 10.0 10.0 SIZE 1024 720 IMAGECOLOR 140 140 140 SYMBOL NAME 'City' TYPE ELLIPSE POINTS 1 1 END FILLED true END LAYER NAME "Label position" TYPE POINT STATUS DEFAULT FEATURE POINTS 1.00 5.00 1.00 8.00 END # POINTS END # FEATURE CLASS TEXT 'Label text' STYLE SYMBOL 'City' SIZE 12 COLOR 255 255 255 END # STYLE LABEL TYPE BITMAP SIZE 30 COLOR 255 255 255 POSITION CR END # LABEL END # CLASS END # LAYER END # MAP _______________________________________________ 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 atakilan at yahoo.com Mon Jan 2 16:50:45 2017 From: atakilan at yahoo.com (mehan) Date: Mon, 2 Jan 2017 17:50:45 -0700 (MST) Subject: [mapserver-users] Multilayer mapcahe? Message-ID: <1483404645893-5301796.post@n6.nabble.com> Hi My mapcache.xml contains two raster layers seeded with separate tileset specification. First layer covers extent of full globe. the second layer is small tile covering small part of the wold. When the tileset corresponding to second layer is seeded, tiles are generated for full extent of the world with more blank tiles. When display, one layer hides the other one. mapcahe.xml ------------------ - mapcache.xml mapfile ---------- wmsreq.map Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multilayer-mapcahe-tp5301796.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Tue Jan 3 04:22:25 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 03 Jan 2017 12:22:25 +0000 Subject: [mapserver-users] Label position not as expected version 7.0.x In-Reply-To: References: Message-ID: correct. the position of "center of the text" varies depending on whether your glyphs have ascenders and/or descenders, and thus produces inconsistent centering between "aaa", "ppp" or "bbbb". This can be easily reverted by commenting out the two special cases for CR and CL at https://github.com/mapserver/mapserver/blob/rel-7-0-3/maplabel.c#L989 . replace with y1 = (h/2.0) + oy; -- thomas On Mon, Jan 2, 2017 at 6:58 PM Ian Walberg wrote: > Thomas. > > > > Hmm, I do not understand why the change was made from the older versions. > > > > So the vertical ?center? position is actually align the text baseline with > the point position and not the ?center? of the text as previously? > > > > Regards > > > > Ian > > > > *From:* thomas bonfort [mailto:thomas.bonfort at gmail.com] > *Sent:* Monday, January 2, 2017 9:41 AM > *To:* Ian Walberg ; > mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org > *Subject:* Re: [mapserver-users] Label position not as expected version > 7.0.x > > > > Ian, > > It's the intented effect, with the label baseline aligned with the symbol > baseline. You can probably nudge it manually with an offset if you need to. > > > > -- > > thomas > > > > On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg > wrote: > > Folks, > > > > Happy New Year to everyone. > > > > Using version 7.0.x we are not seeing the label positon as we had for > previous versions for mapserver. > > > > The vertical label position now appears to not center naturally on the > text but is towards the bottom of the center line. > > > > Are we missing something? > > > > Thanks > > > > Ian > > > > MAP > > > > EXTENT 0.0 0.0 10.0 10.0 > > SIZE 1024 720 > > IMAGECOLOR 140 140 140 > > > > SYMBOL > > NAME 'City' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED true > > END > > > > LAYER > > > > NAME "Label position" > > TYPE POINT > > STATUS DEFAULT > > > > FEATURE > > POINTS > > 1.00 5.00 > > 1.00 8.00 > > END # POINTS > > END # FEATURE > > > > CLASS > > TEXT 'Label text' > > STYLE > > SYMBOL 'City' > > SIZE 12 > > COLOR 255 255 255 > > END # STYLE > > > > LABEL > > TYPE BITMAP > > SIZE 30 > > COLOR 255 255 255 > > POSITION CR > > END # LABEL > > > > END # CLASS > > > > END # LAYER > > > > END # MAP > > _______________________________________________ > 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 ian.walberg at airborne.aero Tue Jan 3 07:47:53 2017 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 3 Jan 2017 15:47:53 +0000 Subject: [mapserver-users] Label position not as expected version 7.0.x In-Reply-To: References: Message-ID: <7727a3f6716140dfb353ff3eed731248@airborne.aero> Thomas, Understood that the historic vertical alignment is not perfect. I would like to propose that an additional vertical positon mode is added to allow the previous behavior to be retained. Regards Ian From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, January 3, 2017 4:22 AM To: Ian Walberg ; mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-users] Label position not as expected version 7.0.x correct. the position of "center of the text" varies depending on whether your glyphs have ascenders and/or descenders, and thus produces inconsistent centering between "aaa", "ppp" or "bbbb". This can be easily reverted by commenting out the two special cases for CR and CL at https://github.com/mapserver/mapserver/blob/rel-7-0-3/maplabel.c#L989 . replace with y1 = (h/2.0) + oy; -- thomas On Mon, Jan 2, 2017 at 6:58 PM Ian Walberg > wrote: Thomas. Hmm, I do not understand why the change was made from the older versions. So the vertical ?center? position is actually align the text baseline with the point position and not the ?center? of the text as previously? Regards Ian From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, January 2, 2017 9:41 AM To: Ian Walberg >; mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-users] Label position not as expected version 7.0.x Ian, It's the intented effect, with the label baseline aligned with the symbol baseline. You can probably nudge it manually with an offset if you need to. -- thomas On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg > wrote: Folks, Happy New Year to everyone. Using version 7.0.x we are not seeing the label positon as we had for previous versions for mapserver. The vertical label position now appears to not center naturally on the text but is towards the bottom of the center line. Are we missing something? Thanks Ian MAP EXTENT 0.0 0.0 10.0 10.0 SIZE 1024 720 IMAGECOLOR 140 140 140 SYMBOL NAME 'City' TYPE ELLIPSE POINTS 1 1 END FILLED true END LAYER NAME "Label position" TYPE POINT STATUS DEFAULT FEATURE POINTS 1.00 5.00 1.00 8.00 END # POINTS END # FEATURE CLASS TEXT 'Label text' STYLE SYMBOL 'City' SIZE 12 COLOR 255 255 255 END # STYLE LABEL TYPE BITMAP SIZE 30 COLOR 255 255 255 POSITION CR END # LABEL END # CLASS END # LAYER END # MAP _______________________________________________ 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 ijturton at gmail.com Tue Jan 3 08:00:43 2017 From: ijturton at gmail.com (Ian Turton) Date: Tue, 3 Jan 2017 16:00:43 +0000 Subject: [mapserver-users] SLD named layers and filters fails to draw with SQL error Message-ID: I'm using MapServer 6.4 and I have an SLD file (attached below) that contains the SLD for two named layers that I want to draw. This will fail with an SQL error like: [Tue Jan 03 15:47:02 2017].372000 msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or near ")" LINE 1: ...8249.045869014 463450.560844313))',27700) and ("id"= 100) )) ^ ) executing query: select "id",encode(ST_AsBinary(ST_Force_2D("wkb_geometry"),'NDR'),'hex') as geom,"id" from ( SELECT "id", "wkb_geometry", "name", "created_date" FROM (SELECT * FROM "nsips"."app_sites") d ) AS qq where wkb_geometry && GeomFromText('POLYGON((288249.045869014 463450.560844313,288249.045869014 645745.639155687,569171.454130986 645745.639155687,569171.454130986 463450.560844313,288249.045869014 463450.560844313))',27700) and ("id"= 100) )) [Tue Jan 03 15:47:02 2017].372000 msDrawMap(): Image handling error. Failed to draw layer named 'app_sites'. And it is quite correct that is an invalid SQL - if you delete the last two ) it works fine and returns the required feature. However if I comment out the filter from either of the layers I get a map (with too many features drawn). The only related issue I can see is https://github.com/mapserver/mapserver/issues/5154 but I'm not sure that it really applies. Cheers Ian -- Ian Turton -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.sld Type: application/octet-stream Size: 4077 bytes Desc: not available URL: From joerg.thomsen at wheregroup.com Wed Jan 4 02:57:12 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 4 Jan 2017 11:57:12 +0100 Subject: [mapserver-users] variable substitution Message-ID: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> Hello and a happy new year! I have had some problems with variable subst. and the FILTER keyword, following the example from http://mapserver.org/cgi/runsub.html#filters I first tried > VALIDATION > 'adrkey' '[0-9]' > END > > FILTER ('gid=%adrkey%') but this doesn't work, mapserver seems not to put the filteritem into the sql-request: > [Wed Jan 4 11:36:24 2017].762361 msPostGISLayerWhichShapes(): Error (ERROR: syntax error at or near "=" > LINE 1: ...019,333328.511788558 5808847.26502019))',25833) and ( = '1') then I had a look at expression-page (http://mapserver.org/mapfile/expressions.html) and tried > FILTERITEM 'gid' > FILTER '%adrkey%' which works. is there any mistake in my first try or doesn't this work anymore an the doc on http://mapserver.org/cgi/runsub.html#filters should be updated? Regards, J?rg -- ********************************************************* FOSS Academy Winterschule 2017 20.-24.03.2017 in Bonn Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule ********************************************************* ------------------------------- J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From thomas.bonfort at gmail.com Wed Jan 4 03:34:51 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 04 Jan 2017 11:34:51 +0000 Subject: [mapserver-users] variable substitution In-Reply-To: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> Message-ID: If you're using mapserver, your syntax and the docs probably need to be updated. Try: FILTER ( "[gid]" = "[%adrkey%]" ) please submit a PR to the docs if that solved the issue. -- thomas On Wed, Jan 4, 2017 at 12:27 PM J?rg Thomsen (WhereGroup) < joerg.thomsen at wheregroup.com> wrote: > Hello and a happy new year! > > I have had some problems with variable subst. and the FILTER keyword, > following the example from http://mapserver.org/cgi/runsub.html#filters > I first tried > > > VALIDATION > > 'adrkey' '[0-9]' > > END > > > > FILTER ('gid=%adrkey%') > > but this doesn't work, mapserver seems not to put the filteritem into > the sql-request: > > [Wed Jan 4 11:36:24 2017].762361 msPostGISLayerWhichShapes(): Error > (ERROR: syntax error at or near "=" > > LINE 1: ...019,333328.511788558 5808847.26502019))',25833) and ( = '1') > > then I had a look at expression-page > (http://mapserver.org/mapfile/expressions.html) and tried > > > FILTERITEM 'gid' > > FILTER '%adrkey%' > which works. > > is there any mistake in my first try or doesn't this work anymore an the > doc on http://mapserver.org/cgi/runsub.html#filters should be updated? > > Regards, J?rg > > -- > > ********************************************************* > FOSS Academy Winterschule 2017 > 20.-24.03.2017 in Bonn > Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! > https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule > ********************************************************* > > ------------------------------- > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 <+49%2030%20513027874> > Fax: +49 (0)30 / 89 09 53 21 <+49%2030%2089095321> > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_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 joerg.thomsen at wheregroup.com Wed Jan 4 03:43:44 2017 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 4 Jan 2017 12:43:44 +0100 Subject: [mapserver-users] variable substitution In-Reply-To: References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> Message-ID: <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> Hello Thomas, Am 04.01.2017 um 12:34 schrieb thomas bonfort: > FILTER ( "[gid]" = "[%adrkey%]" ) this doesn't work, ms puts the value into quotes so PG interprets it as a column-name. > [Wed Jan 4 12:40:04 2017].714496 msPostGISLayerWhichShapes(): Error (ERROR: column "2" does not exist > LINE 1: select "beschriftung","gid","2",encode(ST_AsBinary(ST_Force2... But the Filteritem / Filter solution is ok. Viele Gr??e, J?rg Thomsen -- ********************************************************* FOSS Academy Winterschule 2017 20.-24.03.2017 in Bonn Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule ********************************************************* ------------------------------- J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From thomas.bonfort at gmail.com Wed Jan 4 03:47:46 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 04 Jan 2017 11:47:46 +0000 Subject: [mapserver-users] variable substitution In-Reply-To: <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> Message-ID: yeah, if you want an integer comparison use: FILTER ( [gid] = [%adrkey%] ) On Wed, Jan 4, 2017 at 12:43 PM J?rg Thomsen (WhereGroup) < joerg.thomsen at wheregroup.com> wrote: > Hello Thomas, > > Am 04.01.2017 um 12:34 schrieb thomas bonfort: > > FILTER ( "[gid]" = "[%adrkey%]" ) > > this doesn't work, ms puts the value into quotes so PG interprets it as > a column-name. > > [Wed Jan 4 12:40:04 2017].714496 msPostGISLayerWhichShapes(): Error > (ERROR: column "2" does not exist > > LINE 1: select "beschriftung","gid","2",encode(ST_AsBinary(ST_Force2... > > But the Filteritem / Filter solution is ok. > > Viele Gr??e, > J?rg Thomsen > > -- > > ********************************************************* > FOSS Academy Winterschule 2017 > 20.-24.03.2017 in Bonn > Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! > https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule > ********************************************************* > > ------------------------------- > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 <+49%2030%20513027874> > Fax: +49 (0)30 / 89 09 53 21 <+49%2030%2089095321> > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_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 alexis.vandevoorde at meteoconsult.com Wed Jan 4 06:02:11 2017 From: alexis.vandevoorde at meteoconsult.com (newmapserver) Date: Wed, 4 Jan 2017 07:02:11 -0700 (MST) Subject: [mapserver-users] Mapserver data point on map Message-ID: <1483538531025-5301975.post@n6.nabble.com> Hello and happy new year ! Currently, I place points (lat / lon) on a map using a mysql query. At each point is associated an image according to the type of places considered. Today, I would like to retrieve my information either thanks to Mysql but thanks to an API. I use the function "addPoints" to adding features to a layer : *A part of script : * $point = ms_newPointObj(); $line = ms_newLineObj(); $shape = ms_newShapeObj(MS_SHAPE_POINT); $point->setXY( $lieu->longitude_metre, $lieu->latitude_metre); $line->add($point); $shape->add($line); $shape->set("text","ici"); $class = ms_newClassObj($layerprevision); $class->setExpression("rot"); $style = ms_newStyleObj($class); $style->color->setRGB(255, 0, 0); $layerprevision->addFeature($shape); I'm trying to set a simple "text" on each point but...nothing is displayed. Do you have an idea to solve this problem? Thank you in advance ! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-data-point-on-map-tp5301975.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Wed Jan 4 06:53:38 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 4 Jan 2017 09:53:38 -0500 Subject: [mapserver-users] variable substitution In-Reply-To: References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> Message-ID: Or use: FILTER ( "[gid]" = '[%adrkey%]' ) " for the column name ' for the value -Steve W On 1/4/2017 6:47 AM, thomas bonfort wrote: > yeah, if you want an integer comparison use: > FILTER ( [gid] = [%adrkey%] ) > > > On Wed, Jan 4, 2017 at 12:43 PM J?rg Thomsen (WhereGroup) > > wrote: > > Hello Thomas, > > Am 04.01.2017 um 12:34 schrieb thomas bonfort: > > FILTER ( "[gid]" = "[%adrkey%]" ) > > this doesn't work, ms puts the value into quotes so PG interprets it as > a column-name. > > [Wed Jan 4 12:40:04 2017].714496 msPostGISLayerWhichShapes(): > Error (ERROR: column "2" does not exist > > LINE 1: select > "beschriftung","gid","2",encode(ST_AsBinary(ST_Force2... > > But the Filteritem / Filter solution is ok. > > Viele Gr??e, > J?rg Thomsen > > -- > > ********************************************************* > FOSS Academy Winterschule 2017 > 20.-24.03.2017 in Bonn > Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! > https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule > ********************************************************* > > ------------------------------- > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 89 09 53 21 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From Steve.Lime at state.mn.us Wed Jan 4 07:01:28 2017 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 4 Jan 2017 15:01:28 +0000 Subject: [mapserver-users] variable substitution In-Reply-To: References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> , Message-ID: Actually you don't want the []'s around the substitution as they denote a column reference. '%adrkey%' or %adrkey% should suffice depending on the type of comparison being done. --Steve ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen Woodbridge [woodbri at swoodbridge.com] Sent: Wednesday, January 04, 2017 8:53 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] variable substitution Or use: FILTER ( "[gid]" = '[%adrkey%]' ) " for the column name ' for the value -Steve W On 1/4/2017 6:47 AM, thomas bonfort wrote: > yeah, if you want an integer comparison use: > FILTER ( [gid] = [%adrkey%] ) > > > On Wed, Jan 4, 2017 at 12:43 PM J?rg Thomsen (WhereGroup) > > wrote: > > Hello Thomas, > > Am 04.01.2017 um 12:34 schrieb thomas bonfort: > > FILTER ( "[gid]" = "[%adrkey%]" ) > > this doesn't work, ms puts the value into quotes so PG interprets it as > a column-name. > > [Wed Jan 4 12:40:04 2017].714496 msPostGISLayerWhichShapes(): > Error (ERROR: column "2" does not exist > > LINE 1: select > "beschriftung","gid","2",encode(ST_AsBinary(ST_Force2... > > But the Filteritem / Filter solution is ok. > > Viele Gr??e, > J?rg Thomsen > > -- > > ********************************************************* > FOSS Academy Winterschule 2017 > 20.-24.03.2017 in Bonn > Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! > https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule > ********************************************************* > > ------------------------------- > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 89 09 53 21 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.ellett at statkart.no Wed Jan 4 08:25:12 2017 From: thomas.ellett at statkart.no (tellett) Date: Wed, 4 Jan 2017 09:25:12 -0700 (MST) Subject: [mapserver-users] Mapcache - Composite cache problem In-Reply-To: References: <1482313882723-5300828.post@n6.nabble.com> <1482315054560-5300833.post@n6.nabble.com> <1482320291175-5300857.post@n6.nabble.com> <1482321931078-5300864.post@n6.nabble.com> Message-ID: <1483547112871-5302008.post@n6.nabble.com> Hi again and happy new year! I've tried what you suggested and managed to get the composite layer to work with this setup: /cache/mapcache/topo2 /cache/mapcache/topo2matrikkelsource topo2 topo2matrikkelsource But I was a little bit confused about what you meant with that we could 'shoot ourselves in the foot' if we omit template tags? And also why we can't reference that cache (I presume you mean 'topo2matrikkel') from other tilesets? Cheers Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ian.walberg at airborne.aero Wed Jan 4 10:36:08 2017 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 4 Jan 2017 18:36:08 +0000 Subject: [mapserver-users] Mapserver - libs in /usr/local/lib disappear after reboot Message-ID: <804ccbb75c6640cf9231213ef08a7cbc@airborne.aero> Folks, We build and install from source any of the recent versions using cmake. Then we copy the mapserv binary from /usr/local/bin to /var/www/cgi-bin to use with our apache install. All is good unless we reboot and the libs in /usr/local/lib are removed, this is a Fedora 19 server. Anyone know why this happens? What have we done wrong? Thanks Ian From jmckenna at gatewaygeomatics.com Wed Jan 4 11:32:17 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 4 Jan 2017 15:32:17 -0400 Subject: [mapserver-users] Mapserver - libs in /usr/local/lib disappear after reboot In-Reply-To: <804ccbb75c6640cf9231213ef08a7cbc@airborne.aero> References: <804ccbb75c6640cf9231213ef08a7cbc@airborne.aero> Message-ID: I haven't seen the libs-physically-disappear case, but I often reboot client servers and the libs 'cannot be found' (meaning executing mapserv doesn't search for the libs in the proper directory of /usr/local/lib/). In this case the solution is to set the LD_LIBRARY_PATH to that directory for your profile (this step changes for different linux flavors) and then re-run 'sudo ldconfig'. As a side note, for good karma please refrain from sending your questions to multiple mailing lists at the same time. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-01-04 2:36 PM, Ian Walberg wrote: > Folks, > > We build and install from source any of the recent versions using cmake. > > Then we copy the mapserv binary from /usr/local/bin to /var/www/cgi-bin to use with our apache install. > > All is good unless we reboot and the libs in /usr/local/lib are removed, this is a Fedora 19 server. > > Anyone know why this happens? What have we done wrong? > > Thanks > > Ian > From ian.walberg at airborne.aero Wed Jan 4 13:31:46 2017 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 4 Jan 2017 21:31:46 +0000 Subject: [mapserver-users] Mapserver - libs in /usr/local/lib disappear after reboot In-Reply-To: References: <804ccbb75c6640cf9231213ef08a7cbc@airborne.aero> Message-ID: Jeff, Thanks for the info and you were correct, they had not disappeared. Karma - oops, my apologies. Regards Ian -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, January 4, 2017 11:32 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver - libs in /usr/local/lib disappear after reboot I haven't seen the libs-physically-disappear case, but I often reboot client servers and the libs 'cannot be found' (meaning executing mapserv doesn't search for the libs in the proper directory of /usr/local/lib/). In this case the solution is to set the LD_LIBRARY_PATH to that directory for your profile (this step changes for different linux flavors) and then re-run 'sudo ldconfig'. As a side note, for good karma please refrain from sending your questions to multiple mailing lists at the same time. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-01-04 2:36 PM, Ian Walberg wrote: > Folks, > > We build and install from source any of the recent versions using cmake. > > Then we copy the mapserv binary from /usr/local/bin to /var/www/cgi-bin to use with our apache install. > > All is good unless we reboot and the libs in /usr/local/lib are removed, this is a Fedora 19 server. > > Anyone know why this happens? What have we done wrong? > > Thanks > > Ian > _______________________________________________ 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 Jan 4 17:24:19 2017 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Jan 2017 01:24:19 +0000 Subject: [mapserver-users] variable substitution In-Reply-To: References: <3b63c5ab-45ec-96c9-dae4-3f026dc4010b@wheregroup.com> <49c7c473-b76d-3456-fd22-e5d7b4dd391d@wheregroup.com> , , Message-ID: I should also add that you should add anchors (^$) to your validation expression. Just using "[0-9]" will match "111" but also "111; do something nasty in SQL". So "^[0-9]*$" is much better. Steve ________________________________________ From: Lime, Steve D (MNIT) Sent: Wednesday, January 04, 2017 9:01 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] variable substitution Actually you don't want the []'s around the substitution as they denote a column reference. '%adrkey%' or %adrkey% should suffice depending on the type of comparison being done. --Steve ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen Woodbridge [woodbri at swoodbridge.com] Sent: Wednesday, January 04, 2017 8:53 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] variable substitution Or use: FILTER ( "[gid]" = '[%adrkey%]' ) " for the column name ' for the value -Steve W On 1/4/2017 6:47 AM, thomas bonfort wrote: > yeah, if you want an integer comparison use: > FILTER ( [gid] = [%adrkey%] ) > > > On Wed, Jan 4, 2017 at 12:43 PM J?rg Thomsen (WhereGroup) > > wrote: > > Hello Thomas, > > Am 04.01.2017 um 12:34 schrieb thomas bonfort: > > FILTER ( "[gid]" = "[%adrkey%]" ) > > this doesn't work, ms puts the value into quotes so PG interprets it as > a column-name. > > [Wed Jan 4 12:40:04 2017].714496 msPostGISLayerWhichShapes(): > Error (ERROR: column "2" does not exist > > LINE 1: select > "beschriftung","gid","2",encode(ST_AsBinary(ST_Force2... > > But the Filteritem / Filter solution is ok. > > Viele Gr??e, > J?rg Thomsen > > -- > > ********************************************************* > FOSS Academy Winterschule 2017 > 20.-24.03.2017 in Bonn > Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen! > https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule > ********************************************************* > > ------------------------------- > J?rg Thomsen > WhereGroup GmbH & Co. KG > Gillweg 3 > 14193 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 89 09 53 21 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Jan 5 01:35:56 2017 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 05 Jan 2017 09:35:56 +0000 Subject: [mapserver-users] Mapcache - Composite cache problem In-Reply-To: <1483547112871-5302008.post@n6.nabble.com> References: <1482313882723-5300828.post@n6.nabble.com> <1482315054560-5300833.post@n6.nabble.com> <1482320291175-5300857.post@n6.nabble.com> <1482321931078-5300864.post@n6.nabble.com> <1483547112871-5302008.post@n6.nabble.com> Message-ID: Hi Tom, happy new year to you to! On Wed, Jan 4, 2017 at 5:25 PM tellett wrote: > Hi again and happy new year! I've tried what you suggested and managed to > get > the composite layer to work with this setup: > > > /cache/mapcache/topo2 > > > > > /cache/mapcache/topo2matrikkelsource > > > > > > > topo2 > topo2matrikkelsource > > > But I was a little bit confused about what you meant with that we could > 'shoot ourselves in the foot' if we omit template tags? And also why we > can't reference that cache (I presume you mean 'topo2matrikkel') from other > tilesets? >