Re: [mapserver-users] Help with expression
The expression seems fine as is. You seem to be using the xml mapfile syntax, correct? Try posting the actual EXPRESSION written in the mapfile, maybe the xml to mapfile conversion is failing here. -- thomas On 27/01/2014 22:20, Chrishelring wrote: Hi, I´m struggeling with an expression, hoping you guys can help. I need to select a subset of data using an expression like the one below. Status is char. Komnr, datoforsl, datovedt, datoaflyst are all integers I´m trying with the following expression but somehow it´s not working.. expression('[status]' = 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0)/expression Any ideas? Christian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] really huge maps / MAXSIZE
Hello MapServer users, with the MAXSIZE parameter I can limit the output size. Does the value depend only on the available memory? When I set it to high, MapServer is crashing. I was wondering if there is an option to force MapServer to use an additional (slow) memory like a hard disk to make sure the rendering size doesn't matter. An other solution would be to write a script which splits a render request into smaller ones and stitches the results together. That would be independent from MapServer. With really huge maps I mean more than 5 pixel. With 32GB I can manage up to 4 pixel. Is anyone else running MapServer at its pixel limit? How do you handle it? Best wishes, Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] really huge maps / MAXSIZE
Lars, please have a look and try out https://github.com/mapserver/mapserver/pull/4796 - you can comment directly in that issue with your results. -- thomas On 28/01/2014 10:16, Lars Lingner wrote: Hello MapServer users, with the MAXSIZE parameter I can limit the output size. Does the value depend only on the available memory? When I set it to high, MapServer is crashing. I was wondering if there is an option to force MapServer to use an additional (slow) memory like a hard disk to make sure the rendering size doesn't matter. An other solution would be to write a script which splits a render request into smaller ones and stitches the results together. That would be independent from MapServer. With really huge maps I mean more than 5 pixel. With 32GB I can manage up to 4 pixel. Is anyone else running MapServer at its pixel limit? How do you handle it? Best wishes, Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] really huge maps / MAXSIZE
Lars Lingner wrote: Hello MapServer users, with the MAXSIZE parameter I can limit the output size. Does the value depend only on the available memory? When I set it to high, MapServer is crashing. I was wondering if there is an option to force MapServer to use an additional (slow) memory like a hard disk to make sure the rendering size doesn't matter. An other solution would be to write a script which splits a render request into smaller ones and stitches the results together. That would be independent from MapServer. With really huge maps I mean more than 5 pixel. With 32GB I can manage up to 4 pixel. Is anyone else running MapServer at its pixel limit? How do you handle it? With gdal_translate and GDAL WMS driver http://www.gdal.org/frmt_wms.html. You can set a reasonable block size in the XML config file and gdal_translate does the rest automatically for you. By making smaller request you will probably get the total huge output faster but it is easy to play with blocksize and stopwatch and see how it really behaves in your environment. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with expression
Hi, Thats right. :) Below is the full section from the map-file. layer name 'lokalplaner-udarbejdelse' status off type polygon connectiontype WFS connection 'http://geoservice.plansystem.dk/wfs?' metadata wfs_version 1.0.0 wfs_request_method GET wfs_typename lokalplan end class expression ('[status]' = 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0) style width 3 outlinecolor 0 0 0 end name 'Lokalplaner under udarbejdelse' label type TRUETYPE font arial color 0 0 0 outlinecolor 255 255 255 size 8 position cc offset 5 0 antialias true end end labelitem 'plannavn' group 'theme-lokalplaner_udarbejdelse' projection init=EPSG:25832 end end As you can see, and maybe I should have mentioned that is that the layer is a WFS. Could that be the issue? Christian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100398.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Installing mapserver 6.4 with cmake - custom library paths
I'm trying to install the latest version of mapserver (6.4) on my Linux webhosting account (webfaction.com). The default libraries such as GDAL, PROJ and Libxml2 on the WebFaction's server are quite old, so I installed the latest versions of gdal, proj and libxml2 in my $HOME/lib directory. I noticed that I should use the cmake tool to build mapserver. I need some help with cmake: How do I tell cmake to use the proj, gdal and libxml2 libraries from my $HOME/lib folder instead of the default locations? Here is the content of my $HOME/lib folder: drwxr-xr-x 2 keskari keskari 4096 Jan 25 19:45 gdalplugins -rw-r--r-- 1 keskari keskari 136728250 Jan 25 19:45 libgdal.a -rwxr-xr-x 1 keskari keskari 1054 Jan 25 19:45 libgdal.la lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so - libgdal.so.1.17.1 lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so.1 - libgdal.so.1.17.1 -rwxr-xr-x 1 keskari keskari 58424319 Jan 25 19:45 libgdal.so.1.17.1 -rw-r--r-- 1 keskari keskari 2442638 Jan 28 07:37 libproj.a -rwxr-xr-x 1 keskari keskari 922 Jan 28 07:37 libproj.la lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so - libproj.so.0.7.0 lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so.0 - libproj.so.0.7.0 -rwxr-xr-x 1 keskari keskari 1143691 Jan 28 07:37 libproj.so.0.7.0 -rw-r--r-- 1 keskari keskari 7214544 Jan 25 19:59 libxml2.a -rwxr-xr-x 1 keskari keskari 932 Jan 25 19:59 libxml2.la lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so - libxml2.so.2.8.0 lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so.2 - libxml2.so.2.8.0 -rwxr-xr-x 1 keskari keskari 4237533 Jan 25 19:59 libxml2.so.2.8.0 drwxrwxr-x 2 keskari keskari 4096 Jan 28 07:37 pkgconfig drwx-- 2 keskari keskari 4096 Aug 23 2012 python2.3 drwx-- 2 keskari keskari 4096 Jun 26 2013 python2.4 drwx-- 2 keskari keskari 4096 Aug 23 2012 python2.5 drwx-- 3 keskari keskari 4096 Jan 25 19:59 python2.6 drwxrwxr-x 42 keskari keskari 4096 Nov 23 07:43 python2.7 -rw-r--r-- 1 keskari keskari 216 Jan 25 19:59 xml2Conf.sh -- Jiří Kadlec Research Assistant Aalto university Lahti, Finland ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver-users Digest, Vol 72, Issue 43
Hi All, I'm having a bit of a struggle with something I thought was easy. In a getfeatureInfo request I want to show the class value instead of the actual value. I can do this with raster layers, but I don't get it working for a postgis layer. Of course I can modify my database request and return the class description, but then I have to change the database every time I want to change the class boundaries. So my question is how do I get the name of the class 501 - 750 meter instead of the value for afstand_ruw in my getfeatureinfo request. CLASS EXPRESSION ([afstand_ruw] 500 AND [afstand_ruw] = 750) NAME 501 - 750 meter STYLE COLOR 65 182 196 ANTIALIAS TRUE END STYLE MINSCALEDENOM 2 OUTLINECOLOR 65 182 196 WIDTH 0.3 END STYLE MAXSCALEDENOM 2 OUTLINECOLOR 22 61 65 WIDTH 0.4 END END Any advice would be welcome. Ronnie ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Installing mapserver 6.4 with cmake - custom library paths
https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174 On 28/01/2014 11:03, Jiří Kadlec wrote: I'm trying to install the latest version of mapserver (6.4) on my Linux webhosting account (webfaction.com). The default libraries such as GDAL, PROJ and Libxml2 on the WebFaction's server are quite old, so I installed the latest versions of gdal, proj and libxml2 in my $HOME/lib directory. I noticed that I should use the cmake tool to build mapserver. I need some help with cmake: How do I tell cmake to use the proj, gdal and libxml2 libraries from my $HOME/lib folder instead of the default locations? Here is the content of my $HOME/lib folder: drwxr-xr-x 2 keskari keskari 4096 Jan 25 19:45 gdalplugins -rw-r--r-- 1 keskari keskari 136728250 Jan 25 19:45 libgdal.a -rwxr-xr-x 1 keskari keskari 1054 Jan 25 19:45 libgdal.la lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so - libgdal.so.1.17.1 lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so.1 - libgdal.so.1.17.1 -rwxr-xr-x 1 keskari keskari 58424319 Jan 25 19:45 libgdal.so.1.17.1 -rw-r--r-- 1 keskari keskari 2442638 Jan 28 07:37 libproj.a -rwxr-xr-x 1 keskari keskari 922 Jan 28 07:37 libproj.la lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so - libproj.so.0.7.0 lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so.0 - libproj.so.0.7.0 -rwxr-xr-x 1 keskari keskari 1143691 Jan 28 07:37 libproj.so.0.7.0 -rw-r--r-- 1 keskari keskari 7214544 Jan 25 19:59 libxml2.a -rwxr-xr-x 1 keskari keskari 932 Jan 25 19:59 libxml2.la lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so - libxml2.so.2.8.0 lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so.2 - libxml2.so.2.8.0 -rwxr-xr-x 1 keskari keskari 4237533 Jan 25 19:59 libxml2.so.2.8.0 drwxrwxr-x 2 keskari keskari 4096 Jan 28 07:37 pkgconfig drwx-- 2 keskari keskari 4096 Aug 23 2012 python2.3 drwx-- 2 keskari keskari 4096 Jun 26 2013 python2.4 drwx-- 2 keskari keskari 4096 Aug 23 2012 python2.5 drwx-- 3 keskari keskari 4096 Jan 25 19:59 python2.6 drwxrwxr-x 42 keskari keskari 4096 Nov 23 07:43 python2.7 -rw-r--r-- 1 keskari keskari 216 Jan 25 19:59 xml2Conf.sh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with expression
I guess for string operations you need eq instead of =: expression ('[status]' eq 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0) Harry -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100409.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with expression
it's worth a try, however = is supposed to work for strings also. On 28/01/2014 11:26, kaipi wrote: I guess for string operations you need eq instead of =: expression ('[status]' eq 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0) Harry -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100409.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Installing mapserver 6.4 with cmake - custom library paths
I tried to understand the documentation https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174 But I'm still stuck. Here are the steps that I did: wget http://download.osgeo.org/mapserver/mapserver-6.4.1.tar.gz tar -xf mapserver-6.4.1.tar.gz cd mapserver-6.4.1 mkdir build cd build cmake -DCMAKE_PREFIX_PATH=$HOME:$HOME/bin:$HOME/lib:$HOME/bin/gdal-config -DCMAKE_INSTALL_PREFIX=$HOME -DWITH_WCS=1 -DWITH_WFS=1 -DWITH_PROJ=1 -DWITH_POSTGIS=1 -DWITH_FCGI=0 -DWITH_FRIBIDI=0 .. $HOME/bin/gdal-config --version is 1.10.1 $HOME/bin/proj is version 4.8.0 But for some reason, cmake still wants to use the old system version of gdal and proj libraries because it shows the following output: -- * Summary of configured options for this build -- * Mandatory components -- * png: /usr/lib64/libpng.so -- * jpeg: /usr/lib64/libjpeg.so -- * freetype: /usr/lib64/libfreetype.so -- * Optional components -- * GDAL: /usr/lib/libgdal.so -- * OGR: /usr/lib/libgdal.so -- * GD: disabled -- * GIF: /home/keskari/lib/libgif.so -- * MYSQL: disabled -- * FRIBIDI: disabled -- * GIF: /home/keskari/lib/libgif.so -- * CAIRO: /usr/lib64/libcairo.so -- * SVGCAIRO: disabled -- * RSVG: disabled -- * CURL: disabled -- * PROJ: /usr/lib64/libproj.so -- * LIBXML2: /usr/lib64/libxml2.so -- * POSTGIS: /usr/pgsql-9.1/lib/libpq.so -- * GEOS: /usr/lib64/libgeos_c.so -- * FastCGI: disabled -- * Oracle Spatial: disabled -- * SDE: disabled -- * Exempi XMP: disabled -- * Optional features -- * WMS SERVER: ENABLED -- * WFS SERVER: ENABLED -- * WCS SERVER: ENABLED -- * SOS SERVER: disabled -- * WMS CLIENT: disabled -- * WFS CLIENT: disabled -- * ICONV: ENABLED -- * Thread-safety support: disabled -- * KML output: disabled -- * Z+M point coordinate support: disabled -- * XML Mapfile support: disabled -- * Mapscripts -- * Python: disabled -- * PHP: disabled -- * PERL: disabled -- * RUBY: disabled -- * JAVA: disabled -- * C#: disabled -- * Apache Module (Experimental): disabled -- -- Will install files to /home/keskari -- Will install libraries to /home/keskari/lib64 -- Configuring done Also, I'm getting a lot of warnings like: CMake Warning at CMakeLists.txt:263 (add_executable): Cannot generate a safe runtime search path for target legend because files in some directories may conflict with libraries in implicit directories: runtime library [libproj.so.0] in /usr/lib64 may be hidden by files in: /home/keskari/lib runtime library [libgdal.so.1] in /usr/lib may be hidden by files in: /home/keskari/lib runtime library [libxml2.so.2] in /usr/lib64 may be hidden by files in: /home/keskari/lib Some of these libraries may not be found correctly. Why is CMake unable to find the correct GDAL and PROJ libraries? Can you see anything wrong I'm doing in my cmake command? Thanks, Jiri On Tue, Jan 28, 2014 at 12:18 PM, Thomas Bonfort thomas.bonf...@gmail.comwrote: https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174 On 28/01/2014 11:03, Jiří Kadlec wrote: I'm trying to install the latest version of mapserver (6.4) on my Linux webhosting account (webfaction.com). The default libraries such as GDAL, PROJ and Libxml2 on the WebFaction's server are quite old, so I installed the latest versions of gdal, proj and libxml2 in my $HOME/lib directory. I noticed that I should use the cmake tool to build mapserver. I need some help with cmake: How do I tell cmake to use the proj, gdal and libxml2 libraries from my $HOME/lib folder instead of the default locations? Here is the content of my $HOME/lib folder: drwxr-xr-x 2 keskari keskari 4096 Jan 25 19:45 gdalplugins -rw-r--r-- 1 keskari keskari 136728250 Jan 25 19:45 libgdal.a -rwxr-xr-x 1 keskari keskari 1054 Jan 25 19:45 libgdal.la lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so - libgdal.so.1.17.1 lrwxrwxrwx 1 keskari keskari17 Jan 25 19:45 libgdal.so.1 - libgdal.so.1.17.1 -rwxr-xr-x 1 keskari keskari 58424319 Jan 25 19:45 libgdal.so.1.17.1 -rw-r--r-- 1 keskari keskari 2442638 Jan 28 07:37 libproj.a -rwxr-xr-x 1 keskari keskari 922 Jan 28 07:37 libproj.la lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so - libproj.so.0.7.0 lrwxrwxrwx 1 keskari keskari16 Jan 28 07:37 libproj.so.0 - libproj.so.0.7.0 -rwxr-xr-x 1 keskari keskari 1143691 Jan 28 07:37 libproj.so.0.7.0 -rw-r--r-- 1 keskari keskari 7214544 Jan 25 19:59 libxml2.a -rwxr-xr-x 1 keskari keskari 932 Jan 25 19:59 libxml2.la lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so - libxml2.so.2.8.0 lrwxrwxrwx 1 keskari keskari16 Jan 25 19:59 libxml2.so.2 - libxml2.so.2.8.0 -rwxr-xr-x 1 keskari keskari 4237533 Jan 25 19:59 libxml2.so.2.8.0 drwxrwxr-x 2 keskari keskari 4096 Jan 28 07:37 pkgconfig drwx-- 2 keskari keskari 4096
Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?
Validation is required for substitution to work... -Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahko...@mmmtike.fi] Sent: Monday, January 27, 2014 11:15 PM To: Mapserver Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS? Hi, Documentation says that CONNECTION in one place where it is supported so have a try http://mapserver.org/cgi/runsub.html. Validation may be needed or not, I am not sure how to interpret the documentation but you will notice it soon. Take a habit to use DEBUG 5 and read your errorfile while experimenting. By the way, you do not read polygons from the remote WMS, you read rasters. Thus TYPE RASTER. -Jukka Rahkonen- Robert Sanson wrote: Hi Is it possible to have variable substitution within the CONNECTION string for CONNECTIONTYPE WMS? Here is a layer section from my mapfile: LAYER NAME farm GROUP CRS TYPE POLYGON STATUS ON CONNECTION http://remoteserver/cgi-bin/mywms.exe?farmid=%farmid%; CONNECTIONTYPE WMS METADATA wms_srs EPSG:2193 wms_namefarm wms_server_version 1.1.1 wms_format image/png wms_exceptions_format application/vnd.ogc.se_xml END END I am wanting to hit my cascading Mapserver WMS and pass it a farmid value which should then be passed through to the other WMS server for processing. Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with expression
Hmmm... If you make a request against the WFS server outside MapServer what does the result look like? Ideally you'd have the WFS server do the filtering and avoid sending extra features over the wire. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Chrishelring [christianhelr...@gmail.com] Sent: Tuesday, January 28, 2014 3:42 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Help with expression Hi, Thats right. :) Below is the full section from the map-file. layer name 'lokalplaner-udarbejdelse' status off type polygon connectiontype WFS connection 'http://geoservice.plansystem.dk/wfs?' metadata wfs_version 1.0.0 wfs_request_method GET wfs_typename lokalplan end class expression ('[status]' = 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0) style width 3 outlinecolor 0 0 0 end name 'Lokalplaner under udarbejdelse' label type TRUETYPE font arial color 0 0 0 outlinecolor 255 255 255 size 8 position cc offset 5 0 antialias true end end labelitem 'plannavn' group 'theme-lokalplaner_udarbejdelse' projection init=EPSG:25832 end end As you can see, and maybe I should have mentioned that is that the layer is a WFS. Could that be the issue? Christian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100398.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache: error with Berkeley DB and display tiles
Andreas, thanks for the explanation about the Berkeley Database. However, I have made several changes of permissions and owner of the files produced by mapcache_seed, and I still get the same error on the OpenLayers demo. I don't know if others users have had the same error with Mapcache and Berkeley Databases in Ubuntu Server. Have you build mapcache yourself or do you use a prebuild one? Today I build mapcache with BerkeleyDB support on a Debian Testing box. Basically, this is what I did: * check out latest master * apt-get install libdb5.1-dev * follow the install instructions in INSTALL, add -DWITH_BERKELEY_DB=ON to cmake .. and make sure * Berkeley DB: /usr/lib/... is listed under Optional components * add the following config element to mapcache.xml if it does not exist yet: cache name=bdb type=bdb !-- base (required) absolute filesystem path where the berkeley db database file is to be stored. this directory must exist, and be writable -- base/tmp/foo//base !-- key_template (optional) string template used to create the key for a tile entry in the database. defaults to the value below. you should include {tileset}, {grid} and {dim} here unless you know what you are doing, or you will end up with mixed tiles key_template{tileset}-{grid}-{dim}-{z}-{y}-{x}.{ext}/key_template -- /cache * create the base directory and grant access to web server: # mkdir /tmp/foo chgrp www-data /tmp/foo chmod g+rwx /tmp/foo * set the cache element to bdb in a tileset * populate the cache by seeding a tileset that uses a bdb-cache * the base should look something like this: # ls -l /tmp/foo/ insgesamt 11528 -rw-r--r-- 1 www-data www-data 9764864 Jan 28 13:30 bdb.db -rw-r- 1 www-data www-data 24576 Jan 28 13:35 __db.001 -rw-r- 1 www-data www-data 253952 Jan 28 13:35 __db.002 -rw-r- 1 www-data www-data 1318912 Jan 28 13:35 __db.003 -rw-r- 1 www-data www-data 811008 Jan 28 13:35 __db.004 * to verify this worked use the strings command on the bdb.db and grep for the tileset name: # strings /tmp/foo/bdb.db|grep MyTilesetName * use the demo service to check if it is working ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?
That was my impression too but paragraph Parameters Supported in http://mapserver.org/cgi/runsub.html emphasizes just these two: *LAYER: DATA (must validate against DATAPATTERN *OUTPUTFORMAT: FORMATOPTION: FILENAME (must have a MAP VALIDATION pattern) -Jukka- Lime, Steve D wrote: Validation is required for substitution to work... -Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users- boun...@lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahko...@mmmtike.fi] Sent: Monday, January 27, 2014 11:15 PM To: Mapserver Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS? Hi, Documentation says that CONNECTION in one place where it is supported so have a try http://mapserver.org/cgi/runsub.html. Validation may be needed or not, I am not sure how to interpret the documentation but you will notice it soon. Take a habit to use DEBUG 5 and read your errorfile while experimenting. By the way, you do not read polygons from the remote WMS, you read rasters. Thus TYPE RASTER. -Jukka Rahkonen- Robert Sanson wrote: Hi Is it possible to have variable substitution within the CONNECTION string for CONNECTIONTYPE WMS? Here is a layer section from my mapfile: LAYER NAME farm GROUP CRS TYPE POLYGON STATUS ON CONNECTION http://remoteserver/cgi-bin/mywms.exe?farmid=%farmid%; CONNECTIONTYPE WMS METADATA wms_srs EPSG:2193 wms_namefarm wms_server_version 1.1.1 wms_format image/png wms_exceptions_format application/vnd.ogc.se_xml END END I am wanting to hit my cascading Mapserver WMS and pass it a farmid value which should then be passed through to the other WMS server for processing. Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?
Those need to be removed, there's a validation section a little later in that same document that takes precedence. I'll create a documentation ticket. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Tuesday, January 28, 2014 8:35 AM To: Mapserver Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS? That was my impression too but paragraph Parameters Supported in http://mapserver.org/cgi/runsub.html emphasizes just these two: *LAYER: DATA (must validate against DATAPATTERN *OUTPUTFORMAT: FORMATOPTION: FILENAME (must have a MAP VALIDATION pattern) -Jukka- Lime, Steve D wrote: Validation is required for substitution to work... -Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users- boun...@lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahko...@mmmtike.fi] Sent: Monday, January 27, 2014 11:15 PM To: Mapserver Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS? Hi, Documentation says that CONNECTION in one place where it is supported so have a try http://mapserver.org/cgi/runsub.html. Validation may be needed or not, I am not sure how to interpret the documentation but you will notice it soon. Take a habit to use DEBUG 5 and read your errorfile while experimenting. By the way, you do not read polygons from the remote WMS, you read rasters. Thus TYPE RASTER. -Jukka Rahkonen- Robert Sanson wrote: Hi Is it possible to have variable substitution within the CONNECTION string for CONNECTIONTYPE WMS? Here is a layer section from my mapfile: LAYER NAME farm GROUP CRS TYPE POLYGON STATUS ON CONNECTION http://remoteserver/cgi-bin/mywms.exe?farmid=%farmid%; CONNECTIONTYPE WMS METADATA wms_srs EPSG:2193 wms_namefarm wms_server_version 1.1.1 wms_format image/png wms_exceptions_format application/vnd.ogc.se_xml END END I am wanting to hit my cascading Mapserver WMS and pass it a farmid value which should then be passed through to the other WMS server for processing. Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hide mapserv? messages
guys, this doesn't work. any help? RewriteEngine on RewriteCond %{REQUEST_URI} ^/cgi-bin/mapserv\?*$ [NC] RewriteRule /* /403.html [L,F] thks, jzs On Tue, Jan 7, 2014 at 6:37 PM, John Smith jayzee.sm...@gmail.com wrote: guys, you know how you get a message when you go to ../cgi-bin/mapserv? etc: No query information to decode.. etc. well, what do you do with such messages on your prod w*s servers? do you hide them? if so, how? they are getting flagged as xss etc errors and i need a way to handle them (mod_rewrite that sh*t?). thks, jzs ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hide mapserv? messages
see http://htaccess.madewithlove.be/ On Tue, Jan 28, 2014 at 2:51 PM, John Smith jayzee.sm...@gmail.com wrote: guys, this doesn't work. any help? RewriteEngine on RewriteCond %{REQUEST_URI} ^/cgi-bin/mapserv\?*$ [NC] RewriteRule /* /403.html [L,F] thks, jzs On Tue, Jan 7, 2014 at 6:37 PM, John Smith jayzee.sm...@gmail.com wrote: guys, you know how you get a message when you go to ../cgi-bin/mapserv? etc: No query information to decode.. etc. well, what do you do with such messages on your prod w*s servers? do you hide them? if so, how? they are getting flagged as xss etc errors and i need a way to handle them (mod_rewrite that sh*t?). thks, jzs ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] how to map_layer_class_name in 6.4.0?
in the past, I could do a runtime substitution of a class name by passing it like so: ..map_layer1_class1_name=new_name where in the map file, I had: MAP LAYER NAME layer1 CLASS NAME class1 and in the legend file, I had: [leg_class_name] so what changed? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache: error with Berkeley DB and display tiles
Andreas, thank you very much for your time in the instructions,now the display of tiles worked properly for Berkeley databases. I have followed the instructions for the Apache Server. However, I'm using Nginx and change the permissions of the Group and user as follows: sudo chown nginx:nginx /tmp/foo sudo chmod - Rfv g+rwx /tmp/foo Again many thanks for your help. I have checked all types of caches, and seems to work faster with Berkeley databases. regards, Samuel Mesa. 2014-01-28 Eichner, Andreas - SID-NLKM andreas.eich...@sid.sachsen.de Andreas, thanks for the explanation about the Berkeley Database. However, I have made several changes of permissions and owner of the files produced by mapcache_seed, and I still get the same error on the OpenLayers demo. I don't know if others users have had the same error with Mapcache and Berkeley Databases in Ubuntu Server. Have you build mapcache yourself or do you use a prebuild one? Today I build mapcache with BerkeleyDB support on a Debian Testing box. Basically, this is what I did: * check out latest master * apt-get install libdb5.1-dev * follow the install instructions in INSTALL, add -DWITH_BERKELEY_DB=ON to cmake .. and make sure * Berkeley DB: /usr/lib/... is listed under Optional components * add the following config element to mapcache.xml if it does not exist yet: cache name=bdb type=bdb !-- base (required) absolute filesystem path where the berkeley db database file is to be stored. this directory must exist, and be writable -- base/tmp/foo//base !-- key_template (optional) string template used to create the key for a tile entry in the database. defaults to the value below. you should include {tileset}, {grid} and {dim} here unless you know what you are doing, or you will end up with mixed tiles key_template{tileset}-{grid}-{dim}-{z}-{y}-{x}.{ext}/key_template -- /cache * create the base directory and grant access to web server: # mkdir /tmp/foo chgrp www-data /tmp/foo chmod g+rwx /tmp/foo * set the cache element to bdb in a tileset * populate the cache by seeding a tileset that uses a bdb-cache * the base should look something like this: # ls -l /tmp/foo/ insgesamt 11528 -rw-r--r-- 1 www-data www-data 9764864 Jan 28 13:30 bdb.db -rw-r- 1 www-data www-data 24576 Jan 28 13:35 __db.001 -rw-r- 1 www-data www-data 253952 Jan 28 13:35 __db.002 -rw-r- 1 www-data www-data 1318912 Jan 28 13:35 __db.003 -rw-r- 1 www-data www-data 811008 Jan 28 13:35 __db.004 * to verify this worked use the strings command on the bdb.db and grep for the tileset name: # strings /tmp/foo/bdb.db|grep MyTilesetName * use the demo service to check if it is working -- --- .~. / v \ //\\ /( )\ ^`~'^ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Publishing International Characters (Hindi) labels in WMS
I have UTF-8 encoded shape file (i.e. shape file with cpg “UTF-8”) and trying to publish WMS with International Characters (Hindi) labels in via MapServer. As per attached snapshot, I am able to view International Characters (Hindi) labels in ESRI ArcDesktop. http://osgeo-org.1560.x6.nabble.com/file/n5100605/hindi.png My Font file is arial2 arial.ttf My Map file is LAYER DATA C:/Temp/Hindi2.shp NAME POINT TYPE POINT LABELITEM HINDI CLASS LABEL FONT arial2 TYPE TRUETYPE SIZE 5 COLOR 0 0 255 MINDISTANCE -1 MINFEATURESIZE -1 PARTIALS TRUE POSITION CR OFFSET 5 0 PRIORITY 10 BUFFER 1 OUTLINECOLOR 204 255 255 ENCODING UTF-8 END STYLE COLOR 163 123 57 SIZE 5 SYMBOL CIRCLE STYLE OUTLINECOLOR 163 123 57 WIDTH 1 END END END In WMS GetMap URL label output is “???” Please help me in resolving this issue of displaying International Characters (Hindi) lables via MapServer. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Publishing-International-Characters-Hindi-labels-in-WMS-tp5100605.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Publishing International Characters (Hindi) labels in WMS
The font you select has to have the Hindi glyphs in it. Also what version of mapserver are you using? Also see: https://github.com/mapserver/mapserver/issues/4630 https://github.com/mapserver/mapserver/issues/4673 http://mapserver.org/development/rfc/ms-rfc-98.html -Steve W On 1/29/2014 12:13 AM, davequery78 wrote: I have UTF-8 encoded shape file (i.e. shape file with cpg “UTF-8”) and trying to publish WMS with International Characters (Hindi) labels in via MapServer. As per attached snapshot, I am able to view International Characters (Hindi) labels in ESRI ArcDesktop. http://osgeo-org.1560.x6.nabble.com/file/n5100605/hindi.png My Font file is arial2 arial.ttf My Map file is LAYER DATA C:/Temp/Hindi2.shp NAME POINT TYPE POINT LABELITEM HINDI CLASS LABEL FONT arial2 TYPE TRUETYPE SIZE 5 COLOR 0 0 255 MINDISTANCE -1 MINFEATURESIZE -1 PARTIALS TRUE POSITION CR OFFSET 5 0 PRIORITY 10 BUFFER 1 OUTLINECOLOR 204 255 255 ENCODING UTF-8 END STYLE COLOR 163 123 57 SIZE 5 SYMBOL CIRCLE STYLE OUTLINECOLOR 163 123 57 WIDTH 1 END END END In WMS GetMap URL label output is “???” Please help me in resolving this issue of displaying International Characters (Hindi) lables via MapServer. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Publishing-International-Characters-Hindi-labels-in-WMS-tp5100605.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] wcs 1.0.0 bbox problem
Hi, executing the following request https://devcloud.blackbridge.com/wcs/PlenumsoftDemo?SERVICE=WCSVERSION=1.0.0REQUEST=GetCoverageCOVERAGE=testdata_rawFORMAT=GEOTIFF_INT16RESX=5RESY=5RESPONSE_CRS=EPSG:32616CRS=EPSG:4326TIME=2012-04-05 results in ?xml version='1.0' encoding=ISO-8859-1 ? xmlns=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengeospatial.net/wcs/1.0.0/OGC-exception.xsd; msWCSGetCoverage(): WCS server error. Requested BBOX (-2.5,-2.5,2.5,2.5) is outside requested coverage BBOX (210500,2230500,261500,2281500) msProjectRect(): Projection library error. All points failed to reproject. msProjectPoint(): Projection library error. proj says: latitude or longitude exceeded limits The corresponding layer d3efinition is: MAP ... LAYER # this is the tileindex that aggregates the single image products together and makes them accessible by date and extend NAME data_raw_idx STATUS ON DEBUG 5 TYPE POLYGON DATA /mnt/mapserver/mapserver_wms/Raster/Plenumosft_RE_Sample_forWCS/plenumsoft_demo_data PROJECTION init=epsg:32616 END VALIDATION # 'productid' '^([0-9])$' END #FILTER ( '[productid]'='%productid%') METADATA #'productid_validation_pattern' '^([0-9])$' #'default_productid' '1234567' #disable explicitly everything that shall not be supported for this Layer wms_enable_request !GetCapabilities !GetMap !GetLegendgraphic wcs_enable_request !GetCapabilities !GetCoverage !DescribeCoverage wfs_enable_request !GetCapabilities !GetFeature !DescribeFeatureType END END LAYER # this layer serves the 16bit raw data NAME testdata_raw STATUS ON DUMP TRUE DEBUG 5 TYPE RASTER ### required PROJECTION init=epsg:32616 END OFFSITE 0 0 0 UNITS meters TILEINDEX data_raw_idx TILEITEM location #MASK mask2 METADATA wcs_title 5 band 16bit RE Testdata with time support wcs_extent 210500.0 2230500.0 261500.0 2281500.0 # shall be set dynamically by the wrapper script on mapObj base wcs_srs EPSG:4326 EPSG:900913 EPSG:3857 EPSG:32615 EPSG:32616 EPSG:32617 wcs_label 5 band 16bit RE Testdata ### required wcs_rangeset_axes bands wcs_rangeset_name Bands ### required to support DescribeCoverage request wcs_rangeset_label RE Radiometric Bands ### required to support DescribeCoverage request wcs_rangeset_nullvalue 0 #wcs_size 15000 15000 #if we have a global ows_extent set in web-metadata and a wcs_resolution this gets calculated by mapserver wcs_resolution 5.0 5.0 wcs_bandcount 5 wcs_band_names Blue Green Red Rededge Nir wcs_imagemode INT16 wcs_formats GEOTIFF_INT16 AAIGRID wcs_native_format image/tiff wcs_nativeformat GTiff wcs_enable_request * wcs_timeposition 2011-01-04,2011-04-20,2012-04-05 #this might get set by the mapscript wrapper accodingly to the dates avaialable for the service and is mandatory to allow temporal subsettings wcs_timeextent 2011-01-04/2012-04-05 # shall be set dynamically by the wrapper script on mapObj base wcs_timeitem acquidate #disable explicitly everything that shall not be supported for this Layer wms_enable_request !GetCapabilities !GetMap !GetLegendgraphic wfs_enable_request !GetCapabilities !GetFeature !DescribeFeatureType END CLASS NAME 5 Band (16bit) RE Imagedata KEYIMAGE drgs_keyimage.png END END ... END If i use CRS=EPSG:32616 which is the epsg code of the layer itself, everything works fine. I would expect that mapserver would reproject the wcs_extent or layer_extent or map_extent to the given CRS and use that BBOX by default. related to: https://github.com/mapserver/mapserver/issues/4853 -- Peter Freimuth ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users