From a.munyoz.b at gmail.com Wed Jan 9 01:13:41 2019 From: a.munyoz.b at gmail.com (=?UTF-8?Q?Anna_Mu=C3=B1oz?=) Date: Wed, 9 Jan 2019 10:13:41 +0100 Subject: [mapserver-users] How do a GetFeaureInfo on vector layer but showing raster layer ? In-Reply-To: References: Message-ID: Thank you very much to Steve Line and Carlos Ruiz for your feddback and suggestions! Finally I get the solution using mod_rewrite, and this is the solution that work in my case: RewriteEngine on ##LogLevel alert rewrite:trace5 RewriteCond %{QUERY_STRING} ^[A-z0-9,.%/-?&=]+GetFeatureInfo[A-z0-9,.%/-?&=]+ RewriteCond %{QUERY_STRING} ^(.*)raster_to_display(.*) RewriteRule ^.*mapserv.exe.*$ http://localhost/cgi-bin/mapserv.exe?%1vector_to_query%2 [PL] Best regards, Anna Missatge de Lime, Steve D (MNIT) del dia dj., 27 de des. 2018 a les 21:55: > Unfortunately you probably have to use mod_rewrite. It is possible to use > MapServer to use its standard template processing to forward the query for > a layer to another URL or to use hidden layers and templates but to do so > you have to be able to set the info_format to be used for the > GetInfoRequest and it doesn?t appear that?s possible from QGIS ? it always > sets info_format=text/plain. If that?s not the case let me know and I can > provide details on the MapServer-only methods. > > > > --Steve > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *Anna Mu?oz > *Sent:* Wednesday, December 26, 2018 11:44 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] How do a GetFeaureInfo on vector layer but > showing raster layer ? > > > > Hi, > > I would like to show with QGIS the attribute of a vector layer when I > request for information in a raster layer. Raster layer is an image from > wms service that also provides the vector layer. > > > > I have tried to solve the problem defining a GROUP layer but QGIS doesn't > recognize layers in a group as queryable although each of them is > queryable. This topic is well described here: > https://lists.osgeo.org/pipermail/mapserver-users/2012-July/072892.html > > > > I have also test apache rewrite_rules following this link: > > https://github.com/mapserver/mapserver/issues/3310 > > > > I have a very little knowledge of mapserver but I guess the solution is > using rewrite rules. The most examples I have found are about clean url, > but I am looking for redirection from one map file to another. > > > > The idea is to get attribute information from vector layer when user > request for information in a raster image loaded from wms service in QGIS. > > Is this possible ? Any help would be appreciated. > > > > Thank you in advance ! > > Anne > -------------- next part -------------- An HTML attachment was scrubbed... URL: From delorme at ipgp.fr Thu Jan 10 05:54:47 2019 From: delorme at ipgp.fr (Arthur Delorme) Date: Thu, 10 Jan 2019 14:54:47 +0100 Subject: [mapserver-users] mapserver queries and java / javascript Message-ID: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Hello, Years ago there was a Java code called JBox, which were very nice to make multiple queries by drawing a box on the map (which you could also use in browse mode to zoom). With the restrictions on Java in modern web browsers, I would like to replace JBox with something else, maybe some Javascript, but I can't find help about this by myself, so I come to you! I'm not super familiar with JS, even though I can write some stuff. Do you know about some examples / libraries to have this box tool? Thanks! Arthur From yves.jacolin at camptocamp.com Thu Jan 10 06:20:14 2019 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 10 Jan 2019 15:20:14 +0100 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> References: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Message-ID: Hello Arthur You can find such features in two main projects: * OpenLayers: http://www.openlayers.org/ * leaflet: https://leafletjs.com/ Regards, Y. Le jeu. 10 janv. 2019 ? 15:03, Arthur Delorme a ?crit : > Hello, > > Years ago there was a Java code called JBox, which were very nice to > make multiple queries by drawing a box on the map (which you could also > use in browse mode to zoom). > > With the restrictions on Java in modern web browsers, I would like to > replace JBox with something else, maybe some Javascript, but I can't > find help about this by myself, so I come to you! > > I'm not super familiar with JS, even though I can write some stuff. Do > you know about some examples / libraries to have this box tool? > > Thanks! > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin Training and support manager - Team Manager Camptocamp Tel (France) : +33 4 58 48 20 43 Tel (Switzerland) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 email : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Jan 10 06:36:17 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Thu, 10 Jan 2019 14:36:17 +0000 Subject: [mapserver-users] mapserver queries and java / javascript Message-ID: <461a689c604c433d867be5aa43739787@C119S212VM042.msvyvi.vaha.local> Hi, I guess that Arthur is after some Mapvserver specific CGI queries https://mapserver.org/cgi/controls.html like NQUERY with a box, which is something that WMS does not support. -Jukka Rahkonen- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Yves Jacolin L?hetetty: 10. tammikuuta 2019 16:20 Vastaanottaja: Arthur Delorme Kopio: mapserver-users Aihe: Re: [mapserver-users] mapserver queries and java / javascript Hello Arthur You can find such features in two main projects: * OpenLayers: http://www.openlayers.org/ * leaflet: https://leafletjs.com/ Regards, Y. Le jeu. 10 janv. 2019 ? 15:03, Arthur Delorme > a ?crit : Hello, Years ago there was a Java code called JBox, which were very nice to make multiple queries by drawing a box on the map (which you could also use in browse mode to zoom). With the restrictions on Java in modern web browsers, I would like to replace JBox with something else, maybe some Javascript, but I can't find help about this by myself, so I come to you! I'm not super familiar with JS, even though I can write some stuff. Do you know about some examples / libraries to have this box tool? Thanks! Arthur _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin Training and support manager - Team Manager Camptocamp Tel (France) : +33 4 58 48 20 43 Tel (Switzerland) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 email : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From delorme at ipgp.fr Thu Jan 10 06:44:05 2019 From: delorme at ipgp.fr (Arthur Delorme) Date: Thu, 10 Jan 2019 15:44:05 +0100 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: References: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Message-ID: Thanks for your answer Yves. I didn't know about lealet, which seems interesting: I will probably give it a try, for another application at least! And I know about OpenLayers. But if I'm not wrong, this implies to develop a new interface, where I would prefer to keep my MapServer app. Besides, do they allow to make queries like MapServer does? The way MapServer does is perfect for my interface: select multiple georeferenced objects and browse through the results to download the ones of interest. Thanks again Arthur Le 10/01/2019 ? 15:20, Yves Jacolin a ?crit?: > Hello Arthur > > You can find such features in two main projects: > * OpenLayers: http://www.openlayers.org/ > * leaflet: https://leafletjs.com/ > > Regards, > > Y. > > Le?jeu. 10 janv. 2019 ??15:03, Arthur Delorme > a ?crit?: > > Hello, > > Years ago there was a Java code called JBox, which were very nice to > make multiple queries by drawing a box on the map (which you could > also > use in browse mode to zoom). > > With the restrictions on Java in modern web browsers, I would like to > replace JBox with something else, maybe some Javascript, but I can't > find help about this by myself, so I come to you! > > I'm not super familiar with JS, even though I can write some > stuff. Do > you know about some examples / libraries to have this box tool? > > Thanks! > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Yves Jacolin > Training and support manager - Team Manager > Camptocamp > > Tel (France) : +33 4 58 48 20 43 > Tel (Switzerland) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > > email : yves.jacolin at camptocamp.com > http://www.camptocamp.com -- Arthur Delorme Institut de Physique du Globe de Paris Bureau 219 1 rue Jussieu 75238 Paris Cedex 05 T?l. : 01 83 95 76 13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From delorme at ipgp.fr Thu Jan 10 07:19:07 2019 From: delorme at ipgp.fr (Arthur Delorme) Date: Thu, 10 Jan 2019 16:19:07 +0100 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: <461a689c604c433d867be5aa43739787@C119S212VM042.msvyvi.vaha.local> References: <461a689c604c433d867be5aa43739787@C119S212VM042.msvyvi.vaha.local> Message-ID: <63b26966-74f4-eabd-f083-32faea8aea97@ipgp.fr> Hello Jukka, Yes exactly. When I see the IMGBOX and NQUERY variables, both refer to a box. How are we suppose to define it? With a form probably, but drawing a rectangle would be better for me. I will look at this IMGBOX variable to try to catch it in JS. When you speak about WMS, I am not familiar with it, but I guess that it's only a limitation for some sort of data? I'm only using a Tiff background image with Mapinfo format vectors and all are stored locally. Thanks Arthur Le 10/01/2019 ? 15:36, Rahkonen Jukka (MML) a ?crit?: > > Hi, > > I guess that Arthur is after some Mapvserver specific CGI queries > https://mapserver.org/cgi/controls.html like NQUERY with a box, which > is something that WMS does not support. > > -Jukka Rahkonen- > > *L?hett?j?:*mapserver-users > [mailto:mapserver-users-bounces at lists.osgeo.org] *Puolesta *Yves Jacolin > *L?hetetty:* 10. tammikuuta 2019 16:20 > *Vastaanottaja:* Arthur Delorme > *Kopio:* mapserver-users > *Aihe:* Re: [mapserver-users] mapserver queries and java / javascript > > Hello Arthur > > You can find such features in two main projects: > > * OpenLayers: http://www.openlayers.org/ > > * leaflet: https://leafletjs.com/ > > Regards, > > Y. > > Le?jeu. 10 janv. 2019 ??15:03, Arthur Delorme > a ?crit?: > > Hello, > > Years ago there was a Java code called JBox, which were very nice to > make multiple queries by drawing a box on the map (which you could > also > use in browse mode to zoom). > > With the restrictions on Java in modern web browsers, I would like to > replace JBox with something else, maybe some Javascript, but I can't > find help about this by myself, so I come to you! > > I'm not super familiar with JS, even though I can write some > stuff. Do > you know about some examples / libraries to have this box tool? > > Thanks! > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Yves Jacolin > > Training and support manager - Team Manager > Camptocamp > > Tel (France) : +33 4 58 48 20 43 > Tel (Switzerland) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > > email : yves.jacolin at camptocamp.com > http://www.camptocamp.com > -- Arthur Delorme Institut de Physique du Globe de Paris Bureau 219 1 rue Jussieu 75238 Paris Cedex 05 T?l. : 01 83 95 76 13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Jan 10 11:23:33 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 10 Jan 2019 19:23:33 +0000 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: References: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Message-ID: It?s certainly possible to execute native MapServer queries via OpenLayers or Leaflet. I originally wrote jbox (and dbox, a pure JavaScript implementation) but abandoned those long ago for OpenLayers and Leaflet. I?d have to see your app to comment on appropriateness of each. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme Sent: Thursday, January 10, 2019 8:44 AM To: mapserver-users Subject: Re: [mapserver-users] mapserver queries and java / javascript Thanks for your answer Yves. I didn't know about lealet, which seems interesting: I will probably give it a try, for another application at least! And I know about OpenLayers. But if I'm not wrong, this implies to develop a new interface, where I would prefer to keep my MapServer app. Besides, do they allow to make queries like MapServer does? The way MapServer does is perfect for my interface: select multiple georeferenced objects and browse through the results to download the ones of interest. Thanks again Arthur Le 10/01/2019 ? 15:20, Yves Jacolin a ?crit : Hello Arthur You can find such features in two main projects: * OpenLayers: http://www.openlayers.org/ * leaflet: https://leafletjs.com/ Regards, Y. Le jeu. 10 janv. 2019 ? 15:03, Arthur Delorme > a ?crit : Hello, Years ago there was a Java code called JBox, which were very nice to make multiple queries by drawing a box on the map (which you could also use in browse mode to zoom). With the restrictions on Java in modern web browsers, I would like to replace JBox with something else, maybe some Javascript, but I can't find help about this by myself, so I come to you! I'm not super familiar with JS, even though I can write some stuff. Do you know about some examples / libraries to have this box tool? Thanks! Arthur _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin Training and support manager - Team Manager Camptocamp Tel (France) : +33 4 58 48 20 43 Tel (Switzerland) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 email : yves.jacolin at camptocamp.com http://www.camptocamp.com -- Arthur Delorme Institut de Physique du Globe de Paris Bureau 219 1 rue Jussieu 75238 Paris Cedex 05 T?l. : 01 83 95 76 13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From delorme at ipgp.fr Fri Jan 11 02:21:49 2019 From: delorme at ipgp.fr (Arthur Delorme) Date: Fri, 11 Jan 2019 11:21:49 +0100 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: References: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Message-ID: <0974c3de-e16e-49a1-effe-9468d0157c78@ipgp.fr> Hello Steve, Better late than never then, thanks for jbox! Unfortunately, the app is not online and it would be appropriate to make a simpler, clean version rather than sharing the code as it is, as it's a little messy. I will have a look at OpenLayers and Leaflet to see how to do. And if I don't succeed, I will prepare this clean version and ask for your advices, if possible. Thanks again to all of you. Arthur Le 10/01/2019 ? 20:23, Lime, Steve D (MNIT) a ?crit?: > > It?s certainly possible to execute native MapServer queries via > OpenLayers or Leaflet. I originally wrote jbox (and dbox, a pure > JavaScript implementation) but abandoned those long ago for OpenLayers > and Leaflet. I?d have to see your app to comment on appropriateness of > each. > > --Steve > > *From:*mapserver-users > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Arthur > Delorme > *Sent:* Thursday, January 10, 2019 8:44 AM > *To:* mapserver-users > *Subject:* Re: [mapserver-users] mapserver queries and java / javascript > > Thanks for your answer Yves. > > I didn't know about lealet, which seems interesting: I will probably > give it a try, for another application at least! And I know about > OpenLayers. But if I'm not wrong, this implies to develop a new > interface, where I would prefer to keep my MapServer app. > > Besides, do they allow to make queries like MapServer does? The way > MapServer does is perfect for my interface: select multiple > georeferenced objects and browse through the results to download the > ones of interest. > > Thanks again > Arthur > > Le 10/01/2019 ? 15:20, Yves Jacolin a ?crit?: > > Hello Arthur > > You can find such features in two main projects: > > * OpenLayers: http://www.openlayers.org/ > > * leaflet: https://leafletjs.com/ > > Regards, > > Y. > > Le?jeu. 10 janv. 2019 ??15:03, Arthur Delorme > a ?crit?: > > Hello, > > Years ago there was a Java code called JBox, which were very > nice to > make multiple queries by drawing a box on the map (which you > could also > use in browse mode to zoom). > > With the restrictions on Java in modern web browsers, I would > like to > replace JBox with something else, maybe some Javascript, but I > can't > find help about this by myself, so I come to you! > > I'm not super familiar with JS, even though I can write some > stuff. Do > you know about some examples / libraries to have this box tool? > > Thanks! > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Yves Jacolin > > Training and support manager - Team Manager > Camptocamp > > Tel (France) : +33 4 58 48 20 43 > Tel (Switzerland) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > > email : yves.jacolin at camptocamp.com > > http://www.camptocamp.com > > > > -- > Arthur Delorme > Institut de Physique du Globe de Paris > Bureau 219 > 1 rue Jussieu 75238 Paris Cedex 05 > T?l. : 01 83 95 76 13 -- Arthur Delorme Institut de Physique du Globe de Paris Bureau 219 1 rue Jussieu 75238 Paris Cedex 05 T?l. : 01 83 95 76 13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Fri Jan 11 04:57:45 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 11 Jan 2019 12:57:45 +0000 Subject: [mapserver-users] Documentation of wcs_size and wcs_resolution Message-ID: Hi, I know that there are keywords "wcs_size" and "wcs_resolution" for configuring a WCS service but the only documentation I can find about those is the sentence "when wcs_extent and wcs_size/wcs_resolution are set" in https://www.mapserver.org/ogc/wcs_server.html#reference-section. I can more or less guess what the parameters do but I would like to know which of them are optional and if they should be used as a pair, for example "wcs_extent" + "wcs_size" OR "wcs_extent" + " wcs_resolution" and how those parameters affect DescribeCoverage of the corresponding coverage. I am only interested in WCS 2.0.1. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From delorme at ipgp.fr Fri Jan 11 08:20:29 2019 From: delorme at ipgp.fr (Arthur Delorme) Date: Fri, 11 Jan 2019 17:20:29 +0100 Subject: [mapserver-users] mapserver queries and java / javascript In-Reply-To: References: <455a3014-c696-dae7-5af5-fcc0888f6862@ipgp.fr> Message-ID: <34f78dce-2295-0d50-00ac-06ed773f33ef@ipgp.fr> I think I definitely need help with this :) I did some cleaning to reduce the interface to a very basic example. The "box" button was used to activate selection with jbox (either for zooming or nquerying) -- without jbox anymore it generates a JS error of course. There is only 1 layer here, with 2 objects. They are represented as points in the default view and after zooming in once. Zoom in once more and they will turn to 2 overlapping polygons (nquery possible on the overlapping part then). I uploaded the files here: https://dl.ipgp.fr/60lwa2p Tested with the last mapserver version available from the ubuntugis stable repository: MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE And the URL I use to access it (replace [host] with your server's): http://[host]/cgi-bin/mapserv?map=/var/www/html/test/test.map&mode=browse&program=/cgi-bin/mapserv&map_web=TEMPLATE+test.html If you have any advice about a simple way to do the same as jbox did, i.e. nquerying by drawing a box, it would be great! Just which direction to take and I hope I can manage to do it then. Thanks! Arthur Le 10/01/2019 ? 20:23, Lime, Steve D (MNIT) a ?crit?: > > It?s certainly possible to execute native MapServer queries via > OpenLayers or Leaflet. I originally wrote jbox (and dbox, a pure > JavaScript implementation) but abandoned those long ago for OpenLayers > and Leaflet. I?d have to see your app to comment on appropriateness of > each. > > --Steve > > *From:*mapserver-users > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Arthur > Delorme > *Sent:* Thursday, January 10, 2019 8:44 AM > *To:* mapserver-users > *Subject:* Re: [mapserver-users] mapserver queries and java / javascript > > Thanks for your answer Yves. > > I didn't know about lealet, which seems interesting: I will probably > give it a try, for another application at least! And I know about > OpenLayers. But if I'm not wrong, this implies to develop a new > interface, where I would prefer to keep my MapServer app. > > Besides, do they allow to make queries like MapServer does? The way > MapServer does is perfect for my interface: select multiple > georeferenced objects and browse through the results to download the > ones of interest. > > Thanks again > Arthur > > Le 10/01/2019 ? 15:20, Yves Jacolin a ?crit?: > > Hello Arthur > > You can find such features in two main projects: > > * OpenLayers: http://www.openlayers.org/ > > * leaflet: https://leafletjs.com/ > > Regards, > > Y. > > Le?jeu. 10 janv. 2019 ??15:03, Arthur Delorme > a ?crit?: > > Hello, > > Years ago there was a Java code called JBox, which were very > nice to > make multiple queries by drawing a box on the map (which you > could also > use in browse mode to zoom). > > With the restrictions on Java in modern web browsers, I would > like to > replace JBox with something else, maybe some Javascript, but I > can't > find help about this by myself, so I come to you! > > I'm not super familiar with JS, even though I can write some > stuff. Do > you know about some examples / libraries to have this box tool? > > Thanks! > Arthur > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Yves Jacolin > > Training and support manager - Team Manager > Camptocamp > > Tel (France) : +33 4 58 48 20 43 > Tel (Switzerland) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > > email : yves.jacolin at camptocamp.com > > http://www.camptocamp.com > > > > -- > Arthur Delorme > Institut de Physique du Globe de Paris > Bureau 219 > 1 rue Jussieu 75238 Paris Cedex 05 > T?l. : 01 83 95 76 13 -- Arthur Delorme Institut de Physique du Globe de Paris Bureau 219 1 rue Jussieu 75238 Paris Cedex 05 T?l. : 01 83 95 76 13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From e.arapostathis at gmail.com Fri Jan 11 09:24:04 2019 From: e.arapostathis at gmail.com (e.arapostathis at gmail.com) Date: Fri, 11 Jan 2019 19:24:04 +0200 Subject: [mapserver-users] map file syntax for geojson file formats Message-ID: <032301d4a9d2$73e43930$5bacab90$@gmail.com> Hello, As few years have passed since the time that I was using mapserver constantly (before geojson file format started emerging) I would like to ask if there is any basic difference while creating the map files. It would be of great help if you could provide me an example in the following map file which loads a shape file. What differences must be done in order to load the file cemetery.geojson instead of the cemetery.shp? MAP INCLUDE '../../geomoose_globals.map' WEB METADATA 'ows_title' 'Cemeteries' INCLUDE '../../common_metadata.map' 'wfs_getfeature_formatlist' 'gml,geojson' END END DEBUG 5 LAYER NAME cemeteries GROUP cemeteries STATUS ON METADATA 'ows_title' 'cemeteries' 'ows_include_items' 'all' 'gml_include_items' 'all' END TYPE POINT DATA './cemeteries.shp' TOLERANCE 4 PROJECTION 'init=epsg:4326' END CLASS STYLE SYMBOL 'cemetery.png' SIZE 13 END END TEMPLATE 'dummy' END END ## end Map Thank you for your help. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Jan 11 12:24:51 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 11 Jan 2019 20:24:51 +0000 Subject: [mapserver-users] map file syntax for geojson file formats In-Reply-To: <032301d4a9d2$73e43930$5bacab90$@gmail.com> References: <032301d4a9d2$73e43930$5bacab90$@gmail.com> Message-ID: It's actually GDAL/OGR that provides GeoJson read support. So assuming you have a file called cemeteries.geojson it should be as simple as replacing: DATA './cemeteries.shp' with: CONNECTIONTYPE OGR CONNECTION './cemeteries.geojson' See https://mapserver.org/input/vector/ogr.html for additional information on OGR support. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of e.arapostathis at gmail.com Sent: Friday, January 11, 2019 11:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] map file syntax for geojson file formats Hello, As few years have passed since the time that I was using mapserver constantly (before geojson file format started emerging) I would like to ask if there is any basic difference while creating the map files. It would be of great help if you could provide me an example in the following map file which loads a shape file. What differences must be done in order to load the file cemetery.geojson instead of the cemetery.shp? MAP INCLUDE '../../geomoose_globals.map' WEB METADATA 'ows_title' 'Cemeteries' INCLUDE '../../common_metadata.map' 'wfs_getfeature_formatlist' 'gml,geojson' END END DEBUG 5 LAYER NAME cemeteries GROUP cemeteries STATUS ON METADATA 'ows_title' 'cemeteries' 'ows_include_items' 'all' 'gml_include_items' 'all' END TYPE POINT DATA './cemeteries.shp' TOLERANCE 4 PROJECTION 'init=epsg:4326' END CLASS STYLE SYMBOL 'cemetery.png' SIZE 13 END END TEMPLATE 'dummy' END END ## end Map Thank you for your help. [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif] Virus-free. www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From e.arapostathis at gmail.com Sat Jan 12 08:06:40 2019 From: e.arapostathis at gmail.com (e.arapostathis at gmail.com) Date: Sat, 12 Jan 2019 18:06:40 +0200 Subject: [mapserver-users] map file syntax for geojson file formats In-Reply-To: References: <032301d4a9d2$73e43930$5bacab90$@gmail.com> Message-ID: <000001d4aa90$ceedcad0$6cc96070$@gmail.com> Thank you very much for the quick and very clear and helpful responses. Could I ask a last question please? How could the same map file be transformed in order to create a WFS connection type? Is it something like: CONNECTIONTYPE WFS DATA './cemeteries.shp' ? From: Lime, Steve D (MNIT) Sent: Friday, January 11, 2019 10:25 PM To: e.arapostathis at gmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] map file syntax for geojson file formats It's actually GDAL/OGR that provides GeoJson read support. So assuming you have a file called cemeteries.geojson it should be as simple as replacing: DATA './cemeteries.shp' with: CONNECTIONTYPE OGR CONNECTION './cemeteries.geojson' See https://mapserver.org/input/vector/ogr.html for additional information on OGR support. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of e.arapostathis at gmail.com Sent: Friday, January 11, 2019 11:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] map file syntax for geojson file formats Hello, As few years have passed since the time that I was using mapserver constantly (before geojson file format started emerging) I would like to ask if there is any basic difference while creating the map files. It would be of great help if you could provide me an example in the following map file which loads a shape file. What differences must be done in order to load the file cemetery.geojson instead of the cemetery.shp? MAP INCLUDE '../../geomoose_globals.map' WEB METADATA 'ows_title' 'Cemeteries' INCLUDE '../../common_metadata.map' 'wfs_getfeature_formatlist' 'gml,geojson' END END DEBUG 5 LAYER NAME cemeteries GROUP cemeteries STATUS ON METADATA 'ows_title' 'cemeteries' 'ows_include_items' 'all' 'gml_include_items' 'all' END TYPE POINT DATA './cemeteries.shp' TOLERANCE 4 PROJECTION 'init=epsg:4326' END CLASS STYLE SYMBOL 'cemetery.png' SIZE 13 END END TEMPLATE 'dummy' END END ## end Map Thank you for your help. Virus-free. www.avast.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Sat Jan 12 09:31:26 2019 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Sat, 12 Jan 2019 17:31:26 +0000 Subject: [mapserver-users] map file syntax for geojson file formats In-Reply-To: <000001d4aa90$ceedcad0$6cc96070$@gmail.com> References: <032301d4a9d2$73e43930$5bacab90$@gmail.com> , <000001d4aa90$ceedcad0$6cc96070$@gmail.com> Message-ID: Depends if you?re talking about connecting to a WFS service or using MapServer to create a WFS service. See https://mapserver.org/input/vector/wfs.html for the former and https://mapserver.org/ogc/wfs_server.html for the latter... it?s a little more involved. ?Steve ________________________________ From: e.arapostathis at gmail.com Sent: Saturday, January 12, 2019 10:06:40 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] map file syntax for geojson file formats Thank you very much for the quick and very clear and helpful responses. Could I ask a last question please? How could the same map file be transformed in order to create a WFS connection type? Is it something like: CONNECTIONTYPE WFS DATA ?./cemeteries.shp? ? From: Lime, Steve D (MNIT) Sent: Friday, January 11, 2019 10:25 PM To: e.arapostathis at gmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] map file syntax for geojson file formats It?s actually GDAL/OGR that provides GeoJson read support. So assuming you have a file called cemeteries.geojson it should be as simple as replacing: DATA './cemeteries.shp? with: CONNECTIONTYPE OGR CONNECTION ?./cemeteries.geojson? See https://mapserver.org/input/vector/ogr.html for additional information on OGR support. --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of e.arapostathis at gmail.com Sent: Friday, January 11, 2019 11:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] map file syntax for geojson file formats Hello, As few years have passed since the time that I was using mapserver constantly (before geojson file format started emerging) I would like to ask if there is any basic difference while creating the map files. It would be of great help if you could provide me an example in the following map file which loads a shape file. What differences must be done in order to load the file cemetery.geojson instead of the cemetery.shp? MAP INCLUDE '../../geomoose_globals.map' WEB METADATA 'ows_title' 'Cemeteries' INCLUDE '../../common_metadata.map' 'wfs_getfeature_formatlist' 'gml,geojson' END END DEBUG 5 LAYER NAME cemeteries GROUP cemeteries STATUS ON METADATA 'ows_title' 'cemeteries' 'ows_include_items' 'all' 'gml_include_items' 'all' END TYPE POINT DATA './cemeteries.shp? TOLERANCE 4 PROJECTION 'init=epsg:4326' END CLASS STYLE SYMBOL 'cemetery.png' SIZE 13 END END TEMPLATE 'dummy' END END ## end Map Thank you for your help. [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif] Virus-free. www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruigis at protonmail.com Sun Jan 13 07:47:28 2019 From: ruigis at protonmail.com (Rui) Date: Sun, 13 Jan 2019 15:47:28 +0000 Subject: [mapserver-users] csharp_mapscript dotnet core on Linux Message-ID: Hey guys. I am trying to use mapscript from a dotnet core application. Works OK on Windows, but am not able to get csharp_mapscript compiled on Linux. Has anyone ever did this? From the recent efforts to have a cross platform dotnet this seems to be a good bet. A couple of things seem to show that this is not possible, for example the environment variables in the build.make generated are Windows format. Also the use of the command copy is a Windows command. the file build.make generated mapscript/csharp/mapscript.so: mapscript/csharp/CMakeFiles/mapscript.dir/link.txt @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/linusr/projs/mapserver/ms_src/mapserver/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking C shared module mapscript.so" cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/mapscript.dir/link.txt --verbose=$(VERBOSE) @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Compiling c# source files" cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && set MAPSCRIPT_SNK=/home/linusr/projs/mapserver/ms_src/mapserver\mapscript\csharp\mapscript.snk cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && set MAPSCRIPT_SNK=%MAPSCRIPT_SNK:/=\% cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && copy /Y "%MAPSCRIPT_SNK%" The file mapscriptCSHARP_wrap.c this file is using instructions only valid for Microsoft compilers. SWIGINTERN imageObj *mapObj_draw(struct mapObj *self){ //__try { return msDrawMap(self, 0); //} //__except(1 /*EXCEPTION_EXECUTE_HANDLER, catch every exception so it doesn't crash IIS*/) { // msSetError(15, "Unhandled exception in drawing map image 0x%08x", "msDrawMap()", GetExceptionCode()); //} } -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruigis at protonmail.com Sun Jan 13 12:46:22 2019 From: ruigis at protonmail.com (ruigis) Date: Sun, 13 Jan 2019 13:46:22 -0700 (MST) Subject: [mapserver-users] csharp_mapscript dotnet core on Linux In-Reply-To: References: Message-ID: <1547412382289-0.post@n6.nabble.com> I finally made it. After editing a couple of swig templates I managed to compile the mapscript_csharp and use it from dotnet core 2.2 Here is the commit with a bunch of changes: https://github.com/3x0dv5/mapserver/commit/61164981367899632006918b757c6a553cad1f02 Now the thing is that probably most of what I did was probably not needed, but maybe it is actually useful for the project. So if someone could take a quick look and see what could be used. My process to compile: 1. git clone of master 2. mkdir build 3. cd build 4. cmake -DCMAKE_INSTALL_PREFIX=/opt \ -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu:/usr/share/postgresql/10:/usr/local:/opt \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CURL=ON \ -DWITH_SOS=ON \ -DWITH_PHP=OFF \ -DWITH_PERL=OFF \ -DWITH_RUBY=OFF \ -DWITH_JAVA=OFF \ -DWITH_CSHARP=ON \ -DWITH_PYTHON=OFF \ -DWITH_SVGCAIRO=OFF \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_MSSQL2008=OFF \ ../ >../configure.out.txt 5. at this point there is still one small issue with the code generated by SWIG: the file: build/mapscript/csharp/mapscriptPINVOKE.cs has the following duplicated, I needed to delete one static mapscriptPINVOKE() { } 6. make all 7. open Jetbrains Rider and create a sample console project and add reference to the mapscript_csharp.dll also add the PATH where mapscript.so is or copy it to the /bin/Debug/netcoreapp2.2/ My sample output: proj1$ dotnet run MapServer version MapServer version 7.3-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Running on .NETCoreApp,Version=v2.2 Linux kernel: Unix 4.20.0.42000 -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jukka.rahkonen at maanmittauslaitos.fi Mon Jan 14 07:10:41 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 14 Jan 2019 15:10:41 +0000 Subject: [mapserver-users] Does Mapserver WCS 2.0.1 support time as a dimension? Message-ID: Hi, I can use tileindex with time succesfully with WMS but not with WCS. I have added metadata item "wcs_timeitem" both into my tileindex layer and the raster layer and my assumption is that DescribeCoverage should now include time as a dimension of the coverage but unfortunately that is not the case. I see still just this in DescribeCoverage I would like to see it this way so I could make a GetCoverage request with time subset http://localhost/cgi-bin/mapserv?map=ms_orthophoto_wcs.map&service=WCS&version=2.0.1&request=GetCoverage&coverageID=all_orthophotos&SUBSET=x(496000,496200)&SUBSET=y(7181000,7181200)&SUBSET=time("2005-01-01","2017-12-31")&format=image/tiff&geotiff:tiling=true The result I get is an error "WCS server error. Time values for subsets are not supported". By reading the documentation https://mapserver.org/ogc/wcs_server.html it is unclear to me if WCS 2.0.1 subsetting with time dimension has ever been implemented. Does anybody know? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Mon Jan 14 07:17:57 2019 From: even.rouault at spatialys.com (Even Rouault) Date: Mon, 14 Jan 2019 16:17:57 +0100 Subject: [mapserver-users] Does Mapserver WCS 2.0.1 support time as a dimension? In-Reply-To: References: Message-ID: <4541982.D3lkWj45xA@even-i700> Hi Jukka, no it doesn't for WCS 2. This is something I looked some time ago, and it appeared there's no obvious unique way to support time dimension in WCS 2.0. It could potentially be done through custom CRS with a time dimension by using straight WCS (that's what Rasdaman does), or using other extensions on top of WCS such as EO-WCS (like done by EOxServer or GeoServer) (above is from my memories. didn't check my notes...) Even > Hi, > > I can use tileindex with time succesfully with WMS but not with WCS. I have > added metadata item "wcs_timeitem" both into my tileindex layer and the > raster layer and my assumption is that DescribeCoverage should now include > time as a dimension of the coverage but unfortunately that is not the case. > I see still just this in DescribeCoverage > > axisLabels="x y" uomLabels="m m" srsDimension="2"> > > I would like to see it this way > srsName="http://www.opengis.net/def/crs/EPSG/0/3067" axisLabels="E N time" > uomLabels="m m s" srsDimension="2"> > > so I could make a GetCoverage request with time subset > http://localhost/cgi-bin/mapserv?map=ms_orthophoto_wcs.map&service=WCS&versi > on=2.0.1&request=GetCoverage&coverageID=all_orthophotos&SUBSET=x(496000,4962 > 00)&SUBSET=y(7181000,7181200)&SUBSET=time("2005-01-01","2017-12-31")&format= > image/tiff&geotiff:tiling=true > > The result I get is an error "WCS server error. Time values for subsets are > not supported". > > By reading the documentation https://mapserver.org/ogc/wcs_server.html it is > unclear to me if WCS 2.0.1 subsetting with time dimension has ever been > implemented. Does anybody know? > > -Jukka Rahkonen- -- Spatialys - Geospatial professional services http://www.spatialys.com From jukka.rahkonen at maanmittauslaitos.fi Mon Jan 14 07:35:21 2019 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 14 Jan 2019 15:35:21 +0000 Subject: [mapserver-users] Does Mapserver WCS 2.0.1 support time as a dimension? Message-ID: <05403480753048bf8a48f48a968bff0a@C119S212VM042.msvyvi.vaha.local> Hi Even, That's a pity. Geoserver supports time also without extensions by using an envelope with time period gml:EnvelopeWithTimePeriod srsName="http://www.opengis.net/def/crs/EPSG/0/3067" axisLabels="E N time" uomLabels="m m s" srsDimension="2"> https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?service=WCS&version=2.0.1&request=DescribeCoverage&coverageID=ortokuva__ortokuva I do not know if it is a right thing to do or if custom CRS as by Rasdaman is better http://ows.rasdaman.org/rasdaman/ows?&SERVICE=WCS&VERSION=2.0.1&REQUEST=DescribeCoverage&COVERAGEID=Temperature4D Anyway, it would be really nice to be able to make WCS 2.0.1 GetCoverage requests with time subsets someday. Potential developers may feel free to contact me. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: Even Rouault [mailto:even.rouault at spatialys.com] L?hetetty: 14. tammikuuta 2019 17:18 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] Does Mapserver WCS 2.0.1 support time as a dimension? Hi Jukka, no it doesn't for WCS 2. This is something I looked some time ago, and it appeared there's no obvious unique way to support time dimension in WCS 2.0. It could potentially be done through custom CRS with a time dimension by using straight WCS (that's what Rasdaman does), or using other extensions on top of WCS such as EO-WCS (like done by EOxServer or GeoServer) (above is from my memories. didn't check my notes...) Even > Hi, > > I can use tileindex with time succesfully with WMS but not with WCS. I > have added metadata item "wcs_timeitem" both into my tileindex layer > and the raster layer and my assumption is that DescribeCoverage should > now include time as a dimension of the coverage but unfortunately that is not the case. > I see still just this in DescribeCoverage > > axisLabels="x y" uomLabels="m m" srsDimension="2"> > > I would like to see it this way > srsName="http://www.opengis.net/def/crs/EPSG/0/3067" axisLabels="E N time" > uomLabels="m m s" srsDimension="2"> > > so I could make a GetCoverage request with time subset > http://localhost/cgi-bin/mapserv?map=ms_orthophoto_wcs.map&service=WCS > &versi > on=2.0.1&request=GetCoverage&coverageID=all_orthophotos&SUBSET=x(49600 > 0,4962 > 00)&SUBSET=y(7181000,7181200)&SUBSET=time("2005-01-01","2017-12-31")&f > ormat= > image/tiff&geotiff:tiling=true > > The result I get is an error "WCS server error. Time values for > subsets are not supported". > > By reading the documentation https://mapserver.org/ogc/wcs_server.html > it is unclear to me if WCS 2.0.1 subsetting with time dimension has > ever been implemented. Does anybody know? > > -Jukka Rahkonen- -- Spatialys - Geospatial professional services http://www.spatialys.com From lisa at renci.org Tue Jan 22 15:03:51 2019 From: lisa at renci.org (lisa) Date: Tue, 22 Jan 2019 16:03:51 -0700 (MST) Subject: [mapserver-users] PHP Mapscript rendering incorrect/old? images Message-ID: <1548198231187-0.post@n6.nabble.com> Hello - I have been trying to solve an this issue for about a week now and I am hoping someone can give me some ideas on how to solve it. Here is the setup: Centos 6 Apache 2.2.15 PHP 5.3.3 Mapserver 6.4.3 I have an old website that serves up weather related data. A crontab process downloads radar images from the national weather service and saves a sliding window of 3 hrs worth of them them as gifs (ex: n0r_t_m000.gif for the most current radar image). These gifs are defined as data sources for layers in a .map file like this: LAYER NAME 'Radar_000' TYPE RASTER STATUS ON DATA ../../../cache/radar/n0r/n0r_t_m000.gif OFFSITE 255 255 255 END A php script reads this map file and changes it, to turn on the layers it wants to display: $map = ms_newMapObj("../../mapserver/radar/radar.map"); $radar_layer = $map->getLayerByName("Radar_000"); $radar_layer->set("status", MS_ON); It uses mapObj draw() to create an imageObj and then saveWebImage() to store that image in a temp file, like this: $image = $map->draw(); $image_name = $image->saveWebImage(); The problem is that the temp file that is created IS NOT ALWAYS the correct image, as specified as the source data for that layer. It is sometimes an older version of the gif. I have double and triple checked that the source data is correct. I also printed out the map file, from the mapObj in the php script and used shp2img to generate an image, and that image IS ALWAYS CORRECT. I have also turned on Mapserver level 5 debugging, and CPL_DEBUG, but that did not help either. Does anyone know what might be causing this or where else I can look to debug the problem? I can provide more info if needed. Thanks very much! - lisa -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jmckenna at gatewaygeomatics.com Wed Jan 23 10:41:24 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 Jan 2019 14:41:24 -0400 Subject: [mapserver-users] PHP Mapscript rendering incorrect/old? images In-Reply-To: <1548198231187-0.post@n6.nabble.com> References: <1548198231187-0.post@n6.nabble.com> Message-ID: <9fb3db8c-6978-8167-3def-c07d3fe63972@gatewaygeomatics.com> Hi Lisa, I have had problems like this before. Here is what I did: - added ob_clean() near end of my PHP scripts to flush out buffer - saved temp image with rand() in filename, such as: $file = $oImage->save("ttt".rand().".png", $oMap); I know it's not fancy, but it has worked for me. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2019-01-22 7:03 PM, lisa wrote: > Hello - I have been trying to solve an this issue for about a week now and I > am hoping someone can give me some ideas on how to solve it. > Here is the setup: > Centos 6 > Apache 2.2.15 > PHP 5.3.3 > Mapserver 6.4.3 > > I have an old website that serves up weather related data. A crontab process > downloads radar images from the national weather service and saves a sliding > window of 3 hrs worth of them them as gifs (ex: n0r_t_m000.gif for the most > current radar image). These gifs are defined as data sources for layers in a > .map file like this: > LAYER > NAME 'Radar_000' > TYPE RASTER > STATUS ON > DATA ../../../cache/radar/n0r/n0r_t_m000.gif > OFFSITE 255 255 255 > END > > A php script reads this map file and changes it, to turn on the layers it > wants to display: > $map = ms_newMapObj("../../mapserver/radar/radar.map"); > $radar_layer = $map->getLayerByName("Radar_000"); > $radar_layer->set("status", MS_ON); > > It uses mapObj draw() to create an imageObj and then saveWebImage() to store > that image in a temp file, like this: > $image = $map->draw(); > $image_name = $image->saveWebImage(); > > The problem is that the temp file that is created IS NOT ALWAYS the correct > image, as specified as the source data for that layer. It is sometimes an > older version of the gif. I have double and triple checked that the source > data is correct. I also printed out the map file, from the mapObj in the php > script and used shp2img to generate an image, and that image IS ALWAYS > CORRECT. I have also turned on Mapserver level 5 debugging, and CPL_DEBUG, > but that did not help either. > > Does anyone know what might be causing this or where else I can look to > debug the problem? > I can provide more info if needed. > > Thanks very much! - lisa > > From e.arapostathis at gmail.com Wed Jan 23 11:19:25 2019 From: e.arapostathis at gmail.com (Stathis G. Arapostathis) Date: Wed, 23 Jan 2019 21:19:25 +0200 Subject: [mapserver-users] Map Server configuration in Ubuntu 18.04lts Message-ID: <22284e69-7e96-4f7b-8245-eb8e7118f203@gmail.com> Hello all, I decided to change operating system and installed Ubuntu 18.04lts in an old computer I have. I successfully installed apache with a sudo command, I can see that is running by typing localhost in a browser. I also installed cgi-mapserver package with a sudo command however I am not sure that it is somehow connected to apache. Is there any certain configuration that needs to be done for having a mapserv url like in Windows when using the ms4w package? (Something like http://localhost/cgi-bin/mapserv ?) Thank you ????? ??? BlueMail ??? Android ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Wed Jan 23 12:09:16 2019 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Wed, 23 Jan 2019 20:09:16 +0000 (UTC) Subject: [mapserver-users] Map Server configuration in Ubuntu 18.04lts In-Reply-To: <22284e69-7e96-4f7b-8245-eb8e7118f203@gmail.com> References: <22284e69-7e96-4f7b-8245-eb8e7118f203@gmail.com> Message-ID: <977377599.4432064.1548274156423@mail.yahoo.com> HI Stathis,? ?I think you need to create a symlink between the installed mapserv and the the directory that points to cgi-bin in your webserver. Something like:??ln -s /usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv. Regarding the installation you probably installed version 7.0.4 while the developers team have announced the release of 7.2 which supports php- mapscript for? php7.* now, which is cool. I haven't tried it in my machine yet. Stefanos ???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hello all, I decided to change operating system and installed Ubuntu 18.04lts in an old computer I have. I successfully installed apache with a sudo command, I can see that is running by typing localhost in a browser. I also installed cgi-mapserver package with a sudo command however I am not sure that it is somehow connected to apache. Is there any certain configuration that needs to be done for having a mapserv url like in Windows when using the ms4w package? (Something like http://localhost/cgi-bin/mapserv ?) Thank you ???? ??? BlueMail ??? Android _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From e.arapostathis at gmail.com Wed Jan 23 14:46:33 2019 From: e.arapostathis at gmail.com (Stathis G. Arapostathis) Date: Thu, 24 Jan 2019 00:46:33 +0200 Subject: [mapserver-users] Map Server configuration in Ubuntu 18.04lts In-Reply-To: <977377599.4432064.1548274156423@mail.yahoo.com> References: <22284e69-7e96-4f7b-8245-eb8e7118f203@gmail.com> <977377599.4432064.1548274156423@mail.yahoo.com> Message-ID: <137bdada-e304-4c33-a44f-0907e8c247e4@gmail.com> Hi Stefanos, I ran that command the link existed already. I deleted it and re-executed the command so the link is re created. But still when i type http://localhost/cgi-bin/mapserv I am receiving an error message that the url/mapserv was not found on this server Any ideas or knowledge on what could be the problem? Thank you Stathis? ????? ??? BlueMail ??? Android ? ???? 23 ??? 2019, 22:09 ,??? ??? 22:09 ,Stefanos Anastasiou ??????: >HI Stathis,? ?I think you need to create a symlink between the >installed mapserv and the the directory that points to cgi-bin in your >webserver. Something like:??ln -s /usr/local/bin/mapserv >/usr/lib/cgi-bin/mapserv. >Regarding the installation you probably installed version 7.0.4 while >the developers team have announced the release of 7.2 which supports >php- mapscript for? php7.* now, which is cool. I haven't tried it in my >machine yet. >Stefanos >???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis >G. Arapostathis ??????: > > Hello all, > >I decided to change operating system and installed Ubuntu 18.04lts in >an old computer I have. > >I successfully installed apache with a sudo command, I can see that is >running by typing localhost in a browser. > >I also installed cgi-mapserver package with a sudo command however I am >not sure that it is somehow connected to apache. Is there any certain >configuration that needs to be done for having a mapserv url like in >Windows when using the ms4w package? (Something like >http://localhost/cgi-bin/mapserv ?) > >Thank you > >???? ??? BlueMail ??? Android >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Thu Jan 24 01:08:39 2019 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Thu, 24 Jan 2019 09:08:39 +0000 (UTC) Subject: [mapserver-users] Map Server configuration in Ubuntu 18.04lts In-Reply-To: <137bdada-e304-4c33-a44f-0907e8c247e4@gmail.com> References: <22284e69-7e96-4f7b-8245-eb8e7118f203@gmail.com> <977377599.4432064.1548274156423@mail.yahoo.com> <137bdada-e304-4c33-a44f-0907e8c247e4@gmail.com> Message-ID: <2004320883.290836.1548320919871@mail.yahoo.com> Hi Stathis,? ?? ? ?please try mapserv -v at your terminal.? Also: you need to copy your installed mapserv to cgi-bin directory:? cp mapserv /usr/lib/cgi-bin/mapservThen I think you need to create a Directory block in your apache config file that points to /usr/lib/cgi-binand then symlink again. Try to restart you apache: sudo service apache2 restart? Stefanos ???? ??????, 24 ?????????? 2019, 12:46:37 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hi Stefanos, I ran that command the link existed already. I deleted it and re-executed the command so the link is re created. But still when i type http://localhost/cgi-bin/mapserv I am receiving an error message that the url/mapserv was not found on this server Any ideas or knowledge on what could be the problem? Thank you Stathis? ???? ??? BlueMail ??? Android ???? 23 ??? 2019 ,??? ??? 22:09 ,Stefanos Anastasiou ??????: HI Stathis, ? ?I think you need to create a symlink between the installed mapserv and the the directory that points to cgi-bin in your webserver. Something like:?? ln -s /usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv. Regarding the installation you probably installed version 7.0.4 while the developers team have announced the release of 7.2 which supports php- mapscript for? php7.* now, which is cool. I haven't tried it in my machine yet. Stefanos ???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hello all, I decided to change operating system and installed Ubuntu 18.04lts in an old computer I have. I successfully installed apache with a sudo command, I can see that is running by typing localhost in a browser. I also installed cgi-mapserver package with a sudo command however I am not sure that it is somehow connected to apache. Is there any certain configuration that needs to be done for having a mapserv url like in Windows when using the ms4w package? (Something like http://localhost/cgi-bin/mapserv ?) Thank you ???? ??? BlueMail ??? Android _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpass at bgs.ac.uk Thu Jan 24 01:55:45 2019 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Thu, 24 Jan 2019 09:55:45 +0000 Subject: [mapserver-users] Map Server configuration in Ubuntu 18.04lts Message-ID: It's a bit out of date now, but as your reference is MS4W you could look at the old OneGeology cookbook section below http://onegeology.org/wmsCookbook/4_4_2_1.html James -----Original Message----- From: mapserver-users On Behalf Of mapserver-users-request at lists.osgeo.org Sent: 24 January 2019 09:09 To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 132, Issue 11 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Map Server configuration in Ubuntu 18.04lts (Stefanos Anastasiou) 2. Re: Map Server configuration in Ubuntu 18.04lts (Stathis G. Arapostathis) 3. Re: Map Server configuration in Ubuntu 18.04lts (Stefanos Anastasiou) ---------------------------------------------------------------------- Message: 1 Date: Wed, 23 Jan 2019 20:09:16 +0000 (UTC) From: Stefanos Anastasiou To: mapserver-users at lists.osgeo.org, "Stathis G. Arapostathis" Subject: Re: [mapserver-users] Map Server configuration in Ubuntu 18.04lts Message-ID: <977377599.4432064.1548274156423 at mail.yahoo.com> Content-Type: text/plain; charset="utf-8" HI Stathis, I think you need to create a symlink between the installed mapserv and the the directory that points to cgi-bin in your webserver. Something like: ln -s /usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv. Regarding the installation you probably installed version 7.0.4 while the developers team have announced the release of 7.2 which supports php- mapscript for php7.* now, which is cool. I haven't tried it in my machine yet. Stefanos ???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hello all, I decided to change operating system and installed Ubuntu 18.04lts in an old computer I have. I successfully installed apache with a sudo command, I can see that is running by typing localhost in a browser. I also installed cgi-mapserver package with a sudo command however I am not sure that it is somehow connected to apache. Is there any certain configuration that needs to be done for having a mapserv url like in Windows when using the ms4w package? (Something like http://localhost/cgi-bin/mapserv ?) Thank you ???? ??? BlueMail ??? Android _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Thu, 24 Jan 2019 00:46:33 +0200 From: "Stathis G. Arapostathis" To: Stefanos Anastasiou Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Map Server configuration in Ubuntu 18.04lts Message-ID: <137bdada-e304-4c33-a44f-0907e8c247e4 at gmail.com> Content-Type: text/plain; charset="utf-8" Hi Stefanos, I ran that command the link existed already. I deleted it and re-executed the command so the link is re created. But still when i type http://localhost/cgi-bin/mapserv I am receiving an error message that the url/mapserv was not found on this server Any ideas or knowledge on what could be the problem? Thank you Stathis ????? ??? BlueMail ??? Android ? ???? 23 ??? 2019, 22:09 ,??? ??? 22:09 ,Stefanos Anastasiou ??????: >HI Stathis, I think you need to create a symlink between the >installed mapserv and the the directory that points to cgi-bin in your >webserver. Something like: ln -s /usr/local/bin/mapserv >/usr/lib/cgi-bin/mapserv. >Regarding the installation you probably installed version 7.0.4 while >the developers team have announced the release of 7.2 which supports >php- mapscript for php7.* now, which is cool. I haven't tried it in my >machine yet. >Stefanos >???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis >G. Arapostathis ??????: > > Hello all, > >I decided to change operating system and installed Ubuntu 18.04lts in >an old computer I have. > >I successfully installed apache with a sudo command, I can see that is >running by typing localhost in a browser. > >I also installed cgi-mapserver package with a sudo command however I am >not sure that it is somehow connected to apache. Is there any certain >configuration that needs to be done for having a mapserv url like in >Windows when using the ms4w package? (Something like >http://localhost/cgi-bin/mapserv ?) > >Thank you > >???? ??? BlueMail ??? Android >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Thu, 24 Jan 2019 09:08:39 +0000 (UTC) From: Stefanos Anastasiou To: "Stathis G. Arapostathis" Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Map Server configuration in Ubuntu 18.04lts Message-ID: <2004320883.290836.1548320919871 at mail.yahoo.com> Content-Type: text/plain; charset="utf-8" Hi Stathis, please try mapserv -v at your terminal. Also: you need to copy your installed mapserv to cgi-bin directory: cp mapserv /usr/lib/cgi-bin/mapservThen I think you need to create a Directory block in your apache config file that points to /usr/lib/cgi-binand then symlink again. Try to restart you apache: sudo service apache2 restart Stefanos ???? ??????, 24 ?????????? 2019, 12:46:37 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hi Stefanos, I ran that command the link existed already. I deleted it and re-executed the command so the link is re created. But still when i type http://localhost/cgi-bin/mapserv I am receiving an error message that the url/mapserv was not found on this server Any ideas or knowledge on what could be the problem? Thank you Stathis ???? ??? BlueMail ??? Android ???? 23 ??? 2019 ,??? ??? 22:09 ,Stefanos Anastasiou ??????: HI Stathis, I think you need to create a symlink between the installed mapserv and the the directory that points to cgi-bin in your webserver. Something like: ln -s /usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv. Regarding the installation you probably installed version 7.0.4 while the developers team have announced the release of 7.2 which supports php- mapscript for php7.* now, which is cool. I haven't tried it in my machine yet. Stefanos ???? ???????, 23 ?????????? 2019, 9:19:45 ?.?. EET, ? ??????? Stathis G. Arapostathis ??????: Hello all, I decided to change operating system and installed Ubuntu 18.04lts in an old computer I have. I successfully installed apache with a sudo command, I can see that is running by typing localhost in a browser. I also installed cgi-mapserver package with a sudo command however I am not sure that it is somehow connected to apache. Is there any certain configuration that needs to be done for having a mapserv url like in Windows when using the ms4w package? (Something like http://localhost/cgi-bin/mapserv ?) Thank you ???? ??? BlueMail ??? Android _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Subject: Digest Footer _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ End of mapserver-users Digest, Vol 132, Issue 11 ************************************************ This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UK Research and Innovation does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. Opinions, conclusions or other information in this message and attachments that are not related directly to UK Research and Innovation business are solely those of the author and do not represent the views of UK Research and Innovation. From lisa at renci.org Thu Jan 24 07:53:26 2019 From: lisa at renci.org (lisa) Date: Thu, 24 Jan 2019 08:53:26 -0700 (MST) Subject: [mapserver-users] PHP Mapscript rendering incorrect/old? images In-Reply-To: <9fb3db8c-6978-8167-3def-c07d3fe63972@gatewaygeomatics.com> References: <1548198231187-0.post@n6.nabble.com> <9fb3db8c-6978-8167-3def-c07d3fe63972@gatewaygeomatics.com> Message-ID: <1548345206890-0.post@n6.nabble.com> Thanks Jeff! I tried it out but no joy. It works at first, but after a while, I occasionally get the older images again. ? -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jmckenna at gatewaygeomatics.com Thu Jan 24 08:04:43 2019 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 24 Jan 2019 12:04:43 -0400 Subject: [mapserver-users] PHP Mapscript rendering incorrect/old? images In-Reply-To: <1548345206890-0.post@n6.nabble.com> References: <1548198231187-0.post@n6.nabble.com> <9fb3db8c-6978-8167-3def-c07d3fe63972@gatewaygeomatics.com> <1548345206890-0.post@n6.nabble.com> Message-ID: <675c327c-9249-653f-6436-09c25808da7d@gatewaygeomatics.com> It fails by your PHP script by commandline, and also in your browser? That can help narrow down the issue I think (calling 'php myfile.php' at commandline, and also in browser). I have hit this before. You can look more into that ob_clean() and its related flush commands (there are several I believe, that your script can start/end, etc). These days the browser caching is so aggressive that this does happen to me. -jeff On 2019-01-24 11:53 AM, lisa wrote: > Thanks Jeff! > > I tried it out but no joy. > It works at first, but after a while, I occasionally get the older images > again. > > ? > > -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From mapserver at geoworld.de Thu Jan 24 10:21:11 2019 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 24 Jan 2019 19:21:11 +0100 Subject: [mapserver-users] PHP Mapscript styleObj implementation broken? Message-ID: <70e89b4ab556477fb0430b099414e9d75a1a8f38.camel@geoworld.de> Hello, I have huge difficulties to use the styleObj in PHP MapScript (Mapserver 7.3-dev, PHP 7.1). I am struggling with the setPattern() method and the linecap property. If I am using $styleObj-> setPattern( array( 8.0, 12.0) ); this gets translated to the following MapFile syntax PATTERN 4620693217682128896.00 4622945017495814144.00 END The attempt to set the linecap property $styleObj-> set('linecap', 'butt' ); results in LINECAP NONE Specifying it as integer completely removes the property. Can someone please advice if these are bugs or if I am doing something wrong as this is not documented? Thank you very much Nicol From joerg.thomsen at wheregroup.com Fri Jan 25 00:58:44 2019 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Fri, 25 Jan 2019 09:58:44 +0100 Subject: [mapserver-users] reserved words In-Reply-To: References: Message-ID: <6a6f4526-2f58-0ad2-c320-fd28952550c3@wheregroup.com> Hello Sebastiano, yes: https://mapserver.org/mapfile/template.html#file-reference but: the keywords only should be replaced, if you use the brackets [] and I don't know, if it is possible to escape the brackets. Regards, J?rg Am 25.01.19 um 09:34 schrieb Sebastiano Laini: > Hello, > > ? > > Is there some reserved words for the xml template that you can?t use as > a field? > > ? > > Yesterday in a XML template to have back data from the database there > was a field called LEGEND, and that instead of giving back the column > LEGEND from the database was populate with a linux path followed by an > image that doesn?t exist. > > ? > > I?m using Mapserver 6 with a .map file for the data layer and it calls > an xml template to give back the info from the database. > > ? > > Regards, > > ? > > Sebastiano Laini > > Web Developer > > Buchanan Computing > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- **************************************************************************** FOSS Academy Kompaktkurs "Winterschule 2019" Grundwissen zum Aufbau von Geodateninfrastrukturen mit Open-Source-Software https://foss-academy.com/kompaktkurse **************************************************************************** J?rg Thomsen WhereGroup GmbH & Co. KG Gillweg 3 14193 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 89 09 53 21 joerg.thomsen at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From lisa at renci.org Fri Jan 25 09:26:38 2019 From: lisa at renci.org (lisa) Date: Fri, 25 Jan 2019 10:26:38 -0700 (MST) Subject: [mapserver-users] PHP Mapscript rendering incorrect/old? images In-Reply-To: <675c327c-9249-653f-6436-09c25808da7d@gatewaygeomatics.com> References: <1548198231187-0.post@n6.nabble.com> <9fb3db8c-6978-8167-3def-c07d3fe63972@gatewaygeomatics.com> <1548345206890-0.post@n6.nabble.com> <675c327c-9249-653f-6436-09c25808da7d@gatewaygeomatics.com> Message-ID: <1548437198345-0.post@n6.nabble.com> I have only tried using shp2img to test my map file. I will try running from the PHP command line as well. One thing that I have noticed is that restarting httpd fixes the problem for a little while, and then, a while later, the problem crops up again. So I think it is a httpd/php/mapserver combination problem. I also tried installing apc and disabling caching 'apc.cache_by_default => Off => Off' - which did not solve the issue. Lisa -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From mapserver at geoworld.de Fri Jan 25 09:17:59 2019 From: mapserver at geoworld.de (Nicol Hermann) Date: Fri, 25 Jan 2019 18:17:59 +0100 Subject: [mapserver-users] PHP Mapscript styleObj implementation broken? In-Reply-To: <70e89b4ab556477fb0430b099414e9d75a1a8f38.camel@geoworld.de> References: <70e89b4ab556477fb0430b099414e9d75a1a8f38.camel@geoworld.de> Message-ID: <99d1a270805a9a70ace3d688a21f4dac097254bd.camel@geoworld.de> Hello, after looking closer into the source code I was able to resolve the issue of setting the 'linecap' property. The property expects constants. It works if you are specifying one of them: MS_CJC_NONE (0) MS_CJC_BEVEL (1) MS_CJC_BUTT (2) MS_CJC_MITER (3) MS_CJC_ROUND (4) MS_CJC_SQUARE (5) MS_CJC_TRIANGLE (6) MS_CJC_DEFAULT_JOIN_MAXSIZE However I am still not able to figure out what's going on with the setPattern() method. Any hints are greatly appreciated. Thanks Nicol Am Donnerstag, den 24.01.2019, 19:21 +0100 schrieb Nicol Hermann: > Hello, > > I have huge difficulties to use the styleObj in PHP MapScript > (Mapserver 7.3-dev, PHP 7.1). > I am struggling with the setPattern() method and the linecap > property. > If I am using > $styleObj-> setPattern( array( 8.0, 12.0) ); > this gets translated to the following MapFile syntax > > PATTERN > 4620693217682128896.00 4622945017495814144.00 > END > > The attempt to set the linecap property > $styleObj-> set('linecap', 'butt' ); > results in > LINECAP NONE > Specifying it as integer completely removes the property. > > Can someone please advice if these are bugs or if I am doing > something > wrong as this is not documented? > > Thank you very much > Nicol > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From sethg at geographika.co.uk Fri Jan 25 10:18:25 2019 From: sethg at geographika.co.uk (Seth G) Date: Fri, 25 Jan 2019 19:18:25 +0100 Subject: [mapserver-users] PHP Mapscript styleObj implementation broken? In-Reply-To: <99d1a270805a9a70ace3d688a21f4dac097254bd.camel@geoworld.de> References: <70e89b4ab556477fb0430b099414e9d75a1a8f38.camel@geoworld.de> <99d1a270805a9a70ace3d688a21f4dac097254bd.camel@geoworld.de> Message-ID: <1548440305.3122220.1643578504.091B7C38@webmail.messagingengine.com> Hi Nicol, Not sure if this helps but in the Python MapScript bindings the API changed at some point, and now uses: symbol.pattern = [0, 1] https://github.com/mapserver/mapserver/blob/418e15cda5109e3a47c6691567e3e3e62e964187/mapscript/python/tests/cases/symbol_test.py#L135 This however is specific to Python: https://github.com/mapserver/mapserver/blob/418e15cda5109e3a47c6691567e3e3e62e964187/mapscript/python/pyextend.i#L231 I'm guessing you are using PHP MapScript rather than the new SWIG generated SWIG MapScript bindings? Seth -- web:http://geographika.co.uk twitter: @geographika On Fri, Jan 25, 2019, at 6:17 PM, Nicol Hermann wrote: > Hello, > > after looking closer into the source code I was able to resolve the > issue of setting the 'linecap' property. The property expects > constants. It works if you are specifying one of them: > > MS_CJC_NONE (0) > MS_CJC_BEVEL (1) > MS_CJC_BUTT (2) > MS_CJC_MITER (3) > MS_CJC_ROUND (4) > MS_CJC_SQUARE (5) > MS_CJC_TRIANGLE (6) > MS_CJC_DEFAULT_JOIN_MAXSIZE > > However I am still not able to figure out what's going on with the > setPattern() method. > > Any hints are greatly appreciated. > > Thanks > Nicol > > > Am Donnerstag, den 24.01.2019, 19:21 +0100 schrieb Nicol Hermann: > > Hello, > > > > I have huge difficulties to use the styleObj in PHP MapScript > > (Mapserver 7.3-dev, PHP 7.1). > > I am struggling with the setPattern() method and the linecap > > property. > > If I am using > > $styleObj-> setPattern( array( 8.0, 12.0) ); > > this gets translated to the following MapFile syntax > > > > PATTERN > > 4620693217682128896.00 4622945017495814144.00 > > END > > > > The attempt to set the linecap property > > $styleObj-> set('linecap', 'butt' ); > > results in > > LINECAP NONE > > Specifying it as integer completely removes the property. > > > > Can someone please advice if these are bugs or if I am doing > > something > > wrong as this is not documented? > > > > Thank you very much > > Nicol > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at geoworld.de Fri Jan 25 10:36:35 2019 From: mapserver at geoworld.de (Nicol Hermann) Date: Fri, 25 Jan 2019 19:36:35 +0100 Subject: [mapserver-users] PHP Mapscript styleObj implementation broken? In-Reply-To: <1548440305.3122220.1643578504.091B7C38@webmail.messagingengine.com> References: <70e89b4ab556477fb0430b099414e9d75a1a8f38.camel@geoworld.de> <99d1a270805a9a70ace3d688a21f4dac097254bd.camel@geoworld.de> <1548440305.3122220.1643578504.091B7C38@webmail.messagingengine.com> Message-ID: <1e84c1ae4d7ea7c7ba008b9d3627328c21f5d705.camel@geoworld.de> Hello Seth, you are right. I am using PHP MapScript rather than then SWIG bindings. Actually the question where the setPattern method belongs to was my first question to the dev List. http://osgeo-org.1560.x6.nabble.com/setPattern-in-symbolObj-in-PHP-MapScript-td5389111.html As it is at least somehow working in conjunction with the styleObj it believe it belongs to this object. The examples in the Cartographical Symbol page also refers to the styleObj. https://mapserver.org/mapfile/symbology/construction.html Thanks Nicol Am Freitag, den 25.01.2019, 19:18 +0100 schrieb Seth G: > Hi Nicol, > > Not sure if this helps but in the Python MapScript bindings the API > changed at some point, and now uses: > > symbol.pattern = [0, 1] > > https://github.com/mapserver/mapserver/blob/418e15cda5109e3a47c6691567e3e3e62e964187/mapscript/python/tests/cases/symbol_test.py#L135 > > This however is specific to Python: > > https://github.com/mapserver/mapserver/blob/418e15cda5109e3a47c6691567e3e3e62e964187/mapscript/python/pyextend.i#L231 > > I'm guessing you are using PHP MapScript rather than the new SWIG > generated SWIG MapScript bindings? > > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > On Fri, Jan 25, 2019, at 6:17 PM, Nicol Hermann wrote: > > Hello, > > > > after looking closer into the source code I was able to resolve the > > issue of setting the 'linecap' property. The property expects > > constants. It works if you are specifying one of them: > > > > MS_CJC_NONE (0) > > MS_CJC_BEVEL (1) > > MS_CJC_BUTT (2) > > MS_CJC_MITER (3) > > MS_CJC_ROUND (4) > > MS_CJC_SQUARE (5) > > MS_CJC_TRIANGLE (6) > > MS_CJC_DEFAULT_JOIN_MAXSIZE > > > > However I am still not able to figure out what's going on with the > > setPattern() method. > > > > Any hints are greatly appreciated. > > > > Thanks > > Nicol > > > > > > Am Donnerstag, den 24.01.2019, 19:21 +0100 schrieb Nicol Hermann: > > > Hello, > > > > > > I have huge difficulties to use the styleObj in PHP MapScript > > > (Mapserver 7.3-dev, PHP 7.1). > > > I am struggling with the setPattern() method and the linecap > > > property. > > > If I am using > > > $styleObj-> setPattern( array( 8.0, 12.0) ); > > > this gets translated to the following MapFile syntax > > > > > > PATTERN > > > 4620693217682128896.00 4622945017495814144.00 > > > END > > > > > > The attempt to set the linecap property > > > $styleObj-> set('linecap', 'butt' ); > > > results in > > > LINECAP NONE > > > Specifying it as integer completely removes the property. > > > > > > Can someone please advice if these are bugs or if I am doing > > > something > > > wrong as this is not documented? > > > > > > Thank you very much > > > Nicol > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users From stephenwoodbridge37 at gmail.com Sun Jan 27 17:08:38 2019 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Sun, 27 Jan 2019 20:08:38 -0500 Subject: [mapserver-users] mamcache vertical assembly Message-ID: <3e8273e8-9ef3-79f5-d089-2a3edef3a77e@gmail.com> Hi, The mapcache docs has a page for vertical assembly but it is blank :( I have 7 layers in mapcache and I would like to vertically assemble these into a composite layer. In the past I have been loading all 7 in openlayers but it makes more sense to just composite them into a new layer. There are some scale limits that apply to the various layers. Does anyone have some info on how to do this in mapcache directly rather than create a mapfile and compositing them in mapserver and then making that a new layer in mapcache. Thanks, ? -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From parsispresswala at gmail.com Mon Jan 28 20:25:21 2019 From: parsispresswala at gmail.com (parsis presswala) Date: Tue, 29 Jan 2019 09:55:21 +0530 Subject: [mapserver-users] How much memory is required to seed tiles? Message-ID: Hello, I am running mapserver on 61 GB RAM and cpu of 8 core. When I am trying to seed the tiles it is showing me following error. I am seeding tiles with following command: mapcache_seed -c /etc/apache2/mapcache.xml -t asia-tileset -g grid2 -n 4 -z 3,3 failed to seed tile z3,x0,y0: curl failed to request url http://13.126.201.198/cgi-bin/mapserv?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20428865.584820%2c-20428865.584820%2c20428866.270399%2c20428866.270399&WIDTH=2088&HEIGHT=2088&FORMAT=image%2fpng&SRS=EPSG%3a3857&LAYERS=osm_new_admin%2cosm_new_adminocean%2cosm_new_landusages%2cosm_new_water%2cbuildings%2caeroway%2cosm_new_waterways%2cosm_new_railways%2cplanet_osm_roads%2cplanet_osm_roads_line%2cosm_new_railways1%2ccountry_line%2ccountry_line_claim%2cstate_line%2cmotorway_label%2cmainroad_label%2cminorroad_label%2cosm_new_railways_symbol%2cplace-country%2cplace-state%2cplace-city%2cplace-town%2cplace-Suburb%2cplace-village%2cplace-locality%2carea_label%2caerodrome_label%2cwaterway_label%2cwaterarea_label%2cpoi_pointlabel&MAP=%2fhome%2fubuntu%2fworldmap%2fasiamap.map : The requested URL returned error: 504 Gateway Timeout aborting seed as 100.0% of the last 1000 requests failed I was seeding tiles successfully when I have only two continents (asia + central america) in database.But as I insert other continents in database I am getting error. Here is my mapfile. http://13.126.201.198/asiamap.map I have used MAXSCALEDENOM and MINSCALEDENOM in every layer. Here is my mapfile. What should I change in it? I haven't use https://github.com/mapserver/basemaps , I have created on my own. Can I generate tiles with same configurations? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: