Re: [MapServer-users] What is the optimal value of requests per second for Mapserver?
As Oskar wrote, there is no single answer to this question. It depends on lots of factors. To give you an idea, you may be interested in checking out the FOSS4G WMS Benchmarks [1], a friendly competition that took place for a few years at FOSS4G comparing MapServer and other contenders under various types of load. Since there is LOTS of info in there, I suggest that you start by reviewing the 2011 benchmark presentation [2] to get a first overview of the tests and the results, and then if you want to know more you can find more details on the benchmark environment in the wiki at [3]. Daniel [1] https://wiki.osgeo.org/wiki/FOSS4G_Benchmark [2] https://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/ [3] https://wiki.osgeo.org/wiki/Benchmarking_2011 On 2023-04-20 09:59, Oskar Ravhed wrote: It is impossible to answer on without knowing what kind of for wms/wcs/wfs you are serving with mapserver For example a simple raster wms will be able to do many request per second. On the other side serve out osm from a postgis database will in some heavy scale not do more then 1 tile every 5 second I would determ it based on cpu/disk usage instead of request per second On 20/04/2023 15:48, Marcin Niemyjski via MapServer-users wrote: Hello I'm looking for a benchmark advice. If I have a machine running on 6 CPUs and 25gb RAM what would be the value of the number of requests per second from which I should start scaling my VMs with Mapserver? Is there any way of testing or investingating? I'm using Locust and JMeter but it's really hard to get a logical answer for this question. Best, Marcin <https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous=signature> Book time to meet with me <https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous=signature> ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] My first mapserver project - a short review
Hi Stefan, Great to hear this kind of feedback! I had to chime in because what you wrote sounds so much like my own first experience with MapServer and you reminded me of my first post to this list... 22 years ago! Great to see that ease of use and performance are still two key differentiators that are still true 22 years later! https://lists.osgeo.org/pipermail/mapserver-users/2000-January/027641.html """ Subject: Wow! [...] I am new to this list and to MapServer, but I thought I should write a note just to say that I've been quite impressed with MapServer until now! Within a couple of hours, I was able to build/install MapServer, get the demo running, learn the way map files work and... use it to reproduce the most part of a web mapping application that we had previously built using a very expensive web mapping package (I won't give names!!!). And the "worst" in all that is that the MapServer version is at least 10 times faster than the original... Wow! I can already see lots of potential uses for it! [...] """ Daniel On 2022-10-13 13:21, Stefan Gofferje wrote: Hi all, so I just basically completed my first little mapserver project - an "off- grid/emergency" mapserver for a Raspberry Pi. Although I played with mapserver for a moment about 1.5 years ago, I would say that I entered into the project with zero knowledge of mapserver, mapcache and only general user-level knowledge of GIS in general. I am a Linux geek, though... I was able to get my target functionality - serving a multi-resolution topographic map of Finland from Finnish Land survey data via WMS in about 12 hours over 2 days focused tinkering. Not sure if that's generally fast or slow but I'm pretty happy with how it went. I relied mostly on Google searches, of course on the documentation and I got some really good ("jackpot") pointers from the community on this list. Only thing missing now is a script for automatic pulling, sorting into folders, gdaltindex'ing and ogrinfo'ing of the raw data. Once I have that ready, I'm planning to post either to my blog or maybe put it to Github. Following are just some random thoughts which I thought my interest the community or the developers. Why did I selected mapserver originally? Because GeoServer is Java and I don't like Java. That actually was my original primary reason :D. After getting into mapserver, though, I have a few more reasons to like it, the primary being the structure of the map files and the fact that it hot reloads map files without a restart. I can come up with a thousand new use cases and ideas for mapserver for me just because of the map files and how easy they can be created programmaticly. What do I think of mapserver now? I love it! First: map files (see above). The map file structure makes sense to me as a non-GIS-expert and with a few exceptions (projections... ... ...) is pretty logical. Then the relatively low memory footprint (I run way too many containers on my poor little tinker server at home...). Also, performance is quite good on my hardware for my use case so far. Documentation... Oh well... The documentation is - well - thorough... But it's not "fast". Basically, if you don't know anything about mapserver, you kinda have to read and understand the whole documentation before you can get a mapserver started. You gotta become an expert first and then you can run the server. I personally like to get started with new things so, that I start something small which I then slowly expand or use as a base for new, bigger ideas. That way, my knowledge grows slower but I have something working pretty quickly. Luckily, mapserver seems to have a huge user base and there's a ton of blog posts, tutorials and examples out there, so together with that, the documentation used for filling the gaps which the community documents leave, it worked well for me. I would though like to suggest a few "Quick start guides" for common use cases, such as a WMS server, which can get a newbie up and running faster. Which leads me to the community... Guys, you're fantastic! I think, in my 35 years of using Linux, I have never gotten replies to questions on a mailing list as fast as here. And good replies! And all those blog posts and little snippets out there... Awesome! Seriously, just the community makes me want to come up with some new use cases :D. So much for now... See you all soon on my next mapserver project :D -Stefan -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Recoloring a raster...
Maybe I misunderstood the question, is it not what raster class expressions are for? https://mapserver.org/input/raster.html#classifying-rasters CLASS NAME "red -> blue" EXPRESSION ([red] = 255 AND [green] = 0 AND [blue] = 0) STYLE COLOR 0 0 255 END END On 2021-09-16 12:46, Steve Lime wrote: Hi all: I think this is possible. What's the easiest/best way to recolor a raster image, so for example, turning all pixels of 255 0 0 to 0 0 255? There are only 6 colors in the input image I need to deal with. --Steve ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Client returns data at random with very same call
7/May/2021:06:30:35 +] "GET /cgi-bin/mapserv?map=/var/www/html/wfs.map=WFS=2.0.0=GetFeature=EPSG:3857=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144=TestLayer HTTP/1.1" 200 793 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" 330 - 172.17.0.1 - - [27/May/2021:06:30:38 +] "GET /favicon.ico HTTP/1.1" 200 414 "http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map=WFS=2.0.0=GetFeature=EPSG:3857=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144=TestLayer; "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" """ I will be grateful for any clue on what is going on. Thank you for your trouble! Best Lars SkenData Email Signatur ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Slow and degrading performance with radar (but not satellite) on mapserver-6.0.1-3_0.el6.x86_64
request, disk I/O, SQL query? The previous person working on it tried turning on debug at various levels – but unfortunately that made it even slower, making it tricky to answer “what is making it slow when debug is turned off?” My first instinct was to try an strace and nothing was obvious. Next up – a flame graph from strace, and/or trying dtrace – but my understanding is that dtrace is a little weak on RHEL/CentOS/Amazon Linux 6.0 **and** I’m not particularly good at that. Also, we’re using fcgi, so attaching to the correct process is a bit tricky. My next instinct was to look at release notes and see if the current stable has anything fixes/improvements that directly address this – there aren’t any that are obvious to my eyes, but you developers have been busy! So many things! Including some performance fixes and one “significant” performance fix. Current config file: AddHandler fcgid-script fcgi FcgidIPCDir /var/run/mod_fcgid FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm FcgidMaxProcesses 10 FcgidMaxProcessesPerClass 10 FcgidMaxRequestInMem 196608 FcgidInitialEnv PROJ_LIB /usr/share/proj FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib:/usr/pgsql-9.1/lib" So – suggestions for my next move? I currently plan to take a quick swing at building 7.6 for RHEL 6.0, knowing there might be old libraries and whatnot that make that a non-starter. Of course – we’ve got other infra running on this same instance, so upgrading everything is a much bigger task. Strace flame graph? Stretch and try dtrace? A better way to use debug? Something else I’m missing – eg: differences between the image types that make them perform so differently? Thanks, Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ScribeUI
We still use it internally at Mapgears for production mapfile work. So I guess the short answer to your question is that it works and does what it needs to do if you can live with its limits and know how to work around them, but you are right that it has not received much love recently. Contributions are always welcome as usual. BTW, I see a couple of commits in March of this year in https://github.com/mapgears/scribeui . Not a huge sign of life, but at least more recent than 2015, which makes me wonder if you may have been looking at a fork. Daniel On 2020-07-14 07:55, Jörg Thomsen (WhereGroup) wrote: Hello, is anyone out there using ScribeUI? last commit was 2015, last github-issue Jan 2018 I wonder wether it's the perfect Software or not alive. Viele Grüße, Jörg -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Combining WMS Filter and Style Parameters
Thank you for looking into this Seth. I confirm that I had not tested that combination when I implemented RFC-118, so it is definitely a bug. Daniel On 2019-07-29 18:07, Seth G wrote: Hi list, As part of "MS RFC 118: Support Vendor-Specific OGC FILTER parameter in WMS requests" WMS requests can now pass in an OGC filter. A WMS can also accept a STYLE parameter to switch between CLASSGROUPs in a layer. Both work fine independently, but when combined the STYLE seems to be ignored and the layer is filtered but displayed with the default style (set in the Mapfile's CLASSGROUP). Has anyone encountered this, or know if this is unsupported or a bug? Seth -- web:http://geographika.co.uk twitter: @geographika ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] About the granularity of DEBUG on tileindex layers
The debug levels are 0 to 5, 0 being none, and 5 being the most verbose. I believe the problem in msDrawRasterLayerLow() is that it uses a "==" test instead of a ">=". i.e. it uses: if(layer->debug == MS_TRUE) but it should use if(layer->debug >= 1) or even better use the debugLevel constants from maperror.h in the test condition: typedef enum { MS_DEBUGLEVEL_ERRORSONLY = 0, /* DEBUG OFF, log fatal errors */ MS_DEBUGLEVEL_DEBUG = 1, /* DEBUG ON */ MS_DEBUGLEVEL_TUNING = 2, /* Reports timing info */ MS_DEBUGLEVEL_V = 3, /* Verbose */ MS_DEBUGLEVEL_VV = 4, /* Very verbose */ MS_DEBUGLEVEL_VVV= 5 /* Very very verbose */ } debugLevel; i.e. if(layer->debug >= MS_DEBUGLEVEL_DEBUG) Daniel On 2018-11-16 11:26 a.m., Lime, Steve D (MNIT) wrote: This isn’t surprising. We haven’t been real good about consistently using levels across the code base – cleaning that up would be a good project (or sprint activity) and wouldn’t require deep technical knowledge. I’ll create a ticket for the case you’ve pointed about below… --Steve *From:* mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Rahkonen Jukka (MML) *Sent:* Friday, November 16, 2018 5:48 AM *To:* Mapserver-Users (mapserver-users@lists.osgeo.org) *Subject:* [mapserver-users] About the granularity of DEBUG on tileindex layers Hi, I have always used just ”DEBUG 5” for debugging raster layers but now I finally made a test with Mapserver 7.0.1 for seeing what is the real difference between the debugging levels. I was a bit surprised to see that there is not so much difference at all, and that the DEBUG 1 level gives information that is missing from the higher debugging levels but that would be useful sometimes. Debug 1 prints these lines [Fri Nov 16 12:05:50 2018].964589 msDrawRasterLayerLow(layer_name): entering. [Fri Nov 16 12:05:50 2018].980393 msDrawRasterLayerLow(layer_name): Filename is: path/file.TIF [Fri Nov 16 12:05:50 2018].980423 msDrawRasterLayerLow(layer_name): Path is: path/file.TIF [Fri Nov 16 12:05:50 2018].980591 AUTO = +proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs [Fri Nov 16 12:05:50 2018].980677 msDrawRasterLayerGDAL(): Entering transform. [Fri Nov 16 12:05:50 2018].980687 msDrawRasterLayerGDAL(): src=9979,8,1786,1062, dst=0,0,1697,1009 [Fri Nov 16 12:05:50 2018].980691 msDrawRasterLayerGDAL(): source raster PL (9978.817,7.700) for dst PL (0,0). [Fri Nov 16 12:05:50 2018].980700 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 All debug levels from level 2 print these lines: [Fri Nov 16 12:09:05 2018].581597 msDrawRasterLayerLow(layer_name): entering. [Fri Nov 16 12:09:05 2018].589989 AUTO = +proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs [Fri Nov 16 12:09:05 2018].590061 msDrawRasterLayerGDAL(): Entering transform. [Fri Nov 16 12:09:05 2018].590069 msDrawRasterLayerGDAL(): src=2318,7977,1786,1062, dst=0,0,1697,1009 [Fri Nov 16 12:09:05 2018].590073 msDrawRasterLayerGDAL(): source raster PL (2317.846,7977.061) for dst PL (0,0). [Fri Nov 16 12:09:05 2018].590081 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri Nov 16 12:09:05 2018].720794 msDrawMap(): Layer 3 (layer_name), 0.139s The only additional item that debug levels 2 and above give is the rendering time msDrawMap that is often useful. But at the same time the filename and path items which are present at debug level 1 are missing. I suggest to add debug items msDrawRasterLayerLow(): Filename and msDrawRasterLayerLow(): Path should be added alto to debug levels >=2. For being even more useful the highest debug level could give also timings about reading the tileindex and perhaps separate timings about things like how long does it take to read the “src” window from each “Filename” and if overviews are used or not. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Need mapfile example for Cascaded WMS GetFeatureInfo request
If I remember correctly, cascading multi-layer WMS GetFeatureInfo is only supported if both layers point to the same remote WMS server, i.e. if the CONNECTION string is identical and the other params (version, etc) match. Are both layers pointing to the same WMS server in your test mapfile? Daniel On 2018-09-05 4:58 PM, Basques, Bob (CI-StPaul) wrote: All, I’m not having any luck with getting a GetFeatureInfo request to work with more than one layer in the request. All works fine with a single layer named, but as soon as more than one layer is listed in the request I’m getting a MapServer error: http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0"xsi:schemaLocation="http://www.opengis.net/ogchttp://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd;> msWMSFeatureInfo(): WMS server error. Requested WMS layer(s) are not queryable: type or connection differ I’ve been told the “type or connection differ” chunk of message is the key part. Again, individual layer requests (LAYERS/QUERY_LAYERS=Layer_01) work just fine, but multiple layers (LAYERS/QUERY_LAYERS=Layer_01, Layer_02) do not. I’m not finding a lot of info on this online either. Are there certain gothchas to be aware of here? do I need to look at how each remote WMS is being serverd with regard to each GetFetureInfo TEMPLATE? They all work independently, but not in groups. Thoughts please. Thanks bobb Even if you’re on the right track, you’ll get run over if you just sit there. —Will Rogers ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] which versions for mapserver 4.8.3
gdFontCacheSetup was added in GD 2.0.16 and that's what this configure test is checking for. Your install.log suggests that you installed GD 2.2.5 from source. Perhaps double check to make sure that you do not have two versions of GD on the system (one installed by the OS and one in your custom builds), in which case the configure script could possibly pick up the wrong version for the test. Also double check your GD build options to make sure there is not something disabling gdFontCacheSetup in your build. Daniel On 2018-03-06 11:44 AM, DamienZINS wrote: Hi I translate version from SOLARIS to Centos 7.x [root@localhost old]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) my differents versions. I compile these sources [root@localhost old]# grep installation install.log installation de freetype-2.8 <<<<<<<<<< installation de zlib-1.2.11 <<<<<<<<<< installation de libpng-1.6.32 <<<<<<<<<< installation de proj-4.9.3 <<<<<<<<<< installation de jpegsrc.v9b <<<<<<<<<< installation de libiconv-1.15 <<<<<<<<<< installation de libgd-2.2.5 <<<<<<<<<< installation de gdal-2.2.1 <<<<<<<<<< installation de apr-1.6.2 <<<<<<<<<< installation de apr-util-1.6.0 <<<<<<<<<< installation de pcre-8.41 <<<<<<<<<< installation de httpd-2.4.27 <<<<<<<<<< installation de tomcat-connectors-1.2.42-src <<<<<<<<<< installation de php-4.4.2 <<<<<<<<<< checking for Oracle (OCI8) support using ORACLE_HOME installation... no | distribution in the file LICENSE. By continuing this installation | | the installation process at this point.| installation de mapserver-4.8.3 <<<<<<<<<< All the compilation are OK, except mapserver , the error is on gdFontCacheSetup configure:5660: checking for gdFontCacheSetup in -lgd configure:5690: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -lpng -L/lib64 -lz -L -lm -lstdc++ >&5 /tmp/ccC3N1Py.o: In function `main': /gmao/old/src/mapserver-4.8.3/conftest.c:24: undefined reference to `gdFontCacheSetup' collect2: error: ld returned 1 exit status my question is : is the error come from the version that i use ? -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS
On 2017-06-30 9:50 AM, Even Rouault wrote: I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M disabled by default. This is often annoying. Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by performance reasons per https://github.com/mapserver/mapserver/issues/1244 . But this was 12 years ago. Perhaps with recent hardware the performance difference isn't that big. The ticket unfortunately doesn't contain a test case to bench (likely lots of lines/polygons, or large lines/polygons to render). If the perf difference is still there, a more involved change would be indeed to move the z and m components into separate arrays. #1244 refers to #1224 which is using the gmap demo mapfile... which is a relatively small dataset, so it should be easy to verify if the issue is still relevant on more recent hardware using gmap or probably any other dataset. https://github.com/mapserver/mapserver-import/issues/1224 -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS
Quick reminder for the archives: the reason for the USE_POINT_Z_M option is that there is (or at least used to be at the time) a non trivial performance impact (15%-50% performance hit) likely related to the increase in size of the pointObj struct when Z and M are added: https://github.com/mapserver/mapserver-import/issues/1244 It may be nice to have some updated benchmarks comparing with and without USE_POINT_Z_M with recent releases, but I just wanted to point out that if one cares about performance and doesn't need the Z,M then is preferable to keep this option turned off in their builds. Daniel On 2017-06-30 9:31 AM, Jeff McKenna wrote: On 2017-06-30 8:00 AM, Michael Smith wrote: What os? I know the mapserver docker packages (https://hub.docker.com/r/mapserver/mapserver/) have it but most of the windows versions, MS4W, GisInternals, don’t. Don’t know about OSGeo4W. Thanks for mentioning this Mike, I've filed a ticket to include this in the upcoming MS4W release: http://www.ms4w.com/trac/ticket/120 -jeff -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OpenGL on Linux (Debian/Ubunu)
There have been some experiments a few years ago but I don't remember how far the implementation went, how much real testing it got and whether it is still maintained. You may want to look at http://mapserver.org/development/rfc/ms-rfc-50.html and search for discussions on the dev list around 2008-2011 for the full history. But for your specific problem, have you considered simply generating overviews in your source images using average resampling? This way you would pay the price of (average or bilinear) resampling only once and your WMS requests could use nearest neighbor on the overviews to provide much better quality results without the processing cost. More info about optimizing raster access is available here (in case you had not seen it yet): http://mapserver.org/input/raster.html#preprocessing-rasters Daniel On 2017-06-01 9:35 AM, Schepers, Benjamin wrote: Hi list, has anyone of you made some experience with mapserver and GPU-rendering on Linux (Debian preferred)? The use case would be to speed up raster-resampling on the fly (nearest <-> average) in WMS and maybe later vector-rendering on complex symbology. For now raster-rendering in average-mode is three-times slower than resampling with nearest neighbor (which looks worse, indeed). Are there some pitfalls? Maybe compiling with openGL-driver, other issues, etc Would GDAL benefit from using GPU on processing very large rasters (aerialimage-BigTIFFs). How would this be done? OpenGL / OpenCL? Any hints are welcome, I couldn't find that much info on this... Regards Ben ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette Mapgears Inc T: +1 418-696-5056 #201 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo layout in plain text
To complement what Steve wrote, have a look at the wms_getfeatureinfo_formatlist in http://mapserver.org/ogc/wms_server.html Daniel On 2016-11-10 1:50 PM, Lime, Steve D (MNIT) wrote: This should be possible. Templates are not limited to HTML output, any text based format should be able to be created. You do this through output formats. Here's an example for plain text: OUTPUTFORMAT NAME 'plain-text' DRIVER 'TEMPLATE' MIMETYPE 'text/plain' FORMATOPTION "FILE=templates/plain.tmpl" FORMATOPTION 'ATTACHMENT=myfile.txt' END The template file's extension is really irrelevant to what's being delivered back to the client - the mimetype sets that. I don't recall of the top of my head how you expose this type via WMS but I think that's pretty straight forward. Steve -Original Message- From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Yves Jacolin Sent: Thursday, November 10, 2016 4:16 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] GetFeatureInfo layout in plain text Hello, I have to setup a text format for a WMS' GetFeatureInfo service. I would like to know if it is possible to change the layout using a template. My first test was not working so any feedback is welcome. The documentation said that the user should read the templating chapter so I guess this is possible. Any confirmation? Y. -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Ping a WMS service.
You may want to check out Tom's http://geohealthcheck.osgeo.org/ Source code is on github, linked from the help page. On 2016-04-27 12:01 PM, Basques, Bob (CI-StPaul) wrote: All, Not really MapServer specific, but possibly related, does anyone have an idea of how to best “ping” a WMS (and maybe also a WFS) to see if it’s active, only want to know that the service is active and able to take requests. I’m thinking about building a Dashboard for our layers for checking their health. I don’t want to use GetCapabilities if I can get away with it. We already have some similar tools for actually requesting the Image tiles, or other resources from MapServer WMSs. Also, there may be some future additions for adding in Offsite WMS services being imported. I want to start with our own services though. The majority of our layers pass through MapServer, so maybe there is some trick for MapServer that would work. Each of our layers has it’s own mapfile. There is a consolidated WMS for all the layers as well, if there is a WMS specific way of doing this. The intent is to run something that is really fast, or as fast as possible on a periodic basis. Thoughts? bobb “There is nothing quite so useless as doing with great efficiency something that should not be done at all.” - Peter Drucker ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] S57 Marine Charts on mapserver?
On 2015-12-22 2:38 AM, Havard Tveite wrote: S57 is supported in Mapserver through OGR: http://mapserver.org/input/vector/S57.html I guess it should be possible to implement S52 using Mapserver's quite powerful symbol mechanisms. But I don't know if has been done before. Yes, that's been done, I'm actually aware of at least two groups who did it, and I'm sure there must be several others. Since the S52 symbology is a standard, it would make sense to open source those mapfiles to improve on them collaboratively, but unfortunately none of the groups that I am aware of were able to open source their configs so far. A few hints: - Convert the S57 data to shapefiles or postgis to make your life easier - Most symbology can be handled directly in mapfiles, except complex symbols such as light houses that require some pre-processing to generate new shapes for MapServer to render (showing the radius/range of the light house) - Check out OpenCPN if you need some inspiration, especially https://github.com/OpenCPN/OpenCPN/tree/master/data/s57data - If you want to overlay multiple layers of S57 data in the same map, then you may need this MapServer 7.0 enhancement: https://github.com/mapserver/mapserver/pull/5100 Good luck -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Color the world, but not my country
I think the MASK layer should do what you want: http://mapserver.org/development/rfc/ms-rfc-79.html Daniel On 2015-12-11 2:37 PM, Wim Vanbelle wrote: Dear, I have a country shapefile and I would like to style everything, besides the one feature in the polygon. This is a shapefile layer, so I'm wondering on how I could possibly improve this: LAYER NAME "gadm" TYPE POLYGON TRANSPARENCY 70 DATA "gadm28.shp" STATUS default DEBUG 4 CLASS EXPRESSION ("[ISO]" != "NLD") style color "#00" end END END Basically, I would like to only use the data from the netherlands (NLD), because it's a lot less data, and color everything else, besides the one feature that it has. My above (working example) is taking the entire world and only filtering out what I want to see. The goal is to visually create a map of a single country and block out all the rest ;-). It's rendered as a tile layer. (gmaps) Thanks in advance for your feedback. Best regards, Wim ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] UTF grid capabilities MapServer 7 ?
Actually, I take that back. The student did produce docs, but we rejected the pull request because it needed cleanup and we never got back to it: https://github.com/mapserver/docs/pull/50 His docs are in his personal fork: https://github.com/fdesj/docs/commit/f2bcfcc7e42a8b9f1bd9d389bb7755f3400ee7a8 Finally, this is being handled in this new docs ticket: https://github.com/mapserver/docs/issues/131 And BTW, when docs are missing, keep in mind that the RFCs do contain enough info to use the feature and eventually write docs for them. Daniel On 2015-10-15 8:23 AM, Jeff McKenna wrote: This is a good opportunity to remind the MapServer-dev team that when a funded enhancement comes your way, to please include effort/time/cost for the MapServer documentation team to test and document your enhancements (I've requested this years ago). Thanks! -jeff On 2015-10-14 6:39 PM, karsten wrote: Hi all, I will be teaching a MapServer class the upcoming weekend and really wanted to add an example about the new UTF grid capabilities for MapServer 7 (seen this announced in the FOSS4G 2015 MapServer Status Report document I downloaded. Does anybody know if there is any working example our there I can look at , any documentation (could not even find a mention of UTF Grid in the new MapServer.pdf http://mapserver.org/MapServer.pdf for MS 7 nor could I find any example of the map file syntax to use. Each and every insight or help is greatly appreciated. Cheers Karsten Karsten Vennemann Principal Terra GIS LTD 2119 Boyer Ave E Seattle, WA 98112 USA <http://www.terragis.net/>www.terragis.net <http://www.terragis.netPhone> Phone ++1 206 905 1711 -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] UTF grid capabilities MapServer 7 ?
For the record, this was the outcome of a Google Summer of Code project, and it was already hard enough to get the student to deliver working code, we could not expect good docs on top of that. Daniel On 2015-10-15 8:23 AM, Jeff McKenna wrote: This is a good opportunity to remind the MapServer-dev team that when a funded enhancement comes your way, to please include effort/time/cost for the MapServer documentation team to test and document your enhancements (I've requested this years ago). Thanks! -jeff On 2015-10-14 6:39 PM, karsten wrote: Hi all, I will be teaching a MapServer class the upcoming weekend and really wanted to add an example about the new UTF grid capabilities for MapServer 7 (seen this announced in the FOSS4G 2015 MapServer Status Report document I downloaded. Does anybody know if there is any working example our there I can look at , any documentation (could not even find a mention of UTF Grid in the new MapServer.pdf http://mapserver.org/MapServer.pdf for MS 7 nor could I find any example of the map file syntax to use. Each and every insight or help is greatly appreciated. Cheers Karsten Karsten Vennemann Principal Terra GIS LTD 2119 Boyer Ave E Seattle, WA 98112 USA <http://www.terragis.net/>www.terragis.net <http://www.terragis.netPhone> Phone ++1 206 905 1711 -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ScribeUI version 1.8 released for Google Summer of Code 2015
Thank you Samuel. And for those who would like a 5-minute-intro to Scribe features, have a look at the Getting Started page: https://github.com/mapgears/scribeui/wiki/Getting-started-with-ScribeUI Daniel On 2015-08-20 1:35 PM, Samuel Lapointe wrote: Hello everyone, You might already know about ScribeUI since I posted about it on this mailing list a few times this summer, but if you don’t, it is a web utility you can use to create and preview maps, using the regular Mapserver syntax or the Scribe syntax. I spend the summer working on new features to add to ScribeUI for the 2015 edition of Google Summer of Code. This update is the last large update I will make this summer, as the coding period of GSoC 2015 ends tomorrow. This update adds a new plugin called Classify, which automatically creates classes from a set of data. To see more information about this update, take a look at the release page https://github.com/mapgears/scribeui/releases/tag/v1.8 or try it for yourself on the demo page http://demo.scribeui.org/. The demo is reset every day to keep it clean, which means the maps made there are temporary. Even though the summer is over, I will still release bugfixes if necessary. As always, if any issues arise, you can contact me by email or through the project’s issues page https://github.com/mapgears/scribeui/issues Have a nice day! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Very strange problem doing a query and hanging on MS 6.4.1
, SPHEROID[WGS 84,6378137,298.257223563, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]] Origin = (-102.0008006,41.00081732997) Pixel Size = (0.0008000,-0.0008000) Metadata: AREA_OR_POINT=Point Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left (-102.0008333, 41.0008173) (102d 0' 3.00W, 41d 0' 2.94N) Lower Left (-102.0008333, 37.000) (102d 0' 3.00W, 37d 0' 0.00N) Upper Right ( -98.160, 41.0008173) ( 98d 0' 0.06W, 41d 0' 2.94N) Lower Right ( -98.160, 37.000) ( 98d 0' 0.06W, 37d 0' 0.00N) Center (-100.0004247, 39.0004087) (100d 0' 1.53W, 39d 0' 1.47N) Band 1 Block=256x256 Type=Float32, ColorInterp=Gray NoData Value=-9 Overviews: 2401x2401, 1201x1201, 601x601, 301x301, 151x151, 76x76, 38x38 You have to ^C to kill it, even when using head. This seems like a serious bug as it runs for about 10 mins taking 100% CPU. If you call it via file_get_contents() in php is hangs the request and freezea my OL app until it is killed or kills php reading all the data. ___ 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 -- Daniel Morissette http://www.mapgears.com/ T: +1 418-696-5056 #201 http://evouala.com/ - Location Intelligence Made Easy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Web management of .map files
You may also want to have a look at ScribeUI: http://scribeui.org/ There is a live demo at http://demo.scribeui.org/, just create your own new workspace and then create a new map from the default template and start editing it. Note that this demo server is reset to its original state every 24 hours. Daniel On 2015-04-08 9:54 AM, Geo-6 wrote: Hi Matej, There is Mapserver MapManager for Windows (http://www.gisinternals.com/mapmanager.html) but it's not a web-based tool. I'm currently developing a web application in PHP (based on MapScript and an internal library) but it's still a work in progress (you can download it here in a couple of days : https://github.com/jbelien/MapFile-Generator). Have a great day. Jonathan Beliën -Message d'origine- De : mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] De la part de Matej Mailing Envoyé : mercredi 8 avril 2015 14:04 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] Web management of .map files Hi, is there any web-based tool for creating and updating .map files? For example, sometimes you need to change some label texts, add some layers and doing it via some web interface would be a major step forward for non-technical users. Thenks, Matej ___ 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 -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] passing parameter to a OGRVRTDataSource layer
I believe the variable substitution is working since you see the coordinate values in the exception message received from the server. The error message says that it cannot find layer select in the OGR data source, so it may very well be that it ends up being called something else for some reason. I'd suggest hardcoding the coordinate values in your VRT and starting by making the VRT works with hardcoded values. Once it works, put the variables back in. Just a guess, but ogrinfo on that VRT may help figure out the source of the problem. Daniel On 2015-03-25 4:47 PM, Fawcett, David (MNIT) wrote: Martin, Have you looked at the CGI runtime substitution docs?: http://mapserver.org/cgi/runsub.html Make sure that you look at the validation section near the bottom. If the substitution works with CGI WMS, you will need validation. David. *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Martin Ouellet *Sent:* Wednesday, March 25, 2015 3:38 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] passing parameter to a OGRVRTDataSource layer Hi all, I'm using the virtual plugin of OGR to consume a web service who return CSV coordinates and mapserver is able to draw the points without any problems. The connection definition in my mapfile is something like this. CONNECTION OGRVRTDataSourceOGRVRTLayer name='select'SrcDataSourceCSV:/vsicurl/http://my server/service.php/SrcDataSourceGeometryTypewkbPoint/GeometryTypeSrcLayerselect/SrcLayerLayerSRSWGS84/LayerSRSGeometryField encoding='PointFromColumns' x='PHOTO_LONGITUDE' y='PHOTO_LATITUDE'//OGRVRTLayer/OGRVRTDataSource I would like to pass arguments to that CONNETION string so I could build dynamic request. something like this CONNECTION OGRVRTDataSourceOGRVRTLayer name='select'SrcDataSourceCSV:/vsicurl/http://my server/service.php?*param1=%PARAM1%amp;param2=%PARAM2%*/SrcDataSourceGeometryTypewkbPoint/GeometryTypeSrcLayerselect/SrcLayerLayerSRSWGS84/LayerSRSGeometryField encoding='PointFromColumns' x='PHOTO_LONGITUDE' y='PHOTO_LATITUDE'//OGRVRTLayer/OGRVRTDataSource I know the argument values (in my example PARAM1 and PARAM2) are OK because I'm seeing them in the error message thrown by mapserver (see below). But mapserver refuse to render the points: ?xml version='1.0' encoding=UTF-8 standalone=no ? !DOCTYPE ServiceExceptionReport SYSTEM http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd; ServiceExceptionReport version=1.1.1 ServiceException msDrawMap(): Image handling error. Failed to draw layer named #39;photo_ownedby_all#39;. msOGRFileNextShape(): OGR error. Failed to find layer #39;select#39; on datasource #39;CSV:/vsicurl/*http://my server/geophoto/select.php?PARAM1=40.886913500823205%2C-84.41259765625011amp;PARAM2=63.97980162961738%2C-43.587402343750284*#39;. /ServiceException /ServiceExceptionReport Strangely, if I copy paste this url in the browser, the web service is returning valid csv data: *http://my http://%3cmy server/geophoto/select.php?ll=40.886913500823205%2C-84.41259765625011amp;ur=63.97980162961738%2C-43.587402343750284* returned PHOTO_LATITUDE,PHOTO_LONGITUDE 48.8099315451953,-77.0906915758454 48.8119226339273,-77.123176861499 48.8139039864207,-77.1556648776822 48.8158756013937,-77.1881556113468 48.8178374775437,-77.2206490494331 48.8171607148511,-77.2546364217682 48.8164732928131,-77.2886228129866 48.8157752119077,-77.3226082078249 48.815066472652,-77.356592590973 any thoughts? MartinO ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] passing parameter to a OGRVRTDataSource layer
On 2015-03-26 3:37 PM, Martin Ouellet wrote: Daniel: What do you think is the best way to encode point in a csv (using the virtual format of OGR) for mapserver: 1) x y coordinates with encoding=PointFromColumns 2) point in WKT string in the csv 3) point encoded WKB string in the csv 4) maybe something else BUT it must be in a csv format I have used only #1 with CSV and it works great and feels most natural for a CSV. I can't speak for WKT and WKB encoding in a CSV, never tried it. Daniel -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] multiple mapserv versions side by side
On 2015-02-17 9:18 PM, Richard Greenwood wrote: I'd like to play with the mapserv 7 beta on the same Ubuntu machine that I have mapserv 6.4 installed on. But both versions are using libmapserver.so so depending on what I have in my ldconfig path it's finding the 6.4 version lib or the 7beta ib. Is there an easier way to have both versions without changing ldconfig each time I switch between the two versions? Sorry, I know this is probably a pretty basic Linux question. Hi Rich, Use cmake ... -DLINK_STATIC_LIBMAPSERVER=1 ... and libmapserver.a will be statically linked into your mapserv executable, and then you can simply copy the executable to your cgi-bin cp ./mapserv /usr/lib/cgi-bin/mapserv70 -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver as WFS 1.1.0 client
As the error message says, MapServer doesn't support WFS 1.1.0 in CLIENT mode. I see that someone added some code in mapwfslayer.c to support WFS 1.1 axis order handling, but the rest of the code has not been upgraded to 1.1 so that code is of little/no use. Daniel On 14-12-22 1:58 AM, Lars Fricke wrote: Hello List, can you please give me a quick feedback on which version WFS MapServer supports as CLIENT (see below)? I can't really find it in the docs. Thank you. Lars Fricke Am 18.12.2014 um 08:29 schrieb Lars Fricke: Hello, I am trying to access an external WFS with MapServer as client to cascade it. I get the following error message: msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). Indeed the external server only sends version 1.1.0 and my mapfile has: ... METADATA wfs_version1.1.0 ... Now when I search on the net, I find bug reports about WMS 1.1.0 and MapServer but no information if I can use it as a 1.1.0 client at all. And if so, do I need to use something specific to activate it? I'm on a German Ubuntu 14.04 64bit with Apache2 and mapserv -v says: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for looking into this. Best 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 -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscipt error querying wfs layer
My first suggestion would be to enable debug and look at the logs for possible hints. See http://mapserver.org/optimization/debugging.html You may also want to remove the @ in your various function calls when debugging to make sure you do not hide error messages that MapScript may be reporting. It's been a while since I touched that code, but it may be that you need to $layer-open() before you can read features from the layer. Daniel On 14-07-01 11:44 AM, Olivier Bedel wrote: Hi all, We are using mapserver as a WFS client and we are facing a problem using PHP-Mapscript to fetch the results of a queryByShape on the WFS layer. The count of the results is correct but we cannot get the content of any particular results. Here is what our code looks like : $oMap = ms_newMapObj($mapfile); $shpObj = ms_shapeObjFromWkt($shapeStr); $layer = $oMap-getLayerByName($layerName); $res = (@$layer-queryByShape($shpObj)==MS_SUCCESS ); if ($res) { $count = $layer-getNumResults(); for ($i=0;$i$count;$i++) { $resObj = @$layer-getResult($i); $feat = @$layer-getFeature($resObj-shapeindex, $resObj-tileindex); // some computation... } } the $feat object is equals to false and a var_dump of the $resObj gives the following : stdClass Object ( [shapeindex] = 0 [tileindex] = 0 [classindex] = 0 ) We are using MapServer version 5.6.7. Has anyone already faced this problem ? Are we doing things wrong or could it be a mapscript bug ? Thanks in advance for any help or advice. Olivier. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Valid extents for shape file, World Wind WMS Client
On 14-06-25 10:00 AM, Lime, Steve D (MNIT) wrote: There was a .prj file in the zip archive you downloaded. That gives you the projection... ... and to interpret the contents of the PRJ file then http://spatialreference.org/ may be of some use. -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] FOSS4G2014 Express (train ride)
Nice ride! Too bad the train station is a bit far for us. :-) On 14-05-30 10:58 AM, Basques, Bob (CI-StPaul) wrote: All, Just a heads up on the hatching of a plan by myself (and a couple of others). See this posting: https://2014.foss4g.org/all-aboard-the-foss4g2014-express/ Please forward to whomever you think might be interested. I felt comfortable enough posting to these three lists, but maybe you can think of others. Thanks Bobb ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] non spatial MSSQL data in a Layer JOIN
Actually, The example that Brent provided here is exactly the way I was suggesting you to do. Essentially you would setup your layer with CONNECTIONTYPE OGR, set the primary CONNECTION string to point to your shapefile, and use the DATA statement to provide the SQL statement built with ogrinfo that joins the shapefile and the MSSQL data. Your SQL statement should look like the one in the example provided by Brent, except that you'll replace the ODBC connection string with your MSSQL connection string. Once again, testing the SQL / JOIN statement with ogrinfo will make your life much easier. Makes sense? Daniel On 14-01-08 5:49 PM, Brent Fraser wrote: Ken, A few years ago (with mapserv v5.6.5) I did something similar, doing a join on a shapefile and a MS Access database (via ODBC) using OGR: CONNECTIONTYPE OGR CONNECTION 'T:/GeoData/Parcels/Alberta/t_505033.shp' DATA SELECT * FROM t_505033 LEFT JOIN 'ODBC:Parcels_Rural,basic'.basic ON t_505033.PID=basic.PID Not quite the same as your problem, but it may give you a few ideas. Best Regards, Brent Fraser On 1/8/2014 2:58 PM, KenHeer1 wrote: Daniel, First off, thank you for the quick response. Been working on this and I am now able to connect to database and query the table in question using OGR without it having spatial data. Using ogrinfo I am able to send a simple select statement and get the records I'm looking for so that works great. So then my thought was to add the data using the connection with JOIN in the layer definition in my map file, something like this: JOIN NAME myjoin CONNECTIONTYPE OGR CONNECTION MSSQL:server=myserver\myinstance;database=dbname;UID=uid;PWD=uid; TABLE mytable FROM shapefilefilekey TO tablefieldkey TYPE ONE-TO-ONE END but that didn't work. I'm assuming that this isn't working because JOIN only supports DBF/XBase,CSV,PostrgreSQL, and MySQL. So after reading through your reply again, I tried joining the datasources using OGR SQL. Thinking maybe instead of adding a shapefile layer and then joining the data in the mapfile, I could join the two datasources using OGR SQL and add that as a layer. Following through the links you provided and others I found, I can query the layer all day long, but I cannot access the shapefile, or just the dbf, through sql to perform the join. Thanks again for the earlier help, but did I miss something or maybe misinterpret your suggestions? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/non-spatial-MSSQL-data-in-a-Layer-JOIN-tp5096980p5097033.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] non spatial MSSQL data in a Layer JOIN
Errr... Please forgive the poor wording of my last response, my brain isn't finished booting up yet. On 14-01-09 9:47 AM, Daniel Morissette wrote: Actually, The example that Brent provided here is exactly the way I was suggesting you to do. Essentially you would setup your layer with CONNECTIONTYPE OGR, set the primary CONNECTION string to point to your shapefile, and use the DATA statement to provide the SQL statement built with ogrinfo that joins the shapefile and the MSSQL data. Your SQL statement should look like the one in the example provided by Brent, except that you'll replace the ODBC connection string with your MSSQL connection string. Once again, testing the SQL / JOIN statement with ogrinfo will make your life much easier. Makes sense? Daniel On 14-01-08 5:49 PM, Brent Fraser wrote: Ken, A few years ago (with mapserv v5.6.5) I did something similar, doing a join on a shapefile and a MS Access database (via ODBC) using OGR: CONNECTIONTYPE OGR CONNECTION 'T:/GeoData/Parcels/Alberta/t_505033.shp' DATA SELECT * FROM t_505033 LEFT JOIN 'ODBC:Parcels_Rural,basic'.basic ON t_505033.PID=basic.PID Not quite the same as your problem, but it may give you a few ideas. Best Regards, Brent Fraser On 1/8/2014 2:58 PM, KenHeer1 wrote: Daniel, First off, thank you for the quick response. Been working on this and I am now able to connect to database and query the table in question using OGR without it having spatial data. Using ogrinfo I am able to send a simple select statement and get the records I'm looking for so that works great. So then my thought was to add the data using the connection with JOIN in the layer definition in my map file, something like this: JOIN NAME myjoin CONNECTIONTYPE OGR CONNECTION MSSQL:server=myserver\myinstance;database=dbname;UID=uid;PWD=uid; TABLE mytable FROM shapefilefilekey TO tablefieldkey TYPE ONE-TO-ONE END but that didn't work. I'm assuming that this isn't working because JOIN only supports DBF/XBase,CSV,PostrgreSQL, and MySQL. So after reading through your reply again, I tried joining the datasources using OGR SQL. Thinking maybe instead of adding a shapefile layer and then joining the data in the mapfile, I could join the two datasources using OGR SQL and add that as a layer. Following through the links you provided and others I found, I can query the layer all day long, but I cannot access the shapefile, or just the dbf, through sql to perform the join. Thanks again for the earlier help, but did I miss something or maybe misinterpret your suggestions? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/non-spatial-MSSQL-data-in-a-Layer-JOIN-tp5096980p5097033.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] non spatial MSSQL data in a Layer JOIN
Oh, and BTW, assuming your MSSQL connection string is MSSQL:server=myserver\myinstance;database=dbname;UID=uid;PWD=uid; and the layer name (as seen by ogrinfo) is mytable then the layer defn and SQL statement should look like this: CONNECTIONTYPE OGR CONNECTION /path/to/myshapefile.shp DATA SELECT myshapefile.*, mytable.* FROM myshapefile LEFT JOIN 'MSSQL:server=myserver\myinstance;database=dbname;UID=uid;PWD=uid;'.mytable mytable ON myshapefile.key=mytable.key Daniel On 14-01-09 9:49 AM, Daniel Morissette wrote: Errr... Please forgive the poor wording of my last response, my brain isn't finished booting up yet. On 14-01-09 9:47 AM, Daniel Morissette wrote: Actually, The example that Brent provided here is exactly the way I was suggesting you to do. Essentially you would setup your layer with CONNECTIONTYPE OGR, set the primary CONNECTION string to point to your shapefile, and use the DATA statement to provide the SQL statement built with ogrinfo that joins the shapefile and the MSSQL data. Your SQL statement should look like the one in the example provided by Brent, except that you'll replace the ODBC connection string with your MSSQL connection string. Once again, testing the SQL / JOIN statement with ogrinfo will make your life much easier. Makes sense? Daniel On 14-01-08 5:49 PM, Brent Fraser wrote: Ken, A few years ago (with mapserv v5.6.5) I did something similar, doing a join on a shapefile and a MS Access database (via ODBC) using OGR: CONNECTIONTYPE OGR CONNECTION 'T:/GeoData/Parcels/Alberta/t_505033.shp' DATA SELECT * FROM t_505033 LEFT JOIN 'ODBC:Parcels_Rural,basic'.basic ON t_505033.PID=basic.PID Not quite the same as your problem, but it may give you a few ideas. Best Regards, Brent Fraser On 1/8/2014 2:58 PM, KenHeer1 wrote: Daniel, First off, thank you for the quick response. Been working on this and I am now able to connect to database and query the table in question using OGR without it having spatial data. Using ogrinfo I am able to send a simple select statement and get the records I'm looking for so that works great. So then my thought was to add the data using the connection with JOIN in the layer definition in my map file, something like this: JOIN NAME myjoin CONNECTIONTYPE OGR CONNECTION MSSQL:server=myserver\myinstance;database=dbname;UID=uid;PWD=uid; TABLE mytable FROM shapefilefilekey TO tablefieldkey TYPE ONE-TO-ONE END but that didn't work. I'm assuming that this isn't working because JOIN only supports DBF/XBase,CSV,PostrgreSQL, and MySQL. So after reading through your reply again, I tried joining the datasources using OGR SQL. Thinking maybe instead of adding a shapefile layer and then joining the data in the mapfile, I could join the two datasources using OGR SQL and add that as a layer. Following through the links you provided and others I found, I can query the layer all day long, but I cannot access the shapefile, or just the dbf, through sql to perform the join. Thanks again for the earlier help, but did I miss something or maybe misinterpret your suggestions? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/non-spatial-MSSQL-data-in-a-Layer-JOIN-tp5096980p5097033.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] non spatial MSSQL data in a Layer JOIN
On 14-01-09 1:36 PM, KenHeer1 wrote: So digging a little deeper the problem is in the data somewhere. I have the same problem when trying to do the same join within ArcMap. What is weird is that with three data sources all with the say key values I can join the shapefile to table 2 and I can join table 1 to table 2, but I can't join the shapefile to table 1. There is something in the shapefile that table 1 doesn't like. Either way it looks as though my initial question was answered; you can join a shapefile to a datasource in MSSQL that does not have any spatial data in it using OGR. Glad to hear that the joins to MSSQL are working fine, apart from this issue with table1. I am not familiar with the MSSQL driver specifics, so I cannot provide much more advice, other than suggesting that the issue is clearly not in MapServer, but lies somewhere between OGR and MSSQL. You could perhaps raise the issue on the GDAL list and see if someone more knowledgeable about the MSSQL driver can help. You may also get some additional hints about the issue if you set CPL_DEBUG=ON in your DOS window before running ogrinfo with the SQL statement that fails. If you're lucky this may output some useful hints about the source of the issue with table1. More info about CPL_DEBUG here: http://trac.osgeo.org/gdal/wiki/ConfigOptions#CPL_DEBUG -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to deal with (visible) CONNECTION information in .MAP file for WMS purposes
On 14-01-07 5:47 AM, Stefan Schwarzer wrote: Thanks for all the valuable help! If I place the .MAP file somewhere where only the system can read it, the request looks a bit awkward: ….map=/home/include/mapfiles/my_map.map…. Would there a possibility to juste use …map=my_map… and have the path then get added/understood by some internal configuration (mod_rewrite perhaps?)? Hi Stefan, Yes, this is also an option. You can use environment variables for your mapfile path and refer to the environment variable in the map=... parameter e.g. in Apache's httpd.conf: SetEnv MYMAP1=/home/include/mapfiles/my_map1.map SetEnv MYMAP2=/home/include/mapfiles/my_map2.map ... and then in your mapserv URL use: /cgi-bin/mapserv?map=MYMAP1... -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] FW: GetCapabilities always returning version 1.3.0
layer at 0042BB20. [Fri Nov 15 13:16:39 2013].577000 freeLayer(): freeing layer at 0042CD30. ... Note : For both these requests , there is only change in the specification (i.e the URL ) but no change in the map file . The map file used in both cases is : MAP IMAGETYPEPNG EXTENT-87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 # extents in GoogleEarth 4326 projection. SIZE 1000 800 SHAPEPATH C:\data SYMBOLSET ../symbols/symbols35.sym TRANSPARENT ON CONFIG PROJ_LIB ../proj/nad IMAGECOLOR 0 0 0 FONTSET../fonts/fonts.list PROJECTION init=epsg:4326 END WEB IMAGEPATH C:/inetpub/wwwroot/Images/ IMAGEURL http://localhost/Images/; METADATA wms_enable_request * wms_title WMS Lidar Server wms_onlineresource http://SOWMYAPC/Mapserver/mapserv.exe?map=Map/Madison.map; wms_srs epsg:4326 END END CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON LAYER NAME MadisonTinAllElevation TYPE RASTER STATUS ON CONNECTION http://localhost/Sheridan/Default.aspx?PROJECT=Madison; CONNECTIONTYPE WMS #OPACITY 50 METADATA wms_srs EPSG:4326 EPSG:26916 wms_name TIN wms_server_version 1.1.1 wms_format image/png wms_style AllElevation wms_exceptions_format application/vnd.ogc.se_xml wms_latlonboundingbox -87.041564905451 34.41840442792049 85.87371108337896 35.01821204159302 wms_extent 5110296.9 557718.4 5122127.3 562697.3 wms_width 1024 wms_height 1024 END PROJECTION init=epsg:26916 END DEBUG 5 END END -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Friday, November 15, 2013 8:42 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] FW: GetCapabilities always returning version 1.3.0 On 13-11-15 9:31 AM, Sowmya Tiramdasu wrote: Hi Rahkonen, Thank you very much for your explanation. I know understand how it is working. But, I am still confused about why it is not working when I make a call with 1.3.0 specifications. I am getting this error : msBuildWMSLayerURL(): WMS connection error. Map Server supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string). But the GetCapabilities returns the default supported version as 1.3.0. Any more suggestions on ideas on why this is happening will be greatly appreciated. Thanks, Sowmya. You seem to be mixing two things: 1- The error above is returned by the CONNECTIONTYPE WMS code (i.e. using MapServer as a WMS client) which is indeed supported only for WMS 1.0 or 1.1. This error message could definitely be improved to make it more obvious that it applies only to CONNECTIONTYPE WMS. 2- The GetCapabilities is MapServer acting as a *server* for other remote clients, and in this case 1.3.0 is supported. I am not sure what you are trying to achieve (I missed the beginning of the thread), but you should probably take a few minutes to re-read Jukka's explanation in light of the two points above. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Create a Run-time WMS Server
The URL parameter map.layer[test]=DATA+012.tif should work as well with WMS as with the traditional mode=map. If it doesn't then there may be a bug. P.S. Your request to render arbitrary data files through a URL (without creating a mapfile) reminded me of http://mapfart.com/ which was presented at FOSS4G-NA earlier this year and uses mapserver under the hood. It may not be useful for those who need a compliant WMS, but for simpler uses just to render a data file there is real potential there. Daniel On 13-10-25 8:45 AM, aborruso wrote: Dear all, I have a WMS server with only one layer. I have SET a DATAPATTERN rule and I would like it to show only the datafile I call with a specific URL. In mode map I can use this kind of URL: http://myserver/cgi-bin/mapserv?map=/temp/test.mapmode=mapmap.layer[test]=DATA+012.tif It works and I have only 012.tif rendered. Is it possible to change WMS Server ar run-time? If it's yes what kind of SERVER URL I must set in a WMS client? I think it's wrong to use something like http://myserver/cgi-bin/mapserv?map=/temp/test.mapmap.layer[test]=DATA+012.tifSERVICE=WMSVERSION=1.0.0REQUEST=GetCapabilities Thank you -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Create-a-Run-time-WMS-Server-tp5085768.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Presentation slides for MapServer Project Status Report at FOSS4G 2013
Hi MapServer-users and -dev FYI a copy of the MapServer Project Report slides presented at FOSS4G last week are available online at http://talks.mapgears.com/en/conf/2013-09-21-mapserver-project-status-report I received off-list questions about how to use some of the features since the presentation only provided a quick overview of each one. If you are looking for more info on any of the new 6.2 or 6.4 features, then I suggest that you start by looking at the 6.2 and 6.4 release announcements: http://mapserver.org/development/announce/6-2.html and http://mapserver.org/development/announce/6-4.html Thanks to all project members who were there and helped with updating/preparing the presentation. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Scribe UI for Windows?
On 13-09-21 5:56 PM, Rahkonen Jukka wrote: Hi, Does such a thing exist? As Mike wrote it's a web app so it should work on Windows, but that has not been tested there yet. I believe instructions for Windows installation are on the TODO list. If someone wants to test and document the Windows setup then contributions are welcome. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 4.9
Note that 4.9 was never released, odd numbers are used to refer to the state of the code during development leading to the next even number, i.e. 4.9 was the dev version leading to the 4.10 release. So it seems that FWTools was based on a snapshot of the source tree sometimes between the 4.8 and the 4.10 release. You best bet may be to use the 4.10 source, or otherwise you'll have to look for the exact date or revision number of the source that was used to build FWTools and extract that version of the source from the github repository. Daniel On 13-08-27 3:41 PM, Lime, Steve D (MNIT) wrote: All the old tarballs are at: http://download.osgeo.org/mapserver/. I can’t recommend using anything that old however. Steve *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *tara.hemph...@l-3com.com *Sent:* Tuesday, August 27, 2013 2:34 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Mapserver 4.9 Does anyone know where I can obtain the source code for Mapserver v4.9? There are branches 4.8 and 4.10 on github, but no 4.9. I am required to archive the source code since we use FWTools which comes with Mapserver. Mapserver v4.9 is the documented version in the FWTools 2.2.8 Readme file. Thank you, Tara H. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php mapscript - debugging question
On 13-07-11 5:24 PM, Mark Volz wrote: Hello, I am upgrading an application that uses php mapscript to build a parcel tax report and I am getting the following error: Catchable fatal error: Argument 1 passed to layerObj::getShape() must be an instance of resultObj, integer given in C:\ms4w\apps\PipestoneMOOSE26\htdocs\php\ParcelReport\infopublic.php on line 416. The arguments and the way to use the getShape() method have changed. You'll find more information in the migration guide: http://mapserver.org/MIGRATION_GUIDE.html#mapscript-all-flavors and the getShape() docs: http://www.mapserver.org/mapscript/php/phpmapscript.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] dynamic sql to mapserver
On 13-07-10 5:25 AM, Michele De Santis wrote: Hi to everyone, in my webgis application I'm using OpenLayers to request WMS layers to MapServer 6.2.1. Is it possible to send dynamic sql to mapserver using function of PostGIS (for example ST_Distance)? /select * from table where//st_distance(the_geom,GeomFromText('Point(1 0)',4326)) 6) as myquery; /What I would like to be able to do is pass user defined variables e.g. latitude, longitude and distance. %variable% run-time substitution should do what you need, see: http://mapserver.org/cgi/runsub.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] R: Re: dynamic sql to mapserver
Run-time substitutions work with both traditional CGI and WMS requests. The key is to make sure you have the VALIDATION patterns set properly. Daniel On 13-07-10 9:20 AM, Michele De Santis wrote: Thanks, but does it work only with a standard cgi request? Does it means that i can't do runtime substitution with a WMS request? michele Messaggio originale Da: dmorisse...@mapgears.com Data: 10-lug-2013 14.09 A: mapserver-users@lists.osgeo.org Ogg: Re: [mapserver-users] dynamic sql to mapserver On 13-07-10 5:25 AM, Michele De Santis wrote: Hi to everyone, in my webgis application I'm using OpenLayers to request WMS layers to MapServer 6.2.1. Is it possible to send dynamic sql to mapserver using function of PostGIS (for example ST_Distance)? /select * from table where//st_distance(the_geom,GeomFromText('Point(1 0)',4326)) 6) as myquery; /What I would like to be able to do is pass user defined variables e.g. latitude, longitude and distance. %variable% run-time substitution should do what you need, see: http://mapserver.org/cgi/runsub.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GSoC project: UTFGrid output support in MapServer
Hi MapServer Users and Devs, I realize that this message comes a bit late, but FYI, this summer the MapServer project has a student working on UTFGrid output as part of Google Summer of Code. We had drafted a RFC back in the spring and he is implementing this approach in his project (http://mapserver.org/development/rfc/ms-rfc-93.html) The student is François Desjarlais from Laval University in Quebec City. We have been working with him off-list since the end of May, and for the rest of the summer we will try to communicate more openly on the mapserver-dev list about this project. For those interested, his progress including weekly reports and links to his source and demos can be followed in the github wiki at: https://github.com/mapserver/mapserver/wiki/GSoC-UTF-Grid-implementation I can tell you that he's got a first dev version of his driver producing some UTFGrids out of MapServer polygon layers (WMS GetMap requests) and working in OpenLayers. There is still lots of work do be done to complete/polish the implementation and have full support, but he's already up to a great start. Welcome François to the MapServer project and have a great summer with us! Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GSoC project: UTFGrid output support in MapServer
I got a question off-list asking what UTFGrid is about, here are more info for those not familiar with UTFGrid yet: UTFGrid is way to encode feature attribute information to add interactivity in a tiled map environment (e.g. using mouse-over to display tooltips with attribute info on top of tiles). It was initially developed by MapBox devs for use with TileMIll and MBTiles. Since a demo is worth a thousand words, see: http://www.mapbox.com/demo/visiblemap/ and for all the details, see the spec at: https://github.com/mapbox/utfgrid-spec Daniel On 13-07-05 2:05 PM, Daniel Morissette wrote: Hi MapServer Users and Devs, I realize that this message comes a bit late, but FYI, this summer the MapServer project has a student working on UTFGrid output as part of Google Summer of Code. We had drafted a RFC back in the spring and he is implementing this approach in his project (http://mapserver.org/development/rfc/ms-rfc-93.html) The student is François Desjarlais from Laval University in Quebec City. We have been working with him off-list since the end of May, and for the rest of the summer we will try to communicate more openly on the mapserver-dev list about this project. For those interested, his progress including weekly reports and links to his source and demos can be followed in the github wiki at: https://github.com/mapserver/mapserver/wiki/GSoC-UTF-Grid-implementation I can tell you that he's got a first dev version of his driver producing some UTFGrids out of MapServer polygon layers (WMS GetMap requests) and working in OpenLayers. There is still lots of work do be done to complete/polish the implementation and have full support, but he's already up to a great start. Welcome François to the MapServer project and have a great summer with us! Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Slides for MapServer Project Report @foss4gna
For those interested, a copy of the MapServer Project Status Report - Meet the Developers! slides that Steve and I gave at FOSS4G-NA in Minneapolis is available at: http://talks.mapgears.com/en/conf/2013-05-23-mapserver-project-status-report There is a PDF version for easy viewing, and the ODP source is available from there as well in case one needs to borrow some slides for their own presentations. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Slides for MapServer Project Report @foss4gna
On 13-06-07 2:08 PM, Basques, Bob (CI-StPaul) wrote: We're in the middle of redesigning some Mapping infrastructure here, and the SVG and ScribeUI stuff looks very interesting. I wonder, is there some option in the ScribeUI side for putting certain MapFile elements into a database? We've been wrestling with this idea for some time, and I'm wondering about trying something like this for some of our layers. The ScribeUI stuff seems like it might be a tool to use for keeping things in a common design format for example. Hi Bob, Short answer is that no, there is no option to store/manage mapfiles in a database in the current ScribeUI plans. However, once ScribeUI is out in the wild as an open source project, one could possibly extend it to support something along those lines. BTW, the Google Summer of Code project has been accepted on May 27 and we'll try to get our student to release something for the community to look at ASAP... quite likely in the next few weeks, so please stay tuned. And on the topic of storing mapfile elements in a database, Mike Smith has been promoting the idea of a DBINCLUDE concept for some time. That hasn't happened yet, but might be another avenue that might serve your needs if it was to happen or if you'd like to help make it happen. The first step would be to define exactly how such a mechanism would work of course. Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] FOSS4G NA
Hi Rich We' re a small group upstairs at Brit's Pub on Nicolet Mall ( between 11th and 12th strert ) Daniel Le 21 mai 2013 16:24:49 Richard Greenwood richard.greenw...@gmail.com a écrit : Anyone drinking a beer tonight? Where? Sent from my mobile ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: Tools for automatically generate mapfiles
Hi Luis, For your information we (Mapgears) have worked internally on a web-based GUI to edit and maintain mapfiles called ScribeUI. This tool allows editing mapfiles in three different syntax: - regular/raw mapfile syntax - basemaps generate_style.py syntax (https://github.com/mapserver/basemaps) - and Scribe syntax (http://www.mapgears.com/en/blog/archive/2013-03-12-scribe) Unfortunately it is still an internal tool and needs some work before we can publish it. However, a student has submitted a Google Summer of Code (GSoC) proposal to take this internal project, polish and finish it, test and package it and make it available as an open source component to the MapServer community. The GSoC proposals are currently being evaluated, and the final decision date is May 27. If the project is selected the you can expect some news on this list about the plans in early June. The goal is to make this a collaborative project in order to help make it more sustainable in the long run, so contributors such as you would be much welcome. Best Regards Daniel On 13-05-08 11:55 AM, Luis Mejia wrote: Hello all, I'm newbie in this mailing list and I'm interested to know what tools automatically generate mapfiles. So far, only I know two, gvSIG and Quantum GIS. anyone knows other? anyone knows some web site? I am interested in develop a web site for automatically generate mapfiles. it's something similiar to online css's code generators Thanks in advance PD: Excuse me my poor english. -- Luis Miguel Mejía Martínez Estudiante Ing. de Sistemas Universidad de Cartagena ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms works with version 1.1.1 but not with 1.3.0
And for a longer explanation about this axis order difference between WMS 1.1.1 and 1.3.0 as well as some examples to help understand it, see: http://dmorissette.blogspot.ca/2012/12/dont-upgrade-to-wms-130-unless-you.html On 13-04-29 9:02 AM, thomas bonfort wrote: Are you inverting the axis order in your BBOX= param for the wms 1.3.0 requests (needed if you're requesting in epsg:4326) ? -- thomas On 29 April 2013 14:43, andre.steinhaeu...@lung.mv-regierung.de mailto:andre.steinhaeu...@lung.mv-regierung.de wrote: Hello, I am trying to set up a wms server with one layer. Mapserver version is 5.6.1. A getmap-request asking for Version 1.1.1 or 1.1.0 returns an image containing the information(lines) of the layer, including scale bar and legend. When i use a getmap-request for version 1.3.0 it returns a white image and the scale bar an legend but no error. I cannot find any error in my mapfile, but i am sure, there is one. Can anyone help me with finding my fault. Thanks a lot, regards, Andre +++Mapfile starts+++ MAP NAME Lawa Size 600 300 EXTENT 5 47 15 55 #IMAGECOLOR 123 123 255 PROJECTION init=epsg:4326 END SYMBOLSET './symbols/symbols.sym' SCALEBAR STATUS EMBED UNITS kilometers INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 POSITION UR END LEGEND STATUS EMBED POSITION LR TRANSPARENT TRUE END OUTPUTFORMAT NAME jpg DRIVER AGG/jpeg MIMETYPE image/jpg IMAGEMODE RGB EXTENSION jpg END UNITS DD WEB IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA wms_title LAWA-Typen-WMS-Server MV wms_onlineresource http://www.fis-wasser-mv.de/cgi-bin/mapserv?map=/home/fgsk/mapserver/LAWA/lawa-wms2.map; wms_srs EPSG:4326 END END LAYER NAME 'Lawa-Typen' EXTENT 5 47 15 55 TYPE LINE STATUS DEFAULT INCLUDE dbconnection.include DATA the_geom from (Select gid, the_geom, ty_cd_rw, rwb_name FROM raw.rwbody_wk_de) as FOO USING UNIQUE gid USING srid=4326 METADATA wms_title LAWA-Typen wms_srs EPSG:4326 wms_format image/jpg END PROJECTION init=epsg:4326 END #MINSCALEDENOM 1000 #MAXSCALEDENOM 10 CLASS STYLE COLOR 0 0 0 END END END END +++Mapfile ends+++ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache
If you are using UbuntuGIS (can you please confirm?) then this may be related to package updates made by Jérôme yesterday. Alan and Jérôme are going to look into it. Thank you for the report. Daniel On 13-04-26 8:20 AM, thomas bonfort wrote: Native MapServer support in mapcache is considered experimental and shouldn't really be enabled in production unless you know what you're doing. That said... - are you using mapcache from the ubuntu-gis repo? - if not, and you do not need native mapserver support, then recompile mapcache without mapserver support - otherwise, you can probably just symlink libmapserver-6.2.0.so http://libmapserver-6.2.0.so/ to libmapserver-6.2.1.so http://libmapserver-6.2.0.so/ -- thomas On 26 April 2013 14:10, Worth Lutz w...@mindspring.com mailto:w...@mindspring.com wrote: I upgraded my Ubuntu (12.04) system today and MapServer upgraded to 6.2.1. sudo apt-get upgrade upgraded packages: cgi-mapserver mapserver-bin php5-mapscript I tried to restart apache2 to update my MapCache config and it failed with: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libmapserver-6.2.0.so http://libmapserver-6.2.0.so: cannot open shared object file: No such file or directory Action 'configtest ' failed. Do I need to reinstall MapCache? What is the procedure to fix this? How can I avoid this problem in the future? Thanks, Worth ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 6.2.1 fails to read remote WMS in png format
Hi Jukka, IIRC, a few releases ago (not sure if that was in 6.0 or before) we got rid of all native raster reading code in MapServer and started relying solely on GDAL for raster input. i.e. before that we used to read PNG input directly in MapServer code using libpng, and now we do it through GDAL. That could possibly explain why you get different behaviors, but doesn't explain why your PNG cannot be read by GDAL. Two things to check: 1- Does the image/png request captured from the logs work from the server machine (using wget for instance)? Does it return a valid PNG image? 2- Save the output of that request with a command such as wget https://... -O /tmp/test.png and try running gdalinfo on the output. Maybe that will give some hints. Daniel On 13-04-25 8:05 AM, Rahkonen Jukka wrote: Hi, I was testing Mapserver 6.2.1 from the MS4W 3.0.1beta-1 installation and thought that there was something wrong with the connection. However, the problem seems to be in Mapserver side. I have been using FORMAT=image/png for reading the remote WMS with Mapserver 6.0.1 but with MS 6.2.1 it does not work. After changing image format into image/jpeg Mapserver can again cascade the remote WMS. Part of the errorlog is in the attachment but the most relevant parts are here This request with FORMAT=image/jpeg works [Thu Apr 25 14:30:24 2013].97 HTTP request: id=1, https://...FORMAT=image/jpegSTYLES=HEIGHT=353VERSION=1.1.1SRS=EPSG:3067WIDTH=459BBOX=406810.908602495,7216210.70370872,407078.361045337,7216416.39153513TRANSPARENT=TRUEEXCEPTIONS=application/vnd.ogc.se_inimage [Thu Apr 25 14:30:27 2013].354000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Thu Apr 25 14:30:27 2013].372000 msDrawMap(): Layer 1 (test), 0.022s [Thu Apr 25 14:30:27 2013].372000 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 25 14:30:27 2013].372000 msDrawMap() total time: 2.408s [Thu Apr 25 14:30:27 2013].59 msSaveImage(stdout) total time: 0.218s [Thu Apr 25 14:30:27 2013].592000 mapserv request processing time (msLoadMap not incl.): 2.629s This request with FORMAT=image/png does not work [Thu Apr 25 14:31:13 2013].915000 HTTP request: id=1, https://...FORMAT=image/pngSTYLES=HEIGHT=353VERSION=1.1.1SRS=EPSG:3067WIDTH=459BBOX=406508.434778249,7215858.43375314,407593.615379665,7216693.00619824TRANSPARENT=TRUEEXCEPTIONS=application/vnd.ogc.se_inimage . [Thu Apr 25 14:31:18 2013].349000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Thu Apr 25 14:31:18 2013].349000 drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 0, Y block offset 0 [Thu Apr 25 14:31:18 2013].349000 msDrawMap(): WMS connection error. Failed to draw WMS layer named 'test'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. [Thu Apr 25 14:31:18 2013].349000 mapserv request processing time (msLoadMap not incl.): 4.441s It looks like GDAL cannot find correct bands from the png output of the remote WMS: msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0. However, Mapserver 6.0.1 with GDAL 1.8 can cascade this service fine and all my WMS clients work well with the remote WMS by using image/png format. I made also another test by trying to cascade our own Mapserver 6.0.1 and the result was the same: if I read data as image/png remote WMS I get the GDALDatasetRasterIO() failed error. I am not sure if this is Mapserver, GDAL or MS4W bug. Any opinions? -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 6.2.1 fails to read remote WMS in png format
: 137,161,145,255 168: 171,133,135,255 169: 106,72,76,255 170: 82,141,120,255 171: 151,199,173,255 172: 94,70,72,255 173: 157,133,133,255 174: 110,82,82,255 175: 141,120,120,255 176: 94,157,135,255 177: 72,100,96,255 178: 151,112,114,255 179: 143,171,153,255 180: 122,92,98,255 181: 114,98,94,255 182: 114,84,90,255 183: 70,145,126,255 184: 147,116,118,255 185: 149,133,133,255 186: 120,88,90,255 187: 153,171,155,255 188: 129,126,120,255 189: 106,90,90,255 190: 86,151,135,255 191: 139,116,112,255 192: 135,171,149,255 193: 84,157,135,255 194: 129,110,106,255 195: 58,126,118,255 196: 92,139,110,255 197: 151,145,141,255 198: 72,139,120,255 199: 171,135,141,255 200: 141,108,112,255 201: 76,149,129,255 202: 163,137,141,255 203: 58,122,114,255 204: 171,141,143,255 205: 157,120,124,255 206: 135,153,141,255 207: 153,126,131,255 208: 62,137,122,255 209: 84,139,110,255 210: 149,126,126,255 211: 90,147,120,255 212: 147,106,110,255 213: 124,98,98,255 214: 126,104,106,255 215: 82,151,131,255 216: 82,155,131,255 217: 46,104,100,255 218: 82,141,126,255 219: 42,102,98,255 220: 48,116,108,255 221: 44,114,106,255 222: 68,147,129,255 223: 86,149,131,255 224: 58,120,112,255 225: 163,126,131,255 226: 72,147,124,255 227: 48,114,106,255 228: 56,131,118,255 229: 74,139,114,255 230: 46,102,98,255 231: 54,126,116,255 232: 50,110,106,255 233: 68,141,129,255 234: 58,135,124,255 235: 66,139,126,255 236: 78,153,131,255 237: 70,143,124,255 238: 58,116,110,255 239: 40,98,96,255 240: 52,124,116,255 241: 60,122,114,255 242: 42,104,100,255 243: 44,110,104,255 244: 54,116,108,255 245: 82,143,131,255 246: 66,143,129,255 247: 64,137,118,255 248: 62,137,124,255 249: 60,135,122,255 250: 48,120,112,255 251: 62,139,126,255 252: 54,112,106,255 253: 56,133,122,255 254: 46,108,102,255 255: 255,255,255,255 -Jukka- Daniel Morissette wrote: Hi Jukka, IIRC, a few releases ago (not sure if that was in 6.0 or before) we got rid of all native raster reading code in MapServer and started relying solely on GDAL for raster input. i.e. before that we used to read PNG input directly in MapServer code using libpng, and now we do it through GDAL. That could possibly explain why you get different behaviors, but doesn't explain why your PNG cannot be read by GDAL. Two things to check: 1- Does the image/png request captured from the logs work from the server machine (using wget for instance)? Does it return a valid PNG image? 2- Save the output of that request with a command such as wget https://... - O /tmp/test.png and try running gdalinfo on the output. Maybe that will give some hints. Daniel On 13-04-25 8:05 AM, Rahkonen Jukka wrote: Hi, I was testing Mapserver 6.2.1 from the MS4W 3.0.1beta-1 installation and thought that there was something wrong with the connection. However, the problem seems to be in Mapserver side. I have been using FORMAT=image/png for reading the remote WMS with Mapserver 6.0.1 but with MS 6.2.1 it does not work. After changing image format into image/jpeg Mapserver can again cascade the remote WMS. Part of the errorlog is in the attachment but the most relevant parts are here This request with FORMAT=image/jpeg works [Thu Apr 25 14:30:24 2013].97 HTTP request: id=1, https://...FORMAT=image/jpegSTYLES=HEIGHT=353VERSION=1.1.1S RS=EPS G:3067WIDTH=459BBOX=406810.908602495,7216210.70370872,407078.361 0453 37,7216416.39153513TRANSPARENT=TRUEEXCEPTIONS=application/vnd.o gc.se _inimage [Thu Apr 25 14:30:27 2013].354000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Thu Apr 25 14:30:27 2013].372000 msDrawMap(): Layer 1 (test), 0.022s [Thu Apr 25 14:30:27 2013].372000 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 25 14:30:27 2013].372000 msDrawMap() total time: 2.408s [Thu Apr 25 14:30:27 2013].59 msSaveImage(stdout) total time: 0.218s [Thu Apr 25 14:30:27 2013].592000 mapserv request processing time (msLoadMap not incl.): 2.629s This request with FORMAT=image/png does not work [Thu Apr 25 14:31:13 2013].915000 HTTP request: id=1, https://...FORMAT=image/pngSTYLES=HEIGHT=353VERSION=1.1.1SR S=EPSG :3067WIDTH=459BBOX=406508.434778249,7215858.43375314,407593.6153 7966 5,7216693.00619824TRANSPARENT=TRUEEXCEPTIONS=application/vnd.og c.se_ inimage . [Thu Apr 25 14:31:18 2013].349000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Thu Apr 25 14:31:18 2013].349000 drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 0, Y block offset 0 [Thu Apr 25 14:31:18 2013].349000 msDrawMap(): WMS connection error. Failed to draw WMS layer named 'test'. This most likely happened because the remote WMS server returned an invalid image
Re: [mapserver-users] Mapserver 6.2.1 fails to read remote WMS in png format
On 13-04-25 10:54 AM, Jan Hartmann wrote: On 04/25/2013 04:26 PM, Daniel Morissette wrote: What if you try to gdal_translate it to a TIFF or JPEG for instance? Please make sure you use the gdal_translate tool from the exact same MS4W package as what your MapServer is using. Why should this be so, Daniel? I would expect to give gdal_translate the same results over different distros/architectures. Because we were trying to determine if it's an issue in MapServer or in this specific MS4W build. Just trying to rule out all possibilities. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 6.2.1 fails to read remote WMS in png format
On 13-04-25 10:37 AM, Rahkonen Jukka wrote: Hi, No trouble at all with gdal_translate that is in gdal-ogr tools of the same MS4W3.1.0beta1. If the error message gives right information then perhaps the trouble is not in the png image which is captured from the remote WMS but in getting access to it drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 0, Y block offset 0 I have no idea why reaging png from the service fails while reading jpeg works. Not sure what else to suggest. Are you able to reproduce this on other systems/architectures with the same MapServer and GDAL versions? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] no results for wfs getfeature request
I don't know if that's the issue here, but I seem to remember a problem related to WFS GetFeature request returning no results when the filter contains only attribute filters and no spatial filter. In this case the default mapfile extents is used as the default spatial filter which may lead to no results if it does not overlap with the data. Either try adding a spatial component to your query, or make sure the extents and projection in the mapfile are valid and overlap with the data that you are querying. Daniel On 13-04-15 2:55 PM, Martin Kofahl wrote: Holger, your request contains PropertyIsLike conditions only. So I don't expect the filter to be the source of the error. What about a querystring like SERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=flst_gdsrvt01maxFeatures=1 and WFS 1.1.0? Do these requests return any results or errors? You'll probably have to post the significant parts of the mapfile, too. Kind regards, Martin 2013/4/15 por...@web.de mailto:por...@web.de Hi! Here is the full WFS 1.0.0 request: http://host/ogc-sec-data.ows?service=WFSversion=1.0.0request=getFeaturetypeName=flst_gdsrvt01Filter=%3CFilter%3E%0A%3Cand%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_GKNR%3C%2FPropertyName%3E%0A%3CLiteral%3E534%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_FLNR%3C%2FPropertyName%3E%0A%3CLiteral%3E26%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_FSZ%3C%2FPropertyName%3E%0A%3CLiteral%3E111%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3C%2Fand%3E%0A%3C%2FFilter%3E Regards Holger ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Open Street Map - Map Files
Actually, the document Steve just pointed to is deprecated as mapserver-utils has been replaced with https://github.com/mapserver/basemaps The most up to date docs would be, For ubuntu: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 For Windows: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows On 13-03-15 10:04 AM, Stephen Woodbridge wrote: On 3/15/2013 10:01 AM, Donald Kerr wrote: Does anyone maintain complete MapServer Map files for Open Street Map. I’m looking into creating a standalone Open Street Map server using MapServer and wondered if someone has done some work that I can build on. Not sure if using Postgis or Shapefiles yet so any input appreciated. Many thanks. Regards, Donald Check out: https://github.com/mapserver/mapserver/wiki/RenderingOsmData and specifically look that the section: Download the osm-mapserver utils and more generally google for: openstreetmap mapserver openstreetmap mapserver map file openstreetmap mapserver mapfile -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php-mapscript not working
I may be wrong, but I don't think the following line in your mapfile will do anything: CONFIG MS_DEBUGLEVEL 4 Instead, inside a mapfile I'd suggest using: DEBUG 4 and then see if you get some log output... Daniel On 13-02-18 3:34 PM, Vince Miller wrote: I recently upgraded my development server and updated all the relevant software. The only thing that doesn't work is mapserver/php-mapscript. Here's the particulars: After Ubuntu server 12.04, postgres 9.1, apache2, and php5 seemingly (since they work) installed fine, the installation commands were : sudo apt-add-repository ppa:ubuntugis/ppa sudo apt-get update sudo apt-cache search postgis sudo apt-get install postgis postgresql-9.1-postgis mapserver-bin php5-mapscript cgi-mapserver ./mapserv -v # result: MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG sUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE 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=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The file php_mapscript.so is in /usr/lib/php5/20090626 and phpinfo() suggests that everything is fine, but my PHP script script dies on this line: ?php ... $map = ms_newMapObj(__MAPS_PATH__ . 'eunomi0.map'); ... ? The mapfile eunomi0.map is: MAP CONFIG MS_ERRORFILE /tmp/mapserver.log CONFIG MS_DEBUGLEVEL 4 OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF END FONTSET font.list SYMBOLSET symbols.sym EXTENT -180 -90 180 90 SIZE 1190 595 MAXSIZE2048 IMAGECOLOR 173 178 161 STATUS OFF ... 20 or so LAYER objects, raster pngs and posgis vectors The mapserver.log file is empty. Any clues? This worked fine on my old server. Thanks a bunch, Vince ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Editing via Mapserver application?
On 13-01-02 2:00 PM, Bistrais, Bob wrote: I would like to build a MapServer-based application which includes the ability to edit features, and am posting to see what others have done. Our current stack includes a GeoMoose front end, that is, MapServer/PHP MapScript, and Open Layers. Currently, we have a SQL Server/SDE database, and ArcGIS Server available, but have not implemented PostGIS. With that in mind, I was wondering what advice others have, and if anyone has a working application, could you direct me to it so that I could have a look? Any suggestions appreciated. Here are two examples supporting WFS-T editing via TinyOWS: http://labs.mapgears.com/en/archive/wfstfeatureediting-ux and http://labs.mapgears.com/en/archive/bdga-wfst Both examples come with a page listing the details of the components used. BTW, for anyone interested, there are more demos/samples/experiments in our Mapgears Labs site at http://labs.mapgears.com/ -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] proportional circle legend
Hi Steve, I think your best would be to set a KEYIMAGE in your CLASS: http://mapserver.org/mapfile/class.html Daniel On 12-12-17 1:39 PM, steve.tout...@inspq.qc.ca wrote: Hi, I created a thematic map showing proportional circles. I did that by using a table attribute for the SIZE of my circles. It works great. CLASS NAME 'Pop' STYLE SYMBOL 'CIRCLE' SIZE [rayonquot] COLOR 168 221 181 OUTLINECOLOR 0 0 0 END END I would like to generate a nice legend for this layer. Currently I get a small dot. I would like to create a commonly used legend for proportional circles such as http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.pngimgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/h=437w=684sz=49tbnid=9UOZ3j0H8Wah_M:tbnh=77tbnw=120zoom=1usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=docid=1U4GvObRwxH3MMhl=frsa=Xei=YGbPUO3NLKmq0AG2t4FAved=0CDgQ9QEwAQdur=656 or http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gifimgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htmh=90w=217sz=4tbnid=nxf1TkPjY35LxM:tbnh=50tbnw=120zoom=1usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=docid=dtQd4I2ykpB1FMhl=frsa=Xei=YGbPUO3NLKmq0AG2t4FAved=0CD4Q9QEwAwdur=413 Any ideas on how to do that? thanks steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Raster color table
On 12-12-14 5:52 PM, ALT SHN wrote: Hi, Is there a way to associate a color table to a 8bit raster so Mapserver doesn't render it in grayscale? In the Mapserver documentation, a pallete is refered, but for what I understood, this applies to the output format, not to a particular raster. Is there a workarround for this situation? (other than converting the raster to RGB) You could create a GDAL VRT file for your image in which you associate a color table to the raster band, and then point your MapServer layer definition to the VRT. See: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable and http://www.gdal.org/gdal_vrttut.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress?
William, As Armin wrote, it seems that using PHP as an Apache DSO with the pre-fork MPM would be the way to go. I don't remember seeing reports of issues with that combination in quite a while (I mean several years, so much that we had forgotten about those issues from the old days). Daniel On 12-11-20 1:37 PM, Armin Burger wrote: William I cannot say anything for Mac OS in this respect. But at least for Linux running Apache in the classical pre-fork MPM I did not experience problems with PHP-MapScript running as an Apache DSO. Also some stress tests with benchmarking using multiple WMS requests with on MapScript OWS as server backend did not cause problems. I sometimes noticed some irregular, strange, and difficult to reproduce problems with MS 6.0 and PHP Mapscript (Apache or CGI segfaults), but that was independent of PHP with Apache DSO or as CGI, and this never ever happened with MS 5.x. armin On 15/11/2012 04:52, William Kyngesburye wrote: It's my understanding that when running PHP-Mapscript with PHP as an Apache DSO, under heavy loads it can randomly hiccup/trip/crash or otherwise not perform correctly. So I've been maintaining an OS X PHP-CGI package to go along with my MapServer package. Is this still a problem? Maybe I missed a fix for this? Or is it being worked on (or not being worked on)? Or is it an unsolvable problem (maybe due to the nature of a DSO)? I'm thinking about simplifying my OS X GIS/carto stack and dropping my PHP-CGI package in favor of the OS X system PHP-DSO (a bit old) or some other better-maintained PHP package for OS X (which will likely be a DSO). - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Time is an illusion - lunchtime doubly so. - Ford Prefect ___ 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [gdal-dev] Gdaltindex with -t_srs and Mapserver
I think mixed projection raster tileindex is a cool idea, but it should probably be kept separate from RFC 37 (even if both need to happen at the same time). Now, as for any new feature request, you just need to find a champion with time/interest/funding to make it happen. :) Daniel On 12-09-27 9:36 AM, Rahkonen Jukka wrote: Hi, This is an intentional cross-posting and the main message is to support implementing RFC 37 http://mapserver.org/development/rfc/ms-rfc-37.html and enlarge it to support mixed-projection raster tileindex layers, if possible. -Jukka Rahkonen- Vastaanottaja: 'gdal-...@lists.osgeo.org' Aihe: Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver Hi, I did not meant to underestimate this little but extremely useful improvement. However, you made me hungry: if you can see so simply the image footprints, why not also the images? I am already publishing in our WMS also the tileindex shapefiles so people can see the image boundaries and make GetFeatureInfo queries from the image metadata that we have added to the shapefile as a few extra fields. In order to make it works we have reprojected images from their original projection zones into one common zone. Now I wonder if it could be possible to make Mapserver to support tileindex layers containing source images with mixed projections. As a non-programmer I have a strong belief that if I can say what I want, someone can program it. I believe that Mapserver already gets the correct image list from the mixed-projection shapefile. I guess also that Mapserver does not read image metadata from the geotiff image files for getting the projection but it relies on the LAYER level PROJECTION setting. In my simple test case with two images, one in EPSG:2393 and another in EPSG:2392 this means that Mapserver thinks that images are 1000 kilometers apart and sharing the EPSG:2393 system that I used in the PROJECTION block. Perhaps there could be an optional setting for LAYER level PROJECTION, both for individual images and tileindex layers, something like init:internal_metadata. It would mean that Mapserver would do first a query in a same manner than gdalinfo and ogrinfo for reading the native projection of the dataset. Ok, once written this long I started to think about using PROJECTION AUTO and then I found this three-year-old RFC http://mapserver.org/development/rfc/ms-rfc-37.html +1 for implementing it. By the way, woudn't it be nice if desktop GIS like QGIS would show you also your Landsat archive images and not only the footprints in some pretty automatic way, let's say, after ticking a check box and setting the maximum scale denominator value? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: Etienne Tourigny [mailto:etourigny@gmail.com] Lähetetty: 27. syyskuuta 2012 15:27 Vastaanottaja: Rahkonen Jukka Kopio: gdal-...@lists.osgeo.org Aihe: Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver Jukka, nice that you noticed this new feature I added - was about to advertise it here! The goal of adding this feature was not to make it available in mapserver, but for using in desktop applications as a reference for multiple files with different projections (e.g. landsat archives). cheers Etienne On Thu, Sep 27, 2012 at 6:07 AM, Jukka Rahkonen jukka.rahko...@mmmtike.fi wrote: Hi, I had a try with gdaltindex and the new -t_srs option that is discussed in http://trac.osgeo.org/gdal/ticket/4773. It seems to be as Even was thinking in the very beginning and Mapserver does not work with tileindex which is containing reprojected bounding boxes. Images with BBOX in the native projection are shown but not the others. This line appears into Mapserver log: msDrawRasterLayerGDAL(): Error in overlap calculation. It might indeed be good to emit a warning about Mapserver incompability. It would be very nice if Mapserver supports this kind of tileindeces. -Jukka Rahkonen- ___ gdal-dev mailing list gdal-...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Starting label from start-line
On 12-09-27 10:50 AM, Lime, Steve D (DNR) wrote: One thing to try would be using the REPEATDISTANCE parameter and giving it a ridiculously large value (in pixels). That might place just a single label at the beginning of a line and no others. IIRC repeatdistance will start from the center of the line anyway, to give precedence in the labelcache to the labels closer to the middle of the line over those at the ends, so that won't work. See http://trac.osgeo.org/mapserver/attachment/ticket/3030/label_algorithm.gif -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Projection library error. no options found in 'init' file
On 12-08-13 5:03 PM, Puneet Kishor wrote: I am, out of the blue, getting the following error [Mon Aug 13 15:55:37 2012].825787 msProcessProjection(): Projection library error. no options found in 'init' file What is it trying to tell me? This was working fine as of a few days ago, and I don't recall messing with it. The EPSG code you are trying to use is not defined in your 'epsg' file: http://mapserver.org/errors.html#msprocessprojection-no-options-found-in-init-file -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer and PHP
On 12-07-30 11:37 AM, Jeff McKenna wrote: Thanks for your feedback. In fact at last year's WMS Benchmarking exercise with several software teams, we found that MapServer on Windows did very well vs Linux, and other mapping engines for that matter (don't just take my word for it, see the numbers at http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/). Looking at the charts in the 2011 Benchmark presentations, it seems that MapServer on Linux was more or less 3 times faster than the Windows version in each chart. So my interpretation is that MapServer on Windows is doing as well as the rest of the pack, but in those tests, MapServer and Mapnik on Linux were still doing much better. Am I missing something? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Charter Member Nomination: Thomas Bonfort
I'd like to second Thomas' nomination. Thomas is another one of those individuals that we're so used to seeing around OSGeo projects, conferences and code sprints that we just assumed that he was already charter members. As Steve wrote, he is a very constructive team player, so much that many of the performance gains made in recent FOSS4G benchmarking exercises in both MapServer and Mapnik can be tracked down to the great coopetition[1] spirit that Thomas (for MapServer) and Dane Springmeyer (for Mapnik) put into the benchmarking game, effectively exchanging hints and tricks to help boost the performance of each other's (competing) software. That's open source at its best. Daniel [1] Coopetition = Cooperative competition On 12-06-28 1:25 PM, Stephen Woodbridge wrote: Hi, I would like to nominate Thomas Bonfort for OSGeo Charter Member. Thomas has been a long time active supporter of the Open Source GIS movement. He developed mod_geocache which has since been merged with mapserver as mapcache, he is an active developer of mapserver and recently taken on the responsibility for the latest mapserver release in the works. Thomas has presented in various FOSS4G conferences and is constructive and a great team player. I think Thomas would make an excellent OSGeo Charter Member. Best regards, -Stephen Woodbridge ___ Discuss mailing list disc...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Strange coordinates used in GetFeatureInfo request
\Apache\cgi-bin\m01_template.html footer C:\ms4w\Apache\cgi-bin\m01_footer.html projection init=epsg:4326 end units dd feature wkt polygon((-20 -20,-20 20,20 20,20 -20,-20 -20)) items x101 end processing items=ID labelitem ID class name InternalClass style color 255 0 0 outlinecolor 0 255 0 end label position auto size small color 0 0 0 end end end then the query returns a result. Therefore I believe that the mapfile is well-formed. 4. If I change the feature to POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)), no result is returned by the query. Therefore I believe that the bad coordinate problem occurs not only for Sal Server but for an inline feature as well. 5. GetMap shows the expected polygons for both the Internal and External layers when specifying x=0y=0 and using a feature defined as POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)). Therefore I believe that the problem is specific to GetFeatureInfo. - Phil Anzel Contractor for USDA/NRCS ITC Web Soil Survey Team Member This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Strange coordinates used in GetFeatureInfo request
On 12-06-23 11:00 AM, Daniel Morissette wrote: I didn't read your whole mail, but short answer is that I suspect you are overlooking the fact that in GetFeatureInfo, the X and Y coordinates are in pixels within the view of the map (which is 500x500 pixels in your example). So when you write x=0y=0 that refers to the top-left corner of the map view, and not the 0,0 of the SRS coordinate system... which corresponds to longitude=-10, and latitude=+10. Actually, the x,y value is translated to be the center of the top-left pixel (and not its top-left boundary), which explains why you get lon,lat=9.98,9.98 in the query. Please let me reword this last paragraph to make it a little more clear: When you write X=0Y=0 in your GetFeatureInfo request that refers to the top-left corner of the map view which is located at longitude=-10, and latitude=+10, and not to the 0.0,0.0 of the SRS=EPSG:4326 coordinate system. Actually, the X,Y value is translated to be the center of the top-left pixel (and not its top-left boundary), which explains why you get lon,lat=-9.98,9.98 in the query. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Period in a getmap with time dimension
What if you try with the following: TIME 2007-01-12/2008-01-01/P1D or TIME 2007-01-12/2008-01-01 or TIME 2007-01-12T20:00:00Z/2008-01-01T04:00:00Z On 12-06-21 10:03 AM, Marc-André Trottier wrote: with a TIME parameter like : TIME |2007-01-12T20:00:00Z/2008-01-01T04:00:00Z/P1D |i got this error from mapserver : [Thu Jun 21 09:51:44 2012].943269 msTokenizeExpression(): Expression parser error. Parsing time value failed. [Thu Jun 21 09:51:47 2012].224701 msParseTime(): Regular expression error. Unrecognized date or time format (). i got a map but all data. 2012/6/20 Daniel Morissette dmorisse...@mapgears.com mailto:dmorisse...@mapgears.com FYI I checked the code the other day and there seems to be some code to support ranges. I wonder if it is just plain broken and not working, or if this specific range value falls in a limit case that would need fixing. Perhaps Marc-André could test further and report his findings. Daniel On 12-06-20 12:22 PM, steve.tout...@inspq.qc.ca mailto:steve.tout...@inspq.qc.ca wrote: A workaround could be to use a proxy/wrapper for your layer and generate your time series in php per example, and let php launch the request... steve *Lime, Steve D (DNR) steve.l...@state.mn.us mailto:steve.l...@state.mn.us@lists__.osgeo.org http://lists.osgeo.org* Envoyé par : mapserver-users-bounces@lists.__osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org 2012-06-19 15:40 A Marc-André Trottier marcandre_trottier@hotmail.__com mailto:marcandre_trott...@hotmail.com, mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org cc Objet Re: [mapserver-users] Period in a getmap with time dimension I’m not aware of plans to handle this. It’s going to take a developer or a user with interest and energy. Steve *From:* mapserver-users-bounces@lists.__osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-__boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Marc-André Trottier* Sent:* Friday, June 15, 2012 10:49 AM* To:* mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org* Subject:* [mapserver-users] Period in a getmap with time dimension period in the time format will it be supported in near future ? example : 1995-04-22T12:00Z/2000-06-__21T12:00Z/P1D _ mapserver-users mailing list mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/__mailman/listinfo/mapserver-__users http://lists.osgeo.org/mailman/listinfo/mapserver-users _ mapserver-users mailing list mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/__mailman/listinfo/mapserver-__users http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _ mapserver-users mailing list mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/__mailman/listinfo/mapserver-__users 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Period in a getmap with time dimension
FYI I checked the code the other day and there seems to be some code to support ranges. I wonder if it is just plain broken and not working, or if this specific range value falls in a limit case that would need fixing. Perhaps Marc-André could test further and report his findings. Daniel On 12-06-20 12:22 PM, steve.tout...@inspq.qc.ca wrote: A workaround could be to use a proxy/wrapper for your layer and generate your time series in php per example, and let php launch the request... steve *Lime, Steve D (DNR) steve.l...@state.mn.us@lists.osgeo.org* Envoyé par : mapserver-users-boun...@lists.osgeo.org 2012-06-19 15:40 A Marc-André Trottier marcandre_trott...@hotmail.com, mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org cc Objet Re: [mapserver-users] Period in a getmap with time dimension I’m not aware of plans to handle this. It’s going to take a developer or a user with interest and energy. Steve *From:* mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Marc-André Trottier* Sent:* Friday, June 15, 2012 10:49 AM* To:* mapserver-users@lists.osgeo.org* Subject:* [mapserver-users] Period in a getmap with time dimension period in the time format will it be supported in near future ? example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D ___ 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . .
On 12-06-13 10:22 AM, Basques, Bob (CI-StPaul) wrote: Barend, The Legend Chip is my name for a legend image (as generated by Mapserver), geomoose builds a Legend on a per layer basis from a call to MapServer. So since the WMS image call goes through MapServer, we use MapServer for Legend as well. It's looking so far like MapServer doesn't support legends entirely. The only references I can find to cascaded WMS legends is in the TRAC listing about others having/wanting the same functionality, so far at least. . . FYI Cascading of GetLegendGraphics has been implemented in the dev version (future 6.2). It kicks in only of some specific conditions are met. See: https://github.com/mapserver/mapserver/issues/3923 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms base layers
On 12-05-14 9:42 AM, Stephen Woodbridge wrote: On 5/14/2012 5:31 AM, Rita Abreu wrote: Hi, I´m a new user of mapserver. Can anyone recomend me base layers for my project? Can somenoe tell me how to add google layers or osm layers? [...] If you really are asking how to pull OSM or Google into mapserver, instead of OpenLayers, then you will need to extract the OSM data into data layers and create a mapfile to render it in mapserver OR find an existing WMS service that you can pull OSM images into mapserver. You can not do this with Google it violates their TOS. For a step by step recipe to load and render OSM with MapServer, see: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntu -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Class group and getfeatureinfo request
On 12-05-14 2:22 PM, Marc-André Trottier wrote: Is there a way to consider the CLASS GROUP into a WMS getfeatureinfo request ? CLASS GROUPs are mapped to named WMS STYLES by MapServer: http://mapserver.org/ogc/sld.html#named-styles-support I didn't test this, but since GetFeatureInfo is really a complete GetMap plus a few extra parameters specific to GetFeatureInfo, it should be possible to set the GetMap STYLES=... parameter in the GetFeatureInfo URL and have it select only the right group of classes for the layer(s) for which a style is specified. (MapServer also has a STYLE block inside CLASSes, but don't let that confuse you. The WMS STYLEs are really mapped to CLASS GROUPs.) -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] pointObj-project behaviour differences from 4.10 to 5.6 versions
EPSG:32630 is UTM Zone 30N ... http://spatialreference.org/ref/epsg/32630/ A UTM coordinate system is defined for a limited area, a UTM zone has a width of 6 degrees of longitude, in this case EPSG:32630 WGS 84 / UTM zone 30N WGS84 Bounds: -6., 0., 0., 84. It is very likely that you are getting random values from various PROJ versions because your -116, -15 test coordinate is outside of the area of validity of the EPSG:32630 coordinate system. Daniel On 12-04-23 9:39 AM, Juanma M. R. wrote: Hi, I have been doing more tests to try to identify exactly the problem and I ahve realized that, according to http://twcc.free.fr/, the coordinates returned when working with php_mapscript from version 4.10 are not correct. I am trying to get where is the problem, so that I can decide wether sorting out a The issue is that the function project returns different things depending on the server configuration: Input coordinates in Google Spherical Mercator: (-20500513.477395,-3641436. 715144) Server 1: proj 4.1.5 and MapServer 4.10 returns (-90270074.105905,-216622133.8792) Server 2: proj 4.1.7 and MapServer 5.6 returns (-20500513.477395,-3641436.715144) The World Coordinate Converter automatically transform the output CRS to UTM 60S, so I can't not validate the transformation with it. The issue is that I would like to understand the expected behaviour from this function, so that I can go on checking it and defining the best way to support the functionality or detecting a problem in servers configuration. The code is as follows: function project($x, $y, $srsIn, $srsOut) { $pointObj=ms_newPointObj(); $pointObj-setXY($x,$y); $pointObj-project(ms_newProjectionObj(init=.strtolower($srsIn)), ms_newProjectionObj(init=.strtolower($srsOut))); $xout=$pointObj-x; $yout=$pointObj-y; $pointObj-free(); return $xout.,.$yout; } ? 2012/4/16 Lime, Steve D (DNR) steve.l...@state.mn.us mailto:steve.l...@state.mn.us The transformation is done in place, I’ve not had problems with it. What language? Can you post a code snippet? __ __ *From:*mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Juanma M. R. *Sent:* Thursday, April 12, 2012 4:13 AM *To:* mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] pointObj-project behaviour differences from 4.10 to 5.6 versions __ __ Dear list, I have a webgis application working with different CRS all over the world. I have realized that the behaviour from version 4.10 of the function pointObj-project differs from the one of version 5.6 from Mapserver. For example, I try to convert (-116,-15) in 4326 and in mapscript from version 4.10 it returns (-26158630.407638,-25040425.679281) when passing to 32630. On the other hand, in version 5.6 of mapscript it returns the original coordinates without transforming them. Is this intended or am I doing something wrong? Which is the intended behaviour of project function in MapServer 5.6? Best regards, -- Juan Manuel Moreno Rivera. University of Castilla-La Mancha Albacete, Spain -- Juan Manuel Moreno Rivera. University of Castilla-La Mancha Albacete, Spain ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] encrypt password
On 12-03-29 8:05 AM, Pedro Costa wrote: Hello, I'm using Mapserver with pmaper and i want encrypt the password of a postgis connection in mapfile. Someone can tell me how I do that? http://mapserver.org/utilities/msencrypt.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] encrypt password
On 12-03-29 8:40 AM, Pedro Costa wrote: Thanks but don´t work... The webgis stay loading the layers forever... Can you help me? It could be that MapServer produces an error and The webgis (whatever it is) is not prepared to handle it and just spins forever. If the error is really on the MapServer side then the following instructions should help you track down the source of the problem: http://mapserver.org/optimization/debugging.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] FOSS4G North America is Almost Here: April 10-11
Hey, MapServer users, I am forwarding an announcement from the FOSS4G-NA organizing committee, hoping to see many of you there! -- FOSS4G North America is one month away! Due to venue restrictions (400 max!), we only have a limited number of registration spaces still remaining, so sign up soon! * The full program is here, online at http://foss4g-na.org/program/ * Online registration is here, at http://foss4g-na.org/registration/ * Rooms at nearby hotels are available too, in a limited room block, http://foss4g-na.org/hotel-block-annouced/ We are proud of our program, which includes talks from open source developers, managers and visionaries. FOSS4G North America is a great opportunity to learn about the statue of the art, and how people are putting open source to use in their organizations. We hope to see you in DC! FOSS4G North America Paul Ramsey (Chair), OpenGeo Bonnie Bogle (Program Chair), MapBox ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Release of MapServer 6.0.2 and 5.6.8
The MapServer team announces the release of MapServer versions 6.0.2 and 5.6.8. No new functionality has been added. 6.0.2 is a maintenance release that fixes a few issues found since 6.0.1 including a recently discovered security vulnerability in the handling of WFS filters inside a SLD. The list of fixes since 6.0.1 is included at the end of this message. Versions 5.6.8 includes fixes for the same WFS Filter security vulnerability plus a few bug fixes that were backported since the last official release. See the 5.6.8 HISTORY.TXT file for additional information. Source and binary downloads: The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated shortly with binaries for the new 6.0.2 release (and in some cases 5.6.8). The MapServer Team Version 6.0.2 (2012-02-08): --- - Fix security issue with quote escape in WFS GetFeature Filter (#4087) - Fixed lexer buffer size issue with single quotes in a string (#4175) - Raster layer fails to be drawn if the window is less than half a pixel (#4172) - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) - Fixed a problem with calls to labelInImage() (maplabel.c) when label gutter and label buffers are both used (#3303). Also changed the usage around that function to make it easier to understand. At a result the labelcache_map_edge_buffer processing option (i.e. gutter) can be provided as a positive or negative value. (closes #1355 too) - Added label-style markers to collision detection (#4133) - Fixed single pixel coverages in WCS 2.0 (#4110) - Fixed subsetting in WCS 2.0 (#4099) - Fixed segfault when calling classObj::updateFromString() with SYMBOL (#4062) - fix rendering offset on thick GD lines (#3962) - fix segfault on join with postgresql tables (#4074) - Fixed Python Mapscript does not write COLOR to reference map (#4042) - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) - Add missing outputFormat support in WFS GetFeature POST XML requests (#4052) - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) - fix centroid geomtransform parser (#4029) - PHP MapScript is missing many styleObj properties (#3901) - Added GEOMTRANSFORM in writeStyle function - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) - Changed msDrawVectorLayer() not to cache shapes if attribute binding is present after the first style (#3976) - Fix mapscript to build when TRUE macro is not defined (#3926) - Fix mapscript php build issues with MSVC (#4004) - PHP/Mapscript: Segmentation fault when getting complex object using PHP 5.2 (#3930) - Fixed contains operator in logical expresions (#3974) - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mode=nquery no longer supported?
On 12-01-26 7:36 PM, Richard Greenwood wrote: mapserv -v returns 6.1-dev which I assume means trunk. I've been using branch-6-0. Are there any plans for a 6.0.2 release? I can't speak for MS4W, but on the MapServer front I think we are overdue for a 6.0.2 release with lots of great fixes waiting to be released, so we should try to get a 6.0.2 out soon. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: RE [Polluriel potentiel] Re: [mapserver-users] Relative path's in mapfile
On 12-01-25 9:01 AM, steve.tout...@inspq.qc.ca wrote: How do you manage the server/domain name in the mapfile for wms_onlineressource when migrating from dev to prod environment. Per example, http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP Do we need to manually change localhost:80before migrating to prod? There is no automated way to handle this, so yes you need to edit the mapfile, or use a script to automate the replacement. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Relative path's in mapfile
On 12-01-25 10:04 AM, Rahkonen Jukka wrote: Hi, I have been thinking that the the MAP METADATA parameter wms_onlineresource might have a setting wms_onlineresource auto It would capture the url that was used for reading the GetCapabilities and place the reasonable parts of it automatically into GetCapabilities response. This option would serve also the development-test-production migration, Actually, if you do not set the wms_onlineresource at all then this is what you get: an automatically generated onlineresource URL based on MapServer's best guesses. I didn't think of suggesting this option in my earlier reply to Steve because this is only a best guess which is often wrong as lots of MapServer instances are either behind a NAT/firewall or a load balancer and in lots of cases what you get is an incorrect onlineresource based on the proxy'd URL and not the real public URL. but originally I had another use for it in my mind. It is possible to do wonderful things with Mapserver variables and runtime substitution but standard WMS clients do not support using the vendor options easily. But imagine that user reads GetCapabilities as http://server.org/cgi-bin/mapserver_wms?service=WMSversion=1.1.0request=GetCapabilitiesvariable1=foovariable2=bar and then the GetMap onlineresource in GetCapabilities would look like http://server.org/cgi-bin/mapserver_wms?variable1=foovariable2=bar Adding hardcoded vendor-specific params to the automatically generated URL sounds like a nice idea. We'd just need someone to champion it ;-) -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Errors when using SLDs under stress test
On 2011-11-29, at 3:55 PM, Sebastián Cruz wrote: I have no records about MaxClients on Apache's logs. I've also tried upping the limits to reach 1500 clients but the behaviour is the same. Anyway, the deadlock scenario you mention is what I suspect. Could it be happening in some other form? I can't think of anything else right now. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Errors when using SLDs under stress test
On 11-11-28 10:04 PM, Sebastián Cruz wrote: AFAIK from my configuration, every client request triggers a Mapserver process to download the SLD from the URL specified and that in turn makes it download every image in the ExternalGraphic URL. When there are up to 10 concurrent requests everything is working fine, but when that goes up to 20 or 40 concurrent requests the errors appear. You can see this in this reflected in JMeter's result table [5]. Consider that the SLD file and the images are served through the same Apache that's serving Mapserver as FastCGI, so the downloading of info necessary to draw the map involves network connections to the same host. I'm guessing that maybe Mapserver and/or Apache are running out of file descriptors? Or available sockets? Or just hitting some limit of that kind that I'm not aware of. Am I trying to do this correctly? It may be that you are hitting Apache's MaxClients, and because of the recursive downloads (MapServer initiating downloads to the same Apache that called it) you eventually end up in a deadlock situation where all your MapServer instances are holding Apache client connections while they wait for more clients connections to be available to complete all their own downloads. If that's the case then you should see errors about MaxClients being reached in your Apache error log. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Mapserver /tmp files appearing all of a sudden w/CONTEXT parameter used
I didn't read all your posts, but this sounds like it may be related to some changes/fixes made to the handling of temporary files in v6.0.x: See: http://mapserver.org/development/rfc/ms-rfc-66.html and http://trac.osgeo.org/mapserver/ticket/3354#comment:6 Sounds like the docs may need an update about this. And I'm not sure if the RFC outlines the final behavior properly. Alan, Assefa, can you please create a doc ticket outlining the exact behavior resulting from your changes? On 11-11-24 11:25 AM, myOpenLayersUName wrote: With respect to this problem of writing to the /tmp, rather than our /ogc_tmp/ (IMAGEPATH) directory, one thing we have just tried though that is interesting... I mentioned earlier we were upgrading from 5.4 (I mis-spoke when I said 5.6) to 6.0.1. As we still have both executables available on the same machine, we tried switching them and making the same URL request. When the executable is 5.4, the *.context.xml is written to /ogc_tmp/ but when the executable is 6.0.1, it is /tmp. For this particular functionality (the copying of the WMC's contents), could there be an error reading the IMAGEPATH variable in the code? My debugging capabilities in this particular environment are visual only (just eyeballing the code and trying to find my way through it). I can't actually step through the code at run time to see the value being read when trying to put together the path for where to put the file but it's the only thing I can think of that might explain what we're seeing. Does anyone know if this is a valid possibility? Steve, Thank you for your response. To answer your questions specifically, we do not set IMAGEPATH and/or IMAGEURL in the Apache config files; only in the map files. To be certain, though, I verified this again this morning. With respect to the permissions, the Mapserver user doesn't have log on permissions in this environment, so I can't get a shell as that user. However, I checked the permissions for the folder and they include o+rwx. I would think that should allow Mapserver to write to it. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-tmp-files-appearing-all-of-a-sudden-w-CONTEXT-parameter-used-tp7009495p7028718.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem with Variable Substitution for EXPRESSION
Which binaries are you using? If you your own custom build then are you sure it's not a case of multiple versions of REGEX on the same system? That used to be a problem in the old days with PHP's local copy of regex conflicting with the system regex, but I don't think that is a problem any more though. On 11-11-16 10:40 AM, Lime, Steve D (DNR) wrote: Well, that’s not good is it. Hmmm… I ran a quick test here using this mapfile: MAP NAME 'test' SIZE 450 600 EXTENT 125000 4785000 788000 5489000 IMAGETYPE PNG8 LAYER VALIDATION 'area' '^[-+]?[0-9]*\.?[0-9]+$' END NAME 'county' STATUS DEFAULT TYPE POLYGON DATA ' bdry_counpy2' CLASS EXPRESSION ([area] %area%) STYLE COLOR 212 212 212 OUTLINECOLOR 0 0 0 END END END END This is against 6.0 latest trunk although I don’t think there have been any changes in that area… I can run something like: mapserv -nh QUERY_STRING=map=test.mapmode=maparea=5 test.png If ‘area’ parameter is provided as a non-double then the substitution isn’t done. I believe the substitution validation errors fail silently. This example works, how different is what you’re doing? Steve *From:*Prabu Raja [mailto:prab.r...@gmail.com] *Sent:* Wednesday, November 16, 2011 5:16 AM *To:* Lime, Steve D (DNR) *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] Problem with Variable Substitution for EXPRESSION Thanks Steve. Tried the following regular expression [-+]?[0-9]*\.?[0-9]+. For which the internal server error is coming from Apache. No error logged in mapserver log. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.** On Tue, Nov 15, 2011 at 8:37 PM, Lime, Steve D (DNR) steve.l...@state.mn.us mailto:steve.l...@state.mn.us wrote: See http://www.regular-expressions.info/floatingpoint.html for some good examples. Steve *From:*mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Prabu Raja *Sent:* Tuesday, November 15, 2011 4:29 AM *To:* mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] Problem with Variable Substitution for EXPRESSION Hi, I need to compare one attribute from database table in EXPRESSION (under LAYER) with six different values passed as Variable Substitution for coloring the layer. I did added validation for those variables in the map file, but for some reason I am getting the below error. *msValidateParameter(): Regular expression error. Parameter pattern validation failed.* *msEvalRegex(): Regular expression error. String failed expression test.* *msValidateParameter(): Regular expression error. Parameter pattern validation failed.* Could anyone help me with where I am wrong? Below is the map file content for this layer. All the six variables would be numbers (may be a decimal number), Is my regular expression correct? WEB VALIDATION value_one ^[\d+(\.\d)]*$ value_two ^[\d+(\.\d)]*$ value_three [^\d+(\.\d)]*$ value_four [^\d+(\.\d)]*$ value_five [^\d+(\.\d)]*$ value_six [^\d+(\.\d)]*$ END END LAYER NAME state TYPE polygon STATUS ON CONNECTIONTYPE POSTGIS CONNECTION user=postgres password=** dbname=shpdb host=localhost port=5432 DATA the_geom FROM (SELECT gid, the_geom, totpop1 FROM state_shape) AS SUBQUERY using unique gid PROCESSING CLOSE_CONNECTION=DEFER CLASSITEM totpop1 OPACITY 100 CLASS EXPRESSION ([TOTPOP1] = %value_one% AND [TOTPOP1] %value_two%) STYLE COLOR 255 108 118 OUTLINECOLOR 255 255 255 END END CLASS EXPRESSION ([TOTPOP1] = %value_two% AND [TOTPOP1] %value_three%) STYLE COLOR 254 189 75 OUTLINECOLOR 255 255 255 END END CLASS EXPRESSION ([TOTPOP1] = %value_three% AND [TOTPOP1] %value_four%) STYLE COLOR 254 247 46 OUTLINECOLOR 255 255 255 END END CLASS EXPRESSION ([TOTPOP1] = %value_four% AND [TOTPOP1] %value_five%) STYLE COLOR 39 251 114 OUTLINECOLOR 255 255 255 END END CLASS EXPRESSION ([TOTPOP1] = %value_five% AND [TOTPOP1] = %value_six%) STYLE COLOR 108 111 205 OUTLINECOLOR 255 255 255 END END END -- Regards, Prabu Raja -- Regards, Prabu Raja ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript Sample
On 11-11-16 11:51 PM, boesiii wrote: I am trying to learn PHP MapScript and was starting with this webpage http://mapserver.org/mapscript/php/by_example.html but when I try to load the first example with my modifications I get an undefined function dl() error, so I commented that line out because I think php is already initialized but when I reload the file I get a broken image symbol on the screen, but when I check the tmp folder I find the image file. Why is the image not being displayed on my screen? Thanks for your help. [...] Below is my MAP file: [...] WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /tmp/ END IMAGEURL /tmp/ means that the saveWebImage() method will create image paths starting with this value. If you get a broken image that must be because the http://your.host.name/tmp/... URL path does not point to the location of your images as it should. To fix this, make sure your Apache (or Web Server, whatever it is), has an alias (or symbolic link) pointing the http://your.host.name/tmp/ URL to the /ms4w/tmp/ms_tmp/ directory. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer specific encoding - GetFeatureInfo
There is no direct support for this in MapServer yet, but there is a ticket with a possible patch attached to it at: http://trac.osgeo.org/mapserver/ticket/4028 There was also a discussion about a tighter integration (not limited to WFS) of this type of encoding support in MapServer at the code sprint in Denver, but I don't think anyone has followed up with an implementation yet. On 11-11-07 12:10 PM, Frode Wiseth Jørgensen wrote: I'm from one of those countries that unfortunately deals with letters outside of A-Z, like ÆØÅ. Case: I have av WMS service with various layers based on Shapefiles and PostGIS. Some of the datasets are in UTF8, some in LATIN1. When I'm passing a GetFeatureInfo request with INFO_FORMAT=application/vnd.ogc.gml and a commaseparated list of QUERY_LAYERS the results is not so good because of the mix of UTF8 and LATIN1 in the output XML. The LABEL object have ENCODING as an option that deals with output related to such issues but not the LAYER object (as far as I can see). Is it possible for instance to state on the LAYER object the encoding of the current layer and that the respons from all GetFeatureInfo request should be in UTF8? Any good advice related to this? Thanks Frode ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Hiding the layers contained in a group from the WMS GetCapabilities
I don't think MapServer 6.0 supports what you are trying to do, but I think this is something that was going to be addressed by the INSPIRE work (RFC 75, ticket #3608). Not sure if that's in place in trunk already or not. Stephan Meissl would be best to answer that one if he's reading this... or otherwise you could ask on the mapserver-inspire list. Daniel On 11-10-20 05:52 AM, Alexandre Saunier wrote: Hello, I would like that only the groups appear in my WMS GetCapabilities response, not the layers they contain, with Mapserver 6.0.0. I have tried to add the following metadata: wms_enable_request !GetCapabilities in the layer definition. For instance: LAYER NAME layer1 GROUP foobar TYPE polygon METADATA wms_title layer1 wms_group_title foobar wms_enable_request !GetCapabilities END END It works correctly (*) but when all the layers are removed from the GetCapabilities, the parent group disappears as well. Is there a way to keep the group visible in the GetCapabilities even when all its layers are hidden? Thanks, Alexandre (*) Actually I have noticed weird behaviours when only some of the group layers are marked hidden. There's already a ticket about that issue: http://trac.osgeo.org/mapserver/ticket/3931 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Mapserver Projection Errors
The error you get is projection not named, my best guess is that you'd get this because a projection definition is used that has an invalid or missing proj=... value. (Unrelated to ticket #2028) Something to try: compile the list of all EPSG codes that are advertized in your GetCapabilities and for each one make sure the proj=... value in the definition in the epsg file is valid. Also look out for missing spaces in the definition in the epsg file which was the source of a similar error in the following thread: http://osgeo-org.1803224.n2.nabble.com/New-EPSG-added-but-Projection-Error-td3131630.html Daniel On 11-10-19 09:37 AM, SixDegrees wrote: Thanks. I read through that thread and tried one addition to my mapfile - 'ows_srs EPSG:4326' - but the error persists. All other suggestions were already in place. It is definitely happening on the GetCapabilities request - I can reproduce it by simply making that request directly through the browser - and one error is reported for each layer. Inspection of the returned XML shows no errors, and the bounding boxes for the layers has been reprojected correctly when it differs from the advertised map-level 'epsg:4326'. The layers themselves seem to load fine, without any errors. So perhaps this is a spurious message, although the thread seems to suggest that it was fixed prior to the v6.0.0 release and I am still seeing it. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-Projection-Errors-tp6908527p6908679.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Mapserver Projection Errors
If you could produce a small testcase that reproduces the issue then it may be easier to help. Just a mapfile may be sufficient for testing the GetCapabilities. On 11-10-19 04:06 PM, SixDegrees wrote: That's correct. If I use the init=epsg:4326 form, no error is thrown; errors only appear when I use the Proj.4 strings, even if they correspond to the same projection. As I understand things, Mapserver only requires the map-level projection to be in epsg format; individual layers can have projections defined in any other way Mapserver understands, and when a WMS request is made the layer will be reprojected to the projections defined at the map level on the fly. In fact, this seems to happen; as noted, the XML for each layer in the GetCapabilities response (which produces the errors) contains bounding boxes that have all been correctly reprojected into epsg:4326 even when the layer itself is in, for example, a UTM projection defined by a Proj.4 string. So I'm thinking that this is a Mapserver mistake, and the error messages are spurious. It certainly seems that way, but it would be nice to have a definitive answer. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-Projection-Errors-tp6908527p6910326.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS GetMap request - incorrect layer ordering
On 11-10-18 04:36 AM, Rahkonen Jukka wrote: Hi, It is also possible to create a mask layer with REQUIRES keywork. The snippet below will make the mask layer to draw always when the countries layer is drawn. However, it is not automatically drawn if you ask for any other layer. One minory drawback is that the mask layer is also listed in the GetCapabilities as a normal WMS layer. LAYER NAME mask REQUIRES [countries] ... END Great suggestion. And with MapServer 6.x you can hide the mask layer from the GetCapabilities using the ows_enable_request metadata: LAYER NAME mask REQUIRES [countries] METADATA ows_enable_request !GetCapabilities ... END ... END -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with MapServer as WMS client
On 11-10-16 06:28 PM, Mr. Puneet Kishor wrote: On Oct 16, 2011, at 3:00 PM, Rahkonen Jukka wrote: Including name of the remote mapfile into CONNECTION string is OK. Perhaps addind DEBUG 5 into your WMS layer definition writes the request into log file but I do not know. Try and see if it helps. I did bump the DEBUG level to 5, but that doesn't show the WMS calls. Is it possible that you set DEBUG 5 only at the map level in your test? Setting DEBUG 5 inside the layer definition should log the HTTP requests. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] AIXM support via WFS?
On 11-10-15 06:39 AM, Ákos Maróy wrote: Hi, I wonder if mapserver supports handling AIXM data, and if it would expose AIXM data via WFS to WFS clients? I never heard of AIXM myself until now, and found the following info about the format: http://en.wikipedia.org/wiki/AIXM So it seems that AIXM is a GML schema. MapServer supports GML (at least simple GML schemas) using CONNECTIONTYPE OGR, so I'd suggest you give it a try and see. The first step would be to try to run 'ogrinfo' against an AIXM file and see if it can be read properly. The file may have to be renamed to a .gml extension to be recognized (not sure). More info about the OGR GML driver is available at See also http://www.gdal.org/ogr/drv_gml.html In the end, if 'ogrinfo' can read the file then MapServer should be happy serving it. However keep in mind that GML being an XML format, performance will be sub-optimal on large files, and you may want to convert your data to a more optimal format such as shapefiles or postgis using 'ogr2ogr'. For further questions about OGR's support of AIXM files I would recommend the gdal-dev list. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] bug in mapscript colorObj ?
On 11-10-06 05:11 AM, Jachym Cepicky wrote: Daniel, problem is, that the COLOR object is *not* written to mapfile, when one of the RGB components is set to -1 It can be seen in the script, I send in my previous e-mail and, I created ticket to this http://trac.osgeo.org/mapserver/ticket/4042 I checked and confirmed that there is a bug in the mapObj.save() method. However, the behavior that we got confirms that the -1,-1,-1 value is properly accepted and set by MapScript. Please see ticket #4042 for the full story. With similar code in PHP MapScript, I am able to get a red outline with transparent fill on the reference map. I'm not setup to test with Python myself, so I'll leave it to someone else to investigate if you confirm that you still cannot get a red outline with transparent fill on your reference maps. Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Extraneous Default Layers
On 11-10-05 12:03 PM, SixDegrees wrote: The layer names themselves, however, also expand when clicked, and contain a 1-item list named default. I would like to get rid of this list entry; it serves no purpose, and confuses users. Selecting it also loads the named layer. I didn't double-check in QGIS, but I'd suspect the default entries are WMS STYLES. In WMS, each Layer has at least one style called default by default (this is implicit in the WMS spec, not explicitly listed in GetCapabilities). If that's what QGIS is showing you then there is not much you can do about this from MapServer's end. You could confirm this by creating named styles in your WMS (i.e. set GROUPs on some of your classes just for testing) and see if they show up at that same level in the QGIS interface: http://mapserver.org/ogc/sld.html#named-styles-support -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Extraneous Default Layers
On 11-10-06 10:03 PM, Daniel Morissette wrote: On 11-10-05 12:03 PM, SixDegrees wrote: The layer names themselves, however, also expand when clicked, and contain a 1-item list named default. I would like to get rid of this list entry; it serves no purpose, and confuses users. Selecting it also loads the named layer. I didn't double-check in QGIS, but I'd suspect the default entries are WMS STYLES. In WMS, each Layer has at least one style called default by default (this is implicit in the WMS spec, not explicitly listed in GetCapabilities). If that's what QGIS is showing you then there is not much you can do about this from MapServer's end. Small correction: the default style does show up in the GetCapabilities for each Layer. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem in pointObj- project from php/mapscript
On 11-10-04 01:51 PM, Juanma M. R. wrote: The input coordinates are: $x = 642138 $y = 2983678 And the result: $pointObj-x = -109.5678723348 $pointObj-y = 26.967831676085 I think this is not the expected result. I have checked it with mapscript from Mapserver 4.10 and 5.6.3. I have looked for a bug or something similar that could cause that. Anyone with the same problem? $pointObj-x is the longitude (a.k.a. easting), and $pointObj-y the latitude (a.k.a. northing). A value of -109 can only be a longitude, since latitude must be in the +/-90 range. What makes you think that the x and y are reversed? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Projection library error. no system list, errno: 2
What does your PROJECTION block look like? Could it be that you used something like init=EPSG:4326? Linux is case-sensitive and the argument to the init=... param is a filename so you must use a lowercase epsg in the init string, e.g. init=epsg:4326 On 11-10-02 03:59 PM, Richard Greenwood wrote: All- I'm getting the following error from mapserver: msProcessProjection(): Projection library error. no system list, errno: 2 I have a fresh install of Ubuntu Lucid with standard mapserer gdal packages. I see /usr/share/proj/epsg which includes the EPSG code that I am referencing. I have added CONFIG PROJ_LIB /usr/share/proj/ to my map file. cs2cs in the shell seems to find and use the epsg file. I have even tried changing the ownership of the epsg file to www-data (the Ubuntu web account). I don't see any PROJ_LIB definitions in the apache *.conf files. So I'm kind of at my wits end. Any suggestions? Thanks, Rich -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Feature wish: Internal mapfile variables
I agree that this is a request that comes up often. As usual we'd just need someone to lead the effort. On 11-10-03 12:12 AM, Rahkonen Jukka wrote: Hi, Inspired by the Thomas Bonfort's rendering chain I have been thinking if we could have a native support for using internal mapfile variables. Now Thomas is setting for example a bunch of colours in a definition file which is converted into a real mapfile with python script and c preprocessor. http://mapserver-utils.googlecode.com/svn/trunk/README http://mapserver-utils.googlecode.com/svn/trunk/generate_style.py I would like to see a simple way for setting the variables directly in the mapfile, somehow like MAP SET pedestrian_clr #fafaf5 SET forest_clr #dcdcb4 SET industrial_clr #ebe5d9 And then later in the layers use LAYER . COLOR %pedestrian_clr% The internal variables could be interpreted only from the mapfile and they could not be altered by the web users. Internal variable would help in maintaining big mapfiles with repeating styles like in the OpenStreetMap rendering case. Another use case is when the same layers are re-used for several customers who like to have a bit different styling for the same source data. -Jukka Rahkonen- -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] bug in mapscript colorObj ?
On 11-09-30 07:12 AM, Jachym Cepicky wrote: Hi, I try to set transparent color to REFERENCE map, so that the box is outlined-only. According to documentation, i use -1 for indication, that the color should be transparent color = mapscript.colorObj(-1,-1,-1) How do you set/assign the color value to the reference map object? What if you set another color than -1,-1,-1, does it get through? The following works fine for me in PHP MapScript. Perhaps make a similar test with the version of MapScript you are using (Python?), and then look at the output of /tmp/test.map to comfirm that the color is set as expected. ?php $map = ms_newMapObj(/path/to/my.map); $map-reference-color-setRGB(-1,-1,-1); $map-save(/tmp/test.map); ? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users