From lgnemmi at rgd73-74.fr Fri Jun 1 02:30:03 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Fri, 1 Jun 2012 02:30:03 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? Message-ID: <1338543003958-4978491.post@n6.nabble.com> Hi List, Is there any option in the seeder to delete a whole zoom level? I've no space left on my device and i don't want to delete my whole tileset :( Thanks for your help. Ludovic ps:using Berkeley DB cache size: maybe there's a bdb command line tool to do this job? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Fri Jun 1 08:14:36 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 01 Jun 2012 11:14:36 -0400 Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <1338543003958-4978491.post@n6.nabble.com> References: <1338543003958-4978491.post@n6.nabble.com> Message-ID: <4FC8DC5C.1080101@mapgears.com> Have you tried the mapcache_seed with the delete mode? something like:-m delete -z 10,10 , to delete the zoom level 10. Alan On 12-06-01 05:30 AM, Ludovic Gnemmi wrote: > Hi List, > Is there any option in the seeder to delete a whole zoom level? > I've no space left on my device and i don't want to delete my whole tileset > :( > > Thanks for your help. > > Ludovic > > ps:using Berkeley DB cache size: maybe there's a bdb command line tool to do > this job? > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491.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 -- Alan Boudreault http://www.mapgears.com/ From ian.walberg at airborne.aero Fri Jun 1 14:23:01 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 1 Jun 2012 17:23:01 -0400 Subject: [mapserver-users] Outlining label text Message-ID: Hello folks, We are using labels with 2 lines of text and the wrap/align works well. Then we want to draw a background and an outline for the combined text. This works ok using the style in the label and GEOTRANSFORM labelpoly. The problem we have is we can only get a 1 pixel border so that the outline is just too close. What do we need to know to draw the outline a little further out? Thanks Ian From ian.walberg at airborne.aero Fri Jun 1 14:36:31 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 1 Jun 2012 17:36:31 -0400 Subject: [mapserver-users] Outlining label text Message-ID: As soon as I wrote this I think I have the answer. This draws 2 outlines with the colour and outline colour the same. The first one uses the outline width to extend the border around the text. The second one is bigger and a different colour we of course get an outline. Ian STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 12.0 END STYLE GEOMTRANSFORM 'labelpoly' COLOR 100 100 100 OUTLINECOLOR 100 100 100 WIDTH 8.0 END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Friday, June 01, 2012 2:23 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Outlining label text Hello folks, We are using labels with 2 lines of text and the wrap/align works well. Then we want to draw a background and an outline for the combined text. This works ok using the style in the label and GEOTRANSFORM labelpoly. The problem we have is we can only get a 1 pixel border so that the outline is just too close. What do we need to know to draw the outline a little further out? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Fri Jun 1 14:27:52 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 1 Jun 2012 17:27:52 -0400 Subject: [mapserver-users] Maps for 16 bit displays Message-ID: Hello folks, We need to render maps for a system which has a 16 bit colour (yes I am English) depth. Currently we render the images at 24 bit (888) and they look fabulous. However when they are rendered on the target hardware they are crudely reduced to (565) and this causes some horrible artefacts and banding. Our best guess is that the lower bits are just being discarded. So now we understand the problem the question is what we can do to generate the map images with a reduce RGB range so that they are displayed correctly. Having a look at the various options we cannot see anything between 256 colour and 24 bit colour which would help. Anyone have any good ideas? Thanks Ian From sam at planyukon.ca Fri Jun 1 16:33:31 2012 From: sam at planyukon.ca (Sam Skinner) Date: Fri, 01 Jun 2012 16:33:31 -0700 Subject: [mapserver-users] Scripted geoprocessing Message-ID: <4FC9514B.2010601@planyukon.ca> Hi all, I am writing a python script that will (weekly) download and extract data (shapefiles) from an organization without a WMS or WFS. This script will reside on my linux-based mapserver (5.6). I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. Any ideas on how I could do this? From what I understand (which isn't much!), I could import the data into PostGIS, then run some query there. Is there a simpler way? Is anyone familiar with Sextante, and would that work? Thanks! -- Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council From scott159 at free.fr Sat Jun 2 08:19:21 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Sat, 2 Jun 2012 17:19:21 +0200 (CEST) Subject: [mapserver-users] - Hadoop In-Reply-To: <282997462.185369875.1338650341093.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <532523659.185370063.1338650361291.JavaMail.root@zimbra34-e6.priv.proxad.net> Is there anyone how to use mapserver with clusters hadoop ? From aperi2007 at gmail.com Sun Jun 3 08:10:07 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 3 Jun 2012 17:10:07 +0200 Subject: [mapserver-users] Failed to connect to github Message-ID: Hi, try-ing to update the trunk versionI'm having this error: >* Failed connect to github.com:8080; Operation now in progress >* Expire cleared >* Closing connection #0 >error: Failed connect to github.com:8080; Operation now in progress while accessing https://github.com/mapserver/mapserver/info/refs > >fatal: HTTP request failed I use this call: git clone https://github.com/mapserver/mapserver mapserver-svn Any hint ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Sun Jun 3 12:38:36 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Sun, 3 Jun 2012 21:38:36 +0200 Subject: [mapserver-users] Failed to connect to github In-Reply-To: References: Message-ID: Hello, This below will be better :) git clone https://github.com/mapserver/mapserver.git mapserver-svn Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Jun 3 12:54:31 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 3 Jun 2012 21:54:31 +0200 Subject: [mapserver-users] Failed to connect to github In-Reply-To: References: Message-ID: Hi, thx for response. I try your sintax, but it don't seem work anymore. :( >* Failed connect to github.com:8080; Operation now in progress >* Expire cleared >* Closing connection #0 >error: Failed connect to github.com:8080; Operation now in progress while accessing https://github.com/mapserver/mapserver.git/info/refs fatal: HTTP request failed 2012/6/3 Thomas Gratier > Hello, > > This below will be better :) > git clone https://github.com/mapserver/mapserver.git mapserver-svn > > Regards > > ThomasG > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Sun Jun 3 12:56:27 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Sun, 3 Jun 2012 14:56:27 -0500 Subject: [mapserver-users] Failed to connect to github In-Reply-To: References: Message-ID: works just fine $git clone https://github.com/mapserver/mapserver.git Cloning into 'mapserver'... remote: Counting objects: 45832, done. remote: Compressing objects: 100% (11217/11217), done. remote: Total 45832 (delta 34576), reused 45785 (delta 34530) Receiving objects: 100% (45832/45832), 15.24 MiB | 1.56 MiB/s, done. Resolving deltas: 100% (34576/34576), done. On Jun 3, 2012, at 2:54 PM, Andrea Peri wrote: > Hi, > thx for response. > > I try your sintax, but it don't seem work anymore. :( > >> * Failed connect to github.com:8080; Operation now in progress >> * Expire cleared >> * Closing connection #0 >> error: Failed connect to github.com:8080; Operation now in progress while > accessing https://github.com/mapserver/mapserver.git/info/refs > > fatal: HTTP request failed > > > 2012/6/3 Thomas Gratier > >> Hello, >> >> This below will be better :) >> git clone https://github.com/mapserver/mapserver.git mapserver-svn >> >> Regards >> >> ThomasG >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From umberto.nicoletti at gmail.com Sun Jun 3 21:54:06 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 4 Jun 2012 06:54:06 +0200 Subject: [mapserver-users] Failed to connect to github In-Reply-To: References: Message-ID: Andrea, are you behind a proxy? http://stackoverflow.com/questions/128035/how-do-i-pull-from-a-git-repository-through-an-http-proxy On Sunday, June 3, 2012, Andrea Peri wrote: > Hi, > thx for response. > > I try your sintax, but it don't seem work anymore. :( > > >* Failed connect to github.com:8080; Operation now in progress > >* Expire cleared > >* Closing connection #0 > >error: Failed connect to github.com:8080; Operation now in progress > while accessing https://github.com/mapserver/mapserver.git/info/refs > > fatal: HTTP request failed > > > 2012/6/3 Thomas Gratier 'cvml', 'osgeo.mailinglist at gmail.com');>> > >> Hello, >> >> This below will be better :) >> git clone https://github.com/mapserver/mapserver.git mapserver-svn >> >> Regards >> >> ThomasG >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgnemmi at rgd73-74.fr Mon Jun 4 00:52:39 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Mon, 4 Jun 2012 00:52:39 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <4FC8DC5C.1080101@mapgears.com> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> Message-ID: <1338796359150-4978902.post@n6.nabble.com> Hi Alan, I tried the mapcache_seed with delete mode as in your example but it still doesn't work :( Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491p4978902.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Mon Jun 4 05:31:49 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 04 Jun 2012 08:31:49 -0400 Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <1338796359150-4978902.post@n6.nabble.com> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> <1338796359150-4978902.post@n6.nabble.com> Message-ID: <4FCCAAB5.7070305@mapgears.com> How can it doesn't work? Any error output? Have you checked the directory of the zoom level? Alan On 12-06-04 03:52 AM, Ludovic Gnemmi wrote: > Hi Alan, > I tried the mapcache_seed with delete mode as in your example but it still > doesn't work :( > > Ludovic > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491p4978902.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 -- Alan Boudreault http://www.mapgears.com/ From lgnemmi at rgd73-74.fr Mon Jun 4 06:13:26 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Mon, 4 Jun 2012 06:13:26 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <4FCCAAB5.7070305@mapgears.com> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> <1338796359150-4978902.post@n6.nabble.com> <4FCCAAB5.7070305@mapgears.com> Message-ID: <1338815606683-4978968.post@n6.nabble.com> Hi Alan, I'm using Berkeley DB cache type so i haven't any directory. No errors. I'v just checked my bdb.db file which still has the same size :( Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491p4978968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Jun 4 06:22:11 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 4 Jun 2012 13:22:11 +0000 Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <1338815606683-4978968.post@n6.nabble.com> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> <1338796359150-4978902.post@n6.nabble.com> <4FCCAAB5.7070305@mapgears.com> <1338815606683-4978968.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63457A42@suutari.haapa.mmm.fi> Hi, Just guessing without knowing anything about Berkeley DB, but if it is like other databases it would probably need vacuuming after delete before it really frees any disk space. And if you do mass delete and Berkeley DB behaves even closely similarly than SQLite, vacuuming may be extremely slow. In that case if might be faster to copy everything that has remained in the old database into a new database but with zillions of tiles that can take a long time too. But as I said, I am just guessing. -Jukka Rahkonen- Ludovic Gnemmi wrote: > Hi Alan, > I'm using Berkeley DB cache type so i haven't any directory. > No errors. I'v just checked my bdb.db file which still has > the same size :( > Ludovic > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a > -whole-zoom-level-tp4978491p4978968.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 woodbri at swoodbridge.com Mon Jun 4 07:20:28 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Jun 2012 10:20:28 -0400 Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <84446DEF76453C439E9E97E438E13A63457A42@suutari.haapa.mmm.fi> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> <1338796359150-4978902.post@n6.nabble.com> <4FCCAAB5.7070305@mapgears.com> <1338815606683-4978968.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63457A42@suutari.haapa.mmm.fi> Message-ID: <4FCCC42C.6000607@swoodbridge.com> Ludovic' problem is that he is out of disk space so that is probably not going to work for him. If he can not free some space to start with it is likely he will have to delete the whole cache. Ludovic, You might want to write an enhancement request to mapcache, that requests each zoom level be put into a separate database file so that it is easy to monitor the disk space each zoom level uses and to quickly remove a zoom level with a system level file delete. -Steve W On 6/4/2012 9:22 AM, Rahkonen Jukka wrote: > Hi, > > Just guessing without knowing anything about Berkeley DB, but if it > is like other databases it would probably need vacuuming after delete > before it really frees any disk space. And if you do mass delete and > Berkeley DB behaves even closely similarly than SQLite, vacuuming may > be extremely slow. In that case if might be faster to copy everything > that has remained in the old database into a new database but with > zillions of tiles that can take a long time too. But as I said, I am > just guessing. > > -Jukka Rahkonen- > > Ludovic Gnemmi wrote: > >> Hi Alan, I'm using Berkeley DB cache type so i haven't any >> directory. No errors. I'v just checked my bdb.db file which still >> has the same size :( Ludovic >> >> >> >> >> -- View this message in context: >> http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a >> -whole-zoom-level-tp4978491p4978968.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 >> > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fritz.vandeventer at neo.nl Mon Jun 4 07:27:21 2012 From: fritz.vandeventer at neo.nl (Fritz van Deventer) Date: Mon, 4 Jun 2012 16:27:21 +0200 Subject: [mapserver-users] Shift of half a pixel Message-ID: <47230D164D809D47909B289F5D7832FF715D30@fs01neo.neo.nl> Hi all, We are trying to get VHR satellite imagery to run as a WMS in different GIS clients. When we compare the original image (we tried different formats, tif, ecw, virtual formats etc.) to the hosted image we see a shift in the pixels. Looks like a minor warp or transform. We are unable to find what is causing this error. We tried using different output drivers, and different output and input formats. It looks like serving with GDAL as output format and Imagemode on FLOAT32 gives the best result, however in black and white. If this is a known issue, is anyone able to tell me the (in)accuracy of the shift? Or is it not supposed to happen altogether? Regards, Fritz van Deventer - http://neo.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgnemmi at rgd73-74.fr Mon Jun 4 08:47:13 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Mon, 4 Jun 2012 08:47:13 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to delete a whole zoom level ? In-Reply-To: <4FCCC42C.6000607@swoodbridge.com> References: <1338543003958-4978491.post@n6.nabble.com> <4FC8DC5C.1080101@mapgears.com> <1338796359150-4978902.post@n6.nabble.com> <4FCCAAB5.7070305@mapgears.com> <1338815606683-4978968.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63457A42@suutari.haapa.mmm.fi> <4FCCC42C.6000607@swoodbridge.com> Message-ID: <1338824833372-4979018.post@n6.nabble.com> Hi Steve, I tried to save some space (80 Mo) before running tile_seeder but it still has no effect. Otherwise you are right: one db file per zoom level would be a great enhancement. I've submitted a new request. Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491p4979018.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Mon Jun 4 09:14:43 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 4 Jun 2012 16:14:43 +0000 Subject: [mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311F06F@swmail01.r8nssis.local> Hello, I received a report that a GeoMOOSE / Mapserver web mapping application http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when zoomed out. I found out that the user has a very large monitor, so I thought that I may have forgot to set the MAP MAXSIZE parameter. That was not the issue. Next, The user then reported that the pink screen only was present when boundary>municipal layer was turned on. This particular layer is part of a mapfile that contains several layers. All of the other layers are working fine. Also when he zooms into the map the layer appears on his application as expected. So I thought that the issue has to be with the layers* within the mapfile. *The municipal boundary layer in GeoMOOSE is tied to the Townships and CityLimits layer in a single map file. The layer file itself is a generic template that I have been using for several different applications without complaint. I also tested the application on my computer using a variety of browsers including IE8, which is the browser the user reported that he was having trouble with the pink screens. I also adjusted the browser size to make it the requested image larger, zoomed in and out, and I have not had any trouble. I included a part of my map file as well as a log file from what I think is a unsuccessful request and a successful request from the same user. MAP FILE SNIPPET: LAYER #townships NAME 'Townships' DATA 'Murray/MurrTwpMCC' STATUS ON TYPE POLYGON LABELMINSCALEDENOM 10000 CLASS NAME 'Townships' TEXT ([TWPNAME] TWP) STYLE SYMBOL 'countydashed' SIZE 3 OUTLINECOLOR 0 50 0 COLOR -1 -1 -1 END #style LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT vera_sans MAXSIZE 9 SIZE 8 MINSIZE 6 ANTIALIAS TRUE COLOR 10 10 10 OUTLINECOLOR 220 220 220 OUTLINEWIDTH 3 BUFFER 2 END #label END #class END #layer LAYER NAME 'CityLimits' TYPE POLYGON DATA 'Murray/MurrMuniMCC' STATUS ON LABELITEM 'NAME_' CLASS NAME 'City Limits' STYLE SYMBOL 'dashed2' SIZE 3 OUTLINECOLOR 226 208 84 COLOR -1 -1 -1 END #STYLE LABEL ANTIALIAS TRUE TYPE TRUETYPE PRIORITY 5 FONT vera_sans SIZE 8 ANTIALIAS TRUE COLOR 113 53 57 OUTLINECOLOR 255 232 100 BUFFER 2 MINFEATURESIZE auto PARTIALS FALSE END #Label END #class END #layer LOG FILE: [Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780 [Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 6 (parcels), 0.016s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 7 (roads), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 8 (roadsanno), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Drawing Label Cache, 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap() total time: 0.063s [Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s [Mon Jun 04 10:43:59 2012].669000 mapserv request processing time (loadmap not incl.): 0.422s [Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108. [Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error message. Invalid image width or height. [Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error message. Image dimensions not specified. [Mon Jun 04 10:44:01 2012].138000 msDrawMap(): Image handling error. Unable to initialize image. [Mon Jun 04 10:44:01 2012].185000 msFreeMap(): freeing map at 01D4BBF8. [Mon Jun 04 10:44:01 2012].325000 CGI Request 1 on process 7556 [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 0 (lakes), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 1 (Parks), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 2 (Ditches), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 3 (Townships), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 4 (CityLimits), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 5 (sections), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 6 (parcels), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 7 (roads), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 8 (roadsanno), 0.000s [Mon Jun 04 10:44:01 2012].341000 msDrawMap(): Drawing Label Cache, 0.016s [Mon Jun 04 10:44:01 2012].341000 msDrawMap() total time: 0.016s [Mon Jun 04 10:44:01 2012].341000 msSaveImage() total time: 0.000s [Mon Jun 04 10:44:01 2012].341000 mapserv request processing time (loadmap not incl.): 0.016s [Mon Jun 04 10:44:01 2012].341000 msFreeMap(): freeing map at 01516240. Thanks for all the help Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregcorradini at gmail.com Mon Jun 4 09:20:35 2012 From: gregcorradini at gmail.com (Greg Corradini) Date: Mon, 4 Jun 2012 09:20:35 -0700 Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes Message-ID: Hello, I'm experiencing very odd behavior that wasn't in previous versions of Mapserver i used such as 5.7. The problem is certain layer geometry and symbol combinations ( only 1 i can identify so far ) cause mapserver processes to spike at 100% and hang for a long time ( > 60 minutes ). I've tested this on two different servers using Mapserver 6.0.2 and can reproduce it accurately on both. This behavior only seems to be happening with mulitpolygon layers that have a multipolygon record that is on either side of the International Date Line (meaning the multipolygon record is split at the dateline) and when using the ANGLE argument for LAYER > CLASS > STYLE for a HATCH SYMBOL (see below for an example). If you remove or comment out the ANGLE argument then no CPU spike or hanging processes occur. Has anyone else experienced this? I have an example shapefile with data that people can use. Is there a place I can upload that to so others can test this out? MapServer Version ------------------------------- MapServer version 6.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Layer and Symbol Definition That Cause Issue ----------------------------------------------------------------------------- SYMBOL NAME 'hatched' TYPE HATCH END LAYER NAME "diss_idl_10896" CONNECTIONTYPE POSTGIS PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTION "" DATA "web_geometry from shapefile_12708 using unique gid using srid=900913" PROJECTION "init=epsg:900913" END TYPE polygon STATUS ON DUMP TRUE TOLERANCE 10 HEADER "" FOOTER "" TEMPLATE "" OPACITY 100 CLASS NAME "dissolvedIDL" TEMPLATE "" STYLE SYMBOL "hatched" COLOR 0 0 255 ANGLE 45 END STYLE OUTLINECOLOR 0 0 0 END END METADATA WMS_TITLE "dissolvedIDL" WMS_ABSTRACT "dissolvedIDL" WMS_SRS "epsg:900913" GML_INCLUDE_ITEMS "all" GML_EXCLUDE_ITEMS "the_geom" END END Thanks -- Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Mon Jun 4 09:25:09 2012 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 04 Jun 2012 11:25:09 -0500 Subject: [mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311F06F@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311F06F@swmail01.r8nssis.local> Message-ID: <4FCC9B15020000A8000373A9@jeckle> Mark, I just tried from my work station and turned everything off except the Boundary and base layer. I zoomed in and out with no problems using a hi res screen. Could the problem have been a momentary thing, or is the user still seeing the pink tiles? There may be a permissions problem somewhere to look for. bobb >>> Mark Volz wrote: Hello, I received a report that a GeoMOOSE / Mapserver web mapping application http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when zoomed out. I found out that the user has a very large monitor, so I thought that I may have forgot to set the MAP MAXSIZE parameter. That was not the issue. Next, The user then reported that the pink screen only was present when boundary>municipal layer was turned on. This particular layer is part of a mapfile that contains several layers. All of the other layers are working fine. Also when he zooms into the map the layer appears on his application as expected. So I thought that the issue has to be with the layers* within the mapfile. *The municipal boundary layer in GeoMOOSE is tied to the Townships and CityLimits layer in a single map file. The layer file itself is a generic template that I have been using for several different applications without complaint. I also tested the application on my computer using a variety of browsers including IE8, which is the browser the user reported that he was having trouble with the pink screens. I also adjusted the browser size to make it the requested image larger, zoomed in and out, and I have not had any trouble. I included a part of my map file as well as a log file from what I think is a unsuccessful request and a successful request from the same user. MAP FILE SNIPPET: LAYER #townships NAME 'Townships' DATA 'Murray/MurrTwpMCC' STATUS ON TYPE POLYGON LABELMINSCALEDENOM 10000 CLASS NAME 'Townships' TEXT ([TWPNAME] TWP) STYLE SYMBOL 'countydashed' SIZE 3 OUTLINECOLOR 0 50 0 COLOR -1 -1 -1 END #style LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT vera_sans MAXSIZE 9 SIZE 8 MINSIZE 6 ANTIALIAS TRUE COLOR 10 10 10 OUTLINECOLOR 220 220 220 OUTLINEWIDTH 3 BUFFER 2 END #label END #class END #layer LAYER NAME 'CityLimits' TYPE POLYGON DATA 'Murray/MurrMuniMCC' STATUS ON LABELITEM 'NAME_' CLASS NAME 'City Limits' STYLE SYMBOL 'dashed2' SIZE 3 OUTLINECOLOR 226 208 84 COLOR -1 -1 -1 END #STYLE LABEL ANTIALIAS TRUE TYPE TRUETYPE PRIORITY 5 FONT vera_sans SIZE 8 ANTIALIAS TRUE COLOR 113 53 57 OUTLINECOLOR 255 232 100 BUFFER 2 MINFEATURESIZE auto PARTIALS FALSE END #Label END #class END #layer LOG FILE: [Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780 [Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 6 (parcels), 0.016s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 7 (roads), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 8 (roadsanno), 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Drawing Label Cache, 0.000s [Mon Jun 04 10:43:59 2012].310000 msDrawMap() total time: 0.063s [Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s [Mon Jun 04 10:43:59 2012].669000 mapserv request processing time (loadmap not incl.): 0.422s [Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108. [Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error message. Invalid image width or height. [Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error message. Image dimensions not specified. [Mon Jun 04 10:44:01 2012].138000 msDrawMap(): Image handling error. Unable to initialize image. [Mon Jun 04 10:44:01 2012].185000 msFreeMap(): freeing map at 01D4BBF8. [Mon Jun 04 10:44:01 2012].325000 CGI Request 1 on process 7556 [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 0 (lakes), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 1 (Parks), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 2 (Ditches), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 3 (Townships), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 4 (CityLimits), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 5 (sections), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 6 (parcels), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 7 (roads), 0.000s [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 8 (roadsanno), 0.000s [Mon Jun 04 10:44:01 2012].341000 msDrawMap(): Drawing Label Cache, 0.016s [Mon Jun 04 10:44:01 2012].341000 msDrawMap() total time: 0.016s [Mon Jun 04 10:44:01 2012].341000 msSaveImage() total time: 0.000s [Mon Jun 04 10:44:01 2012].341000 mapserv request processing time (loadmap not incl.): 0.016s [Mon Jun 04 10:44:01 2012].341000 msFreeMap(): freeing map at 01516240. Thanks for all the help Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 4 09:57:49 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Jun 2012 12:57:49 -0400 Subject: [mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311F06F@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311F06F@swmail01.r8nssis.local> Message-ID: <4FCCE90D.1070700@swoodbridge.com> Mark, Could this be a timeout issue? What happens if the user right clicks on the pink tile in FF and selects View Image? or Reload Image? Do you have some kind of max memory limit or ulimit set? Or a long running process killer? -Steve W On 6/4/2012 12:14 PM, Mark Volz wrote: > Hello, > I received a report that a GeoMOOSE / Mapserver web mapping application > http://geomoose.lyonco.org/MurrayMoose/ > is creating pink tiles when > zoomed out. I found out that the user has a very large monitor, so I > thought that I may have forgot to set the MAP MAXSIZE parameter. That > was not the issue. > Next, The user then reported that the pink screen only was present when > boundary>municipal layer was turned on. This particular layer is part of > a mapfile that contains several layers. All of the other layers are > working fine. Also when he zooms into the map the layer appears on his > application as expected. So I thought that the issue has to be with the > layers* within the mapfile. > *The municipal boundary layer in GeoMOOSE is tied to the Townships and > CityLimits layer in a single map file. > The layer file itself is a generic template that I have been using for > several different applications without complaint. I also tested the > application on my computer using a variety of browsers including IE8, > which is the browser the user reported that he was having trouble with > the pink screens. I also adjusted the browser size to make it the > requested image larger, zoomed in and out, and I have not had any trouble. > I included a part of my map file as well as a log file from what I think > is a unsuccessful request and a successful request from the same user. > MAP FILE SNIPPET: > LAYER #townships > NAME 'Townships' > DATA 'Murray/MurrTwpMCC' > STATUS ON > TYPE POLYGON > LABELMINSCALEDENOM 10000 > CLASS > NAME 'Townships' > TEXT ([TWPNAME] TWP) > STYLE > SYMBOL 'countydashed' > SIZE 3 > OUTLINECOLOR 0 50 0 > COLOR -1 -1 -1 > END #style > LABEL > ANTIALIAS TRUE > TYPE TRUETYPE > FONT vera_sans > MAXSIZE 9 > SIZE 8 > MINSIZE 6 > ANTIALIAS TRUE > COLOR 10 10 10 > OUTLINECOLOR 220 220 220 > OUTLINEWIDTH 3 > BUFFER 2 > END #label > END #class > END #layer > LAYER > NAME 'CityLimits' > TYPE POLYGON > DATA 'Murray/MurrMuniMCC' > STATUS ON > LABELITEM 'NAME_' > CLASS > NAME 'City Limits' > STYLE > SYMBOL 'dashed2' > SIZE 3 > OUTLINECOLOR 226 208 84 > COLOR -1 -1 -1 > END #STYLE > LABEL > ANTIALIAS TRUE > TYPE TRUETYPE > PRIORITY 5 > FONT vera_sans > SIZE 8 > ANTIALIAS TRUE > COLOR 113 53 57 > OUTLINECOLOR 255 232 100 > BUFFER 2 > MINFEATURESIZE auto > PARTIALS FALSE > END #Label > END #class > END #layer > LOG FILE: > [Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780 > [Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s > [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s > [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s > [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s > [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s > [Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s > [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 6 (parcels), 0.016s > [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 7 (roads), 0.000s > [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 8 (roadsanno), 0.000s > [Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Drawing Label Cache, 0.000s > [Mon Jun 04 10:43:59 2012].310000 msDrawMap() total time: 0.063s > [Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s > [Mon Jun 04 10:43:59 2012].669000 mapserv request processing time > (loadmap not incl.): 0.422s > [Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108. > [Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error > message. Invalid image width or height. > [Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error > message. Image dimensions not specified. > [Mon Jun 04 10:44:01 2012].138000 msDrawMap(): Image handling error. > Unable to initialize image. > [Mon Jun 04 10:44:01 2012].185000 msFreeMap(): freeing map at 01D4BBF8. > [Mon Jun 04 10:44:01 2012].325000 CGI Request 1 on process 7556 > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 0 (lakes), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 1 (Parks), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 2 (Ditches), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 3 (Townships), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 4 (CityLimits), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 5 (sections), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 6 (parcels), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 7 (roads), 0.000s > [Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 8 (roadsanno), 0.000s > [Mon Jun 04 10:44:01 2012].341000 msDrawMap(): Drawing Label Cache, 0.016s > [Mon Jun 04 10:44:01 2012].341000 msDrawMap() total time: 0.016s > [Mon Jun 04 10:44:01 2012].341000 msSaveImage() total time: 0.000s > [Mon Jun 04 10:44:01 2012].341000 mapserv request processing time > (loadmap not incl.): 0.016s > [Mon Jun 04 10:44:01 2012].341000 msFreeMap(): freeing map at 01516240. > Thanks for all the help > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Mon Jun 4 10:11:48 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 4 Jun 2012 13:11:48 -0400 Subject: [mapserver-users] Failed to open map file error Message-ID: <4EFF8BB964547748A07CA32961810C041DB5F064@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm trying to migrate an application which now uses MapServer 6.0.2, from 6.0.1. I understand this should be seamless, but I am having problems with a query, the FireBug error says it cannot open the map file. Here are the lines of code triggering the error: $path="/ms4w_304/apps/maptest/maps/towns100.map"; $map = ms_newMapObj($path); Resulting error message: Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "/ms4w_304/apps/maptest/maps/towns100.map"' in C:\ms4w_304\apps\maptest\htdocs\php\identify.php:132 -This layer will draw properly using the same .map file, so I don't think there's a problem in the map file. Another interesting issue- this application works fine on my local machine. It's when I migrate it to a server that I get this error. However, the local machine and server are both using MS4W 3.0.4, with MapServer 6.0.2 and everything else in the MS4W 304 package. I've checked the permissions. Not totally sure, but I don't' think they are an issue. Does anyone have suggestions on what else to check? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 4 10:35:19 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Jun 2012 13:35:19 -0400 Subject: [mapserver-users] Failed to open map file error In-Reply-To: <4EFF8BB964547748A07CA32961810C041DB5F064@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041DB5F064@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4FCCF1D7.2050803@swoodbridge.com> Bob, What disk drive its it on? C:, D:, E:, etc Different on the two machines? -Steve W On 6/4/2012 1:11 PM, Bistrais, Bob wrote: > I?m trying to migrate an application which now uses MapServer 6.0.2, > from 6.0.1. I understand this should be seamless, but I am having > problems with a query, the FireBug error says it cannot open the map file. > > Here are the lines of code triggering the error: > > $path="/ms4w_304/apps/maptest/maps/towns100.map"; > > $map = ms_newMapObj($path); > > Resulting error message: > > Fatal error: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "/ms4w_304/apps/maptest/maps/towns100.map"' in > C:\ms4w_304\apps\maptest\htdocs\php\identify.php:132 > > -This layer will draw properly using the same .map file, so I don?t > think there?s a problem in the map file. > > Another interesting issue- this application works fine on my local > machine. It?s when I migrate it to a server that I get this error. > However, the local machine and server are both using MS4W 3.0.4, with > MapServer 6.0.2 and everything else in the MS4W 304 package. > > I?ve checked the permissions. Not totally sure, but I don?t? think they > are an issue. > > Does anyone have suggestions on what else to check? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From joanne.mcgraw at SYMPATICO.CA Mon Jun 4 12:35:15 2012 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 4 Jun 2012 12:35:15 -0700 (PDT) Subject: [mapserver-users] GetStyles SLD does not include Opacity value Message-ID: <1338838515215-4979066.post@n6.nabble.com> Hello everyone, I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Jun 4 13:07:02 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 4 Jun 2012 20:07:02 +0000 Subject: [mapserver-users] multiple query layers In-Reply-To: <4FC8D03C020000DD000162BE@mail2.forestrytas.com.au> References: <4FC8D03C020000DD000162BE@mail2.forestrytas.com.au> Message-ID: If you're not using queryable layers with "STATUS DEFAULT" then you can just use the normal layer or layers parameter. Of course the workaround mentioned in the referenced ticket is still valid. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jessica Clarke Sent: Thursday, May 31, 2012 11:23 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] multiple query layers Hi, I found this (uber old) ticket in issue tracker http://trac.osgeo.org/mapserver/ticket/45 This is basically what I want to do - but as far as I can tell it wasn't implemented? Does anyone know anything about querying multiple layers using the url? Jess --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 4 14:35:19 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 4 Jun 2012 21:35:19 +0000 Subject: [mapserver-users] Shift of half a pixel In-Reply-To: <47230D164D809D47909B289F5D7832FF715D30@fs01neo.neo.nl> References: <47230D164D809D47909B289F5D7832FF715D30@fs01neo.neo.nl> Message-ID: What version are you talking about? How do you know there is a shift? That is, what is your reference? Is it possible there's a difference in the bounding box model? For WMS the bbox represents the outside dimensions of the pixels in an image. Steve Note: MapServer uses a pixel center bbox model but that difference (with WMS's representation) is taken into account in the WMS code. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fritz van Deventer Sent: Monday, June 04, 2012 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Shift of half a pixel Hi all, We are trying to get VHR satellite imagery to run as a WMS in different GIS clients. When we compare the original image (we tried different formats, tif, ecw, virtual formats etc.) to the hosted image we see a shift in the pixels. Looks like a minor warp or transform. We are unable to find what is causing this error. We tried using different output drivers, and different output and input formats. It looks like serving with GDAL as output format and Imagemode on FLOAT32 gives the best result, however in black and white. If this is a known issue, is anyone able to tell me the (in)accuracy of the shift? Or is it not supposed to happen altogether? Regards, Fritz van Deventer - http://neo.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 4 14:51:40 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 4 Jun 2012 21:51:40 +0000 Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: <1338838515215-4979066.post@n6.nabble.com> References: <1338838515215-4979066.post@n6.nabble.com> Message-ID: Are we missing a few things like the response and the mapfile snippet? Also are you talking layer opacity or style opacity? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of myOpenLayersUName Sent: Monday, June 04, 2012 2:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] GetStyles SLD does not include Opacity value Hello everyone, I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066.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 aperi2007 at gmail.com Mon Jun 4 23:21:23 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 5 Jun 2012 08:21:23 +0200 Subject: [mapserver-users] Failed to connect to github Message-ID: >works just fine > >$git clone https://github.com/mapserver/mapserver.git >Cloning into 'mapserver'... >remote: Counting objects: 45832, done. >remote: Compressing objects: 100% (11217/11217), done. >remote: Total 45832 (delta 34576), reused 45785 (delta 34530) >Receiving objects: 100% (45832/45832), 15.24 MiB | 1.56 MiB/s, done. >Resolving deltas: 100% (34576/34576), done. >Andrea, >are you behind a proxy? >>http://stackoverflow.com/questions/128035/how-do-i-pull-from-a-git-repository-through-an-http-proxy Hi to all, I resolve the trouble. The trouble was in my proxy. It was faulting my requests. Thx again, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fanenji at gmail.com Tue Jun 5 02:51:20 2012 From: fanenji at gmail.com (stefano parodi) Date: Tue, 5 Jun 2012 11:51:20 +0200 Subject: [mapserver-users] ecw problems Message-ID: Hi all. I'm setting up a new mapserver application on Windows 2008 Server with IIS 7. I've download the win32 binaries from http://www.gisinternals.com (release-1600-gdal-1-9-mapserver-6-0) that come with ECW support. I'm able to use the ECW files with both gdalinfo and the shp2img utility app, tha produce a valid png image, but not with the mapserver cgi. Mapserver CGI work well with both Oracle Spatial and PostGIS layers but simply return the mapserver executable (mapserv.exe) in case of a ECW layer. Mapserver log doesn't report any error, here's an extract from the log: [Fri Jun 01 16:27:17 2012].912000 CGI Request 1 on process 3872 [Fri Jun 01 16:27:17 2012].914000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Jun 01 16:27:17 2012].915000 msDrawMap(): WMS/WFS set-up and query, 0.001s [Fri Jun 01 16:27:17 2012].940000 msDrawRasterLayerLow(ORTOFOTO_2007): entering. [Fri Jun 01 16:27:18 2012].560000 msDrawMap(): Layer 5 (ORTOFOTO_2007), 0.645s [Fri Jun 01 16:27:18 2012].560000 msDrawMap(): Drawing Label Cache, 0.000s [Fri Jun 01 16:27:18 2012].560000 msDrawMap() total time: 0.647s [Fri Jun 01 16:27:18 2012].906000 msSaveImage(stdout) total time: 0.346s [Fri Jun 01 16:27:18 2012].906000 mapserv request processing time (msLoadMap not incl.): 0.994s [Fri Jun 01 16:27:18 2012].906000 msFreeMap(): freeing map at 0057FA70. Does someone has any clue about what's happening? Thank you in advance. -- Stefano Parodi. Geospatial Developer at Datasiel S.p.A. http://it.linkedin.com/in/stefanoparodi http://twitter.com/fanenji -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jun 5 04:06:42 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 5 Jun 2012 11:06:42 +0000 Subject: [mapserver-users] ecw problems In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63457BED@suutari.haapa.mmm.fi> Hi, First thing to try is to save what you believe is mapserv.exe on a disk and open it as a text file. Most probably it is some sort of error message. -Jukka Rahkonen- ________________________________ stefano parodi wrote: Hi all. I'm setting up a new mapserver application on Windows 2008 Server with IIS 7. I've download the win32 binaries from http://www.gisinternals.com (release-1600-gdal-1-9-mapserver-6-0) that come with ECW support. I'm able to use the ECW files with both gdalinfo and the shp2img utility app, tha produce a valid png image, but not with the mapserver cgi. Mapserver CGI work well with both Oracle Spatial and PostGIS layers but simply return the mapserver executable (mapserv.exe) in case of a ECW layer. Mapserver log doesn't report any error, here's an extract from the log: [Fri Jun 01 16:27:17 2012].912000 CGI Request 1 on process 3872 [Fri Jun 01 16:27:17 2012].914000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Jun 01 16:27:17 2012].915000 msDrawMap(): WMS/WFS set-up and query, 0.001s [Fri Jun 01 16:27:17 2012].940000 msDrawRasterLayerLow(ORTOFOTO_2007): entering. [Fri Jun 01 16:27:18 2012].560000 msDrawMap(): Layer 5 (ORTOFOTO_2007), 0.645s [Fri Jun 01 16:27:18 2012].560000 msDrawMap(): Drawing Label Cache, 0.000s [Fri Jun 01 16:27:18 2012].560000 msDrawMap() total time: 0.647s [Fri Jun 01 16:27:18 2012].906000 msSaveImage(stdout) total time: 0.346s [Fri Jun 01 16:27:18 2012].906000 mapserv request processing time (msLoadMap not incl.): 0.994s [Fri Jun 01 16:27:18 2012].906000 msFreeMap(): freeing map at 0057FA70. Does someone has any clue about what's happening? Thank you in advance. -- Stefano Parodi. Geospatial Developer at Datasiel S.p.A. http://it.linkedin.com/in/stefanoparodi http://twitter.com/fanenji -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Tue Jun 5 07:23:13 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Tue, 5 Jun 2012 09:23:13 -0500 Subject: [mapserver-users] AGG: Internal vs. External Message-ID: <000001cd4326$be362490$3aa26db0$@com.mx> Hello I am using Mapserver as a WMS server and would like to improve the rendered image quality. Currently we get jagged lines and poor text rendering as you can see in this link http://www.bicimapas.com.mx/SpatiaRetail.html Source are SHP files. We plan to use AGG to improve this and are using Mapserver 6.01. I have not installed AGG but when running /.configure it shows AGG Support: Internal and with ./mapserv -v shows SUPPORTS: AGG. The question is whether there is a difference between internal or external AGG support? Is this internal AGG support provided by GD? Finally, is there a suggestion on how to improve the image rendering quality? The map file has this image rendering setting: MAP NAME "DemoFerre" UNITS dd SIZE 640 480 IMAGECOLOR 244 244 244 IMAGETYPE png SHAPEPATH "/home/bicimapas/mapdata/" EXTENT -99.070427 17.869010 -96.723984 20.839951 FONTSET "/home/bicimapas/mapdata/fontset.txt" Thanks in advance Alberto Najera From joanne.mcgraw at SYMPATICO.CA Tue Jun 5 07:32:00 2012 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 5 Jun 2012 07:32:00 -0700 (PDT) Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: References: <1338838515215-4979066.post@n6.nabble.com> Message-ID: <1338906720527-4979230.post@n6.nabble.com> "Are we missing a few things like the response and the mapfile snippet? Also are you talking layer opacity or style opacity?" I guess the email-er that sent around the post didn't include anything within the "raw" tags. Here's the full text again (without the tags): I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: LAYER NAME "Poly_wOpacity" TYPE POLYGON OPACITY 20 STATUS ON PROJECTION "init=epsg:3857" END INCLUDE "../../../mapserv/conf/sdeconnection.inc.map" DATA "...,SHAPE,SDE.DEFAULT" METADATA "wms_title" "Polygon Layer w/Opacity of 20" "wms_srs" "epsg:3857" END CLASS NAME "Polygon Layer w/Opacity of 20" STYLE COLOR 255 0 0 END END END I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: Poly_wOpacity Polygon Layer w/Opacity of 20 #ff0000 Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: OUTPUTFORMAT NAME png32 DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION png FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979230.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue Jun 5 07:40:54 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 5 Jun 2012 14:40:54 +0000 Subject: [mapserver-users] AGG: Internal vs. External In-Reply-To: <000001cd4326$be362490$3aa26db0$@com.mx> References: <000001cd4326$be362490$3aa26db0$@com.mx> Message-ID: MapServer ships with AGG and it's built by default. I believe in 6.0 the "PNG" output format references GD. If you want to use AGG try "PNG24" instead or roll your own OUTPUTFORMAT block. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Najera Sent: Tuesday, June 05, 2012 9:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] AGG: Internal vs. External Hello I am using Mapserver as a WMS server and would like to improve the rendered image quality. Currently we get jagged lines and poor text rendering as you can see in this link http://www.bicimapas.com.mx/SpatiaRetail.html Source are SHP files. We plan to use AGG to improve this and are using Mapserver 6.01. I have not installed AGG but when running /.configure it shows AGG Support: Internal and with ./mapserv -v shows SUPPORTS: AGG. The question is whether there is a difference between internal or external AGG support? Is this internal AGG support provided by GD? Finally, is there a suggestion on how to improve the image rendering quality? The map file has this image rendering setting: MAP NAME "DemoFerre" UNITS dd SIZE 640 480 IMAGECOLOR 244 244 244 IMAGETYPE png SHAPEPATH "/home/bicimapas/mapdata/" EXTENT -99.070427 17.869010 -96.723984 20.839951 FONTSET "/home/bicimapas/mapdata/fontset.txt" Thanks in advance Alberto Najera _______________________________________________ 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 Tue Jun 5 07:48:10 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 5 Jun 2012 14:48:10 +0000 Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: <1338906720527-4979230.post@n6.nabble.com> References: <1338838515215-4979066.post@n6.nabble.com> <1338906720527-4979230.post@n6.nabble.com> Message-ID: Hi Joanne: What happens if you move the opacity into the class style? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of myOpenLayersUName Sent: Tuesday, June 05, 2012 9:32 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GetStyles SLD does not include Opacity value "Are we missing a few things like the response and the mapfile snippet? Also are you talking layer opacity or style opacity?" I guess the email-er that sent around the post didn't include anything within the "raw" tags. Here's the full text again (without the tags): I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: LAYER NAME "Poly_wOpacity" TYPE POLYGON OPACITY 20 STATUS ON PROJECTION "init=epsg:3857" END INCLUDE "../../../mapserv/conf/sdeconnection.inc.map" DATA "...,SHAPE,SDE.DEFAULT" METADATA "wms_title" "Polygon Layer w/Opacity of 20" "wms_srs" "epsg:3857" END CLASS NAME "Polygon Layer w/Opacity of 20" STYLE COLOR 255 0 0 END END END I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: Poly_wOpacity Polygon Layer w/Opacity of 20 #ff0000 Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: OUTPUTFORMAT NAME png32 DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION png FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979230.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 joanne.mcgraw at SYMPATICO.CA Tue Jun 5 07:53:47 2012 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 5 Jun 2012 07:53:47 -0700 (PDT) Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: References: <1338838515215-4979066.post@n6.nabble.com> <1338906720527-4979230.post@n6.nabble.com> Message-ID: <1338908027594-4979243.post@n6.nabble.com> That did the trick beautifully. Thank you, Steve!! In summary, the layer is now defined as: LAYER NAME "Poly_wOpacity" TYPE POLYGON STATUS ON PROJECTION "init=epsg:3857" END INCLUDE "../../../mapserv/conf/sdeconnection.inc.map" DATA "...,SHAPE,SDE.DEFAULT" METADATA "wms_title" "Polygon Layer w/Opacity of 20" "wms_srs" "epsg:3857" END CLASS NAME "Polygon Layer w/Opacity of 20" STYLE COLOR 255 0 0 OPACITY 20 END END END And, the GetStyles request returns the expected "fill-opacity" CssParameter: nonContributingDrainage Non-Contributing Drainage Area #ff0000 0.20 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979243.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Tue Jun 5 08:59:06 2012 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 5 Jun 2012 08:59:06 -0700 (PDT) Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes In-Reply-To: References: Message-ID: <1338911946132-4979270.post@n6.nabble.com> I've also tested this with other SYMBOL > TYPE(s) such as ellipse, truetype, vector etc and I'm not able to reproduce the problem -- View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979270.html Sent from the Mapserver - User mailing list archive at Nabble.com. From eric.lemoine at camptocamp.com Tue Jun 5 09:25:40 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Tue, 5 Jun 2012 18:25:40 +0200 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: References: <4FBCE6AF.4000004@gatewaygeomatics.com> Message-ID: On Thursday, May 24, 2012, Eric Lemoine wrote: > > > On Wednesday, May 23, 2012, Jeff McKenna wrote: > >> Hi Eric, >> >> >From reading my own ticket comments in >> https://github.com/mapserver/mapserver/issues/4039 it seems I got around >> the issue by setting the 'wms_extent' metadata. > > > Hi Jeff > > Thanks for your response. The wms_extent workaround doesn't work for us. > But the problem occurs on WFS GetFeature for us, not on GetCapabilities. > Our layer is a PostGIS layer by the way, which may be related to the > problem based on what I read in the tickets. Please tells if it's worth > creating a new GitHub issue for our problem. > We have finally found a solution: use a 64-bit version from http://www.gisinternals.com/sdk/ (our Windows machine is 64-bit). Thank you. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jun 5 10:01:35 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 5 Jun 2012 17:01:35 +0000 Subject: [mapserver-users] Scripted geoprocessing In-Reply-To: <4FC9514B.2010601@planyukon.ca> References: <4FC9514B.2010601@planyukon.ca> Message-ID: Hi Sam: MapScript does have GEOS functions built into it so you might be able to use just those. I remember doing something along these line using Perl MapScript. I don't have the script handy but I think I used a hash of shapes based on the attribute value in question. For each shape you simple add all the parts to the right hash element. Could either use the Union operator or just add the parts. Then once you have processed every feature in the shapefile(s) you do a buffer(0) on each of the hash elements with I think effectively does a dissolve. Of course you need to save the dissolved shape someplace too. In Perl this is not a very long script: a loop to build the hash of shapes and another loop to process the hash. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sam Skinner Sent: Friday, June 01, 2012 6:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scripted geoprocessing Hi all, I am writing a python script that will (weekly) download and extract data (shapefiles) from an organization without a WMS or WFS. This script will reside on my linux-based mapserver (5.6). I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. Any ideas on how I could do this? From what I understand (which isn't much!), I could import the data into PostGIS, then run some query there. Is there a simpler way? Is anyone familiar with Sextante, and would that work? Thanks! -- Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcreso at pcreso.com Tue Jun 5 11:09:58 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 5 Jun 2012 11:09:58 -0700 (PDT) Subject: [mapserver-users] Scripted geoprocessing In-Reply-To: Message-ID: <1338919798.84054.YahooMailClassic@web160705.mail.bf1.yahoo.com> Hi Sam, Define "simpler" :-) I could do it in Postgis with a few lines of script, but you'd need to install Postgis. Postgis essentially has the code already written, you just need to deploy it. Other approaches may require less in the way of installation & more in the way of writing your own code... On a Linux box, especially a mainstream distro, Postgis is trivial to install & manage, so it would be hard to be simpler. If you need to compile, etc, then there are other ways that could be simpler. Cheers, ? Brent --- On Wed, 6/6/12, Lime, Steve D (DNR) wrote: From: Lime, Steve D (DNR) Subject: Re: [mapserver-users] Scripted geoprocessing To: "Sam Skinner" , "mapserver-users at lists.osgeo.org" Date: Wednesday, June 6, 2012, 5:01 AM Hi Sam: MapScript does have GEOS functions built into it so you might be able to use just those. I remember doing something along these line using Perl MapScript. I don't have the script handy but I think I used a hash of shapes based on the attribute value in question. For each shape you simple add all the parts to the right hash element. Could either use the Union operator or just add the parts. Then once you have processed every feature in the shapefile(s) you do a buffer(0) on each of the hash elements with I think effectively does a dissolve. Of course you need to save the dissolved shape someplace too. In Perl this is not a very long script: a loop to build the hash of shapes and another loop to process the hash. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sam Skinner Sent: Friday, June 01, 2012 6:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scripted geoprocessing Hi all, I am writing a python script that will (weekly) download and extract data (shapefiles) from an organization without a WMS or WFS. This script will reside on my linux-based mapserver (5.6). I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. Any ideas on how I could do this? From what I understand (which isn't much!), I could import the data into PostGIS, then run some query there. Is there a simpler way? Is anyone familiar with Sextante, and would that work? Thanks! -- Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council _______________________________________________ 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 fanenji at gmail.com Tue Jun 5 12:19:41 2012 From: fanenji at gmail.com (stefano parodi) Date: Tue, 5 Jun 2012 21:19:41 +0200 Subject: [mapserver-users] ecw problems Message-ID: Problem solved! Opening the mapserv.exe file with an editor I found the png header, so the file was actually a huge (> 1MB) png file that somehow IIS did't send with the correct mime-type. The big dimension was due to the fact that I used a png rgb driver, switching to a jpeg or a png8 driver resulted in a correct and small image. Thank all for the suggestions. Best Regards. -- Stefano Parodi. Geospatial Developer at Datasiel S.p.A. http://it.linkedin.com/in/stefanoparodi http://twitter.com/fanenji ------------------------------------- Message: 3 Date: Tue, 5 Jun 2012 11:06:42 +0000 From: Rahkonen Jukka To: "'mapserver-users at lists.osgeo.org'" Subject: Re: [mapserver-users] ecw problems Message-ID: <84446DEF76453C439E9E97E438E13A63457BED at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, First thing to try is to save what you believe is mapserv.exe on a disk and open it as a text file. Most probably it is some sort of error message. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vivaldi_albarado at yahoo.com Tue Jun 5 19:48:04 2012 From: vivaldi_albarado at yahoo.com (Vivaldi Al Barado) Date: Wed, 6 Jun 2012 10:48:04 +0800 (SGT) Subject: [mapserver-users] Create 2 Feature Object Animation (Openlayers) Message-ID: <1338950884.13612.YahooMailNeo@web190101.mail.sg3.yahoo.com> Dear All.. I want to create a circle object using the feature. I hope the object to change position every 2 seconds from the coordinates of A to B. The question is, why two objects that have been created does not change the location, but even more thickened at the same location. Here is the function that I created, please its support: var map; var c = 0; ShowPoint function () { c = c +1; setTimeout ("ShowPoint ()", 2000); var point1 = new OpenLayers.Geometry.Point (-72, 42); var point2 = new OpenLayers.Geometry.Point (-85, 45); feature_point1 var = new OpenLayers.Feature.Vector (point1); feature_point2 var = new OpenLayers.Feature.Vector (point2); ?? if (c% 2! = 0) ???? { map.layers [1]. addFeatures ([feature_point1]); map.layers [1]. removeFeatures ([feature_point2]); ???? Else {} map.layers [1]. addFeatures ([feature_point2]); map.layers [1]. removeFeatures ([feature_point1]); ??? } } ? function init () { / / Create a folder with an empty array of controls map = new OpenLayers.Map ('map_element', { controls: [ OpenLayers.Control.Navigation new (), OpenLayers.Control.PanZoomBar new (), OpenLayers.Control.LayerSwitcher new () ], maxScale: 27683990.15625, minScale: 221471921.25 }); wms_layer var = new OpenLayers.Layer.WMS ( "OpenLayers WMS", 'http://vmap0.tiles.osgeo.org/wms/vmap0', {layers: 'basic'}, {}); vector_layer var = new OpenLayers.Layer.Vector ('Basic Vector Layer'); map.addControl (new OpenLayers.Control.EditingToolbar (vector_layer)); map.addLayers ([wms_layer, vector_layer]); map.render ('map_element'); if (! map.getCenter ()) { map.zoomToMaxExtent (); ? } ShowPoint (); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Wed Jun 6 00:14:31 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Wed, 6 Jun 2012 07:14:31 +0000 Subject: [mapserver-users] Ozz Message-ID: Hi Everyone, Can someone explain me functions of the mapcache? Is it making my map fast or is it for another purpose. I read a lot about it I couldn't understand. what is the main work that mapcache does? Thanks!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Jun 6 02:59:35 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 6 Jun 2012 11:59:35 +0200 Subject: [mapserver-users] Scripted geoprocessing References: <4FC9514B.2010601@planyukon.ca> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF378@KS-EVS1.smi.sachsen.de> > I am looking for a way > for this script to dissolve polygons with a common attribute. > This will > help rendering speed and ease of visualization. What are you trying to achieve? Splitting a shapefile into smaller pieces by grouping features with common attribute(s) as a kind of pre-classification? Then ogr2ogr might help you. See http://www.gdal.org/ogr2ogr.html and http://www.gdal.org/ogr/ogr_sql.html how to use this tool. Also http://mapserver.org/optimization/vector.html might help you. Greetings From jacksonje at gmail.com Wed Jun 6 05:37:59 2012 From: jacksonje at gmail.com (Jason Jackson) Date: Wed, 6 Jun 2012 07:37:59 -0500 Subject: [mapserver-users] Positioning of point symbols Message-ID: I am using mapserver 5.6.7 and it appears that when using a pixmap symbol to represent a point geometry on the map, the image is placed with its center on the point. Is there a way to adjust the image so its bottom center is placed on the point instead? Thank you, Jason From jt at mapmedia.de Wed Jun 6 06:06:10 2012 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Wed, 06 Jun 2012 15:06:10 +0200 Subject: [mapserver-users] Positioning of point symbols In-Reply-To: References: Message-ID: <4FCF55C2.8080909@mapmedia.de> Hi Jason, perhaps the offset parameter can help? Move the point half of the height of the symbol http://mapserver.org/mapfile/style.html?highlight=offset J?rg Am 06.06.2012 14:37, schrieb Jason Jackson: > I am using mapserver 5.6.7 and it appears that when using a pixmap > symbol to represent a point geometry on the map, the image is placed > with its center on the point. Is there a way to adjust the image so > its bottom center is placed on the point instead? > > Thank you, > Jason > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Jun 6 07:23:43 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Jun 2012 10:23:43 -0400 Subject: [mapserver-users] mapcache In-Reply-To: References: Message-ID: <4FCF67EF.9070307@swoodbridge.com> On 6/6/2012 3:14 AM, ?zg?r Arslan wrote: > Hi Everyone, > > Can someone explain me functions of the mapcache? Is it making my map > fast or is it for another purpose. I read a lot about it I couldn't > understand. what is the main work that mapcache does? Mapcache is a proxy between mapserver or other services and you client. It takes the clients requests for tiles and gets them from the backend services and stores them in a cache then gives them to your client. If the requested tile is already in the cache then it just serves that. So by using potentially a lot of disk space to save tiles in it avoids excessive drawing of the same tiles multiple times by the backend. This is basically how Google does it and why Google is so fast. mapserver <----> mapcache <-----> browser client | | GIS data tiles If mapcache has the tile it servers it. If mapcache doesnot have the tile it gets it from mapserver. Serving tiles is fast, drawing tiles/images is slow. Mapcache can do some other tricks like compositing a larger image from a bunch of tiles to server WMS request faster also. -Steve W From havard.tveite at umb.no Wed Jun 6 07:25:13 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Wed, 6 Jun 2012 16:25:13 +0200 Subject: [mapserver-users] Positioning of point symbols In-Reply-To: References: Message-ID: <4FCF6849.3080602@umb.no> ANCHORPOINT is coming in 6.2. See: http://www.mapserver.org/trunk/mapfile/symbol.html H?vard On 6/6/2012 2:37 PM, Jason Jackson wrote: > I am using mapserver 5.6.7 and it appears that when using a pixmap > symbol to represent a point geometry on the map, the image is placed > with its center on the point. Is there a way to adjust the image so > its bottom center is placed on the point instead? > > Thank you, > Jason From joanne.mcgraw at SYMPATICO.CA Wed Jun 6 07:27:50 2012 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 6 Jun 2012 07:27:50 -0700 (PDT) Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: <1338908027594-4979243.post@n6.nabble.com> References: <1338838515215-4979066.post@n6.nabble.com> <1338906720527-4979230.post@n6.nabble.com> <1338908027594-4979243.post@n6.nabble.com> Message-ID: <1338992870128-4979520.post@n6.nabble.com> Now that I've advanced beyond the simple example included above, I see a possible shortcoming with the current implementation of the GetStyles request with respect to including rule's opacity and am wondering if this is something worth pursuing... While it is easy in my original example with a single CLASS in the layer, to move the opacity parameter within the CLASS' STYLE, what if my LAYER has a number of CLASSes? Given the current implementation, if I want to see the opacity in the GetStyles response, I will have to include the OPACITY setting in every CLASS STYLE, even though they are all the same and a major advantage of the LAYER's OPACITY value is avoiding that duplication (and potential for inconsistency). Since the GetMap and GetLegendGraphic renderers are capable of reviewing whether a CLASS STYLE's or the LAYER's OPACITY value is set and draw the image accordingly, it must be possible for the GetStyles response to do the same. My question is "Should it?" Or am I off the mark in my expectations here? Cheers jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979520.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Wed Jun 6 10:30:46 2012 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 6 Jun 2012 10:30:46 -0700 (PDT) Subject: [mapserver-users] GetStyles SLD does not include Opacity value In-Reply-To: <1338992870128-4979520.post@n6.nabble.com> References: <1338838515215-4979066.post@n6.nabble.com> <1338906720527-4979230.post@n6.nabble.com> <1338908027594-4979243.post@n6.nabble.com> <1338992870128-4979520.post@n6.nabble.com> Message-ID: <1339003846332-4979570.post@n6.nabble.com> I've "moved" this discussion to the DEV forum as being the more appropriate place now. See http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-LAYER-s-Opacity-value-td4979569.html. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979570.html Sent from the Mapserver - User mailing list archive at Nabble.com. From donald.kerr at dkerr.co.uk Wed Jun 6 12:35:16 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 6 Jun 2012 20:35:16 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: Message-ID: <6E2201A92AB14ED2ADF24AA11E55A4A9@DELLM4500> Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). >From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). Many thanks. Regards, Donald From Bob.Bistrais at maine.gov Wed Jun 6 14:47:24 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 6 Jun 2012 17:47:24 -0400 Subject: [mapserver-users] MapServer with Geodatabases Message-ID: <4EFF8BB964547748A07CA32961810C041DB5FC1D@SOM-TEAQASMAIL1.som.w2k.state.me.us> This is a "just wondering" question- Has anyone used MapServer with ESRI Geodatabases as a data source? In particular, I was wondering about file geodatabases? Honestly, I don't have plans to do this myself, but I am preparing a presentation on Open Source web mapping, and I'm sure this question will come up. So, if anyone has used a GDB with MapServer, I'd appreciated any feedback, good or bad, describing your experiences. Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Jun 6 14:51:45 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 6 Jun 2012 21:51:45 +0000 Subject: [mapserver-users] MapServer with Geodatabases In-Reply-To: <4EFF8BB964547748A07CA32961810C041DB5FC1D@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041DB5FC1D@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: I've used MapServer via/OGR with the newish File GeoDatabase format and it does work. It's just markedly slower than using straight shapefiles and/or PostGIS. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Wednesday, June 06, 2012 4:47 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer with Geodatabases This is a "just wondering" question- Has anyone used MapServer with ESRI Geodatabases as a data source? In particular, I was wondering about file geodatabases? Honestly, I don't have plans to do this myself, but I am preparing a presentation on Open Source web mapping, and I'm sure this question will come up. So, if anyone has used a GDB with MapServer, I'd appreciated any feedback, good or bad, describing your experiences. Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Wed Jun 6 20:13:28 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Thu, 7 Jun 2012 03:13:28 +0000 Subject: [mapserver-users] Hi All Message-ID: Hi everyone, I am trying to put an icon on my map by using text marker. But it doesn't work. There is one marker that is working very well from the instructor. When I try to create my own it is not working or it is not showing my icon it is showing red icon which is from open layers. Could you please Help me about this issue? Also Thank you Stephen Woodbridgefor your explanation of the mapcache. It was helpful. Here is my text file. Notworking; point title description icon iconSize iconOffset 5426484.11598,-8856513.32726 City of Brampton City of Brampton is the center of the Brampton.
brampton CB/blue_MarkerC.png 30,30 0,0 html; markers2 = new OpenLayers.Layer.Text( "City of Brampton", { location:"CB/CB.txt", projection:'EPSG:900913'} ); Working; point title description icon iconSize iconOffset 5425825.52619,-8846513.32726 Downsview Airport CYDZ or Downsview Airport has been exclusively owned and used as a testing facility by Bombardier Aerospace since 1994.
CYDZ airports/APIcon.png 34,34 0,0 5408103.01906,-8838337.37672 Billy-Bishop (Island) Airport CYTZ or Billy Bishop Airport is named after Air Marshal Billy Bishop, a Canadian First World War flying ace.
CYTZ airports/APIcon.png 24,24 0,0 5444248.18059,-8835470.98918 Buttonville Airport CYKZ or Toronto Buttonville airport is a medium-sized airport in Buttonville, Ontario, Canada, within Markham, bordering Richmond Hill and 29 km (18 mi) north of downtown Toronto.
CYKZ airports/APIcon.png 24,24 0,0 5415603.13404,-8864655.33459 Pearson International Airport CYKZ or Pearson international airport is an international airport serving Toronto, Ontario, Canada; its metropolitan area; and the Golden Horseshoe.
CYYZ airports/APIcon.png 24,24 0,0 5425603.13404,-8854655.33459 Pearson International Airport CYKZ or Pearson international airport is an international airport serving Toronto, Ontario, Canada; its metropolitan area; and the Golden Horseshoe.
CYYZ airports/APIcon.png 24,24 0,0 html; markers = new OpenLayers.Layer.Text( "Airports", { location:"Airports/Airports.txt", projection:'EPSG:900913'} ); -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jun 6 22:02:08 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Jun 2012 01:02:08 -0400 Subject: [mapserver-users] Hi All In-Reply-To: References: Message-ID: <4FD035D0.5010905@swoodbridge.com> Hi ?zg?r, Sorry but this question is OpenLayers so you need to post it on that list. I have cc'd it there. -Steve On 6/6/2012 11:13 PM, ?zg?r Arslan wrote: > Hi everyone, > > > I am trying to put an icon on my map by using text marker. But it > doesn't work. There is one marker that is working very well from the > instructor. When I try to create my own it is not working or it is not > showing my icon it is showing red icon which is from open layers. Could > you please Help me about this issue? Also Thank you Stephen > Woodbridgefor your explanation of the mapcache. It was helpful. > > Here is my text file. > > Notworking; > point title description icon iconSize iconOffset > 5426484.11598,-8856513.32726 City of Brampton City of Brampton is the > center of the Brampton.
brampton width=180/> CB/blue_MarkerC.png 30,30 0,0 > > html; > markers2 = new OpenLayers.Layer.Text( "City of Brampton", > { location:"CB/CB.txt", > projection:'EPSG:900913'} > ); > Working; > > point title description icon iconSize iconOffset > 5425825.52619,-8846513.32726 Downsview Airport CYDZ or Downsview Airport > has been exclusively owned and used as a testing facility by Bombardier > Aerospace since 1994.
CYDZ width=175/> airports/APIcon.png 34,34 0,0 > 5408103.01906,-8838337.37672 Billy-Bishop (Island) Airport CYTZ or Billy > Bishop Airport is named after Air Marshal Billy Bishop, a Canadian First > World War flying ace.
CYTZ width=175/> airports/APIcon.png 24,24 0,0 > 5444248.18059,-8835470.98918 Buttonville Airport CYKZ or Toronto > Buttonville airport is a medium-sized airport in Buttonville, Ontario, > Canada, within Markham, bordering Richmond Hill and 29 km (18 mi) north > of downtown Toronto.
CYKZ width=175/> airports/APIcon.png 24,24 0,0 > 5415603.13404,-8864655.33459 Pearson International Airport CYKZ or > Pearson international airport is an international airport serving > Toronto, Ontario, Canada; its metropolitan area; and the Golden > Horseshoe.
CYYZ > airports/APIcon.png 24,24 0,0 > 5425603.13404,-8854655.33459 Pearson International Airport CYKZ or > Pearson international airport is an international airport serving > Toronto, Ontario, Canada; its metropolitan area; and the Golden > Horseshoe.
CYYZ > airports/APIcon.png 24,24 0,0 > html; > markers = new OpenLayers.Layer.Text( "Airports", > { location:"Airports/Airports.txt", > projection:'EPSG:900913'} > ); > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fritz.vandeventer at neo.nl Thu Jun 7 00:07:50 2012 From: fritz.vandeventer at neo.nl (Fritz van Deventer) Date: Thu, 7 Jun 2012 09:07:50 +0200 Subject: [mapserver-users] Shift of half a pixel Message-ID: <47230D164D809D47909B289F5D7832FF715D32@fs01neo.neo.nl> Dear Steve, Thanks for your reply. And this is my first time posting, so forgive my lack of information. I'm running mapserver 6.0.3 with gdal 1.9.0 (compiled with libecwj) on Ubuntu 12.04. In both QGis 1.7.0 and Mapinfo 10.5 I tried to load both the original image (both as tif and ecw), and the served image in the same viewer. As I toggled between the images (after drawing some reference points) I could see the image shifted slightly in relation to the reference point. I did for several corners, and the shift seems to be somewhat inconsistent, moving in several directions in different areas of the image. But assuming a bounding box model problem, how would I be able to find such a thing out? Fritz ________________________________ Van: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Verzonden: maandag 4 juni 2012 23:35 Aan: Fritz van Deventer; mapserver-users at lists.osgeo.org Onderwerp: RE: Shift of half a pixel What version are you talking about? How do you know there is a shift? That is, what is your reference? Is it possible there's a difference in the bounding box model? For WMS the bbox represents the outside dimensions of the pixels in an image. Steve Note: MapServer uses a pixel center bbox model but that difference (with WMS's representation) is taken into account in the WMS code. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fritz van Deventer Sent: Monday, June 04, 2012 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Shift of half a pixel Hi all, We are trying to get VHR satellite imagery to run as a WMS in different GIS clients. When we compare the original image (we tried different formats, tif, ecw, virtual formats etc.) to the hosted image we see a shift in the pixels. Looks like a minor warp or transform. We are unable to find what is causing this error. We tried using different output drivers, and different output and input formats. It looks like serving with GDAL as output format and Imagemode on FLOAT32 gives the best result, however in black and white. If this is a known issue, is anyone able to tell me the (in)accuracy of the shift? Or is it not supposed to happen altogether? Regards, Fritz van Deventer - http://neo.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludwig at kni-online.de Thu Jun 7 03:03:58 2012 From: ludwig at kni-online.de (Ludwig Kniprath) Date: Thu, 07 Jun 2012 12:03:58 +0200 Subject: [mapserver-users] Status with raster-layer-classes doesn't work Message-ID: <4FD07C8E.2000207@kni-online.de> Hi List, I'm using MS4W 3.0.6 (MapServer version 6.0.3) with PHP-mapscript, but this problem occured on older versions too. I have an tile-indexed raster-layer for topografic maps (for the german users: it's the TK 25 from NRW). The tiffs are colour-indexed, so I use several classes like this: [SNIP] CLASS NAME "Beschriftung" EXPRESSION ([pixel] = 13) STYLE COLOR 0 0 0 END END [/SNIP] I want to give the user with our web client the possibility, to hide some classes, so I tried the following mapscript: [SNIP] for($cc=0; $cc < $map_file_layer_object->numclasses; $cc++){ $map_file_layer_object->getClass($cc)->status = $some_boolean_variable; } [/SNIP] where some_boolean_variable sets the class-status to on (=visible) or off (=hidden). Unfortunatly, this only works for feature-layers, but has no effect on raster-layers. Hint: Setting "STATUS OFF" in the mapfile doen't work with raster-layers, too. The class is allways drawn. Is this a bug or am I doing something wrong? Ludwig P.S.: As workaround i got the same effect with [SNIP] if(!$some_boolean_variable){ for($sc=0; $sc < $map_file_class->numstyles; $sc++){ $map_file_class->getStyle($sc)->opacity = 0; } } [/SNIP] but this seems too complicated... From jmckenna at gatewaygeomatics.com Thu Jun 7 05:56:55 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Jun 2012 09:56:55 -0300 Subject: [mapserver-users] MapServer with Geodatabases In-Reply-To: <4EFF8BB964547748A07CA32961810C041DB5FC1D@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041DB5FC1D@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4FD0A517.20002@gatewaygeomatics.com> On 12-06-06 6:47 PM, Bistrais, Bob wrote: > This is a ?just wondering? question- Has anyone used MapServer with > ESRI Geodatabases as a data source? In particular, I was wondering > about file geodatabases? Honestly, I don?t have plans to do this > myself, but I am preparing a presentation on Open Source web mapping, > and I?m sure this question will come up. > > > > So, if anyone has used a GDB with MapServer, I?d appreciated any > feedback, good or bad, describing your experiences. Note that Windows users have had access to FileGDB access through MS4W for a while now (http://www.maptools.org/ms4w/); give it a try. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From fritz.vandeventer at neo.nl Thu Jun 7 06:54:09 2012 From: fritz.vandeventer at neo.nl (Fritz van Deventer) Date: Thu, 7 Jun 2012 15:54:09 +0200 Subject: [mapserver-users] Shift of half a pixel Message-ID: <47230D164D809D47909B289F5D7832FF715D36@fs01neo.neo.nl> Dear Whoever is interested, We found the problem. It was not in projection, not in the bounding box model. It wasn't even in the software opening the WMS. Resampling defaults to Nearest Neighbour. At the level we look at the images (sometimes at very high zoomlevel) this was noticeable. We switched to Average resampling: PROCESSING "RESAMPLE=AVERAGE" This may not be the prettiest resampling method, but it was the best solution between long processing time and the right location of the individual pixels. Thanks ! Fritz ________________________________ Van: Fritz van Deventer Verzonden: donderdag 7 juni 2012 9:08 Aan: 'mapserver-users at lists.osgeo.org' Onderwerp: RE: Shift of half a pixel Dear Steve, Thanks for your reply. And this is my first time posting, so forgive my lack of information. I'm running mapserver 6.0.3 with gdal 1.9.0 (compiled with libecwj) on Ubuntu 12.04. In both QGis 1.7.0 and Mapinfo 10.5 I tried to load both the original image (both as tif and ecw), and the served image in the same viewer. As I toggled between the images (after drawing some reference points) I could see the image shifted slightly in relation to the reference point. I did for several corners, and the shift seems to be somewhat inconsistent, moving in several directions in different areas of the image. But assuming a bounding box model problem, how would I be able to find such a thing out? Fritz ________________________________ Van: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Verzonden: maandag 4 juni 2012 23:35 Aan: Fritz van Deventer; mapserver-users at lists.osgeo.org Onderwerp: RE: Shift of half a pixel What version are you talking about? How do you know there is a shift? That is, what is your reference? Is it possible there's a difference in the bounding box model? For WMS the bbox represents the outside dimensions of the pixels in an image. Steve Note: MapServer uses a pixel center bbox model but that difference (with WMS's representation) is taken into account in the WMS code. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fritz van Deventer Sent: Monday, June 04, 2012 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Shift of half a pixel Hi all, We are trying to get VHR satellite imagery to run as a WMS in different GIS clients. When we compare the original image (we tried different formats, tif, ecw, virtual formats etc.) to the hosted image we see a shift in the pixels. Looks like a minor warp or transform. We are unable to find what is causing this error. We tried using different output drivers, and different output and input formats. It looks like serving with GDAL as output format and Imagemode on FLOAT32 gives the best result, however in black and white. If this is a known issue, is anyone able to tell me the (in)accuracy of the shift? Or is it not supposed to happen altogether? Regards, Fritz van Deventer - http://neo.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From angelo.harpster at gmail.com Thu Jun 7 16:58:23 2012 From: angelo.harpster at gmail.com (AngeloH) Date: Thu, 7 Jun 2012 16:58:23 -0700 (PDT) Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes In-Reply-To: <1338911946132-4979270.post@n6.nabble.com> References: <1338911946132-4979270.post@n6.nabble.com> Message-ID: <1339113503305-4979843.post@n6.nabble.com> Wow, I just confirmed what you are talking about. Scary. I just upgraded to MapServer 6.0.2 and Debian 6.0.5. I made a single record, mulitpolygon shapefile around the IDL and tried your hatching trick. My CPU's spiked also. Are people of aware of this? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979843.html Sent from the Mapserver - User mailing list archive at Nabble.com. From angelo.harpster at gmail.com Thu Jun 7 17:04:54 2012 From: angelo.harpster at gmail.com (AngeloH) Date: Thu, 7 Jun 2012 17:04:54 -0700 (PDT) Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes In-Reply-To: <1339113503305-4979843.post@n6.nabble.com> References: <1338911946132-4979270.post@n6.nabble.com> <1339113503305-4979843.post@n6.nabble.com> Message-ID: <1339113894485-4979844.post@n6.nabble.com> All my CPUs are at 100% now and not moving. This is a slowdown...wondering how long they will stay there. The layer I'm rendering is tiny. On second thought, you or I should report this as a bug. What do you think gregcorradini? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979844.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steven_Hin at golder.com Thu Jun 7 18:35:55 2012 From: Steven_Hin at golder.com (StevenHin) Date: Thu, 7 Jun 2012 18:35:55 -0700 (PDT) Subject: [mapserver-users] MapFile ClassItem Expression on in-line features Message-ID: <1339119355780-4979849.post@n6.nabble.com> Hi, Hoping someone can help out here... I am trying to configure MapFile that would generate an image based on the attributes setting, but could not get it creates correctly. What I am trying to do is when the 'color' attribute value is 1 then render a star symbol and when is 0 then render a circle. It works when I am reading the data from a shapfile, but it does not when using in-line. Is there something I have to add here for in-line feature set? Here is my MapFile: MAP NAME "myMap" STATUS ON UNITS METERS SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "star" TYPE VECTOR FILLED TRUE POINTS 0 0.375 0.35 0.375 0.5 0 0.65 0.375 1 0.375 0.75 0.625 0.875 1 0.5 0.75 0.125 1 0.25 0.625 END END LAYER NAME "myLayer" TYPE POINT PROCESSING "ITEMS=layer,pid,color" STATUS ON #CLASSITEM "color" FEATURE POINTS 123 123 END ITEMS "address;123;0" END FEATURE POINTS 125 125 END ITEMS "address;125;1" END CLASS EXPRESSION ('[color]' == '1') STYLE ANGLE 0 COLOR 250 0 0 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "star" END END CLASS EXPRESSION ('[color]' == '0') STYLE ANGLE 0 COLOR 0 0 250 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "circle" END END END END Thanks, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Jun 8 06:12:54 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Jun 2012 13:12:54 +0000 Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes In-Reply-To: <1339113894485-4979844.post@n6.nabble.com> References: <1338911946132-4979270.post@n6.nabble.com> <1339113503305-4979843.post@n6.nabble.com>, <1339113894485-4979844.post@n6.nabble.com> Message-ID: I agree, please create a ticket along with a simple test case. -Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of AngeloH [angelo.harpster at gmail.com] Sent: Thursday, June 07, 2012 7:04 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes All my CPUs are at 100% now and not moving. This is a slowdown...wondering how long they will stay there. The layer I'm rendering is tiny. On second thought, you or I should report this as a bug. What do you think gregcorradini? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979844.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 no-reply at neogeo-online.net Fri Jun 8 05:36:24 2012 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 08 Jun 2012 14:36:24 +0200 Subject: [mapserver-users] Mapcache OnlineResource Message-ID: <4FD1F1C8.30107@neogeo-online.net> Hi, In a mapcache WMTS generated getCapabilities, onlineresource seems to be computed automatically from the actual server name, which leads to issues when that server is not publically exposed with the same name. Is there a way to set manually the OnlineResource string ? Thanks Guillaume From no-reply at neogeo-online.net Fri Jun 8 06:19:19 2012 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 08 Jun 2012 15:19:19 +0200 Subject: [mapserver-users] Mapcache OnlineResource In-Reply-To: <4FD1F1C8.30107@neogeo-online.net> References: <4FD1F1C8.30107@neogeo-online.net> Message-ID: <4FD1FBD7.90403@neogeo-online.net> Found the answer myself (it happens...). Just add an url tag in the global metadata block, pointing to the correct service entry point. Best Guillaume Le 08/06/12 14:36, Guillaume Sueur a ?crit : > Hi, > > In a mapcache WMTS generated getCapabilities, onlineresource seems to be > computed automatically from the actual server name, which leads to > issues when that server is not publically exposed with the same name. Is > there a way to set manually the OnlineResource string ? > > Thanks > > Guillaume > > _______________________________________________ > 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 8 07:02:48 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Jun 2012 14:02:48 +0000 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: <6E2201A92AB14ED2ADF24AA11E55A4A9@DELLM4500> References: , <6E2201A92AB14ED2ADF24AA11E55A4A9@DELLM4500> Message-ID: Where/how are you measuring times (server/client)? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Wednesday, June 06, 2012 2:35 PM To: 'mapserver-users' Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). >From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Fri Jun 8 07:16:57 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 8 Jun 2012 15:16:57 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: Message-ID: <01D62364C7114553A03261573259D569@DELLM4500> Steve, It's not a scientific measurement. For this particular example, the whole setup (server and client) is on a XP SP3 machine with 4 Gb memory. From the point when the mapping page is requested, the time taken to start seeing tiles returned is about 15 seconds. After that initial time, the images come in thick and fast. I'm pretty sure that it's the first load of mapserv.exe and, if the requested layer is via postgis, the first load of postgis. I'm trying to think of ways to speed up that initial load like, as I said in the last post, requesting a map tile on the fly (and hidden) so that mapserv.exe has been run once and is in memory ready for the next, or first 'real', request. It's probably the only downside to a system that I've got running like a little sweetie just now. It's basically a classic asp website running on IIS but I can switch between IIS and Apache for the mapping WMS/WFS. Both are quite fast and both run FastCGI though Apache seems a little more stable when a lot of tiles are requested with a lot of fast map drags; sometimes IIS gives up on individual request. Whether IIS or Apache, there's still this initial load delay of about 15 seconds. This may be something that I have to live with but I'm trying to improve that initial load if possible. To go back to your original question, my guess is that the load time is a server issue rather than a client problem though I may be wrong. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 08 June 2012 15:03 To: Donald Kerr; 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Where/how are you measuring times (server/client)? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Wednesday, June 06, 2012 2:35 PM To: 'mapserver-users' Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). >From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). Many thanks. Regards, Donald _______________________________________________ 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 8 07:24:59 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Jun 2012 14:24:59 +0000 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: <01D62364C7114553A03261573259D569@DELLM4500> References: , <01D62364C7114553A03261573259D569@DELLM4500> Message-ID: I've noticed latency the first time mapserv is executed, presumably as a result of loading into memory and dynamic linking. Once the OS caches everything it's nice and snappy. I tend to see that only on my development versions though because on our production boxes the executables are hit often enough that they are always in memory. Unless access is very infrequent I'd think latency due to loading a binary would be rare. I suppose you could simulate traffic on the server-side to make sure everything is memory resident. That is, make a small request every 5 minutes or whatever using cron or the Windows equivalent. I'm not experienced enough with PostGIS to know if there's any tuning to do there. Maybe others have ideas. Steve ________________________________________ From: Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Friday, June 08, 2012 9:16 AM To: Lime, Steve D (DNR); 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Steve, It's not a scientific measurement. For this particular example, the whole setup (server and client) is on a XP SP3 machine with 4 Gb memory. From the point when the mapping page is requested, the time taken to start seeing tiles returned is about 15 seconds. After that initial time, the images come in thick and fast. I'm pretty sure that it's the first load of mapserv.exe and, if the requested layer is via postgis, the first load of postgis. I'm trying to think of ways to speed up that initial load like, as I said in the last post, requesting a map tile on the fly (and hidden) so that mapserv.exe has been run once and is in memory ready for the next, or first 'real', request. It's probably the only downside to a system that I've got running like a little sweetie just now. It's basically a classic asp website running on IIS but I can switch between IIS and Apache for the mapping WMS/WFS. Both are quite fast and both run FastCGI though Apache seems a little more stable when a lot of tiles are requested with a lot of fast map drags; sometimes IIS gives up on individual request. Whether IIS or Apache, there's still this initial load delay of about 15 seconds. This may be something that I have to live with but I'm trying to improve that initial load if possible. To go back to your original question, my guess is that the load time is a server issue rather than a client problem though I may be wrong. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 08 June 2012 15:03 To: Donald Kerr; 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Where/how are you measuring times (server/client)? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Wednesday, June 06, 2012 2:35 PM To: 'mapserver-users' Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). >From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Fri Jun 8 07:36:18 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 8 Jun 2012 15:36:18 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: Message-ID: Steve, I have a server setup, IIS on Windows Server 2003, that is hit often enough that it's always fast. The single client server on the one machine setup where maps are hit infrequently is the big issue for me. I will try using the Windows AT command to set up a schedule to see if that makes a difference as you suggest. As I said before, the hidden window map request didn't seem to make a difference; almost as if it weren't part of the same session. Some more experimenting on my side is required. I will post back here should I make some progress. Cheers. Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 08 June 2012 15:25 To: Donald Kerr; 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time I've noticed latency the first time mapserv is executed, presumably as a result of loading into memory and dynamic linking. Once the OS caches everything it's nice and snappy. I tend to see that only on my development versions though because on our production boxes the executables are hit often enough that they are always in memory. Unless access is very infrequent I'd think latency due to loading a binary would be rare. I suppose you could simulate traffic on the server-side to make sure everything is memory resident. That is, make a small request every 5 minutes or whatever using cron or the Windows equivalent. I'm not experienced enough with PostGIS to know if there's any tuning to do there. Maybe others have ideas. Steve ________________________________________ From: Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Friday, June 08, 2012 9:16 AM To: Lime, Steve D (DNR); 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Steve, It's not a scientific measurement. For this particular example, the whole setup (server and client) is on a XP SP3 machine with 4 Gb memory. From the point when the mapping page is requested, the time taken to start seeing tiles returned is about 15 seconds. After that initial time, the images come in thick and fast. I'm pretty sure that it's the first load of mapserv.exe and, if the requested layer is via postgis, the first load of postgis. I'm trying to think of ways to speed up that initial load like, as I said in the last post, requesting a map tile on the fly (and hidden) so that mapserv.exe has been run once and is in memory ready for the next, or first 'real', request. It's probably the only downside to a system that I've got running like a little sweetie just now. It's basically a classic asp website running on IIS but I can switch between IIS and Apache for the mapping WMS/WFS. Both are quite fast and both run FastCGI though Apache seems a little more stable when a lot of tiles are requested with a lot of fast map drags; sometimes IIS gives up on individual request. Whether IIS or Apache, there's still this initial load delay of about 15 seconds. This may be something that I have to live with but I'm trying to improve that initial load if possible. To go back to your original question, my guess is that the load time is a server issue rather than a client problem though I may be wrong. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 08 June 2012 15:03 To: Donald Kerr; 'mapserver-users' Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Where/how are you measuring times (server/client)? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Donald Kerr [donald.kerr at dkerr.co.uk] Sent: Wednesday, June 06, 2012 2:35 PM To: 'mapserver-users' Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Basically my mapping setup is, from client to server, Openlayers WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). >From boot up, the initial, or first load of maps, takes up to 15 seconds. After that, it flies along fine. I've tried pre-loading in a hidden browser instance but that didn't work. I cannot get that initial load time down at all. Any tips to reduce the time taken for the first load of the software: Specifically Mapserver whether it's creating the map from PostGIS or the shapefile (Tiffs). Many thanks. Regards, Donald _______________________________________________ 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 8 08:09:57 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 08 Jun 2012 12:09:57 -0300 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: <6E2201A92AB14ED2ADF24AA11E55A4A9@DELLM4500> References: <6E2201A92AB14ED2ADF24AA11E55A4A9@DELLM4500> Message-ID: <4FD215C5.9050902@gatewaygeomatics.com> On 12-06-06 4:35 PM, Donald Kerr wrote: > Basically my mapping setup is, from client to server, Openlayers WMS/WFS > (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or > PostGIS (XP Pro SP3 - IIS & FastCGI). > >>From boot up, the initial, or first load of maps, takes up to 15 seconds. > After that, it flies along fine. > > I've tried pre-loading in a hidden browser instance but that didn't work. I > cannot get that initial load time down at all. > > Any tips to reduce the time taken for the first load of the software: > Specifically Mapserver whether it's creating the map from PostGIS or the > shapefile (Tiffs). I can give my experiences here. I have a very slow server that I use for client demos, and I very often hit this exact same issue (my OpenLayers/MapServer WMS/WFS application takes very long to load initially, then zooms along). In my case, the long initial load is always due to the large lib/OpenLayers.js file; I solve this by generating an 'OpenLayers-lite.js' file (through the instructions at http://docs.openlayers.org/library/deploying.html). I hope that helps someone along the way. Have a nice weekend all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ian.walberg at airborne.aero Fri Jun 8 17:18:35 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 8 Jun 2012 20:18:35 -0400 Subject: [mapserver-users] Circles around points in miles In-Reply-To: References: <4F3BFB2C.8090703@swoodbridge.com><6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> Message-ID: This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From cheung.jackey at gmail.com Fri Jun 8 21:56:48 2012 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Sat, 9 Jun 2012 12:56:48 +0800 Subject: [mapserver-users] File size of generated PNG Message-ID: Some background first. I'm currently using MapServer + TileCache, and planning to try out the new MapCache stuff. While using MS+TC, there was a headache bothers me. Although not specific to MS, I'm not sure where to start, so posting here in hope of getting some pointers. The problem is the file size of PNG images genereated by MS. They are relatively much larger than we want. Now we have one lengthy process that runs stuffs like pngcrush after seeded a cache with TC. This is a painfully lengthy proccess, which takes months to finish due to the coverage of map. Just wondering, how to make MS generates minimum size PNG, or how to make TC to slice images with minimum file size? Or is using "post-process" the only way to achieve it? We are not talking about the absolute minimum, just want to have the smallest size in average. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gautamnitw at gmail.com Sat Jun 9 00:34:14 2012 From: gautamnitw at gmail.com (gautam) Date: Sat, 9 Jun 2012 00:34:14 -0700 (PDT) Subject: [mapserver-users] Need help to debug a code Message-ID: <1339227254345-4980116.post@n6.nabble.com> hi, While using postgis with mapserver ... i am getting black image in place of raster image... please help ... LAYER NAME coolwktraster TYPE raster STATUS DEFAULT DATA "PG:host=localhost port=5432 dbname='postgis' user='postgres' password='*******' schema='public' table='test' " PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROJECTION "init=epsg:3003" END METADATA "wms_title" "OFC 1:10.000 single" "wms_srs" "EPSG:3003 EPSG:4326" END END ... Error report: [Sat Jun 09 01:49:25 2012].727000 CGI Request 1 on process 2096 [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat Jun 09 01:49:25 2012].731000 msDrawRasterLayerLow(coolwktraster): entering. [Sat Jun 09 01:49:26 2012].252000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].259000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].265000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Layer 0 (coolwktraster), 0.540s [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Drawing Label Cache, 0.000s [Sat Jun 09 01:49:26 2012].269000 msDrawMap() total time: 0.542s [Sat Jun 09 01:49:26 2012].424000 msSaveImage(stdout) total time: 0.155s [Sat Jun 09 01:49:26 2012].425000 mapserv request processing time (loadmap not incl.): 0.698s [Sat Jun 09 01:49:26 2012].425000 msFreeMap(): freeing map at 025D1FE8. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Need-help-to-debug-a-code-tp4980116.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gautamnitw at gmail.com Sat Jun 9 00:34:20 2012 From: gautamnitw at gmail.com (gautam) Date: Sat, 9 Jun 2012 00:34:20 -0700 (PDT) Subject: [mapserver-users] Need help to debug a code Message-ID: <1339227260036-4980117.post@n6.nabble.com> hi, While using postgis with mapserver ... i am getting black image in place of raster image... please help ... LAYER NAME coolwktraster TYPE raster STATUS DEFAULT DATA "PG:host=localhost port=5432 dbname='postgis' user='postgres' password='*******' schema='public' table='test' " PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" PROJECTION "init=epsg:3003" END METADATA "wms_title" "OFC 1:10.000 single" "wms_srs" "EPSG:3003 EPSG:4326" END END ... Error report: [Sat Jun 09 01:49:25 2012].727000 CGI Request 1 on process 2096 [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat Jun 09 01:49:25 2012].731000 msDrawRasterLayerLow(coolwktraster): entering. [Sat Jun 09 01:49:26 2012].252000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].259000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].265000 LoadGDALImage(coolwktraster): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Layer 0 (coolwktraster), 0.540s [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Drawing Label Cache, 0.000s [Sat Jun 09 01:49:26 2012].269000 msDrawMap() total time: 0.542s [Sat Jun 09 01:49:26 2012].424000 msSaveImage(stdout) total time: 0.155s [Sat Jun 09 01:49:26 2012].425000 mapserv request processing time (loadmap not incl.): 0.698s [Sat Jun 09 01:49:26 2012].425000 msFreeMap(): freeing map at 025D1FE8. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Need-help-to-debug-a-code-tp4980117.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sat Jun 9 01:08:36 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 9 Jun 2012 08:08:36 +0000 Subject: [mapserver-users] File size of generated PNG In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63458347@suutari.haapa.mmm.fi> Hi, Have you already tried quantize and compression options from http://www.mapserver.org/mapfile/outputformat.html? The "png8" example is a good starting point. How does your current png outputformat look? -Jukka Rahkonen- ________________________________ Jackey Cheung wrote: > Some background first. I'm currently using MapServer + TileCache, and planning to try out the new MapCache stuff. While using MS+TC, there was a headache bothers me. Although not specific to MS, I'm not sure where to start, so posting here in hope of getting some pointers. > The problem is the file size of PNG images genereated by MS. They are relatively much larger than we want. Now we have one lengthy process that runs stuffs like pngcrush after seeded a cache with TC. This is a painfully lengthy proccess, which takes months to finish due to the coverage of map. > Just wondering, how to make MS generates minimum size PNG, or how to make TC to slice images with minimum file size? Or is using "post-process" the only way to achieve it? We are not talking about the absolute minimum, just want to have the smallest size in average. From scott159 at free.fr Sat Jun 9 02:22:32 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Sat, 9 Jun 2012 11:22:32 +0200 (CEST) Subject: [mapserver-users] Run-time substitution In-Reply-To: <1100921324.201558106.1339232876037.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <1662263764.201587757.1339233752938.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I would like to use run-time substitution in a mapfile to insert variables like %firstname%. Is it necessary to specify validation block in the mapfile to use it ? It doesn't work without this validation pattern. Second problem, how to specify this validation pattern to use characters with accent like '?, ?'. I try this example but it doesn't work : VALIDATION 'firstname' '^[a-zA-Z??\-]+$' END Thanks a lot From Jukka.Rahkonen at mmmtike.fi Sat Jun 9 02:47:58 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 9 Jun 2012 09:47:58 +0000 Subject: [mapserver-users] Run-time substitution In-Reply-To: <1662263764.201587757.1339233752938.JavaMail.root@zimbra34-e6.priv.proxad.net> References: <1100921324.201558106.1339232876037.JavaMail.root@zimbra34-e6.priv.proxad.net>, <1662263764.201587757.1339233752938.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <84446DEF76453C439E9E97E438E13A6345835C@suutari.haapa.mmm.fi> Hi, I fear that only ascii characters can be used for validation. For us who need to use also non-ascii characters validation can be set to "." which accepts everything, so no validation at all. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän scott159 at free.fr [scott159 at free.fr] puolesta L?hetetty: 9. kes?kuuta 2012 12:22 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Run-time substitution Hi, I would like to use run-time substitution in a mapfile to insert variables like %firstname%. Is it necessary to specify validation block in the mapfile to use it ? It doesn't work without this validation pattern. Second problem, how to specify this validation pattern to use characters with accent like '?, ?'. I try this example but it doesn't work : VALIDATION 'firstname' '^[a-zA-Z??\-]+$' END Thanks a lot _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Sat Jun 9 08:13:03 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sat, 9 Jun 2012 16:13:03 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: <4FD215C5.9050902@gatewaygeomatics.com> Message-ID: Jeff, Great tip! My deployment uses a full compressed build of the openlayers.js file with some changes to vml.js (uses vml textpath - for <= IE8) and svg.js (uses text rotation - for Chrome and Firefox). This file comes in at 927 KB. I created a custom compressed build of the openlayers.js file, again including the vml and svg changes. The new file comes in at 443 KB; a very significant drop in size. Both files were built using the latest, hot off the press, OpenLayers-2.12-rc6. Prior to creating and using the new, smaller openlayers.js file, I tested the time to get the first raster image tile from boot up with the larger file which was 16 seconds. I did a one click zoom to the first layer that has PostGIS sitting behind it and that took a further 8 seconds. After that initial load of both layer types, everything is speedy with very little delay at all. I then substituted the new, smaller openlayers.js file and repeated the process from boot up. Low and behold, I get exactly the same results: 16 seconds then 8 seconds. Whilst there is probably a time saving in terms of milliseconds, the perceptional difference is nil. However, I do agree that the smaller openlayers.js file is the way to go in terms of reducing unnecessary initial traffic and also having less javascript in memory; something that will no doubt aid Internet Explorer speed-wise as that particular platform is chronic at best. Thanks again for the tip. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 08 June 2012 16:10 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time On 12-06-06 4:35 PM, Donald Kerr wrote: > Basically my mapping setup is, from client to server, Openlayers > WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile > (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). > >>From boot up, the initial, or first load of maps, takes up to 15 >>seconds. > After that, it flies along fine. > > I've tried pre-loading in a hidden browser instance but that didn't > work. I cannot get that initial load time down at all. > > Any tips to reduce the time taken for the first load of the software: > Specifically Mapserver whether it's creating the map from PostGIS or > the shapefile (Tiffs). I can give my experiences here. I have a very slow server that I use for client demos, and I very often hit this exact same issue (my OpenLayers/MapServer WMS/WFS application takes very long to load initially, then zooms along). In my case, the long initial load is always due to the large lib/OpenLayers.js file; I solve this by generating an 'OpenLayers-lite.js' file (through the instructions at http://docs.openlayers.org/library/deploying.html). I hope that helps someone along the way. Have a nice weekend all. -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 From jmckenna at gatewaygeomatics.com Sat Jun 9 09:36:05 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 09 Jun 2012 13:36:05 -0300 Subject: [mapserver-users] Need help to debug a code In-Reply-To: <1339227260036-4980117.post@n6.nabble.com> References: <1339227260036-4980117.post@n6.nabble.com> Message-ID: <4FD37B75.8080406@gatewaygeomatics.com> On 12-06-09 4:34 AM, gautam wrote: > hi, > > While using postgis with mapserver ... i am getting black image in place of > raster image... please help > > > > ... > LAYER > NAME coolwktraster > TYPE raster > STATUS DEFAULT > DATA "PG:host=localhost port=5432 dbname='postgis' user='postgres' > password='*******' schema='public' table='test' " > PROCESSING "NODATA=0" > PROCESSING "SCALE=AUTO" > PROJECTION > "init=epsg:3003" > END > METADATA > "wms_title" "OFC 1:10.000 single" > "wms_srs" "EPSG:3003 EPSG:4326" > END > END > ... > > > Error report: > > [Sat Jun 09 01:49:25 2012].727000 CGI Request 1 on process 2096 > [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): rendering using outputformat > named png (AGG/PNG). > [Sat Jun 09 01:49:25 2012].729000 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Sat Jun 09 01:49:25 2012].731000 msDrawRasterLayerLow(coolwktraster): > entering. > [Sat Jun 09 01:49:26 2012].252000 LoadGDALImage(coolwktraster): NODATA value > 0 in GDAL > file or PROCESSING directive largely ignored. Not yet fully supported for > unclassified scaled data. The NODATA value is excluded from auto-scaling > min/max computation, but will not be transparent. > [Sat Jun 09 01:49:26 2012].259000 LoadGDALImage(coolwktraster): NODATA value > 0 in GDAL > file or PROCESSING directive largely ignored. Not yet fully supported for > unclassified scaled data. The NODATA value is excluded from auto-scaling > min/max computation, but will not be transparent. > [Sat Jun 09 01:49:26 2012].265000 LoadGDALImage(coolwktraster): NODATA value > 0 in GDAL > file or PROCESSING directive largely ignored. Not yet fully supported for > unclassified scaled data. The NODATA value is excluded from auto-scaling > min/max computation, but will not be transparent. > [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Layer 0 (coolwktraster), > 0.540s > [Sat Jun 09 01:49:26 2012].269000 msDrawMap(): Drawing Label Cache, 0.000s > [Sat Jun 09 01:49:26 2012].269000 msDrawMap() total time: 0.542s > [Sat Jun 09 01:49:26 2012].424000 msSaveImage(stdout) total time: 0.155s > [Sat Jun 09 01:49:26 2012].425000 mapserv request processing time (loadmap > not incl.): 0.698s > [Sat Jun 09 01:49:26 2012].425000 msFreeMap(): freeing map at 025D1FE8. > Hello, Some things I might do/check if I was in this same situation: - when I load the data into Postgres, I would make sure to assign the projection (if using shp2pgsl then use the -s switch, if using ogr2ogr then use -s_srs and -a_srs switches) - I might use Quantum GIS to view that Postgres layer (http://www.qgis.org/) - then I would use ogrinfo with the -summary switch to connect to that Postgres layer and check its spatial coordinates - I would use the extents returned from ogrinfo in my mapfile EXTENT parameter - I would remove the NODATA value (and PROCESSING parameters) from the mapfile layer and then test with the sh2img commandline utility I hope that helps you or someone else down the line... -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From groups at sq9mev.info Sat Jun 9 22:58:07 2012 From: groups at sq9mev.info (SQ9MEV) Date: Sun, 10 Jun 2012 07:58:07 +0200 Subject: [mapserver-users] File size of generated PNG In-Reply-To: <84446DEF76453C439E9E97E438E13A63458347@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63458347@suutari.haapa.mmm.fi> Message-ID: <4FD4376F.2050902@sq9mev.info> On 09.06.2012 10:08, Rahkonen Jukka wrote: > Hi, > > Have you already tried quantize and compression options from http://www.mapserver.org/mapfile/outputformat.html? The "png8" example is a good starting point. > > How does your current png outputformat look? I've faced this problem some time ago - i wanted fancy transparent tiles. The solution was to use paletted PNG: OUTPUTFORMAT NAME "png" DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/[...]/palette.txt" INCLUDE "palette.map" FORMATOPTION "INTERLACE=OFF" END That decreased non empty file size from avrerage ~13KB to 2..3kB, empty pngs are bigger ofcourse (AFAIR 1.8KB paletted vs 332B not paletted). I use custom django views using some parts of tilecache - tilecache must be patched to use transaprency in palette: https://github.com/sq9mev/TileCache/commit/cd718fae9d8da01673c842b0b89226bb8ba4697f And you have to use development version of PIL: https://bitbucket.org/effbot/pil-2009-raclette And you need to prepare your palette as well. -- Regards Bartek From mikesaunt at gmail.com Sun Jun 10 07:22:05 2012 From: mikesaunt at gmail.com (Mike Saunt) Date: Sun, 10 Jun 2012 15:22:05 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: References: <4FD215C5.9050902@gatewaygeomatics.com> Message-ID: Not sure if this helps but often with IIS there is a lag at startup to load things up, plenty of microsoft doco out there regarding it... On Jun 9, 2012 4:13 PM, "Donald Kerr" wrote: > Jeff, > > Great tip! > > My deployment uses a full compressed build of the openlayers.js file with > some changes to vml.js (uses vml textpath - for <= IE8) and svg.js (uses > text rotation - for Chrome and Firefox). This file comes in at 927 KB. > > I created a custom compressed build of the openlayers.js file, again > including the vml and svg changes. The new file comes in at 443 KB; a very > significant drop in size. > > Both files were built using the latest, hot off the press, > OpenLayers-2.12-rc6. > > Prior to creating and using the new, smaller openlayers.js file, I tested > the time to get the first raster image tile from boot up with the larger > file which was 16 seconds. I did a one click zoom to the first layer that > has PostGIS sitting behind it and that took a further 8 seconds. After that > initial load of both layer types, everything is speedy with very little > delay at all. > > I then substituted the new, smaller openlayers.js file and repeated the > process from boot up. Low and behold, I get exactly the same results: 16 > seconds then 8 seconds. Whilst there is probably a time saving in terms of > milliseconds, the perceptional difference is nil. > > However, I do agree that the smaller openlayers.js file is the way to go in > terms of reducing unnecessary initial traffic and also having less > javascript in memory; something that will no doubt aid Internet Explorer > speed-wise as that particular platform is chronic at best. > > Thanks again for the tip. > > Regards, > > Donald > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: 08 June 2012 16:10 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time > > > On 12-06-06 4:35 PM, Donald Kerr wrote: > > Basically my mapping setup is, from client to server, Openlayers > > WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile > > (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). > > > >>From boot up, the initial, or first load of maps, takes up to 15 > >>seconds. > > After that, it flies along fine. > > > > I've tried pre-loading in a hidden browser instance but that didn't > > work. I cannot get that initial load time down at all. > > > > Any tips to reduce the time taken for the first load of the software: > > Specifically Mapserver whether it's creating the map from PostGIS or > > the shapefile (Tiffs). > > I can give my experiences here. I have a very slow server that I use for > client demos, and I very often hit this exact same issue (my > OpenLayers/MapServer WMS/WFS application takes very long to load initially, > then zooms along). In my case, the long initial load is always due to the > large lib/OpenLayers.js file; I solve this by generating an > 'OpenLayers-lite.js' file (through the instructions at > http://docs.openlayers.org/library/deploying.html). > > I hope that helps someone along the way. > > Have a nice weekend all. > > -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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Mendt at mailbox.tu-dresden.de Mon Jun 11 04:44:39 2012 From: Jacob.Mendt at mailbox.tu-dresden.de (Jacob Mendt) Date: Mon, 11 Jun 2012 13:44:39 +0200 Subject: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version? Message-ID: <4FD5DA27.7090104@mailbox.tu-dresden.de> Hello List. I appreciate the work which is done around the mapserver. Right now I try to use the java mapscript interface and I got the following issue. I already got the java mapscript interface running. But right now it is only working with a 32-bit java version. My question is now, if there is also any support for 64-bit java version? My runtime environment is: -Windows 7 (64 bit) -MS4W v3.0.2 packet (Mapscript 5.6.6.) -Java Version: 1.7.0_0.4 (32-bit) I am looking forward to hear from you. Kind regards, JM -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.skidoosh at gmail.com Mon Jun 11 05:29:48 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Mon, 11 Jun 2012 17:59:48 +0530 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver Message-ID: Dear friends. I'm new to pgrouting. It is part of my M.Tech thesis. I need to route from one point to another using dijkstra's algorithm. I intend to use pgrouting for it. I tried to follow the documentation of pgrouting along with some forum posts on websites. But despite having tried many combinations of code, I've been getting errors and I haven't been able to get the code to run. It is supposed to be simple but I'm obviously making a silly mistake somewhere. Please look into the code that I'm attaching and send me some suggestions as to how to make it work. Thank you very much. Here's the relevant layer code: LAYER NAME "route" CONNECTIONTYPE postgis CONNECTION "user=postgres password=********** dbname=VSDelhidb host=localhost" DEBUG 5 STATUS DEFAULT TYPE LINE DATA "the_geom from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using unique gid using srid=-1" TEMPLATE "t" # # //////////////////////////////////////////////////////THE CLASS THAT CLASSIFIES EVERYTHING IN IT. //////////////////////////////// # CLASS NAME "0" STYLE SYMBOL "circle" SIZE 10 OUTLINECOLOR 255 0 0 COLOR 165 42 42 END #_________END OF THE CLASS THAT CLASSIFIES EVERYTHING.___________############################################################## END #________END OF THE LAYER THAT DRAWS EVERYTHING._________############################################################################## I am getting this error: msDrawMap(): Image handling error. Failed to draw layer named 'route'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "the_geom" does not exist LINE 1: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... ^ When I brought up the error log, this is what I got: [Mon Jun 11 17:33:41 2012].605652 msPostGISLayerNextShape called. [Mon Jun 11 17:33:41 2012].605688 msPostGISLayerFreeItemInfo called. [Mon Jun 11 17:33:41 2012].605716 msPostGISLayerClose called: the_geom from edges_arc [Mon Jun 11 17:33:41 2012].605764 msConnPoolRelease(Road4,user=postgres password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) [Mon Jun 11 17:33:41 2012].605801 msConnPoolClose(user=postgres password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) [Mon Jun 11 17:33:41 2012].606352 msDrawMap(): Layer 3 (Road4), 0.487s [Mon Jun 11 17:33:41 2012].606465 msPostGISLayerOpen called: the_geom from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using unique gid using srid=-1 [Mon Jun 11 17:33:41 2012].606515 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Mon Jun 11 17:33:41 2012].796074 msConnPoolRegister(route,user=postgres password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) [Mon Jun 11 17:33:41 2012].834424 msPostGISLayerOpen: Got PostGIS version 10500. [Mon Jun 11 17:33:41 2012].834495 msPostGISLayerFreeItemInfo called. [Mon Jun 11 17:33:41 2012].834635 msPostGISLayerWhichShapes called. [Mon Jun 11 17:33:41 2012].834677 msPostGISParseData called. [Mon Jun 11 17:33:41 2012].834770 msPostGISParseData: unique_column=gid, srid=-1, geom_column_name=the_geom, table_name=(SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo [Mon Jun 11 17:33:41 2012].834817 msPostGISBuildSQL called. [Mon Jun 11 17:33:41 2012].834855 msPostGISBuildSQLItems called. [Mon Jun 11 17:33:41 2012].834887 msPostGISBuildSQLItems: 0 items requested. [Mon Jun 11 17:33:41 2012].834919 msPostGISBuildSQLFrom called. [Mon Jun 11 17:33:41 2012].834949 msPostGISBuildSQLWhere called. [Mon Jun 11 17:33:41 2012].834978 msPostGISBuildSQLSRID called. [Mon Jun 11 17:33:41 2012].835008 msPostGISBuildSQLSRID: SRID provided (-1) [Mon Jun 11 17:33:41 2012].835037 msPostGISBuildSQLBox called. [Mon Jun 11 17:33:41 2012].835136 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 4811.71,6544.54966101695 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) [Mon Jun 11 17:33:41 2012].837949 msPostGISLayerWhichShapes query status: PGRES_FATAL_ERROR (7) [Mon Jun 11 17:33:41 2012].838047 Error (msPostGISLayerWhichShapes() ) executing query: ERROR: column "the_geom" does not exist LINE 1: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... ^ [Mon Jun 11 17:33:41 2012].838102 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "the_geom" does not exist LINE 1: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... ^ [Mon Jun 11 17:33:41 2012].838139 msPostGISLayerFreeItemInfo called. [Mon Jun 11 17:33:41 2012].838171 msPostGISLayerClose called: the_geom from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using unique gid using srid=-1 [Mon Jun 11 17:33:41 2012].838205 msConnPoolRelease(route,user=postgres password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) [Mon Jun 11 17:33:41 2012].838239 msConnPoolClose(user=postgres password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) [Mon Jun 11 17:33:41 2012].838779 msDrawMap(): Image handling error. Failed to draw layer named 'route'. [Mon Jun 11 17:33:41 2012].840194 msPostGISLayerClose called: the_geom from edges_line [Mon Jun 11 17:33:41 2012].840272 msPostGISLayerClose called: the_geom from allfeatureslabel_point [Mon Jun 11 17:33:41 2012].840309 msPostGISLayerClose called: the_geom from namesofroads_text [Mon Jun 11 17:33:41 2012].840347 msPostGISLayerClose called: the_geom from edges_arc [Mon Jun 11 17:33:41 2012].840386 msPostGISLayerClose called: the_geom from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using unique gid using srid=-1 [Mon Jun 11 17:33:41 2012].842833 freeLayer(): freeing layer at 0x88724e8. [Mon Jun 11 17:33:41 2012].842908 msPostGISLayerIsOpen called. [Mon Jun 11 17:33:41 2012].842953 freeLayer(): freeing layer at 0x88732e8. [Mon Jun 11 17:33:41 2012].842984 msPostGISLayerIsOpen called. [Mon Jun 11 17:33:41 2012].843025 freeLayer(): freeing layer at 0x8874220. [Mon Jun 11 17:33:41 2012].843057 msPostGISLayerIsOpen called. [Mon Jun 11 17:33:41 2012].843099 freeLayer(): freeing layer at 0x88750d8. [Mon Jun 11 17:33:41 2012].843152 msPostGISLayerIsOpen called. [Mon Jun 11 17:33:41 2012].843203 freeLayer(): freeing layer at 0x8875fb8. [Mon Jun 11 17:33:41 2012].843351 msPostGISLayerIsOpen called. Please help! Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 11 05:56:45 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Jun 2012 08:56:45 -0400 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver In-Reply-To: References: Message-ID: <4FD5EB0D.7080200@swoodbridge.com> Annu, This page is in error: http://www.pgrouting.org/docs/howto/mapserver.html The result of the dijkstra_sp() function returns a record set like: vertex_id | edge_id | cost which does not contain a geometry column. To get the geometry column which is in your dourol table you need to join the results back to that table, change you DATA statement to something like: DATA "the_geom from ( select b.the_geom, a.* from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost, FROM dourol',3, 7, false, false)) as a dourol b where a.edge_id=b.gid) AS foo using unique gid using srid=-1" -Steve W On 6/11/2012 8:29 AM, Annu Anurag wrote: > Dear friends. I'm new to pgrouting. It is part of my M.Tech thesis. I > need to route from one point to another using dijkstra's algorithm. I > intend to use pgrouting for it. I tried to follow the documentation of > pgrouting along with some forum posts on websites. But despite having > tried many combinations of code, I've been getting errors and I haven't > been able to get the code to run. It is supposed to be simple but I'm > obviously making a silly mistake somewhere. Please look into the code > that I'm attaching and send me some suggestions as to how to make it > work. Thank you very much. Here's the relevant layer code: > > LAYER > NAME "route" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=********** > dbname=VSDelhidb host=localhost" > DEBUG 5 > STATUS DEFAULT > TYPE LINE > DATA "the_geom from (SELECT * FROM shortest_path('SELECT > gid AS id, source::int4, target::int4, length::double precision AS cost, > length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) > AS foo using unique gid using srid=-1" > TEMPLATE "t" > > # > # //////////////////////////////////////////////////////THE > CLASS THAT CLASSIFIES EVERYTHING IN IT. //////////////////////////////// > # > > CLASS > > NAME "0" > STYLE > SYMBOL "circle" > SIZE 10 > OUTLINECOLOR 255 0 0 > COLOR 165 42 42 > > END #_________END OF THE CLASS THAT CLASSIFIES > EVERYTHING.___________############################################################## > END #________END OF THE LAYER THAT DRAWS > EVERYTHING._________############################################################################## > > > I am getting this error: > > msDrawMap(): Image handling error. Failed to draw layer named 'route'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > column "the_geom" does not exist LINE 1: select > encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... ^ > > > When I brought up the error log, this is what I got: > > > [Mon Jun 11 17:33:41 2012].605652 msPostGISLayerNextShape called. > [Mon Jun 11 17:33:41 2012].605688 msPostGISLayerFreeItemInfo called. > [Mon Jun 11 17:33:41 2012].605716 msPostGISLayerClose called: the_geom > from edges_arc > [Mon Jun 11 17:33:41 2012].605764 msConnPoolRelease(Road4,user=postgres > password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) > [Mon Jun 11 17:33:41 2012].605801 msConnPoolClose(user=postgres > password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) > [Mon Jun 11 17:33:41 2012].606352 msDrawMap(): Layer 3 (Road4), 0.487s > [Mon Jun 11 17:33:41 2012].606465 msPostGISLayerOpen called: the_geom > from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, > target::int4, length::double precision AS cost, length::double AS > reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using > unique gid using srid=-1 > [Mon Jun 11 17:33:41 2012].606515 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Mon Jun 11 17:33:41 2012].796074 msConnPoolRegister(route,user=postgres > password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) > [Mon Jun 11 17:33:41 2012].834424 msPostGISLayerOpen: Got PostGIS > version 10500. > [Mon Jun 11 17:33:41 2012].834495 msPostGISLayerFreeItemInfo called. > [Mon Jun 11 17:33:41 2012].834635 msPostGISLayerWhichShapes called. > [Mon Jun 11 17:33:41 2012].834677 msPostGISParseData called. > [Mon Jun 11 17:33:41 2012].834770 msPostGISParseData: unique_column=gid, > srid=-1, geom_column_name=the_geom, table_name=(SELECT * FROM > shortest_path('SELECT gid AS id, source::int4, target::int4, > length::double precision AS cost, length::double AS reverse_cost FROM > edges_line', 50, 210, false, false)) AS foo > [Mon Jun 11 17:33:41 2012].834817 msPostGISBuildSQL called. > [Mon Jun 11 17:33:41 2012].834855 msPostGISBuildSQLItems called. > [Mon Jun 11 17:33:41 2012].834887 msPostGISBuildSQLItems: 0 items requested. > [Mon Jun 11 17:33:41 2012].834919 msPostGISBuildSQLFrom called. > [Mon Jun 11 17:33:41 2012].834949 msPostGISBuildSQLWhere called. > [Mon Jun 11 17:33:41 2012].834978 msPostGISBuildSQLSRID called. > [Mon Jun 11 17:33:41 2012].835008 msPostGISBuildSQLSRID: SRID provided (-1) > [Mon Jun 11 17:33:41 2012].835037 msPostGISBuildSQLBox called. > [Mon Jun 11 17:33:41 2012].835136 msPostGISLayerWhichShapes query: > select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as > geom,"gid" from (SELECT * FROM shortest_path('SELECT gid AS id, > source::int4, target::int4, length::double precision AS cost, > length::double AS reverse_cost FROM edges_line', 50, 210, false, false)) > AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 > -4605.49,-6015.80966101695 4811.71,6544.54966101695 > 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) > [Mon Jun 11 17:33:41 2012].837949 msPostGISLayerWhichShapes query > status: PGRES_FATAL_ERROR (7) > [Mon Jun 11 17:33:41 2012].838047 Error (msPostGISLayerWhichShapes() > ) executing query: ERROR: column "the_geom" does not exist > LINE 1: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... > ^ > [Mon Jun 11 17:33:41 2012].838102 msPostGISLayerWhichShapes(): Query > error. Error executing query: ERROR: column "the_geom" does not exist > LINE 1: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'he... > ^ > > [Mon Jun 11 17:33:41 2012].838139 msPostGISLayerFreeItemInfo called. > [Mon Jun 11 17:33:41 2012].838171 msPostGISLayerClose called: the_geom > from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, > target::int4, length::double precision AS cost, length::double AS > reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using > unique gid using srid=-1 > [Mon Jun 11 17:33:41 2012].838205 msConnPoolRelease(route,user=postgres > password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) > [Mon Jun 11 17:33:41 2012].838239 msConnPoolClose(user=postgres > password=********** dbname=VSDelhidb host=localhost,0x88fe3f0) > [Mon Jun 11 17:33:41 2012].838779 msDrawMap(): Image handling error. > Failed to draw layer named 'route'. > [Mon Jun 11 17:33:41 2012].840194 msPostGISLayerClose called: the_geom > from edges_line > [Mon Jun 11 17:33:41 2012].840272 msPostGISLayerClose called: the_geom > from allfeatureslabel_point > [Mon Jun 11 17:33:41 2012].840309 msPostGISLayerClose called: the_geom > from namesofroads_text > [Mon Jun 11 17:33:41 2012].840347 msPostGISLayerClose called: the_geom > from edges_arc > [Mon Jun 11 17:33:41 2012].840386 msPostGISLayerClose called: the_geom > from (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, > target::int4, length::double precision AS cost, length::double AS > reverse_cost FROM edges_line', 50, 210, false, false)) AS foo using > unique gid using srid=-1 > [Mon Jun 11 17:33:41 2012].842833 freeLayer(): freeing layer at 0x88724e8. > [Mon Jun 11 17:33:41 2012].842908 msPostGISLayerIsOpen called. > [Mon Jun 11 17:33:41 2012].842953 freeLayer(): freeing layer at 0x88732e8. > [Mon Jun 11 17:33:41 2012].842984 msPostGISLayerIsOpen called. > [Mon Jun 11 17:33:41 2012].843025 freeLayer(): freeing layer at 0x8874220. > [Mon Jun 11 17:33:41 2012].843057 msPostGISLayerIsOpen called. > [Mon Jun 11 17:33:41 2012].843099 freeLayer(): freeing layer at 0x88750d8. > [Mon Jun 11 17:33:41 2012].843152 msPostGISLayerIsOpen called. > [Mon Jun 11 17:33:41 2012].843203 freeLayer(): freeing layer at 0x8875fb8. > [Mon Jun 11 17:33:41 2012].843351 msPostGISLayerIsOpen called. > > > Please help! Thank you! > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Mon Jun 11 07:32:17 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 11 Jun 2012 14:32:17 +0000 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> Hello, First, I am having trouble figuring out how to get transparency to work in mapcache when using a Mapserver/WMS source. Does anyone have an example of how to store a transparent mapcache with a Mapserver wms source? Next, The color of my cache is fine, however the surrounding area outside of the extent of the cache is black. Can that be changed to white, or transparent? Third, Mapcache seems really slow when it needs to assemble images. I am getting plenty of pink screens, and the response time is usually greater than 5 seconds. Mapcache is much faster when I use forward, so I know the problem is not the source wms. Does anyone have an idea as to why the performance is poor when assembling images? Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jun 11 07:45:27 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 11 Jun 2012 14:45:27 +0000 Subject: [mapserver-users] Circles around points in miles In-Reply-To: References: <4F3BFB2C.8090703@swoodbridge.com><6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> Message-ID: What are the UNITs set to with "proj=ortho"? -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Friday, June 08, 2012 7:19 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Mon Jun 11 07:46:37 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Jun 2012 16:46:37 +0200 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> Message-ID: On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: > Hello, > > First,? I am having trouble figuring out how to get transparency to work in > mapcache when using a Mapserver/WMS source.? Does anyone have an example of > how to store a transparent mapcache with a Mapserver wms source? make the tileset reference a png format, not a jpeg one. > > Next,? The color of my cache is fine, however the surrounding area outside > of the extent of the cache is black.? Can that be changed to white, or > transparent? same as previously, configure the wms service create png not jpeg ... PNG > > Third,? Mapcache seems really slow when it needs to assemble images.? I am > getting plenty of pink screens, and the response time is usually greater > than 5 seconds.? Mapcache is much faster when I use > forward, so I know the problem is not the source wms. > Does anyone have an idea as to why the performance is poor when assembling > images? I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. -- thomas > > Thank You > > Mark Volz > GIS Specialist > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Mon Jun 11 07:50:59 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Jun 2012 16:50:59 +0200 Subject: [mapserver-users] File size of generated PNG In-Reply-To: References: Message-ID: On Sat, Jun 9, 2012 at 6:56 AM, Jackey Cheung wrote: > Some background first. I'm currently using MapServer + TileCache, and > planning to try out the new MapCache stuff. While using MS+TC, there was a > headache bothers me. Although not specific to MS, I'm not sure where to > start, so posting here in hope of getting some pointers. > > The problem is the file size of PNG images genereated by MS. They are > relatively much larger than we want. Now we have one lengthy process that > runs stuffs like pngcrush after seeded a cache with TC. This is a painfully > lengthy proccess, which takes months to finish due to the coverage of map. > > Just wondering, how to make MS generates minimum size PNG, or how to make TC > to slice images with minimum file size? Or is using "post-process" the only > way to achieve it? We are not talking about the absolute minimum, just want > to have the smallest size in average. Mapcache itself does a png recompression after having chopped up a metatile into individual tiles, so the actual png compression done by mapserver is irrelevant in that case. As for the png compression used by mapcache itself, you can set it to use quantization (png8 format), ymmv depending on the actual image data you are rendering. -- thomas > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Mon Jun 11 07:52:49 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Jun 2012 16:52:49 +0200 Subject: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes In-Reply-To: References: <1338911946132-4979270.post@n6.nabble.com> <1339113503305-4979843.post@n6.nabble.com> <1339113894485-4979844.post@n6.nabble.com> Message-ID: yup, definitely, please provide a testcase where this can be reproduced. -- thomas On Fri, Jun 8, 2012 at 3:12 PM, Lime, Steve D (DNR) wrote: > I agree, please create a ticket along with a simple test case. -Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of AngeloH [angelo.harpster at gmail.com] > Sent: Thursday, June 07, 2012 7:04 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes > > All my CPUs are at 100% now and not moving. This is a slowdown...wondering > how long they will stay there. The layer I'm rendering is tiny. > > On second thought, you or I should report this as a bug. What do you think > gregcorradini? > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979844.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 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Jun 11 08:05:49 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 11 Jun 2012 16:05:49 +0100 Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time In-Reply-To: Message-ID: <84E2B1AAF6554565B182B693EB9BBEF2@DELLM4500> Mike, It is very likely that tinkering with IIS will result in faster initial rendering but, from some experiments that I've carried out today, Apache wins hands down. I have now managed to create a "pre-load" page that runs on boot up. Basically, this is a page that loads a map via IIS or Apache depending on which web server that I have the software configured to use. Here are the (very rough) times - Each run was done on a fresh boot up: Without a pre-load page: IIS Apache Time to First Raster Tile 15s 11s Time to First PostGIS Tile 8s 7s With a pre-load page: IIS Apache Time to First Raster Tile 5s 4s Time to First PostGIS Tile 5s 3s All subsequent map requests are as good as instant, even after closing and reopening the browser. The pre-load page includes the following code: ================= var preloadWindow = new ActiveXObject('InternetExplorer.Application'); preloadWindow.FullScreen = true; preloadWindow.Navigate('http://localhost/map/map.asp?ZoomLevel=14&Easting=25 8544&Northing=665909'); preloadWindow.Visible = true; setTimeout("preloadWindow.quit()",20000); ================= The only thing that doesn't seem to work is a pre-load page using the above code that doesn't actually set the window as "Visible" which would be a nicer solution. I should also be able to trim down the map page so that only a map is requested rather tha a full set of tiles and the surrounding visual code. The only other possible improvement that I can think about is a leaner mapserv.exe that's compiled with only the features that I'm using. Thanks for all the pointers folks. Regards, Donald -----Original Message----- From: Mike Saunt [mailto:mikesaunt at gmail.com] Sent: 10 June 2012 15:22 To: Donald Kerr Cc: MAPSERVER USERS; Jeff McKenna Subject: Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time Not sure if this helps but often with IIS there is a lag at startup to load things up, plenty of microsoft doco out there regarding it... On Jun 9, 2012 4:13 PM, "Donald Kerr" wrote: Jeff, Great tip! My deployment uses a full compressed build of the openlayers.js file with some changes to vml.js (uses vml textpath - for <= IE8) and svg.js (uses text rotation - for Chrome and Firefox). This file comes in at 927 KB. I created a custom compressed build of the openlayers.js file, again including the vml and svg changes. The new file comes in at 443 KB; a very significant drop in size. Both files were built using the latest, hot off the press, OpenLayers-2.12-rc6. Prior to creating and using the new, smaller openlayers.js file, I tested the time to get the first raster image tile from boot up with the larger file which was 16 seconds. I did a one click zoom to the first layer that has PostGIS sitting behind it and that took a further 8 seconds. After that initial load of both layer types, everything is speedy with very little delay at all. I then substituted the new, smaller openlayers.js file and repeated the process from boot up. Low and behold, I get exactly the same results: 16 seconds then 8 seconds. Whilst there is probably a time saving in terms of milliseconds, the perceptional difference is nil. However, I do agree that the smaller openlayers.js file is the way to go in terms of reducing unnecessary initial traffic and also having less javascript in memory; something that will no doubt aid Internet Explorer speed-wise as that particular platform is chronic at best. Thanks again for the tip. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 08 June 2012 16:10 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time On 12-06-06 4:35 PM, Donald Kerr wrote: > Basically my mapping setup is, from client to server, Openlayers > WMS/WFS (Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile > (Tiffs) or PostGIS (XP Pro SP3 - IIS & FastCGI). > >>From boot up, the initial, or first load of maps, takes up to 15 >>seconds. > After that, it flies along fine. > > I've tried pre-loading in a hidden browser instance but that didn't > work. I cannot get that initial load time down at all. > > Any tips to reduce the time taken for the first load of the software: > Specifically Mapserver whether it's creating the map from PostGIS or > the shapefile (Tiffs). I can give my experiences here. I have a very slow server that I use for client demos, and I very often hit this exact same issue (my OpenLayers/MapServer WMS/WFS application takes very long to load initially, then zooms along). In my case, the long initial load is always due to the large lib/OpenLayers.js file; I solve this by generating an 'OpenLayers-lite.js' file (through the instructions at http://docs.openlayers.org/library/deploying.html). I hope that helps someone along the way. Have a nice weekend all. -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 thomas.bonfort at gmail.com Mon Jun 11 08:22:00 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Jun 2012 17:22:00 +0200 Subject: [mapserver-users] [mapserver-dev] Maps for 16 bit displays In-Reply-To: References: Message-ID: Ian, I don't believe it is currently possible to render 16bit images. However, I'm pretty certain PNG does not support 565 encoding, and couldn't find any reference as to whether jpeg can either. Unless you are accessing the image bytes directly from the mapserver library (which I suspect you are not, it is not a public api/structure), I would investigate in reducing from 32 to 16 bits directly on the device at image loading time. If you absolutely need 565 encoded output, I suspect the code can be worked on on the vector side with AGG to produce that, but it will not be a trivial task. Concerning raster rendering, this would also be a non trivial task. regards, thomas On Fri, Jun 1, 2012 at 11:27 PM, Ian Walberg wrote: > Hello folks, > > We need to render maps for a system which has a 16 bit colour (yes I am > English) depth. > > Currently we render the images at 24 bit (888) and they look fabulous. > > However when they are rendered on the target hardware they are crudely > reduced to (565) and this causes some horrible artefacts and banding. > Our best guess is that the lower bits are just being discarded. > > So now we understand the problem the question is what we can do to > generate the map images with a reduce RGB range so that they are > displayed correctly. > > Having a look at the various options we cannot see anything between 256 > colour and 24 bit colour which would help. > > Anyone have any good ideas? > > Thanks > > Ian > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From ian.walberg at airborne.aero Mon Jun 11 09:37:18 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 12:37:18 -0400 Subject: [mapserver-users] [mapserver-dev] Maps for 16 bit displays In-Reply-To: References: Message-ID: Thomas, While creating image files in the 565 format would be ideal this is not required. What we do need is to be able to create images that look good when displayed using a video card in 16 bit colour depth. As you suggest we are looking at reducing/dithering the images from 24 bit to 16 bit when displayed but of course if we can reduce the colour range wen rendered this would most likely make the image quality better. Thanks Ian -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, June 11, 2012 8:22 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org Subject: Re: [mapserver-dev] Maps for 16 bit displays Ian, I don't believe it is currently possible to render 16bit images. However, I'm pretty certain PNG does not support 565 encoding, and couldn't find any reference as to whether jpeg can either. Unless you are accessing the image bytes directly from the mapserver library (which I suspect you are not, it is not a public api/structure), I would investigate in reducing from 32 to 16 bits directly on the device at image loading time. If you absolutely need 565 encoded output, I suspect the code can be worked on on the vector side with AGG to produce that, but it will not be a trivial task. Concerning raster rendering, this would also be a non trivial task. regards, thomas On Fri, Jun 1, 2012 at 11:27 PM, Ian Walberg wrote: > Hello folks, > > We need to render maps for a system which has a 16 bit colour (yes I > am > English) depth. > > Currently we render the images at 24 bit (888) and they look fabulous. > > However when they are rendered on the target hardware they are crudely > reduced to (565) and this causes some horrible artefacts and banding. > Our best guess is that the lower bits are just being discarded. > > So now we understand the problem the question is what we can do to > generate the map images with a reduce RGB range so that they are > displayed correctly. > > Having a look at the various options we cannot see anything between > 256 colour and 24 bit colour which would help. > > Anyone have any good ideas? > > Thanks > > Ian > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From ian.walberg at airborne.aero Mon Jun 11 09:37:18 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 12:37:18 -0400 Subject: [mapserver-users] Circles around points in miles In-Reply-To: References: <4F3BFB2C.8090703@swoodbridge.com><6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> Message-ID: Steve, Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. Thanks Ian MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, June 11, 2012 7:45 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles What are the UNITs set to with "proj=ortho"? -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Friday, June 08, 2012 7:19 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Jun 11 10:04:55 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 11 Jun 2012 17:04:55 +0000 Subject: [mapserver-users] MapFile ClassItem Expression on in-line features In-Reply-To: <1339119355780-4979849.post@n6.nabble.com> References: <1339119355780-4979849.post@n6.nabble.com> Message-ID: I can replicate the behavior locally. Seems like a bug to me... Will investigate. Could I trouble you to create a ticket? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapFile ClassItem Expression on in-line features Hi, Hoping someone can help out here... I am trying to configure MapFile that would generate an image based on the attributes setting, but could not get it creates correctly. What I am trying to do is when the 'color' attribute value is 1 then render a star symbol and when is 0 then render a circle. It works when I am reading the data from a shapfile, but it does not when using in-line. Is there something I have to add here for in-line feature set? Here is my MapFile: MAP NAME "myMap" STATUS ON UNITS METERS SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "star" TYPE VECTOR FILLED TRUE POINTS 0 0.375 0.35 0.375 0.5 0 0.65 0.375 1 0.375 0.75 0.625 0.875 1 0.5 0.75 0.125 1 0.25 0.625 END END LAYER NAME "myLayer" TYPE POINT PROCESSING "ITEMS=layer,pid,color" STATUS ON #CLASSITEM "color" FEATURE POINTS 123 123 END ITEMS "address;123;0" END FEATURE POINTS 125 125 END ITEMS "address;125;1" END CLASS EXPRESSION ('[color]' == '1') STYLE ANGLE 0 COLOR 250 0 0 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "star" END END CLASS EXPRESSION ('[color]' == '0') STYLE ANGLE 0 COLOR 0 0 250 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "circle" END END END END Thanks, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849.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 ian.walberg at airborne.aero Mon Jun 11 10:06:45 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 13:06:45 -0400 Subject: [mapserver-users] MapFile ClassItem Expression on in-line features Message-ID: Steve, Happy to raise a ticket. We are also happy to investigate a bit deeper if anyone can point us in the right direction. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Monday, June 11, 2012 10:05 AM To: StevenHin; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line features I can replicate the behavior locally. Seems like a bug to me... Will investigate. Could I trouble you to create a ticket? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapFile ClassItem Expression on in-line features Hi, Hoping someone can help out here... I am trying to configure MapFile that would generate an image based on the attributes setting, but could not get it creates correctly. What I am trying to do is when the 'color' attribute value is 1 then render a star symbol and when is 0 then render a circle. It works when I am reading the data from a shapfile, but it does not when using in-line. Is there something I have to add here for in-line feature set? Here is my MapFile: MAP NAME "myMap" STATUS ON UNITS METERS SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "star" TYPE VECTOR FILLED TRUE POINTS 0 0.375 0.35 0.375 0.5 0 0.65 0.375 1 0.375 0.75 0.625 0.875 1 0.5 0.75 0.125 1 0.25 0.625 END END LAYER NAME "myLayer" TYPE POINT PROCESSING "ITEMS=layer,pid,color" STATUS ON #CLASSITEM "color" FEATURE POINTS 123 123 END ITEMS "address;123;0" END FEATURE POINTS 125 125 END ITEMS "address;125;1" END CLASS EXPRESSION ('[color]' == '1') STYLE ANGLE 0 COLOR 250 0 0 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "star" END END CLASS EXPRESSION ('[color]' == '0') STYLE ANGLE 0 COLOR 0 0 250 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "circle" END END END END Thanks, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-l ine-features-tp4979849.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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steven_Hin at golder.com Mon Jun 11 10:32:18 2012 From: Steven_Hin at golder.com (StevenHin) Date: Mon, 11 Jun 2012 10:32:18 -0700 (PDT) Subject: [mapserver-users] MapFile ClassItem Expression on in-line features In-Reply-To: <1339119355780-4979849.post@n6.nabble.com> References: <1339119355780-4979849.post@n6.nabble.com> Message-ID: <1339435938367-4980525.post@n6.nabble.com> Hi Steve, I am a newbie here, could you point some directions where I can create a trouble ticket? Thanks for looking into this issue. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980525.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Jun 11 11:02:58 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 11 Jun 2012 18:02:58 +0000 Subject: [mapserver-users] MapFile ClassItem Expression on in-line features In-Reply-To: <1339435938367-4980525.post@n6.nabble.com> References: <1339119355780-4979849.post@n6.nabble.com>, <1339435938367-4980525.post@n6.nabble.com> Message-ID: Issues are created via Github, see: https://github.com/mapserver/mapserver/issues Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of StevenHin [Steven_Hin at golder.com] Sent: Monday, June 11, 2012 12:32 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line features Hi Steve, I am a newbie here, could you point some directions where I can create a trouble ticket? Thanks for looking into this issue. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980525.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 traviskirstine at gmail.com Mon Jun 11 12:27:18 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 11 Jun 2012 15:27:18 -0400 Subject: [mapserver-users] nad to nad grid shifts Message-ID: I have a wms server and would like to support multiple NAD projections (csrs, 83, 27). Is it possible to utilize any / multiple grid shift files If so how ? Thanks From arnd.wippermann at web.de Mon Jun 11 13:35:37 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon, 11 Jun 2012 22:35:37 +0200 Subject: [mapserver-users] Circles around points in miles In-Reply-To: References: <4F3BFB2C.8090703@swoodbridge.com><6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> Message-ID: <13C2828B35C145439513EA051C9141EE@pcawh2> Hello, Most likely the radius of your circles is to small for the extent you choose Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ian Walberg Gesendet: Montag, 11. Juni 2012 18:37 An: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Circles around points in miles Steve, Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. Thanks Ian MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, June 11, 2012 7:45 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles What are the UNITs set to with "proj=ortho"? -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Friday, June 08, 2012 7:19 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From i.skidoosh at gmail.com Mon Jun 11 18:58:56 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 12 Jun 2012 07:28:56 +0530 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver Message-ID: Dear Stephen sir, I tried your suggestion sir. But I'm still having some errors. Is there something wrong with the syntax of the statement? I changed the line in my code to this as you had suggested: DATA "the_geom from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo using unique gid using srid=-1" and I'm getting the following error now: msDrawMap(): Image handling error. Failed to draw layer named 'route'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "edges_line" LINE 1: ...st FROM edges_line', 50, 210, false, false)) as a edges_line... ^ When I looked up the error log, I got this: [Tue Jun 12 07:17:54 2012].140295 msPostGISLayerNextShape called. [Tue Jun 12 07:17:54 2012].140331 msPostGISLayerFreeItemInfo called. [Tue Jun 12 07:17:54 2012].140363 msPostGISLayerClose called: the_geom from edges_arc [Tue Jun 12 07:17:54 2012].140412 msConnPoolRelease(Road4,user=postgres password=************ dbname=VSDelhidb host=localhost,0x896c410) [Tue Jun 12 07:17:54 2012].140445 msConnPoolClose(user=postgres password=************ dbname=VSDelhidb host=localhost,0x896c410) [Tue Jun 12 07:17:54 2012].141013 msDrawMap(): Layer 3 (Road4), 0.508s [Tue Jun 12 07:17:54 2012].141134 msPostGISLayerOpen called: the_geom from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo using unique gid using srid=-1 [Tue Jun 12 07:17:54 2012].141187 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Tue Jun 12 07:17:54 2012].322140 msConnPoolRegister(route,user=postgres password=************ dbname=VSDelhidb host=localhost,0x896c410) [Tue Jun 12 07:17:54 2012].363321 msPostGISLayerOpen: Got PostGIS version 10500. [Tue Jun 12 07:17:54 2012].363393 msPostGISLayerFreeItemInfo called. [Tue Jun 12 07:17:54 2012].363433 msPostGISLayerWhichShapes called. [Tue Jun 12 07:17:54 2012].363461 msPostGISParseData called. [Tue Jun 12 07:17:54 2012].363535 msPostGISParseData: unique_column=gid, srid=-1, geom_column_name=the_geom, table_name=(select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo [Tue Jun 12 07:17:54 2012].363568 msPostGISBuildSQL called. [Tue Jun 12 07:17:54 2012].363597 msPostGISBuildSQLItems called. [Tue Jun 12 07:17:54 2012].363629 msPostGISBuildSQLItems: 0 items requested. [Tue Jun 12 07:17:54 2012].363660 msPostGISBuildSQLFrom called. [Tue Jun 12 07:17:54 2012].363692 msPostGISBuildSQLWhere called. [Tue Jun 12 07:17:54 2012].363721 msPostGISBuildSQLSRID called. [Tue Jun 12 07:17:54 2012].363750 msPostGISBuildSQLSRID: SRID provided (-1) [Tue Jun 12 07:17:54 2012].363780 msPostGISBuildSQLBox called. [Tue Jun 12 07:17:54 2012].363876 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 4811.71,6544.54966101695 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) [Tue Jun 12 07:17:54 2012].365626 msPostGISLayerWhichShapes query status: PGRES_FATAL_ERROR (7) [Tue Jun 12 07:17:54 2012].365707 Error (msPostGISLayerWhichShapes() ) executing query: ERROR: syntax error at or near "edges_line" LINE 1: ...st FROM edges_line', 50, 210, false, false)) as a edges_line... ^ [Tue Jun 12 07:17:54 2012].365759 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "edges_line" LINE 1: ...st FROM edges_line', 50, 210, false, false)) as a edges_line... ^ [Tue Jun 12 07:17:54 2012].365881 msPostGISLayerFreeItemInfo called. [Tue Jun 12 07:17:54 2012].365925 msPostGISLayerClose called: the_geom from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo using unique gid using srid=-1 [Tue Jun 12 07:17:54 2012].365975 msConnPoolRelease(route,user=postgres password=************ dbname=VSDelhidb host=localhost,0x896c410) [Tue Jun 12 07:17:54 2012].366021 msConnPoolClose(user=postgres password=************ dbname=VSDelhidb host=localhost,0x896c410) [Tue Jun 12 07:17:54 2012].366792 msDrawMap(): Image handling error. Failed to draw layer named 'route'. [Tue Jun 12 07:17:54 2012].368660 msPostGISLayerClose called: the_geom from edges_line [Tue Jun 12 07:17:54 2012].368737 msPostGISLayerClose called: the_geom from allfeatureslabel_point [Tue Jun 12 07:17:54 2012].368776 msPostGISLayerClose called: the_geom from namesofroads_text [Tue Jun 12 07:17:54 2012].368814 msPostGISLayerClose called: the_geom from edges_arc [Tue Jun 12 07:17:54 2012].368852 msPostGISLayerClose called: the_geom from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo using unique gid using srid=-1 [Tue Jun 12 07:17:54 2012].370944 freeLayer(): freeing layer at 0x88e04e8. [Tue Jun 12 07:17:54 2012].371022 msPostGISLayerIsOpen called. [Tue Jun 12 07:17:54 2012].371067 freeLayer(): freeing layer at 0x88e12e8. [Tue Jun 12 07:17:54 2012].371099 msPostGISLayerIsOpen called. [Tue Jun 12 07:17:54 2012].371136 freeLayer(): freeing layer at 0x88e2220. [Tue Jun 12 07:17:54 2012].371167 msPostGISLayerIsOpen called. [Tue Jun 12 07:17:54 2012].371207 freeLayer(): freeing layer at 0x88e30d8. [Tue Jun 12 07:17:54 2012].371239 msPostGISLayerIsOpen called. [Tue Jun 12 07:17:54 2012].371285 freeLayer(): freeing layer at 0x88e3fb8. [Tue Jun 12 07:17:54 2012].371317 msPostGISLayerIsOpen called. Another thing I think worth mentioning is that I haven't done anything special with my database to make pgrouting work on it. I have only enabled the pgrouting basic functions to the database but haven't created any index or anything of that sort. Actually the documentation for pgrouting is so poor that I'm not even able to understand where to look for a problem. I just need to be able to route from node 'a' to node 'b' in my road network. The name of the network is 'edges_line' as you can see. Can you mention the query you would use to route from node a to b in this table? I can try and run that code and then modify it according to my need. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 11 19:26:29 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Jun 2012 22:26:29 -0400 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver In-Reply-To: References: Message-ID: <4FD6A8D5.8090009@swoodbridge.com> On 6/11/2012 9:58 PM, Annu Anurag wrote: > Dear Stephen sir, > I tried your suggestion sir. But I'm still having some errors. Is there > something wrong with the syntax of the statement? I changed the line in > my code to this as you had suggested: > > DATA "the_geom from (select b.the_geom, a.* FROM (SELECT * FROM > shortest_path('SELECT gid AS id, source::int4, target::int4, > length::double precision AS cost FROM edges_line', 50, 210, false, > false)) as a edges_line as b where a.edgeid=b.gid) AS foo using unique THis should be: ... as a, edges_line ... Note you are missing a comma. -Steve > gid using srid=-1" > > and I'm getting the following error now: > > msDrawMap(): Image handling error. Failed to draw layer named 'route'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > syntax error at or near "edges_line" LINE 1: ...st FROM edges_line', 50, > 210, false, false)) as a edges_line... ^ > > When I looked up the error log, I got this: > > [Tue Jun 12 07:17:54 2012].140295 msPostGISLayerNextShape called. > [Tue Jun 12 07:17:54 2012].140331 msPostGISLayerFreeItemInfo called. > [Tue Jun 12 07:17:54 2012].140363 msPostGISLayerClose called: the_geom > from edges_arc > [Tue Jun 12 07:17:54 2012].140412 msConnPoolRelease(Road4,user=postgres > password=************ dbname=VSDelhidb host=localhost,0x896c410) > [Tue Jun 12 07:17:54 2012].140445 msConnPoolClose(user=postgres > password=************ dbname=VSDelhidb host=localhost,0x896c410) > [Tue Jun 12 07:17:54 2012].141013 msDrawMap(): Layer 3 (Road4), 0.508s > [Tue Jun 12 07:17:54 2012].141134 msPostGISLayerOpen called: the_geom > from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT > gid AS id, source::int4, target::int4, length::double precision AS cost > FROM edges_line', 50, 210, false, false)) as a edges_line as b where > a.edgeid=b.gid) AS foo using unique gid using srid=-1 > [Tue Jun 12 07:17:54 2012].141187 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Tue Jun 12 07:17:54 2012].322140 msConnPoolRegister(route,user=postgres > password=************ dbname=VSDelhidb host=localhost,0x896c410) > [Tue Jun 12 07:17:54 2012].363321 msPostGISLayerOpen: Got PostGIS > version 10500. > [Tue Jun 12 07:17:54 2012].363393 msPostGISLayerFreeItemInfo called. > [Tue Jun 12 07:17:54 2012].363433 msPostGISLayerWhichShapes called. > [Tue Jun 12 07:17:54 2012].363461 msPostGISParseData called. > [Tue Jun 12 07:17:54 2012].363535 msPostGISParseData: unique_column=gid, > srid=-1, geom_column_name=the_geom, table_name=(select b.the_geom, a.* > FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, > target::int4, length::double precision AS cost FROM edges_line', 50, > 210, false, false)) as a edges_line as b where a.edgeid=b.gid) AS foo > [Tue Jun 12 07:17:54 2012].363568 msPostGISBuildSQL called. > [Tue Jun 12 07:17:54 2012].363597 msPostGISBuildSQLItems called. > [Tue Jun 12 07:17:54 2012].363629 msPostGISBuildSQLItems: 0 items requested. > [Tue Jun 12 07:17:54 2012].363660 msPostGISBuildSQLFrom called. > [Tue Jun 12 07:17:54 2012].363692 msPostGISBuildSQLWhere called. > [Tue Jun 12 07:17:54 2012].363721 msPostGISBuildSQLSRID called. > [Tue Jun 12 07:17:54 2012].363750 msPostGISBuildSQLSRID: SRID provided (-1) > [Tue Jun 12 07:17:54 2012].363780 msPostGISBuildSQLBox called. > [Tue Jun 12 07:17:54 2012].363876 msPostGISLayerWhichShapes query: > select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as > geom,"gid" from (select b.the_geom, a.* FROM (SELECT * FROM > shortest_path('SELECT gid AS id, source::int4, target::int4, > length::double precision AS cost FROM edges_line', 50, 210, false, > false)) as a edges_line as b where a.edgeid=b.gid) AS foo where the_geom > && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 > 4811.71,6544.54966101695 4811.71,6544.54966101695 > -4605.49,-6015.80966101695 -4605.49))',-1) > [Tue Jun 12 07:17:54 2012].365626 msPostGISLayerWhichShapes query > status: PGRES_FATAL_ERROR (7) > [Tue Jun 12 07:17:54 2012].365707 Error (msPostGISLayerWhichShapes() > ) executing query: ERROR: syntax error at or near "edges_line" > LINE 1: ...st FROM edges_line', 50, 210, false, false)) as a edges_line... > ^ > [Tue Jun 12 07:17:54 2012].365759 msPostGISLayerWhichShapes(): Query > error. Error executing query: ERROR: syntax error at or near "edges_line" > LINE 1: ...st FROM edges_line', 50, 210, false, false)) as a edges_line... > ^ > > [Tue Jun 12 07:17:54 2012].365881 msPostGISLayerFreeItemInfo called. > [Tue Jun 12 07:17:54 2012].365925 msPostGISLayerClose called: the_geom > from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT > gid AS id, source::int4, target::int4, length::double precision AS cost > FROM edges_line', 50, 210, false, false)) as a edges_line as b where > a.edgeid=b.gid) AS foo using unique gid using srid=-1 > [Tue Jun 12 07:17:54 2012].365975 msConnPoolRelease(route,user=postgres > password=************ dbname=VSDelhidb host=localhost,0x896c410) > [Tue Jun 12 07:17:54 2012].366021 msConnPoolClose(user=postgres > password=************ dbname=VSDelhidb host=localhost,0x896c410) > [Tue Jun 12 07:17:54 2012].366792 msDrawMap(): Image handling error. > Failed to draw layer named 'route'. > [Tue Jun 12 07:17:54 2012].368660 msPostGISLayerClose called: the_geom > from edges_line > [Tue Jun 12 07:17:54 2012].368737 msPostGISLayerClose called: the_geom > from allfeatureslabel_point > [Tue Jun 12 07:17:54 2012].368776 msPostGISLayerClose called: the_geom > from namesofroads_text > [Tue Jun 12 07:17:54 2012].368814 msPostGISLayerClose called: the_geom > from edges_arc > [Tue Jun 12 07:17:54 2012].368852 msPostGISLayerClose called: the_geom > from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT > gid AS id, source::int4, target::int4, length::double precision AS cost > FROM edges_line', 50, 210, false, false)) as a edges_line as b where > a.edgeid=b.gid) AS foo using unique gid using srid=-1 > [Tue Jun 12 07:17:54 2012].370944 freeLayer(): freeing layer at 0x88e04e8. > [Tue Jun 12 07:17:54 2012].371022 msPostGISLayerIsOpen called. > [Tue Jun 12 07:17:54 2012].371067 freeLayer(): freeing layer at 0x88e12e8. > [Tue Jun 12 07:17:54 2012].371099 msPostGISLayerIsOpen called. > [Tue Jun 12 07:17:54 2012].371136 freeLayer(): freeing layer at 0x88e2220. > [Tue Jun 12 07:17:54 2012].371167 msPostGISLayerIsOpen called. > [Tue Jun 12 07:17:54 2012].371207 freeLayer(): freeing layer at 0x88e30d8. > [Tue Jun 12 07:17:54 2012].371239 msPostGISLayerIsOpen called. > [Tue Jun 12 07:17:54 2012].371285 freeLayer(): freeing layer at 0x88e3fb8. > [Tue Jun 12 07:17:54 2012].371317 msPostGISLayerIsOpen called. > > > Another thing I think worth mentioning is that I haven't done anything > special with my database to make pgrouting work on it. I have only > enabled the pgrouting basic functions to the database but haven't > created any index or anything of that sort. Actually the documentation > for pgrouting is so poor that I'm not even able to understand where to > look for a problem. I just need to be able to route from node 'a' to > node 'b' in my road network. The name of the network is 'edges_line' as > you can see. Can you mention the query you would use to route from node > a to b in this table? I can try and run that code and then modify it > according to my need. Thank you! > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From i.skidoosh at gmail.com Mon Jun 11 19:51:53 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 12 Jun 2012 08:21:53 +0530 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver Message-ID: Yes sir. I rectified that flaw. But now mapserver is throwing this error: msDrawMap(): Image handling error. Failed to draw layer named 'route'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "gid" does not exist LINE 1: ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... ^ The error log contains this: [Tue Jun 12 08:06:17 2012].1364 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a, edges_line as b where a.edge_id=b.gid) AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 4811.71,6544.54966101695 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) [Tue Jun 12 08:06:17 2012].7413 msPostGISLayerWhichShapes query status: PGRES_FATAL_ERROR (7) [Tue Jun 12 08:06:17 2012].7520 Error (msPostGISLayerWhichShapes() ) executing query: ERROR: column "gid" does not exist LINE 1: ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... ^ [Tue Jun 12 08:06:17 2012].7594 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "gid" does not exist LINE 1: ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... ^ I modified my query to: DATA "the_geom from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a, edges_line as b where a.edge_id=b.gid) AS foo using unique gid using srid=-1" I've checked the shapefile in the database. It has a gid column. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Jun 11 19:56:44 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 22:56:44 -0400 Subject: [mapserver-users] MapFile ClassItem Expression on in-linefeatures In-Reply-To: References: Message-ID: Steve, Oops, looks like I volunteered to raise an issue for someone else's problem. Need to pay attention, I thought you were replying to mine. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, June 11, 2012 10:07 AM To: Lime, Steve D (DNR); StevenHin; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-linefeatures Steve, Happy to raise a ticket. We are also happy to investigate a bit deeper if anyone can point us in the right direction. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Monday, June 11, 2012 10:05 AM To: StevenHin; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line features I can replicate the behavior locally. Seems like a bug to me... Will investigate. Could I trouble you to create a ticket? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapFile ClassItem Expression on in-line features Hi, Hoping someone can help out here... I am trying to configure MapFile that would generate an image based on the attributes setting, but could not get it creates correctly. What I am trying to do is when the 'color' attribute value is 1 then render a star symbol and when is 0 then render a circle. It works when I am reading the data from a shapfile, but it does not when using in-line. Is there something I have to add here for in-line feature set? Here is my MapFile: MAP NAME "myMap" STATUS ON UNITS METERS SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "star" TYPE VECTOR FILLED TRUE POINTS 0 0.375 0.35 0.375 0.5 0 0.65 0.375 1 0.375 0.75 0.625 0.875 1 0.5 0.75 0.125 1 0.25 0.625 END END LAYER NAME "myLayer" TYPE POINT PROCESSING "ITEMS=layer,pid,color" STATUS ON #CLASSITEM "color" FEATURE POINTS 123 123 END ITEMS "address;123;0" END FEATURE POINTS 125 125 END ITEMS "address;125;1" END CLASS EXPRESSION ('[color]' == '1') STYLE ANGLE 0 COLOR 250 0 0 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "star" END END CLASS EXPRESSION ('[color]' == '0') STYLE ANGLE 0 COLOR 0 0 250 OFFSET 0 0 OUTLINECOLOR 255 255 255 SIZE 10 SYMBOL "circle" END END END END Thanks, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-l ine-features-tp4979849.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 _______________________________________________ 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 ian.walberg at airborne.aero Mon Jun 11 20:02:17 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 23:02:17 -0400 Subject: [mapserver-users] Circles around points in miles In-Reply-To: <13C2828B35C145439513EA051C9141EE@pcawh2> References: <4F3BFB2C.8090703@swoodbridge.com><6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> <13C2828B35C145439513EA051C9141EE@pcawh2> Message-ID: Arnd, Maybe. We had assumed that the UNITS for the layer would stay the same for different projections. Thanks Ian Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Arnd Wippermann [mailto:arnd.wippermann at web.de] Sent: Monday, June 11, 2012 1:36 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Circles around points in miles Hello, Most likely the radius of your circles is to small for the extent you choose Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ian Walberg Gesendet: Montag, 11. Juni 2012 18:37 An: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Circles around points in miles Steve, Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. Thanks Ian MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, June 11, 2012 7:45 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles What are the UNITs set to with "proj=ortho"? -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Friday, June 08, 2012 7:19 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Jun 11 20:13:53 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Jun 2012 23:13:53 -0400 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver In-Reply-To: References: Message-ID: <4FD6B3F1.2060401@swoodbridge.com> On 6/11/2012 10:51 PM, Annu Anurag wrote: > Yes sir. I rectified that flaw. But now mapserver is throwing this error: > > msDrawMap(): Image handling error. Failed to draw layer named 'route'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > column "gid" does not exist LINE 1: > ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... ^ > > The error log contains this: > > [Tue Jun 12 08:06:17 2012].1364 msPostGISLayerWhichShapes query: select > encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" > from (select b.the_geom, a.* FROM (SELECT * FROM shortest_path('SELECT > gid AS id, source::int4, target::int4, length::double precision AS cost > FROM edges_line', 50, 210, false, false)) as a, edges_line as b where > a.edge_id=b.gid) AS foo where the_geom && > GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 > 4811.71,6544.54966101695 4811.71,6544.54966101695 > -4605.49,-6015.80966101695 -4605.49))',-1) > [Tue Jun 12 08:06:17 2012].7413 msPostGISLayerWhichShapes query status: > PGRES_FATAL_ERROR (7) > [Tue Jun 12 08:06:17 2012].7520 Error (msPostGISLayerWhichShapes() > ) executing query: ERROR: column "gid" does not exist > LINE 1: ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... > ^ > [Tue Jun 12 08:06:17 2012].7594 msPostGISLayerWhichShapes(): Query > error. Error executing query: ERROR: column "gid" does not exist > LINE 1: ...ary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from... > ^ > > > I modified my query to: > > DATA "the_geom from (select b.the_geom, a.* FROM (SELECT * FROM Change this to: ... (select b.gid, b.the_geom, ... > shortest_path('SELECT gid AS id, source::int4, target::int4, > length::double precision AS cost FROM edges_line', 50, 210, false, > false)) as a, edges_line as b where a.edge_id=b.gid) AS foo using unique > gid using srid=-1" > > I've checked the shapefile in the database. It has a gid column. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Mon Jun 11 20:26:48 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 11 Jun 2012 23:26:48 -0400 Subject: [mapserver-users] Circles around points in miles Message-ID: Ok, so the MAP level units need to be set to the unit of the projection. That means in this case they need to be meters. Works now. Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, June 11, 2012 8:02 PM To: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Circles around points in miles Arnd, Maybe. We had assumed that the UNITS for the layer would stay the same for different projections. Thanks Ian Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Arnd Wippermann [mailto:arnd.wippermann at web.de] Sent: Monday, June 11, 2012 1:36 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Circles around points in miles Hello, Most likely the radius of your circles is to small for the extent you choose Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ian Walberg Gesendet: Montag, 11. Juni 2012 18:37 An: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Circles around points in miles Steve, Below is a map file with the settings we are using. The Extent and projection are commented out for the test. With the projection set to "init=epsg:4326" the circles appear the size we expect. With projection set to "proj=orth" and the extent changed to EXTENT -200000 -200000 200000 200000 all the other data (removed form this map file for simplicity) appears ok and the circles disappear. Thanks Ian MAP NAME 'Simple' STATUS ON SIZE 1280 768 EXTENT -121 34 -115 41 # EXTENT -200000 -200000 200000 200000 UNITS DD SHAPEPATH "shp" IMAGECOLOR 120 120 120 SYMBOL NAME 'circle2' TYPE ELLIPSE POINTS 1 1 END FILLED FALSE END LAYER DEBUG 5 NAME range_circles TYPE point STATUS DEFAULT UNITS miles SIZEUNITS miles FEATURE POINTS -118 38 END END CLASS STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 50 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 100 COLOR 255 0 0 END STYLE MAXWIDTH 1 SYMBOL 'circle2' SIZE 150 COLOR 255 0 0 END END PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END END PROJECTION "init=epsg:4326" # "proj=ortho" "lat_0=38.0" "lon_0=-118" "ellps=WGS84" END END -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, June 11, 2012 7:45 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles What are the UNITs set to with "proj=ortho"? -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Friday, June 08, 2012 7:19 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This question from earlier in the year has finally got to the top of our to do list. The issue is how to draw a circle at a given size (ideally in miles) when using "proj=ortho". Everything works well when using "proj=latlong" and SIZEUNITS miles. Is this the expected behaviour and we do not understand something or is this a problem? Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Thursday, February 16, 2012 1:57 PM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] RE: Circles around points in miles This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From i.skidoosh at gmail.com Mon Jun 11 20:30:38 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 12 Jun 2012 09:00:38 +0530 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver Message-ID: Yes sir. That worked. But I'm still getting an error: msDrawMap(): Image handling error. Failed to draw layer named 'route'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "source" does not exist LINE 1: SELECT gid AS id, source::int4, target::int4, length::double... ^ QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line The error log contains this: [Tue Jun 12 08:54:34 2012].554731 msPostGISLayerWhichShapes query: select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from (select b.gid, b.the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line', 50, 210, false, false)) as a, edges_line as b where a.edge_id=b.gid) AS foo where the_geom && GeomFromText('POLYGON((-6015.80966101695 -4605.49,-6015.80966101695 4811.71,6544.54966101695 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) [Tue Jun 12 08:54:34 2012].568295 msPostGISLayerWhichShapes query status: PGRES_FATAL_ERROR (7) [Tue Jun 12 08:54:34 2012].568405 Error (msPostGISLayerWhichShapes() ) executing query: ERROR: column "source" does not exist LINE 1: SELECT gid AS id, source::int4, target::int4, length::double... ^ QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line [Tue Jun 12 08:54:34 2012].568478 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: column "source" does not exist LINE 1: SELECT gid AS id, source::int4, target::int4, length::double... ^ QUERY: SELECT gid AS id, source::int4, target::int4, length::double precision AS cost FROM edges_line -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 11 20:48:39 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Jun 2012 23:48:39 -0400 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver In-Reply-To: References: Message-ID: <4FD6BC17.4030204@swoodbridge.com> You need to get your query working in psql or pgadmin first and you should move your pgrouting questions over the the pgrouting list. I would also recommend that you work your way through a pgrouting tutorial. If you work through the steps to setup pgrouting and have a working model then it is trivial to get it to work in mapserver. Thanks, -Steve On 6/11/2012 11:30 PM, Annu Anurag wrote: > Yes sir. That worked. But I'm still getting an error: > > msDrawMap(): Image handling error. Failed to draw layer named 'route'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > column "source" does not exist LINE 1: SELECT gid AS id, source::int4, > target::int4, length::double... ^ QUERY: SELECT gid AS id, source::int4, > target::int4, length::double precision AS cost FROM edges_line > > The error log contains this: > > [Tue Jun 12 08:54:34 2012].554731 msPostGISLayerWhichShapes query: > select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as > geom,"gid" from (select b.gid, b.the_geom FROM (SELECT * FROM > shortest_path('SELECT gid AS id, source::int4, target::int4, > length::double precision AS cost FROM edges_line', 50, 210, false, > false)) as a, edges_line as b where a.edge_id=b.gid) AS foo where > the_geom && GeomFromText('POLYGON((-6015.80966101695 > -4605.49,-6015.80966101695 4811.71,6544.54966101695 > 4811.71,6544.54966101695 -4605.49,-6015.80966101695 -4605.49))',-1) > [Tue Jun 12 08:54:34 2012].568295 msPostGISLayerWhichShapes query > status: PGRES_FATAL_ERROR (7) > [Tue Jun 12 08:54:34 2012].568405 Error (msPostGISLayerWhichShapes() > ) executing query: ERROR: column "source" does not exist > LINE 1: SELECT gid AS id, source::int4, target::int4, length::double... > ^ > QUERY: SELECT gid AS id, source::int4, target::int4, length::double > precision AS cost FROM edges_line > [Tue Jun 12 08:54:34 2012].568478 msPostGISLayerWhichShapes(): Query > error. Error executing query: ERROR: column "source" does not exist > LINE 1: SELECT gid AS id, source::int4, target::int4, length::double... > ^ > QUERY: SELECT gid AS id, source::int4, target::int4, length::double > precision AS cost FROM edges_line > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From i.skidoosh at gmail.com Mon Jun 11 21:21:10 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 12 Jun 2012 09:51:10 +0530 Subject: [mapserver-users] making pgrouting shortest distance function run with mapserver Message-ID: Thank you sir. I will definitely do so. Thanks for the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jun 12 03:26:53 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jun 2012 12:26:53 +0200 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> Message-ID: (please stay on list, you answers can help others facing the same issue) On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: > Thomas, > > It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. > > I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. Slightly off is expected to be a bit slower, but not very noticeably so. Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" modes. regards, thomas > > Thank you for all your help! > > > Mark Volz > GIS Specialist > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Monday, June 11, 2012 9:47 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) > > On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >> Hello, >> >> First,? I am having trouble figuring out how to get transparency to >> work in mapcache when using a Mapserver/WMS source.? Does anyone have >> an example of how to store a transparent mapcache with a Mapserver wms source? > > make the tileset reference a png format, not a jpeg one. > >> >> Next,? The color of my cache is fine, however the surrounding area >> outside of the extent of the cache is black.? Can that be changed to >> white, or transparent? > > same as previously, configure the wms service create png not jpeg > ? ? ?... > ? ? ?PNG > > > >> >> Third,? Mapcache seems really slow when it needs to assemble images. >> I am getting plenty of pink screens, and the response time is usually >> greater than 5 seconds.? Mapcache is much faster when I use >> forward, so I know the problem is not the source wms. >> Does anyone have an idea as to why the performance is poor when >> assembling images? > I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. > when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. > > -- > thomas > >> >> Thank You >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From charlie.allgrove at connectionservices.com Tue Jun 12 04:36:44 2012 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Tue, 12 Jun 2012 12:36:44 +0100 Subject: [mapserver-users] Cut off/missing tiles [bump] Message-ID: <005301cd488f$a720a4b0$f561ee10$@allgrove@connectionservices.com> Hi I have an issue which seems to relate to tile-edge buffering and world-view zoom levels. There's an example page at http://mapserver.magicsite.co.uk When you first visit the page, all seems normal, until you zoom out 1 level, at which point the tile which should sit over the west of the US doesn't display. >From what I can see, when tile-edge buffering is ON and the tile next tile wraps around the world, the tile in question is not rendered. Turn edge-buffering off and that tile is rendered correctly. Unfortunately, I'm in a position where I can't turn the buffering off. from the mapfile: WEB METADATA "wms_title" "xxxx" "wms_onlineresource" "xxxx" "wms_srs" "EPSG:4326" "tile_map_edge_buffer" "9" # 9 pixel rendering buffer "http_max_age" "86400" END END As far as I can tell, everything else is working correctly. What I'm not clear on - is this a bug in the edge buffering within the software, or am I doing something wrong? The server running the example URL is currently using version 5.7-dev, but the same issue is also apparent on a production server running v6.0.2 Interested to know if anyone else has experienced the same issue? Regards Charlie -- Charlie Allgrove Senior Developer Connection Services :: Business Mobility for a Wireless World Connection Services Ltd is a company incorporated under the laws of England and Wales with company number 6520674 whose registered office is at Griffins Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. If you are not an intended recipient, please delete the message and any attachments and notify the sender of misdelivery: any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. In accordance with the provisions of its Terms of Business the Company does not accept instructions or the creation of contractual obligations by unconfirmed electronic transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: From forums at craniumjuice.com Tue Jun 12 05:35:44 2012 From: forums at craniumjuice.com (forums) Date: Tue, 12 Jun 2012 07:35:44 -0500 Subject: [mapserver-users] Cut off/missing tiles [bump] In-Reply-To: <4fd72b8b.27a9320a.680c.0610SMTPIN_ADDED@mx.google.com> References: <4fd72b8b.27a9320a.680c.0610SMTPIN_ADDED@mx.google.com> Message-ID: Try adding +over to your epsg definition of 4326. It fixed the problem for me. Mine looks like this now: /usr/local/share/proj/epsg <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs <> You might need to upgrade your version of PROJ4 for it to have an effect. Jerl On Tue, Jun 12, 2012 at 6:36 AM, Charlie Allgrove < charlie.allgrove at connectionservices.com> wrote: > Hi**** > > ** ** > > I have an issue which seems to relate to tile-edge buffering and > world-view zoom levels.**** > > ** ** > > There's an example page at http://mapserver.magicsite.co.uk**** > > ** ** > > When you first visit the page, all seems normal, until you zoom out 1 > level, at which point the tile which should sit over the west of the US > doesn't display.**** > > From what I can see, when tile-edge buffering is ON and the tile next tile > wraps around the world, the tile in question is not rendered.**** > > Turn edge-buffering off and that tile is rendered correctly. > Unfortunately, I'm in a position where I can't turn the buffering off.**** > > ** ** > > from the mapfile: > WEB**** > > METADATA**** > > "wms_title" "xxxx"**** > > "wms_onlineresource" "xxxx"**** > > "wms_srs" "EPSG:4326"**** > > "tile_map_edge_buffer" "9" # 9 pixel rendering buffer**** > > "http_max_age" "86400"**** > > END**** > > END**** > > ** ** > > As far as I can tell, everything else is working correctly. **** > > What I'm not clear on - is this a bug in the edge buffering within the > software, or am I doing something wrong?**** > > ** ** > > The server running the example URL is currently using version 5.7-dev, > but the same issue is also apparent on a production server running v6.0.2* > *** > > ** ** > > Interested to know if anyone else has experienced the same issue?**** > > ** ** > > Regards**** > > ** ** > > Charlie**** > > ** ** > > --**** > > Charlie Allgrove**** > > Senior Developer**** > > ** ** > > Connection Services :: Business Mobility for a Wireless World**** > > ** ** > > Connection Services Ltd is a company incorporated under the laws of > England and Wales with company number 6520674 whose registered office is at > Griffins Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The > information in this e-mail and any attachments is confidential and may be > legally privileged. It is intended solely for the addressee or addressees. > If you are not an intended recipient, please delete the message and any > attachments and notify the sender of misdelivery: any use or disclosure of > the contents of either is unauthorised and may be unlawful. All liability > for viruses is excluded to the fullest extent permitted by law. Any views > expressed in this message are those of the individual sender. In accordance > with the provisions of its Terms of Business the Company does not accept > instructions or the creation of contractual obligations by unconfirmed > electronic transmission.**** > > ** ** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steven_Hin at golder.com Tue Jun 12 06:49:20 2012 From: Steven_Hin at golder.com (StevenHin) Date: Tue, 12 Jun 2012 06:49:20 -0700 (PDT) Subject: [mapserver-users] MapFile ClassItem Expression on in-line features In-Reply-To: <1339119355780-4979849.post@n6.nabble.com> References: <1339119355780-4979849.post@n6.nabble.com> Message-ID: <1339508960988-4980805.post@n6.nabble.com> Hi Steve, I have created a ticket for this issue and the number is #4341 in GitHub. Here is the link: https://github.com/mapserver/mapserver/issues/4341. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980805.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Tue Jun 12 07:26:16 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Jun 2012 08:26:16 -0600 Subject: [mapserver-users] Regular expression error Message-ID: I am getting the error: msValidateParameter(): Regular expression error. Parameter pattern validation failed. >From the following in my LAYER definition: METADATA 'filter_validation_pattern' 'ogc_fid.' END FILTER "%filter%" And I just can't see what I'm doing wrong. I'd sure appreciate another set of eyes... Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Tue Jun 12 07:29:31 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 12 Jun 2012 14:29:31 +0000 Subject: [mapserver-users] Regular expression error In-Reply-To: References: Message-ID: What value are you trying to validate? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood Sent: Tuesday, June 12, 2012 9:26 AM To: mapserver Subject: [mapserver-users] Regular expression error I am getting the error: msValidateParameter(): Regular expression error. Parameter pattern validation failed. >From the following in my LAYER definition: METADATA 'filter_validation_pattern' 'ogc_fid.' END FILTER "%filter%" And I just can't see what I'm doing wrong. I'd sure appreciate another set of eyes... Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Tue Jun 12 07:35:20 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Jun 2012 08:35:20 -0600 Subject: [mapserver-users] Regular expression error In-Reply-To: References: Message-ID: If I don't have any key/value in the query string I get a whole bunch regular expression errors in the error log. In other words, just the presence of that layer in the map file is generating error. An actual value would look like ogr_fid=123456 Thanks, Rich On Tue, Jun 12, 2012 at 8:29 AM, Lime, Steve D (DNR) wrote: > What value are you trying to validate? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood > Sent: Tuesday, June 12, 2012 9:26 AM > To: mapserver > Subject: [mapserver-users] Regular expression error > > I am getting the error: > ?msValidateParameter(): Regular expression error. Parameter pattern validation failed. > > From the following in my LAYER definition: > ?METADATA > ? ?'filter_validation_pattern' ?'ogc_fid.' > ?END > ?FILTER "%filter%" > > And I just can't see what I'm doing wrong. I'd sure appreciate another set of eyes... > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Tue Jun 12 08:11:05 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 12 Jun 2012 15:11:05 +0000 Subject: [mapserver-users] Regular expression error In-Reply-To: References: Message-ID: Your regex only allows for 1 character after ogc_fid. I'd rewrite as: '^ogc_fid=[0-9]{1,5}$' This restricts the number a bit more, plus doesn't allow characters before or after. Really you could to: VALIDATION 'ogc_fid' '^[0-9]{1-5}$' END FILTER "ogc_fid=%ogc_fid%" That's a lot cleaner. Steve -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Tuesday, June 12, 2012 9:35 AM To: Lime, Steve D (DNR) Cc: mapserver Subject: Re: [mapserver-users] Regular expression error If I don't have any key/value in the query string I get a whole bunch regular expression errors in the error log. In other words, just the presence of that layer in the map file is generating error. An actual value would look like ogr_fid=123456 Thanks, Rich On Tue, Jun 12, 2012 at 8:29 AM, Lime, Steve D (DNR) wrote: > What value are you trying to validate? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard > Greenwood > Sent: Tuesday, June 12, 2012 9:26 AM > To: mapserver > Subject: [mapserver-users] Regular expression error > > I am getting the error: > ?msValidateParameter(): Regular expression error. Parameter pattern validation failed. > > From the following in my LAYER definition: > ?METADATA > ? ?'filter_validation_pattern' ?'ogc_fid.' > ?END > ?FILTER "%filter%" > > And I just can't see what I'm doing wrong. I'd sure appreciate another set of eyes... > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From adube at mapgears.com Tue Jun 12 08:21:05 2012 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 12 Jun 2012 11:21:05 -0400 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: References: <4FBCE6AF.4000004@gatewaygeomatics.com> Message-ID: <4FD75E61.6050903@mapgears.com> Hi Eric, On 12-06-05 12:25 PM, Eric Lemoine wrote: > We have finally found a solution: use a 64-bit version from > http://www.gisinternals.com/sdk/ (our Windows machine is 64-bit). I'm facing the exact same problem with MS4W 3.0.3 on Windows Server 2008 RC2 64bits. I tried your solution using the MSVC2008 (Win64) -release release-1500-x64-gdal-1-8-1-mapserver-6-0-1 package but it didn't solve the issue in my case. Which one did you use with your 3.0.4 version ? Thanks, -- Alexandre Dub? Mapgears www.mapgears.com From bob.basques at ci.stpaul.mn.us Tue Jun 12 08:12:29 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Jun 2012 15:12:29 +0000 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . Message-ID: All, I have this MAPFILE which works fine for a Map image, but how do I get a WMS legend from the upstream WMS service? Do I need to set up a LAYER (like) definition inside of a LEGEND block for a mode=legend to work downstream. Right now I get a blank image. I don't see any information on the topic in this page: http://mapserver.org/ogc/wms_client.html#mapfile-configuration About WMS Legend pass-through . . . Thanks bobb ------------ MAP NAME 'WS_Distribution_Mains' SIZE 800 650 EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 STATUS ON UNITS FEET IMAGETYPE PNG24 PROJECTION "init=epsg:200068" END LAYER NAME "WS distribution Mains" TYPE RASTER STATUS DEFAULT CONNECTION "http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "2" "wms_server_version" "1.1.1" "wms_format" "image/png24" "ows_title" "0" "gml_include_items" "all" END PROJECTION "init=epsg:4326" END END #layer ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" ##DEBUG 5 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Tue Jun 12 08:33:33 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 12 Jun 2012 17:33:33 +0200 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: Message-ID: Hi, In the "WMS world" you get a legend by requesting it with a GetLegendGraphic request, something like: http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/config OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/png& LAYER=forest And you can do this for any of let LAYERs you have in you MAP file... Barend -- Barend K?bben Senior Lecturer, ITC - University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 217, 7500AE Enschede (The Netherlands) +31-(0)53 4874 253 On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" wrote: >All, > >I have this MAPFILE which works fine for a Map image, but how do I get a >WMS legend from the upstream WMS service? Do I need to set up a LAYER >(like) definition inside of a LEGEND block for a mode=legend to work >downstream. Right now I get a blank image. > >I don't see any information on the topic in this page: > >http://mapserver.org/ogc/wms_client.html#mapfile-configuration > >About WMS Legend pass-through . . . > >Thanks > >bobb > > >------------ > >MAP > NAME 'WS_Distribution_Mains' > SIZE 800 650 > EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 > > STATUS ON > UNITS FEET > IMAGETYPE PNG24 > > PROJECTION > "init=epsg:200068" > END > > LAYER > NAME "WS distribution Mains" > TYPE RASTER > STATUS DEFAULT > CONNECTION >"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" > CONNECTIONTYPE WMS > > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "2" > "wms_server_version" "1.1.1" > "wms_format" "image/png24" > > "ows_title" "0" > "gml_include_items" "all" > END > > PROJECTION > "init=epsg:4326" > END > END #layer > > ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" > ##DEBUG 5 > >END > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From punk.kish at gmail.com Tue Jun 12 08:48:35 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Tue, 12 Jun 2012 10:48:35 -0500 Subject: [mapserver-users] Regular expression error In-Reply-To: References: Message-ID: <9AE6423F-2745-40B7-871D-C386EE66377C@gmail.com> On Jun 12, 2012, at 10:11 AM, "Lime, Steve D (DNR)" wrote: > ogc_fid' '^[0-9]{1-5}$' You did mean '^[0-9]{1,5}$' Not the comma not the dash in the quantifier (a minimum of one up to a maximum of 5, or however many you desire, digits) From Steve.Lime at state.mn.us Tue Jun 12 08:49:44 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 12 Jun 2012 15:49:44 +0000 Subject: [mapserver-users] Regular expression error In-Reply-To: <9AE6423F-2745-40B7-871D-C386EE66377C@gmail.com> References: <9AE6423F-2745-40B7-871D-C386EE66377C@gmail.com> Message-ID: Yup, damn typos... -----Original Message----- From: Puneet Kishor [mailto:punk.kish at gmail.com] Sent: Tuesday, June 12, 2012 10:49 AM To: Lime, Steve D (DNR) Cc: Richard Greenwood; mapserver Subject: Re: [mapserver-users] Regular expression error On Jun 12, 2012, at 10:11 AM, "Lime, Steve D (DNR)" wrote: > ogc_fid' '^[0-9]{1-5}$' You did mean '^[0-9]{1,5}$' Not the comma not the dash in the quantifier (a minimum of one up to a maximum of 5, or however many you desire, digits) From MarkVolz at co.lyon.mn.us Tue Jun 12 09:28:25 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 12 Jun 2012 16:28:25 +0000 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> Thomas, Our server is behind a firewall, but anyways here is some of the information that I can share which might help. Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 Tiles: jpeg (source, cache format, and format used in assembling tiles) Grid: County Coordinates, 256*256, extent matches the extent of the client application Zoom Level, Resolution, Approximate Scale (Res*12*72) 0, 1024, 1:884736 (region) 1, 512 , 1:442368 2, 256 , 1:221184 (county wide) 3, 128 , 1:110592 4, 64 , 1:55296 5, 32 , 1:27648 6, 16 , 1:13824 7, 8 , 1:6912 8, 4 , 1:3456 9, 2 , 1:1728 10, 1 , 1:864 11, 0.5 , 1:432 (0.5 feet matches the size of the imagery) Unscientific speed results for various assemble types: Source wms server: 400-800 ms 1:6912 (resolution matching cache, area cached) 4-50 ms 1:6912 (resolution matching cache, area not cached) Cache hits are around .470-1.4 seconds 1:7000 (forward to wms server) 500-800 ms 1:7000 (assemble from cache on an area already cached) 1-12 seconds (panning small amounts is quicker, zooming in our out takes a while) 1:7000 (assemble from cache on an area not already cached) 2-14 seconds Thanks Mark Volz GIS Specialist -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, June 12, 2012 5:27 AM To: Mark Volz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) (please stay on list, you answers can help others facing the same issue) On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: > Thomas, > > It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. > > I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. Slightly off is expected to be a bit slower, but not very noticeably so. Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" modes. regards, thomas > > Thank you for all your help! > > > Mark Volz > GIS Specialist > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Monday, June 11, 2012 9:47 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - transparency, surrounding > area color, performance when assembling images (pink tiles) > > On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >> Hello, >> >> First,? I am having trouble figuring out how to get transparency to >> work in mapcache when using a Mapserver/WMS source.? Does anyone have >> an example of how to store a transparent mapcache with a Mapserver wms source? > > make the tileset reference a png format, not a jpeg one. > >> >> Next,? The color of my cache is fine, however the surrounding area >> outside of the extent of the cache is black.? Can that be changed to >> white, or transparent? > > same as previously, configure the wms service create png not jpeg > > ? ? ?... > ? ? ?PNG > > > >> >> Third,? Mapcache seems really slow when it needs to assemble images. >> I am getting plenty of pink screens, and the response time is usually >> greater than 5 seconds.? Mapcache is much faster when I use >> forward, so I know the problem is not the source wms. >> Does anyone have an idea as to why the performance is poor when >> assembling images? > I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. > when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. > > -- > thomas > >> >> Thank You >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From thomas.bonfort at gmail.com Tue Jun 12 09:33:58 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jun 2012 18:33:58 +0200 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> Message-ID: Hi Mark, On Tue, Jun 12, 2012 at 6:28 PM, Mark Volz wrote: > Thomas, > > Our server is behind a firewall, but anyways here is some of the information that I can share which might help. > > Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 > Tiles: jpeg (source, cache format, and format used in assembling tiles) > Grid: ?County Coordinates, 256*256, extent matches the extent of the client application > > Zoom Level, Resolution, Approximate Scale (Res*12*72) > 0, 1024, 1:884736 ?(region) > 1, 512 , 1:442368 > 2, 256 , 1:221184 ?(county wide) > 3, 128 , 1:110592 > 4, 64 , 1:55296 > 5, 32 , 1:27648 > 6, 16 , 1:13824 > 7, 8 , 1:6912 > 8, 4 , 1:3456 > 9, 2 , 1:1728 > 10, 1 , 1:864 > 11, 0.5 , 1:432 ?(0.5 feet matches the size of the imagery) > > Unscientific speed results for various assemble types: > Even if the server is behind a firewall, can you provide the urls for each of these test cases, I basically only need the width, height and bbox parameters (provided they are all requesting the same LAYERS= combination) > Source wms server: 400-800 ms > 1:6912 (resolution matching cache, area cached) 4-50 ms > 1:6912 (resolution matching cache, area not cached) Cache hits are around .470-1.4 seconds > 1:7000 (forward to wms server) 500-800 ms > 1:7000 (assemble from cache on an area already cached) 1-12 seconds (panning small amounts is quicker, zooming in our out takes a while) > 1:7000 (assemble from cache on an area not already cached) 2-14 seconds > > Thanks > > Mark Volz > GIS Specialist > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, June 12, 2012 5:27 AM > To: Mark Volz > Cc: MapserverList OSGEO > Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) > > (please stay on list, you answers can help others facing the same issue) > > On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: >> Thomas, >> >> It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. >> >> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. > > Slightly off is expected to be a bit slower, but not very noticeably so. ?Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. > Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" > modes. > > regards, > thomas > > > >> >> Thank you for all your help! >> >> >> Mark Volz >> GIS Specialist >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Monday, June 11, 2012 9:47 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >> area color, performance when assembling images (pink tiles) >> >> On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >>> Hello, >>> >>> First,? I am having trouble figuring out how to get transparency to >>> work in mapcache when using a Mapserver/WMS source.? Does anyone have >>> an example of how to store a transparent mapcache with a Mapserver wms source? >> >> make the tileset reference a png format, not a jpeg one. >> >>> >>> Next,? The color of my cache is fine, however the surrounding area >>> outside of the extent of the cache is black.? Can that be changed to >>> white, or transparent? >> >> same as previously, configure the wms service create png not jpeg >> >> ? ? ?... >> ? ? ?PNG >> >> >> >>> >>> Third,? Mapcache seems really slow when it needs to assemble images. >>> I am getting plenty of pink screens, and the response time is usually >>> greater than 5 seconds.? Mapcache is much faster when I use >>> forward, so I know the problem is not the source wms. >>> Does anyone have an idea as to why the performance is poor when >>> assembling images? >> I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. >> when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. >> >> -- >> thomas >> >>> >>> Thank You >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> From thomas.bonfort at gmail.com Tue Jun 12 09:44:34 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jun 2012 18:44:34 +0200 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> Message-ID: On Tue, Jun 12, 2012 at 6:33 PM, thomas bonfort wrote: > Hi Mark, > > On Tue, Jun 12, 2012 at 6:28 PM, Mark Volz wrote: >> Thomas, >> >> Our server is behind a firewall, but anyways here is some of the information that I can share which might help. >> >> Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 >> Tiles: jpeg (source, cache format, and format used in assembling tiles) >> Grid: ?County Coordinates, 256*256, extent matches the extent of the client application >> >> Zoom Level, Resolution, Approximate Scale (Res*12*72) >> 0, 1024, 1:884736 ?(region) >> 1, 512 , 1:442368 >> 2, 256 , 1:221184 ?(county wide) >> 3, 128 , 1:110592 >> 4, 64 , 1:55296 >> 5, 32 , 1:27648 >> 6, 16 , 1:13824 >> 7, 8 , 1:6912 >> 8, 4 , 1:3456 >> 9, 2 , 1:1728 >> 10, 1 , 1:864 >> 11, 0.5 , 1:432 ?(0.5 feet matches the size of the imagery) >> >> Unscientific speed results for various assemble types: >> > > Even if the server is behind a firewall, can you provide the urls for > each of these test cases, I basically only need the width, height and > bbox parameters (provided they are all requesting the same LAYERS= > combination) > >> Source wms server: 400-800 ms >> 1:6912 (resolution matching cache, area cached) 4-50 ms >> 1:6912 (resolution matching cache, area not cached) Cache hits are around .470-1.4 seconds >> 1:7000 (forward to wms server) 500-800 ms >> 1:7000 (assemble from cache on an area already cached) 1-12 seconds (panning small amounts is quicker, zooming in our out takes a while) For reference, on a single core of a Core i5 cpu, when requesting a ~1200x700 image compositing 2 layers (i.e. around 40-50 tiles to decompress+reassemble+recompress), I'm getting 6 req/s, which seems very far off from what you are getting with a much higher spec'd machine. >> 1:7000 (assemble from cache on an area not already cached) 2-14 seconds >> >> Thanks >> >> Mark Volz >> GIS Specialist >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Tuesday, June 12, 2012 5:27 AM >> To: Mark Volz >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) >> >> (please stay on list, you answers can help others facing the same issue) >> >> On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: >>> Thomas, >>> >>> It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. >>> >>> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. >> >> Slightly off is expected to be a bit slower, but not very noticeably so. ?Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. >> Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" >> modes. >> >> regards, >> thomas >> >> >> >>> >>> Thank you for all your help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> -----Original Message----- >>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sent: Monday, June 11, 2012 9:47 AM >>> To: Mark Volz >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >>> area color, performance when assembling images (pink tiles) >>> >>> On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >>>> Hello, >>>> >>>> First,? I am having trouble figuring out how to get transparency to >>>> work in mapcache when using a Mapserver/WMS source.? Does anyone have >>>> an example of how to store a transparent mapcache with a Mapserver wms source? >>> >>> make the tileset reference a png format, not a jpeg one. >>> >>>> >>>> Next,? The color of my cache is fine, however the surrounding area >>>> outside of the extent of the cache is black.? Can that be changed to >>>> white, or transparent? >>> >>> same as previously, configure the wms service create png not jpeg >>> >>> ? ? ?... >>> ? ? ?PNG >>> >>> >>> >>>> >>>> Third,? Mapcache seems really slow when it needs to assemble images. >>>> I am getting plenty of pink screens, and the response time is usually >>>> greater than 5 seconds.? Mapcache is much faster when I use >>>> forward, so I know the problem is not the source wms. >>>> Does anyone have an idea as to why the performance is poor when >>>> assembling images? >>> I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. >>> when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. >>> >>> -- >>> thomas >>> >>>> >>>> Thank You >>>> >>>> Mark Volz >>>> GIS Specialist >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> From kobben at itc.nl Tue Jun 12 10:49:23 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 12 Jun 2012 19:49:23 +0200 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: Message-ID: Hmm, I clearly didn't read your original post well enough, sorry... The easy solution would be to have the legend embedded in the WMS image (use STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in a tiled fashion, though... Barend On 12-06-12 17:44, "Basques, Bob (CI-StPaul)" wrote: >you, I figured that out from the WMS request, but how to implement that >via the Mapserver WMS client we have in place. > >I can get a LEGEND graphic like this for example: > >http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMS >Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer >=2&width=200 > >but how to add this call into the MAPFILE for Our Mapserver client. > >bobb > > >________________________________________ >From: Barend K?bben [kobben at itc.nl] >Sent: Tuesday, June 12, 2012 10:33 AM >To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org >Subject: Re: [mapserver-users] Mapserver as WMS client, legend >pass-through . . . > >Hi, > >In the "WMS world" you get a legend by requesting it with a >GetLegendGraphic request, something like: > >http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/confi >g >OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/png >& >LAYER=forest > >And you can do this for any of let LAYERs you have in you MAP file... > >Barend > >-- >Barend K?bben >Senior Lecturer, ITC - University of Twente, >Faculty of Geo-Information Science and Earth Observation >PO Box 217, 7500AE Enschede (The Netherlands) >+31-(0)53 4874 253 > > > >On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" > wrote: > >>All, >> >>I have this MAPFILE which works fine for a Map image, but how do I get a >>WMS legend from the upstream WMS service? Do I need to set up a LAYER >>(like) definition inside of a LEGEND block for a mode=legend to work >>downstream. Right now I get a blank image. >> >>I don't see any information on the topic in this page: >> >>http://mapserver.org/ogc/wms_client.html#mapfile-configuration >> >>About WMS Legend pass-through . . . >> >>Thanks >> >>bobb >> >> >>------------ >> >>MAP >> NAME 'WS_Distribution_Mains' >> SIZE 800 650 >> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >> >> STATUS ON >> UNITS FEET >> IMAGETYPE PNG24 >> >> PROJECTION >> "init=epsg:200068" >> END >> >> LAYER >> NAME "WS distribution Mains" >> TYPE RASTER >> STATUS DEFAULT >> CONNECTION >>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" >> CONNECTIONTYPE WMS >> >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "2" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png24" >> >> "ows_title" "0" >> "gml_include_items" "all" >> END >> >> PROJECTION >> "init=epsg:4326" >> END >> END #layer >> >> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" >> ##DEBUG 5 >> >>END >> > > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information is strictly prohibited. If >you have received this e-mail by mistake, please delete the message and >any attachment and inform the sender by return e-mail. ITC accepts no >liability for any error or omission in the message content or for damage >of any kind that may arise as a result of e-mail transmission. > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From i.skidoosh at gmail.com Tue Jun 12 10:55:00 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 12 Jun 2012 23:25:00 +0530 Subject: [mapserver-users] shortest_path query Message-ID: Hello there. I've got the query for shortest path using pgrouting to run finally. I get the edges but now I need to map my result onto a mapserver layer. I've tried examples from the internet but mostly they're flawed. I'm positng the query which has worked for me. Please suggest a way to convert it into a visible layer using mapserver. SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false) I tried to form a query-layer but failed. I'm sending the code I used to. Please correct me. DATA "the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false)) AS foo using unique gid using srid=4326" Here is the layer definition: LAYER NAME "route" CONNECTIONTYPE postgis CONNECTION "user=postgres password=*********** dbname=VSDelhidb host=localhost" DEBUG 5 STATUS DEFAULT TYPE LINE DATA "the_geom FROM (SELECT * FROM shortest_path('SELECT gid AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, 210, false, false)) AS foo using unique gid using srid=4326" TEMPLATE "t" # # //////////////////////////////////////////////////////THE CLASS THAT CLASSIFIES EVERYTHING IN IT. //////////////////////////////// # CLASS # # /////////////////////////////////////////////////////THE STYLE OF DRAWING THIS CLASS. //////////////////////////////////// # NAME "0" STYLE SYMBOL "circle" SIZE 10 OUTLINECOLOR 255 0 0 COLOR 165 42 42 END #___END OF THE SYLE DECLARATION FOR THIS CLASS.___##################################################################### END #_________END OF THE CLASS THAT CLASSIFIES EVERYTHING.___________############################################################## END #________END OF THE LAYER THAT DRAWS EVERYTHING._________############################################################################## -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Tue Jun 12 10:53:47 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Jun 2012 17:53:47 +0000 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: References: , Message-ID: Barend, I'm using GeoMoose, it has a separete menu for displaying the Legend chips integrated into it. I'm still pondering some ideas . . . bobb ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Barend K?bben [kobben at itc.nl] Sent: Tuesday, June 12, 2012 12:49 PM To: mapserver-users at osgeo.org Subject: Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . . Hmm, I clearly didn't read your original post well enough, sorry... The easy solution would be to have the legend embedded in the WMS image (use STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in a tiled fashion, though... Barend On 12-06-12 17:44, "Basques, Bob (CI-StPaul)" wrote: >you, I figured that out from the WMS request, but how to implement that >via the Mapserver WMS client we have in place. > >I can get a LEGEND graphic like this for example: > >http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMS >Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer >=2&width=200 > >but how to add this call into the MAPFILE for Our Mapserver client. > >bobb > > >________________________________________ >From: Barend K?bben [kobben at itc.nl] >Sent: Tuesday, June 12, 2012 10:33 AM >To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org >Subject: Re: [mapserver-users] Mapserver as WMS client, legend >pass-through . . . > >Hi, > >In the "WMS world" you get a legend by requesting it with a >GetLegendGraphic request, something like: > >http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/confi >g >OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/png >& >LAYER=forest > >And you can do this for any of let LAYERs you have in you MAP file... > >Barend > >-- >Barend K?bben >Senior Lecturer, ITC - University of Twente, >Faculty of Geo-Information Science and Earth Observation >PO Box 217, 7500AE Enschede (The Netherlands) >+31-(0)53 4874 253 > > > >On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" > wrote: > >>All, >> >>I have this MAPFILE which works fine for a Map image, but how do I get a >>WMS legend from the upstream WMS service? Do I need to set up a LAYER >>(like) definition inside of a LEGEND block for a mode=legend to work >>downstream. Right now I get a blank image. >> >>I don't see any information on the topic in this page: >> >>http://mapserver.org/ogc/wms_client.html#mapfile-configuration >> >>About WMS Legend pass-through . . . >> >>Thanks >> >>bobb >> >> >>------------ >> >>MAP >> NAME 'WS_Distribution_Mains' >> SIZE 800 650 >> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >> >> STATUS ON >> UNITS FEET >> IMAGETYPE PNG24 >> >> PROJECTION >> "init=epsg:200068" >> END >> >> LAYER >> NAME "WS distribution Mains" >> TYPE RASTER >> STATUS DEFAULT >> CONNECTION >>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" >> CONNECTIONTYPE WMS >> >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "2" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png24" >> >> "ows_title" "0" >> "gml_include_items" "all" >> END >> >> PROJECTION >> "init=epsg:4326" >> END >> END #layer >> >> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" >> ##DEBUG 5 >> >>END >> > > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information is strictly prohibited. If >you have received this e-mail by mistake, please delete the message and >any attachment and inform the sender by return e-mail. ITC accepts no >liability for any error or omission in the message content or for damage >of any kind that may arise as a result of e-mail transmission. > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Tue Jun 12 11:31:31 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 12 Jun 2012 18:31:31 +0000 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311FE56@swmail01.r8nssis.local> Thomas Here are a couple examples of url calls made to mapcache. In general most of them are formatted as such: http://10.0.8.116/mapcache?LAYER=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&LAYERS=LyonAirPhotos&SRS=EPSG%3A103749&BBOX=509776,195448,511824,197496&WIDTH=256&HEIGHT=256 Scale 1:6912 (same grid as mapcache): BBOX=524112,183160,526160,185208&WIDTH=256&HEIGHT=256 Scale 1:7000 (slightly off from mapcache grid): BBOX=502444.44444451,182259.25925936,504518.51851858,184333.33333344&WIDTH=256&HEIGHT=256. When mapcache had to assemble tiles, all 4 cores of the server ran at 100% I also tried single tile mode to see if that made any difference. It did. Mapcache produced single tile images in about .8 to 1.5 seconds no matter if I am using the same grid as mapcache or not. This speed obviously is not nearly as fast as tile mode when using the same grid as mapcache. That being said, it seems like something is stopping mapcache from scaling well when it needs to resample multiple tiles at the same time. Mark Volz GIS Specialist -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, June 12, 2012 11:34 AM To: Mark Volz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) Hi Mark, On Tue, Jun 12, 2012 at 6:28 PM, Mark Volz wrote: > Thomas, > > Our server is behind a firewall, but anyways here is some of the information that I can share which might help. > > Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 > Tiles: jpeg (source, cache format, and format used in assembling > tiles) > Grid: ?County Coordinates, 256*256, extent matches the extent of the > client application > > Zoom Level, Resolution, Approximate Scale (Res*12*72) 0, 1024, > 1:884736 ?(region) 1, 512 , 1:442368 2, 256 , 1:221184 ?(county wide) > 3, 128 , 1:110592 4, 64 , 1:55296 5, 32 , 1:27648 6, 16 , 1:13824 7, 8 > , 1:6912 8, 4 , 1:3456 9, 2 , 1:1728 10, 1 , 1:864 11, 0.5 , 1:432 ? > (0.5 feet matches the size of the imagery) > > Unscientific speed results for various assemble types: > Even if the server is behind a firewall, can you provide the urls for each of these test cases, I basically only need the width, height and bbox parameters (provided they are all requesting the same LAYERS= combination) > Source wms server: 400-800 ms > 1:6912 (resolution matching cache, area cached) 4-50 ms > 1:6912 (resolution matching cache, area not cached) Cache hits are > around .470-1.4 seconds > 1:7000 (forward to wms server) 500-800 ms > 1:7000 (assemble from cache on an area already cached) 1-12 seconds > (panning small amounts is quicker, zooming in our out takes a while) > 1:7000 (assemble from cache on an area not already cached) 2-14 > seconds > > Thanks > > Mark Volz > GIS Specialist > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, June 12, 2012 5:27 AM > To: Mark Volz > Cc: MapserverList OSGEO > Subject: Re: [mapserver-users] mapcache - transparency, surrounding > area color, performance when assembling images (pink tiles) > > (please stay on list, you answers can help others facing the same > issue) > > On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: >> Thomas, >> >> It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. >> >> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. > > Slightly off is expected to be a bit slower, but not very noticeably so. ?Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. > Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" > modes. > > regards, > thomas > > > >> >> Thank you for all your help! >> >> >> Mark Volz >> GIS Specialist >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Monday, June 11, 2012 9:47 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >> area color, performance when assembling images (pink tiles) >> >> On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >>> Hello, >>> >>> First,? I am having trouble figuring out how to get transparency to >>> work in mapcache when using a Mapserver/WMS source.? Does anyone >>> have an example of how to store a transparent mapcache with a Mapserver wms source? >> >> make the tileset reference a png format, not a jpeg one. >> >>> >>> Next,? The color of my cache is fine, however the surrounding area >>> outside of the extent of the cache is black.? Can that be changed to >>> white, or transparent? >> >> same as previously, configure the wms service create png not jpeg >> >> ? ? ?... >> ? ? ?PNG >> >> >> >>> >>> Third,? Mapcache seems really slow when it needs to assemble images. >>> I am getting plenty of pink screens, and the response time is >>> usually greater than 5 seconds.? Mapcache is much faster when I use >>> forward, so I know the problem is not the source wms. >>> Does anyone have an idea as to why the performance is poor when >>> assembling images? >> I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. >> when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. >> >> -- >> thomas >> >>> >>> Thank You >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> From adube at mapgears.com Tue Jun 12 11:41:26 2012 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 12 Jun 2012 14:41:26 -0400 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: <4FD75E61.6050903@mapgears.com> References: <4FBCE6AF.4000004@gatewaygeomatics.com> <4FD75E61.6050903@mapgears.com> Message-ID: <4FD78D56.5000900@mapgears.com> Nevermind, my issue was something else. It was just a coincidence that I had the same environment. Regards, Alexandre On 12-06-12 11:21 AM, Alexandre Dube wrote: > Hi Eric, > > On 12-06-05 12:25 PM, Eric Lemoine wrote: >> We have finally found a solution: use a 64-bit version from >> http://www.gisinternals.com/sdk/ (our Windows machine is 64-bit). > > I'm facing the exact same problem with MS4W 3.0.3 on Windows Server > 2008 RC2 64bits. I tried your solution using the MSVC2008 (Win64) > -release release-1500-x64-gdal-1-8-1-mapserver-6-0-1 package but it > didn't solve the issue in my case. > > Which one did you use with your 3.0.4 version ? > > Thanks, > -- Alexandre Dub? Mapgears www.mapgears.com From thomas.bonfort at gmail.com Tue Jun 12 11:48:14 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Jun 2012 20:48:14 +0200 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311FE56@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE56@swmail01.r8nssis.local> Message-ID: Something's definitely wrong with your setup :( given your machine specs, typical timings should more likely be: - for tiled requests, around .2-.5 ms/req - for off-grid 256x256 requests, around 10-20 ms/req what timings to you get if you request tiles / maps using the supplied default mapcache.xml ? On Tue, Jun 12, 2012 at 8:31 PM, Mark Volz wrote: > Thomas > > Here are a couple examples of url calls made to mapcache. ?In general most of them are formatted as such: > http://10.0.8.116/mapcache?LAYER=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&LAYERS=LyonAirPhotos&SRS=EPSG%3A103749&BBOX=509776,195448,511824,197496&WIDTH=256&HEIGHT=256 > > Scale 1:6912 (same grid as mapcache): > BBOX=524112,183160,526160,185208&WIDTH=256&HEIGHT=256 > > Scale 1:7000 (slightly off from mapcache grid): > BBOX=502444.44444451,182259.25925936,504518.51851858,184333.33333344&WIDTH=256&HEIGHT=256. > When mapcache had to assemble tiles, all 4 cores of the server ran at 100% > > I also tried single tile mode to see if that made any difference. ?It did. ?Mapcache produced single tile images in about .8 to 1.5 seconds no matter if I am using the same grid as mapcache or not. ?This speed obviously is not nearly as fast as tile mode when using the same grid as mapcache. ?That being said, it seems like something is stopping mapcache from scaling well when it needs to resample multiple tiles at the same time. > > Mark Volz > GIS Specialist > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, June 12, 2012 11:34 AM > To: Mark Volz > Cc: MapserverList OSGEO > Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) > > Hi Mark, > > On Tue, Jun 12, 2012 at 6:28 PM, Mark Volz wrote: >> Thomas, >> >> Our server is behind a firewall, but anyways here is some of the information that I can share which might help. >> >> Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 >> Tiles: jpeg (source, cache format, and format used in assembling >> tiles) >> Grid: ?County Coordinates, 256*256, extent matches the extent of the >> client application >> >> Zoom Level, Resolution, Approximate Scale (Res*12*72) 0, 1024, >> 1:884736 ?(region) 1, 512 , 1:442368 2, 256 , 1:221184 ?(county wide) >> 3, 128 , 1:110592 4, 64 , 1:55296 5, 32 , 1:27648 6, 16 , 1:13824 7, 8 >> , 1:6912 8, 4 , 1:3456 9, 2 , 1:1728 10, 1 , 1:864 11, 0.5 , 1:432 >> (0.5 feet matches the size of the imagery) >> >> Unscientific speed results for various assemble types: >> > > Even if the server is behind a firewall, can you provide the urls for each of these test cases, I basically only need the width, height and bbox parameters (provided they are all requesting the same LAYERS= > combination) > >> Source wms server: 400-800 ms >> 1:6912 (resolution matching cache, area cached) 4-50 ms >> 1:6912 (resolution matching cache, area not cached) Cache hits are >> around .470-1.4 seconds >> 1:7000 (forward to wms server) 500-800 ms >> 1:7000 (assemble from cache on an area already cached) 1-12 seconds >> (panning small amounts is quicker, zooming in our out takes a while) >> 1:7000 (assemble from cache on an area not already cached) 2-14 >> seconds >> >> Thanks >> >> Mark Volz >> GIS Specialist >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Tuesday, June 12, 2012 5:27 AM >> To: Mark Volz >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >> area color, performance when assembling images (pink tiles) >> >> (please stay on list, you answers can help others facing the same >> issue) >> >> On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: >>> Thomas, >>> >>> It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. >>> >>> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. >> >> Slightly off is expected to be a bit slower, but not very noticeably so. ?Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. >> Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" >> modes. >> >> regards, >> thomas >> >> >> >>> >>> Thank you for all your help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> -----Original Message----- >>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sent: Monday, June 11, 2012 9:47 AM >>> To: Mark Volz >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >>> area color, performance when assembling images (pink tiles) >>> >>> On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >>>> Hello, >>>> >>>> First,? I am having trouble figuring out how to get transparency to >>>> work in mapcache when using a Mapserver/WMS source.? Does anyone >>>> have an example of how to store a transparent mapcache with a Mapserver wms source? >>> >>> make the tileset reference a png format, not a jpeg one. >>> >>>> >>>> Next,? The color of my cache is fine, however the surrounding area >>>> outside of the extent of the cache is black.? Can that be changed to >>>> white, or transparent? >>> >>> same as previously, configure the wms service create png not jpeg >>> >>> ? ? ?... >>> ? ? ?PNG >>> >>> >>> >>>> >>>> Third,? Mapcache seems really slow when it needs to assemble images. >>>> I am getting plenty of pink screens, and the response time is >>>> usually greater than 5 seconds.? Mapcache is much faster when I use >>>> forward, so I know the problem is not the source wms. >>>> Does anyone have an idea as to why the performance is poor when >>>> assembling images? >>> I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. >>> when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. >>> >>> -- >>> thomas >>> >>>> >>>> Thank You >>>> >>>> Mark Volz >>>> GIS Specialist >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> From bob.basques at ci.stpaul.mn.us Tue Jun 12 11:33:56 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Jun 2012 18:33:56 +0000 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: References: , Message-ID: Barend, I can add this into the LAYER and get a label in a Mapserver Legend call: CLASS NAME "WS Distribution Mains" END But still no Legend Chip . . . bobb ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Barend K?bben [kobben at itc.nl] Sent: Tuesday, June 12, 2012 12:49 PM To: mapserver-users at osgeo.org Subject: Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . . Hmm, I clearly didn't read your original post well enough, sorry... The easy solution would be to have the legend embedded in the WMS image (use STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in a tiled fashion, though... Barend On 12-06-12 17:44, "Basques, Bob (CI-StPaul)" wrote: >you, I figured that out from the WMS request, but how to implement that >via the Mapserver WMS client we have in place. > >I can get a LEGEND graphic like this for example: > >http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMS >Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer >=2&width=200 > >but how to add this call into the MAPFILE for Our Mapserver client. > >bobb > > >________________________________________ >From: Barend K?bben [kobben at itc.nl] >Sent: Tuesday, June 12, 2012 10:33 AM >To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org >Subject: Re: [mapserver-users] Mapserver as WMS client, legend >pass-through . . . > >Hi, > >In the "WMS world" you get a legend by requesting it with a >GetLegendGraphic request, something like: > >http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/confi >g >OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/png >& >LAYER=forest > >And you can do this for any of let LAYERs you have in you MAP file... > >Barend > >-- >Barend K?bben >Senior Lecturer, ITC - University of Twente, >Faculty of Geo-Information Science and Earth Observation >PO Box 217, 7500AE Enschede (The Netherlands) >+31-(0)53 4874 253 > > > >On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" > wrote: > >>All, >> >>I have this MAPFILE which works fine for a Map image, but how do I get a >>WMS legend from the upstream WMS service? Do I need to set up a LAYER >>(like) definition inside of a LEGEND block for a mode=legend to work >>downstream. Right now I get a blank image. >> >>I don't see any information on the topic in this page: >> >>http://mapserver.org/ogc/wms_client.html#mapfile-configuration >> >>About WMS Legend pass-through . . . >> >>Thanks >> >>bobb >> >> >>------------ >> >>MAP >> NAME 'WS_Distribution_Mains' >> SIZE 800 650 >> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >> >> STATUS ON >> UNITS FEET >> IMAGETYPE PNG24 >> >> PROJECTION >> "init=epsg:200068" >> END >> >> LAYER >> NAME "WS distribution Mains" >> TYPE RASTER >> STATUS DEFAULT >> CONNECTION >>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" >> CONNECTIONTYPE WMS >> >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "2" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png24" >> >> "ows_title" "0" >> "gml_include_items" "all" >> END >> >> PROJECTION >> "init=epsg:4326" >> END >> END #layer >> >> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" >> ##DEBUG 5 >> >>END >> > > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information is strictly prohibited. If >you have received this e-mail by mistake, please delete the message and >any attachment and inform the sender by return e-mail. ITC accepts no >liability for any error or omission in the message content or for damage >of any kind that may arise as a result of e-mail transmission. > > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. _______________________________________________ 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 Tue Jun 12 14:01:31 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Jun 2012 21:01:31 +0000 Subject: [mapserver-users] Anaimated images as map sources Message-ID: All, Can Mapserver slice and dice an Animated (GIF or PN or ??) map source image and return a resulting animated image? I found a refernce to it NOT owrking for a WMS to WMS call where the upstream WMS service would produce a Animated GIF, but the downstream Mapserver WMS client would only see (present) the first frame of the animation. Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Jun 12 14:14:57 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Jun 2012 15:14:57 -0600 Subject: [mapserver-users] Regular expression error In-Reply-To: References: Message-ID: Steve, Yeah, the map draws fine. Maybe even too fine because it draws with a query sting of: ogc_fid=430454 and a validation string of: 'filter_validation_pattern' 'ogc_fid.' which doesn't look right. But I'm still looking at what initially caught my attention - hundreds of mapserver ERRORFILE entries: msValidateParameter(): Regular expression error. Parameter pattern validation failed. and I'm beginning to think that it's a Windows versus Linux issue. With the same map file, data and requests I'm seeing the errors in the Windows instances but not the Linux instances. Do the Windows and Linux builds use different regex lib's? Again, these are all either 6.0.2 or 6.0.3. It's not a show stopper but I'd like to figure out if it's me, or my data, or a mapserver bug. And I'm kind of anal about my log files... Thanks, Rich On Tue, Jun 12, 2012 at 9:47 AM, Lime, Steve D (DNR) wrote: > But the map draws correct? Validation is applied regardless of layer status I think. Wonder what the link is between # of error messages and number of layers. Is validation in layer or web metadata sections? > > The validation stuff was all re-written for 6.0. It's possible there are bugs. It's also a relatively expensive operation (lot's of loops- for each parameter, each layer, each class)... > > Steve > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Tuesday, June 12, 2012 10:25 AM > To: Lime, Steve D (DNR) > Subject: Re: [mapserver-users] Regular expression error > > Steve - > > Cool, much better regex, thanks. But regardless of whether I use your validation & filter or mine, I'm getting 20 errors in my MS_ERRORFILE from that layer when there is no filter=value in the querystring. The layer's status is off in the map file, I'm not requesting it in the query string. I just do a mode=map requesting a different layer and my MS_ERRORFILE has this: > ?msValidateParameter(): Regular expression error. Parameter pattern validation failed. > repeated 20x. > > This is happening in 6.0.2 and 6.0.3 but not 5.6. > > Thanks, > Rich > > > On Tue, Jun 12, 2012 at 9:11 AM, Lime, Steve D (DNR) wrote: >> Your regex only allows for 1 character after ogc_fid. I'd rewrite as: >> >> ?'^ogc_fid=[0-9]{1,5}$' >> >> This restricts the number a bit more, plus doesn't allow characters before or after. Really you could to: >> >> ? VALIDATION >> ? ? 'ogc_fid' ?'^[0-9]{1-5}$' >> ? END >> ? FILTER "ogc_fid=%ogc_fid%" >> >> That's a lot cleaner. >> >> Steve >> >> -----Original Message----- >> From: Richard Greenwood [mailto:richard.greenwood at gmail.com] >> Sent: Tuesday, June 12, 2012 9:35 AM >> To: Lime, Steve D (DNR) >> Cc: mapserver >> Subject: Re: [mapserver-users] Regular expression error >> >> If I don't have any key/value in the query string I get a whole bunch >> regular expression errors in the error log. In other words, just the >> presence of that layer in the map file is generating error. An actual >> value would look like >> ? ogr_fid=123456 >> >> Thanks, >> Rich >> >> On Tue, Jun 12, 2012 at 8:29 AM, Lime, Steve D (DNR) wrote: >>> What value are you trying to validate? >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard >>> Greenwood >>> Sent: Tuesday, June 12, 2012 9:26 AM >>> To: mapserver >>> Subject: [mapserver-users] Regular expression error >>> >>> I am getting the error: >>> ?msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> >>> From the following in my LAYER definition: >>> ?METADATA >>> ? ?'filter_validation_pattern' ?'ogc_fid.' >>> ?END >>> ?FILTER "%filter%" >>> >>> And I just can't see what I'm doing wrong. I'd sure appreciate another set of eyes... >>> >>> Thanks, >>> Rich >>> >>> -- >>> Richard Greenwood >>> richard.greenwood at gmail.com >>> www.greenwoodmap.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> >> > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Tue Jun 12 14:03:48 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 12 Jun 2012 21:03:48 +0000 Subject: [mapserver-users] Anaimated images as map sources In-Reply-To: References: Message-ID: Not that I'm aware of. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Tuesday, June 12, 2012 4:02 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] Anaimated images as map sources All, Can Mapserver slice and dice an Animated (GIF or PN or ??) map source image and return a resulting animated image? I found a refernce to it NOT owrking for a WMS to WMS call where the upstream WMS service would produce a Animated GIF, but the downstream Mapserver WMS client would only see (present) the first frame of the animation. Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jun 12 14:24:03 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 12 Jun 2012 21:24:03 +0000 Subject: [mapserver-users] Anaimated images as map sources In-Reply-To: References: , , Message-ID: I'm not an AGG expert but that's probably not the component in play here anyway. Presumably whatever the source imagery it would/should be considered a raster dataset. I guess I'd look into how GDAL deals with animated input and then figure out if that can be configured through MapServer. I guess it wouldn't surprise me if GDAL considered individual frames as bands. Maybe that's the way to think about. Steve From: Basques, Bob (CI-StPaul) Sent: Tuesday, June 12, 2012 4:18 PM To: Lime, Steve D (DNR) Subject: RE: Anaimated images as map sources Hi Steve, So, What AGG functions are used in MapServer? I just went looking for what AGG stood for. Found some animation examples, but they were final constructs, not specifically clipping an existing animated image. What I was going to attempt, was to to try and set up a animated image from NOAA as a data source for Mapserver. They have the separate images available as well, which I would need to assemble after clipping into a image, Hmmm, maybe a layer per time index, ten hit that from the CGI through MapServer, then into a animated image for use in the map. Still sounds clunky though. bobb ________________________________ From: Basques, Bob (CI-StPaul) Sent: Tuesday, June 12, 2012 4:05 PM To: Lime, Steve D (DNR) Subject: RE: Anaimated images as map sources bobb ________________________________ From: Lime, Steve D (DNR) Sent: Tuesday, June 12, 2012 4:03 PM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: RE: Anaimated images as map sources Not that I'm aware of. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Tuesday, June 12, 2012 4:02 PM To: mapserver-users at osgeo.org Subject: [mapserver-users] Anaimated images as map sources All, Can Mapserver slice and dice an Animated (GIF or PN or ??) map source image and return a resulting animated image? I found a refernce to it NOT owrking for a WMS to WMS call where the upstream WMS service would produce a Animated GIF, but the downstream Mapserver WMS client would only see (present) the first frame of the animation. Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Jun 12 14:31:46 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 12 Jun 2012 21:31:46 +0000 Subject: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA311FBDE@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FCAA@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE06@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA311FE56@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311FF0B@swmail01.r8nssis.local> Thomas, I loaded up the demo mapcache.xml. Even on the demo resampling was slow. The only change I made to the html file was change the mapextent from: new OpenLayers.Bounds(-180.000000,-90.000000,180.000000,90.000000) to: new OpenLayers.Bounds(-179.235454,-89.456458,179.354812,89.545112) So I don?t think the issue was with my mapcache.xml file. Mark Volz GIS Specialist -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, June 12, 2012 1:48 PM To: Mark Volz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) Something's definitely wrong with your setup :( given your machine specs, typical timings should more likely be: - for tiled requests, around .2-.5 ms/req - for off-grid 256x256 requests, around 10-20 ms/req what timings to you get if you request tiles / maps using the supplied default mapcache.xml ? On Tue, Jun 12, 2012 at 8:31 PM, Mark Volz wrote: > Thomas > > Here are a couple examples of url calls made to mapcache. ?In general most of them are formatted as such: > http://10.0.8.116/mapcache?LAYER=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&LAYERS=LyonAirPhotos&SRS=EPSG%3A103749&BBOX=509776,195448,511824,197496&WIDTH=256&HEIGHT=256 > > Scale 1:6912 (same grid as mapcache): > BBOX=524112,183160,526160,185208&WIDTH=256&HEIGHT=256 > > Scale 1:7000 (slightly off from mapcache grid): > BBOX=502444.44444451,182259.25925936,504518.51851858,184333.33333344&WIDTH=256&HEIGHT=256. > When mapcache had to assemble tiles, all 4 cores of the server ran at 100% > > I also tried single tile mode to see if that made any difference. ?It did. ?Mapcache produced single tile images in about .8 to 1.5 seconds no matter if I am using the same grid as mapcache or not. ?This speed obviously is not nearly as fast as tile mode when using the same grid as mapcache. ?That being said, it seems like something is stopping mapcache from scaling well when it needs to resample multiple tiles at the same time. > > Mark Volz > GIS Specialist > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Tuesday, June 12, 2012 11:34 AM > To: Mark Volz > Cc: MapserverList OSGEO > Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles) > > Hi Mark, > > On Tue, Jun 12, 2012 at 6:28 PM, Mark Volz wrote: >> Thomas, >> >> Our server is behind a firewall, but anyways here is some of the information that I can share which might help. >> >> Server: New Quad Core Xeon, 20 GB ram, 1Tb storage free, RAID 5 >> Tiles: jpeg (source, cache format, and format used in assembling >> tiles) >> Grid: ?County Coordinates, 256*256, extent matches the extent of the >> client application >> >> Zoom Level, Resolution, Approximate Scale (Res*12*72) 0, 1024, >> 1:884736 ?(region) 1, 512 , 1:442368 2, 256 , 1:221184 ?(county wide) >> 3, 128 , 1:110592 4, 64 , 1:55296 5, 32 , 1:27648 6, 16 , 1:13824 7, 8 >> , 1:6912 8, 4 , 1:3456 9, 2 , 1:1728 10, 1 , 1:864 11, 0.5 , 1:432 >> (0.5 feet matches the size of the imagery) >> >> Unscientific speed results for various assemble types: >> > > Even if the server is behind a firewall, can you provide the urls for each of these test cases, I basically only need the width, height and bbox parameters (provided they are all requesting the same LAYERS= > combination) > >> Source wms server: 400-800 ms >> 1:6912 (resolution matching cache, area cached) 4-50 ms >> 1:6912 (resolution matching cache, area not cached) Cache hits are >> around .470-1.4 seconds >> 1:7000 (forward to wms server) 500-800 ms >> 1:7000 (assemble from cache on an area already cached) 1-12 seconds >> (panning small amounts is quicker, zooming in our out takes a while) >> 1:7000 (assemble from cache on an area not already cached) 2-14 >> seconds >> >> Thanks >> >> Mark Volz >> GIS Specialist >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Tuesday, June 12, 2012 5:27 AM >> To: Mark Volz >> Cc: MapserverList OSGEO >> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >> area color, performance when assembling images (pink tiles) >> >> (please stay on list, you answers can help others facing the same >> issue) >> >> On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz wrote: >>> Thomas, >>> >>> It turns out that most of my problems were when assemble was set... ?apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches. ?I experimented with changing the default to PNG. >>> >>> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5. ?when I am browsing at one of these resolutions mapcache is very fast. ?It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these. ?Anyways, I just turned ?forward on forward, which seems to be okay. >> >> Slightly off is expected to be a bit slower, but not very noticeably so. ?Please to try again with some higher resolutions configured (the disk space overhead for those will be negligeable), mapcache assembling should be at least as fast as a normal wms server if it is allowed to hit a correctly configured grid resolution. For reference, the classical mercator grid has 7 higher resolutions than what you have configured, which will help for requests covering approximately state/country scaled getmaps. >> Can you also provide the full url for a getmap request that exhibits this behavior, along with timings comparing "assemble" and "forward" >> modes. >> >> regards, >> thomas >> >> >> >>> >>> Thank you for all your help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> -----Original Message----- >>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sent: Monday, June 11, 2012 9:47 AM >>> To: Mark Volz >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] mapcache - transparency, surrounding >>> area color, performance when assembling images (pink tiles) >>> >>> On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz wrote: >>>> Hello, >>>> >>>> First,? I am having trouble figuring out how to get transparency to >>>> work in mapcache when using a Mapserver/WMS source.? Does anyone >>>> have an example of how to store a transparent mapcache with a Mapserver wms source? >>> >>> make the tileset reference a png format, not a jpeg one. >>> >>>> >>>> Next,? The color of my cache is fine, however the surrounding area >>>> outside of the extent of the cache is black.? Can that be changed to >>>> white, or transparent? >>> >>> same as previously, configure the wms service create png not jpeg >>> >>> ? ? ?... >>> ? ? ?PNG >>> >>> >>> >>>> >>>> Third,? Mapcache seems really slow when it needs to assemble images. >>>> I am getting plenty of pink screens, and the response time is >>>> usually greater than 5 seconds.? Mapcache is much faster when I use >>>> forward, so I know the problem is not the source wms. >>>> Does anyone have an idea as to why the performance is poor when >>>> assembling images? >>> I suspect you have defined a who's resolutions aren't of the same order of magnitude as the resolution of the getmap requests, i.e. >>> when creating the result image, mapcache has to decompress and resample a very high number of tile images. Try adding a couple of higher resolution entries to the beginning of your array. >>> >>> -- >>> thomas >>> >>>> >>>> Thank You >>>> >>>> Mark Volz >>>> GIS Specialist >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 12 15:48:51 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Jun 2012 18:48:51 -0400 Subject: [mapserver-users] Anaimated images as map sources In-Reply-To: References: , , Message-ID: <4FD7C753.3000401@swoodbridge.com> Bob, You might look at doing something like using mapcache to generate the images needed for the animation as multiple separate layers. Then look at using imagemagic in a perl script to combine the layers into a single animated gif image and putting the combined image into another layer in the cache. If you configure the new animated layer in mapcache and don't ask mapcache to modify the image it will just serve the animated gifs, I would think. If it doesn't a little bit of apache mod-perl can be done to efficiently serve them. What other formats support animation? gif, flash, others? Anyway, my guess is that you will need to do some custom work to get it going. -Steve W On 6/12/2012 5:24 PM, Lime, Steve D (DNR) wrote: > I?m not an AGG expert but that?s probably not the component in play here > anyway. Presumably whatever the source imagery it would/should be > considered a raster dataset. I guess I?d look into how GDAL deals with > animated input and then figure out if that can be configured through > MapServer. I guess it wouldn?t surprise me if GDAL considered individual > frames as bands. Maybe that?s the way to think about. > > Steve > > *From:*Basques, Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:18 PM > *To:* Lime, Steve D (DNR) > *Subject:* RE: Anaimated images as map sources > > Hi Steve, > > So, > > What AGG functions are used in MapServer? I just went looking for what > AGG stood for. Found some animation examples, but they were final > constructs, not specifically clipping an existing animated image. > > What I was going to attempt, was to to try and set up a animated image > from NOAA as a data source for Mapserver. They have the separate images > available as well, which I would need to assemble after clipping into a > image, Hmmm, maybe a layer per time index, ten hit that from the CGI > through MapServer, then into a animated image for use in the map. Still > sounds clunky though. > > bobb > > > *From:*Basques, Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:05 PM > *To:* Lime, Steve D (DNR) > *Subject:* RE: Anaimated images as map sources > > > > bobb > > *From:*Lime, Steve D (DNR) > *Sent:* Tuesday, June 12, 2012 4:03 PM > *To:* Basques, Bob (CI-StPaul); mapserver-users at osgeo.org > > *Subject:* RE: Anaimated images as map sources > > Not that I?m aware of. > > *From:*mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Basques, > Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:02 PM > *To:* mapserver-users at osgeo.org > *Subject:* [mapserver-users] Anaimated images as map sources > > All, > > Can Mapserver slice and dice an Animated (GIF or PN or ??) map source > image and return a resulting animated image? > > I found a refernce to it NOT owrking for a WMS to WMS call where the > upstream WMS service would produce a Animated GIF, but the downstream > Mapserver WMS client would only see (present) the first frame of the > animation. > > Thanks > > bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.basques at ci.stpaul.mn.us Tue Jun 12 16:04:14 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 12 Jun 2012 23:04:14 +0000 Subject: [mapserver-users] Anaimated images as map sources In-Reply-To: <4FD7C753.3000401@swoodbridge.com> References: , , , <4FD7C753.3000401@swoodbridge.com> Message-ID: Steve, I can get the individual images online, I can run them together with PERL too, was just wondering where support was at in MapServer. I'll hit it tomorrow with some hacking bobb ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Stephen Woodbridge [woodbri at swoodbridge.com] Sent: Tuesday, June 12, 2012 5:48 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Anaimated images as map sources Bob, You might look at doing something like using mapcache to generate the images needed for the animation as multiple separate layers. Then look at using imagemagic in a perl script to combine the layers into a single animated gif image and putting the combined image into another layer in the cache. If you configure the new animated layer in mapcache and don't ask mapcache to modify the image it will just serve the animated gifs, I would think. If it doesn't a little bit of apache mod-perl can be done to efficiently serve them. What other formats support animation? gif, flash, others? Anyway, my guess is that you will need to do some custom work to get it going. -Steve W On 6/12/2012 5:24 PM, Lime, Steve D (DNR) wrote: > I?m not an AGG expert but that?s probably not the component in play here > anyway. Presumably whatever the source imagery it would/should be > considered a raster dataset. I guess I?d look into how GDAL deals with > animated input and then figure out if that can be configured through > MapServer. I guess it wouldn?t surprise me if GDAL considered individual > frames as bands. Maybe that?s the way to think about. > > Steve > > *From:*Basques, Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:18 PM > *To:* Lime, Steve D (DNR) > *Subject:* RE: Anaimated images as map sources > > Hi Steve, > > So, > > What AGG functions are used in MapServer? I just went looking for what > AGG stood for. Found some animation examples, but they were final > constructs, not specifically clipping an existing animated image. > > What I was going to attempt, was to to try and set up a animated image > from NOAA as a data source for Mapserver. They have the separate images > available as well, which I would need to assemble after clipping into a > image, Hmmm, maybe a layer per time index, ten hit that from the CGI > through MapServer, then into a animated image for use in the map. Still > sounds clunky though. > > bobb > > > *From:*Basques, Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:05 PM > *To:* Lime, Steve D (DNR) > *Subject:* RE: Anaimated images as map sources > > > > bobb > > *From:*Lime, Steve D (DNR) > *Sent:* Tuesday, June 12, 2012 4:03 PM > *To:* Basques, Bob (CI-StPaul); mapserver-users at osgeo.org > > *Subject:* RE: Anaimated images as map sources > > Not that I?m aware of. > > *From:*mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Basques, > Bob (CI-StPaul) > *Sent:* Tuesday, June 12, 2012 4:02 PM > *To:* mapserver-users at osgeo.org > *Subject:* [mapserver-users] Anaimated images as map sources > > All, > > Can Mapserver slice and dice an Animated (GIF or PN or ??) map source > image and return a resulting animated image? > > I found a refernce to it NOT owrking for a WMS to WMS call where the > upstream WMS service would produce a Animated GIF, but the downstream > Mapserver WMS client would only see (present) the first frame of the > animation. > > Thanks > > bobb > > > > _______________________________________________ > 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 umberto.nicoletti at gmail.com Tue Jun 12 23:50:20 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 13 Jun 2012 08:50:20 +0200 Subject: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version? In-Reply-To: <4FD5DA27.7090104@mailbox.tu-dresden.de> References: <4FD5DA27.7090104@mailbox.tu-dresden.de> Message-ID: Jacob, 64-bit is supported only there are no binaries for Windows (at least that I know of). You could try build it yourself by following these instructions: http://mapserver.org/installation/win32.html hth, Umberto On Mon, Jun 11, 2012 at 1:44 PM, Jacob Mendt < Jacob.Mendt at mailbox.tu-dresden.de> wrote: > Hello List.**** > > I appreciate the work which is done around the mapserver. Right now I try > to use the java mapscript interface and I got the following issue.**** > > I already got the java mapscript interface running. But right now it is > only working with a 32-bit java version. My question is now, if there is > also any support for 64-bit java version? **** > > My runtime environment is:**** > > - Windows 7 (64 bit)**** > > - MS4W v3.0.2 packet (Mapscript 5.6.6.)**** > > - Java Version: 1.7.0_0.4 (32-bit)**** > > I am looking forward to hear from you.**** > > Kind regards,**** > > JM**** > > _______________________________________________ > 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 szekerest at gmail.com Wed Jun 13 00:01:36 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Jun 2012 09:01:36 +0200 Subject: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version? In-Reply-To: <4FD5DA27.7090104@mailbox.tu-dresden.de> References: <4FD5DA27.7090104@mailbox.tu-dresden.de> Message-ID: Jacob, As far as I remember the gisinternals build server compiles java mapscript for x64. http://www.gisinternals.com/sdk/ Best regards, Tamas 2012/6/11 Jacob Mendt > Hello List.**** > > I appreciate the work which is done around the mapserver. Right now I try > to use the java mapscript interface and I got the following issue.**** > > I already got the java mapscript interface running. But right now it is > only working with a 32-bit java version. My question is now, if there is > also any support for 64-bit java version? **** > > My runtime environment is:**** > > - Windows 7 (64 bit)**** > > - MS4W v3.0.2 packet (Mapscript 5.6.6.)**** > > - Java Version: 1.7.0_0.4 (32-bit)**** > > I am looking forward to hear from you.**** > > Kind regards,**** > > JM**** > > _______________________________________________ > 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 umberto.nicoletti at gmail.com Wed Jun 13 00:08:14 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 13 Jun 2012 09:08:14 +0200 Subject: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version? In-Reply-To: References: <4FD5DA27.7090104@mailbox.tu-dresden.de> Message-ID: Tamas, thanks for the link. Recently I was working on: https://github.com/mapserver/mapserver/issues/4231 and had some trouble with Windows builds because I simply don't have a build env for Windows and had to ask jmckenna to pull and build for me. So I ended up with a gcc only fix. Any chance that I can use the build tools ot that link so that I can fix the issue for Windows too? Cheers, Umberto On Wed, Jun 13, 2012 at 9:01 AM, Tamas Szekeres wrote: > Jacob, > > As far as I remember the gisinternals build server compiles java mapscript > for x64. > http://www.gisinternals.com/sdk/ > > Best regards, > > Tamas > > > > 2012/6/11 Jacob Mendt > >> Hello List.**** >> >> I appreciate the work which is done around the mapserver. Right now I try >> to use the java mapscript interface and I got the following issue.**** >> >> I already got the java mapscript interface running. But right now it is >> only working with a 32-bit java version. My question is now, if there is >> also any support for 64-bit java version? **** >> >> My runtime environment is:**** >> >> - Windows 7 (64 bit)**** >> >> - MS4W v3.0.2 packet (Mapscript 5.6.6.)**** >> >> - Java Version: 1.7.0_0.4 (32-bit)**** >> >> I am looking forward to hear from you.**** >> >> Kind regards,**** >> >> JM**** >> >> _______________________________________________ >> 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 szekerest at gmail.com Wed Jun 13 00:11:52 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Jun 2012 09:11:52 +0200 Subject: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version? In-Reply-To: References: <4FD5DA27.7090104@mailbox.tu-dresden.de> Message-ID: Hi Umberto, If you have msvc installed, you can use the corresponding sdk package (from this site) to do a command line build. For details see the readme file. Best regards, Tamas 2012/6/13 Umberto Nicoletti > Tamas, thanks for the link. > > Recently I was working on: > > https://github.com/mapserver/mapserver/issues/4231 > > and had some trouble with Windows builds because I simply don't have a > build env for Windows and had to ask jmckenna to pull and build for me. > So I ended up with a gcc only fix. > > Any chance that I can use the build tools ot that link so that I can fix > the issue for Windows too? > > Cheers, > Umberto > > > On Wed, Jun 13, 2012 at 9:01 AM, Tamas Szekeres wrote: > >> Jacob, >> >> As far as I remember the gisinternals build server compiles java >> mapscript for x64. >> http://www.gisinternals.com/sdk/ >> >> Best regards, >> >> Tamas >> >> >> >> 2012/6/11 Jacob Mendt >> >>> Hello List.**** >>> >>> I appreciate the work which is done around the mapserver. Right now I >>> try to use the java mapscript interface and I got the following issue.** >>> ** >>> >>> I already got the java mapscript interface running. But right now it is >>> only working with a 32-bit java version. My question is now, if there is >>> also any support for 64-bit java version? **** >>> >>> My runtime environment is:**** >>> >>> - Windows 7 (64 bit)**** >>> >>> - MS4W v3.0.2 packet (Mapscript 5.6.6.)**** >>> >>> - Java Version: 1.7.0_0.4 (32-bit)**** >>> >>> I am looking forward to hear from you.**** >>> >>> Kind regards,**** >>> >>> JM**** >>> >>> _______________________________________________ >>> 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 kobben at itc.nl Wed Jun 13 00:24:25 2012 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 13 Jun 2012 09:24:25 +0200 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: Message-ID: Hi Bob b, I have not used GeoMoose myself (not even sure what they mean with a legend "chip"). So I am afraid I have no further clues... Barend On 12-06-12 20:33, "Basques, Bob (CI-StPaul)" wrote: > > > >Barend, > >I can add this into the LAYER and get a label in a Mapserver Legend call: > >CLASS >NAME "WS Distribution Mains" >END > >But still no Legend Chip . . . > >bobb > > > >________________________________________ >From: mapserver-users-bounces at lists.osgeo.org >[mapserver-users-bounces at lists.osgeo.org] on behalf of Barend K?bben >[kobben at itc.nl] >Sent: Tuesday, June 12, 2012 12:49 PM >To: mapserver-users at osgeo.org >Subject: Re: [mapserver-users] Mapserver as WMS client, legend >pass-through . . . > >Hmm, I clearly didn't read your original post well enough, sorry... The >easy solution would be to have the legend embedded in the WMS image (use >STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in >a tiled fashion, though... > >Barend > > > > > >On 12-06-12 17:44, "Basques, Bob (CI-StPaul)" > wrote: > >>you, I figured that out from the WMS request, but how to implement that >>via the Mapserver WMS client we have in place. >> >>I can get a LEGEND graphic like this for example: >> >>http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WM >>S >>Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26laye >>r >>=2&width=200 >> >>but how to add this call into the MAPFILE for Our Mapserver client. >> >>bobb >> >> >>________________________________________ >>From: Barend K?bben [kobben at itc.nl] >>Sent: Tuesday, June 12, 2012 10:33 AM >>To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org >>Subject: Re: [mapserver-users] Mapserver as WMS client, legend >>pass-through . . . >> >>Hi, >> >>In the "WMS world" you get a legend by requesting it with a >>GetLegendGraphic request, something like: >> >>http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/conf >>i >>g >>OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/pn >>g >>& >>LAYER=forest >> >>And you can do this for any of let LAYERs you have in you MAP file... >> >>Barend >> >>-- >>Barend K?bben >>Senior Lecturer, ITC - University of Twente, >>Faculty of Geo-Information Science and Earth Observation >>PO Box 217, 7500AE Enschede (The Netherlands) >>+31-(0)53 4874 253 >> >> >> >>On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" >> wrote: >> >>>All, >>> >>>I have this MAPFILE which works fine for a Map image, but how do I get a >>>WMS legend from the upstream WMS service? Do I need to set up a LAYER >>>(like) definition inside of a LEGEND block for a mode=legend to work >>>downstream. Right now I get a blank image. >>> >>>I don't see any information on the topic in this page: >>> >>>http://mapserver.org/ogc/wms_client.html#mapfile-configuration >>> >>>About WMS Legend pass-through . . . >>> >>>Thanks >>> >>>bobb >>> >>> >>>------------ >>> >>>MAP >>> NAME 'WS_Distribution_Mains' >>> SIZE 800 650 >>> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >>> >>> STATUS ON >>> UNITS FEET >>> IMAGETYPE PNG24 >>> >>> PROJECTION >>> "init=epsg:200068" >>> END >>> >>> LAYER >>> NAME "WS distribution Mains" >>> TYPE RASTER >>> STATUS DEFAULT >>> CONNECTION >>>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" >>> CONNECTIONTYPE WMS >>> >>> METADATA >>> "wms_srs" "EPSG:4326" >>> "wms_name" "2" >>> "wms_server_version" "1.1.1" >>> "wms_format" "image/png24" >>> >>> "ows_title" "0" >>> "gml_include_items" "all" >>> END >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> END #layer >>> >>> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" >>> ##DEBUG 5 >>> >>>END >>> >> >> >>Faculty of Geo-Information Science and Earth Observation (ITC) >>University of Twente >>Chamber of Commerce: 501305360000 >> >>E-mail disclaimer >>The information in this e-mail, including any attachments, is intended >>for the addressee only. If you are not the intended recipient, you are >>hereby notified that any disclosure, copying, distribution or action in >>relation to the content of this information is strictly prohibited. If >>you have received this e-mail by mistake, please delete the message and >>any attachment and inform the sender by return e-mail. ITC accepts no >>liability for any error or omission in the message content or for damage >>of any kind that may arise as a result of e-mail transmission. >> >> > > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information > is strictly prohibited. If you have received this e-mail by mistake, >please delete the message and any attachment and inform the sender by >return e-mail. ITC accepts no liability for any error or omission in the >message content or for damage of any kind that > may arise as a result of e-mail transmission. >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From Andreas.Eichner at sid.sachsen.de Wed Jun 13 04:53:29 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 13 Jun 2012 13:53:29 +0200 Subject: [mapserver-users] shortest_path query References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF382@KS-EVS1.smi.sachsen.de> You need to create a LineString geometry using a spatial aggregate like ST_MakeLine() first. Consider reading the pgRouting documentation, f.e. http://www.pgrouting.org/docs/howto/mapserver.html > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Annu Anurag > Gesendet: Dienstag, 12. Juni 2012 19:55 > An: mapserver-users > Betreff: [mapserver-users] shortest_path query > > Hello there. I've got the query for shortest path using > pgrouting to run finally. I get the edges but now I need to > map my result onto a mapserver layer. I've tried examples > from the internet but mostly they're flawed. I'm positng the > query which has worked for me. Please suggest a way to > convert it into a visible layer using mapserver. > > SELECT * FROM shortest_path('SELECT gid AS id, > fromnodeid::int4, tonodeid::int4, length0::float8 AS cost > FROM edges_line', 35, 210, false, false) > > I tried to form a query-layer but failed. I'm sending the > code I used to. Please correct me. > > DATA "the_geom FROM (SELECT * FROM shortest_path('SELECT gid > AS id, fromnodeid::int4, tonodeid::int4, length0::float8 AS > cost FROM edges_line', 35, 210, false, false)) AS foo using > unique gid using srid=4326" > > Here is the layer definition: > > > LAYER > NAME "route" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=*********** > dbname=VSDelhidb host=localhost" > DEBUG 5 > STATUS DEFAULT > TYPE LINE > DATA "the_geom FROM (SELECT * FROM > shortest_path('SELECT gid AS id, fromnodeid::int4, > tonodeid::int4, length0::float8 AS cost FROM edges_line', 35, > 210, false, false)) AS foo using unique gid using srid=4326" > > TEMPLATE "t" > > # > # > //////////////////////////////////////////////////////THE > CLASS THAT CLASSIFIES EVERYTHING IN IT. > //////////////////////////////// > # > > CLASS > > # > # > /////////////////////////////////////////////////////THE > STYLE OF DRAWING THIS CLASS. //////////////////////////////////// > # > > NAME "0" > STYLE > SYMBOL "circle" > SIZE 10 > OUTLINECOLOR 255 0 0 > COLOR 165 42 42 > END #___END OF THE SYLE DECLARATION FOR THIS > CLASS.___##################################################### > ################ > > END #_________END OF THE CLASS THAT CLASSIFIES > EVERYTHING.___________######################################## > ###################### > END #________END OF THE LAYER THAT DRAWS > EVERYTHING._________########################################## #################################### > > > From bob.basques at ci.stpaul.mn.us Wed Jun 13 07:22:40 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 13 Jun 2012 14:22:40 +0000 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: References: , Message-ID: Barend, The "Legend Chip" is my name for a legend image (as generated by Mapserver), geomoose builds a Legend on a per layer basis from a call to MapServer. So since the WMS image call goes through MapServer, we use MapServer for Legend as well. It's looking so far like MapServer doesn't support legends entirely. The only references I can find to cascaded WMS legends is in the TRAC listing about others having/wanting the same functionality, so far at least. . . bobb ________________________________________ From: Barend K?bben [kobben at itc.nl] Sent: Wednesday, June 13, 2012 2:24 AM To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org Subject: Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . . Hi Bob b, I have not used GeoMoose myself (not even sure what they mean with a legend "chip"). So I am afraid I have no further clues... Barend On 12-06-12 20:33, "Basques, Bob (CI-StPaul)" wrote: > > > >Barend, > >I can add this into the LAYER and get a label in a Mapserver Legend call: > >CLASS >NAME "WS Distribution Mains" >END > >But still no Legend Chip . . . > >bobb > > > >________________________________________ >From: mapserver-users-bounces at lists.osgeo.org >[mapserver-users-bounces at lists.osgeo.org] on behalf of Barend K?bben >[kobben at itc.nl] >Sent: Tuesday, June 12, 2012 12:49 PM >To: mapserver-users at osgeo.org >Subject: Re: [mapserver-users] Mapserver as WMS client, legend >pass-through . . . > >Hmm, I clearly didn't read your original post well enough, sorry... The >easy solution would be to have the legend embedded in the WMS image (use >STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in >a tiled fashion, though... > >Barend > > > > > >On 12-06-12 17:44, "Basques, Bob (CI-StPaul)" > wrote: > >>you, I figured that out from the WMS request, but how to implement that >>via the Mapserver WMS client we have in place. >> >>I can get a LEGEND graphic like this for example: >> >>http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WM >>S >>Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26laye >>r >>=2&width=200 >> >>but how to add this call into the MAPFILE for Our Mapserver client. >> >>bobb >> >> >>________________________________________ >>From: Barend K?bben [kobben at itc.nl] >>Sent: Tuesday, June 12, 2012 10:33 AM >>To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org >>Subject: Re: [mapserver-users] Mapserver as WMS client, legend >>pass-through . . . >> >>Hi, >> >>In the "WMS world" you get a legend by requesting it with a >>GetLegendGraphic request, something like: >> >>http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/conf >>i >>g >>OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/pn >>g >>& >>LAYER=forest >> >>And you can do this for any of let LAYERs you have in you MAP file... >> >>Barend >> >>-- >>Barend K?bben >>Senior Lecturer, ITC - University of Twente, >>Faculty of Geo-Information Science and Earth Observation >>PO Box 217, 7500AE Enschede (The Netherlands) >>+31-(0)53 4874 253 >> >> >> >>On 12-06-12 17:12, "Basques, Bob (CI-StPaul)" >> wrote: >> >>>All, >>> >>>I have this MAPFILE which works fine for a Map image, but how do I get a >>>WMS legend from the upstream WMS service? Do I need to set up a LAYER >>>(like) definition inside of a LEGEND block for a mode=legend to work >>>downstream. Right now I get a blank image. >>> >>>I don't see any information on the topic in this page: >>> >>>http://mapserver.org/ogc/wms_client.html#mapfile-configuration >>> >>>About WMS Legend pass-through . . . >>> >>>Thanks >>> >>>bobb >>> >>> >>>------------ >>> >>>MAP >>> NAME 'WS_Distribution_Mains' >>> SIZE 800 650 >>> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >>> >>> STATUS ON >>> UNITS FEET >>> IMAGETYPE PNG24 >>> >>> PROJECTION >>> "init=epsg:200068" >>> END >>> >>> LAYER >>> NAME "WS distribution Mains" >>> TYPE RASTER >>> STATUS DEFAULT >>> CONNECTION >>>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?" >>> CONNECTIONTYPE WMS >>> >>> METADATA >>> "wms_srs" "EPSG:4326" >>> "wms_name" "2" >>> "wms_server_version" "1.1.1" >>> "wms_format" "image/png24" >>> >>> "ows_title" "0" >>> "gml_include_items" "all" >>> END >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> END #layer >>> >>> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt" >>> ##DEBUG 5 >>> >>>END >>> >> >> >>Faculty of Geo-Information Science and Earth Observation (ITC) >>University of Twente >>Chamber of Commerce: 501305360000 >> >>E-mail disclaimer >>The information in this e-mail, including any attachments, is intended >>for the addressee only. If you are not the intended recipient, you are >>hereby notified that any disclosure, copying, distribution or action in >>relation to the content of this information is strictly prohibited. If >>you have received this e-mail by mistake, please delete the message and >>any attachment and inform the sender by return e-mail. ITC accepts no >>liability for any error or omission in the message content or for damage >>of any kind that may arise as a result of e-mail transmission. >> >> > > >Faculty of Geo-Information Science and Earth Observation (ITC) >University of Twente >Chamber of Commerce: 501305360000 > >E-mail disclaimer >The information in this e-mail, including any attachments, is intended >for the addressee only. If you are not the intended recipient, you are >hereby notified that any disclosure, copying, distribution or action in >relation to the content of this information > is strictly prohibited. If you have received this e-mail by mistake, >please delete the message and any attachment and inform the sender by >return e-mail. ITC accepts no liability for any error or omission in the >message content or for damage of any kind that > may arise as a result of e-mail transmission. >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From dmorissette at mapgears.com Wed Jun 13 07:35:57 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 13 Jun 2012 10:35:57 -0400 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: References: , Message-ID: <4FD8A54D.3010301@mapgears.com> On 12-06-13 10:22 AM, Basques, Bob (CI-StPaul) wrote: > Barend, > > The "Legend Chip" is my name for a legend image (as generated by Mapserver), geomoose builds a Legend on a per layer basis from a call to MapServer. So since the WMS image call goes through MapServer, we use MapServer for Legend as well. It's looking so far like MapServer doesn't support legends entirely. The only references I can find to cascaded WMS legends is in the TRAC listing about others having/wanting the same functionality, so far at least. . . > FYI Cascading of GetLegendGraphics has been implemented in the dev version (future 6.2). It kicks in only of some specific conditions are met. See: https://github.com/mapserver/mapserver/issues/3923 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From hsansegundo at meteo.cat Thu Jun 14 05:27:43 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 14 Jun 2012 14:27:43 +0200 Subject: [mapserver-users] accessing different band values in the same layer Message-ID: <4FD9D8BF.2090807@meteo.cat> Hi, I have a raster file with different bands inside it. when I create my mapfile inside the layer tag I can define the bands I want to access with PROCESSING "BANDS=4,2,1" When I select 1 band I can access to its data using the EXPRESSION tag: CLASS NAME "0 - 5" EXPRESSION ([pixel] >= 0 AND [pixel] < 5) STYLE COLOR 80 0 0 END END But if I select more than one band, how can I do to acces to the different band values inside the same EXPRESSION tag? is it possible? The problem is that I have wind information in different bands, in one band I have speed and in other band I have direction, and I have to draw the wind symbol depending on both values. Is possible to acces to the different pixel band values inside the same EXPRESSION tag? Thanks, Helen From Michael.Smith at erdc.dren.mil Thu Jun 14 06:18:36 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Thu, 14 Jun 2012 13:18:36 +0000 Subject: [mapserver-users] accessing different band values in the same layer Message-ID: Helen, It does not appear that you can. Based on the docs Raster classifications always take place on only one raster band. It defaults to the first band in the referenced file, but this can be altered with the BANDS PROCESSING directive. In particular this means that including even a single CLASS declaration in a raster layer will result in the raster layer being rendered using the one band classification rules instead of other rules that might have applied (such as 3 band RGB rendering). http://mapserver.org/input/raster.html You could have multiple layers and do classification on each band by changing the first value in the PROCESSING BANDS directive. Mike On 6/14/12 8:27 AM, "Helen San Segundo Navazo" wrote: >Hi, >I have a raster file with different bands inside it. >when I create my mapfile inside the layer tag I can define the bands I >want to access with PROCESSING "BANDS=4,2,1" >When I select 1 band I can access to its data using the EXPRESSION tag: > CLASS > NAME "0 - 5" > EXPRESSION ([pixel] >= 0 AND [pixel] < 5) > STYLE > COLOR 80 0 0 > END > END >But if I select more than one band, how can I do to acces to the >different band values inside the same EXPRESSION tag? is it possible? > >The problem is that I have wind information in different bands, in one >band I have speed and in other band I have direction, and I have to draw >the wind symbol depending on both values. >Is possible to acces to the different pixel band values inside the same >EXPRESSION tag? >Thanks, >Helen >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From hsansegundo at meteo.cat Thu Jun 14 06:21:20 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 14 Jun 2012 15:21:20 +0200 Subject: [mapserver-users] accessing different band values in the same layer In-Reply-To: References: Message-ID: <4FD9E550.3020005@meteo.cat> ok, thanks Mike. A solution could be to transform the raster in a shape file, and to put the different band values in different attributes of each element, and then use the attributes values for selecting symbol and angle. Thanks, Helen El 14/06/12 15:03, Smith, Michael ERDC-RDE-CRREL-NH escribi?: > Helen, > > It does not appear that you can. Based on the docs > > Raster classifications always take place on only one raster band. It > defaults to the first band in the referenced file, but this can be altered > with the BANDS PROCESSING directive. In particular this means that > including even a single CLASS declaration in a raster layer will result in > the raster layer being rendered using the one band classification rules > instead of other rules that might have applied (such as 3 band RGB > rendering). > > http://mapserver.org/input/raster.html > > > > You could have multiple layers and do classification on each band by > changing the first value in the PROCESSING BANDS directive. > > Mike > > > On 6/14/12 8:27 AM, "Helen San Segundo Navazo" > wrote: > >> Hi, >> I have a raster file with different bands inside it. >> when I create my mapfile inside the layer tag I can define the bands I >> want to access with PROCESSING "BANDS=4,2,1" >> When I select 1 band I can access to its data using the EXPRESSION tag: >> CLASS >> NAME "0 - 5" >> EXPRESSION ([pixel]>= 0 AND [pixel]< 5) >> STYLE >> COLOR 80 0 0 >> END >> END >> But if I select more than one band, how can I do to acces to the >> different band values inside the same EXPRESSION tag? is it possible? >> >> The problem is that I have wind information in different bands, in one >> band I have speed and in other band I have direction, and I have to draw >> the wind symbol depending on both values. >> Is possible to acces to the different pixel band values inside the same >> EXPRESSION tag? >> Thanks, >> Helen >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Thu Jun 14 06:23:45 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Jun 2012 15:23:45 +0200 Subject: [mapserver-users] accessing different band values in the same layer In-Reply-To: <4FD9E550.3020005@meteo.cat> References: <4FD9E550.3020005@meteo.cat> Message-ID: Helen, have you had a look at http://mapserver.org/trunk/input/vector/vector_field.html (to be released in 6.2, but should be functional already) -- thomas On Thu, Jun 14, 2012 at 3:21 PM, Helen San Segundo Navazo wrote: > ok, thanks Mike. > A solution could be to transform the raster in a shape file, and to put the > different band values in different attributes of each element, and then use > the attributes values for selecting symbol and angle. > Thanks, > Helen > > El 14/06/12 15:03, Smith, Michael ERDC-RDE-CRREL-NH escribi?: > >> Helen, >> >> It does not appear that you can. Based on the docs >> >> Raster classifications always take place on only one raster band. It >> defaults to the first band in the referenced file, but this can be altered >> with the BANDS PROCESSING directive. In particular this means that >> including even a single CLASS declaration in a raster layer will result in >> the raster layer being rendered using the one band classification rules >> instead of other rules that might have applied (such as 3 band RGB >> rendering). >> >> http://mapserver.org/input/raster.html >> >> >> >> You could have multiple layers and do classification on each band by >> changing the first value in the PROCESSING BANDS directive. >> >> Mike >> >> >> On 6/14/12 ?8:27 AM, "Helen San Segundo Navazo" >> wrote: >> >>> Hi, >>> I have a raster file with different bands inside it. >>> when I create my mapfile inside the layer tag I can define the bands I >>> want to access with ?PROCESSING "BANDS=4,2,1" >>> When I select 1 band I can access to its data using the EXPRESSION tag: >>> ? ? CLASS >>> ? ? ? ? NAME "0 - 5" >>> ? ? ? ? EXPRESSION ([pixel]>= 0 AND [pixel]< ?5) >>> ? ? ? ? STYLE >>> ? ? ? ? COLOR 80 0 0 >>> ? ? ? ? END >>> ? ? END >>> But if I select more than one band, how can I do to acces to the >>> different band values inside the same EXPRESSION tag? is it possible? >>> >>> The problem is that I have wind information in different bands, in one >>> band I have speed and in other band I have direction, and I have to draw >>> the wind symbol depending on both values. >>> Is possible to acces to the different pixel band values inside the same >>> EXPRESSION tag? >>> Thanks, >>> Helen >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas at savoy-truffle.de Thu Jun 14 07:39:28 2012 From: thomas at savoy-truffle.de (Thomas Hofmann) Date: Thu, 14 Jun 2012 16:39:28 +0200 Subject: [mapserver-users] Projection Message-ID: Hello, currently I am working on a map displaying the distiribution of a name (surname/forename/location name) in Germany. For that purpose mapserver (v. 5.6.5) and php-mapscript is used. The underlying geographic information is from a public domain shapefile containing postcode (PLZ) regions of germany: http://www.metaspatial.net/download/plz.tar.gz Details on that data in german: http://arnulf.us/PLZ There the data is described as originally been in "Gau? Kr?ger 3-Streifen", but the shapefile's data as beeing converted to EPSG:4326 (WGS84). The map should be rendered so that the width and height of germany are more or less like here: http://de.wikipedia.org/wiki/Datei:Deutschland_politisch_2010.png Without configured projections it looks like: https://www.dropbox.com/s/n1uobhd12xhsf4u/1ee63112dc71c15f1247994883aebc42.png So some projection is needed. One question is, what projection would be appropriate, I suppose something like "Alber's equal area" or "Gau?-Kr?ger zone 3" could do the trick. But before that I would be glad if an arbitrary projection would work at all... The map-file as generated via mapscript looks like (cut to the relevant part, as far as I understand it): MAP EXTENT 5.05686874304783 47.2 15.5931312569522 55.1 IMAGECOLOR 255 255 255 IMAGETYPE gif SIZE 1200 900 STATUS ON CONFIG PROJ_LIB "/usr/share/proj/" NAME "Germany" PROJECTION "init=epsg:2166" END LAYER NAME "0" PROJECTION "init=epsg:4326" END STATUS DEFAULT TYPE POLYGON UNITS METERS CLASS NAME "PLZ" STYLE ANGLE 360 COLOR 99 99 99 OUTLINECOLOR 0 0 0 SYMBOL 0 WIDTH 1 END END END END With this map-file the PLZ layer is not displayed. If omitting the PROJECTION-section within the LAYER it is displayed. For reference: the whole zipped mapfile, containing the data: https://www.dropbox.com/s/sd65gc7dch7swh3/projection.complete.map.zip So: - What to do, to get projections working? - What kind of projection would be appropriate? Hints are most welcome. Kind regards, Thomas Hofmann From donald.kerr at dkerr.co.uk Thu Jun 14 11:42:02 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 14 Jun 2012 19:42:02 +0100 Subject: [mapserver-users] Map Not Available at This Scale Image Message-ID: <463D7D7189C14C078019CA35D1C87B3C@DELLM4500> Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Jun 14 13:53:56 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Jun 2012 20:53:56 +0000 Subject: [mapserver-users] Map Not Available at This Scale Image In-Reply-To: <463D7D7189C14C078019CA35D1C87B3C@DELLM4500> References: <463D7D7189C14C078019CA35D1C87B3C@DELLM4500> Message-ID: Couple of options. 1) You can create a layer that displays that text in the middle of the map and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd want draw the text the same number of times as you have meta-tiles. That would take some mucking about but it's doable. 2) There's a little used parameter in the WEB section called MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending on scale. It's been ages since I used it but in theory you could reference an image with the necessary text by URL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, June 14, 2012 1:42 PM To: 'MAPSERVER USERS' Subject: [mapserver-users] Map Not Available at This Scale Image Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Thu Jun 14 13:53:49 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu, 14 Jun 2012 22:53:49 +0200 Subject: [mapserver-users] Projection In-Reply-To: References: Message-ID: Your map extent should something like this EXTENT 3186000 5210000 4006000 6156000 PROJECTION "init=epsg:2166" #or "init=epsg:31467" END then your layer should show. Instead of Gauss-Kr?ger i would take EPSG:25832 (UTM32). It's the new official used projection for Germany . The layer will look the same as GK3. Arnd In Deutschland hat die Arbeitsgemeinschaft der Vermessungsverwaltungen der L?nder der Bundesrepublik Deutschland (AdV) im Jahre 1991 die Einf?hrung des ETRS89 als einheitliches amtliches Lagebezugssystem f?r ganz Deutschland beschlossen. (Quelle:http://de.wikipedia.org/wiki/Europ%C3%A4isches_Terrestrisches_Refere nzsystem_1989) -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Thomas Hofmann Gesendet: Donnerstag, 14. Juni 2012 16:39 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Projection Hello, currently I am working on a map displaying the distiribution of a name (surname/forename/location name) in Germany. For that purpose mapserver (v. 5.6.5) and php-mapscript is used. The underlying geographic information is from a public domain shapefile containing postcode (PLZ) regions of germany: http://www.metaspatial.net/download/plz.tar.gz Details on that data in german: http://arnulf.us/PLZ There the data is described as originally been in "Gau? Kr?ger 3-Streifen", but the shapefile's data as beeing converted to EPSG:4326 (WGS84). The map should be rendered so that the width and height of germany are more or less like here: http://de.wikipedia.org/wiki/Datei:Deutschland_politisch_2010.png Without configured projections it looks like: https://www.dropbox.com/s/n1uobhd12xhsf4u/1ee63112dc71c15f1247994883aebc42.p ng So some projection is needed. One question is, what projection would be appropriate, I suppose something like "Alber's equal area" or "Gau?-Kr?ger zone 3" could do the trick. But before that I would be glad if an arbitrary projection would work at all... The map-file as generated via mapscript looks like (cut to the relevant part, as far as I understand it): MAP EXTENT 5.05686874304783 47.2 15.5931312569522 55.1 IMAGECOLOR 255 255 255 IMAGETYPE gif SIZE 1200 900 STATUS ON CONFIG PROJ_LIB "/usr/share/proj/" NAME "Germany" PROJECTION "init=epsg:2166" END LAYER NAME "0" PROJECTION "init=epsg:4326" END STATUS DEFAULT TYPE POLYGON UNITS METERS CLASS NAME "PLZ" STYLE ANGLE 360 COLOR 99 99 99 OUTLINECOLOR 0 0 0 SYMBOL 0 WIDTH 1 END END END END With this map-file the PLZ layer is not displayed. If omitting the PROJECTION-section within the LAYER it is displayed. For reference: the whole zipped mapfile, containing the data: https://www.dropbox.com/s/sd65gc7dch7swh3/projection.complete.map.zip So: - What to do, to get projections working? - What kind of projection would be appropriate? Hints are most welcome. Kind regards, Thomas Hofmann _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Thu Jun 14 14:06:30 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 14 Jun 2012 22:06:30 +0100 Subject: [mapserver-users] Map Not Available at This Scale Image In-Reply-To: Message-ID: Steve, I don't think that any of those options will work for me. I have fifteen zoom levels and the map coverage is complete except for three. Those three are a made up of an image returned after querying PostGIS so a blank image is effectively created since there are no points, lines or polygons returned from the PostGIS query at that zoom level i.e. to all intents and purposes, a valid map is returned except that there's noting in it. It's these particular zoom levels where I am trying to display the "no coverage' message. I had thought that it may be possible to create a permanent layer that's always there under all the layers and is effectively overwritten by any drawn layers above except where there's no data. I'm thinking now that this may not be possible. Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 21:54 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Couple of options. 1) You can create a layer that displays that text in the middle of the map and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd want draw the text the same number of times as you have meta-tiles. That would take some mucking about but it's doable. 2) There's a little used parameter in the WEB section called MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending on scale. It's been ages since I used it but in theory you could reference an image with the necessary text by URL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, June 14, 2012 1:42 PM To: 'MAPSERVER USERS' Subject: [mapserver-users] Map Not Available at This Scale Image Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Jun 14 15:16:24 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Jun 2012 22:16:24 +0000 Subject: [mapserver-users] Map Not Available at This Scale Image In-Reply-To: References: Message-ID: Why not a layer with STATUS DEFAULT but a MAXSCALE value that kicks in when your other data runs out? From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, June 14, 2012 4:07 PM To: Lime, Steve D (DNR); 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Steve, I don't think that any of those options will work for me. I have fifteen zoom levels and the map coverage is complete except for three. Those three are a made up of an image returned after querying PostGIS so a blank image is effectively created since there are no points, lines or polygons returned from the PostGIS query at that zoom level i.e. to all intents and purposes, a valid map is returned except that there's noting in it. It's these particular zoom levels where I am trying to display the "no coverage' message. I had thought that it may be possible to create a permanent layer that's always there under all the layers and is effectively overwritten by any drawn layers above except where there's no data. I'm thinking now that this may not be possible. Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 21:54 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Couple of options. 1) You can create a layer that displays that text in the middle of the map and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd want draw the text the same number of times as you have meta-tiles. That would take some mucking about but it's doable. 2) There's a little used parameter in the WEB section called MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending on scale. It's been ages since I used it but in theory you could reference an image with the necessary text by URL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, June 14, 2012 1:42 PM To: 'MAPSERVER USERS' Subject: [mapserver-users] Map Not Available at This Scale Image Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Thu Jun 14 15:23:19 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 14 Jun 2012 23:23:19 +0100 Subject: [mapserver-users] Map Not Available at This Scale Image In-Reply-To: Message-ID: Steve, MAXSCALEDENOM? (MAXSCALE deprecated?) - Will look into the options in the morning ... time for zzzzzzzzzzzzzzzz ... it's 23:23! Cheers. Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 23:16 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Why not a layer with STATUS DEFAULT but a MAXSCALE value that kicks in when your other data runs out? From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, June 14, 2012 4:07 PM To: Lime, Steve D (DNR); 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Steve, I don't think that any of those options will work for me. I have fifteen zoom levels and the map coverage is complete except for three. Those three are a made up of an image returned after querying PostGIS so a blank image is effectively created since there are no points, lines or polygons returned from the PostGIS query at that zoom level i.e. to all intents and purposes, a valid map is returned except that there's noting in it. It's these particular zoom levels where I am trying to display the "no coverage' message. I had thought that it may be possible to create a permanent layer that's always there under all the layers and is effectively overwritten by any drawn layers above except where there's no data. I'm thinking now that this may not be possible. Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 21:54 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Couple of options. 1) You can create a layer that displays that text in the middle of the map and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd want draw the text the same number of times as you have meta-tiles. That would take some mucking about but it's doable. 2) There's a little used parameter in the WEB section called MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending on scale. It's been ages since I used it but in theory you could reference an image with the necessary text by URL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, June 14, 2012 1:42 PM To: 'MAPSERVER USERS' Subject: [mapserver-users] Map Not Available at This Scale Image Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas at savoy-truffle.de Fri Jun 15 04:17:15 2012 From: thomas at savoy-truffle.de (Thomas Hofmann) Date: Fri, 15 Jun 2012 13:17:15 +0200 Subject: [mapserver-users] Projection In-Reply-To: References: Message-ID: Hello Arnd and list, thanks for those hints :-) 2012/6/14 Arnd: > Your map extent should something like this > > EXTENT 3186000 5210000 4006000 6156000 > > PROJECTION > ?"init=epsg:2166" > ?#or "init=epsg:31467" > END > > then your layer should show. > > Instead of Gauss-Kr?ger i would take EPSG:25832 (UTM32). > It's the new official used projection for Germany . After first hardcoding the projection and extent as supplied by you, I came up with the following version, to project the original extent on the fly. $this is a "MapserverMap" $this->setProjection("init=epsg:4326"); // original projection of the underlying data $this->setExtent(5.55, 47.2, 15.1, 55.1); // extent according to that original projection $this->setProjection("init=epsg:25832", true); // true also "projects" units and extent to the new projection I have not been aware of that last "true". BTW: I have programmed a wrapper around mapscript so that for instance php-eclipse can do code-completion. If somebody is interested in that, I would be glad to provide that to the public. It also contains the documentation from the mapscript-API. It is around mapscript as of version 5.6.5 and not thorougly tested, as I only use a small subset of the whole functionality, but I am quite confident, that its state is far enough... Kind regards, Thomas p.s. I'll be afk for ten days. From marcandre_trottier at hotmail.com Fri Jun 15 08:48:48 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Fri, 15 Jun 2012 11:48:48 -0400 Subject: [mapserver-users] Period in a getmap with time dimension Message-ID: period in the time format will it be supported in near future ? example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Sun Jun 17 03:55:00 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 17 Jun 2012 11:55:00 +0100 Subject: [mapserver-users] Map Not Available at This Scale Image In-Reply-To: Message-ID: <5EB3E901C7A94684976FDA7A9761605D@DELLM4500> Folks, Now solved. It was actually quite easy for my set up using the advice provided by you all over the last few days and some further searching. I've created a layer that's first to be rendered and is always on with the label being drawn immediately (LABELCACHE OFF). The label is always overwritten by other layers where data is available. When no data is available, the label shows. Layer code below: # ------------------------------------------ LAYER NAME "NoCoverage" STATUS DEFAULT TYPE ANNOTATION LABELCACHE OFF TRANSFORM CC UNITS PIXELS FEATURE POINTS 0 0 END TEXT "Sorry|No map coverage|available here" END CLASS LABEL FONT "arial" TYPE TRUETYPE SIZE 8 COLOR 0 0 0 FORCE TRUE ALIGN CENTER WRAP "|" END # LABEL END # CLASS END # LAYER # ------------------------------------------ Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 23:16 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Why not a layer with STATUS DEFAULT but a MAXSCALE value that kicks in when your other data runs out? From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, June 14, 2012 4:07 PM To: Lime, Steve D (DNR); 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Steve, I don't think that any of those options will work for me. I have fifteen zoom levels and the map coverage is complete except for three. Those three are a made up of an image returned after querying PostGIS so a blank image is effectively created since there are no points, lines or polygons returned from the PostGIS query at that zoom level i.e. to all intents and purposes, a valid map is returned except that there's noting in it. It's these particular zoom levels where I am trying to display the "no coverage' message. I had thought that it may be possible to create a permanent layer that's always there under all the layers and is effectively overwritten by any drawn layers above except where there's no data. I'm thinking now that this may not be possible. Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 14 June 2012 21:54 To: Donald Kerr; 'MAPSERVER USERS' Subject: RE: [mapserver-users] Map Not Available at This Scale Image Couple of options. 1) You can create a layer that displays that text in the middle of the map and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd want draw the text the same number of times as you have meta-tiles. That would take some mucking about but it's doable. 2) There's a little used parameter in the WEB section called MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending on scale. It's been ages since I used it but in theory you could reference an image with the necessary text by URL. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, June 14, 2012 1:42 PM To: 'MAPSERVER USERS' Subject: [mapserver-users] Map Not Available at This Scale Image Hi list, I have a number of layers that are on or off depending on the zoom level and some of those layers do not have coverage in certain areas. The question is, is there a way to display a map image saying something along the lines of, "Map not available at this level"? I think I have read somewhere that it can be done in a round about way but I cannot find any information after having a good internet trawl. Many thanks. Regards, Donald From richard.greenwood at gmail.com Sun Jun 17 20:49:27 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 17 Jun 2012 21:49:27 -0600 Subject: [mapserver-users] show only classes in legend within current extent Message-ID: I'm pretty sure the answer to my question is "No" but just in case - is it possible to restrict the classes show in a simple legend (CGI mode=legend) to only those classes within the current extent? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Mon Jun 18 07:39:17 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 18 Jun 2012 14:39:17 +0000 Subject: [mapserver-users] show only classes in legend within current extent In-Reply-To: References: Message-ID: Nope. It's not a very hard problem, but it's computationally expensive. My thought is that we'd have to add class counters to the legendObj and populate them during a map draw. That means for mode=legend you'd also have to draw a map or at least mimic it. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood Sent: Sunday, June 17, 2012 10:49 PM To: mapserver Subject: [mapserver-users] show only classes in legend within current extent I'm pretty sure the answer to my question is "No" but just in case - is it possible to restrict the classes show in a simple legend (CGI mode=legend) to only those classes within the current extent? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mikesaunt at gmail.com Mon Jun 18 08:03:05 2012 From: mikesaunt at gmail.com (Mike Saunt) Date: Mon, 18 Jun 2012 16:03:05 +0100 Subject: [mapserver-users] show only classes in legend within current extent In-Reply-To: References: Message-ID: Could be a nice feature say with mode=legendextent Steve, what time would it take to develop? On Jun 18, 2012 3:39 PM, "Lime, Steve D (DNR)" wrote: > Nope. It's not a very hard problem, but it's computationally expensive. My > thought is that we'd have to add class counters to the legendObj and > populate them during a map draw. That means for mode=legend you'd also have > to draw a map or at least mimic it. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood > Sent: Sunday, June 17, 2012 10:49 PM > To: mapserver > Subject: [mapserver-users] show only classes in legend within current > extent > > I'm pretty sure the answer to my question is "No" but just in case - is it > possible to restrict the classes show in a simple legend (CGI > mode=legend) to only those classes within the current extent? > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Jun 18 14:45:39 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 18 Jun 2012 17:45:39 -0400 Subject: [mapserver-users] Hindi and Thai text rendering Message-ID: Hello list, We are seeing some issues displaying Hindi and Thai text, from a quick search it looks like this may be related to there not being support for Indic scripts. Can anyone confirm if these are supported? And if they are not are there any workarounds? Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 18 15:06:09 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 18 Jun 2012 19:06:09 -0300 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: References: Message-ID: <4FDFA651.80507@gatewaygeomatics.com> On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support for > Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are there > any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ian.walberg at airborne.aero Mon Jun 18 15:46:11 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 18 Jun 2012 18:46:11 -0400 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: <4FDFA651.80507@gatewaygeomatics.com> References: <4FDFA651.80507@gatewaygeomatics.com> Message-ID: Jeff, That is encouraging, however our concern is that the character rendering is not supported. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, June 18, 2012 3:06 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 12-06-18 6:45 PM, Ian Walberg wrote: > Hello list, > > > > We are seeing some issues displaying Hindi and Thai text, from a quick > search it looks like this may be related to there not being support > for Indic scripts. > > > > Can anyone confirm if these are supported? And if they are not are > there any workarounds? > Hello Ian, I can for sure confirm that Thai text is supported, as it was one of the languages tested during the initial implementation of the source code (see the notes at the bottom of http://www.mapserver.org/mapfile/labelencoding.html). There's always a chance that things have changed with MapServer 6.0, but if you provide a small data sample, font, and simple one layer mapfile I am sure others on this email list can test and provide feedback for you. -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 From woodbri at swoodbridge.com Mon Jun 18 20:47:10 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 18 Jun 2012 23:47:10 -0400 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: References: <4FDFA651.80507@gatewaygeomatics.com> Message-ID: <4FDFF63E.9000407@swoodbridge.com> On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character rendering > is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of the > languages tested during the initial implementation of the source code > (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, but > if you provide a small data sample, font, and simple one layer mapfile I > am sure others on this email list can test and provide feedback for you. > > -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 ian.walberg at airborne.aero Mon Jun 18 20:51:36 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 18 Jun 2012 23:51:36 -0400 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: <4FDFF63E.9000407@swoodbridge.com> References: <4FDFA651.80507@gatewaygeomatics.com> <4FDFF63E.9000407@swoodbridge.com> Message-ID: Stephen, We can provide some examples tomorrow but we are seeing some characters not matching what is displayed in other applications. Overall the behaviour appears to match this description https://github.com/mapserver/mapserver/issues/2591 Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, June 18, 2012 8:47 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Hindi and Thai text rendering On 6/18/2012 6:46 PM, Ian Walberg wrote: > Jeff, > > That is encouraging, however our concern is that the character > rendering is not supported. Ian, What do you mean by this statement? What have you tried? ie: what does you mapfile look like, what font are you using, etc? For this to work you need the following: 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that supports all the glyphs that you need 3. your mapfile and data configured correctly such that the text in the data is appropriately for the ENCODING and that that then matches the ttf. -Steve W > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff > McKenna > Sent: Monday, June 18, 2012 3:06 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 12-06-18 6:45 PM, Ian Walberg wrote: >> Hello list, >> >> >> >> We are seeing some issues displaying Hindi and Thai text, from a >> quick > >> search it looks like this may be related to there not being support >> for Indic scripts. >> >> >> >> Can anyone confirm if these are supported? And if they are not are >> there any workarounds? >> > > Hello Ian, > > I can for sure confirm that Thai text is supported, as it was one of > the languages tested during the initial implementation of the source > code (see the notes at the bottom of > http://www.mapserver.org/mapfile/labelencoding.html). > > There's always a chance that things have changed with MapServer 6.0, > but if you provide a small data sample, font, and simple one layer > mapfile I am sure others on this email list can test and provide feedback for you. > > -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 > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From matt at wildwalks.com Mon Jun 18 23:15:12 2012 From: matt at wildwalks.com (Matt McClelland) Date: Tue, 19 Jun 2012 16:15:12 +1000 Subject: [mapserver-users] Mapfile Variables Message-ID: Hi All Is is possible create and use variables within a mapfile? IE I want to store the colour of a road in one place, then reference that colour in the several style tags EG $road_colour_inside = "255 0 0 " then later in the style tags be able to do color $road_colour_inside Or something similar. I am using v6.0 Thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jun 19 05:59:41 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Jun 2012 08:59:41 -0400 Subject: [mapserver-users] Hindi and Thai text rendering In-Reply-To: References: <4FDFA651.80507@gatewaygeomatics.com> <4FDFF63E.9000407@swoodbridge.com> Message-ID: <4FE077BD.1020407@swoodbridge.com> Hi Ian, The symptoms you are describing are similar to what I have run into with rendering Arabic. What we found was that the TTF we were using was missing some glyphs related to connecting characters in the script. My client Identified these and we were able to locate a different font that had better glyph coverage for Arabic. I don't know anything about Hindi and Thai so looking at you results will not help, but it does sounds like the basic rendering is working. Assuming the above is true, then you would need to identify the characters that are wrong or missing by there character codes and then find a font that has support for those codes. If you think fribidi is not handling things correctly, I have found their mailing list to be very helpful and they suggested changes to how we used their code in mapserver in the past to filter out some zero width space utf8 codes that were causing problems for Arabic. -Steve W On 6/18/2012 11:51 PM, Ian Walberg wrote: > Stephen, > > We can provide some examples tomorrow but we are seeing some characters > not matching what is displayed in other applications. > > Overall the behaviour appears to match this description > https://github.com/mapserver/mapserver/issues/2591 > > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Monday, June 18, 2012 8:47 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Hindi and Thai text rendering > > On 6/18/2012 6:46 PM, Ian Walberg wrote: >> Jeff, >> >> That is encouraging, however our concern is that the character >> rendering is not supported. > > Ian, > > What do you mean by this statement? > > What have you tried? ie: what does you mapfile look like, what font are > you using, etc? > > For this to work you need the following: > > 1. a mapserver build with fribidi-0.19.2 2. a truetype fone file that > supports all the glyphs that you need 3. your mapfile and data > configured correctly such that the text in the data is appropriately for > the ENCODING and that that then matches the ttf. > > -Steve W > >> Regards >> >> Ian >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff >> McKenna >> Sent: Monday, June 18, 2012 3:06 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Hindi and Thai text rendering >> >> On 12-06-18 6:45 PM, Ian Walberg wrote: >>> Hello list, >>> >>> >>> >>> We are seeing some issues displaying Hindi and Thai text, from a >>> quick >> >>> search it looks like this may be related to there not being support >>> for Indic scripts. >>> >>> >>> >>> Can anyone confirm if these are supported? And if they are not are >>> there any workarounds? >>> >> >> Hello Ian, >> >> I can for sure confirm that Thai text is supported, as it was one of >> the languages tested during the initial implementation of the source >> code (see the notes at the bottom of >> http://www.mapserver.org/mapfile/labelencoding.html). >> >> There's always a chance that things have changed with MapServer 6.0, >> but if you provide a small data sample, font, and simple one layer >> mapfile I am sure others on this email list can test and provide > feedback for you. >> >> -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 >> > > > _______________________________________________ > 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 19 06:14:08 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Jun 2012 09:14:08 -0400 Subject: [mapserver-users] Mapfile Variables In-Reply-To: References: Message-ID: <4FE07B20.9070405@swoodbridge.com> On 6/19/2012 2:15 AM, Matt McClelland wrote: > Hi All > > Is is possible create and use variables within a mapfile? > IE I want to store the colour of a road in one place, then reference > that colour in the several style tags > > EG > $road_colour_inside = "255 0 0 " > then later in the style tags be able to do > color $road_colour_inside > > Or something similar. > > I am using v6.0 Short answer is no. What I and others have done as a workaround to this is to use the cpp, the C preprocessor. EG #define _ROAD_COLOR_INSIDE "255 0 0" COLOR _ROAD_COLOR_INSIDE Then run the cpp, If you want to see a great example of this look at: https://github.com/mapserver/basemaps -Steve W From Jukka.Rahkonen at mmmtike.fi Tue Jun 19 09:30:19 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Jun 2012 16:30:19 +0000 Subject: [mapserver-users] Mapfile Variables In-Reply-To: <4FE07B20.9070405@swoodbridge.com> References: , <4FE07B20.9070405@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A63459971@suutari.haapa.mmm.fi> Hi, My shortish answer is that have a try with INCLUDE. If you had STYLE WIDTH 10 OUTLINEWIDTH 1 OUTLINECOLOR "#24277A" END STYLE WIDTH 10 COLOR "#4F719D" END try changing it to STYLE WIDTH 10 OUTLINEWIDTH 1 INCLUDE "\styles\my_motorway_outline_color.txt" END STYLE WIDTH 10 INCLUDE "\styles\my_motorway_line_color.txt" END Next create and save the corresponding files "my_motorway_outline_color.txt" and "my_motorway_line_color" as OUTLINECOLOR "#24277A" and COLOR "#4F719D" I have never tried that but it should work. -Jukka Rahkonen- Stephen Woodbridge wrote: On 6/19/2012 2:15 AM, Matt McClelland wrote: > Hi All > > Is is possible create and use variables within a mapfile? > IE I want to store the colour of a road in one place, then reference > that colour in the several style tags > > EG > $road_colour_inside = "255 0 0 " > then later in the style tags be able to do > color $road_colour_inside > > Or something similar. > > I am using v6.0 Short answer is no. What I and others have done as a workaround to this is to use the cpp, the C preprocessor. EG #define _ROAD_COLOR_INSIDE "255 0 0" COLOR _ROAD_COLOR_INSIDE Then run the cpp, If you want to see a great example of this look at: https://github.com/mapserver/basemaps -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Tue Jun 19 11:29:56 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 19 Jun 2012 18:29:56 +0000 Subject: [mapserver-users] Problems with query Message-ID: I continue to have problems with querying layers as I migrate to newer software versions. Right now, I am moving an application to MS 6.0.2, MapScript 6.1, PHP 5.3.10. I can display my layers properly. When I try to do a query I get an error. Here is the code: $path = $info[2]; if(substr($path,0,1) == '.') { $path = $CONFIGURATION['root'].$path; } $map = ms_newMapObj($path); The $path looks correct if I echo it back. Here is the error message: Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "/ms4w_304/apps/maptest/maps/./towns100.map"' in C:\ms4w_304\apps\maptest\htdocs\php\identify.php:127 It's also worth noting that this application works OK on a local machine. It's when I migrate it to a server that the trouble starts. -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at michiganwxsystem.com Tue Jun 19 11:51:25 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Tue, 19 Jun 2012 14:51:25 -0400 Subject: [mapserver-users] World File's Message-ID: <4FE0CA2D.80000@michiganwxsystem.com> Heres a trick question for anybody that wants to tackle it .. I have ... Lower Left Lat/Long Upper Right Lat/Long Center Lat/Long and the LCC Projection Angles I am attempting to create a World File for each of these maps (8 in total) all the calculations I have found require Upper Left and Lower Right well you can't just use the pairings I have as it will change being projected and not grid anybody got any idea's ??? -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com From David.Fawcett at state.mn.us Tue Jun 19 12:16:22 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 19 Jun 2012 19:16:22 +0000 Subject: [mapserver-users] World File's In-Reply-To: <4FE0CA2D.80000@michiganwxsystem.com> References: <4FE0CA2D.80000@michiganwxsystem.com> Message-ID: Maybe convert to planar coordinates, calculate the other corners based on distance and then convert back to LCC? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff Lake Sent: Tuesday, June 19, 2012 1:51 PM To: MapServer Subject: [mapserver-users] World File's Heres a trick question for anybody that wants to tackle it .. I have ... Lower Left Lat/Long Upper Right Lat/Long Center Lat/Long and the LCC Projection Angles I am attempting to create a World File for each of these maps (8 in total) all the calculations I have found require Upper Left and Lower Right well you can't just use the pairings I have as it will change being projected and not grid anybody got any idea's ??? -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Jun 19 12:40:07 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 19 Jun 2012 19:40:07 +0000 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: References: Message-ID: I'm not aware of plans to handle this. It's going to take a developer or a user with interest and energy. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-Andr? Trottier Sent: Friday, June 15, 2012 10:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Period in a getmap with time dimension period in the time format will it be supported in near future ? example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at wildwalks.com Tue Jun 19 14:51:32 2012 From: matt at wildwalks.com (Matt McClelland) Date: Wed, 20 Jun 2012 07:51:32 +1000 Subject: [mapserver-users] Mapfile Variables In-Reply-To: <84446DEF76453C439E9E97E438E13A63459971@suutari.haapa.mmm.fi> References: <4FE07B20.9070405@swoodbridge.com> <84446DEF76453C439E9E97E438E13A63459971@suutari.haapa.mmm.fi> Message-ID: Thanks for the responses Both seem to work. I am going to run with the include approach. Gives me a few 'bonus features'. I will write a short PHP script that will allow me to make these changes easily online. Gee I love mapserver :) Matt :) On Wed, Jun 20, 2012 at 2:30 AM, Rahkonen Jukka wrote: > Hi, > > My shortish answer is that have a try with INCLUDE. If you had > > STYLE > WIDTH 10 > OUTLINEWIDTH 1 > OUTLINECOLOR "#24277A" > END > STYLE > WIDTH 10 > COLOR "#4F719D" > END > > try changing it to > > STYLE > WIDTH 10 > OUTLINEWIDTH 1 > INCLUDE "\styles\my_motorway_outline_color.txt" > END > STYLE > WIDTH 10 > INCLUDE "\styles\my_motorway_line_color.txt" > END > > Next create and save the corresponding files > "my_motorway_outline_color.txt" and "my_motorway_line_color" as > > OUTLINECOLOR "#24277A" > and > COLOR "#4F719D" > > I have never tried that but it should work. > > -Jukka Rahkonen- > > Stephen Woodbridge wrote: > > On 6/19/2012 2:15 AM, Matt McClelland wrote: > > Hi All > > > > Is is possible create and use variables within a mapfile? > > IE I want to store the colour of a road in one place, then reference > > that colour in the several style tags > > > > EG > > $road_colour_inside = "255 0 0 " > > then later in the style tags be able to do > > color $road_colour_inside > > > > Or something similar. > > > > I am using v6.0 > > Short answer is no. > What I and others have done as a workaround to this is to use the cpp, > the C preprocessor. > > EG > > #define _ROAD_COLOR_INSIDE "255 0 0" > > COLOR _ROAD_COLOR_INSIDE > > > Then run the cpp, If you want to see a great example of this look at: > > https://github.com/mapserver/basemaps > > -Steve W > _______________________________________________ > 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 Wed Jun 20 06:13:16 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Jun 2012 10:13:16 -0300 Subject: [mapserver-users] Mapfile Variables In-Reply-To: References: <4FE07B20.9070405@swoodbridge.com> <84446DEF76453C439E9E97E438E13A63459971@suutari.haapa.mmm.fi> Message-ID: <4FE1CC6C.8060503@gatewaygeomatics.com> Hi Matt, If you want to give back (for good karma) post any PHP scripts that you think might be useful to others someday through the MapServer wiki (https://github.com/mapserver/mapserver/wiki); create as many pages as you wish. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-06-19 6:51 PM, Matt McClelland wrote: > Thanks for the responses > > Both seem to work. I am going to run with the include approach. Gives > me a few 'bonus features'. > I will write a short PHP script that will allow me to make these changes > easily online. > > Gee I love mapserver :) > > Matt :) From snaperski at gmail.com Wed Jun 20 07:43:14 2012 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 20 Jun 2012 17:43:14 +0300 Subject: [mapserver-users] MBTiles in Mapserver Message-ID: Hello! Im trying to make sense of using MBTiles files in Mapserver. Is it possible by just configuring mapfile to use MBtiles file (via GDAL?) or is the solution more complicated than that? All the best, Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Jun 20 07:36:42 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 20 Jun 2012 10:36:42 -0400 Subject: [mapserver-users] GetLegendGraphic problem Message-ID: Hi I have a layer with CONNECTIONTYPE WMS which GetMap and GetFeatureInfo work, but GetLegendGraphic doesn't. I think it is because I'm using layers defined using classgroup but I didn't find any bug or issue on the wiki Please do you see something wrong in my layers definition below? thanks steve In my mapfile I have NAME "layers" TYPE RASTER CONNECTION "http://XXXXX/mapserv?map=mapfile" CONNECTIONTYPE WMS METADATA "wms_name" "nouveau,sousobs" ....... END Here is my 2 WMS layers definition LAYER INCLUDE "layer.map" CLASSGROUP "nouveau" NAME "nouveau" METADATA "wms_title" "nouveau test" "wms_name" "nouveau" END END LAYER INCLUDE "layer.map" CLASSGROUP "sousobs" NAME "sousobs" METADATA "wms_title" "sousobs test" "wms_name" "sousobs" END END and a piece of layer.map ... CLASS NAME "Nouveau" EXPRESSION "1" GROUP "nouveau" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 255 215 0 OUTLINECOLOR 144 0 0 END STYLE SYMBOL 'ems.incident.fire.forestFire' SIZE 15 END END CLASS NAME "Sous observation" EXPRESSION "2" GROUP "sousobs" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 50 205 50 OUTLINECOLOR 144 0 0 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jun 20 08:21:32 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 20 Jun 2012 11:21:32 -0400 Subject: [mapserver-users] MBTiles in Mapserver In-Reply-To: References: Message-ID: <4FE1EA7C.6090609@swoodbridge.com> On 6/20/2012 10:43 AM, Raivo Alla wrote: > Hello! > > Im trying to make sense of using MBTiles files in Mapserver. Is it > possible by just configuring mapfile to use MBtiles file (via GDAL?) or > is the solution more complicated than that? I can't speak to use GDAL directly, but you can install mapcache and configure it for mbtiles, then make WMS requests from mapserver to mapcache to load the tiles as a layer. mapcache is in trunk and it is very stable and works well. -Steve W From bob.basques at ci.stpaul.mn.us Wed Jun 20 08:11:07 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 20 Jun 2012 15:11:07 +0000 Subject: [mapserver-users] Mapserver as WMS client, legend pass-through . . . In-Reply-To: <4FD8A54D.3010301@mapgears.com> References: , <4FD8A54D.3010301@mapgears.com> Message-ID: Daniel, So, I have this (direct) URL for a legend graphic from the upstream WMS server: http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?request=GetLegendGraphic&version=1.3.0&format=image/png&layer=2&width=200 Any ideas on how to use this direct link to add a legend to a regular MapServer mode=legend call into the mapfile as a stop gap solution? We're on 5.x Mapserver right now, not easy to upgrade real fast I'm afraid. Thanks bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Wednesday, June 13, 2012 9:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . . On 12-06-13 10:22 AM, Basques, Bob (CI-StPaul) wrote: > Barend, > > The "Legend Chip" is my name for a legend image (as generated by Mapserver), geomoose builds a Legend on a per layer basis from a call to MapServer. So since the WMS image call goes through MapServer, we use MapServer for Legend as well. It's looking so far like MapServer doesn't support legends entirely. The only references I can find to cascaded WMS legends is in the TRAC listing about others having/wanting the same functionality, so far at least. . . > FYI Cascading of GetLegendGraphics has been implemented in the dev version (future 6.2). It kicks in only of some specific conditions are met. See: https://github.com/mapserver/mapserver/issues/3923 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Wed Jun 20 09:22:32 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 20 Jun 2012 12:22:32 -0400 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: Message-ID: A workaround could be to use a proxy/wrapper for your layer and generate your time series in php per example, and let php launch the request... steve "Lime, Steve D (DNR)" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-06-19 15:40 A Marc-Andr? Trottier , "mapserver-users at lists.osgeo.org" cc Objet Re: [mapserver-users] Period in a getmap with time dimension I?m not aware of plans to handle this. It?s going to take a developer or a user with interest and energy. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-Andr? Trottier Sent: Friday, June 15, 2012 10:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Period in a getmap with time dimension period in the time format will it be supported in near future ? example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Jun 20 10:16:35 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 20 Jun 2012 13:16:35 -0400 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: References: Message-ID: <4FE20573.8040104@mapgears.com> FYI I checked the code the other day and there seems to be some code to support ranges. I wonder if it is just plain broken and not working, or if this specific range value falls in a limit case that would need fixing. Perhaps Marc-Andr? could test further and report his findings. Daniel On 12-06-20 12:22 PM, Steve.Toutant at inspq.qc.ca wrote: > > A workaround could be to use a proxy/wrapper for your layer and generate > your time series in php per example, and let php launch the request... > steve > > > > > *"Lime, Steve D (DNR)" @lists.osgeo.org* > Envoy? par : mapserver-users-bounces at lists.osgeo.org > > 2012-06-19 15:40 > > > A > Marc-Andr? Trottier , > "mapserver-users at lists.osgeo.org" > cc > > Objet > Re: [mapserver-users] Period in a getmap with time dimension > > > > > > > > > > > I?m not aware of plans to handle this. It?s going to take a developer or > a user with interest and energy. > > Steve > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Marc-Andr? Trottier* > Sent:* Friday, June 15, 2012 10:49 AM* > To:* mapserver-users at lists.osgeo.org* > Subject:* [mapserver-users] Period in a getmap with time dimension > > period in the time format > will it be supported in near future ? > > example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D > _______________________________________________ > mapserver-users mailing list > mapserver-users 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From adube at mapgears.com Wed Jun 20 10:30:05 2012 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 20 Jun 2012 13:30:05 -0400 Subject: [mapserver-users] GRID - how to display labels not in degrees Message-ID: <4FE2089D.5080106@mapgears.com> Hi, Using the [GRID] object, I'm able to do a GetMap request using &SRS=EPSG:900913 to display a the grid correctly reprojected, but the coordinates displayed (labels) are in degrees. When switching the layer PROJECTION from 4326 to 900913, the request throws a 504 error. How can I display them in 900913 ? See the attached image and layer definition. I'm using MapServer 6.0.1. Thanks, Alexandre [GRID] http://mapserver.org/mapfile/grid.html -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- A non-text attachment was scrubbed... Name: grid.png Type: image/png Size: 5125 bytes Desc: not available URL: -------------- next part -------------- LAYER NAME "grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS ON CLASS NAME "Graticule" STYLE COLOR 0 0 0 WIDTH 0.3 END LABEL COLOR 0 0 0 FONT "sans" TYPE truetype SIZE 6.5 POSITION AUTO PARTIALS FALSE BUFFER 5 END END PROJECTION "init=epsg:4326" END GRID LABELFORMAT '%.1f?' MAXARCS 10 MININTERVAL 10 MAXINTERVAL 10 MAXSUBDIVIDE 2 END END From jmckenna at gatewaygeomatics.com Wed Jun 20 11:41:46 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Jun 2012 15:41:46 -0300 Subject: [mapserver-users] GRID - how to display labels not in degrees In-Reply-To: <4FE2089D.5080106@mapgears.com> References: <4FE2089D.5080106@mapgears.com> Message-ID: <4FE2196A.4060004@gatewaygeomatics.com> On 12-06-20 2:30 PM, Alexandre Dube wrote: > Hi, > > Using the [GRID] object, I'm able to do a GetMap request using > &SRS=EPSG:900913 to display a the grid correctly reprojected, but the > coordinates displayed (labels) are in degrees. When switching the layer > PROJECTION from 4326 to 900913, the request throws a 504 error. > > How can I display them in 900913 ? > > See the attached image and layer definition. I'm using MapServer 6.0.1. Hello Alexandre, If I was in this situation I would: - try to duplicate it with an easy shp2img command (I can locally, using gmap75 mapfile and setting the projection of the grid layer to 3978 instead of 4326) - then, once you get that crash with that easy command (yup I get the crash with MS 6.0.3), I would start to comment all those parameters in your actual GRID object - for me, I found that once I commented the M*INTERVAL parameters I was able to get a valid map image with grid lines nicely labelled in meters I think there is a ticket/issue here so I think it would be nice to package a little test case that throws this crash. Happy first day of summer! (or the best 5-?-7 day of the year!) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From adube at mapgears.com Wed Jun 20 12:16:44 2012 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 20 Jun 2012 15:16:44 -0400 Subject: [mapserver-users] GRID - how to display labels not in degrees In-Reply-To: <4FE2196A.4060004@gatewaygeomatics.com> References: <4FE2089D.5080106@mapgears.com> <4FE2196A.4060004@gatewaygeomatics.com> Message-ID: <4FE2219C.3020405@mapgears.com> Hey Jeff, Yes, it worked without setting any interval, but that made me realize my mistake. The interval values are in degrees when using 4326, so switching to 900913 they must be in meters. Setting them to more proper values, such as 1000000 instead of 2 did the trick. It works fine. Thanks, Alexandre On 12-06-20 02:41 PM, Jeff McKenna wrote: > On 12-06-20 2:30 PM, Alexandre Dube wrote: >> Hi, >> >> Using the [GRID] object, I'm able to do a GetMap request using >> &SRS=EPSG:900913 to display a the grid correctly reprojected, but the >> coordinates displayed (labels) are in degrees. When switching the layer >> PROJECTION from 4326 to 900913, the request throws a 504 error. >> >> How can I display them in 900913 ? >> >> See the attached image and layer definition. I'm using MapServer 6.0.1. > Hello Alexandre, > > If I was in this situation I would: > > - try to duplicate it with an easy shp2img command (I can locally, using > gmap75 mapfile and setting the projection of the grid layer to 3978 > instead of 4326) > - then, once you get that crash with that easy command (yup I get the > crash with MS 6.0.3), I would start to comment all those parameters in > your actual GRID object > - for me, I found that once I commented the M*INTERVAL parameters I was > able to get a valid map image with grid lines nicely labelled in meters > > I think there is a ticket/issue here so I think it would be nice to > package a little test case that throws this crash. > > Happy first day of summer! (or the best 5-?-7 day of the year!) > > -jeff > > > > -- Alexandre Dub? Mapgears www.mapgears.com From woodbri at swoodbridge.com Wed Jun 20 12:18:33 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 20 Jun 2012 15:18:33 -0400 Subject: [mapserver-users] GRID - how to display labels not in degrees In-Reply-To: <4FE2219C.3020405@mapgears.com> References: <4FE2089D.5080106@mapgears.com> <4FE2196A.4060004@gatewaygeomatics.com> <4FE2219C.3020405@mapgears.com> Message-ID: <4FE22209.8070400@swoodbridge.com> There is still a bug because with bad settings is crashes and this should be bugged, please. Thanks, -Steve W On 6/20/2012 3:16 PM, Alexandre Dube wrote: > Hey Jeff, > > Yes, it worked without setting any interval, but that made me realize > my mistake. The interval values are in degrees when using 4326, so > switching to 900913 they must be in meters. Setting them to more proper > values, such as 1000000 instead of 2 did the trick. It works fine. > > Thanks, > > Alexandre > > > On 12-06-20 02:41 PM, Jeff McKenna wrote: >> On 12-06-20 2:30 PM, Alexandre Dube wrote: >>> Hi, >>> >>> Using the [GRID] object, I'm able to do a GetMap request using >>> &SRS=EPSG:900913 to display a the grid correctly reprojected, but the >>> coordinates displayed (labels) are in degrees. When switching the layer >>> PROJECTION from 4326 to 900913, the request throws a 504 error. >>> >>> How can I display them in 900913 ? >>> >>> See the attached image and layer definition. I'm using MapServer >>> 6.0.1. >> Hello Alexandre, >> >> If I was in this situation I would: >> >> - try to duplicate it with an easy shp2img command (I can locally, using >> gmap75 mapfile and setting the projection of the grid layer to 3978 >> instead of 4326) >> - then, once you get that crash with that easy command (yup I get the >> crash with MS 6.0.3), I would start to comment all those parameters in >> your actual GRID object >> - for me, I found that once I commented the M*INTERVAL parameters I was >> able to get a valid map image with grid lines nicely labelled in meters >> >> I think there is a ticket/issue here so I think it would be nice to >> package a little test case that throws this crash. >> >> Happy first day of summer! (or the best 5-?-7 day of the year!) >> >> -jeff >> >> >> >> > > From jonas.eberle at gmx.de Thu Jun 21 01:58:45 2012 From: jonas.eberle at gmx.de (Jonas Eberle) Date: Thu, 21 Jun 2012 03:58:45 -0500 (CDT) Subject: [mapserver-users] PostGIS Raster and WMS Time In-Reply-To: <1139060743.56428.1340259682513.JavaMail.root@eberle-mail.de> Message-ID: <172599993.56806.1340269125003.JavaMail.root@eberle-mail.de> Hi list, I have some raster based time series data which I'm currently providing with WMS Time through MapServer and PostGIS Tile Index for Raster Imagery, as it is described in the documentation [1]. Then I put the raster data from my filesystem into my PostGIS database using PostGIS 2.0 Raster (1 row = 1 image) and adding a date column. Providing only one raster data through MapServer und PostGIS works fine, but how it is possible to provide it as WMS Time using the TIME parameter in the GetMap request? I tried it using the Tile Index (the same way as I tested it with raster data in the file system) and TILEITEM "raster" (raster column), but this did not work. Is there another possibility for using WMS Time with raster data within PostGIS at the moment? Thanks for your answers, Jonas [1] = http://mapserver.org/ogc/wms_time.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From luisbap at hotmail.com Thu Jun 21 06:25:05 2012 From: luisbap at hotmail.com (Luis Baptista) Date: Thu, 21 Jun 2012 14:25:05 +0100 Subject: [mapserver-users] EPSG 27493 Message-ID: Viva,sou novo no grupo (e no Mapserver) como tal, sauda??es a todos os utilizadores. Estou a usar MS4W, na vers?o 6.0.2 do Mapserver, com dados em Oracle Spatial 10.2.Ao utilizar os dados de sample Itasca alterei o mapfile para ir ler os dados que tenho em Oracle Spatial. Para isso estou a usar a liga??o nativa do Mapserver.Os dados em Oracle est?o com o SRID=4274 e os ?ndices espaciais est?o devidamente configurados. A coluna de geometria intitula-se "GEOM"Os dados dever?o ser apresentados em Datum 73 (projectados, em metros). O que acontece ? que a p?gina entra, n?o d? qualquer erro, gera a imagem, mas em branco.Estive a ver o ficheiro EPSG e o "27493" n?o consta, diz que "# Unable to translate coordinate system EPSG:27493 into PROJ.4 format." O layer n?o ? projectado porqu??a) Porque n?o tem EPSG:27493 na lista? O Mapfile est? com algum erro? A liga??o oraclespatial n?o funciona? Abaixo envio o meu mapfile.Desde j? obrigado pelas sugest?esLuis MAP NAME "DEMOSMC" SIZE 600 400 IMAGETYPE PNG EXTENT -9.5500 37.0100 -6.1900 42.1500 UNITS DD IMAGECOLOR 255 255 255 CONFIG PROJ_LIB "C:/ms4w/proj/nad" PROJECTION # EPSG:27493 "proj=tmerc" "lat_0=39.66666666666666" "lon_0=-8.131906111111112" "k=1" "x_0=180.598" "y_0=-86.98999999999999" "ellps=intl" "units=m" "no_defs" END LAYER NAME "distritos" TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "user***/pw****@bd****" DATA "GEOM FROM TBLDISTRITOS USING SRID 4274" DUMP TRUE CLASS NAME "ADMINI" STYLE OUTLINECOLOR 255 0 0 END END END ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcandre_trottier at hotmail.com Thu Jun 21 07:03:22 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Thu, 21 Jun 2012 10:03:22 -0400 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: <4FE20573.8040104@mapgears.com> References: <4FE20573.8040104@mapgears.com> Message-ID: with a TIME parameter like : TIME 2007-01-12T20:00:00Z/2008-01-01T04:00:00Z/P1D i got this error from mapserver : [Thu Jun 21 09:51:44 2012].943269 msTokenizeExpression(): Expression parser error. Parsing time value failed. [Thu Jun 21 09:51:47 2012].224701 msParseTime(): Regular expression error. Unrecognized date or time format (). i got a map but all data. 2012/6/20 Daniel Morissette > FYI I checked the code the other day and there seems to be some code to > support ranges. I wonder if it is just plain broken and not working, or if > this specific range value falls in a limit case that would need fixing. > Perhaps Marc-Andr? could test further and report his findings. > > Daniel > > > > On 12-06-20 12:22 PM, Steve.Toutant at inspq.qc.ca wrote: > >> >> A workaround could be to use a proxy/wrapper for your layer and generate >> your time series in php per example, and let php launch the request... >> steve >> >> >> >> >> *"Lime, Steve D (DNR)" @lists**.osgeo.org >> * >> >> Envoy? par : mapserver-users-bounces at lists.**osgeo.org >> >> 2012-06-19 15:40 >> >> >> A >> Marc-Andr? Trottier >> >, >> "mapserver-users at lists.osgeo.**org " < >> mapserver-users at lists.osgeo.**org > >> cc >> >> Objet >> Re: [mapserver-users] Period in a getmap with time dimension >> >> >> >> >> >> >> >> >> >> >> I?m not aware of plans to handle this. It?s going to take a developer or >> a user with interest and energy. >> >> Steve >> >> *From:* mapserver-users-bounces at lists.**osgeo.org >> [mailto:mapserver-users-**bounces at lists.osgeo.org] >> *On Behalf Of >> *Marc-Andr? Trottier* >> Sent:* Friday, June 15, 2012 10:49 AM* >> To:* mapserver-users at lists.osgeo.**org * >> Subject:* [mapserver-users] Period in a getmap with time dimension >> >> >> period in the time format >> will it be supported in near future ? >> >> example : 1995-04-22T12:00Z/2000-06-**21T12:00Z/P1D >> ______________________________**_________________ >> mapserver-users mailing list >> mapserver-users 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 >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > ______________________________**_________________ > 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 Thu Jun 21 07:19:38 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 21 Jun 2012 07:19:38 -0700 (PDT) Subject: [mapserver-users] EPSG 27493 In-Reply-To: References: Message-ID: <1340288378611-4983015.post@n6.nabble.com> luisbap wrote > > Viva,sou novo no grupo (e no Mapserver) como tal, sauda??es a todos os > utilizadores. > Estou a usar MS4W, na vers?o 6.0.2 do Mapserver, com dados em Oracle > Spatial 10.2.Ao utilizar os dados de sample Itasca alterei o mapfile para > ir ler os dados que tenho em Oracle Spatial. Para isso estou a usar a > liga??o nativa do Mapserver.Os dados em Oracle est?o com o SRID=4274 e os > ?ndices espaciais est?o devidamente configurados. A coluna de geometria > intitula-se "GEOM"Os dados dever?o ser apresentados em Datum 73 > (projectados, em metros). > O que acontece ? que a p?gina entra, n?o d? qualquer erro, gera a imagem, > mas em branco.Estive a ver o ficheiro EPSG e o "27493" n?o consta, diz que > "# Unable to translate coordinate system EPSG:27493 into PROJ.4 format." > O layer n?o ? projectado porqu??a) Porque n?o tem EPSG:27493 na lista? O > Mapfile est? com algum erro? A liga??o oraclespatial n?o funciona? > Abaixo envio o meu mapfile.Desde j? obrigado pelas sugest?esLuis > Hello Luis, Here are my thoughts on your issue: - I am using MS4W 3.0.6 (MapServer 6.0.3) locally, so my comments are related to that version - your MAP-level projection is your output projection (in your case EPSG:27493) - make sure your EXTENT and UNITS values match that output projection (I notice that you mistakenly have your units in DD, but your output projection's units are actually meters) - for your MAP-level projection block, I would use: PROJECTION "init=epsg:27493" END - you need to tell MapServer what your LAYER projection is, so you need to add a PROJECTION block into your layer: PROJECTION "init=epsg:4274" END - if you are still having troubles, try to just view that layer in its source projection, but removing any PROJECTION block from the mapfile, and getting the EXTENT parameter from an ogrinfo command on that Oracle table. I hope that helps a little. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com -- View this message in context: http://osgeo-org.1560.n6.nabble.com/EPSG-27493-tp4982999p4983015.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adube at mapgears.com Thu Jun 21 08:33:31 2012 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 21 Jun 2012 11:33:31 -0400 Subject: [mapserver-users] GRID - how to display labels not in degrees In-Reply-To: <4FE22209.8070400@swoodbridge.com> References: <4FE2089D.5080106@mapgears.com> <4FE2196A.4060004@gatewaygeomatics.com> <4FE2219C.3020405@mapgears.com> <4FE22209.8070400@swoodbridge.com> Message-ID: <4FE33ECB.3020902@mapgears.com> Stephen, I think a doc and example update would do the trick : https://github.com/mapserver/mapserver/issues/4353 Regards, Alexandre On 12-06-20 03:18 PM, Stephen Woodbridge wrote: > There is still a bug because with bad settings is crashes and this > should be bugged, please. > > Thanks, > -Steve W > > On 6/20/2012 3:16 PM, Alexandre Dube wrote: >> Hey Jeff, >> >> Yes, it worked without setting any interval, but that made me realize >> my mistake. The interval values are in degrees when using 4326, so >> switching to 900913 they must be in meters. Setting them to more proper >> values, such as 1000000 instead of 2 did the trick. It works fine. >> >> Thanks, >> >> Alexandre >> >> >> On 12-06-20 02:41 PM, Jeff McKenna wrote: >>> On 12-06-20 2:30 PM, Alexandre Dube wrote: >>>> Hi, >>>> >>>> Using the [GRID] object, I'm able to do a GetMap request using >>>> &SRS=EPSG:900913 to display a the grid correctly reprojected, but the >>>> coordinates displayed (labels) are in degrees. When switching the >>>> layer >>>> PROJECTION from 4326 to 900913, the request throws a 504 error. >>>> >>>> How can I display them in 900913 ? >>>> >>>> See the attached image and layer definition. I'm using MapServer >>>> 6.0.1. >>> Hello Alexandre, >>> >>> If I was in this situation I would: >>> >>> - try to duplicate it with an easy shp2img command (I can locally, >>> using >>> gmap75 mapfile and setting the projection of the grid layer to 3978 >>> instead of 4326) >>> - then, once you get that crash with that easy command (yup I get the >>> crash with MS 6.0.3), I would start to comment all those parameters in >>> your actual GRID object >>> - for me, I found that once I commented the M*INTERVAL parameters I was >>> able to get a valid map image with grid lines nicely labelled in meters >>> >>> I think there is a ticket/issue here so I think it would be nice to >>> package a little test case that throws this crash. >>> >>> Happy first day of summer! (or the best 5-?-7 day of the year!) >>> >>> -jeff >>> >>> >>> >>> >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.com From dmorissette at mapgears.com Thu Jun 21 10:23:04 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 21 Jun 2012 13:23:04 -0400 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: References: <4FE20573.8040104@mapgears.com> Message-ID: <4FE35878.90707@mapgears.com> What if you try with the following: TIME "2007-01-12/2008-01-01/P1D" or TIME "2007-01-12/2008-01-01" or TIME "2007-01-12T20:00:00Z/2008-01-01T04:00:00Z" On 12-06-21 10:03 AM, Marc-Andr? Trottier wrote: > with a TIME parameter like : > > TIME |2007-01-12T20:00:00Z/2008-01-01T04:00:00Z/P1D > > |i got this error from mapserver : > > [Thu Jun 21 09:51:44 2012].943269 msTokenizeExpression(): Expression > parser error. Parsing time value failed. > [Thu Jun 21 09:51:47 2012].224701 msParseTime(): Regular expression > error. Unrecognized date or time format (). > > i got a map but all data. > > 2012/6/20 Daniel Morissette > > > FYI I checked the code the other day and there seems to be some code > to support ranges. I wonder if it is just plain broken and not > working, or if this specific range value falls in a limit case that > would need fixing. Perhaps Marc-Andr? could test further and report > his findings. > > Daniel > > > > On 12-06-20 12:22 PM, Steve.Toutant at inspq.qc.ca > wrote: > > > A workaround could be to use a proxy/wrapper for your layer and > generate > your time series in php per example, and let php launch the > request... > steve > > > > > *"Lime, Steve D (DNR)" >@lists__.osgeo.org > * > > Envoy? par : mapserver-users-bounces at lists.__osgeo.org > > > 2012-06-19 15:40 > > > A > Marc-Andr? Trottier >, > "mapserver-users at lists.osgeo.__org > " > > > cc > > Objet > Re: [mapserver-users] Period in a getmap with time dimension > > > > > > > > > > > I?m not aware of plans to handle this. It?s going to take a > developer or > a user with interest and energy. > > Steve > > *From:* mapserver-users-bounces at lists.__osgeo.org > > [mailto:mapserver-users-__bounces at lists.osgeo.org > ] *On Behalf Of > *Marc-Andr? Trottier* > Sent:* Friday, June 15, 2012 10:49 AM* > To:* mapserver-users at lists.osgeo.__org > * > Subject:* [mapserver-users] Period in a getmap with time dimension > > > period in the time format > will it be supported in near future ? > > example : 1995-04-22T12:00Z/2000-06-__21T12:00Z/P1D > _________________________________________________ > mapserver-users mailing list > mapserver-users 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 > > > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > _________________________________________________ > 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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Steve.Toutant at inspq.qc.ca Thu Jun 21 11:39:45 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 21 Jun 2012 14:39:45 -0400 Subject: [mapserver-users] RE GetLegendGraphic problem UPDATE In-Reply-To: Message-ID: update... It works if I only have one layer in wms_name getLegendGraphic works "wms_name" "nouveau" getLegendGraphic works "wms_name" "sousobs" getLegendGraphic doesn't work. But GetMap and getFeatureInfo do "wms_name" "nouveau,sousobs" Steve.Toutant at inspq.qc.ca@lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-06-20 10:36 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] GetLegendGraphic problem Hi I have a layer with CONNECTIONTYPE WMS which GetMap and GetFeatureInfo work, but GetLegendGraphic doesn't. I think it is because I'm using layers defined using classgroup but I didn't find any bug or issue on the wiki Please do you see something wrong in my layers definition below? thanks steve In my mapfile I have NAME "layers" TYPE RASTER CONNECTION "http://XXXXX/mapserv?map=mapfile" CONNECTIONTYPE WMS METADATA "wms_name" "nouveau,sousobs" ....... END Here is my 2 WMS layers definition LAYER INCLUDE "layer.map" CLASSGROUP "nouveau" NAME "nouveau" METADATA "wms_title" "nouveau test" "wms_name" "nouveau" END END LAYER INCLUDE "layer.map" CLASSGROUP "sousobs" NAME "sousobs" METADATA "wms_title" "sousobs test" "wms_name" "sousobs" END END and a piece of layer.map ... CLASS NAME "Nouveau" EXPRESSION "1" GROUP "nouveau" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 255 215 0 OUTLINECOLOR 144 0 0 END STYLE SYMBOL 'ems.incident.fire.forestFire' SIZE 15 END END CLASS NAME "Sous observation" EXPRESSION "2" GROUP "sousobs" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 50 205 50 OUTLINECOLOR 144 0 0 END END _______________________________________________ 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 shprabin at gmail.com Fri Jun 22 02:08:04 2012 From: shprabin at gmail.com (shprabin) Date: Fri, 22 Jun 2012 02:08:04 -0700 (PDT) Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: <80062D37ECCD48CB921E443507111FA0@DELLM4500> References: <6D396196-15E4-46D6-BE58-A5475CA59BB0@gmail.com> <80062D37ECCD48CB921E443507111FA0@DELLM4500> Message-ID: <1340356084249-4983166.post@n6.nabble.com> Thanks a lot. Running legacy sql helped me. Regards, Prabin -- View this message in context: http://osgeo-org.1560.n6.nabble.com/error-accessing-PostGIS-2-layer-tp4975444p4983166.html Sent from the Mapserver - User mailing list archive at Nabble.com. From marcandre_trottier at hotmail.com Fri Jun 22 06:45:08 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Fri, 22 Jun 2012 09:45:08 -0400 Subject: [mapserver-users] Period in a getmap with time dimension In-Reply-To: <4FE35878.90707@mapgears.com> References: <4FE20573.8040104@mapgears.com> <4FE35878.90707@mapgears.com> Message-ID: not working : TIME "2007-01-12/2008-01-01/P1D" works : TIME "2007-01-12T20:00:00Z/2008-01-01T04:00:00Z" works : TIME "2007-01-12/2008-01-01" 2012/6/21 Daniel Morissette > What if you try with the following: > > TIME "2007-01-12/2008-01-01/P1D" > > or > > TIME "2007-01-12/2008-01-01" > > or > > > TIME "2007-01-12T20:00:00Z/2008-01-**01T04:00:00Z" > > > On 12-06-21 10:03 AM, Marc-Andr? Trottier wrote: > >> with a TIME parameter like : >> >> TIME |2007-01-12T20:00:00Z/2008-01-**01T04:00:00Z/P1D >> >> |i got this error from mapserver : >> >> [Thu Jun 21 09:51:44 2012].943269 msTokenizeExpression(): Expression >> parser error. Parsing time value failed. >> [Thu Jun 21 09:51:47 2012].224701 msParseTime(): Regular expression >> error. Unrecognized date or time format (). >> >> i got a map but all data. >> >> 2012/6/20 Daniel Morissette > >> >> >> >> FYI I checked the code the other day and there seems to be some code >> to support ranges. I wonder if it is just plain broken and not >> working, or if this specific range value falls in a limit case that >> would need fixing. Perhaps Marc-Andr? could test further and report >> his findings. >> >> Daniel >> >> >> >> On 12-06-20 12:22 PM, Steve.Toutant at inspq.qc.ca >> > >> wrote: >> >> >> A workaround could be to use a proxy/wrapper for your layer and >> generate >> your time series in php per example, and let php launch the >> request... >> steve >> >> >> >> >> *"Lime, Steve D (DNR)" > >@lists__.osgeo.org >> * >> >> Envoy? par : mapserver-users-bounces at lists.**__osgeo.org >> >> > >> >> 2012-06-19 15:40 >> >> >> A >> Marc-Andr? Trottier > >> >>, >> "mapserver-users at lists.osgeo._**_org >> >> >" >> > >> >> >> >> cc >> >> Objet >> Re: [mapserver-users] Period in a getmap with time >> dimension >> >> >> >> >> >> >> >> >> >> >> I?m not aware of plans to handle this. It?s going to take a >> developer or >> a user with interest and energy. >> >> Steve >> >> *From:* mapserver-users-bounces at lists.**__osgeo.org >> >> > >> [mailto:mapserver-users-__**bounces at lists.osgeo.org >> >> >] >> *On Behalf Of >> *Marc-Andr? Trottier* >> Sent:* Friday, June 15, 2012 10:49 AM* >> To:* mapserver-users at lists.osgeo.__**org >> >> >* >> >> Subject:* [mapserver-users] Period in a getmap with time dimension >> >> >> period in the time format >> will it be supported in near future ? >> >> example : 1995-04-22T12:00Z/2000-06-__**21T12:00Z/P1D >> ______________________________**___________________ >> mapserver-users mailing list >> mapserver-users 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 >> >> >> > >> >> >> >> -- >> Daniel Morissette >> http://www.mapgears.com/ >> Provider of Professional MapServer Support since 2000 >> >> ______________________________**___________________ >> 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 >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > ______________________________**_________________ > 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 bfischer at houstoneng.com Fri Jun 22 08:46:28 2012 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 22 Jun 2012 15:46:28 +0000 Subject: [mapserver-users] ESRI file geodatabase and php mapscript Message-ID: Hi, I was wondering if anyone is willing to share any experience they have had with using an ESRI File Geodatabase with MapServer. Specifically I'm wondering about: 1) How is the performance when compared against other data sources for rendering maps? Does OGR/GDAL make use of spatial indexes? 2) Can a file geodatabase be accessed through PHP or Python mapscript for querying/searching? 3) Could I access a standalone table (non-spatial table) that is stored in a file geodatabase with mapscript? Many want to use this for joins and relates in my queries. Regards, Brian Brian Fischer, CFM Principal | GIS Project Manager O 763.493.4522 | D 763.493.6664 | M 763.229.2734 [Description: cid:image001.jpg at 01CC3702.356B79C0] 6901 E Fish Lake Rd. , Suite 140 * Maple Grove, MN * 55369 www.houstoneng.com This entire message (including all forwards and replies) and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret, work-product, attorney-client or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1059 bytes Desc: image001.jpg URL: From giohappy at gmail.com Fri Jun 22 08:52:45 2012 From: giohappy at gmail.com (G. Allegri) Date: Fri, 22 Jun 2012 17:52:45 +0200 Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? Message-ID: I know this is a topic asked many times, but since it's quite a long time I don't work extensively with MS, I would like to know if roadmaps have ever been discussed to implement Mapfile Styling with SLD. Thanks, Giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 22 10:07:54 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Jun 2012 14:07:54 -0300 Subject: [mapserver-users] GRID - how to display labels not in degrees In-Reply-To: <4FE33ECB.3020902@mapgears.com> References: <4FE2089D.5080106@mapgears.com> <4FE2196A.4060004@gatewaygeomatics.com> <4FE2219C.3020405@mapgears.com> <4FE22209.8070400@swoodbridge.com> <4FE33ECB.3020902@mapgears.com> Message-ID: <4FE4A66A.7000003@gatewaygeomatics.com> Small test case and ticket created for this MapServer crash: https://github.com/mapserver/mapserver/issues/4356 Please join the ticket and comment/test/provide fixes. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Fri Jun 22 10:25:16 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Jun 2012 14:25:16 -0300 Subject: [mapserver-users] ESRI file geodatabase and php mapscript In-Reply-To: References: Message-ID: <4FE4AA7C.4050604@gatewaygeomatics.com> On 12-06-22 12:46 PM, Brian Fischer wrote: > Hi, > > I was wondering if anyone is willing to share any experience they have > had with using an ESRI File Geodatabase with MapServer. Specifically > I?m wondering about: > > 1) How is the performance when compared against other data sources > for rendering maps? Does OGR/GDAL make use of spatial indexes? > > 2) Can a file geodatabase be accessed through PHP or Python > mapscript for querying/searching? > > 3) Could I access a standalone table (non-spatial table) that is > stored in a file geodatabase with mapscript? Many want to use this for > joins and relates in my queries. > Hi Brian, We did start to look at FileGDB support in MapServer during last year's WMS Benchmarking exercise. At the time we were a little early for this testing, as the FileGDB driver was still going through development; but now, FileGDB has been available in MS4W since January, and we might take a look at this again for the upcoming WMS Benchmarking exercise for September (this may address your performance questions). As for your specific mapscript questions, as MapServer uses OGR to connect to FileGDB layers, you should be able to connect to that layer through mapscript with a CONNECTIONTYPE OGR, no different than other OGR connections. That's a good question about non-spatial tables, did you try an ogrinfo on that table? Give that a try with MS4W, and then if you can see the table with ogrinfo then you'll know that at least GDAL/OGR can access it. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Fri Jun 22 10:44:03 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 22 Jun 2012 17:44:03 +0000 Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? In-Reply-To: References: Message-ID: Hi Giovanni: Inline SLD has been talked about and was on the roadmap for 6.0 I believe. Sadly it didn't get done for that release and out resident SLD expert has had precious little time to spend on the project in recent months. I think it's going to take a particularly motivated developer or user to make it happen (patches gladly accepted). Conceptually it doesn't seem that difficult. That is, defining an SLD block within a class or a style or should it be within a layer. I guess that's where the complications lie. It really depends on the SLD capabilities already part of MapServer. Seems to me that if you can read SLD from a WMS request then pulling from the mapfile proper shouldn't be difficult. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of G. Allegri Sent: Friday, June 22, 2012 10:53 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? I know this is a topic asked many times, but since it's quite a long time I don't work extensively with MS, I would like to know if roadmaps have ever been discussed to implement Mapfile Styling with SLD. Thanks, Giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Fri Jun 22 10:42:23 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 22 Jun 2012 17:42:23 +0000 Subject: [mapserver-users] ESRI file geodatabase and php mapscript In-Reply-To: <4FE4AA7C.4050604@gatewaygeomatics.com> Message-ID: OGR does work with ESRI FileGDB tables that are non-spatial. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/22/12 1:25 PM, "Jeff McKenna" wrote: >On 12-06-22 12:46 PM, Brian Fischer wrote: >> Hi, >> >> I was wondering if anyone is willing to share any experience they have >> had with using an ESRI File Geodatabase with MapServer. Specifically >> I?m wondering about: >> >> 1) How is the performance when compared against other data sources >> for rendering maps? Does OGR/GDAL make use of spatial indexes? >> >> 2) Can a file geodatabase be accessed through PHP or Python >> mapscript for querying/searching? >> >> 3) Could I access a standalone table (non-spatial table) that is >> stored in a file geodatabase with mapscript? Many want to use this for >> joins and relates in my queries. >> > >Hi Brian, > >We did start to look at FileGDB support in MapServer during last year's >WMS Benchmarking exercise. At the time we were a little early for this >testing, as the FileGDB driver was still going through development; but >now, FileGDB has been available in MS4W since January, and we might take >a look at this again for the upcoming WMS Benchmarking exercise for >September (this may address your performance questions). > >As for your specific mapscript questions, as MapServer uses OGR to >connect to FileGDB layers, you should be able to connect to that layer >through mapscript with a CONNECTIONTYPE OGR, no different than other OGR >connections. > >That's a good question about non-spatial tables, did you try an ogrinfo >on that table? Give that a try with MS4W, and then if you can see the >table with ogrinfo then you'll know that at least GDAL/OGR can access it. > >-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 From giohappy at gmail.com Fri Jun 22 11:17:24 2012 From: giohappy at gmail.com (G. Allegri) Date: Fri, 22 Jun 2012 20:17:24 +0200 Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? In-Reply-To: References: Message-ID: Thanks Steve, unfortunatley I'm not such an expert programmer to help in implementing the code, but I can give some time to partecipate to its development somehow. I hope someone with enough expertise will appear :) giovanni 2012/6/22 Lime, Steve D (DNR) > Hi Giovanni: Inline SLD has been talked about and was on the roadmap for > 6.0 I believe. Sadly it didn?t get done for that release and out resident > SLD expert has had precious little time to spend on the project in recent > months. I think it?s going to take a particularly motivated developer or > user to make it happen (patches gladly accepted). Conceptually it doesn?t > seem that difficult. That is, defining an SLD block within a class or a > style or should it be within a layer. I guess that?s where the > complications lie. It really depends on the SLD capabilities already part > of MapServer. Seems to me that if you can read SLD from a WMS request then > pulling from the mapfile proper shouldn?t be difficult.**** > > ** ** > > Steve**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *G. Allegri > *Sent:* Friday, June 22, 2012 10:53 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] will Mapserver ever support SLD inside > Mapfile?**** > > ** ** > > I know this is a topic asked many times, but since it's quite a long time > I don't work extensively with MS, I would like to know if roadmaps have > ever been discussed to implement Mapfile Styling with SLD.**** > > ** ** > > Thanks,**** > > Giovanni**** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 22 11:49:57 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Jun 2012 15:49:57 -0300 Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? In-Reply-To: References: Message-ID: <4FE4BE55.5010001@gatewaygeomatics.com> Giovanni, I agree inline SLD would be very powerful for MapServer, and now that QGIS can import/export SLDs, it would be a great way to share styles between different projects. Like Steve said, I feel it just needs a "champion" - someone who really wants it to happen in MapServer, and that person doesn't need to be a coder/developer at all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From kadumpires at gmail.com Fri Jun 22 12:37:45 2012 From: kadumpires at gmail.com (Kadu Machado) Date: Fri, 22 Jun 2012 16:37:45 -0300 Subject: [mapserver-users] QGIS WEB Client / Qgis Server In-Reply-To: References: Message-ID: Hi folks.... I have a little issue with Qgis WebClient over Windows.... When I access the qgis web client, the layers and labels are loaded and are showed normally, but the map dont.... After the message loading map, the map just dont open. The frame is still blank. I notice that a Internal Error 500 occour: 1. GET http://srv-vibgeo01/qgis/qgis_mapserv.fcgi.exe?map=c:\projetos\redes.qgs&LAYERS=pk_kombiniert&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=174575.63035781,8246018.1303578,194419.36964219,8265861.8696422&WIDTH=300&HEIGHT=300500 (Internal Server Error) OpenLayers.js:1000 Anyone has some ideia how to solve this problem??? -- "Quem quer fazer alguma coisa, encontra um meio. Quem n?o quer fazer nada, encontra uma desculpa." (Roberto Shinyashiki) -- "Quem quer fazer alguma coisa, encontra um meio. Quem n?o quer fazer nada, encontra uma desculpa." (Roberto Shinyashiki) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Fri Jun 22 14:40:51 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Fri, 22 Jun 2012 21:40:51 +0000 Subject: [mapserver-users] Strange coordinates used in GetFeatureInfo request Message-ID: All, Does "GetFeatureInfo" have a coordinate translation problem? Consider the WMS request shown here (ignore line wrapping): http://localhost/mapserver/mapserv.exe ?map=m01.map &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetFeatureInfo &LAYERS=External &QUERY_LAYERS=External &INFO_FORMAT=text/plain &x=0.0&y=0.0 &SRS=EPSG:4326 &BBOX=-10,-10,10,10 &width=500&height=500 In the mapfile below, all coordinate system references are to "4326". Forcing an error in the DATA statement makes me think the (0,0) coordinate pair is mistranslated, as shown by the message below which includes: shape_BOGUS.STIntersects( geometry::STGeomFromText('POINT(-9.98 9.98)',4326)) = 1 Is there a problem with my request or with my mapfile? Following is the mapfile and some experiments that I performed. I'm using MapServer 6.1-DEV with Sql Server 2008 under Windows XP. The relevant mapfile is defined as: map name m01 status on size 500 500 extent -20 -20 20 20 units dd imagecolor 255 255 255 projection "init=epsg:4326" end web imagepath "c:\ms4w\tmp\ms_tmp" imageurl "/ms_tmp/" metadata "wms_title" "test-title" "wms_extent" "-180 -90 180 90" "wms_srs" "EPSG:4326" "ows_enable_request" "GetCapabilities GetMap GetFeature GetFeatureInfo" end end layer name "External" type polygon status on metadata "wms_title" "External" "wms_extent" "-180 -90 180 90" "wms_srs" "EPSG:4326" "ows_include_items" "all" "wms_include_items" "all" "gml_include_items" "all" "gml_geometries" "multiPolygon" "gml_multiPolygon_type" "multipolygon" end dump true header "C:\ms4w\Apache\cgi-bin\m01_header.htm" template "C:\ms4w\Apache\cgi-bin\m01_template.html" footer "C:\ms4w\Apache\cgi-bin\m01_footer.html" projection "init=epsg:4326" end units dd # ExternalData table created and populated in Sql Server 2008 with: # create table ExternalData # (ID varchar(10) primary key, shape Geometry not null); # insert into ExternalData (id, shape) values ('x102', # geometry::STGeomFromText('polygon((-20 -20,-20 20,20 20,20 -20,-20 -20))', 4326)) connection "server=...;database=test;uid=...;pwd=..." connectiontype plugin plugin "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" data "shape from dbo.ExternalData using unique ID using srid=4326" labelitem "ID" class name "ExternalClass" style color 255 0 0 outlinecolor 0 255 0 end label position auto size small color 0 0 0 end end end end Note that the WMS request, the MAP and the LAYER are all defined with the "4326" projection. If I change the DATA statement to force an error, data "shape_BOGUS from dbo.ExternalData using unique ID using srid=4326" the error returned shows: msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL statement: SELECT convert(varchar(max), id), shape_BOGUS.STAsBinary(), convert(varchar(36), ID) from dbo.ExternalData WHERE shape_BOGUS.STIntersects( geometry::STGeomFromText('POINT(-9.98 9.98)',4326)) = 1 Please note that the POINT location should be (0,0). Why isn't it? A similar problem occurs if the feature is defined "inline" as described below. Some additional details: 1. If I remove the "_BOGUS", a result is returned. Therefore I believe that the mapfile is well-formed. 2. With "_BOGUS" removed, and the polygon redefined in the database as POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)), no result is returned. Therefore I believe that the bad coordinates in the query are being used. 3. If I define and use an "Internal" layer: layer name "Internal" type polygon status on metadata "wms_title" "Internal" "wms_extent" "-180 -90 180 90" "wms_srs" "EPSG:4326" "ows_include_items" "all" "wms_include_items" "all" "gml_include_items" "all" "gml_geometries" "multiPolygon" "gml_multiPolygon_type" "multipolygon" end dump true header "C:\ms4w\Apache\cgi-bin\m01_header.htm" template "C:\ms4w\Apache\cgi-bin\m01_template.html" footer "C:\ms4w\Apache\cgi-bin\m01_footer.html" projection "init=epsg:4326" end units dd feature wkt "polygon((-20 -20,-20 20,20 20,20 -20,-20 -20))" items "x101" end processing "items=ID" labelitem "ID" class name "InternalClass" style color 255 0 0 outlinecolor 0 255 0 end label position auto size small color 0 0 0 end end end then the query returns a result. Therefore I believe that the mapfile is well-formed. 4. If I change the feature to "POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5))", no result is returned by the query. Therefore I believe that the bad coordinate problem occurs not only for Sal Server but for an inline feature as well. 5. GetMap shows the expected polygons for both the Internal and External layers when specifying "&x=0&y=0" and using a feature defined as "POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)). Therefore I believe that the problem is specific to GetFeatureInfo. - Phil Anzel ?????? Contractor for USDA/NRCS ?????? ITC Web Soil Survey Team Member This electronic message contains information generated by the USDA solely for the intended recipients.? Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.? If you believe you have received this message in error, please notify the sender and delete the email immediately. From matt at wildwalks.com Fri Jun 22 19:16:21 2012 From: matt at wildwalks.com (Matt McClelland) Date: Sat, 23 Jun 2012 12:16:21 +1000 Subject: [mapserver-users] Map Border Message-ID: Hi All I am wanting to output a map for printing, via WMS. Is there are way to put a 'border' on the map like in this example http://www.ghosttowns.com/Images/utm.jpg With the Graticule values in the margins? If not, does anyone have an example going it with php mapscript, that they are happy to share?? THanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at gmail.com Sat Jun 23 05:54:27 2012 From: mikesaunt at gmail.com (Mike Saunt) Date: Sat, 23 Jun 2012 13:54:27 +0100 Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile? In-Reply-To: <4FE4BE55.5010001@gatewaygeomatics.com> References: <4FE4BE55.5010001@gatewaygeomatics.com> Message-ID: Would it be difficult to be able to reference sld's locally too via external files path? currently I think they have to be url based On Jun 22, 2012 7:50 PM, "Jeff McKenna" wrote: > Giovanni, > > I agree inline SLD would be very powerful for MapServer, and now that > QGIS can import/export SLDs, it would be a great way to share styles > between different projects. > > Like Steve said, I feel it just needs a "champion" - someone who really > wants it to happen in MapServer, and that person doesn't need to be a > coder/developer at all. > > -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 dmorissette at mapgears.com Sat Jun 23 08:00:31 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Sat, 23 Jun 2012 11:00:31 -0400 Subject: [mapserver-users] Strange coordinates used in GetFeatureInfo request In-Reply-To: References: Message-ID: <4FE5DA0F.2040700@mapgears.com> I didn't read your whole mail, but short answer is that I suspect you are overlooking the fact that in GetFeatureInfo, the X and Y coordinates are in pixels within the view of the map (which is 500x500 pixels in your example). So when you write x=0&y=0 that refers to the top-left corner of the map view, and not the 0,0 of the SRS coordinate system... which corresponds to longitude=-10, and latitude=+10. Actually, the x,y value is translated to be the center of the top-left pixel (and not its top-left boundary), which explains why you get lon,lat=9.98,9.98 in the query. Daniel On 12-06-22 5:40 PM, Anzel, Phil - NRCS, Fort Collins, CO wrote: > All, > > Does "GetFeatureInfo" have a coordinate translation problem? > > Consider the WMS request shown here (ignore line wrapping): > http://localhost/mapserver/mapserv.exe > ?map=m01.map > &SERVICE=WMS > &VERSION=1.1.1 > &REQUEST=GetFeatureInfo > &LAYERS=External > &QUERY_LAYERS=External > &INFO_FORMAT=text/plain > &x=0.0&y=0.0 > &SRS=EPSG:4326 > &BBOX=-10,-10,10,10 > &width=500&height=500 > > In the mapfile below, all coordinate system references are to "4326". Forcing an error in the DATA statement makes me think the (0,0) coordinate pair is mistranslated, as shown by the message below which includes: > shape_BOGUS.STIntersects( > geometry::STGeomFromText('POINT(-9.98 9.98)',4326)) = 1 > > Is there a problem with my request or with my mapfile? > > Following is the mapfile and some experiments that I performed. I'm using MapServer 6.1-DEV with Sql Server 2008 under Windows XP. > > The relevant mapfile is defined as: > > map > name m01 > status on > size 500 500 > extent -20 -20 20 20 > units dd > imagecolor 255 255 255 > projection "init=epsg:4326" end > > web > imagepath "c:\ms4w\tmp\ms_tmp" > imageurl "/ms_tmp/" > metadata > "wms_title" "test-title" > "wms_extent" "-180 -90 180 90" > "wms_srs" "EPSG:4326" > "ows_enable_request" "GetCapabilities GetMap GetFeature GetFeatureInfo" > end > end > layer > name "External" > type polygon > status on > metadata > "wms_title" "External" > "wms_extent" "-180 -90 180 90" > "wms_srs" "EPSG:4326" > "ows_include_items" "all" > "wms_include_items" "all" > "gml_include_items" "all" > "gml_geometries" "multiPolygon" > "gml_multiPolygon_type" "multipolygon" > end > dump true > header "C:\ms4w\Apache\cgi-bin\m01_header.htm" > template "C:\ms4w\Apache\cgi-bin\m01_template.html" > footer "C:\ms4w\Apache\cgi-bin\m01_footer.html" > projection "init=epsg:4326" end > units dd > # ExternalData table created and populated in Sql Server 2008 with: > # create table ExternalData > # (ID varchar(10) primary key, shape Geometry not null); > # insert into ExternalData (id, shape) values ('x102', > # geometry::STGeomFromText('polygon((-20 -20,-20 20,20 20,20 -20,-20 -20))', 4326)) > connection "server=...;database=test;uid=...;pwd=..." > connectiontype plugin > plugin "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" > data "shape from dbo.ExternalData using unique ID using srid=4326" > labelitem "ID" > class > name "ExternalClass" > style color 255 0 0 outlinecolor 0 255 0 end > label position auto size small color 0 0 0 end > end > end > end > > Note that the WMS request, the MAP and the LAYER are all defined with the "4326" projection. > > If I change the DATA statement to force an error, > data "shape_BOGUS from dbo.ExternalData using unique ID using srid=4326" > the error returned shows: > msMSSQL2008LayerGetShape(): Query error. > Error executing MSSQL2008 SQL statement: > SELECT > convert(varchar(max), id), > shape_BOGUS.STAsBinary(), > convert(varchar(36), ID) > from dbo.ExternalData > WHERE shape_BOGUS.STIntersects( > geometry::STGeomFromText('POINT(-9.98 9.98)',4326)) = 1 > > Please note that the POINT location should be (0,0). Why isn't it? > > A similar problem occurs if the feature is defined "inline" as described below. > > Some additional details: > > 1. If I remove the "_BOGUS", a result is returned. Therefore I believe that the mapfile is well-formed. > > 2. With "_BOGUS" removed, and the polygon redefined in the database as POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)), no result is returned. Therefore I believe that the bad coordinates in the query are being used. > > 3. If I define and use an "Internal" layer: > layer > name "Internal" > type polygon > status on > metadata > "wms_title" "Internal" > "wms_extent" "-180 -90 180 90" > "wms_srs" "EPSG:4326" > "ows_include_items" "all" > "wms_include_items" "all" > "gml_include_items" "all" > "gml_geometries" "multiPolygon" > "gml_multiPolygon_type" "multipolygon" > end > dump true > header "C:\ms4w\Apache\cgi-bin\m01_header.htm" > template "C:\ms4w\Apache\cgi-bin\m01_template.html" > footer "C:\ms4w\Apache\cgi-bin\m01_footer.html" > projection "init=epsg:4326" end > units dd > feature > wkt "polygon((-20 -20,-20 20,20 20,20 -20,-20 -20))" > items "x101" > end > processing "items=ID" > labelitem "ID" > class > name "InternalClass" > style color 255 0 0 outlinecolor 0 255 0 end > label position auto size small color 0 0 0 end > end > end > then the query returns a result. Therefore I believe that the mapfile is well-formed. > > 4. If I change the feature to "POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5))", no result is returned by the query. Therefore I believe that the bad coordinate problem occurs not only for Sal Server but for an inline feature as well. > > 5. GetMap shows the expected polygons for both the Internal and External layers when specifying "&x=0&y=0" and using a feature defined as "POLYGON((-5 -5,-5 5,5 5,5 -5,-5 -5)). Therefore I believe that the problem is specific to GetFeatureInfo. > > - Phil Anzel > Contractor for USDA/NRCS > ITC Web Soil Survey Team Member > > This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From dmorissette at mapgears.com Sat Jun 23 08:08:39 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Sat, 23 Jun 2012 11:08:39 -0400 Subject: [mapserver-users] Strange coordinates used in GetFeatureInfo request In-Reply-To: <4FE5DA0F.2040700@mapgears.com> References: <4FE5DA0F.2040700@mapgears.com> Message-ID: <4FE5DBF7.9000504@mapgears.com> On 12-06-23 11:00 AM, Daniel Morissette wrote: > I didn't read your whole mail, but short answer is that I suspect you > are overlooking the fact that in GetFeatureInfo, the X and Y coordinates > are in pixels within the view of the map (which is 500x500 pixels in > your example). > > So when you write x=0&y=0 that refers to the top-left corner of the map > view, and not the 0,0 of the SRS coordinate system... which corresponds > to longitude=-10, and latitude=+10. Actually, the x,y value is > translated to be the center of the top-left pixel (and not its top-left > boundary), which explains why you get lon,lat=9.98,9.98 in the query. > Please let me reword this last paragraph to make it a little more clear: When you write X=0&Y=0 in your GetFeatureInfo request that refers to the top-left corner of the map view which is located at longitude=-10, and latitude=+10, and not to the 0.0,0.0 of the SRS=EPSG:4326 coordinate system. Actually, the X,Y value is translated to be the center of the top-left pixel (and not its top-left boundary), which explains why you get lon,lat=-9.98,9.98 in the query. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From bfraser at geoanalytic.com Sat Jun 23 09:33:52 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 23 Jun 2012 10:33:52 -0600 Subject: [mapserver-users] Map Border In-Reply-To: References: Message-ID: <4FE5EFF0.4080704@geoanalytic.com> Matt, Personally, I think if you are using WMS protocol the generation of printed map should be responsibility of the WMS client, not the server (this would include page layout components of border, graticule, north arrow, key map, titles, etc). That being said, I don't know of an Open Source desktop WMS client that is capable of rendering a good graticule, but I haven't checked lately (you could check Quantum GIS, gvSIG, and uDig). GeoMoose (http://www.geomoose.org/), a web-mapping solution, does map composing and printing using PHP and MapScript, but no graticule support. Mapfish, another web mapping solution, has some nice printing support, but I don't know if it does a graticule. As for plain-old Mapserver, here's a link to an old discussion with a couple of tricks: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg04550.html Best Regards, Brent Fraser On 6/22/2012 8:16 PM, Matt McClelland wrote: > Hi All > > I am wanting to output a map for printing, via WMS. > Is there are way to put a 'border' on the map like in this example > http://www.ghosttowns.com/Images/utm.jpg > With the Graticule values in the margins? > > If not, does anyone have an example going it with php mapscript, that > they are happy to share?? > > THanks > > Matt :) > > > > _______________________________________________ > 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 Sun Jun 24 08:21:16 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 24 Jun 2012 12:21:16 -0300 Subject: [mapserver-users] Map Border In-Reply-To: References: Message-ID: <4FE7306C.1070701@gatewaygeomatics.com> On 12-06-22 11:16 PM, Matt McClelland wrote: > Hi All > > I am wanting to output a map for printing, via WMS. > Is there are way to put a 'border' on the map like in this example > http://www.ghosttowns.com/Images/utm.jpg > With the Graticule values in the margins? > > If not, does anyone have an example going it with php mapscript, that > they are happy to share?? Hi Matt, Please follow the GRID object documentation for adding a map graticule/grid: http://www.mapserver.org/mapfile/grid.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From arul_gi at rediffmail.com Sun Jun 24 10:25:09 2012 From: arul_gi at rediffmail.com (arul ) Date: 24 Jun 2012 17:25:09 -0000 Subject: [mapserver-users] =?utf-8?q?mapserver_set_no_image_available?= In-Reply-To: <20120528151403.32335.qmail@f4mail-235-247.rediffmail.com> Message-ID: <1338218882.S.5111.1722.H.WWFydWwgIABbbWFwc2VydmVyLXVzZXJzXSBtYXBzZXJ2ZXIgc2V0IG5vIGltYWdlIGF2YWlsYWJsZQ__.RU.rfs216, rfs216, 379, 214.f4-234-159.1340558709.8664@webmail.rediffmail.com> Hi guys any answer to this question? Regards Arul On Mon, 28 May 2012 20:58:02 +0530 wrote >Hi > > See the below link having question, any answer for this question. > > http://gis.stackexchange.com/questions/16285/mapserver-set-no-image-available > > Regards > Arul.... ************************************************ > M.Arul raj > 09885011650 > ************************************************ FollowRediff Deal ho jaye!to get exciting offers in your city everyday. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ************************************************ M.Arul raj 09885011650 ************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Jun 24 12:37:23 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 24 Jun 2012 21:37:23 +0200 Subject: [mapserver-users] Avoid label overlaps Message-ID: Hi, Is possible to force mapserver to avoid the overlaps of label of distinct layers ? I need to avoid the overlaps of all the label of the view. To have this I try to define the LABELCACHE ON on every layer and also POSITION AUTO and BUFFER 10 but always I'm having some label of layer-A overlap other labels of layer-B. There is something I forgot ? I'm using the mapserver trunk version. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Jun 24 12:53:29 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 24 Jun 2012 15:53:29 -0400 Subject: [mapserver-users] Avoid label overlaps In-Reply-To: References: Message-ID: <4FE77039.1090708@swoodbridge.com> Andrea, This is the way mapserver should work, so it sounds like a bug in trunk. LABELCACHE ON shoudl be the default case and you do not need to explicitly put it in the mapfile. Make sure you do not have FORCE ON on any of your LABEL blocks as this make that label blind to the label cache mechanism. Ideally if you can make a trival mapfile that reproduces this and include it in a bug, I'm sure someone will resolve it quickly. -Steve W On 6/24/2012 3:37 PM, Andrea Peri wrote: > Hi, > > Is possible to force mapserver to avoid the overlaps of label of > distinct layers ? > I need to avoid the overlaps of all the label of the view. > > To have this > I try to define the > > LABELCACHE ON > on every layer > and also > POSITION AUTO > and > BUFFER 10 > > but always I'm having some label of layer-A overlap other labels of layer-B. > > There is something I forgot ? > > I'm using the mapserver trunk version. > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Sun Jun 24 23:18:00 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 25 Jun 2012 06:18:00 +0000 Subject: [mapserver-users] QGIS WEB Client / Qgis Server In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A6345A148@suutari.haapa.mmm.fi> Hi, Ask from Qgis users mailing list about Ggis Mapserver, this MapServer is a different project. -Jukka Rahkonen- ________________________________ Kadu Machado wrote: > Hi folks.... > I have a little issue with Qgis WebClient over Windows.... > When I access the qgis web client, the layers and labels are loaded and are showed normally, but the map dont.... After the message loading map, the map just dont open. The frame is still blank. > I notice that a Internal Error 500 occour: 1. GET http://srv-vibgeo01/qgis/qgis_mapserv.fcgi.exe?map=c:\projetos\redes.qgs&LAYERS=pk_kombiniert&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=174575.63035781,8246018.1303578,194419.36964219,8265861.8696422&WIDTH=300&HEIGHT=300 500 (Internal Server Error) OpenLayers.js:1000 Anyone has some ideia how to solve this problem??? -- "Quem quer fazer alguma coisa, encontra um meio. Quem n?o quer fazer nada, encontra uma desculpa." (Roberto Shinyashiki) -- "Quem quer fazer alguma coisa, encontra um meio. Quem n?o quer fazer nada, encontra uma desculpa." (Roberto Shinyashiki) From Phil.Anzel at ftc.usda.gov Mon Jun 25 06:49:05 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Mon, 25 Jun 2012 13:49:05 +0000 Subject: [mapserver-users] Strange coordinates used in GetFeatureInfo request Message-ID: Hi, Daniel, What a relief. Thank you so much for the clarification. - Phil Anzel Contractor for USDA/NRCS ITC Web Soil Survey Team Member Date: Sat, 23 Jun 2012 11:08:39 -0400 From: Daniel Morissette To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Strange coordinates used in GetFeatureInfo request Message-ID: <4FE5DBF7.9000504 at mapgears.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 12-06-23 11:00 AM, Daniel Morissette wrote: > I didn't read your whole mail, but short answer is that I suspect you > are overlooking the fact that in GetFeatureInfo, the X and Y coordinates > are in pixels within the view of the map (which is 500x500 pixels in > your example). > > So when you write x=0&y=0 that refers to the top-left corner of the map > view, and not the 0,0 of the SRS coordinate system... which corresponds > to longitude=-10, and latitude=+10. Actually, the x,y value is > translated to be the center of the top-left pixel (and not its top-left > boundary), which explains why you get lon,lat=9.98,9.98 in the query. > Please let me reword this last paragraph to make it a little more clear: When you write X=0&Y=0 in your GetFeatureInfo request that refers to the top-left corner of the map view which is located at longitude=-10, and latitude=+10, and not to the 0.0,0.0 of the SRS=EPSG:4326 coordinate system. Actually, the X,Y value is translated to be the center of the top-left pixel (and not its top-left boundary), which explains why you get lon,lat=-9.98,9.98 in the query. 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. From woodbri at swoodbridge.com Mon Jun 25 09:42:07 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 25 Jun 2012 12:42:07 -0400 Subject: [mapserver-users] Avoid label overlaps In-Reply-To: <4FE77039.1090708@swoodbridge.com> References: <4FE77039.1090708@swoodbridge.com> Message-ID: <4FE894DF.1060402@swoodbridge.com> Andrea, Did you get this resolved? Did you open a bug for it? What number? We are starting the 6.2 release cycle and if this is an issue we need to get it fixed. Thanks, -Steve W On 6/24/2012 3:53 PM, Stephen Woodbridge wrote: > Andrea, > > This is the way mapserver should work, so it sounds like a bug in trunk. > LABELCACHE ON shoudl be the default case and you do not need to > explicitly put it in the mapfile. Make sure you do not have FORCE ON on > any of your LABEL blocks as this make that label blind to the label > cache mechanism. > > Ideally if you can make a trival mapfile that reproduces this and > include it in a bug, I'm sure someone will resolve it quickly. > > -Steve W > > On 6/24/2012 3:37 PM, Andrea Peri wrote: >> Hi, >> >> Is possible to force mapserver to avoid the overlaps of label of >> distinct layers ? >> I need to avoid the overlaps of all the label of the view. >> >> To have this >> I try to define the >> >> LABELCACHE ON >> on every layer >> and also >> POSITION AUTO >> and >> BUFFER 10 >> >> but always I'm having some label of layer-A overlap other labels of >> layer-B. >> >> There is something I forgot ? >> >> I'm using the mapserver trunk version. >> >> Thx, >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> >> >> >> _______________________________________________ >> 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 donald.kerr at dkerr.co.uk Mon Jun 25 12:54:36 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 25 Jun 2012 20:54:36 +0100 Subject: [mapserver-users] Grouping WFS Layers to Output One GML file Message-ID: <5B3401D093734A339B58022EE9E9A369@DELLM4500> Is it possible to group WFS layers, in much the same way as WMS: "wms_group_title" "Several_Layers", so that a single gml file is returned from Mapserver? To explain what I'm trying to do: I want to output several WFS layers as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. The easiest way for me to do this would be if I could group the WFS layers at the Mapserver level and provide a link to that WFS request. Alternatively, can anyone provide some ideas as to how this could be done by, for example, OpenLayers (I know, wrong group!) or maybe some sort of server side joining of multiple WFS layers. Many thanks. Regards, Donald From Jukka.Rahkonen at mmmtike.fi Mon Jun 25 13:46:31 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 25 Jun 2012 20:46:31 +0000 Subject: [mapserver-users] Grouping WFS Layers to Output One GML file In-Reply-To: <5B3401D093734A339B58022EE9E9A369@DELLM4500> References: <5B3401D093734A339B58022EE9E9A369@DELLM4500> Message-ID: <84446DEF76453C439E9E97E438E13A6345A276@suutari.haapa.mmm.fi> Hi, Have you tried what happens if you give a list of layers as typename? This should send you some data from TinyOWS http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeature&typename=lv:puolilehti_25t,lv:puolilehti_50t -Jukka Rahkonen- ________________________________________ Donald Kerr wrote: > Is it possible to group WFS layers, in much the same way as WMS: "wms_group_title" "Several_Layers", so that a single gml file is returned from Mapserver? > To explain what I'm trying to do: I want to output several WFS layers as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. The easiest way for me to do this would be if I could group the WFS layers at the Mapserver level and provide a link to that WFS request. Alternatively, can anyone provide some ideas as to how this could be done by, for example, OpenLayers (I know, wrong group!) or maybe some sort of server side joining of multiple WFS layers. Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Jun 25 14:51:45 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 25 Jun 2012 22:51:45 +0100 Subject: [mapserver-users] Grouping WFS Layers to Output One GML file In-Reply-To: <84446DEF76453C439E9E97E438E13A6345A276@suutari.haapa.mmm.fi> Message-ID: Jukka, I hadn't tried it but I have now and it works (comma separated list - no spaces). It's such a simple and obvious thing to try that I feel like a bit of a tit for not having thought about it!! Many thanks for your assistance. Regards, Donald -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 25 June 2012 21:47 To: Donald Kerr; 'MAPSERVER USERS' Subject: Re: [mapserver-users] Grouping WFS Layers to Output One GML file Hi, Have you tried what happens if you give a list of layers as typename? This should send you some data from TinyOWS http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeat ure&typename=lv:puolilehti_25t,lv:puolilehti_50t -Jukka Rahkonen- ________________________________________ Donald Kerr wrote: > Is it possible to group WFS layers, in much the same way as WMS: "wms_group_title" "Several_Layers", so that a single gml file is returned from Mapserver? > To explain what I'm trying to do: I want to output several WFS layers > as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. The easiest way for me to do this would be if I could group the WFS layers at the Mapserver level and provide a link to that WFS request. Alternatively, can anyone provide some ideas as to how this could be done by, for example, OpenLayers (I know, wrong group!) or maybe some sort of server side joining of multiple WFS layers. Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users = From aperi2007 at gmail.com Mon Jun 25 15:17:05 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 26 Jun 2012 00:17:05 +0200 Subject: [mapserver-users] Avoid label overlaps In-Reply-To: <4FE894DF.1060402@swoodbridge.com> References: <4FE77039.1090708@swoodbridge.com> <4FE894DF.1060402@swoodbridge.com> Message-ID: Hi Steve, sorry for very late response, I was take from another serious bug on the operating system of my server. About the overlap label question: Seem I was able to resolve the question about label overlaps. :) >explicitly put it in the mapfile. Make sure you do not have FORCE ON on >any of your LABEL blocks as this make that label blind to the label >cache mechanism. As you suggest the problem was due to a FORCE ON command. Thx again for your hint. Andrea. 2012/6/25 Stephen Woodbridge > Andrea, > > Did you get this resolved? > Did you open a bug for it? What number? > > We are starting the 6.2 release cycle and if this is an issue we need to > get it fixed. > > Thanks, > -Steve W > > > On 6/24/2012 3:53 PM, Stephen Woodbridge wrote: > >> Andrea, >> >> This is the way mapserver should work, so it sounds like a bug in trunk. >> LABELCACHE ON shoudl be the default case and you do not need to >> explicitly put it in the mapfile. Make sure you do not have FORCE ON on >> any of your LABEL blocks as this make that label blind to the label >> cache mechanism. >> >> Ideally if you can make a trival mapfile that reproduces this and >> include it in a bug, I'm sure someone will resolve it quickly. >> >> -Steve W >> >> On 6/24/2012 3:37 PM, Andrea Peri wrote: >> >>> Hi, >>> >>> Is possible to force mapserver to avoid the overlaps of label of >>> distinct layers ? >>> I need to avoid the overlaps of all the label of the view. >>> >>> To have this >>> I try to define the >>> >>> LABELCACHE ON >>> on every layer >>> and also >>> POSITION AUTO >>> and >>> BUFFER 10 >>> >>> but always I'm having some label of layer-A overlap other labels of >>> layer-B. >>> >>> There is something I forgot ? >>> >>> I'm using the mapserver trunk version. >>> >>> Thx, >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> >>> >>> >>> ______________________________**_________________ >>> 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 > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.dussiaume at mentum.com Mon Jun 25 19:25:01 2012 From: ryan.dussiaume at mentum.com (Ryan Dussiaume) Date: Mon, 25 Jun 2012 22:25:01 -0400 Subject: [mapserver-users] Dynamic Pie Piece Marker Message-ID: Hi, I'm trying to create a point marker shaped like a pie piece where the pie piece can be various sizes based on an attribute of the point. For example, it could look like a piece of pie when the attribute is 30 degrees or it could look like Pacman if the attribute is 300 degrees. The color of the pie piece would be determined by an attribute as well. Does anyone know if this is possible with MapServer and how to do it? I was hoping that I could layer two lines on top of a circle and then somehow define a mask for the circle symbol so that the unwanted piece is cut out. After some research, it doesn't seem like it's possible. Has anyone done anything similar? Thanks, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Mon Jun 25 21:09:51 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 26 Jun 2012 16:09:51 +1200 Subject: [mapserver-users] Dynamic Pie Piece Marker In-Reply-To: References: Message-ID: <4FE9DECF020000370000C02D@gate1.asurequality.com> You could create 36 symbols covering pie wedges in 10 degree increments, then select which one by rounding your attribute to the nearest 10 degrees and selecting the appropriate symbol. Fill color could be selected by the second attribute. regards, Robert >>> Ryan Dussiaume 26/06/2012 2:25 p.m. >>> Hi, I'm trying to create a point marker shaped like a pie piece where the pie piece can be various sizes based on an attribute of the point. For example, it could look like a piece of pie when the attribute is 30 degrees or it could look like Pacman if the attribute is 300 degrees. The color of the pie piece would be determined by an attribute as well. Does anyone know if this is possible with MapServer and how to do it? I was hoping that I could layer two lines on top of a circle and then somehow define a mask for the circle symbol so that the unwanted piece is cut out. After some research, it doesn't seem like it's possible. Has anyone done anything similar? Thanks, Ryan This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From aperi2007 at gmail.com Tue Jun 26 01:23:56 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 26 Jun 2012 10:23:56 +0200 Subject: [mapserver-users] Support SLD and mapscript Message-ID: Hi, On the trunk version of mapserver is mandatory the option --enable-python-mapscript to have the support for SLD remote ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Tue Jun 26 01:46:23 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 26 Jun 2012 09:46:23 +0100 Subject: [mapserver-users] Grouping WFS Layers to Output One GML file In-Reply-To: <84446DEF76453C439E9E97E438E13A6345A276@suutari.haapa.mmm.fi> Message-ID: <8C9B4B4A462A4748AC0724E1C6E17E9B@DELLM4500> I need some further help if possible. I have got more than one layer to work but am getting an error "Wrong number of filter elements" when trying to apply a BBOX filter to the GetFeature request. I can get the WFS GetFeature query to work for a single layer as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1&maxfeatures=50&outputformat=gml3 And for two layers as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1,Layer2&maxfeatures=50&outputformat=gml3 I can also filter the single layer as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1&maxfeatures=50&outputformat=gml3&Filter=msGeometry56273,779431 56273,779431 But, if I try to filter on two layers as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1,Layer2&maxfeatures=50&outputformat=gml3&Filter= msGeometry56273,779431 56273,779431 I get an error: - - msWFSGetFeature(): WFS server error. Wrong number of filter elements, one filter must be specified for each feature type listed in the TYPENAME parameter. I've tried various methods for specifying multiple filters but cannot get it to work. Can anyone advise please? Many thanks. Regards, Donald -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 25 June 2012 21:47 To: Donald Kerr; 'MAPSERVER USERS' Subject: Re: [mapserver-users] Grouping WFS Layers to Output One GML file Hi, Have you tried what happens if you give a list of layers as typename? This should send you some data from TinyOWS http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeat ure&typename=lv:puolilehti_25t,lv:puolilehti_50t -Jukka Rahkonen- ________________________________________ Donald Kerr wrote: > Is it possible to group WFS layers, in much the same way as WMS: "wms_group_title" "Several_Layers", so that a single gml file is returned from Mapserver? > To explain what I'm trying to do: I want to output several WFS layers > as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. The easiest way for me to do this would be if I could group the WFS layers at the Mapserver level and provide a link to that WFS request. Alternatively, can anyone provide some ideas as to how this could be done by, for example, OpenLayers (I know, wrong group!) or maybe some sort of server side joining of multiple WFS layers. Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users = From Jukka.Rahkonen at mmmtike.fi Tue Jun 26 02:39:07 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 26 Jun 2012 09:39:07 +0000 Subject: [mapserver-users] Grouping WFS Layers to Output One GML file In-Reply-To: <8C9B4B4A462A4748AC0724E1C6E17E9B@DELLM4500> References: <84446DEF76453C439E9E97E438E13A6345A276@suutari.haapa.mmm.fi>, <8C9B4B4A462A4748AC0724E1C6E17E9B@DELLM4500> Message-ID: <84446DEF76453C439E9E97E438E13A6345A315@suutari.haapa.mmm.fi> Hi, It seems to be a bit complicated but perhaps reading this thread helps http://osgeo-org.1560.n6.nabble.com/WFS-multiple-typenames-in-request-only-one-in-reply-td4232816.html Strictly speaking your filter is rather bad. You are using WFS 1.1.0 and GML 3 but your filter is using GML 2 "box" which does not exist at all in GML 3 and "coordinates" which is deprecated. I would suggest to use WFS 1.0.0 when your filter is OK or then build correct GML 3 filters. Your mixture may work with Mapserver but most probably not with schema validating servers like TinyOWS and deegree. -Jukka Rahkonen- ________________________________________ L?hett?j?: Donald Kerr [donald.kerr at dkerr.co.uk] L?hetetty: 26. kes?kuuta 2012 11:46 Vastaanottaja: Rahkonen Jukka; 'MAPSERVER USERS' Aihe: RE: [mapserver-users] Grouping WFS Layers to Output One GML file I need some further help if possible. I have got more than one layer to work but am getting an error "Wrong number of filter elements" when trying to apply a BBOX filter to the GetFeature request. I can get the WFS GetFeature query to work for a single layer as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1&maxfeatures=50&outputformat=gml3 And for two layers as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1,Layer2&maxfeatures=50&outputformat=gml3 I can also filter the single layer as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1&maxfeatures=50&outputformat=gml3&Filter=msGeometry56273,779431 56273,779431 But, if I try to filter on two layers as follows: localhost/cgi-bin/mapserv.exe?map=MyMap.map&service=wfs&version=1.1.0&reques t=getfeature&typename=Layer1,Layer2&maxfeatures=50&outputformat=gml3&Filter= msGeometry56273,779431 56273,779431 I get an error: - - msWFSGetFeature(): WFS server error. Wrong number of filter elements, one filter must be specified for each feature type listed in the TYPENAME parameter. I've tried various methods for specifying multiple filters but cannot get it to work. Can anyone advise please? Many thanks. Regards, Donald -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 25 June 2012 21:47 To: Donald Kerr; 'MAPSERVER USERS' Subject: Re: [mapserver-users] Grouping WFS Layers to Output One GML file Hi, Have you tried what happens if you give a list of layers as typename? This should send you some data from TinyOWS http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.0.0&request=Getfeat ure&typename=lv:puolilehti_25t,lv:puolilehti_50t -Jukka Rahkonen- ________________________________________ Donald Kerr wrote: > Is it possible to group WFS layers, in much the same way as WMS: "wms_group_title" "Several_Layers", so that a single gml file is returned from Mapserver? > To explain what I'm trying to do: I want to output several WFS layers > as GML so that they can be imported to another program as a single GML file. I would like to make this file available as a url, i.e. right click - save as, so that the user could then import the lot as a single file. The easiest way for me to do this would be if I could group the WFS layers at the Mapserver level and provide a link to that WFS request. Alternatively, can anyone provide some ideas as to how this could be done by, for example, OpenLayers (I know, wrong group!) or maybe some sort of server side joining of multiple WFS layers. Many thanks. Regards, Donald _______________________________________________ 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 26 05:09:18 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 26 Jun 2012 14:09:18 +0200 Subject: [mapserver-users] MapServer & SLD Message-ID: Hi, using the mapserver trunk version and testing the remote SLD, I notice that it is enabled/disabled only using the wms_enabled_sld or ows_enabled_sld applied to WEB-Level Metadata. And notice also that try-ing to apply the same wms_enabled_sld or ows_enabled_sld to LAYER-Level Metadata the remote SLD is not enabled. Is this correct ? I have the doubt because I guess it should be preferrable enabled it also using the LAYER-Level metadata. This should give a more fine-grain control on what layers could be remote-renderized. Also I notice the remote SLD is by-default enabled Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From eloi.ribeiro at gmail.com Tue Jun 26 05:34:27 2012 From: eloi.ribeiro at gmail.com (Eloi Ribeiro) Date: Tue, 26 Jun 2012 14:34:27 +0200 Subject: [mapserver-users] newbie just getting a blank page Message-ID: Hi, I'm trying MapServer for the first time and doing something wrong because all I get is a blank page in the browser with: http://localhost/cgi-bin/mapserv?map=/var/www/teste.map&mode=map The computer is running Ubuntu 10.04 with UbuntuGIS-unstable repository. The map file is located under the Apache folder (/var/www/teste.map) and trying to load a PostGIS layer. This is the content of my map file: -------------------------------------- MAP NAME "World map" SIZE 500 500 UNITS meters IMAGECOLOR 28 28 55 IMAGETYPE png EXTENT -180 -90 180 90 PROJECTION "proj=latlong" "ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END LAYER CONNECTIONTYPE POSTGIS CONNECTION "dbname='bd_ceam' host='localhost' port='5432' user='consulta' password='*******' sslmode='disable'" DATA "geom FROM 'sch_sig'.'wd_paises' USING UNIQUE gid USING srid=4326" NAME "wd_paises" TYPE POLYGON END EXTENT -180 -90 180 90 END END -------------------------------------- Any clue of what I'm doing wrong? Thanks, Eloi Ribeiro GIS Analyst 39,45? -0,40? flavors.me/eloiribeiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jun 26 05:56:46 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 26 Jun 2012 12:56:46 +0000 Subject: [mapserver-users] newbie just getting a blank page In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6345A37F@suutari.haapa.mmm.fi> Hi, You do not ask for any layer. Add STATUS DEFAULT to your layer or add &layers=all into your request. Unfortunately, even your mapfile is short is has many other errors and outdated stuff. Where did you take an example when you wrote it? We should absolutely have some guaranteed correct mapfiles with corresponding data for the newbies and it should be forbidden for the poor new users to do any own trials before the Hello Word example shows a map. When I started we had MapLab but what do we have now? Even the Qgis mapfile write plugin is broken nowadays. -Jukka Rahkonen- ________________________________ Eloi Ribeiro wrote: > Hi, > I'm trying MapServer for the first time and doing something wrong because all I get is a blank page in the browser with: http://localhost/cgi-bin/mapserv?map=/var/www/teste.map&mode=map The computer is running Ubuntu 10.04 with UbuntuGIS-unstable repository. The map file is located under the Apache folder (/var/www/teste.map) and trying to load a PostGIS layer. This is the content of my map file: -------------------------------------- MAP NAME "World map" SIZE 500 500 UNITS meters IMAGECOLOR 28 28 55 IMAGETYPE png EXTENT -180 -90 180 90 PROJECTION "proj=latlong" "ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END LAYER CONNECTIONTYPE POSTGIS CONNECTION "dbname='bd_ceam' host='localhost' port='5432' user='consulta' password='*******' sslmode='disable'" DATA "geom FROM 'sch_sig'.'wd_paises' USING UNIQUE gid USING srid=4326" NAME "wd_paises" TYPE POLYGON END EXTENT -180 -90 180 90 END END -------------------------------------- Any clue of what I'm doing wrong? Thanks, Eloi Ribeiro GIS Analyst 39,45? -0,40? flavors.me/eloiribeiro From eloi.ribeiro at gmail.com Tue Jun 26 06:18:03 2012 From: eloi.ribeiro at gmail.com (Eloi Ribeiro) Date: Tue, 26 Jun 2012 15:18:03 +0200 Subject: [mapserver-users] newbie just getting a blank page In-Reply-To: <84446DEF76453C439E9E97E438E13A6345A37F@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6345A37F@suutari.haapa.mmm.fi> Message-ID: Thank you both. Now I'm seeing some light at the end of the tunnel. I got my first request from MapServer work! You were both right CLASS, STATUS were missing. I started from the map file QGIS 1.8 MapServerExport tool output, but then I made more modifications and probably got worst. So my responsibility for not working properly. Anyway now a can start working from here. Thanks! This is how it looks now, still simple but working: ----------------------------------------------------- MAP NAME "World map" SIZE 900 700 UNITS meters IMAGECOLOR 28 28 55 IMAGETYPE png EXTENT -180 -90 180 90 PROJECTION "proj=latlong" "ellps=WGS84" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END LAYER STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "dbname='bd_ceam' host='localhost' port='5432' user='consulta' password='*******' sslmode='disable'" DATA "geom FROM sch_sig.wd_paises USING UNIQUE gid USING srid=4326" NAME "wd_paises" CLASS COLOR 10 20 50 END TYPE POLYGON END EXTENT -180 -90 180 90 END END ----------------------------------------------------- Eloi Ribeiro GIS Analyst 39,45? -0,40? flavors.me/eloiribeiro 2012/6/26 Rahkonen Jukka > Hi, > > You do not ask for any layer. Add STATUS DEFAULT to your layer or add > &layers=all into your request. > > Unfortunately, even your mapfile is short is has many other errors and > outdated stuff. Where did you take an example when you wrote it? > > We should absolutely have some guaranteed correct mapfiles with > corresponding data for the newbies and it should be forbidden for the poor > new users to do any own trials before the Hello Word example shows a map. > When I started we had MapLab but what do we have now? Even the Qgis > mapfile write plugin is broken nowadays. > > -Jukka Rahkonen- > ________________________________ > Eloi Ribeiro wrote: > > > Hi, > > > I'm trying MapServer for the first time and doing something wrong > because all I get is a blank page< > https://dl.dropbox.com/u/1735137/MapServer_firefox_chromium.png> in the > browser with: > http://localhost/cgi-bin/mapserv?map=/var/www/teste.map&mode=map > The computer is running Ubuntu 10.04 with UbuntuGIS-unstable repository. > The map file is located under the Apache folder (/var/www/teste.map) and > trying to load a PostGIS layer. > This is the content of my map file: > -------------------------------------- > MAP > NAME "World map" > SIZE 500 500 > UNITS meters > IMAGECOLOR 28 28 55 > IMAGETYPE png > EXTENT -180 -90 180 90 > PROJECTION > "proj=latlong" > "ellps=WGS84" > END > > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > > LAYER > CONNECTIONTYPE POSTGIS > CONNECTION "dbname='bd_ceam' host='localhost' port='5432' > user='consulta' password='*******' sslmode='disable'" > DATA "geom FROM 'sch_sig'.'wd_paises' USING UNIQUE gid USING srid=4326" > NAME "wd_paises" > TYPE POLYGON > END > EXTENT -180 -90 180 90 > END > > END > -------------------------------------- > > Any clue of what I'm doing wrong? > > Thanks, > > Eloi Ribeiro > GIS Analyst > 39,45? -0,40? > flavors.me/eloiribeiro > _______________________________________________ > 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 japr94 at hotmail.com Tue Jun 26 13:43:55 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 26 Jun 2012 13:43:55 -0700 (PDT) Subject: [mapserver-users] Curved Lines Message-ID: <1340743435274-4984066.post@n6.nabble.com> Hi all, I have the following layer of type line : LAYER NAME line STATUS ON TYPE LINE CONNECTIONTYPE OGR CONNECTION "MSSQL:server=server;database=database;uid=id;pwd=pwd" DATA "SELECT geometry::STLineFromText('LINESTRING (' +CAST(Geo.STX AS VARCHAR(54)) +' ' +CAST(Geo.STY AS VARCHAR(54)) +', ' +CAST(Geo.STX AS VARCHAR(54)) +' ' +CAST(Geo.STY AS VARCHAR(54)) +')' ,4326) FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" CLASS STYLE WIDTH 3 SIZE 1 COLOR 0 0 128 END # end of style END # end of class PROJECTION "init=epsg:4326" END # end of projection END # end of layer I was wondering how to get a curved line from this data. I tried using angle and gap, but I don't see any changes. Any suggestions? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Tue Jun 26 14:27:36 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 26 Jun 2012 21:27:36 +0000 Subject: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> Hello, I would like to use mapcache to cache two layers. The first is a basemap that displays a political map when zoomed far out, or an air photo depending when zoomed in. The second layer displays that same air photo, but at all zoom levels. Is there any way to conserve disk space so the two layers share the same physical cache when zoomed in? Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.dussiaume at mentum.com Tue Jun 26 15:30:35 2012 From: ryan.dussiaume at mentum.com (Ryan Dussiaume) Date: Tue, 26 Jun 2012 18:30:35 -0400 Subject: [mapserver-users] Dynamic Pie Piece Marker In-Reply-To: <4FE9DECF020000370000C02D@gate1.asurequality.com> References: <4FE9DECF020000370000C02D@gate1.asurequality.com> Message-ID: Yes, I think I'll have to take that approach but I was hoping to have a curved line rather than a series of straight ones. Do you know if it is possible to clip a symbol or provide a mask for it? Thanks, Ryan -----Original Message----- From: Robert Sanson [mailto:Robert.Sanson at asurequality.com] Sent: June 26, 2012 0:10 To: mapserver-users at lists.osgeo.org; Ryan Dussiaume Subject: Re: [mapserver-users] Dynamic Pie Piece Marker You could create 36 symbols covering pie wedges in 10 degree increments, then select which one by rounding your attribute to the nearest 10 degrees and selecting the appropriate symbol. Fill color could be selected by the second attribute. regards, Robert >>> Ryan Dussiaume 26/06/2012 2:25 p.m. >>> Hi, I'm trying to create a point marker shaped like a pie piece where the pie piece can be various sizes based on an attribute of the point. For example, it could look like a piece of pie when the attribute is 30 degrees or it could look like Pacman if the attribute is 300 degrees. The color of the pie piece would be determined by an attribute as well. Does anyone know if this is possible with MapServer and how to do it? I was hoping that I could layer two lines on top of a circle and then somehow define a mask for the circle symbol so that the unwanted piece is cut out. After some research, it doesn't seem like it's possible. Has anyone done anything similar? Thanks, Ryan This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From Jessica.Clarke at forestrytas.com.au Tue Jun 26 18:37:59 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Wed, 27 Jun 2012 11:37:59 +1000 Subject: [mapserver-users] two shapes one layer/query Message-ID: <4FEAF097020000DD00016915@mail2.forestrytas.com.au> Hi, I'm trying to draw a 'shape' and a 'related shape'. These shapes are both from the same View in Oracle (For eg. asset_shape, rel_shape, asset_ID, rel_ID). Can I call for two geometry shapes somehow? My current 'data' call in my mapfile is: DATA "REL_SHAPE FROM (SELECT ASSET_ID, REL_ID, ASSET_SHAPE, REL_SHAPE FROM DB.VIEW) USING UNIQUE REL_ID" I want both rel_shape and asset_shape to be drawn on the map. Currently, I can only see the related shape (obviously). Thanks, Jess --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jun 26 23:36:36 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 27 Jun 2012 08:36:36 +0200 Subject: [mapserver-users] user accounting on wms Message-ID: Hi, The wms standard (and Mapserver) implement some mechanism to user accounting or is used the web server standards ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Jun 27 03:10:12 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 27 Jun 2012 12:10:12 +0200 Subject: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> If the grid matches, you can easily symlink the zoom levels. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Mark Volz > Gesendet: Dienstag, 26. Juni 2012 23:28 > An: MapserverList OSGEO > Betreff: [mapserver-users] mapcache - is it possible to > access different wms sources based on the current resolution or scale? > > Hello, > > I would like to use mapcache to cache two layers. The first > is a basemap that displays a political map when zoomed far > out, or an air photo depending when zoomed in. The second > layer displays that same air photo, but at all zoom levels. > Is there any way to conserve disk space so the two layers > share the same physical cache when zoomed in? > > Thanks > > Mark Volz > GIS Specialist > > > > From luisbap at hotmail.com Wed Jun 27 04:08:16 2012 From: luisbap at hotmail.com (luisbap) Date: Wed, 27 Jun 2012 04:08:16 -0700 (PDT) Subject: [mapserver-users] EPSG 27493 In-Reply-To: <1340288378611-4983015.post@n6.nabble.com> References: <1340288378611-4983015.post@n6.nabble.com> Message-ID: <1340795296257-4984192.post@n6.nabble.com> Hi Jeff, thanks for your help (very useful) and sorry for my delay returning some feedback. Now I know the problem is not data related but it's between the chair and the keyboard. Now I can see my data if I don't use a projection block in the Map-level. Everytime I use a projection in the map-level I get a blank image. Is it related to the extent area after reprojection? My data is in oracle spatial in SRID:4274 (degrees) but I want to project it in EPSG:27493 (meters). Should I define an extent area with values related to the output projection, in meters and not in degrees? Or should I do something else to see my data? Thanks in advance. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/EPSG-27493-tp4982999p4984192.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jolni at KMS.dk Wed Jun 27 06:07:18 2012 From: jolni at KMS.dk (jlundnielsen) Date: Wed, 27 Jun 2012 06:07:18 -0700 (PDT) Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev Message-ID: <1340802438165-4984223.post@n6.nabble.com> Hi List, In the process of preparing for 6.2 I have discovered a problem applying labels through the use of SLD TextSymbolizer in 6.1-dev. The following is applying labels fine in my current install of 6.0.1, but not in 6.1-dev: ... arial bold 18 ... The request does not fail as such in 6.1-dev, just no labels are applied... Digging out the temporary mapfile reveals that 'TEXT ("[NAME]")' is put in the layer in both cases, but in 6.1-dev there is no declaration of 'LABEL' for the layer, so it is not shown. Am I doing something wrong here? Anyone having similar experiences? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-TextSymbolizer-in-6-1-dev-tp4984223.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Wed Jun 27 06:37:20 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 27 Jun 2012 13:37:20 +0000 Subject: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA312E920@swmail01.r8nssis.local> Andreas, The two layers are in the same grid. I didn't see any documentation on using symlink for zoom levels. How would I set that up in my configuration file? Thanks Mark Volz GIS Specialist -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:Andreas.Eichner at sid.sachsen.de] Sent: Wednesday, June 27, 2012 5:10 AM To: Mark Volz; MapserverList OSGEO Subject: AW: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? If the grid matches, you can easily symlink the zoom levels. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Mark > Volz > Gesendet: Dienstag, 26. Juni 2012 23:28 > An: MapserverList OSGEO > Betreff: [mapserver-users] mapcache - is it possible to access > different wms sources based on the current resolution or scale? > > Hello, > > I would like to use mapcache to cache two layers. The first is a > basemap that displays a political map when zoomed far out, or an air > photo depending when zoomed in. The second layer displays that same > air photo, but at all zoom levels. > Is there any way to conserve disk space so the two layers share the > same physical cache when zoomed in? > > Thanks > > Mark Volz > GIS Specialist > > > > From bfraser at geoanalytic.com Wed Jun 27 07:33:51 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 27 Jun 2012 08:33:51 -0600 Subject: [mapserver-users] Curved Lines In-Reply-To: <1340743435274-4984066.post@n6.nabble.com> References: <1340743435274-4984066.post@n6.nabble.com> Message-ID: <4FEB19CF.3020908@geoanalytic.com> I don't understand the question. What kind of "curved line" would you make given only two points? And the from the SELECT statement, the two points have the same coordinates. Best Regards, Brent Fraser On 6/26/2012 2:43 PM, juliap wrote: > Hi all, > > I have the following layer of type line : > > LAYER > NAME line > STATUS ON > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "MSSQL:server=server;database=database;uid=id;pwd=pwd" > DATA "SELECT geometry::STLineFromText('LINESTRING (' > +CAST(Geo.STX AS VARCHAR(54)) > +' ' > +CAST(Geo.STY AS VARCHAR(54)) > +', ' > +CAST(Geo.STX AS VARCHAR(54)) > +' ' > +CAST(Geo.STY AS VARCHAR(54)) > +')' > ,4326) > FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" > CLASS > STYLE > WIDTH 3 > SIZE 1 > COLOR 0 0 128 > END # end of style > END # end of class > PROJECTION > "init=epsg:4326" > END # end of projection > END # end of layer > > I was wondering how to get a curved line from this data. I tried using angle > and gap, but I don't see any changes. > Any suggestions? > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066.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 punk.kish at gmail.com Wed Jun 27 07:38:51 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 27 Jun 2012 20:08:51 +0530 Subject: [mapserver-users] Curved Lines In-Reply-To: <1340743435274-4984066.post@n6.nabble.com> References: <1340743435274-4984066.post@n6.nabble.com> Message-ID: <2C9105EE-E4BB-48EA-A525-00A961944ECE@gmail.com> On Jun 27, 2012, at 2:13 AM, juliap wrote: > Hi all, > > I have the following layer of type line : > > LAYER > NAME line > STATUS ON > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "MSSQL:server=server;database=database;uid=id;pwd=pwd" > DATA "SELECT geometry::STLineFromText('LINESTRING (' > +CAST(Geo.STX AS VARCHAR(54)) > +' ' > +CAST(Geo.STY AS VARCHAR(54)) > +', ' > +CAST(Geo.STX AS VARCHAR(54)) > +' ' > +CAST(Geo.STY AS VARCHAR(54)) > +')' > ,4326) > FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" > CLASS > STYLE > WIDTH 3 > SIZE 1 > COLOR 0 0 128 > END # end of style > END # end of class > PROJECTION > "init=epsg:4326" > END # end of projection > END # end of layer > > I was wondering how to get a curved line from this data. I tried using angle > and gap, but I don't see any changes. > Any suggestions? > Your understanding of geometry is a bit off here. In a query result set, each row is a feature, and a line feature would be made up of two or points; a curved line feature, of course, would be made up of three or more points. What you are getting in the result set above is a bunch of features, each of which are a point repeated twice. I think what you really want is to create a single line feature from all these points. So, you would probably do some kind of an aggregate on these points. I don't know the functions available in SQL Server, but there must be an analog for Postgres's aggregate functions. You want to collect all the points and make a line feature from them, and then pass that to MapServer to draw. You could make a view that does all this, and then call the view from MapServer. Hope this helps. -- Puneet Kishor From bfraser at geoanalytic.com Wed Jun 27 07:39:10 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 27 Jun 2012 08:39:10 -0600 Subject: [mapserver-users] two shapes one layer/query In-Reply-To: <4FEAF097020000DD00016915@mail2.forestrytas.com.au> References: <4FEAF097020000DD00016915@mail2.forestrytas.com.au> Message-ID: <4FEB1B0E.5070701@geoanalytic.com> You could use two layers in the mapfile (and a REQUIRES keyword to link the display). Or use a UNION construct in the SQL, or create a view in the database using a UNION. Best Regards, Brent Fraser On 6/26/2012 7:37 PM, Jessica Clarke wrote: > Hi, > I'm trying to draw a 'shape' and a 'related shape'. > These shapes are both from the same View in Oracle (For eg. > asset_shape, rel_shape, asset_ID, rel_ID). > Can I call for two geometry shapes somehow? > My current 'data' call in my mapfile is: > DATA "REL_SHAPE FROM (SELECT ASSET_ID, REL_ID, ASSET_SHAPE, REL_SHAPE > FROM DB.VIEW) USING UNIQUE REL_ID" > I want both rel_shape and asset_shape to be drawn on the map. > Currently, I can only see the related shape (obviously). > Thanks, > Jess > > --------------------------------------------------------------------------------------------------------------------------------------------- > > > This transmission is intended solely for the person or organisation to > whom it is addressed. > > It is confidential and may contain legally privileged information. > > If you have received this transmission in error, you may not use, copy > or distribute it. > > Please advise us by return e-mail or by phoning 61 3 6235 8333 and > immediately delete the transmission in its entirety. > > We will meet your reasonable expenses of notifying us. > > Despite our use of anti-virus software, Forestry Tasmania cannot > guarantee that this transmission is virus-free. > > -------------------------------------------------------------------------------------------------------------------------------------------- > > > > > _______________________________________________ > 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 Wed Jun 27 07:47:43 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Jun 2012 14:47:43 +0000 Subject: [mapserver-users] Curved Lines In-Reply-To: <2C9105EE-E4BB-48EA-A525-00A961944ECE@gmail.com> References: <1340743435274-4984066.post@n6.nabble.com> <2C9105EE-E4BB-48EA-A525-00A961944ECE@gmail.com> Message-ID: <84446DEF76453C439E9E97E438E13A6345A6EC@suutari.haapa.mmm.fi> Hi, The question, if I understand is correctly, is relevant. In EPSG:4326 shortest distance between two points is better expressed as a curve than as a straight linestring. However, Mapserver does not support curves of any kind. You may find some workaround from GDAL. Ogr2ogr is having a "segmentize" option for this purpose. It does not support real curves either, but it creates intermediate points so that linestrings are shorter and thus follow the curve better. See http://gdal.org/ogr2ogr.html -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mr. > Puneet Kishor > L?hetetty: 27. kes?kuuta 2012 17:39 > Vastaanottaja: juliap > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Curved Lines > > > On Jun 27, 2012, at 2:13 AM, juliap wrote: > > > Hi all, > > > > I have the following layer of type line : > > > > LAYER > > NAME line > > STATUS ON > > TYPE LINE > > CONNECTIONTYPE OGR > > CONNECTION > "MSSQL:server=server;database=database;uid=id;pwd=pwd" > > DATA "SELECT geometry::STLineFromText('LINESTRING (' > > +CAST(Geo.STX AS VARCHAR(54)) > > +' ' > > +CAST(Geo.STY AS VARCHAR(54)) > > +', ' > > +CAST(Geo.STX AS VARCHAR(54)) > > +' ' > > +CAST(Geo.STY AS VARCHAR(54)) > > +')' > > ,4326) > > FROM column WHERE DATEDIFF(mi, CreatedON, > CURRENT_TIMESTAMP) <='%x%'" > > CLASS > > STYLE > > WIDTH 3 > > SIZE 1 > > COLOR 0 0 128 > > END # end of style > > END # end of class > > PROJECTION > > "init=epsg:4326" > > END # end of projection > > END # end of layer > > > > I was wondering how to get a curved line from this data. I > tried using angle > > and gap, but I don't see any changes. > > Any suggestions? > > > > > Your understanding of geometry is a bit off here. In a query > result set, each row is a feature, and a line feature would > be made up of two or points; a curved line feature, of > course, would be made up of three or more points. > > What you are getting in the result set above is a bunch of > features, each of which are a point repeated twice. I think > what you really want is to create a single line feature from > all these points. So, you would probably do some kind of an > aggregate on these points. I don't know the functions > available in SQL Server, but there must be an analog for > Postgres's aggregate functions. You want to collect all the > points and make a line feature from them, and then pass that > to MapServer to draw. You could make a view that does all > this, and then call the view from MapServer. > > Hope this helps. > > > -- > Puneet Kishor > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From punk.kish at gmail.com Wed Jun 27 07:50:07 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 27 Jun 2012 20:20:07 +0530 Subject: [mapserver-users] Curved Lines In-Reply-To: <84446DEF76453C439E9E97E438E13A6345A6EC@suutari.haapa.mmm.fi> References: <1340743435274-4984066.post@n6.nabble.com> <2C9105EE-E4BB-48EA-A525-00A961944ECE@gmail.com> <84446DEF76453C439E9E97E438E13A6345A6EC@suutari.haapa.mmm.fi> Message-ID: <6904B2BB-ED1C-4C8D-A4D6-4BA136D7EECF@gmail.com> On Jun 27, 2012, at 8:17 PM, Rahkonen Jukka wrote: > Hi, > > The question, if I understand is correctly, is relevant. In EPSG:4326 shortest distance between two points is better expressed as a curve than as a straight linestring. However, Mapserver does not support curves of any kind. Interesting spin; didn't think of that. However, note that, as Brent pointed out, the OP is SELECTing the same coords twice, so, in effect, they are two coincident points of line length zero. > > You may find some workaround from GDAL. Ogr2ogr is having a "segmentize" option for this purpose. It does not support real curves either, but it creates intermediate points so that linestrings are shorter and thus follow the curve better. See http://gdal.org/ogr2ogr.html > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mr. >> Puneet Kishor >> L?hetetty: 27. kes?kuuta 2012 17:39 >> Vastaanottaja: juliap >> Kopio: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] Curved Lines >> >> >> On Jun 27, 2012, at 2:13 AM, juliap wrote: >> >>> Hi all, >>> >>> I have the following layer of type line : >>> >>> LAYER >>> NAME line >>> STATUS ON >>> TYPE LINE >>> CONNECTIONTYPE OGR >>> CONNECTION >> "MSSQL:server=server;database=database;uid=id;pwd=pwd" >>> DATA "SELECT geometry::STLineFromText('LINESTRING (' >>> +CAST(Geo.STX AS VARCHAR(54)) >>> +' ' >>> +CAST(Geo.STY AS VARCHAR(54)) >>> +', ' >>> +CAST(Geo.STX AS VARCHAR(54)) >>> +' ' >>> +CAST(Geo.STY AS VARCHAR(54)) >>> +')' >>> ,4326) >>> FROM column WHERE DATEDIFF(mi, CreatedON, >> CURRENT_TIMESTAMP) <='%x%'" >>> CLASS >>> STYLE >>> WIDTH 3 >>> SIZE 1 >>> COLOR 0 0 128 >>> END # end of style >>> END # end of class >>> PROJECTION >>> "init=epsg:4326" >>> END # end of projection >>> END # end of layer >>> >>> I was wondering how to get a curved line from this data. I >> tried using angle >>> and gap, but I don't see any changes. >>> Any suggestions? >>> >> >> >> Your understanding of geometry is a bit off here. In a query >> result set, each row is a feature, and a line feature would >> be made up of two or points; a curved line feature, of >> course, would be made up of three or more points. >> >> What you are getting in the result set above is a bunch of >> features, each of which are a point repeated twice. I think >> what you really want is to create a single line feature from >> all these points. So, you would probably do some kind of an >> aggregate on these points. I don't know the functions >> available in SQL Server, but there must be an analog for >> Postgres's aggregate functions. You want to collect all the >> points and make a line feature from them, and then pass that >> to MapServer to draw. You could make a view that does all >> this, and then call the view from MapServer. >> >> Hope this helps. >> >> >> -- >> Puneet Kishor >> _______________________________________________ >> 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 woodbri at swoodbridge.com Wed Jun 27 07:53:29 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Jun 2012 10:53:29 -0400 Subject: [mapserver-users] Curved Lines In-Reply-To: <4FEB19CF.3020908@geoanalytic.com> References: <1340743435274-4984066.post@n6.nabble.com> <4FEB19CF.3020908@geoanalytic.com> Message-ID: <4FEB1E69.6010500@swoodbridge.com> Does this do what you want? DATA "SELECT ST_MAKELINE(ST_MAKEPOINT(Geo.STX, Geo.STY)) FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" There is a postGIS function MAKELINE() that aggregates points into a line. I don't know if there are equivalent function in MSSQL. -Steve W On 6/27/2012 10:33 AM, Brent Fraser wrote: > I don't understand the question. What kind of "curved line" would you > make given only two points? And the from the SELECT statement, the two > points have the same coordinates. > > Best Regards, > Brent Fraser > > On 6/26/2012 2:43 PM, juliap wrote: >> Hi all, >> >> I have the following layer of type line : >> >> LAYER >> NAME line >> STATUS ON >> TYPE LINE >> CONNECTIONTYPE OGR >> CONNECTION "MSSQL:server=server;database=database;uid=id;pwd=pwd" >> DATA "SELECT geometry::STLineFromText('LINESTRING (' >> +CAST(Geo.STX AS VARCHAR(54)) >> +' ' >> +CAST(Geo.STY AS VARCHAR(54)) >> +', ' >> +CAST(Geo.STX AS VARCHAR(54)) >> +' ' >> +CAST(Geo.STY AS VARCHAR(54)) >> +')' >> ,4326) >> FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" >> CLASS >> STYLE >> WIDTH 3 >> SIZE 1 >> COLOR 0 0 128 >> END # end of style >> END # end of class >> PROJECTION >> "init=epsg:4326" >> END # end of projection >> END # end of layer >> >> I was wondering how to get a curved line from this data. I tried using >> angle >> and gap, but I don't see any changes. >> Any suggestions? >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066.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 >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From japr94 at hotmail.com Wed Jun 27 10:50:22 2012 From: japr94 at hotmail.com (juliap) Date: Wed, 27 Jun 2012 10:50:22 -0700 (PDT) Subject: [mapserver-users] Curved Lines In-Reply-To: <4FEB1E69.6010500@swoodbridge.com> References: <1340743435274-4984066.post@n6.nabble.com> <4FEB19CF.3020908@geoanalytic.com> <4FEB1E69.6010500@swoodbridge.com> Message-ID: Sorry, I didn't notice I had typo in the layer definition. I'm not actually using the same point to create a line.I was looking for solutions through SQL but unfortunately only SQL server 2012 has those builtin functions. I think I will have to try the Ogr2ogr approach. Thanks for all the suggestions Date: Wed, 27 Jun 2012 07:54:44 -0700 From: ml-node+s1560n4984263h65 at n6.nabble.com To: japr94 at hotmail.com Subject: Re: Curved Lines Does this do what you want? DATA "SELECT ST_MAKELINE(ST_MAKEPOINT(Geo.STX, Geo.STY)) FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" There is a postGIS function MAKELINE() that aggregates points into a line. I don't know if there are equivalent function in MSSQL. -Steve W On 6/27/2012 10:33 AM, Brent Fraser wrote: > I don't understand the question. What kind of "curved line" would you > make given only two points? And the from the SELECT statement, the two > points have the same coordinates. > > Best Regards, > Brent Fraser > > On 6/26/2012 2:43 PM, juliap wrote: >> Hi all, >> >> I have the following layer of type line : >> >> LAYER >> NAME line >> STATUS ON >> TYPE LINE >> CONNECTIONTYPE OGR >> CONNECTION "MSSQL:server=server;database=database;uid=id;pwd=pwd" >> DATA "SELECT geometry::STLineFromText('LINESTRING (' >> +CAST(Geo.STX AS VARCHAR(54)) >> +' ' >> +CAST(Geo.STY AS VARCHAR(54)) >> +', ' >> +CAST(Geo.STX AS VARCHAR(54)) >> +' ' >> +CAST(Geo.STY AS VARCHAR(54)) >> +')' >> ,4326) >> FROM column WHERE DATEDIFF(mi, CreatedON, CURRENT_TIMESTAMP) <='%x%'" >> CLASS >> STYLE >> WIDTH 3 >> SIZE 1 >> COLOR 0 0 128 >> END # end of style >> END # end of class >> PROJECTION >> "init=epsg:4326" >> END # end of projection >> END # end of layer >> >> I was wondering how to get a curved line from this data. I tried using >> angle >> and gap, but I don't see any changes. >> Any suggestions? >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066p4984263.html To unsubscribe from Curved Lines, click here. NAML -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Curved-Lines-tp4984066p4984306.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles at weareland.com Wed Jun 27 12:48:35 2012 From: charles at weareland.com (Charles Eliason) Date: Wed, 27 Jun 2012 15:48:35 -0400 Subject: [mapserver-users] Centos or Ubuntu 11.04 Message-ID: <005d01cd549d$d73732d0$85a59870$@com> I'm planning on implementing Mapserver on a VPS server hosted by Hostgator. The standard Linux install is centos 5. I can have Ubuntu 11.04 installed, however there is limited technical support and less bells and whistles. Is there a strong reason to go with the Ubuntu install over Centos ? Thanks, Charles CHARLES ELIASON, PLS - 3599 Infinite Land Design, P.C. 117 North Chatham Avenue Siler City, North Carolina 27344 919-663-2708 voice 919-214-6351 mobile charles at weareland.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From giohappy at gmail.com Wed Jun 27 15:53:56 2012 From: giohappy at gmail.com (G. Allegri) Date: Thu, 28 Jun 2012 00:53:56 +0200 Subject: [mapserver-users] slow access to PostGIS layer In-Reply-To: References: Message-ID: [cross posting from MS4W ml] I'm working on a Windows 7 machine with PostGIS 1.5 on Postgresql 8.4, with no tuning (default configuration). I'm facing very bad performances when accessing a polygonal layer on PostGIS. The layer is not that heavy and complex. It is made by 20 polygons with about 4000 to 56000 vertices. The raw query (SELECT the_geom FROM mytable), performed through the psql console, fetches the results in about 185 ms. Logging the layer with DEBUG 5 shows that iterating over the features takes about 7.5 s. The time between consecutive msPostGISLayerNextShape calls is about 0.3/0.4 s. Here is the log file: http://www.giovanniallegri.it/share/mspglog.txt I obtain the same performances with ms4w 3.0.6(MapServer MapScript to 6.0.3) and 3.0.4_dev (MapServer and MapScript 6.1-dev), which PostGIS is 1.5 on Postgresql 8.4, with no customized options. I'm working on a Windows 7 machine, but the work should be deployed on a Windows Server 2003. I'm not using connection pooling, but I was facing similar performances before disabling it. giovanni -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jun 27 16:38:05 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 27 Jun 2012 16:38:05 -0700 (PDT) Subject: [mapserver-users] EPSG 27493 In-Reply-To: <1340795296257-4984192.post@n6.nabble.com> References: <1340288378611-4983015.post@n6.nabble.com> <1340795296257-4984192.post@n6.nabble.com> Message-ID: <1340840285919-4984385.post@n6.nabble.com> Hello Luis, Don't worry, I too have many problems between my chair and my keyboard. You must tell MapServer where to draw the map data, in the extents and units of your output projection (yes 27493: meters). So your mapfile would look something like: MAP NAME "DEMOSMC" ... EXTENT #extents in meters (EPSG:27493) ... PROJECTION "init=epsg:27493" END LAYER NAME "distritos" ... CLASS ... END PROJECTION "init=epsg:4274" END END END #mapfile If you are wondering how you would get the EXTENT values in meters from that EPSG:27493; a trick I use is to use ogr2ogr command to create a shapefile in EPSG:27493, from your Oracle layer. (see the parameters "s_srs" and "t_srs" at http://www.gdal.org/ogr2ogr.html). Then once you have that shapefile you can execute an ogrinfo on it to get the extents, and use that in your mapfile (in the blank EXTENT in my example above). Hopefully that makes it clear. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com luisbap wrote > > My data is in oracle spatial in SRID:4274 (degrees) but I want to project > it in EPSG:27493 (meters). Should I define an extent area with values > related to the output projection, in meters and not in degrees? > Or should I do something else to see my data? > -- View this message in context: http://osgeo-org.1560.n6.nabble.com/EPSG-27493-tp4982999p4984385.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Wed Jun 27 23:57:56 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 28 Jun 2012 08:57:56 +0200 Subject: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> <36CA828A36E29F45B7CF0A1766E5DFA312E920@swmail01.r8nssis.local> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A3@KS-EVS1.smi.sachsen.de> Hi Mark, > The two layers are in the same grid. I didn't see any > documentation on using symlink for zoom levels. How would I > set that up in my configuration file? you configure mapcache as usual and symlink the levels for the shared zoom levels. MapCache creates a directory structure in the filesystem for every tileset like ///. You can also create it by hand (watch for correct access rights) and then symlink directories from the second tileset to the first. It should look something like this: # cd ///; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 05 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 06 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 07 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 08 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 09 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 10 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 11 drwxrwxr-x 2 apache apache 3896 May 14 15:08 blanks # cd ///; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 lrwxrwxrwx 1 root root 22 Dec 7 2011 05 -> ../..//05 lrwxrwxrwx 1 root root 22 Dec 7 2011 06 -> ../..//06 lrwxrwxrwx 1 root root 22 Dec 7 2011 07 -> ../..//07 lrwxrwxrwx 1 root root 22 Dec 7 2011 08 -> ../..//08 lrwxrwxrwx 1 root root 22 Dec 7 2011 09 -> ../..//09 lrwxrwxrwx 1 root root 22 Dec 7 2011 10 -> ../..//10 lrwxrwxrwx 1 root root 22 Dec 7 2011 11 -> ../..//11 lrwxrwxrwx 1 root root 22 Dec 7 2011 blanks -> ../..//blanks drwxrwxr-x 2 apache apache 3896 May 14 15:08 ///blanks This construct shares levels 5-11 between tileset1 and tileset2. From jcigar at ulb.ac.be Thu Jun 28 02:34:56 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 28 Jun 2012 11:34:56 +0200 Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev In-Reply-To: <1340802438165-4984223.post@n6.nabble.com> References: <1340802438165-4984223.post@n6.nabble.com> Message-ID: <4FEC2540.9070108@ulb.ac.be> Hi, I don't know for your problem but I used to use the instead of the (this is in SLD 1.1.0) It works fine in 6.1 Here is one of my SLD template, if it can help ... http://www.pastie.org/4164772 Julien On 06/27/2012 15:07, jlundnielsen wrote: > Hi List, > > In the process of preparing for 6.2 I have discovered a problem applying > labels through the use of SLD TextSymbolizer in 6.1-dev. > > The following is applying labels fine in my current install of 6.0.1, but > not in 6.1-dev: > ... > > > > arial > bold > 18 > > > ... > > The request does not fail as such in 6.1-dev, just no labels are applied... > Digging out the temporary mapfile reveals that 'TEXT ("[NAME]")' is put in > the layer in both cases, but in 6.1-dev there is no declaration of 'LABEL' > for the layer, so it is not shown. > > Am I doing something wrong here? Anyone having similar experiences? > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-TextSymbolizer-in-6-1-dev-tp4984223.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 -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Thu Jun 28 02:46:34 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Jun 2012 09:46:34 +0000 Subject: [mapserver-users] slow access to PostGIS layer In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A6345A7F6@suutari.haapa.mmm.fi> Hi, Is the spatial index OK? There is the && bounding box query happening too, not just "select geometry from my_table". -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n G. Allegri [giohappy at gmail.com] puolesta L?hetetty: 28. kes?kuuta 2012 1:53 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] slow access to PostGIS layer [cross posting from MS4W ml] I'm working on a Windows 7 machine with PostGIS 1.5 on Postgresql 8.4, with no tuning (default configuration). I'm facing very bad performances when accessing a polygonal layer on PostGIS. The layer is not that heavy and complex. It is made by 20 polygons with about 4000 to 56000 vertices. The raw query (SELECT the_geom FROM mytable), performed through the psql console, fetches the results in about 185 ms. Logging the layer with DEBUG 5 shows that iterating over the features takes about 7.5 s. The time between consecutive msPostGISLayerNextShape calls is about 0.3/0.4 s. Here is the log file: http://www.giovanniallegri.it/share/mspglog.txt I obtain the same performances with ms4w 3.0.6(MapServer MapScript to 6.0.3) and 3.0.4_dev (MapServer and MapScript 6.1-dev), which PostGIS is 1.5 on Postgresql 8.4, with no customized options. I'm working on a Windows 7 machine, but the work should be deployed on a Windows Server 2003. I'm not using connection pooling, but I was facing similar performances before disabling it. giovanni From luisbap at hotmail.com Thu Jun 28 02:55:05 2012 From: luisbap at hotmail.com (luisbap) Date: Thu, 28 Jun 2012 02:55:05 -0700 (PDT) Subject: [mapserver-users] EPSG 27493 In-Reply-To: <1340840285919-4984385.post@n6.nabble.com> References: <1340288378611-4983015.post@n6.nabble.com> <1340795296257-4984192.post@n6.nabble.com> <1340840285919-4984385.post@n6.nabble.com> Message-ID: <1340877305164-4984507.post@n6.nabble.com> Thank you Jeff That was most helpful and just like the way it should be: simple and straight to the point. You're the man ;-) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/EPSG-27493-tp4982999p4984507.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lists at remoteinformation.com.au Thu Jun 28 09:54:47 2012 From: lists at remoteinformation.com.au (Ben Madin) Date: Thu, 28 Jun 2012 23:54:47 +0700 Subject: [mapserver-users] php mapscript installer error 'zend_class_entry' has no member named 'default_properties' Message-ID: <5D818143-6BC3-4473-8DD6-8CE1E52B1F7F@remoteinformation.com.au> G'day all, I'm building (or not) MapServer 6.0.1 on FreeBSD 8.2-RELEASE-p4 (amd64). php version is 5.4.4. without php mapscript it builds fine, but with it enabled I get : gmake[1]: Entering directory `/usr/ports/graphics/mapserver/work/mapserver-6.0.1/mapscript/php' cc -fPIC -pipe -g -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -I/usr/ports/graphics/mapserver/work/mapserver-6.0.1 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -Irenderers/agg/include -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/php/ -I/usr/local/include/php//dl -I/usr/local/include/php//main -I/usr/local/include/php//Zend -I/usr/local/include/php//include -I/usr/local/include/php//TSRM -I/usr/local/include/php//ext/ereg/ -c -o php_mapscript_util.o php_mapscript_util.c php_mapscript_util.c: In function 'mapscript_object_new': php_mapscript_util.c:45: error: 'zend_class_entry' has no member named 'default_properties' php_mapscript_util.c: In function 'mapscript_object_new_ex': php_mapscript_util.c:62: error: 'zend_class_entry' has no member named 'default_properties' gmake[1]: *** [php_mapscript_util.o] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/mapserver/work/mapserver-6.0.1/mapscript/php' I was wondering if anyone had any clues what it means, or better, how to get around it? cheers Ben From jmckenna at gatewaygeomatics.com Thu Jun 28 10:15:24 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 Jun 2012 14:15:24 -0300 Subject: [mapserver-users] php mapscript installer error 'zend_class_entry' has no member named 'default_properties' In-Reply-To: <5D818143-6BC3-4473-8DD6-8CE1E52B1F7F@remoteinformation.com.au> References: <5D818143-6BC3-4473-8DD6-8CE1E52B1F7F@remoteinformation.com.au> Message-ID: <4FEC912C.5080400@gatewaygeomatics.com> On 12-06-28 1:54 PM, Ben Madin wrote: > G'day all, > > I'm building (or not) MapServer 6.0.1 on FreeBSD 8.2-RELEASE-p4 (amd64). php version is 5.4.4. > > without php mapscript it builds fine, but with it enabled I get : > > gmake[1]: Entering directory `/usr/ports/graphics/mapserver/work/mapserver-6.0.1/mapscript/php' > cc -fPIC -pipe -g -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -I/usr/ports/graphics/mapserver/work/mapserver-6.0.1 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -Irenderers/agg/include -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/php/ -I/usr/local/include/php//dl -I/usr/local/include/php//main -I/usr/loc > al/include/php//Zend -I/usr/local/include/php//include -I/usr/local/include/php//TSRM -I/usr/local/include/php//ext/ereg/ -c -o php_mapscript_util.o php_mapscript_util.c > php_mapscript_util.c: In function 'mapscript_object_new': > php_mapscript_util.c:45: error: 'zend_class_entry' has no member named 'default_properties' > php_mapscript_util.c: In function 'mapscript_object_new_ex': > php_mapscript_util.c:62: error: 'zend_class_entry' has no member named 'default_properties' > gmake[1]: *** [php_mapscript_util.o] Error 1 > gmake[1]: Leaving directory `/usr/ports/graphics/mapserver/work/mapserver-6.0.1/mapscript/php' > > > I was wondering if anyone had any clues what it means, or better, how to get around it? > > cheers PHP MapScript support for PHP 5.4.x is fixed for the next release, but you can manually make the changes (I did so for MS4W a month ago), follow the changes in https://github.com/mapserver/mapserver/issues/4309 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Thu Jun 28 10:25:50 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Jun 2012 13:25:50 -0400 Subject: [mapserver-users] Charter Member Nomination: Thomas Bonfort Message-ID: <4FEC939E.1050108@swoodbridge.com> Hi, I would like to nominate Thomas Bonfort for OSGeo Charter Member. Thomas has been a long time active supporter of the Open Source GIS movement. He developed mod_geocache which has since been merged with mapserver as mapcache, he is an active developer of mapserver and recently taken on the responsibility for the latest mapserver release in the works. Thomas has presented in various FOSS4G conferences and is constructive and a great team player. I think Thomas would make an excellent OSGeo Charter Member. Best regards, -Stephen Woodbridge From dmorissette at mapgears.com Thu Jun 28 13:21:54 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 28 Jun 2012 16:21:54 -0400 Subject: [mapserver-users] Charter Member Nomination: Thomas Bonfort In-Reply-To: <4FEC939E.1050108@swoodbridge.com> References: <4FEC939E.1050108@swoodbridge.com> Message-ID: <4FECBCE2.3010700@mapgears.com> I'd like to second Thomas' nomination. Thomas is another one of those individuals that we're so used to seeing around OSGeo projects, conferences and code sprints that we just assumed that he was already charter members. As Steve wrote, he is a very constructive team player, so much that many of the performance gains made in recent FOSS4G benchmarking exercises in both MapServer and Mapnik can be tracked down to the great "coopetition"[1] spirit that Thomas (for MapServer) and Dane Springmeyer (for Mapnik) put into the benchmarking game, effectively exchanging hints and tricks to help boost the performance of each other's (competing) software. That's open source at its best. Daniel [1] Coopetition = Cooperative competition On 12-06-28 1:25 PM, Stephen Woodbridge wrote: > Hi, > > I would like to nominate Thomas Bonfort for OSGeo Charter Member. > > Thomas has been a long time active supporter of the Open Source GIS > movement. He developed mod_geocache which has since been merged with > mapserver as mapcache, he is an active developer of mapserver and > recently taken on the responsibility for the latest mapserver release in > the works. > > Thomas has presented in various FOSS4G conferences and is constructive > and a great team player. I think Thomas would make an excellent OSGeo > Charter Member. > > Best regards, > -Stephen Woodbridge > _______________________________________________ > Discuss mailing list > Discuss at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/discuss -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From hsansegundo at meteo.cat Fri Jun 29 03:18:22 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 29 Jun 2012 12:18:22 +0200 Subject: [mapserver-users] mapcache - is it possible to access different styles defined in the mapfile In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> Message-ID: <4FED80EE.5060507@meteo.cat> I'm using mapcache and I have a mapfile defined with different styles inside a Layer. I want to use mapcache with the different styles for the wms. When I make the request to the wms with the different styles it works. I've tried to define the styles inside de params tag like down: image/png Rayos /var/www/mapserver/mapfile/rayos_acum.map http://localhost/cgi-bin/mapserv when I make the wmts request passing the style value it doesn't work Is possible to use mapcache with different styles? Thanks, Helen From thomas.bonfort at gmail.com Fri Jun 29 03:28:58 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 29 Jun 2012 12:28:58 +0200 Subject: [mapserver-users] mapcache - is it possible to access different styles defined in the mapfile In-Reply-To: <4FED80EE.5060507@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> <4FED80EE.5060507@meteo.cat> Message-ID: The WMTS service uses a hardcoded "default" as the expected style. You can open a enhancement issue in the tracker [1] so that such a style can be forwarded to the WMS source. regards, thomas [1] https://github.com/mapserver/mapcache/issues On Fri, Jun 29, 2012 at 12:18 PM, Helen San Segundo Navazo wrote: > I'm using mapcache and I have a mapfile defined with different styles inside > a Layer. > I want to use mapcache with the different styles for the wms. When I make > the request to the wms with the different styles it works. > > I've tried to define the styles inside de params tag like down: > > > > > image/png > Rayos > /var/www/mapserver/mapfile/rayos_acum.map > > > > > http://localhost/cgi-bin/mapserv > > > > when I make the wmts request passing the style value it doesn't work > > > > Is possible to use mapcache with different styles? > Thanks, > Helen > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Fri Jun 29 05:46:51 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 29 Jun 2012 14:46:51 +0200 Subject: [mapserver-users] MapServer 6.2.0-beta1 release - Please test! Message-ID: The MapServer Team is pleased to announce the release of MapServer 6.2.0-beta1. This is the first beta on our way to a final 6.2 release which is planned here: https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan After the 6.0 release which introduced important changes in key components of the MapServer core (rendering, query and expressions), this 6.2 release focuses on some new features which are summarized here: * RFC 73 : SVG symbology support * RFC 75 : INSPIRE view services * RFC 76 : XMP Metadata support * RFC 77 : Multiple labels or collision-detected symbols per feature * RFC 78 : Vector Field rendering * RFC 79 : Layer Masks * RFC 80 : Multiple font fallback support * RFC 81 : Offset labels with leader lines (RFCs are available online at http://mapserver.org/development/rfc/) Other notable enhancements include: * GD support disabled by default. Enable with --with-gd * labelcache: speedups and reduced memory usage * postgis input: reduced memory usage, better index usage in TIME queries * proj: use the unlocked thread free version if proj >= 4.8.0 * optional fastpath 4326->3857 reprojections * libtool builds: make install is now required. the mapserv and shp2img tools now link to a shared libmapserver library * python and php mapscript build changes * support for ELEVATION and DIM_* WMS dimensions * precise symbol placement: ANCHORPOINT * support for named group layer * basic multi-language support in WMS * php mapscript support for php 5.4 We count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or github tickets). There are two notable changes compared to previous MapServer versions: * Code and issues migrated have been migrated from trac to github ( https://github.com/mapserver/mapserver ). If you have not already done so, you will need to create a github userid in order to submit tickets and patches. Note that all trac tickets have been migrated to github under the same ticket ID (that is, e.g. http://trac.osgeo.org/mapserver/ticket/4208 has become https://github.com/mapserver/mapserver/issues/4208 ). However ticket CCs and notifications have not been migrated, so you will need to manually enable notifications on tickets you where previously following in order to get future updates. You can do this by either commenting in the ticket, or clicking the "Notifications for new comments on this Issue are off. Enable notifications for this Issue" link at the bottom of the ticket page. * The build process on unix platforms has changed significantly: * `make install` must be run now at the end of the build process * we now honor the --prefix configure argument, for $prefix/lib/libmapserver.so , $prefix/bin/mapserv , etc... * your webserver cgi configuration should point to the *installed* version of "mapserv", not the "mapserv" that resides in the source directory As usual there is also a large number of additional small enhancements and bug fixes. For a complete list see the HISTORY.TXT file at: https://github.com/mapserver/mapserver/blob/branch-6-2/HISTORY.TXT The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.2.0-beta1.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.2.0-beta1 release in the next couple of days. This is the first of four planned beta releases and if all goes well a final release should occur around the beginning of August. The full release plan can be viewed at: https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From kaiser at webgis.de Fri Jun 29 06:46:03 2012 From: kaiser at webgis.de (Joel Kaiser) Date: Fri, 29 Jun 2012 15:46:03 +0200 Subject: [mapserver-users] label style polyline problem Message-ID: Hello, I've a problem with mapserver 6.0.3. I've compiled a mapserver on a debian 6. Now I'm playing with the mapserver to get a nice billboard behind my labels in a wms. Every time I'm using a label style with a geomtransform labelpoly my whole label disappears. What am I doing wrong? Screenshots as? an attachement. with kind regards, Joel Kaiser #----------------------------------- # My compiling configure #----------------------------------- ./configure???? --with-zlib \ ??????????????? --with-ogr=/usr/bin/gdal-config \ ??????????????? --with-gdal=/usr/bin/gdal-config \ ??????????????? --with-wfsclient \ ??????????????? --with-wmsclient \ ??????????????? --enable-debug \ ??????????????? --with-curl-config=/usr/bin/curl-config \ ??????????????? --with-proj=/usr/ \ ??????????????? --with-tiff \ ??????????????? --with-gd=/usr/ \ ??????????????? --with-jpeg \ ??????????????? --with-freetype=/usr/ \ ??????????????? --with-threads \ ??????????????? --with-wcs \ ??????????????? --with-postgis=/usr/bin/pg_config \ ??????????????? --with-libiconv=/usr \ ??????????????? --with-wfs \ ??????????????? --with-wms #----------------------------------- # My testing mapfile #----------------------------------- MAP SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END SIZE 200 200 FONTSET "/home/joel/mapserver/font.list" PROJECTION "init=epsg:3857" END NAME "TESTMap" EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 UNITS meters MAXSIZE 4000 SHAPEPATH '' IMAGECOLOR 255 255 255 STATUS ON OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END WEB METADATA "ows_enable_request" "*" "wms_title" "Test" "wms_abstract" "Test 6.0.3" "wms_onlineresource" "http://192.168.0.178/cgi-bin/mapserv2?" "wms_srs" "epsg:3857" "wms_encoding" "UTF-8" END END LAYER NAME "feature" STATUS ON METADATA "wms_title" "feature" "wms_srs" "EPSG:3857" END TYPE POINT EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 FEATURE TEXT "Label" POINTS 841945.38193429005 6074504.7685973998 END END CLASS STYLE SYMBOL 'circle' SIZE 12 COLOR 0 0 0 END LABEL STYLE GEOMTRANSFORM labelpoly COLOR 102 102 102 OFFSET 1 1 END STYLE GEOMTRANSFORM labelpoly COLOR 200 200 200 END FONT "serif" TYPE TRUETYPE POSITION UR MINSIZE 12 SIZE 12 MAXSIZE 12 COLOR 0 0 0 END END END END #------------------------- # example wms query #------------------------- LAYERS=feature&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A3857&BBOX=838732.88625015,6071309.9178178,847418.04358785,6076498.081112&WIDTH=909&HEIGHT=543 -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv2_with_label_style.png Type: image/png Size: 2129 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv2_without_label_style.png Type: image/png Size: 2573 bytes Desc: not available URL: From Steve.Toutant at inspq.qc.ca Fri Jun 29 07:54:40 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 29 Jun 2012 10:54:40 -0400 Subject: [mapserver-users] undesired pattern with getLegendGraphic Message-ID: Hi, My problem is with the CLASS of a WMS layer. Using Cascading GetLegendGraphic I get the legend defined on the server side, a triangle with a label. But I don't want to use this legend so I created a CLASS definition for the layer so I get only a triangle. But instead of returning a single triangle, I get several triangles in the image. See attached files I can't find what can cause this behavior. Here is the symbol definition and the mapfile SYMBOL NAME 'triangle' TYPE VECTOR FILLED TRUE POINTS 0 1 .5 0 1 1 0 1 END END LAYER NAME "fire" TYPE RASTER STATUS ON CONNECTION "http://.../cgi-wms/mapserv?map=fire" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:900913" "wms_name" "fire" "wms_title" "fire" "wms_server_version" "1.1.1" "wms_format" "image/png" END CLASS NAME "fire" STYLE SYMBOL "triangle" SIZE 15 COLOR 178 34 34 OUTLINECOLOR 144 0 0 END END END Thanks for your help Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: severalTriangles.png Type: application/octet-stream Size: 495 bytes Desc: not available URL: From Steve.Toutant at inspq.qc.ca Fri Jun 29 08:09:23 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 29 Jun 2012 11:09:23 -0400 Subject: [mapserver-users] undesired pattern with getLegendGraphic In-Reply-To: Message-ID: I did try that. I get the same pattern but the triangle are not filled with color. thanks steve "Basques, Bob (CI-StPaul)" 2012-06-29 11:02 A "Steve.Toutant at inspq.qc.ca" , "mapserver-users at lists.osgeo.org" cc Objet RE: [mapserver-users] undesired pattern with getLegendGraphic Try commenting out the FILLED TRUE line in the SYMBOL definition. bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Friday, June 29, 2012 9:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] undesired pattern with getLegendGraphic Hi, My problem is with the CLASS of a WMS layer. Using Cascading GetLegendGraphic I get the legend defined on the server side, a triangle with a label. But I don't want to use this legend so I created a CLASS definition for the layer so I get only a triangle. But instead of returning a single triangle, I get several triangles in the image. See attached files I can't find what can cause this behavior. Here is the symbol definition and the mapfile SYMBOL NAME 'triangle' TYPE VECTOR FILLED TRUE POINTS 0 1 .5 0 1 1 0 1 END END LAYER NAME "fire" TYPE RASTER STATUS ON CONNECTION "http://.../cgi-wms/mapserv?map=fire" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:900913" "wms_name" "fire" "wms_title" "fire" "wms_server_version" "1.1.1" "wms_format" "image/png" END CLASS NAME "fire" STYLE SYMBOL "triangle" SIZE 15 COLOR 178 34 34 OUTLINECOLOR 144 0 0 END END END Thanks for your help Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Jun 29 08:02:20 2012 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 29 Jun 2012 15:02:20 +0000 Subject: [mapserver-users] undesired pattern with getLegendGraphic In-Reply-To: References: Message-ID: Try commenting out the FILLED TRUE line in the SYMBOL definition. bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Friday, June 29, 2012 9:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] undesired pattern with getLegendGraphic Hi, My problem is with the CLASS of a WMS layer. Using Cascading GetLegendGraphic I get the legend defined on the server side, a triangle with a label. But I don't want to use this legend so I created a CLASS definition for the layer so I get only a triangle. But instead of returning a single triangle, I get several triangles in the image. See attached files I can't find what can cause this behavior. Here is the symbol definition and the mapfile SYMBOL NAME 'triangle' TYPE VECTOR FILLED TRUE POINTS 0 1 .5 0 1 1 0 1 END END LAYER NAME "fire" TYPE RASTER STATUS ON CONNECTION "http://.../cgi-wms/mapserv?map=fire" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:900913" "wms_name" "fire" "wms_title" "fire" "wms_server_version" "1.1.1" "wms_format" "image/png" END CLASS NAME "fire" STYLE SYMBOL "triangle" SIZE 15 COLOR 178 34 34 OUTLINECOLOR 144 0 0 END END END Thanks for your help Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From torrespri at gmail.com Fri Jun 29 09:15:27 2012 From: torrespri at gmail.com (xam) Date: Fri, 29 Jun 2012 09:15:27 -0700 (PDT) Subject: [mapserver-users] msLoadMSRasterBufferFromFile(): General error message. unable to open file Message-ID: <1340986527975-4984932.post@n6.nabble.com> Hello, I recently updated to version 6.0.2 mapserver. I have a mapfile that uses a file of symbols, which use a truetype font that I have defined it. In version 5.6 worked perfectly, but now I have this message: /msDrawMap (): Image handling error. Failed to draw layer named 'airport'. msLoadMSRasterBufferFromFile (): General error message. unable to open file /var/www/ms/7383 for reading./ The airport layer definition is: ? CLASS ??????? NAME 'Airport' ???????? STYLE ?????????? SYMBOL "7383" SIZE 16 ?????????? COLOR 110 110 110 ?????????? OUTLINECOLOR 255 0 0 ???????? END ???????? LABEL ?????????? FONT sans ?????????? TYPE truetype ?????????? SIZE 8 ?????????? COLOR 0 0 0 ?????????? ANGLE 0 ?????????? POSITION uc ?????????? FORCE true ?????????? AntiAlias ??true ?????????? # PARTIALS true ?????????? # BackgroundColor 255 255 255 ?????????? OUTLINEWIDTH 5 ?????????? OUTLINECOLOR 255 255 255 ?????????? BUFFER 10 ???????? END ???? END and the symbol 7383: SYMBOL # Airport ?? NAME "7383" ?? TYPE TRUETYPE ?? FONT "poi" ?? CHARACTER "B" ?? TRUE AntiAlias END The source truetype "poi" I have created myself and I have included in the file fonts. I thought it could be for OUTPUTFORMAT, I use DRIVER AGG / PNG IMAGEMODE RGBA, but don't know. Might miss some library? Thanks for your help Pepe -- View this message in context: http://osgeo-org.1560.n6.nabble.com/msLoadMSRasterBufferFromFile-General-error-message-unable-to-open-file-tp4984932.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Fri Jun 29 11:21:27 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 29 Jun 2012 18:21:27 +0000 Subject: [mapserver-users] [Mapserver-users] map cache - is it possible to access different was sources based on the current resolution or scale? In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A3@KS-EVS1.smi.sachsen.de> References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> <36CA828A36E29F45B7CF0A1766E5DFA312E920@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A3@KS-EVS1.smi.sachsen.de> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA312FF72@swmail01.r8nssis.local> Andreas, Thank you for your reply. That seems like a good way to conserve disk space. I have a couple concerns, First I don't know how to set up seemliness. Second, I am using windows (ms4w) so I don't know if that would have an impact on how or if I can set up seemliness. Did you set your seemliness up in the Linux OS, or under the Apache configuration? Thanks Mark Volz GIS Specialist -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:Andreas.Eichner at sid.sachsen.de] Sent: Thursday, June 28, 2012 1:58 AM To: Mark Volz; MapserverList OSGEO Subject: AW: [mapserver-users] mapcache - is it possible to access different wms sources based on the current resolution or scale? Hi Mark, > The two layers are in the same grid. I didn't see any documentation > on using symlink for zoom levels. How would I set that up in my > configuration file? you configure mapcache as usual and symlink the levels for the shared zoom levels. MapCache creates a directory structure in the filesystem for every tileset like ///. You can also create it by hand (watch for correct access rights) and then symlink directories from the second tileset to the first. It should look something like this: # cd ///; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 05 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 06 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 07 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 08 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 09 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 10 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 11 drwxrwxr-x 2 apache apache 3896 May 14 15:08 blanks # cd ///; ls -ld drwxrwxr-x 3 apache apache 3896 Aug 30 2011 00 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 01 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 02 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 03 drwxrwxr-x 3 apache apache 3896 Aug 30 2011 04 lrwxrwxrwx 1 root root 22 Dec 7 2011 05 -> ../..//05 lrwxrwxrwx 1 root root 22 Dec 7 2011 06 -> ../..//06 lrwxrwxrwx 1 root root 22 Dec 7 2011 07 -> ../..//07 lrwxrwxrwx 1 root root 22 Dec 7 2011 08 -> ../..//08 lrwxrwxrwx 1 root root 22 Dec 7 2011 09 -> ../..//09 lrwxrwxrwx 1 root root 22 Dec 7 2011 10 -> ../..//10 lrwxrwxrwx 1 root root 22 Dec 7 2011 11 -> ../..//11 lrwxrwxrwx 1 root root 22 Dec 7 2011 blanks -> ../..//blanks drwxrwxr-x 2 apache apache 3896 May 14 15:08 ///blanks This construct shares levels 5-11 between tileset1 and tileset2. From japr94 at hotmail.com Fri Jun 29 12:27:52 2012 From: japr94 at hotmail.com (juliap) Date: Fri, 29 Jun 2012 12:27:52 -0700 (PDT) Subject: [mapserver-users] Pie chart not showing Message-ID: <1340998072454-4984968.post@n6.nabble.com> Hi all I want to create a pie chart for some data. The problem that I'm facing is that i'm not getting any errors when I test the layer using shp2img; however, I don't get the image. This is my mapfile: MAP EXTENT -20037508 -20037508 20037508 20037508 SIZE 400 400 IMAGETYPE PNG LAYER NAME "Survey" TYPE CHART CONNECTIONTYPE OGR CONNECTION "MSSQL:server=myserver;database=data;uid=me;pwd=key" DATA "SELECT Option, COUNT(*) AS RESULT FROM Survey GROUP BY Option" PROCESSING "CHART_TYPE=pie" PROCESSING "CHART_SIZE=30" STATUS ON CLASSITEM 'Option' CLASS EXPRESSION '1' NAME "one" STYLE SIZE [RESULT] COLOR 255 244 237 END END CLASS EXPRESSION '2' NAME "two" STYLE SIZE [RESULT] COLOR 255 217 191 END END CLASS EXPRESSION '3' NAME "three" STYLE SIZE [RESULT] COLOR 255 186 140 END END CLASS EXPRESSION '4' NAME "Four" STYLE SIZE [RESULT] COLOR 255 186 0 END END END END Any ideas of what could be missing in my mapfile? Thanks -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Pie-chart-not-showing-tp4984968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Fri Jun 29 12:46:38 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 29 Jun 2012 21:46:38 +0200 Subject: [mapserver-users] what template for GetFeatureInfo Message-ID: Hi, I need to set the response type for a GetFeatureInfo. MapServer allow text/plain, text/html and text/xml. I like to set all three type, but I don't understand how to set three kind of template each for every type. Is this possible ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles at weareland.com Sat Jun 30 12:43:01 2012 From: charles at weareland.com (bascom49) Date: Sat, 30 Jun 2012 12:43:01 -0700 (PDT) Subject: [mapserver-users] mapserver 6.0.3 make error Message-ID: <1341085381648-4985080.post@n6.nabble.com> I'm getting an error compiling mapserver 6.0.3. If anyone can help me run this down I would be most appreciative. Thanks, Charles mapimageio.c: In function 'gif_error_msg': mapimageio.c:955:3: warning: implicit declaration of function 'GifLastError' mapimageio.c: In function 'readGIF': mapimageio.c:1050:4: error: too few arguments to function 'DGifOpenFileName' /usr/local/include/gif_lib.h:176:14: note: declared here make: *** [mapimageio.o] Error Here is the output from ./configure root at wea:/usr/local/src/mapserver-6.0.3# ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos --with-experimental-png --with-fribidi-config --with-threads --enable-debug checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for strlcpy... no checking for vsnprintf... yes MapServer Version from mapserver.h: '6.0.3' checking if pkg-config path is provided... checking for pkg-config... no couldn't find pkg-config in default path. Please specify full path to pkg-config if needed checking for freetype-config... /usr/local/bin/freetype-config checking for FT_Init_FreeType in -lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using libpng from system libs. checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... yes checking gif_lib.h usability... yes checking gif_lib.h presence... yes checking for gif_lib.h... yes using libgif from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes checking for gdImageCreatePaletteFromTrueColor in -lgd... (cached) yes using libgd 2.0.28 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -L/usr/local/lib -lfreetype -lz -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... no checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. checking if FTGL support requested... no checking if OGL support requested... no configure: checking where EXPAT is installed... checking for XML_ParserCreate in -lexpat... no checking expat.h usability... no checking expat.h presence... no checking for expat.h... no not found in system libs. svg symbol support will be disabled checking for AGG support... yes checking if SVG Symbol support requested... disabled due to missing expat dependency configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes checking for geos-config... /usr/local/bin/geos-config checking for GEOS version >= 3.0.0... yes. Found version 3.3.5 configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking if PostGIS support requested... yes checking for pg_config... no checking if Mysql support requested... no checking if OracleSpatial support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support requested. checking for curl-config... checking for curl-config... /usr/local/bin/curl-config found libcurl version 7.26.0 checking for CURLOPT_PROXYAUTH support... yes. OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking if KML output is requested... no checking for libxml2... libxml2 required. checking for xml2-config... /usr/local/bin/xml2-config found libxml2 version 2.8.0 checking if xml-mapfile is requested... no checking if xslt is requested... no checking if exslt is requested... no checking if FriBidi support requested... yes checking for fribidi-config... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... no 'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapserver-6-0-3-make-error-tp4985080.html Sent from the Mapserver - User mailing list archive at Nabble.com. From even.rouault at mines-paris.org Sat Jun 30 12:49:49 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 30 Jun 2012 21:49:49 +0200 Subject: [mapserver-users] mapserver 6.0.3 make error In-Reply-To: <1341085381648-4985080.post@n6.nabble.com> References: <1341085381648-4985080.post@n6.nabble.com> Message-ID: <201206302149.49719.even.rouault@mines-paris.org> Le samedi 30 juin 2012 21:43:01, bascom49 a ?crit : > I'm getting an error compiling mapserver 6.0.3. > If anyone can help me run this down I would be most appreciative. I suspect that you are using libgif 4.2 or libgif 5.0, that have introduced backward incompatible changes with previous versions. I suspect that MapServer 6.0 is too old to cope with those new versions, and I'm not sure if trunk has been updated yet too. So you could file a ticket to ask support for those new versions (and you can mention http://trac.osgeo.org/gdal/changeset/24490/trunk/gdal/frmts/gif and http://trac.osgeo.org/gdal/changeset/24608/trunk/gdal/frmts/gif as a hint of required changes). In the meantime, stick with libgif 4.1.6 for example. > > Thanks, > Charles > > > mapimageio.c: In function 'gif_error_msg': > mapimageio.c:955:3: warning: implicit declaration of function > 'GifLastError' mapimageio.c: In function 'readGIF': > mapimageio.c:1050:4: error: too few arguments to function > 'DGifOpenFileName' /usr/local/include/gif_lib.h:176:14: note: declared > here > make: *** [mapimageio.o] Error > > Here is the output from ./configure > > root at wea:/usr/local/src/mapserver-6.0.3# ./configure --with-ogr --with-gdal > --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis > --with-geos --with-sos --with-experimental-png --with-fribidi-config > --with-threads --enable-debug > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for ranlib... ranlib > checking for flex... no > checking for lex... no > checking for yywrap in -lfl... no > checking for yywrap in -ll... no > checking for bison... no > checking for byacc... no > checking if compiler supports -R... no > checking if compiler supports -Wl,-rpath,... yes > checking for exp in -lm... yes > checking for __gxx_personality_v0 in -lstdc++... yes > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for strcasecmp... yes > checking for strncasecmp... yes > checking for strdup... yes > checking for strrstr... no > checking for strcasestr... yes > checking for strlcat... no > checking for strlcpy... no > checking for vsnprintf... yes > MapServer Version from mapserver.h: '6.0.3' > checking if pkg-config path is provided... checking for pkg-config... no > couldn't find pkg-config in default path. Please specify full path to > pkg-config if needed > checking for freetype-config... /usr/local/bin/freetype-config > checking for FT_Init_FreeType in -lfreetype... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking ft2build.h usability... yes > checking ft2build.h presence... yes > checking for ft2build.h... yes > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs (-DUSE_ZLIB). > configure: checking where PNG is installed... > checking for png_init_io in -lpng... yes > checking png.h usability... yes > checking png.h presence... yes > checking for png.h... yes > using libpng from system libs. > checking setjmp.h usability... yes > checking setjmp.h presence... yes > checking for setjmp.h... yes > configure: checking where GIF is installed... > checking for DGifOpenFileHandle in -lgif... yes > checking gif_lib.h usability... yes > checking gif_lib.h presence... yes > checking for gif_lib.h... yes > using libgif from system libs. > configure: checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > checking jpeglib.h usability... yes > checking jpeglib.h presence... yes > checking for jpeglib.h... yes > using libjpeg from system libs. > configure: checking where libXpm is installed... > checking for XpmFreeXpmImage in -lXpm... no > XPM (libXpm) library cannot be found, possibly needed for GD > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... no > checking for iconv_open in -liconv... no > using libiconv from system libs. > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.28 or higher... > checking for gdImageCreatePaletteFromTrueColor in -lgd... yes > checking for gdImageCreatePaletteFromTrueColor in -lgd... (cached) yes > using libgd 2.0.28 (or higher) from system libs (-L/usr/local/lib > -lgd -ljpeg -L/usr/local/lib -lfreetype -lz -lpng -lz ). > checking for gdImageCreate in -lgd... yes > checking for gdImageGif in -lgd... yes > checking for gdImagePng in -lgd... yes > checking for gdImageJpeg in -lgd... no > checking for gdImageWBMP in -lgd... yes > checking for gdImageStringFT in -lgd... yes > checking for gdImageOpenPolygon in -lgd... yes > checking for gdImageGifPtr in -lgd... yes > checking for gdFontGetTiny in -lgd... yes > checking for gdImageSetResolution in -l... no > checking whether gdImageGetTrueColorPixel is declared... yes > checking for gdImageGetTrueColorPixel in -lgd... yes > using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS > -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. > checking if FTGL support requested... no > checking if OGL support requested... no > configure: checking where EXPAT is installed... > checking for XML_ParserCreate in -lexpat... no > checking expat.h usability... no > checking expat.h presence... no > checking for expat.h... no > not found in system libs. svg symbol support will be disabled > checking for AGG support... yes > checking if SVG Symbol support requested... disabled due to missing > expat dependency > configure: checking whether we should include PROJ.4 support... > checking for pj_init in -lproj... yes > checking for pj_transform in -lproj... yes > using PROJ.4 from system libs. > configure: checking whether we should include thread safe support... > checking for pthread_create in -lpthread... yes > using -lpthread from system libs. > configure: checking whether we should include ESRI SDE support... > ESRI SDE support not requested. > checking if GEOS support requested... yes > checking for geos-config... /usr/local/bin/geos-config > checking for GEOS version >= 3.0.0... yes. Found version 3.3.5 > configure: checking whether we should include OGR support... > checking for gdal-config... /usr/local/bin/gdal-config > OGR enabled (-DUSE_OGR). > checking if GDAL support requested... yes > checking if PostGIS support requested... yes > checking for pg_config... no > checking if Mysql support requested... no > checking if OracleSpatial support requested... no > configure: checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > configure: checking whether we should include WFS Server support... > OGC WFS Server support not requested. > configure: checking whether we should include WCS Server support... > OGC WCS Server support enabled (-DUSE_WCS_SVR). > configure: checking whether we should include WMS Client Connections > support... > configure: checking whether we should include WFS Client Connections > support... > configure: checking whether we should include OGC SOS Server support... > OGC SOS Server support requested. > checking for curl-config... checking for curl-config... > /usr/local/bin/curl-config > found libcurl version 7.26.0 > checking for CURLOPT_PROXYAUTH support... yes. > OGC WMS Client Connections enabled (-DUSE_WMS_LYR). > OGC WFS Client Connections enabled (-DUSE_WFS_LYR). > checking if KML output is requested... no > checking for libxml2... libxml2 required. > checking for xml2-config... /usr/local/bin/xml2-config > found libxml2 version 2.8.0 > checking if xml-mapfile is requested... no > checking if xslt is requested... no > checking if exslt is requested... no > checking if FriBidi support requested... yes > checking for fribidi-config... no > checking if Cairo support requested... no > checking FastCGI support... not requested. > configure: checking HTTPD server (Apache) version... > checking for httpd... no > 'httpd' not found, skipping Apache version detection. You may want > to use --with-httpd=/path/to/httpd > Compiling with fast MS_NINT > checking compiler warnings... basic > configure: checking whether we should enable debug features... > Enabling debug features: -g in CFLAGS. > configure: checking whether we should enable mapserv CGI command-line debug > arguments... > configure: checking for PHP/MapScript module options... > PHP/MapScript module not configured. > checking for g++ -shared ... yes > checking if --enable-runpath requested... no > checking if --with-java-include-os-name specified... no, autodetected linux > configure: creating ./config.status > config.status: creating Makefile > config.status: creating mapscript/java/Makefile > config.status: creating mapscript/csharp/Makefile > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -g -fPIC -Wall > C++ compiler: g++ -g -fPIC -Wall > Debug: -g > Generic NINT: > > -------------- Renderer Settings --------- > OpenGL support: > zlib support: -DUSE_ZLIB > png support: -DUSE_PNG > gif support: -DUSE_GIF > jpeg support: -DUSE_JPEG > freetype support: -DUSE_FREETYPE > iconv support: -DUSE_ICONV > AGG support: internal > SVG Symbol support: > Cairo (SVG,PDF) support: > KML support: > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: -DUSE_LIBXML2 > FriBidi support: > Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH > FastCGI support: > Threading support: -DUSE_THREAD > GEOS support: -DUSE_GEOS > XML Mapfile support: > XSLT support: > EXSLT support: > > -------------- Data Format Drivers ------- > PostGIS support: > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: > WFS Client: -DUSE_WFS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: -DUSE_SOS_SVR > > -------------- MapScript ----------------- > PHP MapScript: no > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/mapserver-6-0-3-make-error-tp4985080.h > tml 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 charles at weareland.com Sat Jun 30 13:26:03 2012 From: charles at weareland.com (bascom49) Date: Sat, 30 Jun 2012 13:26:03 -0700 (PDT) Subject: [mapserver-users] mapserver 6.0.3 make error In-Reply-To: <201206302149.49719.even.rouault@mines-paris.org> References: <1341085381648-4985080.post@n6.nabble.com> <201206302149.49719.even.rouault@mines-paris.org> Message-ID: <1341087963572-4985087.post@n6.nabble.com> Thanks for the reply. In /usr/lib I found: libgif.so.4 libgif.so.4.1 libgif.so.4.1.6 So I'm thinking that my version should be fine. If you have any other ideas I would appreciate it. Thanks, Charles -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapserver-6-0-3-make-error-tp4985080p4985087.html Sent from the Mapserver - User mailing list archive at Nabble.com. From even.rouault at mines-paris.org Sat Jun 30 13:30:38 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 30 Jun 2012 22:30:38 +0200 Subject: [mapserver-users] mapserver 6.0.3 make error In-Reply-To: <1341087963572-4985087.post@n6.nabble.com> References: <1341085381648-4985080.post@n6.nabble.com> <201206302149.49719.even.rouault@mines-paris.org> <1341087963572-4985087.post@n6.nabble.com> Message-ID: <201206302230.38347.even.rouault@mines-paris.org> Le samedi 30 juin 2012 22:26:03, bascom49 a ?crit : > Thanks for the reply. > In /usr/lib I found: > > libgif.so.4 > libgif.so.4.1 > libgif.so.4.1.6 > > So I'm thinking that my version should be fine. > > If you have any other ideas I would appreciate it. The error message reported in your initial message mentionned /usr/local/include/gif_lib.h So, you should check in /usr/local/lib instead. > > Thanks, > Charles > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/mapserver-6-0-3-make-error-tp4985080p4 > 985087.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 charles at weareland.com Sat Jun 30 13:44:22 2012 From: charles at weareland.com (bascom49) Date: Sat, 30 Jun 2012 13:44:22 -0700 (PDT) Subject: [mapserver-users] mapserver 6.0.3 make error In-Reply-To: <1341087963572-4985087.post@n6.nabble.com> References: <1341085381648-4985080.post@n6.nabble.com> <201206302149.49719.even.rouault@mines-paris.org> <1341087963572-4985087.post@n6.nabble.com> Message-ID: <1341089062538-4985090.post@n6.nabble.com> Evan, I got myself a little mixed up. You were spot on. I downgraded as you suggested and all is good. Thanks so much. Charles -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapserver-6-0-3-make-error-tp4985080p4985090.html Sent from the Mapserver - User mailing list archive at Nabble.com.