From thomas.bonfort at gmail.com Tue Dec 1 01:06:14 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 1 Dec 2015 10:06:14 +0100 Subject: [mapserver-users] WMS cascading and Mapcache In-Reply-To: References: Message-ID: On 1 December 2015 at 02:49, milad nidal wrote: > We get something like an outline of cascading WMS and this happened only > when we do a cache Can you explicit what you mean by this ? From matt at wildwalks.com Tue Dec 1 01:15:09 2015 From: matt at wildwalks.com (Matt McClelland) Date: Tue, 1 Dec 2015 20:15:09 +1100 Subject: [mapserver-users] Keeping labels clear of a specific path Message-ID: Hi All I am using mapserver 7 to make maps for a hiking website. I am wanting to keep labels from covering the main hiking path for each map. Labels such at the park name, waypoint names etc tend to sit over the main track and at times hide the intersections. I am using a map file and WMS requests to make the maps Is there a way to kindly ask mapserver to create a label buffer about a particular line feature? (so that no labels are drawn over that line) thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Dec 1 01:32:01 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 1 Dec 2015 10:32:01 +0100 Subject: [mapserver-users] Keeping labels clear of a specific path In-Reply-To: References: Message-ID: There is no such functionality explicitly baked into MapServer as far as I know. You should however be able to force the labelcache to avoid intersecting labels like this, if you are not too worried about the performance overhead (YMMV, you probably would want to evaluate the overhead). I have not tested this. layer name "trails" class style #trail style end label text "[trail_name]" angle follow size 9 color 0 0 0 priority 10 end label #force empty characters everywhere else on the line segment priority 9 #less than the actual trail label, but more than the labels from other layers text " " angle auto repeatdistance 1 size 9 color 0 0 0 end end end This is a rather ugly hack. You can contact me directly if you would like to fund the implementation of native geometry avoidance for labels. -- thomas On 1 December 2015 at 10:15, Matt McClelland wrote: > Hi All > > I am using mapserver 7 to make maps for a hiking website. > I am wanting to keep labels from covering the main hiking path for each map. > > Labels such at the park name, waypoint names etc tend to sit over the main > track and at times hide the intersections. > > I am using a map file and WMS requests to make the maps > > Is there a way to kindly ask mapserver to create a label buffer about a > particular line feature? (so that no labels are drawn over that line) > > thanks > > Matt :) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Dec 1 08:24:39 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 1 Dec 2015 12:24:39 -0400 Subject: [mapserver-users] PHP 7.0.0. experience Message-ID: <565DC9C7.4010206@gatewaygeomatics.com> Hi everyone, I saw a brief mention that PHP-7.0.0 release was being tagged today by the PHP team; I am not sure if that is true or not, but it made me wonder if anyone out there in the MapServer community has tried PHP 7 (any of the release candidates) and mapscript yet. Anyone have any experience or thoughts? I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com) community, and am looking for advice or experience using PHP7. Thanks everyone, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mafonso333 at gmail.com Tue Dec 1 09:11:43 2015 From: mafonso333 at gmail.com (Marco Afonso) Date: Tue, 1 Dec 2015 17:11:43 +0000 Subject: [mapserver-users] PHP 7.0.0. experience In-Reply-To: <565DC9C7.4010206@gatewaygeomatics.com> References: <565DC9C7.4010206@gatewaygeomatics.com> Message-ID: Hello Jeff, I don't know which criteria you use to decide about php version to use with mapscript but here are some facts: Debian 8 (2015-04-26) uses PHP 5.6 Ubuntu 14.04 uses PHP 5.5.9 Fedora 22 (2015-05-26) uses PHP 5.6 CentOS 7 uses PHP 5.4 Ubuntugis Unstable has a built for trusty (14.04) which uses 5.5 So I think mapscript should stick with version 5.5 for now... Cheers :) 2015-12-01 16:24 GMT+00:00 Jeff McKenna : > Hi everyone, > > I saw a brief mention that PHP-7.0.0 release was being tagged today by the > PHP team; I am not sure if that is true or not, but it made me wonder if > anyone out there in the MapServer community has tried PHP 7 (any of the > release candidates) and mapscript yet. Anyone have any experience or > thoughts? > > I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com) > community, and am looking for advice or experience using PHP7. > > Thanks everyone, > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm -------------- next part -------------- An HTML attachment was scrubbed... URL: From theduckylittle at gmail.com Tue Dec 1 09:18:23 2015 From: theduckylittle at gmail.com (Dan Little) Date: Tue, 1 Dec 2015 11:18:23 -0600 Subject: [mapserver-users] PHP 7.0.0. experience In-Reply-To: References: <565DC9C7.4010206@gatewaygeomatics.com> Message-ID: I am always "new version averse" having been burned by the latest and greatest so many times. That said, its probably worthwhile to try a build and see if the testing suite passes. On Dec 1, 2015 11:11 AM, "Marco Afonso" wrote: > Hello Jeff, > > I don't know which criteria you use to decide about php version to use > with mapscript but here are some facts: > > Debian 8 (2015-04-26) uses PHP 5.6 > Ubuntu 14.04 uses PHP 5.5.9 > Fedora 22 (2015-05-26) uses PHP 5.6 > CentOS 7 uses PHP 5.4 > Ubuntugis Unstable has a built for trusty (14.04) which uses 5.5 > > So I think mapscript should stick with version 5.5 for now... > > Cheers :) > > 2015-12-01 16:24 GMT+00:00 Jeff McKenna : > >> Hi everyone, >> >> I saw a brief mention that PHP-7.0.0 release was being tagged today by >> the PHP team; I am not sure if that is true or not, but it made me wonder >> if anyone out there in the MapServer community has tried PHP 7 (any of the >> release candidates) and mapscript yet. Anyone have any experience or >> thoughts? >> >> I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com) >> community, and am looking for advice or experience using PHP7. >> >> Thanks everyone, >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Regards, > Marco Afonso > http://goo.gl/ZDtQjm > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Dec 1 09:36:08 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 1 Dec 2015 13:36:08 -0400 Subject: [mapserver-users] PHP 7.0.0. experience In-Reply-To: References: <565DC9C7.4010206@gatewaygeomatics.com> Message-ID: <57a19b7fa08864f5176439cbbb838100.squirrel@host312.hostmonster.com> Hi Marco, Good advice. For MS4W we are using the end-of-life 5.4.x, so likely it makes sense to upgrade to 5.6.x But I was curious if there was a demand for the fancy 7.0.0 Thanks, -jeff > Hello Jeff, > > I don't know which criteria you use to decide about php version to use > with > mapscript but here are some facts: > > Debian 8 (2015-04-26) uses PHP 5.6 > Ubuntu 14.04 uses PHP 5.5.9 > Fedora 22 (2015-05-26) uses PHP 5.6 > CentOS 7 uses PHP 5.4 > Ubuntugis Unstable has a built for trusty (14.04) which uses 5.5 > > So I think mapscript should stick with version 5.5 for now... > > Cheers :) > > 2015-12-01 16:24 GMT+00:00 Jeff McKenna : > >> Hi everyone, >> >> I saw a brief mention that PHP-7.0.0 release was being tagged today by >> the >> PHP team; I am not sure if that is true or not, but it made me wonder if >> anyone out there in the MapServer community has tried PHP 7 (any of the >> release candidates) and mapscript yet. Anyone have any experience or >> thoughts? >> >> I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com) >> community, and am looking for advice or experience using PHP7. >> >> Thanks everyone, >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Regards, > Marco Afonso > http://goo.gl/ZDtQjm > -- Jeff McKenna Director, Gateway Geomatics http://www.gatewaygeomatics.com From woodbri at swoodbridge.com Thu Dec 3 06:35:21 2015 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 3 Dec 2015 09:35:21 -0500 Subject: [mapserver-users] [mapserver-dev] pink screen after activating several layers (mapserver version 6.2.0) In-Reply-To: References: <565F1C16.2090100@swoodbridge.com> Message-ID: <56605329.5020001@swoodbridge.com> Please reply to the list so everyone can benefit from the questions and answers and there are a lot of other people that might have input to the problem. On 12/3/2015 5:35 AM, Donald wrote: > Hi Steve, > > I don't believe that it is a problem with open layers. I tested The point is to load the pink tile in a separate window so you can view the error message and see why it failed. > individually one layer at a time and I could conclude that I got the > pink screen when a certain amount of activated layers are reached > regardless of the order. Do you know if mapserver has some configuration > that restrict the number of layers to render or some configuration about > memory limit to render the layers ? No, I do not think this is the case. How many layers are in your mapfile? -Steve W > thanks > > 2015-12-02 16:28 GMT+00:00 Stephen Woodbridge >: > > On 12/2/2015 11:22 AM, Donald wrote: > > cheers, > > I have several layers that I can activate. When I activate all > at once I get > a pink screen. If I activate a layer individually by selecting > one at a time > I still get a pink screen even though some layers are correctly > drawn. I > checked the error log and I the last log line I have says > "freeing map at > 0xa022230". To see the map again I have to unselect all layers. > > Any thoughs on how to solve the problem ? > > > Mostly likely it is only one of some of the layers that are having > an issue. So trying, selecting one layer at a time to figure out > which layer is causing the problem. > > Also a "pink screen" sounds like you are using OpenLayers and the > pink is for a failure to render the image. In FireFox, right click > on the pink image and select view image this image or copy the image > url and paste it into a new tab/window and you might get an error > message that would be helpful. > > -Steve W > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > From cora.berger at bezreg-koeln.nrw.de Thu Dec 3 23:44:26 2015 From: cora.berger at bezreg-koeln.nrw.de (Berger, Cora) Date: Fri, 4 Dec 2015 07:44:26 +0000 Subject: [mapserver-users] Cascading Legend with selected Style Message-ID: <5D5AE574FB890744BCB91DE22F3A53C18319DFCA@vbrk21mx01.bezreg-koeln.nrw.de> Hello everybody, I'm using a WMS as a layer with Mapserver 7. The source WMS is available in 3 different styles. I want my WMS to display the style called "SW", so I add "wms_style" "SW" to my layers METADATA, which works fine. If I try to add a legend to this layer I get problems. I tried this "wms_style" "SW" "wms_style__legendurl_href" "example-url" "wms_style__legendurl_width" "531" "wms_style__legendurl_height" "769" "wms_style__legendurl_format" "image/png" "wms_feature_info_mime_type" "text/html" And this "wms_style" "SW" "wms_style_SW_legendurl_href" "example-url" "wms_style_SW_legendurl_width" "531" "wms_style_SW_legendurl_height" "769" "wms_style_SW_legendurl_format" "image/png" "wms_feature_info_mime_type" "text/html" Nothing works. The legend gets displayed, if I leave the "wms_style"-tag empty: "wms_style" "" "wms_style__legendurl_href" "example-url" "wms_style__legendurl_width" "531" "wms_style__legendurl_height" "769" "wms_style__legendurl_format" "image/png" "wms_feature_info_mime_type" "text/html" But now the mapimage gets displayed with the default-style, which is in color and not in black and white (SW), as I want it to be. The error-message for the 2 examples above is: msWMSLoadGetMapParams(): WMS server error. Style (SW) not defined on layer. Any ideas? Thanks! ???????????????? Cora Berger ??????????????????????????? - - Bezirksregierung K?ln Dezernat 74 -? Geodatenzentrum / Geodateninfrastruktur 50606 K?ln Internet: www.bezreg-koeln.nrw.de Dienstgeb?ude: Muffendorfer Str. 19-21, 53177 Bonn Telefon:?? +49 (0) 221 - 147 - 4847 Telefax:?? +49 (0) 228 - 180 - 33360 und (digital) 0221 - 147 - 4874 mailto: cora.berger at bezreg-koeln.nrw.de Internet: www.geobasis.nrw.de eShop:? www.geoportal.nrw.de Folgen Sie uns auf Twitter: https://twitter.com/BezRegKoeln From hiho at ctmap.com Mon Dec 7 14:17:52 2015 From: hiho at ctmap.com (Heidi Ochis) Date: Mon, 7 Dec 2015 15:17:52 -0700 Subject: [mapserver-users] Color ramps with polygons vs raster Message-ID: <062D9016-F6C8-44D9-BDDC-91666045FBE7@ctmap.com> Can you give a polygon file (values 1 - 50) a graduated color ramp using a class expression? Heidi Computer Terrain Mapping, Inc 420 21st Ave, Suite 114 Longmont, CO 80501 303-444-1670 hiho at ctmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Mon Dec 7 23:01:42 2015 From: jt at mapmedia.de (=?UTF-8?Q?J=c3=b6rg_Thomsen?=) Date: Tue, 8 Dec 2015 08:01:42 +0100 Subject: [mapserver-users] Color ramps with polygons vs raster In-Reply-To: <062D9016-F6C8-44D9-BDDC-91666045FBE7@ctmap.com> References: <062D9016-F6C8-44D9-BDDC-91666045FBE7@ctmap.com> Message-ID: <56668056.9030502@mapmedia.de> Am 07.12.2015 um 23:17 schrieb Heidi Ochis: > Can you give a polygon file (values 1 - 50) a graduated color ramp using > a class expression? more or less, this works: > CLASS > NAME 'roads' > STYLE > WIDTH 3 > COLORRANGE 0 0 255 255 0 0 #color start RGB and end RGB > DATARANGE 0 50 #the data range is normally set to the class expression range > RANGEITEM "maxspeed" # maxspeed?value in osm?dataset > END > END J?rg > > Heidi > Computer Terrain Mapping, Inc > 420 21st Ave, Suite 114 > Longmont, CO 80501 > 303-444-1670 > hiho at ctmap.com > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus From Bob.Basques at ci.stpaul.mn.us Tue Dec 8 09:10:22 2015 From: Bob.Basques at ci.stpaul.mn.us (blammo) Date: Tue, 8 Dec 2015 09:10:22 -0800 (PST) Subject: [mapserver-users] Color temperature control (night-time viewing of maps) In-Reply-To: References: <5314B1B1.9020303@swoodbridge.com> <5314BFB4.6080706@swoodbridge.com> Message-ID: <1449594622965-5240422.post@n6.nabble.com> Just resurrecting this thread to post some new info about night viewing. All, I stumbled upon a couple of interesting browser plugins for Chrome for Nighttime viewing of pages. One is called "Deluminate", the other is called "Dark Reader", they both work pretty good, I prefer Dark reader so far, but you could install them both as I have, and use whichever whenever. bobb -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Color-temperature-control-night-time-viewing-of-maps-tp5107155p5240422.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dumont.leonard at gmail.com Thu Dec 10 01:28:17 2015 From: dumont.leonard at gmail.com (Leonard) Date: Thu, 10 Dec 2015 01:28:17 -0800 (PST) Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP Message-ID: <1449739697665-5240669.post@n6.nabble.com> Hi everyone ! I am a new user trying to use mapserver, and I have some problems... One of them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 installed with php-osx.liip.ch and mapscript 6.4 installed with Homebrew, and there seems to be a conflict, since when I run php I get this warning : Warning: PHP Startup: MapScript: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20131226 These options need to match I added this line to my php.ini file : extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" Thanks for your help ! L?onard Dumont. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ben at ausvet.com.au Fri Dec 11 01:33:52 2015 From: ben at ausvet.com.au (Ben Madin) Date: Fri, 11 Dec 2015 17:33:52 +0800 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: <1449739697665-5240669.post@n6.nabble.com> References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use. I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set. You may be up for some pain...! You could also try kyngchaos.com, but I'm not sure if he is still providing a php suitable for what you want. On 10 December 2015 at 17:28, Leonard wrote: > Hi everyone ! > > I am a new user trying to use mapserver, and I have some problems... One of > them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 > installed with php-osx.liip.ch and mapscript > 6.4 > installed with Homebrew, and there seems to be a conflict, since when I run > php I get this warning : > > Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20100525 > PHP compiled with module API=20131226 > These options need to match > > I added this line to my php.ini file : > > extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > > Thanks for your help ! > > L?onard Dumont. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin BVMS PhD, MANZCVS t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services Western Australia www.ausvet.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: From dumont.leonard at gmail.com Fri Dec 11 04:03:08 2015 From: dumont.leonard at gmail.com (=?UTF-8?Q?L=C3=A9onard_DUMONT?=) Date: Fri, 11 Dec 2015 13:03:08 +0100 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew. Cordialement, L?onard Dumont 2015-12-11 10:33 GMT+01:00 Ben Madin : > Um, you are correct, the extension has not been compiled to work with the > same version of php as you are trying to use. > > I can only suggest that you get your php from the same source as your > mapscript... (I guess homebrew, but my success there has been limited and > conflicted) or compile php yourself, them mapserver with the php-mapscript > option set. > > You may be up for some pain...! You could also try kyngchaos.com, but I'm > not sure if he is still providing a php suitable for what you want. > > > > On 10 December 2015 at 17:28, Leonard wrote: > >> Hi everyone ! >> >> I am a new user trying to use mapserver, and I have some problems... One >> of >> them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 >> installed with php-osx.liip.ch and mapscript >> 6.4 >> installed with Homebrew, and there seems to be a conflict, since when I >> run >> php I get this warning : >> >> Warning: PHP Startup: MapScript: Unable to initialize module >> Module compiled with module API=20100525 >> PHP compiled with module API=20131226 >> These options need to match >> >> I added this line to my php.ini file : >> >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" >> >> Thanks for your help ! >> >> L?onard Dumont. >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > > Ben Madin > BVMS PhD, MANZCVS > > t : +61 8 6102 5535 > m : +61 448 887 220 > e : ben at ausvet.com.au > > AusVet Animal Health Services > Western Australia > > www.ausvet.com.au > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dumont.leonard at gmail.com Fri Dec 11 04:38:33 2015 From: dumont.leonard at gmail.com (=?UTF-8?Q?L=C3=A9onard_DUMONT?=) Date: Fri, 11 Dec 2015 13:38:33 +0100 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error : Warning: PHP Startup: MapScript: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20131226 These options need to match in Unknown on line 0 Any ideas ? Best regards, L?onard Dumont 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > Ok, thanks for your answer. I thought there could have been another > solution, but I'll try to install PHP with homebrew. > > Cordialement, > > L?onard Dumont > > 2015-12-11 10:33 GMT+01:00 Ben Madin : > >> Um, you are correct, the extension has not been compiled to work with the >> same version of php as you are trying to use. >> >> I can only suggest that you get your php from the same source as your >> mapscript... (I guess homebrew, but my success there has been limited and >> conflicted) or compile php yourself, them mapserver with the php-mapscript >> option set. >> >> You may be up for some pain...! You could also try kyngchaos.com, but >> I'm not sure if he is still providing a php suitable for what you want. >> >> >> >> On 10 December 2015 at 17:28, Leonard wrote: >> >>> Hi everyone ! >>> >>> I am a new user trying to use mapserver, and I have some problems... One >>> of >>> them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 >>> installed with php-osx.liip.ch and >>> mapscript 6.4 >>> installed with Homebrew, and there seems to be a conflict, since when I >>> run >>> php I get this warning : >>> >>> Warning: PHP Startup: MapScript: Unable to initialize module >>> Module compiled with module API=20100525 >>> PHP compiled with module API=20131226 >>> These options need to match >>> >>> I added this line to my php.ini file : >>> >>> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" >>> >>> Thanks for your help ! >>> >>> L?onard Dumont. >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> >> Ben Madin >> BVMS PhD, MANZCVS >> >> t : +61 8 6102 5535 >> m : +61 448 887 220 >> e : ben at ausvet.com.au >> >> AusVet Animal Health Services >> Western Australia >> >> www.ausvet.com.au >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at ausvet.com.au Fri Dec 11 05:28:36 2015 From: ben at ausvet.com.au (Ben Madin) Date: Fri, 11 Dec 2015 21:28:36 +0800 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Did you look at kyngchaos.com Even if you only use his unix frameworks, then compile your own php, you will be most of the way there. otherwise, if you want to persist with home-brew, I?d put it onto their list cheers Ben > On 2015-12-11, at 20:38 , L?onard DUMONT wrote: > > Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error : > > Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20100525 > PHP compiled with module API=20131226 > These options need to match > in Unknown on line 0 > > Any ideas ? > > Best regards, > > L?onard Dumont > > 2015-12-11 13:03 GMT+01:00 L?onard DUMONT >: > Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew. > > Cordialement, > > L?onard Dumont > > 2015-12-11 10:33 GMT+01:00 Ben Madin >: > Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use. > > I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set. > > You may be up for some pain...! You could also try kyngchaos.com , but I'm not sure if he is still providing a php suitable for what you want. > > > > On 10 December 2015 at 17:28, Leonard > wrote: > Hi everyone ! > > I am a new user trying to use mapserver, and I have some problems... One of > them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 > installed with php-osx.liip.ch > and mapscript 6.4 > installed with Homebrew, and there seems to be a conflict, since when I run > php I get this warning : > > Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20100525 > PHP compiled with module API=20131226 > These options need to match > > I added this line to my php.ini file : > > extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > > Thanks for your help ! > > L?onard Dumont. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > > Ben Madin > BVMS PhD, MANZCVS > > t : +61 8 6102 5535 > m : +61 448 887 220 > e : ben at ausvet.com.au > > AusVet Animal Health Services > Western Australia > > www.ausvet.com.au > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ben Madin t : +61 8 6102 5535 m : +61 448 887 220 e : ben at ausvet.com.au AusVet Animal Health Services 18/27 Market Street, Fremantle Western Australia AusVet's website: http://www.ausvet.com.au Find our office: http://w3w.co/leader.code.frozen This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. The average disclaimer at the bottom of an email is probably never read but contributes substantially to increasing the size of packet being sent through the internet and ultimately congestion. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dumont.leonard at gmail.com Fri Dec 11 06:15:53 2015 From: dumont.leonard at gmail.com (=?UTF-8?Q?L=C3=A9onard_DUMONT?=) Date: Fri, 11 Dec 2015 15:15:53 +0100 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Thanks for your advices. The PHP binaries from kyngchaos.com are a little bit old, I'll try to see on the Homebrew list. Cheers, L?onard. 2015-12-11 14:28 GMT+01:00 Ben Madin : > Did you look at kyngchaos.com > > Even if you only use his unix frameworks, then compile your own php, you > will be most of the way there. > > otherwise, if you want to persist with home-brew, I?d put it onto their > list > > cheers > > Ben > > > > > On 2015-12-11, at 20:38 , L?onard DUMONT wrote: > > Finally it was not so hard, but the problem is still the same... I have > PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still > have the same error : > > Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20100525 > PHP compiled with module API=20131226 > These options need to match > in Unknown on line 0 > > Any ideas ? > > Best regards, > > L?onard Dumont > > 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > >> Ok, thanks for your answer. I thought there could have been another >> solution, but I'll try to install PHP with homebrew. >> >> Cordialement, >> >> L?onard Dumont >> >> 2015-12-11 10:33 GMT+01:00 Ben Madin : >> >>> Um, you are correct, the extension has not been compiled to work with >>> the same version of php as you are trying to use. >>> >>> I can only suggest that you get your php from the same source as your >>> mapscript... (I guess homebrew, but my success there has been limited and >>> conflicted) or compile php yourself, them mapserver with the php-mapscript >>> option set. >>> >>> You may be up for some pain...! You could also try kyngchaos.com, but >>> I'm not sure if he is still providing a php suitable for what you want. >>> >>> >>> >>> On 10 December 2015 at 17:28, Leonard wrote: >>> >>>> Hi everyone ! >>>> >>>> I am a new user trying to use mapserver, and I have some problems... >>>> One of >>>> them is that I cannot load the php_mapscript extension. I have PHP >>>> 5.6.11 >>>> installed with php-osx.liip.ch and >>>> mapscript 6.4 >>>> installed with Homebrew, and there seems to be a conflict, since when I >>>> run >>>> php I get this warning : >>>> >>>> Warning: PHP Startup: MapScript: Unable to initialize module >>>> Module compiled with module API=20100525 >>>> PHP compiled with module API=20131226 >>>> These options need to match >>>> >>>> I added this line to my php.ini file : >>>> >>>> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" >>>> >>>> Thanks for your help ! >>>> >>>> L?onard Dumont. >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> -- >>> >>> Ben Madin >>> BVMS PhD, MANZCVS >>> >>> t : +61 8 6102 5535 >>> m : +61 448 887 220 >>> e : ben at ausvet.com.au >>> >>> AusVet Animal Health Services >>> Western Australia >>> >>> www.ausvet.com.au >>> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Ben Madin > > t : +61 8 6102 5535 > m : +61 448 887 220 > e : ben at ausvet.com.au > > AusVet Animal Health Services > > 18/27 Market Street, Fremantle > Western Australia > > AusVet's website: http://www.ausvet.com.au Find our office: > http://w3w.co/leader.code.frozen > > This transmission is for the intended addressee only and is > confidential information. If you have received this transmission in error, > please delete it and notify the sender. The contents of this email are the > opinion of the writer only and are not endorsed by AusVet Animal Health > Services unless expressly stated otherwise. Although AusVet uses virus > scanning software we do not accept liability for viruses or similar in any > attachments. Thanks for reading. The average disclaimer at the bottom of an > email is probably never read but contributes substantially to increasing the > size of packet being sent through the internet and ultimately congestion. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Fri Dec 11 07:09:54 2015 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 11 Dec 2015 09:09:54 -0600 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Yeah, I haven't done anything with Mapserver or PHP in a long time. If and when I do, my plan is/will be to skip a custom PHP and build mapscript for the system PHP. Though that could get messy because different OS X versions have different PHP API versions. What OS X version do you have? On my Yosemite Mac, the system PHP API version is 20121212, so maybe you have El Capitan? It's possible that the system php (your API=20131226) is running in Apache, it's a bit tricky to get Apache to use a custom PHP, and especially on El Capitan with it's SIP security it might be harder. You might have to do the whole AMP stack custom. > On Dec 11, 2015, at 8:15 AM, L?onard DUMONT wrote: > > Thanks for your advices. The PHP binaries from kyngchaos.com are a little bit old, I'll try to see on the Homebrew list. > > Cheers, > > L?onard. > > 2015-12-11 14:28 GMT+01:00 Ben Madin : > Did you look at kyngchaos.com > > Even if you only use his unix frameworks, then compile your own php, you will be most of the way there. > > otherwise, if you want to persist with home-brew, I?d put it onto their list > > cheers > > Ben > > > > >> On 2015-12-11, at 20:38 , L?onard DUMONT wrote: >> >> Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error : >> >> Warning: PHP Startup: MapScript: Unable to initialize module >> Module compiled with module API=20100525 >> PHP compiled with module API=20131226 >> These options need to match >> in Unknown on line 0 >> >> Any ideas ? >> >> Best regards, >> >> L?onard Dumont >> >> 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : >> Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew. >> >> Cordialement, >> >> L?onard Dumont >> >> 2015-12-11 10:33 GMT+01:00 Ben Madin : >> Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use. >> >> I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set. >> >> You may be up for some pain...! You could also try kyngchaos.com, but I'm not sure if he is still providing a php suitable for what you want. >> >> >> >> On 10 December 2015 at 17:28, Leonard wrote: >> Hi everyone ! >> >> I am a new user trying to use mapserver, and I have some problems... One of >> them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 >> installed with php-osx.liip.ch and mapscript 6.4 >> installed with Homebrew, and there seems to be a conflict, since when I run >> php I get this warning : >> >> Warning: PHP Startup: MapScript: Unable to initialize module >> Module compiled with module API=20100525 >> PHP compiled with module API=20131226 >> These options need to match >> >> I added this line to my php.ini file : >> >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" >> >> Thanks for your help ! >> >> L?onard Dumont. >> >> >> >> -- >> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> >> Ben Madin >> BVMS PhD, MANZCVS >> >> t : +61 8 6102 5535 >> m : +61 448 887 220 >> e : ben at ausvet.com.au >> >> AusVet Animal Health Services >> Western Australia >> >> www.ausvet.com.au >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > > Ben Madin > > t : +61 8 6102 5535 > m : +61 448 887 220 > e : ben at ausvet.com.au > > AusVet Animal Health Services > > 18/27 Market Street, Fremantle > Western Australia > > AusVet's website: http://www.ausvet.com.au Find our office: http://w3w.co/leader.code.frozen > > This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. The average disclaimer at the bottom of an email is probably never read but contributes substantially to increasing the size of packet being sent through the internet and ultimately congestion. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From dumont.leonard at gmail.com Fri Dec 11 07:15:11 2015 From: dumont.leonard at gmail.com (=?UTF-8?Q?L=C3=A9onard_DUMONT?=) Date: Fri, 11 Dec 2015 16:15:11 +0100 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: Hi and thanks for your answer ! I am using Mac OS X 10.9.5 (Mavericks), but I have no idea of how I could do this API stuff... Cheers, L?onard. 2015-12-11 16:09 GMT+01:00 William Kyngesburye : > Yeah, I haven't done anything with Mapserver or PHP in a long time. If > and when I do, my plan is/will be to skip a custom PHP and build mapscript > for the system PHP. Though that could get messy because different OS X > versions have different PHP API versions. > > What OS X version do you have? On my Yosemite Mac, the system PHP API > version is 20121212, so maybe you have El Capitan? It's possible that the > system php (your API=20131226) is running in Apache, it's a bit tricky to > get Apache to use a custom PHP, and especially on El Capitan with it's SIP > security it might be harder. You might have to do the whole AMP stack > custom. > > > > On Dec 11, 2015, at 8:15 AM, L?onard DUMONT > wrote: > > > > Thanks for your advices. The PHP binaries from kyngchaos.com are a > little bit old, I'll try to see on the Homebrew list. > > > > Cheers, > > > > L?onard. > > > > 2015-12-11 14:28 GMT+01:00 Ben Madin : > > Did you look at kyngchaos.com > > > > Even if you only use his unix frameworks, then compile your own php, you > will be most of the way there. > > > > otherwise, if you want to persist with home-brew, I?d put it onto their > list > > > > cheers > > > > Ben > > > > > > > > > >> On 2015-12-11, at 20:38 , L?onard DUMONT > wrote: > >> > >> Finally it was not so hard, but the problem is still the same... I have > PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still > have the same error : > >> > >> Warning: PHP Startup: MapScript: Unable to initialize module > >> Module compiled with module API=20100525 > >> PHP compiled with module API=20131226 > >> These options need to match > >> in Unknown on line 0 > >> > >> Any ideas ? > >> > >> Best regards, > >> > >> L?onard Dumont > >> > >> 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > >> Ok, thanks for your answer. I thought there could have been another > solution, but I'll try to install PHP with homebrew. > >> > >> Cordialement, > >> > >> L?onard Dumont > >> > >> 2015-12-11 10:33 GMT+01:00 Ben Madin : > >> Um, you are correct, the extension has not been compiled to work with > the same version of php as you are trying to use. > >> > >> I can only suggest that you get your php from the same source as your > mapscript... (I guess homebrew, but my success there has been limited and > conflicted) or compile php yourself, them mapserver with the php-mapscript > option set. > >> > >> You may be up for some pain...! You could also try kyngchaos.com, but > I'm not sure if he is still providing a php suitable for what you want. > >> > >> > >> > >> On 10 December 2015 at 17:28, Leonard wrote: > >> Hi everyone ! > >> > >> I am a new user trying to use mapserver, and I have some problems... > One of > >> them is that I cannot load the php_mapscript extension. I have PHP > 5.6.11 > >> installed with php-osx.liip.ch and > mapscript 6.4 > >> installed with Homebrew, and there seems to be a conflict, since when I > run > >> php I get this warning : > >> > >> Warning: PHP Startup: MapScript: Unable to initialize module > >> Module compiled with module API=20100525 > >> PHP compiled with module API=20131226 > >> These options need to match > >> > >> I added this line to my php.ini file : > >> > >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > >> > >> Thanks for your help ! > >> > >> L?onard Dumont. > >> > >> > >> > >> -- > >> View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> -- > >> > >> Ben Madin > >> BVMS PhD, MANZCVS > >> > >> t : +61 8 6102 5535 > >> m : +61 448 887 220 > >> e : ben at ausvet.com.au > >> > >> AusVet Animal Health Services > >> Western Australia > >> > >> www.ausvet.com.au > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > > > Ben Madin > > > > t : +61 8 6102 5535 > > m : +61 448 887 220 > > e : ben at ausvet.com.au > > > > AusVet Animal Health Services > > > > 18/27 Market Street, Fremantle > > Western Australia > > > > AusVet's website: http://www.ausvet.com.au Find our office: > http://w3w.co/leader.code.frozen > > > > This transmission is for the intended addressee only and is confidential > information. If you have received this transmission in error, please delete > it and notify the sender. The contents of this email are the opinion of the > writer only and are not endorsed by AusVet Animal Health Services unless > expressly stated otherwise. Although AusVet uses virus scanning software we > do not accept liability for viruses or similar in any attachments. Thanks > for reading. The average disclaimer at the bottom of an email is probably > never read but contributes substantially to increasing the size of packet > being sent through the internet and ultimately congestion. > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > - Marvin > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Fri Dec 11 07:25:48 2015 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 11 Dec 2015 09:25:48 -0600 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> Message-ID: <11C76DFC-490D-4BB0-A7FF-567E19A52C71@kyngchaos.com> Mavericks, huh. Well, you can find the system PHP API version in /usr/lib/php/extensions on your HD. > On Dec 11, 2015, at 9:15 AM, L?onard DUMONT wrote: > > Hi and thanks for your answer ! > > I am using Mac OS X 10.9.5 (Mavericks), but I have no idea of how I could do this API stuff... > > Cheers, > > L?onard. > > 2015-12-11 16:09 GMT+01:00 William Kyngesburye : > Yeah, I haven't done anything with Mapserver or PHP in a long time. If and when I do, my plan is/will be to skip a custom PHP and build mapscript for the system PHP. Though that could get messy because different OS X versions have different PHP API versions. > > What OS X version do you have? On my Yosemite Mac, the system PHP API version is 20121212, so maybe you have El Capitan? It's possible that the system php (your API=20131226) is running in Apache, it's a bit tricky to get Apache to use a custom PHP, and especially on El Capitan with it's SIP security it might be harder. You might have to do the whole AMP stack custom. > > > > On Dec 11, 2015, at 8:15 AM, L?onard DUMONT wrote: > > > > Thanks for your advices. The PHP binaries from kyngchaos.com are a little bit old, I'll try to see on the Homebrew list. > > > > Cheers, > > > > L?onard. > > > > 2015-12-11 14:28 GMT+01:00 Ben Madin : > > Did you look at kyngchaos.com > > > > Even if you only use his unix frameworks, then compile your own php, you will be most of the way there. > > > > otherwise, if you want to persist with home-brew, I?d put it onto their list > > > > cheers > > > > Ben > > > > > > > > > >> On 2015-12-11, at 20:38 , L?onard DUMONT wrote: > >> > >> Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error : > >> > >> Warning: PHP Startup: MapScript: Unable to initialize module > >> Module compiled with module API=20100525 > >> PHP compiled with module API=20131226 > >> These options need to match > >> in Unknown on line 0 > >> > >> Any ideas ? > >> > >> Best regards, > >> > >> L?onard Dumont > >> > >> 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > >> Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew. > >> > >> Cordialement, > >> > >> L?onard Dumont > >> > >> 2015-12-11 10:33 GMT+01:00 Ben Madin : > >> Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use. > >> > >> I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set. > >> > >> You may be up for some pain...! You could also try kyngchaos.com, but I'm not sure if he is still providing a php suitable for what you want. > >> > >> > >> > >> On 10 December 2015 at 17:28, Leonard wrote: > >> Hi everyone ! > >> > >> I am a new user trying to use mapserver, and I have some problems... One of > >> them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 > >> installed with php-osx.liip.ch and mapscript 6.4 > >> installed with Homebrew, and there seems to be a conflict, since when I run > >> php I get this warning : > >> > >> Warning: PHP Startup: MapScript: Unable to initialize module > >> Module compiled with module API=20100525 > >> PHP compiled with module API=20131226 > >> These options need to match > >> > >> I added this line to my php.ini file : > >> > >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > >> > >> Thanks for your help ! > >> > >> L?onard Dumont. > >> > >> > >> > >> -- > >> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> -- > >> > >> Ben Madin > >> BVMS PhD, MANZCVS > >> > >> t : +61 8 6102 5535 > >> m : +61 448 887 220 > >> e : ben at ausvet.com.au > >> > >> AusVet Animal Health Services > >> Western Australia > >> > >> www.ausvet.com.au > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > > > Ben Madin > > > > t : +61 8 6102 5535 > > m : +61 448 887 220 > > e : ben at ausvet.com.au > > > > AusVet Animal Health Services > > > > 18/27 Market Street, Fremantle > > Western Australia > > > > AusVet's website: http://www.ausvet.com.au Find our office: http://w3w.co/leader.code.frozen > > > > This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. The average disclaimer at the bottom of an email is probably never read but contributes substantially to increasing the size of packet being sent through the internet and ultimately congestion. > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > - Marvin > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From dumont.leonard at gmail.com Fri Dec 11 07:37:45 2015 From: dumont.leonard at gmail.com (=?UTF-8?Q?L=C3=A9onard_DUMONT?=) Date: Fri, 11 Dec 2015 16:37:45 +0100 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: <11C76DFC-490D-4BB0-A7FF-567E19A52C71@kyngchaos.com> References: <1449739697665-5240669.post@n6.nabble.com> <11C76DFC-490D-4BB0-A7FF-567E19A52C71@kyngchaos.com> Message-ID: Thanks. In this directory, I have a file named 'no-debug-non-zts-20100525', which corresponds to mapscript's API, but not to PHP's one (PHP compiled with module API=20131226)... Cheers, L?onard. 2015-12-11 16:25 GMT+01:00 William Kyngesburye : > Mavericks, huh. Well, you can find the system PHP API version in > /usr/lib/php/extensions on your HD. > > > On Dec 11, 2015, at 9:15 AM, L?onard DUMONT > wrote: > > > > Hi and thanks for your answer ! > > > > I am using Mac OS X 10.9.5 (Mavericks), but I have no idea of how I > could do this API stuff... > > > > Cheers, > > > > L?onard. > > > > 2015-12-11 16:09 GMT+01:00 William Kyngesburye : > > Yeah, I haven't done anything with Mapserver or PHP in a long time. If > and when I do, my plan is/will be to skip a custom PHP and build mapscript > for the system PHP. Though that could get messy because different OS X > versions have different PHP API versions. > > > > What OS X version do you have? On my Yosemite Mac, the system PHP API > version is 20121212, so maybe you have El Capitan? It's possible that the > system php (your API=20131226) is running in Apache, it's a bit tricky to > get Apache to use a custom PHP, and especially on El Capitan with it's SIP > security it might be harder. You might have to do the whole AMP stack > custom. > > > > > > > On Dec 11, 2015, at 8:15 AM, L?onard DUMONT > wrote: > > > > > > Thanks for your advices. The PHP binaries from kyngchaos.com are a > little bit old, I'll try to see on the Homebrew list. > > > > > > Cheers, > > > > > > L?onard. > > > > > > 2015-12-11 14:28 GMT+01:00 Ben Madin : > > > Did you look at kyngchaos.com > > > > > > Even if you only use his unix frameworks, then compile your own php, > you will be most of the way there. > > > > > > otherwise, if you want to persist with home-brew, I?d put it onto > their list > > > > > > cheers > > > > > > Ben > > > > > > > > > > > > > > >> On 2015-12-11, at 20:38 , L?onard DUMONT > wrote: > > >> > > >> Finally it was not so hard, but the problem is still the same... I > have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I > still have the same error : > > >> > > >> Warning: PHP Startup: MapScript: Unable to initialize module > > >> Module compiled with module API=20100525 > > >> PHP compiled with module API=20131226 > > >> These options need to match > > >> in Unknown on line 0 > > >> > > >> Any ideas ? > > >> > > >> Best regards, > > >> > > >> L?onard Dumont > > >> > > >> 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > > >> Ok, thanks for your answer. I thought there could have been another > solution, but I'll try to install PHP with homebrew. > > >> > > >> Cordialement, > > >> > > >> L?onard Dumont > > >> > > >> 2015-12-11 10:33 GMT+01:00 Ben Madin : > > >> Um, you are correct, the extension has not been compiled to work with > the same version of php as you are trying to use. > > >> > > >> I can only suggest that you get your php from the same source as your > mapscript... (I guess homebrew, but my success there has been limited and > conflicted) or compile php yourself, them mapserver with the php-mapscript > option set. > > >> > > >> You may be up for some pain...! You could also try kyngchaos.com, > but I'm not sure if he is still providing a php suitable for what you want. > > >> > > >> > > >> > > >> On 10 December 2015 at 17:28, Leonard > wrote: > > >> Hi everyone ! > > >> > > >> I am a new user trying to use mapserver, and I have some problems... > One of > > >> them is that I cannot load the php_mapscript extension. I have PHP > 5.6.11 > > >> installed with php-osx.liip.ch and > mapscript 6.4 > > >> installed with Homebrew, and there seems to be a conflict, since when > I run > > >> php I get this warning : > > >> > > >> Warning: PHP Startup: MapScript: Unable to initialize module > > >> Module compiled with module API=20100525 > > >> PHP compiled with module API=20131226 > > >> These options need to match > > >> > > >> I added this line to my php.ini file : > > >> > > >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > > >> > > >> Thanks for your help ! > > >> > > >> L?onard Dumont. > > >> > > >> > > >> > > >> -- > > >> View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > >> > > >> > > >> -- > > >> > > >> Ben Madin > > >> BVMS PhD, MANZCVS > > >> > > >> t : +61 8 6102 5535 > > >> m : +61 448 887 220 > > >> e : ben at ausvet.com.au > > >> > > >> AusVet Animal Health Services > > >> Western Australia > > >> > > >> www.ausvet.com.au > > >> > > >> > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > -- > > > > > > Ben Madin > > > > > > t : +61 8 6102 5535 > > > m : +61 448 887 220 > > > e : ben at ausvet.com.au > > > > > > AusVet Animal Health Services > > > > > > 18/27 Market Street, Fremantle > > > Western Australia > > > > > > AusVet's website: http://www.ausvet.com.au Find our office: > http://w3w.co/leader.code.frozen > > > > > > This transmission is for the intended addressee only and is > confidential information. If you have received this transmission in error, > please delete it and notify the sender. The contents of this email are the > opinion of the writer only and are not endorsed by AusVet Animal Health > Services unless expressly stated otherwise. Although AusVet uses virus > scanning software we do not accept liability for viruses or similar in any > attachments. Thanks for reading. The average disclaimer at the bottom of an > email is probably never read but contributes substantially to increasing > the size of packet being sent through the internet and ultimately > congestion. > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ----- > > William Kyngesburye > > http://www.kyngchaos.com/ > > > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > > > - Marvin > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Fri Dec 11 08:10:56 2015 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 11 Dec 2015 10:10:56 -0600 Subject: [mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP In-Reply-To: References: <1449739697665-5240669.post@n6.nabble.com> <11C76DFC-490D-4BB0-A7FF-567E19A52C71@kyngchaos.com> Message-ID: So, that's pointing to a Mapserver compile problem. When Homebrew compiled Mapserver/mapscript, it saw the system PHP. I can understand that it might miss that liip.ch PHP, but not it's own compiled PHP. Maybe after installing PHP with Homebrew, uninstall and reinstall Mapscript with Homebrew, so it has a chance to see its PHP. The other option is to use the system PHP, unless you want or need the latest PHP. > On Dec 11, 2015, at 9:37 AM, L?onard DUMONT wrote: > > Thanks. In this directory, I have a file named 'no-debug-non-zts-20100525', which corresponds to mapscript's API, but not to PHP's one (PHP compiled with module API=20131226)... > > Cheers, > > L?onard. > > 2015-12-11 16:25 GMT+01:00 William Kyngesburye : > Mavericks, huh. Well, you can find the system PHP API version in /usr/lib/php/extensions on your HD. > > > On Dec 11, 2015, at 9:15 AM, L?onard DUMONT wrote: > > > > Hi and thanks for your answer ! > > > > I am using Mac OS X 10.9.5 (Mavericks), but I have no idea of how I could do this API stuff... > > > > Cheers, > > > > L?onard. > > > > 2015-12-11 16:09 GMT+01:00 William Kyngesburye : > > Yeah, I haven't done anything with Mapserver or PHP in a long time. If and when I do, my plan is/will be to skip a custom PHP and build mapscript for the system PHP. Though that could get messy because different OS X versions have different PHP API versions. > > > > What OS X version do you have? On my Yosemite Mac, the system PHP API version is 20121212, so maybe you have El Capitan? It's possible that the system php (your API=20131226) is running in Apache, it's a bit tricky to get Apache to use a custom PHP, and especially on El Capitan with it's SIP security it might be harder. You might have to do the whole AMP stack custom. > > > > > > > On Dec 11, 2015, at 8:15 AM, L?onard DUMONT wrote: > > > > > > Thanks for your advices. The PHP binaries from kyngchaos.com are a little bit old, I'll try to see on the Homebrew list. > > > > > > Cheers, > > > > > > L?onard. > > > > > > 2015-12-11 14:28 GMT+01:00 Ben Madin : > > > Did you look at kyngchaos.com > > > > > > Even if you only use his unix frameworks, then compile your own php, you will be most of the way there. > > > > > > otherwise, if you want to persist with home-brew, I?d put it onto their list > > > > > > cheers > > > > > > Ben > > > > > > > > > > > > > > >> On 2015-12-11, at 20:38 , L?onard DUMONT wrote: > > >> > > >> Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error : > > >> > > >> Warning: PHP Startup: MapScript: Unable to initialize module > > >> Module compiled with module API=20100525 > > >> PHP compiled with module API=20131226 > > >> These options need to match > > >> in Unknown on line 0 > > >> > > >> Any ideas ? > > >> > > >> Best regards, > > >> > > >> L?onard Dumont > > >> > > >> 2015-12-11 13:03 GMT+01:00 L?onard DUMONT : > > >> Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew. > > >> > > >> Cordialement, > > >> > > >> L?onard Dumont > > >> > > >> 2015-12-11 10:33 GMT+01:00 Ben Madin : > > >> Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use. > > >> > > >> I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set. > > >> > > >> You may be up for some pain...! You could also try kyngchaos.com, but I'm not sure if he is still providing a php suitable for what you want. > > >> > > >> > > >> > > >> On 10 December 2015 at 17:28, Leonard wrote: > > >> Hi everyone ! > > >> > > >> I am a new user trying to use mapserver, and I have some problems... One of > > >> them is that I cannot load the php_mapscript extension. I have PHP 5.6.11 > > >> installed with php-osx.liip.ch and mapscript 6.4 > > >> installed with Homebrew, and there seems to be a conflict, since when I run > > >> php I get this warning : > > >> > > >> Warning: PHP Startup: MapScript: Unable to initialize module > > >> Module compiled with module API=20100525 > > >> PHP compiled with module API=20131226 > > >> These options need to match > > >> > > >> I added this line to my php.ini file : > > >> > > >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so" > > >> > > >> Thanks for your help ! > > >> > > >> L?onard Dumont. > > >> > > >> > > >> > > >> -- > > >> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html > > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > >> > > >> > > >> -- > > >> > > >> Ben Madin > > >> BVMS PhD, MANZCVS > > >> > > >> t : +61 8 6102 5535 > > >> m : +61 448 887 220 > > >> e : ben at ausvet.com.au > > >> > > >> AusVet Animal Health Services > > >> Western Australia > > >> > > >> www.ausvet.com.au > > >> > > >> > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > -- > > > > > > Ben Madin > > > > > > t : +61 8 6102 5535 > > > m : +61 448 887 220 > > > e : ben at ausvet.com.au > > > > > > AusVet Animal Health Services > > > > > > 18/27 Market Street, Fremantle > > > Western Australia > > > > > > AusVet's website: http://www.ausvet.com.au Find our office: http://w3w.co/leader.code.frozen > > > > > > This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. The average disclaimer at the bottom of an email is probably never read but contributes substantially to increasing the size of packet being sent through the internet and ultimately congestion. > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ----- > > William Kyngesburye > > http://www.kyngchaos.com/ > > > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > > > - Marvin > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From wimvanbelle at gmail.com Fri Dec 11 11:37:04 2015 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Fri, 11 Dec 2015 20:37:04 +0100 Subject: [mapserver-users] Color the world, but not my country Message-ID: 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 "#000000" 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Dec 11 11:57:42 2015 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 11 Dec 2015 14:57:42 -0500 Subject: [mapserver-users] Color the world, but not my country In-Reply-To: References: Message-ID: <566B2AB6.9010406@mapgears.com> 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 "#000000" > 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 at 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 From wimvanbelle at gmail.com Fri Dec 11 12:50:48 2015 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Fri, 11 Dec 2015 21:50:48 +0100 Subject: [mapserver-users] Color the world, but not my country In-Reply-To: <566B2AB6.9010406@mapgears.com> References: <566B2AB6.9010406@mapgears.com> Message-ID: I came across this, but I'm not quite sure to what other layer it should relate? I would only have the 'Netherlands' description of the borders. I do not want to use the world dataset file, because it's too big. I cannot just add a 'complement' to the country layer or am I misinterpreting the mask function? It would be solved I believe if I could add a LAYER which did not require a datasource and renders everything black, but that is not possible I believe, because mapserver always requires a type and the annotation type is deprecated since 6.2 Thanks in advance. On 11 December 2015 at 20:57, Daniel Morissette wrote: > 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 "#000000" >> 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 at 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Fri Dec 11 13:00:49 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 11 Dec 2015 21:00:49 +0000 Subject: [mapserver-users] Color the world, but not my country Message-ID: How about Inline polygon covering -180 -90 180 90 in epsg:4326 http://www.mapserver.org/input/vector/inline.html? -Jukka Rahkonen- Wim Vanbelle wrote: I came across this, but I'm not quite sure to what other layer it should relate? I would only have the 'Netherlands' description of the borders. I do not want to use the world dataset file, because it's too big. I cannot just add a 'complement' to the country layer or am I misinterpreting the mask function? It would be solved I believe if I could add a LAYER which did not require a datasource and renders everything black, but that is not possible I believe, because mapserver always requires a type and the annotation type is deprecated since 6.2 Thanks in advance. On 11 December 2015 at 20:57, Daniel Morissette > wrote: 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 "#000000" 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 at 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 at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Dec 14 05:03:51 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Dec 2015 09:03:51 -0400 Subject: [mapserver-users] Color the world, but not my country In-Reply-To: References: Message-ID: <566EBE37.4090609@gatewaygeomatics.com> Hi Wim, I face this issue quite often, and I often use the IMAGECOLOR parameter setting in the mapfile for this. It's a nice trick to show blue water, for example, all around your features. Here is an example: MAP IMAGECOLOR 0 0 255 ... LAYER ... END #layer END #mapfile -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-12-11 3: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 "#000000" > 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 > From tom.kralidis at canada.ca Mon Dec 14 07:23:22 2015 From: tom.kralidis at canada.ca (Kralidis, Tom (EC/EC)) Date: Mon, 14 Dec 2015 15:23:22 +0000 Subject: [mapserver-users] contour layers with tileindex issues Message-ID: <1ec76c27c2784ed897337eb56c325a9e@PEVDACDEXC012.birch.int.bell.ca> Hi all: using 6.4.1 we are attempting to display (via WMS) GRIB2 data as a contour layer backed by a tileindex setup. Invoking a basic WMS 1.3.0 GetMap request returns the following ServiceExceptionReport: msDrawMap(): Image handling error. Failed to draw layer named 'RDPS.ETA_PN'. msContourLayerOpen(): Image handling error. Unable to open GDAL dataset. msBuildPath: Unable to access file. msBuildPath: Unable to access file. msContourLayerSetTimeFilter(): General error message. Assertion failed: Contour layer not opened!!! When I point directly to a single GRIB2 file (via the DATA directive), all works as expected. Layer definition snippet below. Any idea what I'm doing wrong here? Or whether this is a suitable workaround? Note we are bound to UbuntuGIS stable. Thanks ..Tom LAYER NAME "RDPS.ETA_PN" STATUS ON DEBUG OFF TILEINDEX "/data/tileindex/foo.shp" # doesn't work # DATA "/data/foo.grib2" # works TYPE LINE CONNECTIONTYPE CONTOUR PROCESSING "BAND=1" PROCESSING "CONTOUR_INTERVAL=400" PROCESSING "CONTOUR_ITEM=pixel" DUMP TRUE TEMPLATE "ttt.html" PROJECTION "proj=stere" "lat_0=90" "lat_ts=60" "lon_0=249" "k=90" "x_0=0" "y_0=0" "a=6371229" "b=6371229" "units=m" "no_defs" END ... END From jukka.rahkonen at maanmittauslaitos.fi Mon Dec 14 08:01:08 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 14 Dec 2015 16:01:08 +0000 Subject: [mapserver-users] contour layers with tileindex issues Message-ID: <7d50773d99944dcbb997d09801df73d6@C119S212VM022.msvyvi.vaha.local> Hi, I would try to use TILEINDEX through OGR but that gets tricky because one LAYER probable can't have two CONNECTIONTYPEs. Perhaps it would work by using a tileindex layer as a tileindex for contours. LAYER #OGR tileindex layer NAME "ogr_tileindex" CONNECTIONTYPE OGR CONNECTION .... ... ... LAYER #countour layer TILEINDEX "ogr_tileindex" CONNECTIONTYPE CONTOUR PROCESSING "BAND=1" .... .... But based on the error message Mapserver tries already open your GRIB2 files through GDAL/OGR. Are you sure that you have valid path in the "location" field of the tileindex shape? -Jukka Rahkonen- Kralidis, Tom wrote: Hi all: using 6.4.1 we are attempting to display (via WMS) GRIB2 data as a contour layer backed by a tileindex setup. Invoking a basic WMS 1.3.0 GetMap request returns the following ServiceExceptionReport: msDrawMap(): Image handling error. Failed to draw layer named 'RDPS.ETA_PN'. msContourLayerOpen(): Image handling error. Unable to open GDAL dataset. msBuildPath: Unable to access file. msBuildPath: Unable to access file. msContourLayerSetTimeFilter(): General error message. Assertion failed: Contour layer not opened!!! When I point directly to a single GRIB2 file (via the DATA directive), all works as expected. Layer definition snippet below. Any idea what I'm doing wrong here? Or whether this is a suitable workaround? Note we are bound to UbuntuGIS stable. Thanks ..Tom LAYER NAME "RDPS.ETA_PN" STATUS ON DEBUG OFF TILEINDEX "/data/tileindex/foo.shp" # doesn't work # DATA "/data/foo.grib2" # works TYPE LINE CONNECTIONTYPE CONTOUR PROCESSING "BAND=1" PROCESSING "CONTOUR_INTERVAL=400" PROCESSING "CONTOUR_ITEM=pixel" DUMP TRUE TEMPLATE "ttt.html" PROJECTION "proj=stere" "lat_0=90" "lat_ts=60" "lon_0=249" "k=90" "x_0=0" "y_0=0" "a=6371229" "b=6371229" "units=m" "no_defs" END ... END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From tom.kralidis at canada.ca Tue Dec 15 05:54:09 2015 From: tom.kralidis at canada.ca (Kralidis, Tom (EC/EC)) Date: Tue, 15 Dec 2015 13:54:09 +0000 Subject: [mapserver-users] contour layers with tileindex issues In-Reply-To: <7d50773d99944dcbb997d09801df73d6@C119S212VM022.msvyvi.vaha.local> References: <7d50773d99944dcbb997d09801df73d6@C119S212VM022.msvyvi.vaha.local> Message-ID: <54f1a0ff6b7b4b83b6c7d970f52023f9@PEVDACDEXC012.birch.int.bell.ca> Hi Jukka: thanks for the info. The files exist on disk. I've opened a GitHub issue w/ a simple test case at https://github.com/mapserver/mapserver/issues/5212 ..Tom > -----Original Message----- > From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] > Sent: 2015-12-14 11:01 > To: Kralidis, Tom (EC/EC); mapserver-users at lists.osgeo.org > Subject: Re: contour layers with tileindex issues > > Hi, > > I would try to use TILEINDEX through OGR but that gets tricky because one > LAYER probable can't have two CONNECTIONTYPEs. Perhaps it would work by > using a tileindex layer as a tileindex for contours. > > LAYER #OGR tileindex layer > NAME "ogr_tileindex" > CONNECTIONTYPE OGR > CONNECTION .... > ... > ... > > LAYER #countour layer > TILEINDEX "ogr_tileindex" > CONNECTIONTYPE CONTOUR PROCESSING "BAND=1" > .... > .... > > But based on the error message Mapserver tries already open your GRIB2 files > through GDAL/OGR. Are you sure that you have valid path in the "location" field > of the tileindex shape? > > -Jukka Rahkonen- > > Kralidis, Tom wrote: > > > Hi all: using 6.4.1 we are attempting to display (via WMS) GRIB2 data as a > contour layer backed by a tileindex setup. Invoking a basic WMS 1.3.0 GetMap > request returns the following ServiceExceptionReport: > > msDrawMap(): Image handling error. Failed to draw layer named > 'RDPS.ETA_PN'. > msContourLayerOpen(): Image handling error. Unable to open GDAL dataset. > msBuildPath: Unable to access file. > msBuildPath: Unable to access file. > msContourLayerSetTimeFilter(): General error message. Assertion failed: > Contour layer not opened!!! > > When I point directly to a single GRIB2 file (via the DATA directive), all works as > expected. > > Layer definition snippet below. > > Any idea what I'm doing wrong here? Or whether this is a suitable workaround? > Note we are bound to UbuntuGIS stable. > > Thanks > > ..Tom > > > > LAYER > NAME "RDPS.ETA_PN" > STATUS ON > DEBUG OFF > TILEINDEX "/data/tileindex/foo.shp" # doesn't work # DATA "/data/foo.grib2" > # works TYPE LINE CONNECTIONTYPE CONTOUR PROCESSING "BAND=1" > PROCESSING "CONTOUR_INTERVAL=400" > PROCESSING "CONTOUR_ITEM=pixel" > DUMP TRUE > TEMPLATE "ttt.html" > PROJECTION > "proj=stere" > "lat_0=90" > "lat_ts=60" > "lon_0=249" > "k=90" > "x_0=0" > "y_0=0" > "a=6371229" > "b=6371229" > "units=m" > "no_defs" > END > ... > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From its.the.doc at gmail.com Tue Dec 15 09:40:19 2015 From: its.the.doc at gmail.com (kelly elton) Date: Tue, 15 Dec 2015 17:40:19 +0000 Subject: [mapserver-users] cmake issue Message-ID: Having issues running cmake on mapserver on windows using the sdk from gisinternals c:\mapserver\mapserver\build>cmake .. -DWITH_POSTGIS=0 -DWITH_CSHARP=1 -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" -DMSVC_VER=1800 -DMSVC_VERSION=1600 -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" CMake Error at CMakeLists.txt:69 (message): ICONV library/component/dependency could not be found. HINTS: - disable ICONV support by adding -DWITH_ICONV=0 - add the ICONV install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/ICONV-install-dir;/path/to/other/dirs" Call Stack (most recent call first): CMakeLists.txt:429 (report_optional_not_found) iconv.dll iconv.h and iconv.lib are all present in the sdk -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Tue Dec 15 10:58:14 2015 From: its.the.doc at gmail.com (kelly elton) Date: Tue, 15 Dec 2015 18:58:14 +0000 Subject: [mapserver-users] cmake issue In-Reply-To: References: Message-ID: Yeah so after tinkering with it, if I added my sdk bin directory (C:\mapserver\SDK\release-1800\bin in this case) to my PATH environmental variable, then it worked. Seems a little weird considering every other plugin could properly read the CMAKE_PREFIX_PATH just fine. On Tue, Dec 15, 2015 at 12:40 PM kelly elton wrote: > Having issues running cmake on mapserver on windows using the sdk from > gisinternals > > c:\mapserver\mapserver\build>cmake .. -DWITH_POSTGIS=0 -DWITH_CSHARP=1 > -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" -DMSVC_VER=1800 > -DMSVC_VERSION=1600 > -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" > > CMake Error at CMakeLists.txt:69 (message): > ICONV library/component/dependency could not be found. > > HINTS: > - disable ICONV support by adding -DWITH_ICONV=0 > - add the ICONV install directory to the CMAKE_PREFIX_PATH variable > (-DCMAKE_PREFIX_PATH="/path/to/ICONV-install-dir;/path/to/other/dirs" > Call Stack (most recent call first): > CMakeLists.txt:429 (report_optional_not_found) > > iconv.dll iconv.h and iconv.lib are all present in the sdk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Dec 15 11:44:25 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 15 Dec 2015 15:44:25 -0400 Subject: [mapserver-users] cmake issue In-Reply-To: References: Message-ID: <56706D99.7080306@gatewaygeomatics.com> In my case I always have to pass the path to the includes and the libs, such as: -DICONV_INCLUDE_DIR="%ICONVDIR%\include" -DICONV_LIBRARY="%ICONVDIR%\lib\iconv.lib" I agree that it is often confusing how these are discovered through the cmake build, I often have to modify the "FindXXX.cmake" code in /cmake, which you could look at for your environment (in your case the problem file is /cmake/FindICONV.cmake). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-12-15 2:58 PM, kelly elton wrote: > Yeah so after tinkering with it, if I added my sdk bin directory > (C:\mapserver\SDK\release-1800\bin in this case) to my PATH > environmental variable, then it worked. Seems a little weird considering > every other plugin could properly read the CMAKE_PREFIX_PATH just fine. > > On Tue, Dec 15, 2015 at 12:40 PM kelly elton > wrote: > > Having issues running cmake on mapserver on windows using the sdk > from gisinternals > > c:\mapserver\mapserver\build>cmake .. -DWITH_POSTGIS=0 > -DWITH_CSHARP=1 > -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" > -DMSVC_VER=1800 -DMSVC_VERSION=1600 > -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" > > CMake Error at CMakeLists.txt:69 (message): > ICONV library/component/dependency could not be found. > > HINTS: > - disable ICONV support by adding -DWITH_ICONV=0 > - add the ICONV install directory to the CMAKE_PREFIX_PATH > variable > (-DCMAKE_PREFIX_PATH="/path/to/ICONV-install-dir;/path/to/other/dirs" > Call Stack (most recent call first): > CMakeLists.txt:429 (report_optional_not_found) > > iconv.dll iconv.h and iconv.lib are all present in the sdk > > From its.the.doc at gmail.com Wed Dec 16 07:49:42 2015 From: its.the.doc at gmail.com (kelly elton) Date: Wed, 16 Dec 2015 15:49:42 +0000 Subject: [mapserver-users] Unable to load DLL 'csharpmapscript' Message-ID: So I've compiled both mapscript 7 and 6.4 against the sdk from gisinternals on windows. cmake .. -DWITH_POSTGIS=0 -DWITH_CSHARP=1 -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" -DREGEX_DIR="C:\mapserver\regex-0.12" -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" Then I get the error when trying to use the mapscript library in .net Unable to load DLL 'csharpmapscript' If i load up the dll it's looking for the import 'csharpmapscript' which doesn't exist anywhere. So I tried renaming mapscript.dll to 'csharpmapscript.dll' and that gets past that point but throws an assert error. Any ideas what I might be missing here? -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Wed Dec 16 08:06:52 2015 From: its.the.doc at gmail.com (kelly elton) Date: Wed, 16 Dec 2015 16:06:52 +0000 Subject: [mapserver-users] Unable to load DLL 'csharpmapscript' In-Reply-To: References: Message-ID: I found this, it might be related https://github.com/mapserver/mapserver/commit/42b48bc3284fe5d086a7e941be1634356d0a2dae Thing is though, maybe that was supposed to fix it, but downloading the 7.0 source caused the same issue. On Wed, Dec 16, 2015 at 10:49 AM kelly elton wrote: > So I've compiled both mapscript 7 and 6.4 against the sdk from > gisinternals on windows. > > cmake .. -DWITH_POSTGIS=0 -DWITH_CSHARP=1 > -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" > -DREGEX_DIR="C:\mapserver\regex-0.12" > -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" > > Then I get the error when trying to use the mapscript library in .net > Unable to load DLL 'csharpmapscript' > > If i load up the dll it's looking for the import 'csharpmapscript' which > doesn't exist anywhere. > > So I tried renaming mapscript.dll to 'csharpmapscript.dll' and that gets > past that point but throws an assert error. > > Any ideas what I might be missing here? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Wed Dec 16 08:23:26 2015 From: its.the.doc at gmail.com (kelly elton) Date: Wed, 16 Dec 2015 16:23:26 +0000 Subject: [mapserver-users] Unable to load DLL 'csharpmapscript' In-Reply-To: References: Message-ID: The debug assertion is Debug Assertion Failed! Program:testProgram.exe File: f:\dd\vctools\crt\crtw32\misc\dbgheap.c Line:1328 Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse) On Wed, Dec 16, 2015 at 11:06 AM kelly elton wrote: > I found this, it might be related > https://github.com/mapserver/mapserver/commit/42b48bc3284fe5d086a7e941be1634356d0a2dae > > Thing is though, maybe that was supposed to fix it, but downloading the > 7.0 source caused the same issue. > > On Wed, Dec 16, 2015 at 10:49 AM kelly elton > wrote: > >> So I've compiled both mapscript 7 and 6.4 against the sdk from >> gisinternals on windows. >> >> cmake .. -DWITH_POSTGIS=0 -DWITH_CSHARP=1 >> -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40" >> -DREGEX_DIR="C:\mapserver\regex-0.12" >> -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40" >> >> Then I get the error when trying to use the mapscript library in .net >> Unable to load DLL 'csharpmapscript' >> >> If i load up the dll it's looking for the import 'csharpmapscript' which >> doesn't exist anywhere. >> >> So I tried renaming mapscript.dll to 'csharpmapscript.dll' and that gets >> past that point but throws an assert error. >> >> Any ideas what I might be missing here? >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From domenico.febbo at gmail.com Thu Dec 17 02:36:55 2015 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Thu, 17 Dec 2015 11:36:55 +0100 Subject: [mapserver-users] Kernel Density maps Message-ID: Dear all, I'm playing with Kernel Density maps [1] on MAPSERVER 7.0.0 and I have some questions/suggestions: 1) It could be useful to set the "KERNELDENSITY_RADIUS" also in map units not only in pixel in order to save density distribution during zoom in/out 2) I didin't find a way to use KERNELDENSITY_ATTRIBUTE, do you have examples or information? 3) How to generate a LEGEND of raster values for the HEATMAP? [1] http://mapserver.org/output/kerneldensity.html Regards, Domenico. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tblanchard at mac.com Mon Dec 21 19:34:22 2015 From: tblanchard at mac.com (AuroraGH) Date: Mon, 21 Dec 2015 19:34:22 -0800 (PST) Subject: [mapserver-users] S57 Marine Charts on mapserver? Message-ID: <1450755262270-5242416.post@n6.nabble.com> NOAA provides free nautical charts in S57 format. They need to be rendered using S52 formatting. Can mapserver do this and provide it as a tile service? I can't seem to figure it out and it seems like it would be a really common thing to want. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/S57-Marine-Charts-on-mapserver-tp5242416.html Sent from the Mapserver - User mailing list archive at Nabble.com. From havard.tveite at nmbu.no Mon Dec 21 23:38:11 2015 From: havard.tveite at nmbu.no (Havard Tveite) Date: Tue, 22 Dec 2015 08:38:11 +0100 Subject: [mapserver-users] S57 Marine Charts on mapserver? In-Reply-To: <1450755262270-5242416.post@n6.nabble.com> References: <1450755262270-5242416.post@n6.nabble.com> Message-ID: <5678FDE3.7010000@nmbu.no> 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. H?vard On 22. des. 2015 04:34, AuroraGH wrote: > NOAA provides free nautical charts in S57 format. They need to be rendered > using S52 formatting. > > Can mapserver do this and provide it as a tile service? > > I can't seem to figure it out and it seems like it would be a really common > thing to want. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/S57-Marine-Charts-on-mapserver-tp5242416.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 67231548 Fax: +47 64965401 http://www.nmbu.no/imt/ From dmorissette at mapgears.com Tue Dec 22 07:08:45 2015 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 22 Dec 2015 10:08:45 -0500 Subject: [mapserver-users] S57 Marine Charts on mapserver? In-Reply-To: <5678FDE3.7010000@nmbu.no> References: <1450755262270-5242416.post@n6.nabble.com> <5678FDE3.7010000@nmbu.no> Message-ID: <5679677D.30800@mapgears.com> 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 From lars.schylberg at blixtmail.se Wed Dec 23 02:39:46 2015 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Wed, 23 Dec 2015 11:39:46 +0100 Subject: [mapserver-users] S57 Marine Charts on mapserver? In-Reply-To: <5679677D.30800@mapgears.com> References: <1450755262270-5242416.post@n6.nabble.com> <5678FDE3.7010000@nmbu.no> <5679677D.30800@mapgears.com> Message-ID: <567A79F2.70406@blixtmail.se> I can just agree what Daniel said. It can be done and I even know about three groups that have done it. I am in one of those groups and have worked on nautical S52 presentation done with Mapserver configurations for a little more than one year. My experience is that it can be done as good or even better than the big commercial GIS vendors. Our goal has not been to produce a nautical map for navigation. It has been done for planning purposes and as a base map. I am still working on this project and I will see next year what parts we could release as open. At least I think that we could contribute to the Mapserver documentation around these issues. Back to the S52 symbology standard. The standard describes point symbols, line symbology and area patterns in a file that has the extension: ?.dai?. It uses the pen plotter style of description, ie pen up, pen down, move to, to describe around 150 ? 200 different symbols, lines types and patterns. The syntax in the .dai file is the old graphic standard HPGL. It is of course very precise but You have to interpret it and turn it into something useful for the mapfile syntax. There are different ways to do this. The opencpn project and some others have used the code in opencpn and made bitmaps of the symbols that easily could be used in mapserver. Others have converted the .dai files to svg. This is the way IHO seems to be going also with the upcoming new S102 standardization. They will replace .dai files with svg files and other xml constructions to describe lines and patterns. There is currently a limitation in mapserver to go this way, that I have mentioned in mapserver-dev questions earlier this year. http://osgeo-org.1560.x6.nabble.com/svg-symbols-setting-color-outline-width-outline-color-td5231065.html This is of course if You want to implement all different color modes. The approach we have used, is a mix of true type symbols and native mapserver symbology. Actually I prefer the native mapserver symbology. This is more or less the same as HPGL line to xy, line to xy and -99 for pen up. So I have made some of the point and line symbols into native mapserver symbology symbols. These have been edited by hand based on the stroke descriptions in the dai or svg files. Then You could set color and width in the mapfile. I did write a little about s57 data handling in a mapserver-users entry back in September https://lists.osgeo.org/pipermail/mapserver-users/2015-September/078251.html One group that has shown how to convert S57 to postgis and display it with mapserver for one single chart is this Russian group: https://github.com/nextgis/navi2pg You can find a lot inspiration how the mapfiles are written. They have used bitmap symbols. Even if I don?t speak or read Russian, I think You could grasp most of it anyway. Google translate can also help for specific words. Personally I would prefer to have an end state with a spatialite database (or geopackage with symbology included) for the S57 databases but right now I am using shapefiles. Good luck Lars Schylberg From mwaurah at gmail.com Wed Dec 23 12:27:29 2015 From: mwaurah at gmail.com (Daniel Mwaurah) Date: Wed, 23 Dec 2015 21:27:29 +0100 Subject: [mapserver-users] CGI Tilemode blank on one layer Message-ID: hallo people, I would greatly appreciate some help with Mapserver Tile mode. Eeven a hint in the right direction would be much appreciated. I am trying to display two layers in Tile mode in open layers as follows 1. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png 2. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png The problem arises in that one layer the 10m_ocean displays while the other one just shows a blank. I suspect it has to do with the extents because the 10m_ocean layers has a large extent from -180 to 180 while the kenyaoutline layer only covers one country from about 33 to 37 degrees. Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below. MAP #FONTSET "[fontsetpath]" DEBUG 5 CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" EXTENT 33 -5 42 6 IMAGETYPE "png" NAME "Natural_Earth_quick_start_for_QGIS" SIZE 600 600 CONFIG ON_MISSING_DATA "LOG" STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT TRUE END # OUTPUTFORMAT PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB FOOTER "" HEADER "" TEMPPATH "" METADATA "ows_onlineresource" " http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" "ows_enable_request" "*" "ows_srs" "EPSG:4326" "ows_title" "Natural_Earth_quick_start_for_QGIS" END # METADATA #TEMPLATE "[templatepath]" END # WEB LAYER DATA "/var/www/10m_physical/10m_ocean.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "10m_ocean" END # METADATA NAME "10m_ocean" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 198 226 242 END # STYLE END # CLASS END # LAYER LAYER DATA "/var/www/kenyaoutline/Kenyaoutline.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "Kenyaoutline" END # METADATA NAME "Kenyaoutline" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 0 0 0 END # STYLE END # CLASS END # LAYER END # MAP The same happens when i try to view it using QGIS Tilelayer plugin. -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Dec 23 12:36:03 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 23 Dec 2015 20:36:03 +0000 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: What happens if you comment out the layer extents? They really shouldn?t be necessary. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Mwaurah Sent: Wednesday, December 23, 2015 2:27 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI Tilemode blank on one layer hallo people, I would greatly appreciate some help with Mapserver Tile mode. Eeven a hint in the right direction would be much appreciated. I am trying to display two layers in Tile mode in open layers as follows 1. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png 2. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png The problem arises in that one layer the 10m_ocean displays while the other one just shows a blank. I suspect it has to do with the extents because the 10m_ocean layers has a large extent from -180 to 180 while the kenyaoutline layer only covers one country from about 33 to 37 degrees. Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below. MAP #FONTSET "[fontsetpath]" DEBUG 5 CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" EXTENT 33 -5 42 6 IMAGETYPE "png" NAME "Natural_Earth_quick_start_for_QGIS" SIZE 600 600 CONFIG ON_MISSING_DATA "LOG" STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT TRUE END # OUTPUTFORMAT PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB FOOTER "" HEADER "" TEMPPATH "" METADATA "ows_onlineresource" "http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" "ows_enable_request" "*" "ows_srs" "EPSG:4326" "ows_title" "Natural_Earth_quick_start_for_QGIS" END # METADATA #TEMPLATE "[templatepath]" END # WEB LAYER DATA "/var/www/10m_physical/10m_ocean.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "10m_ocean" END # METADATA NAME "10m_ocean" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 198 226 242 END # STYLE END # CLASS END # LAYER LAYER DATA "/var/www/kenyaoutline/Kenyaoutline.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "Kenyaoutline" END # METADATA NAME "Kenyaoutline" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 0 0 0 END # STYLE END # CLASS END # LAYER END # MAP The same happens when i try to view it using QGIS Tilelayer plugin. -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaurah at gmail.com Wed Dec 23 13:25:58 2015 From: mwaurah at gmail.com (Daniel Mwaurah) Date: Wed, 23 Dec 2015 22:25:58 +0100 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: Thank you Steve for your response. I have tried commenting out the extents but still the same problem. I think it recognizes the inbuilt extents of the data layers. On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > What happens if you comment out the layer extents? They really shouldn?t > be necessary. > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Daniel Mwaurah > *Sent:* Wednesday, December 23, 2015 2:27 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] CGI Tilemode blank on one layer > > > > hallo people, > > > > I would greatly appreciate some help with Mapserver Tile mode. Eeven a > hint in the right direction would be much appreciated. I am trying to > display two layers in Tile mode in open layers as follows > > > > > > 1. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png > > > > > 2. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png > > > > > > > The problem arises in that one layer the 10m_ocean displays while the > other one just shows a blank. I suspect it has to do with the extents > because the 10m_ocean layers has a large extent from -180 to 180 while the > kenyaoutline layer only covers one country from about 33 to 37 degrees. > > > > Is there a limitation to small extents in tile mode? or what could be the > problem. My mapfile is as below. > > > > > > MAP > > #FONTSET "[fontsetpath]" > > DEBUG 5 > > CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" > > EXTENT 33 -5 42 6 > > IMAGETYPE "png" > > NAME "Natural_Earth_quick_start_for_QGIS" > > SIZE 600 600 > > CONFIG ON_MISSING_DATA "LOG" > > STATUS ON > > UNITS DD > > > > OUTPUTFORMAT > > NAME "png" > > MIMETYPE "image/png" > > DRIVER "AGG/PNG" > > EXTENSION "png" > > IMAGEMODE RGBA > > TRANSPARENT TRUE > > END # OUTPUTFORMAT > > > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > LEGEND > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > STATUS OFF > > END # LEGEND > > > > QUERYMAP > > SIZE -1 -1 > > STATUS OFF > > STYLE HILITE > > END # QUERYMAP > > > > SCALEBAR > > INTERVALS 4 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > SIZE 200 3 > > STATUS OFF > > UNITS MILES > > END # SCALEBAR > > > > WEB > > FOOTER "" > > HEADER "" > > TEMPPATH "" > > METADATA > > "ows_onlineresource" " > http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" > > "ows_enable_request" "*" > > "ows_srs" "EPSG:4326" > > "ows_title" "Natural_Earth_quick_start_for_QGIS" > > END # METADATA > > #TEMPLATE "[templatepath]" > > END # WEB > > > > LAYER > > DATA "/var/www/10m_physical/10m_ocean.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "10m_ocean" > > END # METADATA > > NAME "10m_ocean" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 198 226 242 > > END # STYLE > > END # CLASS > > END # LAYER > > > > > > LAYER > > DATA "/var/www/kenyaoutline/Kenyaoutline.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "Kenyaoutline" > > END # METADATA > > NAME "Kenyaoutline" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 0 0 0 > > END # STYLE > > END # CLASS > > END # LAYER > > > > END # MAP > > > > > > > > The same happens when i try to view it using QGIS Tilelayer plugin. > > > > > -- > > Kind regards, > > Mwaura Daniel > -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaurah at gmail.com Wed Dec 23 14:29:42 2015 From: mwaurah at gmail.com (Daniel Mwaurah) Date: Wed, 23 Dec 2015 23:29:42 +0100 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: Thats true Steve, Its actually rendering in the non tiled setting. I wonder how come its one layer not rendering in tilemode while the other one is. Both render ok in non tile setting. On Wed, Dec 23, 2015 at 10:29 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > It will look at the extent of shapefiles to decide if it needs to process > features in a layer but that?s to be expected. I mean, if there?s nothing > to draw then why bother. Have you verified that the layers render in a > non-tiled setting? > > > > *From:* Daniel Mwaurah [mailto:mwaurah at gmail.com] > *Sent:* Wednesday, December 23, 2015 3:26 PM > *To:* Lime, Steve D (MNIT) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] CGI Tilemode blank on one layer > > > > Thank you Steve for your response. > > > > I have tried commenting out the extents but still the same problem. I > think it recognizes the inbuilt extents of the data layers. > > > > On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) < > Steve.Lime at state.mn.us> wrote: > > What happens if you comment out the layer extents? They really shouldn?t > be necessary. > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Daniel Mwaurah > *Sent:* Wednesday, December 23, 2015 2:27 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] CGI Tilemode blank on one layer > > > > hallo people, > > > > I would greatly appreciate some help with Mapserver Tile mode. Eeven a > hint in the right direction would be much appreciated. I am trying to > display two layers in Tile mode in open layers as follows > > > > > > 1. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png > > > > > 2. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png > > > > > > > The problem arises in that one layer the 10m_ocean displays while the > other one just shows a blank. I suspect it has to do with the extents > because the 10m_ocean layers has a large extent from -180 to 180 while the > kenyaoutline layer only covers one country from about 33 to 37 degrees. > > > > Is there a limitation to small extents in tile mode? or what could be the > problem. My mapfile is as below. > > > > > > MAP > > #FONTSET "[fontsetpath]" > > DEBUG 5 > > CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" > > EXTENT 33 -5 42 6 > > IMAGETYPE "png" > > NAME "Natural_Earth_quick_start_for_QGIS" > > SIZE 600 600 > > CONFIG ON_MISSING_DATA "LOG" > > STATUS ON > > UNITS DD > > > > OUTPUTFORMAT > > NAME "png" > > MIMETYPE "image/png" > > DRIVER "AGG/PNG" > > EXTENSION "png" > > IMAGEMODE RGBA > > TRANSPARENT TRUE > > END # OUTPUTFORMAT > > > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > LEGEND > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > STATUS OFF > > END # LEGEND > > > > QUERYMAP > > SIZE -1 -1 > > STATUS OFF > > STYLE HILITE > > END # QUERYMAP > > > > SCALEBAR > > INTERVALS 4 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > SIZE 200 3 > > STATUS OFF > > UNITS MILES > > END # SCALEBAR > > > > WEB > > FOOTER "" > > HEADER "" > > TEMPPATH "" > > METADATA > > "ows_onlineresource" " > http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" > > "ows_enable_request" "*" > > "ows_srs" "EPSG:4326" > > "ows_title" "Natural_Earth_quick_start_for_QGIS" > > END # METADATA > > #TEMPLATE "[templatepath]" > > END # WEB > > > > LAYER > > DATA "/var/www/10m_physical/10m_ocean.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "10m_ocean" > > END # METADATA > > NAME "10m_ocean" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 198 226 242 > > END # STYLE > > END # CLASS > > END # LAYER > > > > > > LAYER > > DATA "/var/www/kenyaoutline/Kenyaoutline.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "Kenyaoutline" > > END # METADATA > > NAME "Kenyaoutline" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 0 0 0 > > END # STYLE > > END # CLASS > > END # LAYER > > > > END # MAP > > > > > > > > The same happens when i try to view it using QGIS Tilelayer plugin. > > > > > -- > > Kind regards, > > Mwaura Daniel > > > > > > -- > > Kind regards, > > Mwaura Daniel > -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwaurah at gmail.com Sun Dec 27 13:11:57 2015 From: mwaurah at gmail.com (Daniel Mwaurah) Date: Sun, 27 Dec 2015 22:11:57 +0100 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: Thanks to much help from Steve i was finally able to solve my problem and it was a naming error on the layer that wasn?t displaying. I was writing the name as 'kenyaoutline' on the url section while it should have been 'Kenyaoutline' as named on the mapfile. On Thu, Dec 24, 2015 at 4:30 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > Since you have no scale dependencies or anything like that I don?t know > why? You have some spurious layer definitions (no need for TILEITEM or > UNITS) but I don?t think that?s the problem. The most obvious cause would > be that you?re viewing an area where there is ocean but no Kenya. What > happens if you request both layers in the same tile? > > > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png > > > Steve > > > > *From:* Daniel Mwaurah [mailto:mwaurah at gmail.com] > *Sent:* Wednesday, December 23, 2015 4:30 PM > > *To:* Lime, Steve D (MNIT) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] CGI Tilemode blank on one layer > > > > Thats true Steve, > > > > Its actually rendering in the non tiled setting. I wonder how come its one > layer not rendering in tilemode while the other one is. Both render ok in > non tile setting. > > > > > > > > On Wed, Dec 23, 2015 at 10:29 PM, Lime, Steve D (MNIT) < > Steve.Lime at state.mn.us> wrote: > > It will look at the extent of shapefiles to decide if it needs to process > features in a layer but that?s to be expected. I mean, if there?s nothing > to draw then why bother. Have you verified that the layers render in a > non-tiled setting? > > > > *From:* Daniel Mwaurah [mailto:mwaurah at gmail.com] > *Sent:* Wednesday, December 23, 2015 3:26 PM > *To:* Lime, Steve D (MNIT) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] CGI Tilemode blank on one layer > > > > Thank you Steve for your response. > > > > I have tried commenting out the extents but still the same problem. I > think it recognizes the inbuilt extents of the data layers. > > > > On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) < > Steve.Lime at state.mn.us> wrote: > > What happens if you comment out the layer extents? They really shouldn?t > be necessary. > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Daniel Mwaurah > *Sent:* Wednesday, December 23, 2015 2:27 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] CGI Tilemode blank on one layer > > > > hallo people, > > > > I would greatly appreciate some help with Mapserver Tile mode. Eeven a > hint in the right direction would be much appreciated. I am trying to > display two layers in Tile mode in open layers as follows > > > > > > 1. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png > > > > > 2. > http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png > > > > > > > The problem arises in that one layer the 10m_ocean displays while the > other one just shows a blank. I suspect it has to do with the extents > because the 10m_ocean layers has a large extent from -180 to 180 while the > kenyaoutline layer only covers one country from about 33 to 37 degrees. > > > > Is there a limitation to small extents in tile mode? or what could be the > problem. My mapfile is as below. > > > > > > MAP > > #FONTSET "[fontsetpath]" > > DEBUG 5 > > CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" > > EXTENT 33 -5 42 6 > > IMAGETYPE "png" > > NAME "Natural_Earth_quick_start_for_QGIS" > > SIZE 600 600 > > CONFIG ON_MISSING_DATA "LOG" > > STATUS ON > > UNITS DD > > > > OUTPUTFORMAT > > NAME "png" > > MIMETYPE "image/png" > > DRIVER "AGG/PNG" > > EXTENSION "png" > > IMAGEMODE RGBA > > TRANSPARENT TRUE > > END # OUTPUTFORMAT > > > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > LEGEND > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > STATUS OFF > > END # LEGEND > > > > QUERYMAP > > SIZE -1 -1 > > STATUS OFF > > STYLE HILITE > > END # QUERYMAP > > > > SCALEBAR > > INTERVALS 4 > > LABEL > > SIZE MEDIUM > > OFFSET 0 0 > > SHADOWSIZE 1 1 > > TYPE BITMAP > > END # LABEL > > SIZE 200 3 > > STATUS OFF > > UNITS MILES > > END # SCALEBAR > > > > WEB > > FOOTER "" > > HEADER "" > > TEMPPATH "" > > METADATA > > "ows_onlineresource" " > http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" > > "ows_enable_request" "*" > > "ows_srs" "EPSG:4326" > > "ows_title" "Natural_Earth_quick_start_for_QGIS" > > END # METADATA > > #TEMPLATE "[templatepath]" > > END # WEB > > > > LAYER > > DATA "/var/www/10m_physical/10m_ocean.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "10m_ocean" > > END # METADATA > > NAME "10m_ocean" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 198 226 242 > > END # STYLE > > END # CLASS > > END # LAYER > > > > > > LAYER > > DATA "/var/www/kenyaoutline/Kenyaoutline.shp" > > EXTENT 33 -5 42 6 > > METADATA > > "ows_title" "Kenyaoutline" > > END # METADATA > > NAME "Kenyaoutline" > > PROJECTION > > "proj=longlat" > > "datum=WGS84" > > "no_defs" > > END # PROJECTION > > STATUS ON > > TILEITEM "location" > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Single symbol" > > STYLE > > COLOR 0 0 0 > > END # STYLE > > END # CLASS > > END # LAYER > > > > END # MAP > > > > > > > > The same happens when i try to view it using QGIS Tilelayer plugin. > > > > > -- > > Kind regards, > > Mwaura Daniel > > > > > > -- > > Kind regards, > > Mwaura Daniel > > > > > > -- > > Kind regards, > > Mwaura Daniel > -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From michal.seidl at gmail.com Tue Dec 29 03:07:40 2015 From: michal.seidl at gmail.com (Michal Seidl) Date: Tue, 29 Dec 2015 03:07:40 -0800 (PST) Subject: [mapserver-users] Get MAP file CLASSes with no data - empty In-Reply-To: References: <1324157711231-7104765.post@n2.nabble.com> Message-ID: <1451387260845-5243160.post@n6.nabble.com> Hello, thanks for your replies. Despite 4 years old still usefull at least for me :). Michal -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-MAP-file-CLASSes-with-no-data-empty-tp4226903p5243160.html Sent from the Mapserver - User mailing list archive at Nabble.com. From michal.seidl at gmail.com Tue Dec 29 03:13:48 2015 From: michal.seidl at gmail.com (Michal Seidl) Date: Tue, 29 Dec 2015 03:13:48 -0800 (PST) Subject: [mapserver-users] Is EXTENT on LAYER necessary for WFS with PostGIS Message-ID: <1451387628081-5243162.post@n6.nabble.com> Hello, It looks like EXTENT parameter is necessary on LAYER level when trying to get data as WFS from PostGIS with CONNECTION postgis driver. The problem is that data in DB is changing and how to update mapfile? Thanks Michal -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-EXTENT-on-LAYER-necessary-for-WFS-with-PostGIS-tp5243162.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Wed Dec 30 14:42:49 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 30 Dec 2015 22:42:49 +0000 Subject: [mapserver-users] Is EXTENT on LAYER necessary for WFS with PostGIS In-Reply-To: <1451387628081-5243162.post@n6.nabble.com> References: <1451387628081-5243162.post@n6.nabble.com> Message-ID: It's not required, we have pg-based WFS services that run without that element. I believe you could see a performance boost under certain conditions if it doesn't have to be computed (e.g. large databases). --Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michal Seidl Sent: Tuesday, December 29, 2015 5:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Is EXTENT on LAYER necessary for WFS with PostGIS Hello, It looks like EXTENT parameter is necessary on LAYER level when trying to get data as WFS from PostGIS with CONNECTION postgis driver. The problem is that data in DB is changing and how to update mapfile? Thanks Michal -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-EXTENT-on-LAYER-necessary-for-WFS-with-PostGIS-tp5243162.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From miladnidal2604 at gmail.com Tue Dec 1 15:36:17 2015 From: miladnidal2604 at gmail.com (milad nidal) Date: Tue, 01 Dec 2015 23:36:17 -0000 Subject: [mapserver-users] WMS cascading and Mapcache In-Reply-To: References: Message-ID: Thanks for answer.. I did a cache with mapcache (on Linux). The first image is with mapserver 6.4 (on windows) and the second for the sames layers with mapserver 7 (on linux). One can see the outline of the white area in some places.. Thanks On Tue, Dec 1, 2015 at 4:06 AM, thomas bonfort wrote: > On 1 December 2015 at 02:49, milad nidal wrote: > > We get something like an outline of cascading WMS and this happened only > > when we do a cache > > Can you explicit what you mean by this ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_windows.png Type: image/png Size: 49311 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_linux.png Type: image/png Size: 44034 bytes Desc: not available URL: From Steve.Lime at state.mn.us Wed Dec 23 14:01:44 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 23 Dec 2015 22:01:44 -0000 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: It will look at the extent of shapefiles to decide if it needs to process features in a layer but that?s to be expected. I mean, if there?s nothing to draw then why bother. Have you verified that the layers render in a non-tiled setting? From: Daniel Mwaurah [mailto:mwaurah at gmail.com] Sent: Wednesday, December 23, 2015 3:26 PM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI Tilemode blank on one layer Thank you Steve for your response. I have tried commenting out the extents but still the same problem. I think it recognizes the inbuilt extents of the data layers. On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) > wrote: What happens if you comment out the layer extents? They really shouldn?t be necessary. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Mwaurah Sent: Wednesday, December 23, 2015 2:27 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI Tilemode blank on one layer hallo people, I would greatly appreciate some help with Mapserver Tile mode. Eeven a hint in the right direction would be much appreciated. I am trying to display two layers in Tile mode in open layers as follows 1. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png 2. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png The problem arises in that one layer the 10m_ocean displays while the other one just shows a blank. I suspect it has to do with the extents because the 10m_ocean layers has a large extent from -180 to 180 while the kenyaoutline layer only covers one country from about 33 to 37 degrees. Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below. MAP #FONTSET "[fontsetpath]" DEBUG 5 CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" EXTENT 33 -5 42 6 IMAGETYPE "png" NAME "Natural_Earth_quick_start_for_QGIS" SIZE 600 600 CONFIG ON_MISSING_DATA "LOG" STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT TRUE END # OUTPUTFORMAT PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB FOOTER "" HEADER "" TEMPPATH "" METADATA "ows_onlineresource" "http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" "ows_enable_request" "*" "ows_srs" "EPSG:4326" "ows_title" "Natural_Earth_quick_start_for_QGIS" END # METADATA #TEMPLATE "[templatepath]" END # WEB LAYER DATA "/var/www/10m_physical/10m_ocean.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "10m_ocean" END # METADATA NAME "10m_ocean" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 198 226 242 END # STYLE END # CLASS END # LAYER LAYER DATA "/var/www/kenyaoutline/Kenyaoutline.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "Kenyaoutline" END # METADATA NAME "Kenyaoutline" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 0 0 0 END # STYLE END # CLASS END # LAYER END # MAP The same happens when i try to view it using QGIS Tilelayer plugin. -- Kind regards, Mwaura Daniel -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Dec 24 07:45:24 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 24 Dec 2015 15:45:24 -0000 Subject: [mapserver-users] CGI Tilemode blank on one layer In-Reply-To: References: Message-ID: Since you have no scale dependencies or anything like that I don?t know why? You have some spurious layer definitions (no need for TILEITEM or UNITS) but I don?t think that?s the problem. The most obvious cause would be that you?re viewing an area where there is ocean but no Kenya. What happens if you request both layers in the same tile? http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png Steve From: Daniel Mwaurah [mailto:mwaurah at gmail.com] Sent: Wednesday, December 23, 2015 4:30 PM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI Tilemode blank on one layer Thats true Steve, Its actually rendering in the non tiled setting. I wonder how come its one layer not rendering in tilemode while the other one is. Both render ok in non tile setting. On Wed, Dec 23, 2015 at 10:29 PM, Lime, Steve D (MNIT) > wrote: It will look at the extent of shapefiles to decide if it needs to process features in a layer but that?s to be expected. I mean, if there?s nothing to draw then why bother. Have you verified that the layers render in a non-tiled setting? From: Daniel Mwaurah [mailto:mwaurah at gmail.com] Sent: Wednesday, December 23, 2015 3:26 PM To: Lime, Steve D (MNIT) > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI Tilemode blank on one layer Thank you Steve for your response. I have tried commenting out the extents but still the same problem. I think it recognizes the inbuilt extents of the data layers. On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) > wrote: What happens if you comment out the layer extents? They really shouldn?t be necessary. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Mwaurah Sent: Wednesday, December 23, 2015 2:27 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI Tilemode blank on one layer hallo people, I would greatly appreciate some help with Mapserver Tile mode. Eeven a hint in the right direction would be much appreciated. I am trying to display two layers in Tile mode in open layers as follows 1. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png 2. http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png The problem arises in that one layer the 10m_ocean displays while the other one just shows a blank. I suspect it has to do with the extents because the 10m_ocean layers has a large extent from -180 to 180 while the kenyaoutline layer only covers one country from about 33 to 37 degrees. Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below. MAP #FONTSET "[fontsetpath]" DEBUG 5 CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt" EXTENT 33 -5 42 6 IMAGETYPE "png" NAME "Natural_Earth_quick_start_for_QGIS" SIZE 600 600 CONFIG ON_MISSING_DATA "LOG" STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT TRUE END # OUTPUTFORMAT PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB FOOTER "" HEADER "" TEMPPATH "" METADATA "ows_onlineresource" "http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map" "ows_enable_request" "*" "ows_srs" "EPSG:4326" "ows_title" "Natural_Earth_quick_start_for_QGIS" END # METADATA #TEMPLATE "[templatepath]" END # WEB LAYER DATA "/var/www/10m_physical/10m_ocean.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "10m_ocean" END # METADATA NAME "10m_ocean" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 198 226 242 END # STYLE END # CLASS END # LAYER LAYER DATA "/var/www/kenyaoutline/Kenyaoutline.shp" EXTENT 33 -5 42 6 METADATA "ows_title" "Kenyaoutline" END # METADATA NAME "Kenyaoutline" PROJECTION "proj=longlat" "datum=WGS84" "no_defs" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "Single symbol" STYLE COLOR 0 0 0 END # STYLE END # CLASS END # LAYER END # MAP The same happens when i try to view it using QGIS Tilelayer plugin. -- Kind regards, Mwaura Daniel -- Kind regards, Mwaura Daniel -- Kind regards, Mwaura Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos.otero23 at gmail.com Thu Dec 24 08:28:49 2015 From: carlos.otero23 at gmail.com (Carlos Isaac Otero Michilot) Date: Thu, 24 Dec 2015 16:28:49 -0000 Subject: [mapserver-users] Fwd: Saludo Navidad In-Reply-To: References: Message-ID: www.serfor.gob.pe -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TARJETA DE FELIZ NAVIDAD3.jpg Type: image/jpeg Size: 1779178 bytes Desc: not available URL: