From emperor_stef at yahoo.gr Sun Jun 1 12:31:45 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Sun, 1 Jun 2014 20:31:45 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIE1hcHNlcnZlciBjYW4ndCBy?= =?iso-8859-7?q?ead_mapfile?= In-Reply-To: <52F90271.40806@gatewaygeomatics.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> Message-ID: <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> Hi Jeff, I came to this old post once again and I tried the above mentioned. shp2img still produces an image which is blank or whatever the color of the mapfile is defined. On the other hand I checked the EXTENT once again and it was wrong so I changed to the appropriate one (EXTENT 17.00 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be fine. If STATUS is set to default or On there's no difference. I also changed TYPE to line and polygon just to be sure but nothing.? My shapefile is a polygon with boundaries. ?Why wouldn't it appear on the browser? Thanks again and I'm sorry for writing about it so late. Stefanos ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna ??????: Hi sorry long thread and I bet this has already been said, but here were my thoughts when I read your problems: - always test your mapfile at the commandline first, using the shp2img utility (http://mapserver.org/utilities/shp2img.html).? Once your layers look find there in the generated map image then move to your application - if using MapServer CGI (mode=map), a blank map often means you are not specifically telling MapServer to turn on layers; try adding &LAYERS=all - or setting each of your layer's STATUS values to DEFAULT might work (but this can cause lots of trouble later, so this is not often recommended) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: > Hello!! > > I'am having my mapfile place in /home/mapdata folder whereas I also keep > a couple of other mapfiles too. > I'm trying to load it in the following form on the > browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map > > and all I get is a blank page. No errors no nothing. > > Then I created an html template in order to click it from there by > creating a simple link (and not a from) in the following hyperlink:? href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> > This link > > And I get the following error: msLoadMap(): Unable to access file.? > > Last time this happened I was invoking Mapserver through a form but this > time it's just a simple link. > > Why is it happening ? > > The weird thing is that all the other mapfiles that are seem to be > working are are having the same permission settings with the > current: -rw-r--r-- > > Thanks a lot! > > _______________________________________________ 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 woodbri at swoodbridge.com Sun Jun 1 13:47:57 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 01 Jun 2014 16:47:57 -0400 Subject: [mapserver-users] =?utf-8?b?zqPPh861z4Q6ICBNYXBzZXJ2ZXIgY2FuJ3Qg?= =?utf-8?q?read_mapfile?= In-Reply-To: <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> Message-ID: <538B917D.1040601@swoodbridge.com> Are your MAP UNITS DD Set? -Steve On 6/1/2014 3:31 PM, Stefanos Anastasiou wrote: > Hi Jeff, > > I came to this old post once again and I tried the above mentioned. > shp2img still produces an image which is blank or whatever the color of > the mapfile is defined. On the other hand I checked the EXTENT once > again and it was wrong so I changed to the appropriate one (EXTENT 17.00 > 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be > fine. If STATUS is set to default or On there's no difference. I also > changed TYPE to line and polygon just to be sure but nothing. > > My shapefile is a polygon with boundaries. Why wouldn't it appear on > the browser? > > Thanks again and I'm sorry for writing about it so late. > > Stefanos > > > ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna > ??????: > > > Hi sorry long thread and I bet this has already been said, but here were > my thoughts when I read your problems: > > - always test your mapfile at the commandline first, using the shp2img > utility (http://mapserver.org/utilities/shp2img.html). Once your layers > look find there in the generated map image then move to your application > > - if using MapServer CGI (mode=map), a blank map often means you are not > specifically telling MapServer to turn on layers; try adding &LAYERS=all > > - or setting each of your layer's STATUS values to DEFAULT might work > (but this can cause lots of trouble later, so this is not often recommended) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: > > Hello!! > > > > I'am having my mapfile place in /home/mapdata folder whereas I also keep > > a couple of other mapfiles too. > > I'm trying to load it in the following form on the > > browser: > http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map > > > > and all I get is a blank page. No errors no nothing. > > > > Then I created an html template in order to click it from there by > > creating a simple link (and not a from) in the following hyperlink: > > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> > > This link > > > > And I get the following error: msLoadMap(): Unable to access file. > > > > Last time this happened I was invoking Mapserver through a form but this > > time it's just a simple link. > > > > Why is it happening ? > > > > The weird thing is that all the other mapfiles that are seem to be > > working are are having the same permission settings with the > > current: -rw-r--r-- > > > > Thanks a lot! > > > > > > > > > > _______________________________________________ > 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 dejan.gambin at coin.hr Mon Jun 2 01:29:07 2014 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Mon, 2 Jun 2014 10:29:07 +0200 Subject: [mapserver-users] MapCache - tiles stored with no transparency Message-ID: <5C25D835-3410-4207-B5B2-B59040AA42EF@coin.hr> Hi, I just started playing with MapCache so this could be a pretty newbie question... I have a layer with transparency set, but my tiles, as I can see in filesystem, are stored with no transparency. When using mapcache wms demo, I get correct/transparent images but only after first getting non transparent ones. So this doesn't look very fine (non transparent image that gets "blurred"). I probably missed something in my configuration, but I don't know what because I set PNG format everywhere in mapcache.xml :-( Any hint that could help me (btw, I am using the newest MapServer/MapCache)? Thx very much regards, dejan From Andreas.Eichner at sid.sachsen.de Mon Jun 2 02:41:10 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 2 Jun 2014 09:41:10 +0000 Subject: [mapserver-users] MapCache - tiles stored with no transparency In-Reply-To: <5C25D835-3410-4207-B5B2-B59040AA42EF@coin.hr> References: <5C25D835-3410-4207-B5B2-B59040AA42EF@coin.hr> Message-ID: <6F331135492B944D90731CE93743D56806C6EA@FS-EX-DB102.fs.sachsen.de> Since cache and source are basically unrelated it's probably a good idea to specify the request format in the source: 1.1.1 image/png layerA,layerB TRUE application/vnd.ogc.se_xml http://.../wmsservice 10 > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Dejan Gambin > Gesendet: Montag, 2. Juni 2014 10:29 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] MapCache - tiles stored with no transparency > > Hi, > > I just started playing with MapCache so this could be a pretty newbie > question... > > I have a layer with transparency set, but my tiles, as I can see in > filesystem, are stored with no transparency. When using mapcache wms demo, > I get correct/transparent images but only after first getting non > transparent ones. So this doesn't look very fine (non transparent image > that gets "blurred"). > > I probably missed something in my configuration, but I don't know what > because I set PNG format everywhere in mapcache.xml :-( > > Any hint that could help me (btw, I am using the newest > MapServer/MapCache)? > > Thx very much > > regards, dejan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dejan.gambin at coin.hr Mon Jun 2 03:05:44 2014 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Mon, 2 Jun 2014 12:05:44 +0200 Subject: [mapserver-users] MapCache - tiles stored with no transparency In-Reply-To: <6F331135492B944D90731CE93743D56806C6EA@FS-EX-DB102.fs.sachsen.de> References: <5C25D835-3410-4207-B5B2-B59040AA42EF@coin.hr> <6F331135492B944D90731CE93743D56806C6EA@FS-EX-DB102.fs.sachsen.de> Message-ID: <36C0912F-759A-4521-9540-BE415FB80C03@coin.hr> This is already specified :-( Thx anyway On 2. lip. 2014., at 11:41, Eichner, Andreas - SID wrote: > Since cache and source are basically unrelated it's probably a good idea to specify the request format in the source: > > > > > 1.1.1 > image/png > layerA,layerB > TRUE > application/vnd.ogc.se_xml > > > > http://.../wmsservice > 10 > > > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Dejan Gambin >> Gesendet: Montag, 2. Juni 2014 10:29 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] MapCache - tiles stored with no transparency >> >> Hi, >> >> I just started playing with MapCache so this could be a pretty newbie >> question... >> >> I have a layer with transparency set, but my tiles, as I can see in >> filesystem, are stored with no transparency. When using mapcache wms demo, >> I get correct/transparent images but only after first getting non >> transparent ones. So this doesn't look very fine (non transparent image >> that gets "blurred"). >> >> I probably missed something in my configuration, but I don't know what >> because I set PNG format everywhere in mapcache.xml :-( >> >> Any hint that could help me (btw, I am using the newest >> MapServer/MapCache)? >> >> Thx very much >> >> regards, dejan >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From emperor_stef at yahoo.gr Mon Jun 2 03:35:16 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 2 Jun 2014 11:35:16 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICBNYXBzZXJ2ZXIg?= =?iso-8859-7?q?can=27t_read_mapfile?= In-Reply-To: <538B917D.1040601@swoodbridge.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538B917D.1040601@swoodbridge.com> Message-ID: <1401705316.86611.YahooMailNeo@web171803.mail.ir2.yahoo.com> Hi Steve, yes they are bot set. The whole mapfile looks like this. MAP NAME "Dasarxeia" UNITS DD SIZE 800 600 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/data/dasarxeia" EXTENT 17.00 33.00 32.00 42.00 WEB ? ?TEMPLATE "/usr/local/apache2/htdocs/dasarxeia.html" ? ?IMAGEPATH "/usr/local/apache2/htdocs/tmp" ? ?IMAGEURL "/tmp/" END LAYER ? ? NAME "Dasarxeia" ? ? DATA "dasarxeia" ? ? STATUS default ? ? TYPE polygon ? ? LABELCACHE on ? ? LABELITEM "POIST" ? ? CLASS? ? ? ? STYLE ? ? ? ? ? COLOR 0 0 0 ? ? ? END ? ? ? LABEL ? ? ? ? ?COLOR 0 0 0 ? ? ? ? ?SIZE SMALL ? ? ? END ? ? END END END ???? 11:48 ?.?. ???????, 1 ??????? 2014, ?/? Stephen Woodbridge ??????: Are your ? MAP ? ? UNITS DD Set? -Steve On 6/1/2014 3:31 PM, Stefanos Anastasiou wrote: > Hi Jeff, > > I came to this old post once again and I tried the above mentioned. > shp2img still produces an image which is blank or whatever the color of > the mapfile is defined. On the other hand I checked the EXTENT once > again and it was wrong so I changed to the appropriate one (EXTENT 17.00 > 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be > fine. If STATUS is set to default or On there's no difference. I also > changed TYPE to line and polygon just to be sure but nothing. > > My shapefile is a polygon with boundaries.? Why wouldn't it appear on > the browser? > > Thanks again and I'm sorry for writing about it so late. > > Stefanos > > > ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna > ??????: > > > Hi sorry long thread and I bet this has already been said, but here were > my thoughts when I read your problems: > > - always test your mapfile at the commandline first, using the shp2img > utility (http://mapserver.org/utilities/shp2img.html).? Once your layers > look find there in the generated map image then move to your application > > - if using MapServer CGI (mode=map), a blank map often means you are not > specifically telling MapServer to turn on layers; try adding &LAYERS=all > > - or setting each of your layer's STATUS values to DEFAULT might work > (but this can cause lots of trouble later, so this is not often recommended) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: >? > Hello!! >? > >? > I'am having my mapfile place in /home/mapdata folder whereas I also keep >? > a couple of other mapfiles too. >? > I'm trying to load it in the following form on the >? > browser: > http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map >? > >? > and all I get is a blank page. No errors no nothing. >? > >? > Then I created an html template in order to click it from there by >? > creating a simple link (and not a from) in the following hyperlink:? ? > > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> >? > This link >? > >? > And I get the following error: msLoadMap(): Unable to access file. >? > >? > Last time this happened I was invoking Mapserver through a form but this >? > time it's just a simple link. >? > >? > Why is it happening ? >? > >? > The weird thing is that all the other mapfiles that are seem to be >? > working are are having the same permission settings with the >? > current: -rw-r--r-- >? > >? > Thanks a lot! > >? > >? > > > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 2 05:29:43 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 02 Jun 2014 09:29:43 -0300 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIE1hcHNlcnZlciBjYW4ndCBy?= =?iso-8859-7?q?ead_mapfile?= In-Reply-To: <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> Message-ID: <538C6E37.8050806@gatewaygeomatics.com> Hi Stefanos, Some comments: - the best way to get the exact extent is to use the ogrinfo commandline utility with the "-summary" switch: ogrinfo dasarxeia.shp dasarxeia -summary - be careful with your SHAPEPATH, if your file is /home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH "/home/mapdata/data/" - when using shp2img, at the end of the command add "-all_debug 3" to see more useful error messages/notices - sometimes extent values in QGIS can be confusing, because sometimes it can display the data in a different projection without you knowing it (Project Properties/CRS/Enable 'on the fly' transformation)...so be careful -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote: > Hi Jeff, > > I came to this old post once again and I tried the above mentioned. > shp2img still produces an image which is blank or whatever the color of > the mapfile is defined. On the other hand I checked the EXTENT once > again and it was wrong so I changed to the appropriate one (EXTENT 17.00 > 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be > fine. If STATUS is set to default or On there's no difference. I also > changed TYPE to line and polygon just to be sure but nothing. > > My shapefile is a polygon with boundaries. Why wouldn't it appear on > the browser? > > Thanks again and I'm sorry for writing about it so late. > > Stefanos > > > ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna > ??????: > > > Hi sorry long thread and I bet this has already been said, but here were > my thoughts when I read your problems: > > - always test your mapfile at the commandline first, using the shp2img > utility (http://mapserver.org/utilities/shp2img.html). Once your layers > look find there in the generated map image then move to your application > > - if using MapServer CGI (mode=map), a blank map often means you are not > specifically telling MapServer to turn on layers; try adding &LAYERS=all > > - or setting each of your layer's STATUS values to DEFAULT might work > (but this can cause lots of trouble later, so this is not often recommended) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: >> Hello!! >> >> I'am having my mapfile place in /home/mapdata folder whereas I also keep >> a couple of other mapfiles too. >> I'm trying to load it in the following form on the >> browser: > http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map >> >> and all I get is a blank page. No errors no nothing. >> >> Then I created an html template in order to click it from there by >> creating a simple link (and not a from) in the following hyperlink: > > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> >> This link >> >> And I get the following error: msLoadMap(): Unable to access file. >> >> Last time this happened I was invoking Mapserver through a form but this >> time it's just a simple link. >> >> Why is it happening ? >> >> The weird thing is that all the other mapfiles that are seem to be >> working are are having the same permission settings with the >> current: -rw-r--r-- >> >> Thanks a lot! > >> >> From emperor_stef at yahoo.gr Mon Jun 2 08:56:46 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 2 Jun 2014 16:56:46 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICBNYXBzZXJ2ZXIg?= =?iso-8859-7?q?can=27t_read_mapfile?= In-Reply-To: <538C6E37.8050806@gatewaygeomatics.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> Message-ID: <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> Hi Jeff, thanks for your reply.? - I indeed used the ogrinfo utility and I gave me the extent in?GCS_GGRS_1987. So I transformed the coordinates to WGS84.? - I also had my moved my data one folder up (that is also my Shapepath /home/mapdata/data/) just to make sure. -The output of "shp2img -m dasarxeia.map -o test.png -all_debug 3" gives me the following:? [Mon Jun ?2 18:48:09 2014].50643 msLoadMap(): 0.001s [Mon Jun ?2 18:48:09 2014].54233 msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). [Mon Jun ?2 18:48:09 2014].54749 msDrawMap(): Layer 0 (Dasarxeia), 0.000s [Mon Jun ?2 18:48:09 2014].54951 msDrawMap(): Drawing Label Cache, 0.000s [Mon Jun ?2 18:48:09 2014].55124 msDrawMap() total time: 0.004s [Mon Jun ?2 18:48:09 2014].75257 msSaveImage(test.png) total time: 0.020s [Mon Jun ?2 18:48:09 2014].75714 shp2img total time: 0.026s Another weird thing I noticed is that if I try to run the mapfile itself on the browser (http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.map&mode=map) it gives me an error ----->?msLoadMap(): Unable to access file. (/home/stefanos/mapdata/dasarxeia.map)? The permissions that are set for the mapfile are: ?-rw-rw-rw- I was also wondering if it is some kind of a configuration in Apache's http.conf Thanks -Stefanos? ???? 3:57 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna ??????: Hi Stefanos, Some comments: - the best way to get the exact extent is to use the ogrinfo commandline utility with the "-summary" switch: ? ogrinfo dasarxeia.shp dasarxeia -summary - be careful with your SHAPEPATH, if your file is /home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH "/home/mapdata/data/" - when using shp2img, at the end of the command add "-all_debug 3" to see more useful error messages/notices - sometimes extent values in QGIS can be confusing, because sometimes it can display the data in a different projection without you knowing it (Project Properties/CRS/Enable 'on the fly' transformation)...so be careful -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote: > Hi Jeff, > > I came to this old post once again and I tried the above mentioned. > shp2img still produces an image which is blank or whatever the color of > the mapfile is defined. On the other hand I checked the EXTENT once > again and it was wrong so I changed to the appropriate one (EXTENT 17.00 > 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be > fine. If STATUS is set to default or On there's no difference. I also > changed TYPE to line and polygon just to be sure but nothing. > > My shapefile is a polygon with boundaries.? Why wouldn't it appear on > the browser? > > Thanks again and I'm sorry for writing about it so late. > > Stefanos > > > ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna > ??????: > > > Hi sorry long thread and I bet this has already been said, but here were > my thoughts when I read your problems: > > - always test your mapfile at the commandline first, using the shp2img > utility (http://mapserver.org/utilities/shp2img.html).? Once your layers > look find there in the generated map image then move to your application > > - if using MapServer CGI (mode=map), a blank map often means you are not > specifically telling MapServer to turn on layers; try adding &LAYERS=all > > - or setting each of your layer's STATUS values to DEFAULT might work > (but this can cause lots of trouble later, so this is not often recommended) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: >> Hello!! >> >> I'am having my mapfile place in /home/mapdata folder whereas I also keep >> a couple of other mapfiles too. >> I'm trying to load it in the following form on the >> browser: > http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map >> >> and all I get is a blank page. No errors no nothing. >> >> Then I created an html template in order to click it from there by >> creating a simple link (and not a from) in the following hyperlink:? > > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> >> This link >> >> And I get the following error: msLoadMap(): Unable to access file. >> >> Last time this happened I was invoking Mapserver through a form but this >> time it's just a simple link. >> >> Why is it happening ? >> >> The weird thing is that all the other mapfiles that are seem to be >> working are are having the same permission settings with the >> current: -rw-r--r-- >> >> Thanks a lot! > >> >> _______________________________________________ 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 emperor_stef at yahoo.gr Mon Jun 2 09:04:08 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 2 Jun 2014 17:04:08 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICDT9+X0OiAgTWFw?= =?iso-8859-7?q?server_can=27t_read_mapfile?= In-Reply-To: <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> Message-ID: <1401725048.52431.YahooMailNeo@web171802.mail.ir2.yahoo.com> Correction about the last one: I had a typo in the path when running the mapfile straight in the browser. The correct is?http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.map&mode=map and it still appears a blank page.? -Stefanos ???? 6:57 ?.?. ???????, 2 ??????? 2014, ?/? Stefanos Anastasiou ??????: Hi Jeff, thanks for your reply.? - I indeed used the ogrinfo utility and I gave me the extent in?GCS_GGRS_1987. So I transformed the coordinates to WGS84.? - I also had my moved my data one folder up (that is also my Shapepath /home/mapdata/data/) just to make sure. -The output of "shp2img -m dasarxeia.map -o test.png -all_debug 3" gives me the following:? [Mon Jun ?2 18:48:09 2014].50643 msLoadMap(): 0.001s [Mon Jun ?2 18:48:09 2014].54233 msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). [Mon Jun ?2 18:48:09 2014].54749 msDrawMap(): Layer 0 (Dasarxeia), 0.000s [Mon Jun ?2 18:48:09 2014].54951 msDrawMap(): Drawing Label Cache, 0.000s [Mon Jun ?2 18:48:09 2014].55124 msDrawMap() total time: 0.004s [Mon Jun ?2 18:48:09 2014].75257 msSaveImage(test.png) total time: 0.020s [Mon Jun ?2 18:48:09 2014].75714 shp2img total time: 0.026s Another weird thing I noticed is that if I try to run the mapfile itself on the browser (http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.map&mode=map) it gives me an error ----->?msLoadMap(): Unable to access file. (/home/stefanos/mapdata/dasarxeia.map)? The permissions that are set for the mapfile are: ?-rw-rw-rw- I was also wondering if it is some kind of a configuration in Apache's http.conf Thanks -Stefanos? ???? 3:57 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna ??????: Hi Stefanos, Some comments: - the best way to get the exact extent is to use the ogrinfo commandline utility with the "-summary" switch: ? ogrinfo dasarxeia.shp dasarxeia -summary - be careful with your SHAPEPATH, if your file is /home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH "/home/mapdata/data/" - when using shp2img, at the end of the command add "-all_debug 3" to see more useful error messages/notices - sometimes extent values in QGIS can be confusing, because sometimes it can display the data in a different projection without you knowing it (Project Properties/CRS/Enable 'on the fly' transformation)...so be careful -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote: > Hi Jeff, > > I came to this old post once again and I tried the above mentioned. > shp2img still produces an image which is blank or whatever the color of > the mapfile is defined. On the other hand I checked the EXTENT once > again and it was wrong so I changed to the appropriate one (EXTENT 17.00 > 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be > fine. If STATUS is set to default or On there's no difference. I also > changed TYPE to line and polygon just to be sure but nothing. > > My shapefile is a polygon with boundaries.? Why wouldn't it appear on > the browser? > > Thanks again and I'm sorry for writing about it so late. > > Stefanos > > > ???? 7:15 ?.?. ???????, 10 ??????????? 2014, ?/? Jeff McKenna > ??????: > > > Hi sorry long thread and I bet this has already been said, but here were > my thoughts when I read your problems: > > - always test your mapfile at the commandline first, using the shp2img > utility (http://mapserver.org/utilities/shp2img.html).? Once your layers > look find there in the generated map image then move to your application > > - if using MapServer CGI (mode=map), a blank map often means you are not > specifically telling MapServer to turn on layers; try adding &LAYERS=all > > - or setting each of your layer's STATUS values to DEFAULT might work > (but this can cause lots of trouble later, so this is not often recommended) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote: >> Hello!! >> >> I'am having my mapfile place in /home/mapdata folder whereas I also keep >> a couple of other mapfiles too. >> I'm trying to load it in the following form on the >> browser: > http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map >> >> and all I get is a blank page. No errors no nothing. >> >> Then I created an html template in order to click it from there by >> creating a simple link (and not a from) in the following hyperlink:? > > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> >> This link >> >> And I get the following error: msLoadMap(): Unable to access file. >> >> Last time this happened I was invoking Mapserver through a form but this >> time it's just a simple link. >> >> Why is it happening ? >> >> The weird thing is that all the other mapfiles that are seem to be >> working are are having the same permission settings with the >> current: -rw-r--r-- >> >> Thanks a lot! > >> >> _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 2 09:06:58 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 02 Jun 2014 13:06:58 -0300 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICBNYXBzZXJ2ZXIg?= =?iso-8859-7?q?can=27t_read_mapfile?= In-Reply-To: <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> Message-ID: <538CA122.5010705@gatewaygeomatics.com> On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote: > Hi Jeff, > thanks for your reply. > - I indeed used the ogrinfo utility and I gave me the extent > in GCS_GGRS_1987. So I transformed the coordinates to WGS84. > I'm not sure what you mean here by "I transformed the coordinates". Literally copy/paste the extents from ogrinfo into your EXTENT parameter in your mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From emperor_stef at yahoo.gr Mon Jun 2 09:19:36 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 2 Jun 2014 17:19:36 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICDT9+X0OiAgTWFw?= =?iso-8859-7?q?server_can=27t_read_mapfile?= In-Reply-To: <538CA122.5010705@gatewaygeomatics.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> <538CA122.5010705@gatewaygeomatics.com> Message-ID: <1401725976.98148.YahooMailNeo@web171805.mail.ir2.yahoo.com> Wow... I literally copied and pasted the coordinates to the EXTENT parameter and it worked. Thank you very much..!! ? :-)? I though that the mapfile would only read coordinates that are in Long/Lat format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 2100). So I thought I could only import them in Lon/Lat. Thanks a lot! ? -Stefanos ???? 7:07 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna ??????: On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote: > Hi Jeff, > thanks for your reply. > - I indeed used the ogrinfo utility and I gave me the extent > in GCS_GGRS_1987. So I transformed the coordinates to WGS84. > I'm not sure what you mean here by "I transformed the coordinates". Literally copy/paste the extents from ogrinfo into your EXTENT parameter in your mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jun 2 10:26:07 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 2 Jun 2014 17:26:07 +0000 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICDT9+X0OiAgTWFw?= =?iso-8859-7?q?server_can=27t_read_mapfile?= In-Reply-To: <1401725976.98148.YahooMailNeo@web171805.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> <538CA122.5010705@gatewaygeomatics.com> <1401725976.98148.YahooMailNeo@web171805.mail.ir2.yahoo.com> Message-ID: The Extent uses is based on the source data coordinates,, unless you also provide a reprojection block in your mapfile/maplayers. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefanos Anastasiou Sent: Monday, June 02, 2014 11:20 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: [mapserver-users] ????: ????: ????: Mapserver can't read mapfile Wow... I literally copied and pasted the coordinates to the EXTENT parameter and it worked. Thank you very much..!! :-) I though that the mapfile would only read coordinates that are in Long/Lat format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 2100). So I thought I could only import them in Lon/Lat. Thanks a lot! -Stefanos ???? 7:07 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna > ??????: On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote: > Hi Jeff, > thanks for your reply. > - I indeed used the ogrinfo utility and I gave me the extent > in GCS_GGRS_1987. So I transformed the coordinates to WGS84. > I'm not sure what you mean here by "I transformed the coordinates". Literally copy/paste the extents from ogrinfo into your EXTENT parameter in your mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Mon Jun 2 13:10:45 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 2 Jun 2014 21:10:45 +0100 (BST) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogINP35fQ6ICDT9+X0OiAg0/fl?= =?iso-8859-7?q?=F4=3A__Mapserver_can=27t_read_mapfile?= In-Reply-To: References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> <538CA122.5010705@gatewaygeomatics.com> <1401725976.98148.YahooMailNeo@web171805.mail.ir2.yahoo.com> Message-ID: <1401739845.33194.YahooMailNeo@web171801.mail.ir2.yahoo.com> Thanks Bobb One more thing... I noticed that if I enter the STATUS default it works fine. ?But if I enter STATUS on the page is blank again.? Any idea why? -Stefanos ???? 8:26 ?.?. ???????, 2 ??????? 2014, ?/? "Basques, Bob (CI-StPaul)" ??????: The Extent uses is based on the source data coordinates,, unless you also provide a reprojection block in your mapfile/maplayers. ? Bobb ? ? ? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefanos Anastasiou Sent: Monday, June 02, 2014 11:20 AM To: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: [mapserver-users] ????: ????: ????: Mapserver can't read mapfile ? Wow... I literally copied and pasted the coordinates to the EXTENT parameter and it worked. Thank you very much..!! ? :-)? ? I though that the mapfile would only read coordinates that are in Long/Lat format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 2100). So I thought I could only import them in Lon/Lat. ? Thanks a lot! ? ? -Stefanos ? ???? 7:07 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna ??????: ? On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote: > Hi Jeff, > thanks for your reply. > - I indeed used the ogrinfo utility and I gave me the extent > in GCS_GGRS_1987. So I transformed the coordinates to WGS84. > I'm not sure what you mean here by "I transformed the coordinates". Literally copy/paste the extents from ogrinfo into your EXTENT parameter in your mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 2 13:34:47 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 02 Jun 2014 16:34:47 -0400 Subject: [mapserver-users] =?utf-8?b?zqPPh861z4Q6ICDOo8+HzrXPhDogIM6jz4c=?= =?utf-8?b?zrXPhDogIM6jz4fOtc+EOiAgTWFwc2VydmVyIGNhbid0IHJlYWQgbWFwZmls?= =?utf-8?q?e?= In-Reply-To: <1401739845.33194.YahooMailNeo@web171801.mail.ir2.yahoo.com> References: <1392045358.19320.YahooMailNeo@web171806.mail.ir2.yahoo.com> <52F90271.40806@gatewaygeomatics.com> <1401651105.88562.YahooMailNeo@web171803.mail.ir2.yahoo.com> <538C6E37.8050806@gatewaygeomatics.com> <1401724606.44857.YahooMailNeo@web171804.mail.ir2.yahoo.com> <538CA122.5010705@gatewaygeomatics.com> <1401725976.98148.YahooMailNeo@web171805.mail.ir2.yahoo.com> <1401739845.33194.YahooMailNeo@web171801.mail.ir2.yahoo.com> Message-ID: <538CDFE7.3020707@swoodbridge.com> STATUS DEFAULT forces the layer to by on regardless. STATUS ON allows the laye to be turned on/off and in your request you need to supply a list of layers to tuen on by name. shp2img ... -l "my_layer1 my_layer_1" or in CGI layers=all&... layers=my_layer1+my_layer2&... -Steve On 6/2/2014 4:10 PM, Stefanos Anastasiou wrote: > Thanks Bobb > > One more thing... I noticed that if I enter the STATUS default it works > fine. But if I enter STATUS on the page is blank again. > > Any idea why? > > -Stefanos > > > ???? 8:26 ?.?. ???????, 2 ??????? 2014, ?/? "Basques, Bob (CI-StPaul)" > ??????: > > > The Extent uses is based on the source data coordinates,, unless you > also provide a reprojection block in your mapfile/maplayers. > Bobb > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Stefanos > Anastasiou > *Sent:* Monday, June 02, 2014 11:20 AM > *To:* Jeff McKenna; mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] ????: ????: ????: Mapserver can't read mapfile > Wow... I literally copied and pasted the coordinates to the EXTENT > parameter and it worked. Thank you very much..!! :-) > I though that the mapfile would only read coordinates that are in > Long/Lat format in WGS84. My coords were x,y format in Greek grid (EGSA > '87 - EPSG 2100). So I thought I could only import them in Lon/Lat. > Thanks a lot! > -Stefanos > ???? 7:07 ?.?. ???????, 2 ??????? 2014, ?/? Jeff McKenna > > > ??????: > On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote: >> Hi Jeff, >> thanks for your reply. >> - I indeed used the ogrinfo utility and I gave me the extent >> in GCS_GGRS_1987. So I transformed the coordinates to WGS84. >> > > I'm not sure what you mean here by "I transformed the coordinates". > Literally copy/paste the extents from ogrinfo into your EXTENT parameter > in your mapfile. > > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jim.Haug at state.sd.us Mon Jun 2 13:14:36 2014 From: Jim.Haug at state.sd.us (Haug, Jim) Date: Mon, 2 Jun 2014 20:14:36 +0000 Subject: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2 Message-ID: <611DD6C2E400AD478B620CB9E07B9B7F091C36A5@SD3EXC02M.k12.sd.local> I recently upgraded to Ubuntu 14.04 with no visible issues. The url below is generated in my web page code and is sent to the mapserver: http://hawken.sdsmt.edu/cgi-bin/mapserv?mode=itemnquery&qformat=png&map=/gisdata/sd/sd_x-printform.map&qlayer=surveys&qitem=archive&qstring=/ESD-0498/i&layer=sites&layer=drg024k_13N&layer=drg024k_14N&layer=drg250k_13N&layer=drg250k_14N&layer=sd_plss&layer=sd_tr&mapsize=480+480&mapext=shape&scaledenom=932875 It worked fine in Ubuntu 13.10 using Mapserver version 6.2.1-3 and generated a map properly. It no longer works in mapserver 6.4.1-2 in Ubuntu 14.04. Now I get the error message mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed. None of my underlying data or map files have changed. I'm completely mystified as to why this is happening. I hope I don't have to revert to Ubuntu 13.10, but I have a backup in case I need to. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 2 14:36:21 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 2 Jun 2014 21:36:21 +0000 Subject: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2 In-Reply-To: <611DD6C2E400AD478B620CB9E07B9B7F091C36A5@SD3EXC02M.k12.sd.local> References: <611DD6C2E400AD478B620CB9E07B9B7F091C36A5@SD3EXC02M.k12.sd.local> Message-ID: The difference is MapServer version, not Ubuntu. You *must* define a validation pattern (a regex) for qstring values. In either the web or layer block (depending on your app) you'd do something like: VALIDATION 'qstring' '^\/ESD-[0-9]*\/i$' END Depends on what sort of values you might see of course. It looks worse than it is because you want to escape (I think) a few special characters. Hope this helps. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Haug, Jim Sent: Monday, June 02, 2014 3:15 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2 I recently upgraded to Ubuntu 14.04 with no visible issues. The url below is generated in my web page code and is sent to the mapserver: http://hawken.sdsmt.edu/cgi-bin/mapserv?mode=itemnquery&qformat=png&map=/gisdata/sd/sd_x-printform.map&qlayer=surveys&qitem=archive&qstring=/ESD-0498/i&layer=sites&layer=drg024k_13N&layer=drg024k_14N&layer=drg250k_13N&layer=drg250k_14N&layer=sd_plss&layer=sd_tr&mapsize=480+480&mapext=shape&scaledenom=932875 It worked fine in Ubuntu 13.10 using Mapserver version 6.2.1-3 and generated a map properly. It no longer works in mapserver 6.4.1-2 in Ubuntu 14.04. Now I get the error message mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed. None of my underlying data or map files have changed. I'm completely mystified as to why this is happening. I hope I don't have to revert to Ubuntu 13.10, but I have a backup in case I need to. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jun 2 15:40:24 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 2 Jun 2014 22:40:24 +0000 Subject: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? Message-ID: All, So I was trying to just display some data without a coordinate system assigned. And I ended up eventually getting a LAT/LON (out of range) error. Once I set the projection in the MAP block to something resembling a XY projection, all was well. I suspect that LAT/LON is the default? Is there a way to do something other than what I did to use simple Cartesian coordinates? Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 2 15:50:53 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 2 Jun 2014 22:50:53 +0000 Subject: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? In-Reply-To: References: Message-ID: MapServer has no default, it's just uses a simple Cartesian coordinate system. HOWEVER, the CGI does have some hooks that tries to auto-detect lat/lon coordinates and automatically convert them to what's set in the MAP's projection block. I believe that only kicks in if there is a projection block defined. How'd you trigger the message? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, June 02, 2014 5:40 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? All, So I was trying to just display some data without a coordinate system assigned. And I ended up eventually getting a LAT/LON (out of range) error. Once I set the projection in the MAP block to something resembling a XY projection, all was well. I suspect that LAT/LON is the default? Is there a way to do something other than what I did to use simple Cartesian coordinates? Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jun 2 20:55:28 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 3 Jun 2014 03:55:28 +0000 Subject: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? In-Reply-To: References: , Message-ID: I had an extent of 0 0 360 120 (units inches, 10ftx30ft) Anyway, I think I tried zooming in to 50 50 80 80 and the "80" values seem to have been the problem. I can send the actual link tomorrow if you want I have it in browser cache at the other desk. I set the Map projection to 4326 and it all works fine. Must be the two 80s without one being a negative as you described. And yes I was using a CGI. ________________________________ From: Lime, Steve D (MNIT) Sent: Monday, June 02, 2014 5:50 PM To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? MapServer has no default, it?s just uses a simple Cartesian coordinate system. HOWEVER, the CGI does have some hooks that tries to auto-detect lat/lon coordinates and automatically convert them to what?s set in the MAP?s projection block. I believe that only kicks in if there is a projection block defined. How?d you trigger the message? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, June 02, 2014 5:40 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)? All, So I was trying to just display some data without a coordinate system assigned. And I ended up eventually getting a LAT/LON (out of range) error. Once I set the projection in the MAP block to something resembling a XY projection, all was well. I suspect that LAT/LON is the default? Is there a way to do something other than what I did to use simple Cartesian coordinates? Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jun 2 20:49:06 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 3 Jun 2014 03:49:06 +0000 Subject: [mapserver-users] Is there a max SIZE value for a LABEL block?? Message-ID: All, I think I've run into this in the past, but . . . Is there a limit on the SIZE value in LABEL block? I seem to be hitting a wall at anything over 250 bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jorrit.Goddijn at meteogroup.com Tue Jun 3 05:01:53 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Tue, 3 Jun 2014 12:01:53 +0000 Subject: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> Hi all, I try draw an ANNOTATION type layer based on RASTER type layer. When doing this based on a shape file I would set the LABEL item on the ANNOTATION layer to be attribute used in the shapefile. What LABELITEM should I use when using RASTER data? I posted the Mapfile I have so far hereunder. Thank you for your help. Bye Jorrit #---------------------------------------------------------------------------- #grib wave direction layer example #---------------------------------------------------------------------------- LAYER NAME "grib_data" TYPE RASTER DATA "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" #Current direction @ Mean sea level PROCESSING "BANDS=1" PROCESSING "SCALE=0,360" #scale all degrees PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" END END #--------------------------------------------------------------------------- # the annotation layer #--------------------------------------------------------------------------- LAYER NAME "grib_label" DATA "grib_data" STATUS OFF TYPE ANNOTATION CLASSITEM "CLASS" # do I need it? LABELITEM "VAR_10-1-0_L101" #what variable name to use? CLASS EXPRESSION [VAR_10-1-0_L101] #gives parse error STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # end of class END # annotation layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Tue Jun 3 05:16:48 2014 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Tue, 03 Jun 2014 14:16:48 +0200 Subject: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? In-Reply-To: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> References: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> Message-ID: <538DBCB0.1050607@mapmedia.de> Hi Jorrit, you want to label you raster dataset with what? Regards, J?rg Am 03.06.2014 14:01, schrieb Jorrit Goddijn: > Hi all, > > > > I try draw an ANNOTATION type layer based on RASTER type layer. When > doing this based on a shape file I would set the LABEL item on the > ANNOTATION layer to be attribute used in the shapefile. > > > > What LABELITEM should I use when using RASTER data? > > > > I posted the Mapfile I have so far hereunder. > > > > Thank you for your help. > > > > Bye > > > > Jorrit > > > > #---------------------------------------------------------------------------- > > #grib wave direction layer example > > #---------------------------------------------------------------------------- > > LAYER > > NAME "grib_data" > > TYPE RASTER > > > > DATA > "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" > #Current direction @ Mean sea level > > PROCESSING "BANDS=1" > > PROCESSING "SCALE=0,360" #scale all degrees > > > > PROJECTION > > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > > END > > END > > > > #--------------------------------------------------------------------------- > > # the annotation layer > > #--------------------------------------------------------------------------- > > LAYER > > NAME "grib_label" > > DATA "grib_data" > > STATUS OFF > > TYPE ANNOTATION > > CLASSITEM "CLASS" # do I need it? > > LABELITEM "VAR_10-1-0_L101" #what variable name to use? > > > > CLASS > > EXPRESSION [VAR_10-1-0_L101] #gives parse error > > STYLE > > COLOR -1 -1 -1 > > END > > > > LABEL > > COLOR 132 31 31 > > TYPE TRUETYPE > > FONT arial-bold > > SIZE 12 > > ANTIALIAS TRUE > > POSITION CL > > PARTIALS FALSE > > MINDISTANCE 300 > > BUFFER 4 > > END # end of label > > END # end of class > > END # annotation layer > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Tue Jun 3 05:58:51 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 03 Jun 2014 08:58:51 -0400 Subject: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? In-Reply-To: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> References: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> Message-ID: <538DC68B.60000@swoodbridge.com> Jorrit, The ANNOTATION layer is deprecated and might event be remove in mapserver 6.4 Anyway if you just want to put an arbitrary label on an image You can create a point layer and use FEATURE to define where you want the label and use TEXT to define the text of the label. -Steve W On 6/3/2014 8:01 AM, Jorrit Goddijn wrote: > Hi all, > > I try draw an ANNOTATION type layer based on RASTER type layer. When > doing this based on a shape file I would set the LABEL item on the > ANNOTATION layer to be attribute used in the shapefile. > > What LABELITEM should I use when using RASTER data? > > I posted the Mapfile I have so far hereunder. > > Thank you for your help. > > Bye > > Jorrit > > #---------------------------------------------------------------------------- > > #grib wave direction layer example > > #---------------------------------------------------------------------------- > > LAYER > > NAME "grib_data" > > TYPE RASTER > > DATA > "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" > #Current direction @ Mean sea level > > PROCESSING "BANDS=1" > > PROCESSING "SCALE=0,360" #scale all degrees > > PROJECTION > > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > > END > > END > > #--------------------------------------------------------------------------- > > # the annotation layer > > #--------------------------------------------------------------------------- > > LAYER > > NAME "grib_label" > > DATA "grib_data" > > STATUS OFF > > TYPE ANNOTATION > > CLASSITEM "CLASS" # do I need it? > > LABELITEM "VAR_10-1-0_L101" #what variable name to use? > > CLASS > > EXPRESSION [VAR_10-1-0_L101] #gives parse error > > STYLE > > COLOR -1 -1 -1 > > END > > LABEL > > COLOR 132 31 31 > > TYPE TRUETYPE > > FONT arial-bold > > SIZE 12 > > ANTIALIAS TRUE > > POSITION CL > > PARTIALS FALSE > > MINDISTANCE 300 > > BUFFER 4 > > END # end of label > > END # end of class > > END # annotation layer > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mathias.cunault at inrap.fr Tue Jun 3 07:33:08 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Tue, 3 Jun 2014 07:33:08 -0700 (PDT) Subject: [mapserver-users] itemquery and validation In-Reply-To: <1401257110756-5142850.post@n6.nabble.com> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> <1401094453597-5142486.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B2AF@FS-EX-DB102.fs.sachsen.de> <1401257110756-5142850.post@n6.nabble.com> Message-ID: <1401805988673-5143781.post@n6.nabble.com> hi and back I found this : http://lists.maptools.org/pipermail/ms4w-users/2012-June/002025.html it seems i have to install a perl library PCRE http://sourceforge.net/projects/pcre/files/pcre/ and validation should pass... now next step : how to install librairies without setup.exe... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-post-to-be-accepted-tp5142386p5143781.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pschweitzer at usgs.gov Tue Jun 3 08:08:00 2014 From: pschweitzer at usgs.gov (Schweitzer, Peter) Date: Tue, 3 Jun 2014 11:08:00 -0400 Subject: [mapserver-users] Two meanings of ows_service_onlineresource in WFS capabilities document Message-ID: In WFS 1.1.0 capabilities generated by mapserver 6.4.0, it seems that ows_service_onlineresource is being used in two different places, first to indicate the service provider site, and second as an online resource for the service contact. Have I misunderstood? I'm not especially eager to make the map file's metadata more complicated, but I would not expect these two places would necessarily use the same web address. This is clearly not a burning issue. Is there a person or group who works on this part of mapserver? Peter -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweitzer at usgs.gov http://geology.usgs.gov/peter/ From zhaops at hotmail.com Tue Jun 3 12:26:42 2014 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 3 Jun 2014 19:26:42 +0000 Subject: [mapserver-users] =?windows-1256?q?Issues_with_Bilinear_Rendering?= =?windows-1256?q?_of_Raster_Images_in_MapServer=FE?= Message-ID: Hi all, We get the problem when using bilinear for raster images. It looks like that the nodata value of the raster is being recognized, and is getting blended with real values. Anyone has same experience? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jorrit.Goddijn at meteogroup.com Wed Jun 4 03:08:40 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Wed, 4 Jun 2014 10:08:40 +0000 Subject: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? In-Reply-To: <538DBCB0.1050607@mapmedia.de> References: <8D5E08D02835794F97C9CB3EE47CB7688B81BA21@nl-wag-ex1> <538DBCB0.1050607@mapmedia.de> Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81BCE2@nl-wag-ex1> Hi J?rg, Hi Stephen, Instead of showing the grayscaled pixels of the RASTER image, I would like to show the actual value. I have my data only in GRIB format available, so creating a point layers and using the FEATURE attribute is not possible as I would need the data as a shapefile for that, I am right? Is there anyway to accomplish this? Thanks for your time, Jorrit -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of J?rg Thomsen Sent: dinsdag 3 juni 2014 14:17 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? Hi Jorrit, you want to label you raster dataset with what? Regards, J?rg Am 03.06.2014 14:01, schrieb Jorrit Goddijn: > Hi all, > > > > I try draw an ANNOTATION type layer based on RASTER type layer. When > doing this based on a shape file I would set the LABEL item on the > ANNOTATION layer to be attribute used in the shapefile. > > > > What LABELITEM should I use when using RASTER data? > > > > I posted the Mapfile I have so far hereunder. > > > > Thank you for your help. > > > > Bye > > > > Jorrit > > > > #--------------------------------------------------------------------- > ------- > > #grib wave direction layer example > > #--------------------------------------------------------------------- > ------- > > LAYER > > NAME "grib_data" > > TYPE RASTER > > > > DATA > "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" > #Current direction @ Mean sea level > > PROCESSING "BANDS=1" > > PROCESSING "SCALE=0,360" #scale all degrees > > > > PROJECTION > > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > > END > > END > > > > #--------------------------------------------------------------------- > ------ > > # the annotation layer > > #--------------------------------------------------------------------- > ------ > > LAYER > > NAME "grib_label" > > DATA "grib_data" > > STATUS OFF > > TYPE ANNOTATION > > CLASSITEM "CLASS" # do I need it? > > LABELITEM "VAR_10-1-0_L101" #what variable name to use? > > > > CLASS > > EXPRESSION [VAR_10-1-0_L101] #gives parse error > > STYLE > > COLOR -1 -1 -1 > > END > > > > LABEL > > COLOR 132 31 31 > > TYPE TRUETYPE > > FONT arial-bold > > SIZE 12 > > ANTIALIAS TRUE > > POSITION CL > > PARTIALS FALSE > > MINDISTANCE 300 > > BUFFER 4 > > END # end of label > > END # end of class > > END # annotation layer > > > > > > > > > > _______________________________________________ > 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.rahkonen at mmmtike.fi Wed Jun 4 03:53:45 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 4 Jun 2014 10:53:45 +0000 Subject: [mapserver-users] How to use ANNOTATION layer in combination with RASTER data? Message-ID: Hi, I believe that Mapserver has many pieces for you but perhaps some work will be needed for putting them together. 1) For the first, the attribute name for some pixel value based stuff is "pixel". Here is an example about selecting a pixel value range: CLASSITEM "[pixel]" # class using an EXPRESSION using only [pixel]. CLASS EXPRESSION ([pixel] >= 25 AND [pixel] < 39) 2) I do not know which kind of client application you want to have, but read if UTF Grid could be of any use for you http://mapserver.org/development/rfc/ms-rfc-93.html Connectiontype CONTOUR proves that converting your raster into labels is for sure possible to do while perhaps not supported at the moment http://mapserver.org/development/rfc/ms-rfc-85.html 3) There are also ways to convert your raster data into shapefiles. See for example this http://www.slideshare.net/shencoop/qgis-raster-to-point There is also a SEXTANTE algorithm for this and in my SEXTANTE toolbox it seems to be in Vectorization - Raster layer to points layer. There must be corresponding ones in GRASS, SAGA and others. -Jukka Rahkonen- Jorrit Goddijn wrote: > Hi J?rg, Hi Stephen, > > Instead of showing the grayscaled pixels of the RASTER image, I would like to > show the actual value. > > I have my data only in GRIB format available, so creating a point layers and > using the FEATURE attribute is not possible as I would need the data as a > shapefile for that, I am right? > > Is there anyway to accomplish this? > > Thanks for your time, > > Jorrit > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of J?rg Thomsen > Sent: dinsdag 3 juni 2014 14:17 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to use ANNOTATION layer in combination > with RASTER data? > > Hi Jorrit, > > you want to label you raster dataset with what? > > Regards, J?rg > > Am 03.06.2014 14:01, schrieb Jorrit Goddijn: > > Hi all, > > > > > > > > I try draw an ANNOTATION type layer based on RASTER type layer. When > > doing this based on a shape file I would set the LABEL item on the > > ANNOTATION layer to be attribute used in the shapefile. > > > > > > > > What LABELITEM should I use when using RASTER data? > > > > > > > > I posted the Mapfile I have so far hereunder. > > > > > > > > Thank you for your help. > > > > > > > > Bye > > > > > > > > Jorrit > > > > > > > > #--------------------------------------------------------------------- > > ------- > > > > #grib wave direction layer example > > > > #--------------------------------------------------------------------- > > ------- > > > > LAYER > > > > NAME "grib_data" > > > > TYPE RASTER > > > > > > > > DATA > > > "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" > > #Current direction @ Mean sea level > > > > PROCESSING "BANDS=1" > > > > PROCESSING "SCALE=0,360" #scale all degrees > > > > > > > > PROJECTION > > > > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > > > > END > > > > END > > > > > > > > #--------------------------------------------------------------------- > > ------ > > > > # the annotation layer > > > > #--------------------------------------------------------------------- > > ------ > > > > LAYER > > > > NAME "grib_label" > > > > DATA "grib_data" > > > > STATUS OFF > > > > TYPE ANNOTATION > > > > CLASSITEM "CLASS" # do I need it? > > > > LABELITEM "VAR_10-1-0_L101" #what variable name to use? > > > > > > > > CLASS > > > > EXPRESSION [VAR_10-1-0_L101] #gives parse error > > > > STYLE > > > > COLOR -1 -1 -1 > > > > END > > > > > > > > LABEL > > > > COLOR 132 31 31 > > > > TYPE TRUETYPE > > > > FONT arial-bold > > > > SIZE 12 > > > > ANTIALIAS TRUE > > > > POSITION CL > > > > PARTIALS FALSE > > > > MINDISTANCE 300 > > > > BUFFER 4 > > > > END # end of label > > > > END # end of class > > > > END # annotation layer > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > 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 hfpmartins at gmail.com Wed Jun 4 04:14:33 2014 From: hfpmartins at gmail.com (Hugo) Date: Wed, 4 Jun 2014 12:14:33 +0100 Subject: [mapserver-users] Mapserver installation trouble in ubuntu server Message-ID: Hi all, I'm having some troubles with a mapserver installation in a hosted ubuntu server (12.04). I've installed it using the regular procedures (apt-get install mapserver-bin cgi-mapserver) and i can see from the console that it is installed correctly. However, when i try to access it from the browser, using the url http:/ip_address/cgi-bin/mapserv it starts to download the bin file and does not display the typical message (No query information to decode...). I remember that i have had this issue some time ago and don't remember how i fixed it... i know it is something really simple that i'm missing here. Could you guys give me some help? Kind regards, -- Hugo Martins -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrew.Parry at bentley.com Wed Jun 4 04:26:28 2014 From: Andrew.Parry at bentley.com (Andrew.Parry at bentley.com) Date: Wed, 4 Jun 2014 11:26:28 +0000 Subject: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D geometries In-Reply-To: References: Message-ID: <438b06f1f98d44b594178f036e7e87bc@extprdex01.bentley.com> Michael, I wonder if you would be able offer some more advice on this. I have a version of mapserver compiled with the POINT_Z_M option. Despite my best efforts, the geometry always returns in 2D. Do you happen to have an example map file entry and GetFeatureInfo call example? Information from my config given below. Thanks, Andrew mapserv -v MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My map file includes this output format OUTPUTFORMAT NAME "OGRGML" DRIVER "OGR/GML" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "FILENAME=result.gml" END Layers include this metadata definition METADATA "wms_title" "ESU" "wfs_title" "ESU" "wfs_featureid" "NE_ID" "gml_featureid" "NE_ID" "wfs_enable_request" "*" "wms_enable_request" "*" "gml_include_items" "all" "wfs_getfeature_formatlist" "OGRGML" "gml_geometries" "msGeometry" "gml_msGeometry_type" "line" "ows_geometry" "LineString25D" "wfs_geometry" "LineString25D" END Typical call:- http://parra5900reml/Mapserver/mapserv.exe?map=nem_highways.map&LAYERS=ESU&QUERY_LAYERS=ESU&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-25660.108682%2C6716795.696074%2C8125.057815%2C6751574.543939&FEATURE_COUNT=1&HEIGHT=910&WIDTH=884&FORMAT=image%2Fpng&INFO_FORMAT=GML.1&SRS=EPSG%3A900913&X=287&Y=24 From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: 03 April 2014 13:48 To: Andrew Parry; mapserver-users at lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Andrew, This is possible. You do need to do several things. 1. Mapserver needs to be compiled with USE_POINT_Z_M 2. You need to use an OGR output format 3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Andrew.Parry at bentley.com" > Date: Thursday, April 3, 2014 6:06 AM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Resent-From: Michael Smith > Hi, I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source. Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers). Any suggestions welcome. Regards, Andrew Andrew Parry | Software Engineer II Bentley Systems (UK) Ltd E-mail: andrew.parry at bentley.com | www.bentley.com Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG Registered in England No. 2957722 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 631 bytes Desc: image001.jpg URL: From jt at mapmedia.de Wed Jun 4 04:36:47 2014 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Wed, 04 Jun 2014 13:36:47 +0200 Subject: [mapserver-users] Mapserver installation trouble in ubuntu server In-Reply-To: References: Message-ID: <538F04CF.6@mapmedia.de> Hi, sounds like your Apache / Webserver is misconfigured. is the cgi-bin directory configured as ScriptAlias like > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ > > AllowOverride None > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > Order allow,deny > Allow from all > J?rg Am 04.06.2014 13:14, schrieb Hugo: > Hi all, > > I'm having some troubles with a mapserver installation in a hosted > ubuntu server (12.04). > I've installed it using the regular procedures (apt-get install > mapserver-bin cgi-mapserver) and i can see from the console that it is > installed correctly. However, when i try to access it from the browser, > using the url http:/ip_address/cgi-bin/mapserv it starts to download the > bin file and does not display the typical message (No query information > to decode...). > > I remember that i have had this issue some time ago and don't remember > how i fixed it... i know it is something really simple that i'm missing > here. > > Could you guys give me some help? > > Kind regards, > > -- > Hugo Martins > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jukka.rahkonen at mmmtike.fi Wed Jun 4 04:43:06 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 4 Jun 2014 11:43:06 +0000 Subject: [mapserver-users] Mapserver installation trouble in ubuntu server Message-ID: Hi, I guess that you must tell Apache that mapserv should be run as cgi-bin script. I found the following snippet from httpd.cong file but that file is not in use and I do not know if it is valid. SetHandler cgi-script SetHandler fcgid-script -Jukka Rahkonen- Hugo wrote: Hi all, I'm having some troubles with a mapserver installation in a hosted ubuntu server (12.04). I've installed it using the regular procedures (apt-get install mapserver-bin cgi-mapserver) and i can see from the console that it is installed correctly. However, when i try to access it from the browser, using the url http:/ip_address/cgi-bin/mapserv it starts to download the bin file and does not display the typical message (No query information to decode...). I remember that i have had this issue some time ago and don't remember how i fixed it... i know it is something really simple that i'm missing here. Could you guys give me some help? Kind regards, -- Hugo Martins -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfpmartins at gmail.com Wed Jun 4 05:18:30 2014 From: hfpmartins at gmail.com (Hugo) Date: Wed, 4 Jun 2014 13:18:30 +0100 Subject: [mapserver-users] Mapserver installation trouble in ubuntu server In-Reply-To: References: Message-ID: Hi, I have done those configurations but i guess i should have some problems with virtual hosts that were setup in the machine. Now i'm sure that this is the configuration that is not being read and can focus on that. Thanks a lot for your help. Cheers, On 4 Jun 2014 12:43, "Rahkonen Jukka (Tike)" wrote: > Hi, > > > > I guess that you must tell Apache that mapserv should be run as cgi-bin > script. I found the following snippet from httpd.cong file but that file is > not in use and I do not know if it is valid. > > > > > > SetHandler cgi-script > > > > SetHandler fcgid-script > > > > -Jukka Rahkonen- > > > > Hugo wrote: > > > > Hi all, > > > > I'm having some troubles with a mapserver installation in a hosted ubuntu > server (12.04). > > I've installed it using the regular procedures (apt-get install > mapserver-bin cgi-mapserver) and i can see from the console that it is > installed correctly. However, when i try to access it from the browser, > using the url http:/ip_address/cgi-bin/mapserv it starts to download the > bin file and does not display the typical message (No query information to > decode...). > > > > I remember that i have had this issue some time ago and don't remember how > i fixed it... i know it is something really simple that i'm missing here. > > > > Could you guys give me some help? > > > > Kind regards, > > > > -- > Hugo Martins > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Jun 4 06:23:22 2014 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 4 Jun 2014 13:23:22 +0000 Subject: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D geometries In-Reply-To: <438b06f1f98d44b594178f036e7e87bc@extprdex01.bentley.com> References: <438b06f1f98d44b594178f036e7e87bc@extprdex01.bentley.com> Message-ID: Andrew, Looks like your metadata key for the geometry type is wrong its not ows_geometry, should be "ows_geomtype" ?LineString25D" Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Andrew.Parry at bentley.com" > Date: Wednesday, June 4, 2014 at 7:26 AM To: Michael Smith >, "mapserver-users at lists.osgeo.org" > Subject: RE: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Michael, I wonder if you would be able offer some more advice on this. I have a version of mapserver compiled with the POINT_Z_M option. Despite my best efforts, the geometry always returns in 2D. Do you happen to have an example map file entry and GetFeatureInfo call example? Information from my config given below. Thanks, Andrew mapserv -v MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My map file includes this output format OUTPUTFORMAT NAME "OGRGML" DRIVER "OGR/GML" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "FILENAME=result.gml" END Layers include this metadata definition METADATA "wms_title" "ESU" "wfs_title" "ESU" "wfs_featureid" "NE_ID" "gml_featureid" "NE_ID" "wfs_enable_request" "*" "wms_enable_request" "*" "gml_include_items" "all" "wfs_getfeature_formatlist" "OGRGML" "gml_geometries" "msGeometry" "gml_msGeometry_type" "line" "ows_geometry" "LineString25D" "wfs_geometry" "LineString25D" END Typical call:- http://parra5900reml/Mapserver/mapserv.exe?map=nem_highways.map&LAYERS=ESU&QUERY_LAYERS=ESU&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-25660.108682%2C6716795.696074%2C8125.057815%2C6751574.543939&FEATURE_COUNT=1&HEIGHT=910&WIDTH=884&FORMAT=image%2Fpng&INFO_FORMAT=GML.1&SRS=EPSG%3A900913&X=287&Y=24 From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: 03 April 2014 13:48 To: Andrew Parry; mapserver-users at lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Andrew, This is possible. You do need to do several things. 1. Mapserver needs to be compiled with USE_POINT_Z_M 2. You need to use an OGR output format 3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: "Andrew.Parry at bentley.com" > Date: Thursday, April 3, 2014 6:06 AM To: "mapserver-users at lists.osgeo.org" > Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Resent-From: Michael Smith > Hi, I?m looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source. Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers). Any suggestions welcome. Regards, Andrew Andrew Parry | Software Engineer II Bentley Systems (UK) Ltd E-mail: andrew.parry at bentley.com | www.bentley.com Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG Registered in England No. 2957722 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 631 bytes Desc: image001.jpg URL: From traviskirstine at gmail.com Wed Jun 4 08:42:23 2014 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 4 Jun 2014 11:42:23 -0400 Subject: [mapserver-users] fastcgi with multiple WMS services Message-ID: We are currently running a number of (several hundred) WMS services on a single server using CGI. Each service is configure using its own mapfile with corresponding CGI script. All services are pulling source data from PostGIS tables. In this type of use does it make sense to use fastcgi and are there any dangers - high memory usage, multiple open PG connections? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.malm at saabgroup.com Thu Jun 5 05:30:01 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Thu, 5 Jun 2014 12:30:01 +0000 Subject: [mapserver-users] layer groups Message-ID: <2d489cd9a4924729b85d18e341f55a30@CORPAPPL840.corp.saab.se> Hi, I'm sorry to bother you with a question like this, but I have not found any information. I have a map file which INCLUDES a lot of layer files. The layer files defines all layers of a chart. All the layers in the all layer files are assigned to a GROUP. When I'm connecting to the wms I would just like to get the GROUP, now I'm getting the GROUP, all separate layers and the whole map. This results in 3 times to much data. The connection URL I'm using in WorldWind is:http://localhost/cgi-bin/mapserv?map=/tmp/test.map?SERVICE=WMS?REQUEST=Getmap?VERSION=1.1.1?LAYERS=BASE The map file looks like this: #------------------------------------------------------------------------ MAP NAME 'test' CONFIG "PROJ_LIB" "/usr/src/mapserver/usr/local/share/proj" EXTENT -180 -90 180 90 SIZE 800 800 RESOLUTION 300 DEFRESOLUTION 72 PROJECTION 'init=epsg:4326' END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'S57TEST' 'wms_srs' 'epsg:4326' END END INCLUDE 'DE110000.lay' INCLUDE 'FI2SAISE.lay' END #--------------------------------------------------------------------- All layer files looks almost the same but with different connections, the GROUP "BASE" is used to group the same type of layers from different charts. And the lay files typically looks like this: #------------------------------------------------------------------ LAYER DATA "LNDARE" NAME "Ground3" GROUP "BASE" METADATA "wms_title" "Ground3" END TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 600000 CLASS STYLE COLOR 222 205 139 END END END ##### Seabed layers from scale 3 ###### LAYER DATA "SBDARE" NAME "Seabed_Area3" GROUP "BASE" METADATA "wms_title" "Seabed_Area3" END TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 600000 CLASS NAME "Seabed_area" STYLE COLOR 155 200 163 END END END #--------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Thu Jun 5 08:24:27 2014 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 5 Jun 2014 16:24:27 +0100 Subject: [mapserver-users] layer groups In-Reply-To: <2d489cd9a4924729b85d18e341f55a30@CORPAPPL840.corp.saab.se> References: <2d489cd9a4924729b85d18e341f55a30@CORPAPPL840.corp.saab.se> Message-ID: <002a01cf80d2$3d5b8810$b8129830$@dkerr.co.uk> Try STATUS OFF on all the layers. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Malm Paul Sent: 05 June 2014 13:30 To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] layer groups Hi, I'm sorry to bother you with a question like this, but I have not found any information. I have a map file which INCLUDES a lot of layer files. The layer files defines all layers of a chart. All the layers in the all layer files are assigned to a GROUP. When I'm connecting to the wms I would just like to get the GROUP, now I'm getting the GROUP, all separate layers and the whole map. This results in 3 times to much data. The connection URL I'm using in WorldWind is:http://localhost/cgi-bin/mapserv?map=/tmp/test.map?SERVICE=WMS?REQUEST=Ge tmap?VERSION=1.1.1?LAYERS=BASE The map file looks like this: #------------------------------------------------------------------------ MAP NAME 'test' CONFIG "PROJ_LIB" "/usr/src/mapserver/usr/local/share/proj" EXTENT -180 -90 180 90 SIZE 800 800 RESOLUTION 300 DEFRESOLUTION 72 PROJECTION 'init=epsg:4326' END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'S57TEST' 'wms_srs' 'epsg:4326' END END INCLUDE 'DE110000.lay' INCLUDE 'FI2SAISE.lay' END #--------------------------------------------------------------------- All layer files looks almost the same but with different connections, the GROUP "BASE" is used to group the same type of layers from different charts. And the lay files typically looks like this: #------------------------------------------------------------------ LAYER DATA "LNDARE" NAME "Ground3" GROUP "BASE" METADATA "wms_title" "Ground3" END TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 600000 CLASS STYLE COLOR 222 205 139 END END END ##### Seabed layers from scale 3 ###### LAYER DATA "SBDARE" NAME "Seabed_Area3" GROUP "BASE" METADATA "wms_title" "Seabed_Area3" END TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "/tmp/ENC_ROOT/EE/EE3A0403/2/0/EE3A0403.000" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 600000 CLASS NAME "Seabed_area" STYLE COLOR 155 200 163 END END END #--------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From devmapit at gmail.com Thu Jun 5 23:22:50 2014 From: devmapit at gmail.com (Debabrata Pradhan) Date: Fri, 6 Jun 2014 11:52:50 +0530 Subject: [mapserver-users] Label BBox Computation Message-ID: Hi, It has been a regular ask "Why this label is here???Why not there???". Labels are rendered by different rules for different features.So controlling them to perfection only through programs is difficult. On the other hand it always feels better when you can give manual finishing touch to something. So my question is Can we have a switch for getting(printing) the label BBox es of the label in the map.(from maplabel.c)????But again does it worth doing that???I believe having a knowledge about the positions of labels on the map will enable you to play with interesting things.Like you can store them somewhere and and later you can filter out some of the label which you don't like Or you can shift the Geometry and define a new place for certain label. I don't know I may be thinking too much and end up doing nothing but to waste time.So, any thoughts ,ideas are greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.walawender at noaa.gov Fri Jun 6 07:10:35 2014 From: brian.walawender at noaa.gov (Brian Walawender - NOAA Federal) Date: Fri, 6 Jun 2014 09:10:35 -0500 Subject: [mapserver-users] PHP Mapscript Line Width Drawing Issue Message-ID: Hello, I'm having an occasional php mapscript issue where lines with a width greater than 1 are not being filled. If I set the width to 1 one the issue does not occur. The link below shows two cases of this happening. http://www.crh.noaa.gov/images/crh/line_width_issue.png The example in the lower part of the image is TIGER state data drawn from PostGIS: LAYER NAME "state" METADATA "wms_title" "state" END PROJECTION "init=epsg:4269" END STATUS ON CONNECTIONTYPE postgis INCLUDE 'connection.info' TYPE POLYGON DATA "geom FROM data.tiger_state AS SUBQUERY USING UNIQUE gid USING SRID=4269" CLASS STYLE WIDTH 2 OUTLINECOLOR 0 0 0 END END PROCESSING "CLOSE_CONNECTION=NORMAL" END The example on the right hand side of the image is a linestring: LAYER NAME "line" METADATA "wms_title" "line" END PROJECTION "init=epsg:4269" END STATUS ON CONNECTIONTYPE postgis INCLUDE 'connection.info' TYPE LINE DATA "geom FROM (SELECT 1 AS id, ST_GeomFromText('LINESTRING(-96 38, 97 37)') AS geom) AS SUBQUERY USING UNIQUE id USING SRID=4269" CLASS STYLE COLOR 0 0 0 WIDTH 3 END STYLE GEOMTRANSFORM 'end' ANGLE AUTO SYMBOL 'arrow' SIZE 22 COLOR 0 0 0 END END PROCESSING "CLOSE_CONNECTION=NORMAL" END I'm running mapserver 6.4.1 with PHP 5.3.3 MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks. bw -- Brian Walawender IT Branch Chief Systems and Facilities Division NOAA/National Weather Service Central Region Headquarters 816-268-3114 - Office 816-805-6497 - Cell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Fri Jun 6 11:56:11 2014 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Fri, 6 Jun 2014 18:56:11 +0000 Subject: [mapserver-users] Data Query Issue Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F080CA92A67@afovsml1m.WAPA.INT> Hello list, I am auto downloading two different sets of fire point data. One comes in Geographic WGS84 the other in Geographic NAD83. When I draw both at the same time and try a Query by Rectangle only the last one defined in the mapfile returns info. If I reproject one to UTM then they both return information. This is an auto download every two hours so I would hate to have to mod the data. I'm using version 6.2.1. Query by point works fine. Any ideas are greatly appreciate. Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Jun 6 12:18:03 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 6 Jun 2014 19:18:03 +0000 Subject: [mapserver-users] Data Query Issue In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F080CA92A67@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F080CA92A67@afovsml1m.WAPA.INT> Message-ID: Eric, Add a PROJECTION/END block inside of Each layer (based on the raw data projection for each layer) and another at the map level for the projection you want to use for queries. Mapserver will just transform the locations for you on the fly when you make a query. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 06, 2014 1:56 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Data Query Issue Hello list, I am auto downloading two different sets of fire point data. One comes in Geographic WGS84 the other in Geographic NAD83. When I draw both at the same time and try a Query by Rectangle only the last one defined in the mapfile returns info. If I reproject one to UTM then they both return information. This is an auto download every two hours so I would hate to have to mod the data. I'm using version 6.2.1. Query by point works fine. Any ideas are greatly appreciate. Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Fri Jun 6 12:28:36 2014 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Fri, 6 Jun 2014 19:28:36 +0000 Subject: [mapserver-users] Data Query Issue In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F080CA92A67@afovsml1m.WAPA.INT> Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F080CA92ACD@afovsml1m.WAPA.INT> I have all that info in my system. Below is what the data layer definitions look like and my map output projections is utm 13 nad 83 meters. I've pretty much tried everything I can think of. I always hit the mail list last. LAYER NAME "fire_modis" METADATA "qstring_validation_pattern" "." END TYPE point STATUS OFF DATA "/data/gis/vector/cso/fire_data/USA_contiguous_and_Hawaii_24h" OPACITY ALPHA CLASS NAME "Active Fires / MODIS (NASA)" TEXT "MODIS Fire" STYLE SYMBOL "donut" COLOR 0 0 0 SIZE 16 WIDTH 2 END STYLE SYMBOL "http://gis.hq.wapa.gov/ms_common/fire_modis.png" COLOR -1 -1 -1 SIZE 12 WIDTH 2 END LABEL COLOR 0 0 0 TYPE TRUETYPE FONT 'arial-bold' SIZE 8 POSITION UR OFFSET 4 4 OUTLINECOLOR 255 255 255 MAXSCALEDENOM 300000 END END TEMPLATE "/data/gis/www/html/ms_common/fires_modis.html" HEADER "/data/gis/www/html/ms_common/fires_modis_header.html" FOOTER "/data/gis/www/html/ms_common/fires_modis_footer.html" TOLERANCE 10 PROJECTION "init=epsg:4326" END END LAYER NAME "fire_geomac" METADATA "qstring_validation_pattern" "." END TYPE point STATUS OFF DATA "/data/gis/vector/cso/fire_data/nifc_lrg_fires_dd83" OPACITY ALPHA LABELITEM "FIRE_NAME" CLASS NAME "Active Fires / GeoMAC (USGS)" STYLE SYMBOL "donut" COLOR 240 0 0 SIZE 16 WIDTH 2 END STYLE SYMBOL "fire" COLOR -1 -1 -1 SIZE 12 WIDTH 2 END LABEL COLOR 240 0 0 TYPE TRUETYPE FONT 'arial-bold' SIZE 8 POSITION LL OFFSET 4 4 OUTLINECOLOR 255 255 255 FORCE TRUE MAXSCALEDENOM 300000 END END TEMPLATE "/data/gis/www/html/ms_common/fires_geomac.html" HEADER "/data/gis/www/html/ms_common/fires_geomac_header.html" FOOTER "/data/gis/www/html/ms_common/fires_footer.html" TOLERANCE 10 PROJECTION "init=epsg:4269" END END Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration (720) 962-7280 weisbend at wapa.gov From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: 2014, June, 06 1:18 PM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Data Query Issue Eric, Add a PROJECTION/END block inside of Each layer (based on the raw data projection for each layer) and another at the map level for the projection you want to use for queries. Mapserver will just transform the locations for you on the fly when you make a query. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 06, 2014 1:56 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Data Query Issue Hello list, I am auto downloading two different sets of fire point data. One comes in Geographic WGS84 the other in Geographic NAD83. When I draw both at the same time and try a Query by Rectangle only the last one defined in the mapfile returns info. If I reproject one to UTM then they both return information. This is an auto download every two hours so I would hate to have to mod the data. I'm using version 6.2.1. Query by point works fine. Any ideas are greatly appreciate. Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From dery at mgi.esdm.go.id Sat Jun 7 05:26:27 2014 From: dery at mgi.esdm.go.id (Dery Rochiman) Date: Sat, 7 Jun 2014 19:26:27 +0700 (WIT) Subject: [mapserver-users] PHP Code in Chameleon HTML Template Message-ID: <26033469.2617.1402143987159.JavaMail.root@mgi.esdm.go.id> Hi, i've been working webgis with chameleon framework for my last exam in college. i have some search function, that need dropdown list from database, and post it in html template chameleon. i try to put php code in html template chameleon, but it seems that php tag is ignored. i try to change template extension to .php, but it doesnt work. anybody can help ? thanks -- Regards, Dery Rochiman ---------------- From tkirstine at firstbasesolutions.com Mon Jun 9 07:58:38 2014 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Mon, 9 Jun 2014 10:58:38 -0400 Subject: [mapserver-users] WMS/WFS set-up and query time Message-ID: I've been looking at my error log for a WMS server I have up and running and noticed that the WMS/WFS set-up and query made up the majority of the request time. What is the setup and query and is there any way to decrease this? [Mon Jun 9 10:49:13 2014].911007 CGI Request 1 on process 6228 [Mon Jun 9 10:49:13 2014].916813 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Mon Jun 9 10:49:18 2014].747371 msDrawMap(): WMS/WFS set-up and query, 4.831s [Mon Jun 9 10:49:18 2014].856602 msDrawMap(): Layer 0 (processed_p), 0.109s [Mon Jun 9 10:49:18 2014].859903 msDrawMap(): Layer 1 (Ontario), 0.003s [Mon Jun 9 10:49:18 2014].864408 msDrawRasterLayerLow(fbs_latest): entering. [Mon Jun 9 10:49:18 2014].890107 msDrawMap(): Layer 2 (fbs_latest), 0.030s [Mon Jun 9 10:49:18 2014].927472 msDrawMap(): Layer 3 (municipality), 0.037s [Mon Jun 9 10:49:18 2014].945933 msDrawMap(): Layer 5 (woodedarea_12), 0.018s [Mon Jun 9 10:49:18 2014].957586 msDrawMap(): Layer 6 (wetland_swamp), 0.012s [Mon Jun 9 10:49:18 2014].967636 msDrawMap(): Layer 7 (wetland_marsh), 0.010s [Mon Jun 9 10:49:18 2014].974653 msDrawMap(): Layer 8 (wetland_bog), 0.007s [Mon Jun 9 10:49:18 2014].981668 msDrawMap(): Layer 9 (wetland_fen), 0.007s [Mon Jun 9 10:49:18 2014].989448 msDrawMap(): Layer 10 (wetland_openwater), 0.008s [Mon Jun 9 10:49:18 2014].997182 msDrawMap(): Layer 11 (wetland_unknown), 0.008s [Mon Jun 9 10:49:19 2014].7441 msDrawMap(): Layer 13 (lotfabric_13), 0.010s [Mon Jun 9 10:49:19 2014].404273 msDrawMap(): Layer 16 (ohnwbdy_11), 0.397s [Mon Jun 9 10:49:19 2014].408186 msDrawMap(): Layer 18 (watercourse_14), 0.004s [Mon Jun 9 10:49:19 2014].408715 msDrawMap(): Layer 19 (watercourse_intermittent_14), 0.001s [Mon Jun 9 10:49:19 2014].413966 msDrawMap(): Layer 26 (roads_17), 0.005s [Mon Jun 9 10:49:19 2014].424807 msDrawMap(): Layer 28 (indianre), 0.011s [Mon Jun 9 10:49:19 2014].425115 msDrawMap(): Layer 29 (gelname_lake_12), 0.000s [Mon Jun 9 10:49:19 2014].425494 msDrawMap(): Layer 30 (gelname_unp_12), 0.000s [Mon Jun 9 10:49:19 2014].425721 msDrawMap(): Layer 31 (gelname_vilg_12), 0.000s [Mon Jun 9 10:49:19 2014].425959 msDrawMap(): Layer 32 (gelname_town_12), 0.000s [Mon Jun 9 10:49:19 2014].501495 msDrawMap(): Layer 33 (lros), 0.076s [Mon Jun 9 10:49:19 2014].584851 msDrawMap(): Layer 35 (pin), 0.083s [Mon Jun 9 10:49:19 2014].588164 msDrawMap(): Drawing Label Cache, 0.003s [Mon Jun 9 10:49:19 2014].588418 msDrawMap() total time: 5.677s -- *Travis Kirstine* *First Base Solutions I**nc*. tkirstine at firstbasesolutions.com 140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3 p. 905-477-3600 ext. 301 | m. 647-534-4798 http://www.firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From starling.lucky at gmail.com Mon Jun 9 12:15:05 2014 From: starling.lucky at gmail.com (Hari Pradhan) Date: Mon, 9 Jun 2014 14:15:05 -0500 Subject: [mapserver-users] WMS-T support for vector data using OGR Message-ID: Hello List, I have been trying to implement MapServer WMS -T using tile index. But I am not able to make it work. I made some changes to the mapfile defined for "WMS-T for raster imagery" in the link "http://mapserver.org/ogc/wms_time.html" to make it work for vector data and followed the post in the link " http://osgeo-org.1560.x6.nabble.com/WMS-WFS-and-yearly-time-dependent-data-td4275270.html", but it didn't fix it out. The thing that I did: 1. I had a set of vector shape file captured at different time frame. Say v1.shp, v2.shp,... 2. I used ogrtindex to generate a tileindex (say 'VectorLayer2.shp) for above shape files. The dbf file of this tileindex has 'location' attribute. 3. I ran my script to add 'Time' field to this tileindex such that the final dbf file has two fields as location and Time. My dfb file looks like: LOCATION Time C:\data\tif\VectorLayer\SiteAddress_1.shp,0 20070301 C:\data\tif\VectorLayer\SiteAddress_2.shp,0 20070302 4. Then finally I wrote the map file with layer section as: LAYER NAME "states" DEBUG 5 CONNECTIONTYPE OGR TILEINDEX "VectorLayer2.shp" TILEITEM "Location" TYPE POLYGON STATUS ON METADATA "wms_title" "states" "wms_include_items" "all" "wms_dataurl_format" "text/HTML" "ows_include_items" "all" "wms_exceptions_format" "application/vnd.ogc.se_xml" 'wms_srs' 'EPSG:42304' "wms_timeextent" "20070301/20070302" "wms_timeitem" "Time" "wms_timedefault" "20070302" END FILTER "Time = '20070302'" PROJECTION "init=epsg:42304" END CLASS NAME "The Upper Great Lakes States" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END By doing this, I got the following error. msOGRLayerInitItemInfo(): OGR error. Invalid Field name: Time". Could anyone please help me to resolve this problem? Thanks in advance. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Mon Jun 9 12:34:02 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 9 Jun 2014 21:34:02 +0200 Subject: [mapserver-users] WMS-T support for vector data using OGR In-Reply-To: References: Message-ID: <201406092134.02402.even.rouault@mines-paris.org> Le lundi 09 juin 2014 21:15:05, Hari Pradhan a ?crit : > Hello List, > > I have been trying to implement MapServer WMS -T using tile index. But I am > not able to make it work. I made some changes to the mapfile defined for > "WMS-T for raster imagery" in the link > "http://mapserver.org/ogc/wms_time.html" to make it work for vector data > and followed the post in the link " > http://osgeo-org.1560.x6.nabble.com/WMS-WFS-and-yearly-time-dependent-data- > td4275270.html", but it didn't fix it out. > > The thing that I did: > 1. I had a set of vector shape file captured at different time frame. Say > v1.shp, v2.shp,... > 2. I used ogrtindex to generate a tileindex (say 'VectorLayer2.shp) for > above shape files. The dbf file of this tileindex has 'location' attribute. > 3. I ran my script to add 'Time' field to this tileindex such that the > final dbf file has two fields as location and Time. > My dfb file looks like: > LOCATION Time > C:\data\tif\VectorLayer\SiteAddress_1.shp,0 20070301 > C:\data\tif\VectorLayer\SiteAddress_2.shp,0 20070302 > > 4. Then finally I wrote the map file with layer section as: > > LAYER > NAME "states" > DEBUG 5 > CONNECTIONTYPE OGR > TILEINDEX "VectorLayer2.shp" > TILEITEM "Location" > TYPE POLYGON > STATUS ON > > METADATA > "wms_title" "states" > "wms_include_items" "all" > "wms_dataurl_format" "text/HTML" > "ows_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > 'wms_srs' 'EPSG:42304' > "wms_timeextent" "20070301/20070302" > "wms_timeitem" "Time" > "wms_timedefault" "20070302" > END > FILTER "Time = '20070302'" > PROJECTION > "init=epsg:42304" > END > CLASS > NAME "The Upper Great Lakes States" > STYLE > COLOR 232 232 232 > OUTLINECOLOR 32 32 32 > END > END > END > > By doing this, I got the following error. > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: Time". > > Could anyone please help me to resolve this problem? Hum, I'm wondering if FILTER "Time = '200070302'" doesn't apply to the shapefile referenced by the tileindex, instead of the tileindex itself. Perhaps you could try to remove it ? Also you could try to seperate a layer with the tileindex itself and the vector layer using it, as in the example in http://www.mapserver.org/ogc/wms_time.html > > Thanks in advance. > > Thanks -- Geospatial professional services http://even.rouault.free.fr/services.html From even.rouault at mines-paris.org Mon Jun 9 13:29:47 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 9 Jun 2014 22:29:47 +0200 Subject: [mapserver-users] WMS-T support for vector data using OGR In-Reply-To: References: <201406092134.02402.even.rouault@mines-paris.org> Message-ID: <201406092229.47541.even.rouault@mines-paris.org> Le lundi 09 juin 2014 22:15:56, Hari Pradhan a ?crit : > Thanks Even. I tried as you said by separating a layer with the tile index > and the vector layer as: > > # Tile Index > LAYER > STATUS ON > NAME "time_idx" > DATA "vector2.shp" > TYPE POLYGON > #CONNECTIONTYPE OGR > END > > LAYER > NAME "states" > DEBUG 5 > TYPE POLYGON > TILEINDEX "time_idx" > TILEITEM "Location" > > STATUS ON > > METADATA > "wms_title" "states" > "wms_include_items" "all" > "wms_dataurl_format" "text/HTML" > "ows_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > 'wms_srs' 'EPSG:42304' > "wms_timeextent" "20070301/20070302" > "wms_timeitem" "Time" > "wms_timedefault" "20070302" > END > > #FILTER "Time = '20070302'" > > PROJECTION > "init=epsg:42304" > END > > CLASS > NAME "The Upper Great Lakes States" > STYLE > COLOR 232 232 232 > OUTLINECOLOR 32 32 32 > END > END > END #Layer > > This also gives an error as "msDBFGetItemIndex(): DBASE file error. Item > 'Time' not found.". Looking at the code of msTiledSHPNextShape(), I believe that your shapefiles reference in the tile index should also have a "Time" field. > > > > On Mon, Jun 9, 2014 at 2:34 PM, Even Rouault > > wrote: > > Le lundi 09 juin 2014 21:15:05, Hari Pradhan a ?crit : > > > Hello List, > > > > > > I have been trying to implement MapServer WMS -T using tile index. But > > > I > > > > am > > > > > not able to make it work. I made some changes to the mapfile defined > > > for "WMS-T for raster imagery" in the link > > > "http://mapserver.org/ogc/wms_time.html" to make it work for vector > > > data and followed the post in the link " > > > > http://osgeo-org.1560.x6.nabble.com/WMS-WFS-and-yearly-time-dependent-dat > > a- > > > > > td4275270.html", but it didn't fix it out. > > > > > > The thing that I did: > > > 1. I had a set of vector shape file captured at different time frame. > > > Say v1.shp, v2.shp,... > > > 2. I used ogrtindex to generate a tileindex (say 'VectorLayer2.shp) for > > > above shape files. The dbf file of this tileindex has 'location' > > > > attribute. > > > > > 3. I ran my script to add 'Time' field to this tileindex such that the > > > final dbf file has two fields as location and Time. > > > > > > My dfb file looks like: > > > LOCATION Time > > > > > > C:\data\tif\VectorLayer\SiteAddress_1.shp,0 20070301 > > > C:\data\tif\VectorLayer\SiteAddress_2.shp,0 20070302 > > > > > > 4. Then finally I wrote the map file with layer section as: > > > > > > LAYER > > > > > > NAME "states" > > > > > > DEBUG 5 > > > CONNECTIONTYPE OGR > > > TILEINDEX "VectorLayer2.shp" > > > TILEITEM "Location" > > > TYPE POLYGON > > > > > > STATUS ON > > > > > > METADATA > > > > > > "wms_title" "states" > > > > > > "wms_include_items" "all" > > > "wms_dataurl_format" "text/HTML" > > > > > > "ows_include_items" "all" > > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > > > > > 'wms_srs' 'EPSG:42304' > > > "wms_timeextent" "20070301/20070302" > > > "wms_timeitem" "Time" > > > "wms_timedefault" "20070302" > > > > > > END > > > > > > FILTER "Time = '20070302'" > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > CLASS > > > > > > NAME "The Upper Great Lakes States" > > > STYLE > > > > > > COLOR 232 232 232 > > > OUTLINECOLOR 32 32 32 > > > > > > END > > > > > > END > > > > > > END > > > > > > By doing this, I got the following error. > > > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: Time". > > > > > > Could anyone please help me to resolve this problem? > > > > Hum, I'm wondering if FILTER "Time = '200070302'" doesn't apply to the > > shapefile referenced by the tileindex, instead of the tileindex itself. > > Perhaps > > you could try to remove it ? > > > > Also you could try to seperate a layer with the tileindex itself and the > > vector layer using it, as in the example in > > http://www.mapserver.org/ogc/wms_time.html > > > > > Thanks in advance. > > > > > > Thanks > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html -- Geospatial professional services http://even.rouault.free.fr/services.html From even.rouault at mines-paris.org Mon Jun 9 13:41:34 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 9 Jun 2014 22:41:34 +0200 Subject: [mapserver-users] WMS-T support for vector data using OGR In-Reply-To: References: <201406092229.47541.even.rouault@mines-paris.org> Message-ID: <201406092241.34221.even.rouault@mines-paris.org> Le lundi 09 juin 2014 22:35:48, Hari Pradhan a ?crit : > No Evan. My requirement says I have a set of individual shape files taken > at different time frame. Let's say shape1.shp at time t1 , shape2.shp at > time t2,.. shapen.shp at time tn. Using these shape files, I have to create > tileindex file with location and time field, location being the path of > each shape file and time field being the time at which that individual > shape file was captured. I have used ogrtindex.exe to create tile index > file. > Hari, I understand your requirements. I was just giving you my understanding of the current state of the code of MapServer. Doing what you want to do would require further developments in MapServer. Even > > > On Mon, Jun 9, 2014 at 3:29 PM, Even Rouault > > wrote: > > Le lundi 09 juin 2014 22:15:56, Hari Pradhan a ?crit : > > > Thanks Even. I tried as you said by separating a layer with the tile > > > > index > > > > > and the vector layer as: > > > > > > # Tile Index > > > LAYER > > > STATUS ON > > > NAME "time_idx" > > > DATA "vector2.shp" > > > TYPE POLYGON > > > #CONNECTIONTYPE OGR > > > END > > > > > > LAYER > > > NAME "states" > > > DEBUG 5 > > > TYPE POLYGON > > > TILEINDEX "time_idx" > > > TILEITEM "Location" > > > > > > STATUS ON > > > > > > METADATA > > > > > > "wms_title" "states" > > > "wms_include_items" "all" > > > "wms_dataurl_format" "text/HTML" > > > "ows_include_items" "all" > > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > > 'wms_srs' 'EPSG:42304' > > > "wms_timeextent" "20070301/20070302" > > > "wms_timeitem" "Time" > > > "wms_timedefault" "20070302" > > > > > > END > > > > > > #FILTER "Time = '20070302'" > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > CLASS > > > > > > NAME "The Upper Great Lakes States" > > > STYLE > > > > > > COLOR 232 232 232 > > > OUTLINECOLOR 32 32 32 > > > > > > END > > > > > > END > > > END #Layer > > > > > > This also gives an error as "msDBFGetItemIndex(): DBASE file error. > > > Item 'Time' not found.". > > > > Looking at the code of msTiledSHPNextShape(), I believe that your > > shapefiles > > reference in the tile index should also have a "Time" field. > > > > > On Mon, Jun 9, 2014 at 2:34 PM, Even Rouault < > > > > even.rouault at mines-paris.org> > > > > > wrote: > > > > Le lundi 09 juin 2014 21:15:05, Hari Pradhan a ?crit : > > > > > Hello List, > > > > > > > > > > I have been trying to implement MapServer WMS -T using tile index. > > > > But > > > > > > > I > > > > > > > > am > > > > > > > > > not able to make it work. I made some changes to the mapfile > > > > > defined for "WMS-T for raster imagery" in the link > > > > > "http://mapserver.org/ogc/wms_time.html" to make it work for vector > > > > > data and followed the post in the link " > > > > http://osgeo-org.1560.x6.nabble.com/WMS-WFS-and-yearly-time-dependent-dat > > > > > > a- > > > > > > > > > td4275270.html", but it didn't fix it out. > > > > > > > > > > The thing that I did: > > > > > 1. I had a set of vector shape file captured at different time > > > > > frame. Say v1.shp, v2.shp,... > > > > > 2. I used ogrtindex to generate a tileindex (say 'VectorLayer2.shp) > > > > for > > > > > > > above shape files. The dbf file of this tileindex has 'location' > > > > > > > > attribute. > > > > > > > > > 3. I ran my script to add 'Time' field to this tileindex such that > > > > the > > > > > > > final dbf file has two fields as location and Time. > > > > > > > > > > My dfb file looks like: > > > > > LOCATION Time > > > > > > > > > > C:\data\tif\VectorLayer\SiteAddress_1.shp,0 20070301 > > > > > C:\data\tif\VectorLayer\SiteAddress_2.shp,0 20070302 > > > > > > > > > > 4. Then finally I wrote the map file with layer section as: > > > > > > > > > > LAYER > > > > > > > > > > NAME "states" > > > > > > > > > > DEBUG 5 > > > > > CONNECTIONTYPE OGR > > > > > TILEINDEX "VectorLayer2.shp" > > > > > TILEITEM "Location" > > > > > TYPE POLYGON > > > > > > > > > > STATUS ON > > > > > > > > > > METADATA > > > > > > > > > > "wms_title" "states" > > > > > > > > > > "wms_include_items" "all" > > > > > "wms_dataurl_format" "text/HTML" > > > > > > > > > > "ows_include_items" "all" > > > > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > > > > > > > > > 'wms_srs' 'EPSG:42304' > > > > > "wms_timeextent" "20070301/20070302" > > > > > "wms_timeitem" "Time" > > > > > "wms_timedefault" "20070302" > > > > > > > > > > END > > > > > > > > > > FILTER "Time = '20070302'" > > > > > > > > > > PROJECTION > > > > > > > > > > "init=epsg:42304" > > > > > > > > > > END > > > > > > > > > > CLASS > > > > > > > > > > NAME "The Upper Great Lakes States" > > > > > STYLE > > > > > > > > > > COLOR 232 232 232 > > > > > OUTLINECOLOR 32 32 32 > > > > > > > > > > END > > > > > > > > > > END > > > > > > > > > > END > > > > > > > > > > By doing this, I got the following error. > > > > > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: Time". > > > > > > > > > > Could anyone please help me to resolve this problem? > > > > > > > > Hum, I'm wondering if FILTER "Time = '200070302'" doesn't apply to > > > > the shapefile referenced by the tileindex, instead of the tileindex > > > > itself. Perhaps > > > > you could try to remove it ? > > > > > > > > Also you could try to seperate a layer with the tileindex itself and > > > > the > > > > > > vector layer using it, as in the example in > > > > http://www.mapserver.org/ogc/wms_time.html > > > > > > > > > Thanks in advance. > > > > > > > > > > Thanks > > > > > > > > -- > > > > Geospatial professional services > > > > http://even.rouault.free.fr/services.html > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html -- Geospatial professional services http://even.rouault.free.fr/services.html From Steve.Lime at state.mn.us Tue Jun 10 05:39:28 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 10 Jun 2014 12:39:28 +0000 Subject: [mapserver-users] Label BBox Computation In-Reply-To: References: Message-ID: Are you looking for bboxes for all labels, regardless of visibility? Basically the label cache itself. It should be possible but I?m not sure how generally useful it would be. You can hack maplabel.c to do just this if you?d like to play around. That said, that?s just a picture and it won?t be clear what label belongs to what feature except for those that were actually drawn. It might be more useful to access the label cache via MapScript. That way you could save and analyze it or whatever. I used to have a script that looped through it but I doubt it would work now that single features can have multiple labels. It should still be possible though. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Debabrata Pradhan Sent: Friday, June 06, 2014 1:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Label BBox Computation Hi, It has been a regular ask "Why this label is here???Why not there???". Labels are rendered by different rules for different features.So controlling them to perfection only through programs is difficult. On the other hand it always feels better when you can give manual finishing touch to something. So my question is Can we have a switch for getting(printing) the label BBox es of the label in the map.(from maplabel.c)????But again does it worth doing that???I believe having a knowledge about the positions of labels on the map will enable you to play with interesting things.Like you can store them somewhere and and later you can filter out some of the label which you don't like Or you can shift the Geometry and define a new place for certain label. I don't know I may be thinking too much and end up doing nothing but to waste time.So, any thoughts ,ideas are greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jun 10 05:55:03 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 10 Jun 2014 12:55:03 +0000 Subject: [mapserver-users] WMS/WFS set-up and query time In-Reply-To: References: Message-ID: I believe WMS/WFS layers fetch/cache the necessary data from the remote server before rendering starts. Perhaps there?s a less than speedy remote server? --Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine Sent: Monday, June 09, 2014 9:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS/WFS set-up and query time I've been looking at my error log for a WMS server I have up and running and noticed that the WMS/WFS set-up and query made up the majority of the request time. What is the setup and query and is there any way to decrease this? [Mon Jun 9 10:49:13 2014].911007 CGI Request 1 on process 6228 [Mon Jun 9 10:49:13 2014].916813 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Mon Jun 9 10:49:18 2014].747371 msDrawMap(): WMS/WFS set-up and query, 4.831s [Mon Jun 9 10:49:18 2014].856602 msDrawMap(): Layer 0 (processed_p), 0.109s [Mon Jun 9 10:49:18 2014].859903 msDrawMap(): Layer 1 (Ontario), 0.003s [Mon Jun 9 10:49:18 2014].864408 msDrawRasterLayerLow(fbs_latest): entering. [Mon Jun 9 10:49:18 2014].890107 msDrawMap(): Layer 2 (fbs_latest), 0.030s [Mon Jun 9 10:49:18 2014].927472 msDrawMap(): Layer 3 (municipality), 0.037s [Mon Jun 9 10:49:18 2014].945933 msDrawMap(): Layer 5 (woodedarea_12), 0.018s [Mon Jun 9 10:49:18 2014].957586 msDrawMap(): Layer 6 (wetland_swamp), 0.012s [Mon Jun 9 10:49:18 2014].967636 msDrawMap(): Layer 7 (wetland_marsh), 0.010s [Mon Jun 9 10:49:18 2014].974653 msDrawMap(): Layer 8 (wetland_bog), 0.007s [Mon Jun 9 10:49:18 2014].981668 msDrawMap(): Layer 9 (wetland_fen), 0.007s [Mon Jun 9 10:49:18 2014].989448 msDrawMap(): Layer 10 (wetland_openwater), 0.008s [Mon Jun 9 10:49:18 2014].997182 msDrawMap(): Layer 11 (wetland_unknown), 0.008s [Mon Jun 9 10:49:19 2014].7441 msDrawMap(): Layer 13 (lotfabric_13), 0.010s [Mon Jun 9 10:49:19 2014].404273 msDrawMap(): Layer 16 (ohnwbdy_11), 0.397s [Mon Jun 9 10:49:19 2014].408186 msDrawMap(): Layer 18 (watercourse_14), 0.004s [Mon Jun 9 10:49:19 2014].408715 msDrawMap(): Layer 19 (watercourse_intermittent_14), 0.001s [Mon Jun 9 10:49:19 2014].413966 msDrawMap(): Layer 26 (roads_17), 0.005s [Mon Jun 9 10:49:19 2014].424807 msDrawMap(): Layer 28 (indianre), 0.011s [Mon Jun 9 10:49:19 2014].425115 msDrawMap(): Layer 29 (gelname_lake_12), 0.000s [Mon Jun 9 10:49:19 2014].425494 msDrawMap(): Layer 30 (gelname_unp_12), 0.000s [Mon Jun 9 10:49:19 2014].425721 msDrawMap(): Layer 31 (gelname_vilg_12), 0.000s [Mon Jun 9 10:49:19 2014].425959 msDrawMap(): Layer 32 (gelname_town_12), 0.000s [Mon Jun 9 10:49:19 2014].501495 msDrawMap(): Layer 33 (lros), 0.076s [Mon Jun 9 10:49:19 2014].584851 msDrawMap(): Layer 35 (pin), 0.083s [Mon Jun 9 10:49:19 2014].588164 msDrawMap(): Drawing Label Cache, 0.003s [Mon Jun 9 10:49:19 2014].588418 msDrawMap() total time: 5.677s -- Travis Kirstine First Base Solutions Inc. tkirstine at firstbasesolutions.com 140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3 p. 905-477-3600 ext. 301 | m. 647-534-4798 http://www.firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fl_v at inbox.ru Tue Jun 10 10:10:37 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Tue, 10 Jun 2014 21:10:37 +0400 Subject: [mapserver-users] =?utf-8?q?Styling_labels_in_SLD?= Message-ID: <1402420237.865821589@f423.i.mail.ru> Hello All There is full control of labels in mapfile, but TextSymbolizer offers simple facilities for styling them. Is it possible to define MAXSCALEDENOM, MINSCALEDENOM, MINSIZE, MAXSIZE, REPEATDISTANCE, MINDISTANCE, BUFFER parameters for labels in SLD document? Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From devmapit at gmail.com Wed Jun 11 02:17:44 2014 From: devmapit at gmail.com (Debabrata Pradhan) Date: Wed, 11 Jun 2014 14:47:44 +0530 Subject: [mapserver-users] Label BBox Computation In-Reply-To: References: Message-ID: Hi, Yes I am looking for bboxes of all the labels(Irrespective of visibility.Filtering to only visible labels will be helpful, But I have no Idea how to loop with the same rules from mapfile to that script which would run through all labels to get bboxes.).With all the bboxes and text (of label) and some other attributes, I can create a table which has unique pointer to each label (and box) on the map. With all that availability now I can have two layers 1)Base->(map without labels) 2)Transparent,WFS->(labels) The overlay layer on the base layer would be a re-projected layer from the table that I have got from the script. Now I can make it interactive shift(Drag->drop->place->save) ,delete,add,customize and so on. So now my base is fixed and the overlay keeps on changing. But again I have never exploded into mapscripts.So if those label caches can provide me the bboxes,text etc then half of my job is done. I have a flow which can't go to mapscript.But if it is the best way to get the data ready,then I will definitely bent towards that. Thanks in Advance... Debabrata -------------- next part -------------- An HTML attachment was scrubbed... URL: From gislars+list at googlemail.com Wed Jun 11 09:07:29 2014 From: gislars+list at googlemail.com (Lars Lingner) Date: Wed, 11 Jun 2014 18:07:29 +0200 Subject: [mapserver-users] Capabilities / queryable GROUPed layer Message-ID: <53987EC1.5090506@googlemail.com> Hello, I'm out of ideas configuring a WMS with grouped layers for a GetFeatureInfo-Request. The problem is, in the capabilities document at the layer level ...queryable="1"... is missing. The actual gfi request is working. Since my client is processing the capabilities doc and is looking for queryable layers, I had to work around with a static capabilities document. My search resulted only in an old ticket [1], but maybe this isn't related. Can someone here confirm or deny this issue? /usr/lib/cgi-bin/mapserv -v MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE OS: Ubuntu 12.04 Best wishes, Lars [1] http://trac.osgeo.org/mapserver/ticket/3931 From lin at hvenegaard.dk Thu Jun 12 07:02:23 2014 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Thu, 12 Jun 2014 16:02:23 +0200 Subject: [mapserver-users] TileIndex - accuracy and truncation ? Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD692536D0@hvmex01> Hi, For performance reasons, I've (used FME to) split a large PNG into 450 small tiles, serving them with a Mapserver tileindex as a WMS service to a web solution. Howeever, white lines appear between some of the tile rows (not all) at some scales (not all). I've looked deeper into the WLD files for the individual tiles, and found that the calculations are accurate to 1/10 of a nanometer. At least if one uses all 10 decimals. Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583 - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to 6138853.2507962584) Which leads me to suspect that some sort of truncation goes on, yielding some sort of rounding error. Do anyone know whether the tileindex calculations truncates any of the values in the WLD files ? And if so, by how much ? Cheers. -- A typical map picture with a white line can be seen via this link: http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.map&LAYERS=ASSISTENS&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=epsg:25832&BBOX=586609.80952408,6138781.1015875,586686.0222225,6138857.3142859&WIDTH=256&HEIGHT=256 Here's the WLD of the two tiles displayed in the picture: Upper tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138899.3169212583 Lower tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138853.2507962584 -- Ps! As I wrote previously, I'm using FME to create the tiles. So I have little control over the actual coordinate and pixel values, and only specify the number of tiles I need. So manual truncation is not really a viable option. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Jun 12 14:47:38 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 12 Jun 2014 21:47:38 +0000 Subject: [mapserver-users] TileIndex - accuracy and truncation ? In-Reply-To: <808B91E58C3D454F8FE97DD4C5142C0C01AD692536D0@hvmex01> References: <808B91E58C3D454F8FE97DD4C5142C0C01AD692536D0@hvmex01> Message-ID: The world files are read internally by GDAL, not MapServer. I wonder if there's a way to test this just using GDAL and take MapServer out of the equation completely. Is there any projection being done? That could also be a source of slivers. Is it possible to generate the tiles with just a bit of overlap? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars I. Nielsen Sent: Thursday, June 12, 2014 9:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TileIndex - accuracy and truncation ? Hi, For performance reasons, I've (used FME to) split a large PNG into 450 small tiles, serving them with a Mapserver tileindex as a WMS service to a web solution. Howeever, white lines appear between some of the tile rows (not all) at some scales (not all). I've looked deeper into the WLD files for the individual tiles, and found that the calculations are accurate to 1/10 of a nanometer. At least if one uses all 10 decimals. Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583 - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to 6138853.2507962584) Which leads me to suspect that some sort of truncation goes on, yielding some sort of rounding error. Do anyone know whether the tileindex calculations truncates any of the values in the WLD files ? And if so, by how much ? Cheers. -- A typical map picture with a white line can be seen via this link: http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.map&LAYERS=ASSISTENS&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=epsg:25832&BBOX=586609.80952408,6138781.1015875,586686.0222225,6138857.3142859&WIDTH=256&HEIGHT=256 Here's the WLD of the two tiles displayed in the picture: Upper tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138899.3169212583 Lower tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138853.2507962584 -- Ps! As I wrote previously, I'm using FME to create the tiles. So I have little control over the actual coordinate and pixel values, and only specify the number of tiles I need. So manual truncation is not really a viable option. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at firstbasesolutions.com Thu Jun 12 15:08:51 2014 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Thu, 12 Jun 2014 18:08:51 -0400 Subject: [mapserver-users] TileIndex - accuracy and truncation ? In-Reply-To: References: <808B91E58C3D454F8FE97DD4C5142C0C01AD692536D0@hvmex01> Message-ID: Could it also be the resampling of the image and or an issue with the PNG format? I would try tiled geotiffs. On Thu, Jun 12, 2014 at 5:47 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > The world files are read internally by GDAL, not MapServer. I wonder if > there?s a way to test this just using GDAL and take MapServer out of the > equation completely. Is there any projection being done? That could also be > a source of slivers. Is it possible to generate the tiles with just a bit > of overlap? > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Lars I. Nielsen > *Sent:* Thursday, June 12, 2014 9:02 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] TileIndex - accuracy and truncation ? > > > > Hi, > > > > For performance reasons, I've (used FME to) split a large PNG into 450 > small tiles, serving them with a Mapserver tileindex as a WMS service to a > web solution. > > > > Howeever, white lines appear between some of the tile rows (not all) at > some scales (not all). > > > > I've looked deeper into the WLD files for the individual tiles, and found > that the calculations are accurate to 1/10 of a nanometer. At least if one > uses all 10 decimals. > > > > Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583 > - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to > 6138853.2507962584) > > > > Which leads me to suspect that some sort of truncation goes on, yielding > some sort of rounding error. > > > > Do anyone know whether the tileindex calculations truncates any of the > values in the WLD files ? And if so, by how much ? > > > > Cheers. > > > > -- > > > > A typical map picture with a white line can be seen via this link: > > > > > http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.map&LAYERS=ASSISTENS&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=epsg:25832&BBOX=586609.80952408,6138781.1015875,586686.0222225,6138857.3142859&WIDTH=256&HEIGHT=256 > > Here's the WLD of the two tiles displayed in the picture: > > > > Upper tile WLD: > > 0.0204375000 > > 0.0000000000 > > 0.0000000000 > > -0.0204375000 > > 586620.6934394070 > > 6138899.3169212583 > > > > Lower tile WLD: > > 0.0204375000 > > 0.0000000000 > > 0.0000000000 > > -0.0204375000 > > 586620.6934394070 > > 6138853.2507962584 > > > > -- > > > > Ps! As I wrote previously, I'm using FME to create the tiles. So I have > little control over the actual coordinate and pixel values, and only > specify the number of tiles I need. So manual truncation is not really a > viable option. > > > > > > Kind regards / Med venlig hilsen > Lars I. Nielsen > ---------------------------------------------------------------- > > Landinspekt?r, Senior GIS Programm?r og Konsulent > Hvenegaard Landinspekt?rer A/S > Rugaardsvej 55, DK-5000 Odense C > Denmark > Tel. +45 6313 5050 > http://www.hvenegaard.dk > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- *Travis Kirstine* *First Base Solutions I**nc*. tkirstine at firstbasesolutions.com 140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3 p. 905-477-3600 ext. 301 | m. 647-534-4798 http://www.firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Jun 13 00:02:05 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 13 Jun 2014 07:02:05 +0000 Subject: [mapserver-users] TileIndex - accuracy and truncation ? Message-ID: Hi, I am sure that the accuracy of tileindex vectors does not make the trouble. The tileindex is only used for selecting which images will be needed for building the requested output image and this is done by selecting polygons which intersect with the requested BBOX. Once the correct image files are selected the georeferencing of the images is read from the images themselves, in your case from png + WLD. I suppose that white lines appear when the selected images are subsampled to a non-original pixel size for the output one by one. At the image boundary when the image pixels cover less than 50% of the output pixel area the corresponding output pixel is painted white. Let's say this was at the upper edge of the lower tile. Normally when the same pixel is rendered from the lower edge of the upper tile there should be more than 50% image data for the pixel and it should be rendered with color. Now for some reason also the upper tile yields white pixel and the result is "not data for this pixel in lower tile or in upper tile". It is a bit heavy to try to solve the issue only by thinking. Could you put two adjacent tiles with WLD files somewhere so I could have a try with them? Tell the EPSG code as well. Meanwhile, if you have some experience on GDAL or if you are willing to learn you can also try to make the mosaic in another way than using tileindex. Create a GDAL virtual mosaic file with gdalbuildvrt tool and use the resulting .vrt file as datasource for your layer instead of tileindex. Read http://www.gdal.org/gdalbuildvrt.html and http://www.gdal.org/gdalbuildvrt.html. As a result GDAL will take care of subsampling and it may give different results. On the other hand, if you could tolerate using GDAL instead of FME you can avoid all the trouble by converting your original image into tiled and compressed geotiff with overviews. -Jukka Rahkonen- Lars I. Nielsen wrote: Hi, For performance reasons, I've (used FME to) split a large PNG into 450 small tiles, serving them with a Mapserver tileindex as a WMS service to a web solution. Howeever, white lines appear between some of the tile rows (not all) at some scales (not all). I've looked deeper into the WLD files for the individual tiles, and found that the calculations are accurate to 1/10 of a nanometer. At least if one uses all 10 decimals. Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583 - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to 6138853.2507962584) Which leads me to suspect that some sort of truncation goes on, yielding some sort of rounding error. Do anyone know whether the tileindex calculations truncates any of the values in the WLD files ? And if so, by how much ? Cheers. -- A typical map picture with a white line can be seen via this link: http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.map&LAYERS=ASSISTENS&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=epsg:25832&BBOX=586609.80952408,6138781.1015875,586686.0222225,6138857.3142859&WIDTH=256&HEIGHT=256 Here's the WLD of the two tiles displayed in the picture: Upper tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138899.3169212583 Lower tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138853.2507962584 -- Ps! As I wrote previously, I'm using FME to create the tiles. So I have little control over the actual coordinate and pixel values, and only specify the number of tiles I need. So manual truncation is not really a viable option. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.malm at saabgroup.com Fri Jun 13 05:20:36 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Fri, 13 Jun 2014 12:20:36 +0000 Subject: [mapserver-users] WFS and WMS Message-ID: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> Hi list! Is it possible to combine configuration for both WFS and WMS in a mapfile? Thanks, /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Jun 13 05:30:00 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 13 Jun 2014 12:30:00 +0000 Subject: [mapserver-users] WFS and WMS Message-ID: Short answer: yes. However, you would perhaps like to see an example, or? -Jukka Rahkonen- Malm Paul wrote Hi list! Is it possible to combine configuration for both WFS and WMS in a mapfile? Thanks, /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Fri Jun 13 05:31:09 2014 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Fri, 13 Jun 2014 14:31:09 +0200 Subject: [mapserver-users] WFS and WMS In-Reply-To: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> References: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> Message-ID: <539AEF0D.2060804@mapmedia.de> Hi Paul, Am 13.06.2014 14:20, schrieb Malm Paul: > Hi list! > > Is it possible to combine configuration for both WFS and WMS in a mapfile? yes. you can combine wms_* and wfs_* in metadata-section or use ows_* if the metadata is the same for wms and wfs. J?rg > > > > Thanks, > > /Paul > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Fri Jun 13 05:29:54 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Jun 2014 09:29:54 -0300 Subject: [mapserver-users] WFS and WMS In-Reply-To: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> References: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> Message-ID: <539AEEC2.1020406@gatewaygeomatics.com> Yes it is, instead of "wms_" or "wfs_" use "ows_" in your metadata. -jeff On 2014-06-13, 9:20 AM, Malm Paul wrote: > Hi list! > > Is it possible to combine configuration for both WFS and WMS in a mapfile? > > > > Thanks, > > /Paul > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From paul.malm at saabgroup.com Fri Jun 13 05:38:22 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Fri, 13 Jun 2014 12:38:22 +0000 Subject: [mapserver-users] WFS and WMS In-Reply-To: References: Message-ID: <0d95477e3ea1406d9744b581e8ad9649@CORPAPPL840.corp.saab.se> Yes please, if you have one I would be grateful. /Paul From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: den 13 juni 2014 14:30 To: Malm Paul; 'mapserver-users at lists.osgeo.org' Subject: Re: WFS and WMS Short answer: yes. However, you would perhaps like to see an example, or? -Jukka Rahkonen- Malm Paul wrote Hi list! Is it possible to combine configuration for both WFS and WMS in a mapfile? Thanks, /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.kofahl at gmail.com Fri Jun 13 05:41:12 2014 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Fri, 13 Jun 2014 14:41:12 +0200 Subject: [mapserver-users] WFS and WMS In-Reply-To: <539AEF0D.2060804@mapmedia.de> References: <18bfed6f05054182850ac1878050385d@CORPAPPL840.corp.saab.se> <539AEF0D.2060804@mapmedia.de> Message-ID: Consider also the setting wms/wfs/ows_enable_request "*" to enable/disable a specific layer for wms or wfs. Martin 2014-06-13 14:31 GMT+02:00 J?rg Thomsen : > Hi Paul, > > Am 13.06.2014 14:20, schrieb Malm Paul: > > Hi list! > > > > Is it possible to combine configuration for both WFS and WMS in a > mapfile? > > yes. you can combine wms_* and wfs_* in metadata-section or use ows_* if > the metadata is the same for wms and wfs. > > J?rg > > > > > > > > > Thanks, > > > > /Paul > > > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Jun 13 05:56:48 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 13 Jun 2014 12:56:48 +0000 Subject: [mapserver-users] WFS and WMS Message-ID: Hi, I will need to make one first. I am going to use the famous "states.shp" that is used as one of the demo layers of Geoserver. I would say that we should have something similar for Mapserver, a bunch of mapfiles and some demo datasets that could be dropped on the server so that they just work and users could see examples about how to make layers from shapefiles, geotiffs, tileindexes, and OGR connection and set up WMS, WFS and WCS services, activate GetFeatureInfo, use labels and layer groups with min/maxscaledenom and so on. That would also be a great help when reporting and resolving bugs because all parties could have the same data on their computers without pain. An official demo server would be a great supporting resource and people could send just links like "See, this one is advertised as a Mapserver WFS in http://demo.mapserver.org/ but hey, it is WMS at the same!" http://demo.mapserver.org:8080/cgi-bin/wfs?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=459&HEIGHT=346&LAYERS=cities&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-185.53624949999997,-128.25123742265794,186.75224949999998,152.38453742265796&SRS=EPSG:4326&STYLES= -Jukka Rahkonen- Malm Paul wrote: Yes please, if you have one I would be grateful. /Paul From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: den 13 juni 2014 14:30 To: Malm Paul; 'mapserver-users at lists.osgeo.org' Subject: Re: WFS and WMS Short answer: yes. However, you would perhaps like to see an example, or? -Jukka Rahkonen- Malm Paul wrote Hi list! Is it possible to combine configuration for both WFS and WMS in a mapfile? Thanks, /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 13 06:02:37 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Jun 2014 10:02:37 -0300 Subject: [mapserver-users] WFS and WMS In-Reply-To: References: Message-ID: <539AF66D.2020706@gatewaygeomatics.com> On 2014-06-13, 9:56 AM, Rahkonen Jukka (Tike) wrote: > Hi, > > > > An official demo server > would be a great supporting resource and people could send just links > like ?See, this one is advertised as a Mapserver WFS in > http://demo.mapserver.org/ but hey, it is WMS at the same!? > > > /me pats self on back Have a nice weekend all, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jukka.rahkonen at mmmtike.fi Fri Jun 13 07:21:32 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 13 Jun 2014 14:21:32 +0000 Subject: [mapserver-users] WFS and WMS Message-ID: Hi, A rough example is here. I am sure it is not perfect but at least both WMS and WFS layers work with QGIS 2.0. I know there is an odd mixture of ows*, wms* and wfs* metadata items. http://latuviitta.org/downloads/wms-wfs.zip Zip file contains a Spatialite database for data and a corresponding mapfile. They should work as is with MS4W when the installation drive is c:\ and files are extracted into c:\ms4w\apps. The path appears only in few places in the mapfile but naturally they must be edited if c:\ms4w\apps is not correct. The WMS layer had a little extra with two labels but I commented them out because they require Mapserver 6.2 and such MS4W version does not exist. The whole mapfile is so short that I paste it also here below MAP SIZE 800 800 EXTENT -90 -180 90 180 UNITS DD IMAGECOLOR 20 250 250 WEB METADATA "ows_enable_request" "*" "wms_bbox_extended" "true" "ows_srs" "CRS:84 EPSG:4326 EPSG:32634 EPSG:3857 EPSG:2923" "wms_title" "MS 6.1.1 WMS from Spatialite" "wfs_title" "MS 6.1.1 WFS from Spatialite" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\wms-wfs.map" END END DEBUG 10 CONFIG "PROJ_LIB" "C:/ms4w/proj/nad" CONFIG "CPL_DEBUG" "ON" CONFIG "SQLITE_LIST_ALL_TABLES" "TRUE" CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/debug.txt" PROJECTION "init=epsg:4326" END LAYER NAME "states_table" CONNECTIONTYPE OGR CONNECTION "\ms4w\apps\wms-wfs.sqlite" DATA "states" PROCESSING "CLOSE_CONNECTION=DEFER" TYPE POLYGON STATUS ON PROJECTION "init=epsg:4326" END METADATA "ows_title" "states" ##REQUIRED "wfs_srs" "EPSG:4326" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "PK_UID" ## REQUIRED END CLASS STYLE COLOR 100 200 100 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION UL #TEXT "[STATE_FIPS]" PARTIALS FALSE END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE bitmap SIZE small POSITION LL #TEXT "[STATE_NAME]" PARTIALS FALSE END END END END -Jukka Rahkonen- Rahkonen Jukka wrote: Hi, I will need to make one first. I am going to use the famous "states.shp" that is used as one of the demo layers of Geoserver. I would say that we should have something similar for Mapserver, a bunch of mapfiles and some demo datasets that could be dropped on the server so that they just work and users could see examples about how to make layers from shapefiles, geotiffs, tileindexes, and OGR connection and set up WMS, WFS and WCS services, activate GetFeatureInfo, use labels and layer groups with min/maxscaledenom and so on. That would also be a great help when reporting and resolving bugs because all parties could have the same data on their computers without pain. An official demo server would be a great supporting resource and people could send just links like "See, this one is advertised as a Mapserver WFS in http://demo.mapserver.org/ but hey, it is WMS at the same!" http://demo.mapserver.org:8080/cgi-bin/wfs?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=459&HEIGHT=346&LAYERS=cities&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-185.53624949999997,-128.25123742265794,186.75224949999998,152.38453742265796&SRS=EPSG:4326&STYLES= -Jukka Rahkonen- Malm Paul wrote: Yes please, if you have one I would be grateful. /Paul From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: den 13 juni 2014 14:30 To: Malm Paul; 'mapserver-users at lists.osgeo.org' Subject: Re: WFS and WMS Short answer: yes. However, you would perhaps like to see an example, or? -Jukka Rahkonen- Malm Paul wrote Hi list! Is it possible to combine configuration for both WFS and WMS in a mapfile? Thanks, /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri Jun 13 12:18:18 2014 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 13 Jun 2014 19:18:18 +0000 Subject: [mapserver-users] working with date formats in identify templates Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AA2EEBE@swmail01.r8nssis.local> Hello I have a date that is in Julian format. I would like to convert that date from Julian format such as '20140423' to something more user friendly like '4/23/2014' or 'April 23, 2014' etc. Can I accomplish this through mapserver? GIS Date: [item name="Date"] Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jun 13 13:11:00 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 13 Jun 2014 20:11:00 +0000 Subject: [mapserver-users] working with date formats in identify templates In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA33AA2EEBE@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA33AA2EEBE@swmail01.r8nssis.local> Message-ID: There's nothing inherent in templates to do this for you but there are options: 1. Use javascript in the template, something like: GIS Date: 2. If you're using a db backend you could format things in your SQL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Friday, June 13, 2014 2:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] working with date formats in identify templates Hello I have a date that is in Julian format. I would like to convert that date from Julian format such as '20140423' to something more user friendly like '4/23/2014' or 'April 23, 2014' etc. Can I accomplish this through mapserver? GIS Date: [item name="Date"] Thanks Sincerely, Mark Volz, GISP -------------- next part -------------- An HTML attachment was scrubbed... URL: From starling.lucky at gmail.com Sat Jun 14 08:44:24 2014 From: starling.lucky at gmail.com (Starling) Date: Sat, 14 Jun 2014 08:44:24 -0700 (PDT) Subject: [mapserver-users] WMS-T support for vector data using OGR In-Reply-To: <201406092241.34221.even.rouault@mines-paris.org> References: <201406092134.02402.even.rouault@mines-paris.org> <201406092229.47541.even.rouault@mines-paris.org> <201406092241.34221.even.rouault@mines-paris.org> Message-ID: <1402760664415-5145891.post@n6.nabble.com> Thanks Evan. I added 'Time' field to each individual shape file rather than adding Time field to the tile index. The map file with following Layer section worked for me. LAYER NAME "states" DEBUG 5 TYPE POLYGON TILEINDEX "VectorLayer2.shp" TILEITEM "Location" STATUS ON METADATA "wms_title" "States" "wms_include_items" "all" "wms_dataurl_format" "text/HTML" "ows_include_items" "all" "wms_exceptions_format" "application/vnd.ogc.se_xml" 'wms_srs' 'EPSG:42304' "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20070301/20070302" "wms_timeitem" "Time" "wms_timedefault" "20070301" END #FILTERITEM "Time" TEMPLATE BLANK PROJECTION "init=epsg:42304" END CLASS NAME "The Upper Great Lakes States" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # Layer -Hari -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-T-support-for-vector-data-using-OGR-tp5144873p5145891.html Sent from the Mapserver - User mailing list archive at Nabble.com. From m.manso at upm.es Sun Jun 15 11:16:02 2014 From: m.manso at upm.es (Miguel-Angel Manso-Callejo (UPM)) Date: Sun, 15 Jun 2014 20:16:02 +0200 Subject: [mapserver-users] Question about config Mapserver to provide SOS service from postgis table/view Message-ID: <539DE2E2.4090203@upm.es> Dear all, I'm trying to config mapserver to offer through SOS data stored in two tables joined by a view. I'm trying to offer in the first step only one time serial data and i'm using this configuration: LAYER NAME "test_sos_layer" METADATA "sos_procedure" "vaporcolumna" ## REQUIRED "sos_procedure_item" "vap" "sos_offering_id" "MADR13407S012" ## REQUIRED "sos_timeitem" "fecha" "sos_observedproperty_id" "vap" "sos_observedproperty_name" "Vapor_agua_columna" "sos_offering_timeextent" "2010/2014" "sos_describesensor_url" "http://138.100.61.23:90/sensorml/MADR13407S012.xml" ## REQUIRED "sos_offering_name" "GPS Station in Madrid 13407S012" END TYPE POINT STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "host=127.0.0.1 port=5432 dbname=example_postgis21 user=postgres password=postgres" DATA "pos, vap from vaporcolumna where id='MADR13407S012' " PROJECTION "init=epsg:4326" END CLASS NAME "vap" STYLE COLOR 255 0 0 SYMBOL "circle" SIZE 8 END END END View have this fields: Id (pk), pos (geometry), vap (double), fecha (date) Can any one help me informing what i'm doing bad or how must i config in order to do it? Regards, Miguel A. From woodbri at swoodbridge.com Sun Jun 15 12:18:53 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 15 Jun 2014 15:18:53 -0400 Subject: [mapserver-users] Question about config Mapserver to provide SOS service from postgis table/view In-Reply-To: <539DE2E2.4090203@upm.es> References: <539DE2E2.4090203@upm.es> Message-ID: <539DF19D.4090705@swoodbridge.com> On 6/15/2014 2:16 PM, Miguel-Angel Manso-Callejo (UPM) wrote: > Dear all, > > I'm trying to config mapserver to offer through SOS data stored in two > tables joined by a view. > > I'm trying to offer in the first step only one time serial data and i'm > using this configuration: > > LAYER > NAME "test_sos_layer" > METADATA > "sos_procedure" "vaporcolumna" ## REQUIRED > "sos_procedure_item" "vap" > "sos_offering_id" "MADR13407S012" ## REQUIRED > "sos_timeitem" "fecha" > "sos_observedproperty_id" "vap" > "sos_observedproperty_name" "Vapor_agua_columna" > "sos_offering_timeextent" "2010/2014" > "sos_describesensor_url" > "http://138.100.61.23:90/sensorml/MADR13407S012.xml" ## REQUIRED > "sos_offering_name" "GPS Station in Madrid 13407S012" > END > TYPE POINT > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "host=127.0.0.1 port=5432 dbname=example_postgis21 > user=postgres password=postgres" > DATA "pos, vap from vaporcolumna where id='MADR13407S012' " > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "vap" > STYLE > COLOR 255 0 0 > SYMBOL "circle" > SIZE 8 > END > END > END > > > View have this fields: > Id (pk), pos (geometry), vap (double), fecha (date) > > Can any one help me informing what i'm doing bad or how must i config in > order to do it? You probably need to make sure pos is listed in the geometry_columns table and associated with your view. Turn on layer debugging and set DEBUG 5 try to use shp2img so see the log messages and any error messages. -Steve W From v.hirankitti at gmail.com Sun Jun 15 14:50:05 2014 From: v.hirankitti at gmail.com (Visit Hirankitti) Date: Mon, 16 Jun 2014 04:50:05 +0700 Subject: [mapserver-users] Enhancing MapServer performance with GPUs Message-ID: Dear list memers, My name is Visit, a newbie of this forum. I have been using MapServer for at least 4 years now on many research projects. It has served my research projects quite well. Recently I am using MapServer to develop a real-world enterprise web application. I am developing a web-based GIS application using MapServer to serve thousands of users, and one of overheads of the system is on the map rendering provided by MapServer. At the moment the server I use to run MapServer doesn't have a graphic card (i.e. GPUs), but I wonder if I really want high performance of map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped with the server enhance MapServer's map rendering speed and hence improve its map service speed? As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA platform, and each core can compute and draw polygons in parallel, so I think this can improve the speed of map rendering (if used with MapServer) substantially. Do I understand this correctly? Thanks for your advice in advance, Visit Hirankitti Ph.D. Intelligent Communication and Transportation Lab King Mongkut's Institute of Technology Ladkrabang Thailand -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Sun Jun 15 14:57:26 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Sun, 15 Jun 2014 23:57:26 +0200 Subject: [mapserver-users] Enhancing MapServer performance with GPUs In-Reply-To: References: Message-ID: <201406152357.26642.even.rouault@mines-paris.org> Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : > Dear list memers, > > My name is Visit, a newbie of this forum. I have been using MapServer for > at least 4 years now on many research projects. It has served my research > projects quite well. > > Recently I am using MapServer to develop a real-world enterprise web > application. > I am developing a web-based GIS application using MapServer to serve > thousands of users, and one of overheads of the system is on the map > rendering provided by MapServer. > > At the moment the server I use to run MapServer doesn't have a graphic card > (i.e. GPUs), but I wonder if I really want high performance of > map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped with > the server enhance MapServer's map rendering speed and hence improve its > map service speed? > > As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA platform, > and each core can compute and draw polygons in parallel, so I think this > can improve the speed of map rendering (if used with MapServer) > substantially. Do I understand this correctly? You'll have to profile where the time is exactly spent in MapServer. If it is in pulling data from sources, or in the rendering part itself. There's a OpenGL backend available in recent MapServer versions that could potentially speed up rendering, but it is likely a bit experimental and might need more work. > > Thanks for your advice in advance, > > Visit Hirankitti Ph.D. > > Intelligent Communication and Transportation Lab > King Mongkut's Institute of Technology Ladkrabang > Thailand -- Geospatial professional services http://even.rouault.free.fr/services.html From lin at hvenegaard.dk Fri Jun 13 01:23:15 2014 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Fri, 13 Jun 2014 10:23:15 +0200 Subject: [mapserver-users] TileIndex - accuracy and truncation ? In-Reply-To: References: Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD69253714@hvmex01> Hi Jukka, Thanks for the response. I've set up an FTP access to browse the folder containing the generated PNGs and the tileindex: ftp://hvmgo01.hvenegaard.dk/tiles_20140613/ The two (upper/lower) tiles mentioned earlier are # 281 and 311 respectively. Feel free to use them for testing. -- My source _is_ a mosaic (a 2,5 Gb GeoTIFF), but it performs terribly when used directly. That's why I'm chopping it up into multiple tiles. And I'm outputting the tiles as PNG to facilitate transparency along the outer edges of the covered area. This is a must. The coordinate system of both the source mosaic and the tiles are EPSG:25832, i.e. UTM zone 32N, ETRS 89. All images are axis aligned to this projection. I.e. no reprojection takes place. -- I really don't have any detailed experince with (Geo)TIFF, and I'm using FME to generate both the tiles and the tileindex in a single run. I can fairly easily switch FME to generate GeoTIFF tiles, if it fits my purpose, but the meaning of many of the format parameters eludes me. Can you advise me as to the optimal settings in the dialog below, if this is a solution ? [cid:image001.png at 01CF86F0.8A9DE3B0] Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk Fra: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sendt: 13. juni 2014 09:02 Til: Lars I. Nielsen; 'mapserver-users at lists.osgeo.org' Emne: Re: TileIndex - accuracy and truncation ? Hi, I am sure that the accuracy of tileindex vectors does not make the trouble. The tileindex is only used for selecting which images will be needed for building the requested output image and this is done by selecting polygons which intersect with the requested BBOX. Once the correct image files are selected the georeferencing of the images is read from the images themselves, in your case from png + WLD. I suppose that white lines appear when the selected images are subsampled to a non-original pixel size for the output one by one. At the image boundary when the image pixels cover less than 50% of the output pixel area the corresponding output pixel is painted white. Let's say this was at the upper edge of the lower tile. Normally when the same pixel is rendered from the lower edge of the upper tile there should be more than 50% image data for the pixel and it should be rendered with color. Now for some reason also the upper tile yields white pixel and the result is "not data for this pixel in lower tile or in upper tile". It is a bit heavy to try to solve the issue only by thinking. Could you put two adjacent tiles with WLD files somewhere so I could have a try with them? Tell the EPSG code as well. Meanwhile, if you have some experience on GDAL or if you are willing to learn you can also try to make the mosaic in another way than using tileindex. Create a GDAL virtual mosaic file with gdalbuildvrt tool and use the resulting .vrt file as datasource for your layer instead of tileindex. Read http://www.gdal.org/gdalbuildvrt.html and http://www.gdal.org/gdalbuildvrt.html. As a result GDAL will take care of subsampling and it may give different results. On the other hand, if you could tolerate using GDAL instead of FME you can avoid all the trouble by converting your original image into tiled and compressed geotiff with overviews. -Jukka Rahkonen- Lars I. Nielsen wrote: Hi, For performance reasons, I've (used FME to) split a large PNG into 450 small tiles, serving them with a Mapserver tileindex as a WMS service to a web solution. Howeever, white lines appear between some of the tile rows (not all) at some scales (not all). I've looked deeper into the WLD files for the individual tiles, and found that the calculations are accurate to 1/10 of a nanometer. At least if one uses all 10 decimals. Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583 - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to 6138853.2507962584) Which leads me to suspect that some sort of truncation goes on, yielding some sort of rounding error. Do anyone know whether the tileindex calculations truncates any of the values in the WLD files ? And if so, by how much ? Cheers. -- A typical map picture with a white line can be seen via this link: http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.map&LAYERS=ASSISTENS&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=epsg:25832&BBOX=586609.80952408,6138781.1015875,586686.0222225,6138857.3142859&WIDTH=256&HEIGHT=256 Here's the WLD of the two tiles displayed in the picture: Upper tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138899.3169212583 Lower tile WLD: 0.0204375000 0.0000000000 0.0000000000 -0.0204375000 586620.6934394070 6138853.2507962584 -- Ps! As I wrote previously, I'm using FME to create the tiles. So I have little control over the actual coordinate and pixel values, and only specify the number of tiles I need. So manual truncation is not really a viable option. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 52928 bytes Desc: image001.png URL: From fl_v at inbox.ru Sun Jun 15 23:12:13 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Mon, 16 Jun 2014 10:12:13 +0400 Subject: [mapserver-users] =?utf-8?q?Why_=24map-=3Escaledenom_returns_-1_?= =?utf-8?q?=3F?= Message-ID: <1402899133.151161073@f427.i.mail.ru> Hello list I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. The current scaledenom? required to embed in SQL-statement, but? ? $map->scaledenom returns -1. Tons of googling got nothing. Please help! ?phpscript.php --------------------------------------------------------------------------------------------- ???? ??????? $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map");?? ??? ? ?? ??? ?$request = ms_newOwsrequestObj(); ?? ??? ?if(!empty($_GET)){ ?? ??? ??? ?foreach ($_GET as $key => $value) { ?? ??? ??? ???? $request->setparameter($key, $value); ?? ??? ??? ?} ?? ??? ?} ? ???? ?? ??? ?$map->preparequery(); ?? ???? $map->scaledenom;//returns -1? ? ? ??? ?? ??? ? ?? ??? ?$rayonLayer = $map->getLayerByName("rayon");?? ? ?? ??? ?$rayonLayer->set("data","geom from (select id, name, geom from location ?? ??? ?where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); ?? ??? ? ?? ??? ?ms_ioinstallstdouttobuffer(); ?? ??? ?$map->owsDispatch($request);?? ??? ? ?? ??? ? ?? ??? ?$contenttype = ms_iostripstdoutbuffercontenttype(); ?? ??? ?header('Content-type:'.$contenttype); ?? ??? ?ms_iogetStdoutBufferBytes(); ?? ??? ?ms_ioresethandlers();? mapfile.map--------------------------------------------------------------------------------------------- ?? MAP ?? ?NAME?? ?"Map" ?? ?OUTPUTFORMAT ?? ???? NAME 'AGG' ?? ???? DRIVER AGG/PNG ?? ???? IMAGEMODE RGB ?? ?END #OUTPUTFORMAT ??? STATUS?? ??? ?ON ?? ?FONTSET?? ?"fonts/fonts.list"?? ? ?? ?CONFIG?? ?"PROJ_LIB" "/usr/lib/proj/" ?? ?WEB?? ??? ? ?? ??? ?METADATA ?? ??? ??? ?wms_title?? ?"Map" ?? ??? ??? ?wms_abstract?? ?"Map" ?? ??? ??? ?wms_onlineresource?? ?"http://localhost/phpscript.php" ?? ??? ??? ?wms_srs?? ?"EPSG:3857"?? ? ?? ??? ??? ?wms_enable_request?? ??? ?"*" ?? ??? ??? ?wms_encoding?? ?"utf-8" ?? ??? ?END # end METADATA?? ??? ? ?? ?END # end WEB?? ? ?? ?PROJECTION ?? ??? ?"init=epsg:3857" ?? ?END # end PROJECTION?? ? ?? ?LAYER ?? ??? ?NAME?? ?"rayon"?? ??? ??? ? ?? ??? ?STATUS?? ??? ?ON ?? ??? ?CONNECTIONTYPE?? ?postgis ?? ??? ?CONNECTION?? ?"user=ms_viewer password=1 dbname=ms_db host=localhost"?? ??? ? ?? ??? ?TYPE?? ?POLYGON ?? ??? ?LABELITEM?? ?"name" ?? ??? ?CLASS ?? ??? ??? ?NAME?? ?"rayons"?? ??? ??? ? ?? ??? ??? ??? ?STYLE ?? ??? ??? ??? ??? ?OUTLINECOLOR?? ?255 0 0 ?? ??? ??? ??? ??? ?OUTLINEWIDTH?? ?5 ?? ??? ??? ??? ?END # end STYLE ?? ??? ?END # end CLASS ?? ??? ?PROJECTION ?? ??? ??? ?"init=epsg:3857" ?? ??? ?END # end PROJECTION ?? ??? ?METADATA ?? ??? ??? ?wms_title?? ?"rayon" ?? ??? ??? ?wms_abstract?? ?"rayon"?? ??? ??? ? ?? ??? ??? ?wms_srs?? ?"EPSG:3857" ?? ??? ??? ?wms_include_items?? ?"all" ?? ??? ?END # end METADATA ?? ?END # end LAYER?? ? END # end MAP --------------------------------------------------------------------------------------------- Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.manso at upm.es Sun Jun 15 23:58:19 2014 From: m.manso at upm.es (Miguel-Angel Manso-Callejo (UPM)) Date: Mon, 16 Jun 2014 08:58:19 +0200 Subject: [mapserver-users] Question about config Mapserver to provide SOS service from postgis table/view Message-ID: <539E958B.2080609@upm.es> Thank you Stephen At this moment i can send a GetObservation Request and get response in O&M format but i can't understand why sos mapserv don't recognize any procedure name or eventTime format. First: In order to do it i must change DATA sql to: DATA "pos from (select pos,fecha,vap from vaporcolumna where id='MADR13407S012') as subquery using unique fecha using srid=4326" Then, when i request data GetObservation the answer is like: 2014-01-29 04:00:00 Vapor agua columna -4.249658 40.429163 -4.249658 40.429163 -4.249658 40.429163 However procedure name don't appear in xml Then when i tryed to getObservation using parameter /&procedure=urn:ogc:def:procedure:/ mapserver SOS don't recognize any Second question are related to eventTime request parameter. I'm trying to use &eventtime=2014-01-01T00:00:00+01/2014-01-31T00:00:00+01 and an exception apear msSOSGetObservation(): SOS server error. Invalid time value given for the eventTime parameter I must do request with XML FE format &eventtime=%3Cogc:TM_Equals%3E%3Cgml:TimePeriod%3E%3Cgml:beginPosition%3E2014-01-01%3C/gml:beginPosition%3E%3Cgml:endPosition%3E2014-01-31%3C/gml:endPosition%3E%3C/gml:TimePeriod%3E%3C/ogc:TM_Equals%3E What are the correct ISO time format to operate without XML? Regards, Miguel A. >/ Dear all, />/ />/ I'm trying to config mapserver to offer through SOS data stored in two />/ tables joined by a view. />/ />/ I'm trying to offer in the first step only one time serial data and i'm />/ using this configuration: />/ />/ LAYER />/ NAME "test_sos_layer" />/ METADATA />/ "sos_procedure" "vaporcolumna" ## REQUIRED />/ "sos_procedure_item" "vap" />/ "sos_offering_id" "MADR13407S012" ## REQUIRED />/ "sos_timeitem" "fecha" />/ "sos_observedproperty_id" "vap" />/ "sos_observedproperty_name" "Vapor_agua_columna" />/ "sos_offering_timeextent" "2010/2014" />/ "sos_describesensor_url" />/ "http://138.100.61.23:90/sensorml/MADR13407S012.xml" ## REQUIRED />/ "sos_offering_name" "GPS Station in Madrid 13407S012" />/ END />/ TYPE POINT />/ STATUS ON />/ CONNECTIONTYPE POSTGIS />/ CONNECTION "host=127.0.0.1 port=5432 dbname=example_postgis21 />/ user=postgres password=postgres" />/ DATA "pos, vap from vaporcolumna where id='MADR13407S012' " />/ />/ PROJECTION />/ "init=epsg:4326" />/ END />/ />/ CLASS />/ NAME "vap" />/ STYLE />/ COLOR 255 0 0 />/ SYMBOL "circle" />/ SIZE 8 />/ END />/ END />/ END />/ />/ />/ View have this fields: />/ Id (pk), pos (geometry), vap (double), fecha (date) />/ />/ Can any one help me informing what i'm doing bad or how must i config in />/ order to do it? / You probably need to make sure pos is listed in the geometry_columns table and associated with your view. Turn on layer debugging and set DEBUG 5 try to use shp2img so see the log messages and any error messages. -Steve W -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.malm at saabgroup.com Mon Jun 16 05:21:21 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Mon, 16 Jun 2014 12:21:21 +0000 Subject: [mapserver-users] seems to be different render resolutions on lines VS areas Message-ID: <6bd430bc1e754fc595ea023a30868189@CORPAPPL840.corp.saab.se> Hi list. I have a problem, probable newbee fault... I render a map where I would like to have a 1 pixel grey contour in the borders of different colored areas. I'm getting an image where it looks like the areas is rendered in one resolution and the lines in a higher resolution. The area pixels are 10 times larger than the line pixels. The effect is that the pixel color for the 2 different areas are on both sides of the thinner border line. I'm not setting different resolutions for different layers (don't even know if it is possible). If you have the solution I would be more the grateful to take part of it. /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Jun 16 05:58:40 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 16 Jun 2014 12:58:40 +0000 Subject: [mapserver-users] seems to be different render resolutions on lines VS areas Message-ID: Hi, It would be nice to see a screen capture, my imagination may lead to rendering artifacts. -Jukka Rahkonen- Malm Paul wrote: Hi list. I have a problem, probable newbee fault... I render a map where I would like to have a 1 pixel grey contour in the borders of different colored areas. I'm getting an image where it looks like the areas is rendered in one resolution and the lines in a higher resolution. The area pixels are 10 times larger than the line pixels. The effect is that the pixel color for the 2 different areas are on both sides of the thinner border line. I'm not setting different resolutions for different layers (don't even know if it is possible). If you have the solution I would be more the grateful to take part of it. /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.manso at upm.es Mon Jun 16 07:19:05 2014 From: m.manso at upm.es (Miguel-Angel Manso-Callejo (UPM)) Date: Mon, 16 Jun 2014 16:19:05 +0200 Subject: [mapserver-users] Question about config Mapserver to provide SOS service from postgis table/view In-Reply-To: <539EDE85.5000700@terrestris.de> References: <539DE2E2.4090203@upm.es> <539EDE85.5000700@terrestris.de> Message-ID: <539EFCD9.705@upm.es> Dear Till I'm trying to publish real time steam data computed on a permanent network of GPS stations and stored on a PostGIS DataBase. This network have 300 stations and i want to publish individual observation as a procedure result. As i have informed this morning to the list, i have gotten to start the service and made that the response to GetObservarion request offer the O&M result. To enable the service use in the same postgis data table to handle several columns (observed variables) i have used sos_procedure_item as set assefa (http://trac.osgeo.org/mapserver/ticket/2050) Then to solve problem to access postgis data filtering to one of the gps station, i have put: DATA "pos from (select pos,fecha,vap from vaporcolumna where id='MADR13407S012') as subquery using unique fecha using srid=4326" In order to enable time filtering to procedure values, i have put: "sos_timeitem" "fecha" Then mu questions now are: 1?.- when i tryed to do request getObservation using parameter /&procedure=urn:ogc:def:procedure/:XXX SOS don't recognize any procedure. How can i do to enable a procedure name in mafile configuration? 2?.- when i tryed to do a request getObservation using &eventtime=2014-01-01T00:00:00+01/2014-01-31T00:00:00+01 SOS don't recognize this timestamp format How must be set the time period to eventTime paramenter? Regards, Miguel A El 16/06/2014 14:09, Till Adams escribi?: > Dear Miguel, > > it is not clear, where exactly your problem is as you do not tell the > list, what is going wrong. > > Did you check the sos-howto documentation-site: > http://mapserver.org/ogc/sos_server.html ? > > There are some more definitnions in the mapfile header required. > > Another problem - are you sure, that your DATA-request really delivers > some data? For the first step it's always clever to ensure, that the > surrounding really works, so you can focus on the main problem, which > is configuring the sos-layer. > > Regards, Till > > > > Am 15.06.2014 20:16, schrieb Miguel-Angel Manso-Callejo (UPM): >> Dear all, >> >> I'm trying to config mapserver to offer through SOS data stored in two >> tables joined by a view. >> >> I'm trying to offer in the first step only one time serial data and i'm >> using this configuration: >> >> LAYER >> NAME "test_sos_layer" >> METADATA >> "sos_procedure" "vaporcolumna" ## REQUIRED >> "sos_procedure_item" "vap" >> "sos_offering_id" "MADR13407S012" ## REQUIRED >> "sos_timeitem" "fecha" >> "sos_observedproperty_id" "vap" >> "sos_observedproperty_name" "Vapor_agua_columna" >> "sos_offering_timeextent" "2010/2014" >> "sos_describesensor_url" >> "http://138.100.61.23:90/sensorml/MADR13407S012.xml" ## REQUIRED >> "sos_offering_name" "GPS Station in Madrid 13407S012" >> END >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=127.0.0.1 port=5432 dbname=example_postgis21 >> user=postgres password=postgres" >> DATA "pos, vap from vaporcolumna where id='MADR13407S012' " >> >> PROJECTION >> "init=epsg:4326" >> END >> >> CLASS >> NAME "vap" >> STYLE >> COLOR 255 0 0 >> SYMBOL "circle" >> SIZE 8 >> END >> END >> END >> >> >> View have this fields: >> Id (pk), pos (geometry), vap (double), fecha (date) >> >> Can any one help me informing what i'm doing bad or how must i config in >> order to do it? >> >> Regards, >> Miguel A. >> _______________________________________________ >> 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 Steve.Lime at state.mn.us Mon Jun 16 08:43:17 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 16 Jun 2014 15:43:17 +0000 Subject: [mapserver-users] Why $map->scaledenom returns -1 ? In-Reply-To: <1402899133.151161073@f427.i.mail.ru> References: <1402899133.151161073@f427.i.mail.ru> Message-ID: Scale can only be computed if there is a map extent and map size set. Are you doing so? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Monday, June 16, 2014 1:12 AM To: mapserver-users Subject: [mapserver-users] Why $map->scaledenom returns -1 ? Hello list I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. The current scaledenom required to embed in SQL-statement, but $map->scaledenom returns -1. Tons of googling got nothing. Please help! phpscript.php --------------------------------------------------------------------------------------------- $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map"); $request = ms_newOwsrequestObj(); if(!empty($_GET)){ foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } } $map->preparequery(); $map->scaledenom;//returns -1 $rayonLayer = $map->getLayerByName("rayon"); $rayonLayer->set("data","geom from (select id, name, geom from location where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); ms_ioinstallstdouttobuffer(); $map->owsDispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); header('Content-type:'.$contenttype); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); mapfile.map--------------------------------------------------------------------------------------------- MAP NAME "Map" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #OUTPUTFORMAT STATUS ON FONTSET "fonts/fonts.list" CONFIG "PROJ_LIB" "/usr/lib/proj/" WEB METADATA wms_title "Map" wms_abstract "Map" wms_onlineresource "http://localhost/phpscript.php" wms_srs "EPSG:3857" wms_enable_request "*" wms_encoding "utf-8" END # end METADATA END # end WEB PROJECTION "init=epsg:3857" END # end PROJECTION LAYER NAME "rayon" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=ms_viewer password=1 dbname=ms_db host=localhost" TYPE POLYGON LABELITEM "name" CLASS NAME "rayons" STYLE OUTLINECOLOR 255 0 0 OUTLINEWIDTH 5 END # end STYLE END # end CLASS PROJECTION "init=epsg:3857" END # end PROJECTION METADATA wms_title "rayon" wms_abstract "rayon" wms_srs "EPSG:3857" wms_include_items "all" END # end METADATA END # end LAYER END # end MAP --------------------------------------------------------------------------------------------- Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.touhami at topnet.tn Mon Jun 16 10:32:15 2014 From: m.touhami at topnet.tn (Mohamed Meher TOUHAMI) Date: Mon, 16 Jun 2014 18:32:15 +0100 Subject: [mapserver-users] shapeObj classIndex Message-ID: <001601cf8988$ea827710$bf876530$@topnet.tn> Hi, I am using mapserver 6.4.1 and it seems that shapeObj.setClassIndex is not working. It is not mentioned in the SWIG API Documentation. I am using this method to draw multiple shapeObj with different symbols. Mapserver uses always the first class. The same code worked with mapserver 5.6. Any idea about the problem or may be the new way to do it with mapserver 6.4?. Thanks, Meher -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.j.kobben at utwente.nl Mon Jun 16 10:59:45 2014 From: b.j.kobben at utwente.nl (b.j.kobben at utwente.nl) Date: Mon, 16 Jun 2014 17:59:45 +0000 Subject: [mapserver-users] Capabilities / queryable GROUPed layer In-Reply-To: <53987EC1.5090506@googlemail.com> References: <53987EC1.5090506@googlemail.com> Message-ID: Just checking: you did make sure that each LAYER has TOLERANCEUNITS and TOLERANCE values, and a TEMPLATE in each CLASS (as required by Mapserver to make a layer queryable)...? Barend On 11-06-14 18:07, "Lars Lingner" wrote: >Hello, > >I'm out of ideas configuring a WMS with grouped layers for a >GetFeatureInfo-Request. The problem is, in the capabilities document at >the layer level ...queryable="1"... is missing. The actual gfi request >is working. > >Since my client is processing the capabilities doc and is looking for >queryable layers, I had to work around with a static capabilities >document. > >My search resulted only in an old ticket [1], but maybe this isn't >related. > >Can someone here confirm or deny this issue? > > >/usr/lib/cgi-bin/mapserv -v >MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ >SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO >SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER >SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI >SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR >INPUT=GDAL INPUT=SHAPEFILE > >OS: Ubuntu 12.04 > > >Best wishes, > >Lars > > >[1] http://trac.osgeo.org/mapserver/ticket/3931 >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Mon Jun 16 14:42:42 2014 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 16 Jun 2014 14:42:42 -0700 Subject: [mapserver-users] Enhancing MapServer performance with GPUs In-Reply-To: <201406152357.26642.even.rouault@mines-paris.org> References: <201406152357.26642.even.rouault@mines-paris.org> Message-ID: Non-trivial places time can be spent: - CGI startup (if you aren't using FastCGI) - reading layers (if you have a lot of them! it's only a ms or two per layer, but if you have 100 layers...) - reading data - rendering data - compressing output images (more than you'd expect) I'd expect GPU assisted rendering to be a win only for a narrow minority of cases, it's not a predominant time sink as often as one would expect. Plus for all the speed once you have the GPU chain set up, the setting up of the GPU can be costly, and for a CGI program like MapServer, that's a big deal. P On Sun, Jun 15, 2014 at 2:57 PM, Even Rouault wrote: > Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : >> Dear list memers, >> >> My name is Visit, a newbie of this forum. I have been using MapServer for >> at least 4 years now on many research projects. It has served my research >> projects quite well. >> >> Recently I am using MapServer to develop a real-world enterprise web >> application. >> I am developing a web-based GIS application using MapServer to serve >> thousands of users, and one of overheads of the system is on the map >> rendering provided by MapServer. >> >> At the moment the server I use to run MapServer doesn't have a graphic card >> (i.e. GPUs), but I wonder if I really want high performance of >> map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped with >> the server enhance MapServer's map rendering speed and hence improve its >> map service speed? >> >> As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA platform, >> and each core can compute and draw polygons in parallel, so I think this >> can improve the speed of map rendering (if used with MapServer) >> substantially. Do I understand this correctly? > > You'll have to profile where the time is exactly spent in MapServer. If it is > in pulling data from sources, or in the rendering part itself. There's a > OpenGL backend available in recent MapServer versions that could potentially > speed up rendering, but it is likely a bit experimental and might need more > work. > >> >> Thanks for your advice in advance, >> >> Visit Hirankitti Ph.D. >> >> Intelligent Communication and Transportation Lab >> King Mongkut's Institute of Technology Ladkrabang >> Thailand > > -- > Geospatial professional services > http://even.rouault.free.fr/services.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aeskreis at gmail.com Mon Jun 16 15:50:56 2014 From: aeskreis at gmail.com (Adam Eskreis) Date: Mon, 16 Jun 2014 18:50:56 -0400 Subject: [mapserver-users] Enhancing MapServer performance with GPUs In-Reply-To: References: <201406152357.26642.even.rouault@mines-paris.org> Message-ID: It's been a while since I've looked at the Mapserver code, but if I'm not mistaken it uses the fixed function pipeline for OpenGL which isn't going to be able to take advantage of all of those wonderful shader cores very well. If you wrote your own renderer using OpenGL 4.0+, you might be able to get a substantial boost in rendering performance, but as Paul said, rendering may not be your bottleneck. You should ensure that it is before spending a lot of money on GPU servers. Also something to keep in mind, when you render with OpenGL you must convert all of your polygons into triangle meshes, which can be an extremely costly operation, especially for concave polygons that contain holes, which are quite common in GIS data. On Mon, Jun 16, 2014 at 5:42 PM, Paul Ramsey wrote: > Non-trivial places time can be spent: > > - CGI startup (if you aren't using FastCGI) > - reading layers (if you have a lot of them! it's only a ms or two per > layer, but if you have 100 layers...) > - reading data > - rendering data > - compressing output images (more than you'd expect) > > I'd expect GPU assisted rendering to be a win only for a narrow > minority of cases, it's not a predominant time sink as often as one > would expect. Plus for all the speed once you have the GPU chain set > up, the setting up of the GPU can be costly, and for a CGI program > like MapServer, that's a big deal. > > P > > > On Sun, Jun 15, 2014 at 2:57 PM, Even Rouault > wrote: > > Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : > >> Dear list memers, > >> > >> My name is Visit, a newbie of this forum. I have been using MapServer > for > >> at least 4 years now on many research projects. It has served my > research > >> projects quite well. > >> > >> Recently I am using MapServer to develop a real-world enterprise web > >> application. > >> I am developing a web-based GIS application using MapServer to serve > >> thousands of users, and one of overheads of the system is on the map > >> rendering provided by MapServer. > >> > >> At the moment the server I use to run MapServer doesn't have a graphic > card > >> (i.e. GPUs), but I wonder if I really want high performance of > >> map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped > with > >> the server enhance MapServer's map rendering speed and hence improve its > >> map service speed? > >> > >> As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA > platform, > >> and each core can compute and draw polygons in parallel, so I think this > >> can improve the speed of map rendering (if used with MapServer) > >> substantially. Do I understand this correctly? > > > > You'll have to profile where the time is exactly spent in MapServer. If > it is > > in pulling data from sources, or in the rendering part itself. There's a > > OpenGL backend available in recent MapServer versions that could > potentially > > speed up rendering, but it is likely a bit experimental and might need > more > > work. > > > >> > >> Thanks for your advice in advance, > >> > >> Visit Hirankitti Ph.D. > >> > >> Intelligent Communication and Transportation Lab > >> King Mongkut's Institute of Technology Ladkrabang > >> Thailand > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.malm at saabgroup.com Mon Jun 16 22:53:35 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Tue, 17 Jun 2014 05:53:35 +0000 Subject: [mapserver-users] seems to be different render resolutions on lines VS areas Message-ID: <61c6aa8ff1c349bcb66813488e3a9759@CORPAPPL840.corp.saab.se> Hi, Jukka I'll send you images (don't think it is appropriate to include in mail to lists). Anyway, If I group the area layers Water, Land and contour and render this grouped layer I get this strange artifact. But when I render them as separate layers it looks nice, something strange happens with groups. /Paul From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen at mmmtike.fi] Sent: den 16 juni 2014 14:59 To: Malm Paul; 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] seems to be different render resolutions on lines VS areas Hi, It would be nice to see a screen capture, my imagination may lead to rendering artifacts. -Jukka Rahkonen- Malm Paul wrote: Hi list. I have a problem, probable newbee fault... I render a map where I would like to have a 1 pixel grey contour in the borders of different colored areas. I'm getting an image where it looks like the areas is rendered in one resolution and the lines in a higher resolution. The area pixels are 10 times larger than the line pixels. The effect is that the pixel color for the 2 different areas are on both sides of the thinner border line. I'm not setting different resolutions for different layers (don't even know if it is possible). If you have the solution I would be more the grateful to take part of it. /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From gislars+list at googlemail.com Mon Jun 16 23:56:09 2014 From: gislars+list at googlemail.com (Lars Lingner) Date: Tue, 17 Jun 2014 08:56:09 +0200 Subject: [mapserver-users] Capabilities / queryable GROUPed layer In-Reply-To: References: <53987EC1.5090506@googlemail.com> Message-ID: <539FE689.1090502@googlemail.com> On 16.06.2014 19:59, b.j.kobben at utwente.nl wrote: > Just checking: you did make sure that each LAYER has TOLERANCEUNITS and > TOLERANCE values, and a TEMPLATE in each CLASS (as required by Mapserver > to make a layer queryable)...? > I didn't configure TOLERANCEUNITS. Each layer has a TEMPLATE (header/body/footer) and the GetFeatureInfo-Request is working. My problem is, the grouped layer is advertised in the capabilities document as queryable=0 although it is actually queryable. When I'm disabling the group, each individual layer is marked as queryable. Best wishes, Lars From jukka.rahkonen at mmmtike.fi Tue Jun 17 01:29:25 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Tue, 17 Jun 2014 08:29:25 +0000 Subject: [mapserver-users] Enhancing MapServer performance with GPUs Message-ID: Hi, This reminds me that I wrote on 15th May, 2014 about slowish performance with png8 output when compared with gif. These reports are from the same situation http://latuviitta.org/documents/MS_64_gif.png http://latuviitta.org/documents/MS_64_png8.png Gif is not only faster but also much more stable. Test environment: - Output 800x600 px WMS GetMaps - Simple polygons, style with only outlines - Mapserver 6.4, fcgi - CentOS 64-bit - Real server environment Png outputformat was configured as OUTPUTFORMAT ????? NAME 'AGG_Q' ????? MIMETYPE "image/png" ????? DRIVER "AGG/PNG" ????? EXTENSION "png" ????? IMAGEMODE RGB ????? FORMATOPTION "COMPRESSION=2" ????? FORMATOPTION "QUANTIZE_FORCE=ON" ????? FORMATOPTION "QUANTIZE_DITHER=OFF" ????? FORMATOPTION "QUANTIZE_COLORS=256" ? END Gif output was totally stable at request rate 20/second for the whole 10 minutes run while png8 tolerates only about 15 request/sec and showed pretty slow response times already at low load. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Adam Eskreis L?hetetty: 17. kes?kuuta 2014 1:51 Vastaanottaja: Paul Ramsey Kopio: mapserver-users Aihe: Re: [mapserver-users] Enhancing MapServer performance with GPUs It's been a while since I've looked at the Mapserver code, but if I'm not mistaken it uses the fixed function pipeline for OpenGL which isn't going to be able to take advantage of all of those wonderful shader cores very well. ?If you wrote your own renderer using OpenGL 4.0+, you might be able to get a substantial boost in rendering performance, but as Paul said, rendering may not be your bottleneck. ?You should ensure that it is before spending a lot of money on GPU servers. ?Also something to keep in mind, when you render with OpenGL you must convert all of your polygons into triangle meshes, which can be an extremely costly operation, especially for concave polygons that contain holes, which are quite common in GIS data. On Mon, Jun 16, 2014 at 5:42 PM, Paul Ramsey wrote: Non-trivial places time can be spent: - CGI startup (if you aren't using FastCGI) - reading layers (if you have a lot of them! it's only a ms or two per layer, but if you have 100 layers...) - reading data - rendering data - compressing output images (more than you'd expect) I'd expect GPU assisted rendering to be a win only for a narrow minority of cases, it's not a predominant time sink as often as one would expect. Plus for all the speed once you have the GPU chain set up, the setting up of the GPU can be costly, and for a CGI program like MapServer, that's a big deal. P On Sun, Jun 15, 2014 at 2:57 PM, Even Rouault wrote: > Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : >> Dear list memers, >> >> My name is Visit, a newbie of this forum. I have been using MapServer for >> at least 4 years now on many research projects. It has served my research >> projects quite well. >> >> Recently I am using MapServer to develop a real-world enterprise web >> application. >> I am developing a web-based GIS application using MapServer to serve >> thousands of users, and one of overheads of the system is on the map >> rendering provided by MapServer. >> >> At the moment the server I use to run MapServer doesn't have a graphic card >> (i.e. GPUs), but I wonder if I really want high performance of >> map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped with >> the server enhance MapServer's map rendering speed and hence improve its >> map service speed? >> >> As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA platform, >> and each core can compute and draw polygons in parallel, so I think this >> can improve the speed of map rendering (if used with MapServer) >> substantially. Do I understand this correctly? > > You'll have to profile where the time is exactly spent in MapServer. If it is > in pulling data from sources, or in the rendering part itself. There's a > OpenGL backend available in recent MapServer versions that could potentially > speed up rendering, but it is likely a bit experimental and might need more > work. > >> >> Thanks for your advice in advance, >> >> Visit Hirankitti Ph.D. >> >> Intelligent Communication and Transportation Lab >> King Mongkut's Institute of Technology Ladkrabang >> Thailand > > -- > Geospatial professional services > http://even.rouault.free.fr/services.html > _______________________________________________ > 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 aperi2007 at gmail.com Tue Jun 17 02:42:10 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 17 Jun 2014 11:42:10 +0200 Subject: [mapserver-users] Style pattern on mapscript Message-ID: Hi, Is available the style pattern in mapscript ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From fl_v at inbox.ru Tue Jun 17 04:57:21 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Tue, 17 Jun 2014 15:57:21 +0400 Subject: [mapserver-users] =?utf-8?q?Why_=24map-=3Escaledenom_returns_-1_?= =?utf-8?q?=3F?= Message-ID: <1403006241.606766364@f91.i.mail.ru> Hello Steve. Thank you very much for the thought. I use OpenLayers 3 on client side whose query string contains: &WIDTH=2025&HEIGHT=1125&BBOX=5252151,2C3515519,11856310613,7184496 and futher?scaledenom is computed: $extentArray=explode(',',$_GET['BBOX']); $minX=$extentArray[0]; $minY=$extentArray[1]; $maxX=$extentArray[2]; $maxY=$extentArray[3]; $width=(int)$_GET['WIDTH']; $height=(int)$_GET['HEIGHT']; $map->setExtent($minX,$minY,$maxX,$maxY); $map->setSize($width,$height); $map->preparequery(); $scale=$map->scaledenom; It works for me, but I am not sure that is standard method. Can this be used? Best regards Vladimir 16 ?2014, 15:43 UTC ?? "Lime, Steve D (MNIT)" : >Scale can only be computed if there is a map extent and map size set. Are you doing so? >? >Steve >? >From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir >Sent: Monday, June 16, 2014 1:12 AM >To: mapserver-users >Subject: [mapserver-users] Why $map->scaledenom returns -1 ? >? >Hello list > >I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. >The current scaledenom? required to embed in SQL-statement, but? ? >$map->scaledenom returns -1. Tons of googling got nothing. Please help! > >?phpscript.php --------------------------------------------------------------------------------------------- >???? >??????? $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map");?? ??? ? >?? ??? ?$request = ms_newOwsrequestObj(); >?? ??? ?if(!empty($_GET)){ >?? ??? ??? ?foreach ($_GET as $key => $value) { >?? ??? ??? ???? $request->setparameter($key, $value); >?? ??? ??? ?} >?? ??? ?} >? ???? >?? ??? ?$map->preparequery(); >?? ???? $map->scaledenom;//returns -1? ? ? ??? >?? ??? ? >?? ??? ?$rayonLayer = $map->getLayerByName("rayon");?? ? >?? ??? ?$rayonLayer->set("data","geom from (select id, name, geom from location >?? ??? ?where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); >?? ??? ? >?? ??? ?ms_ioinstallstdouttobuffer(); >?? ??? ?$map->owsDispatch($request);?? ??? ? >?? ??? ? >?? ??? ?$contenttype = ms_iostripstdoutbuffercontenttype(); >?? ??? ?header('Content-type:'.$contenttype); >?? ??? ?ms_iogetStdoutBufferBytes(); >?? ??? ?ms_ioresethandlers();? > > >mapfile.map--------------------------------------------------------------------------------------------- ?? > >MAP >?? ?NAME?? ?"Map" >?? ?OUTPUTFORMAT >?? ???? NAME 'AGG' >?? ???? DRIVER AGG/PNG >?? ???? IMAGEMODE RGB >?? ?END #OUTPUTFORMAT >??? STATUS?? ??? ?ON >?? ?FONTSET?? ?"fonts/fonts.list"?? ? >?? ?CONFIG?? ?"PROJ_LIB" "/usr/lib/proj/" >?? ?WEB?? ??? ? >?? ??? ?METADATA >?? ??? ??? ?wms_title?? ?"Map" >?? ??? ??? ?wms_abstract?? ?"Map" >?? ??? ??? ?wms_onlineresource?? ?" http://localhost/phpscript.php " >?? ??? ??? ?wms_srs?? ?"EPSG:3857"?? ? >?? ??? ??? ?wms_enable_request?? ??? ?"*" >?? ??? ??? ?wms_encoding?? ?"utf-8" >?? ??? ?END # end METADATA?? ??? ? >?? ?END # end WEB?? ? >?? ?PROJECTION >?? ??? ?"init=epsg:3857" >?? ?END # end PROJECTION?? ? >?? ?LAYER >?? ??? ?NAME?? ?"rayon"?? ??? ??? ? >?? ??? ?STATUS?? ??? ?ON >?? ??? ?CONNECTIONTYPE?? ?postgis >?? ??? ?CONNECTION?? ?"user=ms_viewer password=1 dbname=ms_db host=localhost"?? ??? ? >?? ??? ?TYPE?? ?POLYGON >?? ??? ?LABELITEM?? ?"name" >?? ??? ?CLASS >?? ??? ??? ?NAME?? ?"rayons"?? ??? ??? ? >?? ??? ??? ??? ?STYLE >?? ??? ??? ??? ??? ?OUTLINECOLOR?? ?255 0 0 >?? ??? ??? ??? ??? ?OUTLINEWIDTH?? ?5 >?? ??? ??? ??? ?END # end STYLE >?? ??? ?END # end CLASS >?? ??? ?PROJECTION >?? ??? ??? ?"init=epsg:3857" >?? ??? ?END # end PROJECTION >?? ??? ?METADATA >?? ??? ??? ?wms_title?? ?"rayon" >?? ??? ??? ?wms_abstract?? ?"rayon"?? ??? ??? ? >?? ??? ??? ?wms_srs?? ?"EPSG:3857" >?? ??? ??? ?wms_include_items?? ?"all" >?? ??? ?END # end METADATA >?? ?END # end LAYER?? ? >END # end MAP >--------------------------------------------------------------------------------------------- > >Best regards -- Vladimir ---------------------------------------------------------------------- -- ???????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jun 17 06:53:50 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 17 Jun 2014 15:53:50 +0200 Subject: [mapserver-users] Style pattern on mapscript In-Reply-To: References: Message-ID: Hi, it seem to exist, but every sintax I try , I'm have an error. like this: new_style.pattern = [1.0, 2.0] >Traceback (most recent call last): > File "generator.py", line 136, in > new_style.pattern = [1.0, 2.0] > File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >ne 538, in > __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, name, >value) > File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >ne 48, in _swig_setattr > return _swig_setattr_nondynamic(self,class_type,name,value,0) > File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >ne 41, in _swig_setattr_nondynamic > if method: return method(self,value) >TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double [MS_MAXP >ATTERNLENGTH]' I don't understand if is a bug or a my wrong on python use ff pattern. Unfortunately it seem not documentated at all. any help is welcome, thx. Andrea. 2014-06-17 11:42 GMT+02:00 Andrea Peri : > Hi, > > Is available the style pattern in mapscript ? > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Steve.Lime at state.mn.us Tue Jun 17 07:29:53 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 17 Jun 2014 14:29:53 +0000 Subject: [mapserver-users] Why $map->scaledenom returns -1 ? In-Reply-To: <1403006241.606766364@f91.i.mail.ru> References: <1403006241.606766364@f91.i.mail.ru> Message-ID: This is a WMS request? I?d think MapServer would populate width, height and extent for you. What are the values for those parameters if you don?t set them explicitly? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Tuesday, June 17, 2014 6:57 AM To: mapserver-users Subject: Re: [mapserver-users] Why $map->scaledenom returns -1 ? Hello Steve. Thank you very much for the thought. I use OpenLayers 3 on client side whose query string contains: &WIDTH=2025&HEIGHT=1125&BBOX=5252151,2C3515519,11856310613,7184496 and futher scaledenom is computed: $extentArray=explode(',',$_GET['BBOX']); $minX=$extentArray[0]; $minY=$extentArray[1]; $maxX=$extentArray[2]; $maxY=$extentArray[3]; $width=(int)$_GET['WIDTH']; $height=(int)$_GET['HEIGHT']; $map->setExtent($minX,$minY,$maxX,$maxY); $map->setSize($width,$height); $map->preparequery(); $scale=$map->scaledenom; It works for me, but I am not sure that is standard method. Can this be used? Best regards Vladimir 16 2014, 15:43 UTC ?? "Lime, Steve D (MNIT)" >: Scale can only be computed if there is a map extent and map size set. Are you doing so? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Monday, June 16, 2014 1:12 AM To: mapserver-users Subject: [mapserver-users] Why $map->scaledenom returns -1 ? Hello list I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. The current scaledenom required to embed in SQL-statement, but $map->scaledenom returns -1. Tons of googling got nothing. Please help! phpscript.php --------------------------------------------------------------------------------------------- $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map"); $request = ms_newOwsrequestObj(); if(!empty($_GET)){ foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } } $map->preparequery(); $map->scaledenom;//returns -1 $rayonLayer = $map->getLayerByName("rayon"); $rayonLayer->set("data","geom from (select id, name, geom from location where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); ms_ioinstallstdouttobuffer(); $map->owsDispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); header('Content-type:'.$contenttype); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); mapfile.map--------------------------------------------------------------------------------------------- MAP NAME "Map" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #OUTPUTFORMAT STATUS ON FONTSET "fonts/fonts.list" CONFIG "PROJ_LIB" "/usr/lib/proj/" WEB METADATA wms_title "Map" wms_abstract "Map" wms_onlineresource "http://localhost/phpscript.php" wms_srs "EPSG:3857" wms_enable_request "*" wms_encoding "utf-8" END # end METADATA END # end WEB PROJECTION "init=epsg:3857" END # end PROJECTION LAYER NAME "rayon" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=ms_viewer password=1 dbname=ms_db host=localhost" TYPE POLYGON LABELITEM "name" CLASS NAME "rayons" STYLE OUTLINECOLOR 255 0 0 OUTLINEWIDTH 5 END # end STYLE END # end CLASS PROJECTION "init=epsg:3857" END # end PROJECTION METADATA wms_title "rayon" wms_abstract "rayon" wms_srs "EPSG:3857" wms_include_items "all" END # end METADATA END # end LAYER END # end MAP --------------------------------------------------------------------------------------------- Best regards -- Vladimir ________________________________ -- ???????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Jun 17 08:02:21 2014 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 17 Jun 2014 17:02:21 +0200 Subject: [mapserver-users] Style pattern on mapscript In-Reply-To: References: Message-ID: Andrea, it seems we never got around to properly wrap styleObj.pattern in mapscript. Actually it is not hard to do it, just provide a getPattern/setPattern index-based function in mapscript/swiginc/style.i and, of course, rebuild mapscript. You could use the get/setBinding functions as a starting point and I could help you, if you want. /Umberto On Tue, Jun 17, 2014 at 3:53 PM, Andrea Peri wrote: > Hi, > > it seem to exist, > but every sintax I try , I'm have an error. > like this: > > new_style.pattern = [1.0, 2.0] > > >Traceback (most recent call last): > > File "generator.py", line 136, in > > new_style.pattern = [1.0, 2.0] > > File > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li > >ne 538, in > > __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, > name, > >value) > > File > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li > >ne 48, in _swig_setattr > > return _swig_setattr_nondynamic(self,class_type,name,value,0) > > File > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li > >ne 41, in _swig_setattr_nondynamic > > if method: return method(self,value) > >TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double > [MS_MAXP > >ATTERNLENGTH]' > > I don't understand if is a bug or a my wrong on python use ff pattern. > > Unfortunately it seem not documentated at all. > > any help is welcome, thx. > > Andrea. > > > 2014-06-17 11:42 GMT+02:00 Andrea Peri : > > Hi, > > > > Is available the style pattern in mapscript ? > > > > Thx, > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > -- > ----------------- > 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 Jun 17 08:15:38 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 17 Jun 2014 17:15:38 +0200 Subject: [mapserver-users] Style pattern on mapscript In-Reply-To: References: Message-ID: Hi umberto, thx for response. If I try to do a help(mapscript.styleObject) I can see in the list of availables: a pattern and a patternlength attributes. So I wrongly guess they are available. > Actually it is not hard to do it, just provide a getPattern/setPattern > index-based function > in mapscript/swiginc/style.i > and, of course, rebuild mapscript. You could use the get/setBinding > functions as a starting point and I could help you, if you want. thx for your help. Andrea 2014-06-17 17:02 GMT+02:00 Umberto Nicoletti : > Andrea, > it seems we never got around to properly wrap styleObj.pattern in mapscript. > > Actually it is not hard to do it, just provide a getPattern/setPattern > index-based function > in mapscript/swiginc/style.i > and, of course, rebuild mapscript. You could use the get/setBinding > functions as a starting point and I could help you, if you want. > > /Umberto > > > > On Tue, Jun 17, 2014 at 3:53 PM, Andrea Peri wrote: >> >> Hi, >> >> it seem to exist, >> but every sintax I try , I'm have an error. >> like this: >> >> new_style.pattern = [1.0, 2.0] >> >> >Traceback (most recent call last): >> > File "generator.py", line 136, in >> > new_style.pattern = [1.0, 2.0] >> > File >> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >> >ne 538, in >> > __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, >> > name, >> >value) >> > File >> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >> >ne 48, in _swig_setattr >> > return _swig_setattr_nondynamic(self,class_type,name,value,0) >> > File >> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >> >ne 41, in _swig_setattr_nondynamic >> > if method: return method(self,value) >> >TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double >> > [MS_MAXP >> >ATTERNLENGTH]' >> >> I don't understand if is a bug or a my wrong on python use ff pattern. >> >> Unfortunately it seem not documentated at all. >> >> any help is welcome, thx. >> >> Andrea. >> >> >> 2014-06-17 11:42 GMT+02:00 Andrea Peri : >> > Hi, >> > >> > Is available the style pattern in mapscript ? >> > >> > Thx, >> > >> > -- >> > ----------------- >> > Andrea Peri >> > . . . . . . . . . >> > qwerty ????? >> > ----------------- >> >> >> >> -- >> ----------------- >> 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 Jun 17 08:51:25 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 17 Jun 2014 15:51:25 +0000 Subject: [mapserver-users] shapeObj classIndex In-Reply-To: <001601cf8988$ea827710$bf876530$@topnet.tn> References: <001601cf8988$ea827710$bf876530$@topnet.tn> Message-ID: Hi Meher: Can you post a quick snippet of your code? Which language? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mohamed Meher TOUHAMI Sent: Monday, June 16, 2014 12:32 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shapeObj classIndex Hi, I am using mapserver 6.4.1 and it seems that shapeObj.setClassIndex is not working. It is not mentioned in the SWIG API Documentation. I am using this method to draw multiple shapeObj with different symbols. Mapserver uses always the first class. The same code worked with mapserver 5.6. Any idea about the problem or may be the new way to do it with mapserver 6.4?. Thanks, Meher -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jun 17 13:45:52 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 17 Jun 2014 22:45:52 +0200 Subject: [mapserver-users] Style pattern on mapscript In-Reply-To: References: Message-ID: Hi, after a series of test. I see have other results. If I try this code: stile_foreground_pattern = [2.0,2.0,0,0,0,0,0,0,0,0] new_style_outline = mapscript.styleObj() si_out = clone_map.getLayer(li).getClass(ci).insertStyle(new_style_outline) new_style_outline.pattern_setpattern = stile_foreground_pattern I have no more errors, in the result mapfile I see this strange values: STYLE ... PATTERN 0.00 2041524053898372829105438909070180893926486567071343916138357144016524314351965530501262036567330524547902312663713063313261806543852765632899638683857957263751105564370908781021860582220975721899444780855326898548375552.00 0.00 6854801439634025855391127625890100406876631812783080735666199931350519470255902184785399986446578170451457898491980267130023230797520694255864597982809160058908956218984721043947520.00 0.00 287518202601265833730730069100431187621112779631488281448375674568404082577951570612674362235701754122300884071233209506589955361651766833820669162787389384425472.00 30944669757275424126339545903734763894116227894805443878742086082466476235858342946304559530226217509781530113779517168662084903626578639370820577853863996571907439324247683030476016083363920120570447553914102874418548202597863030452590329870165530775816264220672.00 4507122338036623852768173995278107764889351550666277409967302425748542228121180975398912.00 17511052788837734276393773805385477806378250314801500293873396685632502488442313426446667676123136.00 END # PATTERN .... END # STYLE I don't understand why this result. Any thought ? Thx for any help. 2014-06-17 17:15 GMT+02:00 Andrea Peri : > Hi umberto, > thx for response. > > If I try to do a > help(mapscript.styleObject) > > I can see in the list of availables: > a pattern and a patternlength attributes. > > So I wrongly guess they are available. > >> Actually it is not hard to do it, just provide a getPattern/setPattern >> index-based function >> in mapscript/swiginc/style.i >> and, of course, rebuild mapscript. You could use the get/setBinding >> functions as a starting point and I could help you, if you want. > > thx for your help. > > Andrea > > 2014-06-17 17:02 GMT+02:00 Umberto Nicoletti : >> Andrea, >> it seems we never got around to properly wrap styleObj.pattern in mapscript. >> >> Actually it is not hard to do it, just provide a getPattern/setPattern >> index-based function >> in mapscript/swiginc/style.i >> and, of course, rebuild mapscript. You could use the get/setBinding >> functions as a starting point and I could help you, if you want. >> >> /Umberto >> >> >> >> On Tue, Jun 17, 2014 at 3:53 PM, Andrea Peri wrote: >>> >>> Hi, >>> >>> it seem to exist, >>> but every sintax I try , I'm have an error. >>> like this: >>> >>> new_style.pattern = [1.0, 2.0] >>> >>> >Traceback (most recent call last): >>> > File "generator.py", line 136, in >>> > new_style.pattern = [1.0, 2.0] >>> > File >>> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >>> >ne 538, in >>> > __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, >>> > name, >>> >value) >>> > File >>> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >>> >ne 48, in _swig_setattr >>> > return _swig_setattr_nondynamic(self,class_type,name,value,0) >>> > File >>> > "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li >>> >ne 41, in _swig_setattr_nondynamic >>> > if method: return method(self,value) >>> >TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double >>> > [MS_MAXP >>> >ATTERNLENGTH]' >>> >>> I don't understand if is a bug or a my wrong on python use ff pattern. >>> >>> Unfortunately it seem not documentated at all. >>> >>> any help is welcome, thx. >>> >>> Andrea. >>> >>> >>> 2014-06-17 11:42 GMT+02:00 Andrea Peri : >>> > Hi, >>> > >>> > Is available the style pattern in mapscript ? >>> > >>> > Thx, >>> > >>> > -- >>> > ----------------- >>> > Andrea Peri >>> > . . . . . . . . . >>> > qwerty ????? >>> > ----------------- >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From jukka.rahkonen at mmmtike.fi Wed Jun 18 07:05:16 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 18 Jun 2014 14:05:16 +0000 Subject: [mapserver-users] Saving mapfiles into GPKG and Spatialite? Message-ID: Hi, While playing with GPKG and Spatialite which offer a nice way for delivering data in ready-to-use format I have been wondering if it could be possible to store also mapfiles or GGIS project files and styles into the same database. Spatialite has a special tool for importing XML documents so I believe that it could be used for storing QGIS files as well as SLD styles. But is there any simple way for importing/exporting Mapserver mapfiles to/from SQLite? Export is probably needed and therefore there may not be any real advantage over zipping the db and mapfile into same package. But I cannot imagine how it could be made to work so simply that Mapserver admin would only drop the GPKG into some place and users could start using it from "http://server.org/cgi-bin/mapserv?map="select map from maps where map_id=1" -Jukka Rahkonen- From aperi2007 at gmail.com Wed Jun 18 07:59:26 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 18 Jun 2014 16:59:26 +0200 Subject: [mapserver-users] Saving mapfiles into GPKG and Spatialite? In-Reply-To: References: Message-ID: Hi Jukka, some time ago we fund the work of Furieri to enhancement on spatialite the for storing the metaata ISO19115 and all kind of XML stiles (like SLD and any other kind of XML) and also the SVG ofcourse. Our plan was to go forward an automatic and compliant support of the styles onqgis and of course also on mapserver. Unfortunately the release of geopackage and also the lack of spatialite support on qgis will break our plan. A definitively stop to our plans was when on qgis was insert an uncompliant storing of qml styles using a blob field instead of the XMLBlob that Furier add to the last 4.1.1 spatialite. This will mean that on qgis there was no optio to support a standardized version of style storing. After this we remap out plans, and go to see forward the gdal approach. Also we see with interest (and funding options) to the autostyle . Our plan now is to enhance the gdal driver for spatialite to be able to read/write from the standard tables XB on spatialite 4.1.1 for metadata, styles and SVG. Also we like to use the Autostyle capabilities of gdal to create a standard style for rendering. Actually 'm study the auto-style of gdal to see how much they can map a rendering of QGIS/QGIS-Server and of MapServer (out main softwares). Regards, Andrea. 2014-06-18 16:05 GMT+02:00 Rahkonen Jukka (Tike) : > Hi, > > While playing with GPKG and Spatialite which offer a nice way for delivering data in ready-to-use format I have been wondering if it could be possible to store also mapfiles or GGIS project files and styles into the same database. Spatialite has a special tool for importing XML documents so I believe that it could be used for storing QGIS files as well as SLD styles. But is there any simple way for importing/exporting Mapserver mapfiles to/from SQLite? Export is probably needed and therefore there may not be any real advantage over zipping the db and mapfile into same package. But I cannot imagine how it could be made to work so simply that Mapserver admin would only drop the GPKG into some place and users could start using it from "http://server.org/cgi-bin/mapserv?map="select map from maps where map_id=1" > > -Jukka Rahkonen- > _______________________________________________ > 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 mmmtike.fi Wed Jun 18 10:29:39 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 18 Jun 2014 17:29:39 +0000 Subject: [mapserver-users] TinyOWS: Axis order fix wanted Message-ID: Hi, If there is someone who knows how to fix WFS 1.1.0 axis order in TinyOWS with some projections, please contact me. I may be able to help with making it to happen. -Jukka Rahkonen- From even.rouault at mines-paris.org Wed Jun 18 10:45:24 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Wed, 18 Jun 2014 19:45:24 +0200 Subject: [mapserver-users] TinyOWS: Axis order fix wanted In-Reply-To: References: Message-ID: <201406181945.24657.even.rouault@mines-paris.org> Le mercredi 18 juin 2014 19:29:39, Rahkonen Jukka (Tike) a ?crit : > Hi, > > If there is someone who knows how to fix WFS 1.1.0 axis order in TinyOWS > with some projections, please contact me. Hi Jukka, I've not looked at TinyOWS code recently, but I guess that reusing the database of EPSG codes used by MapServer to determine where axis swapping is necessary should be doable. > I may be able to help with > making it to happen. Do you mean funding ? I think I've commit rights in TinyOWS since it is hosted at https://github.com/mapserver/ and I've commit rights in mapserver repositories, but I should perhaps check with Olivier Courtin/Oslandia if they're OK with me touching the code. Potentially they could also be interested in funded work too. Even > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Geospatial professional services http://even.rouault.free.fr/services.html From tom at nthsense.net Wed Jun 18 17:57:41 2014 From: tom at nthsense.net (Tom Lee) Date: Wed, 18 Jun 2014 20:57:41 -0400 Subject: [mapserver-users] Grouping Postgres and join with Shapefile Message-ID: Hi folks, I'm struggling with something that I *think* should be possible, but running into a lot of dead ends. What I'm trying to do is join some data from a Postgres database with shapefile data, while grouping the Postgres data by an aggregate function. So far I can do those two things separately, but not together. For example: # Joining a shapefile with Postgres data: CONNECTIONTYPE OGR CONNECTION 'data/ne_10m_admin_0_map_units.shp' DATA "SELECT * FROM ne_10m_admin_0_map_units LEFT JOIN 'ODBC:postgres at Postgres,foreign_assistance'.foreign_assistance ON ne_10m_admin_0_map_units.name=foreign_assistance.country" # Querying the Postgres data and grouping it: CONNECTIONTYPE OGR CONNECTION 'PG:dbname=data host=localhost port=5432 user=postgres password=password' DATA "SELECT * FROM (SELECT country, sum(obligations) FROM foreign_assistance GROUP BY country) AS new_table" What I'd really like to do is something like this: DATA "SELECT * FROM (SELECT country, sum(obligations) FROM foreign_assistance GROUP BY country) AS new_table LEFT JOIN 'data/ne_10m_admin_0_map_units.shp' ON foreign_assistance.country=ne_10m_admin_0_map_units.name" The problem with this is that it mixes native Postgres SQL and OGRSQL, and treats the shapefile as a datasource without it being loaded. Any thoughts? Thanks. From jmckenna at gatewaygeomatics.com Wed Jun 18 18:01:47 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 Jun 2014 22:01:47 -0300 Subject: [mapserver-users] Grouping Postgres and join with Shapefile In-Reply-To: References: Message-ID: <53A2367B.2060608@gatewaygeomatics.com> Are you aware of the JOIN docs, with an example of how to join shp to Postgres? http://www.mapserver.org/mapfile/join.html#example-2-join-from-shape-dataset-to-postgresql-table I created that example years ago but it is still valid. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-18, 9:57 PM, Tom Lee wrote: > Hi folks, > > I'm struggling with something that I *think* should be possible, but running into a lot of dead ends. What I'm trying to do is join some data from a Postgres database with shapefile data, while grouping the Postgres data by an aggregate function. So far I can do those two things separately, but not together. For example: > > # Joining a shapefile with Postgres data: > > CONNECTIONTYPE OGR > CONNECTION 'data/ne_10m_admin_0_map_units.shp' > DATA "SELECT * FROM ne_10m_admin_0_map_units LEFT JOIN 'ODBC:postgres at Postgres,foreign_assistance'.foreign_assistance ON ne_10m_admin_0_map_units.name=foreign_assistance.country" > > # Querying the Postgres data and grouping it: > > CONNECTIONTYPE OGR > CONNECTION 'PG:dbname=data host=localhost port=5432 user=postgres password=password' > DATA "SELECT * FROM (SELECT country, sum(obligations) FROM foreign_assistance GROUP BY country) AS new_table" > > What I'd really like to do is something like this: > > DATA "SELECT * FROM (SELECT country, sum(obligations) FROM foreign_assistance GROUP BY country) AS new_table LEFT JOIN 'data/ne_10m_admin_0_map_units.shp' ON foreign_assistance.country=ne_10m_admin_0_map_units.name" > > The problem with this is that it mixes native Postgres SQL and OGRSQL, and treats the shapefile as a datasource without it being loaded. > > Any thoughts? Thanks. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From olivier.courtin at gmail.com Wed Jun 18 23:39:16 2014 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Thu, 19 Jun 2014 08:39:16 +0200 Subject: [mapserver-users] TinyOWS: Axis order fix wanted In-Reply-To: <201406181945.24657.even.rouault@mines-paris.org> References: <201406181945.24657.even.rouault@mines-paris.org> Message-ID: Jukka, Even, > I've not looked at TinyOWS code recently, but I guess that reusing the > database of EPSG codes used by MapServer to determine where axis swapping is > necessary should be doable. If i remember well it's more than that. As axis swapping is already handled. >> I may be able to help with >> making it to happen. > > Do you mean funding ? > > I think I've commit rights in TinyOWS since it is hosted at > https://github.com/mapserver/ and I've commit rights in mapserver > repositories, but I should perhaps check with Olivier Courtin/Oslandia if > they're OK with me touching the code. As long as we communicate before commits, you're very welcome Even ! > Potentially they could also be > interested in funded work too. We could indeed, I send you an email Jukka. O. From fl_v at inbox.ru Thu Jun 19 01:17:03 2014 From: fl_v at inbox.ru (=?UTF-8?B?VmxhZGltaXI=?=) Date: Thu, 19 Jun 2014 12:17:03 +0400 Subject: [mapserver-users] =?utf-8?q?Why_=24map-=3Escaledenom_returns_-1_?= =?utf-8?q?=3F?= In-Reply-To: References: <1403006241.606766364@f91.i.mail.ru> Message-ID: <1403165823.279712742@f364.i.mail.ru> Hi Steve Yes it is WMS request from OL3: http://localhost/map,php?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=rayon&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&WIDTH=2025&HEIGHT=1125&BBOX=1950071.7561607715%2C1681030.6423115395%2C15158390.243839229%2C9018985.35768846 I?considered MapServer?captures width, height and extent from GetMap?request ?parameters. But?either $request->loadparams( ) or foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } don't ?calculate them and scaledenom=-1 as result. Is there another unknown method for me? Now this works only with additional extracting from $_GET: foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } if(!empty($_GET['BBOX']) && !empty($_GET['WIDTH']) && !empty($_GET['HEIGHT'])) { $extentArray=explode(',',$_GET['BBOX']); $minX=$extentArray[0]; $minY=$extentArray[1]; $maxX=$extentArray[2]; $maxY=$extentArray[3]; $width=(int)$_GET['WIDTH']; $height=(int)$_GET['HEIGHT']; $map->setSize($width,$height); $map->setExtent($minX,$minY,$maxX,$maxY); $map->preparequery(); $scale=$map->scaledenom; } Can't understand what's wrong. Any idea ? Best regards Vladimir Tue, 17 Jun 2014 14:29:53 +0000 ?? "Lime, Steve D (MNIT)" : >This is a WMS request? I?d think MapServer would populate width, height and extent for you. What are the values for those parameters if you don?t set them explicitly? >? >Steve >? >From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir >Sent: Tuesday, June 17, 2014 6:57 AM >To: mapserver-users >Subject: Re: [mapserver-users] Why $map->scaledenom returns -1 ? >? >Hello Steve. >Thank you very much for the thought. >I use OpenLayers 3 on client side whose query string contains: >&WIDTH=2025&HEIGHT=1125&BBOX=5252151,2C3515519,11856310613,7184496 > >and futher?scaledenom is computed: >$extentArray=explode(',',$_GET['BBOX']); >$minX=$extentArray[0]; >$minY=$extentArray[1]; >$maxX=$extentArray[2]; >$maxY=$extentArray[3]; >$width=(int)$_GET['WIDTH']; >$height=(int)$_GET['HEIGHT']; >$map->setExtent($minX,$minY,$maxX,$maxY); >$map->setSize($width,$height); >$map->preparequery(); >$scale=$map->scaledenom; >It works for me, but I am not sure that is standard method. >Can this be used? > >Best regards >Vladimir > >16 ?2014, 15:43 UTC ?? "Lime, Steve D (MNIT)" < Steve.Lime at state.mn.us >: >Scale can only be computed if there is a map extent and map size set. Are you doing so? >? >Steve >? >From: mapserver-users-bounces at lists.osgeo.org [ mailto:mapserver-users-bounces at lists.osgeo.org ] On Behalf Of Vladimir >Sent: Monday, June 16, 2014 1:12 AM >To: mapserver-users >Subject: [mapserver-users] Why $map->scaledenom returns -1 ? >? >Hello list > >I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. >The current scaledenom? required to embed in SQL-statement, but? ? >$map->scaledenom returns -1. Tons of googling got nothing. Please help! > >?phpscript.php --------------------------------------------------------------------------------------------- >???? >??????? $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map");?? ??? ? >?? ??? ?$request = ms_newOwsrequestObj(); >?? ??? ?if(!empty($_GET)){ >?? ??? ??? ?foreach ($_GET as $key => $value) { >?? ??? ??? ???? $request->setparameter($key, $value); >?? ??? ??? ?} >?? ??? ?} >? ???? >?? ??? ?$map->preparequery(); >?? ???? $map->scaledenom;//returns -1? ? ? ??? >?? ??? ? >?? ??? ?$rayonLayer = $map->getLayerByName("rayon");?? ? >?? ??? ?$rayonLayer->set("data","geom from (select id, name, geom from location >?? ??? ?where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); >?? ??? ? >?? ??? ?ms_ioinstallstdouttobuffer(); >?? ??? ?$map->owsDispatch($request);?? ??? ? >?? ??? ? >?? ??? ?$contenttype = ms_iostripstdoutbuffercontenttype(); >?? ??? ?header('Content-type:'.$contenttype); >?? ??? ?ms_iogetStdoutBufferBytes(); >?? ??? ?ms_ioresethandlers();? > > >mapfile.map--------------------------------------------------------------------------------------------- ?? > >MAP >?? ?NAME?? ?"Map" >?? ?OUTPUTFORMAT >?? ???? NAME 'AGG' >?? ???? DRIVER AGG/PNG >?? ???? IMAGEMODE RGB >?? ?END #OUTPUTFORMAT >??? STATUS?? ??? ?ON >?? ?FONTSET?? ?"fonts/fonts.list"?? ? >?? ?CONFIG?? ?"PROJ_LIB" "/usr/lib/proj/" >?? ?WEB?? ??? ? >?? ??? ?METADATA >?? ??? ??? ?wms_title?? ?"Map" >?? ??? ??? ?wms_abstract?? ?"Map" >?? ??? ??? ?wms_onlineresource?? ?" http://localhost/phpscript.php " >?? ??? ??? ?wms_srs?? ?"EPSG:3857"?? ? >?? ??? ??? ?wms_enable_request?? ??? ?"*" >?? ??? ??? ?wms_encoding?? ?"utf-8" >?? ??? ?END # end METADATA?? ??? ? >?? ?END # end WEB?? ? >?? ?PROJECTION >?? ??? ?"init=epsg:3857" >?? ?END # end PROJECTION?? ? >?? ?LAYER >?? ??? ?NAME?? ?"rayon"?? ??? ??? ? >?? ??? ?STATUS?? ??? ?ON >?? ??? ?CONNECTIONTYPE?? ?postgis >?? ??? ?CONNECTION?? ?"user=ms_viewer password=1 dbname=ms_db host=localhost"?? ??? ? >?? ??? ?TYPE?? ?POLYGON >?? ??? ?LABELITEM?? ?"name" >?? ??? ?CLASS >?? ??? ??? ?NAME?? ?"rayons"?? ??? ??? ? >?? ??? ??? ??? ?STYLE >?? ??? ??? ??? ??? ?OUTLINECOLOR?? ?255 0 0 >?? ??? ??? ??? ??? ?OUTLINEWIDTH?? ?5 >?? ??? ??? ??? ?END # end STYLE >?? ??? ?END # end CLASS >?? ??? ?PROJECTION >?? ??? ??? ?"init=epsg:3857" >?? ??? ?END # end PROJECTION >?? ??? ?METADATA >?? ??? ??? ?wms_title?? ?"rayon" >?? ??? ??? ?wms_abstract?? ?"rayon"?? ??? ??? ? >?? ??? ??? ?wms_srs?? ?"EPSG:3857" >?? ??? ??? ?wms_include_items?? ?"all" >?? ??? ?END # end METADATA >?? ?END # end LAYER?? ? >END # end MAP >--------------------------------------------------------------------------------------------- > >Best regards > > >-- >Vladimir >? >---------------------------------------------------------------------- > >-- >Vladimir -- Vladimir -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at nthsense.net Thu Jun 19 06:21:52 2014 From: tom at nthsense.net (Tom) Date: Thu, 19 Jun 2014 09:21:52 -0400 Subject: [mapserver-users] Grouping Postgres and join with Message-ID: <000301cf8bc1$6f7fa8e0$4e7efaa0$@net> Hi Jeff, Thanks for the reply. Yes, I did see that example, and tried a number of different things to get it working for me, but to no avail. My log gets a bunch of statements that look like this: [Thu Jun 19 09:00:47 2014].144000 msPOSTGRESQLJoinClose() already close or never opened. Even if I did get that working, where would I put my GROUP BY sql query? In the TABLE attribute? Thanks! Tom Date: Wed, 18 Jun 2014 22:01:47 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Grouping Postgres and join with Shapefile Message-ID: <53A2367B.2060608 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 Are you aware of the JOIN docs, with an example of how to join shp to Postgres? http://www.mapserver.org/mapfile/join.html#example-2-join-from-shape-dataset -to-postgresql-table I created that example years ago but it is still valid. -jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlapointe at mapgears.com Thu Jun 19 08:31:05 2014 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Thu, 19 Jun 2014 11:31:05 -0400 Subject: [mapserver-users] GSoC 2014 - ScribeUI: MapServer Mapfile Development Made Easy Message-ID: Hi all, I announced a few weeks ago that ScribeUI was accepted as a MapServer Google Summer of Code 2014 project. I am happy to announce now ScribeUI v1.0, the first release for this summer! You can get the new release on the ScribeUI repository: https://github.com/mapgears/scribeui/releases/tag/v1.0 And you can also try it now on the demo: http://demo.scribeui.org/ This new version didn't introduce a lot of new features, but it's more stable and fixed a few bugs we had in v0.5. Most of the changes were done in the backend structure, now using the Pyramid framework and following a nice and simple MVC structure. This version is going to make future developments easier and faster. The next step is some more refactoring, mostly on the client side, following by a lot of bug fixes planned for July! Thanks a lot, Jessica Lapointe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Vogt at rcis.com Thu Jun 19 08:59:55 2014 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 19 Jun 2014 15:59:55 +0000 Subject: [mapserver-users] Can't load requested dynamic library: msplugin_mssql2008.dll Message-ID: <1491EB4E1D75164E940399B1F62D23CE458083EC@PDEXCH10DB1.corp.rcis.com> Can't load requested dynamic library: msplugin_mssql2008.dll I have a WebAPI that calls a dll that references MapServer to create some reports with maps on them. When I run my unit test localy on the WebAPI everything works great! When I try to hit the WebAPI from a browser I get the following error? msDrawMap(): Image handling error. Failed to draw layer named 'Section'.;loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: msplugin_mssql2008.dll;msGetSymbol(): General error message. Can't load requested dynamic library: msplugin_mssql2008.dll -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jorrit.Goddijn at meteogroup.com Fri Jun 20 02:05:48 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Fri, 20 Jun 2014 09:05:48 +0000 Subject: [mapserver-users] Masking POINT layers with CONNECTIONTYPE UVRASTER Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81D650@nl-wag-ex1> Hi all, We're still having issues with the MASK attribute in combination with layers with CONNECTIONTYPE set to UVRASTER, so I thought of bringing this under the attention again. The layer draws fine without the MASK. But when I use the MASK attribute, I get a NO DATA RECEIVED error, and no image is drawn. Does anybody have a workaround for this? Thank you, Jorrit LAYER NAME "current_grid" TYPE POINT CONNECTIONTYPE uvraster STATUS OFF MASK "water_outline" #yields NO DATA RECEIVED error DATA "path/to/grib2/file" PROCESSING "BANDS=1,2" CLASS STYLE SYMBOL "arrow" ANGLE [uv_angle] SIZE 10 COLOR 0 255 0 END # style END # class PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" END METADATA "wms_title" "the current arrow grid" "wms_srs" "epsg:4326 epsg:54004" END END # layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Jun 20 08:40:48 2014 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 20 Jun 2014 09:40:48 -0600 Subject: [mapserver-users] Grouping Postgres and join with In-Reply-To: <000301cf8bc1$6f7fa8e0$4e7efaa0$@net> References: <000301cf8bc1$6f7fa8e0$4e7efaa0$@net> Message-ID: <53A45600.5050003@geoanalytic.com> Tom, I did some testing of your problem by setting up a layer to my [similar] datasources using Jeff's suggestion of using the JOIN object: LAYER NAME 'test' TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "PG:dbname=IMS host=localhost port=5432 user=postgres password=mypassword" DATA "SELECT * FROM (SELECT image_id, sum(length) FROM feature_polygon GROUP BY image_id) AS new_table" # ---- this doesn't work (syntax error at 'images.shp'): # DATA "SELECT * FROM (SELECT image_id, sum(length) FROM feature_polygon GROUP BY image_id) AS new_table LEFT JOIN 'images.shp'.images ON feature_polygon.image_id=images.ID" JOIN NAME "test" # CONNECTIONTYPE DBF # no need? TABLE "data/images.dbf" FROM "image_id" # the attribute name from the LAYER's DATA object TO "1" TYPE ONE-TO-ONE END # join END # LAYER While shp2img does not report any errors, I doubt if this config will produce the desired result. The "interesting" thing in this scenario is that the PostGIS table does not contain the geometry, the shapefile does, but I expect the JOIN processing only looks at the DBF portion. My log file shows many of the following: msOGRFileNextShape: Rejecting feature (shapeid = 0, tileid=0) of incompatible type for this layer (feature wkbType 0, layer type 0) so I think this will be a problem. One work-around would be to create a view in your database: CREATE OR REPLACE VIEW my_view AS SELECT country, sum(obligations) FROM foreign_assistance GROUP BY country); Then use your shapefile as the datasource and join to the view (either in the DATA object or in a JOIN object): # Joining a shapefile with Postgres view: CONNECTIONTYPE OGR CONNECTION 'data/ne_10m_admin_0_map_units.shp' DATA "SELECT * FROM ne_10m_admin_0_map_units LEFT JOIN 'ODBC:postgres at Postgres,my_vew'.my_view ON ne_10m_admin_0_map_units.name=my_view.country" Best Regards, Brent Fraser On 6/19/2014 7:21 AM, Tom wrote: > > Hi Jeff, > > Thanks for the reply. Yes, I did see that example, and tried a number > of different things to get it working for me, but to no avail. My log > gets a bunch of statements that look like this: > > [Thu Jun 19 09:00:47 2014].144000 msPOSTGRESQLJoinClose() already > close or never opened. > > Even if I did get that working, where would I put my GROUP BY sql > query? In the TABLE attribute? > > Thanks! > > Tom > > > Date: Wed, 18 Jun 2014 22:01:47 -0300 > From: Jeff McKenna > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Grouping Postgres and join with > Shapefile > Message-ID: <53A2367B.2060608 at gatewaygeomatics.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Are you aware of the JOIN docs, with an example of how to join shp to > Postgres? > http://www.mapserver.org/mapfile/join.html#example-2-join-from-shape-dataset-to-postgresql-table > I created that example years ago but it is still valid. > > -jeff > > > > _______________________________________________ > 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 Steve.Lime at state.mn.us Fri Jun 20 09:26:12 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 20 Jun 2014 16:26:12 +0000 Subject: [mapserver-users] Why $map->scaledenom returns -1 ? In-Reply-To: <1403165823.279712742@f364.i.mail.ru> References: <1403006241.606766364@f91.i.mail.ru> <1403165823.279712742@f364.i.mail.ru> Message-ID: One more thing is needed to compute scale: map units. Try setting that in your mapfile (e.g. UNITS METERS), then make sure you set a proper map extent and map size via PHP and things should work. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Thursday, June 19, 2014 3:17 AM To: mapserver-users Subject: Re: [mapserver-users] Why $map->scaledenom returns -1 ? Hi Steve Yes it is WMS request from OL3: http://localhost/map,php?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=rayon&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&WIDTH=2025&HEIGHT=1125&BBOX=1950071.7561607715%2C1681030.6423115395%2C15158390.243839229%2C9018985.35768846 I considered MapServer captures width, height and extent from GetMap request parameters. But either $request->loadparams() or foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } don't calculate them and scaledenom=-1 as result. Is there another unknown method for me? Now this works only with additional extracting from $_GET: foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } if(!empty($_GET['BBOX']) && !empty($_GET['WIDTH']) && !empty($_GET['HEIGHT'])) { $extentArray=explode(',',$_GET['BBOX']); $minX=$extentArray[0]; $minY=$extentArray[1]; $maxX=$extentArray[2]; $maxY=$extentArray[3]; $width=(int)$_GET['WIDTH']; $height=(int)$_GET['HEIGHT']; $map->setSize($width,$height); $map->setExtent($minX,$minY,$maxX,$maxY); $map->preparequery(); $scale=$map->scaledenom; } Can't understand what's wrong. Any idea ? Best regards Vladimir Tue, 17 Jun 2014 14:29:53 +0000 ?? "Lime, Steve D (MNIT)" >: This is a WMS request? I?d think MapServer would populate width, height and extent for you. What are the values for those parameters if you don?t set them explicitly? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Tuesday, June 17, 2014 6:57 AM To: mapserver-users Subject: Re: [mapserver-users] Why $map->scaledenom returns -1 ? Hello Steve. Thank you very much for the thought. I use OpenLayers 3 on client side whose query string contains: &WIDTH=2025&HEIGHT=1125&BBOX=5252151,2C3515519,11856310613,7184496 and futher scaledenom is computed: $extentArray=explode(',',$_GET['BBOX']); $minX=$extentArray[0]; $minY=$extentArray[1]; $maxX=$extentArray[2]; $maxY=$extentArray[3]; $width=(int)$_GET['WIDTH']; $height=(int)$_GET['HEIGHT']; $map->setExtent($minX,$minY,$maxX,$maxY); $map->setSize($width,$height); $map->preparequery(); $scale=$map->scaledenom; It works for me, but I am not sure that is standard method. Can this be used? Best regards Vladimir 16 2014, 15:43 UTC ?? "Lime, Steve D (MNIT)" >: Scale can only be computed if there is a map extent and map size set. Are you doing so? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Sent: Monday, June 16, 2014 1:12 AM To: mapserver-users Subject: [mapserver-users] Why $map->scaledenom returns -1 ? Hello list I stuck on the scaledenom definition in my PHPMapScript v. 6.4.1. The current scaledenom required to embed in SQL-statement, but $map->scaledenom returns -1. Tons of googling got nothing. Please help! phpscript.php --------------------------------------------------------------------------------------------- $map = ms_newMapobj("/srv/www/htdocs/tez/design/mapfile.map"); $request = ms_newOwsrequestObj(); if(!empty($_GET)){ foreach ($_GET as $key => $value) { $request->setparameter($key, $value); } } $map->preparequery(); $map->scaledenom;//returns -1 $rayonLayer = $map->getLayerByName("rayon"); $rayonLayer->set("data","geom from (select id, name, geom from location where ST_Intersects(geom, !BOX!)) as subquery using unique id using srid=3857"); ms_ioinstallstdouttobuffer(); $map->owsDispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); header('Content-type:'.$contenttype); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); mapfile.map--------------------------------------------------------------------------------------------- MAP NAME "Map" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #OUTPUTFORMAT STATUS ON FONTSET "fonts/fonts.list" CONFIG "PROJ_LIB" "/usr/lib/proj/" WEB METADATA wms_title "Map" wms_abstract "Map" wms_onlineresource "http://localhost/phpscript.php" wms_srs "EPSG:3857" wms_enable_request "*" wms_encoding "utf-8" END # end METADATA END # end WEB PROJECTION "init=epsg:3857" END # end PROJECTION LAYER NAME "rayon" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=ms_viewer password=1 dbname=ms_db host=localhost" TYPE POLYGON LABELITEM "name" CLASS NAME "rayons" STYLE OUTLINECOLOR 255 0 0 OUTLINEWIDTH 5 END # end STYLE END # end CLASS PROJECTION "init=epsg:3857" END # end PROJECTION METADATA wms_title "rayon" wms_abstract "rayon" wms_srs "EPSG:3857" wms_include_items "all" END # end METADATA END # end LAYER END # end MAP --------------------------------------------------------------------------------------------- Best regards -- Vladimir ________________________________ -- Vladimir -- Vladimir -------------- next part -------------- An HTML attachment was scrubbed... URL: From starling.lucky at gmail.com Fri Jun 20 14:59:27 2014 From: starling.lucky at gmail.com (Hari Pradhan) Date: Fri, 20 Jun 2014 16:59:27 -0500 Subject: [mapserver-users] Problem using GetFeatureInfo request with WMS-T Message-ID: Hello all, I have implemented WMS-T for vector shape files (each of which is captured at different time frame) using tileindex (the tool I have used is ogrtindex.exe), and this worked successfully for GetMap request. But the problem here is GetFeatureInfo does not work properly while making request with different values of time field. Below is my layer section in the map file. LAYER NAME "states1" DEBUG 5 TYPE POLYGON TILEINDEX "C:\data\vector\shapeData\testdata\vector.shp" TILEITEM "location" STATUS ON METADATA "wms_title" "states1" "wms_include_items" "all" "wms_dataurl_format" "text/HTML" "ows_include_items" "all" "wms_exceptions_format" "application/vnd.ogc.se_xml" 'wms_srs' 'EPSG:42304' "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20070301/20070302" "wms_timeitem" "Time" "wms_timedefault" "20070301" END #FILTERITEM "Time" #FILTER "20070301" EXTENT -97.238976 41.619778 -82.122902 49.385620 TEMPLATE "Mytemplate.html" PROJECTION "init=epsg:42304" END CLASS NAME "MyClass" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # Layer In the above example, the dbf of TileIndex looks like LOCATION C:\data\vector\shapeData\20070301\states1.shp,0 C:\data\vector\shapeData\20070302\states1.shp,0 Each of these individual shape files has time field (i.e. 1st states1.shp has 20070301 and next one has 20070302). When I make a request using the URL as "http://?map=&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070301", it correctly returns back the feature information as follows. GetFeatureInfo results: Layer 'states1' Feature 38: AREA = '16.354' PERIMETER = '22.325' STATESP020 = '1353' STATE = 'Wisconsin' STATE_FIPS = '55' CLASS = 'land' Time = '20070301' But making the request using the URL as "http://?map=&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070302" results to "Internal Server Error". Note: The error log is empty even after setting Debug level to 5. I'd really appreciate the help. Thanks! Thanks, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: From bgiv at gmx.de Sat Jun 21 08:13:41 2014 From: bgiv at gmx.de (Wolfgang Lahr) Date: Sat, 21 Jun 2014 17:13:41 +0200 Subject: [mapserver-users] MApserver and geoJSON via URL Message-ID: <1449219440.20140621171341@gmx.de> Hello list, I am having a hard time displaying geoJSON from an URL in Mapserver (v5.6.5 and v6.0.3) on Windows. The URL is working in QGIS, OpenLayers, and ogrinfo. However, Mapserver will crash. The respective section of the mapfile looks like: CONNECTIONTYPE OGR CONNECTION "http://servername/c3agc-REST/geojson?format=geojson&cadaster_num=KAT_18" #CONNECTION "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json" DATA "select * from OGRGeoJSON" Testing with shp2img, in 5.6.5 the error comes from libcurl (as seen in the events log) and nothing gets read. In 6.0.3 the queried features are read, but not displayed and the error comes from inside libmap.dll. Mapserver debug log doesn't show anything. With CONFIG "CPL_DEBUG" "ON", I get with shp2img: HTTP: Fetch(http://servername/c3agc-REST/geojson?format=geojson&cadaster_num=KAT_18) HTTP: These HTTP headers were set: Accept: text/plain Accept: application/json OGR: OGROpen(http://servername/c3agc-REST/geojson?format=geojson&cadaster_num=KAT_18/02260FC8) succeeded as GeoJSON. GenSQL: 1 features read on layer 'OGRGeoJSON'. And, it's the same with an ESRI-Ressource (an example from the ogr geoJSON format description): CONNECTION "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json" A connection to a geoJSON file like: CONNECTION '/pathToGeoJSON/map/geoJSON.geojson' will work fine. Any idea how to fix this? tia wollah From dowi84 at gmail.com Sun Jun 22 13:49:32 2014 From: dowi84 at gmail.com (Do Wi) Date: Sun, 22 Jun 2014 23:49:32 +0300 Subject: [mapserver-users] color attribute question Message-ID: hi! i have this scenario: i have a column in my postgis table which contains a double representing a percentage. i want to color my polygons in a gradient fashion based on that number. the docs states three ways to specify color: 1. three [1-255] numbers 2. hex string 3. [attribute] but the attribute must be a string by itself in the same format as options 1 or 2. how can i achieve something like COLOR [percentage]*255 0 0 or COLOR [percentage] 0 0 if percentageis already 0..255 for a red gradient for example? thanks allot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 23 07:59:36 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 23 Jun 2014 14:59:36 +0000 Subject: [mapserver-users] color attribute question In-Reply-To: References: Message-ID: You can compute a color string using PostgreSQL string functions: SELECT percentage || ? 0 0? AS color FROM ? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Do Wi Sent: Sunday, June 22, 2014 3:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] color attribute question hi! i have this scenario: i have a column in my postgis table which contains a double representing a percentage. i want to color my polygons in a gradient fashion based on that number. the docs states three ways to specify color: 1. three [1-255] numbers 2. hex string 3. [attribute] but the attribute must be a string by itself in the same format as options 1 or 2. how can i achieve something like COLOR [percentage]*255 0 0 or COLOR [percentage] 0 0 if percentageis already 0..255 for a red gradient for example? thanks allot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Mon Jun 23 08:13:29 2014 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 23 Jun 2014 08:13:29 -0700 Subject: [mapserver-users] color attribute question In-Reply-To: References: Message-ID: <1403536409.89300.YahooMailNeo@web163804.mail.gq1.yahoo.com> Do, If you want to do this without using mapscript, you can pull the gradient calculation as an attribute from your data table. ALTER TABLE mytable ADD COLUMN gradient_color VARCHAR; UPTATE mytable SET gradient_color = floor(gradient * 255)::text || ' 0 0'; Cheers ?Mtro. Carlos Ruiz On Monday, June 23, 2014 4:59 PM, "Lime, Steve D (MNIT)" wrote: You can compute a color string using PostgreSQL string functions: ? ? SELECT percentage || ? 0 0? AS color FROM ? ? Steve ? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Do Wi Sent: Sunday, June 22, 2014 3:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] color attribute question ? hi! ? i have this scenario: i have a column in my postgis table which contains a double representing a percentage. ? i want to color my polygons in a gradient fashion based on that number. ? the docs states three ways to specify color: 1. three [1-255] numbers 2. hex string 3. [attribute] ? but the attribute must be a string by itself in the same format as options 1 or 2. ? how can i achieve something like? ? COLOR [percentage]*255 0 0 or COLOR [percentage] 0 0 if percentageis already 0..255 ? for a red gradient for example?? ? thanks allot! _______________________________________________ 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 m.touhami at topnet.tn Mon Jun 23 08:24:06 2014 From: m.touhami at topnet.tn (Mohamed Meher TOUHAMI) Date: Mon, 23 Jun 2014 16:24:06 +0100 Subject: [mapserver-users] shapeObj classIndex Message-ID: <001c01cf8ef7$2be94d50$83bbe7f0$@topnet.tn> Hi Steve, I am using the java SWIG api. Layer=new layerObj(map); layer.setStatus(MapServerConstants.MS_ON); layer.setType(MS_LAYER_TYPE.MS_LAYER_POLYGON); layer.setConnectiontype(MS_CONNECTION_TYPE.MS_INLINE); shapeObj shape = GeometryProxy.createObjGeometry(g.getGeometry());// creating the shapeObj Object classObj co = SymbolProxy.createFillSymbol(map, g.getSymbol());// creating the classObj Object shape.setClassindex(layer.insertClass(co, -1)); layer.addFeature(shape); I found out another method using attributes Layer=new layerObj(map); layer.setStatus(MapServerConstants.MS_ON); layer.setProcessing(?ITEMS=index?); layer.setClassItem(?index?); layer.setType(MS_LAYER_TYPE.MS_LAYER_POLYGON); layer.setConnectiontype(MS_CONNECTION_TYPE.MS_INLINE); shapeObj shape = GeometryProxy.createObjGeometry(g.getGeometry());// creating the shapeObj Object classObj co = SymbolProxy.createFillSymbol(map, g.getSymbol());// creating the classObj Object shape.initValues(1); index=layer.insertClass(co, -1); layer.getClass(index).setExpression(Integer.toString(index)); shape.setValue(0, Integer.toString(index) ); layer.addFeature(shape); I add more data but I do not think performances will much suffer I wonder if there is a better solution. Meher -------------- next part -------------- An HTML attachment was scrubbed... URL: From v.hirankitti at gmail.com Mon Jun 23 08:35:53 2014 From: v.hirankitti at gmail.com (Visit Hirankitti) Date: Mon, 23 Jun 2014 22:35:53 +0700 Subject: [mapserver-users] Enhancing MapServer performance with GPUs In-Reply-To: References: <201406152357.26642.even.rouault@mines-paris.org> Message-ID: Many thanks for your advices, I made a survey on a graphic card for a Dell server, such as NVIDIA Tesla K4, the price is so high, something like $6,700, so I have to evaluate whether I worth the money. Is the OpenGL included and used by MapServer as a default or we need to compile it ourselves in order to use it? If that is the case, how can we do that? Visit On Tue, Jun 17, 2014 at 5:50 AM, Adam Eskreis wrote: > It's been a while since I've looked at the Mapserver code, but if I'm not > mistaken it uses the fixed function pipeline for OpenGL which isn't going > to be able to take advantage of all of those wonderful shader cores very > well. If you wrote your own renderer using OpenGL 4.0+, you might be able > to get a substantial boost in rendering performance, but as Paul said, > rendering may not be your bottleneck. You should ensure that it is before > spending a lot of money on GPU servers. Also something to keep in mind, > when you render with OpenGL you must convert all of your polygons into > triangle meshes, which can be an extremely costly operation, especially for > concave polygons that contain holes, which are quite common in GIS data. > > > On Mon, Jun 16, 2014 at 5:42 PM, Paul Ramsey > wrote: > >> Non-trivial places time can be spent: >> >> - CGI startup (if you aren't using FastCGI) >> - reading layers (if you have a lot of them! it's only a ms or two per >> layer, but if you have 100 layers...) >> - reading data >> - rendering data >> - compressing output images (more than you'd expect) >> >> I'd expect GPU assisted rendering to be a win only for a narrow >> minority of cases, it's not a predominant time sink as often as one >> would expect. Plus for all the speed once you have the GPU chain set >> up, the setting up of the GPU can be costly, and for a CGI program >> like MapServer, that's a big deal. >> >> P >> >> >> On Sun, Jun 15, 2014 at 2:57 PM, Even Rouault >> wrote: >> > Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : >> >> Dear list memers, >> >> >> >> My name is Visit, a newbie of this forum. I have been using MapServer >> for >> >> at least 4 years now on many research projects. It has served my >> research >> >> projects quite well. >> >> >> >> Recently I am using MapServer to develop a real-world enterprise web >> >> application. >> >> I am developing a web-based GIS application using MapServer to serve >> >> thousands of users, and one of overheads of the system is on the map >> >> rendering provided by MapServer. >> >> >> >> At the moment the server I use to run MapServer doesn't have a graphic >> card >> >> (i.e. GPUs), but I wonder if I really want high performance of >> >> map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped >> with >> >> the server enhance MapServer's map rendering speed and hence improve >> its >> >> map service speed? >> >> >> >> As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA >> platform, >> >> and each core can compute and draw polygons in parallel, so I think >> this >> >> can improve the speed of map rendering (if used with MapServer) >> >> substantially. Do I understand this correctly? >> > >> > You'll have to profile where the time is exactly spent in MapServer. If >> it is >> > in pulling data from sources, or in the rendering part itself. There's a >> > OpenGL backend available in recent MapServer versions that could >> potentially >> > speed up rendering, but it is likely a bit experimental and might need >> more >> > work. >> > >> >> >> >> Thanks for your advice in advance, >> >> >> >> Visit Hirankitti Ph.D. >> >> >> >> Intelligent Communication and Transportation Lab >> >> King Mongkut's Institute of Technology Ladkrabang >> >> Thailand >> > >> > -- >> > Geospatial professional services >> > http://even.rouault.free.fr/services.html >> > _______________________________________________ >> > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Mon Jun 23 10:57:25 2014 From: aeskreis at gmail.com (Adam Eskreis) Date: Mon, 23 Jun 2014 13:57:25 -0400 Subject: [mapserver-users] Enhancing MapServer performance with GPUs In-Reply-To: References: <201406152357.26642.even.rouault@mines-paris.org> Message-ID: Mapserver does include an OpenGL renderer, but it isn't optimized for modern graphics hardware, so it would be unlikely to provide any improvement over the AGG renderer. You would likely find yourself writing the OpenGL renderer from scratch to support OpenGL 4.x, in order to take advantage of modern shader cores. It would be a huge undertaking, and the tessellation step may negate any performance benefits you may have received from using the GPU. If you don't mind me asking, why is caching an unacceptable solution? Mapserver isn't intended to be run in production on a large scale. Mapserver is a tool for generating images from GIS data, but any production map application does offline caching, and then serves up cached map tiles to a user. If you have components of your map that change in real time, perhaps mapserver is not the correct solution for those components. What is the nature of your application, and what sort of data are you serving up? Also, what platforms are you looking to support? Web? Mobile phones? Tablets? Some more information could go a long way to helping you find an ideal solution. On Mon, Jun 23, 2014 at 11:35 AM, Visit Hirankitti wrote: > > Many thanks for your advices, I made a survey on a graphic card for a Dell > server, such as NVIDIA Tesla K4, the price is so high, something like > $6,700, so I have to evaluate whether I worth the money. > > Is the OpenGL included and used by MapServer as a default or we need to > compile it ourselves in order to use it? If that is the case, how can we do > that? > > Visit > > On Tue, Jun 17, 2014 at 5:50 AM, Adam Eskreis wrote: > >> It's been a while since I've looked at the Mapserver code, but if I'm not >> mistaken it uses the fixed function pipeline for OpenGL which isn't going >> to be able to take advantage of all of those wonderful shader cores very >> well. If you wrote your own renderer using OpenGL 4.0+, you might be able >> to get a substantial boost in rendering performance, but as Paul said, >> rendering may not be your bottleneck. You should ensure that it is before >> spending a lot of money on GPU servers. Also something to keep in mind, >> when you render with OpenGL you must convert all of your polygons into >> triangle meshes, which can be an extremely costly operation, especially for >> concave polygons that contain holes, which are quite common in GIS data. >> >> >> On Mon, Jun 16, 2014 at 5:42 PM, Paul Ramsey >> wrote: >> >>> Non-trivial places time can be spent: >>> >>> - CGI startup (if you aren't using FastCGI) >>> - reading layers (if you have a lot of them! it's only a ms or two per >>> layer, but if you have 100 layers...) >>> - reading data >>> - rendering data >>> - compressing output images (more than you'd expect) >>> >>> I'd expect GPU assisted rendering to be a win only for a narrow >>> minority of cases, it's not a predominant time sink as often as one >>> would expect. Plus for all the speed once you have the GPU chain set >>> up, the setting up of the GPU can be costly, and for a CGI program >>> like MapServer, that's a big deal. >>> >>> P >>> >>> >>> On Sun, Jun 15, 2014 at 2:57 PM, Even Rouault >>> wrote: >>> > Le dimanche 15 juin 2014 23:50:05, Visit Hirankitti a ?crit : >>> >> Dear list memers, >>> >> >>> >> My name is Visit, a newbie of this forum. I have been using MapServer >>> for >>> >> at least 4 years now on many research projects. It has served my >>> research >>> >> projects quite well. >>> >> >>> >> Recently I am using MapServer to develop a real-world enterprise web >>> >> application. >>> >> I am developing a web-based GIS application using MapServer to serve >>> >> thousands of users, and one of overheads of the system is on the map >>> >> rendering provided by MapServer. >>> >> >>> >> At the moment the server I use to run MapServer doesn't have a >>> graphic card >>> >> (i.e. GPUs), but I wonder if I really want high performance of >>> >> map-rendering from MapServer, can a graphic card (i.e. GPUs) equipped >>> with >>> >> the server enhance MapServer's map rendering speed and hence improve >>> its >>> >> map service speed? >>> >> >>> >> As a graphic card contains hundreds of GPU cores, e.g. NVDIA CUDA >>> platform, >>> >> and each core can compute and draw polygons in parallel, so I think >>> this >>> >> can improve the speed of map rendering (if used with MapServer) >>> >> substantially. Do I understand this correctly? >>> > >>> > You'll have to profile where the time is exactly spent in MapServer. >>> If it is >>> > in pulling data from sources, or in the rendering part itself. There's >>> a >>> > OpenGL backend available in recent MapServer versions that could >>> potentially >>> > speed up rendering, but it is likely a bit experimental and might need >>> more >>> > work. >>> > >>> >> >>> >> Thanks for your advice in advance, >>> >> >>> >> Visit Hirankitti Ph.D. >>> >> >>> >> Intelligent Communication and Transportation Lab >>> >> King Mongkut's Institute of Technology Ladkrabang >>> >> Thailand >>> > >>> > -- >>> > Geospatial professional services >>> > http://even.rouault.free.fr/services.html >>> > _______________________________________________ >>> > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dowi84 at gmail.com Mon Jun 23 12:51:36 2014 From: dowi84 at gmail.com (Do Wi) Date: Mon, 23 Jun 2014 22:51:36 +0300 Subject: [mapserver-users] color attribute question In-Reply-To: References: Message-ID: Hi, and thanks! another user here wrote me about it - see below and it did work, so thanks!! as i said to him, the 'only' problem with it is that the color is fixed at the db level and cannot be changed later if for example the user chooses a blue gradient Cristiano also said it can be done with functions and i will check that road again, thanks! On Mon, Jun 23, 2014 at 3:29 PM, Cristiano Sumariva wrote: > Hum, mapserver has some builtin functions available: > http://mapserver.org/mapfile/expressions.html#functions-that-return-a-string > > But you using data stored at a database. I would prefer the "db" way since > it has been created to do this stuff very fast. > Write a "formatter" function that would change the appearance of your > data( or raw ) to a format that fits to mapserver.color. > With this, you do not change the data but adapt it to mapserver usage. > > Well, I do not known what to say about functions, this is database > specific in this case. > A simple function in postgis database would be something like this: > > CREATE OR REPLACE FUNCTION ms_colorMath( percentage double precision ) > RETURNS varchar > LANGUAGE sql > AS > $$ > SELECT percentage || ' 0 0'; > $$ > ; > COMMENT ON FUNCTION ms_colorMath( double precision ) IS > 'Compute a mapserver color based on a percentage value > @param percentage double precision the percentage value > @return varchar > @version 2014-06-23'; > > At mapfile, you would need to change the data attribute to use a database > subquery: > > data ' geom FROM ( SELECT *, ms_colorMath( ) AS ms_attribute > FROM ) USING UNIQUE gid SRID=' > > and replace the color attribute in mapfile to . > > A simpler way would be put this inside a database view and just change the > tablename in mapfile, more transparent at mapfile level. > The function can be reused for several layers stored on postgis. > > Preprocessing is useful when functions calculations becomes large to > execute. > To this you would need to change or complement data in some way with the > preprocessed data. > It is similar to stuff above but with additional commands on the database > to resolve when or how the preprocessing would be done. > > Hope it helps. > > 2014-06-23 5:01 GMT-03:00 Do Wi : > > Hi, and thank you! >> not a db guy :) but i learnt now about string concatenation and by using >> [my calculated num] || ' 0 0' it works (even though i would prefer the data >> to remain data and not set the look of things) >> >> can you please elaborate on the functions? when/how would i call it - in >> the mapfile data somehow? preprocessing? >> >> again, thanks! >> >> >> >> >> On Mon, Jun 23, 2014 at 6:24 AM, Cristiano Sumariva >> wrote: >> >>> Just create an expression in SQL that returns the string in a way that >>> maps to case one or two. >>> You can alternatively implement a function that returns the type varchar >>> with the math required. >>> >>> Never did this to colors but should work. >>> >> On Mon, Jun 23, 2014 at 5:59 PM, Lime, Steve D (MNIT) < Steve.Lime at state.mn.us> wrote: > You can compute a color string using PostgreSQL string functions: > > > > SELECT percentage || ? 0 0? AS color FROM ? > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Do Wi > *Sent:* Sunday, June 22, 2014 3:50 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] color attribute question > > > > hi! > > > > i have this scenario: > > i have a column in my postgis table which contains a double representing a > percentage. > > > > i want to color my polygons in a gradient fashion based on that number. > > > > the docs states three ways to specify color: > > 1. three [1-255] numbers > > 2. hex string > > 3. [attribute] > > > > but the attribute must be a string by itself in the same format as options > 1 or 2. > > > > how can i achieve something like > > > > COLOR [percentage]*255 0 0 > > or > > COLOR [percentage] 0 0 > > if percentageis already 0..255 > > > > for a red gradient for example? > > > > thanks allot! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishna.patury at gmail.com Mon Jun 23 13:21:26 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Mon, 23 Jun 2014 16:21:26 -0400 Subject: [mapserver-users] PostGIS Connection Failure Message-ID: Hi There, I'm getting the below error when I try to access an application uisng PostGis. Both the Postgres database and the mapserver installation are on the same CentosOS 64 bit VM. msPostGISLayerOpen(): Query error. Database connection failed(could not connect to server: Permission denied Is the server running on "localhost"(::1) and accepting TCP/IP connections on port 5432). I know my application works as the same application is working just fine on a different installation. On this installation I can connection to the database using the same parameters using PSQL and I can generate the image just fine using the shp2imp or the running the mapserver directly using QUERY_STRING as below. shp2img -m mapfile -all_debug 5 ./mapserver QUERY_STRING='map=xxx etc' Apache is running under the apache user, and Postgres as postgres but I can run the above commands as an apache user and still runs fine. I am not quite sure at this point why I cannot connect using the application. I checked to make sure there are no firewalls enabled. Below is my pg_bha.conf file entries: local all all trust host all 0.0.0.0/0 trust In the postgresql.conf file, listen_addresses is set to all: listen_addresses='*' Any advice would be appreciated. Thanks, Krishna. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Mon Jun 23 13:27:13 2014 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 23 Jun 2014 13:27:13 -0700 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: References: Message-ID: Centos frequently installs with the firewall enabled. That would block connections even if you've turned on network connect in postgresql.conf P On Mon, Jun 23, 2014 at 1:21 PM, Krishna Priya Patury wrote: > Hi There, > > I'm getting the below error when I try to access an application uisng > PostGis. Both the Postgres database and the mapserver installation are on > the same CentosOS 64 bit VM. > > msPostGISLayerOpen(): Query error. Database connection failed(could not > connect to server: Permission denied Is the server running on > "localhost"(::1) and accepting TCP/IP connections on port 5432). > > > I know my application works as the same application is working just fine on > a different installation. On this installation I can connection to the > database using the same parameters using PSQL and I can generate the image > just fine using the shp2imp or the running the mapserver directly using > QUERY_STRING as below. > > shp2img -m mapfile -all_debug 5 > ./mapserver QUERY_STRING='map=xxx etc' > > Apache is running under the apache user, and Postgres as postgres but I can > run the above commands as an apache user and still runs fine. > > I am not quite sure at this point why I cannot connect using the > application. I checked to make sure there are no firewalls enabled. > > Below is my pg_bha.conf file entries: > > local all all trust > host all 0.0.0.0/0 trust > > In the postgresql.conf file, listen_addresses is set to all: > listen_addresses='*' > > Any advice would be appreciated. > > Thanks, > Krishna. > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jonathanknez at hotmail.com Mon Jun 23 16:02:15 2014 From: jonathanknez at hotmail.com (jonathanknez) Date: Mon, 23 Jun 2014 16:02:15 -0700 (PDT) Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client Message-ID: <1403564535800-5147433.post@n6.nabble.com> I am looking for help getting the Extents set correctly in my map file and getting my World Wind WMS client working correctly with MapServer. I have been using NASA's World Wind Java SDK for a while now and finally decided to run my own map server to provide access to shape files. I am brand new to map servers. I started with MapServer. It is up and running on a CentOS virtual machine. I downloaded a shape file for Houston TX from OpenStreetMap as a starting point for my data set. http://metro.teczno.com/#houston I followed the examples as best I could to setup my "map" file for use with MapServer. I used ogrinfo to get the extents of the Houston shape file: "ogrinfo -al -so /path-to-shape-file/houston.shp". It returned: Extent: (-10720217.000000, 3306038.000000) - (-10419354.000000, 3606902.000000) This is clearly not decimal degrees. This must be meters right? I put that Extent in my map file. When I point WorldWind (via the WMSLayerManager example) to my WMS URL, it correctly gets the layer names however when I select one to add to the display, it spits out an error, "SEVERE: Angle out of range -1.04194E7?". Clearly it is trying to use the Extent as a decimal degree. *Any thoughts on how I fix this? I will include my map file and get capabilities response at the end of this email.* Now if I change my map file to use the extents, "-180 -90 180 90" (which is clearly not correct but a good test), World Wind no longer complains about a bad angle. Instead it provides error messages that must be from MapServer: msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. So my question is two fold: 1) How do I get the decimal degree extents that World Wind appears to be expecting? 2) What does that msLoadMap error message mean and how do I correct it? Thanks. =================== houston.map =============================== MAP NAME houston STATUS ON SIZE 800 600 EXTENT -10720217.000000 3306038.000000 -10419354.000000 3606902.000000 UNITS METERS SHAPEPATH "shapefiles/houston" IMAGETYPE PNG24 PROJECTION "init=epsg:4326" END WEB METADATA wms_title "Houston Title Web" wms_enable_request "*" "wms_onlineresource" "http://10.0.0.141/cgi-bin/mapserver?map=/var/www/html/houston.map?" wms_srs "epsg:4326" END END LAYER NAME "Houston_Border" DATA houston STATUS ON TYPE POLYGON CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title "Houston Title Layer" wms_extent "-10720217.000000 3306038.000000 -10419354.000000 3606902.000000" END PROJECTION "init=epsg:4326" END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Valid-extents-for-shape-file-World-Wind-WMS-Client-tp5147433.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Weisbend at WAPA.GOV Tue Jun 24 06:10:09 2014 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Tue, 24 Jun 2014 13:10:09 +0000 Subject: [mapserver-users] FEATUREQUERY with SLAYER Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F081E432BDF@afovsml1m.WAPA.INT> Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishna.patury at gmail.com Tue Jun 24 06:30:44 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Tue, 24 Jun 2014 09:30:44 -0400 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> References: <5F8DEB13-855E-49C0-8293-4C1CC055B14A@gmail.com> <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> Message-ID: Hi All, Any other ideas? The map server application installed outside of my Centos VM can connect to the Postgres database on the VM. I can also connect to the database both from within and outside the VM using psql. I believe the Mapserver installation on my VM is fine too as my shp2img and running the mapserver through command line work just fine. The issue is only when I try to connect to the database through the application from my VM. I do not see anything additional in the logs. I can see that the database logs are not updated when I hit it though the application within the VM, understandably so with the error message in the browser. The only difference between running shp2img and the application is perhaps the user? I was able to open a succesful connection through psql as an 'apache' user as well(User which is running the Apache server). So am not sure what is missing. Thanks, Krishna. On Mon, Jun 23, 2014 at 5:24 PM, Krishna wrote: > Yes I can connect to Postgres using the same connection information > through psql both from within and outside my vm. > > Sent from my iPhone > > > On Jun 23, 2014, at 5:20 PM, Paul Ramsey > wrote: > > > > Did you restart your postgresql after making the changes to pg_hba and > postgresql.conf? Can you telnet to port 5432? Can you connect with psql? > Just ignore mapserver for now, you have a connection issue. > > > > P. > > > > > > -- > > http://postgis.net > > http://cleverelephant.ca > > > > > > On June 23, 2014 at 2:17:19 PM, Krishna (krishna.patury at gmail.com) > wrote: > >>> As I mentioned I have disabled the firewall. Or so I think. When > >> I login as 'root' and click firewall it says disabled. Any way > >> I can confirm/ test this? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishna.patury at gmail.com Tue Jun 24 06:35:39 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Tue, 24 Jun 2014 09:35:39 -0400 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: References: <5F8DEB13-855E-49C0-8293-4C1CC055B14A@gmail.com> <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> Message-ID: Just wanted to add, when I do a service iptables status, it is says Firewall is not running. On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury < krishna.patury at gmail.com> wrote: > Hi All, > > Any other ideas? > > The map server application installed outside of my Centos VM can connect > to the Postgres database on the VM. I can also connect to the database both > from within and outside the VM using psql. > > I believe the Mapserver installation on my VM is fine too as my shp2img > and running the mapserver through command line work just fine. The issue is > only when I try to connect to the database through the application from my > VM. > I do not see anything additional in the logs. I can see that the database > logs are not updated when I hit it though the application within the VM, > understandably so with the error message in the browser. > > The only difference between running shp2img and the application is perhaps > the user? I was able to open a succesful connection through psql as an > 'apache' user as well(User which is running the Apache server). So am not > sure what is missing. > > Thanks, > Krishna. > > > > On Mon, Jun 23, 2014 at 5:24 PM, Krishna wrote: > >> Yes I can connect to Postgres using the same connection information >> through psql both from within and outside my vm. >> >> Sent from my iPhone >> >> > On Jun 23, 2014, at 5:20 PM, Paul Ramsey >> wrote: >> > >> > Did you restart your postgresql after making the changes to pg_hba and >> postgresql.conf? Can you telnet to port 5432? Can you connect with psql? >> Just ignore mapserver for now, you have a connection issue. >> > >> > P. >> > >> > >> > -- >> > http://postgis.net >> > http://cleverelephant.ca >> > >> > >> > On June 23, 2014 at 2:17:19 PM, Krishna (krishna.patury at gmail.com) >> wrote: >> >>> As I mentioned I have disabled the firewall. Or so I think. When >> >> I login as 'root' and click firewall it says disabled. Any way >> >> I can confirm/ test this? >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Tue Jun 24 07:23:20 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Tue, 24 Jun 2014 15:23:20 +0100 Subject: [mapserver-users] htdocs settings and mapfile status Message-ID: <1403619800.29885.YahooMailNeo@web171802.mail.ir2.yahoo.com> Hi list. ?I have two questions that are confusing me a little bit. First of all I am keeping all my HTML template files /usr/local/apache2/htdocs. ?This folder has read-only permission settings by default so every time I want to edit/create a template I use nano or pico through terminal with root privileges. So, would it be wise (would it be secure?) to make htdocs folder have read/write permission and if not what other way is there so I can edit/make template files easily?? Another question is that when I make my mapfile and set STATUS to default everything works fine. But when it's set to on I get a blank page (needless to mention about STATUS off). That's not normal right? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue Jun 24 07:29:16 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 24 Jun 2014 14:29:16 +0000 Subject: [mapserver-users] htdocs settings and mapfile status References: <1403619800.29885.YahooMailNeo@web171802.mail.ir2.yahoo.com> Message-ID: On 6/24/14 9:24 AM, Stefanos Anastasiou wrote: Hi list. I have two questions that are confusing me a little bit. First of all I am keeping all my HTML template files /usr/local/apache2/htdocs. This folder has read-only permission settings by default so every time I want to edit/create a template I use nano or pico through terminal with root privileges. So, would it be wise (would it be secure?) to make htdocs folder have read/write permission and if not what other way is there so I can edit/make template files easily? You don't need to keep your templates (or mapfiles) in the htdocs folder. Another question is that when I make my mapfile and set STATUS to default everything works fine. But when it's set to on I get a blank page (needless to mention about STATUS off). That's not normal right? That is normal, believe it or not. DEFAULT means the layer is on all the time. ON means the layer is accessible all the time. the difference is that with the ON value, you need to include a "layers= From Steve.Lime at state.mn.us Tue Jun 24 07:37:49 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 24 Jun 2014 14:37:49 +0000 Subject: [mapserver-users] FEATUREQUERY with SLAYER In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F081E432BDF@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F081E432BDF@afovsml1m.WAPA.INT> Message-ID: I've used it successfully in a number of places, here's one example: http://deli.dnr.state.mn.us/data_search.html The search by county option uses mode=featurenquery. I can provide more detail if you need it since much of the configuration (and there's not much to it) is in the mapfile. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Tuesday, June 24, 2014 8:10 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FEATUREQUERY with SLAYER Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Kalbermatten at ne.ch Tue Jun 24 08:02:20 2014 From: Michael.Kalbermatten at ne.ch (=?iso-8859-1?Q?Kalbermatten_Micha=EBl?=) Date: Tue, 24 Jun 2014 15:02:20 +0000 Subject: [mapserver-users] SIZEUNITS set to meters Message-ID: Hi list, I'm trying to render a road given a certain width in meters. To achieve that, I did use SIZEUNITS METERS in the LAYER definition. I'm using this layer via WMS in QGIS. At small scales (1:10'000), this is working great, the roads is well-sized regarding its real width, but as soon as I zoom in and have a larger scale then approximately 1:5'000, then this is not working anymore and the line width stays constant the more I zoom in. I'm using MapServer 6.0.3. I did partially copy the mapfile content hereunder. I think that I tried almost every possible parameter combination (like using MINSIZE, MAXSIZE, MINWIDTH, and so on), but nothing seems to work... Did anyone ever encounter that issue ? Am I doing sometime wrong ? Best regards Michael MAP NAME "... " DEFRESOLUTION 96 EXTENT 400000 100000 800000 300000 IMAGETYPE "png" MAXSIZE 5120 RESOLUTION 96 STATUS ON TRANSPARENT TRUE UNITS METERS LAYER NAME "...." TYPE LINE METADATA "wms_srs" "EPSG:21781" "wms_title" "...." END STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "...." PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom from .... using unique idobj using srid=21781" TEMPLATE "foo" PROJECTION "init=epsg:21781" END CLASSITEM "objektart" SIZEUNITS METERS UNITS METERS SYMBOLSCALEDENOM 1000 CLASS NAME "Road" EXPRESSION "Road" STYLE COLOR 255 0 0 WIDTH 40 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Tue Jun 24 08:11:52 2014 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Tue, 24 Jun 2014 15:11:52 +0000 Subject: [mapserver-users] FEATUREQUERY with SLAYER In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F081E432BDF@afovsml1m.WAPA.INT> Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F081E432D93@afovsml1m.WAPA.INT> Thanks Steve, I think a look at the mapfile would be helpful. Here is my scenario... I have a file with multiple linear features in it. I would like to type in a line name and return all the polygons that intersect that line. I think I'm close but I just need to understand better how slayer works. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration (720) 962-7280 weisbend at wapa.gov From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: 2014, June, 24 8:38 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: FEATUREQUERY with SLAYER I've used it successfully in a number of places, here's one example: http://deli.dnr.state.mn.us/data_search.html The search by county option uses mode=featurenquery. I can provide more detail if you need it since much of the configuration (and there's not much to it) is in the mapfile. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Tuesday, June 24, 2014 8:10 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FEATUREQUERY with SLAYER Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jun 24 08:23:34 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 24 Jun 2014 15:23:34 +0000 Subject: [mapserver-users] FEATUREQUERY with SLAYER In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F081E432D93@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F081E432BDF@afovsml1m.WAPA.INT> <9FE7B20682D2EE4CB9F40163E1EB4F081E432D93@afovsml1m.WAPA.INT> Message-ID: So you'll be doing a mode=itemfeaturenquery or itemfeaturequery. The difference is in the number of features the initial attribute query can match n or 1. The mapfile won't help much. The only trick here is getting the line layer setup correctly for attribute queries. Basically, besides being queryable in the first place (e.g. set TEMPLATE), all that means is that you need to set a validation pattern for the qstring parameter so that you can validate what users enter. >From there the URLs will be of the form: /cgi-bin/mapserv?map=your.map&slayer=lines&qitem=item&qstring=string&qlayer=polygons&mode=itemfeaturenquery You can query multiple layers using the slayer, just don't use qlayer in that case and the query will run against all queryable layers you have ON or have status=DEFAULT. Steve From: Weisbender, Eric [mailto:Weisbend at WAPA.GOV] Sent: Tuesday, June 24, 2014 10:12 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: FEATUREQUERY with SLAYER Thanks Steve, I think a look at the mapfile would be helpful. Here is my scenario... I have a file with multiple linear features in it. I would like to type in a line name and return all the polygons that intersect that line. I think I'm close but I just need to understand better how slayer works. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration (720) 962-7280 weisbend at wapa.gov From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: 2014, June, 24 8:38 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: FEATUREQUERY with SLAYER I've used it successfully in a number of places, here's one example: http://deli.dnr.state.mn.us/data_search.html The search by county option uses mode=featurenquery. I can provide more detail if you need it since much of the configuration (and there's not much to it) is in the mapfile. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Tuesday, June 24, 2014 8:10 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FEATUREQUERY with SLAYER Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jun 24 08:49:26 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 24 Jun 2014 15:49:26 +0000 Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client In-Reply-To: <1403564535800-5147433.post@n6.nabble.com> References: <1403564535800-5147433.post@n6.nabble.com> Message-ID: Hi Jonathan: Looking at the Houston zip file one sees the .prj file references Google Mercator. So that's what you need to define for your layer. Here's the new mapfile... You don't need to mention anything about geographic coordinates here other than the fact you support requests in that srs. The second message means you must have set the environment variable MS_DEFAULT_MAPFILE_PATTERN in your web server configuration and that the mapfile being passed as part of the incoming request doesn't pass that validation check. The problem may be in your wms_onlineresource where you have an extra trailing ? in the URL. MAP NAME houston STATUS ON SIZE 800 600 EXTENT -10720217.000000 3306038.000000 -10419354.000000 3606902.000000 # this is OK UNITS METERS SHAPEPATH "shapefiles/houston" IMAGETYPE PNG24 PROJECTION "init=epsg:900913" END WEB METADATA wms_title "Houston Title Web" wms_enable_request "*" "wms_onlineresource" "http://10.0.0.141/cgi-bin/mapserver?map=/var/www/html/houston.map?" wms_srs "epsg:900913 epsg:4326" END END LAYER NAME "Houston_Border" DATA houston STATUS ON TYPE POLYGON CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title "Houston Title Layer" wms_extent "-10720217.000000 3306038.000000 -10419354.000000 3606902.000000" END PROJECTION "init=epsg:900913" END END END Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jonathanknez Sent: Monday, June 23, 2014 6:02 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client I am looking for help getting the Extents set correctly in my map file and getting my World Wind WMS client working correctly with MapServer. I have been using NASA's World Wind Java SDK for a while now and finally decided to run my own map server to provide access to shape files. I am brand new to map servers. I started with MapServer. It is up and running on a CentOS virtual machine. I downloaded a shape file for Houston TX from OpenStreetMap as a starting point for my data set. http://metro.teczno.com/#houston I followed the examples as best I could to setup my "map" file for use with MapServer. I used ogrinfo to get the extents of the Houston shape file: "ogrinfo -al -so /path-to-shape-file/houston.shp". It returned: Extent: (-10720217.000000, 3306038.000000) - (-10419354.000000, 3606902.000000) This is clearly not decimal degrees. This must be meters right? I put that Extent in my map file. When I point WorldWind (via the WMSLayerManager example) to my WMS URL, it correctly gets the layer names however when I select one to add to the display, it spits out an error, "SEVERE: Angle out of range -1.04194E7?". Clearly it is trying to use the Extent as a decimal degree. *Any thoughts on how I fix this? I will include my map file and get capabilities response at the end of this email.* Now if I change my map file to use the extents, "-180 -90 180 90" (which is clearly not correct but a good test), World Wind no longer complains about a bad angle. Instead it provides error messages that must be from MapServer: msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. So my question is two fold: 1) How do I get the decimal degree extents that World Wind appears to be expecting? 2) What does that msLoadMap error message mean and how do I correct it? Thanks. =================== houston.map =============================== MAP NAME houston STATUS ON SIZE 800 600 EXTENT -10720217.000000 3306038.000000 -10419354.000000 3606902.000000 UNITS METERS SHAPEPATH "shapefiles/houston" IMAGETYPE PNG24 PROJECTION "init=epsg:4326" END WEB METADATA wms_title "Houston Title Web" wms_enable_request "*" "wms_onlineresource" "http://10.0.0.141/cgi-bin/mapserver?map=/var/www/html/houston.map?" wms_srs "epsg:4326" END END LAYER NAME "Houston_Border" DATA houston STATUS ON TYPE POLYGON CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title "Houston Title Layer" wms_extent "-10720217.000000 3306038.000000 -10419354.000000 3606902.000000" END PROJECTION "init=epsg:4326" END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Valid-extents-for-shape-file-World-Wind-WMS-Client-tp5147433.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 paul.malm at saabgroup.com Tue Jun 24 22:36:02 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Wed, 25 Jun 2014 05:36:02 +0000 Subject: [mapserver-users] Map data strategy Message-ID: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> Hi, I've just started using Mapserver and have a question, that could help me to cut corners. 1) I have a lot of S57 charts in different scale groups 1-6. 2) It should be simple to maintain the map data (a lot of upgrades). 3) Of course, it should be fast. Strategy of today: I have the original data stored in the original format on ram disk. I have one map file that INCLUDEs all "layer" files (one per chart). The layer files defines the all the interesting chart features (layers) and the max scale. I was thinking that I only shall use max scale, not min scale, because if I don't have a chart with a larger scale a certain position when I zoom in, then I shall at least see a chart. Even if has a to small scale for this zoom. I don't have any spatial restrictions on each layer or layer file, just for the map file -90, -180, 90, 180 (i.e no limits) Is it possible to have spatial limitations on a layer? When I use this strategy the map server chokes then I zoom in too much. I can see that the map configuration could be done in a lot of different ways, How would your strategy be? Kind regards, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at nmbu.no Wed Jun 25 00:57:26 2014 From: havard.tveite at nmbu.no (=?windows-1252?Q?H=E5vard_Tveite?=) Date: Wed, 25 Jun 2014 09:57:26 +0200 Subject: [mapserver-users] SIZEUNITS set to meters In-Reply-To: References: Message-ID: <53AA80E6.3050904@nmbu.no> I have not tested this for sizeunits meters, but for pixels you need to set style MAXWIDTH (or MAXSIZE). H?vard On 2014-06-24 17:02, Kalbermatten Micha?l wrote: > Hi list, > > I'm trying to render a road given a certain width in meters. > > To achieve that, I did use SIZEUNITS METERS in the LAYER definition. > > I'm using this layer via WMS in QGIS. At small scales (1:10'000), this is working great, the roads is well-sized regarding its real width, but as soon as I zoom in and have a larger scale then approximately 1:5'000, then this is not working anymore and the line width stays constant the more I zoom in. > > I'm using MapServer 6.0.3. I did partially copy the mapfile content hereunder. > > I think that I tried almost every possible parameter combination (like using MINSIZE, MAXSIZE, MINWIDTH, and so on), but nothing seems to work? > > Did anyone ever encounter that issue ? Am I doing sometime wrong ? > > Best regards > > Michael > > MAP > > NAME "? " > > DEFRESOLUTION 96 > > EXTENT 400000 100000 800000 300000 > > IMAGETYPE "png" > > MAXSIZE 5120 > > RESOLUTION 96 > > STATUS ON > > TRANSPARENT TRUE > > UNITS METERS > > LAYER > > NAME "?." > > TYPE LINE > > METADATA > > "wms_srs" "EPSG:21781" > > "wms_title" "?." > > END > > STATUS ON > > CONNECTIONTYPE POSTGIS > > CONNECTION "?." > > PROCESSING "CLOSE_CONNECTION=DEFER" > > DATA "geom from ?. using unique idobj using srid=21781" > > TEMPLATE "foo" > > PROJECTION > > "init=epsg:21781" > > END > > CLASSITEM "objektart" > > SIZEUNITS METERS > > UNITS METERS > > SYMBOLSCALEDENOM 1000 > > CLASS > > NAME "Road" > > EXPRESSION "Road" > > STYLE > > COLOR 255 0 0 > > WIDTH 40 > > END > > END > > END > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, NMBU Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ From jonathanknez at hotmail.com Wed Jun 25 06:05:04 2014 From: jonathanknez at hotmail.com (jonathanknez) Date: Wed, 25 Jun 2014 06:05:04 -0700 (PDT) Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client In-Reply-To: References: <1403564535800-5147433.post@n6.nabble.com> Message-ID: <1403701504071-5147873.post@n6.nabble.com> Steve, *Your suggestions worked.* I am now able to use my MapServer to serve a shapefile to my World Wind client. 1. I changed the projection in my map file to 900913. Initially I got a new error that, "msProcessProjection(): no options found in ?init? file". I checked my epsg file in /usr/share/proj/epsg. It did not contain a definition for 900913. I found a definition online. I added it to the end of my epsg file and it cleared up the error. <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs 2. Updated my wms_onlineresource field to replace that incorrect trailing ? with a &. Once those changes were made, it worked. I have one follow on question, *how did you know that epsg:900913 should be used from looking at the shapefile?* Is there a dictionary somewhere that says Google Mercator=900913? Here is my corrected map file per Steve's direction. Thank you for the help. ============= houston.map ==================== MAP NAME houston STATUS ON SIZE 800 600 EXTENT -10720217.000000 3306038.000000 -10419354.000000 3606902.000000 UNITS METERS SHAPEPATH "shapefiles/houston" IMAGETYPE PNG24 PROJECTION "init=epsg:900913" END WEB METADATA wms_title "Houston Title Web" wms_enable_request "*" wms_onlineresource "http://10.0.0.141/cgi-bin/mapserver?map=/var/www/html/houston.map&" wms_srs "epsg:900913 epsg:4326" END END LAYER NAME "Houston_Border" DATA houston STATUS ON TYPE POLYGON CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title "Houston Title Layer" wms_extent "-10720217.000000 3306038.000000 -10419354.000000 3606902.000000" END PROJECTION "init=epsg:900913" END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Valid-extents-for-shape-file-World-Wind-WMS-Client-tp5147433p5147873.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tkirstine at firstbasesolutions.com Wed Jun 25 06:17:53 2014 From: tkirstine at firstbasesolutions.com (Travis Kirstine) Date: Wed, 25 Jun 2014 09:17:53 -0400 Subject: [mapserver-users] MapCache inverted Y values Message-ID: I just configured mapcache using a grid using 512 512 size. Everything seems OK however when I view the resultant tilesets in the demo map viewer they have a inverted Y value, the latitudes are negative values when they should be positive. Do I need to create a custom cache to handle tile sizes other that 256? -20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480 EPSG:3857 EPSG:900913 m 512 512 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 0.29858214173896975 0.149291070869484875 0.0746455354347424375 /opt/mapcache/512_cache 10 default_wms disk gmaps_512 mixed 2 2 10 image/png default true http://wmts2.firstbasesolutions.com/cgi-bin/mapserver_wms_fcgi -- *Travis Kirstine* *First Base Solutions I**nc*. tkirstine at firstbasesolutions.com 140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3 p. 905-477-3600 ext. 301 | m. 647-534-4798 http://www.firstbasesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed Jun 25 06:29:01 2014 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 25 Jun 2014 07:29:01 -0600 Subject: [mapserver-users] Map data strategy In-Reply-To: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> References: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> Message-ID: <53AACE9D.2010807@geoanalytic.com> Paul, Have a read regarding TILEINDEXes (http://mapserver.org/optimization/tileindex.html). It may be useful to have one TILEINDEX (and one layer) per scale group (so a total of 6 layers). The TILEINDEX will provide a spatial limitation [min/max x/y] per file. Best Regards, Brent Fraser On 6/24/2014 11:36 PM, Malm Paul wrote: > > Hi, > > I've just started using Mapserver and have a question, that could help > me to cut corners. > > 1)I have a lot of S57 charts in different scale groups 1-6. > > 2)It should be simple to maintain the map data (a lot of upgrades). > > 3)Of course, it should be fast. > > Strategy of today: > > I have the original data stored in the original format on ram disk. I > have one map file that INCLUDEs all "layer" files (one per chart). > > The layer files defines the all the interesting chart features > (layers) and the max scale. > > I was thinking that I only shall use max scale, not min scale, because > if I don't have a chart with a larger scale a certain position when I > zoom in, then I shall at least see a chart. Even if has a to small > scale for this zoom. I don't have any spatial restrictions on each > layer or layer file, just for the map file -90, -180, 90, 180 (i.e no > limits) > > Is it possible to have spatial limitations on a layer? > > When I use this strategy the map server chokes then I zoom in too much. > > I can see that the map configuration could be done in a lot of > different ways, > > How would your strategy be? > > Kind regards, > > Paul > > > > _______________________________________________ > 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 Steve.Lime at state.mn.us Wed Jun 25 07:00:48 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 25 Jun 2014 14:00:48 +0000 Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client In-Reply-To: <1403701504071-5147873.post@n6.nabble.com> References: <1403564535800-5147433.post@n6.nabble.com> <1403701504071-5147873.post@n6.nabble.com> Message-ID: There was a .prj file in the zip archive you downloaded. That gives you the projection... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jonathanknez Sent: Wednesday, June 25, 2014 8:05 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Valid extents for shape file, World Wind WMS Client Steve, *Your suggestions worked.* I am now able to use my MapServer to serve a shapefile to my World Wind client. 1. I changed the projection in my map file to 900913. Initially I got a new error that, "msProcessProjection(): no options found in ?init? file". I checked my epsg file in /usr/share/proj/epsg. It did not contain a definition for 900913. I found a definition online. I added it to the end of my epsg file and it cleared up the error. <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs 2. Updated my wms_onlineresource field to replace that incorrect trailing ? with a &. Once those changes were made, it worked. I have one follow on question, *how did you know that epsg:900913 should be used from looking at the shapefile?* Is there a dictionary somewhere that says Google Mercator=900913? Here is my corrected map file per Steve's direction. Thank you for the help. ============= houston.map ==================== MAP NAME houston STATUS ON SIZE 800 600 EXTENT -10720217.000000 3306038.000000 -10419354.000000 3606902.000000 UNITS METERS SHAPEPATH "shapefiles/houston" IMAGETYPE PNG24 PROJECTION "init=epsg:900913" END WEB METADATA wms_title "Houston Title Web" wms_enable_request "*" wms_onlineresource "http://10.0.0.141/cgi-bin/mapserver?map=/var/www/html/houston.map&" wms_srs "epsg:900913 epsg:4326" END END LAYER NAME "Houston_Border" DATA houston STATUS ON TYPE POLYGON CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title "Houston Title Layer" wms_extent "-10720217.000000 3306038.000000 -10419354.000000 3606902.000000" END PROJECTION "init=epsg:900913" END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Valid-extents-for-shape-file-World-Wind-WMS-Client-tp5147433p5147873.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 dmorissette at mapgears.com Wed Jun 25 07:05:10 2014 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 25 Jun 2014 10:05:10 -0400 Subject: [mapserver-users] Valid extents for shape file, World Wind WMS Client In-Reply-To: References: <1403564535800-5147433.post@n6.nabble.com> <1403701504071-5147873.post@n6.nabble.com> Message-ID: <53AAD716.5080107@mapgears.com> On 14-06-25 10:00 AM, Lime, Steve D (MNIT) wrote: > There was a .prj file in the zip archive you downloaded. That gives you the projection... > ... and to interpret the contents of the PRJ file then http://spatialreference.org/ may be of some use. -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From bob.basques at ci.stpaul.mn.us Wed Jun 25 07:11:53 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 25 Jun 2014 14:11:53 +0000 Subject: [mapserver-users] PDF output and file naming (.pdf) Message-ID: All, I got the PDF output to work, but the outputted file ends up being output as .map. I'm using CGI (streaming result?) with map.imagetype=pdf, the result is indeed a PDF, but with a .map file name. I tried setting EXTENTION "pdf" and MIMETYPE "application/x-pdf" inside of FORMATOPTION to no effect as far as the file name tag. Do I maybe need to output temporarily to a server location (WEB) for subsequent download? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Wed Jun 25 07:15:48 2014 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 25 Jun 2014 15:15:48 +0100 Subject: [mapserver-users] PDF output and file naming (.pdf) In-Reply-To: References: Message-ID: <000c01cf907f$f67eb8a0$e37c29e0$@dkerr.co.uk> This is what I use (with some notes): # PDF # Required to change MIMETYPE for outputting PDFs as application/x-pdf OUTPUTFORMAT NAME "pdf" DRIVER "CAIRO/PDF" # MIMETYPE "application/x-pdf" # Original MIMETYPE "application/pdf" #MIME type of "application/pdf" for pdfs as "application/x-pdf" not always recognised as pdf by browser IMAGEMODE "RGBA" EXTENSION "PDF" TRANSPARENT ON # Requires RGBA, not RGB otherwise errors. Also requires OFFSITE 255 255 255 in LAYER END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: 25 June 2014 15:12 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PDF output and file naming (.pdf) All, I got the PDF output to work, but the outputted file ends up being output as .map. I'm using CGI (streaming result?) with map.imagetype=pdf, the result is indeed a PDF, but with a .map file name. I tried setting EXTENTION "pdf" and MIMETYPE "application/x-pdf" inside of FORMATOPTION to no effect as far as the file name tag. Do I maybe need to output temporarily to a server location (WEB) for subsequent download? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From humberto at pastoraldacrianca.org.br Wed Jun 25 07:18:02 2014 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Wed, 25 Jun 2014 11:18:02 -0300 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: References: <5F8DEB13-855E-49C0-8293-4C1CC055B14A@gmail.com> <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> Message-ID: <1403705882.3957.19.camel@p224.pastoral.interno> Hi Krishna, On Tue, 2014-06-24 at 09:35 -0400, Krishna Priya Patury wrote: > Just wanted to add, when I do a service iptables status, it is says > Firewall is not running. > > > On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury > wrote: > Hi All, > > Any other ideas? > > The map server application installed outside of my Centos VM > can connect to the Postgres database on the VM. I can also > connect to the database both from within and outside the VM > using psql. > > I believe the Mapserver installation on my VM is fine too as > my shp2img and running the mapserver through command line work > just fine. The issue is only when I try to connect to the > database through the application from my VM. > I do not see anything additional in the logs. I think that the requisition from your application is not achieving your VM. Is the request sent by your application pass through a proxy that blocks the 5432 port or there is a bridge over which the requests flow directly? > I can see that the database logs are not updated when I hit it > though the application within the VM, understandably so with > the error message in the browser. > > The only difference between running shp2img and the > application is perhaps the user? I was able to open a > succesful connection through psql as an 'apache' user as > well(User which is running the Apache server). So am not sure > what is missing. > > Thanks, > Krishna. > Best regards, Humberto Cereser Ibanez > > > On Mon, Jun 23, 2014 at 5:24 PM, Krishna > wrote: > Yes I can connect to Postgres using the same > connection information through psql both from within > and outside my vm. > > Sent from my iPhone > > > On Jun 23, 2014, at 5:20 PM, Paul Ramsey > wrote: > > > > Did you restart your postgresql after making the > changes to pg_hba and postgresql.conf? Can you telnet > to port 5432? Can you connect with psql? Just ignore > mapserver for now, you have a connection issue. > > > > P. > > > > > > -- > > http://postgis.net > > http://cleverelephant.ca > > > > > > On June 23, 2014 at 2:17:19 PM, Krishna > (krishna.patury at gmail.com) wrote: > >>> As I mentioned I have disabled the firewall. Or so > I think. When > >> I login as 'root' and click firewall it says > disabled. Any way > >> I can confirm/ test this? > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From krishna.patury at gmail.com Wed Jun 25 08:13:25 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Wed, 25 Jun 2014 11:13:25 -0400 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: <1403705882.3957.19.camel@p224.pastoral.interno> References: <5F8DEB13-855E-49C0-8293-4C1CC055B14A@gmail.com> <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> <1403705882.3957.19.camel@p224.pastoral.interno> Message-ID: Thanks for responding. Would you please tell me how to check that? When I go to Network Proxy on the VM, "Direct Connection to internet" is selected. Both Mapserver and Postgres on the same VM. Do you think something might still be blocking the port? I am able to open a psql connection just fine using the same port. What is even more confusing is a Mapserver application outside the VM is able to connect to the Database on the VM just fine. On Wed, Jun 25, 2014 at 10:18 AM, Humberto Cereser Ibanez < humberto at pastoraldacrianca.org.br> wrote: > Hi Krishna, > > On Tue, 2014-06-24 at 09:35 -0400, Krishna Priya Patury wrote: > > Just wanted to add, when I do a service iptables status, it is says > > Firewall is not running. > > > > > > On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury > > wrote: > > Hi All, > > > > Any other ideas? > > > > The map server application installed outside of my Centos VM > > can connect to the Postgres database on the VM. I can also > > connect to the database both from within and outside the VM > > using psql. > > > > I believe the Mapserver installation on my VM is fine too as > > my shp2img and running the mapserver through command line work > > just fine. The issue is only when I try to connect to the > > database through the application from my VM. > > I do not see anything additional in the logs. > > I think that the requisition from your application is not achieving your > VM. > Is the request sent by your application pass through a proxy that blocks > the 5432 port or there is a bridge over which the requests flow > directly? > > > I can see that the database logs are not updated when I hit it > > though the application within the VM, understandably so with > > the error message in the browser. > > > > The only difference between running shp2img and the > > application is perhaps the user? I was able to open a > > succesful connection through psql as an 'apache' user as > > well(User which is running the Apache server). So am not sure > > what is missing. > > > > Thanks, > > Krishna. > > > Best regards, > > Humberto Cereser Ibanez > > > > > > On Mon, Jun 23, 2014 at 5:24 PM, Krishna > > wrote: > > Yes I can connect to Postgres using the same > > connection information through psql both from within > > and outside my vm. > > > > Sent from my iPhone > > > > > On Jun 23, 2014, at 5:20 PM, Paul Ramsey > > wrote: > > > > > > Did you restart your postgresql after making the > > changes to pg_hba and postgresql.conf? Can you telnet > > to port 5432? Can you connect with psql? Just ignore > > mapserver for now, you have a connection issue. > > > > > > P. > > > > > > > > > -- > > > http://postgis.net > > > http://cleverelephant.ca > > > > > > > > > On June 23, 2014 at 2:17:19 PM, Krishna > > (krishna.patury at gmail.com) wrote: > > >>> As I mentioned I have disabled the firewall. Or so > > I think. When > > >> I login as 'root' and click firewall it says > > disabled. Any way > > >> I can confirm/ test this? > > > > > > > > > > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Jun 25 08:22:58 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 25 Jun 2014 15:22:58 +0000 Subject: [mapserver-users] PDF output and file naming (.pdf) In-Reply-To: <000c01cf907f$f67eb8a0$e37c29e0$@dkerr.co.uk> References: <000c01cf907f$f67eb8a0$e37c29e0$@dkerr.co.uk> Message-ID: Try adding: FORMATOPTION 'ATTACHMENT=my.pdf' This should set the appropriate http header element. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Wednesday, June 25, 2014 9:16 AM To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PDF output and file naming (.pdf) This is what I use (with some notes): # PDF # Required to change MIMETYPE for outputting PDFs as application/x-pdf OUTPUTFORMAT NAME "pdf" DRIVER "CAIRO/PDF" # MIMETYPE "application/x-pdf" # Original MIMETYPE "application/pdf" #MIME type of "application/pdf" for pdfs as "application/x-pdf" not always recognised as pdf by browser IMAGEMODE "RGBA" EXTENSION "PDF" TRANSPARENT ON # Requires RGBA, not RGB otherwise errors. Also requires OFFSITE 255 255 255 in LAYER END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: 25 June 2014 15:12 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PDF output and file naming (.pdf) All, I got the PDF output to work, but the outputted file ends up being output as .map. I'm using CGI (streaming result?) with map.imagetype=pdf, the result is indeed a PDF, but with a .map file name. I tried setting EXTENTION "pdf" and MIMETYPE "application/x-pdf" inside of FORMATOPTION to no effect as far as the file name tag. Do I maybe need to output temporarily to a server location (WEB) for subsequent download? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Wed Jun 25 09:21:21 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 25 Jun 2014 16:21:21 +0000 Subject: [mapserver-users] PDF output and file naming (.pdf) References: <000c01cf907f$f67eb8a0$e37c29e0$@dkerr.co.uk> Message-ID: All, Ok, this worked (Thanks Donald): OUTPUTFORMAT NAME pdf #MIMETYPE "application/x-pdf" MIMETYPE "application/pdf" DRIVER "CAIRO/PDF" IMAGEMODE RGBA EXTENSION "PDF" TRANSPARENT ON END On 6/25/14 10:22 AM, Lime, Steve D (MNIT) wrote: Try adding: FORMATOPTION 'ATTACHMENT=my.pdf' This is a new one, I didn't see that anywhere in the docs. I don't suppose I can pass a fname=my.pdf param value in through the CGI call for the naming, or can I? One other thing, is there a way to force a VECTOR pdf output vs Raster. Using the above I seem to be getting a Raster output. Thanks (some more) bobb This should set the appropriate http header element. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Wednesday, June 25, 2014 9:16 AM To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PDF output and file naming (.pdf) This is what I use (with some notes): # PDF # Required to change MIMETYPE for outputting PDFs as application/x-pdf OUTPUTFORMAT NAME "pdf" DRIVER "CAIRO/PDF" # MIMETYPE "application/x-pdf" # Original MIMETYPE "application/pdf" #MIME type of "application/pdf" for pdfs as "application/x-pdf" not always recognised as pdf by browser IMAGEMODE "RGBA" EXTENSION "PDF" TRANSPARENT ON # Requires RGBA, not RGB otherwise errors. Also requires OFFSITE 255 255 255 in LAYER END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: 25 June 2014 15:12 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PDF output and file naming (.pdf) All, I got the PDF output to work, but the outputted file ends up being output as .map. I'm using CGI (streaming result?) with map.imagetype=pdf, the result is indeed a PDF, but with a .map file name. I tried setting EXTENTION "pdf" and MIMETYPE "application/x-pdf" inside of FORMATOPTION to no effect as far as the file name tag. Do I maybe need to output temporarily to a server location (WEB) for subsequent download? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From humberto at pastoraldacrianca.org.br Wed Jun 25 11:23:53 2014 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Wed, 25 Jun 2014 15:23:53 -0300 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: References: <5F8DEB13-855E-49C0-8293-4C1CC055B14A@gmail.com> <3639D524-FD95-44D6-A2CA-6B0A3F84E292@gmail.com> <1403705882.3957.19.camel@p224.pastoral.interno> Message-ID: <1403720633.3957.48.camel@p224.pastoral.interno> Hi Krishna, On Wed, 2014-06-25 at 11:13 -0400, Krishna Priya Patury wrote: > Thanks for responding. Would you please tell me how to check that? > When I go to Network Proxy on the VM, "Direct Connection to internet" > is selected. I do not know the particularities of your Centos box (I use Debian), but I'm hearing some issues about selinux that affect connections on this O.S. > > > Both Mapserver and Postgres on the same VM. Do you think something > might still be blocking the port? I am able to open a psql connection > just fine using the same port. What is even more confusing is a > Mapserver application outside the VM is able to connect to the > Database on the VM just fine. In this case, appears that do not have a blockage of the 5432 port on your network. But, probably there are more issues than the user difference that you mentioned, when the connection is established by the psql or by the application at localhost. I suggest you to check: 1) The result of "netstat -a | grep postgres" command 2) The parameter listen_addresses from postgresql configuration file 3) The selinux' configuration Best regards, Humberto Cereser Ibanez > > > > On Wed, Jun 25, 2014 at 10:18 AM, Humberto Cereser Ibanez > wrote: > Hi Krishna, > > On Tue, 2014-06-24 at 09:35 -0400, Krishna Priya Patury wrote: > > Just wanted to add, when I do a service iptables status, it > is says > > Firewall is not running. > > > > > > On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury > > wrote: > > Hi All, > > > > Any other ideas? > > > > The map server application installed outside of my > Centos VM > > can connect to the Postgres database on the VM. I > can also > > connect to the database both from within and outside > the VM > > using psql. > > > > I believe the Mapserver installation on my VM is > fine too as > > my shp2img and running the mapserver through command > line work > > just fine. The issue is only when I try to connect > to the > > database through the application from my VM. > > I do not see anything additional in the logs. > > > I think that the requisition from your application is not > achieving your > VM. > Is the request sent by your application pass through a proxy > that blocks > the 5432 port or there is a bridge over which the requests > flow > directly? > > > I can see that the database logs are not updated > when I hit it > > though the application within the VM, understandably > so with > > the error message in the browser. > > > > The only difference between running shp2img and the > > application is perhaps the user? I was able to open > a > > succesful connection through psql as an 'apache' > user as > > well(User which is running the Apache server). So am > not sure > > what is missing. > > > > Thanks, > > Krishna. > > > > Best regards, > > Humberto Cereser Ibanez > > > > > > On Mon, Jun 23, 2014 at 5:24 PM, Krishna > > wrote: > > Yes I can connect to Postgres using the same > > connection information through psql both > from within > > and outside my vm. > > > > Sent from my iPhone > > > > > On Jun 23, 2014, at 5:20 PM, Paul Ramsey > > wrote: > > > > > > Did you restart your postgresql after > making the > > changes to pg_hba and postgresql.conf? Can > you telnet > > to port 5432? Can you connect with psql? > Just ignore > > mapserver for now, you have a connection > issue. > > > > > > P. > > > > > > > > > -- > > > http://postgis.net > > > http://cleverelephant.ca > > > > > > > > > On June 23, 2014 at 2:17:19 PM, Krishna > > (krishna.patury at gmail.com) wrote: > > >>> As I mentioned I have disabled the > firewall. Or so > > I think. When > > >> I login as 'root' and click firewall it > says > > disabled. Any way > > >> I can confirm/ test this? > > > > > > > > > > > > > > > > _______________________________________________ > > 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 emperor_stef at yahoo.gr Wed Jun 25 12:03:59 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Wed, 25 Jun 2014 20:03:59 +0100 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIGh0ZG9jcyBzZXR0aW5ncyBh?= =?iso-8859-7?q?nd_mapfile_status?= In-Reply-To: <1403619800.29885.YahooMailNeo@web171802.mail.ir2.yahoo.com> References: <1403619800.29885.YahooMailNeo@web171802.mail.ir2.yahoo.com> Message-ID: <1403723039.71762.YahooMailNeo@web171805.mail.ir2.yahoo.com> Hi Bobb, thanks for the answers. Regarding the html templates: I thought that html files are kept in htdocs since this is the DocumentRoot from where apache is configured to read files from. ?So if I don't need to keep files in htdcos where else can I put them and how can apache understand where they are put. Regarding the On / default status: is this chunk put in the template or the mapfile?? Stefanos ???? 5:38 ?.?. ?????, 24 ??????? 2014, ?/? Stefanos Anastasiou ??????: Hi list. ?I have two questions that are confusing me a little bit. First of all I am keeping all my HTML template files /usr/local/apache2/htdocs. ?This folder has read-only permission settings by default so every time I want to edit/create a template I use nano or pico through terminal with root privileges. So, would it be wise (would it be secure?) to make htdocs folder have read/write permission and if not what other way is there so I can edit/make template files easily?? Another question is that when I make my mapfile and set STATUS to default everything works fine. But when it's set to on I get a blank page (needless to mention about STATUS off). That's not normal right? _______________________________________________ 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 bob.basques at ci.stpaul.mn.us Wed Jun 25 12:25:51 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 25 Jun 2014 19:25:51 +0000 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIGh0ZG9jcyBzZXR0aW5ncyBh?= =?iso-8859-7?q?nd_mapfile_status?= In-Reply-To: <1403723039.71762.YahooMailNeo@web171805.mail.ir2.yahoo.com> References: <1403619800.29885.YahooMailNeo@web171802.mail.ir2.yahoo.com> <1403723039.71762.YahooMailNeo@web171805.mail.ir2.yahoo.com> Message-ID: From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefanos Anastasiou Sent: Wednesday, June 25, 2014 2:04 PM To: Stefanos Anastasiou; mapserver-users at lists.osgeo.org Subject: [mapserver-users] ????: htdocs settings and mapfile status Hi Bobb, thanks for the answers. Regarding the html templates: I thought that html files are kept in htdocs since this is the DocumentRoot from where apache is configured to read files from. So if I don't need to keep files in htdcos where else can I put them and how can apache understand where they are put. [] The mapfiles need to be in the APACHE service path someplace, but the HTML templates do not, they are read by the Mapfiles . You specify their location inside of the Mapfile. I usually put them right next to the MAPFILES, but they can be hidden to apache by permissions, or even put somewhere else entirely. Regarding the On / default status: is this chunk put in the template or the mapfile? [] Mapfile Stefanos ???? 5:38 ?.?. ?????, 24 ??????? 2014, ?/? Stefanos Anastasiou > ??????: Hi list. I have two questions that are confusing me a little bit. First of all I am keeping all my HTML template files /usr/local/apache2/htdocs. This folder has read-only permission settings by default so every time I want to edit/create a template I use nano or pico through terminal with root privileges. So, would it be wise (would it be secure?) to make htdocs folder have read/write permission and if not what other way is there so I can edit/make template files easily? Another question is that when I make my mapfile and set STATUS to default everything works fine. But when it's set to on I get a blank page (needless to mention about STATUS off). That's not normal right? _______________________________________________ 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 pramsey at cleverelephant.ca Wed Jun 25 13:02:26 2014 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 25 Jun 2014 13:02:26 -0700 Subject: [mapserver-users] Map data strategy In-Reply-To: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> References: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> Message-ID: If you're using a map file with 100s of layers, you really must set an EXTENT on each layer to mapserver can intelligently ignore layers that are not "in scope" for the current view. P On Tue, Jun 24, 2014 at 10:36 PM, Malm Paul wrote: > Hi, > > I?ve just started using Mapserver and have a question, that could help me to > cut corners. > > > > 1) I have a lot of S57 charts in different scale groups 1-6. > > 2) It should be simple to maintain the map data (a lot of upgrades). > > 3) Of course, it should be fast. > > > > Strategy of today: > > I have the original data stored in the original format on ram disk. I have > one map file that INCLUDEs all ?layer? files (one per chart). > > The layer files defines the all the interesting chart features (layers) and > the max scale. > > I was thinking that I only shall use max scale, not min scale, because if I > don?t have a chart with a larger scale a certain position when I zoom in, > then I shall at least see a chart. Even if has a to small scale for this > zoom. I don?t have any spatial restrictions on each layer or layer file, > just for the map file -90, -180, 90, 180 (i.e no limits) > > Is it possible to have spatial limitations on a layer? > > > > When I use this strategy the map server chokes then I zoom in too much. > > > > I can see that the map configuration could be done in a lot of different > ways, > > How would your strategy be? > > > > Kind regards, > > Paul > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From HSO at kmd.dk Thu Jun 26 04:03:47 2014 From: HSO at kmd.dk (=?iso-8859-1?Q?St=F8rner=2EHenrik_Juul_HSO?=) Date: Thu, 26 Jun 2014 11:03:47 +0000 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? Message-ID: Hi, I am trying to setup a mapserver+mapcache installation on Windows 2012, using IIS as the webserver. (The powers that be insist on trying it on Windows before doing it on Linux...) I've found the mapserver binaries on http://www.gisinternals.com/sdk/, and have mapserver working in FastCGI mode on IIS. So I'd like to add mapcache to the software stack, but it isn't included in the gisinternals.com package. I have seen Paul James' message that building and running it is possible http://lists.osgeo.org/pipermail/mapserver-users/2013-March/074294.html - but I don't have Visual C available. So I guess what I am really asking for is: Is there a precompiled binary of mapcache for Windows x64 available anywhere? Thanks in advance. Best regards / Venlig hilsen Henrik Juul St?rner, Servicearkitekt [kmd logo] Application Technology Lautrupparken 40-42, DK-2750 Ballerup E-mail hso at kmd.dk Web www.kmd.dk Direkte +4544604433 Mobil +4591375751 Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan p?virke computeren eller it-systemet, hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse med at modtage og bruge e-mailen. Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 873 bytes Desc: image003.jpg URL: From james.evans.4 at us.af.mil Thu Jun 26 05:58:09 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Thu, 26 Jun 2014 12:58:09 +0000 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? In-Reply-To: References: Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C8F4C0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> I'd like to get that working too. Please post here if you get it working. Thanks, James ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of St?rner.Henrik Juul HSO [HSO at kmd.dk] Sent: Thursday, June 26, 2014 5:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? Hi, I am trying to setup a mapserver+mapcache installation on Windows 2012, using IIS as the webserver. (The powers that be insist on trying it on Windows before doing it on Linux?) I?ve found the mapserver binaries on http://www.gisinternals.com/sdk/, and have mapserver working in FastCGI mode on IIS. So I?d like to add mapcache to the software stack, but it isn?t included in the gisinternals.com package. I have seen Paul James? message that building and running it is possible http://lists.osgeo.org/pipermail/mapserver-users/2013-March/074294.html - but I don?t have Visual C available. So I guess what I am really asking for is: Is there a precompiled binary of mapcache for Windows x64 available anywhere? Thanks in advance. Best regards / Venlig hilsen Henrik Juul St?rner, Servicearkitekt [kmd logo] Application Technology Lautrupparken 40-42, DK-2750 Ballerup E-mail hso at kmd.dk Web www.kmd.dk Direkte +4544604433 Mobil +4591375751 Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan p?virke computeren eller it-systemet, hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse med at modtage og bruge e-mailen. Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 873 bytes Desc: image003.jpg URL: From dowi84 at gmail.com Thu Jun 26 07:41:55 2014 From: dowi84 at gmail.com (Do Wi) Date: Thu, 26 Jun 2014 17:41:55 +0300 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C8F4C0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> References: <20EA793B1BC710448656BDC9BD25C4A104C8F4C0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Message-ID: hi, please see here http://gis.stackexchange.com/questions/95807/is-there-a-mapcache-1-2-1-currently-last-binary-for-windows i also asked for it so if anyone know i'd like to know thanks allot! On Thu, Jun 26, 2014 at 3:58 PM, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote: > I'd like to get that working too. Please post here if you get it > working. > Thanks, > James > > ------------------------------ > *From:* mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] on behalf of St?rner.Henrik Juul > HSO [HSO at kmd.dk] > *Sent:* Thursday, June 26, 2014 5:03 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Mapcache on Windows with IIS - any binaries > available? > > Hi, > > > > I am trying to setup a mapserver+mapcache installation on Windows 2012, > using IIS as the webserver. > > > > (The powers that be insist on trying it on Windows before doing it on > Linux?) > > > > I?ve found the mapserver binaries on http://www.gisinternals.com/sdk/, > and have mapserver working in FastCGI mode on IIS. So I?d like to add > mapcache to the software stack, but it isn?t included in the > gisinternals.com package. I have seen Paul James? message that building > and running it is possible > http://lists.osgeo.org/pipermail/mapserver-users/2013-March/074294.html - > but I don?t have Visual C available. > > > > So I guess what I am really asking for is: Is there a precompiled binary > of mapcache for Windows x64 available anywhere? > > > > Thanks in advance. > > > > > > Best regards / Venlig hilsen > > > > *Henrik Juul St?rner,* Servicearkitekt > > > > [image: kmd logo] Application Technology > > > > Lautrupparken 40-42, DK-2750 Ballerup > > E-mail hso at kmd.dk Web www.kmd.dk > > Direkte +4544604433 Mobil +4591375751 > > Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. > Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst > informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi > dig slette e-mailen i dit system uden at videresende eller kopiere den. > Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri > for virus og andre fejl, som kan p?virke computeren eller it-systemet, > hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi > p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse > med at modtage og bruge e-mailen. > > Please note that this message may contain confidential information. If you > have received this message by mistake, please inform the sender of the > mistake by sending a reply, then delete the message from your system > without making, distributing or retaining any copies of it. Although we > believe that the message and any attachments are free from viruses and > other errors that might affect the computer or it-system where it is > received and read, the recipient opens the message at his or her own risk. > We assume no responsibility for any loss or damage arising from the receipt > or use of this message. > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 873 bytes Desc: not available URL: From boolean10001 at yahoo.com Thu Jun 26 08:03:28 2014 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 26 Jun 2014 08:03:28 -0700 Subject: [mapserver-users] PostGIS Connection Failure In-Reply-To: Message-ID: <1403795008.88913.YahooMailBasic@web163804.mail.gq1.yahoo.com> Hi Krishna, On Wed, 6/25/14, Krishna Priya Patury wrote: > Subject: Re: [mapserver-users] PostGIS Connection Failure > To: humberto at pastoraldacrianca.org.br > Cc: "mapserver-users at lists.osgeo.org" > Date: Wednesday, June 25, 2014, 10:13 AM > > Thanks for responding. Would you please tell > me how to check that? When I go to Network Proxy on the VM, > "Direct Connection to internet" is selected. > > > Both Mapserver and Postgres on the > same VM. Do you think something might still be blocking the > port? I am able to open a psql connection just fine using > the same port. What is even more confusing is a Mapserver > application outside the VM is able to connect to the > Database on the VM just fine. This is really weird. Are you sure the application outside of your VM that works has the same connection string as the one that doesn't works ? Both applications (the one that works and the one that doesn?t) are using the same version of Mapserver ? Both applications (the one that works and the one that doesn?t) are hosted in the same machine/VM ? Mtro. Carlos Ruiz From boolean10001 at yahoo.com Thu Jun 26 08:24:53 2014 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 26 Jun 2014 08:24:53 -0700 Subject: [mapserver-users] color attribute question In-Reply-To: Message-ID: <1403796293.77031.YahooMailBasic@web163801.mail.gq1.yahoo.com> To achieve more flexibility as you want, you have to code a function with PL/pgSQL in PostgreSQL or with PHP/Python/Java/C# with Mapscript to define which is the base color (red, green, blue, yellow ...) and then to calculate the percent in the right RGB channel. Cheers Mtro. Carlos Ruiz -------------------------------------------- On Mon, 6/23/14, Do Wi wrote: Subject: Re: [mapserver-users] color attribute question To: "Carlos Ruiz" Date: Monday, June 23, 2014, 2:56 PM thanks allot! Steve and another user here mentioned this path and it did work!only problem is that it cannot be changed later if for example the user chooses a blue gradient. how will i go about doing it with mapscript? maybe it relates to my question herehttp://gis.stackexchange.com/questions/102862/when-to-choose-mapscript-over-mapfile-or-vice-versa :-) thanks allot!dovi On Mon, Jun 23, 2014 at 6:13 PM, Carlos Ruiz wrote: Do, If you want to do this without using mapscript, you can pull the gradient calculation as an attribute from your data table. ALTER TABLE mytable ADD COLUMN gradient_color VARCHAR; UPTATE mytable SET gradient_color = floor(gradient * 255)::text || ' 0 0'; Cheers ?Mtro. Carlos Ruiz On Monday, June 23, 2014 4:59 PM, "Lime, Steve D (MNIT)" wrote: You can compute a color string using PostgreSQL string functions: ? ? SELECT percentage || ? 0 0? AS color FROM ? ? Steve ? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Do Wi Sent: Sunday, June 22, 2014 3:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] color attribute question ? hi! ? i have this scenario: i have a column in my postgis table which contains a double representing a percentage. ? i want to color my polygons in a gradient fashion based on that number. ? the docs states three ways to specify color: 1. three [1-255] numbers 2. hex string 3. [attribute] ? but the attribute must be a string by itself in the same format as options 1 or 2. ? how can i achieve something like? ? COLOR [percentage]*255 0 0 or COLOR [percentage] 0 0 if percentageis already 0..255 ? for a red gradient for example?? ? thanks allot! _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dowi84 at gmail.com Thu Jun 26 08:29:27 2014 From: dowi84 at gmail.com (Do Wi) Date: Thu, 26 Jun 2014 18:29:27 +0300 Subject: [mapserver-users] color attribute question In-Reply-To: <1403796293.77031.YahooMailBasic@web163801.mail.gq1.yahoo.com> References: <1403796293.77031.YahooMailBasic@web163801.mail.gq1.yahoo.com> Message-ID: hi, thanks allot! that is exactly what i did after another user suggested it ( Cristiano Sumariva ). here it is for reference: CREATE OR REPLACE FUNCTION temp.ms_colorMath( percentile double precision ) RETURNS varchar LANGUAGE plpgsql AS $$ DECLARE C double precision; X double precision; m double precision; H int; V double precision; S double precision; R int; G int; B int; BEGIN --see here http://www.rapidtables.com/convert/color/hsv-to-rgb.htm --if H != 0 need to change the function --curently - red gradient S := percentile; IF (S < 0.1 AND S > 0) THEN S := 0.1; END IF; H := 0; V := 1.0; C := V * S; X := C * (1-abs(mod(H/60,2)-1)); m := V-C; R := ((C + m)*255 )::int; G := ((X + m)*255 )::int; B := ((0 + m)*255 )::int; RETURN (R)::text || ' ' || (G)::text || ' ' || (B)::text; END $$; On Thu, Jun 26, 2014 at 6:24 PM, Carlos Ruiz wrote: > To achieve more flexibility as you want, you have to code a function with > PL/pgSQL in PostgreSQL or with PHP/Python/Java/C# with Mapscript to define > which is the base color (red, green, blue, yellow ...) and then to > calculate the percent in the right RGB channel. > > > Cheers > > Mtro. Carlos Ruiz > > -------------------------------------------- > On Mon, 6/23/14, Do Wi wrote: > > Subject: Re: [mapserver-users] color attribute question > To: "Carlos Ruiz" > Date: Monday, June 23, 2014, 2:56 PM > > thanks allot! > Steve and another user here mentioned this path > and it did work!only problem is that it cannot be > changed later if for example the user chooses a blue > gradient. > > how will i go about doing it with > mapscript? > maybe it relates to my question herehttp:// > gis.stackexchange.com/questions/102862/when-to-choose-mapscript-over-mapfile-or-vice-versa > > > :-) > thanks allot!dovi > > On Mon, Jun 23, 2014 > at 6:13 PM, Carlos Ruiz > wrote: > > > Do, > If > you want to do this without using mapscript, you can pull > the gradient calculation as an attribute from your data > table. > > > ALTER TABLE mytable ADD COLUMN gradient_color > VARCHAR; > UPTATE mytable SET gradient_color = floor(gradient * > 255)::text || ' 0 0'; > > Cheers > > Mtro. Carlos Ruiz > > > > On Monday, June 23, 2014 4:59 PM, "Lime, Steve D > (MNIT)" > wrote: > > > > > > You can compute a color > string using PostgreSQL string functions: > > SELECT percentage || > ? 0 0? AS color FROM ? > > Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] > On Behalf Of Do Wi > > Sent: Sunday, June 22, 2014 3:50 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] color attribute > question > > > hi! > > > > > i have this > scenario: > > > i have a column in my > postgis table which contains a double representing a > percentage. > > > > > > i want to color my > polygons in a gradient fashion based on that > number. > > > > > > the docs states three > ways to specify color: > > > 1. three [1-255] > numbers > > > 2. hex > string > > > 3. > [attribute] > > > > > > but the attribute must > be a string by itself in the same format as options 1 or > 2. > > > > > > how can i achieve > something like > > > > > > COLOR [percentage]*255 0 > 0 > > > or > > > COLOR [percentage] 0 > 0 > > > if percentageis already > 0..255 > > > > > > for a red gradient for > example? > > > > > > thanks > allot! > > > > > _______________________________________________ > 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 MarkVolz at co.lyon.mn.us Thu Jun 26 13:19:57 2014 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 26 Jun 2014 20:19:57 +0000 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA33AA30657@swmail01.r8nssis.local> Henrik, Someone can correct me if I am wrong, but It is my understanding that mapcache will only work with apache. It is possible to run IIS and MS4W (apache) on the same machine. I have IIS is set up to listen to one IP address, and MS4W is set up to listen to another ip address. That being said I do not know if this is the cleanest install. In addition, The version of MS4W (3.0.4 dev) that has mapcache is over two years old. I hope a new version of MS4W will come out sometime soon! Sincerely, Mark Volz, GISP > Hi, > > I am trying to setup a mapserver+mapcache installation on Windows 2012, > using IIS as the webserver. > > (The powers that be insist on trying it on Windows before doing it on Linux?) > > I?ve found the mapserver binaries on http://www.gisinternals.com/sdk/, > and have mapserver working in FastCGI mode on IIS. So I?d like to add > mapcache to the software stack, but it isn?t included in the gisinternals.com > package. I have seen Paul James? message that building and running it is > possible http://lists.osgeo.org/pipermail/mapserver-users/2013- > March/074294.html - but I don?t have Visual C available. > > So I guess what I am really asking for is: Is there a precompiled binary of > mapcache for Windows x64 available anywhere? > > Thanks in advance. > > From paul.malm at saabgroup.com Thu Jun 26 23:47:48 2014 From: paul.malm at saabgroup.com (Malm Paul) Date: Fri, 27 Jun 2014 06:47:48 +0000 Subject: [mapserver-users] Map data strategy In-Reply-To: References: <1ffd85088ce343d39af61a9559b3ee7e@CORPAPPL840.corp.saab.se> Message-ID: <7075f631e9124d3db05dd911372e7547@CORPAPPL840.corp.saab.se> Thanks everyone for the response! Will Tile index indexing increase the performance if we already are using extent on layers? /Paul -----Original Message----- From: Paul Ramsey [mailto:pramsey at cleverelephant.ca] Sent: den 25 juni 2014 22:02 To: Malm Paul Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Map data strategy If you're using a map file with 100s of layers, you really must set an EXTENT on each layer to mapserver can intelligently ignore layers that are not "in scope" for the current view. P On Tue, Jun 24, 2014 at 10:36 PM, Malm Paul wrote: > Hi, > > I?ve just started using Mapserver and have a question, that could help > me to cut corners. > > > > 1) I have a lot of S57 charts in different scale groups 1-6. > > 2) It should be simple to maintain the map data (a lot of upgrades). > > 3) Of course, it should be fast. > > > > Strategy of today: > > I have the original data stored in the original format on ram disk. I > have one map file that INCLUDEs all ?layer? files (one per chart). > > The layer files defines the all the interesting chart features > (layers) and the max scale. > > I was thinking that I only shall use max scale, not min scale, because > if I don?t have a chart with a larger scale a certain position when I > zoom in, then I shall at least see a chart. Even if has a to small > scale for this zoom. I don?t have any spatial restrictions on each > layer or layer file, just for the map file -90, -180, 90, 180 (i.e no > limits) > > Is it possible to have spatial limitations on a layer? > > > > When I use this strategy the map server chokes then I zoom in too much. > > > > I can see that the map configuration could be done in a lot of > different ways, > > How would your strategy be? > > > > Kind regards, > > Paul > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Fri Jun 27 00:27:50 2014 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Fri, 27 Jun 2014 09:27:50 +0200 Subject: [mapserver-users] symbol rotation follow map rotation ? Message-ID: <53AD1CF6.6060209@camptocamp.com> dear list Observed using mapserver 6.0.1, I have noticed that symbol rotation doesn't seem to follow map rotation, ie. the symbols keep the same absolute angle whatever the map angle is. I have the feeling this is a current limitation of Mapserver, as it doesn't know if the symbol angle is an absolute value (independent of the map angle) or relative (map angle should be added to symbol angle). example here: no map rotation (signs symbols with angle aligning them with the streets): http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781 with map rotation (signs symbols have kept their initial angle and are not aligned anymore): http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&map_angle=59.99999999999999&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&angle=59.99999999999999&SRS=EPSG%3A21781 could someone confirm or infirm? In my opinion I would prefer a relative angle calculation by default, but that's just me :) thanks for reading kind regards Oliver -- Camptocamp SA Oliver Christen PSE A, EPFL CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From HSO at kmd.dk Fri Jun 27 00:57:16 2014 From: HSO at kmd.dk (=?iso-8859-1?Q?St=F8rner=2EHenrik_Juul_HSO?=) Date: Fri, 27 Jun 2014 07:57:16 +0000 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? Message-ID: Hi, Mark Volz wrote: > Someone can correct me if I am wrong, but It is my understanding that > mapcache will only work with apache. My understanding is that mapcache can run either as an Apache module, or as a (Fast)CGI application - see http://mapserver.org/mapcache/install.html#cgi-fastcgi-specific-instructions I am pursuing the CGI method due to some external desires for sticking with a 'pure' Windows+IIS solution, but if that is not possible then I totally agree that Apache is the way to go. Regards, Henrik Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan p?virke computeren eller it-systemet, hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse med at modtage og bruge e-mailen. Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. From emperor_stef at yahoo.gr Fri Jun 27 06:29:44 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Fri, 27 Jun 2014 14:29:44 +0100 Subject: [mapserver-users] Permission settings on htdcos Message-ID: <1403875784.1254.YahooMailNeo@web171802.mail.ir2.yahoo.com> Hello list..! I'm just trying to load a simple shapefile in the browser. Both mapfile and template are located in /home/mapdata. When I try to browse: ?127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=browse I get the error that says: ?"msSaveImage(): Unable to access file. Failed to create output file". I presume that it has to do with the permission settings in tmp folder in htdcocs. As far as I know it's not a good idea giving permission 666 or 777 to htdocs. ?So should I handle this ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dietmar.stolz at freenet.de Fri Jun 27 06:35:22 2014 From: dietmar.stolz at freenet.de (Dietmar Stolz) Date: Fri, 27 Jun 2014 15:35:22 +0200 Subject: [mapserver-users] KML output with blank point bitmaps Message-ID: <53AD731A.3040204@freenet.de> Dear list, my kml output basically works. Everything works fine with line and polygon type, I get correct kml files. Point layers works also but mapserver generated blank png's. The bitmap exist in the right directory with the right size. The url path in the kml file is right. I can see the kml point layer in the gis, the points have tooltips and are clickable. The bitmaps have 24 bpp. Pixmap or vector layer symbols makes no difference. Debug 5 shows no error and no kml specific information. MapServer version 6.4.1 on windows 7 64 bit Any ideas? Thank you From tom at nthsense.net Fri Jun 27 07:16:25 2014 From: tom at nthsense.net (Tom) Date: Fri, 27 Jun 2014 10:16:25 -0400 Subject: [mapserver-users] Include data extents in WFS layer Message-ID: <008001cf9212$61969980$24c3cc80$@net> Hi folks, Do you know if it is possible to include the extents of the data in a WFS response? If the BBOX I request only contains a few features , I would like to zoom my map to their bounds. I can calculate this on the client side, but I would prefer to have Mapserver feed me that info. Thanks!! Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Kleih at neplan.ch Fri Jun 27 07:16:51 2014 From: Michael.Kleih at neplan.ch (Michael Kleih) Date: Fri, 27 Jun 2014 16:16:51 +0200 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? In-Reply-To: References: Message-ID: <53AD7CD3.2010003@neplan.ch> Hello Mark, No, I am running both Mapserver and Mapcache with IIS. Michael On 27.06.2014 09:57, St?rner.Henrik Juul HSO wrote: > Hi, > > Mark Volz wrote: >> Someone can correct me if I am wrong, but It is my understanding that >> mapcache will only work with apache. > My understanding is that mapcache can run either as an Apache module, or as a (Fast)CGI application - see http://mapserver.org/mapcache/install.html#cgi-fastcgi-specific-instructions > > I am pursuing the CGI method due to some external desires for sticking with a 'pure' Windows+IIS solution, but if that is not possible then I totally agree that Apache is the way to go. > > Regards, > Henrik > > Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan p?virke computeren eller it-systemet, hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse med at modtage og bruge e-mailen. > > Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. > _______________________________________________ > 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 Jun 27 10:11:00 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 27 Jun 2014 17:11:00 +0000 Subject: [mapserver-users] Permission settings on htdcos In-Reply-To: <1403875784.1254.YahooMailNeo@web171802.mail.ir2.yahoo.com> References: <1403875784.1254.YahooMailNeo@web171802.mail.ir2.yahoo.com> Message-ID: The tmp folder should be owned and writable by the user the webserver is running as. You don't need to change permissions on document root, just the tmp directory. Most uses of MapServer don't require a temporary directory at all - I believe only mode=browse and saving queries use that directory. So if you just want to see a map in the browser use http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=map Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefanos Anastasiou Sent: Friday, June 27, 2014 8:30 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Permission settings on htdcos Hello list..! I'm just trying to load a simple shapefile in the browser. Both mapfile and template are located in /home/mapdata. When I try to browse: 127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=browse I get the error that says: "msSaveImage(): Unable to access file. Failed to create output file". I presume that it has to do with the permission settings in tmp folder in htdcocs. As far as I know it's not a good idea giving permission 666 or 777 to htdocs. So should I handle this ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Jun 27 11:57:14 2014 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 27 Jun 2014 11:57:14 -0700 Subject: [mapserver-users] large # of GeoTiffs mapfile/index strategy Message-ID: Hi Experts, I need a little advice on how to do lots of aerial image GeoTiffs quickly. I have a large region with many GeoTiffs covering 9 UTM zones. Typically I would put together a map file with layers per utm zone and use shapefile index to point at the GeoTiffs. I know that declaring the extent per layer is important when you have a lot of layers. The GeoTiffs are RGB, internally tiled, and jpeg compressed. They are also about 20-30MB in size. My question is, has anyone done any testing between doing this via shapefile index vs GDAL .vrt files? Which would perform faster? My current setup is using Mapserver behind nginx in fastcgi mode. Thanks for any help on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Jun 27 13:01:37 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 27 Jun 2014 20:01:37 +0000 Subject: [mapserver-users] large # of GeoTiffs mapfile/index strategy In-Reply-To: References: Message-ID: Hi, Use gdaltindex with -t_srs http://www.gdal.org/gdaltindex.html and all your troubles are solved. Jukka Rahkonen ________________________________ L?hett?j?: Mark Korver L?hetetty: ?27.?6.?2014 21:57 Vastaanottaja: mapserver-users Aihe: [mapserver-users] large # of GeoTiffs mapfile/index strategy Hi Experts, I need a little advice on how to do lots of aerial image GeoTiffs quickly. I have a large region with many GeoTiffs covering 9 UTM zones. Typically I would put together a map file with layers per utm zone and use shapefile index to point at the GeoTiffs. I know that declaring the extent per layer is important when you have a lot of layers. The GeoTiffs are RGB, internally tiled, and jpeg compressed. They are also about 20-30MB in size. My question is, has anyone done any testing between doing this via shapefile index vs GDAL .vrt files? Which would perform faster? My current setup is using Mapserver behind nginx in fastcgi mode. Thanks for any help on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Fri Jun 27 13:14:48 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Fri, 27 Jun 2014 22:14:48 +0200 Subject: [mapserver-users] large # of GeoTiffs mapfile/index strategy In-Reply-To: References: Message-ID: <201406272214.48934.even.rouault@mines-paris.org> Le vendredi 27 juin 2014 22:01:37, Rahkonen Jukka (Tike) a ?crit : > Hi, > > Use gdaltindex with -t_srs http://www.gdal.org/gdaltindex.html and all your > troubles are solved. Jukka's advice is good, make sure to use MapServer 6.4 for mixed SRS support. You'll likely have to use -t_srs EPSG:4326 to have a SRS that is compatible with 9 UTM zones (or any other global SRS). There's no spatial index mechanism within VRT files. If the number of files in a VRT is reasonnably small (let's say < 100), the performance should still be OK hopefully. > > Jukka Rahkonen > > ________________________________ > L?hett?j?: Mark Korver > L?hetetty: ?27.?6.?2014 21:57 > Vastaanottaja: mapserver-users > Aihe: [mapserver-users] large # of GeoTiffs mapfile/index strategy > > Hi Experts, > I need a little advice on how to do lots of aerial image GeoTiffs quickly. > I have a large region with many GeoTiffs covering 9 UTM zones. Typically I > would put together a map file with layers per utm zone and use shapefile > index to point at the GeoTiffs. I know that declaring the extent per layer > is important when you have a lot of layers. The GeoTiffs are RGB, > internally tiled, and jpeg compressed. They are also about 20-30MB in > size. > > My question is, has anyone done any testing between doing this via > shapefile index vs GDAL .vrt files? Which would perform faster? My current > setup is using Mapserver behind nginx in fastcgi mode. > Thanks for any help on this. -- Geospatial professional services http://even.rouault.free.fr/services.html From martin.kofahl at gmail.com Fri Jun 27 13:45:47 2014 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Fri, 27 Jun 2014 22:45:47 +0200 Subject: [mapserver-users] Include data extents in WFS layer In-Reply-To: <008001cf9212$61969980$24c3cc80$@net> References: <008001cf9212$61969980$24c3cc80$@net> Message-ID: Hi Tom, you should have an gml:boundedBy xml element in the wfs GetFeature response which represents the extent of the returned features. Kind regards, Martin 2014-06-27 16:16 GMT+02:00 Tom : > Hi folks, > > > > Do you know if it is possible to include the extents of the data in a WFS > response? If the BBOX I request only contains a few features , I would > like to zoom my map to their bounds. I can calculate this on the client > side, but I would prefer to have Mapserver feed me that info. > > > > Thanks!! > > > > Tom > > > > > > _______________________________________________ > 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 kris.spring at omnyon.com Fri Jun 27 14:11:08 2014 From: kris.spring at omnyon.com (Kris Spring) Date: Fri, 27 Jun 2014 17:11:08 -0400 Subject: [mapserver-users] Installing MapServer on Windows Message-ID: Howdy, I've got a dump of a NASA World Wind map database and I'm trying to setup a standalone map environment. Not sure if anyone has done this before, but the documentation isn't exactly up to date or complete. Here's my setup: Windows 7 64-bit MapServer 6.4.1 I've installed MapServer and have modified IIS7 so that I can run mapserv.exe. The NASA World Wind comes with a .map file and basically everything that I need. When I try to bring up the .map file I get the following error: Sample url: localhost/mapserver/mapserv.exe?map=/nasaww.map&request=getacpabilities&service=wms msProcessProjection(): Projection library error. proj error "Permission denied" for "init=epsg:4326" I've tried looking at permissions and opening everything up just to see if I can get it to work, but no dice. Anyone have any ideas? Thanks, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.evans.4 at us.af.mil Fri Jun 27 16:13:34 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Fri, 27 Jun 2014 23:13:34 +0000 Subject: [mapserver-users] Installing MapServer on Windows In-Reply-To: References: Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C8FC2F@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> You might have to start off your map file with something like this: MAP NAME "RADESWMS" EXTENT -180 -90 180 90 SIZE 512 512 UNITS DD IMAGECOLOR 0 0 0 CONFIG PROJ_LIB "C:\Program Files\MapServer\projlib" CONFIG GDAL_DATA "C:\Program Files\MapServer\gdal-data" CONFIG "MS_ERRORFILE" "servemap_log.txt" IMAGETYPE png PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "C:\program files\mapserver\temp" TEMPLATE "D:\Mapdata\template.html" METADATA "wms_title" "RADES_WMS" "wms_name" "84RADES_WMS" "wms_onlineresource" "http://localhost/mapserver/mapserv.exe?map=D:/Mapdata/servemap.map" "wms_srs" "EPSG:4326" "wms_extent" "-180 -90 180 90" "Wms_enable_request" "*" END END various layers...... END ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Kris Spring [kris.spring at omnyon.com] Sent: Friday, June 27, 2014 3:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer on Windows Howdy, I've got a dump of a NASA World Wind map database and I'm trying to setup a standalone map environment. Not sure if anyone has done this before, but the documentation isn't exactly up to date or complete. Here's my setup: Windows 7 64-bit MapServer 6.4.1 I've installed MapServer and have modified IIS7 so that I can run mapserv.exe. The NASA World Wind comes with a .map file and basically everything that I need. When I try to bring up the .map file I get the following error: Sample url: localhost/mapserver/mapserv.exe?map=/nasaww.map&request=getacpabilities&service=wms msProcessProjection(): Projection library error. proj error "Permission denied" for "init=epsg:4326" I've tried looking at permissions and opening everything up just to see if I can get it to work, but no dice. Anyone have any ideas? Thanks, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.evans.4 at us.af.mil Fri Jun 27 16:10:06 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Fri, 27 Jun 2014 23:10:06 +0000 Subject: [mapserver-users] Installing MapServer on Windows In-Reply-To: References: Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C8FC24@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Can you post the map file? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Kris Spring [kris.spring at omnyon.com] Sent: Friday, June 27, 2014 3:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer on Windows Howdy, I've got a dump of a NASA World Wind map database and I'm trying to setup a standalone map environment. Not sure if anyone has done this before, but the documentation isn't exactly up to date or complete. Here's my setup: Windows 7 64-bit MapServer 6.4.1 I've installed MapServer and have modified IIS7 so that I can run mapserv.exe. The NASA World Wind comes with a .map file and basically everything that I need. When I try to bring up the .map file I get the following error: Sample url: localhost/mapserver/mapserv.exe?map=/nasaww.map&request=getacpabilities&service=wms msProcessProjection(): Projection library error. proj error "Permission denied" for "init=epsg:4326" I've tried looking at permissions and opening everything up just to see if I can get it to work, but no dice. Anyone have any ideas? Thanks, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Jun 27 17:27:34 2014 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 27 Jun 2014 17:27:34 -0700 Subject: [mapserver-users] large # of GeoTiffs mapfile/index strategy In-Reply-To: <201406272214.48934.even.rouault@mines-paris.org> References: <201406272214.48934.even.rouault@mines-paris.org> Message-ID: Jukka, thank you for the reminder on -t_srs, I had forgotten about that. It makes sense if using the shapefile index to build that in the srs you plan to output. Now that I have been reminded of that feature of gdaltindex I can see that would be faster than parsing a large vrt file. Thanks. On Fri, Jun 27, 2014 at 1:14 PM, Even Rouault wrote: > Le vendredi 27 juin 2014 22:01:37, Rahkonen Jukka (Tike) a ?crit : > > Hi, > > > > Use gdaltindex with -t_srs http://www.gdal.org/gdaltindex.html and all > your > > troubles are solved. > > Jukka's advice is good, make sure to use MapServer 6.4 for mixed SRS > support. > You'll likely have to use -t_srs EPSG:4326 to have a SRS that is compatible > with 9 UTM zones (or any other global SRS). > > There's no spatial index mechanism within VRT files. If the number of > files in a > VRT is reasonnably small (let's say < 100), the performance should still > be OK > hopefully. > > > > > Jukka Rahkonen > > > > ________________________________ > > L?hett?j?: Mark Korver > > L?hetetty: ?27.?6.?2014 21:57 > > Vastaanottaja: mapserver-users > > Aihe: [mapserver-users] large # of GeoTiffs mapfile/index strategy > > > > Hi Experts, > > I need a little advice on how to do lots of aerial image GeoTiffs > quickly. > > I have a large region with many GeoTiffs covering 9 UTM zones. Typically > I > > would put together a map file with layers per utm zone and use shapefile > > index to point at the GeoTiffs. I know that declaring the extent per > layer > > is important when you have a lot of layers. The GeoTiffs are RGB, > > internally tiled, and jpeg compressed. They are also about 20-30MB in > > size. > > > > My question is, has anyone done any testing between doing this via > > shapefile index vs GDAL .vrt files? Which would perform faster? My > current > > setup is using Mapserver behind nginx in fastcgi mode. > > Thanks for any help on this. > > -- > Geospatial professional services > http://even.rouault.free.fr/services.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jun 28 01:43:55 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 28 Jun 2014 10:43:55 +0200 Subject: [mapserver-users] Installing MapServer on Windows In-Reply-To: References: Message-ID: <53AE804B.5030103@gatewaygeomatics.com> Hi, On IIS systems I often have to set the PROJ_LIB system environment variable, to the location of the 'epsg' file, and then reboot the server, such as: Variable: PROJ_LIB Value: C:\ms4w\proj\nad -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-27, 11:11 PM, Kris Spring wrote: > Howdy, > > I've got a dump of a NASA World Wind map database and I'm trying to > setup a standalone map environment. Not sure if anyone has done this > before, but the documentation isn't exactly up to date or complete. > > Here's my setup: > Windows 7 64-bit > MapServer 6.4.1 > > I've installed MapServer and have modified IIS7 so that I can run > mapserv.exe. The NASA World Wind comes with a .map file and basically > everything that I need. When I try to bring up the .map file I get the > following error: > > Sample url: > localhost/mapserver/mapserv.exe?map=/nasaww.map&request=getacpabilities&service=wms > > msProcessProjection(): Projection library error. proj error "Permission > denied" for "init=epsg:4326" > > I've tried looking at permissions and opening everything up just to see > if I can get it to work, but no dice. Anyone have any ideas? > > Thanks, > Kris > > From emperor_stef at yahoo.gr Sat Jun 28 05:34:44 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Sat, 28 Jun 2014 13:34:44 +0100 Subject: [mapserver-users] msCalculateScale() error Message-ID: <1403958884.47549.YahooMailNeo@web171804.mail.ir2.yahoo.com> Hello..! ?:-) I'm having a map in browse mode with a simple function taken from the tutorial 1.9 in?http://demo.mapserver.org/. ?I use ogrinfo in order to get the extent and enter it to the mapfile. When I click on the image I get the following error "msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000."? When I run it map mode everything is OK but in browse mode it's gives me that. Does it have to do with the UNITS maybe?? Thanks!? -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Sat Jun 28 08:52:59 2014 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Sat, 28 Jun 2014 16:52:59 +0100 Subject: [mapserver-users] Reconfiguring mapserver Message-ID: <1403970779.45099.YahooMailNeo@web171804.mail.ir2.yahoo.com> Hello list..!! I'm using mapserver 6.2.0. ?The command mapserv -v gives me the output: MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE I assume there are some things missing here like proj, gdal, wfs and wms. Can I have some help in reconfiguring it?? Thanks a lot? -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Sat Jun 28 14:38:47 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 28 Jun 2014 23:38:47 +0200 Subject: [mapserver-users] TinyOWS: Axis order fix wanted In-Reply-To: References: <201406182356.08861.even.rouault@mines-paris.org> Message-ID: <201406282338.47120.even.rouault@mines-paris.org> Hi, The following pull request should fix Jukka's issue : https://github.com/mapserver/tinyows/pull/65 This was indeed quite severe and affected very popular projected SRS like UTM WGS84 SRS (EPSG:326XX), that are similar to EPSG:3067 as far as their WKT AXIS definition is concerned, i.e. ending with : AXIS["Easting",EAST],AXIS["Northing",NORTH]] I guess this went unnoticed since the test /wfs_110 tests only tests EPSG:4326, which was unaffected. And test/wfs_100 tests EPSG:32615 which was affected, but in WFS 1.0, there's no axis swapping... Even Le jeudi 19 juin 2014 07:05:19, Rahkonen Jukka (Tike) a ?crit : > Hi, > > > > EPSG:2393 is Northing-Easting > EPSG:3047 is Northing-Easting > EPSG:3067 is Easting-Northing > > How TinyOWS is planned to work it that axis should be flipped, if needed, > when srsName is given as urn. Short EPSG:xxxx should return always E-N > just like WFS 1.0.0 always. > > The old tinyows is still available at hip.latuviitta.org/cgi-bin/tinyows > and you can compare it with this release version installed from Ubuntugis > > 2393 is OK > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=EPSG:2393 Comes as > E-N > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=urn:ogc:def:crs:EPS > G::2393 Comes as N-E > > 3047 is wrong > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=EPSG:3047 Comes as > N-E, should be E-N > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=urn:ogc:def:crs:EPS > G::3047 Comes as E-N, should be N-E > > 3067 is wrong > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=EPSG:3067 Comes as > E-N, which is correct > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getf > eature&typename=lv:municipalities&maxfeatures=1&srsname=urn:ogc:def:crs:EPS > G::3067 Comes as N-E but should come as E-N > This is my default projection so this should also come as E-N but it does > not > http://XXXXXXX/cgi-bin/tinyows?service=wfs&version=1.1.0&request=get > feature&typename=lv:municipalities&maxfeatures=1 > > Here comes srtext from the database for those three and everything is OK. > > gis93=> select srid,srtext from spatial_ref_sys where srid in > (2393,3047,3067); > UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"] > ,PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMET > ER["scale_factor",1],PARAMETER["false_easting",3500000],PARAMETER["false_no > rthing",0],AUTHORITY["EPSG","2393"],AXIS["X",NORTH],AXIS["Y",EAST]] 3047 | > PROJCS["ETRS89 / > ETRS-TM35",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System_19 > 89",SPHEROID["GRS > 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0, > 0],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]] > ,UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG > ","4258"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_ > Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",2 > 7],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAM > ETER["false_northing",0],AUTHORITY["EPSG","3047"],AXIS["Northing",NORTH],AX > IS["Easting",EAST]] 3067 | PROJCS["ETRS89 / > ETRS-TM35FIN",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System > _1989",SPHEROID["GRS > 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0, > 0],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]] > ,UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG > ","4258"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_ > Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",2 > 7],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAM > ETER["false_northing",0],AUTHORITY["EPSG","3067"],AXIS["Easting",EAST],AXIS > ["Northing",NORTH]] > -- Geospatial professional services http://even.rouault.free.fr/services.html From oliver.christen at camptocamp.com Mon Jun 30 00:43:28 2014 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 30 Jun 2014 09:43:28 +0200 Subject: [mapserver-users] symbol rotation follow map rotation ? In-Reply-To: <53AD1CF6.6060209@camptocamp.com> References: <53AD1CF6.6060209@camptocamp.com> Message-ID: <53B11520.9050706@camptocamp.com> I see in the code a function "msRotateVectorSymbol" but that function doesnt seen to be called from anywhere. is it something only usable from mapscript ? > dear list > > Observed using mapserver 6.0.1, I have noticed that symbol rotation > doesn't seem to follow map rotation, ie. the symbols keep the same > absolute angle whatever the map angle is. > I have the feeling this is a current limitation of Mapserver, as it > doesn't know if the symbol angle is an absolute value (independent of > the map angle) or relative (map angle should be added to symbol angle). > > example here: > > no map rotation (signs symbols with angle aligning them with the > streets): > http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781 > > > with map rotation (signs symbols have kept their initial angle and are > not aligned anymore): > http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&map_angle=59.99999999999999&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&angle=59.99999999999999&SRS=EPSG%3A21781 > > > could someone confirm or infirm? > > In my opinion I would prefer a relative angle calculation by default, > but that's just me :) > > thanks for reading > kind regards > Oliver > -- Camptocamp SA Oliver Christen PSE A, EPFL CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From martin.kofahl at gmail.com Mon Jun 30 00:46:50 2014 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Mon, 30 Jun 2014 09:46:50 +0200 Subject: [mapserver-users] Include data extents in WFS layer In-Reply-To: <00b101cf924f$3bc52040$b34f60c0$@net> References: <008001cf9212$61969980$24c3cc80$@net> <00b101cf924f$3bc52040$b34f60c0$@net> Message-ID: Hi Tom, are you using your own geojson template as described in Template-Driven Output doc [1]? You mal try then the [minx], [miny] or [rawminx], [rawminy] etc. tags described in the templating doc [2]. Didn't try that myself, actually. Kind regards Martin [1] http://mapserver.org/output/template_output.html#examples [2] http://mapserver.org/mapfile/template.html#format 2014-06-27 23:32 GMT+02:00 Tom : > Thanks, Martin ? that sounds like exactly what I need. Any idea how to > get this into a GeoJSON response? > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Martin Kofahl > *Sent:* Friday, June 27, 2014 4:46 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Include data extents in WFS layer > > > > Hi Tom, > > you should have an gml:boundedBy xml element in the wfs GetFeature > response which represents the extent of the returned features. > > > > Kind regards, > > Martin > > 2014-06-27 16:16 GMT+02:00 Tom : > > Hi folks, > > > > Do you know if it is possible to include the extents of the data in a WFS > response? If the BBOX I request only contains a few features , I would > like to zoom my map to their bounds. I can calculate this on the client > side, but I would prefer to have Mapserver feed me that info. > > > > Thanks!! > > > > Tom > > > > > > > _______________________________________________ > 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 HSO at kmd.dk Mon Jun 30 03:26:01 2014 From: HSO at kmd.dk (=?iso-8859-1?Q?St=F8rner=2EHenrik_Juul_HSO?=) Date: Mon, 30 Jun 2014 10:26:01 +0000 Subject: [mapserver-users] Mapcache on Windows with IIS - any binaries available? In-Reply-To: <53AD7CD3.2010003@neplan.ch> References: <53AD7CD3.2010003@neplan.ch> Message-ID: Hi Michal, Michael Kleih wrote: > No, I am running both Mapserver and Mapcache with IIS. I assume you compiled it yourself? I am working on that, since I got my hands on a Visual C compiler. If you have any tips on how to do it, I would like to hear about it. Right now I have the dependencies compiled (apr, fastcgi, pcre, sqlite, cmake, libcurl, libjpeg, libpng, zlib) so I am getting there. Just need to persuade the mapcache cmake file that I have all of the libraries installed ... Thanks, Henrik On 27.06.2014 09:57, St?rner.Henrik Juul HSO wrote: > Hi, > > Mark Volz wrote: >> Someone can correct me if I am wrong, but It is my understanding that >> mapcache will only work with apache. > My understanding is that mapcache can run either as an Apache module, > or as a (Fast)CGI application - see > http://mapserver.org/mapcache/install.html#cgi-fastcgi-specific-instru > ctions > > I am pursuing the CGI method due to some external desires for sticking with a 'pure' Windows+IIS solution, but if that is not possible then I totally agree that Apache is the way to go. > > Regards, > Henrik > Vi g?r opm?rksom p?, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedh?ftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan p?virke computeren eller it-systemet, hvori den modtages og l?ses, ?bnes den p? modtagerens eget ansvar. Vi p?tager os ikke noget ansvar for tab og skade, som er opst?et i forbindelse med at modtage og bruge e-mailen. Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. From tom at nthsense.net Mon Jun 30 08:02:57 2014 From: tom at nthsense.net (Tom) Date: Mon, 30 Jun 2014 11:02:57 -0400 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX Message-ID: <00d701cf9474$60f99400$22ecbc00$@net> Hi folks, I'm trying to use OGR to output GeoJSON from my WFS service. I'd like to include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection level. From the documentation, it looks like I should be able to set it up this way: OUTPUTFORMAT NAME "GEOJSON" DRIVER "OGR/GeoJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly what I need. According to the docs, it should create a bbox at the FeatureCollection and the Feature level. For me, it generates a bbox for every feature, but not one for the top-level FeatureCollection, which OGR claims to support. Does anyone have experience with this? Any idea how I could determine if this would be a Mapserver issue, or an OGR issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From aondra at lgsinnovations.com Mon Jun 30 09:13:59 2014 From: aondra at lgsinnovations.com (TrolliPolli) Date: Mon, 30 Jun 2014 09:13:59 -0700 (PDT) Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. Message-ID: <1404144839919-5148847.post@n6.nabble.com> I have installed mapcache and mapserver. I can navigate to the demo at localhost/mapcache/demo, but when I'm having difficulties doing much else. First question, when I navigate to http://localhost:9282/mapcache/?MAP=/gisDirectory/htdocs/mapserver/mymap.map&SERVICE=WMS&REQUEST=GetCapabilities I simply see the following xml file tree: OGC:WMS no title set, add some in metadata application/vnd.ogc.wms_xml image/png image/jpeg text/plain application/vnd.ogc.gml text/plain EPSG:900913 156543.03392804099712520838 78271.51696402048401068896 39135.75848201022745342925 19567.87924100512100267224 9783.93962050256050133612 4891.96981025128025066806 2445.98490512564012533403 1222.99245256282006266702 611.49622628141003133351 305.74811314070478829308 152.87405657035250783338 76.43702828517623970583 38.21851414258812695834 19.10925707129405992646 9.55462853564703173959 4.77731426782351586979 2.38865713391175793490 1.19432856695587897633 0.59716428347793950593 256 256 image/png osm no title set, add some in metadata EPSG:900913 EPSG:4326 EPSG:3857 osm OSM MapServer served map see http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu EPSG:900913 EPSG:3857 EPSG:4326 Is this normal? Or should I be actually seeing something more with a GetCapabilities request? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Mon Jun 30 09:37:46 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 30 Jun 2014 16:37:46 +0000 Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: <1404144839919-5148847.post@n6.nabble.com> References: <1404144839919-5148847.post@n6.nabble.com> Message-ID: Hi, Totally normal. That is how WMS is planned to work. Clien asks first "Hi there, server! Show me what you can!" and server answers. You will find plenty of good reading about WMS from the web including Mapserver documentation http://mapserver.org/ogc/wms_server.html. First hit for WMS + GetCapabilities for me was http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_connector/get_capabilities.htm which was very informative as well. -Jukka Rahkonen- ________________________________________ TrolliPolli wrote: > I have installed mapcache and mapserver. I can navigate to the demo at > localhost/mapcache/demo, but when I'm having difficulties doing much else. > First question, when I navigate to http://localhost:9282/mapcache/?MAP=/gisDirectory/htdocs/mapserver/mymap.map&SERVICE=WMS&REQUEST=GetCapabilities > I simply see the following xml file tree: OGC:WMS no title set, add some in metadata application/vnd.ogc.wms_xml image/png image/jpeg text/plain application/vnd.ogc.gml text/plain EPSG:900913 156543.03392804099712520838 78271.51696402048401068896 39135.75848201022745342925 19567.87924100512100267224 9783.93962050256050133612 4891.96981025128025066806 2445.98490512564012533403 1222.99245256282006266702 611.49622628141003133351 305.74811314070478829308 152.87405657035250783338 76.43702828517623970583 38.21851414258812695834 19.10925707129405992646 9.55462853564703173959 4.77731426782351586979 2.38865713391175793490 1.19432856695587897633 0.59716428347793950593 256 256 image/png osm no title set, add some in metadata EPSG:900913 EPSG:4326 EPSG:3857 osm OSM MapServer served map see http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu EPSG:900913 EPSG:3857 EPSG:4326 Is this normal? Or should I be actually seeing something more with a GetCapabilities request? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847.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 jukka.rahkonen at mmmtike.fi Mon Jun 30 09:47:04 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 30 Jun 2014 16:47:04 +0000 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: <00d701cf9474$60f99400$22ecbc00$@net> References: <00d701cf9474$60f99400$22ecbc00$@net> Message-ID: Hi, About how to test if it is an OGR issue, make a test with OGR. Capture some data for example from some Geoserver WFS and convert it into geojson with ogr2ogr ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES "http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.0.0&request=getfeature&typename=og:archsites&outputformat=application/json" See the beginning of the result { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::26713" } }, "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], "features": [ Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. -Jukka Rahkonen- ________________________________ Tom wrote: Hi folks, I?m trying to use OGR to output GeoJSON from my WFS service. I?d like to include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection level. From the documentation, it looks like I should be able to set it up this way: OUTPUTFORMAT NAME "GEOJSON" DRIVER "OGR/GeoJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly what I need. According to the docs, it should create a bbox at the FeatureCollection and the Feature level. For me, it generates a bbox for every feature, but not one for the top-level FeatureCollection, which OGR claims to support. Does anyone have experience with this? Any idea how I could determine if this would be a Mapserver issue, or an OGR issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Mon Jun 30 09:34:01 2014 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Mon, 30 Jun 2014 16:34:01 +0000 Subject: [mapserver-users] Installing MapServer on Windows Message-ID: Hi All, If you are dealing with an invariant projection for your overall MAP and an invariant one for each layer displayed, consider embedding the definition (copied from the epsg file) as one or more hard-coded PROJECTION statements embedded in the mapfile. For example, Web Mercator (3857 is defined within the epsg file as: # WGS 84 / Pseudo-Mercator <3857> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <> In place of a mapfile statement such as: PROJECTION 'init=epsg:3857' you could follow Example 3 from http://mapserver.org/mapfile/projection.html; the mapfile could contain: PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END If this is feasible in your context you would save yourself the elapsed time associated with file open/file read operations against the epsg file. - Phil Anzel USDA/NRCS contractor - Team Vistronix This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Saturday, June 28, 2014 1:00 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 77, Issue 56 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: large # of GeoTiffs mapfile/index strategy (Mark Korver) 2. Re: Installing MapServer on Windows (Jeff McKenna) 3. msCalculateScale() error (Stefanos Anastasiou) 4. Reconfiguring mapserver (Stefanos Anastasiou) ---------------------------------------------------------------------- Message: 1 Date: Fri, 27 Jun 2014 17:27:34 -0700 From: Mark Korver To: Even Rouault Cc: mapserver-users Subject: Re: [mapserver-users] large # of GeoTiffs mapfile/index strategy Message-ID: Content-Type: text/plain; charset="utf-8" Jukka, thank you for the reminder on -t_srs, I had forgotten about that. It makes sense if using the shapefile index to build that in the srs you plan to output. Now that I have been reminded of that feature of gdaltindex I can see that would be faster than parsing a large vrt file. Thanks. On Fri, Jun 27, 2014 at 1:14 PM, Even Rouault wrote: > Le vendredi 27 juin 2014 22:01:37, Rahkonen Jukka (Tike) a ?crit : > > Hi, > > > > Use gdaltindex with -t_srs http://www.gdal.org/gdaltindex.html and > > all > your > > troubles are solved. > > Jukka's advice is good, make sure to use MapServer 6.4 for mixed SRS > support. > You'll likely have to use -t_srs EPSG:4326 to have a SRS that is > compatible with 9 UTM zones (or any other global SRS). > > There's no spatial index mechanism within VRT files. If the number of > files in a VRT is reasonnably small (let's say < 100), the performance > should still be OK hopefully. > > > > > Jukka Rahkonen > > > > ________________________________ > > L?hett?j?: Mark Korver > > L?hetetty: ?27.?6.?2014 21:57 > > Vastaanottaja: > > mapserver-users > > Aihe: [mapserver-users] large # of GeoTiffs mapfile/index strategy > > > > Hi Experts, > > I need a little advice on how to do lots of aerial image GeoTiffs > quickly. > > I have a large region with many GeoTiffs covering 9 UTM zones. > > Typically > I > > would put together a map file with layers per utm zone and use > > shapefile index to point at the GeoTiffs. I know that declaring the > > extent per > layer > > is important when you have a lot of layers. The GeoTiffs are RGB, > > internally tiled, and jpeg compressed. They are also about 20-30MB > > in size. > > > > My question is, has anyone done any testing between doing this via > > shapefile index vs GDAL .vrt files? Which would perform faster? My > current > > setup is using Mapserver behind nginx in fastcgi mode. > > Thanks for any help on this. > > -- > Geospatial professional services > http://even.rouault.free.fr/services.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Sat, 28 Jun 2014 10:43:55 +0200 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Installing MapServer on Windows Message-ID: <53AE804B.5030103 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 Hi, On IIS systems I often have to set the PROJ_LIB system environment variable, to the location of the 'epsg' file, and then reboot the server, such as: Variable: PROJ_LIB Value: C:\ms4w\proj\nad -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-06-27, 11:11 PM, Kris Spring wrote: > Howdy, > > I've got a dump of a NASA World Wind map database and I'm trying to > setup a standalone map environment. Not sure if anyone has done this > before, but the documentation isn't exactly up to date or complete. > > Here's my setup: > Windows 7 64-bit > MapServer 6.4.1 > > I've installed MapServer and have modified IIS7 so that I can run > mapserv.exe. The NASA World Wind comes with a .map file and basically > everything that I need. When I try to bring up the .map file I get the > following error: > > Sample url: > localhost/mapserver/mapserv.exe?map=/nasaww.map&request=getacpabilities&service=wms > > msProcessProjection(): Projection library error. proj error "Permission > denied" for "init=epsg:4326" > > I've tried looking at permissions and opening everything up just to see > if I can get it to work, but no dice. Anyone have any ideas? > > Thanks, > Kris > > ------------------------------ Message: 3 Date: Sat, 28 Jun 2014 13:34:44 +0100 From: Stefanos Anastasiou To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] msCalculateScale() error Message-ID: <1403958884.47549.YahooMailNeo at web171804.mail.ir2.yahoo.com> Content-Type: text/plain; charset="iso-8859-7" Hello..! ?:-) I'm having a map in browse mode with a simple function taken from the tutorial 1.9 in?http://demo.mapserver.org/. ?I use ogrinfo in order to get the extent and enter it to the mapfile. When I click on the image I get the following error "msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000."? When I run it map mode everything is OK but in browse mode it's gives me that. Does it have to do with the UNITS maybe?? Thanks!? -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 4 Date: Sat, 28 Jun 2014 16:52:59 +0100 From: Stefanos Anastasiou To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] Reconfiguring mapserver Message-ID: <1403970779.45099.YahooMailNeo at web171804.mail.ir2.yahoo.com> Content-Type: text/plain; charset="iso-8859-7" Hello list..!! I'm using mapserver 6.2.0. ?The command mapserv -v gives me the output: MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE I assume there are some things missing here like proj, gdal, wfs and wms. Can I have some help in reconfiguring it?? Thanks a lot? -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 77, Issue 56 *********************************************** From aondra at lgsinnovations.com Mon Jun 30 09:53:22 2014 From: aondra at lgsinnovations.com (TrolliPolli) Date: Mon, 30 Jun 2014 09:53:22 -0700 (PDT) Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: References: <1404144839919-5148847.post@n6.nabble.com> Message-ID: <1404147202635-5148852.post@n6.nabble.com> Thank you for the response! In that case, how do I go about actually opening my map? I've tried using the url: http://localhost/mapcache/?map=/gisDirectory/osm-outlined,google,usshields.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=borders1&STYLES=&SRS=EPSG:4326%20&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=800&HEIGHT=800&FORMAT=image/png to open my map "osm-outlined,google,usshields.map" (note that I generated this using the tutorial found HERE ) which has many layers, one of which being named borders1. This simply says "The webpage is not available" and in my error log file I find: received wms request with invalid layer "borders1" I've tried using layers other than borders1, but I always get this error. I can post the whole map file if this would help, but it is rather large as I generated it for a large OSM map. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847p5148852.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Mon Jun 30 10:00:10 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 30 Jun 2014 17:00:10 +0000 Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: <1404147202635-5148852.post@n6.nabble.com> References: <1404144839919-5148847.post@n6.nabble.com> , <1404147202635-5148852.post@n6.nabble.com> Message-ID: Hi, Your URL is wrong. Read this also http://www.mapserver.org/mapcache/install.html and follow the examples. If you find that documantation is poor or wrong, suggest how to improve it. -Jukka Rahkonen- ________________________________________ TrolliPolli wrote: Thank you for the response! In that case, how do I go about actually opening my map? I've tried using the url: http://localhost/mapcache/?map=/gisDirectory/osm-outlined,google,usshields.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=borders1&STYLES=&SRS=EPSG:4326%20&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=800&HEIGHT=800&FORMAT=image/png to open my map "osm-outlined,google,usshields.map" (note that I generated this using the tutorial found HERE ) which has many layers, one of which being named borders1. This simply says "The webpage is not available" and in my error log file I find: received wms request with invalid layer "borders1" I've tried using layers other than borders1, but I always get this error. I can post the whole map file if this would help, but it is rather large as I generated it for a large OSM map. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847p5148852.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 aondra at lgsinnovations.com Mon Jun 30 10:21:49 2014 From: aondra at lgsinnovations.com (TrolliPolli) Date: Mon, 30 Jun 2014 10:21:49 -0700 (PDT) Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: References: <1404144839919-5148847.post@n6.nabble.com> <1404147202635-5148852.post@n6.nabble.com> Message-ID: <1404148909923-5148854.post@n6.nabble.com> I have tried following those directions but I get a map that won't load (shows broken file icons) and my error log is spammed with: failed to request url... SSL certificate Problem: unable to get local issuer certificate, referer: http://localhost/mapcache/demo/wms -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847p5148854.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tom at nthsense.net Mon Jun 30 10:51:52 2014 From: tom at nthsense.net (Tom) Date: Mon, 30 Jun 2014 13:51:52 -0400 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: References: <00d701cf9474$60f99400$22ecbc00$@net> Message-ID: <00f001cf948b$fa2b4b20$ee81e160$@net> Thanks, Jukka. I see that Geoserver is including the FeatureCollection bbox, but my GeoJSON from Mapserver is not. If I take the json from my WFS call and run it through ogr2ogr as you suggested, the output is an exact copy of the original. I still get bbox for the individual features, but not the feature collection. I tried GDAL 1.9 and 2.0-dev. Perhaps there is something missing from my layer configuration, or could it be that Geoserver has this capability but Mapserver does not? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Monday, June 30, 2014 12:47 PM To: Tom; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX Hi, About how to test if it is an OGR issue, make a test with OGR. Capture some data for example from some Geoserver WFS and convert it into geojson with ogr2ogr ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES "http://demo.opengeo.org/geoserver/wfs?service=wfs &version=1.0.0&request=getfeature&typename=og:archsites&outputformat=applica tion/json" See the beginning of the result { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::26713" } }, "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], "features": [ Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. -Jukka Rahkonen- _____ Tom wrote: Hi folks, I'm trying to use OGR to output GeoJSON from my WFS service. I'd like to include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection level. From the documentation, it looks like I should be able to set it up this way: OUTPUTFORMAT NAME "GEOJSON" DRIVER "OGR/GeoJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly what I need. According to the docs, it should create a bbox at the FeatureCollection and the Feature level. For me, it generates a bbox for every feature, but not one for the top-level FeatureCollection, which OGR claims to support. Does anyone have experience with this? Any idea how I could determine if this would be a Mapserver issue, or an OGR issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Mon Jun 30 10:55:16 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 30 Jun 2014 17:55:16 +0000 Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: <1404147202635-5148852.post@n6.nabble.com> References: <1404144839919-5148847.post@n6.nabble.com> , <1404147202635-5148852.post@n6.nabble.com> Message-ID: Hi, I sort of hate our Mapserver tutorials because they jump directly to some fancy advanced features which for sure look good when everything works but if not then the poor new users are left all alone. In your case something has lead you to use ridiculous BBOX. EPSG:4326 is using degrees as units and the world is between -90/+90 and -180/+180 degrees. Your BBOX, if it works, is a really big big world. I guess you want to use EPSG:3857 (900913). But there is the first problem that layer "borders1" is somehow faulty and even with a good BBOX you will not see a map and you have no idea what is wrong. Also "http://localhost/mapcache/?map" cannot be right. Check the URL where mapcache WMS service should be. http://localhost/mapcache/?map=/gisDirectory/osm-outlined,google,usshields.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=borders1&STYLES=&SRS=EPSG:4326%20&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=800&HEIGHT=800&FORMAT=image/png I am sure that I can guide your through your troubles but unfortunately I am quite busy for the next few days. Meanwhile you can read Mapserver documentation about basic WMS use and perhaps set ut a simple layer from a shapefile. You can also read my own tutorial from http://latuviitta.org/documents/Super_easy_WMS_server.pdf. It is quite old and I have not tested lately if it is still valid. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän TrolliPolli [aondra at lgsinnovations.com] puolesta L?hetetty: 30. kes?kuuta 2014 19:53 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Can't get mapcache/mapserver to properly display a map. Thank you for the response! In that case, how do I go about actually opening my map? I've tried using the url: http://localhost/mapcache/?map=/gisDirectory/osm-outlined,google,usshields.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=borders1&STYLES=&SRS=EPSG:4326%20&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=800&HEIGHT=800&FORMAT=image/png to open my map "osm-outlined,google,usshields.map" (note that I generated this using the tutorial found HERE ) which has many layers, one of which being named borders1. This simply says "The webpage is not available" and in my error log file I find: received wms request with invalid layer "borders1" I've tried using layers other than borders1, but I always get this error. I can post the whole map file if this would help, but it is rather large as I generated it for a large OSM map. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847p5148852.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 aondra at lgsinnovations.com Mon Jun 30 10:58:17 2014 From: aondra at lgsinnovations.com (TrolliPolli) Date: Mon, 30 Jun 2014 10:58:17 -0700 (PDT) Subject: [mapserver-users] Can't get mapcache/mapserver to properly display a map. In-Reply-To: References: <1404144839919-5148847.post@n6.nabble.com> <1404147202635-5148852.post@n6.nabble.com> Message-ID: <1404151097027-5148863.post@n6.nabble.com> Thanks for your help. I'll do some more troubleshooting on my own using your advice and post back if I can't figure it out. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847p5148863.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Mon Jun 30 11:48:03 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 30 Jun 2014 18:48:03 +0000 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: <00f001cf948b$fa2b4b20$ee81e160$@net> References: <00d701cf9474$60f99400$22ecbc00$@net> , <00f001cf948b$fa2b4b20$ee81e160$@net> Message-ID: Hi, Perhaps it is your GDAL version that does not write the BBOX for the collection? This gets GML from Mapserver WFS and converts it into geojson ogr2ogr -f geojson test_ms.json -lco WRITE_BBOX=YES "http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs&version=1.0.0&request=getfeature&typename=municipalities&maxfeatures=10" Result begins { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3067" } }, "bbox": [ 349631.3148, 7066945.4181, 673079.7106, 7776424.2258 ], "features": [ -Jukka- ________________________________ Tom wrote: Thanks, Jukka. I see that Geoserver is including the FeatureCollection bbox, but my GeoJSON from Mapserver is not. If I take the json from my WFS call and run it through ogr2ogr as you suggested, the output is an exact copy of the original. I still get bbox for the individual features, but not the feature collection. I tried GDAL 1.9 and 2.0-dev. Perhaps there is something missing from my layer configuration, or could it be that Geoserver has this capability but Mapserver does not? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Monday, June 30, 2014 12:47 PM To: Tom; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX Hi, About how to test if it is an OGR issue, make a test with OGR. Capture some data for example from some Geoserver WFS and convert it into geojson with ogr2ogr ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES "http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.0.0&request=getfeature&typename=og:archsites&outputformat=application/json" See the beginning of the result { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::26713" } }, "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], "features": [ Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. -Jukka Rahkonen- ________________________________ Tom wrote: Hi folks, I?m trying to use OGR to output GeoJSON from my WFS service. I?d like to include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection level. From the documentation, it looks like I should be able to set it up this way: OUTPUTFORMAT NAME "GEOJSON" DRIVER "OGR/GeoJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly what I need. According to the docs, it should create a bbox at the FeatureCollection and the Feature level. For me, it generates a bbox for every feature, but not one for the top-level FeatureCollection, which OGR claims to support. Does anyone have experience with this? Any idea how I could determine if this would be a Mapserver issue, or an OGR issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at nthsense.net Mon Jun 30 13:23:58 2014 From: tom at nthsense.net (Tom) Date: Mon, 30 Jun 2014 16:23:58 -0400 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: References: <00d701cf9474$60f99400$22ecbc00$@net> , <00f001cf948b$fa2b4b20$ee81e160$@net> Message-ID: <010401cf94a1$3a504ba0$aef0e2e0$@net> Hi Jukka, That service you are fetching from returns the gml:boundedBy element, which would correspond directly to the bbox of the FeatureCollection. If I use GML which already has the boundedBy element in it, ogr2ogr does in fact return a bbox at the FeatureCollection level. When I request my layer as GML, it returns a boundedBy element. When I request it as GeoJSON, the bbox is not there. I think this points to a Mapserver issue. Do you agree? Tom From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Monday, June 30, 2014 2:48 PM To: Tom; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX Hi, Perhaps it is your GDAL version that does not write the BBOX for the collection? This gets GML from Mapserver WFS and converts it into geojson ogr2ogr -f geojson test_ms.json -lco WRITE_BBOX=YES "http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs &version=1.0.0&request=getfeature&typename=municipalities&maxfeatures=10" Result begins { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3067" } }, "bbox": [ 349631.3148, 7066945.4181, 673079.7106, 7776424.2258 ], "features": [ -Jukka- _____ Tom wrote: Thanks, Jukka. I see that Geoserver is including the FeatureCollection bbox, but my GeoJSON from Mapserver is not. If I take the json from my WFS call and run it through ogr2ogr as you suggested, the output is an exact copy of the original. I still get bbox for the individual features, but not the feature collection. I tried GDAL 1.9 and 2.0-dev. Perhaps there is something missing from my layer configuration, or could it be that Geoserver has this capability but Mapserver does not? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Monday, June 30, 2014 12:47 PM To: Tom; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX Hi, About how to test if it is an OGR issue, make a test with OGR. Capture some data for example from some Geoserver WFS and convert it into geojson with ogr2ogr ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES "http://demo.opengeo.org/geoserver/wfs?service=wfs &version=1.0.0&request=getfeature&typename=og:archsites&outputformat=applica tion/json" See the beginning of the result { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::26713" } }, "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], "features": [ Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. -Jukka Rahkonen- _____ Tom wrote: Hi folks, I'm trying to use OGR to output GeoJSON from my WFS service. I'd like to include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection level. From the documentation, it looks like I should be able to set it up this way: OUTPUTFORMAT NAME "GEOJSON" DRIVER "OGR/GeoJSON" MIMETYPE "application/json; subtype=geojson" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=SIMPLE" FORMATOPTION "LCO:WRITE_BBOX=YES" END According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly what I need. According to the docs, it should create a bbox at the FeatureCollection and the Feature level. For me, it generates a bbox for every feature, but not one for the top-level FeatureCollection, which OGR claims to support. Does anyone have experience with this? Any idea how I could determine if this would be a Mapserver issue, or an OGR issue? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Mon Jun 30 13:58:05 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 30 Jun 2014 22:58:05 +0200 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: <010401cf94a1$3a504ba0$aef0e2e0$@net> References: <00d701cf9474$60f99400$22ecbc00$@net> <010401cf94a1$3a504ba0$aef0e2e0$@net> Message-ID: <201406302258.05679.even.rouault@mines-paris.org> Le lundi 30 juin 2014 22:23:58, Tom a ?crit : > Hi Jukka, > > > > That service you are fetching from returns the gml:boundedBy element, which > would correspond directly to the bbox of the FeatureCollection. If I use > GML which already has the boundedBy element in it, ogr2ogr does in fact > return a bbox at the FeatureCollection level. When I request my layer as > GML, it returns a boundedBy element. When I request it as GeoJSON, the > bbox is not there. I think this points to a Mapserver issue. Do you > agree? I don't think so. I've just tested adding your outputformat definition in a Mapfile and I get the bbox at FeatureCollection level : $ mapserv QUERY_STRING="map=test_geojson.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&OUTPUTFORMAT=geojson" Content-Disposition: attachment; filename=result.dat Content-Type: application/json; subtype=geojson { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3978" } }, "bbox": [ 2279399.0, -55344.50390625, 2600377.0, 461586.8125 ], "features": [ ...snip... ] } I've only tested with mapserver master and GDAL trunk, but don't see why it wouldn't work with GDAL >= 1.9. > > > > Tom > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen > Jukka (Tike) > Sent: Monday, June 30, 2014 2:48 PM > To: Tom; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX > > > > Hi, > > Perhaps it is your GDAL version that does not write the BBOX for the > collection? This gets GML from Mapserver WFS and converts it into geojson > > ogr2ogr -f geojson test_ms.json -lco WRITE_BBOX=YES > "http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs > r equest=getfeature&typename=municipalities&maxfeatures=10> > &version=1.0.0&request=getfeature&typename=municipalities&maxfeatures=10" > > Result begins > > { > "type": "FeatureCollection", > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:EPSG::3067" } }, > "bbox": [ 349631.3148, 7066945.4181, 673079.7106, 7776424.2258 ], > "features": [ > > -Jukka- > > _____ > > Tom wrote: > > Thanks, Jukka. I see that Geoserver is including the FeatureCollection > bbox, but my GeoJSON from Mapserver is not. If I take the json from my WFS > call and run it through ogr2ogr as you suggested, the output is an exact > copy of the original. I still get bbox for the individual features, but > not the feature collection. I tried GDAL 1.9 and 2.0-dev. Perhaps there > is something missing from my layer configuration, or could it be that > Geoserver has this capability but Mapserver does not? > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen > Jukka (Tike) > Sent: Monday, June 30, 2014 12:47 PM > To: Tom; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX > > > > Hi, > > About how to test if it is an OGR issue, make a test with OGR. Capture some > data for example from some Geoserver WFS and convert it into geojson with > ogr2ogr > > ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES > "http://demo.opengeo.org/geoserver/wfs?service=wfs > t feature&typename=og:archsites&outputformat=application/json> > &version=1.0.0&request=getfeature&typename=og:archsites&outputformat=applic > a tion/json" > > See the beginning of the result > > { > "type": "FeatureCollection", > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:EPSG::26713" } }, > "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], > "features": [ > > Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. > > -Jukka Rahkonen- > > _____ > > Tom wrote: > > Hi folks, > > > > I'm trying to use OGR to output GeoJSON from my WFS service. I'd like to > include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection > level. From the documentation, it looks like I should be able to set it up > this way: > > > > OUTPUTFORMAT > > NAME "GEOJSON" > > DRIVER "OGR/GeoJSON" > > MIMETYPE "application/json; subtype=geojson" > > FORMATOPTION "STORAGE=memory" > > FORMATOPTION "FORM=SIMPLE" > > FORMATOPTION "LCO:WRITE_BBOX=YES" > > END > > > > According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly > what I need. According to the docs, it should create a bbox at the > FeatureCollection and the Feature level. For me, it generates a bbox for > every feature, but not one for the top-level FeatureCollection, which OGR > claims to support. > > > > Does anyone have experience with this? Any idea how I could determine if > this would be a Mapserver issue, or an OGR issue? > > > > Thanks, > > > > Tom -- Geospatial professional services http://even.rouault.free.fr/services.html From tom at nthsense.net Mon Jun 30 14:02:50 2014 From: tom at nthsense.net (Tom) Date: Mon, 30 Jun 2014 17:02:50 -0400 Subject: [mapserver-users] OGR/GeoJSON WRITE_BBOX In-Reply-To: <201406302258.05679.even.rouault@mines-paris.org> References: <00d701cf9474$60f99400$22ecbc00$@net> <010401cf94a1$3a504ba0$aef0e2e0$@net> <201406302258.05679.even.rouault@mines-paris.org> Message-ID: <011201cf94a6$a7a9d180$f6fd7480$@net> Interesting - I too am using GDAL 1.9. Can you suggest anything else I can try? I'm kind of at a loss as to how to narrow this down further. Thanks for trying it out. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Even Rouault Sent: Monday, June 30, 2014 4:58 PM To: mapserver-users at lists.osgeo.org Cc: Tom Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX Le lundi 30 juin 2014 22:23:58, Tom a ?crit : > Hi Jukka, > > > > That service you are fetching from returns the gml:boundedBy element, > which would correspond directly to the bbox of the FeatureCollection. > If I use GML which already has the boundedBy element in it, ogr2ogr > does in fact return a bbox at the FeatureCollection level. When I > request my layer as GML, it returns a boundedBy element. When I > request it as GeoJSON, the bbox is not there. I think this points to > a Mapserver issue. Do you agree? I don't think so. I've just tested adding your outputformat definition in a Mapfile and I get the bbox at FeatureCollection level : $ mapserv QUERY_STRING="map=test_geojson.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&OUTPUTFORMAT=geojson" Content-Disposition: attachment; filename=result.dat Content-Type: application/json; subtype=geojson { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3978" } }, "bbox": [ 2279399.0, -55344.50390625, 2600377.0, 461586.8125 ], "features": [ ...snip... ] } I've only tested with mapserver master and GDAL trunk, but don't see why it wouldn't work with GDAL >= 1.9. > > > > Tom > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen > Jukka (Tike) > Sent: Monday, June 30, 2014 2:48 PM > To: Tom; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX > > > > Hi, > > Perhaps it is your GDAL version that does not write the BBOX for the > collection? This gets GML from Mapserver WFS and converts it into > geojson > > ogr2ogr -f geojson test_ms.json -lco WRITE_BBOX=YES > "http://hip.latuviitta.org/cgi-bin/mapserver_wfs?service=wfs > .0.0& r equest=getfeature&typename=municipalities&maxfeatures=10> > &version=1.0.0&request=getfeature&typename=municipalities&maxfeatures=10" > > Result begins > > { > "type": "FeatureCollection", > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:EPSG::3067" } }, > "bbox": [ 349631.3148, 7066945.4181, 673079.7106, 7776424.2258 ], > "features": [ > > -Jukka- > > _____ > > Tom wrote: > > Thanks, Jukka. I see that Geoserver is including the > FeatureCollection bbox, but my GeoJSON from Mapserver is not. If I > take the json from my WFS call and run it through ogr2ogr as you > suggested, the output is an exact copy of the original. I still get > bbox for the individual features, but not the feature collection. I > tried GDAL 1.9 and 2.0-dev. Perhaps there is something missing from > my layer configuration, or could it be that Geoserver has this capability but Mapserver does not? > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen > Jukka (Tike) > Sent: Monday, June 30, 2014 12:47 PM > To: Tom; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR/GeoJSON WRITE_BBOX > > > > Hi, > > About how to test if it is an OGR issue, make a test with OGR. Capture > some data for example from some Geoserver WFS and convert it into > geojson with ogr2ogr > > ogr2ogr -f geojson test.json -lco WRITE_BBOX=YES > "http://demo.opengeo.org/geoserver/wfs?service=wfs > st=ge t feature&typename=og:archsites&outputformat=application/json> > &version=1.0.0&request=getfeature&typename=og:archsites&outputformat=a > pplic > a tion/json" > > See the beginning of the result > > { > "type": "FeatureCollection", > "crs": { "type": "name", "properties": { "name": > "urn:ogc:def:crs:EPSG::26713" } }, > "bbox": [ 589860.0, 4914479.0, 608355.0, 4926490.0 ], > "features": [ > > Conclusion: ogr2ogr can do it. My version is GDAL 2.0-dev. > > -Jukka Rahkonen- > > _____ > > Tom wrote: > > Hi folks, > > > > I'm trying to use OGR to output GeoJSON from my WFS service. I'd like > to include the BBOX (equivalent of gml:boundedBy) at the > FeatureCollection level. From the documentation, it looks like I > should be able to set it up this way: > > > > OUTPUTFORMAT > > NAME "GEOJSON" > > DRIVER "OGR/GeoJSON" > > MIMETYPE "application/json; subtype=geojson" > > FORMATOPTION "STORAGE=memory" > > FORMATOPTION "FORM=SIMPLE" > > FORMATOPTION "LCO:WRITE_BBOX=YES" > > END > > > > According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is > exactly what I need. According to the docs, it should create a bbox > at the FeatureCollection and the Feature level. For me, it generates > a bbox for every feature, but not one for the top-level > FeatureCollection, which OGR claims to support. > > > > Does anyone have experience with this? Any idea how I could determine > if this would be a Mapserver issue, or an OGR issue? > > > > Thanks, > > > > Tom -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From olivier.courtin at gmail.com Mon Jun 30 15:33:18 2014 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Tue, 1 Jul 2014 00:33:18 +0200 Subject: [mapserver-users] TinyOWS: Axis order fix wanted In-Reply-To: <201406282338.47120.even.rouault@mines-paris.org> References: <201406182356.08861.even.rouault@mines-paris.org> <201406282338.47120.even.rouault@mines-paris.org> Message-ID: On Sat, Jun 28, 2014 at 11:38 PM, Even Rouault wrote: > The following pull request should fix Jukka's issue : > > https://github.com/mapserver/tinyows/pull/65 I've just commited the pull request. Thanks for this one Even, Jukka could you check on your own that everything is fine for you ? -- Olivier From rwhite at edrnet.com Mon Jun 30 18:01:51 2014 From: rwhite at edrnet.com (Richard W. White) Date: Mon, 30 Jun 2014 18:01:51 -0700 (PDT) Subject: [mapserver-users] ows_http_max_age Message-ID: <1404176511826-5148901.post@n6.nabble.com> I'm having an issue setting the cache-control max-age parameter in my Mapfile. I'm not using MapCache. Using fiddler, I'm seeing that the max-age is being set in the header. However, there is an warning message that because the last modified parameter isn't also set, the max-age test won't be honored. I'm not seeing anything in either MapServer or in Apache that will explains this. Thanks, Richard -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ows-http-max-age-tp5148901.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cjolson64 at gmail.com Mon Jun 30 23:28:23 2014 From: cjolson64 at gmail.com (cjolson) Date: Mon, 30 Jun 2014 23:28:23 -0700 (PDT) Subject: [mapserver-users] shp2img working, mapserv not Message-ID: <1404196103122-5148920.post@n6.nabble.com> Hi all, thanks in advance for any help on this. I've been trying to create a layer of tiled geotiffs. I made a .shp file index with gdaltindex and am referencing this in the layer. When I run shp2img locally I get a correct .png image, but when I try to call mapserv from a web browser with the url: http://192.168.1.200/cgi-bin/mapserv?map=/var/www/html/topex/srtm.map&layer=SRTM30_plus&mode=map I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'SRTM30_Plus'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/var/www/html/topex/../../data/SRTM/srtm30_plus_geotiff/topoN0E0.tiff' for layer 'SRTM30_Plus'. I have the same results trying to look at each of the GeoTIFFs individually. Here is the mapfile I'm working with: MAP NAME Global_Grid SIZE 1200 600 UNITS dd EXTENT -180 -84 180 84 CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" DEBUG 5 LAYER NAME SRTM30_Plus STATUS DEFAULT TYPE RASTER TILEINDEX "../../data/SRTM/srtm_index.shp" END END I suspect it may be a permissions problem with the apache server, but I am currently at a loss. Any help would be appreciated. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/shp2img-working-mapserv-not-tp5148920.html Sent from the Mapserver - User mailing list archive at Nabble.com.