From jmckenna at gatewaygeomatics.com Mon Apr 1 05:19:25 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 1 Apr 2019 09:19:25 -0300 Subject: [mapserver-users] Get mvt ouput In-Reply-To: <1554099762591-0.post@n6.nabble.com> References: <1554099762591-0.post@n6.nabble.com> Message-ID: You can get MVT output through a CGI mode=tile call, such as: http://127.0.0.1/cgi-bin/mapserv.exe? MAP=/ms4w/apps/mvt-demo/demo.map& mode=tile& tilemode=gmap& tile=986+1445+12& layers=all& map.imagetype=mvt This leverages a specific outputformat set in your mapfile, as: OUTPUTFORMAT NAME "mvt" DRIVER MVT FORMATOPTION "EDGE_BUFFER=20" END You can view that demo in action at: https://ms4w.me/mvt-demo/index.html The source of that demo is thanks to Steve Lime (download it at https://github.com/sdlime/mvt-demo or it is also included now in all MS4W installations https://ms4w.com) Hope that info helps a little, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-01 3:22 AM, BrainDrain wrote: > Hello! > Is it possible to get map output (postis layers, custom projection) using > vector type output format somehow? > Cgi app (as wms service or mode=map) doesn't allow it as well as mapscript > (c# bindings). > Thank you very much! > > From jeremy.jk at yandex.com Mon Apr 1 07:51:42 2019 From: jeremy.jk at yandex.com (Jeremy JK) Date: Mon, 01 Apr 2019 10:51:42 -0400 Subject: [mapserver-users] ScribeUI alternative Message-ID: <27148121554130302@sas2-7b909973f402.qloud-c.yandex.net> An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Apr 1 08:03:12 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 1 Apr 2019 12:03:12 -0300 Subject: [mapserver-users] ScribeUI alternative In-Reply-To: <27148121554130302@sas2-7b909973f402.qloud-c.yandex.net> References: <27148121554130302@sas2-7b909973f402.qloud-c.yandex.net> Message-ID: For the record, the various options are listed at: https://github.com/mapserver/mapserver/wiki/MapFile-editors (edits are welcomed from all) It doesn't contain opinions though, as you requested, but the list may help others, or someone might notice one missing now & add it. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-01 11:51 AM, Jeremy JK wrote: > Hello, > I am Jeremy from Trinidad and Tobago, West Indies Caribbean > Do any of you guys use ScribeUI? I spent the entire weekend trying to > install the program on Ubuntu but I couldn't get it to work. > Do you guys use any alternatives like MapManager or crowmap? > Which one is the best? > Thanks! > > _ From andy at squeakycode.net Mon Apr 1 11:26:01 2019 From: andy at squeakycode.net (Andy Colson) Date: Mon, 1 Apr 2019 13:26:01 -0500 Subject: [mapserver-users] MapServer -7-4-0-beta1 Release In-Reply-To: References: <9aae9074-e685-4c0b-b759-bb25067f6c50@www.fastmail.com> Message-ID: <07d49490-6444-9aea-a648-539eed5230c8@squeakycode.net> > On Sat, Mar 30, 2019, at 4:07 PM, Andy Colson wrote: >> On 3/30/19 7:23 AM, Seth G wrote: >>> Hi all, >>> >>> The MapServer team is happy to announce the release of the first beta for MapServer 7.4.0. >>> Download links are at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 >>> >>> >>> If there are users of the Perl, Ruby, Java, and TCL bindings who would like to get involved in supporting and maintaining these bindings please get in touch! >>> >>> A working build process and example scripts in each language would help bring the level of support for each langauge inline with the others. >>> >>> >>> Best regards, >>> >>> The MapServer PSC and Developers >> >> I host lots of maps using perl mapscript. I'm happy to contribute with >> whatever you need. >> >> -Andy >> >> On 3/31/2019 3:45 PM, Seth G wrote:> Hi Andy, > > Thanks for the offer! > I have opened a new issue up at https://github.com/mapserver/mapserver/issues/5777 > This hopefully details the steps required to build Perl MapScript on every change to the MapServer codebase. > There are also the Perl examples at https://github.com/mapserver/mapserver/tree/branch-7-4/mapscript/perl/examples that it would be helpful to review and check that they are still working before running on each build. > Feel free to ask any questions, > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > The examples seem more like a teaching tool, not a testing tool, yes? RFC24.pl seems like a good test script, but I'd rather use standard perl TAP test framework. Ok if I use Test::More? It comes standard with perl. Then you test with "prove" (also standard) Should test scripts go in mapserver/mapscript/perl, or mapserver/msautotest/perl? -Andy From lars.schylberg at blixtmail.se Mon Apr 1 11:46:37 2019 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Mon, 1 Apr 2019 20:46:37 +0200 Subject: [mapserver-users] ScribeUI alternative In-Reply-To: <27148121554130302@sas2-7b909973f402.qloud-c.yandex.net> References: <27148121554130302@sas2-7b909973f402.qloud-c.yandex.net> Message-ID: Hi, I use scribeui quite often.? I managed to install on a debian machine.?? I might have some notes at work. I will look for those notes tomorrow. Lately, I have however just started it from a docker container. https://github.com/christianbeland/scribeui-docker Besides the suggested command, I also mount a volume with the data, eg: -v /data:/data Then I usually have all data on the local machine. SHAPEPATH points to somewhere on /data Remember to export your scribeui project now and then, if something happens with the container. I always export projects without data and can then import projects easily. Good luck!? /Lars Schylberg Den 2019-04-01 kl. 16:51, skrev Jeremy JK: > Hello, > I am Jeremy from Trinidad and Tobago, West Indies Caribbean > Do any of you guys use ScribeUI? I spent the entire weekend trying to > install the program on Ubuntu but I couldn't get it to work. > Do you guys use any alternatives like MapManager or crowmap? > Which one is the best? > Thanks! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Mon Apr 1 13:47:06 2019 From: sethg at geographika.co.uk (Seth G) Date: Mon, 01 Apr 2019 16:47:06 -0400 Subject: [mapserver-users] MapServer -7-4-0-beta1 Release In-Reply-To: <07d49490-6444-9aea-a648-539eed5230c8@squeakycode.net> References: <9aae9074-e685-4c0b-b759-bb25067f6c50@www.fastmail.com> <07d49490-6444-9aea-a648-539eed5230c8@squeakycode.net> Message-ID: <340d2e72-18db-42b8-a4f6-0256c4d6311e@www.fastmail.com> Yes the examples folder contains sample Perl MapScripts to give an idea of what can be done. The benefit of running them as part of CI is to make sure they are still valid (as a successful script should return a 0). If you are able to add a test suite as well even better! I don't see any issue using a 3rd party testing library - I presume it can be easily installed as part of the Perl CMakeLists.txt or Travis? I'm using a non-standard library - pytest for the Python test suite and storing them in https://github.com/mapserver/mapserver/tree/branch-7-4/mapscript/python/tests It makes sense to follow the same strucutre and add any tests in mapscript/perl/tests. I'm planning on moving the msautotest/mspython tests to mapscript/python/tests in a future release. Seth -- web:http://geographika.co.uk twitter: @geographika On Mon, Apr 1, 2019, at 8:26 PM, Andy Colson wrote: > > On Sat, Mar 30, 2019, at 4:07 PM, Andy Colson wrote: > >> On 3/30/19 7:23 AM, Seth G wrote: > >>> Hi all, > >>> > >>> The MapServer team is happy to announce the release of the first beta for MapServer 7.4.0. > >>> Download links are at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > >>> > >>> > >>> If there are users of the Perl, Ruby, Java, and TCL bindings who would like to get involved in supporting and maintaining these bindings please get in touch! > >>> > >>> A working build process and example scripts in each language would help bring the level of support for each langauge inline with the others. > >>> > >>> > >>> Best regards, > >>> > >>> The MapServer PSC and Developers > >> > >> I host lots of maps using perl mapscript. I'm happy to contribute with > >> whatever you need. > >> > >> -Andy > >> > >> > > On 3/31/2019 3:45 PM, Seth G wrote:> Hi Andy, > > > > Thanks for the offer! > > I have opened a new issue up at > https://github.com/mapserver/mapserver/issues/5777 > > This hopefully details the steps required to build Perl MapScript on > every change to the MapServer codebase. > > There are also the Perl examples at > https://github.com/mapserver/mapserver/tree/branch-7-4/mapscript/perl/examples > that it would be helpful to review and check that they are still working > before running on each build. > > Feel free to ask any questions, > > > > Seth > > > > -- > > web:http://geographika.co.uk > > twitter: @geographika > > > > > The examples seem more like a teaching tool, not a testing tool, yes? > RFC24.pl seems like a good test script, but I'd rather use standard perl > TAP test framework. Ok if I use Test::More? It comes standard with > perl. Then you test with "prove" (also standard) > > Should test scripts go in mapserver/mapscript/perl, or > mapserver/msautotest/perl? > > -Andy > From richard.greenwood at gmail.com Tue Apr 2 07:03:13 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 2 Apr 2019 08:03:13 -0600 Subject: [mapserver-users] MapServer 7.4 beta PHPNG Message-ID: On Ubuntu 18.04 I get the following: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: PHP_FOUND_INCLUDE_PATH (ADVANCED) I have both php 5.6 and 7.2 installed. In the past I've exported: C_INCLUDE_PATH=/usr/include/php/20170718/main:/usr/include/php/20170718/Zend:/usr/include/php/20170718/TSRM:/usr/include/php/20170718 Any hints? -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prideofelites at gmail.com Tue Apr 2 07:23:02 2019 From: prideofelites at gmail.com (Ritesh Saini) Date: Tue, 2 Apr 2019 19:53:02 +0530 Subject: [mapserver-users] Get mvt ouput Message-ID: <141F5BE4-0566-4B55-AE83-DB2F7F8092FD@gmail.com> Helped a lot! Thanks :) https://www.digitalkube.com/cloudways-coupon/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Tue Apr 2 08:50:47 2019 From: sethg at geographika.co.uk (Seth G) Date: Tue, 02 Apr 2019 11:50:47 -0400 Subject: [mapserver-users] MapServer 7.4 beta PHPNG In-Reply-To: References: Message-ID: Hi Richard, There was a pull request against the beta release that could well be related: https://github.com/mapserver/mapserver/pull/5776 Could you try adding the change to see if it works? Seth -- web:http://geographika.co.uk twitter: @geographika On Tue, Apr 2, 2019, at 4:03 PM, Richard Greenwood wrote: > On Ubuntu 18.04 I get the following: > >> CMake Error: The following variables are used in this project, but they are set to NOTFOUND. >> Please set them or make sure they are set and tested correctly in the CMake files: >> PHP_FOUND_INCLUDE_PATH (ADVANCED) > > I have both php 5.6 and 7.2 installed. In the past I've exported: > >> C_INCLUDE_PATH=/usr/include/php/20170718/main:/usr/include/php/20170718/Zend:/usr/include/php/20170718/TSRM:/usr/include/php/20170718 > > Any hints? > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Apr 2 18:18:26 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 2 Apr 2019 19:18:26 -0600 Subject: [mapserver-users] MapServer 7.4 beta PHPNG In-Reply-To: References: Message-ID: Nice - that fixed it, thanks! Now got an unrelated error, will follow up in separate email if I don't figure it out myself. Best regards, Rich On Tue, Apr 2, 2019 at 9:50 AM Seth G wrote: > Hi Richard, > > There was a pull request against the beta release that could well be > related: https://github.com/mapserver/mapserver/pull/5776 > Could you try adding the change to see if it works? > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Tue, Apr 2, 2019, at 4:03 PM, Richard Greenwood wrote: > > On Ubuntu 18.04 I get the following: > > CMake Error: The following variables are used in this project, but they > are set to NOTFOUND. > Please set them or make sure they are set and tested correctly in the > CMake files: > PHP_FOUND_INCLUDE_PATH (ADVANCED) > > > I have both php 5.6 and 7.2 installed. In the past I've exported: > > > C_INCLUDE_PATH=/usr/include/php/20170718/main:/usr/include/php/20170718/Zend:/usr/include/php/20170718/TSRM:/usr/include/php/20170718 > > > Any hints? > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Apr 2 19:11:38 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 2 Apr 2019 20:11:38 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error Message-ID: I get the following error: Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory cc: fatal error: no input files If i'm reading the error message correctly it's not finding "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the file at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 as well as git cloning. I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious. Rich -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Wed Apr 3 09:39:50 2019 From: sethg at geographika.co.uk (Seth G) Date: Wed, 03 Apr 2019 12:39:50 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: Message-ID: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> Hi Richard, If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again. Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to get this set up on Travis and can do so with the following command: sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz tar xf swig-3.0.12.tar.gz cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install swig -version I've run into further errors but mapscriptPHP7_wrap.c is created at least. Seth -- web:http://geographika.co.uk twitter: @geographika On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > I get the following error: > > Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory > cc: fatal error: no input files > > If i'm reading the error message correctly it's not finding "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the file at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > as well as git cloning. > > I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious. > > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Apr 3 15:06:14 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 3 Apr 2019 16:06:14 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> Message-ID: On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: > Hi Richard, > > If you had previous errors it may be best to delete the whole > /rwg/src/mapserver/build/ and start the build from scratch again. > I did do that. Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to > get this set up on Travis and can do so with the following command: > > sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > tar xf swig-3.0.12.tar.gz > cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install > swig -version > Not sure I'm following you. Do I need to have swig installed? I don't. > I've run into further errors but mapscriptPHP7_wrap.c is created at least. > Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be in the source files that I download or git clone, or is it created in the build process? > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > > I get the following error: > > Building C object > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > No such file or directory > cc: fatal error: no input files > > If i'm reading the error message correctly it's not finding > "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the > file at > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > as well as git cloning. > > I'm not well versed with this stuff so apologizes in advanced if I'm > missing the obvious. > > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Wed Apr 3 15:34:09 2019 From: sethg at geographika.co.uk (Seth G) Date: Wed, 03 Apr 2019 18:34:09 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> Message-ID: <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> There are now 2 PHP MapScripts. See https://mapserver.org/development/rfc/ms-rfc-117.html for details. The "native" one has been updated to work with PHP7 in the MapServer 7.4 release, and also a new SWIG based PHP MapScript is now available. The first does not require SWIG, the latter does. These can be build by setting the following 2 flags: WITH_PHP "Enable PHP mapscript support" OFF WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF -- web:http://geographika.co.uk twitter: @geographika On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > > > On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: >> __ >> Hi Richard, >> >> If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again. > > I did do that. > >> >> Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to get this set up on Travis and can do so with the following command: >> >> sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz >> tar xf swig-3.0.12.tar.gz >> cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install >> swig -version > > Not sure I'm following you. Do I need to have swig installed? I don't. > >> >> I've run into further errors but mapscriptPHP7_wrap.c is created at least. > > Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be in the source files that I download or git clone, or is it created in the build process? > >> >> >> Seth >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: >>> I get the following error: >>> >>> Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o >>> cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory >>> cc: fatal error: no input files >>> >>> If i'm reading the error message correctly it's not finding "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the file at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 >>> as well as git cloning. >>> >>> I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious. >>> >>> Rich >>> >>> -- >>> Richard W. Greenwood, PLS >>> www.greenwoodmap.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Apr 3 19:41:38 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 3 Apr 2019 20:41:38 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> Message-ID: Seth, I understand that there are two php versions and the native one builds fine for me. But the swig one (phpng) does not. I installed swig 3.0.12. My build fails with error: /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory I can't find the file mapscriptPHP7_wrap.c Thanks, Rich On Wed, Apr 3, 2019 at 4:34 PM Seth G wrote: > There are now 2 PHP MapScripts. See > https://mapserver.org/development/rfc/ms-rfc-117.html for details. > The "native" one has been updated to work with PHP7 in the MapServer 7.4 > release, and also a new SWIG based PHP MapScript is now available. The > first does not require SWIG, the latter does. > > These can be build by setting the following 2 flags: > > WITH_PHP "Enable PHP mapscript support" OFF > WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF > > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > > > > On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: > > > Hi Richard, > > If you had previous errors it may be best to delete the whole > /rwg/src/mapserver/build/ and start the build from scratch again. > > > I did do that. > > > Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to > get this set up on Travis and can do so with the following command: > > sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > tar xf swig-3.0.12.tar.gz > cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install > swig -version > > > Not sure I'm following you. Do I need to have swig installed? I don't. > > > > I've run into further errors but mapscriptPHP7_wrap.c is created at least. > > > Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be > in the source files that I download or git clone, or is it created in the > build process? > > > > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > > I get the following error: > > Building C object > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > No such file or directory > cc: fatal error: no input files > > If i'm reading the error message correctly it's not finding > "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the > file at > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > as well as git cloning. > > I'm not well versed with this stuff so apologizes in advanced if I'm > missing the obvious. > > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dr.J.Feinen at Kreis-Offenbach.de Wed Apr 3 22:43:09 2019 From: Dr.J.Feinen at Kreis-Offenbach.de (=?iso-8859-1?Q?Feinen=2C_J=F6rg?=) Date: Thu, 4 Apr 2019 05:43:09 +0000 Subject: [mapserver-users] Accessing WFS- Service: unexpected output (junk?) Message-ID: <7E3161A7139B2443A39AFE4CFA2A331451589024@EXMBX01.Kreis-OF.local> Hi all, i?m quite a noob to WFS and now trying to access a wfs-service (see Mapfile). In QGIS it works well, so service seems ok. As you can see in this mapfile, we tried a lot - but it didnt succeed. Any help ? j?rg (i searched the archive for this error - nothing found) -------------error MapServer Message msDrawMap(): Image handling error. Failed to draw layer named 'BIOTOPE'. msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer BIOTOPE. -----------mapfile UNITS Meters CONFIG 'PROJ_LIB' '/proj/nad/' SYMBOLSET '/nkat/symbols/symbols.sym' FONTSET '/nkat/fonts/fonts.txt' CONFIG 'MS_ERRORFILE' '/websys/ms_error.txt' CONFIG 'CURL_CA_BUNDLE' '/ca-bundle.crt' DEBUG OFF IMAGETYPE png IMAGECOLOR 255 255 255 WEB IMAGEPATH "d:/cache/wfs/" IMAGEURL "d:/cache/wfs/" TEMPPATH "d:/cache/wfs/" END OUTPUTFORMAT NAME 'png' DRIVER AGG/PNG MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' FORMATOPTION 'GAMMA=0.75' TRANSPARENT on END LAYER NAME BIOTOPE TYPE POLYGON STATUS default #CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?" CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?" CONNECTIONTYPE WFS METADATA #"wfs_typename" 'inspire_bewirtschaftungsgebiete:TWS_HQS_TK25' "wfs_typename" "inspire_lebensraeume_biotope:BIOTOPE" "wfs_request_method" "POST" "wfs_service" "WFS" "wfs_version" "1.0.0" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "10" #"wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?" "wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?" "wfs_enable_request" "*" "wfs_title" "TARPO Local Priority Projects" ## REQUIRED "wfs_srs" "EPSG:25832" ## END PROJECTION "init=epsg:25832" END CLASS # NAME "inspire_bewirtschaftungsgebiete:TWS_HQS_TK25" NAME "BIOTOPE" STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END # Layer ----------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Wed Apr 3 23:33:14 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 4 Apr 2019 06:33:14 +0000 Subject: [mapserver-users] Accessing WFS- Service: unexpected output (junk?) Message-ID: <362ee96205824dceb56127347d5da742@C119S212VM042.msvyvi.vaha.local> Hi, I could make some progress by using "wfs_request_method" "GET". Now the error was "WFS server error. Unable to get extents for this layer." Then I set "wfs_extent" "-9999999 -9999999 9999999 9999999" but now I get "Search returned no results. No matching record(s) found." Hope that this helps you to forward. -Jukka Rahkonen- L?hett?j?: mapserver-users Puolesta Feinen, J?rg L?hetetty: torstai 4. huhtikuuta 2019 8.43 Vastaanottaja: 'mapserver-users at lists.osgeo.org' Aihe: [mapserver-users] Accessing WFS- Service: unexpected output (junk?) Hi all, i?m quite a noob to WFS and now trying to access a wfs-service (see Mapfile). In QGIS it works well, so service seems ok. As you can see in this mapfile, we tried a lot - but it didnt succeed. Any help ? j?rg (i searched the archive for this error - nothing found) -------------error MapServer Message msDrawMap(): Image handling error. Failed to draw layer named 'BIOTOPE'. msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer BIOTOPE. -----------mapfile UNITS Meters CONFIG 'PROJ_LIB' '/proj/nad/' SYMBOLSET '/nkat/symbols/symbols.sym' FONTSET '/nkat/fonts/fonts.txt' CONFIG 'MS_ERRORFILE' '/websys/ms_error.txt' CONFIG 'CURL_CA_BUNDLE' '/ca-bundle.crt' DEBUG OFF IMAGETYPE png IMAGECOLOR 255 255 255 WEB IMAGEPATH "d:/cache/wfs/" IMAGEURL "d:/cache/wfs/" TEMPPATH "d:/cache/wfs/" END OUTPUTFORMAT NAME 'png' DRIVER AGG/PNG MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' FORMATOPTION 'GAMMA=0.75' TRANSPARENT on END LAYER NAME BIOTOPE TYPE POLYGON STATUS default #CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?" CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?" CONNECTIONTYPE WFS METADATA #"wfs_typename" 'inspire_bewirtschaftungsgebiete:TWS_HQS_TK25' "wfs_typename" "inspire_lebensraeume_biotope:BIOTOPE" "wfs_request_method" "POST" "wfs_service" "WFS" "wfs_version" "1.0.0" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "10" #"wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?" "wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?" "wfs_enable_request" "*" "wfs_title" "TARPO Local Priority Projects" ## REQUIRED "wfs_srs" "EPSG:25832" ## END PROJECTION "init=epsg:25832" END CLASS # NAME "inspire_bewirtschaftungsgebiete:TWS_HQS_TK25" NAME "BIOTOPE" STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END # Layer ----------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.fricke at skendata.de Thu Apr 4 02:23:47 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Thu, 4 Apr 2019 11:23:47 +0200 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 Message-ID: An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Apr 4 02:19:51 2019 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 04 Apr 2019 11:19:51 +0200 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 Message-ID: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> Dear all,? I try to install mapserver on ubuntu 18.04 (I have also a qgis server installed but I suppose it is not a problem, I already done the installation in old server) when I type mapserv -v on terminal it's OK MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 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 try to use the cgi service I have some problem: http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities No error on apache log and a file not readable as output [1] Thanks in advanced for your support R [1] -?https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Thu Apr 4 03:12:11 2019 From: lars.schylberg at blixtmail.se (lars.schylberg at blixtmail.se) Date: Thu, 04 Apr 2019 10:12:11 +0000 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: References: Message-ID: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> Have You tried: CONFIG "CPL_DEBUG" "ON" /Lars Schylberg April 4, 2019 11:23 AM, "Lars Fricke" )> wrote: Hello, First of all: thank you for your time! I have been running into a strange problem lately. We have a server running mapserver 6.4.1 (Debian GNU/Linux 8.0 jessie) that is accessing a remote WFS as client without any problems. We have another (local development) server that has been upgraded to mapserver 7.2.2 (Ubuntu 18.04 bionic) and that can no longer access the WFS. Everything was fine with the older versions on that server, too (not certain if the mapserver upgrade happened at the same time as the Ubuntu upgrade). The error received is: msOGRFileOpen(): OGR error. GetLayer(LAYER_NAME) failed for OGR connection. Check logs. The logs are not giving me any further information. Even I put debug level to 5 already. Also apache log is not giving me any clue, there is no error. Other layers on the same server open fine, as long a they do not need OGR. So I assume it is not a connection issue. ogrinfo however can access the external WFS fine from the terminal. Configuration: Mapserver 7.2.2 gdal-bin 2.4.0+dfsg-1~bionic0 (from UbuntuGIS - unstable repo) Ubuntu 18.04 bionic I also have NextGIS repository activated but it does not seem that gdal/ogr is installed from there. mapserv -v shows: MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 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 SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I have also checkt $Path: /home/lars/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin I am not certain, if that is correct but ogr seems to be in /usr/bin so I'd expect it's available for mapserver, too. gdalinfo --formats does not show WFS, if that is the problem, where do I get gdal with WFS enabled? The mapfile is the same on both servers (relevant code only): LAYER NAME "TEST" TYPE Point UNITS METERS CONNECTION "http://XXX&VERSION=1.1.0&SERVICE=WFS" (http://XXX&VERSION=1.1.0&SERVICE=WFS) CONNECTIONTYPE OGR STATUS ON DEBUG ON DEBUG 5 DATA "LAYER_NAME" METADATA "wfs_version" "1.1.0" "wfs_title" "TEST" "wfs_connectiontimeout" "300" "wfs_typename" "Test_int" "wfs_maxfeatures" "500" "gml_include_items" "all" #"wfs_srs" "epsg:25832" "gml_featureid" "ID" "wfs_enable_request" "*" END # METADATA PROJECTION "init=epsg:25832" END # PROJECTION CLASS NAME "Testlayer" STYLE COLOR 190 87 66 OUTLINECOLOR 255 0 0 SIZE 4 SYMBOL "circle_filled" END # STYLE END # CLASS END # LAYER I'd really appreciate any help where to look further. I have been at this for a few days already. I tried to give as much information as possible, if something important is missing, please let me know. Thanks again for your time! Best Lars SkenData GmbH -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 05:13:36 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 08:13:36 -0400 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> Message-ID: <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> Maybe it is permissions on your mapserv executable. Make sure that your Apache user has permissions to execute that file (or chmod to '777' temporarily to verify). -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > Dear all, > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > installed but I suppose it is not a problem, I already done the > installation in old server) > > > when I type mapserv -v on terminal it's OK > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > 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 try to use the cgi service I have some problem: > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > No error on apache log and a file not readable as output [1] > > Thanks in advanced for your support > > R > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > From roberto.marzocchi at gter.it Thu Apr 4 05:20:41 2019 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 04 Apr 2019 14:20:41 +0200 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> Message-ID: <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> Permission are right (755) anyway I try to change it and nothing change Perhaps a problem with fastcgi? I installed php7.2-fpm package R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:13:36 +0200 Jeff McKenna wrote ---- Maybe it is permissions on your mapserv executable. Make sure that your Apache user has permissions to execute that file (or chmod to '777' temporarily to verify). -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > Dear all, > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > installed but I suppose it is not a problem, I already done the > installation in old server) > > > when I type mapserv -v on terminal it's OK > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > 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 try to use the cgi service I have some problem: > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > No error on apache log and a file not readable as output [1] > > Thanks in advanced for your support > > R > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 05:26:54 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 08:26:54 -0400 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> Message-ID: <8d6abd3a-a30a-4054-b989-274564e523fe@gatewaygeomatics.com> Sounds like you are maybe trying to load PHP mapscript also. Disable that extension in your php.ini, restart Apache, and then retry through your browser. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 8:20 AM, Roberto Marzocchi wrote: > Permission are right (755) anyway I try to change it and nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm package > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige > spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please > consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:13:36 +0200 *Jeff McKenna > * wrote ---- > > Maybe it is permissions on your mapserv executable. Make sure that your > Apache user has permissions to execute that file (or chmod to '777' > temporarily to verify). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > > > On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > > Dear all, > > > > I try to install mapserver on ubuntu 18.04 (I have also a qgis > server > > installed but I suppose it is not a problem, I already done the > > installation in old server) > > > > > > when I type mapserv -v on terminal it's OK > > > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ > > 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 try to use the cgi service I have some problem: > > > > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > No error on apache log and a file not readable as output [1] > > > > Thanks in advanced for your support > > > > R > > > > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From richard.greenwood at gmail.com Thu Apr 4 05:29:33 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 4 Apr 2019 06:29:33 -0600 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> Message-ID: Have you enabled cgi and fcgi? sudo a2enmod cgi fcgid php is not used or necessary for WMS. On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi wrote: > Permission are right (755) anyway I try to change it and nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm package > > R > > Eng. Roberto Marzocchi, PhD > GIS Project Coordinator > Gter srl (Unige spin-off) > Piazza De Marini 3/61 - 16123 GenovaP.IVA/CF 01998770992 > ph: 010-8694830 - mob: 349-8786575 > E-mail: roberto.marzocchi at gter.it > skype: roberto.marzocchi84www.gter.it > > -- > Gter socialwww.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis > > ----------------------------------------------------------------- > Please consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:13:36 +0200 *Jeff McKenna > >* wrote > ---- > > Maybe it is permissions on your mapserv executable. Make sure that your > Apache user has permissions to execute that file (or chmod to '777' > temporarily to verify). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > > > On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > > Dear all, > > > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > > installed but I suppose it is not a problem, I already done the > > installation in old server) > > > > > > when I type mapserv -v on terminal it's OK > > > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > > 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 try to use the cgi service I have some problem: > > > > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > No error on apache log and a file not readable as output [1] > > > > Thanks in advanced for your support > > > > R > > > > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Apr 4 05:33:53 2019 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 04 Apr 2019 14:33:53 +0200 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> Message-ID: <169e8575d29.d83e994078169.5306441086012304089@gter.it> sorry I enable fastcgi but not cgi R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:29:33 +0200 Richard Greenwood wrote ---- Have you enabled cgi and fcgi? ? ?sudo a2enmod cgi fcgid php is not used or necessary for WMS. On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi wrote: -- Richard W. Greenwood, PLS http://www.greenwoodmap.com Permission are right (755) anyway I try to change it and nothing change Perhaps a problem with fastcgi? I installed php7.2-fpm package R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:13:36 +0200 Jeff McKenna wrote ---- Maybe it is permissions on your mapserv executable. Make sure that your Apache user has permissions to execute that file (or chmod to '777' temporarily to verify). -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > Dear all, > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > installed but I suppose it is not a problem, I already done the > installation in old server) > > > when I type mapserv -v on terminal it's OK > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > 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 try to use the cgi service I have some problem: > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > No error on apache log and a file not readable as output [1] > > Thanks in advanced for your support > > R > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Thu Apr 4 05:44:09 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 4 Apr 2019 06:44:09 -0600 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <169e8575d29.d83e994078169.5306441086012304089@gter.it> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> <169e8575d29.d83e994078169.5306441086012304089@gter.it> Message-ID: To run it as fcgi it needs the .fcgi file extension. You can just symlink: sudo ln -s /usr/lib/cgi-bin/mapserv /usr/lib/cgi-bin/mapserv.fcgi and then your request needs to be: http://localhost/cgi-bin/mapserv*.fcgi* ?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities On Thu, Apr 4, 2019 at 6:34 AM Roberto Marzocchi wrote: > sorry I enable fastcgi but not cgi > > R > > Eng. Roberto Marzocchi, PhD > GIS Project Coordinator > Gter srl (Unige spin-off) > Piazza De Marini 3/61 - 16123 GenovaP.IVA/CF 01998770992 > ph: 010-8694830 - mob: 349-8786575 > E-mail: roberto.marzocchi at gter.it > skype: roberto.marzocchi84www.gter.it > > -- > Gter socialwww.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis > > ----------------------------------------------------------------- > Please consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:29:33 +0200 *Richard Greenwood > >* wrote ---- > > Have you enabled cgi and fcgi? > sudo a2enmod cgi fcgid > php is not used or necessary for WMS. > > On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi < > roberto.marzocchi at gter.it> wrote: > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > > Permission are right (755) anyway I try to change it and nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm package > > R > > Eng. Roberto Marzocchi, PhD > GIS Project Coordinator > Gter srl (Unige spin-off) > Piazza De Marini 3/61 - 16123 GenovaP.IVA/CF 01998770992 > ph: 010-8694830 - mob: 349-8786575 > E-mail: roberto.marzocchi at gter.it > skype: roberto.marzocchi84www.gter.it > > -- > Gter socialwww.twitter.com/Gteronline - www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis > > ----------------------------------------------------------------- > Please consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:13:36 +0200 *Jeff McKenna > >* wrote > ---- > > Maybe it is permissions on your mapserv executable. Make sure that your > Apache user has permissions to execute that file (or chmod to '777' > temporarily to verify). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > > > On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > > Dear all, > > > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > > installed but I suppose it is not a problem, I already done the > > installation in old server) > > > > > > when I type mapserv -v on terminal it's OK > > > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > > 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 try to use the cgi service I have some problem: > > > > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > No error on apache log and a file not readable as output [1] > > > > Thanks in advanced for your support > > > > R > > > > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Apr 4 05:50:53 2019 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 04 Apr 2019 14:50:53 +0200 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> <169e8575d29.d83e994078169.5306441086012304089@gter.it> Message-ID: <169e866ef52.b595307779003.4789806194034839085@gter.it> Thanks! Now it is all clear! Sorry for my stupid question R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:44:09 +0200 Richard Greenwood wrote ---- To run it as fcgi it needs the .fcgi file extension. You can just symlink: ? ?sudo ln -s /usr/lib/cgi-bin/mapserv?/usr/lib/cgi-bin/mapserv.fcgi and then your request needs to be: ? ?http://localhost/cgi-bin/mapserv.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities ? On Thu, Apr 4, 2019 at 6:34 AM Roberto Marzocchi wrote: -- Richard W. Greenwood, PLS http://www.greenwoodmap.com sorry I enable fastcgi but not cgi R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:29:33 +0200 Richard Greenwood wrote ---- Have you enabled cgi and fcgi? ? ?sudo a2enmod cgi fcgid php is not used or necessary for WMS. On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi wrote: -- Richard W. Greenwood, PLS http://www.greenwoodmap.com Permission are right (755) anyway I try to change it and nothing change Perhaps a problem with fastcgi? I installed php7.2-fpm package R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 14:13:36 +0200 Jeff McKenna wrote ---- Maybe it is permissions on your mapserv executable. Make sure that your Apache user has permissions to execute that file (or chmod to '777' temporarily to verify). -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > Dear all, > > I try to install mapserver on ubuntu 18.04 (I have also a qgis server > installed but I suppose it is not a problem, I already done the > installation in old server) > > > when I type mapserv -v on terminal it's OK > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > 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 try to use the cgi service I have some problem: > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > No error on apache log and a file not readable as output [1] > > Thanks in advanced for your support > > R > > > [1] - https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > > _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 06:27:02 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 09:27:02 -0400 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <169e866ef52.b595307779003.4789806194034839085@gter.it> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> <169e8575d29.d83e994078169.5306441086012304089@gter.it> <169e866ef52.b595307779003.4789806194034839085@gter.it> Message-ID: <609bc8e7-f961-efc1-111d-2340e2464563@gatewaygeomatics.com> You can document all of your Ubuntu 18.04 steps on the MapServer wiki (in the "Tricks, Tips, and Howtos" section) at https://github.com/mapserver/mapserver/wiki#tricks-tips-and-howtos so the next user doesn't hit your same walls, Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 8:50 AM, Roberto Marzocchi wrote: > Thanks! Now it is all clear! > > Sorry for my stupid question > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige > spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please > consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:44:09 +0200 *Richard Greenwood > * wrote ---- > > To run it as fcgi it needs the .fcgi file extension. You can just > symlink: > ? ?sudo ln -s /usr/lib/cgi-bin/mapserv?/usr/lib/cgi-bin/mapserv.fcgi > and then your request needs to be: > http://localhost/cgi-bin/mapserv*.fcgi*?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > On Thu, Apr 4, 2019 at 6:34 AM Roberto Marzocchi > > wrote: > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > __ > sorry I enable fastcgi but not cgi > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl > (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please > consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:29:33 +0200 *Richard Greenwood > >* wrote ---- > > Have you enabled cgi and fcgi? > ? ?sudo a2enmod cgi fcgid > php is not used or necessary for WMS. > > On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi > > wrote: > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > __ > Permission are right (755) anyway I try to change it and > nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm > package > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter > srl (Unige spin-off) Piazza De Marini 3/61 - 16123 > Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- > Please consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:13:36 +0200 *Jeff McKenna > >* wrote ---- > > Maybe it is permissions on your mapserv executable. > Make sure that your > Apache user has permissions to execute that file (or > chmod to '777' > temporarily to verify). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > > > On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > > Dear all, > > > > I try to install mapserver on ubuntu 18.04 (I > have also a qgis server > > installed but I suppose it is not a problem, I > already done the > > installation in old server) > > > > > > when I type mapserv -v on terminal it's OK > > > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG > OUTPUT=KML SUPPORTS=PROJ > > 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 try to use the cgi service I have some > problem: > > > > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > No error on apache log and a file not readable as > output [1] > > > > Thanks in advanced for your support > > > > R > > > > > > [1] - > https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > From jmckenna at gatewaygeomatics.com Thu Apr 4 06:43:05 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 09:43:05 -0400 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: References: Message-ID: To access a remote WFS service, be sure to set CONNECTIONTYPE WFS in your layer, as in the example at https://mapserver.org/ogc/wfs_client.html#example-wfs-layer I guess I am not understanding your question properly. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 5:23 AM, Lars Fricke wrote: > Hello, > > First of all: thank you for your time! > > I have been running into a strange problem lately. We have a server > running mapserver 6.4.1 (Debian GNU/Linux 8.0 jessie) that is accessing > a remote WFS as client without any problems. > We have another (local development) server that has been upgraded to > mapserver 7.2.2 (Ubuntu 18.04 bionic) and that can no longer access the > WFS. Everything was fine with the older versions on that server, too > (not certain if the mapserver upgrade happened at the same time as the > Ubuntu upgrade). > > The error received is: > msOGRFileOpen(): OGR error. GetLayer(LAYER_NAME) failed for OGR > connection. Check logs. > > The logs are not giving me any further information. Even I put debug > level to 5 already. Also apache log is not giving me any clue, there is > no error. Other layers on the same server open fine, as long a they do > not need OGR. So I assume it is not a connection issue. > ogrinfo however can access the external WFS fine from the terminal. > > Configuration: > Mapserver 7.2.2 > gdal-bin 2.4.0+dfsg-1~bionic0 (from UbuntuGIS - unstable repo) > Ubuntu 18.04 bionic > > I also have NextGIS repository activated but it does not seem that > gdal/ogr is installed from there. > > mapserv -v shows: > MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > 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 SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I have also checkt $Path: > /home/lars/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin > /bin /usr/games /usr/local/games /snap/bin > > I am not certain, if that is correct but ogr seems to be in /usr/bin so > I'd expect it's available for mapserver, too. > gdalinfo --formats does not show WFS, if that is the problem, where do I > get gdal with WFS enabled? > > The mapfile is the same on both servers (relevant code only): > ?LAYER > ??? NAME "TEST" > ??? TYPE Point > ??? UNITS METERS > ??? CONNECTION "http://XXX&VERSION=1.1.0&SERVICE=WFS" > ??? CONNECTIONTYPE OGR > ??? STATUS ON > ??? DEBUG ON > ??? DEBUG 5 > ??? DATA "LAYER_NAME" > ??? METADATA > ????? "wfs_version"??? "1.1.0" > ????? "wfs_title"??? "TEST" > ????? "wfs_connectiontimeout" "300" > ????? "wfs_typename"??? "Test_int" > ????? "wfs_maxfeatures"?????? "500" > ????? "gml_include_items" "all" > ????? #"wfs_srs" "epsg:25832" > ????? "gml_featureid"???? "ID" > ????? "wfs_enable_request" "*" > ??? END # METADATA > ??? PROJECTION > ????? "init=epsg:25832" > ??? END # PROJECTION > ???? CLASS > ????? NAME "Testlayer" > ????? STYLE > ??????? COLOR 190 87 66 > ??????? OUTLINECOLOR 255 0 0 > ??????? SIZE 4 > ??????? SYMBOL "circle_filled" > ????? END # STYLE > ??? END # CLASS > ? END # LAYER > > I'd really appreciate any help where to look further. I have been at > this for a few days already. I tried to give as much information as > possible, if something important is missing, please let me know. > > Thanks again for your time! > > Best > > Lars > > SkenData GmbH > From jeremy.jk at yandex.com Thu Apr 4 06:55:38 2019 From: jeremy.jk at yandex.com (Jeremy JK) Date: Thu, 04 Apr 2019 09:55:38 -0400 Subject: [mapserver-users] What is WMS/WFS Message-ID: <14555841554386138@sas1-fb8a605c4548.qloud-c.yandex.net> An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Thu Apr 4 07:05:35 2019 From: sethg at geographika.co.uk (Seth G) Date: Thu, 04 Apr 2019 10:05:35 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> Message-ID: <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> mapscriptPHP7_wrap.c is created by SWIG so won't exist unless SWIG runs successfully. I'm trying to get it setup on Travis so you can see a full build output, but was getting errors. You can have a look at https://travis-ci.org/geographika/mapserver/jobs/515238229 - https://api.travis-ci.org/v3/job/515238229/log.txt which may help - mapscriptPHP7_wrap.c is created but not currently compiling afterwards. -- web:http://geographika.co.uk twitter: @geographika On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > Seth, > > I understand that there are two php versions and the native one builds fine for me. But the swig one (phpng) does not. I installed swig 3.0.12. My build fails with error: > /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory > I can't find the file mapscriptPHP7_wrap.c > > Thanks, > Rich > > > > On Wed, Apr 3, 2019 at 4:34 PM Seth G wrote: >> __ >> There are now 2 PHP MapScripts. See https://mapserver.org/development/rfc/ms-rfc-117.html for details. >> The "native" one has been updated to work with PHP7 in the MapServer 7.4 release, and also a new SWIG based PHP MapScript is now available. The first does not require SWIG, the latter does. >> >> These can be build by setting the following 2 flags: >> >> WITH_PHP "Enable PHP mapscript support" OFF >> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF >> >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: >>> >>> >>> On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: >>>> __ >>>> Hi Richard, >>>> >>>> If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again. >>> >>> I did do that. >>> >>>> >>>> Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to get this set up on Travis and can do so with the following command: >>>> >>>> sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz >>>> tar xf swig-3.0.12.tar.gz >>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install >>>> swig -version >>> >>> Not sure I'm following you. Do I need to have swig installed? I don't. >>> >>>> >>>> I've run into further errors but mapscriptPHP7_wrap.c is created at least. >>> >>> Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be in the source files that I download or git clone, or is it created in the build process? >>> >>>> >>>> >>>> Seth >>>> >>>> -- >>>> web:http://geographika.co.uk >>>> twitter: @geographika >>>> >>>> >>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: >>>>> I get the following error: >>>>> >>>>> Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o >>>>> cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory >>>>> cc: fatal error: no input files >>>>> >>>>> If i'm reading the error message correctly it's not finding "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the file at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 >>>>> as well as git cloning. >>>>> >>>>> I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious. >>>>> >>>>> Rich >>>>> >>>>> -- >>>>> Richard W. Greenwood, PLS >>>>> www.greenwoodmap.com >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >>> -- >>> Richard W. Greenwood, PLS >>> www.greenwoodmap.com >> > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 07:07:37 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 11:07:37 -0300 Subject: [mapserver-users] What is WMS/WFS In-Reply-To: <14555841554386138@sas1-fb8a605c4548.qloud-c.yandex.net> References: <14555841554386138@sas1-fb8a605c4548.qloud-c.yandex.net> Message-ID: <2bac19ae-b59d-c63b-1c48-445eb32966b9@gatewaygeomatics.com> I think a nice introduction to those services is the "MapServer OGC Web Services Workshop", and if you are on Windows it is included in MS4W as a package (https://ms4w.com) so you can run it locally, or you can view the workshop on the official MS4W demo server at https://ms4w.me/ms-ogc-workshop/ (I recommend clicking the "Slides for hands-on session" link there, which is old but still does a great job in explaining how WMS/WFS relates to MapServer) Hello to the West Indies, from Canada! -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 9:55 AM, Jeremy JK wrote: > You don't know what you don't know. > What I know: > From a tomcat training video > Web SITE > Web SERVICE > Web SOCKET > Site - formatting > Service - data > Socket - idk. Something to do with JavaScript, AJAX and chat rooms > So a Web mapping/feature service shares maps/features where a wms client > like openlayers or leaflet does formatting. > Database ->WMS/WFS -> OpenLayers = website > Is my above reasoning correct? > Is that what a WMS/WFS MapServer is? What am I missing from this big > picture model? > Sorry for noob questions. But I when I explain things to my supervisor I > want to get things right. ?Thanks! > (In the words of Einstein: If we knew what it was we were doing, it > would not be called research) > Jeremy Kadir > blueSpace Caribbean > The University of the West Indies > (868) 309 9123 > From lars.fricke at skendata.de Thu Apr 4 07:27:34 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Thu, 4 Apr 2019 16:27:34 +0200 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> References: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> Message-ID: An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Apr 4 07:33:55 2019 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 04 Apr 2019 16:33:55 +0200 Subject: [mapserver-users] Problem install mapserver on ubuntu 18.04 In-Reply-To: <609bc8e7-f961-efc1-111d-2340e2464563@gatewaygeomatics.com> References: <169e7a5b9e5.11403a65569024.7559094481898813433@gter.it> <4cca339d-5391-f9ce-4b7d-1a9063e5affe@gatewaygeomatics.com> <169e84b489d.11d6fd21877429.9139779354663245852@gter.it> <169e8575d29.d83e994078169.5306441086012304089@gter.it> <169e866ef52.b595307779003.4789806194034839085@gter.it> <609bc8e7-f961-efc1-111d-2340e2464563@gatewaygeomatics.com> Message-ID: <169e8c5434c.c2e4f2b183924.4264120201479160042@gter.it> I try to do it? ;-)? Cheers,? R Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova http://P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline - https://plus.google.com/+GterIt/posts http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- On gio, 04 apr 2019 15:27:02 +0200 Jeff McKenna wrote ---- You can document all of your Ubuntu 18.04 steps on the MapServer wiki (in the "Tricks, Tips, and Howtos" section) at https://github.com/mapserver/mapserver/wiki#tricks-tips-and-howtos so the next user doesn't hit your same walls, Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 8:50 AM, Roberto Marzocchi wrote: > Thanks! Now it is all clear! > > Sorry for my stupid question > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl (Unige > spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please > consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:44:09 +0200 *Richard Greenwood > * wrote ---- > > To run it as fcgi it needs the .fcgi file extension. You can just > symlink: > ? ?sudo ln -s /usr/lib/cgi-bin/mapserv?/usr/lib/cgi-bin/mapserv.fcgi > and then your request needs to be: > http://localhost/cgi-bin/mapserv*.fcgi*?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > On Thu, Apr 4, 2019 at 6:34 AM Roberto Marzocchi > > wrote: > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > __ > sorry I enable fastcgi but not cgi > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter srl > (Unige spin-off) Piazza De Marini 3/61 - 16123 Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please > consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:29:33 +0200 *Richard Greenwood > >* wrote ---- > > Have you enabled cgi and fcgi? > ? ?sudo a2enmod cgi fcgid > php is not used or necessary for WMS. > > On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi > > wrote: > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > __ > Permission are right (755) anyway I try to change it and > nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm > package > > R > > Eng. Roberto Marzocchi, PhD GIS Project Coordinator Gter > srl (Unige spin-off) Piazza De Marini 3/61 - 16123 > Genova P.IVA/CF 01998770992 ph: 010-8694830 - mob: 349-8786575 E-mail: > mailto:roberto.marzocchi at gter.it skype: roberto.marzocchi84 www.gter.it -- Gter social www.twitter.com/Gteronline - www.facebook.com/Gteronline - > https://plus.google.com/+GterIt/postswww.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- > Please consider the environment before printing this email! > > > > > ---- On gio, 04 apr 2019 14:13:36 +0200 *Jeff McKenna > >* wrote ---- > > Maybe it is permissions on your mapserv executable. > Make sure that your > Apache user has permissions to execute that file (or > chmod to '777' > temporarily to verify). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > > > On 2019-04-04 5:19 AM, Roberto Marzocchi wrote: > > Dear all, > > > > I try to install mapserver on ubuntu 18.04 (I > have also a qgis server > > installed but I suppose it is not a problem, I > already done the > > installation in old server) > > > > > > when I type mapserv -v on terminal it's OK > > > > MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG > OUTPUT=KML SUPPORTS=PROJ > > 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 try to use the cgi service I have some > problem: > > > > > http://localhost/cgi-bin/mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > No error on apache log and a file not readable as > output [1] > > > > Thanks in advanced for your support > > > > R > > > > > > [1] - > https://docs.zoho.eu/file/1htkm3ff6db579e8d41e8835e76364cd84447 > > _______________________________________________ mapserver-users mailing list mailto:mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 07:56:50 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 11:56:50 -0300 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: References: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> Message-ID: <12348d29-5880-aa12-4383-8a59d41df3ac@gatewaygeomatics.com> What is the result if you change "CONNECTIONTYPE OGR" to "CONNECTIONTYPE WFS", and then execute at the commandline: shp2img -m mymap.map -o ttt.png -map_debug 3 -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-04 10:27 AM, Lars Fricke wrote: > @ Lars Schylberg > > Thank you for your valuable hint and the very fast reply, I just got out > of another task and tried immediately. > > Apache2 error.log now gives me: > HTTP: Fetch(http://...?VERSION=1.1.0&SERVICE=WFS) > HTTP: libcurl/7.58.0 GnuTLS/3.5.18 zlib/1.2.11 libidn2/2.0.4 > libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3 > HTTP: These HTTP headers were set: Accept: text/plain, application/json > GeoJSONSeq: First pass: 100.00 % > GDAL: GDALOpen(http://...?VERSION=1.1.0&SERVICE=WFS, > this=0x565136f44fe0) succeeds as GeoJSONSeq. > GDAL: GDALClose(http://...?VERSION=1.1.0&SERVICE=WFS, this=0x565136f44fe0) > > That does not really look like an error. The error displayed in the > browser however remains the same. > > @ Jeff McKenna > Thank you for taking thought upon this. Unfortunately the remote server > only supports WFS 1.1.0 and up while to my knowledge mapserver only has > native client support for WFS 1.0.0 . A colleague from a partner company > has tried with 1.1.0 and the spacial filtering did not work. If there is > a native way to use WFS 1.1.0 as client, I will be happy to check it out. > > Best > > Lars > > SkenData GmbH > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From lars.fricke at skendata.de Thu Apr 4 08:15:21 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Thu, 4 Apr 2019 17:15:21 +0200 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: <12348d29-5880-aa12-4383-8a59d41df3ac@gatewaygeomatics.com> References: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> <12348d29-5880-aa12-4383-8a59d41df3ac@gatewaygeomatics.com> Message-ID: <5eefbf3c-07c0-d417-0b17-6916e390218e@skendata.de> An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 4 10:13:12 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 4 Apr 2019 14:13:12 -0300 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: <5eefbf3c-07c0-d417-0b17-6916e390218e@skendata.de> References: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> <12348d29-5880-aa12-4383-8a59d41df3ac@gatewaygeomatics.com> <5eefbf3c-07c0-d417-0b17-6916e390218e@skendata.de> Message-ID: <54ac1b00-296f-4d96-20aa-10867e922020@gatewaygeomatics.com> Thanks for providing the response, which indeed states "only WFS 1.0.0 or 0.0.14". I just followed the GDAL WFS driver page now, and locally was able to generate a map image with a VERSION=1.1.0 request, with the following steps: - (the following steps are adapted from the GDAL WFS driver page https://gdal.org/drv_wfs.html ) - create a new file named "wfs-request.xml" - paste the contents of: http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=1000 - (notice the escaped "&" as noted on the GDAL WFS driver page) - make a copy of that file (copy/paste "wfs-request.xml" ) in case it is overwritten by this process - test this file/connection through the commandline: ogrinfo wfs-request.xml - you should see a response listing the available layers: INFO: Open of `wfs-request.xml' using driver `WFS' successful. 1: continents 2: cities - now we know the name to use in our MapServer layer "DATA" parameter, so in this case we will use "continents" - edit your .map file and point your layer to that wfs-request.xml in the CONNECTION, and set the correct DATA parameter from the ogrinfo response above, such as: LAYER NAME "continents-test" TYPE POLYGON STATUS ON CONNECTION "wfs-request.xml" CONNECTIONTYPE OGR DATA "continents" PROJECTION "init=epsg:4326" END CLASS NAME "My Continents" STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END # Layer - (use my small mapfile for testing: https://pastebin.com/GYrXyc9A ) - now finally have MapServer generate a map image from that WFS version 1.1.0 connection, by testing at the commandline: shp2img -m wfs-110-client.map -o ttt.png -all_debug 5 - a file named 'ttt.png' should be generated of the map image, and at the commandline the response should end with something like: msSaveImage(ttt.png) total time: 0.015s msFreeMap(): freeing map at 00228B70. freeLayer(): freeing layer at 001F1828. shp2img total time: 3.013s *** tested with MS4W 4.0.0 (MapServer 7.4.0-dev, GDAL 2.4.0) Hope that helps, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From lars.fricke at skendata.de Fri Apr 5 00:49:28 2019 From: lars.fricke at skendata.de (Lars Fricke) Date: Fri, 5 Apr 2019 09:49:28 +0200 Subject: [mapserver-users] CONNECTIONTYPE OGR is not working after upgrade to mapserver 7.2.2 from 6.4.1 In-Reply-To: <54ac1b00-296f-4d96-20aa-10867e922020@gatewaygeomatics.com> References: <057f36a1066349daeb57ccffebed7fd7@blixtmail.se> <12348d29-5880-aa12-4383-8a59d41df3ac@gatewaygeomatics.com> <5eefbf3c-07c0-d417-0b17-6916e390218e@skendata.de> <54ac1b00-296f-4d96-20aa-10867e922020@gatewaygeomatics.com> Message-ID: An HTML attachment was scrubbed... URL: From pschmitt at gmail.com Fri Apr 5 10:47:39 2019 From: pschmitt at gmail.com (Peter Schmitt) Date: Fri, 5 Apr 2019 11:47:39 -0600 Subject: [mapserver-users] Higher Memory Usage with vsicurl and gdal > 2.2.4 In-Reply-To: References: Message-ID: I solved my problem... I found a way to reduce memory utilization and allocations when using MapServer with GDAL >= 2.3.0: CONFIG "GDAL_HTTP_MULTIRANGE" "SERIAL" With this setting, the memory footprint matches that of GDAL <= 2.2.4. With the default (YES) has mapserv allocates much more memory. Running mapserv with supervisor & configured over FCGI results in a much higher memory footprint over time. My best guess is that with the default parallel mode has many HTTP connections kept alive and each connection consumes some non-trivial amount of memory. With CONFIG "CPL_CURL_VERBOSE" "ON", I see 9 HTTP connections kept around only with the default GDAL_HTTP_MULTIRANGE=ON setting: * Curl_http_done: called premature == 0 * Connection #17 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #11 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #13 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #14 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #15 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #19 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #16 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #18 to host s3.amazonaws.com left intact * Curl_http_done: called premature == 0 * Connection #12 to host s3.amazonaws.com left intact Side-note: the comments in cpl_vsil_curl.cpp for GDAL_HTTP_MULTIRANGE do not match the ConfigOptions documentation https://github.com/OSGeo/gdal/blob/1d799cf5d8c399d9ac3feb7ef9f05dc6e3297a82/gdal/port/cpl_vsil_curl.cpp#L2691-L2696 https://trac.osgeo.org/gdal/wiki/ConfigOptions#GDAL_HTTP_MULTIRANGE The valid settings are actually SINGLE_GET, SERIAL or _anything_ else for "parallel" mode It's great to see all the vsicurl improvements to GDAL which MapServer can leverage! Time for me to experiment with the other gdal-2.3 config options for libcurl >= 7.33 built with nghttp2. Cheers, Pete On Fri, Mar 29, 2019 at 3:02 PM Peter Schmitt wrote: > Hi, > > I run MapServer in a Docker container. I noticed its memory utilization > climbed much higher than expected. This seems to happen only under the > following conditions: > > * Files are accessed network-based filesystems (I tried both /vsicurl/ and > /vsis3/) > * Using gdal > 2.2.4 (tested with 2.3.0, 2.3.2 & 2.4.1. I see the same > behavior with both MapServer-7.0.7 and MapServer-7.2.2. > > I had a hard time isolating this to GDAL and could not reproduce with > similar gdal_translate commands. So I put together a little example to try > and demonstrate the problem. > https://github.com/pedros007/gdal_mapserver_memory > > Does anyone have any ideas as to what might be going on? I tried various > cache settings, which do not seem to reduce memory utilization: > > https://github.com/pedros007/gdal_mapserver_memory/blob/master/mapfiles/indonesian_redcross.map#L15-L18 > > Thanks, > Pete > -- Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Apr 8 13:41:21 2019 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 8 Apr 2019 20:41:21 +0000 Subject: [mapserver-users] REMINDER: OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: All, Nice to see everyone that came to see Howard's presentation and the trip to the BullDog last evening. I forgot to take any pictures, sorry about that. ???????? The meeting will be just over the border, and into Mpls.: https://www.insightbrewing.com/ https://www.insightbrewing.com/find-us/ Time: 4:30 PM. See you there. bobb ??????? OSGeo Local Chapter (aka TCMUG) Meeting Scheduled: Apr 10, 2019 at 4:30 PM to 6:00 PM Location: 2821 E Hennepin Ave Minneapolis, MN, United States https://www.insightbrewing.com/ https://www.insightbrewing.com/find-us/ "We didn't lose the game; we just ran out of time." - Vince Lombardi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iCal-20190314-132554.ics Type: text/calendar Size: 177 bytes Desc: iCal-20190314-132554.ics URL: From MarkVolz at co.lyon.mn.us Fri Apr 12 10:08:18 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 12 Apr 2019 17:08:18 +0000 Subject: [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when using WMTS services. Message-ID: Hello, I noticed that WMTS services are extremely fast when using Mapcache to serve tiles to ArcGIS clients. However, the imagery appears to be shifted down significantly from the actual location. I did notice that Mapserver and Mapcache use a 72 DPI while ArcGIS is using a 90.714 DPI. In addition the image is the correct width and height. In addition, when I use WMS the imagery appears in the correct location, however it is not as fast as WMTS. Please let me know if there is a way to get ArcGIS to place imagery in the correct location when using WMTS and Mapcache. Thanks Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Apr 12 15:00:19 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 12 Apr 2019 22:00:19 +0000 Subject: [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when using WMTS services. In-Reply-To: References: Message-ID: The resolution doesn't matter. That just impacts scale computations internally so when layers/classes are on/off and how symbol/font scaling is done. I just tried our Compass MapCache/WTMS service overlaid with a shapefile in UTM projected appropriately and they line up perfectly in ArcGIS 10.6. You can try it too with your data since you're in MN (http://maps1.dnr.state.mn.us/mapcache/wmts/1.0.0/WMTSCapabilities.xml). Does it behave any differently for you? --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Friday, April 12, 2019 12:08 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when using WMTS services. Hello, I noticed that WMTS services are extremely fast when using Mapcache to serve tiles to ArcGIS clients. However, the imagery appears to be shifted down significantly from the actual location. I did notice that Mapserver and Mapcache use a 72 DPI while ArcGIS is using a 90.714 DPI. In addition the image is the correct width and height. In addition, when I use WMS the imagery appears in the correct location, however it is not as fast as WMTS. Please let me know if there is a way to get ArcGIS to place imagery in the correct location when using WMTS and Mapcache. Thanks Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Sun Apr 14 02:51:48 2019 From: sethg at geographika.co.uk (Seth G) Date: Sun, 14 Apr 2019 05:51:48 -0400 Subject: [mapserver-users] MapServer Project Status Update Message-ID: Hi MapServer users, For FOSS4G in Bucharest [1] this year the MapServer project steering committee will be presenting a talk on the "State of MapServer" - highlighting recent updates, project health, and the future roadmap. If there is anything in particular you'd like us to address in this presentation please get in touch. [1] https://2019.foss4g.org/ From jmckenna at gatewaygeomatics.com Wed Apr 17 17:20:03 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 17 Apr 2019 21:20:03 -0300 Subject: [mapserver-users] 7.4.0-beta2 available for testing Message-ID: <1528494c-a001-41d5-b32f-9a5e81a67de2@gatewaygeomatics.com> MapServer 7.4.0-beta2 is now available for download: http://mapserver.org/download.html In addition to several mapscript fixes, a potential vulnerability was also fixed in this beta. For the detailed list of 7.4.0 beta changes please see the changelog: https://mapserver.org/development/changelog/changelog-7-4.html Thank you to all of the users, developers, documenters, and packagers for sharing the passion for such a great project. -- The MapServer Team From Erwann.Poupart at cnes.fr Thu Apr 18 01:52:52 2019 From: Erwann.Poupart at cnes.fr (Poupart Erwann) Date: Thu, 18 Apr 2019 08:52:52 +0000 Subject: [mapserver-users] relative values for raster data PROCESSING SCALE parameters Message-ID: <2CBDB6AD0F4FD5478A85339DE43F743C9CA38D9E@TW-MBX-P03.cnesnet.ad.cnes.fr> Hi all, This capability doesn't seem to be available to specify relative value for the PROCESSING SCALE values in the map file. It is possible to specify AUTO but it uses min/max values, or to specify absolute values but not relative values like percentages (ex 2%). This could be useful to provide a generic scaling that can apply to worldwide geotiffs. Is it in your roadmap ? Does somebody found a way to compute relative values dynamically and provide them to mapserver ? Best regards, Erwann. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Apr 18 08:20:20 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 18 Apr 2019 15:20:20 +0000 Subject: [mapserver-users] relative values for raster data PROCESSING SCALE parameters In-Reply-To: <2CBDB6AD0F4FD5478A85339DE43F743C9CA38D9E@TW-MBX-P03.cnesnet.ad.cnes.fr> References: <2CBDB6AD0F4FD5478A85339DE43F743C9CA38D9E@TW-MBX-P03.cnesnet.ad.cnes.fr> Message-ID: Does GDAL support this now in any fashion? From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Poupart Erwann Sent: Thursday, April 18, 2019 3:53 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] relative values for raster data PROCESSING SCALE parameters Hi all, This capability doesn't seem to be available to specify relative value for the PROCESSING SCALE values in the map file. It is possible to specify AUTO but it uses min/max values, or to specify absolute values but not relative values like percentages (ex 2%). This could be useful to provide a generic scaling that can apply to worldwide geotiffs. Is it in your roadmap ? Does somebody found a way to compute relative values dynamically and provide them to mapserver ? Best regards, Erwann. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Sat Apr 20 02:47:38 2019 From: sethg at geographika.co.uk (Seth G) Date: Sat, 20 Apr 2019 05:47:38 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> Message-ID: <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Hi Richard / all, The new PHP SWIG bindings seem to be fine to compile locally, and as they are part of ms4w, and I believe the Debian builds are working well. I've not been able to get them to build on Travis, not has AlexanderGabriel who set these up originally - see https://github.com/mapserver/mapserver/pull/5675 If anyone has any suggestions after looking at the logs of the Travis output it would be appreciated - https://api.travis-ci.org/v3/job/515453218/log.txt Seth -- web:http://geographika.co.uk twitter: @geographika On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: > mapscriptPHP7_wrap.c is created by SWIG so won't exist unless SWIG runs successfully. > > I'm trying to get it setup on Travis so you can see a full build output, but was getting errors. > > You can have a look at https://travis-ci.org/geographika/mapserver/jobs/515238229 - https://api.travis-ci.org/v3/job/515238229/log.txt which may help - mapscriptPHP7_wrap.c is created but not currently compiling afterwards. > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: >> Seth, >> >> I understand that there are two php versions and the native one builds fine for me. But the swig one (phpng) does not. I installed swig 3.0.12. My build fails with error: >> /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory >> I can't find the file mapscriptPHP7_wrap.c >> >> Thanks, >> Rich >> >> >> >> On Wed, Apr 3, 2019 at 4:34 PM Seth G wrote: >>> __ >>> There are now 2 PHP MapScripts. See https://mapserver.org/development/rfc/ms-rfc-117.html for details. >>> The "native" one has been updated to work with PHP7 in the MapServer 7.4 release, and also a new SWIG based PHP MapScript is now available. The first does not require SWIG, the latter does. >>> >>> These can be build by setting the following 2 flags: >>> >>> WITH_PHP "Enable PHP mapscript support" OFF >>> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF >>> >>> >>> -- >>> web:http://geographika.co.uk >>> twitter: @geographika >>> >>> >>> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: >>>> >>>> >>>> On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: >>>>> __ >>>>> Hi Richard, >>>>> >>>>> If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again. >>>> >>>> I did do that. >>>> >>>>> >>>>> Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to get this set up on Travis and can do so with the following command: >>>>> >>>>> sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz >>>>> tar xf swig-3.0.12.tar.gz >>>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install >>>>> swig -version >>>> >>>> Not sure I'm following you. Do I need to have swig installed? I don't. >>>> >>>>> >>>>> I've run into further errors but mapscriptPHP7_wrap.c is created at least. >>>> >>>> Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be in the source files that I download or git clone, or is it created in the build process? >>>> >>>>> >>>>> >>>>> Seth >>>>> >>>>> -- >>>>> web:http://geographika.co.uk >>>>> twitter: @geographika >>>>> >>>>> >>>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: >>>>>> I get the following error: >>>>>> >>>>>> Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o >>>>>> cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory >>>>>> cc: fatal error: no input files >>>>>> >>>>>> If i'm reading the error message correctly it's not finding "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the file at https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 >>>>>> as well as git cloning. >>>>>> >>>>>> I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious. >>>>>> >>>>>> Rich >>>>>> >>>>>> -- >>>>>> Richard W. Greenwood, PLS >>>>>> www.greenwoodmap.com >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>>> >>>> -- >>>> Richard W. Greenwood, PLS >>>> www.greenwoodmap.com >>> >> >> >> -- >> Richard W. Greenwood, PLS >> www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Sun Apr 21 06:17:54 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 21 Apr 2019 07:17:54 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Message-ID: Seth, I don't think this helps your issue with Travis, but just for the record, I still can't get PHPNG to build on Ubuntu 18.04. The legacy PHP builds fine. I've tried building PHPNG on two Ubuntu 18.04 machines with slightly different PHP configurations (one has PHP 7.2 from the Ubuntu repo, the other has PHP 7.2 from deb.sury.org). On both I get: Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o cc: error: /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory cc: fatal error: no input files ccmake issues the following warnings: PHPUNIT_EXECUTABLE */usr/local/bin/phpunit PHP_CONFIG_EXECUTABLE */usr/bin/php-config PHP_LIBRARY *PHP_LIBRARY-NOTFOUND I've taken a few guesses at setting paths for PHP_LIBRARY but no luck and I don't really know what I'm doing. Rich On Sat, Apr 20, 2019 at 3:47 AM Seth G wrote: > Hi Richard / all, > > The new PHP SWIG bindings seem to be fine to compile locally, and as they > are part of ms4w, and I believe the Debian builds are working well. > I've not been able to get them to build on Travis, not has > AlexanderGabriel who set these up originally - see > https://github.com/mapserver/mapserver/pull/5675 > If anyone has any suggestions after looking at the logs of the Travis > output it would be appreciated - > https://api.travis-ci.org/v3/job/515453218/log.txt > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: > > mapscriptPHP7_wrap.c is created by SWIG so won't exist unless SWIG runs > successfully. > > I'm trying to get it setup on Travis so you can see a full build output, > but was getting errors. > > You can have a look at > https://travis-ci.org/geographika/mapserver/jobs/515238229 - > https://api.travis-ci.org/v3/job/515238229/log.txt which may help - > mapscriptPHP7_wrap.c is created but not currently compiling afterwards. > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > > Seth, > > I understand that there are two php versions and the native one builds > fine for me. But the swig one (phpng) does not. I installed swig 3.0.12. My > build fails with error: > > /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: > No such file or directory > I can't find the file mapscriptPHP7_wrap.c > > Thanks, > Rich > > > > On Wed, Apr 3, 2019 at 4:34 PM Seth G wrote: > > > There are now 2 PHP MapScripts. See > https://mapserver.org/development/rfc/ms-rfc-117.html for details. > The "native" one has been updated to work with PHP7 in the MapServer 7.4 > release, and also a new SWIG based PHP MapScript is now available. The > first does not require SWIG, the latter does. > > These can be build by setting the following 2 flags: > > WITH_PHP "Enable PHP mapscript support" OFF > WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF > > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > > > > On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: > > > Hi Richard, > > If you had previous errors it may be best to delete the whole > /rwg/src/mapserver/build/ and start the build from scratch again. > > > I did do that. > > > Also to note is PHP 7 support was only added in SWIG-3.0.11. I'm trying to > get this set up on Travis and can do so with the following command: > > sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > tar xf swig-3.0.12.tar.gz > cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install > swig -version > > > Not sure I'm following you. Do I need to have swig installed? I don't. > > > > I've run into further errors but mapscriptPHP7_wrap.c is created at least. > > > Again, not sure I'm following you. Is mapscriptPHP7_wrap.c supposed to be > in the source files that I download or git clone, or is it created in the > build process? > > > > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > > I get the following error: > > Building C object > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > No such file or directory > cc: fatal error: no input files > > If i'm reading the error message correctly it's not finding > "mapscriptPHP7_wrap.c". I don't have "mapscriptPHP7_wrap.c". I tried the > file at > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > as well as git cloning. > > I'm not well versed with this stuff so apologizes in advanced if I'm > missing the obvious. > > Rich > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenwoodbridge37 at gmail.com Sun Apr 21 07:36:21 2019 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Sun, 21 Apr 2019 10:36:21 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Message-ID: Rich, Do you have the php-dev package installed? -Steve W On 4/21/2019 9:17 AM, Richard Greenwood wrote: > Seth, > > I don't think this helps your issue with Travis, but just for the > record, I still can't get PHPNG to build on Ubuntu 18.04. The legacy > PHP builds fine. I've tried building PHPNG on two Ubuntu 18.04 > machines with slightly different PHP configurations (one has PHP 7.2 > from the Ubuntu repo, the other has PHP 7.2 from deb.sury.org > ). On both I get: > > Building C object > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > cc: error: > /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: > No such file or directory > cc: fatal error: no input files > > ccmake issues the following warnings: > > ?PHPUNIT_EXECUTABLE ? ? ? ? ? ? */usr/local/bin/phpunit > ?PHP_CONFIG_EXECUTABLE ? ? ? ? ?*/usr/bin/php-config > ?PHP_LIBRARY ? ? ? ? ? ? ? ? ? ?*PHP_LIBRARY-NOTFOUND > > I've taken a few guesses at setting paths for PHP_LIBRARY but no luck > and I don't really know what I'm doing. > > Rich > > > On Sat, Apr 20, 2019 at 3:47 AM Seth G > wrote: > > Hi Richard / all, > > The new PHP SWIG bindings seem to be fine to compile locally, and > as they are part of ms4w, and I believe the Debian builds are > working well. > I've not been able to get them to build on Travis, not has > AlexanderGabriel who set these up originally - see > https://github.com/mapserver/mapserver/pull/5675 > If anyone has any suggestions after looking at the logs of the > Travis output it would be appreciated - > https://api.travis-ci.org/v3/job/515453218/log.txt > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: >> mapscriptPHP7_wrap.c is created by SWIG so won't exist unless >> SWIG runs successfully. >> >> I'm trying to get it setup on Travis so you can see a full build >> output, but was getting errors. >> >> You can have a look at >> https://travis-ci.org/geographika/mapserver/jobs/515238229 - >> https://api.travis-ci.org/v3/job/515238229/log.txt which may help >> - mapscriptPHP7_wrap.c is created but not currently compiling >> afterwards. >> >> -- >> web:http://geographika.co.uk >> twitter: @geographika >> >> >> On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: >>> Seth, >>> >>> I understand that there are two php versions and the native one >>> builds fine for me. But the swig one (phpng) does not. I >>> installed swig 3.0.12. My build fails with?error: >>> ?/rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: >>> No such file or directory >>> I can't find the file mapscriptPHP7_wrap.c >>> >>> Thanks, >>> Rich >>> >>> >>> >>> On Wed, Apr 3, 2019 at 4:34 PM Seth G >> > wrote: >>> >>> >>> There are now 2 PHP MapScripts. See >>> https://mapserver.org/development/rfc/ms-rfc-117.html for >>> details. >>> The "native" one has been updated to work with PHP7 in the >>> MapServer 7.4 release, and also a new SWIG based PHP >>> MapScript is now available. The first does not require SWIG, >>> the latter does. >>> >>> These can be build by setting the following 2 flags: >>> >>> WITH_PHP "Enable PHP mapscript support" OFF >>> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF >>> >>> >>> -- >>> web:http://geographika.co.uk >>> twitter: @geographika >>> >>> >>> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: >>>> >>>> >>>> On Wed, Apr 3, 2019 at 10:39 AM Seth G >>>> > >>>> wrote: >>>> >>>> >>>> Hi Richard, >>>> >>>> If you had previous errors it may be best to delete the >>>> whole /rwg/src/mapserver/build/ and start the build >>>> from scratch again. >>>> >>>> >>>> I did do that. >>>> >>>> >>>> Also to note is PHP 7 support was only added in >>>> SWIG-3.0.11. I'm trying to get this set up on Travis >>>> and can do so with the following command: >>>> >>>> sudo wget >>>> http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz >>>> tar xf swig-3.0.12.tar.gz >>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && >>>> sudo make install >>>> swig -version >>>> >>>> >>>> Not sure I'm following you. Do I need to have swig >>>> installed? I don't. >>>> >>>> >>>> I've run into further errors but mapscriptPHP7_wrap.c >>>> is created at least. >>>> >>>> >>>> Again, not sure I'm following you. Is mapscriptPHP7_wrap.c >>>> supposed to be in the source files that I download or git >>>> clone, or is it created in the build process? >>>> >>>> >>>> >>>> Seth >>>> >>>> -- >>>> web:http://geographika.co.uk >>>> twitter: @geographika >>>> >>>> >>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: >>>>> I get the following error: >>>>> >>>>> ?Building C object >>>>> mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o >>>>> cc: error: >>>>> /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: >>>>> No such file or directory >>>>> cc: fatal error: no input files >>>>> >>>>> If i'm reading the error message correctly it's not >>>>> finding "mapscriptPHP7_wrap.c". I don't have >>>>> "mapscriptPHP7_wrap.c". I tried the file at >>>>> https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 >>>>> as well as git cloning. >>>>> >>>>> I'm not well versed with this stuff so apologizes in >>>>> advanced if I'm missing the obvious. >>>>> >>>>> Rich >>>>> >>>>> -- >>>>> Richard W. Greenwood, PLS >>>>> www.greenwoodmap.com >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> -- >>>> Richard W. Greenwood, PLS >>>> www.greenwoodmap.com >>> >>> >>> >>> -- >>> Richard W. Greenwood, PLS >>> www.greenwoodmap.com >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From richard.greenwood at gmail.com Sun Apr 21 13:49:15 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 21 Apr 2019 14:49:15 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Message-ID: Yes I do: php7.2-dev/bionic,now 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 amd64 [ installed] The non-SWIG version builds and runs fine. And I have SWIG Version 3.0.12 installed. Thanks, Rich On Sun, Apr 21, 2019 at 8:36 AM Stephen Woodbridge < stephenwoodbridge37 at gmail.com> wrote: > Rich, > > Do you have the php-dev package installed? > > -Steve W > > On 4/21/2019 9:17 AM, Richard Greenwood wrote: > > Seth, > > > > I don't think this helps your issue with Travis, but just for the > > record, I still can't get PHPNG to build on Ubuntu 18.04. The legacy > > PHP builds fine. I've tried building PHPNG on two Ubuntu 18.04 > > machines with slightly different PHP configurations (one has PHP 7.2 > > from the Ubuntu repo, the other has PHP 7.2 from deb.sury.org > > ). On both I get: > > > > Building C object > > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > > cc: error: > > > /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: > > No such file or directory > > cc: fatal error: no input files > > > > ccmake issues the following warnings: > > > > PHPUNIT_EXECUTABLE */usr/local/bin/phpunit > > PHP_CONFIG_EXECUTABLE */usr/bin/php-config > > PHP_LIBRARY *PHP_LIBRARY-NOTFOUND > > > > I've taken a few guesses at setting paths for PHP_LIBRARY but no luck > > and I don't really know what I'm doing. > > > > Rich > > > > > > On Sat, Apr 20, 2019 at 3:47 AM Seth G > > wrote: > > > > Hi Richard / all, > > > > The new PHP SWIG bindings seem to be fine to compile locally, and > > as they are part of ms4w, and I believe the Debian builds are > > working well. > > I've not been able to get them to build on Travis, not has > > AlexanderGabriel who set these up originally - see > > https://github.com/mapserver/mapserver/pull/5675 > > If anyone has any suggestions after looking at the logs of the > > Travis output it would be appreciated - > > https://api.travis-ci.org/v3/job/515453218/log.txt > > > > Seth > > > > -- > > web:http://geographika.co.uk > > twitter: @geographika > > > > > > On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: > >> mapscriptPHP7_wrap.c is created by SWIG so won't exist unless > >> SWIG runs successfully. > >> > >> I'm trying to get it setup on Travis so you can see a full build > >> output, but was getting errors. > >> > >> You can have a look at > >> https://travis-ci.org/geographika/mapserver/jobs/515238229 - > >> https://api.travis-ci.org/v3/job/515238229/log.txt which may help > >> - mapscriptPHP7_wrap.c is created but not currently compiling > >> afterwards. > >> > >> -- > >> web:http://geographika.co.uk > >> twitter: @geographika > >> > >> > >> On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > >>> Seth, > >>> > >>> I understand that there are two php versions and the native one > >>> builds fine for me. But the swig one (phpng) does not. I > >>> installed swig 3.0.12. My build fails with error: > >>> > /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>> No such file or directory > >>> I can't find the file mapscriptPHP7_wrap.c > >>> > >>> Thanks, > >>> Rich > >>> > >>> > >>> > >>> On Wed, Apr 3, 2019 at 4:34 PM Seth G >>> > wrote: > >>> > >>> > >>> There are now 2 PHP MapScripts. See > >>> https://mapserver.org/development/rfc/ms-rfc-117.html for > >>> details. > >>> The "native" one has been updated to work with PHP7 in the > >>> MapServer 7.4 release, and also a new SWIG based PHP > >>> MapScript is now available. The first does not require SWIG, > >>> the latter does. > >>> > >>> These can be build by setting the following 2 flags: > >>> > >>> WITH_PHP "Enable PHP mapscript support" OFF > >>> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF > >>> > >>> > >>> -- > >>> web:http://geographika.co.uk > >>> twitter: @geographika > >>> > >>> > >>> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > >>>> > >>>> > >>>> On Wed, Apr 3, 2019 at 10:39 AM Seth G > >>>> > > >>>> wrote: > >>>> > >>>> > >>>> Hi Richard, > >>>> > >>>> If you had previous errors it may be best to delete the > >>>> whole /rwg/src/mapserver/build/ and start the build > >>>> from scratch again. > >>>> > >>>> > >>>> I did do that. > >>>> > >>>> > >>>> Also to note is PHP 7 support was only added in > >>>> SWIG-3.0.11. I'm trying to get this set up on Travis > >>>> and can do so with the following command: > >>>> > >>>> sudo wget > >>>> > http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > >>>> tar xf swig-3.0.12.tar.gz > >>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && > >>>> sudo make install > >>>> swig -version > >>>> > >>>> > >>>> Not sure I'm following you. Do I need to have swig > >>>> installed? I don't. > >>>> > >>>> > >>>> I've run into further errors but mapscriptPHP7_wrap.c > >>>> is created at least. > >>>> > >>>> > >>>> Again, not sure I'm following you. Is mapscriptPHP7_wrap.c > >>>> supposed to be in the source files that I download or git > >>>> clone, or is it created in the build process? > >>>> > >>>> > >>>> > >>>> Seth > >>>> > >>>> -- > >>>> web:http://geographika.co.uk > >>>> twitter: @geographika > >>>> > >>>> > >>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > >>>>> I get the following error: > >>>>> > >>>>> Building C object > >>>>> > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > >>>>> cc: error: > >>>>> > /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>>>> No such file or directory > >>>>> cc: fatal error: no input files > >>>>> > >>>>> If i'm reading the error message correctly it's not > >>>>> finding "mapscriptPHP7_wrap.c". I don't have > >>>>> "mapscriptPHP7_wrap.c". I tried the file at > >>>>> > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > >>>>> as well as git cloning. > >>>>> > >>>>> I'm not well versed with this stuff so apologizes in > >>>>> advanced if I'm missing the obvious. > >>>>> > >>>>> Rich > >>>>> > >>>>> -- > >>>>> Richard W. Greenwood, PLS > >>>>> www.greenwoodmap.com > >>>>> _______________________________________________ > >>>>> mapserver-users mailing list > >>>>> mapserver-users at lists.osgeo.org > >>>>> > >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>>> > >>>> > >>>> -- > >>>> Richard W. Greenwood, PLS > >>>> www.greenwoodmap.com > >>> > >>> > >>> > >>> -- > >>> Richard W. Greenwood, PLS > >>> www.greenwoodmap.com > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Richard W. Greenwood, PLS > > www.greenwoodmap.com > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 25 06:15:35 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 25 Apr 2019 10:15:35 -0300 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Message-ID: Hi Rich, For Windows builds for MS4W I've been compiling SWIG master from source to handle PHP mapscript with PHP7. On unix you can use the recent SWIG 4.0-beta1 release: https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz To be honest I'll likely stick with master, as I've now had to use that for all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in the works for a long time). My point is, you may also choose to stick with master too. Hope that helps, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-21 5:49 PM, Richard Greenwood wrote: > Yes I do: > ? ?php7.2-dev/bionic,now 7.2.17-1+ubuntu18.04.1+deb.sury.org > +3 amd64 [installed] > The non-SWIG version builds and runs fine. > > And I have?SWIG Version 3.0.12 installed. > > Thanks, > Rich > > > On Sun, Apr 21, 2019 at 8:36 AM Stephen Woodbridge > > > wrote: > > Rich, > > Do you have the php-dev package installed? > > -Steve W > > On 4/21/2019 9:17 AM, Richard Greenwood wrote: > > Seth, > > > > I don't think this helps your issue with Travis, but just for the > > record, I still can't get PHPNG to build on Ubuntu 18.04. The legacy > > PHP builds fine. I've tried building PHPNG on two Ubuntu 18.04 > > machines with slightly different PHP configurations (one has PHP 7.2 > > from the Ubuntu repo, the other has PHP 7.2 from deb.sury.org > > > ). On both I get: > > > >? ? ?Building C object > > > ?mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > >? ? ?cc: error: > > > ?/rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: > >? ? ?No such file or directory > >? ? ?cc: fatal error: no input files > > > > ccmake issues the following warnings: > > > >? ? ??PHPUNIT_EXECUTABLE ? ? ? ? ? ? */usr/local/bin/phpunit > >? ? ??PHP_CONFIG_EXECUTABLE ? ? ? ? ?*/usr/bin/php-config > >? ? ??PHP_LIBRARY ? ? ? ? ? ? ? ? ? ?*PHP_LIBRARY-NOTFOUND > > > > I've taken a few guesses at setting paths for PHP_LIBRARY but no > luck > > and I don't really know what I'm doing. > > > > Rich > > > > > > On Sat, Apr 20, 2019 at 3:47 AM Seth G > > >> wrote: > > > >? ? ?Hi Richard / all, > > > >? ? ?The new PHP SWIG bindings seem to be fine to compile locally, and > >? ? ?as they are part of ms4w, and I believe the Debian builds are > >? ? ?working well. > >? ? ?I've not been able to get them to build on Travis, not has > >? ? ?AlexanderGabriel who set these up originally - see > > https://github.com/mapserver/mapserver/pull/5675 > >? ? ?If anyone has any suggestions after looking at the logs of the > >? ? ?Travis output it would be appreciated - > > https://api.travis-ci.org/v3/job/515453218/log.txt > > > >? ? ?Seth > > > >? ? ?-- > >? ? ?web:http://geographika.co.uk > >? ? ?twitter: @geographika > > > > > >? ? ?On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: > >>? ? ?mapscriptPHP7_wrap.c is created by SWIG so won't exist unless > >>? ? ?SWIG runs successfully. > >> > >>? ? ?I'm trying to get it setup on Travis so you can see a full build > >>? ? ?output, but was getting errors. > >> > >>? ? ?You can have a look at > >> https://travis-ci.org/geographika/mapserver/jobs/515238229 - > >> https://api.travis-ci.org/v3/job/515238229/log.txt which may help > >>? ? ?- mapscriptPHP7_wrap.c is created but not currently compiling > >>? ? ?afterwards. > >> > >>? ? ?-- > >>? ? ?web:http://geographika.co.uk > >>? ? ?twitter: @geographika > >> > >> > >>? ? ?On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > >>>? ? ?Seth, > >>> > >>>? ? ?I understand that there are two php versions and the native one > >>>? ? ?builds fine for me. But the swig one (phpng) does not. I > >>>? ? ?installed swig 3.0.12. My build fails with?error: > >>> > ??/rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>>? ? ?No such file or directory > >>>? ? ?I can't find the file mapscriptPHP7_wrap.c > >>> > >>>? ? ?Thanks, > >>>? ? ?Rich > >>> > >>> > >>> > >>>? ? ?On Wed, Apr 3, 2019 at 4:34 PM Seth G > > >>>? ? ? >> wrote: > >>> > >>> > >>>? ? ? ? ?There are now 2 PHP MapScripts. See > >>> https://mapserver.org/development/rfc/ms-rfc-117.html for > >>>? ? ? ? ?details. > >>>? ? ? ? ?The "native" one has been updated to work with PHP7 in the > >>>? ? ? ? ?MapServer 7.4 release, and also a new SWIG based PHP > >>>? ? ? ? ?MapScript is now available. The first does not require > SWIG, > >>>? ? ? ? ?the latter does. > >>> > >>>? ? ? ? ?These can be build by setting the following 2 flags: > >>> > >>>? ? ? ? ?WITH_PHP "Enable PHP mapscript support" OFF > >>>? ? ? ? ?WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF > >>> > >>> > >>>? ? ? ? ?-- > >>>? ? ? ? ?web:http://geographika.co.uk > >>>? ? ? ? ?twitter: @geographika > >>> > >>> > >>>? ? ? ? ?On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > >>>> > >>>> > >>>>? ? ? ? ?On Wed, Apr 3, 2019 at 10:39 AM Seth G > >>>>? ? ? ? ? >> > >>>>? ? ? ? ?wrote: > >>>> > >>>> > >>>>? ? ? ? ? ? ?Hi Richard, > >>>> > >>>>? ? ? ? ? ? ?If you had previous errors it may be best to > delete the > >>>>? ? ? ? ? ? ?whole /rwg/src/mapserver/build/ and start the build > >>>>? ? ? ? ? ? ?from scratch again. > >>>> > >>>> > >>>>? ? ? ? ?I did do that. > >>>> > >>>> > >>>>? ? ? ? ? ? ?Also to note is PHP 7 support was only added in > >>>>? ? ? ? ? ? ?SWIG-3.0.11. I'm trying to get this set up on Travis > >>>>? ? ? ? ? ? ?and can do so with the following command: > >>>> > >>>>? ? ? ? ? ? ?sudo wget > >>>> http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > >>>>? ? ? ? ? ? ?tar xf swig-3.0.12.tar.gz > >>>>? ? ? ? ? ? ?cd swig-3.0.12 && ./configure --prefix=/usr && make && > >>>>? ? ? ? ? ? ?sudo make install > >>>>? ? ? ? ? ? ?swig -version > >>>> > >>>> > >>>>? ? ? ? ?Not sure I'm following you. Do I need to have swig > >>>>? ? ? ? ?installed? I don't. > >>>> > >>>> > >>>>? ? ? ? ? ? ?I've run into further errors but mapscriptPHP7_wrap.c > >>>>? ? ? ? ? ? ?is created at least. > >>>> > >>>> > >>>>? ? ? ? ?Again, not sure I'm following you. Is mapscriptPHP7_wrap.c > >>>>? ? ? ? ?supposed to be in the source files that I download or git > >>>>? ? ? ? ?clone, or is it created in the build process? > >>>> > >>>> > >>>> > >>>>? ? ? ? ? ? ?Seth > >>>> > >>>>? ? ? ? ? ? ?-- > >>>>? ? ? ? ? ? ?web:http://geographika.co.uk > >>>>? ? ? ? ? ? ?twitter: @geographika > >>>> > >>>> > >>>>? ? ? ? ? ? ?On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood > wrote: > >>>>>? ? ? ? ? ? ?I get the following error: > >>>>> > >>>>>? ? ? ? ? ? ??Building C object > >>>>> > ?mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > >>>>>? ? ? ? ? ? ?cc: error: > >>>>> > ?/rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>>>>? ? ? ? ? ? ?No such file or directory > >>>>>? ? ? ? ? ? ?cc: fatal error: no input files > >>>>> > >>>>>? ? ? ? ? ? ?If i'm reading the error message correctly it's not > >>>>>? ? ? ? ? ? ?finding "mapscriptPHP7_wrap.c". I don't have > >>>>>? ? ? ? ? ? ?"mapscriptPHP7_wrap.c". I tried the file at > >>>>> > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > >>>>>? ? ? ? ? ? ?as well as git cloning. > >>>>> > >>>>>? ? ? ? ? ? ?I'm not well versed with this stuff so apologizes in > >>>>>? ? ? ? ? ? ?advanced if I'm missing the obvious. > >>>>> > >>>>>? ? ? ? ? ? ?Rich > >>>>> > >>>>>? ? ? ? ? ? ?-- > >>>>>? ? ? ? ? ? ?Richard W. Greenwood, PLS > >>>>> www.greenwoodmap.com > > >>>>>? ? ? ? ? ? ?_______________________________________________ > >>>>>? ? ? ? ? ? ?mapserver-users mailing list > >>>>> mapserver-users at lists.osgeo.org > > >>>>>? ? ? ? ? ? ? > > >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>>> > >>>> > >>>>? ? ? ? ?-- > >>>>? ? ? ? ?Richard W. Greenwood, PLS > >>>> www.greenwoodmap.com > > >>> > >>> > >>> > >>>? ? ?-- > >>>? ? ?Richard W. Greenwood, PLS > >>> www.greenwoodmap.com > > >> > >>? ? ?_______________________________________________ > >>? ? ?mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > > >>? ? ? > > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > >? ? ?_______________________________________________ > >? ? ?mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > >? ? ? > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Richard W. Greenwood, PLS > > www.greenwoodmap.com > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu Apr 25 06:30:19 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 25 Apr 2019 10:30:19 -0300 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> Message-ID: <41d4e3c0-6c4c-c17a-7c5e-3e0599277f88@gatewaygeomatics.com> On 2019-04-25 10:15 AM, Jeff McKenna wrote: > Hi Rich, > > For Windows builds for MS4W I've been compiling SWIG master from source > to handle PHP mapscript with PHP7.? On unix you can use the recent SWIG > 4.0-beta1 release: > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz? To be > honest I'll likely stick with master, as I've now had to use that for > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in > the works for a long time).? My point is, you may also choose to stick > with master too. > > Hope that helps, > > -jeff > > Ha I guess my long email wasn't precise enough, I should have said: don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1. (for PHP7 support) -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From sethg at geographika.co.uk Thu Apr 25 15:32:14 2019 From: sethg at geographika.co.uk (Seth G) Date: Thu, 25 Apr 2019 18:32:14 -0400 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: <41d4e3c0-6c4c-c17a-7c5e-3e0599277f88@gatewaygeomatics.com> References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> <41d4e3c0-6c4c-c17a-7c5e-3e0599277f88@gatewaygeomatics.com> Message-ID: Hi, I made a few minor changes to the PHP CMakeLists.txt in https://github.com/mapserver/mapserver/pull/5797 I've also added a wiki page detailing a full build process at https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build This relies on updating the mapscript/phpng/CMakeLists.txt file first. Richard - if you get a chance to follow these steps and see if it works for you that would be useful. Jeff - there might be some useful info on Windows PHP builds at https://github.com/mapserver/mapserver/issues/5795 The SWIG 4.0.0 is in beta (and seems to break Python at the moment), but maybe we can move to that when it is officially released to add builds to the Travis and Appveyor builds. Seth -- web:http://geographika.co.uk twitter: @geographika On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote: > On 2019-04-25 10:15 AM, Jeff McKenna wrote: > > Hi Rich, > > > > For Windows builds for MS4W I've been compiling SWIG master from source > > to handle PHP mapscript with PHP7.? On unix you can use the recent SWIG > > 4.0-beta1 release: > > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz? To be > > honest I'll likely stick with master, as I've now had to use that for > > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in > > the works for a long time).? My point is, you may also choose to stick > > with master too. > > > > Hope that helps, > > > > -jeff > > > > > > Ha I guess my long email wasn't precise enough, I should have said: > don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1. (for PHP7 > support) -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Thu Apr 25 19:13:53 2019 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 25 Apr 2019 20:13:53 -0600 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> <41d4e3c0-6c4c-c17a-7c5e-3e0599277f88@gatewaygeomatics.com> Message-ID: I finally got PHPNG to build. As Jeff suggested, I built and installed SWIG 4.0 beta but that didn't help. I compared my configure flags against Seth's at https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build and it appears -DWITH_PYTHON=ON is what I was missing. Does that make sense to anybody? It certainly doesn't to me. I made a small edit to wiki/PHPNG-SWIG-MapScript-Linux-Build adding "*../*" to the end of the cmake command. Thanks Seth and Jeff. Rich On Thu, Apr 25, 2019 at 4:32 PM Seth G wrote: > Hi, > > I made a few minor changes to the PHP CMakeLists.txt in > https://github.com/mapserver/mapserver/pull/5797 > I've also added a wiki page detailing a full build process at > https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build > This relies on updating the mapscript/phpng/CMakeLists.txt file first. > Richard - if you get a chance to follow these steps and see if it works > for you that would be useful. > > Jeff - there might be some useful info on Windows PHP builds at > https://github.com/mapserver/mapserver/issues/5795 > The SWIG 4.0.0 is in beta (and seems to break Python at the moment), but > maybe we can move to that when it is officially released to add builds to > the Travis and Appveyor builds. > > Seth > > > -- > web:http://geographika.co.uk > twitter: @geographika > > On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote: > > On 2019-04-25 10:15 AM, Jeff McKenna wrote: > > > Hi Rich, > > > > > > For Windows builds for MS4W I've been compiling SWIG master from > source > > > to handle PHP mapscript with PHP7. On unix you can use the recent > SWIG > > > 4.0-beta1 release: > > > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz To be > > > honest I'll likely stick with master, as I've now had to use that for > > > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in > > > the works for a long time). My point is, you may also choose to stick > > > with master too. > > > > > > Hope that helps, > > > > > > -jeff > > > > > > > > > > Ha I guess my long email wasn't precise enough, I should have said: > > don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1. (for PHP7 > > support) -jeff > > > > > > > > -- > > Jeff McKenna > > MapServer Consulting and Training Services > > https://gatewaygeomatics.com/ > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Apr 29 04:43:25 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 29 Apr 2019 08:43:25 -0300 Subject: [mapserver-users] mapserver 7.4 beta phpng build error In-Reply-To: References: <50802267-5cb3-4534-8ab4-f612743d015a@www.fastmail.com> <579c8e3a-baca-4000-b5d9-21147b520d10@www.fastmail.com> <46b72b6b-922e-4448-b9e5-4addf53ceb23@www.fastmail.com> <97d5f0a7-3a93-4588-9cb9-d677eae4f021@www.fastmail.com> <41d4e3c0-6c4c-c17a-7c5e-3e0599277f88@gatewaygeomatics.com> Message-ID: Hi Rich, A small update: SWIG 4.0 was released yesterday. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-04-25 11:13 PM, Richard Greenwood wrote: > I finally got PHPNG to build. As Jeff suggested, I built and installed > SWIG 4.0 beta but that didn't help. I compared my configure flags > against Seth's at > https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build > and it appears?-DWITH_PYTHON=ON is what I was missing. Does that make > sense to anybody? It certainly doesn't to me. > > I made a small edit to?wiki/PHPNG-SWIG-MapScript-Linux-Build adding > "*../*" to the end of the cmake command. > > Thanks Seth and Jeff. > > Rich > > > On Thu, Apr 25, 2019 at 4:32 PM Seth G > wrote: > > Hi, > > I made a few minor changes to the PHP CMakeLists.txt in > https://github.com/mapserver/mapserver/pull/5797 > I've also added a wiki page detailing a full build process at > https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build > This relies on updating the mapscript/phpng/CMakeLists.txt file first. > Richard - if you get a chance to follow these steps and see if it > works for you that would be useful. > > Jeff - there might be some useful info on Windows PHP builds at > https://github.com/mapserver/mapserver/issues/5795 > The SWIG 4.0.0 is in beta (and seems to break Python at the moment), > but maybe we can move to that when it is officially released to add > builds to the Travis and Appveyor builds. > > Seth > > > -- > web:http://geographika.co.uk > twitter: @geographika > > On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote: > > On 2019-04-25 10:15 AM, Jeff McKenna wrote: > > > Hi Rich, > > > > > > For Windows builds for MS4W I've been compiling SWIG master > from source > > > to handle PHP mapscript with PHP7.? On unix you can use the > recent SWIG > > > 4.0-beta1 release: > > > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz? To be > > > honest I'll likely stick with master, as I've now had to use > that for > > > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has > been in > > > the works for a long time).? My point is, you may also choose > to stick > > > with master too. > > > > > > Hope that helps, > > > > > > -jeff > > > > > > > > > > Ha I guess my long email wasn't precise enough, I should have said: > > don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.? ?(for PHP7 > > support)? -jeff > > > > From pschmitt at gmail.com Mon Apr 29 09:40:32 2019 From: pschmitt at gmail.com (Peter Schmitt) Date: Mon, 29 Apr 2019 10:40:32 -0600 Subject: [mapserver-users] Conditional BANDS directive based on underlying data Message-ID: Hi, When my data is 4-band (BGRN), I use the BANDS processing directive to yield RGB tiles, like so: PROCESSING "BANDS=4,3,2" Is there a way to have a single layer within a Mapfile that will set this directive to 4,3,2 when the underlying data has four bands and either skip the directive or set it to 1,2,3 when the underlying data is 3-band? The only thing I can think of is it to try runtime substitution, where my request might include the band order like "REQUEST=WMS&the_band_order=4,3,2&...." and then configure my mapfile accordingly: PROCESSING "BANDS=%the_band_order%" Is there another way which doesn't require the client to know about the underlying data? FWIW, my ultimate use-case serves mosaics using a tile index generated from Postgis. The Postgis table could have a column storing the band information, but I'm not sure how to extract that in my LAYER/BANDS Processing directive. Thanks! Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Mon Apr 29 10:25:28 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 29 Apr 2019 17:25:28 +0000 Subject: [mapserver-users] Mapcache: Modifying GoogleMapsCompatible grid? Message-ID: <953ce6e34a844e83af98191afed6b7c3@co.lyon.mn.us> Hello, Within Mapcache, Is it considered "good form" to modify the GoogleMapsCompatible grid to add additional resolutions so we can zoom in closer to the map? Will I just need to override the grid in mapcache.xml, or will I need to create a new grid by copying the parameters on https://mapserver.org/mapcache/config.html? Background: WMS seems to work in ArcMap using any MapCache grid (UTM 15N, Lyon County, Google, WGS84). However when using WMTS, ArcMap only displays the Google and WGS 84 grids in the correct location. Therefore I plan on using the GoogleMapsCompatible grid until the issue with ArcMap is resolved, but I would like to zoom in closer on the map. Thanks Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Mon Apr 29 10:23:41 2019 From: even.rouault at spatialys.com (Even Rouault) Date: Mon, 29 Apr 2019 19:23:41 +0200 Subject: [mapserver-users] Conditional BANDS directive based on underlying data In-Reply-To: References: Message-ID: <38918275.gOu2XHDSHF@even-i700> On lundi 29 avril 2019 10:40:32 CEST Peter Schmitt wrote: > Hi, > > When my data is 4-band (BGRN), I use the BANDS processing directive to > yield RGB tiles, like so: > > PROCESSING "BANDS=4,3,2" > > Is there a way to have a single layer within a Mapfile that will set this > directive to 4,3,2 when the underlying data has four bands and either skip > the directive or set it to 1,2,3 when the underlying data is 3-band? > > The only thing I can think of is it to try runtime substitution, where my > request might include the band order like > "REQUEST=WMS&the_band_order=4,3,2&...." and then configure my mapfile > accordingly: > > PROCESSING "BANDS=%the_band_order%" > > Is there another way which doesn't require the client to know about the > underlying data? FWIW, my ultimate use-case serves mosaics using a tile > index generated from Postgis. The Postgis table could have a column storing > the band information, but I'm not sure how to extract that in my > LAYER/BANDS Processing directive. Use a VRT that does the band reordering, and use it in your tile index. Even -- Spatialys - Geospatial professional services http://www.spatialys.com From steve.lime at state.mn.us Mon Apr 29 11:25:59 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 29 Apr 2019 18:25:59 +0000 Subject: [mapserver-users] Mapcache: Modifying GoogleMapsCompatible grid? In-Reply-To: <953ce6e34a844e83af98191afed6b7c3@co.lyon.mn.us> References: <953ce6e34a844e83af98191afed6b7c3@co.lyon.mn.us> Message-ID: I would create a new grid, coping from the default grid, and then add additional zoom levels... From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Monday, April 29, 2019 12:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapcache: Modifying GoogleMapsCompatible grid? Hello, Within Mapcache, Is it considered "good form" to modify the GoogleMapsCompatible grid to add additional resolutions so we can zoom in closer to the map? Will I just need to override the grid in mapcache.xml, or will I need to create a new grid by copying the parameters on https://mapserver.org/mapcache/config.html? Background: WMS seems to work in ArcMap using any MapCache grid (UTM 15N, Lyon County, Google, WGS84). However when using WMTS, ArcMap only displays the Google and WGS 84 grids in the correct location. Therefore I plan on using the GoogleMapsCompatible grid until the issue with ArcMap is resolved, but I would like to zoom in closer on the map. Thanks Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Mon Apr 29 13:28:36 2019 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 29 Apr 2019 20:28:36 +0000 Subject: [mapserver-users] FYI: Use multiples of 2 on your grids with when using WMTS and ArcGIS and Mapcache Message-ID: <67b60c43354f4444ab51523b5e6c9842@co.lyon.mn.us> Hello, Please be advised that you may need to use multiples 2 on your Mapcache grids when serving WMTS to ArcGIS. Fails: 1024 512 256 128 64 32 16 8 4 2.5 1.334 0.667 0.333 Works: 1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 I do not know if this is a limitation of ArcGIS, Mapcache, or an expectation with any WMTS server. Please feel free to fact check this. Thank You! Sincerely, Mark Volz, GISP Lyon County GIS Coordinator -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Apr 30 03:41:13 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 30 Apr 2019 10:41:13 +0000 Subject: [mapserver-users] Conditional BANDS directive based on underlying data Message-ID: <94ee836a00834bbe926f1de3abac037c@C119S212VM042.msvyvi.vaha.local> Hi, As Even already answered, using vrt files over the BGRN originals will work. We had a need to use both grayscale originals and vrt-falsified RGB versions (the only band pointing to red, green, and blue in .vrt) in the same service. We have only one tileindex in PostGIS, made from the tiff images, but it can be modified on-the-fly in the tileindex layer DATA "the_geom from (SELECT the_geom, fid, CASE WHEN filepath like '%_mv_%' THEN replace(filepath,'TIFF','vrt') ELSE filepath END AS location,? -Jukka Rahkonen- L?hett?j?: mapserver-users Puolesta Peter Schmitt L?hetetty: maanantai 29. huhtikuuta 2019 19.41 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Conditional BANDS directive based on underlying data Hi, When my data is 4-band (BGRN), I use the BANDS processing directive to yield RGB tiles, like so: PROCESSING "BANDS=4,3,2" Is there a way to have a single layer within a Mapfile that will set this directive to 4,3,2 when the underlying data has four bands and either skip the directive or set it to 1,2,3 when the underlying data is 3-band? The only thing I can think of is it to try runtime substitution, where my request might include the band order like "REQUEST=WMS&the_band_order=4,3,2&...." and then configure my mapfile accordingly: PROCESSING "BANDS=%the_band_order%" Is there another way which doesn't require the client to know about the underlying data? FWIW, my ultimate use-case serves mosaics using a tile index generated from Postgis. The Postgis table could have a column storing the band information, but I'm not sure how to extract that in my LAYER/BANDS Processing directive. Thanks! Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From pschmitt at gmail.com Tue Apr 30 13:30:48 2019 From: pschmitt at gmail.com (Peter Schmitt) Date: Tue, 30 Apr 2019 14:30:48 -0600 Subject: [mapserver-users] Conditional BANDS directive based on underlying data In-Reply-To: <94ee836a00834bbe926f1de3abac037c@C119S212VM042.msvyvi.vaha.local> References: <94ee836a00834bbe926f1de3abac037c@C119S212VM042.msvyvi.vaha.local> Message-ID: On Tue, Apr 30, 2019 at 4:41 AM Rahkonen Jukka (MML) < jukka.rahkonen at maanmittauslaitos.fi> wrote: > > As Even already answered, using vrt files over the BGRN originals will > work. We had a need to use both grayscale originals and vrt-falsified RGB > versions (the only band pointing to red, green, and blue in .vrt) in the > same service. We have only one tileindex in PostGIS, made from the tiff > images, but it can be modified on-the-fly in the tileindex layer > > > > DATA "the_geom from (SELECT the_geom, fid, CASE WHEN filepath like > '%_mv_%' THEN replace(filepath,'TIFF','vrt') ELSE filepath END AS location,? > > > Thanks Jukka & Even! A tile index of VRTs should work quite well for my use case. Cheers, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: