From mathias.cunault at inrap.fr Mon Aug 1 02:55:24 2016 From: mathias.cunault at inrap.fr (Leehan) Date: Mon, 1 Aug 2016 02:55:24 -0700 (PDT) Subject: [mapserver-users] mapserver, qgis, legend and encoding Message-ID: <1470045324628-5278901.post@n6.nabble.com> Hello, I have created a wms to use it in qgis 2.14. In the legend, some layers have accents and other don't : you see a small square for example instead of '?'. The difference in the mapfile is that some letters have been replaced...but I didn't do that or i don't remember how ! mapfile : CLASS NAME "foss??" EXPRESSION ("[interpret]" in "foss??,foss?? ?") STYLE OUTLINECOLOR "#FF8C00" WIDTH 0.5 END #end Style END # fin class foss?? it gives 'foss?' in the legend (qgis). fine ! but CLASS NAME "C?te d'Or" EXPRESSION '21' STYLE COLOR 200 60 70 OUTLINECOLOR 0 0 0 WIDTH 0.5 END #end Style LABEL FONT "dejavu" COLOR 125 125 125 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 POSITION cc SIZE 5 TYPE TRUETYPE END #ENd END #end class 21 comm ..gives C*square*e d'Or' : 2 letters missing. You see that in capture above. In the mapfile, encoded in UTF-8, I just added at the top : LEGEND LABEL FONT "Arial" TYPE TRUETYPE SIZE 8 ENCODING "UTF-8" END # fin label END #fin legend The question is : how to fix accents in class name in the legend ? Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-qgis-legend-and-encoding-tp5278901.html Sent from the Mapserver - User mailing list archive at Nabble.com. From erwin.bimueller at lkee.de Mon Aug 1 04:14:03 2016 From: erwin.bimueller at lkee.de (ebimueller) Date: Mon, 1 Aug 2016 04:14:03 -0700 (PDT) Subject: [mapserver-users] Mapserver as WMS on Windows In-Reply-To: <63fdb556-976a-c75c-b30f-11b757df92ae@gatewaygeomatics.com> References: <63fdb556-976a-c75c-b30f-11b757df92ae@gatewaygeomatics.com> Message-ID: <1470050043573-5278911.post@n6.nabble.com> Hello Jeff, thank you, your request worked. At first I got a warning, because the _title-metadata was missing. After I added METADATA "wms_title" "DTK10 Farbe" END no warning was shown any more. In my WMS-Clients QGIS and DISMA the URL http://10.224.160.25:8080/cgi-bin/mapserv.exe?map=/ms4w/Apache/cgi-bin/mapfile.map worked. So thank you once again, everything is fine now. Erwin -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-as-WMS-on-Windows-tp5278704p5278911.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Aug 1 06:56:29 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 1 Aug 2016 10:56:29 -0300 Subject: [mapserver-users] mapserver, qgis, legend and encoding In-Reply-To: <1470045324628-5278901.post@n6.nabble.com> References: <1470045324628-5278901.post@n6.nabble.com> Message-ID: Hello Leehan, Be strongly warned that there is a known issue with QGIS that I keep hitting, when I'm modifying a WMS service and testing it in QGIS - the capabilities responses are cached by QGIS, and must be manually cleared. You can read the whole thread here (this is my latest message: http://lists.osgeo.org/pipermail/qgis-developer/2016-August/044000.html). There is also an associated QGIS ticket, but there has been no action on it, so, be strongly aware of that problem as you travel down this path. I've tested a simple mapfile with legend text such as "C?te d'Or" and "foss?" with no problems (successfully displayed legend in QGIS 2.16.0 for that WMS service). Here is some advice from me: - test with a simple mapfile (make a copy of your mapfile, and in that new copy remove all layers except your one "Communes" layer, and remove all classes except one class ("C?te d'Or") - test that simple mapefile (verify GetCapabilities request manually, remove all WARNING messages, and then test that simple mapfile in QGIS - once you have that working, go back to your problem (big) mapfile - note that I am using MapServer 7.0.1 (MS4W 3.1.4) so the ENCODING parameter inside the LEGEND was not needed, so I removed it - I would remove all those weird characters from your mapfile, and manually type in words like "foss?" and retry - that weird text could be from a text editor, or opening it in another text editor and it saved the mapfile in a different encoding, who knows Worst case scenario: if that simple mapfile works for one layer and one class, rebuilt the entire mapfile and all layers, inside that simple mapfile (yes, painful, but sometimes you "gotta do what you gotta do". -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-01 6:55 AM, Leehan wrote: > Hello, > > I have created a wms to use it in qgis 2.14. In the legend, some layers have > accents and other don't : you see a small square for example instead of '?'. > > > > The difference in the mapfile is that some letters have been replaced...but > I didn't do that or i don't remember how ! > From mathias.cunault at inrap.fr Tue Aug 2 05:50:26 2016 From: mathias.cunault at inrap.fr (Leehan) Date: Tue, 2 Aug 2016 05:50:26 -0700 (PDT) Subject: [mapserver-users] mapserver, qgis, legend and encoding In-Reply-To: References: <1470045324628-5278901.post@n6.nabble.com> Message-ID: <1470142226460-5279098.post@n6.nabble.com> I followed your advice, and finally re-write my mapfile with a big attention to my text editor and its encoding. Besides, I have checked layer by layer that the legend was correct, and it was. I didn't finish yet, but until now it seems in order. Thanks a lot -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-qgis-legend-and-encoding-tp5278901p5279098.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Wed Aug 3 11:16:23 2016 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Wed, 3 Aug 2016 21:16:23 +0300 Subject: [mapserver-users] elevation contours from dem (raster) Dynamically? Message-ID: Hi, Is it possible to generate elevation contours from dem (raster) Dynamically? Please let me know Regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Aug 3 12:59:13 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 3 Aug 2016 16:59:13 -0300 Subject: [mapserver-users] elevation contours from dem (raster) Dynamically? In-Reply-To: References: Message-ID: <2f7cc307-e1d1-4569-1336-51ceccaef094@gatewaygeomatics.com> Hello Ahmet, This is possible through the CONNECTIONTYPE CONTOUR parameter: see http://mapserver.org/input/vector/contour.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-03 3:16 PM, Ahmet Temiz wrote: > Hi, > Is it possible to generate elevation contours from dem (raster) Dynamically? > Please let me know > Regards > From mgbillmi at mtu.edu Thu Aug 4 12:52:53 2016 From: mgbillmi at mtu.edu (Michael Billmire) Date: Thu, 4 Aug 2016 15:52:53 -0400 Subject: [mapserver-users] GetFeatureInfo request for multiple times on tileindex raster layer Message-ID: Hi all, I'm serving raster layers as time-series using a PostGIS tile index ( GetCapabilities , for reference). GetFeatureInfo is working fine for single timestamp requests, e.g.: http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS=chl_erie&LAYERS=chl_erie&time=2015-09-06&height=512&width=512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1&INFO_FORMAT=text/html&X=250&Y=250 However, when requesting *multiple* *discrete* time stamps (e.g. time=2015-09-06,2016-05-23), I get multiple results (i.e. a result for each timestamp), BUT the pixel value returned is the same for each result, representing the raster with the latest date: http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS=chl_erie&LAYERS=chl_erie&time=2015-09-06,2016-05-23&height=512&width=512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1&INFO_FORMAT=text/html&X=250&Y=250 In my template, [value_list] returns just the single value (i.e. the value of the raster at the latest date), [value_0] returns that same value, and [value_1] returns nothing. Is there anything obvious here that I'm doing wrong? Is this type of multiple timestamp pixel querying even supported? thanks! -Mike -- Michael Billmire, CMS-GIS/LIS Research Scientist Michigan Tech Research Institute (MTRI) 3600 Green Ct. Suite 100 Ann Arbor, MI 48105 michael.billmire at mtu.edu work: 734.913.6853 cell: 513.739.0686 fax: 734.913.6880 -------------- next part -------------- An HTML attachment was scrubbed... URL: From schepers at rvr-online.de Thu Aug 4 23:57:55 2016 From: schepers at rvr-online.de (Schepers, Benjamin) Date: Fri, 5 Aug 2016 06:57:55 +0000 Subject: [mapserver-users] GetFeatureInfo request for multiple times on tileindex raster layer In-Reply-To: References: Message-ID: <7088A26751CB34409B159B4237D510A87C7FE353@W2K8-EXDB02.VERBAND.LOCAL> Hi Mike, just my thoughts: What would be the result of an getmap-Request in your second scenario with multiple discrete timestamps? A getmap-request just can produce one single image ? anything else wouldn?t make sense to me. So if you request two discrete timestamps, one would expect to get two rasters from DB/filesystem and there has to be a logic what should be done by mapserver with those two images (choose the topmost or the underlying or a merge of them ? which merge method? ? of those pics to get one of two or many)? Maybe the latest date, as you determined, is the topmost. My thought what getfeatureinfo logic does are equivalent to that? Maybe I?m wrong with that, but that could just be answered by someone who can read the sourcecode?! If you want to merge rasters on the fly (or their values) COMPOSITE maybe could help you: http://mapserver.org/de/mapfile/composite.html Sincerely Ben Benjamin Schepers Luftbild und Geoinformationssysteme Kronprinzenstra?e 35 45128 Essen Fon: +49 201 2069-232 Fax: +49 201 2069-500 schepers at rvr-online.de [cid:image001.jpg at 01D1EEF2.E97E2630] Die Regionaldirektorin Kronprinzenstra?e 35 45128 Essen Zentrale: +49 (0) 201 2069-0 Fax: +49 (0) 201 2069-500 www.metropoleruhr.de Postfach 10 32 64 45032 Essen Steuernummer: RVR 112/5797/0116 USt.-ldNr.: DE 173867500 Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Michael Billmire Gesendet: Donnerstag, 4. August 2016 21:53 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] GetFeatureInfo request for multiple times on tileindex raster layer Hi all, I'm serving raster layers as time-series using a PostGIS tile index (GetCapabilities, for reference). GetFeatureInfo is working fine for single timestamp requests, e.g.: http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS=chl_erie&LAYERS=chl_erie&time=2015-09-06&height=512&width=512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1&INFO_FORMAT=text/html&X=250&Y=250 However, when requesting multiple discrete time stamps (e.g. time=2015-09-06,2016-05-23), I get multiple results (i.e. a result for each timestamp), BUT the pixel value returned is the same for each result, representing the raster with the latest date: http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS=chl_erie&LAYERS=chl_erie&time=2015-09-06,2016-05-23&height=512&width=512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1&INFO_FORMAT=text/html&X=250&Y=250 In my template, [value_list] returns just the single value (i.e. the value of the raster at the latest date), [value_0] returns that same value, and [value_1] returns nothing. Is there anything obvious here that I'm doing wrong? Is this type of multiple timestamp pixel querying even supported? thanks! -Mike -- Michael Billmire, CMS-GIS/LIS Research Scientist Michigan Tech Research Institute (MTRI) 3600 Green Ct. Suite 100 Ann Arbor, MI 48105 michael.billmire at mtu.edu work: 734.913.6853 cell: 513.739.0686 fax: 734.913.6880 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8303 bytes Desc: image001.jpg URL: From mgbillmi at mtu.edu Fri Aug 5 07:06:50 2016 From: mgbillmi at mtu.edu (Michael Billmire) Date: Fri, 5 Aug 2016 10:06:50 -0400 Subject: [mapserver-users] GetFeatureInfo request for multiple times on tileindex raster layer In-Reply-To: <7088A26751CB34409B159B4237D510A87C7FE353@W2K8-EXDB02.VERBAND.LOCAL> References: <7088A26751CB34409B159B4237D510A87C7FE353@W2K8-EXDB02.VERBAND.LOCAL> Message-ID: Thanks for the response, Ben. What would be the result of an *getmap*-Request Yes, good point- it appears that if two discrete dates are requested via GetMap, the result is a merged image (w/ the most recent date getting precedence): http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS& VERSION=1.1.1&REQUEST=GetMap&map=watersensing_map&LAYERS= chl_erie&time=2015-09-24,2016-05-23&height=512&width=512& format=image/png&sld=http://spatial.mtri.org/waterremotesensing/SLDs/chl_ erie.xml&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1 It's hard to tell in the above URL, but if you toggle between a two-date and one-date request, you can tell that the two-date request has the maps layered (w/ the map for the most recent date on top). So it's probably a good guess that the same logic is applying in the GFI requests. I'll take a look at the source code to see if there might be a way to override this logic. To anyone here who is already familiar with the source code: I welcome any tips about where to look and whether or not my quest may be futile unless I want to break everything. On Fri, Aug 5, 2016 at 2:57 AM, Schepers, Benjamin wrote: > Hi Mike, > > > > just my thoughts: > > What would be the result of an *getmap*-Request in your second scenario > with multiple discrete timestamps? > > A getmap-request just can produce one single image ? anything else > wouldn?t make sense to me. So if you request two discrete timestamps, one > would expect to get two rasters from DB/filesystem and there has to be a > logic what should be done by mapserver with those two images (choose the > topmost or the underlying or a merge of them ? which merge method? ? of > those pics to get one of two or many)? > > Maybe the latest date, as you determined, is the topmost. > > > > My thought what getfeatureinfo logic does are equivalent to that? > > Maybe I?m wrong with that, but that could just be answered by someone who > can read the sourcecode?! > > > > If you want to merge rasters on the fly (or their values) COMPOSITE maybe > could help you: http://mapserver.org/de/mapfile/composite.html > > > > Sincerely > > Ben > > > > > > > > *Benjamin Schepers * > Luftbild und Geoinformationssysteme > Kronprinzenstra?e 35 > 45128 Essen > Fon: +49 201 2069-232 > Fax: +49 201 2069-500 > schepers at rvr-online.de > > > > > *Die Regionaldirektorin *Kronprinzenstra?e 35 > 45128 Essen > Zentrale: +49 (0) 201 2069-0 > Fax: +49 (0) 201 2069-500 > www.metropoleruhr.de > > Postfach 10 32 64 > 45032 Essen > > Steuernummer: RVR 112/5797/0116 > USt.-ldNr.: DE 173867500 > > Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte > Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich > erhalten haben, informieren Sie bitte sofort den Absender und vernichten > Sie diese Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind > nicht gestattet. > This e-mail may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this e-mail in > error) please notify the sender immediately and destroy this e-mail. > Any unauthorised copying, disclosure or distribution of the material in > this e-mail is strictly forbidden. > > *Von:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *Im > Auftrag von *Michael Billmire > *Gesendet:* Donnerstag, 4. August 2016 21:53 > *An:* mapserver-users at lists.osgeo.org > *Betreff:* [mapserver-users] GetFeatureInfo request for multiple times on > tileindex raster layer > > > > Hi all, > > > > I'm serving raster layers as time-series using a PostGIS tile index ( > GetCapabilities > , > for reference). > > > > GetFeatureInfo is working fine for single timestamp requests, e.g.: > > http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS& > VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS= > chl_erie&LAYERS=chl_erie&time=2015-09-06&height=512&width= > 512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44.55&opacity=1& > INFO_FORMAT=text/html&X=250&Y=250 > > > > However, when requesting *multiple* *discrete* time stamps (e.g. > time=2015-09-06,2016-05-23), I get multiple results (i.e. a result for each > timestamp), BUT the pixel value returned is the same for each result, > representing the raster with the latest date: > > http://spatial.mtri.org/cgi-bin/mapserv.fcgi?SERVICE=WMS& > VERSION=1.1.1&REQUEST=GetFeatureInfo&map=watersensing_map&QUERY_LAYERS= > chl_erie&LAYERS=chl_erie&time=2015-09-06,2016-05-23&height= > 512&width=512&srs=EPSG:4326&bbox=-83.55,39.45,-78.45,44. > 55&opacity=1&INFO_FORMAT=text/html&X=250&Y=250 > > > > In my template, [value_list] returns just the single value (i.e. the value > of the raster at the latest date), [value_0] returns that same value, and > [value_1] returns nothing. > > > > Is there anything obvious here that I'm doing wrong? Is this type of > multiple timestamp pixel querying even supported? > > > > thanks! > > -Mike > > > > > > -- > > Michael Billmire, CMS-GIS/LIS > Research Scientist > Michigan Tech Research Institute (MTRI) > 3600 Green Ct. Suite 100 > Ann Arbor, MI 48105 > > michael.billmire at mtu.edu > work: 734.913.6853 > cell: 513.739.0686 > fax: 734.913.6880 > -- Michael Billmire, CMS-GIS/LIS Research Scientist Michigan Tech Research Institute (MTRI) 3600 Green Ct. Suite 100 Ann Arbor, MI 48105 michael.billmire at mtu.edu work: 734.913.6853 cell: 513.739.0686 fax: 734.913.6880 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8303 bytes Desc: not available URL: From jonathan-lists at lightpear.com Sun Aug 7 04:16:44 2016 From: jonathan-lists at lightpear.com (Jonathan Moules) Date: Sun, 7 Aug 2016 12:16:44 +0100 Subject: [mapserver-users] Sample access-log files Message-ID: <57A7189C.2060500@lightpear.com> Hi list, Possibly an odd request, but does anyone have a sample of MapServer Access Log files that they could share. I'm doing some log analysis and want to make sure it can handle MapServer requests. Either IIS [1] or Apache [2] is fine. I only need a couple of dozen entries, but more is always better. Many Thanks, Jonathan [1] (https://support.microsoft.com/en-us/kb/313437) [2] (https://httpd.apache.org/docs/2.4/logs.html#accesslog) From jmckenna at gatewaygeomatics.com Mon Aug 8 08:15:55 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 8 Aug 2016 12:15:55 -0300 Subject: [mapserver-users] Sample access-log files In-Reply-To: <57A7189C.2060500@lightpear.com> References: <57A7189C.2060500@lightpear.com> Message-ID: Hi Jonathan, did anyone send you a log sample yet? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-07 8:16 AM, Jonathan Moules wrote: > Hi list, > Possibly an odd request, but does anyone have a sample of MapServer > Access Log files that they could share. I'm doing some log analysis and > want to make sure it can handle MapServer requests. > > Either IIS [1] or Apache [2] is fine. I only need a couple of dozen > entries, but more is always better. > From jmckenna at gatewaygeomatics.com Mon Aug 8 08:37:28 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 8 Aug 2016 12:37:28 -0300 Subject: [mapserver-users] Sample access-log files In-Reply-To: <1566ac538d6.d0c5661569427.7245377935083062100@lightpear.com> References: <57A7189C.2060500@lightpear.com> <1566ac538d6.d0c5661569427.7245377935083062100@lightpear.com> Message-ID: <6c19ab92-e2ee-ad93-e346-49f2c3010f07@gatewaygeomatics.com> Hi Jonathan, I'll send you a sample offlist now. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-08 12:29 PM, Jonathan Moules wrote: > Hi Jeff, > I'm afraid not yet. I guess because it's a rather odd request. > > I come from the GeoServer world so have plenty of those logs to hand and > developed a parser around those. I wanted to test it against MapServer > logs; I'm pretty sure it should be fine, but figured it was worth > confirming. > > Cheers, > Jonathan > > > ---- On Mon, 08 Aug 2016 16:15:55 +0100 *Jeff > McKenna* wrote ---- > > Hi Jonathan, did anyone send you a log sample yet? > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2016-08-07 8:16 AM, Jonathan Moules wrote: > > Hi list, > > Possibly an odd request, but does anyone have a sample of MapServer > > Access Log files that they could share. I'm doing some log > analysis and > > want to make sure it can handle MapServer requests. > > > > Either IIS [1] or Apache [2] is fine. I only need a couple of dozen > > entries, but more is always better. > > > From d.robins at gisarts.nl Tue Aug 9 04:56:01 2016 From: d.robins at gisarts.nl (drobins) Date: Tue, 9 Aug 2016 04:56:01 -0700 (PDT) Subject: [mapserver-users] Mapserver filter/expression by DATE Message-ID: <1470743761940-5280038.post@n6.nabble.com> I have a PostGIS database and I have a column "startdate" and "enddate" in my database (YYYY-MM-DD format). What I want to do is make a filter/expression that checks if a certain selected date falls between those 2 dates. Example: I have a checkbox for enable/disable the following layers: 2016 2017 2018 2019 2020 I have an entry in my database with: startdate: 2016-01-01 enddate: 2019-01-01 If I check the layer 2017, I would like it to check if its between the start/enddate and if yes, display it. Is this possible with Mapserver/Openlayers? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-filter-expression-by-DATE-tp5280038.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Tue Aug 9 05:06:54 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Aug 2016 14:06:54 +0200 Subject: [mapserver-users] How avoid overlapping of label between two distinct layers Message-ID: Hi, I need to avoid the overlapping of labels between two layers. To do this I try to set the BUFFER option in both layers, but I see it seem don't work as I expected. Perhaps the buffer is working only for label of same layers ? This is a sample of actual overlapping: http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 In both layers I set: LABELCACHE on ... LAYER ... CLASS ..... LABEL TEXT 'Sottoambito [sottoambit]' TYPE TRUETYPE BUFFER 5 .... Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Aug 9 05:10:34 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 9 Aug 2016 14:10:34 +0200 Subject: [mapserver-users] How avoid overlapping of label between two distinct layers In-Reply-To: References: Message-ID: Mapserver will prevent label coliding by default unless you force it to do otherwise. I suspect that in your case one of the layers is either not using a labelcache, set to FORCE, or is a client WMS layer for which your own mapserver has no control/knowledge of label positions. -- thomas On 9 August 2016 at 14:06, Andrea Peri wrote: > Hi, > I need to avoid the overlapping of labels between two layers. > > To do this I try to set the BUFFER option in both layers, but I see it > seem don't work as I expected. > Perhaps the buffer is working only for label of same layers ? > > This is a sample of actual overlapping: > > http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 > > In both layers I set: > LABELCACHE on > ... > LAYER > ... > CLASS > ..... > LABEL > TEXT 'Sottoambito [sottoambit]' > TYPE TRUETYPE > BUFFER 5 > .... > > Thx. > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Tue Aug 9 05:28:44 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Aug 2016 14:28:44 +0200 Subject: [mapserver-users] How avoid overlapping of label between two distinct layers In-Reply-To: References: Message-ID: HI Thomas, Yes, I put the FORCE=true. But setting FORCE=false, mapserver will remove the label overlapping. http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 2016-08-09 14:10 GMT+02:00 thomas bonfort : > Mapserver will prevent label coliding by default unless you force it > to do otherwise. I suspect that in your case one of the layers is > either not using a labelcache, set to FORCE, or is a client WMS layer > for which your own mapserver has no control/knowledge of label > positions. > > -- > thomas > > On 9 August 2016 at 14:06, Andrea Peri wrote: >> Hi, >> I need to avoid the overlapping of labels between two layers. >> >> To do this I try to set the BUFFER option in both layers, but I see it >> seem don't work as I expected. >> Perhaps the buffer is working only for label of same layers ? >> >> This is a sample of actual overlapping: >> >> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 >> >> In both layers I set: >> LABELCACHE on >> ... >> LAYER >> ... >> CLASS >> ..... >> LABEL >> TEXT 'Sottoambito [sottoambit]' >> TYPE TRUETYPE >> BUFFER 5 >> .... >> >> Thx. >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Lime at state.mn.us Tue Aug 9 05:31:21 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 9 Aug 2016 12:31:21 +0000 Subject: [mapserver-users] How avoid overlapping of label between two distinct layers In-Reply-To: References: , Message-ID: Are you setting a fixed position (e.g. CC)? You can try AUTO and MapServer will try different placements to avoid collisions. --Steve ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com] Sent: Tuesday, August 09, 2016 7:28 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How avoid overlapping of label between two distinct layers HI Thomas, Yes, I put the FORCE=true. But setting FORCE=false, mapserver will remove the label overlapping. http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 2016-08-09 14:10 GMT+02:00 thomas bonfort : > Mapserver will prevent label coliding by default unless you force it > to do otherwise. I suspect that in your case one of the layers is > either not using a labelcache, set to FORCE, or is a client WMS layer > for which your own mapserver has no control/knowledge of label > positions. > > -- > thomas > > On 9 August 2016 at 14:06, Andrea Peri wrote: >> Hi, >> I need to avoid the overlapping of labels between two layers. >> >> To do this I try to set the BUFFER option in both layers, but I see it >> seem don't work as I expected. >> Perhaps the buffer is working only for label of same layers ? >> >> This is a sample of actual overlapping: >> >> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 >> >> In both layers I set: >> LABELCACHE on >> ... >> LAYER >> ... >> CLASS >> ..... >> LABEL >> TEXT 'Sottoambito [sottoambit]' >> TYPE TRUETYPE >> BUFFER 5 >> .... >> >> Thx. >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Aug 9 05:37:00 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 9 Aug 2016 09:37:00 -0300 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <1470743761940-5280038.post@n6.nabble.com> References: <1470743761940-5280038.post@n6.nabble.com> Message-ID: <6d2bd588-7887-9cbb-d149-36f900d22595@gatewaygeomatics.com> Hello, You can create your query through the commandline tool 'psql', and once you have that working you can test through the 'ogrinfo' commandline tool, using its '-sql' switch. Then you can test through MapServer with the 'shp2img' commandline tool, by setting that query within the DATA statement of your mapfile layer. See examples at http://www.mapserver.org/input/vector/postgis.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-09 8:56 AM, drobins wrote: > I have a PostGIS database and I have a column "startdate" and "enddate" in my > database (YYYY-MM-DD format). > What I want to do is make a filter/expression that checks if a certain > selected date falls between those 2 dates. > > Example: > I have a checkbox for enable/disable the following layers: > 2016 > 2017 > 2018 > 2019 > 2020 > > I have an entry in my database with: > startdate: 2016-01-01 > enddate: 2019-01-01 > > If I check the layer 2017, I would like it to check if its between the > start/enddate and if yes, display it. > Is this possible with Mapserver/Openlayers? > > From aperi2007 at gmail.com Tue Aug 9 05:42:23 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 9 Aug 2016 14:42:23 +0200 Subject: [mapserver-users] How avoid overlapping of label between two distinct layers In-Reply-To: References: Message-ID: Hi Steve, I try setting position auto and test the results. Thx for hint. A. 2016-08-09 14:31 GMT+02:00 Lime, Steve D (MNIT) : > Are you setting a fixed position (e.g. CC)? You can try AUTO and MapServer will try different placements to avoid collisions. --Steve > ________________________________________ > From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com] > Sent: Tuesday, August 09, 2016 7:28 AM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How avoid overlapping of label between two distinct layers > > HI Thomas, > Yes, I put the FORCE=true. > But setting > FORCE=false, > mapserver will remove the label overlapping. > > http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 > > > 2016-08-09 14:10 GMT+02:00 thomas bonfort : >> Mapserver will prevent label coliding by default unless you force it >> to do otherwise. I suspect that in your case one of the layers is >> either not using a labelcache, set to FORCE, or is a client WMS layer >> for which your own mapserver has no control/knowledge of label >> positions. >> >> -- >> thomas >> >> On 9 August 2016 at 14:06, Andrea Peri wrote: >>> Hi, >>> I need to avoid the overlapping of labels between two layers. >>> >>> To do this I try to set the BUFFER option in both layers, but I see it >>> seem don't work as I expected. >>> Perhaps the buffer is working only for label of same layers ? >>> >>> This is a sample of actual overlapping: >>> >>> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267 >>> >>> In both layers I set: >>> LABELCACHE on >>> ... >>> LAYER >>> ... >>> CLASS >>> ..... >>> LABEL >>> TEXT 'Sottoambito [sottoambit]' >>> TYPE TRUETYPE >>> BUFFER 5 >>> .... >>> >>> Thx. >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From d.robins at gisarts.nl Tue Aug 9 05:54:59 2016 From: d.robins at gisarts.nl (drobins) Date: Tue, 9 Aug 2016 05:54:59 -0700 (PDT) Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <6d2bd588-7887-9cbb-d149-36f900d22595@gatewaygeomatics.com> References: <1470743761940-5280038.post@n6.nabble.com> <6d2bd588-7887-9cbb-d149-36f900d22595@gatewaygeomatics.com> Message-ID: <1470747299973-5280061.post@n6.nabble.com> Hi jeff, does this apply also if I have different projects from different start/enddates? Lets say I have 3 projects: Project A: 2016-01-01 till 2019-01-01 Project B: 2017-02-02 till 2022-01-01 Project C: 2018-03-03 till 2025-05-01 When I check YR2017 I want to see Project A and B but not C Note that I find it a little difficult to really explain what I'm trying to achieve :) I guess easiest description would be like being able to scroll forward/backwards and depending on where I stop, display everything that is active on that current selected date. Thanks -Daniel jmckenna wrote > Hello, > > You can create your query through the commandline tool 'psql', and once > you have that working you can test through the 'ogrinfo' commandline > tool, using its '-sql' switch. Then you can test through MapServer with > the 'shp2img' commandline tool, by setting that query within the DATA > statement of your mapfile layer. See examples at > http://www.mapserver.org/input/vector/postgis.html > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2016-08-09 8:56 AM, drobins wrote: >> I have a PostGIS database and I have a column "startdate" and "enddate" >> in my >> database (YYYY-MM-DD format). >> What I want to do is make a filter/expression that checks if a certain >> selected date falls between those 2 dates. >> >> Example: >> I have a checkbox for enable/disable the following layers: >> 2016 >> 2017 >> 2018 >> 2019 >> 2020 >> >> I have an entry in my database with: >> startdate: 2016-01-01 >> enddate: 2019-01-01 >> >> If I check the layer 2017, I would like it to check if its between the >> start/enddate and if yes, display it. >> Is this possible with Mapserver/Openlayers? >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at .osgeo > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-filter-expression-by-DATE-tp5280038p5280061.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Aug 9 06:00:53 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 9 Aug 2016 10:00:53 -0300 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <1470747299973-5280061.post@n6.nabble.com> References: <1470743761940-5280038.post@n6.nabble.com> <6d2bd588-7887-9cbb-d149-36f900d22595@gatewaygeomatics.com> <1470747299973-5280061.post@n6.nabble.com> Message-ID: <5fdff26c-75dc-5825-6829-8f6dced43d2e@gatewaygeomatics.com> Hi Daniel, I think for the thousands of readers on this mailing list, you really need to give examples of your psql queries that you are trying (people in these open communities find editing your mistakes much easier than suggesting new solutions). So, dive into the commandline :) Do some tests with the tools I mentioned, then come back here and paste in your query syntax for the mailing list readers, I bet someone will be able to help you then. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-09 9:54 AM, drobins wrote: > Hi jeff, > > does this apply also if I have different projects from different > start/enddates? > Lets say I have 3 projects: > Project A: 2016-01-01 till 2019-01-01 > Project B: 2017-02-02 till 2022-01-01 > Project C: 2018-03-03 till 2025-05-01 > > When I check YR2017 I want to see Project A and B but not C > > Note that I find it a little difficult to really explain what I'm trying to > achieve :) > I guess easiest description would be like being able to scroll > forward/backwards and depending on where I stop, display everything that is > active on that current selected date. > > Thanks > -Daniel > > > jmckenna wrote >> Hello, >> >> You can create your query through the commandline tool 'psql', and once >> you have that working you can test through the 'ogrinfo' commandline >> tool, using its '-sql' switch. Then you can test through MapServer with >> the 'shp2img' commandline tool, by setting that query within the DATA >> statement of your mapfile layer. See examples at >> http://www.mapserver.org/input/vector/postgis.html >> >> -jeff >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 2016-08-09 8:56 AM, drobins wrote: >>> I have a PostGIS database and I have a column "startdate" and "enddate" >>> in my >>> database (YYYY-MM-DD format). >>> What I want to do is make a filter/expression that checks if a certain >>> selected date falls between those 2 dates. >>> >>> Example: >>> I have a checkbox for enable/disable the following layers: >>> 2016 >>> 2017 >>> 2018 >>> 2019 >>> 2020 >>> >>> I have an entry in my database with: >>> startdate: 2016-01-01 >>> enddate: 2019-01-01 >>> >>> If I check the layer 2017, I would like it to check if its between the >>> start/enddate and if yes, display it. >>> Is this possible with Mapserver/Openlayers? >>> >>> >> From ijturton at gmail.com Tue Aug 9 06:21:36 2016 From: ijturton at gmail.com (Ian Turton) Date: Tue, 9 Aug 2016 14:21:36 +0100 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <1470743761940-5280038.post@n6.nabble.com> References: <1470743761940-5280038.post@n6.nabble.com> Message-ID: Could you use the WMS dimension support? http://mapserver.org/uk/ogc/wms_dimension.html Ian PS does anyone know why the MapServer site thinks I'd like cyrillic characters in the headings? On 9 August 2016 at 12:56, drobins wrote: > I have a PostGIS database and I have a column "startdate" and "enddate" in > my > database (YYYY-MM-DD format). > What I want to do is make a filter/expression that checks if a certain > selected date falls between those 2 dates. > > Example: > I have a checkbox for enable/disable the following layers: > 2016 > 2017 > 2018 > 2019 > 2020 > > I have an entry in my database with: > startdate: 2016-01-01 > enddate: 2019-01-01 > > If I check the layer 2017, I would like it to check if its between the > start/enddate and if yes, display it. > Is this possible with Mapserver/Openlayers? > > > > -- > View this message in context: http://osgeo-org.1560.x6. > nabble.com/Mapserver-filter-expression-by-DATE-tp5280038.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 -- Ian Turton -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.aime at geo-solutions.it Tue Aug 9 06:27:41 2016 From: andrea.aime at geo-solutions.it (Andrea Aime) Date: Tue, 9 Aug 2016 15:27:41 +0200 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: References: <1470743761940-5280038.post@n6.nabble.com> Message-ID: On Tue, Aug 9, 2016 at 3:21 PM, Ian Turton wrote: > PS does anyone know why the MapServer site thinks I'd like cyrillic > characters in the headings? > Happens to me as well :-) [image: Inline image 1] Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo ? consentito esclusivamente al destinatario del messaggio, per le finalit? indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalit? diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 10035 bytes Desc: not available URL: From yves.jacolin at camptocamp.com Tue Aug 9 06:39:55 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 09 Aug 2016 15:39:55 +0200 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: References: <1470743761940-5280038.post@n6.nabble.com> Message-ID: <1819174.c5okMa8h3K@tatras> On Tuesday, August 09, 2016 15:27:41 Andrea Aime wrote: > On Tue, Aug 9, 2016 at 3:21 PM, Ian Turton wrote: > > PS does anyone know why the MapServer site thinks I'd like cyrillic > > characters in the headings? > > Happens to me as well :-) > > [image: Inline image 1] > > Cheers > Andrea There is a mix somewhere because I get this also clicking on the last flags which give this url: http://mapserver.org/uk/index.html Probably a mix between en_uk vs uk (in ISO Langage code) ? Which url do you have? Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From ijturton at gmail.com Tue Aug 9 07:04:24 2016 From: ijturton at gmail.com (Ian Turton) Date: Tue, 9 Aug 2016 15:04:24 +0100 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <1819174.c5okMa8h3K@tatras> References: <1470743761940-5280038.post@n6.nabble.com> <1819174.c5okMa8h3K@tatras> Message-ID: I have http://mapserver.org/uk/ogc/wms_dimension.html as my dimension, which seems wrong as ususally I would be GB or en_gb in this context. However I believe that the 2 letter Ukrainian code is 'UA' not UK for exactly this reason (see https://en.wikipedia.org/wiki/ISO_3166-2:UA) - I think neither of us is supposed to use UK so as to avoid confusing other people. Ian On 9 August 2016 at 14:39, Yves Jacolin wrote: > On Tuesday, August 09, 2016 15:27:41 Andrea Aime wrote: > > On Tue, Aug 9, 2016 at 3:21 PM, Ian Turton wrote: > > > PS does anyone know why the MapServer site thinks I'd like cyrillic > > > characters in the headings? > > > > Happens to me as well :-) > > > > [image: Inline image 1] > > > > Cheers > > Andrea > There is a mix somewhere because I get this also clicking on the last flags > which give this url: http://mapserver.org/uk/index.html > > Probably a mix between en_uk vs uk (in ISO Langage code) ? > > Which url do you have? > > Y. > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > Tel (France) : +33 4 58 48 20 43 (new !) > Tel (Suisse) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > -- Ian Turton -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Aug 9 09:48:08 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 9 Aug 2016 13:48:08 -0300 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: References: <1470743761940-5280038.post@n6.nabble.com> <1819174.c5okMa8h3K@tatras> Message-ID: Good catch Ian, I can see inside the docs source paths of "translated/uk", so it is on our side. I've created a ticket for this, and I will now attempt to change that to the proper "ua" country code. https://github.com/mapserver/docs/issues/150 -jeff On 2016-08-09 11:04 AM, Ian Turton wrote: > I have http://mapserver.org/uk/ogc/wms_dimension.html as my dimension, > which seems wrong as ususally I would be GB or en_gb in this context. > > However I believe that the 2 letter Ukrainian code is 'UA' not UK for > exactly this reason (see https://en.wikipedia.org/wiki/ISO_3166-2:UA) - > I think neither of us is supposed to use UK so as to avoid confusing > other people. > > Ian -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yves.jacolin at camptocamp.com Wed Aug 10 00:24:21 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 10 Aug 2016 09:24:21 +0200 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: References: <1470743761940-5280038.post@n6.nabble.com> Message-ID: <1916042.n6tklBor4P@tatras> Hello, I just sent a PR to remove uk flag and translation. As Jeff said in the ticket, there is no translated string for Ukraine. Thanks Jeff and Ian. Y. On Tuesday, August 09, 2016 13:48:08 Jeff McKenna wrote: > Good catch Ian, I can see inside the docs source paths of > "translated/uk", so it is on our side. I've created a ticket for this, > and I will now attempt to change that to the proper "ua" country code. > https://github.com/mapserver/docs/issues/150 > > -jeff > > On 2016-08-09 11:04 AM, Ian Turton wrote: > > I have http://mapserver.org/uk/ogc/wms_dimension.html as my dimension, > > which seems wrong as ususally I would be GB or en_gb in this context. > > > > However I believe that the 2 letter Ukrainian code is 'UA' not UK for > > exactly this reason (see https://en.wikipedia.org/wiki/ISO_3166-2:UA) - > > I think neither of us is supposed to use UK so as to avoid confusing > > other people. > > > > Ian -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From d.robins at gisarts.nl Wed Aug 10 00:37:31 2016 From: d.robins at gisarts.nl (=?UTF-8?B?RGFuacOrbCBSb2JpbnM=?=) Date: Wed, 10 Aug 2016 09:37:31 +0200 Subject: [mapserver-users] Mapserver filter/expression by DATE In-Reply-To: <5fdff26c-75dc-5825-6829-8f6dced43d2e@gatewaygeomatics.com> References: <1470743761940-5280038.post@n6.nabble.com> <6d2bd588-7887-9cbb-d149-36f900d22595@gatewaygeomatics.com> <1470747299973-5280061.post@n6.nabble.com> <5fdff26c-75dc-5825-6829-8f6dced43d2e@gatewaygeomatics.com> Message-ID: <57AAD9BB.2050103@gisarts.nl> Hi Jeff, after experimenting a bit with the queries I ended up using the EXTRACT function and make a filter based on that. Giving it some second thought, made me realize this is actually much easier: FILTER ("startdate" <= '2016-01-01' AND "enddate" >= '2016-12-31') For the time being I think this will work fine until we've added code for the scrolling feature similar to topotijdreis.nl Met vriendelijke groet, Dani?l Robins GISArts www.gisarts.nl 06 13526214 Op 9-8-2016 15:00, Jeff McKenna schreef: > Hi Daniel, > > I think for the thousands of readers on this mailing list, you really > need to give examples of your psql queries that you are trying (people > in these open communities find editing your mistakes much easier than > suggesting new solutions). So, dive into the commandline :) Do some > tests with the tools I mentioned, then come back here and paste in > your query syntax for the mailing list readers, I bet someone will be > able to help you then. > > -jeff > > From jcbastin at thelis.be Thu Aug 11 04:41:13 2016 From: jcbastin at thelis.be (Jean-Christophe Bastin) Date: Thu, 11 Aug 2016 13:41:13 +0200 Subject: [mapserver-users] How is working TEMPLATE fooOnlyForWMSGetFeatureInfo ? Message-ID: Hi all, I don't find good explanations about the use of TEMPLATE fooOnlyForWMSGetFeatureInfo in a Mapfile. In fact, I have a queryable WMS, and when I send a GetFeatureInfo request, I get the following answer : msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). What does that mean ? I did a research on "TEMPLATE" and "fooOnlyForWMSGetFeatureInfo", but I don't find how it is used. I only find Mapfile samples using it, but nothing about what and how it is used. Someone can explain me how can I resolve this issue ? Many thanks ! JCB -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Thu Aug 11 04:57:31 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 11 Aug 2016 13:57:31 +0200 Subject: [mapserver-users] How is working TEMPLATE fooOnlyForWMSGetFeatureInfo ? In-Reply-To: References: Message-ID: <40862243.TrUArIlkn5@tatras> Hello, How is your mapfile? Could you share a part of it? In WMS service, TEMPLATE should have a value, but not a specific value. So you can write what you want. So I guess there is a missing parameter in your mapfile. Regards, Y. On Thursday, August 11, 2016 13:41:13 Jean-Christophe Bastin wrote: > Hi all, > > I don't find good explanations about the use of TEMPLATE > fooOnlyForWMSGetFeatureInfo in a Mapfile. > In fact, I have a queryable WMS, and when I send a GetFeatureInfo > request, I get the following answer : > > > "http://www.digitalearth.gov/wmt/xml/exception_1_0_1.dtd"> > > > msReturnPage(): Web application error. Malformed template name > (fooOnlyForWMSGetFeatureInfo). > > > > What does that mean ? > I did a research on "TEMPLATE" and "fooOnlyForWMSGetFeatureInfo", but I > don't find how it is used. > I only find Mapfile samples using it, but nothing about what and how it > is used. > > Someone can explain me how can I resolve this issue ? > > Many thanks ! > > JCB -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From yves.jacolin at camptocamp.com Thu Aug 11 05:14:48 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 11 Aug 2016 14:14:48 +0200 Subject: [mapserver-users] How is working TEMPLATE fooOnlyForWMSGetFeatureInfo ? In-Reply-To: <3e1448b1-5d4c-864b-684a-4918d7171362@thelis.be> References: <40862243.TrUArIlkn5@tatras> <3e1448b1-5d4c-864b-684a-4918d7171362@thelis.be> Message-ID: <3626397.JLhFgCedch@tatras> You should remove the line 64: TEMPLATE 'fooOnlyForWMSGetFeatureInfo' is not useful in the WEB Object. Only the one in METADATA in the LAYER object. See section 'At the map level' vs 'And for each LAYER' in http://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms Y. On Thursday, August 11, 2016 14:06:52 Jean-Christophe Bastin wrote: > Hi, > > Thank you for your answer. > > Please find in attachment the MapFile. > > To summarize, I have "WEB TEMPLATE 'fooOnlyForWMSGetFeatureInfo'" and > "LAYER TEMPLATE fooOnlyForWMSGetFeatureInfo", as other samples I have found. > > Regards, > > JCB > > Le 11/08/2016 ? 13:57, Yves Jacolin a ?crit : > > Hello, > > > > How is your mapfile? Could you share a part of it? > > > > In WMS service, TEMPLATE should have a value, but not a specific value. So > > you can write what you want. > > > > So I guess there is a missing parameter in your mapfile. > > > > Regards, > > > > Y. > > > > On Thursday, August 11, 2016 13:41:13 Jean-Christophe Bastin wrote: > >> Hi all, > >> > >> I don't find good explanations about the use of TEMPLATE > >> fooOnlyForWMSGetFeatureInfo in a Mapfile. > >> In fact, I have a queryable WMS, and when I send a GetFeatureInfo > >> request, I get the following answer : > >> > >> > >> >> "http://www.digitalearth.gov/wmt/xml/exception_1_0_1.dtd"> > >> > >> > >> msReturnPage(): Web application error. Malformed template name > >> (fooOnlyForWMSGetFeatureInfo). > >> > >> > >> > >> What does that mean ? > >> I did a research on "TEMPLATE" and "fooOnlyForWMSGetFeatureInfo", but I > >> don't find how it is used. > >> I only find Mapfile samples using it, but nothing about what and how it > >> is used. > >> > >> Someone can explain me how can I resolve this issue ? > >> > >> Many thanks ! > >> > >> JCB -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From bob.basques at ci.stpaul.mn.us Fri Aug 12 13:10:03 2016 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 12 Aug 2016 20:10:03 +0000 Subject: [mapserver-users] Just found this by accident . . . Message-ID: http://proyek2.com/2016/02/26/membuat-webgis-dengan-geomoose/ bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Tue Aug 16 00:07:40 2016 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 16 Aug 2016 10:07:40 +0300 Subject: [mapserver-users] problem in wms service Message-ID: Hi, I am testing my wms, postgis layer it works with QUERY_STRING but not displays anything with curl and QGIS. ** It works mapserv -nh "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+4061255.6481961836+5426172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX=2588830.423584977,4061255.6481961836,5426172.9135307195,5382087.496964029&WIDTH=1160&HEIGHT=540&FORMAT=image/png" > out.png ----- ** it doesn't work curl --trace -i -X GET -H "Content-Type: image/png" " http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/jeo.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+4061255.6481961836+5426172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX=2588830.423584977,4061255.6481961836,5426172.9135307195,5382087.496964029&WIDTH=1160&HEIGHT=540&FORMAT=image/png" > out.png Can you tell me what the likely reasons are? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Tue Aug 16 00:10:03 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 16 Aug 2016 09:10:03 +0200 Subject: [mapserver-users] problem in wms service In-Reply-To: References: Message-ID: <6911089.2P9LKfd6Eq@tatras> On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote: > Hi, > > I am testing my wms, postgis layer it works with QUERY_STRING but not > displays anything with curl and QGIS. > > ** It works > > mapserv -nh > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS&VERSION=1.1.1&REQUEST= > GetMap&map.extent=2588830.423584977+4061255.6481961836+5426172.9135307195+53 > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX=2588830.423584977,4061 > 255.6481961836,5426172.9135307195,5382087.496964029&WIDTH=1160&HEIGHT=540&FO > RMAT=image/png" > > out.png > > ----- > ** it doesn't work > > curl --trace -i -X GET -H "Content-Type: image/png" " > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/jeo.map&SERVICE=WMS&VER > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+4061255.6481961836+54 > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX=258 > 8830.423584977,4061255.6481961836,5426172.9135307195,5382087.496964029&WIDTH > =1160&HEIGHT=540&FORMAT=image/png" > > out.png > > Can you tell me what the likely reasons are? > regards Hello, Does out.png is a png file or a text file with an error message in it? If so, what is this message? If it is not a png file, is it the mapserv cgi file? Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From ahmettemiz88 at gmail.com Tue Aug 16 00:20:43 2016 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 16 Aug 2016 10:20:43 +0300 Subject: [mapserver-users] problem in wms service In-Reply-To: <6911089.2P9LKfd6Eq@tatras> References: <6911089.2P9LKfd6Eq@tatras> Message-ID: thank you it is png file. $display out.png returns blank image. On Tue, Aug 16, 2016 at 10:10 AM, Yves Jacolin wrote: > On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote: > > Hi, > > > > I am testing my wms, postgis layer it works with QUERY_STRING but not > > displays anything with curl and QGIS. > > > > ** It works > > > > mapserv -nh > > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS& > VERSION=1.1.1&REQUEST= > > GetMap&map.extent=2588830.423584977+4061255.6481961836+ > 5426172.9135307195+53 > > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX= > 2588830.423584977,4061 > > 255.6481961836,5426172.9135307195,5382087.496964029& > WIDTH=1160&HEIGHT=540&FO > > RMAT=image/png" > > > out.png > > > > ----- > > ** it doesn't work > > > > curl --trace -i -X GET -H "Content-Type: image/png" " > > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/ > jeo.map&SERVICE=WMS&VER > > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+ > 4061255.6481961836+54 > > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=& > SRS=EPSG:3857&BBOX=258 > > 8830.423584977,4061255.6481961836,5426172.9135307195, > 5382087.496964029&WIDTH > > =1160&HEIGHT=540&FORMAT=image/png" > > > out.png > > > > Can you tell me what the likely reasons are? > > regards > > Hello, > > Does out.png is a png file or a text file with an error message in it? If > so, > what is this message? If it is not a png file, is it the mapserv cgi file? > > Y. > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > Tel (France) : +33 4 58 48 20 43 (new !) > Tel (Suisse) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Tue Aug 16 00:37:46 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 16 Aug 2016 09:37:46 +0200 Subject: [mapserver-users] problem in wms service In-Reply-To: References: <6911089.2P9LKfd6Eq@tatras> Message-ID: <14571084.C5rz9Ud9Xb@tatras> Ok, I suppose that your working test shows something in the picture? I suggest to enable log in your mapfile and check it after running again your not working example. "map.extent=2588830.423584977+4061255.6481961836+54 26172.9135307195+5382087.496964029" in your request should not be useful. Sorry no more idea here. Maybe the log will show you something weird. Y. On Tuesday, August 16, 2016 10:20:43 Ahmet Temiz wrote: > thank you > > it is png file. > $display out.png returns blank image. > > On Tue, Aug 16, 2016 at 10:10 AM, Yves Jacolin > wrote: > > On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote: > > > Hi, > > > > > > I am testing my wms, postgis layer it works with QUERY_STRING but not > > > displays anything with curl and QGIS. > > > > > > ** It works > > > > > > mapserv -nh > > > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS& > > > > VERSION=1.1.1&REQUEST= > > > > > GetMap&map.extent=2588830.423584977+4061255.6481961836+ > > > > 5426172.9135307195+53 > > > > > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX= > > > > 2588830.423584977,4061 > > > > > 255.6481961836,5426172.9135307195,5382087.496964029& > > > > WIDTH=1160&HEIGHT=540&FO > > > > > RMAT=image/png" > > > > > > > out.png > > > > > > ----- > > > ** it doesn't work > > > > > > curl --trace -i -X GET -H "Content-Type: image/png" " > > > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/ > > > > jeo.map&SERVICE=WMS&VER > > > > > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+ > > > > 4061255.6481961836+54 > > > > > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=& > > > > SRS=EPSG:3857&BBOX=258 > > > > > 8830.423584977,4061255.6481961836,5426172.9135307195, > > > > 5382087.496964029&WIDTH > > > > > =1160&HEIGHT=540&FORMAT=image/png" > > > > > > > out.png > > > > > > Can you tell me what the likely reasons are? > > > regards > > > > Hello, > > > > Does out.png is a png file or a text file with an error message in it? If > > so, > > what is this message? If it is not a png file, is it the mapserv cgi file? > > > > Y. > > -- > > Responsable Formation et Support > > Camptocamp France SAS > > Savoie Technolac, BP 352 > > 73377 Le Bourget du Lac, Cedex > > Tel (France) : +33 4 58 48 20 43 (new !) > > Tel (Suisse) : +41 21 619 10 43 > > Mob. : +33 6 18 75 42 21 > > Fax : 04 79 70 15 81 > > Mail : yves.jacolin at camptocamp.com > > http://www.camptocamp.com -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From ahmettemiz88 at gmail.com Tue Aug 16 01:37:00 2016 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 16 Aug 2016 11:37:00 +0300 Subject: [mapserver-users] problem in wms service In-Reply-To: <14571084.C5rz9Ud9Xb@tatras> References: <6911089.2P9LKfd6Eq@tatras> <14571084.C5rz9Ud9Xb@tatras> Message-ID: thank you , I noticed later I have missed specifying host in CONNECTION < CONNECTION "host=localhost .... Do you say map.extent is redundant code and BBOX is doing same ? regards On Tue, Aug 16, 2016 at 10:37 AM, Yves Jacolin wrote: > Ok, I suppose that your working test shows something in the picture? > > I suggest to enable log in your mapfile and check it after running again > your > not working example. > > "map.extent=2588830.423584977+4061255.6481961836+54 > 26172.9135307195+5382087.496964029" in your request should not be useful. > > Sorry no more idea here. Maybe the log will show you something weird. > > Y. > On Tuesday, August 16, 2016 10:20:43 Ahmet Temiz wrote: > > thank you > > > > it is png file. > > $display out.png returns blank image. > > > > On Tue, Aug 16, 2016 at 10:10 AM, Yves Jacolin < > yves.jacolin at camptocamp.com> > > wrote: > > > On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote: > > > > Hi, > > > > > > > > I am testing my wms, postgis layer it works with QUERY_STRING but not > > > > displays anything with curl and QGIS. > > > > > > > > ** It works > > > > > > > > mapserv -nh > > > > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS& > > > > > > VERSION=1.1.1&REQUEST= > > > > > > > GetMap&map.extent=2588830.423584977+4061255.6481961836+ > > > > > > 5426172.9135307195+53 > > > > > > > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX= > > > > > > 2588830.423584977,4061 > > > > > > > 255.6481961836,5426172.9135307195,5382087.496964029& > > > > > > WIDTH=1160&HEIGHT=540&FO > > > > > > > RMAT=image/png" > > > > > > > > > out.png > > > > > > > > ----- > > > > ** it doesn't work > > > > > > > > curl --trace -i -X GET -H "Content-Type: image/png" " > > > > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/ > > > > > > jeo.map&SERVICE=WMS&VER > > > > > > > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+ > > > > > > 4061255.6481961836+54 > > > > > > > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=& > > > > > > SRS=EPSG:3857&BBOX=258 > > > > > > > 8830.423584977,4061255.6481961836,5426172.9135307195, > > > > > > 5382087.496964029&WIDTH > > > > > > > =1160&HEIGHT=540&FORMAT=image/png" > > > > > > > > > out.png > > > > > > > > Can you tell me what the likely reasons are? > > > > regards > > > > > > Hello, > > > > > > Does out.png is a png file or a text file with an error message in it? > If > > > so, > > > what is this message? If it is not a png file, is it the mapserv cgi > file? > > > > > > Y. > > > -- > > > Responsable Formation et Support > > > Camptocamp France SAS > > > Savoie Technolac, BP 352 > > > 73377 Le Bourget du Lac, Cedex > > > Tel (France) : +33 4 58 48 20 43 (new !) > > > Tel (Suisse) : +41 21 619 10 43 > > > Mob. : +33 6 18 75 42 21 > > > Fax : 04 79 70 15 81 > > > Mail : yves.jacolin at camptocamp.com > > > http://www.camptocamp.com > > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > Tel (France) : +33 4 58 48 20 43 (new !) > Tel (Suisse) : +41 21 619 10 43 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Tue Aug 16 01:41:01 2016 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 16 Aug 2016 10:41:01 +0200 Subject: [mapserver-users] problem in wms service In-Reply-To: References: <14571084.C5rz9Ud9Xb@tatras> Message-ID: <56593309.rHjpsrA43h@tatras> Yes, I think map.extent is used for MapServer CGI Template not for MapServer WMS Request which uses BBOX parameter. As you are using WMS service, map.extent is useless. Y. On Tuesday, August 16, 2016 11:37:00 Ahmet Temiz wrote: > thank you , > > I noticed later I have missed specifying host in CONNECTION < CONNECTION > "host=localhost .... > Do you say map.extent is redundant code and BBOX is doing same ? > > regards > > On Tue, Aug 16, 2016 at 10:37 AM, Yves Jacolin > wrote: > > Ok, I suppose that your working test shows something in the picture? > > > > I suggest to enable log in your mapfile and check it after running again > > your > > not working example. > > > > "map.extent=2588830.423584977+4061255.6481961836+54 > > 26172.9135307195+5382087.496964029" in your request should not be useful. > > > > Sorry no more idea here. Maybe the log will show you something weird. > > > > Y. > > > > On Tuesday, August 16, 2016 10:20:43 Ahmet Temiz wrote: > > > thank you > > > > > > it is png file. > > > $display out.png returns blank image. > > > > > > On Tue, Aug 16, 2016 at 10:10 AM, Yves Jacolin < > > > > yves.jacolin at camptocamp.com> > > > > > wrote: > > > > On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote: > > > > > Hi, > > > > > > > > > > I am testing my wms, postgis layer it works with QUERY_STRING but > > > > > not > > > > > displays anything with curl and QGIS. > > > > > > > > > > ** It works > > > > > > > > > > mapserv -nh > > > > > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS& > > > > > > > > VERSION=1.1.1&REQUEST= > > > > > > > > > GetMap&map.extent=2588830.423584977+4061255.6481961836+ > > > > > > > > 5426172.9135307195+53 > > > > > > > > > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX= > > > > > > > > 2588830.423584977,4061 > > > > > > > > > 255.6481961836,5426172.9135307195,5382087.496964029& > > > > > > > > WIDTH=1160&HEIGHT=540&FO > > > > > > > > > RMAT=image/png" > > > > > > > > > > > out.png > > > > > > > > > > ----- > > > > > ** it doesn't work > > > > > > > > > > curl --trace -i -X GET -H "Content-Type: image/png" " > > > > > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/ > > > > > > > > jeo.map&SERVICE=WMS&VER > > > > > > > > > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+ > > > > > > > > 4061255.6481961836+54 > > > > > > > > > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=& > > > > > > > > SRS=EPSG:3857&BBOX=258 > > > > > > > > > 8830.423584977,4061255.6481961836,5426172.9135307195, > > > > > > > > 5382087.496964029&WIDTH > > > > > > > > > =1160&HEIGHT=540&FORMAT=image/png" > > > > > > > > > > > out.png > > > > > > > > > > Can you tell me what the likely reasons are? > > > > > regards > > > > > > > > Hello, > > > > > > > > Does out.png is a png file or a text file with an error message in it? > > > > If > > > > > > so, > > > > what is this message? If it is not a png file, is it the mapserv cgi > > > > file? > > > > > > Y. > > > > -- > > > > Responsable Formation et Support > > > > Camptocamp France SAS > > > > Savoie Technolac, BP 352 > > > > 73377 Le Bourget du Lac, Cedex > > > > Tel (France) : +33 4 58 48 20 43 (new !) > > > > Tel (Suisse) : +41 21 619 10 43 > > > > Mob. : +33 6 18 75 42 21 > > > > Fax : 04 79 70 15 81 > > > > Mail : yves.jacolin at camptocamp.com > > > > http://www.camptocamp.com > > > > -- > > Responsable Formation et Support > > Camptocamp France SAS > > Savoie Technolac, BP 352 > > 73377 Le Bourget du Lac, Cedex > > Tel (France) : +33 4 58 48 20 43 (new !) > > Tel (Suisse) : +41 21 619 10 43 > > Mob. : +33 6 18 75 42 21 > > Fax : 04 79 70 15 81 > > Mail : yves.jacolin at camptocamp.com > > http://www.camptocamp.com -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From DeDuikertjes at xs4all.nl Tue Aug 16 03:54:05 2016 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Tue, 16 Aug 2016 03:54:05 -0700 (PDT) Subject: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 Message-ID: <1471344845411-5280893.post@n6.nabble.com> Hi, In mapserver 6 I use the following to filter out records containing NULL values in a Postgis layer (I am using runtime substitution for MY_VAR1 and MY_VAR2): FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) This is working fine, but doesn't work in mapserver 7 anymore as documented in http://mapserver.org/MIGRATION_GUIDE.html#mapserver-6-4-to-7-0-migration According to that page I have to write the FILTER statement in the MapServer expression syntax. So now I'm trying to do so but I am not winning. I cannot find a way to properly detect NULL values using MapServer expression syntax. Is there any way writing such a filter without using a PROCESSING 'NATIVE_FILTER=' construct? Any help greatly appreciated, MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Aug 16 05:05:00 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 16 Aug 2016 09:05:00 -0300 Subject: [mapserver-users] problem in wms service In-Reply-To: References: Message-ID: Hello, I would first be sure to use the 'shp2img' commandline utility to confirm that a valid map image is generated by your mapfile. Once you have that map working through shp2img, then move to test your mapfile through WMS, and most importantly generating a GetCapabilities request. Be sure to review the GetCapabilities response, and remove any "WARNING" messages. Once you have a GetCapabilities response with no warnings, then you can test with a GetMap request. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-16 4:07 AM, Ahmet Temiz wrote: > Hi, > > I am testing my wms, postgis layer it works with QUERY_STRING but not > displays anything with curl and QGIS. > From Andreas.Eichner at sid.sachsen.de Tue Aug 16 09:01:19 2016 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 16 Aug 2016 16:01:19 +0000 Subject: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: <1471344845411-5280893.post@n6.nabble.com> References: <1471344845411-5280893.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> Hello Marco, in MapServer expressions you cannot test for NULL values and the NATIVE_FITLER processing key does not support runtime substitutions. You could try to use a sub-select directly in the DATA as described in http://mapserver.org/input/vector/postgis.html#table-of-contents HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von deduikertjes > Gesendet: Dienstag, 16. August 2016 12:54 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Filtering NULL values from Postgis Layer in > Mapserver 7 > > Hi, > > In mapserver 6 I use the following to filter out records containing NULL > values in a Postgis layer (I am using runtime substitution for MY_VAR1 and > MY_VAR2): > > FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) > > This is working fine, but doesn't work in mapserver 7 anymore as > documented > in http://mapserver.org/MIGRATION_GUIDE.html#mapserver-6-4-to-7-0- > migration > > According to that page I have to write the FILTER statement in the > MapServer > expression syntax. > > So now I'm trying to do so but I am not winning. I cannot find a way to > properly detect NULL values using MapServer expression syntax. Is there > any > way writing such a filter without using a PROCESSING 'NATIVE_FILTER=' > construct? > > Any help greatly appreciated, MArco > > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in- > Mapserver-7-tp5280893.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 DeDuikertjes at xs4all.nl Wed Aug 17 02:08:31 2016 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Wed, 17 Aug 2016 02:08:31 -0700 (PDT) Subject: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> Message-ID: <1471424911977-5281035.post@n6.nabble.com> Andreas, Thank you. hmm, that's very interesting. Lets see if I understand correctly: I observe that in the CLASS EXPRESSIONs in a Postgis layer NULL is treated as zero for numeric fields. So NULL gets visualized in the class where zero is visualized. In my opinion that is not very desirable. I actually would expect a default behaviour where NULL values will not match any CLASS EXPRESSION. In Mapserver 6 we luckily had the FILTER option to filter out the NULL values to remedy this behaviour. Not very elegant but very doable. Now in Mapserver 7 we lost the FILTER option and have to write a subselect in the DATA statement to get rid of NULL values. That seems to be a rather complicated solution for something which seems to be a very common task. Or am I missing something and is there a way to avoid that NULL values end up as being treated as 0? MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893p5281035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Wed Aug 17 05:43:33 2016 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 17 Aug 2016 12:43:33 +0000 Subject: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: <1471424911977-5281035.post@n6.nabble.com> References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> <1471424911977-5281035.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D56823C451@FS-EX-DB102.fs.sachsen.de> Hello Marco, IMHO the best solution would be to implement a "IS NULL" operator or function for the mapserver expressions. I guess this was not implemented because MS was originally developed for rendering ESRI-Shapefiles which do not support NULL values. According to http://mapserver.org/cgi/runsub.html#table-of-contents LAYER/PROCESSING should support runtime substitution since 7.0 so you could try to use the 'NATIVE_FILTER' processing option with something like '%MY_VAR1% is not null and %MY_VAR2% is not null' (very much like your FILTER in MS 6.4): PROCESSING "NATIVE_FILTER=%MY_VAR1% is not null and %MY_VAR2% is not null" If that does not work (check the debug log if the statement build has substitutions applied) your only solution would be to use the DATA statement with a sub-select. Something like: DATA "the_geom from (select gid, the_geom, %MY_VAR1% as attr1, %MY_VAR2% as attr2 from geotable where %MY_VAR1% is not null and %MY_VAR2% is not null) as subquery using unique gid using srid=4326" Hopefully one of that works for you... > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von deduikertjes > Gesendet: Mittwoch, 17. August 2016 11:09 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Filtering NULL values from Postgis Layer in > Mapserver 7 > > Andreas, > > Thank you. > > hmm, that's very interesting. Lets see if I understand correctly: > > I observe that in the CLASS EXPRESSIONs in a Postgis layer NULL is treated > as zero for numeric fields. So NULL gets visualized in the class where > zero > is visualized. In my opinion that is not very desirable. I actually would > expect a default behaviour where NULL values will not match any CLASS > EXPRESSION. > > In Mapserver 6 we luckily had the FILTER option to filter out the NULL > values to remedy this behaviour. Not very elegant but very doable. > > Now in Mapserver 7 we lost the FILTER option and have to write a subselect > in the DATA statement to get rid of NULL values. That seems to be a rather > complicated solution for something which seems to be a very common task. > > Or am I missing something and is there a way to avoid that NULL values end > up as being treated as 0? > > MArco > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in- > Mapserver-7-tp5280893p5281035.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 Steve.Lime at state.mn.us Wed Aug 17 08:07:31 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 17 Aug 2016 15:07:31 +0000 Subject: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: <1471424911977-5281035.post@n6.nabble.com> References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> <1471424911977-5281035.post@n6.nabble.com> Message-ID: The filter option is still there - it's just implemented as a processing option instead. So what was: FILTER 'myitem != NULL' Becomes: PROCESSING 'NATIVE_FILTER=myitem != NULL' This bypasses any translation idiosyncrasies as pointed out in this thread. Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of deduikertjes Sent: Wednesday, August 17, 2016 4:09 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Filtering NULL values from Postgis Layer in Mapserver 7 Andreas, Thank you. hmm, that's very interesting. Lets see if I understand correctly: I observe that in the CLASS EXPRESSIONs in a Postgis layer NULL is treated as zero for numeric fields. So NULL gets visualized in the class where zero is visualized. In my opinion that is not very desirable. I actually would expect a default behaviour where NULL values will not match any CLASS EXPRESSION. In Mapserver 6 we luckily had the FILTER option to filter out the NULL values to remedy this behaviour. Not very elegant but very doable. Now in Mapserver 7 we lost the FILTER option and have to write a subselect in the DATA statement to get rid of NULL values. That seems to be a rather complicated solution for something which seems to be a very common task. Or am I missing something and is there a way to avoid that NULL values end up as being treated as 0? MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893p5281035.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 TMa at edrnet.com Wed Aug 17 07:57:44 2016 From: TMa at edrnet.com (TMa Teng) Date: Wed, 17 Aug 2016 14:57:44 +0000 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Message-ID: Hi guys, I am currently facing problems using WFS in MapServer 7.0. The WFS works in MapServer 6.0.4 before I upgrade MapServer 7.0 and Mapfile, database connection everything has not been changed. Is there any change to WFS call from MapServer version 6.0 to version 7.x? Please advise me if there is anything I am missing. My request body: shape -81 41 -80.9 41.01 Thanks in advance, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at spatialys.com Wed Aug 17 08:37:26 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Wed, 17 Aug 2016 17:37:26 +0200 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: References: Message-ID: <201608171737.26414.even.rouault@spatialys.com> Le mercredi 17 ao?t 2016 16:57:44, TMa Teng a ?crit : > Hi guys, > > I am currently facing problems using WFS in MapServer 7.0. The WFS works in > MapServer 6.0.4 before I upgrade MapServer 7.0 and Mapfile, database > connection everything has not been changed. Is there any change to WFS > call from MapServer version 6.0 to version 7.x? Please advise me if there > is anything I am missing. You didn't explain what didn't work exactly. Like do you get a response with zero features in it ? This might be an issue with the coordinate order of in lowerCorner and upperCorner query. I assume that the SRS of the layer is EPSG:4326 ? If so, you should likely put the values in latitude longitude order (they look like being longitude latitude in your below sample). And it would also be better to explictly specify the SRS by adding a srsName="urn:ogc:def:crs:EPSG::4326" attribute to the element. > > > My request body: > version="1.1.0" maxFeatures="200" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> typeName="parcelpoints" > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> xmlns:ogc="http://www.opengis.net/ogc"> > > shape > > -81 41 > -80.9 41.01 > > > > > > > Thanks in advance, > > Martin -- Spatialys - Geospatial professional services http://www.spatialys.com From even.rouault at spatialys.com Wed Aug 17 09:01:14 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Wed, 17 Aug 2016 18:01:14 +0200 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: References: <201608171737.26414.even.rouault@spatialys.com> Message-ID: <201608171801.14758.even.rouault@spatialys.com> Le mercredi 17 ao?t 2016 17:44:54, TMa Teng a ?crit : > Thank you Even. The error message is " The gateway did not receive a timely > response from the upstream server or application". Do other GetFeature queries work ? GetCapabilities ? > > I didn?t specify the srsname in the query since output is defined in > EPSG:4326 same as the mapfile. I have an identical server that has not > been upgrade to mapserver 7.0 yet. And it returns the fesature collection > successfully using exact the same mapfile and same request body. > > Martin > > -----Original Message----- > From: Even Rouault [mailto:even.rouault at spatialys.com] > Sent: Wednesday, August 17, 2016 11:37 AM > To: mapserver-users at lists.osgeo.org > Cc: TMa Teng > Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc > filter > > Le mercredi 17 ao?t 2016 16:57:44, TMa Teng a ?crit : > > Hi guys, > > > > I am currently facing problems using WFS in MapServer 7.0. The WFS > > works in MapServer 6.0.4 before I upgrade MapServer 7.0 and Mapfile, > > database connection everything has not been changed. Is there any > > change to WFS call from MapServer version 6.0 to version 7.x? Please > > advise me if there is anything I am missing. > > You didn't explain what didn't work exactly. Like do you get a response > with zero features in it ? > > This might be an issue with the coordinate order of in lowerCorner and > upperCorner query. I assume that the SRS of the layer is EPSG:4326 ? If > so, you should likely put the values in latitude longitude order (they > look like being longitude latitude in your below sample). And it would > also be better to explictly specify the SRS by adding a > srsName="urn:ogc:def:crs:EPSG::4326" attribute to the > element. > > > My request body: > > > version="1.1.0" maxFeatures="200" > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > typeName="parcelpoints" > > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> > xmlns:ogc="http://www.opengis.net/ogc"> > > > > > > > > shape > > > > > > -81 41 > > -80.9 41.01 > > > > > > > > > > > > > > > > > > > > > > > > Thanks in advance, > > > > Martin > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From TMa at edrnet.com Wed Aug 17 10:31:40 2016 From: TMa at edrnet.com (TMa Teng) Date: Wed, 17 Aug 2016 17:31:40 +0000 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: <201608171801.14758.even.rouault@spatialys.com> References: <201608171737.26414.even.rouault@spatialys.com> <201608171801.14758.even.rouault@spatialys.com> Message-ID: Yes, I am able to use GET method to get the features when use the WFS. Get request example: http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.93099045753479,41.30866411858396 It returns features as expected. The problem is when I try to get features using POST method on the same WFS (see raw in fiddler below): POST http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map HTTP/1.1 Content-Type: multipart/form-data; User-Agent: Fiddler Content-Length: 814 Host: gisappsdev:8080 shape -81 41 -80.9 41.01 It took very long to return a 504 error gameway timeout. Thanks, -----Original Message----- From: Even Rouault [mailto:even.rouault at spatialys.com] Sent: Wednesday, August 17, 2016 12:01 PM To: TMa Teng Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Le mercredi 17 ao?t 2016 17:44:54, TMa Teng a ?crit : > Thank you Even. The error message is " The gateway did not receive a > timely response from the upstream server or application". Do other GetFeature queries work ? GetCapabilities ? > > I didn?t specify the srsname in the query since output is defined in > EPSG:4326 same as the mapfile. I have an identical server that has not > been upgrade to mapserver 7.0 yet. And it returns the fesature > collection successfully using exact the same mapfile and same request body. > > Martin > > -----Original Message----- > From: Even Rouault [mailto:even.rouault at spatialys.com] > Sent: Wednesday, August 17, 2016 11:37 AM > To: mapserver-users at lists.osgeo.org > Cc: TMa Teng > Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using > ogc filter > > Le mercredi 17 ao?t 2016 16:57:44, TMa Teng a ?crit : > > Hi guys, > > > > I am currently facing problems using WFS in MapServer 7.0. The WFS > > works in MapServer 6.0.4 before I upgrade MapServer 7.0 and Mapfile, > > database connection everything has not been changed. Is there any > > change to WFS call from MapServer version 6.0 to version 7.x? Please > > advise me if there is anything I am missing. > > You didn't explain what didn't work exactly. Like do you get a > response with zero features in it ? > > This might be an issue with the coordinate order of in lowerCorner > and upperCorner query. I assume that the SRS of the layer is EPSG:4326 > ? If so, you should likely put the values in latitude longitude order > (they look like being longitude latitude in your below sample). And it > would also be better to explictly specify the SRS by adding a > srsName="urn:ogc:def:crs:EPSG::4326" attribute to the > element. > > > My request body: > > > version="1.1.0" maxFeatures="200" > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > typeName="parcelpoints" > > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> > xmlns:ogc="http://www.opengis.net/ogc"> > > > > > > > > shape > > > > > > -81 41 > > -80.9 41.01 > > > > > > > > > > > > > > > > > > > > > > > > Thanks in advance, > > > > Martin > > -- > Spatialys - Geospatial professional services http://www.spatialys.com -- Spatialys - Geospatial professional services http://www.spatialys.com From TMa at edrnet.com Wed Aug 17 08:44:54 2016 From: TMa at edrnet.com (TMa Teng) Date: Wed, 17 Aug 2016 15:44:54 +0000 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: <201608171737.26414.even.rouault@spatialys.com> References: <201608171737.26414.even.rouault@spatialys.com> Message-ID: Thank you Even. The error message is " The gateway did not receive a timely response from the upstream server or application". I didn?t specify the srsname in the query since output is defined in EPSG:4326 same as the mapfile. I have an identical server that has not been upgrade to mapserver 7.0 yet. And it returns the fesature collection successfully using exact the same mapfile and same request body. Martin -----Original Message----- From: Even Rouault [mailto:even.rouault at spatialys.com] Sent: Wednesday, August 17, 2016 11:37 AM To: mapserver-users at lists.osgeo.org Cc: TMa Teng Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Le mercredi 17 ao?t 2016 16:57:44, TMa Teng a ?crit : > Hi guys, > > I am currently facing problems using WFS in MapServer 7.0. The WFS > works in MapServer 6.0.4 before I upgrade MapServer 7.0 and Mapfile, > database connection everything has not been changed. Is there any > change to WFS call from MapServer version 6.0 to version 7.x? Please > advise me if there is anything I am missing. You didn't explain what didn't work exactly. Like do you get a response with zero features in it ? This might be an issue with the coordinate order of in lowerCorner and upperCorner query. I assume that the SRS of the layer is EPSG:4326 ? If so, you should likely put the values in latitude longitude order (they look like being longitude latitude in your below sample). And it would also be better to explictly specify the SRS by adding a srsName="urn:ogc:def:crs:EPSG::4326" attribute to the element. > > > My request body: > version="1.1.0" maxFeatures="200" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> typeName="parcelpoints" > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> xmlns:ogc="http://www.opengis.net/ogc"> > > shape > > -81 41 > -80.9 41.01 > > > > > > > Thanks in advance, > > Martin -- Spatialys - Geospatial professional services http://www.spatialys.com From jmckenna at gatewaygeomatics.com Wed Aug 17 13:45:01 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 17 Aug 2016 17:45:01 -0300 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: References: <201608171737.26414.even.rouault@spatialys.com> <201608171801.14758.even.rouault@spatialys.com> Message-ID: <58c98888-23f8-2de8-99ba-c73f85161486@gatewaygeomatics.com> Could you try to duplicate your filter request, manually? Here is an example from the MapServer WFS Filter Encoding howto: http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=Name>NAME135.2239,34.4879 135.8578,34.8471 Does a manually-created filter request work for you? (it just takes a little time to write the full request through the url, but it is very useful for testing) More working filters can be found in the howto: http://mapserver.org/ogc/filter_encoding.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-17 2:31 PM, TMa Teng wrote: > Yes, I am able to use GET method to get the features when use the WFS. > > Get request example: > http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.93099045753479,41.30866411858396 > > It returns features as expected. > > The problem is when I try to get features using POST method on the same WFS (see raw in fiddler below): From DeDuikertjes at xs4all.nl Thu Aug 18 01:34:12 2016 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Thu, 18 Aug 2016 01:34:12 -0700 (PDT) Subject: [mapserver-users] [SOLVED] Re: Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> <1471424911977-5281035.post@n6.nabble.com> Message-ID: <1471509252601-5281145.post@n6.nabble.com> Steve, thank you Lime, Steve D (MNIT) wrote > The filter option is still there - it's just implemented as a processing > option instead. So what was: > > FILTER 'myitem != NULL' > > Becomes: > > PROCESSING 'NATIVE_FILTER=myitem != NULL' > > Steve I can confirm that making the FILTER a PROCESSING option indeed works, even with runtime substitution. (using = NULL does not work, IS NULL must be used) So the mapserver6 style line: FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) in mapserver 7 becomes: PROCESSING 'NATIVE_FILTER=(NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL))' So I summarize: - CLASS EXPRESSIONS will treat NULL values in numerical fields as zero (and I presume it does the same for empty numeric fields in shapefiles). It is not possible to prevent this behaviour. - To prevent NULL values from being rendered a FILTER must be applied, or a subselect in the DATA statement must be used. - In mapserver 6 that can be a native filter with a syntax like FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) - In mapserver 7 that filter must be added as a processing option with a syntax like PROCESSING 'NATIVE_FILTER=(NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL))' It still would be very nice to have an option to ignore empty fields/ NULL values/ missing values like -9999 with a single config option. Shall I file a feature request for that? MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893p5281145.html Sent from the Mapserver - User mailing list archive at Nabble.com. From even.rouault at spatialys.com Thu Aug 18 02:31:58 2016 From: even.rouault at spatialys.com (Even Rouault) Date: Thu, 18 Aug 2016 11:31:58 +0200 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: References: <201608171801.14758.even.rouault@spatialys.com> Message-ID: <201608181131.58536.even.rouault@spatialys.com> Le mercredi 17 ao?t 2016 19:31:40, TMa Teng a ?crit : > Yes, I am able to use GET method to get the features when use the WFS. > > Get request example: > http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/Sanb > ornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=Sanb > ornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.9309 > 9045753479,41.30866411858396 > > It returns features as expected. > > The problem is when I try to get features using POST method on the same WFS > (see raw in fiddler below): > > POST > http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/San > bornImage_wfs.map HTTP/1.1 Content-Type: multipart/form-data; > User-Agent: Fiddler > Content-Length: 814 > Host: gisappsdev:8080 I've tried the following with a mapfile from MapServer test suite : cat request.xml | CONTENT_TYPE=text/xml MS_MAPFILE=wfs_200.map REQUEST_METHOD=POST mapserv where request.xml is as close as possible to yours : shape -81 41 -80.9 41.01 And it returns: Content-Type: text/xml; subtype=gml/3.1.1; charset=UTF-8 missing So it behaves as expected. Looking at the above header, this might perhaps come from "Content-Type: multipart/form-data;" The terminating semi-column is a bit suspicous. Also this is incorrect in that instance and should be "text/xml". Another possibilitiy, more likely, is that the Content-Length is wrong. If I paste your below XML with DOS end-of-line (CR-LF), I get 813 bytes (or 815 if I add an extra return line), not 814. So MapServer could try to read one extra byte that never comes, hence the timeout. > > > version="1.1.0" maxFeatures="100" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> typeName="SanbornGeoref" > xmlns:feature="http://gisappsdev:8080/cgi-bin/mapserv.exe" > srsName="EPSG:4326"> > > shape > > -81 41 > -80.9 41.01 > > > > > -- Spatialys - Geospatial professional services http://www.spatialys.com From MarkVolz at co.lyon.mn.us Thu Aug 18 06:22:46 2016 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 18 Aug 2016 13:22:46 +0000 Subject: [mapserver-users] performance question - joining dbf tables in MapServer Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA372D53FDF@swmail01.r8nssis.local> Hello, I am considering joining my tax data to my parcel dataset on the fly using the MapServer Join function. This way I can update my tax data weekly, and my parcels as needed. My tax data will be in a dbf and my parcels will be in a shapefile. Questions: * Is there any performance hit using joining on the fly vs keeping the tax data in the shapefile? * Are there any tips I should be aware about to make the joins work faster? http://mapserver.org/mapfile/join.html. Thank You! Sincerely, Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMa at edrnet.com Thu Aug 18 06:50:32 2016 From: TMa at edrnet.com (TMa Teng) Date: Thu, 18 Aug 2016 13:50:32 +0000 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: <58c98888-23f8-2de8-99ba-c73f85161486@gatewaygeomatics.com> References: <201608171737.26414.even.rouault@spatialys.com> <201608171801.14758.even.rouault@spatialys.com> <58c98888-23f8-2de8-99ba-c73f85161486@gatewaygeomatics.com> Message-ID: Hi Jeff, The filter encoding does not work on the new instance which runs Mapserver 7.0 but the same request runs correctly when I use Mapserver 6.0.4 with duplicated mapfile and filter. My test filter request is as below: http://gisappsproawvc2:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=200& &Filter=shape-73.2239,33.4879 -71.8578,34.8471 I am not sure why it is not working when I switch to newer version. That being said, there could be some part I missed when I install/configure Mapserver. I am using MS4W 3.1.4, data source is in SQL Server spatial. Please advise how could I troubleshoot this. Thanks, -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, August 17, 2016 4:45 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Could you try to duplicate your filter request, manually? Here is an example from the MapServer WFS Filter Encoding howto: http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=Name>NAME135.2239,34.4879 135.8578,34.8471 Does a manually-created filter request work for you? (it just takes a little time to write the full request through the url, but it is very useful for testing) More working filters can be found in the howto: http://mapserver.org/ogc/filter_encoding.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-17 2:31 PM, TMa Teng wrote: > Yes, I am able to use GET method to get the features when use the WFS. > > Get request example: > http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.93099045753479,41.30866411858396 > > It returns features as expected. > > The problem is when I try to get features using POST method on the same WFS (see raw in fiddler below): _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ahmettemiz88 at gmail.com Fri Aug 19 07:08:32 2016 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Fri, 19 Aug 2016 17:08:32 +0300 Subject: [mapserver-users] geological symbols Message-ID: Hi, I need to use geological symbols especially fault lines in mapserver. But I couldn't find them. Are they available somewhere ? Do you have any recommendations? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Aug 19 11:53:05 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Aug 2016 18:53:05 +0000 Subject: [mapserver-users] performance question - joining dbf tables in MapServer In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA372D53FDF@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA372D53FDF@swmail01.r8nssis.local> Message-ID: Joins are really meant for simple look ups so there is no indexing or anything like that with the DBF and flat file options. Also note that JOINs are post-query-only so you couldn't label based on a joined column, nor query on a joined attribute. You could keep information you wanted to display as the result of a query however. In short, if you have a relatively small set of attributes that you want to display as a result of a query then a JOIN might work well. Does that help? Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, August 18, 2016 8:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] performance question - joining dbf tables in MapServer Hello, I am considering joining my tax data to my parcel dataset on the fly using the MapServer Join function. This way I can update my tax data weekly, and my parcels as needed. My tax data will be in a dbf and my parcels will be in a shapefile. Questions: * Is there any performance hit using joining on the fly vs keeping the tax data in the shapefile? * Are there any tips I should be aware about to make the joins work faster? http://mapserver.org/mapfile/join.html. Thank You! Sincerely, Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Aug 19 11:55:20 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Aug 2016 18:55:20 +0000 Subject: [mapserver-users] MapServer 7.0 WFS post request using ogc filter In-Reply-To: References: <201608171737.26414.even.rouault@spatialys.com> <201608171801.14758.even.rouault@spatialys.com> <58c98888-23f8-2de8-99ba-c73f85161486@gatewaygeomatics.com> Message-ID: What does "not work" mean? Is there an error message or are you seeing an incorrect result set? What does the layer definition look like? Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of TMa Teng Sent: Thursday, August 18, 2016 8:51 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Hi Jeff, The filter encoding does not work on the new instance which runs Mapserver 7.0 but the same request runs correctly when I use Mapserver 6.0.4 with duplicated mapfile and filter. My test filter request is as below: http://gisappsproawvc2:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=200& &Filter=shape-73.2239,33.4879 -71.8578,34.8471 I am not sure why it is not working when I switch to newer version. That being said, there could be some part I missed when I install/configure Mapserver. I am using MS4W 3.1.4, data source is in SQL Server spatial. Please advise how could I troubleshoot this. Thanks, -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, August 17, 2016 4:45 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer 7.0 WFS post request using ogc filter Could you try to duplicate your filter request, manually? Here is an example from the MapServer WFS Filter Encoding howto: http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=Name>NAME135.2239,34.4879 135.8578,34.8471 Does a manually-created filter request work for you? (it just takes a little time to write the full request through the url, but it is very useful for testing) More working filters can be found in the howto: http://mapserver.org/ogc/filter_encoding.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-17 2:31 PM, TMa Teng wrote: > Yes, I am able to use GET method to get the features when use the WFS. > > Get request example: > http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.93099045753479,41.30866411858396 > > It returns features as expected. > > The problem is when I try to get features using POST method on the same WFS (see raw in fiddler below): _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Aug 19 11:46:02 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 19 Aug 2016 18:46:02 +0000 Subject: [mapserver-users] [SOLVED] Re: Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: <1471509252601-5281145.post@n6.nabble.com> References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> <1471424911977-5281035.post@n6.nabble.com> <1471509252601-5281145.post@n6.nabble.com> Message-ID: > It still would be very nice to have an option to ignore empty fields/ NULL > values/ missing values like -9999 with a single config option. Shall I file > a feature request for that? How would such a feature be different than FILTER or the native_filter PROCESSING option? Just trying to understand what convenience we might be able to introduce. --Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of deduikertjes Sent: Thursday, August 18, 2016 3:34 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] [SOLVED] Re: Filtering NULL values from Postgis Layer in Mapserver 7 Steve, thank you Lime, Steve D (MNIT) wrote > The filter option is still there - it's just implemented as a processing > option instead. So what was: > > FILTER 'myitem != NULL' > > Becomes: > > PROCESSING 'NATIVE_FILTER=myitem != NULL' > > Steve I can confirm that making the FILTER a PROCESSING option indeed works, even with runtime substitution. (using = NULL does not work, IS NULL must be used) So the mapserver6 style line: FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) in mapserver 7 becomes: PROCESSING 'NATIVE_FILTER=(NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL))' So I summarize: - CLASS EXPRESSIONS will treat NULL values in numerical fields as zero (and I presume it does the same for empty numeric fields in shapefiles). It is not possible to prevent this behaviour. - To prevent NULL values from being rendered a FILTER must be applied, or a subselect in the DATA statement must be used. - In mapserver 6 that can be a native filter with a syntax like FILTER (NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL)) - In mapserver 7 that filter must be added as a processing option with a syntax like PROCESSING 'NATIVE_FILTER=(NOT (%MY_VAR1% IS NULL OR %MY_VAR2% IS NULL))' It still would be very nice to have an option to ignore empty fields/ NULL values/ missing values like -9999 with a single config option. Shall I file a feature request for that? MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893p5281145.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 MarkVolz at co.lyon.mn.us Fri Aug 19 12:44:33 2016 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 19 Aug 2016 19:44:33 +0000 Subject: [mapserver-users] performance question - joining dbf tables in MapServer In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA372D53FDF@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA372D563D1@swmail01.r8nssis.local> Steve, That will help. Thank You! Sincerely, Mark Volz From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, August 19, 2016 1:53 PM To: Mark Volz ; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] performance question - joining dbf tables in MapServer Joins are really meant for simple look ups so there is no indexing or anything like that with the DBF and flat file options. Also note that JOINs are post-query-only so you couldn't label based on a joined column, nor query on a joined attribute. You could keep information you wanted to display as the result of a query however. In short, if you have a relatively small set of attributes that you want to display as a result of a query then a JOIN might work well. Does that help? Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, August 18, 2016 8:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] performance question - joining dbf tables in MapServer Hello, I am considering joining my tax data to my parcel dataset on the fly using the MapServer Join function. This way I can update my tax data weekly, and my parcels as needed. My tax data will be in a dbf and my parcels will be in a shapefile. Questions: * Is there any performance hit using joining on the fly vs keeping the tax data in the shapefile? * Are there any tips I should be aware about to make the joins work faster? http://mapserver.org/mapfile/join.html. Thank You! Sincerely, Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From DeDuikertjes at xs4all.nl Sun Aug 21 03:07:16 2016 From: DeDuikertjes at xs4all.nl (deduikertjes) Date: Sun, 21 Aug 2016 03:07:16 -0700 (PDT) Subject: [mapserver-users] [SOLVED] Re: Filtering NULL values from Postgis Layer in Mapserver 7 In-Reply-To: References: <1471344845411-5280893.post@n6.nabble.com> <6F331135492B944D90731CE93743D56823C41D@FS-EX-DB102.fs.sachsen.de> <1471424911977-5281035.post@n6.nabble.com> <1471509252601-5281145.post@n6.nabble.com> Message-ID: <1471774036980-5281457.post@n6.nabble.com> Lime, Steve D (MNIT) wrote >> It still would be very nice to have an option to ignore empty fields/ >> NULL >> values/ missing values like -9999 with a single config option. Shall I >> file >> a feature request for that? > > How would such a feature be different than FILTER or the native_filter > PROCESSING option? Just trying to understand what convenience we might be > able to introduce. --Steve Steve, I see you point. With the FILTER or native_filter PROCESSING option and careful management of the FILTER expression one can achieve a proper filtering of missing values. On the other hand it would be very convenient (imo) to have a setting on LAYER level (or even one at MAP level which can be overridden on LAYER level) like: MISSING_VALUE [string] where [string] then can be "EMPTY" "NULL" "-9999" or whatever. The desired behaviour would then be that every expression where the MISSING_VALUE appears is always evaluated as false. MArco -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Filtering-NULL-values-from-Postgis-Layer-in-Mapserver-7-tp5280893p5281457.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Tue Aug 23 08:14:44 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 23 Aug 2016 17:14:44 +0200 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset Message-ID: Hi, I have a line dataset and need to allow an easy GetFeatureInfo over the lines. actually is extremely hard for an user to be able to click exactly over the line and retrieve the Information of the feature. So I need to increase the tollerance to the point click. I see from documentation that there is the two values: "tolerance" and "tolerance units", So i try to set both them TOLERANCE 10.0 TOLERANCEUNITS pixels But no effect seem to have. Perhaps I understand wrongly to mean of "tolerance" Thx for every info. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jukka.rahkonen at maanmittauslaitos.fi Tue Aug 23 08:20:39 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 23 Aug 2016 15:20:39 +0000 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: Message-ID: That should work. Show a bit more about your mapfile so that others can reproduce easier. - Jukka Rahkonen- ________________________________ L?hett?j?: Andrea Peri L?hetetty: ?23.?8.?2016 18:15 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset Hi, I have a line dataset and need to allow an easy GetFeatureInfo over the lines. actually is extremely hard for an user to be able to click exactly over the line and retrieve the Information of the feature. So I need to increase the tollerance to the point click. I see from documentation that there is the two values: "tolerance" and "tolerance units", So i try to set both them TOLERANCE 10.0 TOLERANCEUNITS pixels But no effect seem to have. Perhaps I understand wrongly to mean of "tolerance" Thx for every info. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 aperi2007 at gmail.com Tue Aug 23 08:35:33 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 23 Aug 2016 17:35:33 +0200 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: Message-ID: Hi, The entire mapfile is quite huge, but this is the layer section of mapfile relatively to the linear dataset: LAYER NAME "rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt" STATUS OFF TYPE LINE CONNECTIONTYPE OGR CONNECTION "/path-to-dataset/zz_db_risorse_idriche.sqlite" DATA "SELECT ROWID AS msFID, * FROM RW_FIUMI_CANALI" PROCESSING 'NATIVE_FILTER=( "intersected" = "SI" )' EXTENT 1530000 4665000 1800000 4950000 PROJECTION "init=epsg:3003" END METADATA "ows_title" "corpi idrici superficiali " "ows_abstract" "Scala di visualizzazione wms 1:1 - 1:5.000.000" "ows_extent" "1530000 4665000 1800000 4950000" "wms_bbox_extended" "true" "wms_enable_request" "*" "ows_include_items" "all" "gml_include_items" "all" "gml_featureid" "msFID" "ows_featureid" "msFID" "gml_geometries" "GEOMETRY" "gml_geometry_type" "multilinestring" "gml_types" "none" "gml_PK_UID_type" "int" "wms_getfeatureinfo_formatlist" "OGRGML" # necessario per recuperare il GML da OGR-GDAL con GetFeatureInfo "wfs_enable_request" "*" "wfs_getfeature_formatlist" "application/shapefile,application/spatialite,text/xml;subtype=gml/3.1.1" END TEMPLATE 'ogrgml' #con l'opzione void rimando al tipo output (template-driven) MAXSCALEDENOM 5000000 MINSCALEDENOM 1 OPACITY 100 PROCESSING "APPROXIMATION_SCALE=FULL" CLASSGROUP "default" LABELCACHE on # tolerance e' necessario per il GetFeatureInfo su wms TOLERANCE 10.0 TOLERANCEUNITS pixels # CLASS NAME ' ' GROUP 'default' MAXSCALEDENOM 5000000 MINSCALEDENOM 1 STYLE WIDTH 0.3 COLOR '#1E90FF' ANTIALIAS false OPACITY 100 MAXSCALEDENOM 5000000 MINSCALEDENOM 1 END END END A. 2016-08-23 17:20 GMT+02:00 Rahkonen Jukka (MML) : > That should work. Show a bit more about your mapfile so that others can > reproduce easier. > > - Jukka Rahkonen- > ________________________________ > L?hett?j?: Andrea Peri > L?hetetty: ?23.?8.?2016 18:15 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] How increase the tolerance for GetFeatureInfo over a > line dataset > > Hi, > I have a line dataset and need to allow an easy GetFeatureInfo over the > lines. > actually is extremely hard for an user to be able to click exactly > over the line and retrieve the Information of the feature. > > So I need to increase the tollerance to the point click. > I see from documentation that there is the two values: > "tolerance" and "tolerance units", > So i try to set both them > > TOLERANCE 10.0 > TOLERANCEUNITS pixels > > But no effect seem to have. > > Perhaps I understand wrongly to mean of "tolerance" > > Thx for every info. > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jukka.rahkonen at maanmittauslaitos.fi Tue Aug 23 08:45:13 2016 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 23 Aug 2016 15:45:13 +0000 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: , Message-ID: <1471967113095.10696@maanmittauslaitos.fi> Hi, Looks correct. I seem to have on one or our layers this: UNITS METERS #DEBUG 5 SIZEUNITS PIXELS TOLERANCE 10 TOLERANCEUNITS PIXELS I suggest to make a very simple mapfile with only one simple line layer for testing and share the data and mapfile if needed. Start with the most simple text/plain format. -Jukka Rahkonen- ________________________________________ L?hett?j?: Andrea Peri L?hetetty: 23. elokuuta 2016 18:35 Vastaanottaja: Rahkonen Jukka (MML) Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset Hi, The entire mapfile is quite huge, but this is the layer section of mapfile relatively to the linear dataset: LAYER NAME "rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt" STATUS OFF TYPE LINE CONNECTIONTYPE OGR CONNECTION "/path-to-dataset/zz_db_risorse_idriche.sqlite" DATA "SELECT ROWID AS msFID, * FROM RW_FIUMI_CANALI" PROCESSING 'NATIVE_FILTER=( "intersected" = "SI" )' EXTENT 1530000 4665000 1800000 4950000 PROJECTION "init=epsg:3003" END METADATA "ows_title" "corpi idrici superficiali " "ows_abstract" "Scala di visualizzazione wms 1:1 - 1:5.000.000" "ows_extent" "1530000 4665000 1800000 4950000" "wms_bbox_extended" "true" "wms_enable_request" "*" "ows_include_items" "all" "gml_include_items" "all" "gml_featureid" "msFID" "ows_featureid" "msFID" "gml_geometries" "GEOMETRY" "gml_geometry_type" "multilinestring" "gml_types" "none" "gml_PK_UID_type" "int" "wms_getfeatureinfo_formatlist" "OGRGML" # necessario per recuperare il GML da OGR-GDAL con GetFeatureInfo "wfs_enable_request" "*" "wfs_getfeature_formatlist" "application/shapefile,application/spatialite,text/xml;subtype=gml/3.1.1" END TEMPLATE 'ogrgml' #con l'opzione void rimando al tipo output (template-driven) MAXSCALEDENOM 5000000 MINSCALEDENOM 1 OPACITY 100 PROCESSING "APPROXIMATION_SCALE=FULL" CLASSGROUP "default" LABELCACHE on # tolerance e' necessario per il GetFeatureInfo su wms TOLERANCE 10.0 TOLERANCEUNITS pixels # CLASS NAME ' ' GROUP 'default' MAXSCALEDENOM 5000000 MINSCALEDENOM 1 STYLE WIDTH 0.3 COLOR '#1E90FF' ANTIALIAS false OPACITY 100 MAXSCALEDENOM 5000000 MINSCALEDENOM 1 END END END A. 2016-08-23 17:20 GMT+02:00 Rahkonen Jukka (MML) : > That should work. Show a bit more about your mapfile so that others can > reproduce easier. > > - Jukka Rahkonen- > ________________________________ > L?hett?j?: Andrea Peri > L?hetetty: ?23.?8.?2016 18:15 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] How increase the tolerance for GetFeatureInfo over a > line dataset > > Hi, > I have a line dataset and need to allow an easy GetFeatureInfo over the > lines. > actually is extremely hard for an user to be able to click exactly > over the line and retrieve the Information of the feature. > > So I need to increase the tollerance to the point click. > I see from documentation that there is the two values: > "tolerance" and "tolerance units", > So i try to set both them > > TOLERANCE 10.0 > TOLERANCEUNITS pixels > > But no effect seem to have. > > Perhaps I understand wrongly to mean of "tolerance" > > Thx for every info. > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Tue Aug 23 10:23:56 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 Aug 2016 14:23:56 -0300 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: Message-ID: Hi Andrea, I have tested a GetFeatureInfo (through a query in QGIS 2.16) with TOLERANCE 50 TOLERANCEUNITS pixels and it correctly returns text query results with a large radius. I would note that if you are also testing through QGIS, there is a nasty 'feature' in the 2.x releases where I must manually delete my cache, if I want to see changes in any of my WMS services (for example, after I change my mapfile I must delete the contents of the QGIS cache folder). I am using MS4W 3.1.4 (MapServer 7.0.1). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-23 12:14 PM, Andrea Peri wrote: > Hi, > I have a line dataset and need to allow an easy GetFeatureInfo over the lines. > actually is extremely hard for an user to be able to click exactly > over the line and retrieve the Information of the feature. > > So I need to increase the tollerance to the point click. > I see from documentation that there is the two values: > "tolerance" and "tolerance units", > So i try to set both them > > TOLERANCE 10.0 > TOLERANCEUNITS pixels > > But no effect seem to have. > > Perhaps I understand wrongly to mean of "tolerance" > > Thx for every info. > From aperi2007 at gmail.com Tue Aug 23 12:10:10 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 23 Aug 2016 21:10:10 +0200 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: Message-ID: Hi Jeff, Thx for help,I resolved it. :) It was effectivelly a problem of our client gis :( not of mapserver. :) I don't remenber of the cache problem of qgis. :( Andrea. 2016-08-23 19:23 GMT+02:00 Jeff McKenna : > Hi Andrea, > > I have tested a GetFeatureInfo (through a query in QGIS 2.16) with > > TOLERANCE 50 > TOLERANCEUNITS pixels > > and it correctly returns text query results with a large radius. I would > note that if you are also testing through QGIS, there is a nasty 'feature' > in the 2.x releases where I must manually delete my cache, if I want to see > changes in any of my WMS services (for example, after I change my mapfile I > must delete the contents of the QGIS cache folder). > > I am using MS4W 3.1.4 (MapServer 7.0.1). > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2016-08-23 12:14 PM, Andrea Peri wrote: >> >> Hi, >> I have a line dataset and need to allow an easy GetFeatureInfo over the >> lines. >> actually is extremely hard for an user to be able to click exactly >> over the line and retrieve the Information of the feature. >> >> So I need to increase the tollerance to the point click. >> I see from documentation that there is the two values: >> "tolerance" and "tolerance units", >> So i try to set both them >> >> TOLERANCE 10.0 >> TOLERANCEUNITS pixels >> >> But no effect seem to have. >> >> Perhaps I understand wrongly to mean of "tolerance" >> >> Thx for every info. >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jmckenna at gatewaygeomatics.com Tue Aug 23 12:17:14 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 Aug 2016 16:17:14 -0300 Subject: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset In-Reply-To: References: Message-ID: Hi Andrea, Here is the thread on the QGIS cache problem for OGC services (includes the path to the folder that I must manually delete each time): http://osgeo-org.1560.x6.nabble.com/strange-GetCapabilities-caching-td5258591.html Keep that in mind for your travels for sure. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-23 4:10 PM, Andrea Peri wrote: > Hi Jeff, > Thx for help,I resolved it. > :) > It was effectivelly a problem of our client gis > :( > not of mapserver. > :) > > I don't remenber of the cache problem of qgis. > :( > > Andrea. > > > 2016-08-23 19:23 GMT+02:00 Jeff McKenna : >> Hi Andrea, >> >> I have tested a GetFeatureInfo (through a query in QGIS 2.16) with >> >> TOLERANCE 50 >> TOLERANCEUNITS pixels >> >> and it correctly returns text query results with a large radius. I would >> note that if you are also testing through QGIS, there is a nasty 'feature' >> in the 2.x releases where I must manually delete my cache, if I want to see >> changes in any of my WMS services (for example, after I change my mapfile I >> must delete the contents of the QGIS cache folder). >> >> I am using MS4W 3.1.4 (MapServer 7.0.1). >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 2016-08-23 12:14 PM, Andrea Peri wrote: >>> >>> Hi, >>> I have a line dataset and need to allow an easy GetFeatureInfo over the >>> lines. >>> actually is extremely hard for an user to be able to click exactly >>> over the line and retrieve the Information of the feature. >>> >>> So I need to increase the tollerance to the point click. >>> I see from documentation that there is the two values: >>> "tolerance" and "tolerance units", >>> So i try to set both them >>> >>> TOLERANCE 10.0 >>> TOLERANCEUNITS pixels >>> >>> But no effect seem to have. >>> >>> Perhaps I understand wrongly to mean of "tolerance" >>> >>> Thx for every info. >>> >> >> >> From aperi2007 at gmail.com Wed Aug 24 03:58:06 2016 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 24 Aug 2016 12:58:06 +0200 Subject: [mapserver-users] GetFeatureInfo wrongly return Linestring instead of Multilinestring Message-ID: Hi, I have a line dataset and need to have a GetFeatureInfo response in GML. To force the return of kind MultiLinestring I set in the mapfile the two parameters: "gml_geometries" "GEOMETRY" "gml_GEOMETRY_type" "MULTILINESTRING" But it seem to have no effect. Infact when try to do a request like this: http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owsrisorseidriche&version=1.3.0&map_resolution=91&SERVICE=WMS&FORMAT=image%2Fpng&REQUEST=GetFeatureInfo&LAYERS=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt&QUERY_LAYERS=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt&STYLES=&FEATURE_COUNT=50&HEIGHT=583&WIDTH=1580&SRS=EPSG:3003&VERSION=1.1.1&TRANSPARENT=TRUE&X=921&Y=389&BBOX=1697920.3158407%2C4792974.7259495%2C1753220.4264409%2C4813309.7666195&INFO_FORMAT=text%2Fgml I have a set of feature where some are MultiLinestring but one is LINESTRING. Also the xsd has in it defined a geometrytype = LINESTRING instead of MultiLinestring. This cause a validation error in client because the XSD say "linestring", but the gml has multilinestring and linestrings results. Am I using wrongly the two parameters: "gml_geometries" "GEOMETRY" "gml_GEOMETRY_type" "MULTILINESTRING" or is an issue ? Thx for any info. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Jukka.Sirvio at mipro.fi Wed Aug 24 07:09:26 2016 From: Jukka.Sirvio at mipro.fi (=?iso-8859-1?Q?Jukka_Sirvi=F6?=) Date: Wed, 24 Aug 2016 14:09:26 +0000 Subject: [mapserver-users] mapcache question Message-ID: Hello, I would like to put a mapcache to be in the middle, in the following chain: 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? -Jukka ________________________________ T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. ________________________________ From tkirstine at firstbasesolutions.com Wed Aug 24 11:13:47 2016 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Wed, 24 Aug 2016 18:13:47 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: Message-ID: Jukka, According to the docs mapcache only support WMS as input. " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" If this is still true then your proposed chain will not work. MapProxy will support a tiled source and I know TMS works (not sure about WMTS) and handle the reprojection Regards -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jukka Sirvi? Sent: August-24-16 10:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapcache question Hello, I would like to put a mapcache to be in the middle, in the following chain: 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? -Jukka ________________________________ T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Aug 24 12:58:27 2016 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 24 Aug 2016 19:58:27 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: Message-ID: I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine Sent: Wednesday, August 24, 2016 1:14 PM To: Jukka Sirvi? ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache question Jukka, According to the docs mapcache only support WMS as input. " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" If this is still true then your proposed chain will not work. MapProxy will support a tiled source and I know TMS works (not sure about WMTS) and handle the reprojection Regards -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jukka Sirvi? Sent: August-24-16 10:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapcache question Hello, I would like to put a mapcache to be in the middle, in the following chain: 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? -Jukka ________________________________ T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kenheer1 at gmail.com Wed Aug 24 14:19:27 2016 From: kenheer1 at gmail.com (Kenny Heer) Date: Wed, 24 Aug 2016 16:19:27 -0500 Subject: [mapserver-users] Best way to join nonspatial attribute data to spatial PostGIS data Message-ID: Hello, Currently I have a shapefile that I am joining to some non-spatial MS SQL data via the DATA parameter of my Layer as so: CONNECTIONTYPE OGR CONNECTION "C:/PATH/TO/MY /SHAPEFILE.shp" DATA "SELECT shapefile.*, postgistable.commonid, postgistable.field2, postgistable.field3, postgistable.field4 FROM shapefile LEFT JOIN 'MSSQL:server=SQLServer\instancename;database=mydbase;UID=myuid;PWD=mypw;Tables=postgistable'.postgistable ON shapefile.commonid = postgistable.commonid" This works great but we want to move the data shapefile data into postgresql. I?ve tried adapting the above by replacing the parts referencing the shapefile to a standard PostGIS connection but that results in an error. I can successfully add the non-spatial MS SQL data to the layer via a JOIN, but I?m using the MS SQL data as the label for the layer and this doesn?t work with the Join. Is anyone else doing something similar or have any thoughts on how I could do this differently? Thanks in advance for any help, Kenneth Heer -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Aug 25 00:55:12 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 25 Aug 2016 09:55:12 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: References: Message-ID: Jukka, in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. -- thomas On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: > I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine > Sent: Wednesday, August 24, 2016 1:14 PM > To: Jukka Sirvi? ; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > Jukka, > > According to the docs mapcache only support WMS as input. > > " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" > > If this is still true then your proposed chain will not work. > > MapProxy will support a tiled source and I know TMS works (not sure about WMTS) and handle the reprojection > > Regards > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jukka Sirvi? > Sent: August-24-16 10:09 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapcache question > > > Hello, > I would like to put a mapcache to be in the middle, in the following chain: > > 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y > > Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? > > If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? > > > > -Jukka > > ________________________________ > > T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. > > This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. > > ________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tkirstine at firstbasesolutions.com Thu Aug 25 05:50:25 2016 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Thu, 25 Aug 2016 12:50:25 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: Message-ID: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: August-25-16 3:55 AM To: Lime, Steve D (MNIT) Cc: Travis Kirstine ; Jukka Sirvi? ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache question Jukka, in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. -- thomas On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: > I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] > On Behalf Of Travis Kirstine > Sent: Wednesday, August 24, 2016 1:14 PM > To: Jukka Sirvi? ; > mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > Jukka, > > According to the docs mapcache only support WMS as input. > > " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" > > If this is still true then your proposed chain will not work. > > MapProxy will support a tiled source and I know TMS works (not sure > about WMTS) and handle the reprojection > > Regards > > -----Original Message----- > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] > On Behalf Of Jukka Sirvi? > Sent: August-24-16 10:09 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapcache question > > > Hello, > I would like to put a mapcache to be in the middle, in the following chain: > > 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y > > Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? > > If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? > > > > -Jukka > > ________________________________ > > T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. > > This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. > > ________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Aug 25 05:55:46 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 25 Aug 2016 14:55:46 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> Message-ID: The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) -- thomas On 25 August 2016 at 14:50, Travis Kirstine wrote: > I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: August-25-16 3:55 AM > To: Lime, Steve D (MNIT) > Cc: Travis Kirstine ; Jukka Sirvi? ; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > Jukka, > in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. > > -- > thomas > > On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >> >> -----Original Message----- >> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Travis Kirstine >> Sent: Wednesday, August 24, 2016 1:14 PM >> To: Jukka Sirvi? ; >> mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> >> According to the docs mapcache only support WMS as input. >> >> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >> >> If this is still true then your proposed chain will not work. >> >> MapProxy will support a tiled source and I know TMS works (not sure >> about WMTS) and handle the reprojection >> >> Regards >> >> -----Original Message----- >> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Jukka Sirvi? >> Sent: August-24-16 10:09 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] mapcache question >> >> >> Hello, >> I would like to put a mapcache to be in the middle, in the following chain: >> >> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >> >> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >> >> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >> >> >> >> -Jukka >> >> ________________________________ >> >> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >> >> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >> >> ________________________________ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From tkirstine at firstbasesolutions.com Thu Aug 25 06:33:57 2016 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Thu, 25 Aug 2016 13:33:57 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> Message-ID: <9f7f9eaa9f7342acb1698a65cc3b0a43@MBX12B-IAD3.mex08.mlsrvr.com> Unrelated question: Can mapcache handle multiple srs in a WMS service (out)? -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: August-25-16 8:56 AM To: Travis Kirstine Cc: Lime, Steve D (MNIT) ; Jukka Sirvi? ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache question The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) -- thomas On 25 August 2016 at 14:50, Travis Kirstine wrote: > I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: August-25-16 3:55 AM > To: Lime, Steve D (MNIT) > Cc: Travis Kirstine ; Jukka Sirvi? > ; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > Jukka, > in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. > > -- > thomas > > On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >> >> -----Original Message----- >> From: mapserver-users >> [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Travis Kirstine >> Sent: Wednesday, August 24, 2016 1:14 PM >> To: Jukka Sirvi? ; >> mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> >> According to the docs mapcache only support WMS as input. >> >> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >> >> If this is still true then your proposed chain will not work. >> >> MapProxy will support a tiled source and I know TMS works (not sure >> about WMTS) and handle the reprojection >> >> Regards >> >> -----Original Message----- >> From: mapserver-users >> [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Jukka Sirvi? >> Sent: August-24-16 10:09 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] mapcache question >> >> >> Hello, >> I would like to put a mapcache to be in the middle, in the following chain: >> >> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >> >> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >> >> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >> >> >> >> -Jukka >> >> ________________________________ >> >> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >> >> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >> >> ________________________________ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Aug 25 06:58:46 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 25 Aug 2016 10:58:46 -0300 Subject: [mapserver-users] FOSS4G presentation live stream Message-ID: <3b4df854-c8a3-9922-d811-8132ef94953e@gatewaygeomatics.com> The State of MapServer project presentation (from FOSS4G Bonn) will be live streaming now at https://streaming.media.ccc.de/foss4g-2016/plenary-chamber/ (if you miss that, you can find it later on http://video.foss4g.org/) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From amargaritis at dotsoft.gr Fri Aug 26 01:48:32 2016 From: amargaritis at dotsoft.gr (Argyris Margaritis) Date: Fri, 26 Aug 2016 11:48:32 +0300 Subject: [mapserver-users] PHP MapScript Installation Message-ID: Hi everyone, I'm trying to follow the installation steps for the PHP version of MapScript, however I'm a bit confused as many of the guides date back to php3. Currently I was using the following docker image for my tests, which was working fine as it is: https://github.com/kartoza/docker-mapserver However, to enable PHP MapScript I think I've had to add the following to thesetup.sh as a cmake option: -DWITH_PHP=1 This resulted in the following error during build: CMake Error at mapscript/php/CMakeLists.txt:31 (install): install TARGETS given no LIBRARY DESTINATION for module target "php_mapscript". How should I pass the PHP5_EXTENSION_DIR to cmake? Thanks in advance, Argyris -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Aug 27 05:58:19 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 27 Aug 2016 09:58:19 -0300 Subject: [mapserver-users] PHP MapScript Installation In-Reply-To: References: Message-ID: <25cbee22-75d7-5e4a-b4a2-a62fc00b6369@gatewaygeomatics.com> Hello Argyris, I package PHPMapScript for Windows users (for the MS4W community), but I have long faced your same problem. In fact, because of the status of cmake when trying to build all of the mapscripts, I am forced to maintain custom makefiles, so that PHP and all other mapscript types (Python, CSharp) can compile. This doesn't help your question, at all, but, since I have long been in your exact shoes, I can tell you what I have found out (and hopefully others can respond as well): - I closely examined each "FindXX.cmake" file in the MapServer source, to try to understand how cmake tries to find these settings - for PHPmapscript, the magic lives at https://github.com/mapserver/mapserver/blob/branch-7-0/cmake/FindPHP5.cmake I believe these settings are needed, in your cmake call: -DWITH_PHP=1 -DPHP5_INCLUDE_PATH="your/path" -DPHP5_EXECUTABLE="your/path" -DPHP5_EXTENSION_DIR="your/path" Maybe since we are all at the MapServer code sprint now, this is a good time to tackle these mapscript cmake issues. It has been a big headache for me, maintaining custom makefiles so that mapscripts can compile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-26 5:48 AM, Argyris Margaritis wrote: > Hi everyone, > > I'm trying to follow the installation steps for the PHP version of > MapScript, however I'm a bit confused as many of the guides date back to > php3. > > Currently I was using the following docker image for my tests, which was > working fine as it is: > > https://github.com/kartoza/docker-mapserver > > > However, to enable PHP MapScript I think I've had to add the > following to thesetup.sh > as a > cmake option: > > -DWITH_PHP=1 > > > This resulted in the following error during build: > > CMake Error at mapscript/php/CMakeLists.txt:31 (install): > install TARGETS given no LIBRARY DESTINATION for module target > "php_mapscript". > > > How should I pass the PHP5_EXTENSION_DIR to cmake? > > Thanks in advance, > Argyris > > From jmckenna at gatewaygeomatics.com Sat Aug 27 06:21:56 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 27 Aug 2016 10:21:56 -0300 Subject: [mapserver-users] PHP MapScript Installation In-Reply-To: References: Message-ID: <1388033c-9468-f3a7-6fd8-4630163e4690@gatewaygeomatics.com> I'll try to see if I can get PHPMapScript to compile with cmake, since I am "code-sprinting", and file a ticket. I believe I am stuck on this because I am on Windows (see the many hardcoded unix paths in FindPHP.cmake). I'll do my best to see if I can stop having to use custom makes. If anyone else can help please let me know. -jeff On 2016-08-26 5:48 AM, Argyris Margaritis wrote: > Hi everyone, > > I'm trying to follow the installation steps for the PHP version of > MapScript, however I'm a bit confused as many of the guides date back to > php3. > > Currently I was using the following docker image for my tests, which was > working fine as it is: > > https://github.com/kartoza/docker-mapserver > > > However, to enable PHP MapScript I think I've had to add the > following to thesetup.sh > as a > cmake option: > > -DWITH_PHP=1 > > > This resulted in the following error during build: > > CMake Error at mapscript/php/CMakeLists.txt:31 (install): > install TARGETS given no LIBRARY DESTINATION for module target > "php_mapscript". > > > How should I pass the PHP5_EXTENSION_DIR to cmake? > > Thanks in advance, > Argyris > > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From thomas.bonfort at gmail.com Sat Aug 27 06:35:39 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 27 Aug 2016 15:35:39 +0200 Subject: [mapserver-users] PHP MapScript Installation In-Reply-To: References: Message-ID: you probably need to install the php-dev packages, and/or make sure the php-config binary is accessible as that is the one providing the extension dir location -- thomas On 26 August 2016 at 10:48, Argyris Margaritis wrote: > Hi everyone, > > I'm trying to follow the installation steps for the PHP version of > MapScript, however I'm a bit confused as many of the guides date back to > php3. > > Currently I was using the following docker image for my tests, which was > working fine as it is: > > https://github.com/kartoza/docker-mapserver > > However, to enable PHP MapScript I think I've had to add the following to > thesetup.sh as a cmake option: > > -DWITH_PHP=1 > > > This resulted in the following error during build: > > CMake Error at mapscript/php/CMakeLists.txt:31 (install): > install TARGETS given no LIBRARY DESTINATION for module target > "php_mapscript". > > > How should I pass the PHP5_EXTENSION_DIR to cmake? > > Thanks in advance, > Argyris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ankuriimt at gmail.com Sat Aug 27 11:45:19 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Sun, 28 Aug 2016 00:15:19 +0530 Subject: [mapserver-users] Uncaught exception error Message-ID: Dear All, how to shot out below error Uncaught exception 'MapScriptException' with message 'mapObj::setExtent() expects parameter 1 to be double -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Aug 27 11:53:08 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 27 Aug 2016 15:53:08 -0300 Subject: [mapserver-users] Uncaught exception error In-Reply-To: References: Message-ID: <24cade26-f05b-0ceb-fb6a-5978896c6742@gatewaygeomatics.com> The setExtent() method in mapscript requires commas between the coordinates, such as: setExtent( minx, miny, maxx, maxy ) Please verify your usage, maybe include your setExtent command here for everyone. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2016-08-27 3:45 PM, ankur chitranshi wrote: > Dear All, > how to shot out below error > From Jukka.Sirvio at mipro.fi Sun Aug 28 10:45:35 2016 From: Jukka.Sirvio at mipro.fi (=?utf-8?B?SnVra2EgU2lydmnDtg==?=) Date: Sun, 28 Aug 2016 17:45:35 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> Message-ID: <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> Hi, Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? Need some hint's how to proceed? Thank's in advance! -Jukka -----Alkuper?inen viesti----- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 25. elokuuta 2016 15:56 Vastaanottaja: Travis Kirstine Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapcache question The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) -- thomas On 25 August 2016 at 14:50, Travis Kirstine wrote: > I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: August-25-16 3:55 AM > To: Lime, Steve D (MNIT) > Cc: Travis Kirstine ; Jukka Sirvi? > ; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > Jukka, > in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. > > -- > thomas > > On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >> >> -----Original Message----- >> From: mapserver-users >> [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Travis Kirstine >> Sent: Wednesday, August 24, 2016 1:14 PM >> To: Jukka Sirvi? ; >> mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> >> According to the docs mapcache only support WMS as input. >> >> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >> >> If this is still true then your proposed chain will not work. >> >> MapProxy will support a tiled source and I know TMS works (not sure >> about WMTS) and handle the reprojection >> >> Regards >> >> -----Original Message----- >> From: mapserver-users >> [mailto:mapserver-users-bounces at lists.osgeo.org] >> On Behalf Of Jukka Sirvi? >> Sent: August-24-16 10:09 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] mapcache question >> >> >> Hello, >> I would like to put a mapcache to be in the middle, in the following chain: >> >> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >> >> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >> >> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >> >> >> >> -Jukka >> >> ________________________________ >> >> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >> >> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >> >> ________________________________ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Sun Aug 28 13:51:22 2016 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 28 Aug 2016 17:51:22 -0300 Subject: [mapserver-users] mapcache question In-Reply-To: <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> Message-ID: On 2016-08-28 2:45 PM, Jukka Sirvi? wrote: > > Hi, > Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. > > Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: > > AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: > failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? > > Need some hint's how to proceed? Thank's in advance! > Hello, The MS4W installer for Windows users is a good reference for Apache's configuration with MapCache, you could download it and review httpd.conf (and its mapcache.xml) or just see the config steps at: http://ms4w.com/README_INSTALL.html#g-mapcache-apache-module -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ankuriimt at gmail.com Sun Aug 28 23:21:34 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Mon, 29 Aug 2016 11:51:34 +0530 Subject: [mapserver-users] Uncaught exception 'MapScriptException' Message-ID: Dear All, How to resolve this error, *Fatal error*: Uncaught exception 'MapScriptException' with message 'mapObj::setExtent() expects parameter 1 to be double, string given' in C:\ms4w\Apache\htdocs\indore\index.php:26 Stack trace: #0 C:\ms4w\Apache\htdocs\indore\index.php(26): mapObj->setExtent('minx', 'miny', 'maxx', 'maxy') #1 C:\ms4w\Apache\htdocs\indore\index.php(386): zoom1(Object(mapObj), Array, -2, -1) #2 {main} thrown in *C:\ms4w\Apache\htdocs\indore\index.php* on line *26* *my code is * *$map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);$my_point = ms_newpointObj();$my_point->setXY($_POST["map_x"],$_POST["map_y"]);$my_extent = ms_newrectObj();$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);if($zoom!=2)$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent);* -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Aug 29 01:43:05 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 29 Aug 2016 10:43:05 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> Message-ID: As the error message says, your xml is invalid (any text editor with syntax highlighting will help you). This is not related to mapcache itself. -- thomas On 28 August 2016 at 19:45, Jukka Sirvi? wrote: > > Hi, > Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. > > Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: > > AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: > failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? > > Need some hint's how to proceed? Thank's in advance! > > > -Jukka > > > > > -----Alkuper?inen viesti----- > L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] > L?hetetty: 25. elokuuta 2016 15:56 > Vastaanottaja: Travis Kirstine > Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) > > -- > thomas > > On 25 August 2016 at 14:50, Travis Kirstine wrote: >> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: August-25-16 3:55 AM >> To: Lime, Steve D (MNIT) >> Cc: Travis Kirstine ; Jukka Sirvi? >> ; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >> >> -- >> thomas >> >> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Travis Kirstine >>> Sent: Wednesday, August 24, 2016 1:14 PM >>> To: Jukka Sirvi? ; >>> mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> >>> According to the docs mapcache only support WMS as input. >>> >>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>> >>> If this is still true then your proposed chain will not work. >>> >>> MapProxy will support a tiled source and I know TMS works (not sure >>> about WMTS) and handle the reprojection >>> >>> Regards >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Jukka Sirvi? >>> Sent: August-24-16 10:09 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] mapcache question >>> >>> >>> Hello, >>> I would like to put a mapcache to be in the middle, in the following chain: >>> >>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>> >>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>> >>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>> >>> >>> >>> -Jukka >>> >>> ________________________________ >>> >>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>> >>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>> >>> ________________________________ >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Mon Aug 29 01:45:59 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 29 Aug 2016 10:45:59 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: <9f7f9eaa9f7342acb1698a65cc3b0a43@MBX12B-IAD3.mex08.mlsrvr.com> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9f7f9eaa9f7342acb1698a65cc3b0a43@MBX12B-IAD3.mex08.mlsrvr.com> Message-ID: There's no on the fly reprojection of an exisiting cache, so to be able to serve the same tileset/layer under multiple SRSs you'll need to have one cache per srs/grid. -- thomas On 25 August 2016 at 15:33, Travis Kirstine wrote: > Unrelated question: Can mapcache handle multiple srs in a WMS service (out)? > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: August-25-16 8:56 AM > To: Travis Kirstine > Cc: Lime, Steve D (MNIT) ; Jukka Sirvi? ; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache question > > The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) > > -- > thomas > > On 25 August 2016 at 14:50, Travis Kirstine wrote: >> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: August-25-16 3:55 AM >> To: Lime, Steve D (MNIT) >> Cc: Travis Kirstine ; Jukka Sirvi? >> ; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >> >> -- >> thomas >> >> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Travis Kirstine >>> Sent: Wednesday, August 24, 2016 1:14 PM >>> To: Jukka Sirvi? ; >>> mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> >>> According to the docs mapcache only support WMS as input. >>> >>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>> >>> If this is still true then your proposed chain will not work. >>> >>> MapProxy will support a tiled source and I know TMS works (not sure >>> about WMTS) and handle the reprojection >>> >>> Regards >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Jukka Sirvi? >>> Sent: August-24-16 10:09 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] mapcache question >>> >>> >>> Hello, >>> I would like to put a mapcache to be in the middle, in the following chain: >>> >>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>> >>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>> >>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>> >>> >>> >>> -Jukka >>> >>> ________________________________ >>> >>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>> >>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>> >>> ________________________________ >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users From no-reply at neogeo-online.net Mon Aug 29 06:51:13 2016 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Mon, 29 Aug 2016 15:51:13 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> Message-ID: <0eb88740-50b2-96ed-d8b1-753463dd805c@neogeo-online.net> Hi, Actually it just says there is an error in your mapcache.xml file (or maybe apache can't even access/read it). Check the files rights, check the file itself, and you should find what the problem is. Best regards Guillaume Le 28/08/2016 ? 19:45, Jukka Sirvi? a ?crit : > > Hi, > Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. > > Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: > > AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: > failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? > > Need some hint's how to proceed? Thank's in advance! > > > -Jukka > > > > > -----Alkuper?inen viesti----- > L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] > L?hetetty: 25. elokuuta 2016 15:56 > Vastaanottaja: Travis Kirstine > Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > The reprojection is done inside MapCache, i.e. as a client of the original tiles. You don't need an additional WMS :) > > -- > thomas > > On 25 August 2016 at 14:50, Travis Kirstine wrote: >> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: August-25-16 3:55 AM >> To: Lime, Steve D (MNIT) >> Cc: Travis Kirstine ; Jukka Sirvi? >> ; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >> >> -- >> thomas >> >> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Travis Kirstine >>> Sent: Wednesday, August 24, 2016 1:14 PM >>> To: Jukka Sirvi? ; >>> mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> >>> According to the docs mapcache only support WMS as input. >>> >>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>> >>> If this is still true then your proposed chain will not work. >>> >>> MapProxy will support a tiled source and I know TMS works (not sure >>> about WMTS) and handle the reprojection >>> >>> Regards >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Jukka Sirvi? >>> Sent: August-24-16 10:09 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] mapcache question >>> >>> >>> Hello, >>> I would like to put a mapcache to be in the middle, in the following chain: >>> >>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>> >>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>> >>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>> >>> >>> >>> -Jukka >>> >>> ________________________________ >>> >>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>> >>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>> >>> ________________________________ >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From boolean10001 at yahoo.com Mon Aug 29 11:22:35 2016 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 29 Aug 2016 18:22:35 +0000 (UTC) Subject: [mapserver-users] Uncaught exception 'MapScriptException' In-Reply-To: References: Message-ID: <2133518144.1559909.1472494955869@mail.yahoo.com> Ankur, Did you check the values that the $extent_to_set array have ? Are they numbers ? Because the error message explains "mapObj::setExtent() expects parameter 1 to be double, string given". From: ankur chitranshi To: mapserver-users Sent: Monday, August 29, 2016 1:21 AM Subject: [mapserver-users] Uncaught exception 'MapScriptException' Dear All, How to resolve this error, Fatal error: Uncaught exception 'MapScriptException' with message 'mapObj::setExtent() expects parameter 1 to be double, string given' in C:\ms4w\Apache\htdocs\indore\index.php:26Stack trace:#0 C:\ms4w\Apache\htdocs\indore\index.php(26): mapObj->setExtent('minx', 'miny', 'maxx', 'maxy')#1 C:\ms4w\Apache\htdocs\indore\index.php(386): zoom1(Object(mapObj), Array, -2, -1)#2 {main} thrown in C:\ms4w\Apache\htdocs\indore\index.php on line 26 my code is? $map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);$my_point = ms_newpointObj(); $my_point->setXY($_POST["map_x"],$_POST["map_y"]);$my_extent = ms_newrectObj();$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);if($zoom!=2)$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); _______________________________________________ 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.Sirvio at mipro.fi Tue Aug 30 03:11:20 2016 From: Jukka.Sirvio at mipro.fi (=?utf-8?B?SnVra2EgU2lydmnDtg==?=) Date: Tue, 30 Aug 2016 10:11:20 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: <0eb88740-50b2-96ed-d8b1-753463dd805c@neogeo-online.net> References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> <0eb88740-50b2-96ed-d8b1-753463dd805c@neogeo-online.net> Message-ID: file and directory rights should be ok, mapcache.xml is the demo file included in master. of-course, have tried this with quite a lot of ways without success, starting to feel numb. -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Guillaume Sueur L?hetetty: 29. elokuuta 2016 16:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapcache question Hi, Actually it just says there is an error in your mapcache.xml file (or maybe apache can't even access/read it). Check the files rights, check the file itself, and you should find what the problem is. Best regards Guillaume Le 28/08/2016 ? 19:45, Jukka Sirvi? a ?crit : > > Hi, > Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. > > Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: > > AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: > failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? > > Need some hint's how to proceed? Thank's in advance! > > > -Jukka > > > > > -----Alkuper?inen viesti----- > L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] > L?hetetty: 25. elokuuta 2016 15:56 > Vastaanottaja: Travis Kirstine > Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; > mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > The reprojection is done inside MapCache, i.e. as a client of the > original tiles. You don't need an additional WMS :) > > -- > thomas > > On 25 August 2016 at 14:50, Travis Kirstine wrote: >> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: August-25-16 3:55 AM >> To: Lime, Steve D (MNIT) >> Cc: Travis Kirstine ; Jukka Sirvi? >> ; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache question >> >> Jukka, >> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >> >> -- >> thomas >> >> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Travis Kirstine >>> Sent: Wednesday, August 24, 2016 1:14 PM >>> To: Jukka Sirvi? ; >>> mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> >>> According to the docs mapcache only support WMS as input. >>> >>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>> >>> If this is still true then your proposed chain will not work. >>> >>> MapProxy will support a tiled source and I know TMS works (not sure >>> about WMTS) and handle the reprojection >>> >>> Regards >>> >>> -----Original Message----- >>> From: mapserver-users >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>> On Behalf Of Jukka Sirvi? >>> Sent: August-24-16 10:09 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] mapcache question >>> >>> >>> Hello, >>> I would like to put a mapcache to be in the middle, in the following chain: >>> >>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>> >>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>> >>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>> >>> >>> >>> -Jukka >>> >>> ________________________________ >>> >>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>> >>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>> >>> ________________________________ >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue Aug 30 03:19:17 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Aug 2016 12:19:17 +0200 Subject: [mapserver-users] mapcache question In-Reply-To: References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> <0eb88740-50b2-96ed-d8b1-753463dd805c@neogeo-online.net> Message-ID: The demo file in master parses correctly. Again, if you're having an issue it is either because you have made invalid (in the xml sense) modifications to it, or that your apache user doesn't have access rights to it (or to the directories above it). -- thomas On 30 August 2016 at 12:11, Jukka Sirvi? wrote: > > file and directory rights should be ok, mapcache.xml is the demo file included in master. > of-course, have tried this with quite a lot of ways without success, starting to feel numb. > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Guillaume Sueur > L?hetetty: 29. elokuuta 2016 16:51 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > Hi, > > Actually it just says there is an error in your mapcache.xml file (or maybe apache can't even access/read it). Check the files rights, check the file itself, and you should find what the problem is. > > Best regards > > Guillaume > > Le 28/08/2016 ? 19:45, Jukka Sirvi? a ?crit : >> >> Hi, >> Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. >> >> Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: >> >> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: >> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? >> >> Need some hint's how to proceed? Thank's in advance! >> >> >> -Jukka >> >> >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> L?hetetty: 25. elokuuta 2016 15:56 >> Vastaanottaja: Travis Kirstine >> Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; >> mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] mapcache question >> >> The reprojection is done inside MapCache, i.e. as a client of the >> original tiles. You don't need an additional WMS :) >> >> -- >> thomas >> >> On 25 August 2016 at 14:50, Travis Kirstine wrote: >>> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >>> >>> -----Original Message----- >>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sent: August-25-16 3:55 AM >>> To: Lime, Steve D (MNIT) >>> Cc: Travis Kirstine ; Jukka Sirvi? >>> ; mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >>> >>> -- >>> thomas >>> >>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>>> >>>> -----Original Message----- >>>> From: mapserver-users >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>>> On Behalf Of Travis Kirstine >>>> Sent: Wednesday, August 24, 2016 1:14 PM >>>> To: Jukka Sirvi? ; >>>> mapserver-users at lists.osgeo.org >>>> Subject: Re: [mapserver-users] mapcache question >>>> >>>> Jukka, >>>> >>>> According to the docs mapcache only support WMS as input. >>>> >>>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>>> >>>> If this is still true then your proposed chain will not work. >>>> >>>> MapProxy will support a tiled source and I know TMS works (not sure >>>> about WMTS) and handle the reprojection >>>> >>>> Regards >>>> >>>> -----Original Message----- >>>> From: mapserver-users >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>>> On Behalf Of Jukka Sirvi? >>>> Sent: August-24-16 10:09 AM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] mapcache question >>>> >>>> >>>> Hello, >>>> I would like to put a mapcache to be in the middle, in the following chain: >>>> >>>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>>> >>>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>>> >>>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>>> >>>> >>>> >>>> -Jukka >>>> >>>> ________________________________ >>>> >>>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>>> >>>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>>> >>>> ________________________________ >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Sirvio at mipro.fi Tue Aug 30 05:32:00 2016 From: Jukka.Sirvio at mipro.fi (=?utf-8?B?SnVra2EgU2lydmnDtg==?=) Date: Tue, 30 Aug 2016 12:32:00 +0000 Subject: [mapserver-users] mapcache question In-Reply-To: References: <297d5f08aa854c089456bd6fa0d09853@MBX12B-IAD3.mex08.mlsrvr.com> <9179015c965944b3a6b9ade162825d52@MIPROEXCH01.mipro.local> <0eb88740-50b2-96ed-d8b1-753463dd805c@neogeo-online.net> Message-ID: <25a169f9edff4b4199561f485d9af322@MIPROEXCH01.mipro.local> I was not able to solve the problems on fresh CentOS 7 environment with all the latest libraries/dependencies included. on old test environment, I did upgrade/build to gdal 2.1.1 and also latest mapcache master. this environment is working as one would expect according given instructions in http://mapserver.org/mapcache/install.html. so basically now I'm back on the already achieved square 1, with that difference, that the versions of mapcache and gdal are upgraded. ==> now I'm able to proceed with Thomas suggestion with GDAL data source and GDAL WMTS driver. From this point of view, this post is completed, thus, more questions will come! Thanks for patience.. -----Alkuper?inen viesti----- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 30. elokuuta 2016 13:19 Vastaanottaja: Jukka Sirvi? Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapcache question The demo file in master parses correctly. Again, if you're having an issue it is either because you have made invalid (in the xml sense) modifications to it, or that your apache user doesn't have access rights to it (or to the directories above it). -- thomas On 30 August 2016 at 12:11, Jukka Sirvi? wrote: > > file and directory rights should be ok, mapcache.xml is the demo file included in master. > of-course, have tried this with quite a lot of ways without success, starting to feel numb. > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Guillaume > Sueur > L?hetetty: 29. elokuuta 2016 16:51 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] mapcache question > > Hi, > > Actually it just says there is an error in your mapcache.xml file (or maybe apache can't even access/read it). Check the files rights, check the file itself, and you should find what the problem is. > > Best regards > > Guillaume > > Le 28/08/2016 ? 19:45, Jukka Sirvi? a ?crit : >> >> Hi, >> Thank you all for good answers and suggestions, Thomas proposal, is more or less, ideal solution for me. >> >> Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. error message is: >> >> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf: >> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML? >> >> Need some hint's how to proceed? Thank's in advance! >> >> >> -Jukka >> >> >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> L?hetetty: 25. elokuuta 2016 15:56 >> Vastaanottaja: Travis Kirstine >> Kopio: Lime, Steve D (MNIT); Jukka Sirvi?; >> mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] mapcache question >> >> The reprojection is done inside MapCache, i.e. as a client of the >> original tiles. You don't need an additional WMS :) >> >> -- >> thomas >> >> On 25 August 2016 at 14:50, Travis Kirstine wrote: >>> I believe that there still would be an issue as the reprojection from X to Y, the reprojection would need to be done on the source WMTS side. I guess you could proxy the source WMTS using mapserver with the gdal mini driver and reproject to create a WMS to feed mapcache? >>> >>> -----Original Message----- >>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sent: August-25-16 3:55 AM >>> To: Lime, Steve D (MNIT) >>> Cc: Travis Kirstine ; Jukka Sirvi? >>> ; mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache question >>> >>> Jukka, >>> in master, there is also support for any GDAL dataset as a mapcache source (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles on the fly. >>> >>> -- >>> thomas >>> >>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) wrote: >>>> I would think reprojection of individual tiles into another set of tiles that would stitch back together without artifacts would be difficult. I thought MapCache did support native MapServer mode=map as a source which could useful if GDAL supports WMTS and you could create a corresponding MapServer layer. >>>> >>>> -----Original Message----- >>>> From: mapserver-users >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>>> On Behalf Of Travis Kirstine >>>> Sent: Wednesday, August 24, 2016 1:14 PM >>>> To: Jukka Sirvi? ; >>>> mapserver-users at lists.osgeo.org >>>> Subject: Re: [mapserver-users] mapcache question >>>> >>>> Jukka, >>>> >>>> According to the docs mapcache only support WMS as input. >>>> >>>> " A source is a service mod-mapcache can query to obtain image data. This is typically a WMS server accessible by a URL. (There are currently no sources other than WMS implemented, though others may be added later if the need arises)" >>>> >>>> If this is still true then your proposed chain will not work. >>>> >>>> MapProxy will support a tiled source and I know TMS works (not >>>> sure about WMTS) and handle the reprojection >>>> >>>> Regards >>>> >>>> -----Original Message----- >>>> From: mapserver-users >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] >>>> On Behalf Of Jukka Sirvi? >>>> Sent: August-24-16 10:09 AM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] mapcache question >>>> >>>> >>>> Hello, >>>> I would like to put a mapcache to be in the middle, in the following chain: >>>> >>>> 1) original wmts service in local/national crs x --> 2) mapcache wmts, reprojection to world-wide crs y (3857) --> 3) user interface (OpenLayers v2, Qgis), also in crs y >>>> >>>> Mapcache was compiled, and is working a-ok with demo data. But I have trouble to configure mapcache to work as a part in the above chain. As planned, Mapcache should work as a WMTS client down towards target 1 and WMTS server up against target 3, ie. kind of a proxy with crs reprojection and basic auth. Anyway, does this make any sense at all, or is the draft totally irrational? >>>> >>>> If the draft is reasonable, could you give some hints on how to proceed related to configuration with mapcache.xml? >>>> >>>> >>>> >>>> -Jukka >>>> >>>> ________________________________ >>>> >>>> T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. >>>> >>>> This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. >>>> >>>> ________________________________ >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Sirvio at mipro.fi Tue Aug 30 05:34:09 2016 From: Jukka.Sirvio at mipro.fi (=?iso-8859-1?Q?Jukka_Sirvi=F6?=) Date: Tue, 30 Aug 2016 12:34:09 +0000 Subject: [mapserver-users] mapcache, datasources examples Message-ID: http://mapserver.org/mapcache/sources.html It would be nice to have some examples for example on GDAL (wmts) datasource on above page? currently only WMS datasource is included. Would it? ________________________________ T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. This message (including any attachments) may contain confidential information intended for the person or entity to which it is addressed. If you are not the intended recipient, notify the sender and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. ________________________________ From thomas.bonfort at gmail.com Tue Aug 30 05:38:12 2016 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Aug 2016 14:38:12 +0200 Subject: [mapserver-users] mapcache, datasources examples In-Reply-To: References: Message-ID: there is not documentation yet, feel free to submit some... this should get you started: /path/to/gdal/file On 30 August 2016 at 14:34, Jukka Sirvi? wrote: > > http://mapserver.org/mapcache/sources.html > > It would be nice to have some examples for example on GDAL (wmts) datasource on above page? currently only WMS datasource is included. > > Would it? > > > > > > ________________________________ > > T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista tietoa, joka on tarkoitettu > vain vastaanottajalleen. Jos et ole oikea vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta > virheest? ja tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu > k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. > > This message (including any attachments) may contain confidential information intended for > the person or entity to which it is addressed. If you are not the intended recipient, notify the > sender and delete this message immediately. Notice that disclosing, copying, distributing or any > other use of the message and its information, or taking any action based on it, is strictly prohibited. > > ________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tkirstine at firstbasesolutions.com Tue Aug 30 13:04:23 2016 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Tue, 30 Aug 2016 20:04:23 +0000 Subject: [mapserver-users] mapcache error -1 on seeding transfer Message-ID: When running mapcache in transfer mode I will sometimes get a failed transfer like this: Retry 1 in riak_has_tile for tile gmaps-20-293584-667321 from cache riak due to error -1 What is error -1? Is it possible to restart the transfer from the last failed tile? The logging (-L) of the failed transfer doesn't appear to work for this type of failure Travis Kirstine Project Supervisor 140 Renfrew Drive, Suite 100 Markham, Ontario L3R 6B3 Canada [cid:image003.png at 01D202D8.298354F0] T: 905.477.3600 Ext 267 | C: 647 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3026 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 5584 bytes Desc: image003.png URL: From Jukka.Sirvio at mipro.fi Wed Aug 31 02:35:54 2016 From: Jukka.Sirvio at mipro.fi (=?utf-8?B?SnVra2EgU2lydmnDtg==?=) Date: Wed, 31 Aug 2016 09:35:54 +0000 Subject: [mapserver-users] mapcache, datasources examples In-Reply-To: References: Message-ID: thanks, I did make a pull request #156 concerning discussed documentation. after adding the new source to mapcache.xml, httpd is starting ok, and mapcache is able to read the new gdal_wmts.xml file, but the demo app is not responding anymore. -----Alkuper?inen viesti----- L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] L?hetetty: 30. elokuuta 2016 15:38 Vastaanottaja: Jukka Sirvi? Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] mapcache, datasources examples there is not documentation yet, feel free to submit some... this should get you started: /path/to/gdal/file On 30 August 2016 at 14:34, Jukka Sirvi? wrote: > > http://mapserver.org/mapcache/sources.html > > It would be nice to have some examples for example on GDAL (wmts) datasource on above page? currently only WMS datasource is included. > > Would it? > > > > > > ________________________________ > > T?m? s?hk?postiviesti (liitteineen) saattaa sis?lt?? luottamuksellista > tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea > vastaanottaja, ilmoita viestin l?hett?j?lle tapahtuneesta virheest? ja > tuhoa viesti v?litt?m?sti. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu k?ytt? tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty. > > This message (including any attachments) may contain confidential > information intended for the person or entity to which it is > addressed. If you are not the intended recipient, notify the sender > and delete this message immediately. Notice that disclosing, copying, distributing or any other use of the message and its information, or taking any action based on it, is strictly prohibited. > > ________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Wed Aug 31 13:47:27 2016 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 31 Aug 2016 20:47:27 +0000 Subject: [mapserver-users] Trouble with UNC path to shared drive Message-ID: I am trying to create a WMS of imagery. The images are on a shared, mapped drive. I know that using Windows mapped drive letters will not work (it's a Windows server with Apache, MS4W 3.0.6). I can't get the service to recognize the location. I get error messages for "Corrupt, empty or missing file..." I've tried several formats: \\machine_unc_name\share\path\data \machine_unc_name\share\path\data \share\path\data -several variations but none worked. Any suggestions? Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbrown at al811.com Wed Aug 31 18:55:34 2016 From: mbrown at al811.com (Matt Brown) Date: Thu, 01 Sep 2016 01:55:34 +0000 Subject: [mapserver-users] Trouble with UNC path to shared drive In-Reply-To: References: Message-ID: Bob, If I remember correctly three slashes on the front should do it: \\\machine_unc_name\share\path\data Matt On Wed, Aug 31, 2016 at 4:06 PM Bistrais, Bob wrote: > I am trying to create a WMS of imagery. The images are on a shared, > mapped drive. I know that using Windows mapped drive letters will not work > (it?s a Windows server with Apache, MS4W 3.0.6). I can?t get the service > to recognize the location. I get error messages for ?Corrupt, empty or > missing file?? > > > > I?ve tried several formats: > > \\machine_unc_name\share\path\data > > > > \machine_unc_name\share\path\data > > > > \share\path\data > > > > -several variations but none worked. Any suggestions? > > > > Thanks, > > Bob > _______________________________________________ > 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 ankuriimt at gmail.com Wed Aug 31 23:32:54 2016 From: ankuriimt at gmail.com (ankur chitranshi) Date: Thu, 1 Sep 2016 12:02:54 +0530 Subject: [mapserver-users] MapScriptException Message-ID: Dear All, How to resolve this error, *Fatal error*: Uncaught exception 'MapScriptException' with message 'mapObj::setExtent() expects parameter 1 to be double, string given' in C:\ms4w\Apache\htdocs\indore\index.php:26 Stack trace: #0 C:\ms4w\Apache\htdocs\indore\index.php(26): mapObj->setExtent('minx', 'miny', 'maxx', 'maxy') #1 C:\ms4w\Apache\htdocs\indore\index.php(386): zoom1(Object(mapObj), Array, -2, -1) #2 {main} thrown in *C:\ms4w\Apache\htdocs\indore\index.php* on line *26* *my code is * *$map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);$my_point = ms_newpointObj();$my_point->setXY($_POST["map_x"],$_POST["map_y"]);$my_extent = ms_newrectObj();$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);if($zoom!=2)$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent);* -------------- next part -------------- An HTML attachment was scrubbed... URL: