From carla.fernandezb at gmail.com Sun Mar 2 02:27:25 2008 From: carla.fernandezb at gmail.com (cfb) Date: Sun, 2 Mar 2008 02:27:25 -0800 (PST) Subject: [MAPSERVER-USERS] Dynamic change in symbol size Message-ID: <15711533.post@talk.nabble.com> Hi there, I would like to have dynamic symbols size in my WMS. I?m working with MS4W 2.2.7. (MapServer 5.0). I have a point layer with 7 class and pixmap symbols (png) associated. I don?t know if there?s a way to change the size of the symbols when I zoom in the map (I?d like to put them bigger). Any thoughts on this? Thanks. Carla -- View this message in context: http://www.nabble.com/Dynamic-change-in-symbol-size-tp15711533p15711533.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at neogeo-online.net Sun Mar 2 03:04:26 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sun, 02 Mar 2008 12:04:26 +0100 Subject: [MAPSERVER-USERS] Dynamic change in symbol size In-Reply-To: <15711533.post@talk.nabble.com> References: <15711533.post@talk.nabble.com> Message-ID: <47CA89BA.3070803@neogeo-online.net> Hi, Yes, there's a way : Use SYMBOLSCALE in the LAYER definition. This will define the normal scale to render the layer based on the defined STYLES. On the other scales, they will be "rescaled". Guillaume cfb a ?crit : > Hi there, > > I would like to have dynamic symbols size in my WMS. I?m working with MS4W > 2.2.7. (MapServer 5.0). > > I have a point layer with 7 class and pixmap symbols (png) associated. I > don?t know if there?s a way to change the size of the symbols when I zoom in > the map (I?d like to put them bigger). > > Any thoughts on this? > > Thanks. > > Carla > -- From ivan.mincik at gmail.com Sun Mar 2 03:27:16 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sun, 2 Mar 2008 12:27:16 +0100 Subject: [mapserver-users] CLOSE_CONNECTION=DEFER - Segmentation fault Message-ID: <200803021227.16671.ivan.mincik@gmail.com> Dear users, I use mapserver 4.10.3, postgresql 8.1, Debian Etch. When I use CLOSE_CONNECTION=DEFER in postgis layer a get from time to time Segmentation fault error. Application is frozen for some time. Tested on various postgis versions. I found something here: http://trac.osgeo.org/mapserver/ticket/1507 but it did not help me. In my testing mapfile I use 3 postgis layers and CLOSE_CONNECTION=DEFER has significant effect. Time for rendering map is reduced in average from 0.846s to 0.583s. Is anybody using CLOSE_CONNECTION=DEFER without any problems ? Thanks Ivan From mhungc at gmail.com Sun Mar 2 05:23:21 2008 From: mhungc at gmail.com (mhungc) Date: Sun, 2 Mar 2008 05:23:21 -0800 (PST) Subject: [MAPSERVER-USERS] hybrid images in Mapserver Message-ID: <15787834.post@talk.nabble.com> Hi, I want to display hybrid images with mapserver php/Mapscript...for example i have shapes files and display this type of images but i want too display sattelite images like google maps.... I can? -- View this message in context: http://www.nabble.com/hybrid-images-in-Mapserver-tp15787834p15787834.html Sent from the Mapserver - User mailing list archive at Nabble.com. From michael_wessel at gmx.de Sun Mar 2 06:12:13 2008 From: michael_wessel at gmx.de (Michael Wessel) Date: Sun, 2 Mar 2008 15:12:13 +0100 Subject: [mapserver-users] Changing map colors dynamically doesn't work Message-ID: <200803021512.13134.michael_wessel@gmx.de> Dear MapServer list, according to http://mapserver.gis.umn.edu/docs/reference/cgi/controls "Changing map file parameters via a form or a URL" it should be possible to change the fill color of my map polygons to blue via the GET parameter map_lakes_class_color=0+0+255, e.g. in http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/test4.map&map_lakes_class_color=0+0+255 However, there is no change; the polygons stay red, as defined in the reference map file: MAP NAME 'map' STATUS ON IMAGETYPE PNG EXTENT -3037632.000000 -708658.398506 1846021.625000 4934649.999999 SIZE 1024 768 SHAPEPATH "/srv/www/mapserver/" WEB TEMPLATE "/home/mi.wessel/test/global.html" IMAGEPATH "/srv/www/htdocs/temp/" IMAGEURL "../temp/" END LAYER NAME 'lakes' STATUS DEFAULT TYPE POLYGON DATA lakes CLASS COLOR 100 0 0 END END END I have also tried map_layer_0_class_color=200+0+0 but then I get getSymbol(): Symbol definition error. Parsing error near (0):(line 1)he error What's wrong here? Adding a name to the class doesn't work either. I am using MapServer 5.0.2 (2008-01-28) on SuSE Linux 10.2. Best regards and thanks in advance, Michael From crschmidt at metacarta.com Sun Mar 2 06:28:26 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sun, 2 Mar 2008 09:28:26 -0500 Subject: [MAPSERVER-USERS] hybrid images in Mapserver In-Reply-To: <15787834.post@talk.nabble.com> References: <15787834.post@talk.nabble.com> Message-ID: <20080302142826.GC11480@metacarta.com> On Sun, Mar 02, 2008 at 05:23:21AM -0800, mhungc wrote: > > Hi, > > I want to display hybrid images with mapserver php/Mapscript...for example i > have shapes files and display this type of images but i want too display > sattelite images like google maps.... > > I can? Yes. Typically you would have two "layers": One for your vectors, one for your satellite imagery. You would then turn them both on -- with the satellite being on the bottom -- and get 'hybrid' imagery. If you care about them actually being seperate images, you could serve them up on top of each other in a web interace: see http://openaerialmap.org/map/?zoom=4&lat=35.85938&lon=-87.53906&layers=BT for an example in OpenLayers. Regards, -- Christopher Schmidt MetaCarta From jeffmckenna at gmail.com Sun Mar 2 07:59:38 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Sun, 2 Mar 2008 10:59:38 -0500 Subject: [mapserver-users] Changing map colors dynamically doesn't work In-Reply-To: <200803021512.13134.michael_wessel@gmx.de> References: <200803021512.13134.michael_wessel@gmx.de> Message-ID: See the "URL Configuration Changes" section of: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT -jeff On Sun, Mar 2, 2008 at 9:12 AM, Michael Wessel wrote: > Dear MapServer list, > > according to > > http://mapserver.gis.umn.edu/docs/reference/cgi/controls > "Changing map file parameters via a form or a URL" > > it should be possible to change the fill color > of my map polygons to blue via the GET parameter > > map_lakes_class_color=0+0+255, e.g. in > > > http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/test4.map&map_lakes_class_color=0+0+255 > > However, there is no change; the polygons stay red, > as defined in the reference map file: > > MAP > NAME 'map' > STATUS ON > IMAGETYPE PNG > EXTENT -3037632.000000 -708658.398506 1846021.625000 > 4934649.999999 > SIZE 1024 768 > SHAPEPATH "/srv/www/mapserver/" > > WEB > TEMPLATE "/home/mi.wessel/test/global.html" > IMAGEPATH "/srv/www/htdocs/temp/" > IMAGEURL "../temp/" > END > > LAYER > NAME 'lakes' > STATUS DEFAULT > TYPE POLYGON > DATA lakes > > CLASS > COLOR 100 0 0 > END > END > > END > > I have also tried > > map_layer_0_class_color=200+0+0 > > but then I get > > getSymbol(): Symbol definition error. Parsing error near (0):(line 1)he > error > > What's wrong here? Adding a name to the class doesn't work either. > > I am using MapServer 5.0.2 (2008-01-28) on SuSE Linux 10.2. > > Best regards and thanks in advance, > > Michael > > _______________________________________________ > 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 michael_wessel at gmx.de Sun Mar 2 08:32:11 2008 From: michael_wessel at gmx.de (Michael Wessel) Date: Sun, 2 Mar 2008 17:32:11 +0100 Subject: [mapserver-users] Changing map colors dynamically doesn't work In-Reply-To: References: <200803021512.13134.michael_wessel@gmx.de> Message-ID: <200803021732.12087.michael_wessel@gmx.de> Hi Jeff, On Sunday 02 March 2008 16:59, Jeff McKenna wrote: > See the "URL Configuration Changes" section of: > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserv >er/MIGRATION_GUIDE.TXT Great, that works! Thanks a lot! And here is the next problem - how would I change the class expression CLASS EXPRESSION (1) STYLE COLOR 255 255 1 OUTLINECOLOR 32 32 32 END END "1" is for true, so all polygons are selected; I now want to change the expression to (0) (= false), in order to deselect all polygons. I tried: map.layer[lakes].class[0].expression[0]='(0)' and got: loadClass(): Unknown identifier. Parsing error near ((0)):(line 1) And for map.layer[lakes].class[0]='expression+(0)' I get loadClass(): Unknown identifier. Parsing error near (expression (0)): (line 1) Moreover, for map.layer[lakes].class[expression]='(0)' msUpdateMapFromURL(): General error message. Class to be modified not valid. Anyone knows the correct syntax for changing this expression via the URL? Thanks for the great support, Michael From cww at denterprises.org Sun Mar 2 08:50:06 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Sun, 02 Mar 2008 11:50:06 -0500 Subject: [mapserver-users] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803021227.16671.ivan.mincik@gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> Message-ID: <47CADABE.3070701@denterprises.org> Ivan Mincik wrote: > In my testing mapfile I use 3 postgis layers and CLOSE_CONNECTION=DEFER has > significant effect. Time for rendering map is reduced in average from 0.846s > to 0.583s. Hi, Ivan. I don't have a solution to your problem, but I'm curious about how you're profiling your application. I use OpenLayers + MapServer + PostgreSQL, and I've been putting off fixing my own speed issues because I'm stumped on how to profile it. Colin From pzader at gmail.com Sun Mar 2 14:23:21 2008 From: pzader at gmail.com (pablo zader) Date: Sun, 2 Mar 2008 19:23:21 -0300 Subject: [mapserver-users] Mapserver 5 (windows) vs Mapserver 5 (linux) Message-ID: <52be2a8b0803021423i6956d3dfq13a07d54ec17d4c2@mail.gmail.com> Hi friends! first of all , sorry for my english. I was working with mapserver 5 down windows (the one that comes with the package ms4w) and I want to install a server linux and mapserver 5 for linux. Is my question, the versions for an operating system and for another sound the same ones? Is it to say, tendre algun problem of compatibility if I try to run the application mapserver that I created down widows in mapserver 5 for linux? What if tried an application created in mapserver 5 down windows, run it in mapserver 4 down linux and there if that are not compatible, is necessary to arrange some things in order that it works but is something tedious. tank you -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Sun Mar 2 14:49:13 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sun, 02 Mar 2008 23:49:13 +0100 Subject: [mapserver-users] Mapserver 5 (windows) vs Mapserver 5 (linux) In-Reply-To: <52be2a8b0803021423i6956d3dfq13a07d54ec17d4c2@mail.gmail.com> References: <52be2a8b0803021423i6956d3dfq13a07d54ec17d4c2@mail.gmail.com> Message-ID: <47CB2EE9.5060003@neogeo-online.net> Hi Pablo, There is no difference between Linux and Windows versions of MapServer. So you will just have to adapt some particular things (paths for instance) to the new environment. But there are differences between MapServer 4 et 5 (not many though). So read carrefully the MapServer 5 migration guide (http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT) to avoid some issues. Hope that helps, Guillaume pablo zader a ?crit : > Hi friends! > first of all , sorry for my english. > I was working with mapserver 5 down windows (the one that comes with the > package ms4w) and I want to install a server linux and mapserver 5 for > linux. > Is my question, the versions for an operating system and for another > sound the same ones? Is it to say, tendre algun problem of compatibility > if I try to run the application mapserver that I created down widows in > mapserver 5 for linux? > What if tried an application created in mapserver 5 down windows, run > it in mapserver 4 down linux and there if that are not compatible, is > necessary to arrange some things in order that it works but is something > tedious. > tank you > -- > Pablo Zader > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From michael_wessel at gmx.de Sun Mar 2 23:46:15 2008 From: michael_wessel at gmx.de (Michael Wessel) Date: Mon, 3 Mar 2008 08:46:15 +0100 Subject: [mapserver-users] Changing map colors dynamically doesn't work In-Reply-To: <200803021732.12087.michael_wessel@gmx.de> References: <200803021512.13134.michael_wessel@gmx.de> <200803021732.12087.michael_wessel@gmx.de> Message-ID: <200803030846.15740.michael_wessel@gmx.de> Dear List, On Sunday 02 March 2008 17:32, Michael Wessel wrote: > And here is the next problem - how would I change the class > expression > > CLASS > EXPRESSION (1) > STYLE > COLOR 255 255 1 > OUTLINECOLOR 32 32 32 > END > END > > "1" is for true, so all polygons are selected; I now want to change > the expression to (0) (= false), in order to deselect all polygons. > > I tried: > > map.layer[lakes].class[0].expression[0]='(0)' > > and got: > > loadClass(): Unknown identifier. Parsing error near ((0)):(line 1) OK, I now found the answer to this question in the list archives, e.g. http://lists.umn.edu/cgi-bin/wa?A2=ind0708&L=MAPSERVER-USERS&P=R34495 Regards, Michael From M.vanderPauw at weer.nl Mon Mar 3 00:51:09 2008 From: M.vanderPauw at weer.nl (Martijn van der Pauw) Date: Mon, 3 Mar 2008 08:51:09 -0000 Subject: [mapserver-users] lane presentation of highways In-Reply-To: <47C81B1B.9050203@gritechnologies.com> References: <47C768D4.5060301@gritechnologies.com> <47C81B1B.9050203@gritechnologies.com> Message-ID: If I have right understood, you suggest to add the lines as an attribute/arrowsymbol to a single (transparent) line that represents the highway. I will try to find out how to do something like that. Thank you for your suggestion. It sounds as a possible solution. Martijn ________________________________ Van: Bob Basques Onderwerp: Re: [mapserver-users] lane presentation of highways I can't think of a way of doing this, because you physically need to spread the two lines apart for the longer scale views if you want to see both. I have a couple of ideas about how to label a wide sigle line though that would show both direction if they are attached as attributes. It might be possible to draw the lines, and then draw the layer again, drawing only with the Symbols on top (no lines), and then offset the arrow symbol locations, Actually I think that would work. I have something similar in a address range labeling layer. It would take a bit of trial and error to do though. You could still get into trouble though at longer range views, just because there won't physically be enough room to apply the labels. bobb Martijn The data is set up with two seperate lines, one for each direction. On the higher zoom levels you can already see the seperate lanes. But, unfortunately, when zoomed out they overlay each other of course. Martijn ________________________________ Van: Bob Basques [mailto:bob.b at gritechnologies.com] Is the data for the lines set up as single line layers, or are there two separate lines, one for each direction? bobb Martijn wrote: Hello, I'd like to know how I can plot the 2 seperate directions of a highway (I have the data in the database) in a way that they can be distinguished from each other at all zoomlevels. When you zoomed in a lot, you can always see the different driving directions (lanes), but when you zoom out they overlay each other. Important is that each lane is colored depending the road condition. So, the standard way of plotting a highway doesn't meet our needs. The colors of the 2 seperate driving directions can/will differ. Regards, Waver -- This e-mail is from Meteo Consult B.V., a MeteoGroup company. For more information, see www.weer.nl This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this e-mail or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of MeteoGroup. Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. ________________________________ _______________________________________________ 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 mlinden at zeelandnet.nl Mon Mar 3 01:13:52 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Mon, 03 Mar 2008 10:13:52 +0100 Subject: [mapserver-users] lane presentation of highways In-Reply-To: References: <47C768D4.5060301@gritechnologies.com> <47C81B1B.9050203@gritechnologies.com> Message-ID: <47CBC150.5030105@zeelandnet.nl> An HTML attachment was scrubbed... URL: From bob.b at gritechnologies.com Mon Mar 3 05:37:44 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Mon, 03 Mar 2008 07:37:44 -0600 Subject: [mapserver-users] lane presentation of highways In-Reply-To: <47CBC150.5030105@zeelandnet.nl> References: <47C768D4.5060301@gritechnologies.com> <47C81B1B.9050203@gritechnologies.com> <47CBC150.5030105@zeelandnet.nl> Message-ID: <47CBFF28.2040701@gritechnologies.com> That's about what I was describing in the second paragraph of my post, only I don't think you would need the third class you have listed, just set up a class, one for each direction, and only labels those based where a value exists. bobb Milo van der Linden wrote: > Hello Martijn, > > I am able to help you on this one. > > There is no need to set a transparent line. It is a matter of defining > style based upon an attribute. > First you need a definition for a class item: > > CLASSITEM 'DRIVING_DIRECTION' > > Then you set up classes for the directions: > > CLASS > NAME 'FROM_LEFT' > EXPRESSION 'FROM_LEFT' > MINSCALE 0 > MAXSCALE 100000 > STYLE > SYMBOL 0 > SIZE 6 > OFFSET -3 0 > WIDTH 3 > COLOR 249 201 139 > END > END > > CLASS > NAME 'FROM_RIGHT' > EXPRESSION 'FROM_RIGHT' > MINSCALE 0 > MAXSCALE 100000 > STYLE > SYMBOL 0 > SIZE 6 > OFFSET 3 0 > WIDTH 3 > COLOR 249 201 139 > END > END > > CLASS > NAME 'SINGLELANE' > EXPRESSION 'SINGLELANE' > MINSCALE 0 > MAXSCALE 100000 > STYLE > SYMBOL 0 > SIZE 6 > #OFFSET 3 0 #NO OFFSET > WIDTH 3 > COLOR 249 201 139 > END > END > > > > > Martijn van der Pauw schreef: >> If I have right understood, you suggest to add the lines as an >> attribute/arrowsymbol to a single (transparent) line that represents >> the highway. I will try to find out how to do something like that. >> Thank you for your suggestion. It sounds as a possible solution. >> >> Martijn >> >> ------------------------------------------------------------------------ >> *Van:* Bob Basques >> *Onderwerp:* Re: [mapserver-users] lane presentation of highways >> >> I can't think of a way of doing this, because you physically need to >> spread the two lines apart for the longer scale views if you want to >> see both. I have a couple of ideas about how to label a wide sigle >> line though that would show both direction if they are attached as >> attributes. >> >> It might be possible to draw the lines, and then draw the layer >> again, drawing only with the Symbols on top (no lines), and then >> offset the arrow symbol locations, Actually I think that would >> work. I have something similar in a address range labeling layer. >> It would take a bit of trial and error to do though. >> >> You could still get into trouble though at longer range views, just >> because there won't physically be enough room to apply the labels. >> >> bobb >> >> >> Martijn >>> >>> The data is set up with two seperate lines, one for each direction. On the higher zoom levels you can already see the seperate lanes. But, unfortunately, when zoomed out they overlay each other of course. >>> >>> Martijn >>> >>> ------------------------------------------------------------------------ >>> *Van:* Bob Basques [mailto:bob.b at gritechnologies.com] >>> >>> >>> Is the data for the lines set up as single line layers, or are there >>> two separate lines, one for each direction? >>> >>> bobb >>> >>> >>> Martijn wrote: >>>> >>>> Hello, >>>> >>>> I'd like to know how I can plot the 2 seperate directions of a >>>> highway (I have the data in the database) in a way that they can be >>>> distinguished from each other at all zoomlevels. When you zoomed in >>>> a lot, you can always see the different driving directions (lanes), >>>> but when you zoom out they overlay each other. Important is that >>>> each lane is colored depending the road condition. So, the standard >>>> way of plotting a highway doesn't meet our needs. The colors of the >>>> 2 seperate driving directions can/will differ. >>>> >>>> Regards, >>>> Waver >>>> >>>> >>>> >>>> >>>> -- >>>> >>>> This e-mail is from Meteo Consult B.V., a MeteoGroup company. For >>>> more information, see _www.weer.nl_ >>>> >>>> >>>> This e-mail may contain confidential information. Only the >>>> addressee is permitted to read, copy, distribute or otherwise use >>>> this e-mail or any attachments. If you have received it in error, >>>> please contact the sender immediately. Any opinion expressed in >>>> this e-mail is personal to the sender and may not reflect the >>>> opinion of MeteoGroup. >>>> >>>> Any e-mail reply to this address may be subject to interception or >>>> monitoring for operational reasons or for lawful business practices. >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frequens at gmail.com Mon Mar 3 07:49:58 2008 From: frequens at gmail.com (frequens) Date: Mon, 3 Mar 2008 16:49:58 +0100 Subject: [mapserver-users] expose WFS feature attributes with mapscript Message-ID: <2482247e0803030749v44c46161ubd85525e17e9c3fc@mail.gmail.com> I am trying to query a WFS layer by mapscript (5.0.2, both Mapserver and client side). The layer draws fine, also labels correctly, even the querymap highligts the selected records... The following snippet: $resultlayer = $map -> getLayerByName ('xxxx'); $theresult = $resultlayer ->getResult(0)->{shapeindex}; $number = $resultlayer -> getNumResults(); echo ("$theresult $number"); echoes correctly the number of selected features. Yet, I am unable to get grip of the fid and/or any other attributes available in the gml. Any help (piece of code )would be much appreciated... BR frequens From nospam420 at yahoo.com Mon Mar 3 12:53:22 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 12:53:22 -0800 (PST) Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803021227.16671.ivan.mincik@gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> Message-ID: <15813612.post@talk.nabble.com> hrach wrote: > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > I am now using it fine with mapserver 5.0.0 after applying the patch for bug 2497: http://trac.osgeo.org/mapserver/ticket/2497 I don't know if 4.10.3 is different enough for that patch to be applicable or not. But if it's not too hard to upgrade, you might want to try a later version (e.g. 5.0.2) plus that patch. Note that the patch may make it into the 5.0.3 release (it was originally targetted for 5.2). You also might want to take a look at the following related mailing list threads: http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653945.html#a12674499 http://www.nabble.com/postgres-transaction-warnings-to15749333.html - Rich -- View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p15813612.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ivan.mincik at gmail.com Mon Mar 3 13:46:18 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 3 Mar 2008 22:46:18 +0100 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <15813612.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> Message-ID: <200803032246.19081.ivan.mincik@gmail.com> thanks a lot, I am just compiling Mapserver 5.0.3 and ready to try upgrade. Ivan On Monday 03 March 2008 21:53, rich.fromm wrote: > hrach wrote: > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > > I am now using it fine with mapserver 5.0.0 after applying the patch for > bug 2497: > http://trac.osgeo.org/mapserver/ticket/2497 > > I don't know if 4.10.3 is different enough for that patch to be applicable > or not. But if it's not too hard to upgrade, you might want to try a later > version (e.g. 5.0.2) plus that patch. Note that the patch may make it into > the 5.0.3 release (it was originally targetted for 5.2). > > You also might want to take a look at the following related mailing list > threads: > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653945.h >tml#a12674499 > http://www.nabble.com/postgres-transaction-warnings-to15749333.html > > - Rich From nospam420 at yahoo.com Mon Mar 3 13:48:50 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 13:48:50 -0800 (PST) Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> <15748847.post@talk.nabble.com> Message-ID: <15814881.post@talk.nabble.com> Tamas Szekeres wrote: > > I appreciate your efforts very much to sort these things out. > > Let us know if you have a further suspicion about something that > should be fixed in mapserver. > ok, i'll continue to report odd and crashing behavior, on the off chance that some of it might turn up some kind of problem, but i'm at the point now where i've achieved enough stability that my current problems are pretty rare and difficult to boil down to a concise, reproduceable test case. my latest issue is different enough that i'll start a new e-mail thread for it. besides trying to take tomcat out of the picture (which i like having there because it's a realistic portrayal of the app that i'm trying to stress test, but it does complicate debugging), for the purpose of multi-threaded testing, i wonder if a way of even taking java out of the picture would be useful? why is there no pure C or C++ mapscript? it seems to me that if you really wanted the highest performance map server, that would be the way to go. could you somewhat fake this with with libmapscript.so and mapscript_wrap.c that are in the mapscript/java directory? or have SWIG generate code for C++? or has creating a libmapserver.so that's independent of mapscript been considered? although i tend to think that the level of functionality provided by mapscript would be nice, but keeping it purely within native code and not having to deal with JNI would have advantages. - rich -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15814881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 3 13:52:34 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 13:52:34 -0800 (PST) Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803032246.19081.ivan.mincik@gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> <200803032246.19081.ivan.mincik@gmail.com> Message-ID: <15814956.post@talk.nabble.com> hrach wrote: > > thanks a lot, I am just compiling Mapserver 5.0.3 and ready to try > upgrade. > you probably mean 5.0.2. afaik, 5.0.3 hasn't been released yet. which means you will have to hand patch for bug 2497 if you want to include that fix. - rich -- View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p15814956.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ivan.mincik at gmail.com Mon Mar 3 14:17:44 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 3 Mar 2008 23:17:44 +0100 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <15814956.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <200803032246.19081.ivan.mincik@gmail.com> <15814956.post@talk.nabble.com> Message-ID: <200803032317.44815.ivan.mincik@gmail.com> yes 5.0.2 hm, after some short test there are no errors thanks a lot On Monday 03 March 2008 22:52, rich.fromm wrote: > hrach wrote: > > thanks a lot, I am just compiling Mapserver 5.0.3 and ready to try > > upgrade. > > you probably mean 5.0.2. afaik, 5.0.3 hasn't been released yet. > > which means you will have to hand patch for bug 2497 if you want to include > that fix. > > - rich From nospam420 at yahoo.com Mon Mar 3 14:45:00 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 14:45:00 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. Message-ID: <15815968.post@talk.nabble.com> I'm not sure if anyone is going to be able to be of any help with this, since I am not able to consistently reproduce the problem. Nevertheless, based on previous instructions, just in case, I am reporting a rare problem seen under heavy load. I am stress testing a custom webapp using java mapscript. On several occasions, I have observed mapserver logging an error, which caused tomcat to return a 500 (Internal Server Error), but NOT crash. The error is as follows: --- begin --- java.lang.UnknownError: msProcessProjection(): Projection library error. no system list, errno: 22 at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) --- end --- I assume this is being logged at mapfile.c:967 If I later by hand try the exact same query that causes this to happen, the query works fine. Because of this, I then added a (limited) auto-retry mechanism to my java code. After running fine for a significant amount of time (hours) under heavy load, I got a very similar, though not entirely identical java stack trace: --- begin --- java.lang.UnknownError: msProcessProjection(): Projection library error. at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) --- end --- Right around here, tomcat DID crash, with a SIGSEGV. I know that my code properly caught the error and was preparing to retry. I suspect it may have been the retry that caused the crash, but I unfortunately don't have enough logging information to prove that. I am in the process of running again, with some more logging, to try to get a better feel for what happens in the event of this mapserver error and retry. Anyway, here is the stack trace: _IO_fread (/lib/libc.so.6) yy_get_next_buffer (maplexer.c:3522) msyylex (maplexer.c:3353) loadLayer (mapfile.c:2572) loadMapInternal (mapfile.c:4353) msLoadMap (mapfile.c:4578) new_mapObj (mapscript/java/mapscript_wrap.c:1612) Java_edu_umn_gis_mapscript_mapscriptJNI_new_1mapObj (mapscript/java/mapscript_wrap.c:19633) Regardless of the fact that that is where the actual segfault occurred, I refuse to believe that this is a sign of a bug in glibc. Confounding things further, the very first time I tried running again to debug this situation, the very first request (but with different parameters than above) also crashed tomcat, with the same crash as above. And this time there was NOT any evidence of a projection error or a retry. But that was the only such instance, and since then I have yet to see either the projection error or tomcat crashing. I am continuing a stress test with more logging and will report if I have anything new to add. I have locally compiled mapserver 5.0.0 plus patches for bug 2525 and bug 2497. This is on debian 3.1 (sarge), locally compiled with gcc 3.3.5, using locally compiled versions of GD 2.0.35 and AGG 2.5, and debian packages for everything else. My mapserver configuration is as follows: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE The Java mapscript code was compiled with SWIG 1.3.24 and Sun Java 1.5.0_06. It runs with the same version of Java and with tomcat 5.5.17. It queries its data from a PostgreSQL (8.1) / PostGIS (1.1.2) database, uses projections, uses the AGG renderer, includes labels with TrueType fonts, and generates PNG output. The data for each LAYER has the following input projection: PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END And the MAP defines the following output projection: PROJECTION "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" END Thanks if anyone has anything helpful to add, but I'm not expecting it and am mostly posting this just to record the problem. Given the relative infrequency of the problem, and the fact that (I think) further retrying the same request will eventually work, I may be satisfied with just having a watchdog process that automatically restarts tomcat in the event that it does crash. Based on the sporadic nature of what I'm seeing, it's entirely possible that there's just some more fundamental multithreaded issue going on, and the spot reporting a problem is not at all what's responsible. For a related issue of a moving around crash under heavy load, see the following mailing list thread: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---to15699786.html -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15815968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Mar 3 15:13:14 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 03 Mar 2008 18:13:14 -0500 Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15815968.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> Message-ID: <47CC860A.6070905@pobox.com> rich.fromm wrote: > I'm not sure if anyone is going to be able to be of any help with this, since > I am not able to consistently reproduce the problem. Nevertheless, based on > previous instructions, just in case, I am reporting a rare problem seen > under > heavy load. > > I am stress testing a custom webapp using java mapscript. On several > occasions, I have observed mapserver logging an error, which caused tomcat > to > return a 500 (Internal Server Error), but NOT crash. The error is as > follows: > > --- begin --- > java.lang.UnknownError: msProcessProjection(): Projection library error. no > system list, errno: 22 > > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) > --- end --- Rich, Looking at the code in mapfile.c I see: msAcquireLock( TLOCK_PROJ ); if( !(p->proj = pj_init(numargs, args)) ) { int *pj_errno_ref = pj_get_errno_ref(); msReleaseLock( TLOCK_PROJ ); msSetError(MS_PROJERR, pj_strerrno(*pj_errno_ref), "msProcessProjection()"); return(-1); } msReleaseLock( TLOCK_PROJ ); I suspect the msReleaseLock( TLOCK_PROJ ) ought to be after the msSetError() instead of before it, though it is also possible this would introduce a deadlock condition if something else that is waiting for the PROJ lock already holds the error lock. You might want to experiment with this if you are comfortable rebuilding things. If this sequence turns out to be the issues there are certainly ways to restructure the code a bit to be safe. But this wouldn't explain why you are only occationally getting this error, so I suspect it is a red herring - not your real issue for which I have no useful advice. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From szekerest at gmail.com Mon Mar 3 15:14:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 4 Mar 2008 00:14:29 +0100 Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: <15814881.post@talk.nabble.com> References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> <15748847.post@talk.nabble.com> <15814881.post@talk.nabble.com> Message-ID: Rich, I think everyone would use his favourite language when integrating the mapscript related code in their application. If someone would use C/C++ he would probably link against libmap.dll or link the mapserver related code directly in their application. The files you've mentioned are the SWIG generated wrappers for the java bindings. Unfortunately no one have contributed a C++ generator in SWIG so creating a C++ interface cannot be done automatically and would be quite a big deal to create that manually. But I think it would be better to track down the issues in their original environment, changing the application structure should only be a final option. Do you have a stacktrace of this particular issue? Best regards, Tamas 2008/3/3, rich.fromm : > > > Tamas Szekeres wrote: > > > > I appreciate your efforts very much to sort these things out. > > > > > Let us know if you have a further suspicion about something that > > should be fixed in mapserver. > > > > > ok, i'll continue to report odd and crashing behavior, on the off chance > that > some of it might turn up some kind of problem, but i'm at the point now > where > i've achieved enough stability that my current problems are pretty rare and > difficult to boil down to a concise, reproduceable test case. my latest > issue > is different enough that i'll start a new e-mail thread for it. > > besides trying to take tomcat out of the picture (which i like having there > because it's a realistic portrayal of the app that i'm trying to stress > test, > but it does complicate debugging), for the purpose of multi-threaded > testing, > i wonder if a way of even taking java out of the picture would be useful? > why > is there no pure C or C++ mapscript? it seems to me that if you really > wanted > the highest performance map server, that would be the way to go. could you > somewhat fake this with with libmapscript.so and mapscript_wrap.c that are > in > the mapscript/java directory? or have SWIG generate code for C++? or has > creating a libmapserver.so that's independent of mapscript been considered? > although i tend to think that the level of functionality provided by > mapscript > would be nice, but keeping it purely within native code and not having to > deal > with JNI would have advantages. > > - rich > > > -- > View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15814881.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 nospam420 at yahoo.com Mon Mar 3 15:39:47 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 15:39:47 -0800 (PST) Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> <15748847.post@talk.nabble.com> <15814881.post@talk.nabble.com> Message-ID: <15816941.post@talk.nabble.com> Tamas Szekeres wrote: > > If someone would use > C/C++ he would probably link against libmap.dll or link the mapserver > related code directly in their application. > Is there a way to build a libmap.so ? The only .so I see in my local build is: ./mapscript/java/libmapscript.so Tamas Szekeres wrote: > > Do you have a stacktrace of this particular issue? > After tuning my installation and applying a handful of bugfix patches, I am no longer seeing the original issue reported in this mailing list thread or any of the stacktraces included in this thread. My new issue, along with stack traces, is covered in a new mailing list thread: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-to15815968.html -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15816941.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 3 15:41:51 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 15:41:51 -0800 (PST) Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: <15816941.post@talk.nabble.com> References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> <15748847.post@talk.nabble.com> <15814881.post@talk.nabble.com> <15816941.post@talk.nabble.com> Message-ID: <15816976.post@talk.nabble.com> rich.fromm wrote: > > Is there a way to build a libmap.so ? The only .so I see in my local > build is: > > ./mapscript/java/libmapscript.so > Ah, I see there is a: ./libmapserver.a I assume that would be sufficient for building a pure C/C++ app. But that's beyond the scope of what I'm interested in now, so this is really just a bit of a tangent. - Rich -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15816976.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Mon Mar 3 15:45:54 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 4 Mar 2008 00:45:54 +0100 Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <47CC860A.6070905@pobox.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> Message-ID: Frank, I think this issue might be originated to a missing lock around the static pj_errno in the proj library. Apparently the 'no system list' indicates an invalid error code that is: an invalid actual value of pj_errno. I guess the code below may run against another pj invocation that is not locked. Best regards, Tamas 2008/3/4, Frank Warmerdam : > rich.fromm wrote: > > I'm not sure if anyone is going to be able to be of any help with this, since > > I am not able to consistently reproduce the problem. Nevertheless, based on > > previous instructions, just in case, I am reporting a rare problem seen > > under > > heavy load. > > > > I am stress testing a custom webapp using java mapscript. On several > > occasions, I have observed mapserver logging an error, which caused tomcat > > to > > return a 500 (Internal Server Error), but NOT crash. The error is as > > follows: > > > > --- begin --- > > java.lang.UnknownError: msProcessProjection(): Projection library error. no > > system list, errno: 22 > > > > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > > at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) > > --- end --- > > > Rich, > > Looking at the code in mapfile.c I see: > > > msAcquireLock( TLOCK_PROJ ); > if( !(p->proj = pj_init(numargs, args)) ) { > int *pj_errno_ref = pj_get_errno_ref(); > msReleaseLock( TLOCK_PROJ ); > msSetError(MS_PROJERR, pj_strerrno(*pj_errno_ref), > "msProcessProjection()"); > return(-1); > } > > msReleaseLock( TLOCK_PROJ ); > > I suspect the msReleaseLock( TLOCK_PROJ ) ought to be after the > msSetError() instead of before it, though it is also possible this > would introduce a deadlock condition if something else that is > waiting for the PROJ lock already holds the error lock. You might > want to experiment with this if you are comfortable rebuilding things. > > If this sequence turns out to be the issues there are certainly ways > to restructure the code a bit to be safe. > > But this wouldn't explain why you are only occationally getting this > error, so I suspect it is a red herring - not your real issue for which > I have no useful advice. > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Mon Mar 3 16:09:53 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 03 Mar 2008 19:09:53 -0500 Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> Message-ID: <47CC9351.6030707@pobox.com> Tamas Szekeres wrote: > Frank, > > I think this issue might be originated to a missing lock around the > static pj_errno in the proj library. Apparently the 'no system list' > indicates an invalid error code that is: an invalid actual value of > pj_errno. I guess the code below may run against another pj invocation > that is not locked. Tamas, The "no system list" message just means that PROJ was built without support for strerror() - that is HAVE_STRERROR was not defined in the configure. This seems to happen almost all the time (perhaps a problem in the proj configure). char * pj_strerrno(int err) { static char note[50]; if (err > 0) #ifdef HAVE_STRERROR return strerror(err); #else { sprintf(note,"no system list, errno: %d\n", err); return note; } #endif else if (err < 0) { int adjusted_err = - err - 1; if (adjusted_err < (sizeof(pj_err_list) / sizeof(char *))) return(pj_err_list[adjusted_err]); else { sprintf( note, "invalid projection system error (%d)", err ); return note; } } else return NULL; } It *is* possible that there is a missing lock around some MapServer call to PROJ.4 and some other thread ends up setting pj_errno and it confuses pj_init() in another thread resulting in pj_init() returning NULL. I see that pj_init ends with: /* projection specific initialization */ if (!(PIN = (*proj)(PIN)) || errno || pj_errno) { bum_call: /* cleanup error return */ if (!pj_errno) pj_errno = errno; if (PIN) pj_free(PIN); else for ( ; start; start = curr) { curr = start->next; pj_dalloc(start); } PIN = 0; } So, something other than pj_init() setting pj_errno could result in an unexpected failure of pj_init(). If this is the issue, it would require a careful audit of PROJ.4 calls in MapServer, searching for one that is unprojected by the TLOCK_PROJ lock. Hmm, reviewing the PROJ.4 calls from MapServer I'm rather astounded to discover that while pj_init() is projected by the TLOCK_PROJ, calls to pj_transform() are not! I assume I did this initially because I assumed that the major thread safety risks were in pj_init(), but clearly pj_transform() can also set pj_errno, and in fact there are issues in pj_transform() with loading of datum shift files. Hmmm. I suspect we ought to rework things in mapserver to project all pj_transform() calls with the lock. I would appreciate it if someone could file a ticket on this issue, and assign it to me. I'd be willing to make these changes in trunk if someone (ie. Rich!) who is running into problems could test the changes in a situatio nwhere these problems were being encountered. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From szekerest at gmail.com Mon Mar 3 16:29:17 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 4 Mar 2008 01:29:17 +0100 Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <47CC9351.6030707@pobox.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> Message-ID: 2008/3/4, Frank Warmerdam : > > The "no system list" message just means that PROJ was built without support > for strerror() - that is HAVE_STRERROR was not defined in the configure. > This seems to happen almost all the time (perhaps a problem in the proj > configure). > > char * > pj_strerrno(int err) > { > static char note[50]; > > if (err > 0) > #ifdef HAVE_STRERROR > return strerror(err); > #else > { > sprintf(note,"no system list, errno: %d\n", err); > return note; > } > #endif > else if (err < 0) { > int adjusted_err = - err - 1; > if (adjusted_err < (sizeof(pj_err_list) / sizeof(char *))) > return(pj_err_list[adjusted_err]); > else > { > sprintf( note, "invalid projection system error (%d)", > err ); > return note; > } > } else > return NULL; > } > Frank, I understand your point about HAVE_STRERROR, but it seems to be quite unrelated. Is pj_errno = 22 definitely a proper value? I think the err > 0 is an abnormal case since the proj library normally generates negative error codes. I think someday we should also audit proj to be more thread safe as using thread locals instead of global variables or doing internal locks instead of a global lock in the external libraries. Proj is used so frequently that it would be quite inefficient to increase number the locks around it in mapserver. Best regards, Tamas From nospam420 at yahoo.com Mon Mar 3 16:51:13 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 3 Mar 2008 16:51:13 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <47CC9351.6030707@pobox.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> Message-ID: <15817887.post@talk.nabble.com> Frank Warmerdam-2 wrote: > > I would appreciate it if someone could > file a ticket on this issue, and assign it to me. I'd be willing to make > these changes in trunk if someone (ie. Rich!) who is running into problems > could test the changes in a situatio nwhere these problems were being > encountered. > Bug 2533: http://trac.osgeo.org/mapserver/ticket/2533 As I noted in the bug, I can test any fix in my local environment. -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15817887.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulp575 at dog-walker.us Mon Mar 3 19:13:59 2008 From: paulp575 at dog-walker.us (Paul Yelk) Date: Mon, 03 Mar 2008 19:13:59 -0800 Subject: [mapserver-users] Downlodable Test Suite (tests46) Message-ID: <47CCBE77.1040608@dog-walker.us> I have downloaded the tests46.zip file and have 2 questions: 1. Where do I unzip this file to? I'm running MS4W latest version) 2. Why is the downloadable version missing a lot of the demos listed on the demo site ( http://maps.dnr.state.mn.us/mapserver_demos/tests46/ ) ? The demo site lists 11 demos while the downloadable version displays only 4 items (one with a sub-item). Thanks, Paul From diegoguidi at gmail.com Tue Mar 4 00:22:34 2008 From: diegoguidi at gmail.com (D_Guidi) Date: Tue, 4 Mar 2008 00:22:34 -0800 (PST) Subject: [MAPSERVER-USERS] Dynamic Style rendering for MapServer WMS Message-ID: <15822366.post@talk.nabble.com> I'm relatively new to mapserver, but I've created a WMS service with MapServer that publish SDE data in a fashion way and with a great speed. I'm using this WMS to publish my data via a webapp using OpenLayers, and I want to make better my website trying to change dynamically the style of my WMS maps... The goal is to do this: When the user query the data via getfeatureinfo, I want to reload the image and show with a different color the feature queried. With getfeatureinfo i could retrieve the ID of the selected feature, so I need to change dynamically the STYLE definition of my mafile, or something like this... any suggestion or a link to start reading docs on how to do this? Thanks :) Diego Guidi -- View this message in context: http://www.nabble.com/Dynamic-Style-rendering-for-MapServer-WMS-tp15822366p15822366.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at zeelandnet.nl Tue Mar 4 00:49:35 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 04 Mar 2008 09:49:35 +0100 Subject: [MAPSERVER-USERS] Dynamic Style rendering for MapServer WMS In-Reply-To: <15822366.post@talk.nabble.com> References: <15822366.post@talk.nabble.com> Message-ID: <47CD0D1F.5070606@zeelandnet.nl> D_Guidi schreef: > I'm relatively new to mapserver, but I've created a WMS service with > MapServer that publish SDE data in a fashion way and with a great > speed. > I'm using this WMS to publish my data via a webapp using OpenLayers, > and I want to make better my website trying to change dynamically the > style of my WMS maps... > The goal is to do this: > When the user query the data via getfeatureinfo, I want to reload the > image and show with a different color the feature queried. > With getfeatureinfo i could retrieve the ID of the selected feature, > so I need to change dynamically the STYLE definition of my mafile, or > something like this... any suggestion or a link to start reading docs > on how to do this? > Thanks :) > Diego Guidi > > In the mapfile, add a copy definition of the layer you want to highlight LAYER NAME 'ps_highlight' TRANSPARENCY 100 DUMP TRUE TYPE POLYGON DATA 'E:\mapdata\my_original_layer.shp' METADATA "ows_title" "ps_highlight" "ows_srs" "EPSG:4326" "gml_featureid" "id" END STATUS OFF PROJECTION "init=epsg:4326" END MAXSCALE 100000 CLASSITEM 'ID' CLASS #NAME 'selection' EXPRESSION "%id%" STYLE SYMBOL 0 SIZE 6 WIDTH 3 OUTLINECOLOR 255 0 0 ANTIALIAS TRUE COLOR 255 0 0 END END END And now call this layer with a WMS GetMap request where you add "&id=123" to the end of the request string. From diegoguidi at gmail.com Tue Mar 4 00:52:30 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Tue, 4 Mar 2008 09:52:30 +0100 Subject: [MAPSERVER-USERS] Dynamic Style rendering for MapServer WMS In-Reply-To: <47CD0D1F.5070606@zeelandnet.nl> References: <15822366.post@talk.nabble.com> <47CD0D1F.5070606@zeelandnet.nl> Message-ID: Thanks for the suggest :) On Tue, Mar 4, 2008 at 9:49 AM, Milo van der Linden wrote: > D_Guidi schreef: > > > I'm relatively new to mapserver, but I've created a WMS service with > > MapServer that publish SDE data in a fashion way and with a great > > speed. > > I'm using this WMS to publish my data via a webapp using OpenLayers, > > and I want to make better my website trying to change dynamically the > > style of my WMS maps... > > The goal is to do this: > > When the user query the data via getfeatureinfo, I want to reload the > > image and show with a different color the feature queried. > > With getfeatureinfo i could retrieve the ID of the selected feature, > > so I need to change dynamically the STYLE definition of my mafile, or > > something like this... any suggestion or a link to start reading docs > > on how to do this? > > Thanks :) > > Diego Guidi > > > > > In the mapfile, add a copy definition of the layer you want to highlight > > LAYER > NAME 'ps_highlight' > TRANSPARENCY 100 > DUMP TRUE > > TYPE POLYGON > DATA 'E:\mapdata\my_original_layer.shp' > METADATA > "ows_title" "ps_highlight" > "ows_srs" "EPSG:4326" > "gml_featureid" "id" > END > STATUS OFF > PROJECTION > "init=epsg:4326" > END > MAXSCALE 100000 > CLASSITEM 'ID' > CLASS > #NAME 'selection' > EXPRESSION "%id%" > STYLE > SYMBOL 0 > SIZE 6 > WIDTH 3 > OUTLINECOLOR 255 0 0 > ANTIALIAS TRUE > COLOR 255 0 0 > END > END > END > > And now call this layer with a WMS GetMap request where you add > "&id=123" to the end of the request string. > > > -- Diego Guidi http://lacorrente.blogspot.com From ivan.mincik at gmail.com Tue Mar 4 13:42:09 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 4 Mar 2008 22:42:09 +0100 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <15814956.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <200803032246.19081.ivan.mincik@gmail.com> <15814956.post@talk.nabble.com> Message-ID: <200803042242.09476.ivan.mincik@gmail.com> Thanks, after applying the patch there are no errors in the log. Ivan On Monday 03 March 2008 22:52, rich.fromm wrote: > hrach wrote: > > thanks a lot, I am just compiling Mapserver 5.0.3 and ready to try > > upgrade. > > you probably mean 5.0.2. afaik, 5.0.3 hasn't been released yet. > > which means you will have to hand patch for bug 2497 if you want to include > that fix. > > - rich From nospam420 at yahoo.com Tue Mar 4 13:44:49 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 4 Mar 2008 13:44:49 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15817887.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> Message-ID: <15837796.post@talk.nabble.com> rich.fromm wrote: > > Bug 2533: > http://trac.osgeo.org/mapserver/ticket/2533 > > As I noted in the bug, I can test any fix in my local environment. > I am in the process of running a test with the code from the trunk including this change, plus a patch for bug 2497. It can take several hours for problems to be reported, so my debugging cycle is a little slow here. Even if this solves the projection errors reported in msProcessProjection(), I suspect there still might be a separate error causing a crash. Earlier I reported a crash and was hypothesizing that they were related, but I now have more evidence to suggest that this may not be the case. Last night I ran a test that did NOT include the patch for bug 2533. Rather, the codebase was the 5.0.0 release, plus patches for bug 2525 and bug 2497. On several occasions there were variants of the error reported earlier here. I believe my retry logic worked (although unfortunately I again screwed up the logging, so I don't have as much detail as I would have liked), but tomcat did not crash, and the test continued: Mon Mar 3 19:59:46.208 PST 2008 java.lang.UnknownError: msProcessProjection(): Projection library error. at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) Mon Mar 3 20:28:28.951 PST 2008 java.lang.UnknownError: msProcessProjection(): Projection library error. no system list, errno: 22 at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) Mon Mar 3 20:57:45.000 PST 2008 java.lang.UnknownError: msProcessProjection(): Projection library error. at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:288) However, at 2008-03-03 21:08:55 -0800, tomcat crashed, with the following stack trace (previously seen and reported earlier in this mailing list thread): _IO_fread (/lib/libc.so.6) yy_get_next_buffer (maplexer.c:3522) msyylex (maplexer.c:3353) loadLayer (mapfile.c:2572) loadMapInternal (mapfile.c:4353) msLoadMap (mapfile.c:4578) new_mapObj (mapscript/java/mapscript_wrap.c:1612) Java_edu_umn_gis_mapscript_mapscriptJNI_new_1mapObj (mapscript/java/mapscript_wrap.c:19633) There's no immediate sign of anything going wrong right before the crash. The only other sign of something going wrong is the following earlier msg from the tomcat log: Mar 3, 2008 8:38:19 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (600) are currently busy, waiting. Increase maxThreads (600) or check the servlet status But that was a while before, so I'm not sure how much worry to put into it. Although I understand that tomcat has been known to sometimes get into a bad state after outputting that message, but it did run for quite some time afterwards with no visible problems. I'm not sure whether the fact that both the reported projection error and the crash were from mapObj.new() is significant. Perhaps the fix for the projection error (if it works) will also address the crash, perhaps not. I'll report as soon as I have any further data. If all else fails, I could try a synchronized() block around the mapObj.new() call in the java code as a workaround. Although I'd rather not resort to such a coarse-grained solution, but it being only a single line of java code (and presumably not nearly as time consuming as something like mapObj.draw()), maybe it wouldn't have that serious of an impact on performance. - Rich -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15837796.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Tue Mar 4 15:05:18 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 4 Mar 2008 15:05:18 -0800 (PST) Subject: [MAPSERVER-USERS] support for building mapserver on multiple platforms with a single src dir? Message-ID: <15839284.post@talk.nabble.com> With only a single source directory, I'd like to be able to repeatedly configure and build mapserver for multiple platforms. In my specific case this is debian sarge and debian etch, but that doesn't really matter as far as the question goes. So let's say I'd like to have a layout like: src build/debian-3.1 build/debian-4.0 Is there a simple way to do this? I tried using the --srcdir option of configure. For example: cd build/debian-3.1 ../../src/configure --srcdir=../../src But while configure runs and creates a makefile, it won't actually run: make: *** No rule to make target `mapserver.h', needed by `libmapserver.a'. Stop. I also tried using the --prefix option, but this didn't work either, which doesn't surprise me, since --prefix generally concerns where `make install` places results, and that's not the issue here. (I'm actually not running make install at all.) Has anyone had any luck getting something like this to work? - Rich -- View this message in context: http://www.nabble.com/support-for-building-mapserver-on-multiple-platforms-with-a-single-src-dir--tp15839284p15839284.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Tue Mar 4 15:14:01 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 4 Mar 2008 15:14:01 -0800 (PST) Subject: [MAPSERVER-USERS] support for building mapserver on multiple platforms with a single src dir? In-Reply-To: <15839284.post@talk.nabble.com> References: <15839284.post@talk.nabble.com> Message-ID: <15839390.post@talk.nabble.com> rich.fromm wrote: > > I tried using the --srcdir option of configure. For example: > > cd build/debian-3.1 > ../../src/configure --srcdir=../../src > > But while configure runs and creates a makefile, it won't actually run: > > make: *** No rule to make target `mapserver.h', needed by > `libmapserver.a'. Stop. > I tried specifying an absolute path for --srcdir instead of a relative path, and that didn't help. - Rich -- View this message in context: http://www.nabble.com/support-for-building-mapserver-on-multiple-platforms-with-a-single-src-dir--tp15839284p15839390.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Tue Mar 4 15:22:33 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 4 Mar 2008 15:22:33 -0800 (PST) Subject: [MAPSERVER-USERS] support for building mapserver on multiple platforms with a single src dir? In-Reply-To: <15839390.post@talk.nabble.com> References: <15839284.post@talk.nabble.com> <15839390.post@talk.nabble.com> Message-ID: <15839527.post@talk.nabble.com> This page seems to imply that what I tried (cd to where you want the build to be, then run the configure script that's located where the src is) ought to work, even without using --srcdir: http://www.gnu.org/software/autoconf/manual/html_node/Multiple-Architectures.html#Multiple-Architectures Alas, it does not in this case. - Rich -- View this message in context: http://www.nabble.com/support-for-building-mapserver-on-multiple-platforms-with-a-single-src-dir--tp15839284p15839527.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Tue Mar 4 16:15:36 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 4 Mar 2008 16:15:36 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15837796.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> Message-ID: <15840243.post@talk.nabble.com> rich.fromm wrote: > > I am in the process of running a test with the code from the trunk > including > this change, plus a patch for bug 2497. It can take several hours for > problems to be reported, so my debugging cycle is a little slow here. > The test completed, there were no errors reported by mapserver. For more details, see: http://trac.osgeo.org/mapserver/ticket/2533#comment:4 rich.fromm wrote: > > Even if this solves the projection errors reported in > msProcessProjection(), I > suspect there still might be a separate error causing a crash. > While it's only a single (long) test, there were also no crashes. I am in the process of running another test, this using a build of the tip of branch-5-0, along with local patches both for bug 2497 and for bug 2533 (in other words, this patch). -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15840243.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David at itbeyond.com.au Tue Mar 4 18:49:38 2008 From: David at itbeyond.com.au (David Martin) Date: Wed, 5 Mar 2008 11:49:38 +0900 Subject: [mapserver-users] CGI Class Expression V5.0.2 cannot change Message-ID: <9C37154DC7C8074FBC34214363755B7C1EAF6B@ITB-SVR-01.itbeyond.local> Hi I am trying to change the value of a class expression using the cgi command line in v5.0.2 and I cannot effect the change. Layer Defn: LAYER NAME "EOMapID" TYPE POLYGON STATUS OFF DATA "..\ExplorOz\EO_Maps" CLASSITEM "ID" CLASS NAME "Area covered by map" STYLE SYMBOL 21 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 156 156 156 END TEMPLATE "..\Templates/EO_Treks.html" END HEADER "..\Templates\EO_Treks_header.html" FOOTER "..\Templates\EO_Treks_footer.html" TOLERANCE 2 END Using the following command all do not work: &map.layer[EOMapID].class[0]=expression+'935' &map.layer[EOMapID].class=expression+'935' &map.layer[EOMapID].class[0].style[0]=expression+'935' &map.layer[EOMapID]=class+expression+'935' Most of these return the following error: loadClass(): Unknown identifier. Parsing error near (expression):(line 1) I even added EXPRESSION /./ in the map file to ensure the line existed and still the same errors. I then just to be sure added EXPRESSION '935' and it worked perfectly. Can someone point me in the right direction - this should be simple..... Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael_wessel at gmx.de Tue Mar 4 23:40:21 2008 From: michael_wessel at gmx.de (Michael Wessel) Date: Wed, 5 Mar 2008 08:40:21 +0100 Subject: [mapserver-users] CGI Class Expression V5.0.2 cannot change In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EAF6B@ITB-SVR-01.itbeyond.local> References: <9C37154DC7C8074FBC34214363755B7C1EAF6B@ITB-SVR-01.itbeyond.local> Message-ID: <200803050840.21954.michael_wessel@gmx.de> Hi David, On Wednesday 05 March 2008 03:49, David Martin wrote: > Hi I am trying to change the value of a class expression using the > cgi command line in v5.0.2 and I cannot effect the change. see my post from Monday this week on the same issue. Michael From Andreas.Eichner at sid.sachsen.de Wed Mar 5 00:24:14 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Wed, 5 Mar 2008 09:24:14 +0100 Subject: [mapserver-users] Hiding overviews Message-ID: Hello everybody! I've build external overviews, both with raster and vector data, put them into layers with MIN-/MAXSCALE and it works like a charme. My only problem is that I can not get the switching of those layers transparent to the user. A "GetCapabilities"-WMS-Request returns all layers separately. But it makes no sense for the user to turn only one layer on/off. Instead the only useful thing a user can do is switching the hole _group_ of detail/overview layers on/off. So is there a way to only show the hole group as _one_ single layer in a WMS with mapserver? The WMS specs (v1.3.0) suggests that only the group layer should have a name, the single detail/overview layers should not. Therefore only the group layer can be contained in a WMS request and should be shown by a WMS client as one single layer, I think. It would be nice to make external overviews appear as transparent as GeoTIFF's internal overviews... Any tipps, suggestions, help? Thanks a lot! From carla.fernandezb at gmail.com Wed Mar 5 00:45:44 2008 From: carla.fernandezb at gmail.com (cfb) Date: Wed, 5 Mar 2008 00:45:44 -0800 (PST) Subject: [MAPSERVER-USERS] BoundingBox SRS of the GetCapabilities Message-ID: <15845654.post@talk.nabble.com> Hi there, I'm testing the GetCapabilities of my WMS (working with MapServer 5.0.2 CGI for Windows), and comparing it with others WMS. Regardless of the projections of the layers (EPSG 23030), I've realized that the Boundingbox of the header and of each layer depends on the order of the SRS list (PROJECTION object), for example: PROJECTION "init=epsg:4230" "init=epsg:4258" "init=epsg:23030" "init=epsg:23029" "init=epsg:4324" "init=epsg:4326" "init=epsg:32629" "init=epsg:32630" "init=epsg:4267" "init=epsg:4269" "init=epsg:3035" "init=epsg:3034" END The GetCapabilities shows ... Why does it happen like this? any help will be appreciated Also, I've a problem when I compare my WMS with others in a viewer, they don't overlap correctly, there's a difference of about 100 meters. I imagine that is caused by the difference between the order of the epsg list in the projection order, but I'm not sure about that...maybe the differents projections of the layers cause this...I'm confused!! Thaks very much -- View this message in context: http://www.nabble.com/BoundingBox-SRS-of-the-GetCapabilities-tp15845654p15845654.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Mar 5 02:53:55 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 5 Mar 2008 12:53:55 +0200 Subject: VS: [mapserver-users] Hiding overviews In-Reply-To: Message-ID: Hi, I've never tried myself, but I would not be surprised if you could do something of that kind with GROUP in LAYER object. Excerpt from mapfile reference http://mapserver.gis.umn.edu/docs/reference/mapfile/layer follows. GROUP [name] Name of a group that this layer belongs to. The group name can then be reference as a regular layer name in the template files, allowing to do things like turning on and off a group of layers at once. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Eichner, Andreas - SID-NLK > L?hetetty: 5. maaliskuuta 2008 10:24 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Hiding overviews > > > Hello everybody! > > I've build external overviews, both with raster and vector > data, put them into layers with MIN-/MAXSCALE and it works > like a charme. My only problem is that I can not get the > switching of those layers transparent to the user. A > "GetCapabilities"-WMS-Request returns all layers separately. > But it makes no sense for the user to turn only one layer > on/off. Instead the only useful thing a user can do is > switching the hole _group_ of detail/overview layers on/off. > So is there a way to only show the hole group as _one_ single > layer in a WMS with mapserver? The WMS specs (v1.3.0) > suggests that only the group layer should have a name, the > single detail/overview layers should not. > Therefore only the group layer can be contained in a WMS > request and should be shown by a WMS client as one single > layer, I think. > > It would be nice to make external overviews appear as > transparent as GeoTIFF's internal overviews... Any tipps, > suggestions, help? > > Thanks a lot! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stirc at gmx.de Wed Mar 5 03:50:37 2008 From: stirc at gmx.de (Mike Meier) Date: Wed, 05 Mar 2008 12:50:37 +0100 Subject: VS: [mapserver-users] Hiding overviews In-Reply-To: References: Message-ID: <47CE890D.70408@gmx.de> Hi, i have the same problem and the GROUP parameter dont help me. My Mapserver (5.0.1) always show both layers. Mike Rahkonen Jukka schrieb: > Hi, > > I've never tried myself, but I would not be surprised if you could do something of that kind with GROUP in LAYER object. Excerpt from mapfile reference http://mapserver.gis.umn.edu/docs/reference/mapfile/layer follows. > > GROUP [name] > Name of a group that this layer belongs to. The group name can then be reference as a regular layer name in the template files, allowing to do things like turning on and off a group of layers at once. > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Eichner, Andreas - SID-NLK >> L?hetetty: 5. maaliskuuta 2008 10:24 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Hiding overviews >> >> >> Hello everybody! >> >> I've build external overviews, both with raster and vector >> data, put them into layers with MIN-/MAXSCALE and it works >> like a charme. My only problem is that I can not get the >> switching of those layers transparent to the user. A >> "GetCapabilities"-WMS-Request returns all layers separately. >> But it makes no sense for the user to turn only one layer >> on/off. Instead the only useful thing a user can do is >> switching the hole _group_ of detail/overview layers on/off. >> So is there a way to only show the hole group as _one_ single >> layer in a WMS with mapserver? The WMS specs (v1.3.0) >> suggests that only the group layer should have a name, the >> single detail/overview layers should not. >> Therefore only the group layer can be contained in a WMS >> request and should be shown by a WMS client as one single >> layer, I think. >> >> From ivan.mincik at gmail.com Wed Mar 5 04:26:36 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Wed, 5 Mar 2008 13:26:36 +0100 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <15813612.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> Message-ID: <200803051326.36604.ivan.mincik@gmail.com> Nothing is perfect. There are no problems with applied patch when browsing the map. But when I use identify object query from php5-mapscript the problem is rising again. I have in postgresql log: 2008-03-05 13:19:30 CET WARNING: there is no transaction in progress 2008-03-05 13:19:30 CET ERROR: cursor "mycursor" does not exist 2008-03-05 13:19:31 CET ERROR: DECLARE CURSOR may only be used in transaction blocks 2008-03-05 13:19:31 CET WARNING: there is no transaction in progress 2008-03-05 13:19:31 CET ERROR: cursor "mycursor" does not exist 2008-03-05 13:19:32 CET ERROR: DECLARE CURSOR may only be used in transaction blocks 2008-03-05 13:19:32 CET WARNING: there is no transaction in progress 2008-03-05 13:19:32 CET ERROR: cursor "mycursor" does not exist 2008-03-05 13:19:34 CET ERROR: DECLARE CURSOR may only be used in transaction blocks 2008-03-05 13:19:34 CET WARNING: there is no transaction in progress 2008-03-05 13:19:34 CET ERROR: cursor "mycursor" does not exist 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: autovacuum: processing database "gisplan" 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection reset by peer 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection 2008-03-05 13:20:40 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:40 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:41 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:42 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:43 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:43 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:44 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:44 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:47 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:47 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:48 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:49 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:50 CET WARNING: there is already a transaction in progress 2008-03-05 13:20:50 CET WARNING: there is already a transaction in progress ivan On Monday 03 March 2008 21:53, rich.fromm wrote: > hrach wrote: > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > > I am now using it fine with mapserver 5.0.0 after applying the patch for > bug 2497: > http://trac.osgeo.org/mapserver/ticket/2497 > > I don't know if 4.10.3 is different enough for that patch to be applicable > or not. But if it's not too hard to upgrade, you might want to try a later > version (e.g. 5.0.2) plus that patch. Note that the patch may make it into > the 5.0.3 release (it was originally targetted for 5.2). > > You also might want to take a look at the following related mailing list > threads: > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653945.h >tml#a12674499 > http://www.nabble.com/postgres-transaction-warnings-to15749333.html > > - Rich From David at itbeyond.com.au Wed Mar 5 04:28:00 2008 From: David at itbeyond.com.au (David Martin) Date: Wed, 5 Mar 2008 21:28:00 +0900 Subject: [mapserver-users] RE: CGI Class Expression V5.0.2 cannot change In-Reply-To: <20080305024956.AC7DF12A8066@lists.osgeo.org> References: <20080305024956.AC7DF12A8066@lists.osgeo.org> Message-ID: <9C37154DC7C8074FBC34214363755B7C1EAF8E@ITB-SVR-01.itbeyond.local> Sorry to be a bother I found a solution using variable substitution and I am happy to use that method. It actually makes for smaller cgi command line calls, so it is a better option all round. Info found at : http://www.nabble.com/mapserver-5-expression-td12386097.html#a12414895 Regards David Martin Managing Director I.T. Beyond Pty Ltd Postal: PO BOX 967 HILLARYS WA 6923 Ph: (08) 9403 3737 Mobile: 0417 677 275 Fax: (08) 9403 3738 Skype: itbeyond_david ________________________________ Check out our websites: www.ExplorOz.com and www.itbeyond.com.au ________________________________ From David at ITBEYOND.COM.AU Wed Mar 5 04:43:11 2008 From: David at ITBEYOND.COM.AU (ITBeyond) Date: Wed, 5 Mar 2008 04:43:11 -0800 (PST) Subject: [MAPSERVER-USERS] CGI Class Expression V5.0.2 cannot change In-Reply-To: <200803050840.21954.michael_wessel@gmx.de> References: <9C37154DC7C8074FBC34214363755B7C1EAF6B@ITB-SVR-01.itbeyond.local> <200803050840.21954.michael_wessel@gmx.de> Message-ID: <15849235.post@talk.nabble.com> Michael, Thanks - I actually just found this solution using variable substitution. I was confused about where to post this issue as I have been still getting the digest from listserv, then I got confused about how all this sits with lists.osgeo.org (where I posted the email), then I found it all here in the nabble forum. I am happy now as I can interact and become part of the community. Very sorry for the dumb question but now that I have found the forum system I will be able to check a lot easier in the future. David Michael Wessel wrote: > > Hi David, > > On Wednesday 05 March 2008 03:49, David Martin wrote: >> Hi I am trying to change the value of a class expression using the >> cgi command line in v5.0.2 and I cannot effect the change. > > see my post from Monday this week on the same issue. > > Michael > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/CGI-Class-Expression-V5.0.2-cannot-change-tp15841990p15849235.html Sent from the Mapserver - User mailing list archive at Nabble.com. From verdaguerj at yahoo.es Wed Mar 5 05:58:45 2008 From: verdaguerj at yahoo.es (Joan Verdaguer) Date: Wed, 5 Mar 2008 13:58:45 +0000 (GMT) Subject: [mapserver-users] enhancement ideas Message-ID: <495923.78355.qm@web26912.mail.ukl.yahoo.com> Hi list, Here are some features I think would be nice to have in Mapserver: ** Expressions almost everywhere ** Possibility to use expressions whenever a value is required. Built-in variables and functions would be very useful. For example: SIZE [fieldValue]*0.2+5 WIDTH imageWidth / 200.0 # imageWidth is a built-in variable containing the map width in pixels SIZE min(5, [fieldValue]/100) # minimum function TEXT upperCase([fieldValue]) # get upper case value of a text field TEXT if([fieldValue] = "-", "Yes", "No") # "if then else" expression COLOR rampColor([fieldValue],0,10000) # get a color in a ramp for a numeric field normalized to a range ** Finer grained concurrency locks ** Especially in OGR. Currently Mapscript (Java or .NET) is not an efficient option on a webserver accessing OGR: web requests are practically serialized by the locks. I think thread safety was improved in latest version of GDAL/OGR, am I wrong? Adopting RFC15 would be great news! ** Facilities for tiles ** Given the big performance boost of using map tiles, I think it would be very useful an utility (or API) for pregenerating tiles of a map for a given area and level. I am aware of the existence of TileCache but I think it would be interesting to have this utility. ** Multiple geometry types on a layer ** Currently, a layer only admits one geometry type (point, line, polygon). Some sources, especially CAD datasets via OGR, contain different geometry types. Would be useful and efficient to have all geometries shown in the same layer. Different styling rules may be needed to display different geometry types in the same layer. Joan ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Mar 5 06:14:59 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 05 Mar 2008 09:14:59 -0500 Subject: [MAPSERVER-USERS] BoundingBox SRS of the GetCapabilities In-Reply-To: <15845654.post@talk.nabble.com> References: <15845654.post@talk.nabble.com> Message-ID: <47CEAAE3.4000101@pobox.com> cfb wrote: > Hi there, > > I'm testing the GetCapabilities of my WMS (working with MapServer 5.0.2 CGI > for Windows), and comparing it with others WMS. Regardless of the > projections of the layers (EPSG 23030), I've realized that the Boundingbox > of the header and of each layer depends on the order of the SRS list > (PROJECTION object), for example: > > PROJECTION > "init=epsg:4230" > "init=epsg:4258" > "init=epsg:23030" > "init=epsg:23029" > "init=epsg:4324" > "init=epsg:4326" > "init=epsg:32629" > "init=epsg:32630" > "init=epsg:4267" > "init=epsg:4269" > "init=epsg:3035" > "init=epsg:3034" > END Carla, You should only have one coordinate system definition in your PROJECTION block which should reflect the actual coordinate system of the data on disk (or in the database,etc). The list of offered coordinate systems for WMS server should be handle via the wms_srs metadata item in the web section. Like: WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Test simple wms" "wms_onlineresource" "http://localhost/path/to/wms_simple?" "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" "ows_schemas_location" "http://ogc.dmsolutions.ca" END END Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at mapgears.com Wed Mar 5 06:24:39 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 05 Mar 2008 09:24:39 -0500 Subject: [MAPSERVER-USERS] support for building mapserver on multiple platforms with a single src dir? In-Reply-To: <15839527.post@talk.nabble.com> References: <15839284.post@talk.nabble.com> <15839390.post@talk.nabble.com> <15839527.post@talk.nabble.com> Message-ID: <47CEAD27.4010906@mapgears.com> rich.fromm wrote: > This page seems to imply that what I tried (cd to where you want the build to > be, then run the configure script that's located where the src is) ought to > work, even without using --srcdir: > > http://www.gnu.org/software/autoconf/manual/html_node/Multiple-Architectures.html#Multiple-Architectures > MapServer's configure script and Makefiles have never been tested nor designed for that kind of scenario, so I would not expect that to work. Daniel -- Daniel Morissette http://www.mapgears.com/ From Bob.Basques at ci.stpaul.mn.us Wed Mar 5 08:18:10 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 05 Mar 2008 10:18:10 -0600 Subject: [mapserver-users] MapServer GRID object. Message-ID: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> All, I got the GRID object to work and display in this interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml I still need to know more info about the function though, is FORMATOPTION the only method of changing the labeling? I would like to get rid of the Scientific notaion that it uses by default and use LAT/LON instead. Specifically I'm trying to get it to label using the US National Grid. Anyone had any experience with this? I have a couple of other experimental layers in the interface referenced above that are sourced with Polygons,and Polyline SHP files as well as via the MapServer Grid Object. Im shooting for the GRID labeling method as the preferred output at this point. Thanks for any pointers. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed Mar 5 09:28:14 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 5 Mar 2008 10:28:14 -0700 Subject: [mapserver-users] MapServer GRID object. References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <49d601c87ee6$4ad46330$140002c0@shark> Bob, I take it you mean LABELFORMAT (not FORMATOPTION)? From http://mapserver.gis.umn.edu/docs/reference/mapfile/grid: LABELFORMAT [DD|DDMM|DDMMSS] Format of the label. "DD" for degrees, "DDMM" for degrees minutes, and "DDMMSS" for degrees, minutes, seconds. The default is decimal display of whatever SRS you're rendering the GRID with. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bob Basques" To: Sent: Wednesday, March 05, 2008 9:18 AM Subject: [mapserver-users] MapServer GRID object. All, I got the GRID object to work and display in this interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml I still need to know more info about the function though, is FORMATOPTION the only method of changing the labeling? I would like to get rid of the Scientific notaion that it uses by default and use LAT/LON instead. Specifically I'm trying to get it to label using the US National Grid. Anyone had any experience with this? I have a couple of other experimental layers in the interface referenced above that are sourced with Polygons,and Polyline SHP files as well as via the MapServer Grid Object. Im shooting for the GRID labeling method as the preferred output at this point. Thanks for any pointers. 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 Wed Mar 5 10:01:06 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 05 Mar 2008 12:01:06 -0600 Subject: [mapserver-users] MapServer GRID object. In-Reply-To: <49d601c87ee6$4ad46330$140002c0@shark> References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> <49d601c87ee6$4ad46330$140002c0@shark> Message-ID: <47CE8B82.163B.00A8.0@ci.stpaul.mn.us> Oops, yup, you're right. LABELFORMAT. Anyway, how to I get rid of the Scientific notation for the labels? There doesn't seem to be a method for this. bobb >>> "Brent Fraser" wrote: Bob, I take it you mean LABELFORMAT (not FORMATOPTION)? From http://mapserver.gis.umn.edu/docs/reference/mapfile/grid: LABELFORMAT [DD|DDMM|DDMMSS] Format of the label. "DD" for degrees, "DDMM" for degrees minutes, and "DDMMSS" for degrees, minutes, seconds. The default is decimal display of whatever SRS you're rendering the GRID with. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bob Basques" To: Sent: Wednesday, March 05, 2008 9:18 AM Subject: [mapserver-users] MapServer GRID object. All, I got the GRID object to work and display in this interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml I still need to know more info about the function though, is FORMATOPTION the only method of changing the labeling? I would like to get rid of the Scientific notaion that it uses by default and use LAT/LON instead. Specifically I'm trying to get it to label using the US National Grid. Anyone had any experience with this? I have a couple of other experimental layers in the interface referenced above that are sourced with Polygons,and Polyline SHP files as well as via the MapServer Grid Object. Im shooting for the GRID labeling method as the preferred output at this point. Thanks for any pointers. bobb ------------------------------------------------------------ -------------------- > _______________________________________________ > 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 bfraser at geoanalytic.com Wed Mar 5 10:16:19 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 5 Mar 2008 11:16:19 -0700 Subject: [mapserver-users] MapServer GRID object. References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> <49d601c87ee6$4ad46330$140002c0@shark> <47CE8B82.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <619c01c87eed$02946e10$140002c0@shark> Bob, For spherical unit (Degrees-minutes-seconds) labels you could use: LABELFORMAT "DDMMSS" or for cartesian units (e.g. meters) an un-documented feature(!) of any C-style formatting string: LABELFORMAT "%7.0f m" Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bob Basques" To: "Brent Fraser" ; Sent: Wednesday, March 05, 2008 11:01 AM Subject: Re: [mapserver-users] MapServer GRID object. Oops, yup, you're right. LABELFORMAT. Anyway, how to I get rid of the Scientific notation for the labels? There doesn't seem to be a method for this. bobb >>> "Brent Fraser" wrote: Bob, I take it you mean LABELFORMAT (not FORMATOPTION)? From http://mapserver.gis.umn.edu/docs/reference/mapfile/grid: LABELFORMAT [DD|DDMM|DDMMSS] Format of the label. "DD" for degrees, "DDMM" for degrees minutes, and "DDMMSS" for degrees, minutes, seconds. The default is decimal display of whatever SRS you're rendering the GRID with. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bob Basques" To: Sent: Wednesday, March 05, 2008 9:18 AM Subject: [mapserver-users] MapServer GRID object. All, I got the GRID object to work and display in this interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml I still need to know more info about the function though, is FORMATOPTION the only method of changing the labeling? I would like to get rid of the Scientific notaion that it uses by default and use LAT/LON instead. Specifically I'm trying to get it to label using the US National Grid. Anyone had any experience with this? I have a couple of other experimental layers in the interface referenced above that are sourced with Polygons,and Polyline SHP files as well as via the MapServer Grid Object. Im shooting for the GRID labeling method as the preferred output at this point. Thanks for any pointers. bobb ------------------------------------------------------------ -------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at dmsolutions.ca Wed Mar 5 10:27:14 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 05 Mar 2008 13:27:14 -0500 Subject: [mapserver-users] MapServer GRID object. In-Reply-To: <619c01c87eed$02946e10$140002c0@shark> References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> <49d601c87ee6$4ad46330$140002c0@shark> <47CE8B82.163B.00A8.0@ci.stpaul.mn.us> <619c01c87eed$02946e10$140002c0@shark> Message-ID: <47CEE602.7040302@dmsolutions.ca> I'll be doing some documentation updates soon so if you find anything undocumented please file a ticket for it in MapServer's trac instance (http://trac.osgeo.org/mapserver/), using the "MapServer Documentation" component. -jeff Brent Fraser wrote: > Bob, > > For spherical unit (Degrees-minutes-seconds) labels you > could use: > > LABELFORMAT "DDMMSS" > > or for cartesian units (e.g. meters) an un-documented > feature(!) of any C-style formatting string: > > LABELFORMAT "%7.0f m" > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > ----- Original Message ----- > From: "Bob Basques" > To: "Brent Fraser" ; > > Sent: Wednesday, March 05, 2008 11:01 AM > Subject: Re: [mapserver-users] MapServer GRID object. > > > Oops, yup, you're right. LABELFORMAT. Anyway, how to I get > rid of the Scientific notation for the labels? There > doesn't seem to be a method for this. > > bobb > > > >>>> "Brent Fraser" wrote: > Bob, > > I take it you mean LABELFORMAT (not FORMATOPTION)? From > http://mapserver.gis.umn.edu/docs/reference/mapfile/grid: > > LABELFORMAT [DD|DDMM|DDMMSS] > Format of the label. "DD" for degrees, "DDMM" for degrees > minutes, and "DDMMSS" for degrees, minutes, seconds. The > default is decimal display of whatever SRS you're rendering > the GRID with. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Bob Basques" > To: > Sent: Wednesday, March 05, 2008 9:18 AM > Subject: [mapserver-users] MapServer GRID object. > > > All, > > I got the GRID object to work and display in this interface: > > http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml > > I still need to know more info about the function though, is > FORMATOPTION the only method of changing the labeling? I > would like to get rid of the Scientific notaion that it uses > by default and use LAT/LON instead. > > Specifically I'm trying to get it to label using the US > National Grid. Anyone had any experience with this? I have > a couple of other experimental layers in the interface > referenced above that are sourced with Polygons,and Polyline > SHP files as well as via the MapServer Grid Object. Im > shooting for the GRID labeling method as the preferred > output at this point. > > Thanks for any pointers. > > bobb > > > > From iansgis at gmail.com Wed Mar 5 11:19:29 2008 From: iansgis at gmail.com (Ian) Date: Wed, 5 Mar 2008 11:19:29 -0800 Subject: [mapserver-users] Skipping layers that fail to load Message-ID: <5b61c6c50803051119r31c8d4e2tdff31eaa51c22b7c@mail.gmail.com> Hello, I went through the documentation but did not find a solution for drawing a map even when some of its layers do not successfully complete. Our database went down recently and all layers that make database calls weren't completing and therefore the final map was never generated. I can manually turn these layers off when it happens, but is there a way to silently skip the failed layers? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carla.fernandezb at gmail.com Wed Mar 5 11:31:34 2008 From: carla.fernandezb at gmail.com (cfb) Date: Wed, 5 Mar 2008 11:31:34 -0800 (PST) Subject: [MAPSERVER-USERS] Missing required parameter BBOX Message-ID: <15855659.post@talk.nabble.com> Hi again, I'm having problems with the projections of my WMS (working with MapServer 5.0.2 for Windows). I've changed the SRS of the header's mapfile into EPSG 4326 (before it was EPSG 23030), and also the epsg of one layer (which reference system I'd already changed to 4326). I'd left the other layer with EPSG 23030. When I try to GetMap with a client the WMS works but I don't see the image (sid), I get this error: "msWMSLoadGetMapParams(): WMS server error. Missing required parameter BBOX" Here is my mapfile. Any help will be really appreciated! MAP NAME XX #STATUS ON SIZE 400 300 #EXTENT 101003 3981277 629275 4366350 # [Xmin][ymin][xmax][ymax] EXTENT -7.52 35.93 -1.62 38.73 UNITS DD # [feet/inches/kilometers/meters/miles/dd] SHAPEPATH "../data" IMAGETYPE JPEG FONTSET "../etc/fonts.txt" SYMBOLSET "../etc/symbols.sym" DEBUG ON PROJECTION "init=epsg:4230" #WGS 84 #135 m. de diferencia con GoogleEarth END # WEB ... # # METADATA "WMS_TITLE" "xxx" "WMS_ABSTRACT" "xxxx" "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/xxx.exe?" "WMS_ACCESSCONSTRAINTS" "xxx" "WMS_SRS" "EPSG:4230 EPSG:4326 EPSG:4258 EPSG:23030 EPSG:23029 EPSG:4324 EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:3035 EPSG:3034" ... END END # SCALEBAR ... END # LEGEND ... END # OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END ... ###################################################### LAYER NAME "catalogo_1956_57_BN_CMA" # I want to leave this layer with EPSG 23030 ... METADATA "WMS_SRS" "EPSG:23030 EPSG:23029 EPSG:4230 EPSG:4324 EPSG:4326 EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:4258 EPSG:3035 EPSG:3034" "WMS_TITLE" "aaa "WMS_ABSTRACT" "aaa" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_keywordlist" "a" "wms_extent" "102003 3816667 629275 4366350" END #METADATA PROJECTION "init=epsg:23030" #Proyecci?n UTM European Datum 50 Huso 30 N END END #LAYER ################################################## LAYER # NAME "xxxxx" DATA ?D:\kkk.sid? TYPE RASTER STATUS ON PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" OFFSITE 0 0 0 DEBUG ON DUMP TRUE METADATA "WMS_SRS" "EPSG:4326 EPSG:23030 EPSG:23029 EPSG:4230 EPSG:4324 EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:4258 EPSG:3035 EPSG:3034" "WMS_TITLE" "ccc" "WMS_ABSTRACT" "ccccc" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_keywordlist" "cc" #"wms_extent" "102003 3816667 629275 4366350" "wms_extent" "-7.52 35.93 -1.62 38.73" END #METADATA PROJECTION "init=epsg:4326" ##WGS 84 END END #================================# END -- View this message in context: http://www.nabble.com/Missing-required-parameter-BBOX-tp15855659p15855659.html Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at metacarta.com Wed Mar 5 11:34:47 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 5 Mar 2008 14:34:47 -0500 Subject: [MAPSERVER-USERS] Missing required parameter BBOX In-Reply-To: <15855659.post@talk.nabble.com> References: <15855659.post@talk.nabble.com> Message-ID: <20080305193447.GA12832@metacarta.com> On Wed, Mar 05, 2008 at 11:31:34AM -0800, cfb wrote: > > Hi again, > > I'm having problems with the projections of my WMS (working with MapServer > 5.0.2 for Windows). I've changed the SRS of the header's mapfile into EPSG > 4326 (before it was EPSG 23030), and also the epsg of one layer (which > reference system I'd already changed to 4326). I'd left the other layer with > EPSG 23030. > > When I try to GetMap with a client the WMS works but I don't see the image > (sid), I get this error: > "msWMSLoadGetMapParams(): WMS server error. Missing required parameter BBOX" What is the URL you are using? Does it have a bbox in it? -- Christopher Schmidt MetaCarta From jmckenna at dmsolutions.ca Wed Mar 5 11:50:38 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 05 Mar 2008 14:50:38 -0500 Subject: [MAPSERVER-USERS] Missing required parameter BBOX In-Reply-To: <20080305193447.GA12832@metacarta.com> References: <15855659.post@talk.nabble.com> <20080305193447.GA12832@metacarta.com> Message-ID: <47CEF98E.2030506@dmsolutions.ca> > > What is the URL you are using? Does it have a bbox in it? > > To go along with what Chris says, since you are an MS4W user you can download the "PHPMapscript Sample Application" (gmap_ms4w_ms5.zip) add-on package and goto localhost to see working GetMap requests for MapServer 5.0.2 -jeff From nospam420 at yahoo.com Wed Mar 5 12:02:26 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 5 Mar 2008 12:02:26 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15840243.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> Message-ID: <15856430.post@talk.nabble.com> rich.fromm wrote: > > I am in the process of running another test, this using a build of the tip > of branch-5-0, along with local patches both for bug 2497 and for bug 2533 > (in other words, this patch). > It also ran fine (for a 6 hour test under heavy load). For more details, see: http://trac.osgeo.org/mapserver/ticket/2533#comment:6 -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15856430.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Josh.Hevenor at dpra.com Wed Mar 5 12:17:51 2008 From: Josh.Hevenor at dpra.com (Josh Hevenor) Date: Wed, 5 Mar 2008 14:17:51 -0600 Subject: [mapserver-users] Skipping layers that fail to load In-Reply-To: <5b61c6c50803051119r31c8d4e2tdff31eaa51c22b7c@mail.gmail.com> Message-ID: <49B9846C39F25A4FA901064970861610D80A76@mhk-ex1.ad.dpra.com> I'd also be interested in such a feature. What we've done in the past with a collection of unreliable SDE layers is to create a separate map file for the layers and use MapScript to see if it opens. If the layers fail then we turn them off in our main map. I'd like to see the layers just not draw, maybe with a legend icon denoting that the layer is unavailable. Josh ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Sent: Wednesday, March 05, 2008 2:19 PM To: mapserver-users Subject: [mapserver-users] Skipping layers that fail to load Hello, I went through the documentation but did not find a solution for drawing a map even when some of its layers do not successfully complete. Our database went down recently and all layers that make database calls weren't completing and therefore the final map was never generated. I can manually turn these layers off when it happens, but is there a way to silently skip the failed layers? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at dmsolutions.ca Wed Mar 5 12:34:46 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 05 Mar 2008 15:34:46 -0500 Subject: [mapserver-users] MapServer GRID object. In-Reply-To: <47CEE602.7040302@dmsolutions.ca> References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> <49d601c87ee6$4ad46330$140002c0@shark> <47CE8B82.163B.00A8.0@ci.stpaul.mn.us> <619c01c87eed$02946e10$140002c0@shark> <47CEE602.7040302@dmsolutions.ca> Message-ID: <47CF03E6.90001@dmsolutions.ca> Small world: it seems someone else just made a change to that GRID doc page. Whoever did that change, can you please correct the errors/warnings displayed now? thanks. -jeff Jeff McKenna wrote: > I'll be doing some documentation updates soon so if you find anything > undocumented please file a ticket for it in MapServer's trac instance > (http://trac.osgeo.org/mapserver/), using the "MapServer Documentation" > component. > > -jeff From woodbri at swoodbridge.com Wed Mar 5 12:35:03 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 05 Mar 2008 15:35:03 -0500 Subject: [mapserver-users] Skipping layers that fail to load In-Reply-To: <49B9846C39F25A4FA901064970861610D80A76@mhk-ex1.ad.dpra.com> References: <49B9846C39F25A4FA901064970861610D80A76@mhk-ex1.ad.dpra.com> Message-ID: <47CF03F7.1060800@swoodbridge.com> And building mapserver with the ./configure --ignore-missing-data does not solve this problem? I personally would prefer that these kind of options reside in the mapfile so you don't have to rebuild mapserver to turn them on when you forget. Maybe we need something like: MAP CONFIGURE IGNORE_MISSING_DATA ON IGNORE_BROKEN_LAYERS ON ... END ... END I think we already have something similar to this but I forget off the top of my head what the exact syntax is. Regardless of syntax, I do not think there is support currently for these options. You might want to open a ticket after the discussion to document the thread and the request for an enhancement. -Steve W Josh Hevenor wrote: > > > I?d also be interested in such a feature. What we?ve done in the past > with a collection of unreliable SDE layers is to create a separate map > file for the layers and use MapScript to see if it opens. If the layers > fail then we turn them off in our main map. I?d like to see the layers > just not draw, maybe with a legend icon denoting that the layer is > unavailable. > > > > Josh > > > > * From: * mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Ian > *Sent:* Wednesday, March 05, 2008 2:19 PM > *To:* mapserver-users > *Subject:* [mapserver-users] Skipping layers that fail to load > > > > Hello, > > I went through the documentation but did not find a solution for drawing > a map even when some of its layers do not successfully complete. Our > database went down recently and all layers that make database calls > weren't completing and therefore the final map was never generated. > > I can manually turn these layers off when it happens, but is there a way > to silently skip the failed layers? > > Thanks. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Wed Mar 5 12:57:41 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 5 Mar 2008 13:57:41 -0700 Subject: [mapserver-users] MapServer GRID object. References: <47CE7362.163B.00A8.0@ci.stpaul.mn.us> <49d601c87ee6$4ad46330$140002c0@shark> <47CE8B82.163B.00A8.0@ci.stpaul.mn.us> <619c01c87eed$02946e10$140002c0@shark><47CEE602.7040302@dmsolutions.ca> <47CF03E6.90001@dmsolutions.ca> Message-ID: <634b01c87f03$8d57f380$140002c0@shark> Jeff, Sorry about that, it was me. I'll fix the errors... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Jeff McKenna" To: Sent: Wednesday, March 05, 2008 1:34 PM Subject: Re: [mapserver-users] MapServer GRID object. > Small world: it seems someone else just made a change to that GRID doc > page. Whoever did that change, can you please correct the > errors/warnings displayed now? thanks. > > -jeff > > > > > Jeff McKenna wrote: > > I'll be doing some documentation updates soon so if you find anything > > undocumented please file a ticket for it in MapServer's trac instance > > (http://trac.osgeo.org/mapserver/), using the "MapServer Documentation" > > component. > > > > -jeff > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dfuhry at gmail.com Wed Mar 5 13:41:44 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Wed, 5 Mar 2008 16:41:44 -0500 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803051326.36604.ivan.mincik@gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> <200803051326.36604.ivan.mincik@gmail.com> Message-ID: <90699a8d0803051341q3b5b623bp1e3a11b46e2e444b@mail.gmail.com> Ivan, Thanks for the problem report. If you are using fastcgi, you may need to restart it. The only two places PQconnectdb is called is in msPOSTGISLayerOpen and in msPOSTGRESQLJoinConnect, which operates independently, not using cursors or the connection pool. With a patched msPOSTGISLayerOpen, PQexec(layerinfo->conn, "BEGIN") is always called right after connecting, before any queries and before the connection ends up in the connection pool. So I'm wondering if you've put the new mapserv executable in your cgi-bin, but not restarted the webserver, and it's pulling old connections out of the fastcgi connection pool, which have not had PQexec(layerinfo->conn, "BEGIN") issued to them (and thus, no transaction started). Try restarting fastcgi. Depending on your configuration, restarting your webserver may automatically restart fastcgi, or you may have to specifically restart the fastcgi service/daemon on that machine. Please let us know if this fixes the problem. Thanks, Dave On Wed, Mar 5, 2008 at 7:26 AM, Ivan Mincik wrote: > Nothing is perfect. There are no problems with applied patch when browsing the > map. But when I use identify object query from php5-mapscript the problem is > rising again. > > I have in postgresql log: > > 2008-03-05 13:19:30 CET WARNING: there is no transaction in progress > 2008-03-05 13:19:30 CET ERROR: cursor "mycursor" does not exist > 2008-03-05 13:19:31 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-05 13:19:31 CET WARNING: there is no transaction in progress > 2008-03-05 13:19:31 CET ERROR: cursor "mycursor" does not exist > 2008-03-05 13:19:32 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-05 13:19:32 CET WARNING: there is no transaction in progress > 2008-03-05 13:19:32 CET ERROR: cursor "mycursor" does not exist > 2008-03-05 13:19:34 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-05 13:19:34 CET WARNING: there is no transaction in progress > 2008-03-05 13:19:34 CET ERROR: cursor "mycursor" does not exist > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: autovacuum: processing database "gisplan" > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > 2008-03-05 13:20:10 CET LOG: could not receive data from client: Connection > reset by peer > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:40 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:40 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:41 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:42 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:43 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:43 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:44 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:44 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:45 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:46 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:47 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:47 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:48 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:49 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:50 CET WARNING: there is already a transaction in progress > 2008-03-05 13:20:50 CET WARNING: there is already a transaction in progress > > > ivan > > > > On Monday 03 March 2008 21:53, rich.fromm wrote: > > > hrach wrote: > > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > > > > I am now using it fine with mapserver 5.0.0 after applying the patch for > > bug 2497: > > http://trac.osgeo.org/mapserver/ticket/2497 > > > > I don't know if 4.10.3 is different enough for that patch to be applicable > > or not. But if it's not too hard to upgrade, you might want to try a later > > version (e.g. 5.0.2) plus that patch. Note that the patch may make it into > > the 5.0.3 release (it was originally targetted for 5.2). > > > > You also might want to take a look at the following related mailing list > > threads: > > > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653945.h > >tml#a12674499 > > http://www.nabble.com/postgres-transaction-warnings-to15749333.html > > > > - Rich > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From scott.ellington at goisc.com Wed Mar 5 14:31:56 2008 From: scott.ellington at goisc.com (Scott Ellington) Date: Wed, 05 Mar 2008 17:31:56 -0500 Subject: [mapserver-users] Mapserver equivalent for .NET Message-ID: <1204756316.3871.38.camel@cheers.goisc> Hi, I currently work at ISC and was asked to respond on this thread. A few notes on some comments: "That being said, I can still wish that they be more open and give credit to MapServer for providing the core of their system, or perhaps spend some time on this list helping users, or do something/anhything for the project... for me it's a wish, not a requirement." --Daniel Morissette Howard Butler brought up a lot of these issues a while back. In terms of openness, I can honestly tell you that there is no intent to hide the fact that mapserver does the map rendering in MDNS. I am not a sales guy, but I have been told that there are some local governments that don't want to hear that you are using open source, so it's just not something that is pushed. There have been some contributions however. Howard would be the person to list all these out. But I know that someone here wrote the MS SQL Server 2008 plugin. "this definitely sounds interesting. Are they using the mapscript api or are they going via CGI? How are exactly using mapserver? (I wish i could see this by myself, but looks at their site that there is not a downloadable demo of it)" --Paolo Corti MDNS uses mapscript/C# to render maps. It has a Common .NET API that if you notice has many mapserver-isms. All of the querying/editing is done within MDNS however. Also, you should be able to download a demo if you log in. "and the mapfile docs themselves are awfully familiar." --Daniel Morissette The mapfile reference page is directly copied from the mapserver site. I included the license at the bottom that I found on the website. Let me know if I am missing something. ""The MapFile format used in MDNS adheres to the MapServer map file specification." I didn't know that our good ol' mapfile was such a universal reference ! But, althought funny, this sentence tries to make people believe MapDotNet only use the mapfile format, and not mapserver itself, which can be considered unfaithfull if it effectively uses the mapserver engine behind." --Guillaume Sueur I wrote that. I didn't mean to imply anything, but MDNS does use the mapFile outside of map rendering. However, I changed it to: "MapDotNet Server currently uses MapServer 5.0 to render maps, and relies on its mapFile format." http://www.mapdotnet.com/wiki/Wiki%20Pages/MapFile%20Complete%20Reference.aspx Scott From iansgis at gmail.com Wed Mar 5 15:12:33 2008 From: iansgis at gmail.com (Ian) Date: Wed, 5 Mar 2008 15:12:33 -0800 Subject: [mapserver-users] Skipping layers that fail to load In-Reply-To: <47CF03F7.1060800@swoodbridge.com> References: <49B9846C39F25A4FA901064970861610D80A76@mhk-ex1.ad.dpra.com> <47CF03F7.1060800@swoodbridge.com> Message-ID: <5b61c6c50803051512s2019a414ta0bc4b9449720b32@mail.gmail.com> In the original post I should have clarified that I was reading through the Mapfile Reference documentation. Yes Stephen your suggestion is exactly along the lines of what I was thinking and would like as an option. Something at the individual map or layer level that gracefully handles broken database connections would be great. Barring any solutions being posted in the next day, I'll open a ticket with this request. Thanks, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 5 15:27:19 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 6 Mar 2008 00:27:19 +0100 Subject: [mapserver-users] enhancement ideas In-Reply-To: <495923.78355.qm@web26912.mail.ukl.yahoo.com> References: <495923.78355.qm@web26912.mail.ukl.yahoo.com> Message-ID: Joan, New ideas are welcomed since it's more incentive than dealing with bugs any time ;-) Most of the times the enhancements/requests are bound to specific projects/demands so that the developers can easily put these efforts into their timeline but it's quite difficult to pick up the task that is out of the context of their existing work. From this aspect the following options can normally be considered to invoke the new suggestions: 1. Submit a ticket as an enhancement request and wait if someone gets involved to implement it 2. Provide working implementations/patches/RFCs that could easily get approved by the PSC 3. Contract with someone to implement these. 4. Add the wishes to the mapserver GSoC proposals http://wiki.osgeo.org/wiki/MapServer_2008_SOC_Ideas perhaps some of the students around here are willing to implement. With regards to the suggestions I have the following notes: > > ** Expressions almost everywhere ** > Possibility to use expressions whenever a value is required. > Built-in variables and functions would be very useful. > For example: > SIZE [fieldValue]*0.2+5 > WIDTH imageWidth / 200.0 # imageWidth is a built-in variable containing > the map width in pixels > SIZE min(5, [fieldValue]/100) # minimum function > TEXT upperCase([fieldValue]) # get upper case value of a text field > TEXT if([fieldValue] = "-", "Yes", "No") # "if then else" expression > COLOR rampColor([fieldValue],0,10000) # get a color in > a ramp for a numeric field normalized to a range > You can currently use MapScript in various languages to provide the run-time changes in the values in many places. However the run-time replacements of the shapeObj parameters is a good example where we cannot indeed utilize MapScript easily since all of the rendering code is located inside the mapserver core. I guess this is one of the areas where mapserver currently cannot provide enough support for the customizations. The expressions you mentioned is only a small sub-area where the customizations can take place. Actually instead implementing a general (and may be quite inefficient) expression handler I would rather support for the users to be able to write code plugins to 'transform' the features before the renderings for their specific need. From this intent I've created MS-RFC-22 http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22a that couldn't get enough support by this time, maybe nobody out there has too sophisticated rendering problems that cannot be handled in other ways (like placing those transformations to the database level would be sufficient for example) > ** Finer grained concurrency locks ** > Especially in OGR. Currently Mapscript (Java or .NET) is not an efficient > option on a webserver accessing OGR: web requests are practically serialized > by the locks. > I think thread safety was improved in latest version of GDAL/OGR, am I > wrong? > Adopting RFC15 would be great news! > This is just another area where it's difficult to reach the consesus. Currently most of the users using CGI/WxS related applications are not really interested in solving these problems. Moreover solely within the mapserver project is difficult to make the locks more 'fine grained' so as to prevent from the concurrent accesses of the common resources inside a dependent library. We can surely make some enhancements according to RFC15 but the level of the thread isolation can only really be addressed when all of the dependent libraries have also been audited. > ** Facilities for tiles ** > Given the big performance boost of using map tiles, I think it would be very > useful an utility (or API) for pregenerating tiles of a map for a given area > and level. > I am aware of the existence of TileCache but I think it would be interesting > to have this utility. > I think creating tiles / rendering based on the tiles are somewhat out of the context of the mapserver project and can be impemented by an outer project. There are a couple of projects that have already implemented this. > ** Multiple geometry types on a layer ** > Currently, a layer only admits one geometry type (point, line, polygon). > Some sources, especially CAD datasets via OGR, > contain different geometry types. Would be useful and efficient to have all > geometries shown in the same layer. > Different styling rules may be needed to display different geometry types in > the same layer. > Generally speaking this would violate the concept around the layers as grouping the features to be rendered in an unique way. And you can currently subselect the various kind of the geometries into separate layers (like using a filter based on the OGR_GEOMETRY field). In addition you can use a data source controlled customization of the styles within a same layer by using STYLEITEM AUTO when the data source contains style information. Do you have an use case where this isn't enough? Maybe the auto-style support of RFC-22 could provide a solution. Best regards, Tamas From jmcbride at mortonarb.org Wed Mar 5 16:54:22 2008 From: jmcbride at mortonarb.org (Jeanette McBride) Date: Wed, 05 Mar 2008 18:54:22 -0600 Subject: [mapserver-users] workstation to server migration Message-ID: <47CEEC5E.83DF.000C.0@mortonarb.org> Hi helpful folks, I've got a nice Mapserver project running on my desktop and I'd like to get it on our intranet. I know something about GIS but nothing about networks and servers, so I can't answer my IT Dept's question, which is this: "In regards to the question about migrating my question was to migrate the data from the current workstation to the new server computer. Would it cause a problem?" Without getting into details about the machines, any thoughts on this? thanks, Jenny From Jacob.Delfos at maunsell.com Wed Mar 5 17:26:47 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Thu, 6 Mar 2008 10:26:47 +0900 Subject: [mapserver-users] workstation to server migration In-Reply-To: <47CEEC5E.83DF.000C.0@mortonarb.org> Message-ID: <4997F456680DAD4DA1E042C40C46361101BC8480@auper1ex002.au.aecomnet.com> Hi Jeanette, It should make no difference if you replicate the setup and the file paths on the server. In theory, if you copy everything into the exact same location, and set up the same aliases for the web-server (IIS or Apache), then it should work. If you are loading data from the network, you'd have to make sure your server has access to these same resources. A server is no different from a workstation from a logical point of view. Regards, Jacob > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Jeanette McBride > Sent: 6 March 2008 09:54 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] workstation to server migration > > Hi helpful folks, > > I've got a nice Mapserver project running on my desktop and > I'd like to > get it on our intranet. I know something about GIS but nothing about > networks and servers, so I can't answer my IT Dept's > question, which is > this: "In regards to the question about migrating my question was to > migrate the data from the current workstation to the new server > computer. Would it cause a problem?" Without getting into > details about > the machines, any thoughts on this? > > thanks, > Jenny > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From boedy1996 at gmail.com Wed Mar 5 18:23:40 2008 From: boedy1996 at gmail.com (boedy1996 at gmail.com) Date: Thu, 6 Mar 2008 09:23:40 +0700 Subject: [mapserver-users] (no subject) Message-ID: <47cf55d4.1921720a.470b.4c04@mx.google.com> Hi. I am a new user in mapserver using. Is there any method to connect shp and mssql database beside ogr. Because I must wait for a long time if I use OGR. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1312 - Release Date: 04/03/2008 21:46 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Wed Mar 5 18:47:27 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 5 Mar 2008 18:47:27 -0800 (PST) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15856430.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> Message-ID: <15865401.post@talk.nabble.com> rich.fromm wrote: > > > rich.fromm wrote: >> >> I am in the process of running another test, this using a build of the >> tip of branch-5-0, along with local patches both for bug 2497 and for bug >> 2533 (in other words, this patch). >> > > It also ran fine (for a 6 hour test under heavy load). For more details, > see: > http://trac.osgeo.org/mapserver/ticket/2533#comment:6 > I continued running stress tests on the branch-5-0 build. While I have not yet seen the projection error again, after 06:24:13 elapsed time, tomcat again crashed in mapObj.new(). Note that this is very similar to the stack trace that I had seen previously (see http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-to15815968.html), but not precisely the same. The differences might be explained by this build being from branch-5-0, and the previous runs being from the 5.0.0 release. Regardless, I once again return to my notion that these are two separate issues: _IO_fread (/lib/libc.so.6) yy_get_next_buffer (maplexer.c:3526) msyylex (maplexer.c:3357) loadClass (mapfile.c:2102) loadLayer (mapfile.c:2577) loadMapInternal (mapfile.c:4348) msLoadMap (mapfile.c:4573) new_mapObj (mapscript/java/mapscript_wrap.c:1612) Java_edu_umn_gis_mapscript_mapscriptJNI_new_1mapObj (mapscript/java/mapscript_wrap.c:19783) -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15865401.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Wed Mar 5 22:41:12 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Thu, 6 Mar 2008 07:41:12 +0100 Subject: [mapserver-users] Re: Hiding overviews References: Message-ID: Hmm, seems my description wasn't clear enough, so I'll try to precise... For a layer with raster data I created external overviews. To make use of them I copied the LAYER portion of the map file, changed the TILEINDEX statement to point to the index of the appropriate overview, set MINSCALE/MAXSCALE to form a continues range and added a GROUP statement to all of them to form a single layer again as it was before without the overviews added. Now I can take a WMS client, enable or disable the layer group which collects the detail layer and all of it's overviews which kick in if you increase the scale. So instead of having a single layer consisting of huge tiled which have all to be touched and scaled down for a request at large scales I now have a group consisting of several layers where only one is active at each scale. Doing so was a suggestion from the raster data (optimizing) howto and they called this solution "external overviews". So if I have a layer "raster" (scale 10...5000000) I want to split it into "detail" (scale 10...1000) and "overview" (scale 1000...5000000) and put both in a _group_ "raster" for example. Now you can go and request the layer "raster" as before and what you get depends on the chosen scale and is either "detail" below 1000 or "overview" above 1000. The problem is that you can explicitly request the layer "detail", but if you are above 1000 you will see... Absolutely nothing. Same with the "overview" layer below 1000. This is because those layers have a name which enables them to be requested in a WMS "GetMap" request. If they wouldn't you could only request the named group layer "raster". So I thought it could be done by ommitting the "wms_name" part of the METADATA but if you do and issue a "GetCapabilities" request you will see that MapServer outputs a warning about the missing mandatory name attribute and inserts the layer name from the NAME attribute of the map file. We have a WMS client which displays nested named layers as folders. The result isn't user friendly... So I wondered if there's a way to hide those external overviews from the user since the only thing he can decide is either to display the hole group (which ever layer may be affected) or none of those layers at all. Hope I could make the situation a little bit clearer. I believe it's only a little thing I miss but there are too much trees in the wood... From Jacob.Delfos at maunsell.com Wed Mar 5 22:57:02 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Thu, 6 Mar 2008 15:57:02 +0900 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: Message-ID: <4997F456680DAD4DA1E042C40C46361101BC8488@auper1ex002.au.aecomnet.com> Hi Andreas, I use a similar approach, but not under WMS circumstances. But basically I take advantage of the fact that layers in MapServer that have the same name, will switch on/off at the same time. For example, I can create a layer called "Satellite Image", which is a tile-index. I can then add another layer called "Satellite Image", which actually points to a single raster image (overview). As long as MapServer is told to switch on "Satellite Image", it will draw all layers by that name (but still respecting minscale and maxscale). I am not sure how this will affect a "getCapabilities" document, though. You *could* look into using the "requires" attribute, but I think this may not work well in combination with minscale/maxscale. The last option (perhaps the most logical one) is to put them into the same group. I believe that should cause MapServer to draw them at the same time. Hope this helps, Jacob > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Eichner, Andreas - SID-NLK > Sent: 6 March 2008 15:41 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: Hiding overviews > > > Hmm, seems my description wasn't clear enough, so I'll try to > precise... > > For a layer with raster data I created external overviews. To make use > of them I copied the LAYER portion of the map file, changed the > TILEINDEX statement to point to the index of the appropriate overview, > set MINSCALE/MAXSCALE to form a continues range and added a GROUP > statement to all of them to form a single layer again as it was before > without the overviews added. Now I can take a WMS client, enable or > disable the layer group which collects the detail layer and > all of it's > overviews which kick in if you increase the scale. > > So instead of having a single layer consisting of huge tiled > which have > all to be touched and scaled down for a request at large scales I now > have a group consisting of several layers where only one is active at > each scale. Doing so was a suggestion from the raster data > (optimizing) > howto and they called this solution "external overviews". > > So if I have a layer "raster" (scale 10...5000000) I want to split it > into "detail" (scale 10...1000) and "overview" (scale 1000...5000000) > and put both in a _group_ "raster" for example. Now you can go and > request the layer "raster" as before and what you get depends on the > chosen scale and is either "detail" below 1000 or "overview" > above 1000. > > The problem is that you can explicitly request the layer "detail", but > if you are above 1000 you will see... Absolutely nothing. > Same with the > "overview" layer below 1000. This is because those layers have a name > which enables them to be requested in a WMS "GetMap" request. If they > wouldn't you could only request the named group layer "raster". So I > thought it could be done by ommitting the "wms_name" part of the > METADATA but if you do and issue a "GetCapabilities" request you will > see that MapServer outputs a warning about the missing mandatory name > attribute and inserts the layer name from the NAME attribute > of the map > file. > > We have a WMS client which displays nested named layers as > folders. The > result isn't user friendly... So I wondered if there's a way to hide > those external overviews from the user since the only thing he can > decide is either to display the hole group (which ever layer may be > affected) or none of those layers at all. > > Hope I could make the situation a little bit clearer. I believe it's > only a little thing I miss but there are too much trees in > the wood... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Andreas.Eichner at sid.sachsen.de Wed Mar 5 23:25:41 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Thu, 6 Mar 2008 08:25:41 +0100 Subject: [mapserver-users] Re: Hiding overviews References: <4997F456680DAD4DA1E042C40C46361101BC8488@auper1ex002.au.aecomnet.com> Message-ID: Hello Jacob, thanks for your try but this didn't help, sorry. IMHO the problem is that there seems to be no way to declare multiple, scale dependend data sources for one layer (in a WMS sense). Since the only reason of using of overviews for me is the (nearly) scale-independent performance. But optimization is _really_ a private thing of the service. It is not of the client's interest that MapServer internally organizes overviews as multiple layers... From Jukka.Rahkonen at mmmtike.fi Thu Mar 6 00:31:32 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 6 Mar 2008 10:31:32 +0200 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: Message-ID: Hi, I would say that if it is not possible at the moment to make a logical WMS layer that automatically swithes between several external overviews and the original imagery through tileindex according to scale settings, then it would be very useful to have. However, it feels so obvious demand that I would be a bit surprised if there is not such an option. Anyway, if it is missing then I will give +1 for feature request. There seems to be an option called wms_layer_group in the layer metadata section of mapfile, but I must admid that I do not understand what it stands for. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Eichner, Andreas - SID-NLK > L?hetetty: 6. maaliskuuta 2008 9:26 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Re: Hiding overviews > > > Hello Jacob, > > thanks for your try but this didn't help, sorry. IMHO the > problem is that there seems to be no way to declare multiple, > scale dependend data sources for one layer (in a WMS sense). > Since the only reason of using of overviews for me is the > (nearly) scale-independent performance. But optimization is > _really_ a private thing of the service. It is not of the > client's interest that MapServer internally organizes > overviews as multiple layers... > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Thu Mar 6 00:36:38 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 6 Mar 2008 10:36:38 +0200 Subject: [MAPSERVER-USERS] Missing required parameter BBOX In-Reply-To: <20080305193447.GA12832@metacarta.com> Message-ID: Hi, If it used to work before, and if you just changed projection of the mapfile to epsg:4326 withour changing the mapfile EXTENTS, the correcting extents might well make it work again. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Christopher Schmidt > L?hetetty: 5. maaliskuuta 2008 21:35 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [MAPSERVER-USERS] Missing required parameter BBOX > > On Wed, Mar 05, 2008 at 11:31:34AM -0800, cfb wrote: > > > > Hi again, > > > > I'm having problems with the projections of my WMS (working with > > MapServer > > 5.0.2 for Windows). I've changed the SRS of the header's > mapfile into > > EPSG > > 4326 (before it was EPSG 23030), and also the epsg of one > layer (which > > reference system I'd already changed to 4326). I'd left the other > > layer with EPSG 23030. > > > > When I try to GetMap with a client the WMS works but I > don't see the > > image (sid), I get this error: > > "msWMSLoadGetMapParams(): WMS server error. Missing > required parameter BBOX" > > What is the URL you are using? Does it have a bbox in it? > > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From verdaguerj at yahoo.es Thu Mar 6 00:51:07 2008 From: verdaguerj at yahoo.es (Joan Verdaguer) Date: Thu, 6 Mar 2008 08:51:07 +0000 (GMT) Subject: [mapserver-users] enhancement ideas Message-ID: <38708.67604.qm@web26911.mail.ukl.yahoo.com> Hi Tamas, Some points to your kind notes: > ... The expressions you mentioned is only a small sub-area where the > customizations can take place. Actually instead implementing > a general (and may be quite inefficient) expression handler I would > rather support for the users to be able to write code plugins to > 'transform' the features before the renderings for their specific > need. From this intent I've created MS-RFC-22. ... I already have readen MS-RFC-22a and think it is a very flexible and powerful enhancement to Mapserver since adds transforming abilities. It can be seen analogous to applying XSLT to XML: is the next step towards flexibility. IMHO, it is really a pity that it is not getting enough support. That being said, I still see the need of a global built-in expression mechanism. In the case of writing plugins to transform features, still exists the need of evaluating generic expressions in these plugins: it would be a pain to write a specific transformers for every specific style or attribute transformation. Moreover, I still see the need to get values from the map environment. Think of displaying labels at 5% the size of map height: it could be easily get whith "SIZE mapHeight*0.05", where mapHeight is a built-in variable. > I think creating tiles / rendering based on the tiles are somewhat out > of the context of the mapserver project and can be impemented by an > outer project. There are a couple of projects that have already > implemented this. I didn't know there already were projects with this functionality. Can you please tell me which ones are? Best regards, Joan ----- Mensaje original ---- De: Tamas Szekeres Para: Joan Verdaguer CC: mapserver-users at lists.osgeo.org Enviado: jueves, 6 de marzo, 2008 0:27:19 Asunto: Re: [mapserver-users] enhancement ideas Joan, New ideas are welcomed since it's more incentive than dealing with bugs any time ;-) Most of the times the enhancements/requests are bound to specific projects/demands so that the developers can easily put these efforts into their timeline but it's quite difficult to pick up the task that is out of the context of their existing work. From this aspect the following options can normally be considered to invoke the new suggestions: 1. Submit a ticket as an enhancement request and wait if someone gets involved to implement it 2. Provide working implementations/patches/RFCs that could easily get approved by the PSC 3. Contract with someone to implement these. 4. Add the wishes to the mapserver GSoC proposals http://wiki.osgeo.org/wiki/MapServer_2008_SOC_Ideas perhaps some of the students around here are willing to implement. With regards to the suggestions I have the following notes: > > ** Expressions almost everywhere ** > Possibility to use expressions whenever a value is required. > Built-in variables and functions would be very useful. > For example: > SIZE [fieldValue]*0.2+5 > WIDTH imageWidth / 200.0 # imageWidth is a built-in variable containing > the map width in pixels > SIZE min(5, [fieldValue]/100) # minimum function > TEXT upperCase([fieldValue]) # get upper case value of a text field > TEXT if([fieldValue] = "-", "Yes", "No") # "if then else" expression > COLOR rampColor([fieldValue],0,10000) # get a color in > a ramp for a numeric field normalized to a range > You can currently use MapScript in various languages to provide the run-time changes in the values in many places. However the run-time replacements of the shapeObj parameters is a good example where we cannot indeed utilize MapScript easily since all of the rendering code is located inside the mapserver core. I guess this is one of the areas where mapserver currently cannot provide enough support for the customizations. The expressions you mentioned is only a small sub-area where the customizations can take place. Actually instead implementing a general (and may be quite inefficient) expression handler I would rather support for the users to be able to write code plugins to 'transform' the features before the renderings for their specific need. From this intent I've created MS-RFC-22 http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22a that couldn't get enough support by this time, maybe nobody out there has too sophisticated rendering problems that cannot be handled in other ways (like placing those transformations to the database level would be sufficient for example) > ** Finer grained concurrency locks ** > Especially in OGR. Currently Mapscript (Java or .NET) is not an efficient > option on a webserver accessing OGR: web requests are practically serialized > by the locks. > I think thread safety was improved in latest version of GDAL/OGR, am I > wrong? > Adopting RFC15 would be great news! > This is just another area where it's difficult to reach the consesus. Currently most of the users using CGI/WxS related applications are not really interested in solving these problems. Moreover solely within the mapserver project is difficult to make the locks more 'fine grained' so as to prevent from the concurrent accesses of the common resources inside a dependent library. We can surely make some enhancements according to RFC15 but the level of the thread isolation can only really be addressed when all of the dependent libraries have also been audited. > ** Facilities for tiles ** > Given the big performance boost of using map tiles, I think it would be very > useful an utility (or API) for pregenerating tiles of a map for a given area > and level. > I am aware of the existence of TileCache but I think it would be interesting > to have this utility. > I think creating tiles / rendering based on the tiles are somewhat out of the context of the mapserver project and can be impemented by an outer project. There are a couple of projects that have already implemented this. > ** Multiple geometry types on a layer ** > Currently, a layer only admits one geometry type (point, line, polygon). > Some sources, especially CAD datasets via OGR, > contain different geometry types. Would be useful and efficient to have all > geometries shown in the same layer. > Different styling rules may be needed to display different geometry types in > the same layer. > Generally speaking this would violate the concept around the layers as grouping the features to be rendered in an unique way. And you can currently subselect the various kind of the geometries into separate layers (like using a filter based on the OGR_GEOMETRY field). In addition you can use a data source controlled customization of the styles within a same layer by using STYLEITEM AUTO when the data source contains style information. Do you have an use case where this isn't enough? Maybe the auto-style support of RFC-22 could provide a solution. Best regards, Tamas ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From verdaguerj at yahoo.es Thu Mar 6 00:51:25 2008 From: verdaguerj at yahoo.es (Joan Verdaguer) Date: Thu, 6 Mar 2008 08:51:25 +0000 (GMT) Subject: [mapserver-users] enhancement ideas Message-ID: <317792.18864.qm@web26908.mail.ukl.yahoo.com> Hi Tamas, Some points to your kind notes: > ... The expressions you mentioned is only a small sub-area where the > customizations can take place. Actually instead implementing > a general (and may be quite inefficient) expression handler I would > rather support for the users to be able to write code plugins to > 'transform' the features before the renderings for their specific > need. From this intent I've created MS-RFC-22. ... I already have readen MS-RFC-22a and think it is a very flexible and powerful enhancement to Mapserver since adds transforming abilities. It can be seen analogous to applying XSLT to XML: is the next step towards flexibility. IMHO, it is really a pity that it is not getting enough support. That being said, I still see the need of a global built-in expression mechanism. In the case of writing plugins to transform features, still exists the need of evaluating generic expressions in these plugins: it would be a pain to write a specific transformers for every specific style or attribute transformation. Moreover, I still see the need to get values from the map environment. Think of displaying labels at 5% the size of map height: it could be easily get whith "SIZE mapHeight*0.05", where mapHeight is a built-in variable. > I think creating tiles / rendering based on the tiles are somewhat out > of the context of the mapserver project and can be impemented by an > outer project. There are a couple of projects that have already > implemented this. I didn't know there already were projects with this functionality. Can you please tell me which ones are? Best regards, Joan ----- Mensaje original ---- De: Tamas Szekeres Para: Joan Verdaguer CC: mapserver-users at lists.osgeo.org Enviado: jueves, 6 de marzo, 2008 0:27:19 Asunto: Re: [mapserver-users] enhancement ideas Joan, New ideas are welcomed since it's more incentive than dealing with bugs any time ;-) Most of the times the enhancements/requests are bound to specific projects/demands so that the developers can easily put these efforts into their timeline but it's quite difficult to pick up the task that is out of the context of their existing work. From this aspect the following options can normally be considered to invoke the new suggestions: 1. Submit a ticket as an enhancement request and wait if someone gets involved to implement it 2. Provide working implementations/patches/RFCs that could easily get approved by the PSC 3. Contract with someone to implement these. 4. Add the wishes to the mapserver GSoC proposals http://wiki.osgeo.org/wiki/MapServer_2008_SOC_Ideas perhaps some of the students around here are willing to implement. With regards to the suggestions I have the following notes: > > ** Expressions almost everywhere ** > Possibility to use expressions whenever a value is required. > Built-in variables and functions would be very useful. > For example: > SIZE [fieldValue]*0.2+5 > WIDTH imageWidth / 200.0 # imageWidth is a built-in variable containing > the map width in pixels > SIZE min(5, [fieldValue]/100) # minimum function > TEXT upperCase([fieldValue]) # get upper case value of a text field > TEXT if([fieldValue] = "-", "Yes", "No") # "if then else" expression > COLOR rampColor([fieldValue],0,10000) # get a color in > a ramp for a numeric field normalized to a range > You can currently use MapScript in various languages to provide the run-time changes in the values in many places. However the run-time replacements of the shapeObj parameters is a good example where we cannot indeed utilize MapScript easily since all of the rendering code is located inside the mapserver core. I guess this is one of the areas where mapserver currently cannot provide enough support for the customizations. The expressions you mentioned is only a small sub-area where the customizations can take place. Actually instead implementing a general (and may be quite inefficient) expression handler I would rather support for the users to be able to write code plugins to 'transform' the features before the renderings for their specific need. From this intent I've created MS-RFC-22 http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22a that couldn't get enough support by this time, maybe nobody out there has too sophisticated rendering problems that cannot be handled in other ways (like placing those transformations to the database level would be sufficient for example) > ** Finer grained concurrency locks ** > Especially in OGR. Currently Mapscript (Java or .NET) is not an efficient > option on a webserver accessing OGR: web requests are practically serialized > by the locks. > I think thread safety was improved in latest version of GDAL/OGR, am I > wrong? > Adopting RFC15 would be great news! > This is just another area where it's difficult to reach the consesus. Currently most of the users using CGI/WxS related applications are not really interested in solving these problems. Moreover solely within the mapserver project is difficult to make the locks more 'fine grained' so as to prevent from the concurrent accesses of the common resources inside a dependent library. We can surely make some enhancements according to RFC15 but the level of the thread isolation can only really be addressed when all of the dependent libraries have also been audited. > ** Facilities for tiles ** > Given the big performance boost of using map tiles, I think it would be very > useful an utility (or API) for pregenerating tiles of a map for a given area > and level. > I am aware of the existence of TileCache but I think it would be interesting > to have this utility. > I think creating tiles / rendering based on the tiles are somewhat out of the context of the mapserver project and can be impemented by an outer project. There are a couple of projects that have already implemented this. > ** Multiple geometry types on a layer ** > Currently, a layer only admits one geometry type (point, line, polygon). > Some sources, especially CAD datasets via OGR, > contain different geometry types. Would be useful and efficient to have all > geometries shown in the same layer. > Different styling rules may be needed to display different geometry types in > the same layer. > Generally speaking this would violate the concept around the layers as grouping the features to be rendered in an unique way. And you can currently subselect the various kind of the geometries into separate layers (like using a filter based on the OGR_GEOMETRY field). In addition you can use a data source controlled customization of the styles within a same layer by using STYLEITEM AUTO when the data source contains style information. Do you have an use case where this isn't enough? Maybe the auto-style support of RFC-22 could provide a solution. Best regards, Tamas ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Thu Mar 6 02:19:32 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 6 Mar 2008 11:19:32 +0100 Subject: [mapserver-users] Linux installation Message-ID: <007501c87f73$93468ca0$6501a8c0@signo3> Hi to all, Until now I was using mapserver only under Windows environments but now I need to change to a Linux platform. My knowledge about Linux is very limited, so I will need some help: Is there any distribution recommended in order to run mapserver over it?? Is there any tutorial or manual explaining how to install mapserver 5 w/postgis over Linux?? Thanks in advance. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: 05/03/2008 18:38 -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu Mar 6 02:50:13 2008 From: adams at terrestris.de (Till Adams) Date: Thu, 06 Mar 2008 11:50:13 +0100 Subject: [mapserver-users] Linux installation In-Reply-To: <007501c87f73$93468ca0$6501a8c0@signo3> References: <007501c87f73$93468ca0$6501a8c0@signo3> Message-ID: <47CFCC65.60902@terrestris.de> Hans Castorp schrieb: > Hi to all, > > > > Until now I was using mapserver only under Windows environments but > now I need to change to a Linux platform. > > My knowledge about Linux is very limited, so I will need some help: > > > > Is there any distribution recommended in order to run mapserver over it?? > > Is there any tutorial or manual explaining how to install mapserver 5 > w/postgis over Linux?? > > > > > > Thanks in advance. > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: > 05/03/2008 18:38 > >------------------------------------------------------------------------ > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Hans, on this question you'll get as advices many as there are linux-distributions. There are some "HowTo's" explaining step by step installation of mapserver under different linux distributions on the mapserver homepage: http://mapserver.gis.umn.edu/docs/howto see "compilation" There are not all really up-to date, but as a borderline, they are good enough. If you want to hear my advice as well - Ubuntu or Debian is quite easy to install. Regards, Till -- ****************************************** digitale Karten f?r Jeden! terrestris bietet OpenLayers KnowHow! http://maps.terrestris.de/webgisfueralle ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From Tom.Kralidis at ec.gc.ca Thu Mar 6 03:32:20 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 6 Mar 2008 06:32:20 -0500 Subject: [MAPSERVER-USERS] Missing required parameter BBOX References: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCBF5B@ecburexch1.ontario.int.ec.gc.ca> Hi, BBOX is a required parameter of the WMS standard, which MapServer implements as of 5.0. See http://mapserver.gis.umn.edu/docs/faq/ogc-wms-getmap-required-parameters for more details. Given your ServiceException, it looks like you are missing the BBOX parameter in your GetMap request. ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org on behalf of Rahkonen Jukka Sent: Thu 06-Mar-08 03:36 To: Christopher Schmidt; mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Missing required parameter BBOX Hi, If it used to work before, and if you just changed projection of the mapfile to epsg:4326 withour changing the mapfile EXTENTS, the correcting extents might well make it work again. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Christopher Schmidt > L?hetetty: 5. maaliskuuta 2008 21:35 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [MAPSERVER-USERS] Missing required parameter BBOX > > On Wed, Mar 05, 2008 at 11:31:34AM -0800, cfb wrote: > > > > Hi again, > > > > I'm having problems with the projections of my WMS (working with > > MapServer > > 5.0.2 for Windows). I've changed the SRS of the header's > mapfile into > > EPSG > > 4326 (before it was EPSG 23030), and also the epsg of one > layer (which > > reference system I'd already changed to 4326). I'd left the other > > layer with EPSG 23030. > > > > When I try to GetMap with a client the WMS works but I > don't see the > > image (sid), I get this error: > > "msWMSLoadGetMapParams(): WMS server error. Missing > required parameter BBOX" > > What is the URL you are using? Does it have a bbox in it? > > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > 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 kreshna_iceheart at yahoo.com Thu Mar 6 04:23:57 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Thu, 6 Mar 2008 04:23:57 -0800 (PST) Subject: [mapserver-users] Using PHP for MapServer HTML template? Message-ID: <52404.44971.qm@web56111.mail.re3.yahoo.com> I'm using plain MapServer CGI, without PHP MapScript. Naturally I use map files and HTML templates. Recently I want to add PHP lines to my HTML templates to add more functionalities to the page (not necessarily related to MapServer functions). Naturally I have to change the extensions to .PHP. Is it possible? Can MapServer use template with .PHP extensions? Thanks, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From pal.kristensen at statkart.no Thu Mar 6 05:54:52 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 6 Mar 2008 05:54:52 -0800 (PST) Subject: [MAPSERVER-USERS] Hiding overviews In-Reply-To: References: Message-ID: <15873132.post@talk.nabble.com> Hi! I'm trying to do the exact same thing, but havn't found any solutions either. I ended up by putting all the "zoom levels" in separate layers, and group all these layers in one named group layer. There has been some discussions regarding this issue in an older dev thread: http://www.nabble.com/Excluding-certain-layer-types-from-WMS...-to14786841.html#a14813767 Regards, P?l Kristensen Eichner, Andreas - SID-NLK wrote: > > > Hmm, seems my description wasn't clear enough, so I'll try to precise... > > For a layer with raster data I created external overviews. To make use > of them I copied the LAYER portion of the map file, changed the > TILEINDEX statement to point to the index of the appropriate overview, > set MINSCALE/MAXSCALE to form a continues range and added a GROUP > statement to all of them to form a single layer again as it was before > without the overviews added. Now I can take a WMS client, enable or > disable the layer group which collects the detail layer and all of it's > overviews which kick in if you increase the scale. > > So instead of having a single layer consisting of huge tiled which have > all to be touched and scaled down for a request at large scales I now > have a group consisting of several layers where only one is active at > each scale. Doing so was a suggestion from the raster data (optimizing) > howto and they called this solution "external overviews". > > So if I have a layer "raster" (scale 10...5000000) I want to split it > into "detail" (scale 10...1000) and "overview" (scale 1000...5000000) > and put both in a _group_ "raster" for example. Now you can go and > request the layer "raster" as before and what you get depends on the > chosen scale and is either "detail" below 1000 or "overview" above 1000. > > The problem is that you can explicitly request the layer "detail", but > if you are above 1000 you will see... Absolutely nothing. Same with the > "overview" layer below 1000. This is because those layers have a name > which enables them to be requested in a WMS "GetMap" request. If they > wouldn't you could only request the named group layer "raster". So I > thought it could be done by ommitting the "wms_name" part of the > METADATA but if you do and issue a "GetCapabilities" request you will > see that MapServer outputs a warning about the missing mandatory name > attribute and inserts the layer name from the NAME attribute of the map > file. > > We have a WMS client which displays nested named layers as folders. The > result isn't user friendly... So I wondered if there's a way to hide > those external overviews from the user since the only thing he can > decide is either to display the hole group (which ever layer may be > affected) or none of those layers at all. > > Hope I could make the situation a little bit clearer. I believe it's > only a little thing I miss but there are too much trees in the wood... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Hiding-overviews-tp15845320p15873132.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rdmailings at duif.net Thu Mar 6 06:03:09 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Thu, 06 Mar 2008 15:03:09 +0100 Subject: [mapserver-users] Linux installation In-Reply-To: <007501c87f73$93468ca0$6501a8c0@signo3> References: <007501c87f73$93468ca0$6501a8c0@signo3> Message-ID: <47CFF99D.9070605@duif.net> Hi Hans, it's all about choice isn't it ;-) But I would prefer Debian (lenny/testing) or latest Ubuntu. They have binaries available (5.0, though not agg yet) I just wrote a quick and dirty cookbook howto for debian: http://www.duif.net/postgis I hope it will help you to set up mapserver and postgis, if it's to concise give me a hint. if people are interested, I can try this for ubuntu also.... Richard Duivenvoorde and you're in (hopefully). Regards, Richard Duivenvoorde Hans Castorp wrote: > Hi to all, > > > > Until now I was using mapserver only under Windows environments but now > I need to change to a Linux platform. > > My knowledge about Linux is very limited, so I will need some help: > > > > Is there any distribution recommended in order to run mapserver over it?? > > Is there any tutorial or manual explaining how to install mapserver 5 > w/postgis over Linux?? > > > > > > Thanks in advance. > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: > 05/03/2008 18:38 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Thu Mar 6 06:05:28 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 6 Mar 2008 15:05:28 +0100 Subject: [mapserver-users] enhancement ideas In-Reply-To: <38708.67604.qm@web26911.mail.ukl.yahoo.com> References: <38708.67604.qm@web26911.mail.ukl.yahoo.com> Message-ID: 2008/3/6, Joan Verdaguer : > I already have readen MS-RFC-22a and think it is a very flexible and > powerful enhancement to Mapserver since adds transforming abilities. It can > be seen analogous to applying XSLT to XML: is the next step towards > flexibility. IMHO, it is really a pity that it is not getting enough > support. > That being said, I still see the need of a global built-in expression > mechanism. In the case of writing plugins to transform features, still > exists the need of evaluating generic expressions in these plugins: it would > be a pain to write a specific transformers for every specific style or > attribute transformation. > Moreover, I still see the need to get values from the map environment. Think > of displaying labels at 5% the size of map height: it could be easily get > whith "SIZE mapHeight*0.05", where mapHeight is a built-in variable. > I agree with the usability, anyway I would prefer not to introduce a new scripting language but try to rely on mapscript in the expressions for example. And I'm a bit scared about the performance impact on evaluating an expression by default for each feature retrieval. Isn't this something that should be pluggable instead? > > I think creating tiles / rendering based on the tiles are somewhat out > > of the context of the mapserver project and can be impemented by an > > outer project. There are a couple of projects that have already > > implemented this. > > I didn't know there already were projects with this functionality. Can you > please tell me which ones are? > This is somewhat the tile.php does in ka-map by using php mapscript for example. Best regards, Tamas From msmith at sanangelompo.org Thu Mar 6 06:48:54 2008 From: msmith at sanangelompo.org (Michael Smith) Date: Thu, 6 Mar 2008 08:48:54 -0600 Subject: [mapserver-users] unsubscribe In-Reply-To: <15865401.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> <15865401.post@talk.nabble.com> Message-ID: <006201c87f99$336d8b00$9a48a100$@org> Please remove me from the email list. Thanks. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of rich.fromm Sent: Wednesday, March 05, 2008 8:47 PM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] msProcessProjection(): Projection library error. rich.fromm wrote: > > > rich.fromm wrote: >> >> I am in the process of running another test, this using a build of the >> tip of branch-5-0, along with local patches both for bug 2497 and for bug >> 2533 (in other words, this patch). >> > > It also ran fine (for a 6 hour test under heavy load). For more details, > see: > http://trac.osgeo.org/mapserver/ticket/2533#comment:6 > I continued running stress tests on the branch-5-0 build. While I have not yet seen the projection error again, after 06:24:13 elapsed time, tomcat again crashed in mapObj.new(). Note that this is very similar to the stack trace that I had seen previously (see http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error. -to15815968.html), but not precisely the same. The differences might be explained by this build being from branch-5-0, and the previous runs being from the 5.0.0 release. Regardless, I once again return to my notion that these are two separate issues: _IO_fread (/lib/libc.so.6) yy_get_next_buffer (maplexer.c:3526) msyylex (maplexer.c:3357) loadClass (mapfile.c:2102) loadLayer (mapfile.c:2577) loadMapInternal (mapfile.c:4348) msLoadMap (mapfile.c:4573) new_mapObj (mapscript/java/mapscript_wrap.c:1612) Java_edu_umn_gis_mapscript_mapscriptJNI_new_1mapObj (mapscript/java/mapscript_wrap.c:19783) -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error. -tp15815968p15865401.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 hanscastorp76 at yahoo.es Thu Mar 6 06:53:15 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 6 Mar 2008 15:53:15 +0100 Subject: [mapserver-users] Linux installation In-Reply-To: <47CFF99D.9070605@duif.net> References: <007501c87f73$93468ca0$6501a8c0@signo3> <47CFF99D.9070605@duif.net> Message-ID: <008d01c87f99$d0612390$6501a8c0@signo3> Very thanks. I'll try it. -----Mensaje original----- De: Richard Duivenvoorde [mailto:rdmailings at duif.net] Enviado el: jueves, 06 de marzo de 2008 15:03 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Linux installation Hi Hans, it's all about choice isn't it ;-) But I would prefer Debian (lenny/testing) or latest Ubuntu. They have binaries available (5.0, though not agg yet) I just wrote a quick and dirty cookbook howto for debian: http://www.duif.net/postgis I hope it will help you to set up mapserver and postgis, if it's to concise give me a hint. if people are interested, I can try this for ubuntu also.... Richard Duivenvoorde and you're in (hopefully). Regards, Richard Duivenvoorde Hans Castorp wrote: > Hi to all, > > > > Until now I was using mapserver only under Windows environments but now > I need to change to a Linux platform. > > My knowledge about Linux is very limited, so I will need some help: > > > > Is there any distribution recommended in order to run mapserver over it?? > > Is there any tutorial or manual explaining how to install mapserver 5 > w/postgis over Linux?? > > > > > > Thanks in advance. > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: > 05/03/2008 18:38 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: 05/03/2008 18:38 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: 05/03/2008 18:38 From andale82 at gmail.com Thu Mar 6 09:20:48 2008 From: andale82 at gmail.com (Andale) Date: Thu, 6 Mar 2008 18:20:48 +0100 Subject: [mapserver-users] Problem with configuration of mapserver Message-ID: <2d62644e0803060920i5837ccf5g5571a850e805ab04@mail.gmail.com> hello at everyone, I'm trying to install mapserver (version 5.0.2 ) on AIX Server. the configuration script, write me that it doesn't find libclntsh.so. In the server exist libclntsh.a What must I do? Someone could help me? Thanks Andrea -- "La teoria ? quando si sa tutto e niente funziona. La pratica ? quando tutto funziona e nessuno sa il perch?. In questo caso abbiamo messo insieme la teoria e la pratica: non c'? niente che funziona...e nessuno sa il perch?!" Albert Einstein (1879-1955) From naci0002 at umn.edu Thu Mar 6 09:41:29 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Thu, 06 Mar 2008 11:41:29 -0600 Subject: [mapserver-users] unsubscribe In-Reply-To: <006201c87f99$336d8b00$9a48a100$@org> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> <15865401.post@talk.nabble.com> <006201c87f99$336d8b00$9a48a100$@org> Message-ID: <47D02CC9.5090802@umn.edu> Michael, Please go to http://lists.osgeo.org/mailman/listinfo/mapserver-users to unsubscribe. On the very bottom of the page is the unsubscribe option--enter your e-mail address, click on the button and--voila!--you're off the list. -Perry Michael Smith wrote: > Please remove me from the email list. Thanks. From iansgis at gmail.com Thu Mar 6 10:15:52 2008 From: iansgis at gmail.com (Ian) Date: Thu, 6 Mar 2008 10:15:52 -0800 Subject: [mapserver-users] Skipping layers that fail to load In-Reply-To: <47CF03F7.1060800@swoodbridge.com> References: <49B9846C39F25A4FA901064970861610D80A76@mhk-ex1.ad.dpra.com> <47CF03F7.1060800@swoodbridge.com> Message-ID: <5b61c6c50803061015o552772fak8d73b5d2a9a90fb0@mail.gmail.com> Alright I submitted ticket #2541, cross those fingers! Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Thu Mar 6 10:36:57 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 6 Mar 2008 10:36:57 -0800 (PST) Subject: [MAPSERVER-USERS] mailman suggestion (was Re: unsubscribe) In-Reply-To: <47D02CC9.5090802@umn.edu> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> <15865401.post@talk.nabble.com> <006201c87f99$336d8b00$9a48a100$@org> <47D02CC9.5090802@umn.edu> Message-ID: <15880893.post@talk.nabble.com> Pericles S. Nacionales-2 wrote: > > Please go to http://lists.osgeo.org/mailman/listinfo/mapserver-users to > unsubscribe. On the very bottom of the page is the unsubscribe > option--enter your e-mail address, click on the button > and--voila!--you're off the list. > ... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > I wonder if it might be worthwhile, in the footer above, right above the URL, to include a single line of text like "To unsubscribe, and other options, go to"; or "To unsubscribe, change delivery options, or view the archives, go to"; or something like that. It might cut down on misdirected unsubscribe requests. Looking at the administrative interface within mailman for lists we have here at work (using mailman 2.1.5), this is possible to change with the "msg_footer" setting in "Non-digest options" and the "digest_footer" setting in "Digest options". My guess is that what we have right now is simply the mailman default. - Rich -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p15880893.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Thu Mar 6 10:50:41 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 6 Mar 2008 10:50:41 -0800 (PST) Subject: [MAPSERVER-USERS] Linux installation In-Reply-To: <47CFF99D.9070605@duif.net> References: <007501c87f73$93468ca0$6501a8c0@signo3> <47CFF99D.9070605@duif.net> Message-ID: <15881140.post@talk.nabble.com> Richard Duivenvoorde wrote: > > I just wrote a quick and dirty cookbook howto for debian: > http://www.duif.net/postgis > I also run mapserver on debian (though etch and sarge, not lenny; and build from source, not install mapserver dpkgs). Glancing at your notes, I have one minor comment: On your apt-get install line, why specifically "postgresql-8.2-postgis" ? Imho, it's better in general not to specify the version unless you have a specific need for a specific version, and instead just let the packaging system pick what is the most appropriate version. So unless there's a specific need, I would ammend that to say simply "postgresql-postgis". That way your instructions are a bit generic, and if someone is trying them in the future on some other distribution where that maps to a different version, they're not constrained to a specific version (there might be something later, or maybe 8.2 isn't even available for their distribution). Unless, of course, there's some reason that you really need that particular version. (Although on etch and sarge I'm using 8.1 implicitly and all is fine.) Also, if someone is brand new to linux, I might first suggest a released, stable distribution (sarge), and not one that's only available in testing. - Rich -- View this message in context: http://www.nabble.com/Linux-installation-tp15870306p15881140.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rdmailings at duif.net Thu Mar 6 11:33:24 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Thu, 06 Mar 2008 20:33:24 +0100 Subject: [MAPSERVER-USERS] Linux installation In-Reply-To: <15881140.post@talk.nabble.com> References: <007501c87f73$93468ca0$6501a8c0@signo3> <47CFF99D.9070605@duif.net> <15881140.post@talk.nabble.com> Message-ID: <47D04704.9050806@duif.net> Hi rich, thanks for your comments. for a production server I could have suggested Debian stable, but I really haven't yet had any problems with testing... But to be on the safe side (eg for a production server), you are right; take Debian stable :-) About the postgis package, currently testing has postgresql-8.3, but not yet a postgresql-8.3-postgis package. If someone can confirm it's just usable with 8.3 that would be fine. Using apt-get postgresql-postgis appears to return me the 8.1 version, or a 'nothing found warning' on different machines. To be sure that this cookbook was working I did the 8.2 version (thereby taking 8.2 and some debian warning message into account). I was trying it during the writing on a freshly installed server, to check everything. I will try to update instructions accordingly in the future. Regards, Richard Duivenvoorde rich.fromm wrote: > > Richard Duivenvoorde wrote: >> I just wrote a quick and dirty cookbook howto for debian: >> http://www.duif.net/postgis >> > > I also run mapserver on debian (though etch and sarge, not lenny; and build > from source, not install mapserver dpkgs). Glancing at your notes, I have > one minor comment: > > On your apt-get install line, why specifically "postgresql-8.2-postgis" ? > Imho, it's better in general not to specify the version unless you have a > specific need for a specific version, and instead just let the packaging > system pick what is the most appropriate version. So unless there's a > specific need, I would ammend that to say simply "postgresql-postgis". That > way your instructions are a bit generic, and if someone is trying them in > the future on some other distribution where that maps to a different > version, they're not constrained to a specific version (there might be > something later, or maybe 8.2 isn't even available for their distribution). > > Unless, of course, there's some reason that you really need that particular > version. (Although on etch and sarge I'm using 8.1 implicitly and all is > fine.) > > Also, if someone is brand new to linux, I might first suggest a released, > stable distribution (sarge), and not one that's only available in testing. > > - Rich From knex0001 at umn.edu Thu Mar 6 14:58:02 2008 From: knex0001 at umn.edu (Len Kne) Date: Thu, 6 Mar 2008 16:58:02 -0600 Subject: [mapserver-users] Mapfile EMPTY Statement Message-ID: <001001c87fdd$88580930$d0415ea0@Geog200357191> Greetings I am trying to use the EMPTY command in WEB section of a mapfile with no luck. Running the GetFeatureInfo below, the mapfile HEADER and FOOTER are read and added to the page, but in this case, it should go to the EMPTY url as there are no features. If this is executed with INFO_FORMAT=text/plain, it shows no results. Does the EMPTY statement not work with GetFeatureInfo? Thanks Len http://maps.umn.edu/cgi-bin/mapserv?map=/var/www/data/wms/digitize_miim.map &VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&SRS=EPSG:26915&BBOX=461091 .8064952637,4975030,482458.1935047363,4991990&WIDTH=931&HEIGHT=739&LAYERS=My Points,MyLines,MyPolygon&STYLES=,,&FORMAT=image/png&INFO_FORMAT=text/html&EX CEPTIONS=application/vnd.ogc.se_xml&FEATURE_COUNT=100&QUERY_LAYERS=MyPoints, MyLines,MyPolygon&X=493&Y=103&mb_user_name=root&digitize_schema=ecoed -------------- next part -------------- An HTML attachment was scrubbed... URL: From thy at 42.dk Thu Mar 6 15:13:54 2008 From: thy at 42.dk (Kristian Thy) Date: Fri, 7 Mar 2008 00:13:54 +0100 Subject: [mapserver-users] Linux installation In-Reply-To: <007501c87f73$93468ca0$6501a8c0@signo3> References: <007501c87f73$93468ca0$6501a8c0@signo3> Message-ID: <20080306231354.GC4950@42.dk> On Thu, Mar 06, Hans Castorp wrote: > Is there any tutorial or manual explaining how to install mapserver 5 > w/postgis over Linux?? I did a cookbook recipe for Ubuntu a few months ago: http://quovadis.dk/index.cgi/i_can_has_gis%3A2007-10-20%3Ageo%2Clinux%2Cserver%2Cubuntu \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From vishu_73ns at yahoo.com Thu Mar 6 19:52:04 2008 From: vishu_73ns at yahoo.com (vishal nagpal) Date: Thu, 6 Mar 2008 19:52:04 -0800 (PST) Subject: [mapserver-users] No updates Message-ID: <481334.82254.qm@web52405.mail.re2.yahoo.com> Hello everybody, The webpage of Mapserver user list is not showing any mail of the month of march 08. Is there a problem? Vishal ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From luca.casagrande at gmail.com Fri Mar 7 00:40:29 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Fri, 7 Mar 2008 09:40:29 +0100 Subject: [mapserver-users] Postgis schema and query by point Message-ID: <8d09169d0803070040t1ae4b462x285b09c829824dbd@mail.gmail.com> Hello everybody, I am experiencing some troubles running a query by point using mapscript: the problem is that if the table is in "public" schema, the query goes fine, instead, using another schema, got an error. The only change i made in the mapfile is to add schema in the DATA line. Looking at the table, I noticed that there's not a gid or oid column, but then I don't understand why it works in public and not in other ones. Thank you very much Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Fri Mar 7 01:07:48 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Fri, 7 Mar 2008 10:07:48 +0100 Subject: AW: [MAPSERVER-USERS] Hiding overviews References: <15873132.post@talk.nabble.com> Message-ID: Ok guys. I examined the situation and came to the conclusion that it is a bug in MapServer. In the source of mapserver v5.0.2, file mapwms.c, line 1071: > msOWSPrintEncodeParam(stdout, "LAYER.NAME", lp->name, OWS_WARN, > " %s\n", NULL); should really be > msOWSPrintEncodeMetadata(stdout, &(lp->metadata), "MO", "name", OWS_NOERR, > " %s\n", NULL); since the code conflicts with the comment in the code on line 1747 in the same file which states: "Layer Name is optional but title is mandatory." Which exactly agrees with the specs which states at page 25 of v1.3.0: "7.2.4.6.2 Title A is mandatory for all layers; ..." and "7.2.4.6.3 Name If, and only if, a layer has a <Name>, then it is a map layer that can be requested by using that Name in the LAYERS parameter of a GetMap request. A Layer that contains a <Name> element is referred to as a "named layer" in this International Standard. If the layer has a Title but no Name, then that layer is only a category title for all the layers nested within. A server that advertises a Layer containing a Name element shall be able to accept that Name as the value of LAYERS argument in a GetMap request and return the corresponding map. A client shall not attempt to request a layer that has a Title but no Name." IMHO this means you can ommit the <Name> but have to provide the <Title>. And if the layer has no name it can simply not be requested in a GetMap-Request. If I change the code like above I have to provide a "wms_name" in the METADATA part of the MAP file to make the layer queryable. If I ommit "wms_name" then the layer get's no <Name> and can therefore not be requested by the client. IMHO it's then up to the server whether or not to render that layer which is exactly what I want. For overviews I want multiple layers where only one is active for a given scale but which one is up to the server. Therefore a client should not be able to explicitly request one of them. Instead I group those layers in a named layer by a GROUP clause. So please check this out. May be we should file a bug report on that. But I think someone else should confirm this... Best regards, Andreas Eichner From Steve.Lime at dnr.state.mn.us Fri Mar 7 06:00:10 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 07 Mar 2008 08:00:10 -0600 Subject: [mapserver-users] Mapfile EMPTY Statement Message-ID: <47D0F60B0200008F000154BD@co5.dnr.state.mn.us> Sorry Len but EMPTY and ERROR are exception handling pieces of the CGI and not the WxS services. They have their own exception handling that follows the various OGC specs. Steve >>> "Len Kne" <knex0001 at umn.edu> 03/06/08 4:58 PM >>> Greetings I am trying to use the EMPTY command in WEB section of a mapfile with no luck. Running the GetFeatureInfo below, the mapfile HEADER and FOOTER are read and added to the page, but in this case, it should go to the EMPTY url as there are no features. If this is executed with INFO_FORMAT=text/plain, it shows no results. Does the EMPTY statement not work with GetFeatureInfo? Thanks Len http://maps.umn.edu/cgi-bin/mapserv?map=/var/www/data/wms/digitize_miim.map <http://maps.umn.edu/cgi-bin/mapserv?map=/var/www/data/wms/digitize_miim.map &VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&SRS=EPSG:26915&BBOX=461091 .8064952637,4975030,482458.1935047363,4991990&WIDTH=931&HEIGHT=739&LAYERS=My Points,MyLines,MyPolygon&STYLES=,,&FORMAT=image/png&INFO_FORMAT=text/html&EX CEPTIONS=application/vnd.ogc.se_xml&FEATURE_COUNT=100&QUERY_LAYERS=MyPoints, MyLines,MyPolygon&X=493&Y=103&mb_user_name=root&digitize_schema=ecoed> &VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&SRS=EPSG:26915&BBOX=461091 .8064952637,4975030,482458.1935047363,4991990&WIDTH=931&HEIGHT=739&LAYERS=My Points,MyLines,MyPolygon&STYLES=,,&FORMAT=image/png&INFO_FORMAT=text/html&EX CEPTIONS=application/vnd.ogc.se_xml&FEATURE_COUNT=100&QUERY_LAYERS=MyPoints, MyLines,MyPolygon&X=493&Y=103&mb_user_name=root&digitize_schema=ecoed From dmorissette at mapgears.com Fri Mar 7 06:01:54 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 07 Mar 2008 09:01:54 -0500 Subject: [mapserver-users] Mapfile EMPTY Statement In-Reply-To: <001001c87fdd$88580930$d0415ea0@Geog200357191> References: <001001c87fdd$88580930$d0415ea0@Geog200357191> Message-ID: <47D14AD2.4010800@mapgears.com> Len Kne wrote: > Greetings > > I am trying to use the EMPTY command in WEB section of a mapfile with no > luck. Running the GetFeatureInfo below, the mapfile HEADER and FOOTER > are read and added to the page, but in this case, it should go to the > EMPTY url as there are no features. If this is executed with > INFO_FORMAT=text/plain, it shows no results. Does the EMPTY statement > not work with GetFeatureInfo? > Len, No, the EMPTY statement does not work with GetFeatureInfo. There was already a ticket about this: http://trac.osgeo.org/mapserver/ticket/546 I have implemented a fix for this and committed to SVN trunk a few minutes ago. You'll find all the details in the ticket. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Mar 7 06:15:00 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 07 Mar 2008 09:15:00 -0500 Subject: [mapserver-users] No updates In-Reply-To: <481334.82254.qm@web52405.mail.re2.yahoo.com> References: <481334.82254.qm@web52405.mail.re2.yahoo.com> Message-ID: <47D14DE4.7070106@mapgears.com> vishal nagpal wrote: > > Hello everybody, > The webpage of Mapserver user list is not showing any mail of the month of march 08. Is there a problem? > Vishal > Maybe you're looking at the old archives? The list has moved to OSGeo servers in February, you'll find the link to the new archives, etc at: http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/ If there are still links to the old list or the old archives on the MapServer website then please let us know where they are so that we can update them. Daniel -- Daniel Morissette http://www.mapgears.com/ From elvehjem at runestone.net Fri Mar 7 12:50:27 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Fri, 7 Mar 2008 14:50:27 -0600 Subject: [mapserver-users] Which OS for Mapserver? Message-ID: <004f01c88094$e5e849e0$5000a8c0@kensamd> After having established a Mapserver with MS4W on my own computer, which works exceedingly well thanks to help from the list, the time has come to start housing the MrSid files somewhere else. We have located several web hosting services who want to help us. One in particular asked "Do you want it on a Windows or Linux box???" Now, I realize that flame wars have been started over such innocent questions, and I regret having to ask it in this way, but having only a limited contact with Linux *myself* this is really the only efficient way to find out. I'd especially appreciate hearing from someone who has tried it both ways, and can relate their experiences in a short, comparative narrative. Sincerely, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080307/8710c2dd/attachment.htm> From gregor at hostgis.com Fri Mar 7 13:18:25 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Fri, 07 Mar 2008 14:18:25 -0700 Subject: [mapserver-users] Which OS for Mapserver? In-Reply-To: <004f01c88094$e5e849e0$5000a8c0@kensamd> References: <004f01c88094$e5e849e0$5000a8c0@kensamd> Message-ID: <47D1B121.7040900@hostgis.com> A major consideration is that MrSID exists mainly for Windows. For 64-bit Linux, the only option for MrSID at this point is their precompiled utilities, extracting the data out into rasters in some other format more GDAL-friendly. For 32-bit Linux, you can contrive to build GDAL with MrSID support. Personally, I have found that the runtime performance of wavelet compression (ECW, MrSID, JPEG2000?) to be so poor as to not be worth the trouble, and prefer to decompress into fast and space-hogging TIFFs. And if you have a spare PC, have VMWare, or are willing to partition your disk, you can always try it out yourself, run your own tests. I always recommend our own free/oss product HostGIS Linux, especially for someone who wants to avoid a lot of the learning curve of a new Linux and skip to the maps. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From ed at topozone.com Fri Mar 7 13:21:11 2008 From: ed at topozone.com (Ed McNierney) Date: Fri, 7 Mar 2008 16:21:11 -0500 Subject: [mapserver-users] Which OS for Mapserver? In-Reply-To: <004f01c88094$e5e849e0$5000a8c0@kensamd> References: <004f01c88094$e5e849e0$5000a8c0@kensamd> Message-ID: <4BF377919225F449BB097CB76FFE9BC801988986@ptolemy.topozone.com> Ken - If you really have a free choice, use the system you know best. For most applications, on the same hardware, it's my opinion (having run MapServer on both Windows and Linux for a long time) that your ability to configure, manage, and maintain your server is far more important. You do need to be sure that all supporting libraries (such as MrSID support) are available on your OS of choice, too. If you can't get MapServer to work properly, it makes little difference how well it might have run had you gotten it working! If you have substantially more experience with one OS or the other then I would highly recommend you stick with that OS unless you find other significant other reasons to switch. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com <mailto:ed at topozone.com> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ken S. Elvehjem Sent: Friday, March 07, 2008 3:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Which OS for Mapserver? After having established a Mapserver with MS4W on my own computer, which works exceedingly well thanks to help from the list, the time has come to start housing the MrSid files somewhere else. We have located several web hosting services who want to help us. One in particular asked "Do you want it on a Windows or Linux box???" Now, I realize that flame wars have been started over such innocent questions, and I regret having to ask it in this way, but having only a limited contact with Linux *myself* this is really the only efficient way to find out. I'd especially appreciate hearing from someone who has tried it both ways, and can relate their experiences in a short, comparative narrative. Sincerely, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080307/ff6231e9/attachment.htm> From armin.burger at gmx.net Fri Mar 7 14:17:59 2008 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 07 Mar 2008 23:17:59 +0100 Subject: [mapserver-users] removeLayer() in PHP MapScript Message-ID: <47D1BF17.1060807@gmx.net> Hello I'd have a question for the PHP Mapscript developers: are there any plans to implement the removeLayer() method (that exists for SWIG Mapscript versions) also in PHP Mapscript? Setting the layer status to MS_DELETE is in most cases not an alternative since it seems to have effects only for writing the map object to a map file. Best regards Armin From bruno.ripa at abstract.it Sun Mar 9 04:51:53 2008 From: bruno.ripa at abstract.it (Bruno Ripa) Date: Sun, 09 Mar 2008 12:51:53 +0100 Subject: [mapserver-users] From shapefiles to PostGIS, MAPServer Message-ID: <47D3CF59.7040500@abstract.it> Hallo guys, i have worked on a Plone project handling a gis (using PrimaGIS product); it used shapefiles to render the gis. Now i have translated all shapefiles into postgis and i can check it is correct using QGis (under MacOSX). The question is: where can i get some 'real' examples of how to create Mapserver map file to let it read postgis data ? I have made some 'blind' experiments, but it's not a good way to do things like that :D In particular it would be nice to get map file sections documentation. P.s.: the project runs on Debian. Thanks in advance -- Bruno Ripa - Software Architect [bruno.ripa at abstract.it] Abstract Open Solutions [http://www.abstract.it] Mobile +39 392-9784024 - Tel./Fax +39 081-0608213 PGP Public Key: http://www.abstract.it/gpg/bruno.ripa ** Per favore non mandatemi allegati in Word o PowerPoint! | http://www.gnu.org/philosophy/no-word-attachments.it.html ** ------------------------------------------------------------------------------------------------------------------------- Ai sensi del d.lgs. 196 del 30 giugno 2003, recante disposizioni per la tutela delle persone e di altri soggetti rispetto al trattamento dei dati personali, si precisa che questa email ? inviata unicamente ai destinatari sopra esposti, con espressa diffida di leggerla, copiarla, diffonderla ed usarla senza autorizzazione. Se avete ricevuto questa email per errore, vi preghiamo di distruggerla immediatamente e contattarci tramite uno dei recapiti sopra indicati. -------------------------------------------------------------------------------------------------------------------------- From rdmailings at duif.net Sun Mar 9 08:14:09 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Sun, 09 Mar 2008 16:14:09 +0100 Subject: [mapserver-users] From shapefiles to PostGIS, MAPServer In-Reply-To: <47D3CF59.7040500@abstract.it> References: <47D3CF59.7040500@abstract.it> Message-ID: <47D3FEC1.5040100@duif.net> Hi Bruno, I googled this pages for you :-) : http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis here is another one: see the PostGIS DB section: http://umn.mapserver.ch/index_en.php Note: for views (tables?) you should have one unique column, and use it in your query using the 'unique'-keyword as shown below (which comes from a postgis/mapserver/debian cookbook I wrote a couple of days back http://www.duif.net/postgis ): layer name 'world' metadata "wms_title" "postgis world" "wms_srs" "epsg:4326" end status default template "dummy" connectiontype postgis connection "host=localhost dbname=mygisdb password=**** user=richard" data 'the_geom from mygisdb using unique gid using srid=4326' type polygon class color 255 0 0 outlinecolor 192 192 192 end end Regards, Richard Duivenvoorde Bruno Ripa wrote: > Hallo guys, > > i have worked on a Plone project handling a gis (using PrimaGIS > product); it used shapefiles to render the gis. > Now i have translated all shapefiles into postgis and i can check it is > correct using QGis (under MacOSX). > > The question is: where can i get some 'real' examples of how to create > Mapserver map file to let it read postgis data ? I have made some > 'blind' experiments, but it's not a good way to do things like that :D > > In particular it would be nice to get map file sections documentation. > > P.s.: the project runs on Debian. > > Thanks in advance > From SOUND.DESIGN at NTLWORLD.COM Sun Mar 9 11:23:53 2008 From: SOUND.DESIGN at NTLWORLD.COM (Marwood) Date: Sun, 9 Mar 2008 11:23:53 -0700 (PDT) Subject: [MAPSERVER-USERS] Need a little help interpreting an error. Message-ID: <15944477.post@talk.nabble.com> Hi, I'm currently going through the 5th chapter of Beginning Mapserver, by Kropla, and I'm trying to get the demo fourth.html working on my installation. The page comes up fine, but without a map image, or reference image, and if I click on the map (to force an error message) I get the following: getDouble(): Symbol definition error. Parsing error near ([):(line 194) I'm pretty sure it's referring to my mapfile, but for one thing, that's the very end - ie: END # end of map file The previous line is another END statement for the layer. I can't see any obvious error, and the "[" character doesn't even occur in the map file, so how the parsing error can be near one mystifies me a bit. It could be a mapserver (Linux) environment problem, as I've found I can't invoke shpinfo, gdalinfo and the like from command line. Can anyone give me any pointers on how I can narrow it down a little? (Mapfile below - mostly unmodified, only paths changed, and one font.) Finally, does anyone have any pointers for any good discussion forums for mapserver - I find mailing lists a bit clunky :/ Marwood ##################################### # # MapServer Fourth application # ##################################### # Map object # NAME "Fourth" # used as base image name UNITS dd # units are decimal degrees EXTENT -180.0 -85.0 180.0 85.0 # map extent SIZE 640 320 # map image size in pixels IMAGECOLOR 200 225 255 # background color IMAGETYPE gif # image type jpeg/gif/png SHAPEPATH "/home/g/i/gisel/public_html/files/maps/data/" # path to data directory #FONTSET "/var/www/htdocs/fontset.txt" # pointers to fonts FONTSET "/home/g/i/gisel/public_html/files/maps/fonts/fonts.list" ##################################### # Web object # WEB # A header/footer defined in a web object is displayed # before/after any individual query response is made. # It is displayed only once. # HEADER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_web_header.html" FOOTER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_web_footer.html" EMPTY "/files/maps/htdocs/fourth_empty.html" # URL TEMPLATE "/home/g/i/gisel/public_html/files/maps/htdocs/fourth.html" IMAGEPATH "/home/g/i/gisel/public_html/files/maps/htdocs/" IMAGEURL "/files/maps/htdocs/tmp/" # URL # HEADER "/files/maps/htdocs/fourth_web_header.html" # FOOTER "/files/maps/htdocs/fourth_web_footer.html" # EMPTY "/files/maps/htdocs/fourth_empty.html" # URL # TEMPLATE "/files/maps/htdocs/fourth.html" # IMAGEPATH "/files/maps/htdocs/" # IMAGEURL "/files/maps/htdocs/tmp/" # URL END ##################################### # Reference map # REFERENCE IMAGE "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_worldref.gif" SIZE 320 160 EXTENT -180.0 -85.0 180.0 85.0 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END ##################################### # Querymap object # QUERYMAP STATUS on # draw query map STYLE hilite # highlight selected feature COLOR 255 255 0 # in yellow SIZE 320 160 END #################################### # Country layer # LAYER NAME "Countries" STATUS on TYPE polygon DATA "countries" # A header or footer defined at the layer level is displayed # if that layer is a query layer. It is displayed only once. # HEADER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_countries_header.html" FOOTER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_countries_footer.html" TOLERANCE 1 # must be within 1 tolerance unit TOLERANCEUNITS miles # units for tolerance values is miles CLASS # A template defined at the class level is used to # display the results for each reponse to a query. If a # query results in N hits, then the template will be used # N times. To be queriable a layer must specify a CLASS # level template. # TEMPLATE "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_countries_query.html" STYLE COLOR 199 199 199 END END # end class END # end layer #################################### # Cities layer # LAYER NAME "Cities" STATUS on TYPE point DATA "cities" LABELITEM "CITY" # labels use value in column "CITY" LABELCACHE on # A header or footer defined at the layer level is displayed # if that layer is a query layer. It is displayed only once. # HEADER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_cities_header.html" FOOTER "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_cities_footer.html" TOLERANCE 1 # must be within 1 tolerance unit TOLERANCEUNITS miles # units for tolerance values is miles CLASS # A template defined at the class level is used to display # the results for each reponse to a query. If a result set # contains N, then the template will be used N times. # TEMPLATE "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_cities_query.html" STYLE COLOR 0 0 0 # symbol color is black END LABEL TYPE truetype # use truetype font #FONT "arialbd" # use arial bold FONT "arial-bold" # use arial bold SIZE 8 # use 8 point size COLOR 255 0 0 # color text red BACKGROUNDCOLOR 255 255 255 # render text on white bg MINDISTANCE 50 # labels > 50 pixels apart POSITION lc # center labels below feature ANTIALIAS true # antialias the text END # end label END # end class # To use information stored in a DBF file external to a shape # file requires a JOIN. You must identify the external file # with the keyword TABLE. The NAME is the reference to use in # the template file. To link the shape to the external DBF, # FROM and TO specify the fields that must match. JOIN TABLE "/home/g/i/gisel/public_html/files/maps/htdocs/fourth_join.dbf" NAME "test-join" FROM "CITY" TO "CITY" END END # end layer #################################### # Line layer for Country boundaries # LAYER NAME "Boundaries" STATUS default TYPE line DATA "countries" CLASS STYLE COLOR 0 0 0 END END # end class END # end layer #################################### # Annotation layer for Countries LAYER STATUS DEFAULT # this layer is always rendered TYPE annotation DATA "countries" LABELITEM "STATE" # labels use value in column "STATE" LABELCACHE on CLASS # class renders line & label STYLE COLOR 0 0 0 # line color is black END LABEL TYPE truetype # use truetype font #FONT "arialbi" # use arial bold FONT "arial-bold" # use arial bold - as defined in fonts.list SIZE 8 # use 8 point szie COLOR 0 0 0 # color text black BACKGROUNDCOLOR 255 255 255 # render text on white bg MINDISTANCE 50 # labels > 50 pixels apart POSITION cc # labels in center of feature ANTIALIAS true # antialias the text END # end label END # end class END # end layer END # end of map file -- View this message in context: http://www.nabble.com/Need-a-little-help-interpreting-an-error.-tp15944477p15944477.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rainer.spittel at terralink.co.nz Sun Mar 9 20:19:53 2008 From: rainer.spittel at terralink.co.nz (Rainer Spittel) Date: Mon, 10 Mar 2008 16:19:53 +1300 Subject: [mapserver-users] Centered multi-line labels Message-ID: <12B8F225666F99489CEFA8B3F261540CFAAE78@geneva.local.terralink> Hello, I wonder if it is possible to align a multi-line label centered at a location. At the moment, when using WRAP to define the end-of-line condition and the text appears left-aligned. Cheers Rainer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/1d44412d/attachment.htm> From justcallmejay at gmail.com Sun Mar 9 23:01:49 2008 From: justcallmejay at gmail.com (Jay Why) Date: Mon, 10 Mar 2008 01:01:49 -0500 Subject: [mapserver-users] Follow does not work Message-ID: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> Have a look at this layer please. Someone please tell me what I am doing wrong. The road names all line up horizontally, then do not follow as directive is given. ################ Minor Roads LAYER # kingston roads DEBUG OFF NAME 'Kingston Roads' DATA 'roads/fixed_KGN_RD.shp' TRANSFORM true LABELITEM 'LABEL' STATUS on METADATA "queryable" "true" "fields" "LABEL:label" "searchfield" "LABEL" "OPACITY" "50" END # METADATA TYPE line CLASS NAME 'Unlabelled Kingston Roads' MAXSCALE 75000 MINSCALE 30000 COLOR 236 168 73 SIZE 1 TEMPLATE "template.html" END # CLASS CLASS NAME 'Labelled Kingston Roads' MAXSCALE 30000 COLOR 236 168 73 SIZE 1 LABEL ANGLE follow ANTIALIAS true BUFFER 20 COLOR 0 0 0 FONT 'Arial-Normal' SIZE medium PARTIALS false END # LABEL TEMPLATE "template.html" END # CLASS CLASS NAME 'Query Kgn Roads' TEMPLATE 'template.html' END # CLASS END # LAYER -- Jay Why -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/7ec4fc86/attachment.htm> From rodrigomartin at lopezgregorio.com.ar Mon Mar 10 03:15:14 2008 From: rodrigomartin at lopezgregorio.com.ar (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 10 Mar 2008 10:15:14 +0000 Subject: [mapserver-users] Follow does not work In-Reply-To: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> References: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> Message-ID: <10cf58b30803100315j1d497e84m2d0e7a478658a0a@mail.gmail.com> Hi Jay. Try this: *ANGLE AUTO* This seems to work for me. Rodrigo. On Mon, Mar 10, 2008 at 6:01 AM, Jay Why <justcallmejay at gmail.com> wrote: > Have a look at this layer please. Someone please tell me what I am doing > wrong. The road names all line up horizontally, then do not follow as > directive is given. > > > ################ Minor Roads > > LAYER # kingston roads > DEBUG OFF > NAME 'Kingston Roads' > DATA 'roads/fixed_KGN_RD.shp' > TRANSFORM true > LABELITEM 'LABEL' > STATUS on > > METADATA > "queryable" "true" > "fields" "LABEL:label" > "searchfield" "LABEL" > "OPACITY" "50" > > END # METADATA > TYPE line > > > CLASS > NAME 'Unlabelled Kingston Roads' > MAXSCALE 75000 > MINSCALE 30000 > COLOR 236 168 73 > SIZE 1 > TEMPLATE "template.html" > END # CLASS > > CLASS > NAME 'Labelled Kingston Roads' > MAXSCALE 30000 > COLOR 236 168 73 > SIZE 1 > LABEL > ANGLE follow > ANTIALIAS true > BUFFER 20 > COLOR 0 0 0 > FONT 'Arial-Normal' > SIZE medium > PARTIALS false > > END # LABEL > TEMPLATE "template.html" > END # CLASS > > CLASS > NAME 'Query Kgn Roads' > TEMPLATE 'template.html' > END # CLASS > > END # LAYER > > > > -- > Jay Why > _______________________________________________ > 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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/a33d6c1a/attachment.htm> From Kai-Behncke at gmx.de Mon Mar 10 03:22:38 2008 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Mon, 10 Mar 2008 11:22:38 +0100 Subject: [mapserver-users] Some questions to AGG and GD rendering Message-ID: <20080310102238.190310@gmx.net> Dear users, some questions to AGG and GD-Rendering: Is it right that even if I use the following output: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END the GD library is used for LABELS, Textpositioning and Rasterlayers ? What about STYLES and SYMBOLS, is AGG used then or GD, in my tests I could`t figure it out..... It is said that AGG and GD are combined. For which objects GD is used? When is AGG used? Is it right, that AGG renders faster than GD? Thank you very much, Kai -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free From Janosch.Skrobek at trier.de Mon Mar 10 03:44:30 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 10 Mar 2008 11:44:30 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D1F760D@rh-ex-02.rathaus.trier> Hello everyone! I'm just getting started with Mapserver and have worked my way through the tutorial made by Pericles S. Nacionales. Now I have started to work on my own mapserver application but am experiencing some problems. I have a shapefile of my hometown which I use as the background layer. Now I want to add Raster Data, I have 50 georeferenced tif tiles of the area. I could add them in an own layer each but I would rather like all these tiffs to be in one layer. Is there a way to tell mapserver to use all tiffs in a folder for a layer? If not, what would be the best way to combine these tiffs into one big image? I hope you can help me out :) Best Regards Janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From bartvde at osgis.nl Mon Mar 10 03:48:48 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 10 Mar 2008 11:48:48 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer Message-ID: <a54052ce3520334896ead130e88a8204@145.50.39.11> You need to create a tileindex using gdaltindex, and then reference that tileindex in your layer. See the RASTER HOWTO for details, chapter 4: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Janosch.Skrobek at trier.de Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 08:45 > Hello everyone! > > I'm just getting started with Mapserver and have worked my way through > the tutorial made by Pericles S. Nacionales. Now I have started to work > on my own mapserver application but am experiencing some problems. > > I have a shapefile of my hometown which I use as the background layer. > Now I want to add Raster Data, I have 50 georeferenced tif tiles of the > area. I could add them in an own layer each but I would rather like all > these tiffs to be in one layer. Is there a way to tell mapserver to use > all tiffs in a folder for a layer? If not, what would be the best way to > combine these tiffs into one big image? > > I hope you can help me out :) > > Best Regards > Janosch > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From justcallmejay at gmail.com Mon Mar 10 04:23:37 2008 From: justcallmejay at gmail.com (Jay Why) Date: Mon, 10 Mar 2008 06:23:37 -0500 Subject: [mapserver-users] BUFFER does not work and color degradation problems Message-ID: <2bdd38710803100423y7ac1aaf7o9183a94dcc7ed33@mail.gmail.com> Hi I seem to be having quite a challenge with the "BUFFER" parameter. I understand the that the buffer parameter should dictate that nothing be drawn around a label for xx pixels but that does not seem to work for me at all. I still have serious clashes between wording and other symbols from other layers are drawn over the text from time to time, it's so confusing. Does minscale/maxscale affect buffer values? Also, my map suffers from color degredation for some of the icons (overlay symbols)? What kind of precautions do I need to take to prevent color degradation of my symbols? This link should work later on today... http://208.138.22.177/kamap/ There was a power cut so I need to turn my machine back on now. ################ Minor Roads LAYER # kingston roads DEBUG OFF NAME 'Kingston Roads' DATA 'roads/fixed_KGN_RD.shp' TRANSFORM true LABELITEM 'LABEL' STATUS on METADATA "queryable" "true" "fields" "LABEL:label" "searchfield" "LABEL" "OPACITY" "50" END # METADATA TYPE line CLASS NAME 'Unlabelled Kingston Roads' MAXSCALE 75000 MINSCALE 30000 COLOR 236 168 73 SIZE 1 TEMPLATE "template.html" END # CLASS CLASS NAME 'Labelled Kingston Roads' MAXSCALE 30000 COLOR 236 168 73 SIZE 1 LABEL ANGLE follow ANTIALIAS true *BUFFER 20* COLOR 0 0 0 FONT 'Arial-Normal' SIZE medium PARTIALS false END # LABEL TEMPLATE "template.html" END # CLASS CLASS NAME 'Query Kgn Roads' TEMPLATE 'template.html' END # CLASS END # LAYER -- Jay Why -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/2ac1b5a2/attachment.htm> From flavio at tydac.ch Mon Mar 10 05:11:41 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Mon, 10 Mar 2008 13:11:41 +0100 Subject: [mapserver-users] Some questions to AGG and GD rendering In-Reply-To: <20080310102238.190310@gmx.net> References: <20080310102238.190310@gmx.net> Message-ID: <WorldClient-F200803101311.AA11410391@tydac.ch> Hi Kai As far as I see, if you specify AGG, all is AGG ... Looks a lot smoother (if not to say fantasitc). To me AGG is slightly slower. However, as the image quality is far higher, images tend to get larger anyway. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From Janosch.Skrobek at trier.de Mon Mar 10 05:50:59 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 10 Mar 2008 13:50:59 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D1F764B@rh-ex-02.rathaus.trier> Thanks a lot Bart and you too Till! I had some troubles with the wildcards (*.tif) since the gdaltindex binary from gdal.org doesn't seem to support them - although it says so in the manual. I googled a bit and found fwtools which have gdaltindex implemented as well and here the wildcards work. But just as I thought I get follow-up problems :) 1) gdaltindex puts out a warning when processing my tiffs: Warning 1:TIFFFetNormalTag:ASCII value for tag "copyright" contains null byte in value; value incorrectly truncated during reading due to implementation limitations But luckily that doesn't seem to influence the result. Still I would like to know what it is trying to tell me and google doesn't know :) 2) when loading the layer it takes at least 20seconds for mapserver to show it. I understand it is because of big amount of data? (50files, all in all 40MB) Is there any way to speed this up? Thank you very much for your help! Janosch -----Urspr?ngliche Nachricht----- Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Gesendet: Montag, 10. M?rz 2008 11:49 An: Skrobek, Janosch; mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] combine many georeferenced tifs in one layer You need to create a tileindex using gdaltindex, and then reference that tileindex in your layer. See the RASTER HOWTO for details, chapter 4: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Janosch.Skrobek at trier.de Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 08:45 > Hello everyone! > > I'm just getting started with Mapserver and have worked my way through > the tutorial made by Pericles S. Nacionales. Now I have started to work > on my own mapserver application but am experiencing some problems. > > I have a shapefile of my hometown which I use as the background layer. > Now I want to add Raster Data, I have 50 georeferenced tif tiles of the > area. I could add them in an own layer each but I would rather like all > these tiffs to be in one layer. Is there a way to tell mapserver to use > all tiffs in a folder for a layer? If not, what would be the best way to > combine these tiffs into one big image? > > I hope you can help me out :) > > Best Regards > Janosch > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From bartvde at osgis.nl Mon Mar 10 05:58:35 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 10 Mar 2008 13:58:35 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer Message-ID: <e2218731ab13b07da13227a28d1cc43c@145.50.39.11> You can do the following things to speed up performance: * create a spatial index on your tileindex shapefile with shptree (also make sure you reference your TILEINDEX in the MAP file without the .shp suffix) * create overviews in the tiff files using gdaladdo Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Janosch.Skrobek at trier.de Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one layer Datum: 10/03/08 10:51 > Thanks a lot Bart and you too Till! > > I had some troubles with the wildcards (*.tif) since the gdaltindex binary from gdal.org doesn't seem to support them - although it says so in the manual. I googled a bit and found fwtools which have gdaltindex implemented as well and here the wildcards work. > > But just as I thought I get follow-up problems :) > 1) gdaltindex puts out a warning when processing my tiffs: > Warning 1:TIFFFetNormalTag:ASCII value for tag "copyright" contains null byte in value; value incorrectly truncated during reading due to implementation limitations > > But luckily that doesn't seem to influence the result. Still I would like to know what it is trying to tell me and google doesn't know :) > > 2) when loading the layer it takes at least 20seconds for mapserver to show it. I understand it is because of big amount of data? (50files, all in all 40MB) Is there any way to speed this up? > > Thank you very much for your help! > > Janosch > > > > -----Urspr?ngliche Nachricht----- > Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] > Gesendet: Montag, 10. M?rz 2008 11:49 > An: Skrobek, Janosch; mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] combine many georeferenced tifs in one layer > > You need to create a tileindex using gdaltindex, and then reference that > tileindex in your layer. > > See the RASTER HOWTO for details, chapter 4: > > http://mapserver.gis.umn.edu/docs/howto/raster_data > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Janosch.Skrobek at trier.de > Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> > Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer > Datum: 10/03/08 08:45 > > > Hello everyone! > > > > I'm just getting started with Mapserver and have worked my way through > > the tutorial made by Pericles S. Nacionales. Now I have started to work > > on my own mapserver application but am experiencing some problems. > > > > I have a shapefile of my hometown which I use as the background layer. > > Now I want to add Raster Data, I have 50 georeferenced tif tiles of the > > area. I could add them in an own layer each but I would rather like all > > these tiffs to be in one layer. Is there a way to tell mapserver to use > > all tiffs in a folder for a layer? If not, what would be the best way to > > combine these tiffs into one big image? > > > > I hope you can help me out :) > > > > Best Regards > > Janosch > > > > > -------------------------------------------------------------------------------- > > > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen > enthalten. > > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich > erhalten haben, > > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. > Das unerlaubte > > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. > Der > > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist > ?ber diese > > E-Mail-Adresse derzeit noch nicht m?glich. > > > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ivan.mincik at gmail.com Mon Mar 10 06:19:13 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 10 Mar 2008 14:19:13 +0100 Subject: [mapserver-users] cannot compile --with-fastcgi Message-ID: <200803101419.13743.ivan.mincik@gmail.com> I am want to compile latest mapserver sources (latest stable and also nigthly builds) with option "--with-fastcgi=/usr " I allways get error: "configure: error: Unable to link against -L/usr/lib -lfcgi" I have tried also --with-fastcgi=/usr/lib and so on. Files related to fcgi module are here: /etc/apache2/mods-available/fastcgi.conf /etc/apache2/mods-available/fastcgi.load /usr/lib/apache2/modules/mod_fastcgi.so My whole configure options: --prefix=/usr \ --enable-debug \ --without-tiff \ --without-pdf \ --with-gd=/usr \ --with-freetype=/usr \ --with-zlib=/usr \ --with-png=/usr \ --with-xpm=/usr \ --with-jpeg=/usr \ --with-gdal \ --with-ogr \ --with-proj \ --with-eppl \ --with-postgis \ --with-wcs \ --with-wms \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --with-threads \ --with-agg=/usr \ --with-fastcgi=/usr \ --with-geos Thanks Ivan From justcallmejay at gmail.com Mon Mar 10 06:22:12 2008 From: justcallmejay at gmail.com (Jay Why) Date: Mon, 10 Mar 2008 08:22:12 -0500 Subject: [mapserver-users] Flash output Message-ID: <2bdd38710803100622q2ee809ebu4cf213414377217d@mail.gmail.com> Can mapserver achieve flash as output? -- Jay Why -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/96719c5a/attachment.htm> From Janosch.Skrobek at trier.de Mon Mar 10 06:39:51 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 10 Mar 2008 14:39:51 +0100 Subject: AW: [mapserver-users] Flash output In-Reply-To: <2bdd38710803100622q2ee809ebu4cf213414377217d@mail.gmail.com> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D27CC5A@rh-ex-02.rathaus.trier> Hello Jay, have you tried google? This Link ist one of the first you get when searching for "mapserver flash output". http://dl.maptools.org/dl/FlashMapserverUserDoc.html And there is much more on this topic :) Hope this helps Best Regards, Janosch -----Urspr?ngliche Nachricht----- Von: Jay Why [mailto:justcallmejay at gmail.com] Gesendet: Montag, 10. M?rz 2008 14:22 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Flash output Can mapserver achieve flash as output? -- Jay Why -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/ce174417/attachment.htm> From Andreas.Eichner at sid.sachsen.de Mon Mar 10 06:30:00 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Mon, 10 Mar 2008 14:30:00 +0100 Subject: AW: [mapserver-users] cannot compile --with-fastcgi References: <200803101419.13743.ivan.mincik@gmail.com> Message-ID: <DB439C1846E26C46B3CCF22306653937B0662B@KS-EVS1.smi.sachsen.de> Well, installing mod_fcgi is not enough. You also need libfcgi to link mapserv against it and it's headers to compile. On Debian systems they are in packages libfcgi0ldbl and libfcgi-dev. Whatever your system may be make sure to have them. You may want to search for "libfcgi.so*" and "fcgi_stdio.h" to be sure... -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ivan Mincik Gesendet: Montag, 10. M?rz 2008 14:19 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] cannot compile --with-fastcgi I am want to compile latest mapserver sources (latest stable and also nigthly builds) with option "--with-fastcgi=/usr " I allways get error: "configure: error: Unable to link against -L/usr/lib -lfcgi" I have tried also --with-fastcgi=/usr/lib and so on. Files related to fcgi module are here: /etc/apache2/mods-available/fastcgi.conf /etc/apache2/mods-available/fastcgi.load /usr/lib/apache2/modules/mod_fastcgi.so From stirc at gmx.de Mon Mar 10 10:50:20 2008 From: stirc at gmx.de (Mike Meier) Date: Mon, 10 Mar 2008 18:50:20 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer In-Reply-To: <e2218731ab13b07da13227a28d1cc43c@145.50.39.11> References: <e2218731ab13b07da13227a28d1cc43c@145.50.39.11> Message-ID: <47D574DC.1040208@gmx.de> Hi Bart, why without .shp suffix? I don't find this hint at the Mapfile reference or in a Trac Ticket. Greetings Mike Bart van den Eijnden (OSGIS) schrieb: > You can do the following things to speed up performance: > > * create a spatial index on your tileindex shapefile with shptree (also make > sure you reference your TILEINDEX in the MAP file without the .shp suffix) > > * create overviews in the tiff files using gdaladdo > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Janosch.Skrobek at trier.de > Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> > Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one > layer > Datum: 10/03/08 10:51 > > >> Thanks a lot Bart and you too Till! >> >> I had some troubles with the wildcards (*.tif) since the gdaltindex binary >> > from gdal.org doesn't seem to support them - although it says so in the > manual. I googled a bit and found fwtools which have gdaltindex implemented > as well and here the wildcards work. > >> But just as I thought I get follow-up problems :) >> 1) gdaltindex puts out a warning when processing my tiffs: >> Warning 1:TIFFFetNormalTag:ASCII value for tag "copyright" >> > contains null byte in value; value incorrectly truncated during reading due > to implementation limitations > >> But luckily that doesn't seem to influence the result. Still I would like >> > to know what it is trying to tell me and google doesn't know :) > >> 2) when loading the layer it takes at least 20seconds for mapserver to >> > show it. I understand it is because of big amount of data? (50files, all in > all 40MB) Is there any way to speed this up? > >> Thank you very much for your help! >> >> Janosch >> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] >> Gesendet: Montag, 10. M?rz 2008 11:49 >> An: Skrobek, Janosch; mapserver-users at lists.osgeo.org >> Betreff: Re: [mapserver-users] combine many georeferenced tifs in one >> > layer > >> You need to create a tileindex using gdaltindex, and then reference that >> tileindex in your layer. >> >> See the RASTER HOWTO for details, chapter 4: >> >> http://mapserver.gis.umn.edu/docs/howto/raster_data >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: Janosch.Skrobek at trier.de >> Naar: mapserver-users at lists.osgeo.org >> > <mapserver-users at lists.osgeo.org> > >> Onderwerp: [mapserver-users] combine many georeferenced tifs in one layer >> Datum: 10/03/08 08:45 >> >> > Hello everyone! >> > >> > I'm just getting started with Mapserver and have worked my way >> > through > >> > the tutorial made by Pericles S. Nacionales. Now I have started to >> > work > >> > on my own mapserver application but am experiencing some problems. >> > >> > I have a shapefile of my hometown which I use as the background >> > layer. > >> > Now I want to add Raster Data, I have 50 georeferenced tif tiles of >> > the > >> > area. I could add them in an own layer each but I would rather like >> > all > >> > these tiffs to be in one layer. Is there a way to tell mapserver to >> > use > >> > all tiffs in a folder for a layer? If not, what would be the best way >> > to > >> > combine these tiffs into one big image? >> > >> > I hope you can help me out :) >> > >> > Best Regards >> > Janosch >> > >> > >> >> > -------------------------------------------------------------------------------- > >> > >> > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte >> > Informationen > >> enthalten. >> > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail >> > irrt?mlich > >> erhalten haben, >> > informieren Sie bitte sofort den Absender und vernichten Sie diese >> > E-Mail. > >> Das unerlaubte >> > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht >> > gestattet. > >> Der >> > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier >> > ist > >> ?ber diese >> > E-Mail-Adresse derzeit noch nicht m?glich. >> > >> > >> >> > -------------------------------------------------------------------------------- > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> >> >> >> >> > -------------------------------------------------------------------------------- > >> Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen >> > enthalten. > >> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich >> > erhalten haben, > >> informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. >> > Das unerlaubte > >> Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. >> > Der > >> rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist >> > ?ber diese > >> E-Mail-Adresse derzeit noch nicht m?glich. >> >> >> > -------------------------------------------------------------------------------- > >> _______________________________________________ >> 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 guillaume.sueur at neogeo-online.net Mon Mar 10 10:53:23 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 10 Mar 2008 18:53:23 +0100 Subject: [mapserver-users] combine many georeferenced tifs in one layer In-Reply-To: <47D574DC.1040208@gmx.de> References: <e2218731ab13b07da13227a28d1cc43c@145.50.39.11> <47D574DC.1040208@gmx.de> Message-ID: <47D57593.9060808@neogeo-online.net> not using the suffix causes mapserver to look for .shp and .qix which is the quadtree index file. Using .shp suffix causes mapserver looking for foo.shp.qix and not finding it, and not using your foo.qix Guillaume Mike Meier a ?crit : > Hi Bart, > > why without .shp suffix? I don't find this hint at the Mapfile reference > or in a Trac Ticket. > > Greetings > Mike > > Bart van den Eijnden (OSGIS) schrieb: >> You can do the following things to speed up performance: >> >> * create a spatial index on your tileindex shapefile with shptree >> (also make >> sure you reference your TILEINDEX in the MAP file without the .shp >> suffix) >> >> * create overviews in the tiff files using gdaladdo >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: Janosch.Skrobek at trier.de >> Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> >> Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one >> layer >> Datum: 10/03/08 10:51 >> >> >>> Thanks a lot Bart and you too Till! >>> >>> I had some troubles with the wildcards (*.tif) since the gdaltindex >>> binary >>> >> from gdal.org doesn't seem to support them - although it says so in the >> manual. I googled a bit and found fwtools which have gdaltindex >> implemented >> as well and here the wildcards work. >>> But just as I thought I get follow-up problems :) >>> 1) gdaltindex puts out a warning when processing my tiffs: >>> Warning 1:TIFFFetNormalTag:ASCII value for tag "copyright" >>> >> contains null byte in value; value incorrectly truncated during >> reading due >> to implementation limitations >> >>> But luckily that doesn't seem to influence the result. Still I would >>> like >>> >> to know what it is trying to tell me and google doesn't know :) >> >>> 2) when loading the layer it takes at least 20seconds for mapserver to >>> >> show it. I understand it is because of big amount of data? (50files, >> all in >> all 40MB) Is there any way to speed this up? >> >>> Thank you very much for your help! >>> >>> Janosch >>> >>> >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Gesendet: >>> Montag, 10. M?rz 2008 11:49 >>> An: Skrobek, Janosch; mapserver-users at lists.osgeo.org >>> Betreff: Re: [mapserver-users] combine many georeferenced tifs in one >>> >> layer >> >>> You need to create a tileindex using gdaltindex, and then reference that >>> tileindex in your layer. >>> >>> See the RASTER HOWTO for details, chapter 4: >>> >>> http://mapserver.gis.umn.edu/docs/howto/raster_data >>> >>> Best regards, >>> Bart >>> >>> -- >>> Bart van den Eijnden >>> OSGIS, Open Source GIS >>> http://www.osgis.nl >>> >>> >>> --------- Oorspronkelijk bericht -------- >>> Van: Janosch.Skrobek at trier.de >>> Naar: mapserver-users at lists.osgeo.org >>> >> <mapserver-users at lists.osgeo.org> >> >>> Onderwerp: [mapserver-users] combine many georeferenced tifs in one >>> layer >>> Datum: 10/03/08 08:45 >>> >>> > Hello everyone! >>> > > I'm just getting started with Mapserver and have worked my way >>> >> through >> >>> > the tutorial made by Pericles S. Nacionales. Now I have started to >>> >> work >> >>> > on my own mapserver application but am experiencing some >>> problems. > > I have a shapefile of my hometown which I use as >>> the background >>> >> layer. >> >>> > Now I want to add Raster Data, I have 50 georeferenced tif tiles of >>> >> the >> >>> > area. I could add them in an own layer each but I would rather like >>> >> all >> >>> > these tiffs to be in one layer. Is there a way to tell mapserver to >>> >> use >> >>> > all tiffs in a folder for a layer? If not, what would be the >>> best way >>> >> to >> >>> > combine these tiffs into one big image? >>> > > I hope you can help me out :) >>> > > Best Regards > Janosch >>> > > >>> >>> >> -------------------------------------------------------------------------------- >> >> >>> > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte >>> >> Informationen >> >>> enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese >>> E-Mail >>> >> irrt?mlich >> >>> erhalten haben, > informieren Sie bitte sofort den Absender und >>> vernichten Sie diese >>> >> E-Mail. >> >>> Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser >>> E-Mail ist nicht >>> >> gestattet. >> >>> Der > rechtsverbindliche elektronische Schriftverkehr mit der >>> Stadt Trier >>> >> ist >> >>> ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. >>> > > >>> >>> >> -------------------------------------------------------------------------------- >> >> >>> > > _______________________________________________ >>> > mapserver-users mailing list >>> > mapserver-users at lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > >>> >>> >>> >>> >>> >> -------------------------------------------------------------------------------- >> >> >>> Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte >>> Informationen >>> >> enthalten. >>> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich >>> >> erhalten haben, >>> informieren Sie bitte sofort den Absender und vernichten Sie diese >>> E-Mail. >>> >> Das unerlaubte >>> Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht >>> gestattet. >>> >> Der >>> rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist >>> >> ?ber diese >>> E-Mail-Adresse derzeit noch nicht m?glich. >>> >>> >>> >> -------------------------------------------------------------------------------- >> >> >>> _______________________________________________ >>> 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 David.Fawcett at state.mn.us Mon Mar 10 12:19:55 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 10 Mar 2008 14:19:55 -0500 Subject: [mapserver-users] Flash output In-Reply-To: <2bdd38710803100622q2ee809ebu4cf213414377217d@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBB7D@s-sp22.pca.state.mn.us> You can use the OUTPUTFORMAT option SWF found at http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Why Sent: Monday, March 10, 2008 8:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Flash output Can mapserver achieve flash as output? -- Jay Why -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/54f860f7/attachment.htm> From pzader at gmail.com Mon Mar 10 13:39:54 2008 From: pzader at gmail.com (pablo zader) Date: Mon, 10 Mar 2008 17:39:54 -0300 Subject: [mapserver-users] help execution mapserver Message-ID: <52be2a8b0803101339o1cb5b892x6732557f740b087a@mail.gmail.com> Hi friends, al ejecutar mapserver desde la web, me da: loadWeb(): General error message. URL-based TEMPLATE configuration failed pattern validation a que se debe? thank you -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/a60f41c9/attachment.htm> From dmorissette at mapgears.com Mon Mar 10 14:00:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 10 Mar 2008 17:00:38 -0400 Subject: [mapserver-users] removeLayer() in PHP MapScript In-Reply-To: <47D1BF17.1060807@gmx.net> References: <47D1BF17.1060807@gmx.net> Message-ID: <47D5A176.3000603@mapgears.com> Armin Burger wrote: > Hello > > I'd have a question for the PHP Mapscript developers: are there any > plans to implement the removeLayer() method (that exists for SWIG > Mapscript versions) also in PHP Mapscript? I did a quick search and found an old ticket relating to that: http://trac.osgeo.org/mapserver/ticket/762 ... then I started to wonder why we never implemented removeLayer(), and it came back to me that removeLayer() returns a standalone layerObj that's decoupled from the mapObj and can even be reinserted into the map at another location later on with insertLayer(). Without looking into this in any detail, it sounds like adding this may be more involved than just adding a new method since PHP MapScript doesn't allow decoupling objects like this at the moment. That and the fact that there are simpler alternatives to do the same thing (i.e. setting status MS_DELETE) probably explains why we never did it. > Setting the layer status to > MS_DELETE is in most cases not an alternative since it seems to have > effects only for writing the map object to a map file. > In which case does setting the status to MS_DELETE not work? That should work for rendering, querying, etc. Daniel -- Daniel Morissette http://www.mapgears.com/ From nospam420 at yahoo.com Mon Mar 10 15:10:02 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 10 Mar 2008 15:10:02 -0700 (PDT) Subject: [MAPSERVER-USERS] Centered multi-line labels In-Reply-To: <12B8F225666F99489CEFA8B3F261540CFAAE78@geneva.local.terralink> References: <12B8F225666F99489CEFA8B3F261540CFAAE78@geneva.local.terralink> Message-ID: <15961106.post@talk.nabble.com> Rainer Spittel-2 wrote: > > I wonder if it is possible to align a multi-line label centered at a > location. At the moment, when using WRAP to define the end-of-line > condition and the text appears left-aligned. > This is not currently implemented, but things like this are being considered for the future: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-40/ https://trac.osgeo.org/mapserver/ticket/2383 What I do currently as a workaround is preprocess my the text of my label, decide where I want to wrap them (which is better than WRAP anyway, because I can more intelligently insert returns where I want them, and not for instance for every space), and then for each line, fake center justification by inserting spaces as needed. It's not perfect, but it's good enough for me. And if you're willing to edit the font and create a more narrow space character than what space gives you, you could get finer resolution. - Rich -- View this message in context: http://www.nabble.com/Centered-multi-line-labels-tp15950222p15961106.html Sent from the Mapserver - User mailing list archive at Nabble.com. From carla.fernandezb at gmail.com Mon Mar 10 15:13:47 2008 From: carla.fernandezb at gmail.com (cfb) Date: Mon, 10 Mar 2008 15:13:47 -0700 (PDT) Subject: [MAPSERVER-USERS] GetCapabilities error + bip format Message-ID: <15961422.post@talk.nabble.com> Hello, I have some doubts, I'm working with MS4W 2.2.7, any answer will be really appreciated... 1) When I get the wms GetCapabilities, at the beginning of the document it's write "VendorSpecificCapabilities EMPTY", why?: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" [ <!ELEMENT VendorSpecificCapabilities EMPTY> ]> <!-- end of DOCTYPE declaration --> <WMT_MS_Capabilities version="1.1.1"> <!-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --> <Service> <Name>nnn</Name> <Title>nnn... 2) I've been working with MrSID, ECW and tiffs rasters format without problems, anyone knows a way to have my WMS (MS4W 2.2.7) with bip images?? In GDAL formats supported there's "GenBin (ro): Generic Binary (.hdr Labelled)", but MapServer doesn't work with bip format...any idea? Thanks very much! -- View this message in context: http://www.nabble.com/GetCapabilities-error-%2B-bip-format-tp15961422p15961422.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 10 15:22:06 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 10 Mar 2008 15:22:06 -0700 (PDT) Subject: [MAPSERVER-USERS] Follow does not work In-Reply-To: <10cf58b30803100315j1d497e84m2d0e7a478658a0a@mail.gmail.com> References: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> <10cf58b30803100315j1d497e84m2d0e7a478658a0a@mail.gmail.com> Message-ID: <15962291.post@talk.nabble.com> Rodrigo Mart?n L?PEZ GREGORIO-2 wrote: > > Try this: > > *ANGLE AUTO* > > This seems to work for me. > But, afaik, AUTO is not the same as FOLLOW. If you want, for example, curved labels on roads that are curved, following the road, you need FOLLOW, not AUTO. I had previously had some preblems when (incorrectly, I believe) specifying POSITION AUTO along with ANGLE FOLLOW: https://trac.osgeo.org/mapserver/ticket/2455 but it doesn't look like you're doing that, so I'm not sure why things aren't working for you. - Rich -- View this message in context: http://www.nabble.com/Follow-does-not-work-tp15951740p15962291.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 10 15:31:56 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 10 Mar 2008 15:31:56 -0700 (PDT) Subject: [MAPSERVER-USERS] BUFFER does not work and color degradation problems In-Reply-To: <2bdd38710803100423y7ac1aaf7o9183a94dcc7ed33@mail.gmail.com> References: <2bdd38710803100423y7ac1aaf7o9183a94dcc7ed33@mail.gmail.com> Message-ID: <15963219.post@talk.nabble.com> JayDub wrote: > > Also, my map suffers from color degredation for some of the icons (overlay > symbols)? What kind of precautions do I need to take to prevent color > degradation of my symbols? > For future reference, it's probably better to ask two separate questions in two separate mail messages. Anyway, by color degradation, if you mean that some of the colors that you specify in the map file are not precisely the same as the output colors, this can be solved via something like the following: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "PALETTE_FORCE=TRUE" # Why this is needed at all: # http://trac.osgeo.org/mapserver/ticket/2096 # This must be an absolute path (should be fixed for mapserver 5.2) # http://trac.osgeo.org/mapserver/ticket/2115 FORMATOPTION "PALETTE=/absolute/path/to/palette" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END The palette file is a list of colors, with each line like: 0,0,0 255,255,255 You only need to specify the colors that you want forced. See also here: http://www.nabble.com/Color-shifts-using-QUANTIZE_COLORS%3D256-to5730834.html#a14138694 - Rich -- View this message in context: http://www.nabble.com/BUFFER-does-not-work-and-color-degradation-problems-tp15955479p15963219.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 10 15:37:23 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 10 Mar 2008 15:37:23 -0700 (PDT) Subject: [MAPSERVER-USERS] Some questions to AGG and GD rendering In-Reply-To: <WorldClient-F200803101311.AA11410391@tydac.ch> References: <20080310102238.190310@gmx.net> <WorldClient-F200803101311.AA11410391@tydac.ch> Message-ID: <15963464.post@talk.nabble.com> Flavio Hendry wrote: > > As far as I see, if you specify AGG, all is AGG ... Looks a lot smoother > (if not to say fantasitc). To me AGG is slightly slower. However, as the > image quality is far higher, images tend to get larger anyway. > I don't know all of the internal details, but the GD library is still used for some things even if you select the AGG renderer. I will also agree that AGG looks much better. You get auto aliasing by default on everything, not just text labels (which I think may be all that GD gave you, but I could be wrong). I have read comments that AGG is somewhat slower, but I don't have any data myself. I can get the performance that I need with AGG, so given its superior output, that's what I go with. - Rich -- View this message in context: http://www.nabble.com/Some-questions-to-AGG-and-GD-rendering-tp15954547p15963464.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pzader at gmail.com Mon Mar 10 19:34:44 2008 From: pzader at gmail.com (pablo zader) Date: Mon, 10 Mar 2008 23:34:44 -0300 Subject: [mapserver-users] help execution mapserver In-Reply-To: <248e5e090803101345x3873f7kc1ac960eedd589@mail.gmail.com> References: <52be2a8b0803101339o1cb5b892x6732557f740b087a@mail.gmail.com> <248e5e090803101345x3873f7kc1ac960eedd589@mail.gmail.com> Message-ID: <52be2a8b0803101934o30a59727gdcb5abf680dc2110@mail.gmail.com> Sorry ernesto, my problem is the following one: I have installed mapserver version 5, when I try to traverse my application that gives the following mistake: LoadWeb(): General error message. URL-based TEMPLATE configuration failed pattern validation You help me please ? than you Pablo pd: what is RTFM?? 2008/3/10, Ernesto Vega <ernesvega at gmail.com>: > > You must write english here !!!!!!! > > Also, you gotta do some RTFM !!! > > Ernesto > > 2008/3/10 pablo zader <pzader at gmail.com>: > > > Hi friends, > > al ejecutar mapserver desde la web, me da: > > > > loadWeb(): General error message. URL-based TEMPLATE configuration > failed > > pattern validation > > > > a que se debe? > > > > thank you > > -- > > Pablo Zader > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080310/ebbccc0b/attachment.htm> From jeshua at OpenOSX.com Mon Mar 10 20:13:58 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Mon, 10 Mar 2008 21:13:58 -0600 Subject: [mapserver-users] help execution mapserver In-Reply-To: <52be2a8b0803101934o30a59727gdcb5abf680dc2110@mail.gmail.com> References: <52be2a8b0803101339o1cb5b892x6732557f740b087a@mail.gmail.com> <248e5e090803101345x3873f7kc1ac960eedd589@mail.gmail.com> <52be2a8b0803101934o30a59727gdcb5abf680dc2110@mail.gmail.com> Message-ID: <A4BF77D6-6251-4A10-8539-32FCBDF1DA17@OpenOSX.com> On Mar 10, 2008, at 8:34 PM, pablo zader wrote: > pd: what is RTFM?? Wikipedia is useful to lookup acronyms you may not be familiar with: <http://en.wikipedia.org/wiki/RTFM> Regards, Jeshua Lacock Founder/Programmer 3DTOPO Incorporated <http://3DTOPO.com> Phone: 877.240.1364 From gis at vanbooth.com Tue Mar 11 04:10:11 2008 From: gis at vanbooth.com (Rob) Date: Tue, 11 Mar 2008 11:10:11 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection Message-ID: <2a955f950803110410r48be93c4w481aa50ff8b20d34@mail.gmail.com> Hi I'm supporting an instance of MapServer 4.8.3 and I am trying to improve the performance of the map drawing. I've a java app that modifies the JNI setProjection object, using 'init=epsg:27700' as its argument. This seems to take approx 200ms for every layer that I add to my request (rendered or not), which can drastically increase the time taken to draw a map (my standard request includes 18 layers). I read http://mapserver.gis.umn.edu/docs/howto/mapfiletuning about using inline projection parameters and how it is much quicker than using an epsg lookup, but I'm having problems. Using http://spatialreference.org/ref/epsg/27700/ I determined that the projection parameter should now be '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSB36 +units=m +no_defs' but this just gives me an error in setProjection - unknown eliptical parameter name. The advice here ( http://comments.gmane.org/gmane.comp.gis.mapserver.user/18519) suggests that I should be using the proj4 format - is that correct? Does anybody have any idea how I can modify my projection parameter so that it works? FWIW, upgrading MapServer is probably out of the question. MTIA Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/f0eb7b36/attachment.htm> From elvehjem at runestone.net Tue Mar 11 05:26:36 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Tue, 11 Mar 2008 07:26:36 -0500 Subject: [mapserver-users] Which OS for Mapserver? References: <004f01c88094$e5e849e0$5000a8c0@kensamd> <4BF377919225F449BB097CB76FFE9BC801988986@ptolemy.topozone.com> Message-ID: <016601c88373$2d286980$6401a8c0@Kens> Ed and Gregor, Many thanks for your insights. I think that this will probably be hosted on a Windows Server, if for no better reason than the fact that I have gotten it to work there (once;-). I look forward to a day when I can try it on Linux as well. Sincerely, Ken ----- Original Message ----- From: Ed McNierney To: Ken S. Elvehjem ; mapserver-users at lists.osgeo.org Sent: Friday, March 07, 2008 4:21 PM Subject: RE: [mapserver-users] Which OS for Mapserver? Ken - If you really have a free choice, use the system you know best. For most applications, on the same hardware, it's my opinion (having run MapServer on both Windows and Linux for a long time) that your ability to configure, manage, and maintain your server is far more important. You do need to be sure that all supporting libraries (such as MrSID support) are available on your OS of choice, too. If you can't get MapServer to work properly, it makes little difference how well it might have run had you gotten it working! If you have substantially more experience with one OS or the other then I would highly recommend you stick with that OS unless you find other significant other reasons to switch. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ken S. Elvehjem Sent: Friday, March 07, 2008 3:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Which OS for Mapserver? After having established a Mapserver with MS4W on my own computer, which works exceedingly well thanks to help from the list, the time has come to start housing the MrSid files somewhere else. We have located several web hosting services who want to help us. One in particular asked "Do you want it on a Windows or Linux box???" Now, I realize that flame wars have been started over such innocent questions, and I regret having to ask it in this way, but having only a limited contact with Linux *myself* this is really the only efficient way to find out. I'd especially appreciate hearing from someone who has tried it both ways, and can relate their experiences in a short, comparative narrative. Sincerely, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/7ea722b9/attachment.htm> From Andreas.Eichner at sid.sachsen.de Tue Mar 11 05:30:24 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 11 Mar 2008 13:30:24 +0100 Subject: AW: [mapserver-users] MapServer 4.8.3: MapScript setProjection References: <2a955f950803110410r48be93c4w481aa50ff8b20d34@mail.gmail.com> Message-ID: <DB439C1846E26C46B3CCF22306653937B0662D@KS-EVS1.smi.sachsen.de> Hi Rob. Well, I can't help you with the Java stuff but that's the line of /usr/share/proj/epsg belonging to 27700: # OSGB 1936 / British National Grid <27700> +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +datum=OSGB36 +units=m +no_defs <> May be there's a 'G' missing in your datum parameter. 'ellps' is nowhere in the line. Hope that helps ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Rob Gesendet: Dienstag, 11. M?rz 2008 12:10 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] MapServer 4.8.3: MapScript setProjection '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSB36 +units=m +no_defs' but this just gives me an error in setProjection - unknown eliptical parameter name. From Tom.Kralidis at ec.gc.ca Tue Mar 11 06:29:22 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 11 Mar 2008 09:29:22 -0400 Subject: [MAPSERVER-USERS] GetCapabilities error + bip format In-Reply-To: <15961422.post@talk.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF0E5@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of cfb > Sent: 10 March, 2008 6:14 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] GetCapabilities error + bip format > > > Hello, > > I have some doubts, I'm working with MS4W 2.2.7, any answer > will be really appreciated... > > 1) When I get the wms GetCapabilities, at the beginning of > the document it's write "VendorSpecificCapabilities EMPTY", why?: > > <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> > <!DOCTYPE WMT_MS_Capabilities SYSTEM > "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > [ > <!ELEMENT VendorSpecificCapabilities EMPTY> ]> <!-- end of > DOCTYPE declaration --> > > <WMT_MS_Capabilities version="1.1.1"> > > <!-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG > INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE --> > > <Service> > <Name>nnn</Name> > <Title>nnn... > > Here's what the example at http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.xml states: [ <!-- Vendor-specific elements are defined here if needed. --> <!-- If not needed, just leave this EMPTY declaration. Do not delete the declaration entirely. --> <!ELEMENT VendorSpecificCapabilities EMPTY> ]> <!-- end of DOCTYPE declaration --> I believe this is because the existence of the VendorSpecificCapabilities element itself is defined in http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd, but no child elements are defined. Child elements are left to the implementing server to define within the Capabilities XML within the <!ELEMENT> declaration. So essentially this is a placeholder by the OGC, defined in the days where DTDs were primarily used. These days we see this by way of extensions, given that using XML Schema allows for this type of extensibility. ..Tom From mhungc at gmail.com Tue Mar 11 07:27:02 2008 From: mhungc at gmail.com (Marco Hung) Date: Tue, 11 Mar 2008 09:57:02 -0430 Subject: [MAPSERVER-USERS] Follow does not work In-Reply-To: <15962291.post@talk.nabble.com> References: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> <10cf58b30803100315j1d497e84m2d0e7a478658a0a@mail.gmail.com> <15962291.post@talk.nabble.com> Message-ID: <a909eb410803110727vc76a771k395ec242af0a6e8a@mail.gmail.com> Hi Jai, Try this structure in the LABEL example: LABEL COLOR 0 0 0 FONT "arial" TYPE truetype SIZE 6 ANTIALIAS true POSITION AUTO MINDISTANCE 200 PARTIALS FALSE ANGLE FOLLOW MINFEATURESIZE 20 END change the things that you dont need for example color, font etc but not change the TYPE, the PARTIALS and the ANGLE. I study for several months the way that how the label follow the same form of the objects for example the roads..... This work for me..... What ever you need ask i'm to the order. On Mon, Mar 10, 2008 at 5:52 PM, rich.fromm <nospam420 at yahoo.com> wrote: > > > Rodrigo Mart?n L?PEZ GREGORIO-2 wrote: > > > > Try this: > > > > *ANGLE AUTO* > > > > This seems to work for me. > > > > But, afaik, AUTO is not the same as FOLLOW. If you want, for example, > curved labels on roads that are curved, following the road, you need FOLLOW, > not AUTO. > > I had previously had some preblems when (incorrectly, I believe) specifying > POSITION AUTO along with ANGLE FOLLOW: > https://trac.osgeo.org/mapserver/ticket/2455 > > but it doesn't look like you're doing that, so I'm not sure why things > aren't working for you. > > - Rich > > -- > View this message in context: http://www.nabble.com/Follow-does-not-work-tp15951740p15962291.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Tue Mar 11 07:44:33 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 11 Mar 2008 10:44:33 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803110410r48be93c4w481aa50ff8b20d34@mail.gmail.com> References: <2a955f950803110410r48be93c4w481aa50ff8b20d34@mail.gmail.com> Message-ID: <47D69AD1.1000204@mapgears.com> Rob wrote: > > I've a java app that modifies the JNI setProjection object, using > 'init=epsg:27700' as its argument. > > This seems to take approx 200ms for every layer that I add to my request > (rendered or not), which can drastically increase the time taken to draw > a map (my standard request includes 18 layers). > This long time looking up EPSG projection codes is a known issue and I'll try to fix it for the 5.2 release. In the meantime, an alternative to significantly reduce the lookup time is to move the definitions that you use the most often (e.g. 27700 in this case) to the top of PROJ4's "epsg" file. If you can afford to use a native PROJ4 definition then that will be even faster. Daniel -- Daniel Morissette http://www.mapgears.com/ From schroeter at netgis.de Tue Mar 11 08:45:43 2008 From: schroeter at netgis.de (schroeter at netgis.de) Date: Tue, 11 Mar 2008 16:45:43 +0100 Subject: [mapserver-users] dynamic data in cgi-mapserver Message-ID: <000901c8838f$1dcd1280$08b2a8c0@SVEN> Hi, I use following layer definition to show dynamic querys using a hidden form-field (name="testvar") in a cgi-mapserver-application: LAYER NAME "test" TYPE line STATUS on DATA routen/test.shp CLASSITEM "TESTID" CLASS Name "Select" EXPRESSION /%testvar%/ OUTLINECOLOR 250 0 250 SYMBOL 'circle' SIZE 8 END # CLASS END The EXPRESSION /%testvar%/ enables me to send dynamic data via querystring or postvar. The variables are separated with a pipe, f.e "var1|var3|va6|var8". 3 Questions: 1.Where is this function documented? 2. Is it possible to use such variables for other objects in a mapfile in a cgi-apps? (I know, no problem with mapscript) 3. Is it possible to use dynamic sql-statements or data-source via post or get variable in a cgi-app (f.e. for CONNECTIONTYPE postgis)? thanks Sven From Jukka.Rahkonen at mmmtike.fi Tue Mar 11 09:05:01 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 11 Mar 2008 18:05:01 +0200 Subject: [mapserver-users] dynamic data in cgi-mapserver References: <000901c8838f$1dcd1280$08b2a8c0@SVEN> Message-ID: <CC197224AC75CE4DB23F739B16891B86E33CD9@tikka.haapa.mmm.fi> > 3 Questions: > 1.Where is this function documented? > 2. Is it possible to use such variables for other objects in a mapfile in a > cgi-apps? (I know, no problem with mapscript) > 3. Is it possible to use dynamic sql-statements or data-source via post or > get variable in a cgi-app (f.e. for CONNECTIONTYPE postgis)? Hi, This may help a bit: http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub -Jukka Rahkonen- From guillaume.sueur at neogeo-online.net Tue Mar 11 10:03:54 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 11 Mar 2008 18:03:54 +0100 Subject: [mapserver-users] WMS getFields ? Message-ID: <47D6BB7A.4000500@neogeo-online.net> Hi list, Is there a way to retrieve the fields published for a particular WMS ressource without passing throught a getFeatureInfo on an existing location ? I'm trying to build a list of fields for WMS ressource, and I'd like to be able to do that without building a specific web service. Thanks for your lights ! -- Guillaume SUEUR From Josh.Hevenor at dpra.com Tue Mar 11 10:30:18 2008 From: Josh.Hevenor at dpra.com (Josh Hevenor) Date: Tue, 11 Mar 2008 12:30:18 -0500 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <47D6BB7A.4000500@neogeo-online.net> Message-ID: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> I think you're looking for the DESCRIBEFEATURETYPE request: http://emandev.cciw.ca/cgi-bin/mapserver/naturewatch.asp?version=1.0.0&s ervice=wfs&request=describefeaturetype&typename=frogwatch Josh -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Tuesday, March 11, 2008 1:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS getFields ? Hi list, Is there a way to retrieve the fields published for a particular WMS ressource without passing throught a getFeatureInfo on an existing location ? I'm trying to build a list of fields for WMS ressource, and I'd like to be able to do that without building a specific web service. Thanks for your lights ! -- Guillaume SUEUR _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tom.Kralidis at ec.gc.ca Tue Mar 11 10:40:17 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 11 Mar 2008 13:40:17 -0400 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <47D6BB7A.4000500@neogeo-online.net> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF0FD@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Guillaume Sueur > Sent: 11 March, 2008 1:04 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS getFields ? > > Hi list, > > Is there a way to retrieve the fields published for a > particular WMS ressource without passing throught a > getFeatureInfo on an existing location ? > I'm trying to build a list of fields for WMS ressource, and > I'd like to be able to do that without building a specific > web service. > > For an SLD-enabled WMS (which is what MapServer supports), you can issue a DescribeLayer request against the layer, i.e.: http://example.org/wms?service=WMS&version=1.1.1&request=DescribeLayer&l ayers=foo ..and then use the output to bind a WFS DescribeFeatureType requests against the Query/@typeName Or, you can use mapscript WxS support to support a "GetFieled" operation, which would just be a tunnel to a WFS DescribeFeatureType request. ..Tom From chelo_mjm at hotmail.com Tue Mar 11 12:21:01 2008 From: chelo_mjm at hotmail.com (Marcelo Mendoza) Date: Tue, 11 Mar 2008 19:21:01 +0000 Subject: [mapserver-users] From shapefiles to PostGIS, MAPServer Message-ID: <BAY125-W18253432F780FB9012F5ED970F0@phx.gbl> unsuscribe me please _________________________________________________________________ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/2eeca366/attachment.htm> From guillaume.sueur at neogeo-online.net Tue Mar 11 12:47:49 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 11 Mar 2008 20:47:49 +0100 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> References: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> Message-ID: <47D6E1E5.4070607@neogeo-online.net> That's it ! Thanks very much to both of you ! Guillaume Josh Hevenor a ?crit : > I think you're looking for the DESCRIBEFEATURETYPE request: > > http://emandev.cciw.ca/cgi-bin/mapserver/naturewatch.asp?version=1.0.0&s > ervice=wfs&request=describefeaturetype&typename=frogwatch > > > Josh > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume > Sueur > Sent: Tuesday, March 11, 2008 1:04 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS getFields ? > > Hi list, > > Is there a way to retrieve the fields published for a particular WMS > ressource without passing throught a getFeatureInfo on an existing > location ? > I'm trying to build a list of fields for WMS ressource, and I'd like to > be able to do that without building a specific web service. > > > Thanks for your lights ! -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From chelo_mjm at hotmail.com Tue Mar 11 12:53:07 2008 From: chelo_mjm at hotmail.com (Marcelo Mendoza) Date: Tue, 11 Mar 2008 19:53:07 +0000 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <47D6E1E5.4070607@neogeo-online.net> References: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> <47D6E1E5.4070607@neogeo-online.net> Message-ID: <BAY125-W386592409B6886EDF5D70C970F0@phx.gbl> Unsuscribe me please... thnx> Date: Tue, 11 Mar 2008 20:47:49 +0100> From: guillaume.sueur at neogeo-online.net> To: Josh.Hevenor at dpra.com; Tom.Kralidis at ec.gc.ca> Subject: Re: [mapserver-users] WMS getFields ?> CC: mapserver-users at lists.osgeo.org> > That's it ! Thanks very much to both of you !> > Guillaume> > Josh Hevenor a ?crit :> > I think you're looking for the DESCRIBEFEATURETYPE request:> > > > http://emandev.cciw.ca/cgi-bin/mapserver/naturewatch.asp?version=1.0.0&s> > ervice=wfs&request=describefeaturetype&typename=frogwatch> > > > > > Josh> > > > > > -----Original Message-----> > From: mapserver-users-bounces at lists.osgeo.org> > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume> > Sueur> > Sent: Tuesday, March 11, 2008 1:04 PM> > To: mapserver-users at lists.osgeo.org> > Subject: [mapserver-users] WMS getFields ? > > > > Hi list,> > > > Is there a way to retrieve the fields published for a particular WMS > > ressource without passing throught a getFeatureInfo on an existing > > location ?> > I'm trying to build a list of fields for WMS ressource, and I'd like to > > be able to do that without building a specific web service.> > > > > > Thanks for your lights !> > -- > Guillaume SUEUR> Expert SIG et OpenSource> NEOGEO> 46 RUE MATABIAU> 31000 TOULOUSE> 06 74 91 95 20> Site web : http://www.neogeo-online.net> > _______________________________________________> mapserver-users mailing list> mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/e4bd54c0/attachment.htm> From guillaume.sueur at neogeo-online.net Tue Mar 11 13:00:46 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 11 Mar 2008 21:00:46 +0100 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <BAY125-W386592409B6886EDF5D70C970F0@phx.gbl> References: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> <47D6E1E5.4070607@neogeo-online.net> <BAY125-W386592409B6886EDF5D70C970F0@phx.gbl> Message-ID: <47D6E4EE.9070305@neogeo-online.net> I can't make my text bigger than yours as I don't send HTML emails, but : go to http://lists.osgeo.org/mailman/listinfo/mapserver-users try to understand what's up in there (clue : unsubscribe is the last item on the page) and then go to hell Guillaume Marcelo Mendoza a ?crit : > > Unsuscribe me please... thnx From chelo_mjm at hotmail.com Tue Mar 11 13:13:52 2008 From: chelo_mjm at hotmail.com (Marcelo Mendoza) Date: Tue, 11 Mar 2008 20:13:52 +0000 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <47D6E4EE.9070305@neogeo-online.net> References: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> <47D6E1E5.4070607@neogeo-online.net> <BAY125-W386592409B6886EDF5D70C970F0@phx.gbl> <47D6E4EE.9070305@neogeo-online.net> Message-ID: <BAY125-W51A99BC1C7C9CB50A01176970F0@phx.gbl> Thnx for the reply Guillaume... the clue was very clear I would do what you suggest, but the button does not work! I've been trying to unsuscribe since july-2006, but that maybe dont f*ck*ng now or care... I've sent emails everywere and got nothing else but more mails from the list. If you dont have the solution please keep yourself away form the "reply" button -if you know where is it (I can point to you if you need it), and would appreciate if you can be more original when trying to insult me... Anyway... thnx Guillaume... btw: Unsuscribe me please.... thnx> Date: Tue, 11 Mar 2008 21:00:46 +0100> From: guillaume.sueur at neogeo-online.net> To: chelo_mjm at hotmail.com> CC: mapserver-users at lists.osgeo.org> Subject: Re: [mapserver-users] WMS getFields ?> > I can't make my text bigger than yours as I don't send HTML emails, but :> > go to http://lists.osgeo.org/mailman/listinfo/mapserver-users> try to understand what's up in there (clue : unsubscribe is the last > item on the page)> > and then go to hell> > Guillaume> > Marcelo Mendoza a ?crit :> > > > Unsuscribe me please... thnx> > > _________________________________________________________________ MSN Video. http://video.msn.com/?mkt=es-es -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/6dd4ad96/attachment.htm> From bartvde at osgis.nl Tue Mar 11 13:26:27 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 11 Mar 2008 21:26:27 +0100 Subject: [mapserver-users] WMS getFields ? In-Reply-To: <BAY125-W51A99BC1C7C9CB50A01176970F0@phx.gbl> References: <49B9846C39F25A4FA901064970861610D80E57@mhk-ex1.ad.dpra.com> <47D6E1E5.4070607@neogeo-online.net> <BAY125-W386592409B6886EDF5D70C970F0@phx.gbl> <47D6E4EE.9070305@neogeo-online.net> <BAY125-W51A99BC1C7C9CB50A01176970F0@phx.gbl> Message-ID: <47D6EAF3.7010906@osgis.nl> Try and send an e-mail to: To remove your address from the list, send a message to: <mapserver-users-unsubscribe at mail.osgeo.org> If that does not work then contact the list administrator: mapserver-users-owner at lists.osgeo.org Best regards, Bart Marcelo Mendoza wrote: > Thnx for the reply Guillaume... the clue was very clear > I would do what you suggest, but the button does not work! > I've been trying to unsuscribe since july-2006, but that maybe dont > f*ck*ng now or care... I've sent emails everywere and got nothing > else but more mails from the list. > > If you dont have the solution please keep yourself away form the > "reply" button -if you know where is it (I can point to you if you > need it), and would appreciate if you can be more original when trying > to insult me... > > Anyway... thnx Guillaume... > > btw: Unsuscribe me please.... thnx > > > Date: Tue, 11 Mar 2008 21:00:46 +0100 > > From: guillaume.sueur at neogeo-online.net > > To: chelo_mjm at hotmail.com > > CC: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] WMS getFields ? > > > > I can't make my text bigger than yours as I don't send HTML emails, > but : > > > > go to http://lists.osgeo.org/mailman/listinfo/mapserver-users > > try to understand what's up in there (clue : unsubscribe is the last > > item on the page) > > > > and then go to hell > > > > Guillaume > > > > Marcelo Mendoza a ?crit : > > > > > > Unsuscribe me please... thnx > > > > > > > > > ------------------------------------------------------------------------ > Todo ruedas: informaci?n pr?ctica y todo el glamour del mundo del > motor. MSN Estilo y Tendencias <http://estilo.es.msn.com/> > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From r_isfehani at yahoo.com Tue Mar 11 14:46:03 2008 From: r_isfehani at yahoo.com (R Isfahani) Date: Tue, 11 Mar 2008 14:46:03 -0700 (PDT) Subject: [mapserver-users] Farsi right-to-left labels Message-ID: <168450.95248.qm@web62411.mail.re1.yahoo.com> Hi, I'm trying to render some Farsi (Persian) labels on my map. As you may know, Farsi words are written from right to left, just like Hebrew. I've changed the label's encoding to 'Windows-1256' in my mapfile and I'm using TrueType fonts. Farsi letters have appeared. But the problem is that letters are in revers order and letters are not joining properly. Of course reversing the letters' order in database will cause the right order of them when rendering the map. But I wanna know if there's any other way to show farsi labels in right order with no joining problems. [Actually, I'm using Ka-Map on the top of Mapserver to render my maps on the web. Ka-Mappers told me that my problem is a kind of Mapserver problems] Any new ideas are welcomed. Thanx. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/feccd673/attachment.htm> From yassefa at dmsolutions.ca Tue Mar 11 15:36:26 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 11 Mar 2008 18:36:26 -0400 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <168450.95248.qm@web62411.mail.re1.yahoo.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> Message-ID: <47D7096A.1080502@dmsolutions.ca> Hi There, Have you looked at the PostArabic posgresql module (http://dcmms.sourceforge.net/postarabic.php). Not sure if Farsi and Arabic text are treated similarly but If that was the case, you can load your data into a postgres/postgis DB, install the postarabic module and use str_reverse and the shape_arabic functions available to display your postgis layer with the labels in Mapserver. Best Regards, R Isfahani wrote: > Hi, > > I'm trying to render some Farsi (Persian) labels on my map. As you may > know, Farsi words are written from right to left, just like Hebrew. > I've changed the label's encoding to 'Windows-1256' in my mapfile and > I'm using TrueType fonts. Farsi letters have appeared. But the problem > is that letters are in revers order and letters are not joining properly. > Of course reversing the letters' order in database will cause the right > order of them when rendering the map. But I wanna know if there's any > other way to show farsi labels in right order with no joining problems. > > [Actually, I'm using Ka-Map on the top of Mapserver to render my maps on > the web. Ka-Mappers told me that my problem is a kind of Mapserver problems] > > Any new ideas are welcomed. > Thanx. > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From justcallmejay at gmail.com Tue Mar 11 15:54:02 2008 From: justcallmejay at gmail.com (Jay Why) Date: Tue, 11 Mar 2008 17:54:02 -0500 Subject: [MAPSERVER-USERS] Follow does not work In-Reply-To: <a909eb410803110727vc76a771k395ec242af0a6e8a@mail.gmail.com> References: <2bdd38710803092301j56df1c3eo41b82c981ba52520@mail.gmail.com> <10cf58b30803100315j1d497e84m2d0e7a478658a0a@mail.gmail.com> <15962291.post@talk.nabble.com> <a909eb410803110727vc76a771k395ec242af0a6e8a@mail.gmail.com> Message-ID: <2bdd38710803111554u4c61dddw46d542c462e76c6b@mail.gmail.com> On Tue, Mar 11, 2008 at 9:27 AM, Marco Hung <mhungc at gmail.com> wrote: > Hi Jai, > > Try this structure in the LABEL > > example: > > LABEL > COLOR 0 0 0 > FONT "arial" > TYPE truetype > SIZE 6 > ANTIALIAS true > POSITION AUTO > MINDISTANCE 200 > PARTIALS FALSE > ANGLE FOLLOW > MINFEATURESIZE 20 > END > > > change the things that you dont need for example color, font etc but > not change the TYPE, the PARTIALS and the ANGLE. I study for several > months the way that how the label follow the same form of the objects > for example the roads..... > This work for me..... > What ever you need ask > i'm to the order. > > On Mon, Mar 10, 2008 at 5:52 PM, rich.fromm <nospam420 at yahoo.com> wrote: > > > > > > Rodrigo Mart?n L?PEZ GREGORIO-2 wrote: > > > > > > Try this: > > > > > > *ANGLE AUTO* > > > > > > This seems to work for me. > > > > > > > But, afaik, AUTO is not the same as FOLLOW. If you want, for example, > > curved labels on roads that are curved, following the road, you need > FOLLOW, > > not AUTO. > > > > I had previously had some preblems when (incorrectly, I believe) > specifying > > POSITION AUTO along with ANGLE FOLLOW: > > https://trac.osgeo.org/mapserver/ticket/2455 > > > > but it doesn't look like you're doing that, so I'm not sure why things > > aren't working for you. > > > > - Rich > > > > -- > > View this message in context: > http://www.nabble.com/Follow-does-not-work-tp15951740p15962291.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 > -- Jay Why -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/d3a35263/attachment.htm> From dfuhry at gmail.com Tue Mar 11 20:41:13 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Tue, 11 Mar 2008 23:41:13 -0400 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803091031.27361.ivan.mincik@gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <200803051326.36604.ivan.mincik@gmail.com> <90699a8d0803051341q3b5b623bp1e3a11b46e2e444b@mail.gmail.com> <200803091031.27361.ivan.mincik@gmail.com> Message-ID: <90699a8d0803112041t44139ba5kcfa9b7763123918c@mail.gmail.com> Ivan, p.mapper seems to use the typical php {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up calling the same msPOSTGIS* functions as everything else. I can't seem to reproduce your problem with a simple testcase (basically, the attached files). It might help if you can set log_min_duration_statement = 0 in your postgresql.conf, reproduce the problem, and send the output from your postgresql log file. It will show all commands issued to the database, including the BEGIN, and the DECLARE CURSOR ..., and FETCH for every layer. I can setup p.mapper if that's necessary to reproduce the problem. (By the way, I assume you're not using an ancient version of postgis, in the 0.5 - 0.6 era. There is an alternate codepath for that, which I have not tested.) Thanks, Dave On Sun, Mar 9, 2008 at 5:31 AM, Ivan Mincik <ivan.mincik at gmail.com> wrote: > I am sorry for late reply, > I am testing mapserver with p.mapper application so I *don't* use it as > cgi/fcgi. > > I have downloaded source package of mapserver 5.0.2 from debian unstable, > applied a patch and compiled on Debian Etch. > Installed and restarted apache and also rebooted whole system few times (I am > testing this on my desktop computer). > > The problems are starting mostly when I am trying to use p.mapper's identify > function, to get attributes of map object. Then p.mapper is freezing. > In mapfile i have 7 postgis layers. > > I can try this also with some openlayers which is using cgi. > > LOGS: > > 2008-03-09 10:24:44 CET WARNING: there is already a transaction in progress > 2008-03-09 10:24:45 CET WARNING: there is already a transaction in progress > 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:46 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:46 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:46 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:47 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:47 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:50 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:50 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:50 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:52 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:52 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:52 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:53 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:53 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:53 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:54 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:54 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:24:55 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:24:55 CET WARNING: there is no transaction in progress > 2008-03-09 10:24:55 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:25:00 CET WARNING: there is no transaction in progress > 2008-03-09 10:25:00 CET ERROR: cursor "mycursor" does not exist > 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be used in transaction > blocks > 2008-03-09 10:25:00 CET WARNING: there is no transaction in progress > 2008-03-09 10:25:01 CET ERROR: cursor "mycursor" does not exist > > > Thanks a lot > Ivan > > > > > On Wednesday 05 March 2008 22:41, you wrote: > > Ivan, > > > > Thanks for the problem report. If you are using fastcgi, you may > > need to restart it. > > > > The only two places PQconnectdb is called is in msPOSTGISLayerOpen > > and in msPOSTGRESQLJoinConnect, which operates independently, not > > using cursors or the connection pool. With a patched > > msPOSTGISLayerOpen, PQexec(layerinfo->conn, "BEGIN") is always called > > right after connecting, before any queries and before the connection > > ends up in the connection pool. > > > > So I'm wondering if you've put the new mapserv executable in your > > cgi-bin, but not restarted the webserver, and it's pulling old > > connections out of the fastcgi connection pool, which have not had > > PQexec(layerinfo->conn, "BEGIN") issued to them (and thus, no > > transaction started). > > > > Try restarting fastcgi. Depending on your configuration, > > restarting your webserver may automatically restart fastcgi, or you > > may have to specifically restart the fastcgi service/daemon on that > > machine. > > > > Please let us know if this fixes the problem. > > > > Thanks, > > > > Dave > > > > On Wed, Mar 5, 2008 at 7:26 AM, Ivan Mincik <ivan.mincik at gmail.com> wrote: > > > Nothing is perfect. There are no problems with applied patch when > > > browsing the map. But when I use identify object query from > > > php5-mapscript the problem is rising again. > > > > > > I have in postgresql log: > > > > > > 2008-03-05 13:19:30 CET WARNING: there is no transaction in progress > > > 2008-03-05 13:19:30 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-05 13:19:31 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-05 13:19:31 CET WARNING: there is no transaction in progress > > > 2008-03-05 13:19:31 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-05 13:19:32 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-05 13:19:32 CET WARNING: there is no transaction in progress > > > 2008-03-05 13:19:32 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-05 13:19:34 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-05 13:19:34 CET WARNING: there is no transaction in progress > > > 2008-03-05 13:19:34 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: autovacuum: processing database "gisplan" > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > Connection reset by peer > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > > > > > 2008-03-05 13:20:40 CET WARNING: there is already a transaction in > > > progress 2008-03-05 13:20:40 CET WARNING: there is already a transaction > > > in progress 2008-03-05 13:20:41 CET WARNING: there is already a > > > transaction in progress 2008-03-05 13:20:42 CET WARNING: there is > > > already a transaction in progress 2008-03-05 13:20:43 CET WARNING: there > > > is already a transaction in progress 2008-03-05 13:20:43 CET WARNING: > > > there is already a transaction in progress 2008-03-05 13:20:44 CET > > > WARNING: there is already a transaction in progress 2008-03-05 13:20:44 > > > CET WARNING: there is already a transaction in progress 2008-03-05 > > > 13:20:45 CET WARNING: there is already a transaction in progress > > > 2008-03-05 13:20:45 CET WARNING: there is already a transaction in > > > progress 2008-03-05 13:20:45 CET WARNING: there is already a transaction > > > in progress 2008-03-05 13:20:46 CET WARNING: there is already a > > > transaction in progress 2008-03-05 13:20:46 CET WARNING: there is > > > already a transaction in progress 2008-03-05 13:20:46 CET WARNING: there > > > is already a transaction in progress 2008-03-05 13:20:47 CET WARNING: > > > there is already a transaction in progress 2008-03-05 13:20:47 CET > > > WARNING: there is already a transaction in progress 2008-03-05 13:20:48 > > > CET WARNING: there is already a transaction in progress 2008-03-05 > > > 13:20:49 CET WARNING: there is already a transaction in progress > > > 2008-03-05 13:20:50 CET WARNING: there is already a transaction in > > > progress 2008-03-05 13:20:50 CET WARNING: there is already a transaction > > > in progress > > > > > > > > > ivan > > > > > > On Monday 03 March 2008 21:53, rich.fromm wrote: > > > > hrach wrote: > > > > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > > > > > > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > > > > > > > > I am now using it fine with mapserver 5.0.0 after applying the patch > > > > for bug 2497: > > > > http://trac.osgeo.org/mapserver/ticket/2497 > > > > > > > > I don't know if 4.10.3 is different enough for that patch to be > > > > applicable or not. But if it's not too hard to upgrade, you might > > > > want to try a later version (e.g. 5.0.2) plus that patch. Note that > > > > the patch may make it into the 5.0.3 release (it was originally > > > > targetted for 5.2). > > > > > > > > You also might want to take a look at the following related mailing > > > > list threads: > > > > > > > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653 > > > >945.h tml#a12674499 > > > > http://www.nabble.com/postgres-transaction-warnings-to15749333.html > > > > > > > > - Rich > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: ms_test.php Type: application/x-httpd-php Size: 309 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/4ebe94ed/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: muni_poly.map Type: application/octet-stream Size: 862 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080311/4ebe94ed/attachment.obj> From ritesh.linux at gmail.com Tue Mar 11 20:48:34 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Tue, 11 Mar 2008 20:48:34 -0700 (PDT) Subject: [MAPSERVER-USERS] AGG/PNG Driver Problem even if it is configured properly Message-ID: <15997331.post@talk.nabble.com> Dear Readers, I have configured mapserver on my linux machine with AGG support. mapserv -v shows "SUPPORTS = AGG". But, when I use AGG/PNG driver in my map file I get this error: OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured in ..... Please help me to know the base of this problem. Is there any way to check whether the AGG Driver is configured correctly? Thanks in advance, Ritesh Ambastha -- View this message in context: http://www.nabble.com/AGG-PNG-Driver-Problem-even-if-it-is-configured-properly-tp15997331p15997331.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Tue Mar 11 20:51:41 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Tue, 11 Mar 2008 20:51:41 -0700 (PDT) Subject: [MAPSERVER-USERS] Tile4ms pre-cached images loses quality Message-ID: <15997333.post@talk.nabble.com> Dear Mapserver Geniuses, I have used pre-caching script for my ka-map based map. The pre-cached images doesn't retain the same quality compared to on-the-fly generation of images. I am using png24 outputformat. Is it true that the tiled pre-cached images normally lose their quality? Is there any solution for solving this issue? Your suggestions will be highly appreciated. Regards, Ambastha -- View this message in context: http://www.nabble.com/Tile4ms-pre-cached-images-loses-quality-tp15997333p15997333.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sacha.black at gmail.com Tue Mar 11 20:59:19 2008 From: sacha.black at gmail.com (Sacha Black) Date: Tue, 11 Mar 2008 20:59:19 -0700 Subject: [MAPSERVER-USERS] Tile4ms pre-cached images loses quality In-Reply-To: <15997333.post@talk.nabble.com> References: <15997333.post@talk.nabble.com> Message-ID: <e778b4d00803112059i439bebc1qe50c4f9c591ace1a@mail.gmail.com> Ambastha, are you also trying to use AGG here ? with tile.php? if so you might be affected by this discussion / solution from the Ka-Map list: http://www.nabble.com/Ka-map-and-AGG-%2B-Alpha----Solved-%28need-confirm%29-to15973299.html Sacha On Tue, Mar 11, 2008 at 8:51 PM, riteshambastha <ritesh.linux at gmail.com> wrote: > > Dear Mapserver Geniuses, > > I have used pre-caching script for my ka-map based map. The pre-cached > images doesn't retain the same quality compared to on-the-fly generation of > images. I am using png24 outputformat. Is it true that the tiled pre-cached > images normally lose their quality? Is there any solution for solving this > issue? > > Your suggestions will be highly appreciated. > > Regards, > Ambastha > -- > View this message in context: http://www.nabble.com/Tile4ms-pre-cached-images-loses-quality-tp15997333p15997333.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 ritesh.linux at gmail.com Tue Mar 11 23:35:31 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Tue, 11 Mar 2008 23:35:31 -0700 (PDT) Subject: [MAPSERVER-USERS] Tile4ms pre-cached images loses quality In-Reply-To: <e778b4d00803112059i439bebc1qe50c4f9c591ace1a@mail.gmail.com> References: <15997333.post@talk.nabble.com> <e778b4d00803112059i439bebc1qe50c4f9c591ace1a@mail.gmail.com> Message-ID: <15998644.post@talk.nabble.com> Hey Sahca, thanks for sharing such helpful information. Still I am facing some problems. Kindly check this part of the code and see : elseif (strtoupper($_REQUEST['i']) == 'AGGA') { /// <-- also use AlphaCh if AGGA $useAlphaCh = true; } I think "AlphaCh if AGGA" must be commented. <snip> /////// in tile.php (around line 85): ///////////////// $useAlphaCh = false; if (isset($_REQUEST['i'])) { setOutputFormat( $_REQUEST['i'] ); if (strtoupper($_REQUEST['i']) == 'ALPHA') { $useAlphaCh = true; } elseif (strtoupper($_REQUEST['i']) == 'AGGA') { /// <-- also use AlphaCh if AGGA $useAlphaCh = true; } } </snip> Let me know if am not in the right direction. Thanks, Ritesh Sacha Black wrote: > > Ambastha, > > are you also trying to use AGG here ? with tile.php? if so you might > be affected by this discussion / solution from the Ka-Map list: > > http://www.nabble.com/Ka-map-and-AGG-%2B-Alpha----Solved-%28need-confirm%29-to15973299.html > > Sacha > > On Tue, Mar 11, 2008 at 8:51 PM, riteshambastha <ritesh.linux at gmail.com> > wrote: >> >> Dear Mapserver Geniuses, >> >> I have used pre-caching script for my ka-map based map. The pre-cached >> images doesn't retain the same quality compared to on-the-fly generation >> of >> images. I am using png24 outputformat. Is it true that the tiled >> pre-cached >> images normally lose their quality? Is there any solution for solving >> this >> issue? >> >> Your suggestions will be highly appreciated. >> >> Regards, >> Ambastha >> -- >> View this message in context: >> http://www.nabble.com/Tile4ms-pre-cached-images-loses-quality-tp15997333p15997333.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 > > -- View this message in context: http://www.nabble.com/Tile4ms-pre-cached-images-loses-quality-tp15997333p15998644.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at neogeo-online.net Wed Mar 12 02:05:11 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:05:11 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType Message-ID: <47D79CC7.2040400@neogeo-online.net> Hi again, I'm trying to use describeFeatureType to retrieve type and fields of a given layer. While it looks right for attibute data, the GeomType is not precise : <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/> The only piece of information I get in there is that the Geometry is of GeometryType, which I don't need any WFS request for ! Is there a specific METADATA item to add or use to be able to have the precise type (PolygonPropertyType for instance) ? Thanks, -- Guillaume SUEUR From yjacolin at free.fr Wed Mar 12 02:09:39 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 12 Mar 2008 10:09:39 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <47D79CC7.2040400@neogeo-online.net> References: <47D79CC7.2040400@neogeo-online.net> Message-ID: <200803121009.39527.yjacolin@free.fr> Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit?: > Hi again, > > I'm trying to use describeFeatureType to retrieve type and fields of a > given layer. > While it looks right for attibute data, the GeomType is not precise : > <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" > maxOccurs="1"/> > > The only piece of information I get in there is that the Geometry is of > GeometryType, which I don't need any WFS request for ! > > Is there a specific METADATA item to add or use to be able to have the > precise type (PolygonPropertyType for instance) ? > > Thanks, Hi Guillaume, You can use a SLD request on the layer. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Wed Mar 12 02:14:07 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:14:07 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <200803121009.39527.yjacolin@free.fr> References: <47D79CC7.2040400@neogeo-online.net> <200803121009.39527.yjacolin@free.fr> Message-ID: <47D79EDF.5060903@neogeo-online.net> which kind of SLD request ? Actually, I need the geomType to specify which SLD template to associate with the layer... Jacolin Yves a ?crit : > Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit : >> Hi again, >> >> I'm trying to use describeFeatureType to retrieve type and fields of a >> given layer. >> While it looks right for attibute data, the GeomType is not precise : >> <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" >> maxOccurs="1"/> >> >> The only piece of information I get in there is that the Geometry is of >> GeometryType, which I don't need any WFS request for ! >> >> Is there a specific METADATA item to add or use to be able to have the >> precise type (PolygonPropertyType for instance) ? >> >> Thanks, > > Hi Guillaume, > > You can use a SLD request on the layer. > > Y. From bartvde at osgis.nl Wed Mar 12 02:18:18 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 12 Mar 2008 10:18:18 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType Message-ID: <2cff738fcb2930b20117986d046a1109@145.50.39.11> Hi Guillaume, yes there is: "GML_GEOMETRY_TYPE" "multipolygon" "GML_GEOMETRIES" "geometry" Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: guillaume.sueur at neogeo-online.net Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> Onderwerp: [mapserver-users] WFS - DescribeFeatureType Datum: 12/03/08 07:06 > Hi again, > > I'm trying to use describeFeatureType to retrieve type and fields of a > given layer. > While it looks right for attibute data, the GeomType is not precise : > <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" > maxOccurs="1"/> > > The only piece of information I get in there is that the Geometry is of > GeometryType, which I don't need any WFS request for ! > > Is there a specific METADATA item to add or use to be able to have the > precise type (PolygonPropertyType for instance) ? > > Thanks, > -- > Guillaume SUEUR > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yjacolin at free.fr Wed Mar 12 02:20:29 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 12 Mar 2008 10:20:29 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <47D79EDF.5060903@neogeo-online.net> References: <47D79CC7.2040400@neogeo-online.net> <200803121009.39527.yjacolin@free.fr> <47D79EDF.5060903@neogeo-online.net> Message-ID: <200803121020.29078.yjacolin@free.fr> Hi, With a geStyle resquest, you get something like this for the polygon layer : <PolygonSymbolizer> <Fill> <CssParameter name="fill">#aaaa7f</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> </Stroke> </PolygonSymbolizer> For a polyline layer: <LineSymbolizer> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">1</CssParameter> </Stroke> </LineSymbolizer> For a point layer: <PointSymbolizer> <Graphic> <Mark> <WellKnownName>circle</WellKnownName> <Fill> <CssParameter name="fill">#0000c8</CssParameter> </Fill> </Mark> <Size>5</Size> </Graphic> </PointSymbolizer> Y. Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez ?crit?: > which kind of SLD request ? > Actually, I need the geomType to specify which SLD template to associate > with the layer... > > Jacolin Yves a ?crit : > > Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit : > >> Hi again, > >> > >> I'm trying to use describeFeatureType to retrieve type and fields of a > >> given layer. > >> While it looks right for attibute data, the GeomType is not precise : > >> <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" > >> maxOccurs="1"/> > >> > >> The only piece of information I get in there is that the Geometry is of > >> GeometryType, which I don't need any WFS request for ! > >> > >> Is there a specific METADATA item to add or use to be able to have the > >> precise type (PolygonPropertyType for instance) ? > >> > >> Thanks, > > > > Hi Guillaume, > > > > You can use a SLD request on the layer. > > > > Y. -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Wed Mar 12 02:22:03 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:22:03 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <200803121020.29078.yjacolin@free.fr> References: <47D79CC7.2040400@neogeo-online.net> <200803121009.39527.yjacolin@free.fr> <47D79EDF.5060903@neogeo-online.net> <200803121020.29078.yjacolin@free.fr> Message-ID: <47D7A0BB.7070809@neogeo-online.net> Will that work if no SLD is yet associated to the mapfile and maplayer ? Jacolin Yves a ?crit : > Hi, > > With a geStyle resquest, you get something like this for the polygon layer : > <PolygonSymbolizer> > <Fill> > <CssParameter name="fill">#aaaa7f</CssParameter> > </Fill> > <Stroke> > <CssParameter name="stroke">#000000</CssParameter> > </Stroke> > </PolygonSymbolizer> > > For a polyline layer: > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#000000</CssParameter> > <CssParameter name="stroke-width">1</CssParameter> > </Stroke> > </LineSymbolizer> > > For a point layer: > > <PointSymbolizer> > <Graphic> > <Mark> > <WellKnownName>circle</WellKnownName> > <Fill> > <CssParameter name="fill">#0000c8</CssParameter> > </Fill> > </Mark> > <Size>5</Size> > </Graphic> > </PointSymbolizer> > > Y. > Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez ?crit : >> which kind of SLD request ? >> Actually, I need the geomType to specify which SLD template to associate >> with the layer... >> >> Jacolin Yves a ?crit : >>> Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit : >>>> Hi again, >>>> >>>> I'm trying to use describeFeatureType to retrieve type and fields of a >>>> given layer. >>>> While it looks right for attibute data, the GeomType is not precise : >>>> <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" >>>> maxOccurs="1"/> >>>> >>>> The only piece of information I get in there is that the Geometry is of >>>> GeometryType, which I don't need any WFS request for ! >>>> >>>> Is there a specific METADATA item to add or use to be able to have the >>>> precise type (PolygonPropertyType for instance) ? >>>> >>>> Thanks, >>> Hi Guillaume, >>> >>> You can use a SLD request on the layer. >>> >>> Y. > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From guillaume.sueur at neogeo-online.net Wed Mar 12 02:23:01 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:23:01 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <2cff738fcb2930b20117986d046a1109@145.50.39.11> References: <2cff738fcb2930b20117986d046a1109@145.50.39.11> Message-ID: <47D7A0F5.80006@neogeo-online.net> Thanks Bart ! As I can see, I need to set myself the geometry type, as I do it already in the TYPE attribute of the LAYER. Do you know why ? Thanks, Bart van den Eijnden (OSGIS) a ?crit : > Hi Guillaume, > > yes there is: > > "GML_GEOMETRY_TYPE" "multipolygon" > "GML_GEOMETRIES" "geometry" > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: guillaume.sueur at neogeo-online.net > Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> > Onderwerp: [mapserver-users] WFS - DescribeFeatureType > Datum: 12/03/08 07:06 > >> Hi again, >> >> I'm trying to use describeFeatureType to retrieve type and fields of a >> given layer. >> While it looks right for attibute data, the GeomType is not precise : >> <element name="msGeometry" > type="gml:GeometryPropertyType" minOccurs="0" >> maxOccurs="1"/> >> >> The only piece of information I get in there is that the Geometry is of >> GeometryType, which I don't need any WFS request for ! >> >> Is there a specific METADATA item to add or use to be able to have the >> precise type (PolygonPropertyType for instance) ? >> >> Thanks, >> -- >> Guillaume SUEUR >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From bartvde at osgis.nl Wed Mar 12 02:25:18 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 12 Mar 2008 10:25:18 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType Message-ID: <ce862707ecbded823ee6cc468c5a2ebd@145.50.39.11> It's because Mapserver can't know, without scanning the whole dataset, if it is multipolygon or polygon for instance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: guillaume.sueur at neogeo-online.net Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl> Cc: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] WFS - DescribeFeatureType Datum: 12/03/08 07:23 > Thanks Bart ! > As I can see, I need to set myself the geometry type, as I do it already > in the TYPE attribute of the LAYER. > > Do you know why ? > > Thanks, > > Bart van den Eijnden (OSGIS) a ?crit : > > Hi Guillaume, > > > > yes there is: > > > > "GML_GEOMETRY_TYPE" "multipolygon" > > "GML_GEOMETRIES" "geometry" > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > --------- Oorspronkelijk bericht -------- > > Van: guillaume.sueur at neogeo-online.net > > Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> > > Onderwerp: [mapserver-users] WFS - DescribeFeatureType > > Datum: 12/03/08 07:06 > > > >> Hi again, > >> > >> I'm trying to use describeFeatureType to retrieve type and fields of a > >> given layer. > >> While it looks right for attibute data, the GeomType is not precise : > >> &lt;element name=&quot;msGeometry&quot; > > type=&quot;gml:GeometryPropertyType&quot; minOccurs=&quot;0&quot; > >> maxOccurs=&quot;1&quot;/&gt; > >> > >> The only piece of information I get in there is that the Geometry is of > >> GeometryType, which I don't need any WFS request for ! > >> > >> Is there a specific METADATA item to add or use to be able to have the > >> precise type (PolygonPropertyType for instance) ? > >> > >> Thanks, > >> -- > >> Guillaume SUEUR > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > > > > > > > > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > > From guillaume.sueur at neogeo-online.net Wed Mar 12 02:27:10 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:27:10 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <ce862707ecbded823ee6cc468c5a2ebd@145.50.39.11> References: <ce862707ecbded823ee6cc468c5a2ebd@145.50.39.11> Message-ID: <47D7A1EE.6040901@neogeo-online.net> Right Thanks Bart van den Eijnden (OSGIS) a ?crit : > It's because Mapserver can't know, without scanning the whole dataset, if it > is multipolygon or polygon for instance. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: guillaume.sueur at neogeo-online.net > Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl> > Cc: mapserver-users at lists.osgeo.org > Onderwerp: Re: [mapserver-users] WFS - DescribeFeatureType > Datum: 12/03/08 07:23 > >> Thanks Bart ! >> As I can see, I need to set myself the geometry type, as I do it already >> in the TYPE attribute of the LAYER. >> >> Do you know why ? >> >> Thanks, >> >> Bart van den Eijnden (OSGIS) a ?crit : >> > Hi Guillaume, >> > >> > yes there is: >> > >> > "GML_GEOMETRY_TYPE" "multipolygon" >> > "GML_GEOMETRIES" "geometry" >> > >> > Best regards, >> > Bart >> > >> > -- >> > Bart van den Eijnden >> > OSGIS, Open Source GIS >> > http://www.osgis.nl >> > >> > >> > --------- Oorspronkelijk bericht -------- >> > Van: guillaume.sueur at neogeo-online.net >> > Naar: mapserver-users at lists.osgeo.org > <mapserver-users at lists.osgeo.org> >> > Onderwerp: [mapserver-users] WFS - DescribeFeatureType >> > Datum: 12/03/08 07:06 >> > >> >> Hi again, >> >> >> >> I'm trying to use describeFeatureType to retrieve type and fields > of a >> >> given layer. >> >> While it looks right for attibute data, the GeomType is not > precise : >> >> &lt;element name=&quot;msGeometry&quot; >> > type=&quot;gml:GeometryPropertyType&quot; > minOccurs=&quot;0&quot; >> >> maxOccurs=&quot;1&quot;/&gt; >> >> >> >> The only piece of information I get in there is that the Geometry > is of >> >> GeometryType, which I don't need any WFS request for ! >> >> >> >> Is there a specific METADATA item to add or use to be able to > have the >> >> precise type (PolygonPropertyType for instance) ? >> >> >> >> Thanks, >> >> -- >> >> Guillaume SUEUR >> >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > >> > >> > >> > >> >> -- >> Guillaume SUEUR >> Expert SIG et OpenSource >> NEOGEO >> 46 RUE MATABIAU >> 31000 TOULOUSE >> 06 74 91 95 20 >> Site web : http://www.neogeo-online.net >> >> >> > > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From yjacolin at free.fr Wed Mar 12 02:30:22 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 12 Mar 2008 10:30:22 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <47D7A0BB.7070809@neogeo-online.net> References: <47D79CC7.2040400@neogeo-online.net> <200803121020.29078.yjacolin@free.fr> <47D7A0BB.7070809@neogeo-online.net> Message-ID: <200803121030.22179.yjacolin@free.fr> Hi, Mapserver is a SLD server by default (i mean no extra configuration, no extra build), just ask to mapserv cgi and you get it. The style is the one you setup in your LAYER CLASS object. You can even change it and send it back to mapserver to change the style of the LAYER. This is what I do for a simple map export to define the new opacity of the layer, opacity changed by my openLayer side. Y. Le Wednesday 12 March 2008 10:22:03 Guillaume Sueur, vous avez ?crit?: > Will that work if no SLD is yet associated to the mapfile and maplayer ? > > Jacolin Yves a ?crit : > > Hi, > > > > With a geStyle resquest, you get something like this for the polygon > > layer : <PolygonSymbolizer> > > <Fill> > > <CssParameter name="fill">#aaaa7f</CssParameter> > > </Fill> > > <Stroke> > > <CssParameter name="stroke">#000000</CssParameter> > > </Stroke> > > </PolygonSymbolizer> > > > > For a polyline layer: > > <LineSymbolizer> > > <Stroke> > > <CssParameter name="stroke">#000000</CssParameter> > > <CssParameter name="stroke-width">1</CssParameter> > > </Stroke> > > </LineSymbolizer> > > > > For a point layer: > > > > <PointSymbolizer> > > <Graphic> > > <Mark> > > <WellKnownName>circle</WellKnownName> > > <Fill> > > <CssParameter name="fill">#0000c8</CssParameter> > > </Fill> > > </Mark> > > <Size>5</Size> > > </Graphic> > > </PointSymbolizer> > > > > Y. > > > > Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez ?crit : > >> which kind of SLD request ? > >> Actually, I need the geomType to specify which SLD template to associate > >> with the layer... > >> > >> Jacolin Yves a ?crit : > >>> Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit : > >>>> Hi again, > >>>> > >>>> I'm trying to use describeFeatureType to retrieve type and fields of a > >>>> given layer. > >>>> While it looks right for attibute data, the GeomType is not precise : > >>>> <element name="msGeometry" type="gml:GeometryPropertyType" > >>>> minOccurs="0" maxOccurs="1"/> > >>>> > >>>> The only piece of information I get in there is that the Geometry is > >>>> of GeometryType, which I don't need any WFS request for ! > >>>> > >>>> Is there a specific METADATA item to add or use to be able to have the > >>>> precise type (PolygonPropertyType for instance) ? > >>>> > >>>> Thanks, > >>> > >>> Hi Guillaume, > >>> > >>> You can use a SLD request on the layer. > >>> > >>> Y. -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at free.fr Wed Mar 12 02:34:15 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 12 Mar 2008 10:34:15 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <2cff738fcb2930b20117986d046a1109@145.50.39.11> References: <2cff738fcb2930b20117986d046a1109@145.50.39.11> Message-ID: <200803121034.15980.yjacolin@free.fr> Thanks Bart, I am interesting by this info as well :) Y. Le Wednesday 12 March 2008 10:18:18 Bart van den Eijnden (OSGIS), vous avez ?crit?: > Hi Guillaume, > > yes there is: > > "GML_GEOMETRY_TYPE" "multipolygon" > "GML_GEOMETRIES" "geometry" > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: guillaume.sueur at neogeo-online.net > Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org> > Onderwerp: [mapserver-users] WFS - DescribeFeatureType > Datum: 12/03/08 07:06 > > > Hi again, > > > > I'm trying to use describeFeatureType to retrieve type and fields of a > > given layer. > > While it looks right for attibute data, the GeomType is not precise : > > <element name="msGeometry" > > type="gml:GeometryPropertyType" minOccurs="0" > > > maxOccurs="1"/> > > > > The only piece of information I get in there is that the Geometry is of > > GeometryType, which I don't need any WFS request for ! > > > > Is there a specific METADATA item to add or use to be able to have the > > precise type (PolygonPropertyType for instance) ? > > > > Thanks, > > -- > > Guillaume SUEUR > > > > > > _______________________________________________ > > 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 -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Wed Mar 12 02:34:56 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 12 Mar 2008 10:34:56 +0100 Subject: [mapserver-users] WFS - DescribeFeatureType In-Reply-To: <200803121030.22179.yjacolin@free.fr> References: <47D79CC7.2040400@neogeo-online.net> <200803121020.29078.yjacolin@free.fr> <47D7A0BB.7070809@neogeo-online.net> <200803121030.22179.yjacolin@free.fr> Message-ID: <47D7A3C0.6050401@neogeo-online.net> bien vu ! merci ! Jacolin Yves a ?crit : > Hi, > > Mapserver is a SLD server by default (i mean no extra configuration, no extra > build), just ask to mapserv cgi and you get it. The style is the one you > setup in your LAYER CLASS object. You can even change it and send it back to > mapserver to change the style of the LAYER. > > This is what I do for a simple map export to define the new opacity of the > layer, opacity changed by my openLayer side. > > Y. > Le Wednesday 12 March 2008 10:22:03 Guillaume Sueur, vous avez ?crit : >> Will that work if no SLD is yet associated to the mapfile and maplayer ? >> >> Jacolin Yves a ?crit : >>> Hi, >>> >>> With a geStyle resquest, you get something like this for the polygon >>> layer : <PolygonSymbolizer> >>> <Fill> >>> <CssParameter name="fill">#aaaa7f</CssParameter> >>> </Fill> >>> <Stroke> >>> <CssParameter name="stroke">#000000</CssParameter> >>> </Stroke> >>> </PolygonSymbolizer> >>> >>> For a polyline layer: >>> <LineSymbolizer> >>> <Stroke> >>> <CssParameter name="stroke">#000000</CssParameter> >>> <CssParameter name="stroke-width">1</CssParameter> >>> </Stroke> >>> </LineSymbolizer> >>> >>> For a point layer: >>> >>> <PointSymbolizer> >>> <Graphic> >>> <Mark> >>> <WellKnownName>circle</WellKnownName> >>> <Fill> >>> <CssParameter name="fill">#0000c8</CssParameter> >>> </Fill> >>> </Mark> >>> <Size>5</Size> >>> </Graphic> >>> </PointSymbolizer> >>> >>> Y. >>> >>> Le Wednesday 12 March 2008 10:14:07 Guillaume Sueur, vous avez ?crit : >>>> which kind of SLD request ? >>>> Actually, I need the geomType to specify which SLD template to associate >>>> with the layer... >>>> >>>> Jacolin Yves a ?crit : >>>>> Le Wednesday 12 March 2008 10:05:11 Guillaume Sueur, vous avez ?crit : >>>>>> Hi again, >>>>>> >>>>>> I'm trying to use describeFeatureType to retrieve type and fields of a >>>>>> given layer. >>>>>> While it looks right for attibute data, the GeomType is not precise : >>>>>> <element name="msGeometry" type="gml:GeometryPropertyType" >>>>>> minOccurs="0" maxOccurs="1"/> >>>>>> >>>>>> The only piece of information I get in there is that the Geometry is >>>>>> of GeometryType, which I don't need any WFS request for ! >>>>>> >>>>>> Is there a specific METADATA item to add or use to be able to have the >>>>>> precise type (PolygonPropertyType for instance) ? >>>>>> >>>>>> Thanks, >>>>> Hi Guillaume, >>>>> >>>>> You can use a SLD request on the layer. >>>>> >>>>> Y. > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From Jukka.Rahkonen at mmmtike.fi Wed Mar 12 02:53:26 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 12 Mar 2008 11:53:26 +0200 Subject: [mapserver-users] WFS - Properly working examples wanted References: <2cff738fcb2930b20117986d046a1109@145.50.39.11> Message-ID: <CC197224AC75CE4DB23F739B16891B86E33CDC@tikka.haapa.mmm.fi> Hi, I have big troubles in using my MapServer WFS service with GIS clients. I have followed documents like WFS Servers with Mapserver and some others, and it is rather easy to get the service to work somehow. I can send requests with browser and wget and I'll get back something that looks good. I can even convert the GML I receive with ogr2ogr to other formats. But still there must be something wrong because real clients have problems with parsing. Same clients work fine with my Geoserver. As a client I have been using, OpenJUMP, QGIS and Cadcorp SIS map browser. I would like to isolate where the problem is, and therefore it would be very nice to get a minimal but complete mapfile that is known to work well with some named GIS client, or a link to a well configured WFS server using Mapserver. I may be wrong but for my mind the often referred one at www2.dmsolutions.ca does not behave much better than my own installation. I would like to get the system work with any client in such a way that getCapabilities and describeFeatureType results gets correctly parsed and I could make succesful getFeature request with including both attribute and spatial filters. Once I have something that works in my hands I hope I may have some possibilities to find out why some other combinations do not work. -Jukka Rahkonen- From yvan.calcagni at voila.fr Wed Mar 12 03:26:12 2008 From: yvan.calcagni at voila.fr (Yvan Calcagni) Date: Wed, 12 Mar 2008 11:26:12 +0100 (CET) Subject: [mapserver-users] How to give angle to labels with mapserver mapscript 5.0 and OGR:LabelAngle Message-ID: <22928146.1059871205317572732.JavaMail.www@wwinf4610> Hi everybody, I have upgraded mapserver mapscript from 4.8 to 5.0 and I'm trying to render an annotation layer (with OGR connection) with angles. With the 4.8, I was using class->set("anglelabelitem","OGR:LabelAngle"), because angles are embedded in the layer. So now, as anglelabelitem doesn't exist anymore, I'm trying to use class->label->set("angle","OGR:LabelAngle") but it gives me no result. It doesn't produce errors but label aren't oriented. If anyone have an idea... Thanks in advance. Yvan From amit_101082 at yahoo.co.in Wed Mar 12 03:33:45 2008 From: amit_101082 at yahoo.co.in (amit tripathi) Date: Wed, 12 Mar 2008 16:03:45 +0530 (IST) Subject: [mapserver-users] Problem working with mapserver on linux Message-ID: <199424.25842.qm@web7603.mail.in.yahoo.com> Hi All, When i try to use mapserver on linux using jdk1.5.10, i got this error: []java.lang.UnsatisfiedLinkError: /home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so: Can't load IA 32-bit .so on a IA 32-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at edu.umn.gis.mapscript.mapscriptJNI.<clinit>(mapscriptJNI.java:23) at edu.umn.gis.mapscript.pointObj.<init>(pointObj.java:98) at com.freightdesk.fdmonitor.common.KPIDisplayManager.getMapDisplayType(KPIDisplayManager.java:323) can somebody help me? I am getting maps run with the same setup on a different server. Best Regards, Amit ___________________________________________________________ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From aberenyi at burken.hu Wed Mar 12 04:46:07 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Wed, 12 Mar 2008 12:46:07 +0100 Subject: [mapserver-users] update map after layer status MS_DELETE Message-ID: <47D7C27F.5000108@burken.hu> Dear List, I try to delete a layer from the current map set with these commands (executed in a popup window): $oLayer = $oMapSession->oMap->getLayerByName("teszt"); $oLayer->set('status', MS_DELETE); If I query the layer's properties after those, it says it's status is 4, which seems to be ok. But how can I update the current map set (in the parent window)? Any help would be very much appreciated! :) Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/850b9ac2/attachment.htm> From gis at vanbooth.com Wed Mar 12 04:51:42 2008 From: gis at vanbooth.com (Rob) Date: Wed, 12 Mar 2008 11:51:42 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <47D69AD1.1000204@mapgears.com> References: <2a955f950803110410r48be93c4w481aa50ff8b20d34@mail.gmail.com> <47D69AD1.1000204@mapgears.com> Message-ID: <2a955f950803120451i17bd3331t8a1aaaf6f57019d6@mail.gmail.com> On 11/03/2008, Daniel Morissette <dmorissette at mapgears.com> wrote: > > > This long time looking up EPSG projection codes is a known issue and > I'll try to fix it for the 5.2 release. > > In the meantime, an alternative to significantly reduce the lookup time > is to move the definitions that you use the most often (e.g. 27700 in > this case) to the top of PROJ4's "epsg" file. If you can afford to use a native PROJ4 definition then that will be > even faster. Excuse the stupid question, but what do you mean by native PROJ4 definition? Do you mean applying the inline parameters directly? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/68629693/attachment.htm> From Kai-Behncke at gmx.de Wed Mar 12 05:33:35 2008 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Wed, 12 Mar 2008 13:33:35 +0100 Subject: [mapserver-users] LAYER CHART Message-ID: <20080312123335.309530@gmx.net> Hello list, I have a questions about LAYER CHART. Is it possible to set a LABLE to the pies or bars so that I can see with value they have? If not is this maybe planned in future versions? Thank you very much, Kai -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf at gmx From thomas.bonfort at gmail.com Wed Mar 12 05:48:37 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 12 Mar 2008 13:48:37 +0100 Subject: [mapserver-users] LAYER CHART In-Reply-To: <20080312123335.309530@gmx.net> References: <20080312123335.309530@gmx.net> Message-ID: <d2b988930803120548q42b48c9s68c76cfb20992731@mail.gmail.com> On Wed, Mar 12, 2008 at 1:33 PM, Kai Behncke <Kai-Behncke at gmx.de> wrote: > Hello list, > > I have a questions about LAYER CHART. > Is it possible to set a LABLE to the pies or bars so that I can see with value they have? no > If not is this maybe planned in future versions? maybe ;) > Thank you very much, Kai can't say much more, sorry, thomas From Jukka.Rahkonen at mmmtike.fi Wed Mar 12 06:44:50 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 12 Mar 2008 15:44:50 +0200 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803120451i17bd3331t8a1aaaf6f57019d6@mail.gmail.com> Message-ID: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> Rob wrote: > Excuse the stupid question, but what do you mean by native PROJ4 definition? Do you mean applying the inline parameters directly? He means giving the projections with the actual strings which are also hidings behind the epsg codes, for example this means the same as epsg:2393 PROJECTION "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" Projection strings are slower to write into mapfile but for Mapserver they are faster to execute because these is no need to jump to projection library file. If you have MS4W installation you can find the strings to use from D:\ms4w\proj\nad directory, most of them from file names epsg. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/0e3f318f/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Wed Mar 12 06:54:53 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 12 Mar 2008 15:54:53 +0200 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> Message-ID: <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> > > Excuse the stupid question, but what do you mean by native PROJ4 definition? Do you mean applying the inline parameters directly? > He means giving the projections with the actual strings which are also hidings behind the epsg codes, > for example this means the same as epsg:2393PROJECTION "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 > +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" > Projection strings are slower to write int mapfile but for Mapserver they are faster to execute because these is > no need to jump to projection library file. If you have MS4W installation you can find the strings to use from > D:\ms4w\proj\nad directory, most of them from file names epsg. Excuse the stupid answer, you were asking about MapScript which I know nothing about. Basically it must be about the same thing, though. -Jukka- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/b0533f73/attachment.htm> From dmorissette at mapgears.com Wed Mar 12 07:29:55 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 12 Mar 2008 10:29:55 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> References: <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> Message-ID: <47D7E8E3.9070407@mapgears.com> Rahkonen Jukka wrote: > > > Excuse the stupid question, but what do you mean by native PROJ4 > definition? Do you mean applying the inline parameters directly? > >> He means giving the projections with the actual strings which are also > hidings behind the epsg codes, >> for example this means the same as epsg:2393PROJECTION "+proj=tmerc > +lat_0=0 +lon_0=27 +k=1.000000 >> +x_0=3500000 +y_0=0 +ellps=intl > +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" >> Projection strings are slower to write int mapfile but for Mapserver > they are faster to execute because these is >> no need to jump to projection library file. If you have MS4W > installation you can find the strings to use from >> D:\ms4w\proj\nad directory, most of them from file names epsg. > > Excuse the stupid answer, you were asking about MapScript which I know > nothing about. Basically it must be > about the same thing, though. > Your answer applies to MapScript as well. In the MapScript case you'd do: $map->setProjection("+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" Daniel -- Daniel Morissette http://www.mapgears.com/ From gis at vanbooth.com Wed Mar 12 08:12:11 2008 From: gis at vanbooth.com (Rob) Date: Wed, 12 Mar 2008 15:12:11 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> References: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> Message-ID: <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> Well so far, I have tried to set my projection to '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSB36 +units=m +no_defs' '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs' '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=osb36 +units=m +no_defs' '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +datum=OSGB36 +units=m +no_defs' '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs' but it only works with 'init=epsg:27700' Error messages for the other attempts include 'unknown eliptical parameter name' and 'projection not named' . Typing them out again it is obvious that there are some combinations I still havent tried, but it does feel a little hopeful that a random combination of parameters will work and give me the answer I want! :o) I have tried creating a dummy epsg file which contains just two rows representing the 27700 entry (including the preceeding comment line in case the parser expects it to be there) and whilst this obviously still works, it has made little or no difference to the time taken to assign a projection to the map/layer. Coming at it from a different angle, if I am ALWAYS going to be using the same projection, do I need to set any projection parameters at all? As always, any help gratefully received Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/b89921f7/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Wed Mar 12 08:26:33 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 12 Mar 2008 17:26:33 +0200 Subject: VS: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> Message-ID: <CC197224AC75CE4DB23F739B16891B866E765D@tikka.haapa.mmm.fi> > Well so far, I have tried to set my projection to > '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSB36 +units=m +no_defs' > '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs' > '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=osb36 +units=m +no_defs' > '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +datum=OSGB36 +units=m +no_defs' > '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs' > but it only works with > 'init=epsg:27700' Don't give up, it will work. Error messages do not alway mean what they say. Play with single and double quatas; insert the strings for epsg:4326 or some other projection in order to see if you still get the same error. -Jukka- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/e14b3b52/attachment.htm> From dmorissette at mapgears.com Wed Mar 12 08:47:55 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 12 Mar 2008 11:47:55 -0400 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <168450.95248.qm@web62411.mail.re1.yahoo.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> Message-ID: <47D7FB2B.80602@mapgears.com> Copying what I wrote earlier this morning on the ka-map list (sorry for those on both lists): FYI there is an open MapServer ticket about this: http://trac.osgeo.org/mapserver/ticket/956 The ticket even includes a patch that you may want to try. I'll try to address this one for MapServer 5.2. Daniel R Isfahani wrote: > Hi, > > I'm trying to render some Farsi (Persian) labels on my map. As you may > know, Farsi words are written from right to left, just like Hebrew. > I've changed the label's encoding to 'Windows-1256' in my mapfile and > I'm using TrueType fonts. Farsi letters have appeared. But the problem > is that letters are in revers order and letters are not joining properly. > Of course reversing the letters' order in database will cause the right > order of them when rendering the map. But I wanna know if there's any > other way to show farsi labels in right order with no joining problems. > > [Actually, I'm using Ka-Map on the top of Mapserver to render my maps on > the web. Ka-Mappers told me that my problem is a kind of Mapserver problems] > > Any new ideas are welcomed. > Thanx. > From benftee at gmail.com Wed Mar 12 08:51:31 2008 From: benftee at gmail.com (Ben Thompson) Date: Wed, 12 Mar 2008 11:51:31 -0400 Subject: [mapserver-users] SET MAPSERVER-DEV DIGEST Message-ID: <e1fe7aa0803120851h4758e9dfk76e9f35352ccbb4@mail.gmail.com> SET MAPSERVER-USERS DIGEST -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/65d5f4f1/attachment.htm> From woodbri at swoodbridge.com Wed Mar 12 10:02:06 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Mar 2008 12:02:06 -0500 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D7FB2B.80602@mapgears.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> Message-ID: <47D80C8E.4050907@swoodbridge.com> Hi Daniel, I looked at the patch briefly. It doesn't seem to be doing character joining for works in Arabic. I'm thinking that if we had the algorithm to do the joining then we could add that and maybe a Tag or metadata item that enabled the joining if needed. The joining algorithm, might be smart enough to only join Arabic letters and leave the rest alone. If you are interested, I think I can get my hands on a perl script that does the joining. -Steve W Daniel Morissette wrote: > Copying what I wrote earlier this morning on the ka-map list (sorry for > those on both lists): > > FYI there is an open MapServer ticket about this: > http://trac.osgeo.org/mapserver/ticket/956 > > The ticket even includes a patch that you may want to try. I'll try to > address this one for MapServer 5.2. > > Daniel > > > R Isfahani wrote: >> Hi, >> >> I'm trying to render some Farsi (Persian) labels on my map. As you may >> know, Farsi words are written from right to left, just like Hebrew. >> I've changed the label's encoding to 'Windows-1256' in my mapfile and >> I'm using TrueType fonts. Farsi letters have appeared. But the problem >> is that letters are in revers order and letters are not joining properly. >> Of course reversing the letters' order in database will cause the >> right order of them when rendering the map. But I wanna know if >> there's any other way to show farsi labels in right order with no >> joining problems. >> >> [Actually, I'm using Ka-Map on the top of Mapserver to render my maps >> on the web. Ka-Mappers told me that my problem is a kind of Mapserver >> problems] >> >> Any new ideas are welcomed. >> Thanx. >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Wed Mar 12 09:06:06 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 12 Mar 2008 12:06:06 -0400 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D80C8E.4050907@swoodbridge.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> <47D80C8E.4050907@swoodbridge.com> Message-ID: <47D7FF6E.9080407@mapgears.com> Stephen Woodbridge wrote: > Hi Daniel, > > I looked at the patch briefly. > It doesn't seem to be doing character joining for works in Arabic. > > I'm thinking that if we had the algorithm to do the joining then we > could add that and maybe a Tag or metadata item that enabled the joining > if needed. The joining algorithm, might be smart enough to only join > Arabic letters and leave the rest alone. > > If you are interested, I think I can get my hands on a perl script that > does the joining. > I have to admit I'm not sure what's involved or even meant by character joining (I didn't look at this yet). To avoid bloating ticket #956 with too much stuff, perhaps you could file another ticket with a description of that specific joining issue, and links to relevant Perl code, examples, and whatever might help me address this (and then link to the new ticket as a related issue in Ticket #956). Daniel -- Daniel Morissette http://www.mapgears.com/ From Janosch.Skrobek at trier.de Wed Mar 12 09:18:27 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Wed, 12 Mar 2008 17:18:27 +0100 Subject: [mapserver-users] turn off layers In-Reply-To: <e1fe7aa0803120851h4758e9dfk76e9f35352ccbb4@mail.gmail.com> References: <e1fe7aa0803120851h4758e9dfk76e9f35352ccbb4@mail.gmail.com> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D1F77DE@rh-ex-02.rathaus.trier> Hi everyone! I'm sure this is a really easy problem but I've been trying to find a solution for more than an hour now and I can't seem to get it working. I have got 3 Layers which are STATUS OFF in the mapfile. So when I load my Map in browse modus nothing is shown. When I check one of the checkboxes and click "refresh" the layer appears (and also shows up in the address-line of the browser). But when I uncheck it and refresh it just won't turn off. When the page has reloaded the variable is still in the address line and the checkbox is still checked ... Can anyone tell me what I'm doing wrong? I first load the map like this: http://localhost/cgi-bin/mapserv.exe?root=/atkis&program=/cgi-bin/mapser v.exe&map=/ms4w/apps/atkis/test1.map&mode=browse&zoom=1 My form looks like this (its basically a copy of the tutorial 2.2 - template by Pericles S. Nacionales [in the tutorial it works just fine but not in my map :(]): <form name="mapserv" method="GET" action="[program]"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="root" value="[root]" /> <input type="hidden" name="program" value="[program]" /> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="[center]" /> <input type="hidden" name="layers" value="[layers]" /> <input type="hidden" name="zoom" value="[zoom]" /> <table width="600" border="0" align="center"> <tr> <td> <table width="400" border="1" align="center"> <tr> <td colspan="3">Select Layers: <!-- SPECIFY VECTOR LAYERS --> <input type="checkbox" name="layer" value="nutz" [nutz_check]> Nutzflächen  <input type="checkbox" name="layer" value="vegetation" [vegetation_check]> Wald & Wasser   <input type="checkbox" name="layer" value="ausgleich" [ausgleich_check]>Ausgleichsflächen<br> <!-- SPECIFY RASTER LAYERS --> Select Background: <select name="layer"> <option value=" " [ _select]>No Background</option> <option value="dtk5g" [dtk5g_select]> DTK5 Grundriss </option> </select> </td> </tr> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode:<br> <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh"> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <br> <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="1024" height="768" border="0" /> </td> </tr> </table> </td> </tr> </table> </form> Thank you for your help Janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From Janosch.Skrobek at trier.de Wed Mar 12 09:46:29 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Wed, 12 Mar 2008 17:46:29 +0100 Subject: AW: [mapserver-users] turn off layers In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D1F77DE@rh-ex-02.rathaus.trier> References: <e1fe7aa0803120851h4758e9dfk76e9f35352ccbb4@mail.gmail.com> <59CDEE83AFA9B944A7FB96B032E7537D1F77DE@rh-ex-02.rathaus.trier> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D1F77E7@rh-ex-02.rathaus.trier> please disregard my last mail ... I've been searching for such a long time and just didn't see that I was always storing the current layers in a hidden input field so when I'd reload the page all the layers would be in that file again ... time to leave the office and go home I guess :) best regards janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From naci0002 at umn.edu Wed Mar 12 10:54:31 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Wed, 12 Mar 2008 12:54:31 -0500 Subject: [mapserver-users] turn off layers In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D1F77DE@rh-ex-02.rathaus.trier> References: <e1fe7aa0803120851h4758e9dfk76e9f35352ccbb4@mail.gmail.com> <59CDEE83AFA9B944A7FB96B032E7537D1F77DE@rh-ex-02.rathaus.trier> Message-ID: <47D818D7.3000301@umn.edu> Janosch, Try removing 'name="submit"' in the <input type="submit" ...> tag. See what happens. -Perry Janosch.Skrobek at trier.de wrote: > Hi everyone! > > I'm sure this is a really easy problem but I've been trying to find a > solution for more than an hour now and I can't seem to get it working. > > I have got 3 Layers which are STATUS OFF in the mapfile. So when I load > my Map in browse modus nothing is shown. When I check one of the > checkboxes and click "refresh" the layer appears (and also shows up in > the address-line of the browser). But when I uncheck it and refresh it > just won't turn off. When the page has reloaded the variable is still in > the address line and the checkbox is still checked ... > > Can anyone tell me what I'm doing wrong? > > I first load the map like this: > http://localhost/cgi-bin/mapserv.exe?root=/atkis&program=/cgi-bin/mapser > v.exe&map=/ms4w/apps/atkis/test1.map&mode=browse&zoom=1 > > My form looks like this (its basically a copy of the tutorial 2.2 - > template by Pericles S. Nacionales [in the tutorial it works just fine > but not in my map :(]): > > <form name="mapserv" method="GET" action="[program]"> > > <!-- HIDDEN MAPSERVER CGI VARIABLES --> > <input type="hidden" name="root" value="[root]" /> > <input type="hidden" name="program" value="[program]" /> > <input type="hidden" name="map" value="[map]" /> > <input type="hidden" name="imgext" value="[mapext]" /> > <input type="hidden" name="imgxy" value="[center]" /> > <input type="hidden" name="layers" value="[layers]" /> > <input type="hidden" name="zoom" value="[zoom]" /> > <table width="600" border="0" align="center"> > <tr> > <td> > <table width="400" border="1" align="center"> > <tr> > <td colspan="3">Select Layers: > <!-- SPECIFY VECTOR LAYERS --> > <input type="checkbox" name="layer" value="nutz" > [nutz_check]> Nutzflächen  > <input type="checkbox" name="layer" value="vegetation" > [vegetation_check]> Wald & Wasser   > <input type="checkbox" name="layer" value="ausgleich" > [ausgleich_check]>Ausgleichsflächen<br> > > <!-- SPECIFY RASTER LAYERS --> > Select Background: > <select name="layer"> > <option value=" " [ _select]>No Background</option> > <option value="dtk5g" [dtk5g_select]> > DTK5 Grundriss > </option> > </select> > </td> > </tr> > <tr> > <td> > > <!-- SPECIFY MAP MODE --> > <div align="center">Map Mode:<br> > <select name="mode"> > <option value="browse">Browse</option> > <option value="map">Map</option> > </select> > </div> > </td> > <td> > <!-- FORM SUBMIT BUTTON --> > <div align="center"> > <input type="submit" name="submit" value="Refresh"> > </div> > </td> > <td> > <!-- ZOOM/PAN CONTROLS --> > <div align="center">Map Control: <br> > <select name="zoom"> > <option value="4" [zoom_4_select]>Zoom In 4x</option> > <option value="3" [zoom_3_select]>Zoom In 3x</option> > <option value="2" [zoom_2_select]>Zoom In 2x</option> > <option value="1" [zoom_1_select]>Recenter</option> > <option value="-2" [zoom_-2_select]>Zoom Out > 2x</option> > <option value="-3" [zoom_-3_select]>Zoom Out > 3x</option> > <option value="-4" [zoom_-4_select]>Zoom Out > 4x</option> > </select> > </div> > </td> > </tr> > <tr> > <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> > <td colspan="3" align="center" valign="top"> > <input type="image" name="img" src="[img]" width="1024" > height="768" border="0" /> > </td> > </tr> > </table> > </td> > </tr> > </table> > </form> > > > Thank you for your help > > Janosch > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From naci0002 at umn.edu Wed Mar 12 11:18:47 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Wed, 12 Mar 2008 13:18:47 -0500 Subject: [MAPSERVER-USERS] AGG/PNG Driver Problem even if it is configured properly In-Reply-To: <15997331.post@talk.nabble.com> References: <15997331.post@talk.nabble.com> Message-ID: <47D81E87.2060301@umn.edu> riteshambastha wrote: > Dear Readers, > > I have configured mapserver on my linux machine with AGG support. > > mapserv -v shows "SUPPORTS = AGG". > > But, when I use AGG/PNG driver in my map file I get this error: OUTPUTFORMAT > clause references driver AGG/PNG, but this driver isn't configured in ..... > > Please help me to know the base of this problem. Is there any way to check > whether the AGG Driver is configured correctly Does this thread apply to you: http://lists.osgeo.org/pipermail/mapserver-users/2008-January/027288.html? -Perry From jimlug at co.clackamas.or.us Wed Mar 12 11:34:31 2008 From: jimlug at co.clackamas.or.us (ClackJim) Date: Wed, 12 Mar 2008 11:34:31 -0700 (PDT) Subject: [MAPSERVER-USERS] PNG Image for symbol Message-ID: <15994400.post@talk.nabble.com> Aloha, I am trying to use a PNG image for a symbol on a point layer. The problem I am running into is that the background of the PNG image is filling in with a greyish blue color. The PNG image was created using photoshop and the background was transparent. I've placed the symbol in my symbol file and the mapfile is referencing the symbol. # Symbol File # SYMBOL NAME 'arson2' TYPE PIXMAP IMAGE '/home/mapserv/proj/pmap/arson2.png' TRANSPARENT 0 END # MapFile # STYLE SYMBOL 'arson2' COLOR 0 0 0 OUTLINECOLOR 0 0 0 END Here is what the image is supposed to look like: http://www.nabble.com/file/p15994400/arson2.png Has anyone experienced this issue? -- View this message in context: http://www.nabble.com/PNG-Image-for-symbol-tp15994400p15994400.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Wed Mar 12 12:21:22 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 12 Mar 2008 12:21:22 -0700 (PDT) Subject: [MAPSERVER-USERS] Problem working with mapserver on linux In-Reply-To: <199424.25842.qm@web7603.mail.in.yahoo.com> References: <199424.25842.qm@web7603.mail.in.yahoo.com> Message-ID: <16012515.post@talk.nabble.com> amit tripathi wrote: > > []java.lang.UnsatisfiedLinkError: > /home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so: > Can't load IA 32-bit .so on a IA 32-bit platform > It's a horrible error message. Execute the following: ldd /home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so You are likely missing some libraries, or at least missing them from the appropriate path (can't remember offhand if that's just LD_LIBRARY_PATH, or maybe something else at play wrt java mapscript) - Rich -- View this message in context: http://www.nabble.com/Problem-working-with-mapserver-on-linux-tp16001810p16012515.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Wed Mar 12 13:01:30 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 12 Mar 2008 16:01:30 -0400 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D80C8E.4050907@swoodbridge.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> <47D80C8E.4050907@swoodbridge.com> Message-ID: <47D8369A.9090603@dmsolutions.ca> Stephen Woodbridge wrote: > Hi Daniel, > > I looked at the patch briefly. > It doesn't seem to be doing character joining for works in Arabic. > > I'm thinking that if we had the algorithm to do the joining then we > could add that and maybe a Tag or metadata item that enabled the joining > if needed. The joining algorithm, might be smart enough to only join > Arabic letters and leave the rest alone. > > If you are interested, I think I can get my hands on a perl script that > does the joining. > Steve, Isn't is what the function shape_arabic (from the PostArabic) module does? If that is the case, the source code in C and an original perl source code are available on the web. Best Regards, > -Steve W > > Daniel Morissette wrote: >> Copying what I wrote earlier this morning on the ka-map list (sorry >> for those on both lists): >> >> FYI there is an open MapServer ticket about this: >> http://trac.osgeo.org/mapserver/ticket/956 >> >> The ticket even includes a patch that you may want to try. I'll try to >> address this one for MapServer 5.2. >> >> Daniel >> >> >> R Isfahani wrote: >>> Hi, >>> >>> I'm trying to render some Farsi (Persian) labels on my map. As you >>> may know, Farsi words are written from right to left, just like Hebrew. >>> I've changed the label's encoding to 'Windows-1256' in my mapfile and >>> I'm using TrueType fonts. Farsi letters have appeared. But the >>> problem is that letters are in revers order and letters are not >>> joining properly. >>> Of course reversing the letters' order in database will cause the >>> right order of them when rendering the map. But I wanna know if >>> there's any other way to show farsi labels in right order with no >>> joining problems. >>> >>> [Actually, I'm using Ka-Map on the top of Mapserver to render my maps >>> on the web. Ka-Mappers told me that my problem is a kind of Mapserver >>> problems] >>> >>> Any new ideas are welcomed. >>> Thanx. >>> >> _______________________________________________ >> 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 > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at mapgears.com Wed Mar 12 13:54:26 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 12 Mar 2008 16:54:26 -0400 Subject: [mapserver-users] How to give angle to labels with mapserver mapscript 5.0 and OGR:LabelAngle In-Reply-To: <22928146.1059871205317572732.JavaMail.www@wwinf4610> References: <22928146.1059871205317572732.JavaMail.www@wwinf4610> Message-ID: <47D84302.7090804@mapgears.com> Yvan Calcagni wrote: > Hi everybody, > > I have upgraded mapserver mapscript from 4.8 to 5.0 and I'm trying to render an annotation layer (with OGR connection) with angles. With the 4.8, I was using class->set("anglelabelitem","OGR:LabelAngle"), because angles are embedded in the layer. So now, as anglelabelitem doesn't exist anymore, I'm trying to use class->label->set("angle","OGR:LabelAngle") but it gives me no result. It doesn't produce errors but label aren't oriented. > > If anyone have an idea... > In 5.0 we added the concept of attribute binding for some label and style properties, and that includes the label angle. See: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT In PHP MapScript you should be able to use: $label->setBinding(MS_LABEL_BINDING_ANGLE, "OGR:LabelAngle"); Daniel -- Daniel Morissette http://www.mapgears.com/ From sacha.black at gmail.com Wed Mar 12 15:06:10 2008 From: sacha.black at gmail.com (Sacha Black) Date: Wed, 12 Mar 2008 15:06:10 -0700 Subject: [mapserver-users] Icon as Inline feature (Annotation layer) Message-ID: <e778b4d00803121506y6e9cb83fx8bb8e2f8477e8bed@mail.gmail.com> hi, is use of a PIXMAP icon as an inline feature possible? I just want to drop an icon in the center of my map. I thought that something like the below would work, but I don't seem to get anything to draw (in the middle of a 500x500 image). Am I missing something very basic, or is this just a wrong idea? sacha -----fwd----------> Symbol name 'red_star' TYPE PIXMAP IMAGE "symbols\star.gif" end LAYER NAME my_star TYPE annotation STATUS ON TRANSFORM false FEATURE POINTS 250 250 END TEXT ' ' END CLASS STYLE SYMBOL 'red_star' END LABEL TYPE TRUETYPE FONT Sans SIZE 8 COLOR 0 0 255 OUTLINECOLOR 255 255 255 POSITION UR END END END From woodbri at swoodbridge.com Wed Mar 12 16:12:29 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Mar 2008 18:12:29 -0500 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D8369A.9090603@dmsolutions.ca> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> <47D80C8E.4050907@swoodbridge.com> <47D8369A.9090603@dmsolutions.ca> Message-ID: <47D8635D.8040805@swoodbridge.com> Yes, I have used arabjoin.pl for the perl version http://user.cs.tu-berlin.de/~czyborra/arabjoin/arabjoin and I just started looking for a C langauge version and there a few variations based on: http://www.koders.com/c/fid0CDEEAE48A82518AB622E67323B84AB525772AED.aspx?s=mp3 http://www.koders.com/c/fidD92D7571C80226F5F767189298750ACC8461B090.aspx?s=mp3 http://www.koders.com/c/fid6998723CE404855329383741EACE2197511ACDB6.aspx?s=mp3 This is a variation on the above but has a more complete and useful example, and it will also handle Hebrew, Arabic, and maybe Farsi http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2F130.89.160.166%2Frockbox%2Farabjoin.c&ei=rlPYR6-8DZjEgQT43tymBQ&usg=AFQjCNFUtcluvex5eicUU4b70H_ok5vC7Q&sig2=m8TZs2uMbL8Te8f2Za0fVQ http://www.google.com/search?num=100&hl=en&lr=&as_qdr=all&q=arabjoin.c++stdbool.h -Steve W. Yewondwossen Assefa wrote: > > > Stephen Woodbridge wrote: >> Hi Daniel, >> >> I looked at the patch briefly. >> It doesn't seem to be doing character joining for works in Arabic. >> >> I'm thinking that if we had the algorithm to do the joining then we >> could add that and maybe a Tag or metadata item that enabled the >> joining if needed. The joining algorithm, might be smart enough to >> only join Arabic letters and leave the rest alone. >> >> If you are interested, I think I can get my hands on a perl script >> that does the joining. >> > > Steve, > > Isn't is what the function shape_arabic (from the PostArabic) module > does? If that is the case, the source code in C and an original perl > source code are available on the web. > > Best Regards, > > >> -Steve W >> >> Daniel Morissette wrote: >>> Copying what I wrote earlier this morning on the ka-map list (sorry >>> for those on both lists): >>> >>> FYI there is an open MapServer ticket about this: >>> http://trac.osgeo.org/mapserver/ticket/956 >>> >>> The ticket even includes a patch that you may want to try. I'll try >>> to address this one for MapServer 5.2. >>> >>> Daniel >>> >>> >>> R Isfahani wrote: >>>> Hi, >>>> >>>> I'm trying to render some Farsi (Persian) labels on my map. As you >>>> may know, Farsi words are written from right to left, just like Hebrew. >>>> I've changed the label's encoding to 'Windows-1256' in my mapfile >>>> and I'm using TrueType fonts. Farsi letters have appeared. But the >>>> problem is that letters are in revers order and letters are not >>>> joining properly. >>>> Of course reversing the letters' order in database will cause the >>>> right order of them when rendering the map. But I wanna know if >>>> there's any other way to show farsi labels in right order with no >>>> joining problems. >>>> >>>> [Actually, I'm using Ka-Map on the top of Mapserver to render my >>>> maps on the web. Ka-Mappers told me that my problem is a kind of >>>> Mapserver problems] >>>> >>>> Any new ideas are welcomed. >>>> Thanx. >>>> >>> _______________________________________________ >>> 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 Mar 12 16:14:55 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Mar 2008 18:14:55 -0500 Subject: [mapserver-users] Icon as Inline feature (Annotation layer) In-Reply-To: <e778b4d00803121506y6e9cb83fx8bb8e2f8477e8bed@mail.gmail.com> References: <e778b4d00803121506y6e9cb83fx8bb8e2f8477e8bed@mail.gmail.com> Message-ID: <47D863EF.6000202@swoodbridge.com> Sacha, You nned to add a color to the CLASS so it will render. COLOR 0 0 0 will work fine as and it is not used but mapserv will not runder the layer without a COLOR tag. -Steve W Sacha Black wrote: > hi, > > is use of a PIXMAP icon as an inline feature possible? I just want to > drop an icon in the center of my map. > > I thought that something like the below would work, but I don't seem > to get anything to draw (in the middle of a 500x500 image). Am I > missing something very basic, or is this just a wrong idea? > > sacha > > > -----fwd----------> > > Symbol > name 'red_star' > TYPE PIXMAP > IMAGE "symbols\star.gif" > end > > > LAYER > NAME my_star > TYPE annotation > STATUS ON > TRANSFORM false > FEATURE > POINTS 250 250 END > TEXT ' ' > END > CLASS > STYLE > SYMBOL 'red_star' > END > LABEL > TYPE TRUETYPE > FONT Sans > SIZE 8 > COLOR 0 0 255 > OUTLINECOLOR 255 255 255 > POSITION UR > END > END > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tchaddad at gmail.com Wed Mar 12 15:37:24 2008 From: tchaddad at gmail.com (TC Haddad) Date: Wed, 12 Mar 2008 15:37:24 -0700 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D8635D.8040805@swoodbridge.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> <47D80C8E.4050907@swoodbridge.com> <47D8369A.9090603@dmsolutions.ca> <47D8635D.8040805@swoodbridge.com> Message-ID: <25de2c7c0803121537v59f3bb23u68a36b1a11bb67a3@mail.gmail.com> The Arabic and Farsi are going to have identical joining issues. So if your code handles Arabic it *should* cover Farsi no problem. In general joined letters are used in the middle of a word (like cursive handwriting in english). Most Arabic words are composed almost exclusively of joined letters. There is no such thing as "print" vs. "cursive" - you would never write a multi-letter word using unjoined letters in Arabic. Unjoined letters are used when characters stand alone - either because they are single-letter words, or because certain characters stand alone by convention when used at the beginning or end of a word (sort of like bookends). The joined vs. unjoined version of any letter is stored in the font just as an English font stores both lower and upper case characters. Although the Arabic and Farsi look very similar, they do use slightly different alphabets (some characters (and sounds) exist in Farsi that don't exist in Arabic - maybe also vice versa). On Wed, Mar 12, 2008 at 4:12 PM, Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > Yes, I have used arabjoin.pl for the perl version > > http://user.cs.tu-berlin.de/~czyborra/arabjoin/arabjoin > > and I just started looking for a C langauge version and there a few > variations based on: > > http://www.koders.com/c/fid0CDEEAE48A82518AB622E67323B84AB525772AED.aspx?s=mp3 > http://www.koders.com/c/fidD92D7571C80226F5F767189298750ACC8461B090.aspx?s=mp3 > http://www.koders.com/c/fid6998723CE404855329383741EACE2197511ACDB6.aspx?s=mp3 > > This is a variation on the above but has a more complete and useful > example, and it will also handle Hebrew, Arabic, and maybe Farsi > > http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2F130.89.160.166%2Frockbox%2Farabjoin.c&ei=rlPYR6-8DZjEgQT43tymBQ&usg=AFQjCNFUtcluvex5eicUU4b70H_ok5vC7Q&sig2=m8TZs2uMbL8Te8f2Za0fVQ > http://www.google.com/search?num=100&hl=en&lr=&as_qdr=all&q=arabjoin.c++stdbool.h > > -Steve W. > > > > Yewondwossen Assefa wrote: > > > > > > Stephen Woodbridge wrote: > >> Hi Daniel, > >> > >> I looked at the patch briefly. > >> It doesn't seem to be doing character joining for works in Arabic. > >> > >> I'm thinking that if we had the algorithm to do the joining then we > >> could add that and maybe a Tag or metadata item that enabled the > >> joining if needed. The joining algorithm, might be smart enough to > >> only join Arabic letters and leave the rest alone. > >> > >> If you are interested, I think I can get my hands on a perl script > >> that does the joining. > >> > > > > Steve, > > > > Isn't is what the function shape_arabic (from the PostArabic) module > > does? If that is the case, the source code in C and an original perl > > source code are available on the web. > > > > Best Regards, > > > > > >> -Steve W > >> > >> Daniel Morissette wrote: > >>> Copying what I wrote earlier this morning on the ka-map list (sorry > >>> for those on both lists): > >>> > >>> FYI there is an open MapServer ticket about this: > >>> http://trac.osgeo.org/mapserver/ticket/956 > >>> > >>> The ticket even includes a patch that you may want to try. I'll try > >>> to address this one for MapServer 5.2. > >>> > >>> Daniel > >>> > >>> > >>> R Isfahani wrote: > >>>> Hi, > >>>> > >>>> I'm trying to render some Farsi (Persian) labels on my map. As you > >>>> may know, Farsi words are written from right to left, just like Hebrew. > >>>> I've changed the label's encoding to 'Windows-1256' in my mapfile > >>>> and I'm using TrueType fonts. Farsi letters have appeared. But the > >>>> problem is that letters are in revers order and letters are not > >>>> joining properly. > >>>> Of course reversing the letters' order in database will cause the > >>>> right order of them when rendering the map. But I wanna know if > >>>> there's any other way to show farsi labels in right order with no > >>>> joining problems. > >>>> > >>>> [Actually, I'm using Ka-Map on the top of Mapserver to render my > >>>> maps on the web. Ka-Mappers told me that my problem is a kind of > >>>> Mapserver problems] > >>>> > >>>> Any new ideas are welcomed. > >>>> Thanx. > >>>> > >>> _______________________________________________ > >>> 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 dfuhry at gmail.com Wed Mar 12 15:45:24 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Wed, 12 Mar 2008 18:45:24 -0400 Subject: Fwd: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803121533o786b5a3bia941ceeadbabfa5c@mail.gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <200803091031.27361.ivan.mincik@gmail.com> <90699a8d0803112041t44139ba5kcfa9b7763123918c@mail.gmail.com> <200803121049.14198.ivan.mincik@gmail.com> <90699a8d0803121533o786b5a3bia941ceeadbabfa5c@mail.gmail.com> Message-ID: <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> Oops, forgot to CC mapserver-users. ---------- Forwarded message ---------- From: Dave Fuhry <dfuhry at gmail.com> Date: Wed, Mar 12, 2008 at 6:33 PM Subject: Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault To: Ivan Mincik <ivan.mincik at gmail.com> Ivan, Ah, that does help. It looks like the error: ERROR: DECLARE CURSOR may only be used in transaction blocks is occurring after ROLLBACK statements are issued. I had not really considered ROLLBACKs, not having seen them in my tests. ROLLBACKs are only issued in two places in mappostgis.c. In msPOSTGISLayerGetShape(), and in prepare_database() (but in the latter case, only if using an ancient version of postgis). The code in msPOSTGISLayerGetShape() seems unnecessary to me; no other DECLARE CURSOR ...; FETCH ...; CLOSE ...; queries are followed by a ROLLBACK, so it seems unnecessary here as well. The important thing will be to ensure that if an error happens in one of those queries, that the connection is not msConnPoolRelease()d back into the connection pool. I haven't traced the code in detail yet, but that should be staightforward enforce. So essentially, the patch should be modified to remove the ROLLBACKs from msPOSTGISLayerGetShape() in a safe way. Thanks, Dave On Wed, Mar 12, 2008 at 5:49 AM, Ivan Mincik <ivan.mincik at gmail.com> wrote: > Hi Dave, > these are my postgis version details: > select postgis_full_version(); > postgis_full_version > ---------------------------------------------------------------------------------- > POSTGIS="1.3.1" GEOS="2.2.3-CAPI-1.1.1" PROJ="Rel. 4.5.0, 22 Oct 2006" > USE_STATS > (1 row) > > 1. I have changed value log_min_duration_statement > 2. Restart of postgresql > 3. Restart of apache > 4. Restart of all firefox windows and deleted cache > 5. pmapper loaded > > Here are two logs when reproducing the problem: > http://projects.gpsmapy.sk/logs/ > > I have tried to use mapserver also as fastcgi, but same problem. Every time > the problem will start when I try to identify the object > (Obj_queryBy{Point,Rect,etc.}). > > Thanks a lot > Ivan > > > > > On Wednesday 12 March 2008 04:41, you wrote: > > Ivan, > > > > p.mapper seems to use the typical php > > {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up > > calling the same msPOSTGIS* functions as everything else. > > > > I can't seem to reproduce your problem with a simple testcase > > (basically, the attached files). It might help if you can set > > log_min_duration_statement = 0 in your postgresql.conf, reproduce the > > problem, and send the output from your postgresql log file. It will > > show all commands issued to the database, including the BEGIN, and the > > DECLARE CURSOR ..., and FETCH for every layer. > > > > I can setup p.mapper if that's necessary to reproduce the problem. > > > > (By the way, I assume you're not using an ancient version of > > postgis, in the 0.5 - 0.6 era. There is an alternate codepath for > > that, which I have not tested.) > > > > Thanks, > > > > Dave > > > > On Sun, Mar 9, 2008 at 5:31 AM, Ivan Mincik <ivan.mincik at gmail.com> wrote: > > > I am sorry for late reply, > > > I am testing mapserver with p.mapper application so I *don't* use it as > > > cgi/fcgi. > > > > > > I have downloaded source package of mapserver 5.0.2 from debian > > > unstable, applied a patch and compiled on Debian Etch. > > > Installed and restarted apache and also rebooted whole system few times > > > (I am testing this on my desktop computer). > > > > > > The problems are starting mostly when I am trying to use p.mapper's > > > identify function, to get attributes of map object. Then p.mapper is > > > freezing. In mapfile i have 7 postgis layers. > > > > > > I can try this also with some openlayers which is using cgi. > > > > > > LOGS: > > > > > > 2008-03-09 10:24:44 CET WARNING: there is already a transaction in > > > progress 2008-03-09 10:24:45 CET WARNING: there is already a transaction > > > in progress 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only be > > > used in transaction blocks > > > 2008-03-09 10:24:46 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:46 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:46 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:47 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:47 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:50 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:50 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:50 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:52 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:52 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:52 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:53 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:53 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:53 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:54 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:54 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:24:55 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:24:55 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:24:55 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:25:00 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:25:00 CET ERROR: cursor "mycursor" does not exist > > > 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be used in > > > transaction blocks > > > 2008-03-09 10:25:00 CET WARNING: there is no transaction in progress > > > 2008-03-09 10:25:01 CET ERROR: cursor "mycursor" does not exist > > > > > > > > > Thanks a lot > > > Ivan > > > > > > On Wednesday 05 March 2008 22:41, you wrote: > > > > Ivan, > > > > > > > > Thanks for the problem report. If you are using fastcgi, you may > > > > need to restart it. > > > > > > > > The only two places PQconnectdb is called is in msPOSTGISLayerOpen > > > > and in msPOSTGRESQLJoinConnect, which operates independently, not > > > > using cursors or the connection pool. With a patched > > > > msPOSTGISLayerOpen, PQexec(layerinfo->conn, "BEGIN") is always called > > > > right after connecting, before any queries and before the connection > > > > ends up in the connection pool. > > > > > > > > So I'm wondering if you've put the new mapserv executable in your > > > > cgi-bin, but not restarted the webserver, and it's pulling old > > > > connections out of the fastcgi connection pool, which have not had > > > > PQexec(layerinfo->conn, "BEGIN") issued to them (and thus, no > > > > transaction started). > > > > > > > > Try restarting fastcgi. Depending on your configuration, > > > > restarting your webserver may automatically restart fastcgi, or you > > > > may have to specifically restart the fastcgi service/daemon on that > > > > machine. > > > > > > > > Please let us know if this fixes the problem. > > > > > > > > Thanks, > > > > > > > > Dave > > > > > > > > On Wed, Mar 5, 2008 at 7:26 AM, Ivan Mincik <ivan.mincik at gmail.com> > wrote: > > > > > Nothing is perfect. There are no problems with applied patch when > > > > > browsing the map. But when I use identify object query from > > > > > php5-mapscript the problem is rising again. > > > > > > > > > > I have in postgresql log: > > > > > > > > > > 2008-03-05 13:19:30 CET WARNING: there is no transaction in > > > > > progress 2008-03-05 13:19:30 CET ERROR: cursor "mycursor" does not > > > > > exist 2008-03-05 13:19:31 CET ERROR: DECLARE CURSOR may only be > > > > > used in transaction blocks > > > > > 2008-03-05 13:19:31 CET WARNING: there is no transaction in > > > > > progress 2008-03-05 13:19:31 CET ERROR: cursor "mycursor" does not > > > > > exist 2008-03-05 13:19:32 CET ERROR: DECLARE CURSOR may only be > > > > > used in transaction blocks > > > > > 2008-03-05 13:19:32 CET WARNING: there is no transaction in > > > > > progress 2008-03-05 13:19:32 CET ERROR: cursor "mycursor" does not > > > > > exist 2008-03-05 13:19:34 CET ERROR: DECLARE CURSOR may only be > > > > > used in transaction blocks > > > > > 2008-03-05 13:19:34 CET WARNING: there is no transaction in > > > > > progress 2008-03-05 13:19:34 CET ERROR: cursor "mycursor" does not > > > > > exist 2008-03-05 13:20:10 CET LOG: could not receive data from > > > > > client: Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: autovacuum: processing database > > > > > "gisplan" 2008-03-05 13:20:10 CET LOG: could not receive data from > > > > > client: Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > 2008-03-05 13:20:10 CET LOG: could not receive data from client: > > > > > Connection reset by peer > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client connection > > > > > > > > > > > > > > > 2008-03-05 13:20:40 CET WARNING: there is already a transaction in > > > > > progress 2008-03-05 13:20:40 CET WARNING: there is already a > > > > > transaction in progress 2008-03-05 13:20:41 CET WARNING: there is > > > > > already a transaction in progress 2008-03-05 13:20:42 CET WARNING: > > > > > there is already a transaction in progress 2008-03-05 13:20:43 CET > > > > > WARNING: there is already a transaction in progress 2008-03-05 > > > > > 13:20:43 CET WARNING: there is already a transaction in progress > > > > > 2008-03-05 13:20:44 CET WARNING: there is already a transaction in > > > > > progress 2008-03-05 13:20:44 CET WARNING: there is already a > > > > > transaction in progress 2008-03-05 13:20:45 CET WARNING: there is > > > > > already a transaction in progress 2008-03-05 13:20:45 CET WARNING: > > > > > there is already a transaction in progress 2008-03-05 13:20:45 CET > > > > > WARNING: there is already a transaction in progress 2008-03-05 > > > > > 13:20:46 CET WARNING: there is already a transaction in progress > > > > > 2008-03-05 13:20:46 CET WARNING: there is already a transaction in > > > > > progress 2008-03-05 13:20:46 CET WARNING: there is already a > > > > > transaction in progress 2008-03-05 13:20:47 CET WARNING: there is > > > > > already a transaction in progress 2008-03-05 13:20:47 CET WARNING: > > > > > there is already a transaction in progress 2008-03-05 13:20:48 CET > > > > > WARNING: there is already a transaction in progress 2008-03-05 > > > > > 13:20:49 CET WARNING: there is already a transaction in progress > > > > > 2008-03-05 13:20:50 CET WARNING: there is already a transaction in > > > > > progress 2008-03-05 13:20:50 CET WARNING: there is already a > > > > > transaction in progress > > > > > > > > > > > > > > > ivan > > > > > > > > > > On Monday 03 March 2008 21:53, rich.fromm wrote: > > > > > > hrach wrote: > > > > > > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > > > > > > > > > > > Is anybody using CLOSE_CONNECTION=DEFER without any problems ? > > > > > > > > > > > > I am now using it fine with mapserver 5.0.0 after applying the > > > > > > patch for bug 2497: > > > > > > http://trac.osgeo.org/mapserver/ticket/2497 > > > > > > > > > > > > I don't know if 4.10.3 is different enough for that patch to be > > > > > > applicable or not. But if it's not too hard to upgrade, you > > > > > > might want to try a later version (e.g. 5.0.2) plus that patch. > > > > > > Note that the patch may make it into the 5.0.3 release (it was > > > > > > originally targetted for 5.2). > > > > > > > > > > > > You also might want to take a look at the following related > > > > > > mailing list threads: > > > > > > > > > > > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to > > > > > >12653 945.h tml#a12674499 > > > > > > > > http://www.nabble.com/postgres-transaction-warnings-to15749333.ht > > > > > >ml > > > > > > > > > > > > - Rich > > > > > > > > > > _______________________________________________ > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sacha.black at gmail.com Wed Mar 12 16:44:17 2008 From: sacha.black at gmail.com (Sacha Black) Date: Wed, 12 Mar 2008 16:44:17 -0700 Subject: [mapserver-users] Icon as Inline feature (Annotation layer) In-Reply-To: <47D863EF.6000202@swoodbridge.com> References: <e778b4d00803121506y6e9cb83fx8bb8e2f8477e8bed@mail.gmail.com> <47D863EF.6000202@swoodbridge.com> Message-ID: <e778b4d00803121644u1cd159c4r493b4e4ab5120631@mail.gmail.com> thanks Steve - that did the trick. sb On Wed, Mar 12, 2008 at 4:14 PM, Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > Sacha, > > You nned to add a color to the CLASS so it will render. COLOR 0 0 0 > will work fine as and it is not used but mapserv will not runder the > layer without a COLOR tag. > > -Steve W > > > > Sacha Black wrote: > > hi, > > > > is use of a PIXMAP icon as an inline feature possible? I just want to > > drop an icon in the center of my map. > > > > I thought that something like the below would work, but I don't seem > > to get anything to draw (in the middle of a 500x500 image). Am I > > missing something very basic, or is this just a wrong idea? > > > > sacha > > > > > > -----fwd----------> > > > > Symbol > > name 'red_star' > > TYPE PIXMAP > > IMAGE "symbols\star.gif" > > end > > > > > > LAYER > > NAME my_star > > TYPE annotation > > STATUS ON > > TRANSFORM false > > FEATURE > > POINTS 250 250 END > > TEXT ' ' > > END > > CLASS > > STYLE > > SYMBOL 'red_star' > > END > > LABEL > > TYPE TRUETYPE > > FONT Sans > > SIZE 8 > > COLOR 0 0 255 > > OUTLINECOLOR 255 255 255 > > POSITION UR > > END > > END > > END > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From amit_101082 at yahoo.co.in Wed Mar 12 20:38:38 2008 From: amit_101082 at yahoo.co.in (amit tripathi) Date: Thu, 13 Mar 2008 09:08:38 +0530 (IST) Subject: [MAPSERVER-USERS] Problem working with mapserver on linux Message-ID: <36186.61937.qm@web7615.mail.in.yahoo.com> Hi, Since jdk1.5.10 wraps error, i moved back to jdk1.5.07 and got this error: []java.lang.UnsatisfiedLinkError:/home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so:libproj.so.0: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at edu.umn.gis.mapscript.mapscriptJNI.<clinit>(mapscriptJNI.java:23) I also tried changing mode of the file to be executable, and run lddbut repeatedly got this error. Although the same setup is working onother server. Best Regards, Amit ----- Original Message ---- From: rich.fromm <nospam420 at yahoo.com> To: mapserver-users at lists.osgeo.org Sent: Thursday, 13 March, 2008 12:51:22 AM Subject: Re: [MAPSERVER-USERS] Problem working with mapserver on linux amit tripathi wrote: > > []java.lang.UnsatisfiedLinkError: > /home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so: > Can't load IA 32-bit .so on a IA 32-bit platform > It's a horrible error message. Execute the following: ldd /home/nsehra/FDfolio/FD-runtime/FDMonitor-runtime/mapserver/libmapscript.so You are likely missing some libraries, or at least missing them from the appropriate path (can't remember offhand if that's just LD_LIBRARY_PATH, or maybe something else at play wrt java mapscript) - Rich -- View this message in context: http://www.nabble.com/Problem-working-with-mapserver-on-linux-tp16001810p16012515.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 __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html From LIN at gispro.dk Thu Mar 13 02:45:45 2008 From: LIN at gispro.dk (Lars I. Nielsen (GisPro)) Date: Thu, 13 Mar 2008 10:45:45 +0100 Subject: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? Message-ID: <47D8F7C9.6050101@gispro.dk> Is support for MS/SQL 2008 Spatial in Mapserver, or rather GDAL/OGR, already implemented, or if not, scheduled to be in the near future ? From what I can read, MS/SQL2008 supports importing WKB, and maybe WKT, and stores it natively. Furthermore, MS/SQL 2008 supports two different spatial datatypes, GEOMETRY and GEOGRAPHY. Will possible support only be for GEOMETRY, or for both ? And no, neither PostGIS nor MySQL are unfortunately options for me :-) -- Best regards / Med venlig hilsen Lars I. Nielsen GIS & DB Integrator GisPro From bartvde at osgis.nl Thu Mar 13 02:51:20 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 13 Mar 2008 10:51:20 +0100 Subject: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? Message-ID: <a84b03a58d0858c4d95e7ff892d0e41c@145.50.39.11> See: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 It is implemented, but directly in Mapserver, not in OGR. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: LIN at gispro.dk Naar: MAPSERVER-L <mapserver-users at lists.osgeo.org> Onderwerp: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? Datum: 13/03/08 07:46 > Is support for MS/SQL 2008 Spatial in Mapserver, or rather GDAL/OGR, > already implemented, or if not, scheduled to be in the near future ? > > From what I can read, MS/SQL2008 supports importing WKB, and maybe WKT, > and stores it natively. > > Furthermore, MS/SQL 2008 supports two different spatial datatypes, > GEOMETRY and GEOGRAPHY. Will possible support only be for GEOMETRY, or > for both ? > > And no, neither PostGIS nor MySQL are unfortunately options for me :-) > > -- > > Best regards / Med venlig hilsen > Lars I. Nielsen > GIS & DB Integrator > GisPro > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yvan.calcagni at voila.fr Thu Mar 13 03:04:59 2008 From: yvan.calcagni at voila.fr (Yvan Calcagni) Date: Thu, 13 Mar 2008 11:04:59 +0100 (CET) Subject: [mapserver-users] How to give angle to labels with mapserver mapscript 5.0 and OGR:LabelAngle Message-ID: <106876.1272661205402699931.JavaMail.www@wwinf4607> > Message du 12/03/08 ? 21h54 > De : "Daniel Morissette" <dmorissette at mapgears.com> > A : mapserver-users at lists.osgeo.org > Copie ? : yvan.calcagni at voila.fr > Objet : Re: [mapserver-users] How to give angle to labels with mapserver mapscript 5.0 and OGR:LabelAngle > > Yvan Calcagni wrote: > > Hi everybody, > > > > I have upgraded mapserver mapscript from 4.8 to 5.0 and I'm trying to render an annotation layer (with OGR connection) with angles. With the 4.8, I was using class->set("anglelabelitem","OGR:LabelAngle"), because angles are embedded in the layer. So now, as anglelabelitem doesn't exist anymore, I'm trying to use class->label->set("angle","OGR:LabelAngle") but it gives me no result. It doesn't produce errors but label aren't oriented. > > > > If anyone have an idea... > > > > In 5.0 we added the concept of attribute binding for some label and > style properties, and that includes the label angle. See: > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT > > In PHP MapScript you should be able to use: > > $label->setBinding(MS_LABEL_BINDING_ANGLE, "OGR:LabelAngle"); > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > > Wow!!! Thanks Daniel, I didn't notice this specification!!! Everything works fine now. See you. Yvan From aberenyi at burken.hu Thu Mar 13 03:17:43 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Thu, 13 Mar 2008 11:17:43 +0100 Subject: [mapserver-users] re-read map file without new session Message-ID: <47D8FF47.6040803@burken.hu> Dear List, My experience shows that the 'main' map file is only read by mapserver once on session start. Is there any possibility to re-read the map file without the need of close the window and open a new one? Thanks, Attila -- Ber?nyi Attila / Attila Ber?nyi okl. t?rinformatikus m?rn?k / MSc. GIS engineer Burken Kft. / Burken Ltd. H-1155 Budapest, Obsitos t?r 2. Tel1: +36-1-415-0219 Tel2: +36-1-415-0220 Fax: +36-1-410-1314 E-mail: aberenyi at burken.hu <mailto:http://www.laservision.hu> Web: http://www.laservision.hu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/29474262/attachment.htm> From LIN at gispro.dk Thu Mar 13 04:40:34 2008 From: LIN at gispro.dk (Lars I. Nielsen (GisPro)) Date: Thu, 13 Mar 2008 12:40:34 +0100 Subject: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? In-Reply-To: <a84b03a58d0858c4d95e7ff892d0e41c@145.50.39.11> References: <a84b03a58d0858c4d95e7ff892d0e41c@145.50.39.11> Message-ID: <47D912B2.5010508@gispro.dk> Hi Bart, Great. But the explanations on the linked page are pretty sparse. Are there more details about the implementation anywhere else ? Best regards / Med venlig hilsen Lars I. Nielsen GIS & DB Integrator GisPro Bart van den Eijnden (OSGIS) skrev: > See: > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 > > It is implemented, but directly in Mapserver, not in OGR. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: LIN at gispro.dk > Naar: MAPSERVER-L <mapserver-users at lists.osgeo.org> > Onderwerp: [mapserver-users] Mapserver support for MS/SQL 2008 Spatial ? > Datum: 13/03/08 07:46 > > >> Is support for MS/SQL 2008 Spatial in Mapserver, or rather GDAL/OGR, >> already implemented, or if not, scheduled to be in the near future ? >> >> From what I can read, MS/SQL2008 supports importing WKB, and maybe WKT, >> and stores it natively. >> >> Furthermore, MS/SQL 2008 supports two different spatial datatypes, >> GEOMETRY and GEOGRAPHY. Will possible support only be for GEOMETRY, or >> for both ? >> >> And no, neither PostGIS nor MySQL are unfortunately options for me :-) >> >> -- >> >> Best regards / Med venlig hilsen >> Lars I. Nielsen >> GIS & DB Integrator >> GisPro >> >> _______________________________________________ >> 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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/e5027699/attachment.htm> From gis at vanbooth.com Thu Mar 13 04:50:13 2008 From: gis at vanbooth.com (Rob) Date: Thu, 13 Mar 2008 11:50:13 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> References: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> Message-ID: <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> Just looking at the API on the website, there is also a setWKTProjection method. Does anybody know if this was around in Version 4.8.3 and if it is more perfomant than the ESPG lookup? MTIA Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/b84ac2de/attachment.htm> From David.Fawcett at state.mn.us Thu Mar 13 05:54:36 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 13 Mar 2008 07:54:36 -0500 Subject: [mapserver-users] re-read map file without new session In-Reply-To: <47D8FF47.6040803@burken.hu> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBB9D@s-sp22.pca.state.mn.us> If you are using MapServer CGI, the map file gets parsed every time a call is made to mapserv. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Attila Ber?nyi Sent: Thursday, March 13, 2008 5:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] re-read map file without new session Dear List, My experience shows that the 'main' map file is only read by mapserver once on session start. Is there any possibility to re-read the map file without the need of close the window and open a new one? Thanks, Attila -- Ber?nyi Attila / Attila Ber?nyi okl. t?rinformatikus m?rn?k / MSc. GIS engineer Burken Kft. / Burken Ltd. H-1155 Budapest, Obsitos t?r 2. Tel1: +36-1-415-0219 Tel2: +36-1-415-0220 Fax: +36-1-410-1314 E-mail: aberenyi at burken.hu <mailto:http://www.laservision.hu> Web: http://www.laservision.hu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/1aaedff0/attachment.htm> From aberenyi at burken.hu Thu Mar 13 06:02:44 2008 From: aberenyi at burken.hu (=?ISO-8859-1?Q?Attila_Ber=E9nyi?=) Date: Thu, 13 Mar 2008 14:02:44 +0100 Subject: [mapserver-users] re-read map file without new session In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBB9D@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBB9D@s-sp22.pca.state.mn.us> Message-ID: <47D925F4.7050107@burken.hu> Hi there, Thanks for the reply, but I'm using PHP/MapScript. I figured out a solution, which isn't very sophisticated, but it works. I've tried to refresh my map content with this JS command: opener.location.reload(); But nothing happened. Than I've changed this to opener.location='../../../map.phtml'; and it worked! It's ugly, and I hope I'll find an other solution. Attila Fawcett, David ?rta: > If you are using MapServer CGI, the map file gets parsed every time a > call is made to mapserv. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Attila Ber?nyi > *Sent:* Thursday, March 13, 2008 5:18 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] re-read map file without new session > > Dear List, > > My experience shows that the 'main' map file is only read by > mapserver once on session start. > Is there any possibility to re-read the map file without the need > of close the window and open a new one? > > Thanks, > > Attila > -- > Ber?nyi Attila / Attila Ber?nyi > okl. t?rinformatikus m?rn?k / MSc. GIS engineer > Burken Kft. / Burken Ltd. > > H-1155 Budapest, Obsitos t?r 2. > Tel1: +36-1-415-0219 > Tel2: +36-1-415-0220 > Fax: +36-1-410-1314 > E-mail: aberenyi at burken.hu <mailto:http://www.laservision.hu> > Web: http://www.laservision.hu > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/5ed9a817/attachment.htm> From simon.mercier at msp.gouv.qc.ca Thu Mar 13 06:08:41 2008 From: simon.mercier at msp.gouv.qc.ca (SIMON MERCIER) Date: Thu, 13 Mar 2008 09:08:41 -0400 Subject: =?Windows-1252?Q?R=E9p.=20:=20[MAPSERVER-USERS]=20PNG=20Image=20?= =?Windows-1252?Q?for=20symbol?= In-Reply-To: <15994400.post@talk.nabble.com> References: <15994400.post@talk.nabble.com> Message-ID: <47D8EF19020000E9000041B7@mail.msp.gouv.qc.ca> Hi aloha what is your output format image? ... maybe you can try PNG and insert the RGBA imagemode in your mapfile... Mapserver use a the PC256 imagemode by default... OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON END good luck >>> ClackJim <jimlug at co.clackamas.or.us> 12/3/2008 14:34 >>> Aloha, I am trying to use a PNG image for a symbol on a point layer. The problem I am running into is that the background of the PNG image is filling in with a greyish blue color. The PNG image was created using photoshop and the background was transparent. I've placed the symbol in my symbol file and the mapfile is referencing the symbol. # Symbol File # SYMBOL NAME 'arson2' TYPE PIXMAP IMAGE '/home/mapserv/proj/pmap/arson2.png' TRANSPARENT 0 END # MapFile # STYLE SYMBOL 'arson2' COLOR 0 0 0 OUTLINECOLOR 0 0 0 END Here is what the image is supposed to look like: http://www.nabble.com/file/p15994400/arson2.png Has anyone experienced this issue? -- View this message in context: http://www.nabble.com/PNG-Image-for-symbol-tp15994400p15994400.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/92b5226a/attachment.htm> From warmerdam at pobox.com Thu Mar 13 06:38:34 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 13 Mar 2008 09:38:34 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> References: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> Message-ID: <47D92E5A.3050305@pobox.com> Rob wrote: > Just looking at the API on the website, there is also a setWKTProjection > method. Rob, Based on a review of the mapscript/swiginc/projection.i, it appears this was added as a method on the projectionObj for 5.0, but was available on the map in 4.8. > Does anybody know if this was around in Version 4.8.3 and if it is more > perfomant than the ESPG lookup? It should not suffer the speed problem with looking up EPSG codes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From porath at web.de Thu Mar 13 06:42:03 2008 From: porath at web.de (porath at web.de) Date: Thu, 13 Mar 2008 14:42:03 +0100 Subject: [mapserver-users] oraclespatial wfs issue Message-ID: <399893356@web.de> Hi list, i am using mapserver 5.0.0 with oracle 10g as a wfs server. My mapfile has one layer with the following DATA statement: DATA "ha_koordinate from os_hako USING UNIQUE ha_id RELATE VERSION 10g" When i do a getFeature request using comparison operator (Like) the sql produced by mapserver contains the spatial operator anyinteract (with the EXTENT set in the mapfile which includes all 1.4M rows). This is very inefficient, because it is not needed and slows down the query from 0.5 to 10 seconds. Obviously, the function osNoGeodeticData in maporaclespatial.c doesn't care if a spatial operator is needed or not. The function seems to add it depending on the configuration in the mapfile. When i change the DATA statement from "RELATE" to "NONE" the query is very fast. But in this case queries containing spatial operators (bbox) are slowing down from e.g. 1 second to 18 secods. So I am caught between the Devil and the deep blue sea. Any ideas? Thanks in advance. Holger _____________________________________________________________________ Unbegrenzter Speicherplatz f?r Ihr E-Mail Postfach? Jetzt aktivieren! http://freemail.web.de/club/landingpage.htm/?mc=025555 From gis at vanbooth.com Thu Mar 13 06:42:51 2008 From: gis at vanbooth.com (Rob) Date: Thu, 13 Mar 2008 13:42:51 +0000 Subject: [mapserver-users] MapScript logging Message-ID: <2a955f950803130642y6df65b00gfc9f04fe28071bd3@mail.gmail.com> Hi again Yet another stupid question which hopefully has a very simple yes/no answer. I've compiled mapscript with the -DENABLE_STDERR_DEBUG option, and have modified my mapfile to have a MAP level option of DEBUG ON and a WEB level option of LOG "\tmp\mapserver.log" but I am seeing no output created at all. Does the logging work when using the MapScript API, or is it just a MapServer facility? MTIA Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080313/6e39c423/attachment.htm> From dmorissette at mapgears.com Thu Mar 13 07:07:46 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 13 Mar 2008 10:07:46 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> References: <CC197224AC75CE4DB23F739B16891B866E765A@tikka.haapa.mmm.fi> <CC197224AC75CE4DB23F739B16891B866E765B@tikka.haapa.mmm.fi> <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> Message-ID: <47D93532.6080405@mapgears.com> Rob wrote: > Just looking at the API on the website, there is also a setWKTProjection > method. > > Does anybody know if this was around in Version 4.8.3 and if it is more > perfomant than the ESPG lookup? > FYI, the following works for me with MapServer 4.8.4 (and 5.0), using PHP: $map->setProjection('+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs'); echo $map->getProjection()."\n"; I suggest you double-check your code, you must have made some typos. Daniel -- Daniel Morissette http://www.mapgears.com/ From jimlug at co.clackamas.or.us Thu Mar 13 08:38:36 2008 From: jimlug at co.clackamas.or.us (ClackJim) Date: Thu, 13 Mar 2008 08:38:36 -0700 (PDT) Subject: =?UTF-8?Q?Re:_[MAPSERVER-USERS]_R=C3=A9p._:_PNG_Image_for_symbol?= In-Reply-To: <47D8EF19020000E9000041B7@mail.msp.gouv.qc.ca> References: <15994400.post@talk.nabble.com> <47D8EF19020000E9000041B7@mail.msp.gouv.qc.ca> Message-ID: <16028763.post@talk.nabble.com> Hi Simon, thanks for the suggestion. I have tried changing the image mode to RGBA and it changes my whole background for the map to gray (along with the transparent part of the symbol). The results are actually better than what I have been experiencing but I am still trying to implement the transparent background of the png file. Also, we are currently using PMAPPER as our skin but I doubt this could be effecting the image output. Here is what my OUTPUTFORMAT looks like: # PNG - output OUTPUTFORMAT NAME "PNG" DRIVER "GD/PNG" EXTENSION "png" FORMATOPTION "INTERLACE=OFF" IMAGEMODE RGBA MIMETYPE "image/png" TRANSPARENT ON END SIMON MERCIER wrote: > > Hi aloha > > what is your output format image? ... maybe you can try PNG and insert the > RGBA imagemode in your mapfile... Mapserver use a the PC256 imagemode by > default... > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE RGBA > TRANSPARENT ON > END > > good luck > > > >>>> ClackJim <jimlug at co.clackamas.or.us> 12/3/2008 14:34 >>> > > > Aloha, > > I am trying to use a PNG image for a symbol on a point layer. The problem > I > am running into is that the background of the PNG image is filling in with > a > greyish blue color. The PNG image was created using photoshop and the > background was transparent. I've placed the symbol in my symbol file and > the mapfile is referencing the symbol. > # Symbol File # > SYMBOL > NAME 'arson2' > TYPE PIXMAP > IMAGE '/home/mapserv/proj/pmap/arson2.png' > TRANSPARENT 0 > END > > # MapFile # > STYLE > SYMBOL 'arson2' > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > END > > Here is what the image is supposed to look like: > http://www.nabble.com/file/p15994400/arson2.png > > Has anyone experienced this issue? > -- > View this message in context: > http://www.nabble.com/PNG-Image-for-symbol-tp15994400p15994400.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 > > -- View this message in context: http://www.nabble.com/PNG-Image-for-symbol-tp15994400p16028763.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lichte at icbm.de Thu Mar 13 08:42:42 2008 From: lichte at icbm.de (Oliver Lichte) Date: Thu, 13 Mar 2008 16:42:42 +0100 Subject: [MAPSERVER-USERS] Problem working with mapserver on linux In-Reply-To: <36186.61937.qm@web7615.mail.in.yahoo.com> References: <36186.61937.qm@web7615.mail.in.yahoo.com> Message-ID: <200803131642.43462.lichte@icbm.de> Hi Amit, seems not to be the equal setup. You should do ldd libmapscript.so within a bash and post the output here. I guess the libproj.so.0 and maybe others are not in path to be bound by libmapscript.so. Best regards Oliver Am Donnerstag 13 M?rz 2008 04:38 schrieb amit tripathi: > Problem working with mapserver on linux > Datum: Heute 04:38:38 -- Diplom-Informatiker Carl-von-Ossietzky-Stra?e 9-11 AG Integrative Modellierung D-26129 Oldenburg Institut f?r Chemie und Biologie des Meeres Tel.: +49-441-798-3622 Fax: -3404 Carl-v.-Ossietzky Universit?t Oldenburg www.icbm.de/impulse From dmorissette at mapgears.com Thu Mar 13 10:38:48 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 13 Mar 2008 13:38:48 -0400 Subject: [mapserver-users] MapScript logging In-Reply-To: <2a955f950803130642y6df65b00gfc9f04fe28071bd3@mail.gmail.com> References: <2a955f950803130642y6df65b00gfc9f04fe28071bd3@mail.gmail.com> Message-ID: <47D966A8.30003@mapgears.com> Rob wrote: > Hi again > > Yet another stupid question which hopefully has a very simple yes/no answer. > > I've compiled mapscript with the -DENABLE_STDERR_DEBUG option, and have > modified my mapfile to have a MAP level option of > > DEBUG ON > > and a WEB level option of > > LOG "\tmp\mapserver.log" > > but I am seeing no output created at all. Does the logging work when > using the MapScript API, or is it just a MapServer facility? > Which version of MapServer? If you are using version 5.0, then the way logging/debug output works has changed. More details are available in RFC-28: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 In your case you'll need to add to your mapfile: CONFIG "MS_ERRORFILE" "\tmp\mapserver.log" Daniel -- Daniel Morissette http://www.mapgears.com/ From vncntt at gmail.com Thu Mar 13 17:31:17 2008 From: vncntt at gmail.com (Alexander Napoleon) Date: Fri, 14 Mar 2008 01:31:17 +0100 Subject: [mapserver-users] GPX file viewer with mapserver Message-ID: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com> Hi, I want to make a .gpx file viewer with PHP/Mapscript and OGR extension, but I got errors. Can you give me advices? Do ORG extension of PHP support .gpx file? Is my map file correct? Thank you very much! Here is the errors: ------------------------------------- *Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named '12-MAR-08'. in *F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *9* *Warning*: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `test.gpx'. File not found or unsupported format. in * F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *9* *Fatal error*: Call to a member function saveWebImage() on a non-object in * F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *10 ------------------------------------------ *Here is my map file: ----------------------------------------------- NAME "Europe in purple" SIZE 400 400 STATUS ON #SYMBOLSET "/var/www/html/maps/symbols/symbols.sym" EXTENT 54.288403988 10.519452095 54.361188412 10.601441860 UNITS METERS #SHAPEPATH "data" WEB IMAGEPATH "f:/ms4w/Apache/htdocs/vd/gpx/" IMAGEURL "/vd/gpx/" END LAYER NAME "test" TYPE LINE CONNECTIONTYPE OGR CONNECTION "test.gpx" STATUS ON DATA "0" #MAXSCALE 8000000 CLASS STYLE COLOR 110 50 100 #OUTLINECOLOR 200 200 200 #SYMBOL 0 END END END END ------------------------------ And my php code: ------------------------------ <?php dl('php_mapscript.dll'); dl('php_ogr.dll'); //phpinfo(); $map_path="F:\ms4w\Apache\htdocs\vd\gpx\\"; $map = ms_newMapObj($map_path."gpx.map"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> <HTML> <HEAD> <TITLE>Example 1: Displaying a map > ------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Mar 13 17:47:47 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 13 Mar 2008 20:47:47 -0400 Subject: [mapserver-users] GPX file viewer with mapserver In-Reply-To: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com> References: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com> Message-ID: <47D9CB33.4030502@pobox.com> Alexander Napoleon wrote: > Hi, > I want to make a .gpx file viewer with PHP/Mapscript and OGR extension, but > I got errors. Can you give me advices? Do ORG extension of PHP support .gpx > file? Is my map file correct? Thank you very much! > > Here is the errors: > ------------------------------------- > *Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named > '12-MAR-08'. in *F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *9* > > *Warning*: [MapServer Error]: msOGRFileOpen(): Open failed for OGR > connection `test.gpx'. File not found or unsupported format. in * > F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *9* > > *Fatal error*: Call to a member function saveWebImage() on a non-object in * > F:\ms4w\Apache\htdocs\vd\gpx\gpx.php* on line *10 > ------------------------------------------ Alexander, I believe GPX support was introduced into OGR in the 1.5.0 release, and it is only enabled for reading in builds that include the Expat XML parser. I would suggest you try it at the commandline with ogrinfo: ogrinfo -al test.gpx I'd add the error report does not seem to indicate any path, so there may be a path problem. You might want to try with a full path from the root, and see if that works. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From edusferreira at gmail.com Thu Mar 13 17:55:12 2008 From: edusferreira at gmail.com (Eduardo Ferreira) Date: Thu, 13 Mar 2008 21:55:12 -0300 Subject: [mapserver-users] Problems compiling MapServer 5.0.2 for CentOs Message-ID: <5c0a7b400803131755q283dfa57w97919e1de9436381@mail.gmail.com> Hi, I'm compiling mapserver 5.0.2 with postgis and it's looks ok. The compiling process echos on display the message "yes, user suplied pg_config". But mapserver -v does not display INPUT=POSTGIS. Can anyone help please???? Thanks, Eduardo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at univali.br Thu Mar 13 21:18:47 2008 From: fsimon at univali.br (Fernando Simon) Date: Fri, 14 Mar 2008 01:18:47 -0300 Subject: [mapserver-users] oraclespatial wfs issue Message-ID: <1205468327.47d9fca73ad43@webmail.univali.br> Hi Holger, I am not a WFS specialist (I'm including Bart as CC, he is the WFS specialist), but I will try to help you. The maporaclespatial code try to use the extent that you define for you map, but I believe that you can define the extent for you WFS query (Am I right Bart?). So, the driver will use this extent as the operator restriction. The anyinteract operator is used because we need to check all the possibilities for interactions between the extent and the data (touches, crosses, inside, one point...). The NONE token force the driver to don't use any operator, so will not use the spatial index. As hint, you can try the FILTER instead the RELATE, is more fast. Best regards. Fernando Simon porath at web.de wrote: > Hi list, > > i am using mapserver 5.0.0 with oracle 10g as a wfs server. My mapfile has one layer with the following DATA statement: > DATA "ha_koordinate from os_hako USING UNIQUE ha_id RELATE VERSION 10g" > > When i do a getFeature request using comparison operator (Like) the sql produced by mapserver contains the spatial operator anyinteract (with the EXTENT set in the mapfile which includes all 1.4M rows). This is very inefficient, because it is not needed and slows down the query from 0.5 to 10 seconds. Obviously, the function osNoGeodeticData in maporaclespatial.c doesn't care if a spatial operator is needed or not. The function seems to add it depending on the configuration in the mapfile. > > When i change the DATA statement from "RELATE" to "NONE" the query is very fast. But in this case queries containing spatial operators (bbox) are slowing down from e.g. 1 second to 18 secods. So I am caught between the Devil and the deep blue sea. > > Any ideas? > > Thanks in advance. > > Holger > > _____________________________________________________________________ > Unbegrenzter Speicherplatz f?r Ihr E-Mail Postfach? Jetzt aktivieren! > http://freemail.web.de/club/landingpage.htm/?mc=025555 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From fsimon at univali.br Thu Mar 13 21:19:01 2008 From: fsimon at univali.br (Fernando Simon) Date: Fri, 14 Mar 2008 01:19:01 -0300 Subject: [mapserver-users] oraclespatial wfs issue Message-ID: <1205468341.47d9fcb58b66d@webmail.univali.br> Hi Holger, I am not a WFS specialist (I'm including Bart as CC, he is the WFS specialist), but I will try to help you. The maporaclespatial code try to use the extent that you define for you map, but I believe that you can define the extent for you WFS query (Am I right Bart?). So, the driver will use this extent as the operator restriction. The anyinteract operator is used because we need to check all the possibilities for interactions between the extent and the data (touches, crosses, inside, one point...). The NONE token force the driver to don't use any operator, so will not use the spatial index. As hint, you can try the FILTER instead the RELATE, is more fast. Best regards. Fernando Simon porath at web.de wrote: > Hi list, > > i am using mapserver 5.0.0 with oracle 10g as a wfs server. My mapfile has one layer with the following DATA statement: > DATA "ha_koordinate from os_hako USING UNIQUE ha_id RELATE VERSION 10g" > > When i do a getFeature request using comparison operator (Like) the sql produced by mapserver contains the spatial operator anyinteract (with the EXTENT set in the mapfile which includes all 1.4M rows). This is very inefficient, because it is not needed and slows down the query from 0.5 to 10 seconds. Obviously, the function osNoGeodeticData in maporaclespatial.c doesn't care if a spatial operator is needed or not. The function seems to add it depending on the configuration in the mapfile. > > When i change the DATA statement from "RELATE" to "NONE" the query is very fast. But in this case queries containing spatial operators (bbox) are slowing down from e.g. 1 second to 18 secods. So I am caught between the Devil and the deep blue sea. > > Any ideas? > > Thanks in advance. > > Holger > > _____________________________________________________________________ > Unbegrenzter Speicherplatz f?r Ihr E-Mail Postfach? Jetzt aktivieren! > http://freemail.web.de/club/landingpage.htm/?mc=025555 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From amit_101082 at yahoo.co.in Fri Mar 14 00:59:13 2008 From: amit_101082 at yahoo.co.in (amit tripathi) Date: Fri, 14 Mar 2008 13:29:13 +0530 (IST) Subject: [MAPSERVER-USERS] Problem working with mapserver on linux Message-ID: <833334.96319.qm@web7612.mail.in.yahoo.com> Hi Oliver, I got the problem solved, it was a permission issue. Best Regards, Amit ----- Original Message ---- From: Oliver Lichte To: mapserver-users at lists.osgeo.org Cc: amit tripathi ; rich.fromm Sent: Thursday, 13 March, 2008 9:12:42 PM Subject: Re: [MAPSERVER-USERS] Problem working with mapserver on linux Hi Amit, seems not to be the equal setup. You should do ldd libmapscript.so within a bash and post the output here. I guess the libproj.so.0 and maybe others are not in path to be bound by libmapscript.so. Best regards Oliver Am Donnerstag 13 M?rz 2008 04:38 schrieb amit tripathi: > Problem working with mapserver on linux > Datum: Heute 04:38:38 -- Diplom-Informatiker Carl-von-Ossietzky-Stra?e 9-11 AG Integrative Modellierung D-26129 Oldenburg Institut f?r Chemie und Biologie des Meeres Tel.: +49-441-798-3622 Fax: -3404 Carl-v.-Ossietzky Universit?t Oldenburg www.icbm.de/impulse ___________________________________________________________ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From amit_101082 at yahoo.co.in Fri Mar 14 01:01:25 2008 From: amit_101082 at yahoo.co.in (amit tripathi) Date: Fri, 14 Mar 2008 13:31:25 +0530 (IST) Subject: [mapserver-users] Need shape files Message-ID: <159851.98256.qm@web7612.mail.in.yahoo.com> Hi, I need to get shape files for JORDAN(preferably open source for testing purpose). Please guide me from where i can find these? Regards, Amit __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html From ritesh.linux at gmail.com Fri Mar 14 02:24:07 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 14 Mar 2008 02:24:07 -0700 (PDT) Subject: [MAPSERVER-USERS] AGG/PNG Driver Problem even if it is configured properly In-Reply-To: <47D81E87.2060301@umn.edu> References: <15997331.post@talk.nabble.com> <47D81E87.2060301@umn.edu> Message-ID: <16047097.post@talk.nabble.com> Nope Pericles S. Nacionales-2 wrote: > > riteshambastha wrote: >> Dear Readers, >> >> I have configured mapserver on my linux machine with AGG support. >> >> mapserv -v shows "SUPPORTS = AGG". >> >> But, when I use AGG/PNG driver in my map file I get this error: >> OUTPUTFORMAT >> clause references driver AGG/PNG, but this driver isn't configured in >> ..... >> >> Please help me to know the base of this problem. Is there any way to >> check >> whether the AGG Driver is configured correctly > Does this thread apply to you: > http://lists.osgeo.org/pipermail/mapserver-users/2008-January/027288.html? > > -Perry > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/AGG-PNG-Driver-Problem-even-if-it-is-configured-properly-tp15997331p16047097.html Sent from the Mapserver - User mailing list archive at Nabble.com. From langelierfrancis at gmail.com Fri Mar 14 02:42:52 2008 From: langelierfrancis at gmail.com (Francis Langelier) Date: Fri, 14 Mar 2008 10:42:52 +0100 Subject: [mapserver-users] MapServer-Postgis connection problem Message-ID: Hi, I have two MapServer installations that access a PostGIS database. One is a test server located in the same domain as Postgis and one is a production server located in a separate domain from Postgis. Both servers access successfully to Postgis data from an php application using pgsql, but only test server can access to Postgis data using Mapserver. I'm using ms4w on both servers. Test server and Postgis server are under Windows XP. Production server is under Windows Server 2003. - The mapfiles are identical on both servers except for the connection string to Postgis (I used both IP addresses and domain name, no difference) - MapServer works fine on both servers. I don't get any error, It's only postgis data that aren't drawn on production server (raster work fine). - pg_hba.conf has been edited to accept access from both servers - listen_addresses = '*' in postgresql.conf Does someone can help me? Thank you! Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Fri Mar 14 04:09:26 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 14 Mar 2008 12:09:26 +0100 Subject: [mapserver-users] Need shape files In-Reply-To: <159851.98256.qm@web7612.mail.in.yahoo.com> References: <159851.98256.qm@web7612.mail.in.yahoo.com> Message-ID: <47DA5CE6.5020300@zeelandnet.nl> Hello Amit, I can provide a variety of GIS data, but what or where is JORDAN? Please give me some details. Another thing you can do is install one of the opensource Desktop GIS (uDig, OpenJump, QuantumGIS) and create your own data. Kind regards, Milo van der Linden amit tripathi schreef: > Hi, > > I need to get shape files for JORDAN(preferably open source for testing purpose). Please guide me from where i can find these? > > Regards, > Amit > > > > > __________________________________________________________ > Sent from Yahoo! Mail. > The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From adams at terrestris.de Fri Mar 14 04:32:14 2008 From: adams at terrestris.de (Till Adams) Date: Fri, 14 Mar 2008 12:32:14 +0100 Subject: [mapserver-users] Need shape files In-Reply-To: <47DA5CE6.5020300@zeelandnet.nl> References: <159851.98256.qm@web7612.mail.in.yahoo.com> <47DA5CE6.5020300@zeelandnet.nl> Message-ID: <47DA623E.7080409@terrestris.de> Milo, great - I would have bet you are American ;-) -->http://www.openstreetmap.org/?mlat=31.5836903251737&mlon=36.3333535194397&zoom=7 Amit, see "gisdatadepot.com" as a point to start for downloading rough (and probaly not up-to-date) Geodata countrywise. In OpenStreetmap there is poor information about Jordan. Regards, Till > Hello Amit, > > I can provide a variety of GIS data, but what or where is JORDAN? > Please give me some details. > > Another thing you can do is install one of the opensource Desktop GIS > (uDig, OpenJump, QuantumGIS) and create your own data. > > Kind regards, > Milo van der Linden > > amit tripathi schreef: > >> Hi, >> >> I need to get shape files for JORDAN(preferably open source for >> testing purpose). Please guide me from where i can find these? >> >> Regards, >> Amit >> >> >> >> >> __________________________________________________________ >> Sent from Yahoo! Mail. >> The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ****************************************** digitale Karten f?r Jeden! terrestris bietet OpenLayers KnowHow! http://maps.terrestris.de/webgisfueralle ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From amit_101082 at yahoo.co.in Fri Mar 14 04:51:17 2008 From: amit_101082 at yahoo.co.in (amit tripathi) Date: Fri, 14 Mar 2008 17:21:17 +0530 (IST) Subject: [mapserver-users] Need shape files Message-ID: <634093.54235.qm@web7614.mail.in.yahoo.com> Till, it provides eoo files, can you tell me how these files can be converted into .shp and .dbf files. Regards, Amit ----- Original Message ---- From: Till Adams To: mapserver-users at lists.osgeo.org Sent: Friday, 14 March, 2008 5:02:14 PM Subject: Re: [mapserver-users] Need shape files Milo, great - I would have bet you are American ;-) -->http://www.openstreetmap.org/?mlat=31.5836903251737&mlon=36.3333535194397&zoom=7 Amit, see "gisdatadepot.com" as a point to start for downloading rough (and probaly not up-to-date) Geodata countrywise. In OpenStreetmap there is poor information about Jordan. Regards, Till > Hello Amit, > > I can provide a variety of GIS data, but what or where is JORDAN? > Please give me some details. > > Another thing you can do is install one of the opensource Desktop GIS > (uDig, OpenJump, QuantumGIS) and create your own data. > > Kind regards, > Milo van der Linden > > amit tripathi schreef: > >> Hi, >> >> I need to get shape files for JORDAN(preferably open source for >> testing purpose). Please guide me from where i can find these? >> >> Regards, >> Amit >> >> >> >> >> __________________________________________________________ >> Sent from Yahoo! Mail. >> The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ****************************************** digitale Karten f?r Jeden! terrestris bietet OpenLayers KnowHow! http://maps.terrestris.de/webgisfueralle ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___________________________________________________________ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From JXA at cowi.dk Fri Mar 14 05:04:35 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Fri, 14 Mar 2008 13:04:35 +0100 Subject: [mapserver-users] WMS and IWS Message-ID: Hello all iam trying to get a map from a WMS server that is runned by a Image Web Server (IWS) but when I try I dont get any image and if I look in the IWS log file it say etError() Invalid bounding box when I use it against another wms that is not an WMS on a IWS server it works fine anyone who have tryid it and knows how to fix it Med venlig hilsen Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Fri Mar 14 05:09:48 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 14 Mar 2008 08:09:48 -0400 Subject: [mapserver-users] WMS and IWS In-Reply-To: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF13E@ecburexch1.ontario.int.ec.gc.ca> What does your WMS GetMap request look like? Can you check your web server logfiles (I'm guessing you have access to these, as you have access to the IWS logfile). ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeppe Lund Andersen Sent: 14 March, 2008 8:05 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS and IWS Hello all iam trying to get a map from a WMS server that is runned by a Image Web Server (IWS) but when I try I dont get any image and if I look in the IWS log file it say etError() Invalid bounding box when I use it against another wms that is not an WMS on a IWS server it works fine anyone who have tryid it and knows how to fix it Med venlig hilsen Jeppe Lund Andersen From JXA at cowi.dk Fri Mar 14 05:20:59 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Fri, 14 Mar 2008 13:20:59 +0100 Subject: [mapserver-users] WMS and IWS In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF13E@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF13E@ecburexch1.ontario.int.ec.gc.ca> Message-ID: the request look fine and works if I use it from the browser wms?request=GetMap&LAYERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM& REQUEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=300&QUERY_LA YERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM&VERSION=1.1.1&SRS=EPS G:25832&WIDTH=400&BBOX=478800,6327725,479800,6328475&TRANSPARENT=TRUE&EX CEPTIONS=application/vnd.ogc.se_inimage > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Friday, March 14, 2008 1:10 PM > To: Jeppe Lund Andersen; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] WMS and IWS > > > What does your WMS GetMap request look like? Can you check > your web server logfiles (I'm guessing you have access to > these, as you have access to the IWS logfile). > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Jeppe Lund Andersen > Sent: 14 March, 2008 8:05 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS and IWS > > > > Hello all > > iam trying to get a map from a WMS server that is > runned by a Image Web Server (IWS) > but when I try I dont get any image > and if I look in the IWS log file it say > etError() Invalid bounding box > > when I use it against another wms that is not an WMS on > a IWS server it works fine > > anyone who have tryid it and knows how to fix it > > Med venlig hilsen > > Jeppe Lund Andersen > > > From bartvde at osgis.nl Fri Mar 14 05:34:22 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Fri, 14 Mar 2008 13:34:22 +0100 Subject: [mapserver-users] WMS and IWS Message-ID: <4508af7e8fa14c6513303e8e8ac64843@145.50.39.11> Maybe Mapserver is encoding the , in the BBOX? See: http://trac.osgeo.org/mapserver/ticket/1296 Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Jeppe Lund Andersen Naar: Kralidis,Tom [Burlington] , mapserver-users at lists.osgeo.org Onderwerp: RE: [mapserver-users] WMS and IWS Datum: 14/03/08 10:21 > the request look fine and works if I use it from the browser > > wms?request=GetMap&LAYERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM& > REQUEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=300&QUERY_LA > YERS=DDOLAND2004-25CM_DDOLAND2004-KORTAL_VEST_25CM&VERSION=1.1.1&SRS=EPS > G:25832&WIDTH=400&BBOX=478800,6327725,479800,6328475&TRANSPARENT=TRUE&EX > CEPTIONS=application/vnd.ogc.se_inimage > > > > > > -----Original Message----- > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > Sent: Friday, March 14, 2008 1:10 PM > > To: Jeppe Lund Andersen; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] WMS and IWS > > > > > > What does your WMS GetMap request look like? Can you check > > your web server logfiles (I'm guessing you have access to > > these, as you have access to the IWS logfile). > > > > ..Tom > > > > > > > > ________________________________ > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > Jeppe Lund Andersen > > Sent: 14 March, 2008 8:05 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] WMS and IWS > > > > > > > > Hello all > > > > iam trying to get a map from a WMS server that is > > runned by a Image Web Server (IWS) > > but when I try I dont get any image > > and if I look in the IWS log file it say > > etError() Invalid bounding box > > > > when I use it against another wms that is not an WMS on > > a IWS server it works fine > > > > anyone who have tryid it and knows how to fix it > > > > Med venlig hilsen > > > > Jeppe Lund Andersen > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gis at vanbooth.com Fri Mar 14 07:29:28 2008 From: gis at vanbooth.com (Rob) Date: Fri, 14 Mar 2008 14:29:28 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <47D93532.6080405@mapgears.com> References: <2a955f950803120812y16ced538q4c9fde790762f847@mail.gmail.com> <2a955f950803130450s573824cn427edc2a9bef056c@mail.gmail.com> <47D93532.6080405@mapgears.com> Message-ID: <2a955f950803140729y2ab45116ua24455524208cc2d@mail.gmail.com> Just to follow this up, I have again tried mapobj.setProjection('+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717+x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs'); but this still does not work. mapobj.setWKTProjection('PROJCS["OSGB 1936 / British National Grid",GEOGCS["OSGB 1936",DATUM["OSGB_1936",SPHEROID["Airy 1830",6377563.396, 299.3249646 ,AUTHORITY["EPSG","7001"]],AUTHORITY["EPSG","6277"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree", 0.01745329251994328 ,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4277"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",49],PARAMETER["central_meridian",-2],PARAMETER["scale_factor", 0.9996012717 ],PARAMETER["false_easting",400000],PARAMETER["false_northing",-100000],AUTHORITY["EPSG","27700"]]') does work however, and is completing in roughly 4ms (with a premium for the first attempt ~ 50ms) Compared to the 100-200ms I have been seeing for 'init=epsg:27700' this is a significant improvement, especially as this method is used for every layer in a request, and my standard request is approx 18 layers (2 seconds per request has shrunk to 90ms). Many thanks to all concerned for their help. Much appreciated. I would still like to know how to do it via a setProjection method, but I now have an effective workaround. Thanks Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Fri Mar 14 08:20:59 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 14 Mar 2008 08:20:59 -0700 (PDT) Subject: [MAPSERVER-USERS] Tiff files with different projections in the same layer Message-ID: <16048268.post@talk.nabble.com> Hi! I have several GeoTiff files with different projections parameters, they are all transverse mercator but the central meridian and the latitude of origin differs. The projection information is written in the tiff files, hence the files are real GeoTiffs. Is it possible to build a tileindex for these files without re projecting them to a common projection, and access them trough one single layer in a mapfile? Regards P?l Kristensen -- View this message in context: http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16048268.html Sent from the Mapserver - User mailing list archive at Nabble.com. From juozas.urbonas at teltonika.lt Fri Mar 14 08:24:39 2008 From: juozas.urbonas at teltonika.lt (Juozas Urbonas) Date: Fri, 14 Mar 2008 17:24:39 +0200 Subject: [mapserver-users] Re: Image shrinking problem In-Reply-To: <47C5D5D9.1070506@pobox.com> References: <47C5D5D9.1070506@pobox.com> Message-ID: <32731F02B79641E187E95B504E3E3F11@JUOZASURBONAS> Hello again, I achieve best image quality with my driver when using PROCESSING "OVERSAMPLE_RATIO=1", but there seems to be a bug in the MapServer, because sometimes I get images, which have last row and sometimes last column set to map's back color. If I set OVERSAMPLE_RATIO to 1.01 the problem seems to disappear, but image quality degrades noticeably, because I'm using PROCESSING "RESAMPLE=NEAREST" to achieve lowest image size when using PNG compression. When using RESAMPLE set to BILINEAR or AVERAGE, PNG image size triples. I want to use PNG, because my map is road map with lots of areas in same color. If I'm correct, hope this bug can be fixed by someone. Thanks. Juozas. ----- Original Message ----- From: "Frank Warmerdam" To: "Juozas Urbonas" Cc: Sent: Wednesday, February 27, 2008 11:27 PM Subject: Re: [mapserver-users] Re: Image shrinking problem > Juozas Urbonas wrote: >> I'm sorry, I forgot to mention, that I'm creating GDAL driver, which I'm >> trying to use with MapServer. >> Here is the gdalinfo for my map: >> Driver: AkisAx/Akis Map Link (.mln) > > ... >> Hi All, >> When I'm requesting some image using WMS, my overridden IRasterIO >> gets called with nBufXSize and nBufYSize nearly double the size I'm >> requesting in WMS call and in the process image returned by WMS gets >> shrinked. What may cause this problem? >> I'm expecting nBufXSize and nBufYSize to be approximately the same >> size as in WMS request. > > Juozas, > > I seem to have missed this question the first time around. If you request > the image by WMS in it's native coordinate system then MapServer should do > a RasterIO() request to the GDAL driver suitable for direct application to > the WMS image buffer. That is the buffer xsize/ysize will be no larger > than > the requested image. > > But if you request in another coordinate system, or if MapServer decides > to > go through the "general resampler" (ie. mapresample.c) for any other > reason (such as non-square pixel request, rotated image, > RESAMPLE= other than NEAREST>) then things are different. In this case > mapresample.c > will request the image for the region of interest at approximately double > the final request resolution and then sample from that buffer. > > You can control this "oversampling ratio" using the OVERSAMPLE_RATIO > PROCESSING directive. > > eg. > PROCESSING "OVERSAMPLE_RATIO=1.1" > > Note that I pull at double resolution in the hopes of avoiding some > aliases > issues with fetching the data at nearly the target resolution before going > through the resampler. So you may see image quality degrade if you pick a > modest oversample ratio. > > Best regards, > > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > From ed at topozone.com Fri Mar 14 08:39:25 2008 From: ed at topozone.com (Ed McNierney) Date: Fri, 14 Mar 2008 11:39:25 -0400 Subject: [MAPSERVER-USERS] Tiff files with different projections in the samelayer In-Reply-To: <16048268.post@talk.nabble.com> References: <16048268.post@talk.nabble.com> Message-ID: <4BF377919225F449BB097CB76FFE9BC8019889AE@ptolemy.topozone.com> P?l - The problem is that your TILEINDEX shapefile is only in one projection, and there is no facility for recording per-file projection parameters in it. I would instead recommend that you create one layer, and one TILEINDEX, for each distinct projection, and then create a GROUP that combines all these layers into a single logical layer you can turn on or off and treat as if it were a single layer. - Ed P.S. I wonder if it *might* be possible to bundle these in one layer if you reprojected each image into a common projection, created a TILEINDEX for those files, then replaced those reprojected files with the originals. The TILEINDEX is used to quickly identify candidate images for use in rendering the map request, and GDAL *might* respect the projection in the GeoTIFF once the file was opened. But I've never tried that and I think the GROUP approach I described is much simpler and safer. Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of P?l Kristensen Sent: Friday, March 14, 2008 11:21 AM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Tiff files with different projections in the samelayer Hi! I have several GeoTiff files with different projections parameters, they are all transverse mercator but the central meridian and the latitude of origin differs. The projection information is written in the tiff files, hence the files are real GeoTiffs. Is it possible to build a tileindex for these files without re projecting them to a common projection, and access them trough one single layer in a mapfile? Regards P?l Kristensen -- View this message in context: http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16048268.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Fri Mar 14 08:53:52 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 14 Mar 2008 17:53:52 +0200 Subject: [MAPSERVER-USERS] Tiff files with different projections in the samelayer References: <16048268.post@talk.nabble.com> Message-ID: I fear that tileindex can contain only images sharing the same projection. But perhaps, if you do not have very many different projections, you could make own tileindex for each projection and put them under same GROUP. Kind of a trick that might work is to reproject images to some common projection, not physically but by creating a virtual raster (.vrt). Something like this: C:\data>gdalwarp -of vrt -s_srs epsg:2392 -t_srs epsg:2393 saarijarvi.tif vrt_test.vrt Followed by: gdaltindex vrt_tindex.shp *.vrt I have never tried that but somehow the idea fascinates me. I hope it works. -Jukka Rahkonen. -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: P?l Kristensen L?hetetty: pe 14.3.2008 17:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MAPSERVER-USERS] Tiff files with different projections in the samelayer Hi! I have several GeoTiff files with different projections parameters, they are all transverse mercator but the central meridian and the latitude of origin differs. The projection information is written in the tiff files, hence the files are real GeoTiffs. Is it possible to build a tileindex for these files without re projecting them to a common projection, and access them trough one single layer in a mapfile? Regards P?l Kristensen -- View this message in context: http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16048268.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 gis at vanbooth.com Fri Mar 14 08:59:58 2008 From: gis at vanbooth.com (Rob) Date: Fri, 14 Mar 2008 15:59:58 +0000 Subject: [mapserver-users] Need shape files In-Reply-To: <634093.54235.qm@web7614.mail.in.yahoo.com> References: <634093.54235.qm@web7614.mail.in.yahoo.com> Message-ID: <2a955f950803140859h7e146be1k245080bb6cb8f280@mail.gmail.com> You could also try http://wiki.openstreetmap.org/index.php/Potential_Datasources or http://www.geonames.org/export/ You might need to convert to shapefile, but that should be easy with one of the tools mentioned earlier in the thread. Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Fri Mar 14 10:34:34 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 14 Mar 2008 18:34:34 +0100 Subject: [mapserver-users] Need shape files In-Reply-To: <634093.54235.qm@web7614.mail.in.yahoo.com> References: <634093.54235.qm@web7614.mail.in.yahoo.com> Message-ID: <47DAB72A.6030107@zeelandnet.nl> e00 can be converted using http://avce00.maptools.org/ amit tripathi schreef: > Till, > it provides eoo files, can you tell me how these files can be converted into .shp and .dbf files. > > Regards, > Amit > > ----- Original Message ---- > From: Till Adams > To: mapserver-users at lists.osgeo.org > Sent: Friday, 14 March, 2008 5:02:14 PM > Subject: Re: [mapserver-users] Need shape files > > Milo, > > great - I would have bet you are American ;-) > -->http://www.openstreetmap.org/?mlat=31.5836903251737&mlon=36.3333535194397&zoom=7 > > > Amit, > > see "gisdatadepot.com" as a point to start for downloading rough (and > probaly not up-to-date) Geodata countrywise. > In OpenStreetmap there is poor information about Jordan. > > Regards, Till > > > >> Hello Amit, >> >> I can provide a variety of GIS data, but what or where is JORDAN? >> Please give me some details. >> >> Another thing you can do is install one of the opensource Desktop GIS >> (uDig, OpenJump, QuantumGIS) and create your own data. >> >> Kind regards, >> Milo van der Linden >> >> amit tripathi schreef: >> >> >>> Hi, >>> >>> I need to get shape files for JORDAN(preferably open source for >>> testing purpose). Please guide me from where i can find these? >>> >>> Regards, >>> Amit >>> >>> >>> >>> >>> __________________________________________________________ >>> Sent from Yahoo! Mail. >>> The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > From pal.kristensen at statkart.no Sat Mar 15 04:04:37 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Sat, 15 Mar 2008 04:04:37 -0700 (PDT) Subject: [MAPSERVER-USERS] Tiff files with different projections in the samelayer In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019889AE@ptolemy.topozone.com> References: <16048268.post@talk.nabble.com> <4BF377919225F449BB097CB76FFE9BC8019889AE@ptolemy.topozone.com> Message-ID: <16066685.post@talk.nabble.com> Hi! Thanks for helping with this. The GROUP mechanism is what I normally would use, and have been doing in some other projects. The problem with this particular case is that every of the 200 tiff's has different projections. I tried to re project them to WGS84 UTMsone33 (EPSG:32633) with GDALWARP and it worked quite well, so I think the solution in this case will be to batch re project all the tiffs. GDALWARP used only approx 0,5 min on each raster so it's no big deal to re project them. Thanks for the hints! Regards, P?l Kristensen Ed McNierney wrote: > > P?l - > > The problem is that your TILEINDEX shapefile is only in one projection, > and there is no facility for recording per-file projection parameters in > it. > > I would instead recommend that you create one layer, and one TILEINDEX, > for each distinct projection, and then create a GROUP that combines all > these layers into a single logical layer you can turn on or off and treat > as if it were a single layer. > > - Ed > > P.S. I wonder if it *might* be possible to bundle these in one layer if > you reprojected each image into a common projection, created a TILEINDEX > for those files, then replaced those reprojected files with the originals. > The TILEINDEX is used to quickly identify candidate images for use in > rendering the map request, and GDAL *might* respect the projection in the > GeoTIFF once the file was opened. But I've never tried that and I think > the GROUP approach I described is much simpler and safer. > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: 978-251-4242, Fax: 978-251-1396 > ed at topozone.com > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of P?l > Kristensen > Sent: Friday, March 14, 2008 11:21 AM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Tiff files with different projections in the > samelayer > > > Hi! > > I have several GeoTiff files with different projections parameters, they > are > all transverse mercator but the central meridian and the latitude of > origin > differs. The projection information is written in the tiff files, hence > the > files are real GeoTiffs. Is it possible to build a tileindex for these > files > without re projecting them to a common projection, and access them trough > one single layer in a mapfile? > > Regards > P?l Kristensen > -- > View this message in context: > http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16048268.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 > > -- View this message in context: http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16066685.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vncntt at gmail.com Sat Mar 15 16:31:47 2008 From: vncntt at gmail.com (Tran Tho Ha) Date: Sun, 16 Mar 2008 00:31:47 +0100 Subject: [mapserver-users] GPX file viewer with mapserver In-Reply-To: <47D9CB33.4030502@pobox.com> References: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com> <47D9CB33.4030502@pobox.com> Message-ID: <17ec4d140803151631n2637d614g3aa08d61518dc32c@mail.gmail.com> Thanks Frank for your advice. I identified that I was using old version of MS4W. So when I upgrade to MS4W 2.2.7, it works. At least, the errors I mentioned before didn't occurred anymore. But I have another problem: I only get a blank image, instead of a map. Can you suggest which things should I check for this error? On Fri, Mar 14, 2008 at 1:47 AM, Frank Warmerdam wrote: > > Alexander, > > I believe GPX support was introduced into OGR in the 1.5.0 release, and > it is only enabled for reading in builds that include the Expat XML > parser. > I would suggest you try it at the commandline with ogrinfo: > > ogrinfo -al test.gpx > > I'd add the error report does not seem to indicate any path, so there > may be a path problem. You might want to try with a full path from > the root, and see if that works. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun Mar 16 06:57:58 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 16 Mar 2008 15:57:58 +0200 Subject: [mapserver-users] GPX file viewer with mapserver References: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com><47D9CB33.4030502@pobox.com> <17ec4d140803151631n2637d614g3aa08d61518dc32c@mail.gmail.com> Message-ID: L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Tran Tho Ha > Thanks Frank for your advice. > I identified that I was using old version of MS4W. So when I upgrade to MS4W > 2.2.7, it works. At least, the errors I mentioned before didn't occurred > anymore. But I have another problem: I only get a blank image, instead of a > map. Can you suggest which things should I check for this error? I believe that the most common reason for getting an empty map is simply that there are no data on the area of the request. Check very first that your request and mapfile are using the same projection and that the layer data is having a correct projection, which I believe to be always epsg:4326 for gpx. Then check that the mapfile extents are correct so that your data fall inside. I suggest to start with keeping everything in epsg:4326. Use ogrinfo to see the extents of the data and put those values to mapfile EXTENT and to your request. -Jukka Rahkonen- From vncntt at gmail.com Sun Mar 16 10:42:26 2008 From: vncntt at gmail.com (Tran Tho Ha) Date: Sun, 16 Mar 2008 18:42:26 +0100 Subject: [mapserver-users] GPX file viewer with mapserver In-Reply-To: References: <17ec4d140803131731r5394b5d2rcc1a328120d4ce2c@mail.gmail.com> <47D9CB33.4030502@pobox.com> <17ec4d140803151631n2637d614g3aa08d61518dc32c@mail.gmail.com> Message-ID: <17ec4d140803161042o410f97b2if5026e54a997c568@mail.gmail.com> Thank you, Rahkonen Jukka. Your advice helps me to fix this problem. I was wrong in identification of EXTENT and layer data. By using "ogrinfo", I fixed it. Best regards, Tran Tho Ha On Sun, Mar 16, 2008 at 2:57 PM, Rahkonen Jukka wrote: > Tran Tho Ha wrote > > > Thanks Frank for your advice. > > I identified that I was using old version of MS4W. So when I upgrade to > MS4W > > 2.2.7, it works. At least, the errors I mentioned before didn't > occurred > > anymore. But I have another problem: I only get a blank image, instead > of a > > map. Can you suggest which things should I check for this error? > > I believe that the most common reason for getting an empty map is simply > that > there are no data on the area of the request. Check very first that your > request and mapfile are using the same projection and that the layer data > is > having a correct projection, which I believe to be always epsg:4326 for > gpx. > Then check that the mapfile extents are correct so that your data fall > inside. > I suggest to start with keeping everything in epsg:4326. Use ogrinfo to > see the extents of the data and put those values to mapfile EXTENT and to > your > request. > > -Jukka Rahkonen- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From micha at arava.co.il Mon Mar 17 03:19:21 2008 From: micha at arava.co.il (Micha Silver) Date: Mon, 17 Mar 2008 12:19:21 +0200 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47D7FB2B.80602@mapgears.com> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> Message-ID: <47DE45A9.9060708@arava.co.il> Daniel Morissette wrote: > Copying what I wrote earlier this morning on the ka-map list (sorry > for those on both lists): > > FYI there is an open MapServer ticket about this: > http://trac.osgeo.org/mapserver/ticket/956 > > The ticket even includes a patch that you may want to try. I'll try to > address this one for MapServer 5.2. > Great news! I'll be building a new mapserver setup soon (currently running 4.10.3). I think that Ehud Shabatai's patch for bidi support is only against versions around 4.6.x. If there's anything newer, I'd be happy to try. I've got plenty of data in PostGIS with hebrew labels waiting to be used. And version 5.2 is still quite a ways off, I guess. Thanks, Micha > Daniel > > -- Micha Silver Arava Development Co +972-8-6592270 From Janosch.Skrobek at trier.de Mon Mar 17 04:06:46 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 17 Mar 2008 12:06:46 +0100 Subject: [mapserver-users] activate axtivex by default In-Reply-To: <47DE45A9.9060708@arava.co.il> References: <168450.95248.qm@web62411.mail.re1.yahoo.com><47D7FB2B.80602@mapgears.com> <47DE45A9.9060708@arava.co.il> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D37FC95@rh-ex-02.rathaus.trier> Hello everyone! I have implemented a javascript rubber box in my mapserver application. Whenever someone using internet explorer 6 trys to use the apllication they have to click once so the applet gets activated and again after each time the page has reloaded ... Pretty annoying ... does anyone know how to avoid this? Thanks in advance! Janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From benftee at gmail.com Mon Mar 17 06:45:21 2008 From: benftee at gmail.com (Ben Thompson) Date: Mon, 17 Mar 2008 09:45:21 -0400 Subject: [mapserver-users] SET MAPSERVER-USERS DIGEST Message-ID: SET MAPSERVER-USERS DIGEST -------------- next part -------------- An HTML attachment was scrubbed... URL: From amuratore at echostorm.net Fri Mar 14 11:15:09 2008 From: amuratore at echostorm.net (Alison Muratore) Date: Fri, 14 Mar 2008 14:15:09 -0400 Subject: [mapserver-users] Labels for point features do not display Message-ID: <35CC808A-84A0-4087-93B1-5B973465982D@echostorm.net> I have MapServer 5.0 and I am trying to label three cities feature classes in my map. The labels display for my polygon and line features, but I cannot get them to display for my point features. Below is the map file I created; I cannot see any reason as to why the polygon and line features label, but the points do not. Please help!! --Ali # WMS Map File # # Jim, Ali # # Revised: 13 March 2008 for Demonstration # # Copyright 2007 EchoStorm Worldwide, LLC MAP NAME EchoStormWMS STATUS ON SIZE 720 360 EXTENT -180 -90 180 90 SHAPEPATH "data/vector" IMAGECOLOR 192 192 192 IMAGETYPE PNG24 FONTSET "fonts/fonts.txt" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB METADATA WMS_TITLE "EchoStorm WMS" WMS_ONLINERESOURCE "http://sharkssh.myftp.org:443/cgi-bin/ mapserv?map=/data/mapserver/wms_ali_adm.map&" WMS_SRS "EPSG:4326" END END PROJECTION "init=epsg:4326" END SYMBOL NAME 'star3' TYPE vector FILLED true POINTS 119 0 148 86 238 86 166 140 192 226 119 175 46 226 72 140 0 86 90 86 119 0 END END SYMBOL NAME 'other' TYPE ELLIPSE FILLED TRUE POINTS 6 6 END END # Labels for Cities LAYER NAME NAT_LABELS TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "CITY_NAME" MAXSCALE 15000000. # MINSCALE 8000000. DATA "Cities_National" CLASS LABEL TYPE TRUETYPE FONT "treb" ANTIALIAS TRUE SIZE 14 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME PROV_LABELS TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "CITY_NAME" MAXSCALE 4000000. # MINSCALE 8000000. DATA "Cities_Provincial" CLASS LABEL TYPE TRUETYPE FONT "treb" ANTIALIAS TRUE SIZE 11 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME OTHERS_LABELS TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "CITY_NAME" MAXSCALE 4000000. # MINSCALE 8000000. DATA "Cities_Other" CLASS LABEL TYPE TRUETYPE FONT "treb" ANTIALIAS TRUE SIZE 10 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END # Cities LAYER NAME NAT_CITIES TYPE POINT DATA "Cities_National" MAXSCALE 15000000. # MINSCALE 8000000. STATUS ON CLASS NAME "National Capitals" #The first style listed is placed on the bottom of the stack - it's backwards from the TOC! STYLE SYMBOL 'other' COLOR 0 0 0 SIZE 15 END STYLE SYMBOL 'other' COLOR 255 255 255 SIZE 13 END STYLE SYMBOL 'star3' COLOR 0 0 0 SIZE 10 END END METADATA WMS_TITLE "National Capitals" WMS_SRS "EPSG:4326" END END LAYER NAME PROV_CITIES TYPE POINT DATA "Cities_Provincial" MAXSCALE 4000000. STATUS ON CLASS NAME "Provincial Capitals" STYLE SYMBOL 'other' COLOR 0 0 0 SIZE 14 END STYLE SYMBOL 'other' COLOR 255 255 255 SIZE 10 END STYLE SYMBOL 'other' COLOR 0 0 0 SIZE 6 END END METADATA WMS_TITLE "Provincial Capitals" WMS_SRS "EPSG:4326" END END LAYER NAME OTHER_CITIES TYPE POINT DATA "Cities_Other" MAXSCALE 4000000. STATUS ON CLASS NAME "Other Cities" STYLE SYMBOL 'other' COLOR 0 0 0 SIZE 6 END END METADATA WMS_TITLE "Other Cities" WMS_SRS "EPSG:4326" END END # Labels for ADM and water layers LAYER NAME ADM0_LABELS_1 TYPE ANNOTATION STATUS OFF LABELCACHE ON LABELITEM "ADM0" MAXSCALE 15000000. MINSCALE 8000000. DATA "Non_CONUS_ADM0_021808" CLASS LABEL TYPE TRUETYPE FONT "franklin" ANTIALIAS TRUE SIZE 18 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME ADM0_LABELS_2 TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "ADM0" MAXSCALE 8000000. MINSCALE 4000000. DATA "Non_CONUS_ADM0_021808" CLASS LABEL TYPE TRUETYPE FONT "franklin" ANTIALIAS TRUE SIZE 20 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME ADM0_LABELS_3 TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "ADM0" MAXSCALE 4000000. DATA "Non_CONUS_ADM0_021808" CLASS LABEL TYPE TRUETYPE FONT "franklin" ANTIALIAS TRUE SIZE 24 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME ADM1_LABELS TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "PROVINCE_N" MAXSCALE 3000000. DATA "Non_CONUS_ADM1_021808" CLASS LABEL TYPE TRUETYPE FONT "fi" ANTIALIAS TRUE SIZE 14 POSITION AUTO COLOR 255 255 255 OUTLINECOLOR 0 0 0 PARTIALS FALSE MINFEATURESIZE AUTO # WRAP " " END END END LAYER NAME MAJOR_RIVERS_LABELS_1 TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "PRIMARY_NA" MAXSCALE 8000000. MINSCALE 4000000. DATA "Major_Rivers" CLASS LABEL TYPE TRUETYPE FONT "ab" ANTIALIAS TRUE SIZE 9 POSITION UC # MINDISTANCE 50 ANGLE FOLLOW BUFFER 10 COLOR 66 102 235 OUTLINECOLOR 255 255 255 PARTIALS FALSE MINFEATURESIZE 20 # WRAP " " END END END LAYER NAME MAJOR_RIVERS_LABELS_2 TYPE ANNOTATION STATUS ON LABELCACHE ON LABELITEM "PRIMARY_NA" MAXSCALE 4000000. DATA "Major_Rivers" CLASS LABEL TYPE TRUETYPE FONT "ab" ANTIALIAS TRUE SIZE 10 POSITION UC # MINDISTANCE 50 ANGLE FOLLOW BUFFER 10 COLOR 66 102 235 OUTLINECOLOR 255 255 255 PARTIALS FALSE MINFEATURESIZE 20 # WRAP " " END END END # Optional Stuff LAYER NAME PRIMARY_ROADS TYPE LINE DATA "Primary_Roads" STATUS ON LABELCACHE ON MAXSCALE 2000000. CLASS NAME "Primary Roads" STYLE OUTLINECOLOR 255 0 0 WIDTH 2 ANTIALIAS TRUE END END METADATA WMS_TITLE "Primary Roads" WMS_SRS "EPSG:4326" END END LAYER NAME SECONDARY_ROADS TYPE LINE DATA "Secondary_Roads" STATUS ON LABELCACHE ON MAXSCALE 1000000. CLASS NAME "Secondary Roads" STYLE OUTLINECOLOR 255 50 50 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Secondary Roads" WMS_SRS "EPSG:4326" END END # Water LAYER NAME MAJOR_LAKES TYPE POLYGON DATA "Major_Lakes" STATUS ON LABELCACHE ON MAXSCALE 57000000. CLASS NAME "Major Lakes" STYLE OUTLINECOLOR 66 102 235 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Major Lakes" WMS_SRS "EPSG:4326" END END LAYER NAME MINOR_LAKES TYPE POLYGON DATA "Minor_Lakes" STATUS ON LABELCACHE ON MAXSCALE 4000000. CLASS NAME "Minor Lakes" STYLE OUTLINECOLOR 66 102 235 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Minor Lakes" WMS_SRS "EPSG:4326" END END LAYER NAME POLYGON_RIVERS TYPE POLYGON DATA "Polygon_Rivers" STATUS ON MAXSCALE 57000000. CLASS NAME "Major Rivers (P)" STYLE OUTLINECOLOR 66 102 235 COLOR 190 232 255 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Major Rivers (P)" WMS_SRS "EPSG:4326" END END LAYER NAME MAJOR_RIVERS TYPE LINE DATA "Major_Rivers" STATUS ON LABELCACHE ON MAXSCALE 57000000. CLASS NAME "Major Rivers" STYLE OUTLINECOLOR 66 102 235 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Major Rivers" WMS_SRS "EPSG:4326" END END LAYER NAME MINOR_RIVERS_1 TYPE LINE DATA "Minor_Rivers" STATUS ON LABELCACHE ON MAXSCALE 8000000. MINSCALE 4000000. CLASS NAME "Minor_Rivers" STYLE OUTLINECOLOR 115 177 235 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Minor Rivers" WMS_SRS "EPSG:4326" END END LAYER NAME MINOR_RIVERS_2 TYPE LINE DATA "Minor_Rivers" STATUS ON LABELCACHE ON MAXSCALE 4000000. CLASS NAME "Minor_Rivers" STYLE OUTLINECOLOR 66 102 235 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "Minor Rivers" WMS_SRS "EPSG:4326" END END # ADM Boundaries LAYER NAME ADM0_1 TYPE POLYGON DATA "Non_CONUS_ADM0_021808" MINSCALE 8000000. STATUS ON LABELCACHE ON CLASS NAME "Country Boundaries" STYLE OUTLINECOLOR 255 255 0 WIDTH 1 #ANTIALIAS TRUE END END METADATA WMS_TITLE "Country Boundaries" WMS_SRS "EPSG:4326" END END LAYER NAME ADM0_2 TYPE POLYGON DATA "Non_CONUS_ADM0_021808" MAXSCALE 8000000. STATUS ON LABELCACHE ON CLASS NAME "Country Boundaries" STYLE OUTLINECOLOR 255 255 0 WIDTH 2 #ANTIALIAS TRUE END END METADATA WMS_TITLE "Country Boundaries" WMS_SRS "EPSG:4326" END END LAYER NAME ADM1 TYPE POLYGON DATA "Non_CONUS_ADM1_021808" MAXSCALE 8000000. STATUS ON TRANSPARENCY 80 LABELCACHE ON CLASS NAME "ADM1 Boundaries" STYLE OUTLINECOLOR 255 255 0 WIDTH 1 ANTIALIAS TRUE END END METADATA WMS_TITLE "ADM1 Boundaries" WMS_SRS "EPSG:4326" END END # Background Imagery LAYER NAME CFE5 STATUS ON TYPE RASTER MINSCALE 112000000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/5/cfe_5.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (32km)" WMS_SRS "EPSG:4326" END END LAYER NAME CFE4 STATUS ON TYPE RASTER MAXSCALE 112000000. MINSCALE 56000000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/4/cfe_4.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (16km)" WMS_SRS "EPSG:4326" END END LAYER NAME CFE3 STATUS ON TYPE RASTER MAXSCALE 56000000. MINSCALE 28000000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/3/cfe_3.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (8km)" WMS_SRS "EPSG:4326" END END LAYER NAME CFE2 STATUS ON TYPE RASTER MAXSCALE 28000000. MINSCALE 14000000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/2/cfe_2.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (4km)" WMS_SRS "EPSG:4326" END END LAYER NAME CFE1 STATUS ON TYPE RASTER MAXSCALE 14000000. MINSCALE 7000000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/1/cfe_1.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (2km)" WMS_SRS "EPSG:4326" END END LAYER NAME CFE0 STATUS ON TYPE RASTER MAXSCALE 7000000. # MINSCALE 3500000. #PROCESSING "RESAMPLE=AVERAGE" TILEINDEX "../cfe/cfe_full.shp" TILEITEM "location" METADATA WMS_TITLE "Cloud Free Earth (1km)" WMS_SRS "EPSG:4326" END END END Alison Muratore Database Administrator EchoStorm Worldwide, LLC 757.483.0226 office 703.286.9368 mobile 757.483.4423 fax amuratore at echostorm.net http://www.echostorm.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From carla.fernandezb at gmail.com Mon Mar 17 06:49:10 2008 From: carla.fernandezb at gmail.com (cfb) Date: Mon, 17 Mar 2008 06:49:10 -0700 (PDT) Subject: [MAPSERVER-USERS] cs2cs problems Message-ID: <16092875.post@talk.nabble.com> Hi, I?m having problems with the projection again. I?ve got a shape in epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 (ETRS89). I?ve changed the extent, the "wms_boundingbox" and the "wms_latlonboundingbox" of my header?s mapfile to geographic coordinates (epsg:4230 for ED50), and in the projection object (always in the header, in the layer object I leave epsg:23030) I put: PROJECTION 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' END http://www.nabble.com/file/p16092875/epsg epsg For the second reference system, I?ve also tried with ?+proj=longlat? and with ?+init=epsg:4258?, but I get always the same error: msProcessProjection(): Projection library error. projection not named The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) Thanks in advance!! -- View this message in context: http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Mar 17 08:03:00 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 17 Mar 2008 10:03:00 -0500 Subject: [mapserver-users] Labels for point features do not display In-Reply-To: <35CC808A-84A0-4087-93B1-5B973465982D@echostorm.net> References: <35CC808A-84A0-4087-93B1-5B973465982D@echostorm.net> Message-ID: <47DE8824.8050304@swoodbridge.com> Alison, I think you have built you make file upside down, so the polygons are on top of the points so that they are not visible. The mapfile needs to be construct like a painting, the first layers in the mapfile are drawn on the map first and the last layers is drawn last. In most cases you want rasters drawn first, then polygon, then lines, and finally points. Like most rules there are exceptions to this depending on what you are try to achieve. Labels are draw in the reverse order, because in most cases the last features you add to the map which will be on top and visible, are usually the most important to label. This is handled automatically by mapserver. -Steve W Alison Muratore wrote: > I have MapServer 5.0 and I am trying to label three cities feature > classes in my map. The labels display for my polygon and line features, > but I cannot get them to display for my point features. Below is the map > file I created; I cannot see any reason as to why the polygon and line > features label, but the points do not. Please help!! --Ali > > # WMS Map File > # > # Jim, Ali > # > # Revised: 13 March 2008 for Demonstration > # > # Copyright 2007 EchoStorm Worldwide, LLC > > MAP > > NAME EchoStormWMS > STATUS ON > SIZE 720 360 > EXTENT -180 -90 180 90 > SHAPEPATH "data/vector" > IMAGECOLOR 192 192 192 > IMAGETYPE PNG24 > FONTSET "fonts/fonts.txt" > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > WEB > METADATA > WMS_TITLE "EchoStorm WMS" > WMS_ONLINERESOURCE > "http://sharkssh.myftp.org:443/cgi-bin/mapserv?map=/data/mapserver/wms_ali_adm.map& > " > WMS_SRS "EPSG:4326" > END > END > > PROJECTION > "init=epsg:4326" > END > > SYMBOL > NAME 'star3' > TYPE vector > FILLED true > POINTS > 119 0 > 148 86 > 238 86 > 166 140 > 192 226 > 119 175 > 46 226 > 72 140 > 0 86 > 90 86 > 119 0 > END > END > > SYMBOL > NAME 'other' > TYPE ELLIPSE > FILLED TRUE > POINTS > 6 6 > END > END > > # Labels for Cities > > LAYER > NAME NAT_LABELS > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "CITY_NAME" > MAXSCALE 15000000. > # MINSCALE 8000000. > DATA "Cities_National" > CLASS > LABEL > TYPE TRUETYPE > FONT "treb" > ANTIALIAS TRUE > SIZE 14 > POSITION AUTO > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME PROV_LABELS > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "CITY_NAME" > MAXSCALE 4000000. > # MINSCALE 8000000. > DATA "Cities_Provincial" > CLASS > LABEL > TYPE TRUETYPE > FONT "treb" > ANTIALIAS TRUE > SIZE 11 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME OTHERS_LABELS > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "CITY_NAME" > MAXSCALE 4000000. > # MINSCALE 8000000. > DATA "Cities_Other" > CLASS > LABEL > TYPE TRUETYPE > FONT "treb" > ANTIALIAS TRUE > SIZE 10 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > # Cities > > LAYER > NAME NAT_CITIES > TYPE POINT > DATA "Cities_National" > MAXSCALE 15000000. > # MINSCALE 8000000. > STATUS ON > CLASS > NAME "National Capitals" > #The first style listed is placed on the bottom of the stack - it's > backwards from the TOC! > STYLE > SYMBOL 'other' > COLOR 0 0 0 > SIZE 15 > END > STYLE > SYMBOL 'other' > COLOR 255 255 255 > SIZE 13 > END > STYLE > SYMBOL 'star3' > COLOR 0 0 0 > SIZE 10 > END > END > METADATA > WMS_TITLE "National Capitals" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME PROV_CITIES > TYPE POINT > DATA "Cities_Provincial" > MAXSCALE 4000000. > STATUS ON > CLASS > NAME "Provincial Capitals" > STYLE > SYMBOL 'other' > COLOR 0 0 0 > SIZE 14 > END > STYLE > SYMBOL 'other' > COLOR 255 255 255 > SIZE 10 > END > STYLE > SYMBOL 'other' > COLOR 0 0 0 > SIZE 6 > END > END > METADATA > WMS_TITLE "Provincial Capitals" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME OTHER_CITIES > TYPE POINT > DATA "Cities_Other" > MAXSCALE 4000000. > STATUS ON > CLASS > NAME "Other Cities" > STYLE > SYMBOL 'other' > COLOR 0 0 0 > SIZE 6 > END > END > METADATA > WMS_TITLE "Other Cities" > WMS_SRS "EPSG:4326" > END > END > > # Labels for ADM and water layers > > LAYER > NAME ADM0_LABELS_1 > TYPE ANNOTATION > STATUS OFF > LABELCACHE ON > LABELITEM "ADM0" > MAXSCALE 15000000. > MINSCALE 8000000. > DATA "Non_CONUS_ADM0_021808" > CLASS > LABEL > TYPE TRUETYPE > FONT "franklin" > ANTIALIAS TRUE > SIZE 18 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME ADM0_LABELS_2 > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "ADM0" > MAXSCALE 8000000. > MINSCALE 4000000. > DATA "Non_CONUS_ADM0_021808" > CLASS > LABEL > TYPE TRUETYPE > FONT "franklin" > ANTIALIAS TRUE > SIZE 20 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME ADM0_LABELS_3 > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "ADM0" > MAXSCALE 4000000. > DATA "Non_CONUS_ADM0_021808" > CLASS > LABEL > TYPE TRUETYPE > FONT "franklin" > ANTIALIAS TRUE > SIZE 24 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME ADM1_LABELS > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "PROVINCE_N" > MAXSCALE 3000000. > DATA "Non_CONUS_ADM1_021808" > CLASS > LABEL > TYPE TRUETYPE > FONT "fi" > ANTIALIAS TRUE > SIZE 14 > POSITION AUTO > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > PARTIALS FALSE > MINFEATURESIZE AUTO > # WRAP " " > END > END > END > > LAYER > NAME MAJOR_RIVERS_LABELS_1 > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "PRIMARY_NA" > MAXSCALE 8000000. > MINSCALE 4000000. > DATA "Major_Rivers" > CLASS > LABEL > TYPE TRUETYPE > FONT "ab" > ANTIALIAS TRUE > SIZE 9 > POSITION UC > # MINDISTANCE 50 > ANGLE FOLLOW > BUFFER 10 > COLOR 66 102 235 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > MINFEATURESIZE 20 > # WRAP " " > END > END > END > > LAYER > NAME MAJOR_RIVERS_LABELS_2 > TYPE ANNOTATION > STATUS ON > LABELCACHE ON > LABELITEM "PRIMARY_NA" > MAXSCALE 4000000. > DATA "Major_Rivers" > CLASS > LABEL > TYPE TRUETYPE > FONT "ab" > ANTIALIAS TRUE > SIZE 10 > POSITION UC > # MINDISTANCE 50 > ANGLE FOLLOW > BUFFER 10 > COLOR 66 102 235 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > MINFEATURESIZE 20 > # WRAP " " > END > END > END > > # Optional Stuff > > LAYER > NAME PRIMARY_ROADS > TYPE LINE > DATA "Primary_Roads" > STATUS ON > LABELCACHE ON > MAXSCALE 2000000. > CLASS > NAME "Primary Roads" > STYLE > OUTLINECOLOR 255 0 0 > WIDTH 2 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Primary Roads" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME SECONDARY_ROADS > TYPE LINE > DATA "Secondary_Roads" > STATUS ON > LABELCACHE ON > MAXSCALE 1000000. > CLASS > NAME "Secondary Roads" > STYLE > OUTLINECOLOR 255 50 50 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Secondary Roads" > WMS_SRS "EPSG:4326" > END > END > > # Water > > LAYER > NAME MAJOR_LAKES > TYPE POLYGON > DATA "Major_Lakes" > STATUS ON > LABELCACHE ON > MAXSCALE 57000000. > CLASS > NAME "Major Lakes" > STYLE > OUTLINECOLOR 66 102 235 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Major Lakes" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME MINOR_LAKES > TYPE POLYGON > DATA "Minor_Lakes" > STATUS ON > LABELCACHE ON > MAXSCALE 4000000. > CLASS > NAME "Minor Lakes" > STYLE > OUTLINECOLOR 66 102 235 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Minor Lakes" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME POLYGON_RIVERS > TYPE POLYGON > DATA "Polygon_Rivers" > STATUS ON > MAXSCALE 57000000. > CLASS > NAME "Major Rivers (P)" > STYLE > OUTLINECOLOR 66 102 235 > COLOR 190 232 255 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Major Rivers (P)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME MAJOR_RIVERS > TYPE LINE > DATA "Major_Rivers" > STATUS ON > LABELCACHE ON > MAXSCALE 57000000. > CLASS > NAME "Major Rivers" > STYLE > OUTLINECOLOR 66 102 235 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Major Rivers" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME MINOR_RIVERS_1 > TYPE LINE > DATA "Minor_Rivers" > STATUS ON > LABELCACHE ON > MAXSCALE 8000000. > MINSCALE 4000000. > CLASS > NAME "Minor_Rivers" > STYLE > OUTLINECOLOR 115 177 235 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Minor Rivers" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME MINOR_RIVERS_2 > TYPE LINE > DATA "Minor_Rivers" > STATUS ON > LABELCACHE ON > MAXSCALE 4000000. > CLASS > NAME "Minor_Rivers" > STYLE > OUTLINECOLOR 66 102 235 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Minor Rivers" > WMS_SRS "EPSG:4326" > END > END > > # ADM Boundaries > > LAYER > NAME ADM0_1 > TYPE POLYGON > DATA "Non_CONUS_ADM0_021808" > MINSCALE 8000000. > STATUS ON > LABELCACHE ON > CLASS > NAME "Country Boundaries" > STYLE > OUTLINECOLOR 255 255 0 > WIDTH 1 > #ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Country Boundaries" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME ADM0_2 > TYPE POLYGON > DATA "Non_CONUS_ADM0_021808" > MAXSCALE 8000000. > STATUS ON > LABELCACHE ON > CLASS > NAME "Country Boundaries" > STYLE > OUTLINECOLOR 255 255 0 > WIDTH 2 > #ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "Country Boundaries" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME ADM1 > TYPE POLYGON > DATA "Non_CONUS_ADM1_021808" > MAXSCALE 8000000. > STATUS ON > TRANSPARENCY 80 > LABELCACHE ON > CLASS > NAME "ADM1 Boundaries" > STYLE > OUTLINECOLOR 255 255 0 > WIDTH 1 > ANTIALIAS TRUE > END > END > METADATA > WMS_TITLE "ADM1 Boundaries" > WMS_SRS "EPSG:4326" > END > END > > # Background Imagery > > LAYER > NAME CFE5 > STATUS ON > TYPE RASTER > MINSCALE 112000000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/5/cfe_5.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (32km)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME CFE4 > STATUS ON > TYPE RASTER > MAXSCALE 112000000. > MINSCALE 56000000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/4/cfe_4.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (16km)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME CFE3 > STATUS ON > TYPE RASTER > MAXSCALE 56000000. > MINSCALE 28000000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/3/cfe_3.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (8km)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME CFE2 > STATUS ON > TYPE RASTER > MAXSCALE 28000000. > MINSCALE 14000000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/2/cfe_2.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (4km)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME CFE1 > STATUS ON > TYPE RASTER > MAXSCALE 14000000. > MINSCALE 7000000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/1/cfe_1.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (2km)" > WMS_SRS "EPSG:4326" > END > END > > LAYER > NAME CFE0 > STATUS ON > TYPE RASTER > MAXSCALE 7000000. > # MINSCALE 3500000. > #PROCESSING "RESAMPLE=AVERAGE" > TILEINDEX "../cfe/cfe_full.shp" > TILEITEM "location" > METADATA > WMS_TITLE "Cloud Free Earth (1km)" > WMS_SRS "EPSG:4326" > END > END > > > END > > * > Alison Muratore* > /Database Administrator/ > EchoStorm Worldwide, LLC > 757.483.0226 office > 703.286.9368 mobile > 757.483.4423 fax > amuratore at echostorm.net > http://www.echostorm.net > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rdmailings at duif.net Mon Mar 17 07:44:27 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Mon, 17 Mar 2008 15:44:27 +0100 Subject: [MAPSERVER-USERS] cs2cs problems In-Reply-To: <16092875.post@talk.nabble.com> References: <16092875.post@talk.nabble.com> Message-ID: <47DE83CB.3090208@duif.net> Hi Carla, mapserver searches in the (epsg) file for the epsg code for projection parameters. So I think IF your epsg file contains both a line with 23030 AND 4230 (mine does by default), everything should go ok if you just make your initial projection something like: PROJECTION "init=epsg:23030" END And add your extra needed projection to the wms_srs line in you WEB-object: WEB ... "wms_srs" "epsg:23030 epsg:4230" ... END Why should you use cs2cs parameters (which is actualy a wrapper around proj isn't it?) in you mapserver file? Mapserver is smart enough to lookup the proj parameters from your epsg file, and uses proj itself to reproject your data. Hope this helps, Richard Duivenvoorde cfb wrote: > Hi, > > I?m having problems with the projection again. I?ve got a shape in > epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 > (ETRS89). I?ve changed the extent, the "wms_boundingbox" and the > "wms_latlonboundingbox" of my header?s mapfile to geographic coordinates > (epsg:4230 for ED50), and in the projection object (always in the header, in > the layer object I leave epsg:23030) I put: > > PROJECTION > 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs > +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' > END http://www.nabble.com/file/p16092875/epsg epsg > > For the second reference system, I?ve also tried with ?+proj=longlat? and > with ?+init=epsg:4258?, but I get always the same error: > > msProcessProjection(): Projection library error. projection not named > > The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) > > Thanks in advance!! > From Jukka.Rahkonen at mmmtike.fi Mon Mar 17 07:45:16 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 17 Mar 2008 16:45:16 +0200 Subject: [MAPSERVER-USERS] cs2cs problems References: <16092875.post@talk.nabble.com> Message-ID: Hi, I you want to define projections in mapfile then there are two alternatives: either give the espg code: PROJECTION "init=epsg:2393" END or proj4 strings: PROJECTION "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" END But perhaps you are aiming at something else by using cs2cs? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cfb L?hetetty: ma 17.3.2008 15:49 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MAPSERVER-USERS] cs2cs problems Hi, I'm having problems with the projection again. I've got a shape in epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 (ETRS89). I've changed the extent, the "wms_boundingbox" and the "wms_latlonboundingbox" of my header's mapfile to geographic coordinates (epsg:4230 for ED50), and in the projection object (always in the header, in the layer object I leave epsg:23030) I put: PROJECTION 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' END http://www.nabble.com/file/p16092875/epsg epsg For the second reference system, I've also tried with "+proj=longlat" and with "+init=epsg:4258", but I get always the same error: msProcessProjection(): Projection library error. projection not named The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) Thanks in advance!! -- View this message in context: http://www.nabble.com/cs2cs-problems-tp16092875p16092875.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 ivan.mincik at gmail.com Mon Mar 17 10:42:21 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 17 Mar 2008 18:42:21 +0100 Subject: Fwd: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <90699a8d0803121533o786b5a3bia941ceeadbabfa5c@mail.gmail.com> <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> Message-ID: <200803171842.21580.ivan.mincik@gmail.com> Hi, how is the situation about the patch? Can I try some? Thanks for Your time Ivan On Wednesday 12 March 2008 23:45, you wrote: > Oops, forgot to CC mapserver-users. > > ---------- Forwarded message ---------- > From: Dave Fuhry > Date: Wed, Mar 12, 2008 at 6:33 PM > Subject: Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault > To: Ivan Mincik > > > Ivan, > > Ah, that does help. It looks like the error: > > ERROR: DECLARE CURSOR may only be used in transaction blocks > is occurring after ROLLBACK statements are issued. I had not really > considered ROLLBACKs, not having seen them in my tests. > > ROLLBACKs are only issued in two places in mappostgis.c. In > msPOSTGISLayerGetShape(), and in prepare_database() (but in the latter > case, only if using an ancient version of postgis). > > The code in msPOSTGISLayerGetShape() seems unnecessary to me; no other > DECLARE CURSOR ...; FETCH ...; CLOSE ...; queries are followed by a > ROLLBACK, so it seems unnecessary here as well. The important thing > will be to ensure that if an error happens in one of those queries, > that the connection is not msConnPoolRelease()d back into the > connection pool. I haven't traced the code in detail yet, but that > should be staightforward enforce. > > So essentially, the patch should be modified to remove the ROLLBACKs > from msPOSTGISLayerGetShape() in a safe way. > > Thanks, > > Dave > > On Wed, Mar 12, 2008 at 5:49 AM, Ivan Mincik wrote: > > Hi Dave, > > these are my postgis version details: > > select postgis_full_version(); > > postgis_full_version > > > > ------------------------------------------------------------------------ > >---------- POSTGIS="1.3.1" GEOS="2.2.3-CAPI-1.1.1" PROJ="Rel. 4.5.0, 22 > > Oct 2006" USE_STATS > > (1 row) > > > > 1. I have changed value log_min_duration_statement > > 2. Restart of postgresql > > 3. Restart of apache > > 4. Restart of all firefox windows and deleted cache > > 5. pmapper loaded > > > > Here are two logs when reproducing the problem: > > http://projects.gpsmapy.sk/logs/ > > > > I have tried to use mapserver also as fastcgi, but same problem. Every > > time the problem will start when I try to identify the object > > (Obj_queryBy{Point,Rect,etc.}). > > > > Thanks a lot > > Ivan > > > > On Wednesday 12 March 2008 04:41, you wrote: > > > Ivan, > > > > > > p.mapper seems to use the typical php > > > {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end > > > up calling the same msPOSTGIS* functions as everything else. > > > > > > I can't seem to reproduce your problem with a simple testcase > > > (basically, the attached files). It might help if you can set > > > log_min_duration_statement = 0 in your postgresql.conf, reproduce the > > > problem, and send the output from your postgresql log file. It will > > > show all commands issued to the database, including the BEGIN, and > > > the DECLARE CURSOR ..., and FETCH for every layer. > > > > > > I can setup p.mapper if that's necessary to reproduce the problem. > > > > > > (By the way, I assume you're not using an ancient version of > > > postgis, in the 0.5 - 0.6 era. There is an alternate codepath for > > > that, which I have not tested.) > > > > > > Thanks, > > > > > > Dave > > > > > > On Sun, Mar 9, 2008 at 5:31 AM, Ivan Mincik wrote: > > > > I am sorry for late reply, > > > > I am testing mapserver with p.mapper application so I *don't* use > > > > it as cgi/fcgi. > > > > > > > > I have downloaded source package of mapserver 5.0.2 from debian > > > > unstable, applied a patch and compiled on Debian Etch. > > > > Installed and restarted apache and also rebooted whole system few > > > > times (I am testing this on my desktop computer). > > > > > > > > The problems are starting mostly when I am trying to use > > > > p.mapper's identify function, to get attributes of map object. Then > > > > p.mapper is freezing. In mapfile i have 7 postgis layers. > > > > > > > > I can try this also with some openlayers which is using cgi. > > > > > > > > LOGS: > > > > > > > > 2008-03-09 10:24:44 CET WARNING: there is already a transaction > > > > in progress 2008-03-09 10:24:45 CET WARNING: there is already a > > transaction > > > > > in progress 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only > > > > be used in transaction blocks > > > > 2008-03-09 10:24:46 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:46 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:46 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:46 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:47 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:47 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:47 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:50 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:50 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:50 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:52 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:52 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:52 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:53 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:53 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:53 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:54 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:54 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:54 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:54 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:24:55 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:24:55 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:24:55 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:25:00 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:25:00 CET ERROR: cursor "mycursor" does not > > > > exist 2008-03-09 10:25:00 CET ERROR: DECLARE CURSOR may only be > > > > used in transaction blocks > > > > 2008-03-09 10:25:00 CET WARNING: there is no transaction in > > > > progress 2008-03-09 10:25:01 CET ERROR: cursor "mycursor" does not > > > > exist > > > > > > > > > > > > Thanks a lot > > > > Ivan > > > > > > > > On Wednesday 05 March 2008 22:41, you wrote: > > > > > Ivan, > > > > > > > > > > Thanks for the problem report. If you are using fastcgi, you > > > > > may need to restart it. > > > > > > > > > > The only two places PQconnectdb is called is in > > > > > msPOSTGISLayerOpen and in msPOSTGRESQLJoinConnect, which > > > > > operates independently, not using cursors or the connection > > > > > pool. With a patched > > > > > msPOSTGISLayerOpen, PQexec(layerinfo->conn, "BEGIN") is always > > > > > called right after connecting, before any queries and before the > > > > > connection ends up in the connection pool. > > > > > > > > > > So I'm wondering if you've put the new mapserv executable in > > > > > your cgi-bin, but not restarted the webserver, and it's pulling > > > > > old connections out of the fastcgi connection pool, which have > > > > > not had PQexec(layerinfo->conn, "BEGIN") issued to them (and > > > > > thus, no transaction started). > > > > > > > > > > Try restarting fastcgi. Depending on your configuration, > > > > > restarting your webserver may automatically restart fastcgi, or > > > > > you may have to specifically restart the fastcgi service/daemon > > > > > on that machine. > > > > > > > > > > Please let us know if this fixes the problem. > > > > > > > > > > Thanks, > > > > > > > > > > Dave > > > > > > > > > > On Wed, Mar 5, 2008 at 7:26 AM, Ivan Mincik > > > > > > > > > wrote: > > > > > > Nothing is perfect. There are no problems with applied patch > > > > > > when browsing the map. But when I use identify object query > > > > > > from php5-mapscript the problem is rising again. > > > > > > > > > > > > I have in postgresql log: > > > > > > > > > > > > 2008-03-05 13:19:30 CET WARNING: there is no transaction in > > > > > > progress 2008-03-05 13:19:30 CET ERROR: cursor "mycursor" > > > > > > does not exist 2008-03-05 13:19:31 CET ERROR: DECLARE CURSOR > > > > > > may only be used in transaction blocks > > > > > > 2008-03-05 13:19:31 CET WARNING: there is no transaction in > > > > > > progress 2008-03-05 13:19:31 CET ERROR: cursor "mycursor" > > > > > > does not exist 2008-03-05 13:19:32 CET ERROR: DECLARE CURSOR > > > > > > may only be used in transaction blocks > > > > > > 2008-03-05 13:19:32 CET WARNING: there is no transaction in > > > > > > progress 2008-03-05 13:19:32 CET ERROR: cursor "mycursor" > > > > > > does not exist 2008-03-05 13:19:34 CET ERROR: DECLARE CURSOR > > > > > > may only be used in transaction blocks > > > > > > 2008-03-05 13:19:34 CET WARNING: there is no transaction in > > > > > > progress 2008-03-05 13:19:34 CET ERROR: cursor "mycursor" > > > > > > does not exist 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: autovacuum: > > > > > > processing database "gisplan" 2008-03-05 13:20:10 CET LOG: > > > > > > could not receive data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection 2008-03-05 13:20:10 CET LOG: could not receive > > > > > > data from client: Connection reset by peer > > > > > > 2008-03-05 13:20:10 CET LOG: unexpected EOF on client > > > > > > connection > > > > > > > > > > > > > > > > > > 2008-03-05 13:20:40 CET WARNING: there is already a > > transaction in > > > > > > > progress 2008-03-05 13:20:40 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:41 CET WARNING: > > > > > > there is already a transaction in progress 2008-03-05 13:20:42 > > > > > > CET WARNING: there is already a transaction in progress > > > > > > 2008-03-05 13:20:43 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:43 CET WARNING: there > > > > > > is already a transaction in progress 2008-03-05 13:20:44 CET > > > > > > WARNING: there is already a transaction in progress > > > > > > 2008-03-05 13:20:44 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:45 CET WARNING: > > > > > > there is already a transaction in progress 2008-03-05 13:20:45 > > > > > > CET WARNING: there is already a transaction in progress > > > > > > 2008-03-05 13:20:45 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:46 CET WARNING: > > > > > > there is already a transaction in progress 2008-03-05 13:20:46 > > > > > > CET WARNING: there is already a transaction in progress > > > > > > 2008-03-05 13:20:46 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:47 CET WARNING: there > > > > > > is already a transaction in progress 2008-03-05 13:20:47 CET > > > > > > WARNING: there is already a transaction in progress 2008-03-05 > > > > > > 13:20:48 CET WARNING: there is already a transaction in > > > > > > progress 2008-03-05 13:20:49 CET WARNING: there is already a > > > > > > transaction in progress 2008-03-05 13:20:50 CET WARNING: > > > > > > there is already a transaction in progress 2008-03-05 13:20:50 > > > > > > CET WARNING: there is already a transaction in progress > > > > > > > > > > > > > > > > > > ivan > > > > > > > > > > > > On Monday 03 March 2008 21:53, rich.fromm wrote: > > > > > > > hrach wrote: > > > > > > > > I use mapserver 4.10.3, postgresql 8.1, Debian Etch. > > > > > > > > > > > > > > > > Is anybody using CLOSE_CONNECTION=DEFER without any > > > > > > > > problems ? > > > > > > > > > > > > > > I am now using it fine with mapserver 5.0.0 after applying > > > > > > > the patch for bug 2497: > > > > > > > http://trac.osgeo.org/mapserver/ticket/2497 > > > > > > > > > > > > > > I don't know if 4.10.3 is different enough for that patch > > > > > > > to be applicable or not. But if it's not too hard to > > > > > > > upgrade, you might want to try a later version (e.g. 5.0.2) > > > > > > > plus that patch. Note that the patch may make it into the > > > > > > > 5.0.3 release (it was originally targetted for 5.2). > > > > > > > > > > > > > > You also might want to take a look at the following related > > > > > > > mailing list threads: > > http://www.nabble.com/Segmentation-fault---mapserver---postgis-to > > > > > > > >12653 945.h tml#a12674499 > > > > > > > > > > > > > > http://www.nabble.com/postgres-transaction-warnings-to157493 > > > > > > >33.ht > > > > > > > > > > > > > >ml > > > > > > > > > > > > > > - Rich > > > > > > > > > > > > _______________________________________________ > > > > > > mapserver-users mailing list > > > > > > mapserver-users at lists.osgeo.org > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jdoyon at NRCan.gc.ca Mon Mar 17 11:53:59 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 17 Mar 2008 14:53:59 -0400 Subject: [mapserver-users] AGG vs. GD: Label placement problems Message-ID: G'day, We're experimenting with AGG, and have noticed a little problem ... not sure of the source, or whether we can address it through a mapfile though. Note these 2 images: http://atlas.nrcan.gc.ca/gd.gif http://atlas.nrcan.gc.ca/agg.png One is GD/GIF, the other is AGG/PNG. All other things are equal (MapServer 5.0.2). Labels that are to the left of the point seem to be placed differently ... Look top-right ("Les Escoumins", "Saint Anne de Port Neuf", etc ...) for an example, though it happens all over the place I think. Labels to the right of the point however seem ok. Is this a bug? A design change? Can anything be done from the mapfiel to mitigate this? Oh and what's the recommended FreeType version these days? This MapServer is runnning against 2.1.10. Thank you, Jean-Fran?ois Doyon Applications Development Solutions | Solutions de d?veloppement d'applications IT Support Services | Services de support TI Information Technology Services | Services de la technologie d'information Shared Services Office | Bureau des services partag?s Corporate Management and Services Sector | Secteur de la gestion et des services int?gr?s Natural Resources Canada | Ressources naturelles Canada Ottawa, Canada K1A 0E9 jdoyon at nrcan-rncan.gc.ca Telephone | T?l?phone 613-992-4902 Facsimile | T?l?copieur 613-995-3252 Teletypewriter | T?l?imprimeur 613-996-4397 Government of Canada | Gouvernement du Canada From arnd.wippermann at web.de Mon Mar 17 11:55:34 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon, 17 Mar 2008 19:55:34 +0100 Subject: [mapserver-users] WG: To get WFS data for more than one SRS Message-ID: Hi, Looking in the documentation, it should be possible to declare in the WEB META Block 'wfs_srs' for more than one SRS to deliver the WFS data for these projections. But when I use this feature, I get no data at all. It works only with one SRS. That means, that I must have one mapfile for each projection I want to deliver. I'm using Mapserver 4.10 and in my mapfile I have one projection in the WEB META Block 'wfs_srs' and one in the LAYER PROJECTION Block declared. That's the only way to get the data. Is this a known behaviour or make I something wrong? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ From woodbri at swoodbridge.com Mon Mar 17 13:02:40 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 17 Mar 2008 15:02:40 -0500 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: References: Message-ID: <47DECE60.5070201@swoodbridge.com> I'm not sure if this is the cause or not but if you look carefully there is a difference in the spacing between characters. This will cause the bbox for the label to be larger? maybe and it will bump off labels that now collide with the longer labels. You can try decreasing the BUFFER on the label to allow them to be closer together. But I suspect that beyond that there is not much you can do because that labels are just physically larger than before. -Steve W. Doyon, Jean-Francois wrote: > G'day, > > We're experimenting with AGG, and have noticed a little problem ... not sure of the source, or whether we can address it through a mapfile though. > > Note these 2 images: > > http://atlas.nrcan.gc.ca/gd.gif > http://atlas.nrcan.gc.ca/agg.png > > One is GD/GIF, the other is AGG/PNG. All other things are equal (MapServer 5.0.2). > > Labels that are to the left of the point seem to be placed differently ... Look top-right ("Les Escoumins", "Saint Anne de Port Neuf", etc ...) for an example, though it happens all over the place I think. Labels to the right of the point however seem ok. > > Is this a bug? A design change? Can anything be done from the mapfiel to mitigate this? > > Oh and what's the recommended FreeType version these days? This MapServer is runnning against 2.1.10. > > Thank you, > > Jean-Fran?ois Doyon > Applications Development Solutions | Solutions de d?veloppement d'applications > IT Support Services | Services de support TI > Information Technology Services | Services de la technologie d'information > Shared Services Office | Bureau des services partag?s > Corporate Management and Services Sector | Secteur de la gestion et des services int?gr?s > Natural Resources Canada | Ressources naturelles Canada > Ottawa, Canada K1A 0E9 > jdoyon at nrcan-rncan.gc.ca > Telephone | T?l?phone 613-992-4902 > Facsimile | T?l?copieur 613-995-3252 > Teletypewriter | T?l?imprimeur 613-996-4397 > Government of Canada | Gouvernement du Canada > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bartvde at osgis.nl Mon Mar 17 12:04:37 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 17 Mar 2008 20:04:37 +0100 Subject: [mapserver-users] WG: To get WFS data for more than one SRS In-Reply-To: References: Message-ID: <47DEC0C5.2090504@osgis.nl> The WFS 1.0 spec that Mapserver implements only deals with the use-case of delivering data in the native SRS. IIRC WFS 1.1 introduced reprojection of data. Best regards, Bart Arnd Wippermann wrote: > > Hi, > > Looking in the documentation, it should be possible to declare in the WEB > META Block 'wfs_srs' for more than one SRS to deliver the WFS data for these > projections. > > But when I use this feature, I get no data at all. It works only with one > SRS. > > That means, that I must have one mapfile for each projection I want to > deliver. > > I'm using Mapserver 4.10 and in my mapfile I have one projection in the WEB > META Block 'wfs_srs' and one in the LAYER PROJECTION Block declared. That's > the only way to get the data. > > Is this a known behaviour or make I something wrong? > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From dmorissette at mapgears.com Mon Mar 17 12:13:58 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Mar 2008 15:13:58 -0400 Subject: [mapserver-users] Farsi right-to-left labels In-Reply-To: <47DE45A9.9060708@arava.co.il> References: <168450.95248.qm@web62411.mail.re1.yahoo.com> <47D7FB2B.80602@mapgears.com> <47DE45A9.9060708@arava.co.il> Message-ID: <47DEC2F6.40505@mapgears.com> Micha Silver wrote: > I'll be building a new mapserver setup soon (currently running 4.10.3). > I think that Ehud Shabatai's patch for bidi support is only against > versions around 4.6.x. If there's anything newer, I'd be happy to try. > I've got plenty of data in PostGIS with hebrew labels waiting to be > used. And version 5.2 is still quite a ways off, I guess. > Micha, See ticket #956, we have ported the patches to 5.0 and committed the required changes to SVN trunk: http://trac.osgeo.org/mapserver/ticket/956 If you cannot use 5.1 (svn trunk) then you could try to patch your 5.0 source using the diffs from: http://trac.osgeo.org/mapserver/changeset/7457?format=diff&new=7457 Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Mon Mar 17 12:25:46 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Mar 2008 15:25:46 -0400 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: References: Message-ID: <47DEC5BA.2080401@mapgears.com> Doyon, Jean-Francois wrote: > > Labels that are to the left of the point seem to be placed differently ... Look top-right ("Les Escoumins", "Saint Anne de Port Neuf", etc ...) for an example, though it happens all over the place I think. Labels to the right of the point however seem ok. > > Is this a bug? A design change? Can anything be done from the mapfiel to mitigate this? > A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd is still used [...] for the calculation of label sizes (thus some subtle discreptancies in label placement, mostly visible if using a label backgroundcolor)": http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html Maybe that's what your running into? Hopefully Thomas will see this and comment. Daniel -- Daniel Morissette http://www.mapgears.com/ From jayzee.smith at gmail.com Mon Mar 17 13:33:24 2008 From: jayzee.smith at gmail.com (John Smith) Date: Mon, 17 Mar 2008 16:33:24 -0400 Subject: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables to shp2img? In-Reply-To: References: Message-ID: can i pass variables to shp2img, say? shp2img -m "...map" -o "...gif" %variable1% %variable2% jzs From Jukka.Rahkonen at mmmtike.fi Mon Mar 17 13:38:48 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 17 Mar 2008 22:38:48 +0200 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? References: Message-ID: If you use Windows, make a batch file, let's say run.bat shp2img -m "...map" -o "...gif" %1% %2% Then send from command line: run.bat variable1 variable2 (they will be inserted in place of %1 and %2) -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith L?hetetty: ma 17.3.2008 22:33 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? can i pass variables to shp2img, say? shp2img -m "...map" -o "...gif" %variable1% %variable2% jzs _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jayzee.smith at gmail.com Mon Mar 17 13:55:11 2008 From: jayzee.smith at gmail.com (John Smith) Date: Mon, 17 Mar 2008 16:55:11 -0400 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: References: Message-ID: thks but i fail to see the benefit of that- does shp2img.exe know what to do with these inserted variables? i want to use variables in the map file for a postgis query, like %var%. passing [-m "...map?value=%var%"] throws a msEvalRegex() error. jzs On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka wrote: > > If you use Windows, make a batch file, let's say run.bat > shp2img -m "...map" -o "...gif" %1% %2% > > Then send from command line: > > run.bat variable1 variable2 (they will be inserted in place of %1 and %2) > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith > L?hetetty: ma 17.3.2008 22:33 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? > > can i pass variables to shp2img, say? > > shp2img -m "...map" -o "...gif" %variable1% %variable2% > > jzs > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Kai-Behncke at gmx.de Mon Mar 17 14:48:42 2008 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Mon, 17 Mar 2008 22:48:42 +0100 Subject: [mapserver-users] MapServer and fastcgi-benefits? Message-ID: <20080317214842.186220@gmx.net> Hello list, I`m testing MapServer with fast-cgi to see if there`s a benefit in performance. I succesfully compiled MapServer with fast-cgi, in my Apache 2.2 at Debian Etch the mod_fastcgi is activated, the httpd.conf has the needed entries and in my mapfile I set PROCESSING "CLOSE_CONNECTION=DEFER" to a very "expensive" Layer (the data are shapefiles). But if I check the performance with "siege" (siege -c 4 -r 10 http://localhost/cgi-bin/mapserv?map=/var/www/wms_ogc/wms_server.map) I don`t see any performance benefits in comparison to MapServer without fastcgi?? Am I do something wrong?? What is the benefit of fast-cgi? Should`t it be faster than "normal"-cgi? Thank you very much in advance, Kai -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From woodbri at swoodbridge.com Mon Mar 17 15:51:48 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 17 Mar 2008 17:51:48 -0500 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: References: Message-ID: <47DEF604.9090505@swoodbridge.com> You can do it with the mapserv executable from the commandline via mapserv QUERY_STRING='map=/path/tofile.map&value=foo&value2=bar&...' -Steve W John Smith wrote: > thks but i fail to see the benefit of that- does shp2img.exe know what > to do with these inserted variables? > > i want to use variables in the map file for a postgis query, like > %var%. passing [-m "...map?value=%var%"] throws a msEvalRegex() error. > jzs > > On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka > wrote: >> If you use Windows, make a batch file, let's say run.bat >> shp2img -m "...map" -o "...gif" %1% %2% >> >> Then send from command line: >> >> run.bat variable1 variable2 (they will be inserted in place of %1 and %2) >> >> -Jukka Rahkonen- >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith >> L?hetetty: ma 17.3.2008 22:33 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? >> >> can i pass variables to shp2img, say? >> >> shp2img -m "...map" -o "...gif" %variable1% %variable2% >> >> jzs >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Mon Mar 17 14:55:44 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 17 Mar 2008 23:55:44 +0200 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variablestoshp2img? References: Message-ID: Sorry, I should have asked you to to clarify a bit your question. Anyway, sure it is possible to pass variables with a number of ways by using what ever scripting or programming language you wish. But where are you going to catch those variables, and for what purpose? Are you getting them by yourself or would you like to get them from web users? And which one do you want to pass them, to shp2img or to the mapfile there behind? With shp2img you cannot do interactive database queries, I fear. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith L?hetetty: ma 17.3.2008 22:55 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variablestoshp2img? thks but i fail to see the benefit of that- does shp2img.exe know what to do with these inserted variables? i want to use variables in the map file for a postgis query, like %var%. passing [-m "...map?value=%var%"] throws a msEvalRegex() error. jzs On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka wrote: > > If you use Windows, make a batch file, let's say run.bat > shp2img -m "...map" -o "...gif" %1% %2% > > Then send from command line: > > run.bat variable1 variable2 (they will be inserted in place of %1 and %2) > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith > L?hetetty: ma 17.3.2008 22:33 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? > > can i pass variables to shp2img, say? > > shp2img -m "...map" -o "...gif" %variable1% %variable2% > > jzs > _______________________________________________ > 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 warmerdam at pobox.com Mon Mar 17 16:28:31 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 17 Mar 2008 19:28:31 -0400 Subject: [mapserver-users] MapServer and fastcgi-benefits? In-Reply-To: <20080317214842.186220@gmx.net> References: <20080317214842.186220@gmx.net> Message-ID: <47DEFE9F.7050604@pobox.com> Kai Behncke wrote: > Hello list, > > I`m testing MapServer with fast-cgi to see if there`s a benefit in performance. > > I succesfully compiled MapServer with fast-cgi, in my Apache 2.2 at Debian Etch the mod_fastcgi is activated, the httpd.conf has the needed entries and in my mapfile I set > PROCESSING "CLOSE_CONNECTION=DEFER" > to a very "expensive" Layer (the data are shapefiles). > > But if I check the performance with "siege" > (siege -c 4 -r 10 http://localhost/cgi-bin/mapserv?map=/var/www/wms_ogc/wms_server.map) > I don`t see any performance benefits in comparison to MapServer without fastcgi?? > > Am I do something wrong?? > What is the benefit of fast-cgi? > Should`t it be faster than "normal"-cgi? Kai, FastCGI can be helpful for layers with a high connection cost. Even large shapefiles don't take long to open so the benefit of fastcgi is negligable (and in fact the shapefile layer type ignores CLOSE_CONNECTION). The benefit becomes significant with SDE, and Oracle layers primarily though I've heard reports of measurable improvements with PostGIS or OGR depending on the situation. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From nospam420 at yahoo.com Mon Mar 17 18:26:24 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 17 Mar 2008 18:26:24 -0700 (PDT) Subject: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> <200803051326.36604.ivan.mincik@gmail.com> <90699a8d0803051341q3b5b623bp1e3a11b46e2e444b@mail.gmail.com> <90699a8d0803112041t44139ba5kcfa9b7763123918c@mail.gmail.com> <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> Message-ID: <16112199.post@talk.nabble.com> Dave Fuhry wrote: > > Oops, forgot to CC mapserver-users. > > ---------- Forwarded message ---------- > From: Dave Fuhry > Date: Wed, Mar 12, 2008 at 6:33 PM > Subject: Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault > To: Ivan Mincik > > <...> > > So essentially, the patch should be modified to remove the ROLLBACKs > from msPOSTGISLayerGetShape() in a safe way. > Just to make sure I'm properly interpreting the status of what's getting to be a bit of a long thread here... You're saying that this patch: http://trac.osgeo.org/mapserver/attachment/ticket/2497/ms_postgis_begin_to_connect.diff from this bug: http://trac.osgeo.org/mapserver/ticket/2497 is not entirely correct and should be modified? But this change has not happened yet, I gather? I assume that if/when there's a new patch, notice will be posted either in this mailing list thread or that bug? I ask b/c I build mapserver from source and am currently using that patch, and I want to make sure I recompile if that patch changes. Thanks. - Rich -- View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p16112199.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 17 18:54:30 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 17 Mar 2008 18:54:30 -0700 (PDT) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <15865401.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> <15865401.post@talk.nabble.com> Message-ID: <16112206.post@talk.nabble.com> rich.fromm wrote: > > > rich.fromm wrote: >> >> >> rich.fromm wrote: >>> >>> I am in the process of running another test, this using a build of the >>> tip of branch-5-0, along with local patches both for bug 2497 and for >>> bug 2533 (in other words, this patch). >>> >> >> It also ran fine (for a 6 hour test under heavy load). For more details, >> see: >> http://trac.osgeo.org/mapserver/ticket/2533#comment:6 >> > > I continued running stress tests on the branch-5-0 build. While I have > not yet seen the projection error again, after 06:24:13 elapsed time, > tomcat again crashed in mapObj.new(). Note that this is very similar to > the stack trace that I had seen previously (see > http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-to15815968.html), > but not precisely the same. The differences might be explained by this > build being from branch-5-0, and the previous runs being from the 5.0.0 > release. Regardless, I once again return to my notion that these are two > separate issues: > > _IO_fread (/lib/libc.so.6) > yy_get_next_buffer (maplexer.c:3526) > msyylex (maplexer.c:3357) > loadClass (mapfile.c:2102) > loadLayer (mapfile.c:2577) > loadMapInternal (mapfile.c:4348) > msLoadMap (mapfile.c:4573) > new_mapObj (mapscript/java/mapscript_wrap.c:1612) > Java_edu_umn_gis_mapscript_mapscriptJNI_new_1mapObj > (mapscript/java/mapscript_wrap.c:19783) > > Just wanted to give a little update here... After on a few occasions (admittedly rare) seeing mapserver crashes in java mapscript calls to mapObj.new() (discussed earlier in this thread) while under heavy load, I decided to to wrap the call to new mapObj(String filename) in a synchronized() {} block in my java code. This did not have a significant impact on performance, and I have not again seen the crash, even after long (24 hours) stress tests. While this doesn't prove anything, it is my belief that there is probably some threading/locking/synchronization issue in mapObj.new(), and that this is separate from what has already been reported as bug 2533 (http://trac.osgeo.org/mapserver/ticket/2533), and that in the absence of any other bugfix, that this is a reasonable workaround. I will file this as a separate bug. - Rich -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p16112206.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Mon Mar 17 19:10:22 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 17 Mar 2008 19:10:22 -0700 (PDT) Subject: [MAPSERVER-USERS] msProcessProjection(): Projection library error. In-Reply-To: <16112206.post@talk.nabble.com> References: <15815968.post@talk.nabble.com> <47CC860A.6070905@pobox.com> <47CC9351.6030707@pobox.com> <15817887.post@talk.nabble.com> <15837796.post@talk.nabble.com> <15840243.post@talk.nabble.com> <15856430.post@talk.nabble.com> <15865401.post@talk.nabble.com> <16112206.post@talk.nabble.com> Message-ID: <16112218.post@talk.nabble.com> rich.fromm wrote: > > Just wanted to give a little update here... > > After on a few occasions (admittedly rare) seeing mapserver crashes in > java > mapscript calls to mapObj.new() (discussed earlier in this thread) while > under > heavy load, I decided to to wrap the call to new mapObj(String filename) > in a > synchronized() {} block in my java code. This did not have a significant > impact on performance, and I have not again seen the crash, even after > long > (24 hours) stress tests. > > While this doesn't prove anything, it is my belief that there is probably > some > threading/locking/synchronization issue in mapObj.new(), and that this is > separate from what has already been reported as bug 2533 > (http://trac.osgeo.org/mapserver/ticket/2533), and that in the absence of > any > other bugfix, that this is a reasonable workaround. > > I will file this as a separate bug. > This is now filed as bug 2550: http://trac.osgeo.org/mapserver/ticket/2550 - Rich -- View this message in context: http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p16112218.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ivan.mincik at gmail.com Tue Mar 18 00:34:19 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 18 Mar 2008 08:34:19 +0100 Subject: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <16112199.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <90699a8d0803121545j3c65e127u11b7b78777cde5fe@mail.gmail.com> <16112199.post@talk.nabble.com> Message-ID: <200803180834.19304.ivan.mincik@gmail.com> On Tuesday 18 March 2008 02:26, rich.fromm wrote: > Dave Fuhry wrote: > > Oops, forgot to CC mapserver-users. > > > > ---------- Forwarded message ---------- > > From: Dave Fuhry > > Date: Wed, Mar 12, 2008 at 6:33 PM > > Subject: Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation > > fault To: Ivan Mincik > > > > <...> > > > > So essentially, the patch should be modified to remove the ROLLBACKs > > from msPOSTGISLayerGetShape() in a safe way. > > Just to make sure I'm properly interpreting the status of what's getting to > be a bit of a long thread here... > > You're saying that this patch: > http://trac.osgeo.org/mapserver/attachment/ticket/2497/ms_postgis_begin_to_ >connect.diff from this bug: > http://trac.osgeo.org/mapserver/ticket/2497 > is not entirely correct and should be modified? I have applied this patch and it is not properly working when using {map,layer}Obj_queryBy{Point,Rect,etc.} functions. This was confirmed by Dave Fuhry. > But this change has not happened yet, I gather? I don't know about any other patch. > > I assume that if/when there's a new patch, notice will be posted either in > this mailing list thread or that bug? Yes. I am looking for the notice here in the mailinglist and to the bug thread. > > I ask b/c I build mapserver from source and am currently using that patch, > and I want to make sure I recompile if that patch changes. I want to recompile mapserver with the patch which is correctly working with {map,layer}Obj_queryBy{Point,Rect,etc.} functions. So, I think the status of this problem is "waiting for the new patch". Ivan > > Thanks. > > - Rich From thomas.bonfort at gmail.com Tue Mar 18 00:42:15 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 18 Mar 2008 08:42:15 +0100 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: <47DEC5BA.2080401@mapgears.com> References: <47DEC5BA.2080401@mapgears.com> Message-ID: Yes, that's exactly the problem, as there's a difference of a few pixels between the size of the label calculated by gd and the size it actually takes when rendered with agg. I realize now that it can cause some quite visible problems in the case you show here (labels to the left), as in that case the few pixels difference can cause the label to overlap the point symbol. I'll see if I can fix this in the days/weeks to come so this can be included in 5.2 cheers, thomas On Mon, Mar 17, 2008 at 8:25 PM, Daniel Morissette wrote: > Doyon, Jean-Francois wrote: > > > > Labels that are to the left of the point seem to be placed differently ... Look top-right ("Les Escoumins", "Saint Anne de Port Neuf", etc ...) for an example, though it happens all over the place I think. Labels to the right of the point however seem ok. > > > > Is this a bug? A design change? Can anything be done from the mapfiel to mitigate this? > > > > A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd is > still used [...] for the calculation of label sizes (thus some subtle > discreptancies in label placement, mostly visible if using a label > backgroundcolor)": > > http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html > > Maybe that's what your running into? Hopefully Thomas will see this and > comment. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mcoladas at telefonica.net Tue Mar 18 01:34:28 2008 From: mcoladas at telefonica.net (Miguel Coladas) Date: Tue, 18 Mar 2008 09:34:28 +0100 Subject: [mapserver-users] Unsubscribe Message-ID: <000f01c888d2$e51334d0$af399e70$@net> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at gmail.com Tue Mar 18 01:48:31 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 18 Mar 2008 09:48:31 +0100 Subject: [mapserver-users] Rotate labels based on angle defined in attribute field In-Reply-To: <8d2ea9d70803180147reb0e4ffvfc717b561b710c63@mail.gmail.com> References: <8d2ea9d70803180145t1ee07a68w30408c80cdff68c9@mail.gmail.com> <8d2ea9d70803180147reb0e4ffvfc717b561b710c63@mail.gmail.com> Message-ID: <8d2ea9d70803180148o59f7168ds117581280246fa98@mail.gmail.com> Hi, I'd like to rotate my labels based on an angle defined in an attribute field. But I don't know if it's possible to do that in mapserver ? Thanks for helping out ! Steven From gregor at hostgis.com Tue Mar 18 01:50:34 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 18 Mar 2008 02:50:34 -0600 Subject: [mapserver-users] Rotate labels based on angle defined in attribute field In-Reply-To: <8d2ea9d70803180148o59f7168ds117581280246fa98@mail.gmail.com> References: <8d2ea9d70803180145t1ee07a68w30408c80cdff68c9@mail.gmail.com> <8d2ea9d70803180147reb0e4ffvfc717b561b710c63@mail.gmail.com> <8d2ea9d70803180148o59f7168ds117581280246fa98@mail.gmail.com> Message-ID: <47DF825A.60905@hostgis.com> Steven De Vriendt wrote: > I'd like to rotate my labels based on an angle defined in an attribute field. > But I don't know if it's possible to do that in mapserver ? Sure, it's called "binding" and is all the rage in 5.0 :) LABEL ..blah.. ANGLE [field] END This replaces the old ANGLEITEM keyword from 4.8, so if you're using 4.8 search the docs for ANGLEITEM. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gisaalter at gmail.com Tue Mar 18 02:07:31 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 18 Mar 2008 10:07:31 +0100 Subject: [mapserver-users] Rotate labels based on angle defined in attribute field In-Reply-To: <47DF825A.60905@hostgis.com> References: <8d2ea9d70803180145t1ee07a68w30408c80cdff68c9@mail.gmail.com> <8d2ea9d70803180147reb0e4ffvfc717b561b710c63@mail.gmail.com> <8d2ea9d70803180148o59f7168ds117581280246fa98@mail.gmail.com> <47DF825A.60905@hostgis.com> Message-ID: <8d2ea9d70803180207w30f563b1q6da126c2ba0594@mail.gmail.com> thx ! On Tue, Mar 18, 2008 at 9:50 AM, Gregor Mosheh wrote: > Steven De Vriendt wrote: > > I'd like to rotate my labels based on an angle defined in an attribute field. > > But I don't know if it's possible to do that in mapserver ? > > Sure, it's called "binding" and is all the rage in 5.0 :) > > LABEL > ..blah.. > ANGLE [field] > END > > This replaces the old ANGLEITEM keyword from 4.8, so if you're using 4.8 > search the docs for ANGLEITEM. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From Jukka.Rahkonen at mmmtike.fi Tue Mar 18 03:45:51 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 18 Mar 2008 12:45:51 +0200 Subject: [MAPSERVER-USERS] cs2cs problems In-Reply-To: Message-ID: Hi Carla, Please remember to use "reply to all" in order to send your message for the mailing list as well. I hope I understand this correctly. So your original data (the shapefile) is in epsg:23030? Then you should have in mapfile, in corresponding LAYER section PROJECTION "init=epsg:23030" END Next, because you are willing to deliver that layer through WMS in epsg:4230, it is good to add this to layer METADATA as "wms_srs" "EPSG:4230" By looking at my old mapfiles wms_srs metadata seems not to be compulsory if WMS service will only be used in one output projection which is the same as the main MAP projection. Anyway I believe it would be good habbit to have it. Third, you should give the default output projection in MAP section as PROJECTION "init=epsg:4230" END And last calculate the bounding box containing your data in the mapfile projection (epsg:4230) and feel in the values as EXTENT of the map object. I try to read your messages once again faithfully and I feel you are giving a bit conflicting information. In one place you say you are willing to publish your data in ETRS89, wich I believe to mean epsg:4258. If this is the case then insert that value to "wms_srs" and mapfile projection instead of 4230. Why do you play at all with epsg:4230 if your data are not using it, and you don't want to any output in that projection either? Perhaps I have just not understood what you are aiming at, but I hope you will have luck with it. -Jukka Rahkonen- ________________________________ L?hett?j?: CARLA FERNANDEZ [mailto:carla.fernandezb at gmail.com] L?hetetty: 18. maaliskuuta 2008 11:50 Vastaanottaja: Rahkonen Jukka Aihe: Re: [MAPSERVER-USERS] cs2cs problems Thanks four your answer, I've defined projections in my WMS before without problems. In this case I want to change the projection of my WMS (to ETRS89) with the layers in ED50, but if I just set the projection of the header's mapfile like ETRS89, and I leave the layers' projections like ED50, it doesn't work :( Do you have any idea of how can I use the cs2cs?? Thanks!! 2008/3/17, Rahkonen Jukka : Hi, I you want to define projections in mapfile then there are two alternatives: either give the espg code: PROJECTION "init=epsg:2393" END or proj4 strings: PROJECTION "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" END But perhaps you are aiming at something else by using cs2cs? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cfb L?hetetty: ma 17.3.2008 15:49 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MAPSERVER-USERS] cs2cs problems Hi, I'm having problems with the projection again. I've got a shape in epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 (ETRS89). I've changed the extent, the "wms_boundingbox" and the "wms_latlonboundingbox" of my header's mapfile to geographic coordinates (epsg:4230 for ED50), and in the projection object (always in the header, in the layer object I leave epsg:23030) I put: PROJECTION 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' END http://www.nabble.com/file/p16092875/epsg epsg For the second reference system, I've also tried with "+proj=longlat" and with "+init=epsg:4258", but I get always the same error: msProcessProjection(): Projection library error. projection not named The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) Thanks in advance!! -- View this message in context: http://www.nabble.com/cs2cs-problems-tp16092875p16092875.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdoyon at NRCan.gc.ca Tue Mar 18 05:05:45 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 18 Mar 2008 08:05:45 -0400 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: References: <47DEC5BA.2080401@mapgears.com> Message-ID: Thanks Thomas, that'd be great ... is there a ticket open for this, or should I open one? (I'd like to track progress on this issue ...) J.F. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: March 18, 2008 03:42 Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] AGG vs. GD: Label placement problems Yes, that's exactly the problem, as there's a difference of a few pixels between the size of the label calculated by gd and the size it actually takes when rendered with agg. I realize now that it can cause some quite visible problems in the case you show here (labels to the left), as in that case the few pixels difference can cause the label to overlap the point symbol. I'll see if I can fix this in the days/weeks to come so this can be included in 5.2 cheers, thomas On Mon, Mar 17, 2008 at 8:25 PM, Daniel Morissette wrote: > Doyon, Jean-Francois wrote: > > > > Labels that are to the left of the point seem to be placed differently ... Look top-right ("Les Escoumins", "Saint Anne de Port Neuf", etc ...) for an example, though it happens all over the place I think. Labels to the right of the point however seem ok. > > > > Is this a bug? A design change? Can anything be done from the mapfiel to mitigate this? > > > > A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd > is still used [...] for the calculation of label sizes (thus some > subtle discreptancies in label placement, mostly visible if using a > label > backgroundcolor)": > > http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html > > Maybe that's what your running into? Hopefully Thomas will see this > and comment. > > Daniel > -- > Daniel Morissette > http://www.mapgears.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 Tue Mar 18 05:10:20 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 18 Mar 2008 13:10:20 +0100 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: References: <47DEC5BA.2080401@mapgears.com> Message-ID: http://trac.osgeo.org/mapserver/ticket/2357 On Tue, Mar 18, 2008 at 1:05 PM, Doyon, Jean-Francois wrote: > Thanks Thomas, that'd be great ... is there a ticket open for this, or > should I open one? (I'd like to track progress on this issue ...) > > J.F. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas > bonfort > Sent: March 18, 2008 03:42 > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] AGG vs. GD: Label placement problems > > Yes, that's exactly the problem, as there's a difference of a few pixels > between the size of the label calculated by gd and the size it actually > takes when rendered with agg. I realize now that it can cause some quite > visible problems in the case you show here (labels to the left), as in > that case the few pixels difference can cause the label to overlap the > point symbol. I'll see if I can fix this in the days/weeks to come so > this can be included in 5.2 > > cheers, > thomas > > On Mon, Mar 17, 2008 at 8:25 PM, Daniel Morissette > wrote: > > Doyon, Jean-Francois wrote: > > > > > > Labels that are to the left of the point seem to be placed > differently ... Look top-right ("Les Escoumins", "Saint Anne de Port > Neuf", etc ...) for an example, though it happens all over the place I > think. Labels to the right of the point however seem ok. > > > > > > Is this a bug? A design change? Can anything be done from the > mapfiel to mitigate this? > > > > > > > A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd > > is still used [...] for the calculation of label sizes (thus some > > subtle discreptancies in label placement, mostly visible if using a > > label > > backgroundcolor)": > > > > http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html > > > > Maybe that's what your running into? Hopefully Thomas will see this > > and comment. > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.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 carla.fernandezb at gmail.com Tue Mar 18 05:14:37 2008 From: carla.fernandezb at gmail.com (CARLA FERNANDEZ) Date: Tue, 18 Mar 2008 13:14:37 +0100 Subject: [MAPSERVER-USERS] cs2cs problems In-Reply-To: References: Message-ID: Hi Jukka, Thanks very much for your interest!! and sorry for the conflicting information... I explain you, I have all my layers in epsg:23030, and I don't want to reproject them. However, I want to set my WMS in WGS84-epsg:4326 (not ETRS89-epsg:4230, sorry), so that I can load my WMS in Google-Earth without the difference that it has (almost 130 meters) because of the differents reference systems...It seems like MapServer ignores the projection settings in the map section!! (because I set WGS84, like GoogleEarth) And googleing I've read that I can use the cs2cs in the projection object (map section), but I get this error: msProcessProjection(): Projection library error. projection not named I've tried several combinations, but nothing works... PROJECTION #"cs2cs +from +proj=utm +zone=30 +ellps=intl +units=m +no_defs no_defs +to +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" "cs2cs +from +init=epsg:23030 +to +init=epsg:4326" #"init=epsg:4326" END Thanks!! 2008/3/18, Rahkonen Jukka : > > Hi Carla, > > Please remember to use "reply to all" in order to send your message for > the mailing list as well. > > I hope I understand this correctly. So your original data (the > shapefile) is in epsg:23030? Then you should have in mapfile, in > corresponding LAYER section > PROJECTION > "init=epsg:23030" > END > > Next, because you are willing to deliver that layer through WMS in > epsg:4230, it is good to add this to layer METADATA as > "wms_srs" "EPSG:4230" > > By looking at my old mapfiles wms_srs metadata seems not to be compulsory > if WMS service will only be used in one output projection which is the same > as the main MAP projection. Anyway I believe it would be good habbit to > have it. > > Third, you should give the default output projection in MAP section as > PROJECTION > "init=epsg:4230" > END > > And last calculate the bounding box containing your data in the mapfile > projection (epsg:4230) and feel in the values as EXTENT of the map object. > > I try to read your messages once again faithfully and I feel you are > giving a bit conflicting information. In one place you say you are willing > to publish your data in ETRS89, wich I believe to mean epsg:4258. If this > is the case then insert that value to "wms_srs" and mapfile projection > instead of 4230. Why do you play at all with epsg:4230 if your data are not > using it, and you don't want to any output in that projection either? > Perhaps I have just not understood what you are aiming at, but I hope you > will have luck with it. > > -Jukka Rahkonen- > > > > ------------------------------ > *L?hett?j?:* CARLA FERNANDEZ [mailto:carla.fernandezb at gmail.com] > *L?hetetty:* 18. maaliskuuta 2008 11:50 > *Vastaanottaja:* Rahkonen Jukka > *Aihe:* Re: [MAPSERVER-USERS] cs2cs problems > > Thanks four your answer, > > I've defined projections in my WMS before without problems. In this case I > want to change the projection of my WMS (to ETRS89) with the layers in ED50, > but if I just set the projection of the header's mapfile like ETRS89, and I > leave the layers' projections like ED50, it doesn't work :( > > > Do you have any idea of how can I use the cs2cs?? > > Thanks!! > > > > > > 2008/3/17, Rahkonen Jukka : > > > > Hi, > > > > I you want to define projections in mapfile then there are two > > alternatives: > > either give the espg code: > > > > PROJECTION > > "init=epsg:2393" > > END > > > > or proj4 strings: > > > > PROJECTION > > "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 > > +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 > > +units=m +no_defs" > > END > > > > But perhaps you are aiming at something else by using cs2cs? > > > > -Jukka Rahkonen- > > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cfb > > L?hetetty: ma 17.3.2008 15:49 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [MAPSERVER-USERS] cs2cs problems > > > > > > > > Hi, > > > > I'm having problems with the projection again. I've got a shape in > > epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 > > (ETRS89). I've changed the extent, the "wms_boundingbox" and the > > "wms_latlonboundingbox" of my header's mapfile to geographic coordinates > > (epsg:4230 for ED50), and in the projection object (always in the > > header, in > > the layer object I leave epsg:23030) I put: > > > > PROJECTION > > 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs > > +no_defs > > +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' > > END http://www.nabble.com/file/p16092875/epsg epsg > > > > For the second reference system, I've also tried with "+proj=longlat" > > and > > with "+init=epsg:4258", but I get always the same error: > > > > msProcessProjection(): Projection library error. projection not named > > > > The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) > > > > Thanks in advance!! > > > > > > -- > > View this message in context: > > http://www.nabble.com/cs2cs-problems-tp16092875p16092875.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 > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Mar 18 05:52:28 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 18 Mar 2008 14:52:28 +0200 Subject: [MAPSERVER-USERS] cs2cs problems In-Reply-To: Message-ID: Hi, I feel we are getting closer to common understandment. First, for my mind you exactly _do_ want to reproject your data, even if just on-the-fly from epsg:23030 to epsg:4326. I do not know what projection you need to use with Google Earth but let's hope that epsg:4326 is correct. Mapserver is doing re-projection for you if you first tell it in LAYER the original projection of the data, and in the MAP level the output projection. Now I suppose your LAYER is ok if you have set the projection to +init=epsg:23030. I have never heard about using cs2cs for setting Mapserver projection but it does not prove that it is not possible. The methods I have used are using epsg code like "init=epsg:4230" or proj4-strings. The usage of the projection strings is explained here: http://mapserver.gis.umn.edu/docs/reference/mapfile/projection Another document to look through is: http://mapserver.gis.umn.edu/docs/howto/wms_server I have to say that it was not very easy to find a document describing promptly how to use Proj4 strings in mapfile, even that possibility is often mentioned in discussions. -Jukka- ________________________________ L?hett?j?: CARLA FERNANDEZ [mailto:carla.fernandezb at gmail.com] L?hetetty: 18. maaliskuuta 2008 14:15 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [MAPSERVER-USERS] cs2cs problems Hi Jukka, Thanks very much for your interest!! and sorry for the conflicting information... I explain you, I have all my layers in epsg:23030, and I don't want to reproject them. However, I want to set my WMS in WGS84-epsg:4326 (not ETRS89-epsg:4230, sorry), so that I can load my WMS in Google-Earth without the difference that it has (almost 130 meters) because of the differents reference systems...It seems like MapServer ignores the projection settings in the map section!! (because I set WGS84, like GoogleEarth) And googleing I've read that I can use the cs2cs in the projection object (map section), but I get this error: msProcessProjection(): Projection library error. projection not named I've tried several combinations, but nothing works... PROJECTION #"cs2cs +from +proj=utm +zone=30 +ellps=intl +units=m +no_defs no_defs +to +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" "cs2cs +from +init=epsg:23030 +to +init=epsg:4326" #"init=epsg:4326" END Thanks!! 2008/3/18, Rahkonen Jukka : Hi Carla, Please remember to use "reply to all" in order to send your message for the mailing list as well. I hope I understand this correctly. So your original data (the shapefile) is in epsg:23030? Then you should have in mapfile, in corresponding LAYER section PROJECTION "init=epsg:23030" END Next, because you are willing to deliver that layer through WMS in epsg:4230, it is good to add this to layer METADATA as "wms_srs" "EPSG:4230" By looking at my old mapfiles wms_srs metadata seems not to be compulsory if WMS service will only be used in one output projection which is the same as the main MAP projection. Anyway I believe it would be good habbit to have it. Third, you should give the default output projection in MAP section as PROJECTION "init=epsg:4230" END And last calculate the bounding box containing your data in the mapfile projection (epsg:4230) and feel in the values as EXTENT of the map object. I try to read your messages once again faithfully and I feel you are giving a bit conflicting information. In one place you say you are willing to publish your data in ETRS89, wich I believe to mean epsg:4258. If this is the case then insert that value to "wms_srs" and mapfile projection instead of 4230. Why do you play at all with epsg:4230 if your data are not using it, and you don't want to any output in that projection either? Perhaps I have just not understood what you are aiming at, but I hope you will have luck with it. -Jukka Rahkonen- ________________________________ L?hett?j?: CARLA FERNANDEZ [mailto:carla.fernandezb at gmail.com] L?hetetty: 18. maaliskuuta 2008 11:50 Vastaanottaja: Rahkonen Jukka Aihe: Re: [MAPSERVER-USERS] cs2cs problems Thanks four your answer, I've defined projections in my WMS before without problems. In this case I want to change the projection of my WMS (to ETRS89) with the layers in ED50, but if I just set the projection of the header's mapfile like ETRS89, and I leave the layers' projections like ED50, it doesn't work :( Do you have any idea of how can I use the cs2cs?? Thanks!! 2008/3/17, Rahkonen Jukka : Hi, I you want to define projections in mapfile then there are two alternatives: either give the espg code: PROJECTION "init=epsg:2393" END or proj4 strings: PROJECTION "+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs" END But perhaps you are aiming at something else by using cs2cs? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cfb L?hetetty: ma 17.3.2008 15:49 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MAPSERVER-USERS] cs2cs problems Hi, I'm having problems with the projection again. I've got a shape in epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230 (ETRS89). I've changed the extent, the "wms_boundingbox" and the "wms_latlonboundingbox" of my header's mapfile to geographic coordinates (epsg:4230 for ED50), and in the projection object (always in the header, in the layer object I leave epsg:23030) I put: PROJECTION 'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs +no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' END http://www.nabble.com/file/p16092875/epsg epsg For the second reference system, I've also tried with "+proj=longlat" and with "+init=epsg:4258", but I get always the same error: msProcessProjection(): Projection library error. projection not named The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2) Thanks in advance!! -- View this message in context: http://www.nabble.com/cs2cs-problems-tp16092875p16092875.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at gmail.com Tue Mar 18 07:01:45 2008 From: jayzee.smith at gmail.com (John Smith) Date: Tue, 18 Mar 2008 10:01:45 -0400 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: <47DEF604.9090505@swoodbridge.com> References: <47DEF604.9090505@swoodbridge.com> Message-ID: thks so what's the difference between mapserv.exe and shp2img.exe? i find the naming a little confusing (map2img? mapserver_cli?) jzs On Mon, Mar 17, 2008 at 6:51 PM, Stephen Woodbridge wrote: > You can do it with the mapserv executable from the commandline via > > mapserv QUERY_STRING='map=/path/tofile.map&value=foo&value2=bar&...' > > -Steve W > > John Smith wrote: > > thks but i fail to see the benefit of that- does shp2img.exe know what > > to do with these inserted variables? > > > > i want to use variables in the map file for a postgis query, like > > %var%. passing [-m "...map?value=%var%"] throws a msEvalRegex() error. > > jzs > > > > On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka > > wrote: > >> If you use Windows, make a batch file, let's say run.bat > >> shp2img -m "...map" -o "...gif" %1% %2% > >> > >> Then send from command line: > >> > >> run.bat variable1 variable2 (they will be inserted in place of %1 and %2) > >> > >> -Jukka Rahkonen- > >> > >> -----Alkuper?inen viesti----- > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith > >> L?hetetty: ma 17.3.2008 22:33 > >> Vastaanottaja: mapserver-users at lists.osgeo.org > >> Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? > >> > >> can i pass variables to shp2img, say? > >> > >> shp2img -m "...map" -o "...gif" %variable1% %variable2% > >> > >> jzs > >> _______________________________________________ > >> 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 warmerdam at pobox.com Tue Mar 18 07:12:00 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 18 Mar 2008 10:12:00 -0400 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: References: <47DEF604.9090505@swoodbridge.com> Message-ID: <47DFCDB0.1050901@pobox.com> John Smith wrote: > thks so what's the difference between mapserv.exe and shp2img.exe? i > find the naming a little confusing (map2img? mapserver_cli?) John, shp2img is commandline oriented, and doesn't allow nearly as many things to be controlled as you can with mapserv. shp2img also only does the "drawMap" operation, not legends, templates, etc. In fact, map2img would have been a better name, but I'm very against change, so I wouldn't want to change it now. It would break all my test scripts. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From plists at prometheus.org.yu Tue Mar 18 07:32:50 2008 From: plists at prometheus.org.yu (Attila Csipa) Date: Tue, 18 Mar 2008 15:32:50 +0100 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: <47DFCDB0.1050901@pobox.com> References: <47DFCDB0.1050901@pobox.com> Message-ID: <200803181532.50184.plists@prometheus.org.yu> On Tuesday 18 March 2008 15:12:00 Frank Warmerdam wrote: > In fact, map2img would have been a better name, but I'm very against > change, so I wouldn't want to change it now. It would break all my > test scripts. You can always use a wrapper/softlink/shortcut for it and make a clear deprecation note for the next major release. The longer something misnamed stays in (and I very much agree map2img is more fitting), the harder it will be to correct all references to it. From gisaalter at gmail.com Tue Mar 18 08:36:39 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 18 Mar 2008 16:36:39 +0100 Subject: [mapserver-users] Rotate labels based on angle defined in attribute field In-Reply-To: <47DF825A.60905@hostgis.com> References: <8d2ea9d70803180145t1ee07a68w30408c80cdff68c9@mail.gmail.com> <8d2ea9d70803180147reb0e4ffvfc717b561b710c63@mail.gmail.com> <8d2ea9d70803180148o59f7168ds117581280246fa98@mail.gmail.com> <47DF825A.60905@hostgis.com> Message-ID: <8d2ea9d70803180836s35fc014em7d4a6c85dcdf36bc@mail.gmail.com> Gregor, I'm trying to define the field which I want to use For now I have this: LABEL SIZE TINY POSITION UC ANGLE toptan BUFFER 2 MINDISTANCE 150 COLOR 0 0 0 END yet, when I try to render the map, mapserver refuses to draw the layer. Actually I'm using chameleon with MS4W- Mapserver version 5.0.2 Any idea what I'm doing wrong ? Thanks Steven From jayzee.smith at gmail.com Tue Mar 18 09:13:22 2008 From: jayzee.smith at gmail.com (John Smith) Date: Tue, 18 Mar 2008 12:13:22 -0400 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: <47DFCDB0.1050901@pobox.com> References: <47DEF604.9090505@swoodbridge.com> <47DFCDB0.1050901@pobox.com> Message-ID: frank, ok so it's easier to get to the image using shp2img.exe since mapserv.exe dumps the image in /temp/ under a random name. but how'd i get the image name just using mapserv.exe from commandline? jzs On Tue, Mar 18, 2008 at 10:12 AM, Frank Warmerdam wrote: > John Smith wrote: > > thks so what's the difference between mapserv.exe and shp2img.exe? i > > find the naming a little confusing (map2img? mapserver_cli?) > > John, > > shp2img is commandline oriented, and doesn't allow nearly as many > things to be controlled as you can with mapserv. shp2img also only > does the "drawMap" operation, not legends, templates, etc. > > In fact, map2img would have been a better name, but I'm very against > change, so I wouldn't want to change it now. It would break all my > test scripts. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org From info at jeresin.co.za Tue Mar 18 09:16:38 2008 From: info at jeresin.co.za (Hennie Kotze) Date: Tue, 18 Mar 2008 18:16:38 +0200 Subject: [mapserver-users] UNSUBSCRIBE Message-ID: <47DFEAE6.3030106@jeresin.co.za> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo_eml.gif Type: image/gif Size: 4015 bytes Desc: not available URL: From warmerdam at pobox.com Tue Mar 18 09:22:35 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 18 Mar 2008 12:22:35 -0400 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: References: <47DEF604.9090505@swoodbridge.com> <47DFCDB0.1050901@pobox.com> Message-ID: <47DFEC4B.5040909@pobox.com> John Smith wrote: > frank, > ok so it's easier to get to the image using shp2img.exe since > mapserv.exe dumps the image in /temp/ under a random name. > > but how'd i get the image name just using mapserv.exe from commandline? John, If you are running mapserv in WMS mode, the image is written to stdout, and can be redirected to any file. If traditional mode, the filename base is created with msTmpFile() which normally uses the time and processed id as part of the filename. But you can use the undocumented -tmpbase switch to mapserv at the commandline to force a new value for this base to give predictable temp file names. eg. mapserv -tmpbase test QUERY_STRING='...' I implemented this for testing scripts but in the end didn't need it so it is possible that it is somewhat broken. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jukka.Rahkonen at mmmtike.fi Tue Mar 18 09:50:34 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 18 Mar 2008 18:50:34 +0200 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variablestoshp2img? References: <47DEF604.9090505@swoodbridge.com><47DFCDB0.1050901@pobox.com> Message-ID: There is quite a lot of good reading on the Mapserver web site, for example: http://mapserver.gis.umn.edu/new_users MapServer is designed to be a map server that delivers maps through http for web clients. It does sometimes create image files on server disk and of course you can seach and use those files. Normal usage is still to use some http client for sending map requests and doing something for the image that will be sent back. By running mapserv.exe from command line you won't get much more out of it than program version number and a list of formats it supports. In order to capture a Mapserver map into an image file I use mostly wget. It has also a written manual, see http://www.gnu.org/software/wget/manual/wget.html The commandline you may be searching for is likely close to this: wget -O outputimage.jpg http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\maps\John_Smith.map&mode=map -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: John Smith L?hetetty: ti 18.3.2008 18:13 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variablestoshp2img? frank, ok so it's easier to get to the image using shp2img.exe since mapserv.exe dumps the image in /temp/ under a random name. but how'd i get the image name just using mapserv.exe from commandline? jzs On Tue, Mar 18, 2008 at 10:12 AM, Frank Warmerdam wrote: > John Smith wrote: > > thks so what's the difference between mapserv.exe and shp2img.exe? i > > find the naming a little confusing (map2img? mapserver_cli?) > > John, > > shp2img is commandline oriented, and doesn't allow nearly as many > things to be controlled as you can with mapserv. shp2img also only > does the "drawMap" operation, not legends, templates, etc. > > In fact, map2img would have been a better name, but I'm very against > change, so I wouldn't want to change it now. It would break all my > test scripts. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jesse.Johnson at co.anoka.mn.us Tue Mar 18 10:11:46 2008 From: Jesse.Johnson at co.anoka.mn.us (Jesse Johnson) Date: Tue, 18 Mar 2008 12:11:46 -0500 Subject: [mapserver-users] set extent problem Message-ID: <47DFB221.4809.008A.0@co.anoka.mn.us> Hello, I am a first time mapserver user and am in the process of setting up a map for our department's website. I am having a problem setting the extent of the map that appears when the map loads. I used the Itasca County Demo and altered the data to fit the Anoka County area. The map still opens to the Itsaca extent. When I try to change the extent options in MAP_tmp.html from the old extent I get a javascript error. If anyone can help I would appreciate it The files are included: Thanks Jesse Johnson Anoka County Highway Dept Office: 763-862-4259 Fax: 763-862-4201 Email: jesse.johnson at co.anoka.mn.us NOTICE: Unless restricted by law, email correspondence to and from Anoka County government offices may be public data subject to the Minnesota Data Practices Act and/or may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MAP.map Type: application/octet-stream Size: 3904 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 18 12:51:31 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 18 Mar 2008 14:51:31 -0500 Subject: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img? In-Reply-To: <47DFEC4B.5040909@pobox.com> References: <47DEF604.9090505@swoodbridge.com> <47DFCDB0.1050901@pobox.com> <47DFEC4B.5040909@pobox.com> Message-ID: <47E01D43.9020205@swoodbridge.com> Frank Warmerdam wrote: > John Smith wrote: >> frank, >> ok so it's easier to get to the image using shp2img.exe since >> mapserv.exe dumps the image in /temp/ under a random name. >> >> but how'd i get the image name just using mapserv.exe from commandline? > > John, > > If you are running mapserv in WMS mode, the image is written to > stdout, and can be redirected to any file. you can also do this with mode=map as a parameter in the QUERY_STRING, but this has a problem in that the mime type headers are emitted before the image also to stdout and this will cause the redirected image to be broken as an image. That said, it would also be pretty trivial to write a perl script to strip off the HTTP header lines. THis should assume that there are other lines also like cookies cache control headers, etc. -Steve W > If traditional mode, the filename base is created with msTmpFile() > which normally uses the time and processed id as part of the filename. > But you can use the undocumented -tmpbase switch to mapserv at the > commandline to force a new value for this base to give predictable > temp file names. > > eg. > > mapserv -tmpbase test QUERY_STRING='...' > > I implemented this for testing scripts but in the end didn't need > it so it is possible that it is somewhat broken. > > Best regards, From andreas.albarello at territoriumonline.com Tue Mar 18 11:45:12 2008 From: andreas.albarello at territoriumonline.com (Andreas Albarello) Date: Tue, 18 Mar 2008 19:45:12 +0100 Subject: [mapserver-users] Rotate labels based on angle defined in attribute field In-Reply-To: <8d2ea9d70803180836s35fc014em7d4a6c85dcdf36bc@mail.gmail.com> References: <8d2ea9d70803180145t1ee07a68w30408c80cdff68c9@mail.gmail.com> Message-ID: On 18 Mar 2008, at 16:36, Steven De Vriendt wrote: > Gregor, > > I'm trying to define the field which I want to use > For now I have this: > > LABEL > SIZE TINY > POSITION UC > ANGLE toptan > BUFFER 2 > MINDISTANCE 150 > COLOR 0 0 0 > END > > yet, when I try to render the map, mapserver refuses to draw the > layer. Actually I'm using chameleon with MS4W- Mapserver version 5.0.2 > Any idea what I'm doing wrong ? ANGLE [toptan] with the square brackets should work. The field name might need to be in uppercase, though, if you are using shapefiles. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From Bob.Basques at ci.stpaul.mn.us Tue Mar 18 15:31:49 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 18 Mar 2008 17:31:49 -0500 Subject: [mapserver-users] GRID labeling, OK, where are the MapServer GRID guru's?? Message-ID: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us> All, I've (we've) been messing with this GRID object and Labeling while trying to get a USNG grid output with labels The results are meant to look like the left edge of the attached image. The other three sides are being repositioned by some semi-known process. Essentially the labels should be: First two characters are super-scripted, the next two characters are Normal, and the last four are also super-scripted. We've mussed with MapServer code and come up with a method for handling the different styling via a layer in the MAPFILE, using a LABELFORMAT option of NG1(1st 2 chars), NG2 (2nd 2 chars) and NG3 (the last 4 chars). This is set up along the lines of the DDMMSS options for LAT/LON. You can see that there is something wonky about the justification of the labels. Right now we have space padding in front of and behind the superscripted items, we'll address that separately once we get past this label justification thing. So the question is, what is the sequence of events for a GRID with labels, being applied to the result? Where in the Code could/should the justifications be eliminated for the GRID writing process (I understand that there needs to be a process for aligning along the edges) so that the regular Labeling parameters, specifically, the OFFSET param, are adhered to. I've tried all sorts of different combinations of settings to get the right output, and I can only seem to get one edge to display properly. Furthering this output option a little more, anyone done any work with labeling along the outside of a map image? I could use an option like this for printing for example. Thanks bobb The image results are from using this MapFile: MAP NAME 'USNG' SIZE 800 650 STATUS ON ##IMAGECOLOR 254 254 254 ##EXTENT 540000 135000 600000 175000 EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 UNITS FEET FONTSET ./0000_00/MN_Line_Experiments/fonts/font.list SYMBOLSET ./0000_00/MN_Line_Experiments/symbols/symbol.list TRANSPARENT TRUE IMAGETYPE PNG WEB IMAGEPATH "/mnt/VECTOR00/output/" IMAGEURL "/tmp/" END # EPSG:26915 LAYER NAME "grid" TYPE LINE STATUS DEFAULT CLASS NAME "Graticule" COLOR 0 0 0 SYMBOL 'circle' SIZE 1 END PROJECTION "init=epsg:26915" END GRID LABELFORMAT "NG1" END END LAYER NAME "ng1" TYPE LINE STATUS DEFAULT CLASS LABEL COLOR 0 0 0 FONT mono TYPE truetype SIZE 6 OUTLINECOLOR 255 255 254 FORCE true POSITION cl #OFFSET 0 0 END END PROJECTION "init=epsg:26915" END GRID LABELFORMAT "NG1" END END LAYER NAME "ng2" TYPE LINE STATUS DEFAULT CLASS LABEL COLOR 0 0 0 FONT mono TYPE truetype SIZE 12 OUTLINECOLOR 255 255 254 FORCE true POSITION cl END END PROJECTION "init=epsg:26915" END GRID LABELFORMAT "NG2" END END LAYER NAME "ng3" TYPE LINE STATUS DEFAULT CLASS LABEL COLOR 0 0 0 FONT mono TYPE truetype SIZE 6 OUTLINECOLOR 255 255 254 FORCE true #OFFSET 0 0 POSITION cl END END PROJECTION "init=epsg:26915" END GRID LABELFORMAT "NG3" END END END ## end Map -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MN_USNG_grid3_ramsey_public.map-4.99-pwcs-01.png Type: image/png Size: 19074 bytes Desc: not available URL: From bfraser at geoanalytic.com Tue Mar 18 18:46:07 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 18 Mar 2008 19:46:07 -0600 (Mountain Daylight Time) Subject: [mapserver-users] GRID labeling, OK, where are the MapServer GRID guru's?? In-Reply-To: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us> References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <.68.144.5.189.1205891167.squirrel@68.144.5.189> Bob, Good on you for pursuing this! While I think the current grid object satisfies most of mapserver implementors' needs, there is room for improvement. The ultimate would be a system that can produce reference system labels like those found on topos (some are very similar to your NG labels). First, I see there is still a typo in mapgraticule.c, line 347 (current SVN) should be dStartY = (pInfo->pboundinglines[0].point[1].y - pInfo->pboundinglines[0].point[0].y) * dDeltaX + pInfo->pboundinglines[0].point[0].y; (note the last array index value of 0 not 1) Second, (from my old notes on experimenting with labeling in v4.3) I changed 661 thru 682 to: switch( ePosition ) { case posBottom: pShape->line->point[1].y = pLayer->map->height; pShape->line->point[0].y = pLayer->map->height - ( fabs(rectLabel.maxx - rectLabel.minx) + 15 ); /* rectLabel is based on non-rotated text (x is along the width of text) */ break; case posTop: pShape->line->point[1].y = 0; pShape->line->point[0].y = fabs(rectLabel.maxx - rectLabel.minx) + 15; break; case posLeft: pShape->line->point[1].x = 0; pShape->line->point[0].x = fabs(rectLabel.maxx - rectLabel.minx) + 15; break; case posRight: pShape->line->point[1].x = pLayer->map->width; pShape->line->point[0].x = pLayer->map->width - ( fabs(rectLabel.maxx - rectLabel.minx) + 15 ); break; } And regarding labeling "outside" the map, I arranged my map file to draw: 1. all the usual raster and vector layers 2. a grid layer 3. a "margin" layer of blanking polygons (see below) 4. a grid layer of type annotation so no lines are drawn Here's part of my map file (for version 4.3 so no telling what will happen with v5.x): SIZE 800 600 : : LAYER NAME "Margin" TRANSFORM FALSE STATUS DEFAULT TYPE POLYGON CLASS COLOR 255 255 255 END FEATURE POINTS 0 0 0 600 70 600 70 0 0 0 END POINTS 70 0 70 70 800 70 800 0 70 0 END POINTS 70 600 800 600 800 530 70 530 70 600 END POINTS 730 70 730 530 800 530 800 70 730 70 END END END #----------------------------------------------------------- LAYER NAME "NeatLine" TRANSFORM FALSE STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 END FEATURE POINTS 70 70 70 530 730 530 730 70 70 70 END END END #----------------------------------------------------------- LAYER NAME "GRID" PROJECTION "proj=latlong" # "ellps=sphere" "datum=WGS84" END # TYPE Line TYPE ANNOTATION # LABELCACHE off STATUS DEFAULT CLASS COLOR 128 128 128 # LABEL # TYPE BITMAP # SIZE MEDIUM # COLOR 128 128 89 # END LABEL color 0 0 0 # COLOR 255 255 0 # OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT arial #bd SIZE 12 POSITION UC # AUTO ANGLE AUTO # OFFSET 4 4 # PARTIALS false # WRAP " " END # Label END GRID LABELFORMAT "DDMM" # LABELFORMAT "DDMMSS" # MINSUBDIVIDE 6 # MAXSUBDIVIDE 6 # MININTERVAL 1.0 # MAXINTERVAL 1.0 # MINARCS 6 # MAXARCS 6 END END #----------------------------------------------------------- END # MAPFILE But in the end it is somewhat hacky and not perfect. I think some additional objects and properties are needed. Last year I had a small rant regarding graticules on the OSGeo mailing list (with no specific solution reached). Here's one record of it: http://www.mail-archive.com/discuss at lists.osgeo.org/msg00935.html Keep up the good work! Brent Fraser > All, > > I've (we've) been messing with this GRID object and Labeling while trying > to get a USNG grid output with labels > > The results are meant to look like the left edge of the attached image. > The other three sides are being repositioned by some semi-known process. > > Essentially the labels should be: > > First two characters are super-scripted, the next two characters are > Normal, and the last four are also super-scripted. We've mussed with > MapServer code and come up with a method for handling the different > styling via a layer in the MAPFILE, using a LABELFORMAT option of NG1(1st > 2 chars), NG2 (2nd 2 chars) and NG3 (the last 4 chars). This is set up > along the lines of the DDMMSS options for LAT/LON. > > You can see that there is something wonky about the justification of the > labels. Right now we have space padding in front of and behind the > superscripted items, we'll address that separately once we get past this > label justification thing. > > So the question is, what is the sequence of events for a GRID with labels, > being applied to the result? Where in the Code could/should the > justifications be eliminated for the GRID writing process (I understand > that there needs to be a process for aligning along the edges) so that the > regular Labeling parameters, specifically, the OFFSET param, are adhered > to. > > I've tried all sorts of different combinations of settings to get the > right output, and I can only seem to get one edge to display properly. > > Furthering this output option a little more, anyone done any work with > labeling along the outside of a map image? I could use an option like > this for printing for example. > > Thanks > > bobb > > > The image results are from using this MapFile: > > MAP > NAME 'USNG' > SIZE 800 650 > STATUS ON > ##IMAGECOLOR 254 254 254 > ##EXTENT 540000 135000 600000 175000 > EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 > UNITS FEET > > FONTSET ./0000_00/MN_Line_Experiments/fonts/font.list > SYMBOLSET ./0000_00/MN_Line_Experiments/symbols/symbol.list > > TRANSPARENT TRUE > IMAGETYPE PNG > > WEB > IMAGEPATH "/mnt/VECTOR00/output/" > IMAGEURL "/tmp/" > END > > # EPSG:26915 > > LAYER > NAME "grid" > TYPE LINE > STATUS DEFAULT > CLASS > NAME "Graticule" > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 1 > END > PROJECTION > "init=epsg:26915" > END > GRID > LABELFORMAT "NG1" > END > END > > LAYER > NAME "ng1" > TYPE LINE > STATUS DEFAULT > CLASS > LABEL > COLOR 0 0 0 > FONT mono > TYPE truetype > SIZE 6 > OUTLINECOLOR 255 255 254 > FORCE true > POSITION cl > #OFFSET 0 0 > END > END > PROJECTION > "init=epsg:26915" > END > GRID > LABELFORMAT "NG1" > END > END > > LAYER > NAME "ng2" > TYPE LINE > STATUS DEFAULT > CLASS > LABEL > COLOR 0 0 0 > FONT mono > TYPE truetype > SIZE 12 > OUTLINECOLOR 255 255 254 > FORCE true > POSITION cl > END > END > PROJECTION > "init=epsg:26915" > END > GRID > LABELFORMAT "NG2" > END > END > > LAYER > NAME "ng3" > TYPE LINE > STATUS DEFAULT > CLASS > LABEL > COLOR 0 0 0 > FONT mono > TYPE truetype > SIZE 6 > OUTLINECOLOR 255 255 254 > FORCE true > #OFFSET 0 0 > POSITION cl > END > END > PROJECTION > "init=epsg:26915" > END > GRID > LABELFORMAT "NG3" > END > END > > > END ## end Map > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gisaalter at gmail.com Wed Mar 19 01:44:11 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Wed, 19 Mar 2008 09:44:11 +0100 Subject: [mapserver-users] Is there a mapfile for NAVSTREETS-dataset available ? Message-ID: <8d2ea9d70803190144w55f11f30o316ae6dc0c37592a@mail.gmail.com> Hi, I wonder if someone has a mapfile for the NAVSTREETS-dataset of Navteq. Before I start making one, I turn to you guys. If there's no reaction, I'll try to make a 'generic' mapfile. Think that would come in handy as it is a frequently used dataset, as is the TeleAtlas MultiNet-product... Thanks Steven From sylvain.perrinel at agriculture.gouv.fr Wed Mar 19 03:13:07 2008 From: sylvain.perrinel at agriculture.gouv.fr (Sylvain Perrinel) Date: Wed, 19 Mar 2008 11:13:07 +0100 Subject: [mapserver-users] WMS => GetLegendGraphic : encoding problem Message-ID: <47E0E733.6080505@agriculture.gouv.fr> Hello I have some problems of encoding with a WMS server on Mapserver and the request "GetLegendGraphic". I have set all my environnement in UTF-8 (WMS-Server, WMS-Client, php and html scripts) and my mapfile have the tag "wms_encoding" "utf-8" but if classes have some characters with accents, the encoding is false. I use this url : http://url/mapserv?map=n_zone_defavorisee_000_2006.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=n_zone_defavorisee_000_2006&Format=image/png Is there in this url an encoding issue ? You can see an example enclosed in the mail. Thanks -- Sylvain Perrinel Minist?re de l'Agriculture -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv.png Type: image/png Size: 1042 bytes Desc: not available URL: From thomas.bonfort at gmail.com Wed Mar 19 02:35:40 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Mar 2008 10:35:40 +0100 Subject: [mapserver-users] WMS => GetLegendGraphic : encoding problem In-Reply-To: <47E0E733.6080505@agriculture.gouv.fr> References: <47E0E733.6080505@agriculture.gouv.fr> Message-ID: hi, encoding of legend labels was added in 5.0 (http://trac.osgeo.org/mapserver/ticket/2239) you'll have to add an ENCODING UTF8 to your LABEL block in your LEGEND object thomas On Wed, Mar 19, 2008 at 11:13 AM, Sylvain Perrinel wrote: > Hello > I have some problems of encoding with a WMS server on Mapserver and the > request "GetLegendGraphic". I have set all my environnement in UTF-8 > (WMS-Server, WMS-Client, php and html scripts) and my mapfile have the > tag "wms_encoding" "utf-8" but if classes have some characters with > accents, the encoding is false. > > I use this url : > http://url/mapserv?map=n_zone_defavorisee_000_2006.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=n_zone_defavorisee_000_2006&Format=image/png > > Is there in this url an encoding issue ? > > You can see an example enclosed in the mail. Thanks > -- > Sylvain Perrinel > Minist?re de l'Agriculture > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yjacolin at free.fr Wed Mar 19 02:38:48 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 19 Mar 2008 10:38:48 +0100 Subject: [mapserver-users] WMS => GetLegendGraphic : encoding problem In-Reply-To: <47E0E733.6080505@agriculture.gouv.fr> References: <47E0E733.6080505@agriculture.gouv.fr> Message-ID: <200803191038.49788.yjacolin@free.fr> Le Wednesday 19 March 2008 11:13:07 Sylvain Perrinel, vous avez ?crit?: > Hello > I have some problems of encoding with a WMS server on Mapserver and the > request "GetLegendGraphic". I have set all my environnement in UTF-8 > (WMS-Server, WMS-Client, php and html scripts) and my mapfile have the > tag "wms_encoding" "utf-8" but if classes have some characters with > accents, the encoding is false. > > I use this url : > http://url/mapserv?map=n_zone_defavorisee_000_2006.map&SERVICE=WMS&VERSION= >1.1.1&REQUEST=GetLegendGraphic&LAYER=n_zone_defavorisee_000_2006&Format=imag >e/png > > Is there in this url an encoding issue ? > > You can see an example enclosed in the mail. Thanks Hi, Did you try to convert you mapfile in UTF8 ? Linux: iconv -f latin1 -t utf8 -o final.map orginale.map windows : iconv -f latin1 -t utf8 < orginale.map > final.map Y. -- Yves Jacolin --- http://softlibre.gloobe.org From Andreas.Eichner at sid.sachsen.de Wed Mar 19 03:22:59 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Wed, 19 Mar 2008 11:22:59 +0100 Subject: AW: [mapserver-users] MapServer and fastcgi-benefits? References: <20080317214842.186220@gmx.net> Message-ID: Hello Kai, fast-cgi is intented to make the handling of _multiple_ requests faster. A normal CGI call involves several steps for every request, mainly + do a fork() + seed all intended variables into the environment + prepare stdin to point to a buffer (or directly to the network socket) + exec() the CGI script + clean up after all that Normally this is time consuming so fast-cgi tries to accomplish that by giving a CGI program the possibility to not only handle a single request but to run into a request-handling loop to handle multiple requests. So setup/cleanup time is consumed only once for all those request. The problem is that "mapserv" opens and parses the mapfile for every request from the ground up which introduces a lot of overhead... AFAIK, for shapefiles the processing directive "CLOSE_CONNECTION" is simply ignored or has at least no singificant effect. It is intended for databases where the cost for establishing a connection over a network _is_ significant compared to the time required for a query. You may want to read the "Optimizing raster/vector data sources" howtos from the mapserver website to optimize your data. Good luck! -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Kai Behncke Gesendet: Montag, 17. M?rz 2008 22:49 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] MapServer and fastcgi-benefits? Hello list, I`m testing MapServer with fast-cgi to see if there`s a benefit in performance. I succesfully compiled MapServer with fast-cgi, in my Apache 2.2 at Debian Etch the mod_fastcgi is activated, the httpd.conf has the needed entries and in my mapfile I set PROCESSING "CLOSE_CONNECTION=DEFER" to a very "expensive" Layer (the data are shapefiles). But if I check the performance with "siege" (siege -c 4 -r 10 http://localhost/cgi-bin/mapserv?map=/var/www/wms_ogc/wms_server.map) I don`t see any performance benefits in comparison to MapServer without fastcgi?? Am I do something wrong?? What is the benefit of fast-cgi? Should`t it be faster than "normal"-cgi? Thank you very much in advance, Kai -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sylvain.perrinel at agriculture.gouv.fr Wed Mar 19 04:55:31 2008 From: sylvain.perrinel at agriculture.gouv.fr (Sylvain Perrinel) Date: Wed, 19 Mar 2008 12:55:31 +0100 Subject: [mapserver-users] WMS => GetLegendGraphic : encoding problem In-Reply-To: <200803191038.49788.yjacolin@free.fr> References: <47E0E733.6080505@agriculture.gouv.fr> <200803191038.49788.yjacolin@free.fr> Message-ID: <47E0FF33.5000109@agriculture.gouv.fr> @Yves : My mapfile is already in utf_8 @thomas : I add ENCODING UTF8 to the LABEL block in the LEGEND object and it does nothing. But I have found that I use the default configuration in BITMAP for the LEGEND. If I use instead a TRUETYPE font with characters with accents like "Arial", it works. So thank you for your help. Jacolin Yves a ?crit : > Le Wednesday 19 March 2008 11:13:07 Sylvain Perrinel, vous avez ?crit : >> Hello >> I have some problems of encoding with a WMS server on Mapserver and the >> request "GetLegendGraphic". I have set all my environnement in UTF-8 >> (WMS-Server, WMS-Client, php and html scripts) and my mapfile have the >> tag "wms_encoding" "utf-8" but if classes have some characters with >> accents, the encoding is false. >> >> I use this url : >> http://url/mapserv?map=n_zone_defavorisee_000_2006.map&SERVICE=WMS&VERSION= >> 1.1.1&REQUEST=GetLegendGraphic&LAYER=n_zone_defavorisee_000_2006&Format=imag >> e/png >> >> Is there in this url an encoding issue ? >> >> You can see an example enclosed in the mail. Thanks > > Hi, > > Did you try to convert you mapfile in UTF8 ? > Linux: > iconv -f latin1 -t utf8 -o final.map orginale.map > windows : > iconv -f latin1 -t utf8 < orginale.map > final.map > > Y. -- Sylvain Perrinel Minist?re de l'Agriculture SG/SM/SDSI/CERIT D?partement d'Information G?ographique B.P. 12668 - 31326 Castanet-Tolosan Cedex Tel : 05 61 28 92 76 Web: http://sigsiti.national.agri http://bdnt.national.agri http://georepertoire.national.agri http://sig.geoweb.auzeville.agri From sylvain.perrinel at agriculture.gouv.fr Wed Mar 19 09:09:08 2008 From: sylvain.perrinel at agriculture.gouv.fr (Sylvain Perrinel) Date: Wed, 19 Mar 2008 17:09:08 +0100 Subject: [mapserver-users] Legend and labels Message-ID: <47E13AA4.7040509@agriculture.gouv.fr> Hello I have another question about the labels of the legend. I haven't the same legend if I use TRANSPARENT TRUE or not in the OUTPUTFORMAT block. It seems that the antialising option doesn't work for the legend with Transparent Option. And I want to use transparency for the general map to stack some maps from Mapserver in a document. Here is my Outputformat: OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END and my legend block : LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 2 LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "Vera-sans" MAXSIZE 10 MINSIZE 10 SIZE 10 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END OUTLINECOLOR 0 0 0 POSITION AUTO STATUS ON END You can see an example enclosed in the mail. Thanks again -- Sylvain Perrinel Minist?re de l'Agriculture SG/SM/SDSI/CERIT D?partement d'Information G?ographique B.P. 12668 - 31326 Castanet-Tolosan Cedex Tel : 05 61 28 92 76 Web: http://sigsiti.national.agri http://bdnt.national.agri http://georepertoire.national.agri http://sig.geoweb.auzeville.agri -------------- next part -------------- A non-text attachment was scrubbed... Name: 47e139e9_6041_8.png Type: image/png Size: 8202 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 47e12269_706c_a.png Type: image/png Size: 11659 bytes Desc: not available URL: From bob.b at gritechnologies.com Wed Mar 19 07:56:02 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 19 Mar 2008 09:56:02 -0500 Subject: [mapserver-users] GRID labeling, OK, where are the MapServer GRID guru's?? In-Reply-To: <.68.144.5.189.1205891167.squirrel@68.144.5.189> References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us> <.68.144.5.189.1205891167.squirrel@68.144.5.189> Message-ID: <47E12982.4040306@gritechnologies.com> Brent, Thanks for these notes, exactly the type of stuff we're looking for. I do remember your thread on the graticules BTW. :c) This is also something of interest to me. The big picture plan is to allow a user to ultimately plot/print a USNG encoded map per their specification. There are certainly a lot of other uses for the same sort of labeling (that I can also use). I'm trying to organize the adds to MapServer so they are reuseable, or at least set up things so the different types of labeling are possible with as little additional coding effort as possible. Your method of doing the margins from within the MapFile is an interesting approach. Some general questions to you (and anyone else interested in commenting): * Do you see a need at all to display the grid labels along only two edges, or even in just two axis but just once, along the center of the page for example, both vertically and horizontally. * Do you see a need to have a variable available for setting the outside buffer zone area, in other words, for setting how far in (or possibly out) from the edge of the map, the labels are printed? * Do you see a need to have the GRID displayed as a TICed grid instead of continuous lines, I'm not sure how to actually do this at the moment. Might be a symbol placement sort of thing, with rotation instead of line drawing. This is further down the list for me at this point though. * Lastly, do you see a need for an entirely different approach to some of these labeling/printing aspects, I've been toying with the idea (for a couple of years now) of building a completely separate service that can still be complimentary to MapServer and be programmed against in the same manner from the client side, for templating a print function. The basic idea would be to build a system where there is a layout canvas on the client end, that can use URL resources as print objects, and allows the user to layout where everything goes on a page, which most likely is some sort of template for printing in pre-defined ways. Mapserver would handle all the inclusive map grid line markup, but the real detailed labeling could happen with this separate facility, specifically for printing. In the end, I think this labeling and grid stuff may push me over the edge as far as trying out some stuff of our own. I would imagine that we would start with some of the MapServ code to experiment with. I think our end result might be too heavy to include in mapserv in general. This GRID stuff though, has elements in both the direct mapping as well as Print only aspects. I've thought a lot about what should be considered a dynamic, online navigation tool, vs what should be considered a "print" setup tool. Many pieces cross the line, and that's where it gets murky on how to start. bobb Brent Fraser wrote: > Bob, > > Good on you for pursuing this! While I think the current grid object > satisfies most of mapserver implementors' needs, there is room for > improvement. The ultimate would be a system that can produce reference > system labels like those found on topos (some are very similar to your > NG labels). > > First, I see there is still a typo in mapgraticule.c, line 347 (current > SVN) should be > > dStartY = (pInfo->pboundinglines[0].point[1].y - > pInfo->pboundinglines[0].point[0].y) * dDeltaX + > pInfo->pboundinglines[0].point[0].y; > > (note the last array index value of 0 not 1) > > Second, (from my old notes on experimenting with labeling in v4.3) I > changed 661 thru 682 to: > > switch( ePosition ) > { > case posBottom: > pShape->line->point[1].y = pLayer->map->height; > pShape->line->point[0].y = pLayer->map->height - ( > fabs(rectLabel.maxx - rectLabel.minx) + 15 ); /* rectLabel is based > on non-rotated text (x is along the width of text) */ > break; > > case posTop: > pShape->line->point[1].y = 0; > pShape->line->point[0].y = fabs(rectLabel.maxx - rectLabel.minx) + 15; > break; > > case posLeft: > pShape->line->point[1].x = 0; > pShape->line->point[0].x = fabs(rectLabel.maxx - rectLabel.minx) + 15; > break; > > case posRight: > pShape->line->point[1].x = pLayer->map->width; > pShape->line->point[0].x = pLayer->map->width - ( > fabs(rectLabel.maxx - rectLabel.minx) + 15 ); > break; > } > > > > And regarding labeling "outside" the map, I arranged my map file to draw: > 1. all the usual raster and vector layers > 2. a grid layer > 3. a "margin" layer of blanking polygons (see below) > 4. a grid layer of type annotation so no lines are drawn > > > Here's part of my map file (for version 4.3 so no telling what will happen > with v5.x): > > SIZE 800 600 > : > : > > LAYER > NAME "Margin" > TRANSFORM FALSE > STATUS DEFAULT > TYPE POLYGON > CLASS > COLOR 255 255 255 > END > FEATURE > POINTS 0 0 0 600 70 600 70 0 0 0 END > POINTS 70 0 70 70 800 70 800 0 70 0 END > POINTS 70 600 800 600 800 530 70 530 70 600 END > POINTS 730 70 730 530 800 530 800 70 730 70 END > END > END > > #----------------------------------------------------------- > LAYER > NAME "NeatLine" > TRANSFORM FALSE > STATUS DEFAULT > TYPE LINE > CLASS > COLOR 0 0 0 > END > FEATURE > POINTS 70 70 70 530 730 530 730 70 70 70 END > END > END > > > #----------------------------------------------------------- > LAYER > NAME "GRID" > PROJECTION > "proj=latlong" > # "ellps=sphere" > "datum=WGS84" > END > # TYPE Line > TYPE ANNOTATION > # LABELCACHE off > STATUS DEFAULT > CLASS > COLOR 128 128 128 > # LABEL > # TYPE BITMAP > # SIZE MEDIUM > # COLOR 128 128 89 > # END > LABEL > color 0 0 0 > # COLOR 255 255 0 > # OUTLINECOLOR 0 0 0 > TYPE TRUETYPE > FONT arial #bd > SIZE 12 > POSITION UC # AUTO > ANGLE AUTO > # OFFSET 4 4 > # PARTIALS false > # WRAP " " > END # Label > END > > GRID > LABELFORMAT "DDMM" > # LABELFORMAT "DDMMSS" > # MINSUBDIVIDE 6 > # MAXSUBDIVIDE 6 > # MININTERVAL 1.0 > # MAXINTERVAL 1.0 > # MINARCS 6 > # MAXARCS 6 > END > END > > #----------------------------------------------------------- > > END # MAPFILE > > > But in the end it is somewhat hacky and not perfect. I think some > additional objects and properties are needed. Last year I had a small > rant regarding graticules on the OSGeo mailing list (with no specific > solution reached). Here's one record of it: > > http://www.mail-archive.com/discuss at lists.osgeo.org/msg00935.html > > Keep up the good work! > Brent Fraser > > >> All, >> >> I've (we've) been messing with this GRID object and Labeling while trying >> to get a USNG grid output with labels >> >> The results are meant to look like the left edge of the attached image. >> The other three sides are being repositioned by some semi-known process. >> >> Essentially the labels should be: >> >> First two characters are super-scripted, the next two characters are >> Normal, and the last four are also super-scripted. We've mussed with >> MapServer code and come up with a method for handling the different >> styling via a layer in the MAPFILE, using a LABELFORMAT option of NG1(1st >> 2 chars), NG2 (2nd 2 chars) and NG3 (the last 4 chars). This is set up >> along the lines of the DDMMSS options for LAT/LON. >> >> You can see that there is something wonky about the justification of the >> labels. Right now we have space padding in front of and behind the >> superscripted items, we'll address that separately once we get past this >> label justification thing. >> >> So the question is, what is the sequence of events for a GRID with labels, >> being applied to the result? Where in the Code could/should the >> justifications be eliminated for the GRID writing process (I understand >> that there needs to be a process for aligning along the edges) so that the >> regular Labeling parameters, specifically, the OFFSET param, are adhered >> to. >> >> I've tried all sorts of different combinations of settings to get the >> right output, and I can only seem to get one edge to display properly. >> >> Furthering this output option a little more, anyone done any work with >> labeling along the outside of a map image? I could use an option like >> this for printing for example. >> >> Thanks >> >> bobb >> >> >> The image results are from using this MapFile: >> >> MAP >> NAME 'USNG' >> SIZE 800 650 >> STATUS ON >> ##IMAGECOLOR 254 254 254 >> ##EXTENT 540000 135000 600000 175000 >> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 >> UNITS FEET >> >> FONTSET ./0000_00/MN_Line_Experiments/fonts/font.list >> SYMBOLSET ./0000_00/MN_Line_Experiments/symbols/symbol.list >> >> TRANSPARENT TRUE >> IMAGETYPE PNG >> >> WEB >> IMAGEPATH "/mnt/VECTOR00/output/" >> IMAGEURL "/tmp/" >> END >> >> # EPSG:26915 >> >> LAYER >> NAME "grid" >> TYPE LINE >> STATUS DEFAULT >> CLASS >> NAME "Graticule" >> COLOR 0 0 0 >> SYMBOL 'circle' >> SIZE 1 >> END >> PROJECTION >> "init=epsg:26915" >> END >> GRID >> LABELFORMAT "NG1" >> END >> END >> >> LAYER >> NAME "ng1" >> TYPE LINE >> STATUS DEFAULT >> CLASS >> LABEL >> COLOR 0 0 0 >> FONT mono >> TYPE truetype >> SIZE 6 >> OUTLINECOLOR 255 255 254 >> FORCE true >> POSITION cl >> #OFFSET 0 0 >> END >> END >> PROJECTION >> "init=epsg:26915" >> END >> GRID >> LABELFORMAT "NG1" >> END >> END >> >> LAYER >> NAME "ng2" >> TYPE LINE >> STATUS DEFAULT >> CLASS >> LABEL >> COLOR 0 0 0 >> FONT mono >> TYPE truetype >> SIZE 12 >> OUTLINECOLOR 255 255 254 >> FORCE true >> POSITION cl >> END >> END >> PROJECTION >> "init=epsg:26915" >> END >> GRID >> LABELFORMAT "NG2" >> END >> END >> >> LAYER >> NAME "ng3" >> TYPE LINE >> STATUS DEFAULT >> CLASS >> LABEL >> COLOR 0 0 0 >> FONT mono >> TYPE truetype >> SIZE 6 >> OUTLINECOLOR 255 255 254 >> FORCE true >> #OFFSET 0 0 >> POSITION cl >> END >> END >> PROJECTION >> "init=epsg:26915" >> END >> GRID >> LABELFORMAT "NG3" >> END >> END >> >> >> END ## end Map >> >> _______________________________________________ >> 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 lehrs at erau.edu Wed Mar 19 08:33:27 2008 From: lehrs at erau.edu (Steven Lehr) Date: Wed, 19 Mar 2008 11:33:27 -0400 Subject: [mapserver-users] shp2img ? pass in parameters? Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3135E3A@DBEXVS02.erau.edu> Can I pass in a parameter to shp2img, i.e. I want to pass in parcel number, as in my map file it highlights the parcel number. i.e shp2img -m /tmp/parcel.map -o 1234.jpg -l parcels parcel=1234 Or do I need to write a mapscript script to create images like this. Glancing at the http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img I think I already have my answer, but I thought I might ask first. Anyone got a quick script I can borrow.. Steven Lehr Associate Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lehrs at erau.edu Wed Mar 19 10:13:01 2008 From: lehrs at erau.edu (Steven Lehr) Date: Wed, 19 Mar 2008 13:13:01 -0400 Subject: [mapserver-users] shp2img bug? included map files In-Reply-To: <9D58C43BDFE3F846ADF3A0F8100940B3135E3A@DBEXVS02.erau.edu> References: <9D58C43BDFE3F846ADF3A0F8100940B3135E3A@DBEXVS02.erau.edu> Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3135E3C@DBEXVS02.erau.edu> This software is outstanding, and I appreciate all you guys who support this project. I came across this and did not see anything on the bug page for shp2img and included map files so I'm just forwarding this along. Sorry if this is a known issue or I'm using it incorrectly. shp2img does not look like it follows included map files. I have aerial photography in a separate map file. I tried using a local path, and a full path, though they did not render the aerials INCLUDE "/maps/aerials.map" INCLUDE "aerials.map" INCLUDE "./aerials.map" Though when I moved the aerial layer into my map file, it rendered successfully. MapServer version 5.0.1 Steven Lehr Associate Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steven Lehr Sent: Wednesday, March 19, 2008 11:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shp2img ? pass in parameters? Can I pass in a parameter to shp2img, i.e. I want to pass in parcel number, as in my map file it highlights the parcel number. i.e shp2img -m /tmp/parcel.map -o 1234.jpg -l parcels parcel=1234 Or do I need to write a mapscript script to create images like this. Glancing at the http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img I think I already have my answer, but I thought I might ask first. Anyone got a quick script I can borrow.. Steven Lehr Associate Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed Mar 19 10:23:21 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 19 Mar 2008 11:23:21 -0600 Subject: [mapserver-users] GRID labeling, OK, where are the MapServerGRID guru's?? References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us><.68.144.5.189.1205891167.squirrel@68.144.5.189> <47E12982.4040306@gritechnologies.com> Message-ID: <048701c889e5$f02100f0$140002c0@shark> Bob, See my comments below... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bob Basques" Cc: Sent: Wednesday, March 19, 2008 8:56 AM Subject: Re: [mapserver-users] GRID labeling, OK, where are the MapServerGRID guru's?? > Brent, > > Thanks for these notes, exactly the type of stuff we're looking for. I > do remember your thread on the graticules BTW. :c) This is also > something of interest to me. The big picture plan is to allow a user > to ultimately plot/print a USNG encoded map per their specification. There will be a few speed bumps with using Mapserver: - memory limitation due to mapserver creating at least two copies of the output graphic in memory ( 34in wide x 44in long at 600 dpi is a huge raster!). That may have changed with the adoption of AGG, but I haven't looked into it. - PDF output in mapserver was (still is?) limited to 256 colors - getting properly scaled output required careful calculation of extents/graphics size. - and of course the grid/graticule issues > There are certainly a lot of other uses for the same sort of labeling > (that I can also use). I'm trying to organize the adds to MapServer so > they are reuseable, or at least set up things so the different types of > labeling are possible with as little additional coding effort as possible. That may be tough. It depends on how picky you are on your label placement. If your map will not be rotated (via the ANGLE setting in the map file), and you will only label projected coordinates (not the lat/lon graticule), it might not be too bad. > > Your method of doing the margins from within the MapFile is an > interesting approach. It's a hack, really only useful to encourage enhancement ideas for cartographic grid/grat features. > > Some general questions to you (and anyone else interested in commenting): > > * Do you see a need at all to display the grid labels along only two > edges, or even in just two axis but just once, along the center of the > page for example, both vertically and horizontally. Personally I don't have the need, but it could be useful for others... > > * Do you see a need to have a variable available for setting the outside > buffer zone area, in other words, for setting how far in (or possibly > out) from the edge of the map, the labels are printed? Absolutely! Besides the need to make it visually pleasing, I may want to label the map once with lat/lon labels close to the neat line, then label again with UTM coordinates sightly farther away from the neat line to avoid collision with the lat/lon labels ( or label in the adjacent zone coordinates, etc). And don't get me started on Township/Range labels! > > * Do you see a need to have the GRID displayed as a TICed grid instead > of continuous lines, I'm not sure how to actually do this at the moment. > Might be a symbol placement sort of thing, with rotation instead of line > drawing. This is further down the list for me at this point though. Yes, I'd like to be able to specify tics instead of lines. You could do it by using symbols with a pre-constructed point shapefile. The problem is you have to contruct it prior to having Mapserver generate the output graphic. This is the problem I have with the "just use a shapefile to display a grid/grat" approach. It's ok if your map site has a limited geographic scope, scale range, coord system choice, etc. And it's ok if you are doing "off-line" automated mapping (i.e. not interactive web mapping). > > * Lastly, do you see a need for an entirely different approach to some > of these labeling/printing aspects, I've been toying with the idea (for > a couple of years now) of building a completely separate service that > can still be complimentary to MapServer and be programmed against in the > same manner from the client side, for templating a print function. The > basic idea would be to build a system where there is a layout canvas on > the client end, that can use URL resources as print objects, and allows > the user to layout where everything goes on a page, which most likely is > some sort of template for printing in pre-defined ways. Mapserver would > handle all the inclusive map grid line markup, but the real detailed > labeling could happen with this separate facility, specifically for > printing. > This is the conclusion that Landon Blake and I came to in the thread previously mentioned. If your intent is to do off-line automated mapping then a graphic layout tool (with some mapping smarts) would give you the flexibility and precision needed. A GUI front end with a batch capability would be the ultimate! That being said, I think there is a need (or a least a desire on my part) to improve the grid/grat capabilities in Mapserver, as least a little: 1. Add a MARGIN object to provide a white space around the perimeter (and prevent spurious labels). I'm not clear on how that would affect query results, etc. 2. Improve the label placement calculation, possibly add GAP value to map file (to replace the "15" in my mapgraticule.c) 3. Add other things like tics, expand formatting (e.g. for NG) > In the end, I think this labeling and grid stuff may push me over the > edge as far as trying out some stuff of our own. I would imagine that > we would start with some of the MapServ code to experiment with. I > think our end result might be too heavy to include in mapserv in > general. This GRID stuff though, has elements in both the direct > mapping as well as Print only aspects. I would look to including some/most of the grid/grat functionality in Mapserver at first. Code it with a eye to using it as well in a separate plugin later (this may not be possible without code revisions). As you've described, the grid/grat stuff is really only a (necessary) subset of a layout tool/system (a far bigger problem). > > I've thought a lot about what should be considered a dynamic, online > navigation tool, vs what should be considered a "print" setup tool. > Many pieces cross the line, and that's where it gets murky on how to start. Mapserver isn't a GIS; it also isn't an automated mapping application. It does have some functions of both those things, and is closer to automated mapping, so I'd start there (but not end there!). Brent From jdoyon at NRCan.gc.ca Wed Mar 19 10:40:10 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 19 Mar 2008 13:40:10 -0400 Subject: [mapserver-users] Setting expression through URL with MS 5 Message-ID: Hello, I'm trying to migrate a MapServer 4 app to MapServer 5, which means dealing with the changes in URL syntax for the on-the-fly mapfile changes. One thing I did was set an expression from the URL. Now I can't seem to get it to work :( A URL fragment like this: &map.layer[layername].class[0]=EXPRESSION%20something Gives me: loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1) The layername definitely exists, and the class is already declared (with a "fake" expression as a place holder). I've tried removing the placeholder expression and also tried using: &map.layer[0]=DATA shapefile CLASS EXPRESSION something END (properly url encoded, as you can see I also set the DATA on the fly) And then I get a parsing error on CLASS! Help, what am I missing? Thanks, Jean-Fran?ois Doyon Applications Development Solutions | Solutions de d?veloppement d'applications IT Support Services | Services de support TI Information Technology Services | Services de la technologie d'information Shared Services Office | Bureau des services partag?s Corporate Management and Services Sector | Secteur de la gestion et des services int?gr?s Natural Resources Canada | Ressources naturelles Canada Ottawa, Canada K1A 0E9 jdoyon at nrcan-rncan.gc.ca Telephone | T?l?phone 613-992-4902 Facsimile | T?l?copieur 613-995-3252 Teletypewriter | T?l?imprimeur 613-996-4397 Government of Canada | Gouvernement du Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at dmsolutions.ca Wed Mar 19 10:26:29 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 19 Mar 2008 13:26:29 -0400 Subject: [mapserver-users] shp2img bug? included map files In-Reply-To: <9D58C43BDFE3F846ADF3A0F8100940B3135E3C@DBEXVS02.erau.edu> References: <9D58C43BDFE3F846ADF3A0F8100940B3135E3A@DBEXVS02.erau.edu> <9D58C43BDFE3F846ADF3A0F8100940B3135E3C@DBEXVS02.erau.edu> Message-ID: <47E14CC5.4010308@dmsolutions.ca> I have no problems using shp2img and including hundreds of files (with MapServer 5.0.2). I store all layers in ".lay" files, and then my master mapfile might look like this (where 'layers' is a folder in the same directory as the master mapfile): INCLUDE "./layers/base/bathymetry.lay" INCLUDE "./layers/base/canada_land.lay" What is your error with shp2img? -jeff Steven Lehr wrote: > This software is outstanding, and I appreciate all you guys who support > this project. I came across this and did not see anything on the bug > page for shp2img and included map files so I'm just forwarding this > along. Sorry if this is a known issue or I'm using it incorrectly. > > shp2img does not look like it follows included map files. > > I have aerial photography in a separate map file. > > I tried using a local path, and a full path, though they did not render > the aerials > INCLUDE "/maps/aerials.map" > INCLUDE "aerials.map" > INCLUDE "./aerials.map" > > Though when I moved the aerial layer into my map file, it rendered > successfully. > > MapServer version 5.0.1 > From dmorissette at mapgears.com Wed Mar 19 11:51:09 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 19 Mar 2008 14:51:09 -0400 Subject: [mapserver-users] Setting expression through URL with MS 5 In-Reply-To: References: Message-ID: <47E1609D.3030608@mapgears.com> Doyon, Jean-Francois wrote: > Hello, > > I'm trying to migrate a MapServer 4 app to MapServer 5, which means > dealing with the changes in URL syntax for the on-the-fly mapfile changes. > > One thing I did was set an expression from the URL. Now I can't seem to > get it to work :( > You'll have to use %variable% replacements in your expressions with MapServer 5. For the whole story, see http://www.nabble.com/mapserver-5-expression-td12386097.html#a12414895 Daniel -- Daniel Morissette http://www.mapgears.com/ From jayzee.smith at gmail.com Wed Mar 19 13:41:45 2008 From: jayzee.smith at gmail.com (John Smith) Date: Wed, 19 Mar 2008 16:41:45 -0400 Subject: [mapserver-users] [UMN_MAPSERVER-USERS] how many floating-points must a server hardware support for mapserver installation? Message-ID: guys, how many floating-points must a server hardware support for mapserver installation? does mapserver, postgresql or postgis do much floating-point math to make a difference? thks, jzs From abe.gillespie.lists at gmail.com Wed Mar 19 21:32:33 2008 From: abe.gillespie.lists at gmail.com (Abram Gillespie) Date: Thu, 20 Mar 2008 00:32:33 -0400 Subject: [mapserver-users] Running with MrSID (not scissors) Message-ID: <283a65ca0803192132v3d4442acr216229f14692169d@mail.gmail.com> Hi All, Searched my archives and found a few references to MrSID ... mostly that people are getting it to work. However, is there an explicit how-to for getting MrSID going? Namely, how to compile GDAL with the support. Also, are there any licensing requirements? Thanks for the help! -Abe From jeshua at OpenOSX.com Wed Mar 19 21:37:32 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Wed, 19 Mar 2008 22:37:32 -0600 Subject: [mapserver-users] Running with MrSID (not scissors) In-Reply-To: <283a65ca0803192132v3d4442acr216229f14692169d@mail.gmail.com> References: <283a65ca0803192132v3d4442acr216229f14692169d@mail.gmail.com> Message-ID: On Mar 19, 2008, at 10:32 PM, Abram Gillespie wrote: > Searched my archives and found a few references to MrSID ... mostly > that people are getting it to work. However, is there an explicit > how-to for getting MrSID going? Namely, how to compile GDAL with the > support. Also, are there any licensing requirements? Hello, It might be good to share for what platform... I suspect that the GDAL list would be a more appropriate place to inquire about GDAL support. Best, Jeshua Lacock, Owner phone: 877.240.1364 From gregor at hostgis.com Wed Mar 19 21:49:29 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 19 Mar 2008 22:49:29 -0600 Subject: [mapserver-users] Running with MrSID (not scissors) In-Reply-To: References: <283a65ca0803192132v3d4442acr216229f14692169d@mail.gmail.com> Message-ID: <47E1ECD9.7090401@hostgis.com> Jeshua Lacock wrote: > It might be good to share for what platform... M hm. One item of note, is that the Linux version of the SDK is for 32-bit only, and will not work in 64-bit environments. Most sad. LizardTech doesn't even have immediate plans for the next version, only the idea that it will support 64-bit. Sigh. > I suspect that the GDAL list would be a more appropriate place to > inquire about GDAL support. Indeed. I can provide a few pointers right here, though, before you take it to the other list. :) 1. First you need to install the MrSID SDk, from LizardTech's downloads area. After that, when you run configure, use --help and look for the --with-mrsid option. 2. I have found the runtime performance of wavelet-compressed images (ECW, JPEG2000, MrSID) to be unacceptable for my needs. Your mileage may vary, but you may want to save yourself some trouble by fetching mrsiddecode and extracting it to TIFFs. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From flavio at tydac.ch Wed Mar 19 23:10:58 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 20 Mar 2008 07:10:58 +0100 Subject: [mapserver-users] Is there a mapfile for NAVSTREETS-dataset available ? In-Reply-To: <8d2ea9d70803190144w55f11f30o316ae6dc0c37592a@mail.gmail.com> References: <8d2ea9d70803190144w55f11f30o316ae6dc0c37592a@mail.gmail.com> Message-ID: Hi Steven There was this (suppose could be adapted): ************ A new version of the Googlish MapFile is available for Download. It's essentially the same as the previous version, but has the completed thresholding (as far as the local dataset allows for anyway). Some more comments added throughout as well. http://www.geomoose.org/moose/download/mapfiles-for-mapserver ************ Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- -----Original Message----- From: "Steven De Vriendt" To: mapserver-users at lists.osgeo.org Date: Wed, 19 Mar 2008 09:44:11 +0100 Subject: [mapserver-users] Is there a mapfile for NAVSTREETS-dataset available ? > Hi, > > I wonder if someone has a mapfile for the NAVSTREETS-dataset of > Navteq. > Before I start making one, I turn to you guys. If there's no > reaction, I'll try > to make a 'generic' mapfile. Think that would come in handy as it > is a frequently used dataset, as is the TeleAtlas MultiNet-product... > > Thanks > Steven > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivan.mincik at gmail.com Thu Mar 20 01:16:26 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 20 Mar 2008 09:16:26 +0100 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <988303.94557.qm@web63005.mail.re1.yahoo.com> <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> Message-ID: <200803200916.27074.ivan.mincik@gmail.com> I have applied new patch ms_postgis_fix_trans_state.diff to mapserver-5.0.2 sources from debian unstable and recompiled. Then I have: 1. restarted apache 2. restarted postgresql-8.1 3. restarted browser (deleted cache) And started this test with p.mapper 3.2 application: 1. Browsing the map (moving, zooming out, zooming in, adding some more layers) 2. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 immediately 3. Browsing the map (moving, zooming out, zooming in) 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 immediately Result: With this patch it is not possible to do neither a singel object query. (with older patch it was possible few times). After "ERROR: cursor "mycursor2" does not exist" it is possible to continue browsing the map again and object query fill finish with same result as above. log is here: http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log Thanks a lot for help Ivan On Wednesday 19 March 2008 23:32, you wrote: > On Wed, Mar 19, 2008 at 3:19 PM, No Spam wrote: > > --- Dave Fuhry wrote: > > > I think the correct way to solve the problem would be to first, get > > > rid of the "ROLLBACK" statements in msPOSTGISLayerGetShape. Then, in > > > msPOSTGISLayerClose, call msConPoolRelease() on the connection only > > > if PQtransactionStatus(layerinfo->conn) == PQTRANS_INTRANS (meaning, > > > the connection is valid and inside a transaction block). > > > > > > This would also solve the problem that lots of error blocks in the > > > code call PQreset(layerinfo->conn). That resets the connection but > > > does not call begin a new transaction. So when that connection was > > > pulled back out of the pool, "DECLARE CURSOR ..." statements would > > > fail. > > > > Do you have any gut feel for the stability of the current code, and when > > it is or is not a problem? Does the problem only manifest itself if one > > calls the functions: {map,layer}Obj_queryBy{Point,Rect,etc.} ? > > > > I do need the patch from bug 2497 because it solves other problems that > > I was experiencing. And I haven't experienced any problems as a result > > of the patch. Nevertheless, I'm trying to decide if I've just been > > lucky, or if I'm safe as long as I don't call those functions (I don't). > > > > Thanks. > > - Rich > > Rich, > > I don't have any insight into the problems you experienced with the > mapserver process segfaulting. I haven't seen any obvious reason why > the older code would have caused that. > > Also Ivan: I've attached a patch which resolves invalid transaction > state in a more comprehensive manner. A new local function > msPOSTGISInitConnection takes the reset / ROLLBACK / BEGIN steps > necessary to fix an unusable connection. Calls to PQreset() in the > current code have been replaced with calls to this function, so that a > failing query won't put a broken or non-transactional connection back > into the connection pool. > > It is only lightly tested, but if there are no bugs, it should fix > all of the currently known problems. > > Thanks, > > Dave Fuhry From jdoyon at NRCan.gc.ca Thu Mar 20 05:41:50 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 20 Mar 2008 08:41:50 -0400 Subject: [mapserver-users] Setting expression through URL with MS 5 In-Reply-To: <47E1609D.3030608@mapgears.com> References: <47E1609D.3030608@mapgears.com> Message-ID: Fantastic, thanks. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: March 19, 2008 14:51 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Setting expression through URL with MS 5 Doyon, Jean-Francois wrote: > Hello, > > I'm trying to migrate a MapServer 4 app to MapServer 5, which means > dealing with the changes in URL syntax for the on-the-fly mapfile changes. > > One thing I did was set an expression from the URL. Now I can't seem > to get it to work :( > You'll have to use %variable% replacements in your expressions with MapServer 5. For the whole story, see http://www.nabble.com/mapserver-5-expression-td12386097.html#a12414895 Daniel -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Thu Mar 20 09:09:33 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 20 Mar 2008 12:09:33 -0400 Subject: [mapserver-users] Volunteer for Mapserver mailing list "owner" Message-ID: <47E28C3D.2090704@pobox.com> Folks, In the transition of the mapserver mailing lists to OSGeo it appears I made myself "owner". I'm finding already that this is a fairly demanding role for such a popular set of lists, but there is no special reason it needs to be me. I'm interested in a volunteer to take on this role. I would provide admin access to the lists via the web interface, and the owner would need to respond to human emails to the -owner alias. Typically the tasks are like: 1) I have unsubscribed, but I keep getting email. Why? The answer is usually that someone else left your company and his email is being forwarded to you. Diagnosis approach, search the members list for this persons address, and variations (like from the same domain). Suggest they review the headers very carefully to see what address the email was originally send to. 2) I don't know how to unsubscribe because I'm too lame/busy/unlucky to use the web interface and email confirmation mechanism. Action: manually unsubscribe them via the admin interface. 3) Why won't my email go through on the list? Diagnosis: Are they sending it with the same address they subscribed as? Likely not, though they may not realize it. Check where their complaint email comes from and check if *that* address is subscribed. 4) My posts to nabble don't work! Diagnosis: Not my problem - or much better perhaps whoever takes over could work this out and take on responsibility for the nabble interface to our lists. As overall lists.osgeo.org admin I would remain available to backup whoever takes this task. If I sound cynical about people - it is because I only see them at their worst in this role. :-) It is helpful if the volunteer has a deep well of good will in the face of laziness, rudeness and cluelessness. Keep in mind these folks are often well intentioned, but just not to familiar with mailing list issues and a pleasant human response can substantially improve their feelings about mapserver. I would stress this is a great task for a non-developer! It is a way to contribute even if you feel a bit out of your depth helping with other more complicated aspects of the project. Please contact me directly, off list if you are interested. If you can't manage to reply offlist I may deduce you too are email-clueless. :-) /me works to push cynical negativism back down into the closet. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at pobox.com Thu Mar 20 10:28:12 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 20 Mar 2008 13:28:12 -0400 Subject: [mapserver-users] Volunteer for Mapserver mailing list "owner" In-Reply-To: References: Message-ID: <47E29EAC.2000305@pobox.com> Folks, Bart van den Eijnden and Milo van der Linden have kindly volunteered for this task. I'll work with them on it. Now I'm wondering if there is some special affinity between folks with Dutch names and mailing list administration! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ivan.mincik at gmail.com Thu Mar 20 11:14:40 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 20 Mar 2008 19:14:40 +0100 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <988303.94557.qm@web63005.mail.re1.yahoo.com> <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> Message-ID: <200803201914.40849.ivan.mincik@gmail.com> I want to add to my report about a testing ms_postgis_fix_trans_state.diff with p.mapper that {map,layer}Obj_queryBy{Point,Rect,etc.} function is not working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. So identify object is not working at all. Ivan On Wednesday 19 March 2008 23:32, you wrote: > On Wed, Mar 19, 2008 at 3:19 PM, No Spam wrote: > > --- Dave Fuhry wrote: > > > I think the correct way to solve the problem would be to first, get > > > rid of the "ROLLBACK" statements in msPOSTGISLayerGetShape. Then, in > > > msPOSTGISLayerClose, call msConPoolRelease() on the connection only > > > if PQtransactionStatus(layerinfo->conn) == PQTRANS_INTRANS (meaning, > > > the connection is valid and inside a transaction block). > > > > > > This would also solve the problem that lots of error blocks in the > > > code call PQreset(layerinfo->conn). That resets the connection but > > > does not call begin a new transaction. So when that connection was > > > pulled back out of the pool, "DECLARE CURSOR ..." statements would > > > fail. > > > > Do you have any gut feel for the stability of the current code, and when > > it is or is not a problem? Does the problem only manifest itself if one > > calls the functions: {map,layer}Obj_queryBy{Point,Rect,etc.} ? > > > > I do need the patch from bug 2497 because it solves other problems that > > I was experiencing. And I haven't experienced any problems as a result > > of the patch. Nevertheless, I'm trying to decide if I've just been > > lucky, or if I'm safe as long as I don't call those functions (I don't). > > > > Thanks. > > - Rich > > Rich, > > I don't have any insight into the problems you experienced with the > mapserver process segfaulting. I haven't seen any obvious reason why > the older code would have caused that. > > Also Ivan: I've attached a patch which resolves invalid transaction > state in a more comprehensive manner. A new local function > msPOSTGISInitConnection takes the reset / ROLLBACK / BEGIN steps > necessary to fix an unusable connection. Calls to PQreset() in the > current code have been replaced with calls to this function, so that a > failing query won't put a broken or non-transactional connection back > into the connection pool. > > It is only lightly tested, but if there are no bugs, it should fix > all of the currently known problems. > > Thanks, > > Dave Fuhry From abe.gillespie.lists at gmail.com Thu Mar 20 11:58:09 2008 From: abe.gillespie.lists at gmail.com (Abram Gillespie) Date: Thu, 20 Mar 2008 14:58:09 -0400 Subject: [mapserver-users] Running with MrSID (not scissors) In-Reply-To: <47E1ECD9.7090401@hostgis.com> References: <283a65ca0803192132v3d4442acr216229f14692169d@mail.gmail.com> <47E1ECD9.7090401@hostgis.com> Message-ID: <283a65ca0803201158m5790a81ak565bb6dea7fb2b14@mail.gmail.com> The performance issue is good enough to convince me to stick with TIFFs. It's cheaper just to buy the space. BTW - for completeness, the server runs Win2003 server. Thanks! -Abe On Thu, Mar 20, 2008 at 12:49 AM, Gregor Mosheh wrote: > Jeshua Lacock wrote: > > It might be good to share for what platform... > > M hm. One item of note, is that the Linux version of the SDK is for > 32-bit only, and will not work in 64-bit environments. Most sad. > LizardTech doesn't even have immediate plans for the next version, only > the idea that it will support 64-bit. Sigh. > > > > > I suspect that the GDAL list would be a more appropriate place to > > inquire about GDAL support. > > Indeed. I can provide a few pointers right here, though, before you take > it to the other list. :) > > 1. First you need to install the MrSID SDk, from LizardTech's downloads > area. After that, when you run configure, use --help and look for the > --with-mrsid option. > > 2. I have found the runtime performance of wavelet-compressed images > (ECW, JPEG2000, MrSID) to be unacceptable for my needs. Your mileage may > vary, but you may want to save yourself some trouble by fetching > mrsiddecode and extracting it to TIFFs. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From dfuhry at gmail.com Thu Mar 20 15:06:45 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Thu, 20 Mar 2008 18:06:45 -0400 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803201914.40849.ivan.mincik@gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <988303.94557.qm@web63005.mail.re1.yahoo.com> <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> <200803201914.40849.ivan.mincik@gmail.com> Message-ID: <90699a8d0803201506m1a343e38pd7eabf80f4b6f5db@mail.gmail.com> Ivan, I figured out why my examples were not triggering your problem: I was calling $layer->getResult() but not $layer->getShape(). getShape() calls msPOSTGISLayerWhichShapes which contains the "mycursor2" code. I'm looking at it. In the meantime, your log appears confusing, because it doesn't show the failing SQL statement which caused the mycursor2 error. I think my suggestion to use the "log_min_duration_statement = 0" in postgresql.conf was a bad one. Instead, comment that back out and try the log_statement parameter. Set it to "log_statement = 'all'". That should cause the log to show failed statements, too. So your "ERROR: cursor "mycursor2" does not exist" lines will be preceded by the SQL which caused them (obviously helpful). I'll see if I can send an updated patch pretty soon. Thanks, Dave On Thu, Mar 20, 2008 at 2:14 PM, Ivan Mincik wrote: > I want to add to my report about a testing ms_postgis_fix_trans_state.diff > with p.mapper that {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. > So identify object is not working at all. > > Ivan > > > On Wednesday 19 March 2008 23:32, you wrote: > > > > On Wed, Mar 19, 2008 at 3:19 PM, No Spam wrote: > > > --- Dave Fuhry wrote: > > > > I think the correct way to solve the problem would be to first, get > > > > rid of the "ROLLBACK" statements in msPOSTGISLayerGetShape. Then, in > > > > msPOSTGISLayerClose, call msConPoolRelease() on the connection only > > > > if PQtransactionStatus(layerinfo->conn) == PQTRANS_INTRANS (meaning, > > > > the connection is valid and inside a transaction block). > > > > > > > > This would also solve the problem that lots of error blocks in the > > > > code call PQreset(layerinfo->conn). That resets the connection but > > > > does not call begin a new transaction. So when that connection was > > > > pulled back out of the pool, "DECLARE CURSOR ..." statements would > > > > fail. > > > > > > Do you have any gut feel for the stability of the current code, and when > > > it is or is not a problem? Does the problem only manifest itself if one > > > calls the functions: {map,layer}Obj_queryBy{Point,Rect,etc.} ? > > > > > > I do need the patch from bug 2497 because it solves other problems that > > > I was experiencing. And I haven't experienced any problems as a result > > > of the patch. Nevertheless, I'm trying to decide if I've just been > > > lucky, or if I'm safe as long as I don't call those functions (I don't). > > > > > > Thanks. > > > - Rich > > > > Rich, > > > > I don't have any insight into the problems you experienced with the > > mapserver process segfaulting. I haven't seen any obvious reason why > > the older code would have caused that. > > > > Also Ivan: I've attached a patch which resolves invalid transaction > > state in a more comprehensive manner. A new local function > > msPOSTGISInitConnection takes the reset / ROLLBACK / BEGIN steps > > necessary to fix an unusable connection. Calls to PQreset() in the > > current code have been replaced with calls to this function, so that a > > failing query won't put a broken or non-transactional connection back > > into the connection pool. > > > > It is only lightly tested, but if there are no bugs, it should fix > > all of the currently known problems. > > > > Thanks, > > > > Dave Fuhry > From dfuhry at gmail.com Thu Mar 20 15:46:32 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Thu, 20 Mar 2008 18:46:32 -0400 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803201506m1a343e38pd7eabf80f4b6f5db@mail.gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <988303.94557.qm@web63005.mail.re1.yahoo.com> <90699a8d0803191532t14959618h98a1c7a1991700e2@mail.gmail.com> <200803201914.40849.ivan.mincik@gmail.com> <90699a8d0803201506m1a343e38pd7eabf80f4b6f5db@mail.gmail.com> Message-ID: <90699a8d0803201546k653ab19exd38812dc36ee0611@mail.gmail.com> Ivan, Try the new version of the patch, just posted. I had accidentally removed a necessary query in msPOSTGISLayerGetShape. My tests which now include getShape() are working (with or without PROCESSING "CLOSE_CONNECTION=DEFER"). Don't forget to copy the new php_mapscript.so into your apache modules directory after rebuilding, too. Best to delete it before building, so you're sure it regenerated. By the way, your earlier log showed that the new msPOSTGISInitConnection function seems to be working correctly. New connections are initialized with just one BEGIN, and ROLLBACKs are followed by BEGINs. Good to see that; the "transaction already in progress" warnings should be gone for good. Thanks, Dave On Thu, Mar 20, 2008 at 6:06 PM, Dave Fuhry wrote: > Ivan, > > I figured out why my examples were not triggering your problem: I > was calling $layer->getResult() but not $layer->getShape(). > getShape() calls msPOSTGISLayerWhichShapes which contains the > "mycursor2" code. I'm looking at it. > > In the meantime, your log appears confusing, because it doesn't > show the failing SQL statement which caused the mycursor2 error. I > think my suggestion to use the "log_min_duration_statement = 0" in > postgresql.conf was a bad one. Instead, comment that back out and try > the log_statement parameter. Set it to "log_statement = 'all'". That > should cause the log to show failed statements, too. So your "ERROR: > cursor "mycursor2" does not exist" lines will be preceded by the SQL > which caused them (obviously helpful). > > I'll see if I can send an updated patch pretty soon. > > Thanks, > > Dave > > > > On Thu, Mar 20, 2008 at 2:14 PM, Ivan Mincik wrote: > > I want to add to my report about a testing ms_postgis_fix_trans_state.diff > > with p.mapper that {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. > > So identify object is not working at all. > > > > Ivan > > > > > > On Wednesday 19 March 2008 23:32, you wrote: > > > > > > > On Wed, Mar 19, 2008 at 3:19 PM, No Spam wrote: > > > > --- Dave Fuhry wrote: > > > > > I think the correct way to solve the problem would be to first, get > > > > > rid of the "ROLLBACK" statements in msPOSTGISLayerGetShape. Then, in > > > > > msPOSTGISLayerClose, call msConPoolRelease() on the connection only > > > > > if PQtransactionStatus(layerinfo->conn) == PQTRANS_INTRANS (meaning, > > > > > the connection is valid and inside a transaction block). > > > > > > > > > > This would also solve the problem that lots of error blocks in the > > > > > code call PQreset(layerinfo->conn). That resets the connection but > > > > > does not call begin a new transaction. So when that connection was > > > > > pulled back out of the pool, "DECLARE CURSOR ..." statements would > > > > > fail. > > > > > > > > Do you have any gut feel for the stability of the current code, and when > > > > it is or is not a problem? Does the problem only manifest itself if one > > > > calls the functions: {map,layer}Obj_queryBy{Point,Rect,etc.} ? > > > > > > > > I do need the patch from bug 2497 because it solves other problems that > > > > I was experiencing. And I haven't experienced any problems as a result > > > > of the patch. Nevertheless, I'm trying to decide if I've just been > > > > lucky, or if I'm safe as long as I don't call those functions (I don't). > > > > > > > > Thanks. > > > > - Rich > > > > > > Rich, > > > > > > I don't have any insight into the problems you experienced with the > > > mapserver process segfaulting. I haven't seen any obvious reason why > > > the older code would have caused that. > > > > > > Also Ivan: I've attached a patch which resolves invalid transaction > > > state in a more comprehensive manner. A new local function > > > msPOSTGISInitConnection takes the reset / ROLLBACK / BEGIN steps > > > necessary to fix an unusable connection. Calls to PQreset() in the > > > current code have been replaced with calls to this function, so that a > > > failing query won't put a broken or non-transactional connection back > > > into the connection pool. > > > > > > It is only lightly tested, but if there are no bugs, it should fix > > > all of the currently known problems. > > > > > > Thanks, > > > > > > Dave Fuhry > > > From luca.casagrande at gmail.com Thu Mar 20 16:52:31 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Fri, 21 Mar 2008 00:52:31 +0100 Subject: [mapserver-users] Mapfile for getFeatureInfo Message-ID: <200803210052.31931.luca.casagrande@gmail.com> Hello everybody, after configuring a mapfile for WMS serving, I am trying to add the getFeatureInfo option but it's not working. According to doc, it's enough adding DUMP true and gml_include_items. I made some test with Qgis, but the query is not working What am I missing? Can be an issue with postgis/schema? Thanks for your help Luca This is the mapfile: MAP NAME test UNITS meters SIZE 800 600 RESOLUTION 96 IMAGETYPE png IMAGECOLOR 255 255 255 IMAGEQUALITY 95 TRANSPARENT ON PROJECTION "init=epsg:23033" END EXTENT 138667 4624862 452902 4852896 SYMBOL NAME "quadrato" TYPE VECTOR POINTS 0 0 1 0 1 1 0 1 0 0 END FILLED TRUE END WEB METADATA "wms_title" "Demo server" "wms_onlineresource" "http://localhost/cgi-bin/wms" "wms_srs" "EPSG:23033" "wms_abstract" "Test Server" END END ###Sezione formati di output### OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF END LAYER NAME stations TYPE POINT GROUP stazioni CONNECTIONTYPE postgis CONNECTION 'host=localhost user=postgres dbname=test password=postgres' DATA 'the_geom FROM manis.stations' TEMPLATE foo PROJECTION "init=epsg:23033" END DUMP TRUE STATUS ON METADATA "wms_extent" "138667 4624862 452902 4852896" "wms_title" "stazioni" "gml_include_items" "all" END CLASS STYLE SYMBOL quadrato OUTLINECOLOR 0 0 0 COLOR 255 0 0 SIZE 15 END END END END From guillaume.sueur at neogeo-online.net Thu Mar 20 17:09:13 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 21 Mar 2008 01:09:13 +0100 Subject: [mapserver-users] Mapfile for getFeatureInfo In-Reply-To: <200803210052.31931.luca.casagrande@gmail.com> References: <200803210052.31931.luca.casagrande@gmail.com> Message-ID: <47E2FCA9.5060007@neogeo-online.net> Hi, maybe try "wms_include_items" "all" too. hope that helps guillaume Luca Casagrande a ?crit : > Hello everybody, > > after configuring a mapfile for WMS serving, I am trying to add the > getFeatureInfo option but it's not working. According to doc, it's enough > adding DUMP true and gml_include_items. I made some test with Qgis, but > the query is not working > > What am I missing? Can be an issue with postgis/schema? > > Thanks for your help > Luca > > This is the mapfile: > > MAP > NAME test > UNITS meters > SIZE 800 600 > RESOLUTION 96 > IMAGETYPE png > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > TRANSPARENT ON > PROJECTION > "init=epsg:23033" > END > > EXTENT 138667 4624862 452902 4852896 > > SYMBOL > NAME "quadrato" > TYPE VECTOR > POINTS > 0 0 > 1 0 > 1 1 > 0 1 > 0 0 > END > FILLED TRUE > END > > WEB > METADATA > "wms_title" "Demo server" > "wms_onlineresource" "http://localhost/cgi-bin/wms" > "wms_srs" "EPSG:23033" > "wms_abstract" "Test Server" > END > END > > ###Sezione formati di output### > > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > #IMAGEMODE PC256 > EXTENSION 'jpeg' > END > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > FORMATOPTION INTERLACE=OFF > END > > > LAYER > NAME stations > TYPE POINT > GROUP stazioni > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=test password=postgres' > DATA 'the_geom FROM manis.stations' > TEMPLATE foo > PROJECTION > "init=epsg:23033" > END > DUMP TRUE > STATUS ON > METADATA > "wms_extent" "138667 4624862 452902 4852896" > "wms_title" "stazioni" > "gml_include_items" "all" > END > CLASS > STYLE > SYMBOL quadrato > OUTLINECOLOR 0 0 0 > COLOR 255 0 0 > SIZE 15 > END > END > END > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org From pcreso at pcreso.com Thu Mar 20 19:46:49 2008 From: pcreso at pcreso.com (Brent Wood) Date: Thu, 20 Mar 2008 19:46:49 -0700 (PDT) Subject: [mapserver-users] Linux installation In-Reply-To: <008d01c87f99$d0612390$6501a8c0@signo3> Message-ID: <521485.15376.qm@web33207.mail.mud.yahoo.com> > > > > Until now I was using mapserver only under Windows environments but now > > I need to change to a Linux platform. > > > > My knowledge about Linux is very limited, so I will need some help: > > > > > > > > Is there any distribution recommended in order to run mapserver over it?? > > > > Is there any tutorial or manual explaining how to install mapserver 5 > > w/postgis over Linux?? I suggest you look at these books: Web Mapping Illustrated: Using Open Source GIS Toolkits by Tyler Mitchell Beginning MapServer: Open Source GIS Development by Bill Kropla I have found them largely complimentary & very useful. Also, if you look at OpenSuse as your Linux distro, there is a repository which now includes mapserver, including java & php mapscript, as well as a pretty good selection of FOSS GIS tools. See:http://download.opensuse.org/repositories/Application:/Geo/ Cheers, Brent Wood From luca.casagrande at gmail.com Fri Mar 21 01:10:53 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Fri, 21 Mar 2008 09:10:53 +0100 Subject: [mapserver-users] Mapfile for getFeatureInfo In-Reply-To: <47E36B87.8030102@zeelandnet.nl> References: <200803210052.31931.luca.casagrande@gmail.com> <47E36B87.8030102@zeelandnet.nl> Message-ID: <200803210910.53594.luca.casagrande@gmail.com> Hi Milo, On Friday 21 March 2008 09:02:15 Milo van der Linden wrote: > The problem is with: > > DATA 'the_geom FROM manis.stations' > > it has to be something like: > > DATA 'the_geom from (select > station_id,param1,param2,param3,param4,the_geom from manis.stations) as > stats using unique station_id using SRID=4326' > > You have to explicitly address the fields you want to be available in > your DATA statement. Thank you very much, this worked like a charm ! Bye Luca From frequens at gmail.com Fri Mar 21 01:26:41 2008 From: frequens at gmail.com (frequens) Date: Fri, 21 Mar 2008 09:26:41 +0100 Subject: [mapserver-users] Minscale in web section not working? php/mapscript Message-ID: <2482247e0803210126gc733a5i2ed1de606e01615d@mail.gmail.com> Is anyone successfully using the MINSCALE seting in WEB section of the mapfile in phpmapscript (5.02). I can not get it to work, while the same seting for the LAYER level works just fine... BR frequens From mlinden at zeelandnet.nl Fri Mar 21 01:02:15 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 21 Mar 2008 09:02:15 +0100 Subject: [mapserver-users] Mapfile for getFeatureInfo In-Reply-To: <200803210052.31931.luca.casagrande@gmail.com> References: <200803210052.31931.luca.casagrande@gmail.com> Message-ID: <47E36B87.8030102@zeelandnet.nl> The problem is with: DATA 'the_geom FROM manis.stations' it has to be something like: DATA 'the_geom from (select station_id,param1,param2,param3,param4,the_geom from manis.stations) as stats using unique station_id using SRID=4326' You have to explicitly address the fields you want to be available in your DATA statement. Kind regards, Milo From ivan.mincik at gmail.com Fri Mar 21 01:59:24 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Fri, 21 Mar 2008 09:59:24 +0100 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803201546k653ab19exd38812dc36ee0611@mail.gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <90699a8d0803201506m1a343e38pd7eabf80f4b6f5db@mail.gmail.com> <90699a8d0803201546k653ab19exd38812dc36ee0611@mail.gmail.com> Message-ID: <200803210959.24486.ivan.mincik@gmail.com> On Thursday 20 March 2008 23:46, you wrote: > Ivan, > > Try the new version of the patch, just posted. I had accidentally > removed a necessary query in msPOSTGISLayerGetShape. My tests which > now include getShape() are working (with or without PROCESSING > "CLOSE_CONNECTION=DEFER"). Hi Dave, I have allready tried patch ms_postgis_fix_trans_state.diff and I have posted the report. Or is there any updated version of ms_postgis_fix_trans_state.diff? I am sure that I have updated php_mapscript.so. ************************************************************ For sure I include my report of testing ms_postgis_fix_trans_state.diff: I have applied new patch ms_postgis_fix_trans_state.diff to mapserver-5.0.2 sources from debian unstable and recompiled new debian package and install. Then I have: 1. restarted apache 2. restarted postgresql-8.1 3. restarted browser (deleted cache) And started this test with p.mapper 3.2 application: 1. Browsing the map (moving, zooming out, zooming in, adding some more layers) 2. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 immediately 3. Browsing the map (moving, zooming out, zooming in) 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 immediately Result: With this patch it is not possible to do neither a singel object query. (with older patch it was possible few times). After "ERROR: cursor "mycursor2" does not exist" it is possible to continue browsing the map again and object query fill finish with same result as above. {map,layer}Obj_queryBy{Point,Rect,etc.} function is not working ? also when ?#PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. So identify object is not working at all. log is here: http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log From boommonge at gmail.com Fri Mar 21 03:25:17 2008 From: boommonge at gmail.com (LMonge) Date: Fri, 21 Mar 2008 03:25:17 -0700 Subject: [mapserver-users] Operation mapserv.exe Message-ID: <390b64100803210325t6fec8885t929b22defaba2b70@mail.gmail.com> Hello Everybody I have some doubt about of operation Mapserver, especifically in the mapserv.exe ?what's happens internally in mapserv.exe? Can I modify the code of mapserv.exe? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Mar 21 04:30:53 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 21 Mar 2008 07:30:53 -0400 Subject: [mapserver-users] Operation mapserv.exe In-Reply-To: <390b64100803210325t6fec8885t929b22defaba2b70@mail.gmail.com> References: <390b64100803210325t6fec8885t929b22defaba2b70@mail.gmail.com> Message-ID: <47E39C6D.8090606@pobox.com> LMonge wrote: > Hello Everybody > > I have some doubt about of operation Mapserver, especifically in the > mapserv.exe > > ?what's happens internally in mapserv.exe? LMonge, I think this is too broad a question to ask on it's own. If you want a constructive response you need to ask a more specific question. > Can I modify the code of mapserv.exe? Yes, of course. It is open source. You can also study the source to better understand what it does internally though for most users the external documentation is sufficient. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dfuhry at gmail.com Fri Mar 21 10:12:50 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Fri, 21 Mar 2008 13:12:50 -0400 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200803210959.24486.ivan.mincik@gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <90699a8d0803201506m1a343e38pd7eabf80f4b6f5db@mail.gmail.com> <90699a8d0803201546k653ab19exd38812dc36ee0611@mail.gmail.com> <200803210959.24486.ivan.mincik@gmail.com> Message-ID: <90699a8d0803211012n5edb250y54ad8fac9a167fa0@mail.gmail.com> Ivan, Yes, I updated the patch on the bug report page http://trac.osgeo.org/mapserver/ticket/2497 around the time I sent those emails yesterday. Download it, make sure it differs from the ms_postgis_fix_trans_state.diff you're currently using, `svn revert mappostgis.c`, and try it with the new patch. Sorry that was not clear. Thanks, Dave On Fri, Mar 21, 2008 at 4:59 AM, Ivan Mincik wrote: > On Thursday 20 March 2008 23:46, you wrote: > > Ivan, > > > > Try the new version of the patch, just posted. I had accidentally > > removed a necessary query in msPOSTGISLayerGetShape. My tests which > > now include getShape() are working (with or without PROCESSING > > "CLOSE_CONNECTION=DEFER"). > Hi Dave, > I have allready tried patch ms_postgis_fix_trans_state.diff and I have posted > the report. Or is there any updated version of > ms_postgis_fix_trans_state.diff? > > I am sure that I have updated php_mapscript.so. > > ************************************************************ > For sure I include my report of testing ms_postgis_fix_trans_state.diff: > > > I have applied new patch ms_postgis_fix_trans_state.diff to mapserver-5.0.2 > sources from debian unstable and recompiled new debian package and install. > > > Then I have: > 1. restarted apache > 2. restarted postgresql-8.1 > 3. restarted browser (deleted cache) > > And started this test with p.mapper 3.2 application: > > 1. Browsing the map (moving, zooming out, zooming in, adding some more layers) > 2. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: > cursor "mycursor2 immediately > 3. Browsing the map (moving, zooming out, zooming in) > 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: > cursor "mycursor2 immediately > > > Result: > With this patch it is not possible to do neither a singel object query. (with > older patch it was possible few times). > After "ERROR: cursor "mycursor2" does not exist" it is possible to continue > browsing the map again and object query fill finish with same result as > above. > > > {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. > So identify object is not working at all. > > log is here: > http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log > > > > From armin.burger at gmx.net Fri Mar 21 11:06:51 2008 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 21 Mar 2008 19:06:51 +0100 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: References: Message-ID: <47E3F93B.7080001@gmx.net> Jukka I was working a bit on this issue since we face the same problem. If you don't mind using Python MapScript instead of the Mapserver CGI then you could try to use this Python class that uses the OWSRequest functionality of Mapserver/Mapscript: http://svn.pmapper.net/repos/owspy/trunk/ It modifies the map object before the output of the GetCapabilities response. For a group of layers always the first one in the map file is used as the one visible to the clients for the capabilities. In addition, only the layers that have a 'ows_title' metadata tag are included in the response. And with an Apache rewrite rule the URL's can be set to look a bit nicer. Some more details are in the README file. Armin On 06/03/2008 09:31, Rahkonen Jukka wrote: > Hi, > > I would say that if it is not possible at the moment to make a logical WMS layer that automatically swithes between several external overviews and the original imagery through tileindex according to scale settings, then it would be very useful to have. However, it feels so obvious demand that I would be a bit surprised if there is not such an option. Anyway, if it is missing then I will give +1 for feature request. > > There seems to be an option called wms_layer_group in the layer metadata section of mapfile, but I must admid that I do not understand what it stands for. > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Eichner, Andreas - SID-NLK >> L?hetetty: 6. maaliskuuta 2008 9:26 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Re: Hiding overviews >> >> >> Hello Jacob, >> >> thanks for your try but this didn't help, sorry. IMHO the >> problem is that there seems to be no way to declare multiple, >> scale dependend data sources for one layer (in a WMS sense). >> Since the only reason of using of overviews for me is the >> (nearly) scale-independent performance. But optimization is >> _really_ a private thing of the service. It is not of the >> client's interest that MapServer internally organizes >> overviews as multiple layers... >> >> _______________________________________________ >> 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 dmorissette at mapgears.com Fri Mar 21 11:59:07 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 21 Mar 2008 14:59:07 -0400 Subject: [mapserver-users] Minscale in web section not working? php/mapscript In-Reply-To: <2482247e0803210126gc733a5i2ed1de606e01615d@mail.gmail.com> References: <2482247e0803210126gc733a5i2ed1de606e01615d@mail.gmail.com> Message-ID: <47E4057B.50007@mapgears.com> frequens wrote: > Is anyone successfully using the MINSCALE seting in WEB section of the > mapfile in phpmapscript (5.02). > I can not get it to work, while the same seting for the LAYER level > works just fine... > Do you mean that it is simply ignored, or do you get some kind of error message? Which method do you use to handle zooming in your application? With PHP MapScript, the $map->setExtent() method will happily let you set an extent that results in a scale outside of the WEB's MINSCALEDENOM/MAXSCALEDENOM. In that case it is up to the application code to validate the map scale and prevent the user from zooming in or out too far. However, if you use methods like $map->zoomScale() or $map->zoomRectangle() then it should take the WEB's MINSCALEDENOM/MAXSCALEDEMON into account and prevent zooming outside of that range. Daniel -- Daniel Morissette http://www.mapgears.com/ From ivan.mincik at gmail.com Sat Mar 22 02:20:45 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sat, 22 Mar 2008 10:20:45 +0100 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0803211012n5edb250y54ad8fac9a167fa0@mail.gmail.com> References: <90699a8d0803191006r33c6adf8j346d3aebe3132bf4@mail.gmail.com> <200803210959.24486.ivan.mincik@gmail.com> <90699a8d0803211012n5edb250y54ad8fac9a167fa0@mail.gmail.com> Message-ID: <200803221020.45202.ivan.mincik@gmail.com> Here is the report about testing second version of ms_postgis_begin_to_connect.diff (03/20/08 18:35:00) in p.mapper with PROCESSING "CLOSE_CONNECTION=DEFER. I have started browsing the map, using Obj_queryBy functions, turning on and off different layers. Application was working smoothly without any error or warning in the log. THE PROBLEM will occur when I stop working in pmapper for a while and try to continue browsing. (in the log it is between 09:41:44 and - 09:46:05 and 09:50:03 - 09:52:30) . After these pauses I had to restart browser to get p.mapper working again, but in 20 percent still application is still freezing. Same problems can be reproduced every new pmapper session. Maybe I can try some session configurations in apache or postgres. Any advises? PostgreSQL log is here: http://projects.gpsmapy.sk/logs/ms_postgis_begin_to_connect_version2.log Dave, thanks a lot for Your work Ivan On Friday 21 March 2008 18:12, you wrote: > Ivan, > > Yes, I updated the patch on the bug report page > http://trac.osgeo.org/mapserver/ticket/2497 around the time I sent > those emails yesterday. Download it, make sure it differs from the > ms_postgis_fix_trans_state.diff you're currently using, `svn revert > mappostgis.c`, and try it with the new patch. > > Sorry that was not clear. > > Thanks, > > Dave > > On Fri, Mar 21, 2008 at 4:59 AM, Ivan Mincik wrote: > > On Thursday 20 March 2008 23:46, you wrote: > > > Ivan, > > > > > > Try the new version of the patch, just posted. I had accidentally > > > removed a necessary query in msPOSTGISLayerGetShape. My tests which > > > now include getShape() are working (with or without PROCESSING > > > "CLOSE_CONNECTION=DEFER"). > > > > Hi Dave, > > I have allready tried patch ms_postgis_fix_trans_state.diff and I have > > posted the report. Or is there any updated version of > > ms_postgis_fix_trans_state.diff? > > > > I am sure that I have updated php_mapscript.so. > > > > ************************************************************ > > For sure I include my report of testing ms_postgis_fix_trans_state.diff: > > > > > > I have applied new patch ms_postgis_fix_trans_state.diff to > > mapserver-5.0.2 sources from debian unstable and recompiled new debian > > package and install. > > > > > > Then I have: > > 1. restarted apache > > 2. restarted postgresql-8.1 > > 3. restarted browser (deleted cache) > > > > And started this test with p.mapper 3.2 application: > > > > 1. Browsing the map (moving, zooming out, zooming in, adding some more > > layers) 2. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - > > ERROR: cursor "mycursor2 immediately > > 3. Browsing the map (moving, zooming out, zooming in) > > 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: > > cursor "mycursor2 immediately > > > > > > Result: > > With this patch it is not possible to do neither a singel object query. > > (with older patch it was possible few times). > > After "ERROR: cursor "mycursor2" does not exist" it is possible to > > continue browsing the map again and object query fill finish with same > > result as above. > > > > > > {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. > > So identify object is not working at all. > > > > log is here: > > http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log From ivan.mincik at gmail.com Sat Mar 22 07:33:24 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sat, 22 Mar 2008 15:33:24 +0100 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault Message-ID: <200803221533.24934.ivan.mincik@gmail.com> Hi Dave and others, >Here is the report about testing second version of >ms_postgis_begin_to_connect.diff (03/20/08 18:35:00) in p.mapper with >PROCESSING "CLOSE_CONNECTION=DEFER. >I have started browsing the map, using Obj_queryBy functions, turning on and >off different layers. Application was working smoothly without any error or >warning in the log. >THE PROBLEM will occur when I stop working in pmapper for a while and try to >continue browsing. (in the log it is between 09:41:44 and - 09:46:05 and >09:50:03 - 09:52:30) . After these pauses I had to restart browser to get >p.mapper working again, but in 20 percent still application is still >freezing. >Same problems can be reproduced every new pmapper session. I have solved this problem with php session settings so this last problem was probably on php/p.mapper site. Now the logs are clear. Tomorrow I will test it with more users then one. Ivan >Maybe I can try some session configurations in apache or postgres. Any >advises? >PostgreSQL log is here: >http://projects.gpsmapy.sk/logs/ms_postgis_begin_to_connect_version2.log >Dave, thanks a lot for Your work >Ivan >On Friday 21 March 2008 18:12, you wrote: > Ivan, > > Yes, I updated the patch on the bug report page > http://trac.osgeo.org/mapserver/ticket/2497 around the time I sent > those emails yesterday. Download it, make sure it differs from the > ms_postgis_fix_trans_state.diff you're currently using, `svn revert > mappostgis.c`, and try it with the new patch. > > Sorry that was not clear. > > Thanks, > > Dave > > On Fri, Mar 21, 2008 at 4:59 AM, Ivan Mincik wrote: > > On Thursday 20 March 2008 23:46, you wrote: > > > Ivan, > > > > > > Try the new version of the patch, just posted. I had accidentally > > > removed a necessary query in msPOSTGISLayerGetShape. My tests which > > > now include getShape() are working (with or without PROCESSING > > > "CLOSE_CONNECTION=DEFER"). > > > > Hi Dave, > > I have allready tried patch ms_postgis_fix_trans_state.diff and I have > > posted the report. Or is there any updated version of > > ms_postgis_fix_trans_state.diff? > > > > I am sure that I have updated php_mapscript.so. > > > > ************************************************************ > > For sure I include my report of testing ms_postgis_fix_trans_state.diff: > > > > > > I have applied new patch ms_postgis_fix_trans_state.diff to > > mapserver-5.0.2 sources from debian unstable and recompiled new debian > > package and install. > > > > > > Then I have: > > 1. restarted apache > > 2. restarted postgresql-8.1 > > 3. restarted browser (deleted cache) > > > > And started this test with p.mapper 3.2 application: > > > > 1. Browsing the map (moving, zooming out, zooming in, adding some more > > layers) 2. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - > > ERROR: cursor "mycursor2 immediately > > 3. Browsing the map (moving, zooming out, zooming in) > > 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: > > cursor "mycursor2 immediately > > > > > > Result: > > With this patch it is not possible to do neither a singel object query. > > (with older patch it was possible few times). > > After "ERROR: cursor "mycursor2" does not exist" it is possible to > > continue browsing the map again and object query fill finish with same > > result as above. > > > > > > {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is disabled. > > So identify object is not working at all. > > > > log is here: > > http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log ------------------------------------------------------- From nickthegreek_ at hotmail.com Sat Mar 22 13:12:54 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Sat, 22 Mar 2008 13:12:54 -0700 (PDT) Subject: [MAPSERVER-USERS] image in an output Message-ID: <16086967.post@talk.nabble.com> hello everyone... cause i am doing my diploma i need a help... fist in my output i try to insert in mapfile a image so as to display a compass.. what i do is to try to put in mapfile a layer which shows only this image, the compass... i haven't tried that up now..any help would be great (what exactly to write in the layer)!!! and secondly ..i wanna a big help in how to insert my shapefiles in a database.. the postgis does that? what i should know is if i should put shp shx and dbf files in tables in postgis??that is all??? need help !! pls ... -- View this message in context: http://www.nabble.com/image-in-an-output-tp16086967p16086967.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.b at gritechnologies.com Sat Mar 22 22:46:45 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Sun, 23 Mar 2008 00:46:45 -0500 Subject: [mapserver-users] GRID labeling, OK, where are the MapServerGRID guru's?? In-Reply-To: <.68.144.5.189.1206125130.squirrel@68.144.5.189> References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us><.68.144.5.189.1205891167.squirrel@68.144.5.189> <47E12982.4040306@gritechnologies.com> <048701c889e5$f02100f0$140002c0@shark> <47E3DC78.3030501@gritechnologies.com> <.68.144.5.189.1206125130.squirrel@68.144.5.189> Message-ID: <47E5EEC5.40208@gritechnologies.com> Bent, See inline . . . Brent Fraser wrote: > Bob, > >> Makes it into one of those jobs that tends to >> fall between the cracks. >> > > Cool! I hadn't considered a tiled approach mostly due to potential > label/symbol match-up issues on the tile edges. > Actaully, since GeoMoose is abstracted by layers, we've approached the printing in the same way, so the labels can be printed as a single tile on top of the BASE layers which could be tiled. Doesn't help in all situations, but it let you know we've done some extensive testing on this to date, even if we don't yet have much to show for it. Even using the tiled approach, the server side load is quite a bit of work, although you don't have to send all the tiles down to the client, they are all assembled on the server into a PDF. >> Think about the outside >> labeling being formatted as a table, with separate images being created >> around the edges of the map. >> > > No more of an impact than the current method of asking for a map AND a > reference map AND a scale bar. My concern would be making sure the labels > match the grid lines, and the implementer having to craft up the html > carefully, but not a big issue. I think a standard table would work in just about all cases. Some interesting things though, would be the ability to do multiple striping and such, no need to settle for a single edge label. One could even stack them on top of each other with MapFile includes, which we've also taken to heart on the server side. > And that method would take care of the > bounding box query issue I thought of (if the user's selection box extends > into the non-mapped margin, the query results might not be what's > expected). A very interesting solution; I'll have to give that some > thought... > As long as the MAPEXTs of the original map are tracked, the neighboring tiles should line up ok. I'm sure there are some instances where this may be a problem though. >> Seems like a lot of extra work though for the client side to keep track >> of, but this may be a valid piece for printing/layout tasks. >> >> Hmmm, taking this a step further, what about sending to the print layout >> client the labels as SVG, with an ID and placement in pixels, they could >> be moved around in the client individually (or grouped) and sent back to >> the server for PDF building. Again, maybe this is left until later in >> the development cycles, but you see the control you can end up with >> here. Still pondering . . . . >> > > For the plot layout solution I was thinking of PDF instead of SVG, and > leveraging Inkscape, Scribus, etc for the interactive editing part. So > the last couple of days I've been experimenting with having Mapserver > generate PDF output with a GRID layer. "Interesting" results: some > crashing depending on how the GRID layer is set up... > Hmm, interesting approach. Where are you running into problems with this approach? Seems like there could be some non-standard types of object possible for the editors for one. Does MapServer do the labels in PDF as all separate pieces/elements? Got anything online to play with? One thing I forgot to mention, was that I se this Printing (client side) layout canvas, as being populated with any URL type of call, not just mapping based. I may be reaching for the stars though on that one, but it would be easy enough to work with raster images to begin with. One other thought in the back of my head is related to 3D data, while we've only experimented with output to date, we can export chunks of the City as X3D data for example, this type of approach you've outlined, my be related to 3D editing and viewing as well. You seem to be up on these packages, can they be scripted in any way for retrieval from the web? Or is that a two step process? Do these packages blow up with big files? Your ideas using these packages seems very interesting, but I'm wondering about the import limits that they might impose. Seems to be a fair amount of learning curve to both packages, do you have a preference yet? I did find that Scribus can be scripted with Python, not commandline though . . . I hop you're happy, now you got me thinking about all sorts of new stuff, like how to teach folks about using a standalone package like this, I hate installing standalone stuff for exactly this reason if I can avoid it. bobb > Brent > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ardizzone at postit.gsfc.nasa.gov Sun Mar 23 07:03:03 2008 From: ardizzone at postit.gsfc.nasa.gov (Joseph Ardizzone) Date: Sun, 23 Mar 2008 10:03:03 -0400 Subject: [mapserver-users] Polar Orthographic Projection Using MMS Message-ID: <47E66317.6050906@postit.gsfc.nasa.gov> Hi, I'm attempting to use the mapserver to create polar orthographic projections. The mapfile that I am using contains several layers including continental boundaries and the NASA Blue Marble land image. The default output projection was set to EPSG:4326. I modified the output projection to be: EXTENT -6378137.0 -6356752.0 6378137.0 6356752.0 PROJECTION "proj=ortho" "lat_0=90.0" "lon_0=0.0" "x_0=0.0" "y_0=0.0" "ellps=WGS84" END When I invoke the mapserver with the modified mapfile, the continental boundaries (polygon type shapefile) display as expected. However, the Blue Marble image only displays along a narrow longitude boundary. If I play with the "EXTENT" settings I can often get more or less of the image displayed. I know that the image is global so that is not the problem. Here is the mapfile layer information for the land: LAYER NAME "land" TYPE RASTER STATUS on PROJECTION "init=epsg:4326" END TILEINDEX "/sivo/data/bluemarble/bluemarble.shp" METADATA "wms_title" "Blue Marble 2002 - MODIS composite land image" "wms_layer_group" "/Reference" ###NOTE: wms_group_abstract does not seem to work. "wms_group_abstract" "These ancillary datasets are provided for cartographic reference purposes." "wms_abstract" "The Blue Marble 2002 dataset is a composite of cloud-free land images from the Moderate Resolution Imaging Spectroradiometer (MODIS) instrument aboard NASA's Terra satellite. The spatial resolution is approximately 1km. The image was produced by NASA Goddard Space Flight Center. For more information see NASA Earth Observatory (http://earthobservatory.nasa.gov/)." END END Any help is greatly appreciated. Thanks, Joe -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From bfraser at geoanalytic.com Sun Mar 23 14:48:50 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 23 Mar 2008 15:48:50 -0600 (Mountain Daylight Time) Subject: [mapserver-users] GRID labeling, OK, where are the MapServerGRID guru's?? In-Reply-To: <47E5EEC5.40208@gritechnologies.com> References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us><.68.144.5.189.1205891167.squirrel@68.144.5.189> <47E12982.4040306@gritechnologies.com> <048701c889e5$f02100f0$140002c0@shark> <47E3DC78.3030501@gritechnologies.com> <.68.144.5.189.1206125130.squirrel@68.144.5.189> <47E5EEC5.40208@gritechnologies.com> Message-ID: <.68.144.5.189.1206308930.squirrel@68.144.5.189> > I think a standard table would work in just about all cases. Some > interesting things though, would be the ability to do multiple striping > and such, no need to settle for a single edge label. One could even > stack them on top of each other with MapFile includes, which we've also > taken to heart on the server side. My goals for labelling are quite ambitious (see the attached graphic clip of my favorite Canadian topo map). Multiple grid labels (the home zone and the adjacent zone are labeled, with the super/subscript method you are developing), a graticule label, township/range labels, a fairly complicated neat line, and tick marks for the adjacent zone coordinate system. >> For the plot layout solution I was thinking of PDF instead of SVG, and >> leveraging Inkscape, Scribus, etc for the interactive editing part. So >> the last couple of days I've been experimenting with having Mapserver >> generate PDF output with a GRID layer. "Interesting" results: some >> crashing depending on how the GRID layer is set up... >> > Hmm, interesting approach. Where are you running into problems with this > approach? Seems like there could be some non-standard types of object > possible for the editors for one. Does MapServer do the labels in PDF > as all separate pieces/elements? Got anything online to play with? > PDF support in Mapserver is minimal, and I don't think the code is being actively maintained. My problems are minor bugs causing Mapserver to crash; I'm still working on them... > One thing I forgot to mention, was that I se this Printing (client side) > layout canvas, as being populated with any URL type of call, not just > mapping based. I may be reaching for the stars though on that one, but > it would be easy enough to work with raster images to begin with. > > One other thought in the back of my head is related to 3D data, while > we've only experimented with output to date, we can export chunks of the > City as X3D data for example, this type of approach you've outlined, my > be related to 3D editing and viewing as well. An interesting approach may be Adobe's 3D extension to PDF. Have a look at http://www.photogrammetry.eu/ for an example. > > You seem to be up on these packages, can they be scripted in any way for > retrieval from the web? Or is that a two step process? Do these > packages blow up with big files? I seem to recall that they did have difficultly with large raster. > > Your ideas using these packages seems very interesting, but I'm > wondering about the import limits that they might impose. Seems to be a > fair amount of learning curve to both packages, do you have a preference > yet? I did find that Scribus can be scripted with Python, not > commandline though . . . > ReportLab (www.reportlab.org) may be useful too... > I hop you're happy, now you got me thinking about all sorts of new > stuff, like how to teach folks about using a standalone package like > this, I hate installing standalone stuff for exactly this reason if I > can avoid it. The lack of a map composition tool is a large hole in the FOSS4G stack, so the more people thinking about a solution the better! Brent -------------- next part -------------- A non-text attachment was scrubbed... Name: 082H04NW.png Type: image/x-png Size: 357676 bytes Desc: not available URL: From thy at 42.dk Sun Mar 23 15:21:28 2008 From: thy at 42.dk (Kristian Thy) Date: Sun, 23 Mar 2008 23:21:28 +0100 Subject: [MAPSERVER-USERS] image in an output In-Reply-To: <16086967.post@talk.nabble.com> References: <16086967.post@talk.nabble.com> Message-ID: <20080323222128.GB18018@42.dk> On Sat, Mar 22, nickthegreek- wrote: > fist in my output i try to insert in mapfile a image so as to display > a compass.. what i do is to try to put in mapfile a layer which shows > only this image, the compass... i haven't tried that up now..any help > would be great (what exactly to write in the layer)!!! http://mapserver.gis.umn.edu/docs/faq/copyright-layer http://mapserver.gis.umn.edu/docs/reference/mapfile/feature However, you can't use a picture for that as far as I know ... but if you could make/find a font with a compass glyph, you should be able to insert that. > and secondly ..i wanna a big help in how to insert my shapefiles in a > database.. the postgis does that? what i should know is if i should > put shp shx and dbf files in tables in postgis?? To load shapefiles into PostGIS you use the shp2pgsql utility distributed with PostGIS: http://postgis.refractions.net/docs/ch04.html#id2670802 \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From bob.b at gritechnologies.com Sun Mar 23 22:09:47 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Mon, 24 Mar 2008 00:09:47 -0500 Subject: [mapserver-users] GRID labeling, OK, where are the MapServerGRID guru's?? In-Reply-To: <.68.144.5.189.1206308930.squirrel@68.144.5.189> References: <47DFEE75.163B.00A8.0@ci.stpaul.mn.us><.68.144.5.189.1205891167.squirrel@68.144.5.189> <47E12982.4040306@gritechnologies.com> <048701c889e5$f02100f0$140002c0@shark> <47E3DC78.3030501@gritechnologies.com> <.68.144.5.189.1206125130.squirrel@68.144.5.189> <47E5EEC5.40208@gritechnologies.com> <.68.144.5.189.1206308930.squirrel@68.144.5.189> Message-ID: <47E7379B.2010405@gritechnologies.com> Brent, See inline . . . Brent Fraser wrote: > > My goals for labelling are quite ambitious (see the attached graphic clip > of my favorite Canadian topo map). That's about an exact copy of how the USNG specs want their labels, more emphasis on the Super/sub scripting though. > Multiple grid labels (the home zone > and the adjacent zone are labeled, with the super/subscript method you are > developing), a graticule label, township/range labels, a fairly > complicated neat line, and tick marks for the adjacent zone coordinate > system. > >> Hmm, interesting approach. Where are you running into problems with this >> approach? Seems like there could be some non-standard types of object >> possible for the editors for one. Does MapServer do the labels in PDF >> as all separate pieces/elements? Got anything online to play with? >> > PDF support in Mapserver is minimal, and I don't think the code is being > actively maintained. My problems are minor bugs causing Mapserver to > crash; I'm still working on them... > We're using a PERL lib lib PDF2, that we use the images with. It's pretty good, and has some recent addition that helped out some recently. >> One thing I forgot to mention, was that I se this Printing (client side) >> layout canvas, as being populated with any URL type of call, not just >> mapping based. I may be reaching for the stars though on that one, but >> it would be easy enough to work with raster images to begin with. >> >> One other thought in the back of my head is related to 3D data, while >> we've only experimented with output to date, we can export chunks of the >> City as X3D data for example, this type of approach you've outlined, my >> be related to 3D editing and viewing as well. >> > > An interesting approach may be Adobe's 3D extension to PDF. Have a look > at http://www.photogrammetry.eu/ for an example. > Hmm, interesting. Took a while to load into the reader, but interesting still. Lot's of viewing possibilities, might need to look harder at this. I'll send you a screen shot of our X3D output, it's very similar to this. We're concentrating on the Infrastructure though, I have the City in 1 foot contours, and the entire Sewer infrastructure available. > >> You seem to be up on these packages, can they be scripted in any way for >> retrieval from the web? Or is that a two step process? Do these >> packages blow up with big files? >> > > I seem to recall that they did have difficultly with large raster. > Yeah, that's what I was thinking. I downloaded the Scribus package and played around with it a bit. >> I hop you're happy, now you got me thinking about all sorts of new >> stuff, like how to teach folks about using a standalone package like >> this, I hate installing standalone stuff for exactly this reason if I >> can avoid it. >> > > The lack of a map composition tool is a large hole in the FOSS4G stack, so > the more people thinking about a solution the better! > I don't hear too many people chasing after a solution though. bobb > Brent > bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Sun Mar 23 23:42:40 2008 From: ven.tammineni at gmail.com (venkat) Date: Mon, 24 Mar 2008 12:12:40 +0530 Subject: [mapserver-users] Pan Mapserver C# asp.net Message-ID: <79ad14900803232342l7c624e8du9058e74d4e76ebc3@mail.gmail.com> Dear All, I am Developing a small application .I want to implement Pan tool in C#.can any one help me. I am waiting for your great response. Advanced Thanks. Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlf at eniro.dk Mon Mar 24 05:41:24 2008 From: jlf at eniro.dk (James Lindstorff) Date: Mon, 24 Mar 2008 13:41:24 +0100 Subject: SV: [MAPSERVER-USERS] image in an output In-Reply-To: <20080323222128.GB18018@42.dk> Message-ID: If you look at http://mapserver.gis.umn.edu/docs/faq/copyright-layer You should be able to use the SYMBOL keywork of the CLASS definition to insert your compass. One problem though, if your images are not of a known size you can't relablily place labels or symbols except in the upper left corner of the image. /james -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Kristian Thy Sendt: 23. marts 2008 23:21 Til: mapserver-users at lists.osgeo.org Emne: Re: [MAPSERVER-USERS] image in an output On Sat, Mar 22, nickthegreek- wrote: > fist in my output i try to insert in mapfile a image so as to display > a compass.. what i do is to try to put in mapfile a layer which shows > only this image, the compass... i haven't tried that up now..any help > would be great (what exactly to write in the layer)!!! http://mapserver.gis.umn.edu/docs/faq/copyright-layer http://mapserver.gis.umn.edu/docs/reference/mapfile/feature However, you can't use a picture for that as far as I know ... but if you could make/find a font with a compass glyph, you should be able to insert that. > and secondly ..i wanna a big help in how to insert my shapefiles in a > database.. the postgis does that? what i should know is if i should > put shp shx and dbf files in tables in postgis?? To load shapefiles into PostGIS you use the shp2pgsql utility distributed with PostGIS: http://postgis.refractions.net/docs/ch04.html#id2670802 \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From group.ritesh at gmail.com Mon Mar 24 06:12:03 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Mon, 24 Mar 2008 06:12:03 -0700 (PDT) Subject: [MAPSERVER-USERS] PHP MapScript AGG In-Reply-To: <47C6AA18.208A.008D.0@forestrytas.com.au> References: <47C6AA18.208A.008D.0@forestrytas.com.au> Message-ID: <16251153.post@talk.nabble.com> I am also in search of answers regarding agg :) Bryn Roberts-2 wrote: > > Hello All, > > I've been using MapServer and MapScript both for work and home projects > for a couple of years now, and am delighted with the quality of maps > produced by MapServer 5 using AGG. > However, I have not been able to work out how to specify a map to be > rendered using the AGG driver from within PHP MapScript. > In my particular case I am creating a Map Object in PHP without a Map > file. > Everything works fine but the following two lines seem not to trigger AGG > rendering (I have never tried setting output format options from within > MapScript before and was unable to find any examples). > ..... > $map->outputformat->setOption("name", "AGG"); > $map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB); > $map->outputformat->setOption("driver", "AGG/PNG"); > ..... > Can somebody set me straight and point out where I am going wrong? > Thanks in advance, > Bryn > > ----------------------------------------------------- > 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 62338203 > 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 > > -- View this message in context: http://www.nabble.com/PHP-MapScript-AGG-tp15727720p16251153.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Mon Mar 24 08:36:42 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 24 Mar 2008 11:36:42 -0400 Subject: [MAPSERVER-USERS] PHP MapScript AGG In-Reply-To: <16251153.post@talk.nabble.com> References: <47C6AA18.208A.008D.0@forestrytas.com.au> <16251153.post@talk.nabble.com> Message-ID: <47E7CA8A.4030304@mapgears.com> > Bryn Roberts-2 wrote: >> Everything works fine but the following two lines seem not to trigger AGG >> rendering (I have never tried setting output format options from within >> MapScript before and was unable to find any examples). >> ..... >> $map->outputformat->setOption("name", "AGG"); >> $map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB); >> $map->outputformat->setOption("driver", "AGG/PNG"); >> ..... >> Can somebody set me straight and point out where I am going wrong? The setOption() method is for FORMATOPTIONs only. Name, imagemode and driver are properties of the OutputFormatObj class and are set using the set() method: $map->outputformat->set("name", "AGG"); $map->outputformat->set("imagemode", MS_IMAGEMODE_RGB); $map->outputformat->set("driver", "AGG/PNG"); BTW, I believe a predefined "AGGPNG24" output format is available by default, so you could simply select it using: $map->selectOutputFormat("AGGPNG24"); Daniel -- Daniel Morissette http://www.mapgears.com/ From dlowther at coordinatesolutions.com Mon Mar 24 09:59:23 2008 From: dlowther at coordinatesolutions.com (David Lowther) Date: Mon, 24 Mar 2008 12:59:23 -0400 Subject: [mapserver-users] Pan Mapserver C# asp.net In-Reply-To: <79ad14900803232342l7c624e8du9058e74d4e76ebc3@mail.gmail.com> References: <79ad14900803232342l7c624e8du9058e74d4e76ebc3@mail.gmail.com> Message-ID: <3575C24017A64C9180A7541C0A4810CC@DLQ6600> Venkat, There are a couple samples out there. Paulo Corti has one, there is another here: http://www.coordinatesolutions.com/Samples.aspx. This one is in VB.NET but as the code is pretty concise, a port to C# would be a simple matter. Hope that helps! David Lowther Coordinate Solutions, Inc. 904.471.5528 (Voice) 405.210.1721 (Mobile) 904.471.5548 (Fax) www.coordinatesolutions.com _____ From: venkat [mailto:ven.tammineni at gmail.com] Sent: Monday, March 24, 2008 2:43 AM To: mapserver-dev at lists.osgeo.org Cc: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Pan Mapserver C# asp.net Dear All, I am Developing a small application .I want to implement Pan tool in C#.can any one help me. I am waiting for your great response. Advanced Thanks. Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at gisnet.com Mon Mar 24 13:54:31 2008 From: bthoen at gisnet.com (Bill Thoen) Date: Mon, 24 Mar 2008 14:54:31 -0600 Subject: [mapserver-users] OT - Seeking a Good (Mapping-Related) JavaScript Forum Message-ID: <47E81507.20401@gisnet.com> I've been intrigued by tools like dBox and in general using JavaScript for driving web-based mapping applications, but I need to learn more about the JavaScript side of things. Can anyone here recommend a good discussion group for JavaScript so I can ask some dumb questions? Even better if you know of a *mapping* oriented JavaScript forum, because I've got some SVG questions too. Searching Google came up with a number of JavaScript-L's, but if there's one that stands out I'd appreciate somebody pointing it out to me. TIA, - Bill Thoen From matthew.pettis at gmail.com Mon Mar 24 14:28:52 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Mon, 24 Mar 2008 16:28:52 -0500 Subject: [mapserver-users] PHP/Mapscript: MapObj: Create obj from string instead of filename? Message-ID: <82ba77b80803241428x6b8d4c9scd5352bf273ec2a2@mail.gmail.com> Hi, I've created a mapfile as a PHP/Smarty template file with a bunch of template variables in it in order to manage my mapfiles more efficiently. I'd like to create my PHP mapObj from the string the template returns, rather than write the template result to a file and then have the mapObj read in that file to create itself. I'm checking the documentation, and it appears that a mapObj can be created from a file. Can someone confirm if this is true? If so (or not), does anyone know of an easier workaround than write-to-file/read-in-file to do this? I ask, because doing it this way defeats some of the template caching speed enhancements that Smarty gives me (this workaround adds a write-to/read-from disk to the chain of events). By the way, if you do use PHP/Mapscript with a mapfile that can be templated, Smarty is a pretty good solution, imho (modulo this problem). Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Mon Mar 24 23:25:09 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 25 Mar 2008 07:25:09 +0100 Subject: [mapserver-users] OT - Seeking a Good (Mapping-Related) JavaScript Forum In-Reply-To: <47E81507.20401@gisnet.com> References: <47E81507.20401@gisnet.com> Message-ID: <47E89AC5.3080000@zeelandnet.nl> Hello Bill, I have had some good success on the rails spinoff list; mailto:rubyonrails-spinoffs at googlegroups.com They constantly discuss javascript and AJAX topics and are the only mailinglist as far as I know where rubber-banding is also discussed. Some of the OpenLayers developers are also on the list. Kind regards, Milo Bill Thoen schreef: > I've been intrigued by tools like dBox and in general using JavaScript > for driving web-based mapping applications, but I need to learn more > about the JavaScript side of things. Can anyone here recommend a good > discussion group for JavaScript so I can ask some dumb questions? > Even better if you know of a *mapping* oriented JavaScript forum, > because I've got some SVG questions too. > > Searching Google came up with a number of JavaScript-L's, but if > there's one that stands out I'd appreciate somebody pointing it out to > me. > > TIA, > - Bill Thoen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mlinden at zeelandnet.nl Mon Mar 24 23:32:45 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 25 Mar 2008 07:32:45 +0100 Subject: [mapserver-users] tile server Message-ID: <47E89C8D.3080901@zeelandnet.nl> Hello list, a little while ago I read somewhere that it is possible to connect a tileserver via a virtual layer to mapserver. The trick was to store an xml file and create a layer definition in the mapfile that pointed to the tile server with information about the tilesize, zoomlevels and so on. I can't seem to find it anymore... Can anyone point me to a succesfull tileserver connection sample? I don't mean running mapserver as tileserver, but attaching a layer from a tileserver. Kind regards, Milo From Andreas.Eichner at sid.sachsen.de Tue Mar 25 02:08:34 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 25 Mar 2008 10:08:34 +0100 Subject: [mapserver-users] Re: Hiding overviews References: <47E3F93B.7080001@gmx.net> Message-ID: Hello Armin, > If you don't mind using Python MapScript instead of the Mapserver CGI then you > could try to use this Python class that uses the OWSRequest > functionality of Mapserver/Mapscript: although this is a nice approach, I can't go with Python. We need a high performance WMS and I believe that the snake can not fulfill our expectations. Well, in the meantime I patched the MapServer code a little bit and made it being an Apache module, reading and parsing the map file only once on startup. This is much faster than the good old CGI and seems to work fine... > It modifies the map object before the output of the GetCapabilities > response. For a group of layers always the first one in the map file is > used as the one visible to the clients for the capabilities. In > addition, only the layers that have a 'ows_title' metadata tag are > included in the response. In an earlier mail in this thread I stated that IMHO there's a problem with the MapServer code. I modified the stated things and now it does the same thing: only giving a if 'ows_title' metadata is given. > And with an Apache rewrite rule the URL's can > be set to look a bit nicer. Some more details are in the README file. Well, another annoying thing which is resolved by the module solution. Now the Apache setup is something like: <Location "/wms"> SetHandler "wms" WMS_Map "/srv/wms/wms.map" </Location> resulting in a simple URI like http://localhost/wms?service=WMS&request=GetCapabilities. So with little work I solved three issues for me: speed, URI niceness and overview layer grouping. Well, several nice ideas came to daylight but I will go with mine. Thanks to you and all helpers involved. From ivan.mincik at gmail.com Tue Mar 25 03:15:56 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 25 Mar 2008 11:15:56 +0100 Subject: [mapserver-users] tile server In-Reply-To: <47E89C8D.3080901@zeelandnet.nl> References: <47E89C8D.3080901@zeelandnet.nl> Message-ID: <200803251115.56463.ivan.mincik@gmail.com> Hi Milo, I don't know the solution, but I will be very interested how to do it. So, if You find solution yourself, please, paste it to the mailinglist. Ivan On Tuesday 25 March 2008 07:32, Milo van der Linden wrote: > Hello list, > > a little while ago I read somewhere that it is possible to connect a > tileserver via a virtual layer to mapserver. The trick was to store an > xml file and create a layer definition in the mapfile that pointed to > the tile server with information about the tilesize, zoomlevels and so on. > > I can't seem to find it anymore... > > Can anyone point me to a succesfull tileserver connection sample? > > I don't mean running mapserver as tileserver, but attaching a layer from > a tileserver. > > Kind regards, > > Milo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mlinden at zeelandnet.nl Tue Mar 25 04:08:13 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 25 Mar 2008 12:08:13 +0100 Subject: [mapserver-users] tile server In-Reply-To: <200803251115.56463.ivan.mincik@gmail.com> References: <47E89C8D.3080901@zeelandnet.nl> <200803251115.56463.ivan.mincik@gmail.com> Message-ID: <47E8DD1D.8040800@zeelandnet.nl> Hello All, I recovered the post where I found how remote tiles from a WMS-C cache are supported here: http://wiki.openaerialmap.org/Using_With_MapServer Now, what I want to use this structure for is to get OpenStreetMap maps served as layers in my mapserver. OpenStreetMap uses mapnik to serve the tile layers, they are accessed in the form: http://tile.openstreetmap.org/7/63/42.png How would an xml file be set up to serve this as a layer? Main purpose is to expand the usability of openstreetmap into the desktop-GIS world by using mapserver as intermediate WMS server. Ivan Mincik schreef: > Hi Milo, > I don't know the solution, but I will be very interested how to do it. So, if > You find solution yourself, please, paste it to the mailinglist. > > Ivan > > On Tuesday 25 March 2008 07:32, Milo van der Linden wrote: > >> Hello list, >> >> a little while ago I read somewhere that it is possible to connect a >> tileserver via a virtual layer to mapserver. The trick was to store an >> xml file and create a layer definition in the mapfile that pointed to >> the tile server with information about the tilesize, zoomlevels and so on. >> >> I can't seem to find it anymore... >> >> Can anyone point me to a succesfull tileserver connection sample? >> >> I don't mean running mapserver as tileserver, but attaching a layer from >> a tileserver. >> >> Kind regards, >> >> Milo >> _______________________________________________ >> 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 perfectmind at webmail.co.za Tue Mar 25 04:59:16 2008 From: perfectmind at webmail.co.za (perfectmind at webmail.co.za) Date: Tue, 25 Mar 2008 13:59:16 +0200 (SAST) Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 Message-ID: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> Hi I'm looking for a way to switch our current postgre setup to SQL Server 2008. I can get the map data into SQL I just need a way to tell mapserver (in the mapfile) to look at the SQL 2008 database. I found a post relating to a plugin in order to do this: PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll" http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 But i cannot find the dll anywhere, does it exist, if not when will it be released? Any additional help would be appreciated. Thanks Chris ------------------------------------------- South Africas premier free email service - www.webmail.co.za ------------------------------------------------------------------ For super low premiums, click here http://www.webmail.co.za/dd.pwm From crschmidt at metacarta.com Tue Mar 25 04:49:20 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 25 Mar 2008 07:49:20 -0400 Subject: [mapserver-users] tile server In-Reply-To: <47E8DD1D.8040800@zeelandnet.nl> References: <47E89C8D.3080901@zeelandnet.nl> <200803251115.56463.ivan.mincik@gmail.com> <47E8DD1D.8040800@zeelandnet.nl> Message-ID: <20080325114920.GB27107@metacarta.com> On Tue, Mar 25, 2008 at 12:08:13PM +0100, Milo van der Linden wrote: > Hello All, > > I recovered the post where I found how remote tiles from a WMS-C cache > are supported here: > http://wiki.openaerialmap.org/Using_With_MapServer > > Now, what I want to use this structure for is to get OpenStreetMap maps > served as layers in my mapserver. OpenStreetMap uses mapnik to serve the > tile layers, they are accessed in the form: > > http://tile.openstreetmap.org/7/63/42.png > > How would an xml file be set up to serve this as a layer? You can't. OSM uses "Google" style tile indexes, OpenAerialMap has support for "TMS" style tile indexes. GDAL only supports the latter. So the answer is "patch GDAL". Regards, -- Christopher Schmidt MetaCarta From pal.kristensen at statkart.no Tue Mar 25 05:22:09 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 25 Mar 2008 05:22:09 -0700 (PDT) Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <DB439C1846E26C46B3CCF22306653937B0662A@KS-EVS1.smi.sachsen.de> References: <DB439C1846E26C46B3CCF22306653937B06621@KS-EVS1.smi.sachsen.de> <CC197224AC75CE4DB23F739B16891B866E7640@tikka.haapa.mmm.fi> <DB439C1846E26C46B3CCF22306653937B06624@KS-EVS1.smi.sachsen.de> <15873132.post@talk.nabble.com> <DB439C1846E26C46B3CCF22306653937B0662A@KS-EVS1.smi.sachsen.de> Message-ID: <16274328.post@talk.nabble.com> Hi! Did you commit this change in the MapServer trunk? PS! Has any of you developers seen this thread, and would it be feasible to add the patch to the trunk? Eichner, Andreas - SID-NLK wrote: > > > > Ok guys. I examined the situation and came to the conclusion that it is > a bug in MapServer. > In the source of mapserver v5.0.2, file mapwms.c, line 1071: > >> msOWSPrintEncodeParam(stdout, "LAYER.NAME", lp->name, OWS_WARN, >> " <Name>%s</Name>\n", NULL); > > should really be > >> msOWSPrintEncodeMetadata(stdout, &(lp->metadata), "MO", "name", > OWS_NOERR, >> " <Name>%s</Name>\n", NULL); > > since the code conflicts with the comment in the code on line 1747 in > the same file which states: > "Layer Name is optional but title is mandatory." > Which exactly agrees with the specs which states at page 25 of v1.3.0: > > "7.2.4.6.2 Title > A <Title> is mandatory for all layers; ..." and > > "7.2.4.6.3 Name > If, and only if, a layer has a <Name>, then it is a map layer that can > be requested by using that Name in the LAYERS parameter of a GetMap > request. A Layer that contains a <Name> element is referred to as a > "named layer" in this International Standard. If the layer has a Title > but no Name, then that layer is only a category title for all the layers > nested within. A server that advertises a Layer containing a Name > element shall be able to accept that Name as the value of LAYERS > argument in a GetMap request and return the corresponding map. A client > shall not attempt to request a layer that has a Title but no Name." > > IMHO this means you can ommit the <Name> but have to provide the > <Title>. And if the layer has no name it can simply not be requested in > a GetMap-Request. If I change the code like above I have to provide a > "wms_name" in the METADATA part of the MAP file to make the layer > queryable. If I ommit "wms_name" then the layer get's no <Name> and can > therefore not be requested by the client. IMHO it's then up to the > server whether or not to render that layer which is exactly what I want. > For overviews I want multiple layers where only one is active for a > given scale but which one is up to the server. Therefore a client should > not be able to explicitly request one of them. Instead I group those > layers in a named layer by a GROUP clause. > > So please check this out. May be we should file a bug report on that. > But I think someone else should confirm this... > > > Best regards, > > Andreas Eichner > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Hiding-overviews-tp15845320p16274328.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at zeelandnet.nl Tue Mar 25 06:11:19 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 25 Mar 2008 14:11:19 +0100 Subject: [mapserver-users] tile server In-Reply-To: <20080325114920.GB27107@metacarta.com> References: <47E89C8D.3080901@zeelandnet.nl> <200803251115.56463.ivan.mincik@gmail.com> <47E8DD1D.8040800@zeelandnet.nl> <20080325114920.GB27107@metacarta.com> Message-ID: <47E8F9F7.2010402@zeelandnet.nl> Or (and this sounds more appealing to me) Patch the OSM API to use TMS style tiles. I have a local OSM server. Christopher Schmidt schreef: > On Tue, Mar 25, 2008 at 12:08:13PM +0100, Milo van der Linden wrote: > >> Hello All, >> >> I recovered the post where I found how remote tiles from a WMS-C cache >> are supported here: >> http://wiki.openaerialmap.org/Using_With_MapServer >> >> Now, what I want to use this structure for is to get OpenStreetMap maps >> served as layers in my mapserver. OpenStreetMap uses mapnik to serve the >> tile layers, they are accessed in the form: >> >> http://tile.openstreetmap.org/7/63/42.png >> >> How would an xml file be set up to serve this as a layer? >> > > You can't. OSM uses "Google" style tile indexes, OpenAerialMap has > support for "TMS" style tile indexes. GDAL only supports the latter. So > the answer is "patch GDAL". > > Regards, > From jdoyon at NRCan.gc.ca Tue Mar 25 07:07:25 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 25 Mar 2008 10:07:25 -0400 Subject: [mapserver-users] Font sizing problem in MS 5 (with inline feature) Message-ID: <AC5C8D744B56174DB5AE2F3D1A18623F019160E4@S0-OTT-X2.nrn.nrcan.gc.ca> G'day, Still on the path to upgrade to MS 5 and a couple of problems left ... The one that preoccupies me right now is the fact that I have a truetype label that won't size properly. The layer is defined as: LAYER NAME "northarrow" STATUS OFF TYPE ANNOTATION LABELCACHE OFF MINSCALE 0 MAXSCALE 5000000.00001 TRANSFORM FALSE GROUP north_arrow METADATA "checkable" "0" "legend_order" "-1" "LEGEND_GROUP" "base" END FEATURE POINTS 40 40 END TEXT "+" END CLASS LABEL COLOR 0 0 0 TYPE truetype FONT esri_1 SIZE 65 FORCE TRUE OUTLINECOLOR 255 255 255 END END END This puts a north arrow in the top left corner of the map image. The LABEL ANGLE is set dynamically via URL. I don't recall exactly why we used a label instead of a symbol, but there must've been a good reason ... An example in MS 4.8.1 can be viewed here: http://atlas.nrcan.gc.ca/site/english/maps/topo/map?mapsize=428+380&scale=5000000.000000&mapxy=1516867.58194739+-209769.54479788843&mode=zoomin&layers=north_arrow%20other_features%20million_grid%20t50k_grid%20grid_50k_3%20roads%20hydrography%20boundary%20builtup%20vegetation%20populated_places%20railway%20power_network%20manmade_features%20designated_areas%20water_features%20water_saturated_soils%20relief%20contours%20toponymy%20contour%20nodata_ntdb_50k In MS 5, the "label" appears incredibly small (I can barely make out it's shape, it's a few pixels big), and playing with SIZE seems to do nothing at all. I've changed the TEXT value, and the label seems to change shape but still no change in size. Anyone know what's going on? I didn't see any documented changes that look like they should affect this ... Thanks, Jean-Fran?ois Doyon Applications Development Solutions | Solutions de d?veloppement d'applications IT Support Services | Services de support TI Information Technology Services | Services de la technologie d'information Shared Services Office | Bureau des services partag?s Corporate Management and Services Sector | Secteur de la gestion et des services int?gr?s Natural Resources Canada | Ressources naturelles Canada Ottawa, Canada K1A 0E9 jdoyon at nrcan-rncan.gc.ca Telephone | T?l?phone 613-992-4902 Facsimile | T?l?copieur 613-995-3252 Teletypewriter | T?l?imprimeur 613-996-4397 Government of Canada | Gouvernement du Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080325/8d48b0fe/attachment.htm> From dmorissette at mapgears.com Tue Mar 25 07:42:32 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 25 Mar 2008 10:42:32 -0400 Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <16274328.post@talk.nabble.com> References: <DB439C1846E26C46B3CCF22306653937B06621@KS-EVS1.smi.sachsen.de> <CC197224AC75CE4DB23F739B16891B866E7640@tikka.haapa.mmm.fi> <DB439C1846E26C46B3CCF22306653937B06624@KS-EVS1.smi.sachsen.de> <15873132.post@talk.nabble.com> <DB439C1846E26C46B3CCF22306653937B0662A@KS-EVS1.smi.sachsen.de> <16274328.post@talk.nabble.com> Message-ID: <47E90F58.80804@mapgears.com> I had a quick look at this thread and it seems to me at first that using GROUP in all layers corresponding to the same set of overviews should allow you to turn all of them on/off at once. With respect to this proposed change, I don't see why it would be needed since the layer.name is optional and if omitted in your layer in the mapfile will simply be omitted in the GetCapabilities, giving the behavior that you are looking for. The wms_name is a metadata used by CONNECTIONTYPE WMS only AFAIK, it should not be used by the WMS server code unless I'm mistaken. I'll have a deeper look and try to better understand the problem and get back to you all. Daniel P?l Kristensen wrote: > Hi! > > Did you commit this change in the MapServer trunk? > > PS! Has any of you developers seen this thread, and would it be feasible to > add the patch to the trunk? > > > > > Eichner, Andreas - SID-NLK wrote: >> >> >> Ok guys. I examined the situation and came to the conclusion that it is >> a bug in MapServer. >> In the source of mapserver v5.0.2, file mapwms.c, line 1071: >> >>> msOWSPrintEncodeParam(stdout, "LAYER.NAME", lp->name, OWS_WARN, >>> " <Name>%s</Name>\n", NULL); >> should really be >> >>> msOWSPrintEncodeMetadata(stdout, &(lp->metadata), "MO", "name", >> OWS_NOERR, >>> " <Name>%s</Name>\n", NULL); >> since the code conflicts with the comment in the code on line 1747 in >> the same file which states: >> "Layer Name is optional but title is mandatory." >> Which exactly agrees with the specs which states at page 25 of v1.3.0: >> >> "7.2.4.6.2 Title >> A <Title> is mandatory for all layers; ..." and >> >> "7.2.4.6.3 Name >> If, and only if, a layer has a <Name>, then it is a map layer that can >> be requested by using that Name in the LAYERS parameter of a GetMap >> request. A Layer that contains a <Name> element is referred to as a >> "named layer" in this International Standard. If the layer has a Title >> but no Name, then that layer is only a category title for all the layers >> nested within. A server that advertises a Layer containing a Name >> element shall be able to accept that Name as the value of LAYERS >> argument in a GetMap request and return the corresponding map. A client >> shall not attempt to request a layer that has a Title but no Name." >> >> IMHO this means you can ommit the <Name> but have to provide the >> <Title>. And if the layer has no name it can simply not be requested in >> a GetMap-Request. If I change the code like above I have to provide a >> "wms_name" in the METADATA part of the MAP file to make the layer >> queryable. If I ommit "wms_name" then the layer get's no <Name> and can >> therefore not be requested by the client. IMHO it's then up to the >> server whether or not to render that layer which is exactly what I want. >> For overviews I want multiple layers where only one is active for a >> given scale but which one is up to the server. Therefore a client should >> not be able to explicitly request one of them. Instead I group those >> layers in a named layer by a GROUP clause. >> >> So please check this out. May be we should file a bug report on that. >> But I think someone else should confirm this... >> >> >> Best regards, >> >> Andreas Eichner >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Mar 25 08:38:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 25 Mar 2008 11:38:38 -0400 Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <47E90F58.80804@mapgears.com> References: <DB439C1846E26C46B3CCF22306653937B06621@KS-EVS1.smi.sachsen.de> <CC197224AC75CE4DB23F739B16891B866E7640@tikka.haapa.mmm.fi> <DB439C1846E26C46B3CCF22306653937B06624@KS-EVS1.smi.sachsen.de> <15873132.post@talk.nabble.com> <DB439C1846E26C46B3CCF22306653937B0662A@KS-EVS1.smi.sachsen.de> <16274328.post@talk.nabble.com> <47E90F58.80804@mapgears.com> Message-ID: <47E91C7E.8040305@mapgears.com> Daniel Morissette wrote: > I had a quick look at this thread and it seems to me at first that using > GROUP in all layers corresponding to the same set of overviews should > allow you to turn all of them on/off at once. > I built a small test case and it seems that the root problem is that the function msOWSMakeAllLayersUnique() produces an exception if any layer is missing a NAME. In order to allow what you want and make the layer name really optional we would need to get rid of that exception. If we modify msOWSMakeAllLayersUnique() to 'continue' the loop instead of returning an exception when it encounters a NULL layer name as follows... --- mapows.c (revision 7477) +++ mapows.c (working copy) @@ -141,10 +169,7 @@ { if (GET_LAYER(map, i)->name == NULL || GET_LAYER(map, j)->name == NULL) { - msSetError(MS_MISCERR, - "At least one layer is missing a name in map file.", - "msOWSMakeAllLayersUnique()"); - return MS_FAILURE; + continue; } if (strcasecmp(GET_LAYER(map, i)->name, GET_LAYER(map, j)->name) == 0 && msRenameLayer((GET_LAYER(map, j)), ++count) != MS_SUCCESS) ... then the following mapfile block... LAYER NAME layer1 METADATA "wms_title" "Layer 1" "wms_group_title" "Group 1" END GROUP group1 MINSCALE 0 MAXSCALE 10000 TYPE RASTER STATUS ON DATA layer1.tif END LAYER # NAME intentionally omitted... METADATA "wms_title" "Layer 2" END GROUP group1 MINSCALE 10001 MAXSCALE 100000 TYPE RASTER STATUS ON DATA layer2.tif END ... produces the following output in GetCapabilities ... this whole group can be turned on/off at once using LAYERS=group1 in the GetMap request. Notice that layer 2 has no name in GetCapabilities which is what we wanted. Omitting the layer name for layer 1 as well would make it non-selectable as well: <Layer> <Name>group1</Name> <Title>Group 1 group1 layer1 Layer 1 Layer 2 We would also need to update the WARNING text to say "optional" instead of Mandatory. If this is indeed what you were trying to achieve then please file a ticket and I'll make the required changes in MapServer 5.2. Daniel -- Daniel Morissette http://www.mapgears.com/ From jl.cardoso at sgsmap.com Tue Mar 25 10:00:07 2008 From: jl.cardoso at sgsmap.com (Juan Luis Cardoso) Date: Tue, 25 Mar 2008 18:00:07 +0100 Subject: [mapserver-users] Version 4.6.2 binaries In-Reply-To: <199424.25842.qm@web7603.mail.in.yahoo.com> Message-ID: Hi How can i get the binary files of the Mapserver 4.6.2 version? I can`t find them in the site. Thanks in advance. Juan Luis Cardoso From syurman at spatialfocus.com Tue Mar 25 10:39:16 2008 From: syurman at spatialfocus.com (Sara Yurman) Date: Tue, 25 Mar 2008 13:39:16 EDT Subject: [mapserver-users] Version 4.6.2 binaries Message-ID: <30326.1206466756@speakeasy.net> Yes, Olga, I'd planned to do it. When do we need it completed? I'm neck deep in the US Census, but can give it time this weekend. Sara Sara Yurman Spatial Focus, Inc. On Tue Mar 25 13:00 , "Juan Luis Cardoso" sent: > > >Hi > >How can i get the binary files of the Mapserver 4.6.2 version? >I can`t find them in the site. >Thanks in advance. > >Juan Luis Cardoso > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From andreas.albarello at territoriumonline.com Tue Mar 25 11:06:33 2008 From: andreas.albarello at territoriumonline.com (Andreas Albarello) Date: Tue, 25 Mar 2008 19:06:33 +0100 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> Message-ID: <47E93F29.2090101@territoriumonline.com> perfectmind at webmail.co.za wrote: > I'm looking for a way to switch our current postgre setup to SQL Server > 2008. I can get the map data into SQL I just need a way to tell mapserver > (in the mapfile) to look at the SQL 2008 database. > > I found a post relating to a plugin in order to do this: > > PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll" > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 > > But i cannot find the dll anywhere, does it exist, if not when will it be > released? Chris, the MSSQL 2008 driver's source code is available from SVN (http://svn.osgeo.org/mapserver/trunk/mapserver/mapmssql2008.c). As to the compiled DLL, I don't know. Have you checked the MS4W package? Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From jmckenna at dmsolutions.ca Tue Mar 25 11:00:44 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 25 Mar 2008 14:00:44 -0400 Subject: [mapserver-users] Version 4.6.2 binaries In-Reply-To: References: Message-ID: <47E93DCC.3080504@dmsolutions.ca> Older source and windows binaries are still available at: http://www.maptools.org/php_mapscript/index.phtml?page=download-archives.html -jeff Juan Luis Cardoso wrote: > > Hi > > How can i get the binary files of the Mapserver 4.6.2 version? > I can`t find them in the site. > Thanks in advance. > > Juan Luis Cardoso From dmorissette at mapgears.com Tue Mar 25 11:18:14 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 25 Mar 2008 14:18:14 -0400 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: References: <47E3F93B.7080001@gmx.net> Message-ID: <47E941E6.9030607@mapgears.com> Eichner, Andreas - SID-NLK wrote: > > [...] Well, in the meantime I patched the MapServer code a > little bit and made it being an Apache module, reading and parsing the > map file only once on startup. This is much faster than the good old CGI > and seems to work fine... > Andreas, What was involved in setting up an Apache module? There was talk about doing that as an experiment a few weeks ago on the mapserver-dev list. If you are interested in sharing what you've done then I'm sure that would generate some interest. Perhaps you could file a ticket and attach a patch and some notes? Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at hostgis.com Tue Mar 25 11:25:30 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 25 Mar 2008 12:25:30 -0600 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: <47E941E6.9030607@mapgears.com> References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> Message-ID: <47E9439A.4040909@hostgis.com> Daniel Morissette wrote: >> Well, in the meantime I patched the MapServer code a >> little bit and made it being an Apache module, reading and parsing the >> map file only once on startup. Are you serious, mod_mapserver? Holy cow, that would be awesome! I would be VERY interested to hear about stability with prefork MPM, whether it seems production grade, etc. I'd be glad to try it out as a patch to some of our systems (production but willing) and provide feedback. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From perfectmind at webmail.co.za Tue Mar 25 11:29:17 2008 From: perfectmind at webmail.co.za (perfectmind at webmail.co.za) Date: Tue, 25 Mar 2008 20:29:17 +0200 (SAST) Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <47E93F29.2090101@territoriumonline.com> References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> <47E93F29.2090101@territoriumonline.com> Message-ID: <10809.41.245.190.29.1206469757.squirrel@mail.webmail.co.za> I have checked MS4W, but it's not there. I have never managed to compile the source code before so even though it's there, I can't do anything about it atm. :/ > perfectmind at webmail.co.za wrote: >> I'm looking for a way to switch our current postgre setup to SQL Server >> 2008. I can get the map data into SQL I just need a way to tell >> mapserver >> (in the mapfile) to look at the SQL 2008 database. >> >> I found a post relating to a plugin in order to do this: >> >> PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll" >> >> http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38 >> >> But i cannot find the dll anywhere, does it exist, if not when will it >> be >> released? > > Chris, > > the MSSQL 2008 driver's source code is available from SVN > (http://svn.osgeo.org/mapserver/trunk/mapserver/mapmssql2008.c). As to > the compiled DLL, I don't know. Have you checked the MS4W package? > > Best regards, > -- > -------------------------------------------------------------------- > Andreas Albarello > Analysis & SW Development > > Territorium Online srl/GmbH > Via Buozzi Str. 12 > I 39100 Bolzano/Bozen > > Phone: +39 0471 068611 > Fax: +39 0471 068619 > > email: andreas.albarello at territoriumonline.com > web: http://www.territoriumonline.com > -------------------------------------------------------------------- > ------------------------------------------- South Africas premier free email service - www.webmail.co.za ------------------------------------------------------------------ For super low premiums, click here http://www.webmail.co.za/dd.pwm From perfectmind at webmail.co.za Tue Mar 25 11:32:27 2008 From: perfectmind at webmail.co.za (perfectmind at webmail.co.za) Date: Tue, 25 Mar 2008 20:32:27 +0200 (SAST) Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <47E93EBF.3050602@denterprises.org> References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> <47E93EBF.3050602@denterprises.org> Message-ID: <10840.41.245.190.29.1206469947.squirrel@mail.webmail.co.za> Well, my team is taking part in the Microsoft Imagine Cup competition this year, we won our local leg using postgre, but now for the international stage you can understand how having a Microsoft product over an Opensource product will help us... > perfectmind at webmail.co.za wrote: >> I'm looking for a way to switch our current postgre setup to SQL >> Server 2008. I can get the map data into SQL I just need a way to >> tell mapserver (in the mapfile) to look at the SQL 2008 database. > > Just out of curiosity, are you at liberty to divulge any of the details > that led you to switch from PostgreSQL to MS SQL? > > Colin > ------------------------------------------- South Africas premier free email service - www.webmail.co.za ------------------------------------------------------------------ For super low premiums, click here http://www.webmail.co.za/dd.pwm From cww at denterprises.org Tue Mar 25 11:04:47 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 25 Mar 2008 14:04:47 -0400 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> Message-ID: <47E93EBF.3050602@denterprises.org> perfectmind at webmail.co.za wrote: > I'm looking for a way to switch our current postgre setup to SQL > Server 2008. I can get the map data into SQL I just need a way to > tell mapserver (in the mapfile) to look at the SQL 2008 database. Just out of curiosity, are you at liberty to divulge any of the details that led you to switch from PostgreSQL to MS SQL? Colin From cww at denterprises.org Tue Mar 25 11:37:10 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 25 Mar 2008 14:37:10 -0400 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <10840.41.245.190.29.1206469947.squirrel@mail.webmail.co.za> References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> <47E93EBF.3050602@denterprises.org> <10840.41.245.190.29.1206469947.squirrel@mail.webmail.co.za> Message-ID: <47E94656.3070703@denterprises.org> perfectmind at webmail.co.za wrote: > Well, my team is taking part in the Microsoft Imagine Cup competition > this year, we won our local leg using postgre, but now for the > international stage you can understand how having a Microsoft product > over an Opensource product will help us... Fair enough. I had never heard of the Imagine Cup, but it looks like a interesting competition. Good luck! And, keep PostgreSQL in mind for future projects! :) Colin From cww at denterprises.org Tue Mar 25 11:38:36 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 25 Mar 2008 14:38:36 -0400 Subject: [mapserver-users] Re: Hiding overviews In-Reply-To: <47E9439A.4040909@hostgis.com> References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> <47E9439A.4040909@hostgis.com> Message-ID: <47E946AC.2040006@denterprises.org> Gregor Mosheh wrote: > Daniel Morissette wrote: >>> Well, in the meantime I patched the MapServer code a >>> little bit and made it being an Apache module, reading and parsing the >>> map file only once on startup. > > Are you serious, mod_mapserver? Holy cow, that would be awesome! > > I would be VERY interested to hear about stability with prefork MPM, > whether it seems production grade, etc. I'd be glad to try it out as a > patch to some of our systems (production but willing) and provide feedback. +1 Bring it on. :) Colin From mail-lists at revolsys.com Tue Mar 25 13:26:19 2008 From: mail-lists at revolsys.com (Paul Austin) Date: Tue, 25 Mar 2008 13:26:19 -0700 Subject: [mapserver-users] Different data in the same layer Message-ID: <47E95FEB.60902@revolsys.com> What I would like to achieve is a WMS server where when the user selects a layer (e.g. Water) that they see Line and Polygon water features rendered where the lines are in the database table water_lines and the polygons are in the table water_polys. All the line features are rendered first with the polygon features rendered on top of those. Is it possible with mapserver to define a layer which gets data from multiple sources? Sort of like nested layers but where the user doesn't see the nested layers. An extension of this would to be also have different tables with data at different scales so the 1:20k data would be in water_20k_lines and the 1:250k would be in water_250k_lines. Throughout all of this the user just sees the Water layer. Cheers, Paul From rviancos at gmail.com Tue Mar 25 13:51:35 2008 From: rviancos at gmail.com (=?UTF-8?Q?Ren=C3=A9_F._Viancos_S.?=) Date: Tue, 25 Mar 2008 16:51:35 -0400 Subject: [mapserver-users] Different data in the same layer In-Reply-To: <47E95FEB.60902@revolsys.com> References: <47E95FEB.60902@revolsys.com> Message-ID: <842c1e660803251351y7e57a306gf55a520dbda38280@mail.gmail.com> Hi, Check the GROUP parameter in the MapFile Documentation. With this you can merge many layers in one grouped Layer. Regards Ren? Viancos 2008/3/25, Paul Austin : > > What I would like to achieve is a WMS server where when the user selects > a layer (e.g. Water) that they see Line and Polygon water features > rendered where the lines are in the database table water_lines and the > polygons are in the table water_polys. All the line features are > rendered first with the polygon features rendered on top of those. > > Is it possible with mapserver to define a layer which gets data from > multiple sources? Sort of like nested layers but where the user doesn't > see the nested layers. > > An extension of this would to be also have different tables with data at > different scales so the 1:20k data would be in water_20k_lines and the > 1:250k would be in water_250k_lines. > > Throughout all of this the user just sees the Water layer. > > Cheers, > Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Ren? Felipe Viancos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 3pros at magma.ca Tue Mar 25 13:32:44 2008 From: 3pros at magma.ca (Dan Bleichman) Date: Tue, 25 Mar 2008 16:32:44 -0400 Subject: [mapserver-users] How to use CADRG raster format in mapserver? Message-ID: <.1206477164@magma.ca> what command line should I add to my map file inorder to display CADRG raster format? my RFP file is a.toc Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail-lists at revolsys.com Tue Mar 25 14:01:00 2008 From: mail-lists at revolsys.com (Paul Austin) Date: Tue, 25 Mar 2008 14:01:00 -0700 Subject: [mapserver-users] Different data in the same layer In-Reply-To: <842c1e660803251351y7e57a306gf55a520dbda38280@mail.gmail.com> References: <47E95FEB.60902@revolsys.com> <842c1e660803251351y7e57a306gf55a520dbda38280@mail.gmail.com> Message-ID: <47E9680C.3030904@revolsys.com> Wow, that's very subtle easy to miss! Is there then a way to not have the layers below water show up in the capabilities document? Paul Ren? F. Viancos S. wrote: > Hi, Check the GROUP parameter in the MapFile Documentation. With this > you can merge many layers in one grouped Layer. > > Regards > > Ren? Viancos > > 2008/3/25, Paul Austin >: > > What I would like to achieve is a WMS server where when the user > selects > a layer (e.g. Water) that they see Line and Polygon water features > rendered where the lines are in the database table water_lines and the > polygons are in the table water_polys. All the line features are > rendered first with the polygon features rendered on top of those. > > Is it possible with mapserver to define a layer which gets data from > multiple sources? Sort of like nested layers but where the user > doesn't > see the nested layers. > > An extension of this would to be also have different tables with > data at > different scales so the 1:20k data would be in water_20k_lines and the > 1:250k would be in water_250k_lines. > > Throughout all of this the user just sees the Water layer. > > Cheers, > Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Ren? Felipe Viancos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Mar 25 14:17:22 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 25 Mar 2008 17:17:22 -0400 Subject: [mapserver-users] Different data in the same layer In-Reply-To: <47E9680C.3030904@revolsys.com> References: <47E95FEB.60902@revolsys.com> <842c1e660803251351y7e57a306gf55a520dbda38280@mail.gmail.com> <47E9680C.3030904@revolsys.com> Message-ID: <47E96BE2.4030904@mapgears.com> Paul Austin wrote: > Wow, that's very subtle easy to miss! > > Is there then a way to not have the layers below water show up in the > capabilities document? > No, unfortunately there is currently no way to have them not show up. However there was discussion of a way to make them non-selectable in an email to this list this morning: http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054997.html The ability to hide layers in OGC services (WMS, WFS, etc.) sounds simple and has been discussed multiple times, but we could never come up with a clean way that addresses all the needs, that's why that's never been implemented. There are a few tickets in Trac talking about that. Daniel -- Daniel Morissette http://www.mapgears.com/ From bernardo at incargis.com Tue Mar 25 15:35:57 2008 From: bernardo at incargis.com (bernardo) Date: Tue, 25 Mar 2008 23:35:57 +0100 Subject: [mapserver-users] Problem creating WMS Message-ID: <001101c88ec8$9839d730$8101a8c0@ACER5610> Hello all: I'm trying to create a WMS, but i need to use it with a client named "gvSIG". This program cannot read feature info in type "text/html", only "gml" METADATA "wms_title" "Layer" "wms_srs" "EPSG:23030" "wms_abstract" "Layer" "wms_feature_info_mime_type" "gml" #"wms_feature_info_mime_type" "text/html" END That i wanna do is to show a web page or url for "feature info". Any ideas? Bernardo Mart?n Garc?a Director T?cnico iNCARGiS, C.I.G., S.L. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Tue Mar 25 16:57:52 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 25 Mar 2008 17:57:52 -0600 Subject: [mapserver-users] Problem creating WMS In-Reply-To: <001101c88ec8$9839d730$8101a8c0@ACER5610> References: <001101c88ec8$9839d730$8101a8c0@ACER5610> Message-ID: <47E99180.9020604@hostgis.com> bernardo wrote: > This program cannot read feature info in type "text/html", only > "gml" GML is for WFS, which is for sending vector data (as opposed to raster pictures of data) over the net. Perhaps you're interested in WFS and not WMS? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From pal.kristensen at statkart.no Wed Mar 26 00:19:24 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 26 Mar 2008 00:19:24 -0700 (PDT) Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <47E91C7E.8040305@mapgears.com> References: <15873132.post@talk.nabble.com> <16274328.post@talk.nabble.com> <47E90F58.80804@mapgears.com> <47E91C7E.8040305@mapgears.com> Message-ID: <16296685.post@talk.nabble.com> Hi! Daniel! Yes, this is indeed what I'm trying to achieve. I can't answer for others, but for what I've read it looks like the described behavior is what most people wants. I guess someone would like the ability to totally hide some layers from the capabilities document, but in my opinion that's more of a cosmetic need not to disclose to the user how the layers are organized internally in mapserver. After all a layer without a name is not queryable, and that is the main objective. Regards, P?l Kristensen Daniel Morissette-2 wrote: > > Daniel Morissette wrote: > > ... then the following mapfile block... > > LAYER > NAME layer1 > METADATA > "wms_title" "Layer 1" > "wms_group_title" "Group 1" > END > GROUP group1 > MINSCALE 0 > MAXSCALE 10000 > TYPE RASTER > STATUS ON > DATA layer1.tif > END > > LAYER > # NAME intentionally omitted... > METADATA > "wms_title" "Layer 2" > END > GROUP group1 > MINSCALE 10001 > MAXSCALE 100000 > TYPE RASTER > STATUS ON > DATA layer2.tif > END > > > ... produces the following output in GetCapabilities ... this whole > group can be turned on/off at once using LAYERS=group1 in the GetMap > request. Notice that layer 2 has no name in GetCapabilities which is > what we wanted. Omitting the layer name for layer 1 as well would make > it non-selectable as well: > > > group1 > Group 1 > group1 > > layer1 > > Layer 1 > > > > > Layer 2 > > > > > > > We would also need to update the WARNING text to say "optional" instead > of Mandatory. > > If this is indeed what you were trying to achieve then please file a > ticket and I'll make the required changes in MapServer 5.2. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Hiding-overviews-tp15845320p16296685.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at zeelandnet.nl Wed Mar 26 01:09:13 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 26 Mar 2008 09:09:13 +0100 Subject: [mapserver-users] Problem creating WMS In-Reply-To: <47E99180.9020604@hostgis.com> References: <001101c88ec8$9839d730$8101a8c0@ACER5610> <47E99180.9020604@hostgis.com> Message-ID: <47EA04A9.2080908@zeelandnet.nl> svGIS will return text/html only when the WMS server returns a message or error. The GetCapabilities is parsed correctly, but when the GetMap is triggered, it occasionally returns text/html on error. The best thing to do is copy the request string from svGIS to your WMS server to a browser. If it is correct, you will see an image. If it is wrong, The browser will tell you it wants to download a file called "mapserv" or "mapserv.exe" download and save it as "error.xml" then read the contents of the file and you will probably see an error message on why your WMS request fails. Also note that in svGIS you must have a STYLES= element in your request and no Boundingbox or SRS should be there, they are added by svGIS automatically. Is your server public? I can help you test it. Gregor Mosheh schreef: > bernardo wrote: >> This program cannot read feature info in type "text/html", only "gml" > > GML is for WFS, which is for sending vector data (as opposed to raster > pictures of data) over the net. Perhaps you're interested in WFS and > not WMS? > From thy at 42.dk Wed Mar 26 01:55:14 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 26 Mar 2008 09:55:14 +0100 Subject: [mapserver-users] Problem creating WMS In-Reply-To: <47EA04A9.2080908@zeelandnet.nl> References: <001101c88ec8$9839d730$8101a8c0@ACER5610> <47E99180.9020604@hostgis.com> <47EA04A9.2080908@zeelandnet.nl> Message-ID: <20080326085513.GN18018@42.dk> On Wed, Mar 26, Milo van der Linden wrote: > svGIS will return text/html only when the WMS server returns a message > or error. The GetCapabilities is parsed correctly, but when the GetMap > is triggered, it occasionally returns text/html on error. > > The best thing to do is copy the request string from svGIS to your WMS > server to a browser. If it is correct, you will see an image. If it is > wrong, The browser will tell you it wants to download a file called > "mapserv" or "mapserv.exe" You could avoid this by asking for in-image error messages: ...&EXCEPTIONS=application/vnd.ogc.inimage \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From ven.tammineni at gmail.com Wed Mar 26 04:29:01 2008 From: ven.tammineni at gmail.com (venkat) Date: Wed, 26 Mar 2008 16:59:01 +0530 Subject: [mapserver-users] Zoom to Layer C# asp.net Message-ID: <79ad14900803260429y5fd6d7a9r10720e702310fd60@mail.gmail.com> Dear All, I am developing one webapplication using C# asp.net.I want to sample for zoom to layer.how can i implement.and where can i get the code or any syntax help. I am waiting for your great response. Advanced thanks. Regards. Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: From kamenriderichigo at gmail.com Wed Mar 26 06:51:04 2008 From: kamenriderichigo at gmail.com (Kamen Rider) Date: Wed, 26 Mar 2008 10:51:04 -0300 Subject: [mapserver-users] Trouble with polygons Message-ID: Hello, I need something specific: To draw polygons (parcels) over a SHP map, and none of the examples I found on the web worked. Also I have no problems displaying points and I'm using UTM coordinates. This is what I did: 1.- Compiled MS on Linux (CentOS) and Install. MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE 2.- Installed MySql. 3.- Created a table on MySql to store polygons. Here is the description. This table is called "prueba" +----------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+---------+------+-----+---------+-------+ | NUM | int(11) | YES | | NULL | | | ID | int(11) | YES | | NULL | | | poligono | text | YES | | NULL | | +----------+---------+------+-----+---------+-------+ This is what inserted on field poligono: POLYGON((350000 6270000,350000 6275000,360000 6275000,360000 6270000,350000 6270000)) ** 4.- Then created a OVF file, according to this example. (aqidata.ovf) http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/ This is my OVF file : MYSQL:test,user=root,password=xxxxx,host=localhost,port=3306,tables=prueba select NUM, ID, poligono from prueba ID wkbPolygon Using OGRINFO I Tested the connection, this is the result: INFO: Open of `/var/www/cgi-bin/tests/aqidata.ovf' using driver `VRT' successful. Layer name: aqidata Geometry: Polygon Feature Count: 1 Layer SRS WKT: (unknown) NUM: Integer (11.0) ID: Integer (11.0) poligono: Binary (0.0) OGRFeature(aqidata):1 NUM (Integer) = 1 ID (Integer) = 1 poligono (Binary) = 504F4C59474F4E282833353030303020363237303030302C333530303030203632373530... 5.- Then a created a MAP file: MAP NAME "Testing" EXTENT -177773.12 6409691.13 525065 6511086 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 400 400 FONTSET "fonts.txt" SYMBOLSET "symbols.txt" WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END PROJECTION "init=epsg:4326" END LAYER NAME "POLIGONO" DEBUG ON STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "aqidata" CLASS NAME "MyClass" STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 8 END END END END It doesn't show anything, just a white rectangle. Not even an error. But when I display just points it works fine (using "PointsFromColumns"). I hope you could help me. Thanks, Pablo Molina S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.wordsworth at gmail.com Wed Mar 26 08:25:12 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Wed, 26 Mar 2008 11:25:12 -0400 Subject: [mapserver-users] upload/stream data from GPS unit? Message-ID: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmspinto at gmail.com Wed Mar 26 08:39:05 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed, 26 Mar 2008 16:39:05 +0100 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> Message-ID: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmspinto at gmail.com Wed Mar 26 08:41:09 2008 From: cmspinto at gmail.com (Carlos Pinto) Date: Wed, 26 Mar 2008 16:41:09 +0100 Subject: [mapserver-users] Reading a GML file to build a map Message-ID: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Wed Mar 26 09:06:29 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 26 Mar 2008 17:06:29 +0100 Subject: [mapserver-users] Reading a GML file to build a map In-Reply-To: References: Message-ID: <47EA7485.8050709@zeelandnet.nl> Absolutely! But use of mapscript is not necessary. Edit your mapfile. http://mapserver.gis.umn.edu/docs/reference/vector_data/gml Good luck! Milo van der Linden Carlos Pinto schreef: > Hi all, > > I'm new in MapServer and I'm using Openlayers that can be a client of > MapServer. > > What I'm trying to set-up is a grid that is in GML file. And I want > MapServer to build the layer reading the GML file and give it to > OpenLayers (javascript API) would read it as WMS. > > I have instaled MapServer in C# so I'm using MapScript. Is this possible? > > Thanks > > Carlos > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dlowther at coordinatesolutions.com Wed Mar 26 09:07:49 2008 From: dlowther at coordinatesolutions.com (David Lowther) Date: Wed, 26 Mar 2008 12:07:49 -0400 Subject: [mapserver-users] Zoom to Layer C# asp.net In-Reply-To: <79ad14900803260429y5fd6d7a9r10720e702310fd60@mail.gmail.com> References: <79ad14900803260429y5fd6d7a9r10720e702310fd60@mail.gmail.com> Message-ID: <9C37C3C36D7F478B86B580AEE0D267D5@DLQ6600> Venkat, The Mapscript API Reference (http://mapserver.gis.umn.edu/docs/reference/mapscript) is a great resource. If you jump to the layerObj (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#layerobj) you will see there is an extent property. My suggestion for how to zoom to the extents of a layer would be to find that layer in the mapObj (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#mapobj) grab the layerObj.extent and pass it's pieces to the mapObj.setExtent method. BTW - that method signature for mapObj.setExtent appears to have a typo. The second miny should be maxx. For example: Dim l as layerObj = youMap.getLayerByName("yourlayername") yourMap.setExtent(l.extent.minx, l.extent.miny, l.extent.maxx, l.extent.maxx) Hope that helps, David Lowther _____ From: venkat [mailto:ven.tammineni at gmail.com] Sent: Wednesday, March 26, 2008 7:29 AM To: mapserver-dev at lists.osgeo.org Cc: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Zoom to Layer C# asp.net Dear All, I am developing one webapplication using C# asp.net.I want to sample for zoom to layer.how can i implement.and where can i get the code or any syntax help. I am waiting for your great response. Advanced thanks. Regards. Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: From softneedsolution at yahoo.com Wed Mar 26 09:54:56 2008 From: softneedsolution at yahoo.com (Thambirajah Sunthararajah) Date: Wed, 26 Mar 2008 09:54:56 -0700 (PDT) Subject: [mapserver-users] is okay Message-ID: <664502.94932.qm@web33904.mail.mud.yahoo.com> I have confirm my regidtration --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 26 13:49:42 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 26 Mar 2008 21:49:42 +0100 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] OGR connection problem In-Reply-To: <47EAA895.6010209@mec.gov.br> References: <47EAA895.6010209@mec.gov.br> Message-ID: Hi, I'm not sure whether msscmd produces such wkb format that is readable by the OGR ODBC driver at the moment. What is the type of the column it generates for the wkb geometries? I think you should instead try using the mssql2008 plugin driver of mapserver or you could also try producing wkt text fields to be accessed by OGR ODBC. Best regards, Tamas 2008/3/26, Milton C?sar de Souza Leite : > I'm trying to use MS SQL Server 2005 Express with Mapserver > using the virtual spatial data (ODBC/ovf). > So far, I used the MsSqlSpatial for importing and dealing with > the shapefile. The shapefile in question contains the geometryies > of brazilian counties with their coordenates (latlong) as well as their > city halls. > > I installed the SQL Server, and created a database named "geodados", > user "geouser" > and password "123456". > > For importing, I used the following: > > msscmd -deploy -server=SOYUZ\SQLEXPRESS -db=geodados > > msscmd -server=SOYUZ\SQLEXPRESS -db=geodados -table=municipios > -import=shp -shp_filename="55mu2500gc.shp" > > and, it executed without a problem. > > After that, I created an ODBC connection (System DSN with SQL Native > Client) > > For testing it, I used the following ovf files: > > - For Polygons that represents the brazilian Counties(municipios): > ==================================================== > > > ODBC:geouser/123456 at SQLEXPRESS > municipios > SELECT oid, the_geom FROM municipios WHERE geocodigo = > 1500602 > EPSG:4291 > oid > wkbPolygon > > > > > - For Points, that represents the city halls (sedes): > > > > ODBC:geouser/123456 at SQLEXPRESS > sedes > SELECT oid, ST.GeomFromText('POINT( ' + longitude + ' ' + > latitude + ' )', 4291) AS the_geom FROM municipios > EPSG:4291 > oid > wkbPoint > > > > > The mapfile structure is: > > ################################################################################# > > > MAP > NAME "Brasil" > CONFIG "CPL_DEBUG" "ON" > SIZE 600 600 > STATUS ON > EXTENT -73.990250 -33.751583 -28.835656 5.272156 > UNITS METERS > > WEB > IMAGEPATH "C:/Arquivos de programas/ms4w/Apache/htdocs/brasil/imagens" > IMAGEURL "/brasil/imagens" > END > > LEGEND > STATUS ON > END > > LAYER > NAME "municipios" > DEBUG ON > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "teste.ovf" > DATA "municipios" > LABELMAXSCALE 1500000 > LABELCACHE ON > > TRANSPARENCY 100 > > CLASS > LABEL > MINFEATURESIZE 10 > COLOR 10 255 150 > OUTLINECOLOR 0 0 0 > END > END > > TEMPLATE "none.htm" > METADATA > TEMA "brasil" > CLASSE "SIM" > TEXTO "SIM" > ESCALA "250000" > END > > END > > LAYER > NAME "sedes" > STATUS ON > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "teste1.ovf" > DATA "sedes" > LABELMAXSCALE 1500000 > LABELCACHE ON > > TRANSPARENCY 100 > > CLASS > LABEL > MINFEATURESIZE 10 > OUTLINECOLOR 255 255 255 > END > STYLE > SIZE 10 > COLOR 10 255 150 > OUTLINECOLOR 10 255 150 > END > END > > METADATA > TEMA "sedes" > CLASSE "SIM" > TEXTO "SIM" > ESCALA "250000" > END > > END > > END > > ################################################################################# > > > Unfortunately I'm only able to generate the Points showing the city halls, > not the Polygons showing the counties. > I really appreciate any help, on how to solve this problem. > > Best Regards, > > > MCSL > > From dmorissette at mapgears.com Wed Mar 26 13:55:41 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 26 Mar 2008 16:55:41 -0400 Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <16296685.post@talk.nabble.com> References: <15873132.post@talk.nabble.com> <16274328.post@talk.nabble.com> <47E90F58.80804@mapgears.com> <47E91C7E.8040305@mapgears.com> <16296685.post@talk.nabble.com> Message-ID: <47EAB84D.4040304@mapgears.com> P?l Kristensen wrote: > > Yes, this is indeed what I'm trying to achieve. I can't answer for others, > but for what I've read it looks like the described behavior is what most > people wants. I guess someone would like the ability to totally hide some > layers from the capabilities document, but in my opinion that's more of a > cosmetic need not to disclose to the user how the layers are organized > internally in mapserver. After all a layer without a name is not queryable, > and that is the main objective. > FYI I have created a ticket for this: http://trac.osgeo.org/mapserver/ticket/2562 I can't commit this to SVN right now (I'm in the middle of other changes in my source tree) but will try to get back at it ASAP. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Wed Mar 26 15:42:03 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 26 Mar 2008 17:42:03 -0500 Subject: [mapserver-users] Projection configuration for WMS... Message-ID: <47EA8AEB.5157.008F.0@dnr.state.mn.us> Ok, I should know this but I'm sick of beating my head against a wall. I'm using tile cache and a WMS layer . I keep getting a: msWMSLoatGetMapParams(): WMS server error. Invalid SRS given for layer: SRS must be valid for all requested layers. The mapfile has a projection set and every layer has wms_srs metadata set. The srs configured with tilecache is epsg:29615. I've tried all sorts of combinations of lower-case or upper-case epsg yet the error persists. Anyone got a minimal WMS config that they know works with tilecache handy? Steve From sacha.black at gmail.com Wed Mar 26 17:51:14 2008 From: sacha.black at gmail.com (Sacha Black) Date: Wed, 26 Mar 2008 17:51:14 -0700 Subject: [mapserver-users] Mapscript Legend question Message-ID: hi list, right now I do this to get a legend from my map file: $oImg=$oMap->drawLegend(); $oImg->saveImage($szImg.'_legend',$oMap); copy($szImg.'_legend', $szImg.'_legend.png'); $legendW = $oImg->width; $legendH = $oImg->height; $oImg->free(); my question is: is it possible to request the basic legend with a different background color than the background color specified in the mapfile? better yet, is there a way to specify that the background is transparent ? thanks for any suggestions, sacha [apologies if this is a very basic mapscript question, but i couldn't find the answer I was looking for when I searched.] From Steve.Lime at dnr.state.mn.us Wed Mar 26 19:34:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 26 Mar 2008 21:34:30 -0500 Subject: [mapserver-users] Projection configuration for WMS... - Nevermind Message-ID: <47EAC1660200008F00015FD3@co5.dnr.state.mn.us> Got it working, I think it was a transposed number- idiot... >>> "Steve Lime" 03/26/08 5:42 PM >>> Ok, I should know this but I'm sick of beating my head against a wall. I'm using tile cache and a WMS layer . I keep getting a: msWMSLoatGetMapParams(): WMS server error. Invalid SRS given for layer: SRS must be valid for all requested layers. The mapfile has a projection set and every layer has wms_srs metadata set. The srs configured with tilecache is epsg:29615. I've tried all sorts of combinations of lower-case or upper-case epsg yet the error persists. Anyone got a minimal WMS config that they know works with tilecache handy? Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Mar 26 19:36:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 26 Mar 2008 21:36:43 -0500 Subject: [mapserver-users] upload/stream data from GPS unit? Message-ID: <47EAC1EB0200008F00015FD8@co5.dnr.state.mn.us> I believe OGR will ingest simple GML so you could create a layer that way. Steve >>> "Carlos Pinto" 03/26/08 10:39 AM >>> Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos From gabe at agtrix.com Wed Mar 26 19:40:00 2008 From: gabe at agtrix.com (Gabe) Date: Thu, 27 Mar 2008 13:40:00 +1100 Subject: [mapserver-users] Projection Issues Message-ID: Hi I am having trouble with the projection on a raster image. The map is being displayed but the raster layer is shifted by about 210m. The mapfiles main projection is EPSG:4326 I have a .ecw file with this gdalinfo: Driver: ECW/ERMapper Compressed Wavelets Files: aerial_photo_2003.ecw Size is 53334, 53334 Coordinate System is: PROJCS["TMAMG55", GEOGCS["AUSTRALIAN GEODETIC", DATUM["AGD84", SPHEROID["ANS",6378160,298.25]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",147], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["Meter",1]] Origin = (655179.380000000000000,7701896.290000000000000) Pixel Size = (1.500000000000000,-1.500000000000000) Corner Coordinates: Upper Left ( 655179.380, 7701896.290) (148d29'26.84"E, 20d46'34.32"S) Lower Left ( 655179.380, 7621895.290) (148d29'52.92"E, 21d29'55.68"S) Upper Right ( 735180.380, 7701896.290) (149d15'32.31"E, 20d46'4.13"S) Lower Right ( 735180.380, 7621895.290) (149d16'11.81"E, 21d29'24.34"S) Center ( 695179.880, 7661895.790) (148d52'45.97"E, 21d 8'1.22"S) Band 1 Block=53334x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=53334x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=53334x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary I have a vector layer which was a tab file with the projection AMG Zone 55(AGD 84). This was loaded into postgis with ogr2ogr using these options ogr2ogr -overwrite -f "PostgreSQL" PG:"" thefile.tab -nln t_table -lco "GEOMETRY_NAME=the_geom" -t_srs EPSG:4326 -skipfailures. I have done this before on different installations and it usually gives me a table where srid =4326 however in this case it is giving me a newly created srid = 32772 (this installation is different in that we are using postgres 8.3 and ms4w 2.2.7). I have checked and as far as I can tell this layer is being displayed correctly. here are the relevant layers from my mapfile LAYER NAME "Photography_2003" GROUP "Photography_2003" DATA "mackay/Images/aerial_photo_2003.ecw" TYPE RASTER STATUS ON PROJECTION "init=epsg:20355" END METADATA "DESCRIPTION" "Photography 2003" END END And LAYER NAME "Paddocks" GROUP "Paddocks" STATUS ON DATA "the_geom from t_the_table using unique oid using SRID=32772" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "" MAXSCALE 2000000 CLASS NAME "Paddock" STYLE ANGLE 120 WIDTH 1 SIZE 13 COLOR 0 128 0 OUTLINECOLOR 0 128 0 SYMBOL "hatched" END END END Any help would be appreciated. Gabriel From mlinden at zeelandnet.nl Thu Mar 27 01:34:35 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 27 Mar 2008 09:34:35 +0100 Subject: [mapserver-users] Projection Issues In-Reply-To: References: Message-ID: <47EB5C1B.9000909@zeelandnet.nl> The problem might be that in your mapserver proj4 implementation; the epsg:20355 is missing towgs84 parameters. These parameters tell mapserver the shift that is present between the wgs84 ellipsoid and the greenwich ellipsoid. Could you check out the epsg file in your proj/nad directory; look up <20355> there and see if you have something like +towgs84=-70.9,-151.8,-41.4,0,0,0,0 default it says something like no_defs. You can find a description on ellipsoid differences here: http://www.remotesensing.org/proj/gen_parms.html I looked up this somewhere on a mailinglist: ellps=aust_SA towgs84=-133,-48148,0,0,0,0 See if it can help you. Good luck Milo van der Linden Gabe schreef: > Hi > > I am having trouble with the projection on a raster image. The map is being > displayed but the raster layer is shifted by about 210m. > > The mapfiles main projection is EPSG:4326 > > I have a .ecw file with this gdalinfo: > > Driver: ECW/ERMapper Compressed Wavelets > Files: aerial_photo_2003.ecw > Size is 53334, 53334 > Coordinate System is: > PROJCS["TMAMG55", > GEOGCS["AUSTRALIAN GEODETIC", > DATUM["AGD84", > SPHEROID["ANS",6378160,298.25]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",147], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",10000000], > UNIT["Meter",1]] > Origin = (655179.380000000000000,7701896.290000000000000) > Pixel Size = (1.500000000000000,-1.500000000000000) > Corner Coordinates: > Upper Left ( 655179.380, 7701896.290) (148d29'26.84"E, 20d46'34.32"S) > Lower Left ( 655179.380, 7621895.290) (148d29'52.92"E, 21d29'55.68"S) > Upper Right ( 735180.380, 7701896.290) (149d15'32.31"E, 20d46'4.13"S) > Lower Right ( 735180.380, 7621895.290) (149d16'11.81"E, 21d29'24.34"S) > Center ( 695179.880, 7661895.790) (148d52'45.97"E, 21d 8'1.22"S) > Band 1 Block=53334x1 Type=Byte, ColorInterp=Red > Overviews: arbitrary > Band 2 Block=53334x1 Type=Byte, ColorInterp=Green > Overviews: arbitrary > Band 3 Block=53334x1 Type=Byte, ColorInterp=Blue > Overviews: arbitrary > > > I have a vector layer which was a tab file with the projection AMG Zone > 55(AGD 84). This was loaded into postgis with ogr2ogr using these options > ogr2ogr -overwrite -f "PostgreSQL" PG:"" thefile.tab -nln > t_table -lco "GEOMETRY_NAME=the_geom" -t_srs EPSG:4326 -skipfailures. I > have done this before on different installations and it usually gives me a > table where srid =4326 however in this case it is giving me a newly created > srid = 32772 (this installation is different in that we are using postgres > 8.3 and ms4w 2.2.7). I have checked and as far as I can tell this layer is > being displayed correctly. > > here are the relevant layers from my mapfile > > LAYER > NAME "Photography_2003" > GROUP "Photography_2003" > DATA "mackay/Images/aerial_photo_2003.ecw" > TYPE RASTER > STATUS ON > PROJECTION > "init=epsg:20355" > END > METADATA > "DESCRIPTION" "Photography 2003" > END > END > > And > > LAYER > NAME "Paddocks" > GROUP "Paddocks" > STATUS ON > DATA "the_geom from t_the_table using unique oid using SRID=32772" > TYPE POLYGON > CONNECTIONTYPE postgis > CONNECTION "" > MAXSCALE 2000000 > CLASS > NAME "Paddock" > STYLE > ANGLE 120 > WIDTH 1 > SIZE 13 > COLOR 0 128 0 > OUTLINECOLOR 0 128 0 > SYMBOL "hatched" > END > END > END > > Any help would be appreciated. > > Gabriel > > > _______________________________________________ > 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 Mar 27 01:54:04 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 27 Mar 2008 09:54:04 +0100 Subject: [mapserver-users] Re: [mapserver-dev] Build with AGG support at windows In-Reply-To: References: Message-ID: Johan: * you're posting to the devellopment mailing list which is a low traffic list aimed at working on the internals of mapserver. your message belongs to the users mailing list (which I've forwarded it to) * be specific if you want people to be able to help. I happen to know your architecture, but others don't: - your question is how to build on a *windows* platform - the version you're trying to build is *trunk* please keep these recommendations in mind for your next messages. cheers, thomas -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com From simon.mercier at msp.gouv.qc.ca Thu Mar 27 05:41:15 2008 From: simon.mercier at msp.gouv.qc.ca (SIMON MERCIER) Date: Thu, 27 Mar 2008 08:41:15 -0400 Subject: =?Windows-1252?Q?R=E9p.=20:=20[mapserver-users]=20Problem=20crea?= =?Windows-1252?Q?ting=20WMS?= In-Reply-To: <001101c88ec8$9839d730$8101a8c0@ACER5610> References: <001101c88ec8$9839d730$8101a8c0@ACER5610> Message-ID: <47EB5DAB020000E9000045B1@mail.msp.gouv.qc.ca> Hi bernardo for your layer, you need a "wms_name"... to use a getFeatureInfo you need to add (DUMP TRUE) and (TEMPLATE "../templates/todo.html")... the html file dont need to exist...! it's a good idea to specify a TOLERENCE to restrict the search in the map... and use "gml_include_items" and "ows_exclude_items" in metadata.. if you work with a RDBMS(postgis or Oracle) dont forget to add your primary key field off your feature class( ... USING UNIQUE ID ... ) in your DATA tag layer... good luck LAYER NAME "LEP_V_MUNICIPALITE_GEO" GROUP "DGEQ" CONNECTIONTYPE oraclespatial CONNECTION "{..}" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE ID SRID 32198" TYPE POLYGON DUMP TRUE TEMPLATE "../templates/todo.html" TOLERANCE 10 TOLERANCEUNITS PIXELS MAXSCALE 700000 MINSCALE 1 LABELMAXSCALE 200000 LABELMINSCALE 1 LABELITEM "NM_MUNCP" METADATA "wms_group_title" "R?f?rentiel d'adresse" "wms_name" "LEP_V_MUNICIPALITE_GEO" "wms_title" "Municipalit?" "wms_keywordlist" "" "wms_server_version" "1.1.1" "wms_abstract" "(1/700 000)" "wms_srs" "EPSG:2036 EPSG:2037 EPSG:2148 EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304" "wms_extent" "-1100000 -23500 1100000 2253500" "gml_include_items" "all" "gml_exclude_items" "ID" "ows_include_items" "all" "ows_exclude_items" "ID" END PROJECTION "init=epsg:32198" END CLASS NAME "Municipalit?" LABEL OUTLINECOLOR 235 235 235 #--Halo TYPE TRUETYPE FONT "vera" SIZE 8 POSITION AUTO COLOR 123 104 238 MINDISTANCE 50000 BUFFER 10 END STYLE SYMBOL 'line_solid' OUTLINECOLOR 123 104 238 SIZE 1 END END END Simon mercier Minist?re de la S?curit? publique >>> "bernardo" 25/3/2008 18:35 >>> Hello all: I'm trying to create a WMS, but i need to use it with a client named "gvSIG". This program cannot read feature info in type "text/html", only "gml" METADATA "wms_title" "Layer" "wms_srs" "EPSG:23030" "wms_abstract" "Layer" "wms_feature_info_mime_type" "gml" #"wms_feature_info_mime_type" "text/html" END That i wanna do is to show a web page or url for "feature info". Any ideas? Bernardo Mart?n Garc?a Director T?cnico iNCARGiS, C.I.G., S.L. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.wordsworth at gmail.com Thu Mar 27 10:52:07 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Thu, 27 Mar 2008 13:52:07 -0400 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> Message-ID: <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> Please let's not hijack my poor thread :)! Anyway, here's my original question: "How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)?" I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto wrote: > > Hi all, > > I'm new in MapServer and I'm using Openlayers that can be a client of > MapServer. > > What I'm trying to set-up is a grid that is in GML file. And I want > MapServer to build the layer reading the GML file and give it to OpenLayers > (javascript API) would read it as WMS. > > I have instaled MapServer in C# so I'm using MapScript. Is this possible? > > Thanks > > Carlos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth < bill.wordsworth at gmail.com> wrote: > How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)? > Cheers, Bill > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 27 12:10:58 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Mar 2008 14:10:58 -0500 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> Message-ID: <47EBF142.6010002@swoodbridge.com> Bill, There are probably many solutions available depending on the various technical components that you might have in the solution. One possible solution might be something along these lines: 1) stream data to some service that you probably have to build 2) have said service load the points into a postgres/postgis database 3) create a mapfile with a LAYER to disply the data from postgis 4) Use a client like OpenLayers to render you map from mapserver 5) add a timer event to refresh your map every X secs -Steve W http://imaptools.com/ Bill Wordsworth wrote: > Please let's not hijack my poor thread :)! Anyway, here's my original > question: > > "How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)?" > > I've been referred to http://franson.com/gpsgate/ from the usenet > groups. I am looking for something with WPA. > Cheers, Bill > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto > wrote: > > > Hi all, > > I'm new in MapServer and I'm using Openlayers that can be a client > of MapServer. > > What I'm trying to set-up is a grid that is in GML file. And I want > MapServer to build the layer reading the GML file and give it to > OpenLayers (javascript API) would read it as WMS. > > I have instaled MapServer in C# so I'm using MapScript. Is this > possible? > > Thanks > > Carlos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth > > wrote: > > How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)? > Cheers, Bill > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From simon_greig at uk.ibm.com Thu Mar 27 11:13:35 2008 From: simon_greig at uk.ibm.com (Simon Greig) Date: Thu, 27 Mar 2008 18:13:35 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection Message-ID: Hi, This is a follow up to a question a colleague asked a few weeks ago: http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html To summarise: In order to improve performance in our java application that uses the mapscript API we have replaced: mapobj.setProjection("init=epsg:27700"); with private static final String PROJECTION_WK_EPSG_27700 = "PROJCS[\"OSGB 1936 / British National Grid\",GEOGCS[\"OSGB 1936\",DATUM[\"OSGB_1936\",SPHEROID[\"Airy 1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],AUTHORITY[\"EPSG\",\"6277\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4277\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",49],PARAMETER[\"central_meridian\",-2],PARAMETER[\"scale_factor\",0.9996012717],PARAMETER[\"false_easting\",400000],PARAMETER[\"false_northing\",-100000],AUTHORITY[\"EPSG\",\"27700\"]]"; ... mapobj.setWKTProjection(PROJECTION_WK_EPSG_27700); We have also changed the code to use the WKT projection method for each layer. As Rob says the performance improvement is way better and we thought we had a winner. Unfortunately we have a problem based on the size of the image and bounding box. If we ask for a small bounding box (roughly 1 mile by 1 mile) with a 1000x800 PNG image then it works If we ask for a large bounding box (roughly 500 miles by 500 miles) with a 200x200 PNG image then it works If we ask for a large bounding box with a 300x300 PNG image then we get this error: "Layer must have an EPSG or AUTO projection code (in its PROJECTION object or wms_srs metadata)" Unfortunately Rob is on leave and I am looking after things in his absence. Any help is much appreciated :-) Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Mar 27 11:15:31 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 27 Mar 2008 14:15:31 -0400 Subject: =?windows-1252?Q?R=E9p=2E_=3A_=5Bmapserver-users=5D_Pr?= =?windows-1252?Q?oblem_creating_WMS?= In-Reply-To: <47EB5DAB020000E9000045B1@mail.msp.gouv.qc.ca> References: <001101c88ec8$9839d730$8101a8c0@ACER5610> <47EB5DAB020000E9000045B1@mail.msp.gouv.qc.ca> Message-ID: <47EBE443.6090600@mapgears.com> There seems to be lots of confusion around wms_name these days... just to clarify: when setting up a WMS service, it is the layer's NAME member that is used as the name in the GetCapabilities output. The wms_name metadata has no effect on WMS servers, it is a WMS client (i.e. CONNECTIONTYPE WMS) parameter only. Daniel SIMON MERCIER wrote: > Hi bernardo > for your layer, you need a "wms_name"... to use a getFeatureInfo you > need to add (DUMP TRUE) and (TEMPLATE "../templates/todo.html")... the > html file dont need to exist...! it's a good idea to specify a > TOLERENCE to restrict the search in the map... and use > "gml_include_items" and "ows_exclude_items" in metadata.. if you work > with a RDBMS(postgis or Oracle) dont forget to add your primary key > field off your feature class( ... USING UNIQUE ID ... ) in your DATA > tag layer... good luck > > LAYER > NAME "LEP_V_MUNICIPALITE_GEO" > GROUP "DGEQ" > CONNECTIONTYPE oraclespatial > CONNECTION "{..}" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE ID > SRID 32198" > TYPE POLYGON > DUMP TRUE > TEMPLATE "../templates/todo.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > MAXSCALE 700000 > MINSCALE 1 > LABELMAXSCALE 200000 > LABELMINSCALE 1 > LABELITEM "NM_MUNCP" > METADATA > "wms_group_title" "R?f?rentiel d'adresse" > "wms_name" "LEP_V_MUNICIPALITE_GEO" > "wms_title" "Municipalit?" > "wms_keywordlist" "" > "wms_server_version" "1.1.1" > "wms_abstract" "(1/700 000)" > "wms_srs" "EPSG:2036 EPSG:2037 EPSG:2148 > EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919 > EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 > EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304" > "wms_extent" "-1100000 -23500 1100000 2253500" > "gml_include_items" "all" > "gml_exclude_items" "ID" > "ows_include_items" "all" > "ows_exclude_items" "ID" > END > PROJECTION > "init=epsg:32198" > END > CLASS > NAME "Municipalit?" > LABEL > OUTLINECOLOR 235 235 235 #--Halo > TYPE TRUETYPE > FONT "vera" > SIZE 8 > POSITION AUTO > COLOR 123 104 238 > MINDISTANCE 50000 > BUFFER 10 > END > STYLE > SYMBOL 'line_solid' > OUTLINECOLOR 123 104 238 > SIZE 1 > END > END > END > > Simon mercier > Minist?re de la S?curit? publique > > > >>> "bernardo" 25/3/2008 18:35 >>> > Hello all: > > I'm trying to create a WMS, but i need to use it with a client named > "gvSIG". This program cannot read feature info in type "text/html", only > "gml" > > METADATA > "wms_title" "Layer" > "wms_srs" "EPSG:23030" > "wms_abstract" "Layer" > "wms_feature_info_mime_type" "gml" > #"wms_feature_info_mime_type" "text/html" > END > > That i wanna do is to show a web page or url for "feature info". > > Any ideas? > > Bernardo Mart?n Garc?a > Director T?cnico > iNCARGiS, C.I.G., S.L. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From bill.wordsworth at gmail.com Thu Mar 27 11:21:16 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Thu, 27 Mar 2008 14:21:16 -0400 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <47EBF142.6010002@swoodbridge.com> References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> <47EBF142.6010002@swoodbridge.com> Message-ID: <1e07a2bd0803271121g51bf2e3clf342431786183875@mail.gmail.com> Thanks Steve. I am clear about the mapping part. I am not so sure about streaming/uploading near-real-time GPS data from on-site to webserver across WPA? Cheers, Bill On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge wrote: > Bill, > > There are probably many solutions available depending on the various > technical components that you might have in the solution. One possible > solution might be something along these lines: > > 1) stream data to some service that you probably have to build > 2) have said service load the points into a postgres/postgis database > 3) create a mapfile with a LAYER to disply the data from postgis > 4) Use a client like OpenLayers to render you map from mapserver > 5) add a timer event to refresh your map every X secs > > -Steve W > http://imaptools.com/ > > Bill Wordsworth wrote: > > Please let's not hijack my poor thread :)! Anyway, here's my original > > question: > > > > "How can I upload/stream near-real-time GPS data from on-site to > > webserver/MapServer (MapServer 5.x can read *.gpx)?" > > > > I've been referred to http://franson.com/gpsgate/ from the usenet > > groups. I am looking for something with WPA. > > Cheers, Bill > > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto > > wrote: > > > > > > Hi all, > > > > I'm new in MapServer and I'm using Openlayers that can be a client > > of MapServer. > > > > What I'm trying to set-up is a grid that is in GML file. And I want > > MapServer to build the layer reading the GML file and give it to > > OpenLayers (javascript API) would read it as WMS. > > > > I have instaled MapServer in C# so I'm using MapScript. Is this > > possible? > > > > Thanks > > > > Carlos > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org mapserver-users at lists.osgeo.org> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth > > > wrote: > > > > How can I upload/stream near-real-time GPS data from on-site to > > webserver/MapServer (MapServer 5.x can read *.gpx)? > > Cheers, Bill > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 Thu Mar 27 11:37:05 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 27 Mar 2008 14:37:05 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: References: Message-ID: <47EBE951.3060207@mapgears.com> Simon Greig wrote: > > If we ask for a large bounding box with a 300x300 PNG image then we get > this error: > > "Layer must have an EPSG or AUTO projection code (in its PROJECTION > object or wms_srs metadata)" > > Sounds like you may have a layer which uses CONNECTIONTYPE WMS. This is a layer that is actually a connection to a remote WMS service, and one of the things MapServer needs to know in order to build a succesful GetMap request to that remote server is the SRS supported by that server. The simple fix should be to add the following metadata entry in that layer: LAYER ... METADATA "wms_srs" "EPSG:27700" ... END ... END There is no way around using EPSG codes with WMS connections... you have to use them, that's part of the protocol. Also, your use of WKT projections instead of EPSG codes for the top-level PROJECTION in the mapfile is probably going to defeat MapServer's ability to detect that the layer projection and the oputput map projection are the same and will probably result in the on-the-fly reprojection code kicking in for that WMS layer and causing a performance hit. Since you are using WMS services in some of your layers then you may be better use an "init=epsg:27700" definition for the top-level projection block in your mapfile (and move that definition to the top of the epsg file to reduce the performance hit). This way MapServer will detect that the is in the same projection as the output map and no reprojection of the WMS GetMap image will happen. You also wrote that you set a projection on all your layers. This may not be necessary if the data in all layers is already in the same projection as the output map, and actually, you are better not set a projection on your layers unless you really need one, otherwise the reprojection code may kick in to reproject the data in all layers from the WKT projection to EPSG:27700 which are really the same things and don't require reprojection. The reprojection of layer data happens only if (1) the map has a projection set and (2) the layer has a projection set and (3) the two projection definitions are not identical. The test to detect identical projections if fairly simplistic and will be unable to detect that your WKT definition is identical to EPSG:27700 ... that's why mixing both definition types will defeat MapServer and result in unnecessary reprojection of layer data. I hope that makes some sense and doesn't just add to the confusion... Daniel -- Daniel Morissette http://www.mapgears.com/ From bfraser at geoanalytic.com Thu Mar 27 11:46:25 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 27 Mar 2008 12:46:25 -0600 Subject: [mapserver-users] upload/stream data from GPS unit? References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> Message-ID: <2ecf01c8903a$dc04bca0$140002c0@shark> Bill, Maybe. It depends what your expectations are with respect to Near-Real-Time. Mapserver can support GDAL/OGR layers if Mapserver is built with GDAL+Expat (not uncommon, but my version isn't built with Expat). I think the layer definition might look something like: LAYER NAME "gps" TYPE point STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "mygps.gpx" CLASS STYLE COLOR 0 0 255 END END END Hopefully (!) there won't be any file access problems if your GPS s/w is creating the gpx file the same time Mapserver/GDAL is trying to read it. We implemented a tracking system a few years ago by writing a program to insert/update positions (received every 30 minutes per gps unit by email) into a PostgreSQL database and have Mapserver read the positions from there. Using a relational database avoids the file locking problem and provided a few other benefits. Another limitation of Mapserver is the fact that is doesn't push any data to the end application (e.g. browser, WMS/WFS client) until it is requested. For example if you show a raster map in a browser and don't refresh it for an hour, your positions as displayed in the browser are an hour old. Of course it is possible to code some html/javascript to request a new map every so often. If your main interest is in how to get the positions from the GPS receivers into a database, as far as I know there are no open standards used directly by the GPS vendors. One open project is http://www.opendmtp.org/. Another effort is the Ham radio APRS (while the radio part is for non-commercial use only, you might be able to use some the ideas in the upper levels of the protocol). In any case, you'll likely need to do some programming/scripting... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Bill Wordsworth" To: Sent: Thursday, March 27, 2008 11:52 AM Subject: Re: [mapserver-users] upload/stream data from GPS unit? > Please let's not hijack my poor thread :)! Anyway, here's my original > question: > > "How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)?" > > I've been referred to http://franson.com/gpsgate/ from the usenet groups. I > am looking for something with WPA. > Cheers, Bill > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto wrote: > > > > > Hi all, > > > > I'm new in MapServer and I'm using Openlayers that can be a client of > > MapServer. > > > > What I'm trying to set-up is a grid that is in GML file. And I want > > MapServer to build the layer reading the GML file and give it to OpenLayers > > (javascript API) would read it as WMS. > > > > I have instaled MapServer in C# so I'm using MapScript. Is this possible? > > > > Thanks > > > > Carlos > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth < > bill.wordsworth at gmail.com> wrote: > > > How can I upload/stream near-real-time GPS data from on-site to > > webserver/MapServer (MapServer 5.x can read *.gpx)? > > Cheers, Bill > > > ------------------------------------------------------------ -------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From elvehjem at runestone.net Thu Mar 27 11:40:40 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Thu, 27 Mar 2008 13:40:40 -0500 Subject: [mapserver-users] upload/stream data from GPS unit? References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com><1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com><47EBF142.6010002@swoodbridge.com> <1e07a2bd0803271121g51bf2e3clf342431786183875@mail.gmail.com> Message-ID: <03ef01c8903a$14d40000$6401a8c0@Kens> Bill, Am still not particularly proficient with MapServer to help with the "how" -- instead, I'm curious about the "how near" real time. Within 10 seconds or 10 minutes? Also, how much data? if it is just x,y,z info could you have the machine that's reading the GPS append points to a (say) ShapeFile, and send the whole thing? This would work if your ShapeFile held the last couple of hundred points; Then it might be possible to display those points + another layer that would have an accumulation of the points, and a process on the server that would append the newest points to the accumulated file. I'll confess to being more than a little curious about what you are doing... Ken ----- Original Message ----- From: Bill Wordsworth To: mapserver-users at lists.osgeo.org Sent: Thursday, March 27, 2008 1:21 PM Subject: Re: [mapserver-users] upload/stream data from GPS unit? Thanks Steve. I am clear about the mapping part. I am not so sure about streaming/uploading near-real-time GPS data from on-site to webserver across WPA? Cheers, Bill On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge wrote: Bill, There are probably many solutions available depending on the various technical components that you might have in the solution. One possible solution might be something along these lines: 1) stream data to some service that you probably have to build 2) have said service load the points into a postgres/postgis database 3) create a mapfile with a LAYER to disply the data from postgis 4) Use a client like OpenLayers to render you map from mapserver 5) add a timer event to refresh your map every X secs -Steve W http://imaptools.com/ Bill Wordsworth wrote: > Please let's not hijack my poor thread :)! Anyway, here's my original > question: > > "How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)?" > > I've been referred to http://franson.com/gpsgate/ from the usenet > groups. I am looking for something with WPA. > Cheers, Bill > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto > wrote: > > > Hi all, > > I'm new in MapServer and I'm using Openlayers that can be a client > of MapServer. > > What I'm trying to set-up is a grid that is in GML file. And I want > MapServer to build the layer reading the GML file and give it to > OpenLayers (javascript API) would read it as WMS. > > I have instaled MapServer in C# so I'm using MapScript. Is this > possible? > > Thanks > > Carlos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth > > wrote: > > How can I upload/stream near-real-time GPS data from on-site to > webserver/MapServer (MapServer 5.x can read *.gpx)? > Cheers, Bill > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 David.Fawcett at state.mn.us Thu Mar 27 11:43:32 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 27 Mar 2008 13:43:32 -0500 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBBD0@s-sp22.pca.state.mn.us> My guess is that you will need some sort of device to log the data from the GPS and then transmit it across a wireless network (pager, SMS, cell phone). At your base station, you would have capture the messages, parse them, and then probably stuff the data into a database (PostGIS?). Your MapServer map file could then point to the spatial data layer in PostGIS. Every hit to MapServer would show the latest data. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Wordsworth Sent: Thursday, March 27, 2008 12:52 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upload/stream data from GPS unit? Please let's not hijack my poor thread :)! Anyway, here's my original question: "How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)?" I've been referred to http://franson.com/gpsgate/ from the usenet groups. I am looking for something with WPA. Cheers, Bill On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto wrote: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth wrote: How can I upload/stream near-real-time GPS data from on-site to webserver/MapServer (MapServer 5.x can read *.gpx)? Cheers, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeshua at OpenOSX.com Thu Mar 27 12:07:13 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Thu, 27 Mar 2008 13:07:13 -0600 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBBD0@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBBD0@s-sp22.pca.state.mn.us> Message-ID: <37ED0928-B8E5-49CD-BC21-9CB3738E971F@OpenOSX.com> On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote: > My guess is that you will need some sort of device to log the data > from the GPS and then transmit it across a wireless network (pager, > SMS, cell phone). At your base station, you would have capture the > messages, parse them, and then probably stuff the data into a > database (PostGIS?). > > Your MapServer map file could then point to the spatial data layer > in PostGIS. Every hit to MapServer would show the latest data. Bill, I would just like to mention that if help with automating this is needed, I could easily develop a solution for Mac OS X. GIS automation on the Mac is my specialty. ;) Cheers, Jeshua Lacock, Owner phone: 877.240.1364 From woodbri at swoodbridge.com Thu Mar 27 13:42:18 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Mar 2008 15:42:18 -0500 Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <1e07a2bd0803271121g51bf2e3clf342431786183875@mail.gmail.com> References: <1e07a2bd0803260825j7362a7a3kac2debc229de6e08@mail.gmail.com> <1e07a2bd0803271052k36f66b3et4fcab5517c96cfad@mail.gmail.com> <47EBF142.6010002@swoodbridge.com> <1e07a2bd0803271121g51bf2e3clf342431786183875@mail.gmail.com> Message-ID: <47EC06AA.9090200@swoodbridge.com> Bill Wordsworth wrote: > Thanks Steve. I am clear about the mapping part. I am not so sure about > streaming/uploading near-real-time GPS data from on-site to webserver > across WPA? I can not speak to WPA, I'm not sure I know that protocol, but if have a cell phone that that can do HTTP GET requests to a server, you can trivially write a php page the gets the url and writes the fields to a database and have mapserver display that. So that is pretty real-time. So you phone would ping a url like http://yourserver.com/track.php?lat=&lon=&device=&... And then write a track.php to fetch the paramaters and stuff them into the DB. -Steve W > Cheers, Bill > On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge > > wrote: > > Bill, > > There are probably many solutions available depending on the various > technical components that you might have in the solution. One possible > solution might be something along these lines: > > 1) stream data to some service that you probably have to build > 2) have said service load the points into a postgres/postgis database > 3) create a mapfile with a LAYER to disply the data from postgis > 4) Use a client like OpenLayers to render you map from mapserver > 5) add a timer event to refresh your map every X secs > > -Steve W > http://imaptools.com/ > > Bill Wordsworth wrote: > > Please let's not hijack my poor thread :)! Anyway, here's my original > > question: > > > > "How can I upload/stream near-real-time GPS data from on-site to > > webserver/MapServer (MapServer 5.x can read *.gpx)?" > > > > I've been referred to http://franson.com/gpsgate/ from the usenet > > groups. I am looking for something with WPA. > > Cheers, Bill > > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto > > > >> wrote: > > > > > > Hi all, > > > > I'm new in MapServer and I'm using Openlayers that can be a > client > > of MapServer. > > > > What I'm trying to set-up is a grid that is in GML file. And > I want > > MapServer to build the layer reading the GML file and give it to > > OpenLayers (javascript API) would read it as WMS. > > > > I have instaled MapServer in C# so I'm using MapScript. Is this > > possible? > > > > Thanks > > > > Carlos > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth > > > >> wrote: > > > > How can I upload/stream near-real-time GPS data from on-site to > > webserver/MapServer (MapServer 5.x can read *.gpx)? > > Cheers, Bill > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 warmerdam at pobox.com Thu Mar 27 13:12:37 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 27 Mar 2008 16:12:37 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: References: Message-ID: <47EBFFB5.1070203@pobox.com> Simon Greig wrote: > Hi, > > This is a follow up to a question a colleague asked a few weeks ago: > http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html > > To summarise: > > In order to improve performance in our java application that uses the > mapscript API we have replaced: > > mapobj.setProjection("init=epsg:27700"); > > with > > private static final String PROJECTION_WK_EPSG_27700 = "PROJCS[\"OSGB 1936 > / British National Grid\",GEOGCS[\"OSGB > 1936\",DATUM[\"OSGB_1936\",SPHEROID[\"Airy > 1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],AUTHORITY[\"EPSG\",\"6277\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4277\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",49],PARAMETER[\"central_meridian\",-2],PARAMETER[\"scale_factor\",0.9996012717],PARAMETER[\"false_easting\",400000],PARAMETER[\"false_northing\",-100000],AUTHORITY[\"EPSG\",\"27700\"]]"; > > ... > > mapobj.setWKTProjection(PROJECTION_WK_EPSG_27700); > > > We have also changed the code to use the WKT projection method for each > layer. > > As Rob says the performance improvement is way better and we thought we > had a winner. > Unfortunately we have a problem based on the size of the image and > bounding box. > > If we ask for a small bounding box (roughly 1 mile by 1 mile) with a > 1000x800 PNG image then it works > If we ask for a large bounding box (roughly 500 miles by 500 miles) with a > 200x200 PNG image then it works > If we ask for a large bounding box with a 300x300 PNG image then we get > this error: > > "Layer must have an EPSG or AUTO projection code (in its PROJECTION object > or wms_srs metadata)" > > > Unfortunately Rob is on leave and I am looking after things in his > absence. Any help is much appreciated :-) Simon, I'm not sure what is going on here exactly. I *suspect* that your bigger window is the first time some of this data is getting pulled in but I'm not sure. Do you still set the corresponding epsg code in the wms_srs metadata? It may be that you could skip the WKT operations and just re-order the epsg init file so that 27700 is at the top to get equally good speed up with lets side effects. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From pcreso at pcreso.com Thu Mar 27 13:43:52 2008 From: pcreso at pcreso.com (Brent Wood) Date: Thu, 27 Mar 2008 13:43:52 -0700 (PDT) Subject: [mapserver-users] upload/stream data from GPS unit? In-Reply-To: <37ED0928-B8E5-49CD-BC21-9CB3738E971F@OpenOSX.com> Message-ID: <66571.11256.qm@web33205.mail.mud.yahoo.com> > On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote: > My guess is that you will need some sort of device to log the data > from the GPS and then transmit it across a wireless network (pager, > SMS, cell phone). At your base station, you would have capture the > messages, parse them, and then probably stuff the data into a > database (PostGIS?). > > Your MapServer map file could then point to the spatial data layer > in PostGIS. Every hit to MapServer would show the latest data. This is exactly the approach I have taken in providing similar data showing vessel movements & track. It works well. Database views & queries provide a simple latest (ie, current) position as well as easily permitting automated building of objects like daily paths, etc, for long term warehousing of conveniently packaged path data. Cheers, Brent Wood From dr.chamberlain at gmail.com Thu Mar 27 14:16:11 2008 From: dr.chamberlain at gmail.com (Carlos_Molina) Date: Thu, 27 Mar 2008 14:16:11 -0700 (PDT) Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault Message-ID: <16333076.post@talk.nabble.com> Dave Fuhry wrote: > > Ivan, > > p.mapper seems to use the typical php > {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up > calling the same msPOSTGIS* functions as everything else. > > I can't seem to reproduce your problem with a simple testcase > (basically, the attached files). It might help if you can set > log_min_duration_statement = 0 in your postgresql.conf, reproduce the > problem, and send the output from your postgresql log file. It will > show all commands issued to the database, including the BEGIN, and the > DECLARE CURSOR ..., and FETCH for every layer. > > I can setup p.mapper if that's necessary to reproduce the problem. > > (By the way, I assume you're not using an ancient version of > postgis, in the 0.5 - 0.6 era. There is an alternate codepath for > that, which I have not tested.) > > Thanks, > > Dave > Hello Dave, I've tried first and second version of your patch and both resolved my first issue of many many BEGIN statements being issued by cursors so my application went back to running smoothly. The sad part is that another issued arised from this patch and It's when using python mapscript and the drawQuery call. If i just render my .map file with draw() I get no trouble, but if I open my map file, get a single layer from it, query the layer, open the layer to retrieve results and call drawQuery() afterwards to render everything like I used to do before the patch, I get the following error(I resumed the sql statements): BEGIN DECLARE mycursor BINARY CURSOR FOR SELECT... // queryByPoint FETCH ALL in mycursor CLOSE mycursor SELECT * FROM... "same as above" WHILE false LIMIT 0 // Dont know why this is issued, might be openLayer or just to get the field names of the table WARNING: there is already a transaction in progress BEGIN DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(0) FETCH ALL in mycursor2 CLOSE mycursor2 ROLLBACK BEGIN DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) FETCH ALL in mycursor2 CLOSE mycursor2 ROLLBACK ERROR: DECLARE CURSOR may only be used in transaction blocks WARNING: there is no transaction in progress statement: rollback statement: begin ERROR: cursor "mycursor" does not exist ABORT Regards Carlos Molina -- View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p16333076.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Thu Mar 27 14:26:30 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 27 Mar 2008 14:26:30 -0700 (PDT) Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <47EAB84D.4040304@mapgears.com> References: <15873132.post@talk.nabble.com> <16274328.post@talk.nabble.com> <47E90F58.80804@mapgears.com> <47E91C7E.8040305@mapgears.com> <16296685.post@talk.nabble.com> <47EAB84D.4040304@mapgears.com> Message-ID: <16335723.post@talk.nabble.com> Thanks! I really appreciate the quick response, and the effort you developers put in to meet the needs of the MapServer community users. Regards, P?l Kristensen Daniel Morissette-2 wrote: > > > FYI I have created a ticket for this: > http://trac.osgeo.org/mapserver/ticket/2562 > > I can't commit this to SVN right now (I'm in the middle of other changes > in my source tree) but will try to get back at it ASAP. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Hiding-overviews-tp15845320p16335723.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tomcampitelli at yahoo.com Thu Mar 27 17:51:41 2008 From: tomcampitelli at yahoo.com (Thomas Campitelli) Date: Thu, 27 Mar 2008 17:51:41 -0700 (PDT) Subject: [mapserver-users] Polygon labeling Message-ID: <581472.36809.qm@web57904.mail.re3.yahoo.com> Howdy Folks, I would like to label the polygons in my map, however none of the labels seem to fall within my polygons. Instead, they are labeled outside of each shape. I am displaying the polygons as lines in the map. Is that my problem? If so, how do I get around it. I have no wish to fill my polygons with color. Thanks in advance for any help. The relevant portion of my map file is shown below: LAYER # Counties polygon layer begins here NAME CountyLine DATA pgn_ca_county STATUS DEFAULT TYPE LINE LABELITEM "Name" CLASS NAME "County Boundary" STYLE COLOR 0 115 76 WIDTH 1 END LABEL # Labeling Test COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END END END ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 27 19:10:15 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Mar 2008 21:10:15 -0500 Subject: [mapserver-users] Polygon labeling In-Reply-To: <581472.36809.qm@web57904.mail.re3.yahoo.com> References: <581472.36809.qm@web57904.mail.re3.yahoo.com> Message-ID: <47EC5387.40004@swoodbridge.com> Try TYPE POLYGON instead. Thomas Campitelli wrote: > > Howdy Folks, > > I would like to label the polygons in my map, however none of the labels > seem to fall within my polygons. Instead, they are labeled outside of > each shape. I am displaying the polygons as lines in the map. Is that my > problem? If so, how do I get around it. I have no wish to fill my > polygons with color. Thanks in advance for any help. The relevant > portion of my map file is shown below: > > LAYER # Counties polygon layer begins here > > NAME CountyLine > DATA pgn_ca_county > STATUS DEFAULT > TYPE LINE > > LABELITEM "Name" > > > CLASS > NAME "County Boundary" > STYLE > COLOR 0 115 76 > WIDTH 1 > END > > > LABEL # Labeling Test > COLOR 132 31 31 > #SHADOWCOLOR 218 218 218 > #SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 200 > BUFFER 4 > END > END > END > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tomcampitelli at yahoo.com Thu Mar 27 18:12:38 2008 From: tomcampitelli at yahoo.com (Thomas Campitelli) Date: Thu, 27 Mar 2008 18:12:38 -0700 (PDT) Subject: [mapserver-users] Polygon labeling Message-ID: <151381.96773.qm@web57914.mail.re3.yahoo.com> Many thanks for the response. However, it still did not fix this issue. It just puts the label directly on one of the border lines. I suspect that I need to include the county boundaries as a polygon layer and label them. I will see if that gets me anywhere. ----- Original Message ---- From: "tchaddad at gmail.com" To: Thomas Campitelli Sent: Thursday, March 27, 2008 7:06:18 PM Subject: Re: [mapserver-users] Polygon labeling Try: POSITION CC -----Original Message----- From: Thomas Campitelli Date: Thu, 27 Mar 2008 17:51:41 To:mapserver-users at lists.osgeo.org Subject: [mapserver-users] Polygon labeling Howdy Folks, I would like to label the polygons in my map, however none of the labels seem to fall within my polygons. Instead, they are labeled outside of each shape. I am displaying the polygons as lines in the map. Is that my problem? If so, how do I get around it. I have no wish to fill my polygons with color. Thanks in advance for any help. The relevant portion of my map file is shown below: LAYER # Counties polygon layer begins here NAME CountyLine DATA pgn_ca_county STATUS DEFAULT TYPE LINE LABELITEM "Name" CLASS NAME "County Boundary" STYLE COLOR 0 115 76 WIDTH 1 END LABEL # Labeling Test COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END END END ---------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Mar 27 20:16:01 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 27 Mar 2008 21:16:01 -0600 Subject: [mapserver-users] Resampling and image quality? Message-ID: <47EC62F1.10109@hostgis.com> Hi, all. We're seeing some distortion in an image, a loss of viewing quality, and am hoping that y'all can provide some insight into what may be the issue. Here are the URLs: http://dev.geowake.com/chart.test/index.php http://ms2.geowake.com/ Yes, it's Google Maps, but bear with me. :) The "dev" one is using a PNG sliced for use in Google Maps. The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile and without slicing since the idea here is to use WMS and save a lot of work as well as being vendor-neutral. You'll see that the "dev" one has a much "smoother" look to it. If you zoom in three notches, you can read the map's title clearly. The Mapserver WMS version, the text is very obviously blocky even if you zoom in 4 notches. As you keep zooming in, the quality difference becomes more obvious as you can read the PNG's smaller text but not the WMS's. So, what to do? I have tried and eliminated several possibilities, and am stumped. - Source image quality; the PNGs on both sides are visually identical in an image viewer. I have tried the source image in TIFF and PNG with various options. - Bad world file; the spatial extent matches that of the other map, and I've checked the math repeatedly and found it A-OK - Image format options; I have tried every image format supported, and the image always comes out looking the same, so it's not interlacing gone wrong, nor lossy JPEG compression, etc. The outputformat block is set to generate PNG-24 RGBA, and I have verified by downloading from the WMS that it is doing so. Possibilities I've not yet exhausted: - Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image quality but only very slightly. - Reprojection; the images are in WGS84 (EPSG 4326) and I know that Google uses their weird Mercator (54004). I added 54004 to our EPSG file, and have tried various approaches such as reprojecting the image to 54004 ahead of time, and using 54004's numbers in a worldfile so there'd be no reprojection at all, but the effect is always the same. Any ideas what's up here? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From woodbri at swoodbridge.com Thu Mar 27 21:45:11 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Mar 2008 23:45:11 -0500 Subject: [mapserver-users] Label Follows streets alignment issue Message-ID: <47EC77D7.3070401@swoodbridge.com> Hi Thomas, I have noticed that labels in a google style symbology that follow a straight line segment at approximately 45 degrees upper left to lower right and slightly off being aligned with the street. It is just enough to be annoying once you notice it. Have you noticed this? Can this be fixed? Thanks in advance, -Steve W From woodbri at swoodbridge.com Thu Mar 27 21:57:49 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Mar 2008 23:57:49 -0500 Subject: [mapserver-users] Label Follows streets alignment issue Message-ID: <47EC7ACD.8070803@swoodbridge.com> Hi Thomas, I have noticed that labels in a google style symbology that follow a straight line segment at approximately 45 degrees upper left to lower right and slightly off being aligned with the street. It is just enough to be annoying once you notice it. Have you noticed this? Can this be fixed? Thanks in advance, -Steve W From punk.kish at gmail.com Thu Mar 27 21:02:22 2008 From: punk.kish at gmail.com (P Kishor) Date: Thu, 27 Mar 2008 23:02:22 -0500 Subject: [mapserver-users] Resampling and image quality? In-Reply-To: <47EC62F1.10109@hostgis.com> References: <47EC62F1.10109@hostgis.com> Message-ID: On 3/27/08, Gregor Mosheh wrote: > Hi, all. We're seeing some distortion in an image, a loss of viewing > quality, and am hoping that y'all can provide some insight into what may > be the issue. > > Here are the URLs: > http://dev.geowake.com/chart.test/index.php > http://ms2.geowake.com/ > Yes, it's Google Maps, but bear with me. :) > The "dev" one is using a PNG sliced for use in Google Maps. > The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile > and without slicing since the idea here is to use WMS and save a lot of > work as well as being vendor-neutral. > > You'll see that the "dev" one has a much "smoother" look to it. If you > zoom in three notches, you can read the map's title clearly. The > Mapserver WMS version, the text is very obviously blocky even if you > zoom in 4 notches. As you keep zooming in, the quality difference > becomes more obvious as you can read the PNG's smaller text but not the > WMS's. yikes! The ms2 version is fugly. > > > So, what to do? I have tried and eliminated several possibilities, and > am stumped. This sounds really silly, but have you tried with exactly the same image in both instances? That is, not the sliced version for MapServer, but exactly the same one you have for Google Maps? > > - Source image quality; the PNGs on both sides are visually identical in > an image viewer. I have tried the source image in TIFF and PNG with > various options. > > - Bad world file; the spatial extent matches that of the other map, and > I've checked the math repeatedly and found it A-OK > > - Image format options; I have tried every image format supported, and > the image always comes out looking the same, so it's not interlacing > gone wrong, nor lossy JPEG compression, etc. The outputformat block is > set to generate PNG-24 RGBA, and I have verified by downloading from the > WMS that it is doing so. > > Possibilities I've not yet exhausted: > > - Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image > quality but only very slightly. > > - Reprojection; the images are in WGS84 (EPSG 4326) and I know that > Google uses their weird Mercator (54004). I added 54004 to our EPSG > file, and have tried various approaches such as reprojecting the image > to 54004 ahead of time, and using 54004's numbers in a worldfile so > there'd be no reprojection at all, but the effect is always the same. > > > Any ideas what's up here? > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ From gregor at hostgis.com Thu Mar 27 21:30:10 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 27 Mar 2008 22:30:10 -0600 Subject: [mapserver-users] Resampling and image quality? In-Reply-To: References: <47EC62F1.10109@hostgis.com> Message-ID: <47EC7452.6010604@hostgis.com> I'll be on the plane all day tomorrow, on my way to DC for the PostgreSQL East conference. If I don't reply, it's not personal. :) P Kishor wrote: > yikes! The ms2 version is fugly. M hm. This is the first time we've ever compared the PNG with the Mapserver output side by side, especially in a situation where the raster has text in it, so I'm also surprised! > This sounds really silly, but have you tried with exactly the same > image in both instances? That is, not the sliced version for > MapServer, but exactly the same one you have for Google Maps? The one I'm given for use in Mapserver, is the same PNG except left whole and with a world file added. The "plain PNG" version is sliced for use in a GTileoverlay, but is otherwise the same. Or did I misunderstand the question? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Thu Mar 27 21:31:03 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 27 Mar 2008 22:31:03 -0600 Subject: [mapserver-users] Resampling and image quality? Message-ID: <47EC7487.3090808@hostgis.com> Frank Warmerdam wrote: > I zoomed in on both, and I don't see the effect you are talking about. > Perhaps you need something a little less error prone, like screen > snaps that demonstrate what you are talking about! Sure thing: http://ms2.geowake.com/ms_fullview.png http://ms2.geowake.com/ms_3_notches_in.png http://ms2.geowake.com/ms_5_notches_in.png http://ms2.geowake.com/png_fullview.png http://ms2.geowake.com/png_3_notches_in.png http://ms2.geowake.com/png_5_notches_in.png Note how the png ones lack the jagged "crunchy" quality, how even the smaller text is legible and smooth at the tighter zoomlevels. The Mapserver one, though, is illegible and looks as if it's been downsized or something. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From punk.kish at gmail.com Thu Mar 27 21:45:43 2008 From: punk.kish at gmail.com (P Kishor) Date: Thu, 27 Mar 2008 23:45:43 -0500 Subject: [mapserver-users] Resampling and image quality? In-Reply-To: <47EC7452.6010604@hostgis.com> References: <47EC62F1.10109@hostgis.com> <47EC7452.6010604@hostgis.com> Message-ID: On 3/27/08, Gregor Mosheh wrote: > I'll be on the plane all day tomorrow, on my way to DC for the > PostgreSQL East conference. If I don't reply, it's not personal. :) > > > > P Kishor wrote: > > yikes! The ms2 version is fugly. > > > M hm. This is the first time we've ever compared the PNG with the > Mapserver output side by side, especially in a situation where the > raster has text in it, so I'm also surprised! > > > > > This sounds really silly, but have you tried with exactly the same > > image in both instances? That is, not the sliced version for > > MapServer, but exactly the same one you have for Google Maps? > > > The one I'm given for use in Mapserver, is the same PNG except left > whole and with a world file added. The "plain PNG" version is sliced for > use in a GTileoverlay, but is otherwise the same. > > Or did I misunderstand the question? Actually, I misspoke, nevertheless, you misunderstood as well. I understand that you start with the same PNG, then you duplicate it, slice one of them up for GMaps, and serve the whole one to MapServer. What I meant to say was -- use exactly the same PNG for both tests; that is, either use the sliced one for both GMaps and MapServer, or the whole one for both. I know this sounds silly, but hey, it eliminates even that remote possibility. In any case, the problem is probably somewhere else. > > > -- > > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From warmerdam at pobox.com Thu Mar 27 21:45:32 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 28 Mar 2008 00:45:32 -0400 Subject: [mapserver-users] Resampling and image quality? In-Reply-To: <47EC62F1.10109@hostgis.com> References: <47EC62F1.10109@hostgis.com> Message-ID: <47EC77EC.8090605@pobox.com> Gregor Mosheh wrote: > Hi, all. We're seeing some distortion in an image, a loss of viewing > quality, and am hoping that y'all can provide some insight into what may > be the issue. > > Here are the URLs: > http://dev.geowake.com/chart.test/index.php > http://ms2.geowake.com/ > Yes, it's Google Maps, but bear with me. :) > The "dev" one is using a PNG sliced for use in Google Maps. > The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile > and without slicing since the idea here is to use WMS and save a lot of > work as well as being vendor-neutral. Gregor, Thanks for the direct pngs. I know it is was really obvious to you, but there wasn't enough of the maps paged in before I started zooming for me to even realize there was a subregion that was different. > You'll see that the "dev" one has a much "smoother" look to it. If you > zoom in three notches, you can read the map's title clearly. The > Mapserver WMS version, the text is very obviously blocky even if you > zoom in 4 notches. As you keep zooming in, the quality difference > becomes more obvious as you can read the PNG's smaller text but not the > WMS's. > > > So, what to do? I have tried and eliminated several possibilities, and > am stumped. > > - Source image quality; the PNGs on both sides are visually identical in > an image viewer. I have tried the source image in TIFF and PNG with > various options. > > - Bad world file; the spatial extent matches that of the other map, and > I've checked the math repeatedly and found it A-OK > > - Image format options; I have tried every image format supported, and > the image always comes out looking the same, so it's not interlacing > gone wrong, nor lossy JPEG compression, etc. The outputformat block is > set to generate PNG-24 RGBA, and I have verified by downloading from the > WMS that it is doing so. > > Possibilities I've not yet exhausted: > > - Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image > quality but only very slightly. > > - Reprojection; the images are in WGS84 (EPSG 4326) and I know that > Google uses their weird Mercator (54004). I added 54004 to our EPSG > file, and have tried various approaches such as reprojecting the image > to 54004 ahead of time, and using 54004's numbers in a worldfile so > there'd be no reprojection at all, but the effect is always the same. I guess I don't get the process that the nice image is going through. Are you having to pre-reproject it to Mercator before slicing it up for the exact Google maps zoom levels? Or do you just provide it in 4326 and google maps takes care of reprojecting it? Are the source PNGs paletted or RGB 24bit? Paletted images won't respond well to alternative resampling algorithms. I'm guessing that the nice images are effectively bilinearly interpolated in RGB space though I'm not clear on where that is happening. Selecting PROCESSING "RESAMPLE=BILINEAR" and giving it 24bit RGB input files should give something fairly similar I'd think. One problem is that Mapserver actually leaves it to GDAL to do much of the downsampling in highly decimated situations. So it is also important to build overview levels in some appropriate fashion. Likely you will need to do this with -r average for gdaladdo. It *might* be possible to fool with the OVERSAMPLE_RATIO processing option in your map to give a better bilinear resampling without having to pre-build overviews. This might also improve the appearance of average resampling. Something like: PROCESSING "OVERSAMPLE_RATIO=16" But basically, resampling fine text like this (or delicate linework) from a raster source is just a crappy situation to be in. Even the good results are pretty crappy in my opinion. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From thomas.bonfort at gmail.com Fri Mar 28 01:57:02 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 28 Mar 2008 09:57:02 +0100 Subject: [mapserver-users] Label Follows streets alignment issue In-Reply-To: <47EC7ACD.8070803@swoodbridge.com> References: <47EC7ACD.8070803@swoodbridge.com> Message-ID: Steve, I haven't noticed anything special, nor do I really understand what problem you mention. attached is a test image I used to check. do you see anything wrong in it? could you make a minimal test case to reproduce, or attach an image showing the problem? cheers, thomas -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com On Fri, Mar 28, 2008 at 5:57 AM, Stephen Woodbridge wrote: > > Hi Thomas, > > I have noticed that labels in a google style symbology that follow a > straight line segment at approximately 45 degrees upper left to lower > right and slightly off being aligned with the street. > > It is just enough to be annoying once you notice it. > > Have you noticed this? > Can this be fixed? > > Thanks in advance, > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: bug.png Type: image/png Size: 21603 bytes Desc: not available URL: From ven.tammineni at gmail.com Fri Mar 28 04:27:57 2008 From: ven.tammineni at gmail.com (venkat) Date: Fri, 28 Mar 2008 16:57:57 +0530 Subject: [mapserver-users] Reg:-Creating Charting in Mapsercer C# asp.net Message-ID: <79ad14900803280427j2d013807s8f83ad009a320550@mail.gmail.com> Dear All, I am Venkat.In my web application i need to create Pie Charting.When i looked into Mapserver url it is saying that Mapserver5.0 will support Pie Charting.But i am using ms4w_2.2.7.I do not know what is difference between both these.When compile below map file code i am getting error called TYPE CHART is not found. Where i am doing mistake.Please can you any help me .please make me understand difference between both ms4w_2.2.7 and mapserver.Please ignore the fields i using. I am waiting for your great response. Advanced Thanks. Here is my Code... LAYER NAME "Ages" TYPE CHART CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from world_cities_poi" PROCESSING "CHART_TYPE=pie" PROCESSING "CHART_SIZE=30" STATUS ON CLASS NAME "Population Age 0-19" STYLE SIZE [v1006] COLOR 255 244 237 END END CLASS NAME "Population Age 20-39" STYLE SIZE [v1007] COLOR 255 217 191 END END CLASS NAME "Population Age 40-59" STYLE SIZE [v1008] COLOR 255 186 140 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From JXA at cowi.dk Fri Mar 28 05:46:42 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Fri, 28 Mar 2008 13:46:42 +0100 Subject: [mapserver-users] legend In-Reply-To: <47EC77EC.8090605@pobox.com> References: <47EC62F1.10109@hostgis.com> <47EC77EC.8090605@pobox.com> Message-ID: Hello all Iam trying figure out how to control the size ( width and height in pixel ) of the legend if I use the following, it ignores the width and height properties and makes its own width and height that fit the image is there any way that I can control it ? $map->set("height", 400); $map->set("width", 400); $image=$map->drawLegend(); Jeppe From szekerest at gmail.com Fri Mar 28 05:52:43 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 28 Mar 2008 13:52:43 +0100 Subject: [mapserver-users] Google Summer of Code student application deadline approaching! Message-ID: Dear Students, For those who interest in taking part of the development of MapServer, don't hesitate to submit your application in time. The students can only modify their applications until Mon, March 31st 12:00 PST. For more information about details of the collaboration see: http://code.google.com/opensource/gsoc/2008/faqs.html http://groups.google.com/group/google-summer-of-code-announce/web/guide-to-the-gsoc-web-app-for-student-applicants Here you can see some project ideas for the MapServer project: http://wiki.osgeo.org/wiki/MapServer_2008_SOC_Ideas Best regards, Tamas From sven.boehme at wheregroup.com Fri Mar 28 05:59:00 2008 From: sven.boehme at wheregroup.com (=?ISO-8859-1?Q?=22Sven_B=F6hme_=28WhereGroup=29=22?=) Date: Fri, 28 Mar 2008 13:59:00 +0100 Subject: [mapserver-users] labeling charts In-Reply-To: References: Message-ID: <47ECEB94.3010002@wheregroup.com> Hi list, i?d like to add a label to my charts (bar or pie). I?dd like to see the values of each column. Is this possible? Thanks Sven -------------- next part -------------- A non-text attachment was scrubbed... Name: sven_boehme.vcf Type: text/x-vcard Size: 333 bytes Desc: not available URL: From woodbri at swoodbridge.com Fri Mar 28 07:42:17 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 28 Mar 2008 09:42:17 -0500 Subject: [mapserver-users] Label Follows streets alignment issue In-Reply-To: References: <47EC7ACD.8070803@swoodbridge.com> Message-ID: <47ED03C9.3040908@swoodbridge.com> thomas bonfort wrote: > Steve, > I haven't noticed anything special, nor do I really understand what > problem you mention. > attached is a test image I used to check. do you see anything wrong in it? > could you make a minimal test case to reproduce, or attach an image > showing the problem? Thomas, Thank you. Your test image actually shows the issue I was mentioning. Look at the left column, 4th and 7th image down. It looks like the gap between the bottom of the text at the start of the label is farther from the dark edge of the line than it is at the end of the label. This would indicate the label is rotated fractionally too much in the clockwise direction. Some possibilities are: 1) it is rotated slightly off, rounding issue? other? 2) the jitter in the individual character placement is causing this 3) it is an optical illusion 4) it has something to do with the font being used 5) something else totally If I look at Google maps, I do not notice this effect and I have had a few separate clients notice this and ask about it, hence my inquiry. Thank you for taking your time to looks into this. Best regards, -Steve W > cheers, > thomas > > -- > Thomas Bonfort > > Camptocamp France SAS > Tel : +33 (0)4 79 26 57 97 > thomas dot bonfort at camptocamp dot com > http://www.camptocamp.com > > On Fri, Mar 28, 2008 at 5:57 AM, Stephen Woodbridge > wrote: >> Hi Thomas, >> >> I have noticed that labels in a google style symbology that follow a >> straight line segment at approximately 45 degrees upper left to lower >> right and slightly off being aligned with the street. >> >> It is just enough to be annoying once you notice it. >> >> Have you noticed this? >> Can this be fixed? >> >> Thanks in advance, >> -Steve W >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ------------------------------------------------------------------------ >> -------------- next part -------------- A non-text attachment was scrubbed... Name: bug.png Type: image/png Size: 21603 bytes Desc: not available URL: From aberenyi at burken.hu Fri Mar 28 07:57:09 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Fri, 28 Mar 2008 15:57:09 +0100 Subject: [mapserver-users] millimeter accuracy Message-ID: <47ED0745.6030308@burken.hu> Hi there, I'm trying to reach millimeter accuracy with PHP/Mapscript, but the displayed data is truncated and rounded to meters. code: .... $shape = ms_shapeObjFromWkt('LINESTRING(' . $points . ')'); .... The points array ($points) contains something like this: 100.123 324.243 0, 234.324 98.834 0, ... The result template map file: ... FEATURE POINT 100 324 POINT 234 99 .... END .... Is it possible to process the submeter part of the coordinates too? If the answer is yes (what I hope), than how? Thanks, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeshua at OpenOSX.com Fri Mar 28 08:22:00 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Fri, 28 Mar 2008 09:22:00 -0600 Subject: [mapserver-users] millimeter accuracy In-Reply-To: <47ED0745.6030308@burken.hu> References: <47ED0745.6030308@burken.hu> Message-ID: <6E4518F8-8E72-422E-840D-9BE1AAEC392A@OpenOSX.com> On Mar 28, 2008, at 8:57 AM, Attila Ber?nyi wrote: > Is it possible to process the submeter part of the coordinates too? > If the answer is yes (what I hope), than how? I personally don't know if it supports MM, but I suppose one could always multiple their values by 1,000. Regards, Jeshua Lacock, Owner phone: 877.240.1364 From simon_greig at uk.ibm.com Fri Mar 28 08:33:14 2008 From: simon_greig at uk.ibm.com (Simon Greig) Date: Fri, 28 Mar 2008 15:33:14 +0000 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <47EBFFB5.1070203@pobox.com> References: <47EBFFB5.1070203@pobox.com> Message-ID: Thank you for the responses Daniel and Frank. We have implemented the following changes: Removed all setting of projection in individual layers Moved the <27700> projection to the top of the epsg file Reverted back to mapobj.setProjection ("init=epsg:27700") in the code We have run some tests in our development environment and these changes remove the error we were seeing and still produces valid map images. We are going to run some performance tests overnight in our pre-production environment against 200 or so of our layers to see what impacts we get against our live data. I am expecting an improvement because we used to call set projection once for the map and then once for each of our 18 context layers in each WMS request. So if setProjection took ~200ms before, that meant our setprojection process was taking (200+(18*200)) = ~3.8 seconds for each request. Now the worst case is 200ms for the map set projection and because of the epsg file change hopefully that will come down to <100ms per request. Next week we plan to filter out the context layers that we know will not get drawn at the view scale right at the start of processing so we expect more savings. Thanks for the support. Simon Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU -------------- next part -------------- An HTML attachment was scrubbed... URL: From dr.chamberlain at gmail.com Fri Mar 28 09:47:23 2008 From: dr.chamberlain at gmail.com (Carlos_Molina) Date: Fri, 28 Mar 2008 09:47:23 -0700 (PDT) Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <16333076.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> <200803051326.36604.ivan.mincik@gmail.com> <90699a8d0803051341q3b5b623bp1e3a11b46e2e444b@mail.gmail.com> <90699a8d0803112041t44139ba5kcfa9b7763123918c@mail.gmail.com> <16333076.post@talk.nabble.com> Message-ID: <16353907.post@talk.nabble.com> I miss one extra query right here: DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) FETCH ALL in mycursor2 CLOSE mycursor2 ROLLBACK //////////////////////////////////////////////////////////queryByAttribute/////////////////////////////////////////////////////////////// ERROR: DECLARE CURSOR may only be used in transaction blocks WARNING: there is no transaction in progress statement: rollback statement: begin ERROR: cursor "mycursor" does not exist ABORT I tried this QueryByAttribute by itself, without the first QueryByRect I showed no my last post and it seems to be missing a BEGIN statement for its cursor. Saludos! Carlos_Molina wrote: > > > Dave Fuhry wrote: >> >> Ivan, >> >> p.mapper seems to use the typical php >> {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up >> calling the same msPOSTGIS* functions as everything else. >> >> I can't seem to reproduce your problem with a simple testcase >> (basically, the attached files). It might help if you can set >> log_min_duration_statement = 0 in your postgresql.conf, reproduce the >> problem, and send the output from your postgresql log file. It will >> show all commands issued to the database, including the BEGIN, and the >> DECLARE CURSOR ..., and FETCH for every layer. >> >> I can setup p.mapper if that's necessary to reproduce the problem. >> >> (By the way, I assume you're not using an ancient version of >> postgis, in the 0.5 - 0.6 era. There is an alternate codepath for >> that, which I have not tested.) >> >> Thanks, >> >> Dave >> > > Hello Dave, > > I've tried first and second version of your patch and both resolved my > first issue of many many BEGIN statements being issued by cursors so my > application went back to running smoothly. The sad part is that another > issued arised from this patch and It's when using python mapscript and the > drawQuery call. > If i just render my .map file with draw() I get no trouble, but if I open > my map file, get a single layer from it, query the layer, open the layer > to retrieve results and call drawQuery() afterwards to render everything > like I used to do before the patch, I get the following error(I resumed > the sql statements): > > BEGIN > DECLARE mycursor BINARY CURSOR FOR SELECT... // queryByPoint > FETCH ALL in mycursor > CLOSE mycursor > SELECT * FROM... "same as above" WHILE false LIMIT 0 // Dont know why this > is issued, might be openLayer or just to get the field names of the table > WARNING: there is already a transaction in progress > BEGIN > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(0) > FETCH ALL in mycursor2 > CLOSE mycursor2 > ROLLBACK > BEGIN > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) > FETCH ALL in mycursor2 > CLOSE mycursor2 > ROLLBACK > ERROR: DECLARE CURSOR may only be used in transaction blocks > WARNING: there is no transaction in progress > statement: rollback > statement: begin > ERROR: cursor "mycursor" does not exist > ABORT > > Regards > > Carlos Molina > -- View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p16353907.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mohan_483 at rediffmail.com Fri Mar 28 12:06:56 2008 From: mohan_483 at rediffmail.com (mohannbr) Date: Fri, 28 Mar 2008 12:06:56 -0700 (PDT) Subject: [MAPSERVER-USERS] query PostGIS using querybypoint Message-ID: <16359800.post@talk.nabble.com> Hi, Mapserver 5.0.2 is installed in my comp and it can render maps onto web browser using data from PostGIS table.. I want to use the query mode in a simple way.. On a mouse click over the map image, it must retrieve data at that point from the PostGIS table and display it on the browser. Could someone please suggest the simplest way to do this. Thanks in advance.. Mohan -- View this message in context: http://www.nabble.com/query-PostGIS-using-querybypoint-tp16359800p16359800.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sacha.black at gmail.com Fri Mar 28 12:42:53 2008 From: sacha.black at gmail.com (Sacha Black) Date: Fri, 28 Mar 2008 12:42:53 -0700 Subject: [mapserver-users] Re: Mapscript Legend question In-Reply-To: References: Message-ID: after some flailing, was able to answer my own question: $oMap->legend->imagecolor->setRGB(0,255,0); will override the mapfile and turn the legend backgound green. sacha On Wed, Mar 26, 2008 at 5:51 PM, Sacha Black wrote: > hi list, > > right now I do this to get a legend from my map file: > > $oImg=$oMap->drawLegend(); > $oImg->saveImage($szImg.'_legend',$oMap); > copy($szImg.'_legend', $szImg.'_legend.png'); > $legendW = $oImg->width; > $legendH = $oImg->height; > $oImg->free(); > > my question is: is it possible to request the basic legend with a > different background color than the background color specified in the > mapfile? better yet, is there a way to specify that the background is > transparent ? > > thanks for any suggestions, > > sacha > > [apologies if this is a very basic mapscript question, but i couldn't > find the answer I was looking for when I searched.] > From janos.gonzales at gmail.com Fri Mar 28 17:07:56 2008 From: janos.gonzales at gmail.com (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Fri, 28 Mar 2008 18:07:56 -0600 Subject: [mapserver-users] MapServer, MING, and Flash In-Reply-To: <647a4d110803281704q3605964ag181e908e49044134@mail.gmail.com> References: <647a4d110803281704q3605964ag181e908e49044134@mail.gmail.com> Message-ID: <647a4d110803281707k6c695e64p4e3d73940bee2cfc@mail.gmail.com> Hello, I was wondering if anybody has gotten MapServer working with the MING 0.4 library. All the examples I see are with 0.2. Have there been any developments in support of exporting to SWF ? Any improvements since the 0.2 version of MING? Any nicer examples ? Thanks From nospam420 at yahoo.com Fri Mar 28 17:36:20 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 28 Mar 2008 17:36:20 -0700 (PDT) Subject: [MAPSERVER-USERS] Java Mapscript test fails - JVM Crash In-Reply-To: <16323383.post@talk.nabble.com> References: <16323383.post@talk.nabble.com> Message-ID: <16365022.post@talk.nabble.com> s.hagedorn wrote: > > # Problematic frame: > # C [libmapscript.so+0x8afbe] > # > # An error report file with more information is saved as: > # > /home/chef_tomcat/mapserver_install/mapserver-4.10.3/mapscript/java/hs_err_pid24205.log > if you look in the error log file, it should contain a stack trace that might give some more insight as to where the error occurred. posting that here might be helpful. - rich -- View this message in context: http://www.nabble.com/Java-Mapscript-test-fails---JVM-Crash-tp16323383p16365022.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.b at gritechnologies.com Fri Mar 28 22:20:59 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Sat, 29 Mar 2008 00:20:59 -0500 Subject: [mapserver-users] Label Follows streets alignment issue In-Reply-To: <47ED03C9.3040908@swoodbridge.com> References: <47EC7ACD.8070803@swoodbridge.com> <47ED03C9.3040908@swoodbridge.com> Message-ID: <47EDD1BB.1060507@gritechnologies.com> Thomas & Stephen, Can you try the same test, only doubling or trippling the line thicknesses and the font. The idea being to force a clear picture of this rotation. I've noticed the same sort of problems, but never really paid it much mind, I guess my customer are "easy" ?? bobb Stephen Woodbridge wrote: > thomas bonfort wrote: >> Steve, >> I haven't noticed anything special, nor do I really understand what >> problem you mention. >> attached is a test image I used to check. do you see anything wrong >> in it? >> could you make a minimal test case to reproduce, or attach an image >> showing the problem? > > Thomas, > > Thank you. Your test image actually shows the issue I was mentioning. > Look at the left column, 4th and 7th image down. It looks like the gap > between the bottom of the text at the start of the label is farther > from the dark edge of the line than it is at the end of the label. > This would indicate the label is rotated fractionally too much in the > clockwise direction. > > Some possibilities are: > > 1) it is rotated slightly off, rounding issue? other? > 2) the jitter in the individual character placement is causing this > 3) it is an optical illusion > 4) it has something to do with the font being used > 5) something else totally > > If I look at Google maps, I do not notice this effect and I have had a > few separate clients notice this and ask about it, hence my inquiry. > > Thank you for taking your time to looks into this. > > Best regards, > -Steve W > >> cheers, >> thomas >> >> -- >> Thomas Bonfort >> >> Camptocamp France SAS >> Tel : +33 (0)4 79 26 57 97 >> thomas dot bonfort at camptocamp dot com >> http://www.camptocamp.com >> >> On Fri, Mar 28, 2008 at 5:57 AM, Stephen Woodbridge >> wrote: >>> Hi Thomas, >>> >>> I have noticed that labels in a google style symbology that follow a >>> straight line segment at approximately 45 degrees upper left to lower >>> right and slightly off being aligned with the street. >>> >>> It is just enough to be annoying once you notice it. >>> >>> Have you noticed this? >>> Can this be fixed? >>> >>> Thanks in advance, >>> -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: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 21603 bytes Desc: not available URL: From bob.b at gritechnologies.com Fri Mar 28 22:21:16 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Sat, 29 Mar 2008 00:21:16 -0500 Subject: [mapserver-users] Label Follows streets alignment issue In-Reply-To: <47ED03C9.3040908@swoodbridge.com> References: <47EC7ACD.8070803@swoodbridge.com> <47ED03C9.3040908@swoodbridge.com> Message-ID: <47EDD1CC.5000009@gritechnologies.com> Fourth on the left zoomed in. I'm not seeing an over rotation here (in the clockwise direction). Some notes though, the last "t" character looks a little shorter than the first "t". This makes it look like it's a bit over rotated. Maybe trying the test with a same Character all the way along the line. The three Letters in the word "label" are all taller than the whole last word, which I think is also contributing to the over-rotational perception. Stephen Woodbridge wrote: > thomas bonfort wrote: >> Steve, >> I haven't noticed anything special, nor do I really understand what >> problem you mention. >> attached is a test image I used to check. do you see anything wrong >> in it? >> could you make a minimal test case to reproduce, or attach an image >> showing the problem? > > Thomas, > > Thank you. Your test image actually shows the issue I was mentioning. > Look at the left column, 4th and 7th image down. It looks like the gap > between the bottom of the text at the start of the label is farther > from the dark edge of the line than it is at the end of the label. > This would indicate the label is rotated fractionally too much in the > clockwise direction. > > Some possibilities are: > > 1) it is rotated slightly off, rounding issue? other? > 2) the jitter in the individual character placement is causing this > 3) it is an optical illusion > 4) it has something to do with the font being used > 5) something else totally > > If I look at Google maps, I do not notice this effect and I have had a > few separate clients notice this and ask about it, hence my inquiry. > > Thank you for taking your time to looks into this. > > Best regards, > -Steve W > >> cheers, >> thomas >> >> -- >> Thomas Bonfort >> >> Camptocamp France SAS >> Tel : +33 (0)4 79 26 57 97 >> thomas dot bonfort at camptocamp dot com >> http://www.camptocamp.com >> >> On Fri, Mar 28, 2008 at 5:57 AM, Stephen Woodbridge >> wrote: >>> Hi Thomas, >>> >>> I have noticed that labels in a google style symbology that follow a >>> straight line segment at approximately 45 degrees upper left to lower >>> right and slightly off being aligned with the street. >>> >>> It is just enough to be annoying once you notice it. >>> >>> Have you noticed this? >>> Can this be fixed? >>> >>> Thanks in advance, >>> -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: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 43445 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 21603 bytes Desc: not available URL: From dncarreira at gmail.com Sat Mar 29 05:22:55 2008 From: dncarreira at gmail.com (DNC) Date: Sat, 29 Mar 2008 05:22:55 -0700 (PDT) Subject: [MAPSERVER-USERS] agg and line widths Message-ID: <16369480.post@talk.nabble.com> Hi. I'm having trouble getting thin lines to draw. The thinnest line I get seems to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. Anyone can point out why this happens? Some sections from the map file: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END LAYER NAME 'test' GROUP "test group" TYPE POLYGON #MINSCALE 250000 CONNECTIONTYPE postgis CONNECTION 'bla' PROCESSING "CLOSE_CONNECTION=DEFER" DATA 'the_geom from table using unique gid' #FILTER '' METADATA 'wms_title' 'some layer' "ows_abstract" "some text" 'wms_srs' 'EPSG:27492' "wms_opaque" "0" "wms_group_title" "group title" "wms_group_abstract" "group text" END STATUS ON TRANSPARENCY 100 PROJECTION 'init=epsg:27492' END EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 MINSCALE 1 # MAXSCALE 100000 # data is queryable DUMP TRUE HEADER /ms_ogc_workshop/templates/rivers_query_header.html TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html # fuzziness for querying TOLERANCE 5 CLASS NAME 'outlines' STYLE WIDTH 1 OUTLINECOLOR 232 232 232 END END END Regards, Duarte -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Sat Mar 29 15:40:58 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sat, 29 Mar 2008 16:40:58 -0600 Subject: [mapserver-users] Resampling and image quality? In-Reply-To: <47EC77EC.8090605@pobox.com> References: <47EC62F1.10109@hostgis.com> <47EC77EC.8090605@pobox.com> Message-ID: <47EEC57A.1080601@hostgis.com> > I guess I don't get the process that the nice image is going through. > Are you having to pre-reproject it to Mercator before slicing it > up for the exact Google maps zoom levels? Or do you just provide > it in 4326 and google maps takes care of reprojecting it? It's in latlong and letting Google Maps do whatever it does; or Mapserver reproject it. Reprojecting it ahead of time made no difference. > Are the source PNGs paletted or RGB 24bit? The original PNGs are 8-bit paletted. Presented to me is a RGB TIFF, because I knew that paletted wasn't going to cut it. > Selecting PROCESSING "RESAMPLE=BILINEAR" and giving it 24bit RGB > input files should give something fairly similar I'd think. Nope. I've already tried all 4 resampling algorithms, 24 bit TIFFs, and overviews with -r average, and the oversample_ratio directive. No significant effect. That current combination is up now if you want to see. Hmmmmmm? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dncarreira at gmail.com Sun Mar 30 11:37:29 2008 From: dncarreira at gmail.com (DNC) Date: Sun, 30 Mar 2008 11:37:29 -0700 (PDT) Subject: [MAPSERVER-USERS] labels longer than feature are bold Message-ID: <16385514.post@talk.nabble.com> Hi. Has anyone seen this effect? While labeling roads, if the text steps outside the road feature the label is drawn in what seems to be a bolder font... like it's being drawn twice with a small offset. If I set an outline color than the effect disappears. But I'd like to avoid the outline color if possible. Labels are drawn with an annotation layer like this: LAYER NAME 'Labels' TYPE ANNOTATION LABELREQUIRES "[Roads]" CONNECTIONTYPE postgis CONNECTION 'host=virt1 user=postgres password=gaevith dbname=postgis' PROCESSING "CLOSE_CONNECTION=DEFER" DATA 'the_geom from roads using unique gid' STATUS ON PROJECTION 'init=epsg:27492' END EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 LABELITEM "text field" CLASS NAME 'Labels' LABEL SIZE 5 TYPE truetype FONT verdana COLOR 0 0 0 ANGLE follow POSITION auto MINDISTANCE 200 END END END Thanks. Duarte -- View this message in context: http://www.nabble.com/labels-longer-than-feature-are-bold-tp16385514p16385514.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Sun Mar 30 13:29:21 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 30 Mar 2008 15:29:21 -0500 Subject: [MAPSERVER-USERS] labels longer than feature are bold In-Reply-To: <16385514.post@talk.nabble.com> References: <16385514.post@talk.nabble.com> Message-ID: <47EFF821.90905@swoodbridge.com> Duarte, I do not think EXTENT is allowable in the LAYER object only in the MAP object. It is not documented in the online doc and I'm surprised that it is not throwing an error. Not that this has anything to do with your question. But it is probably a good practice to move it or remove it. -Steve W DNC wrote: > Hi. > > Has anyone seen this effect? While labeling roads, if the text steps outside > the road feature the label is drawn in what seems to be a bolder font... > like it's being drawn twice with a small offset. > If I set an outline color than the effect disappears. But I'd like to avoid > the outline color if possible. > > Labels are drawn with an annotation layer like this: > LAYER > NAME 'Labels' > TYPE ANNOTATION > LABELREQUIRES "[Roads]" > CONNECTIONTYPE postgis > CONNECTION 'host=virt1 user=postgres password=gaevith dbname=postgis' > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA 'the_geom from roads using unique gid' > STATUS ON > PROJECTION > 'init=epsg:27492' > END > EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 > LABELITEM "text field" > CLASS > NAME 'Labels' > LABEL > SIZE 5 > TYPE truetype > FONT verdana > COLOR 0 0 0 > ANGLE follow > POSITION auto > MINDISTANCE 200 > END > END > END > > Thanks. > Duarte From hobu.inc at gmail.com Sun Mar 30 12:39:14 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Sun, 30 Mar 2008 14:39:14 -0500 Subject: [MAPSERVER-USERS] labels longer than feature are bold In-Reply-To: <47EFF821.90905@swoodbridge.com> References: <16385514.post@talk.nabble.com> <47EFF821.90905@swoodbridge.com> Message-ID: On Mar 30, 2008, at 3:29 PM, Stephen Woodbridge wrote: > Duarte, > > I do not think EXTENT is allowable in the LAYER object only in the > MAP object. It is not documented in the online doc and I'm surprised > that it is not throwing an error. Not that this has anything to do > with your question. But it is probably a good practice to move it or > remove it. > EXTENT is allowed on the LAYER object, but it is not widely documented yet because it doesn't have much effect or behave consistently across all of the drivers. Some drivers, and things like OWS should respect it if it is there (for 4.10+, IIRC). In summary, EXTENT on a LAYER object is a work in progress, and it should be fairly innocuous at this point. Howard From thomas.bonfort at gmail.com Mon Mar 31 00:49:02 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 31 Mar 2008 08:49:02 +0100 Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <16369480.post@talk.nabble.com> References: <16369480.post@talk.nabble.com> Message-ID: hi, you're probably drawing polygons with adjacent borders right? in this case, each line except the outer ones is drawn twice, and thus its final width is larger than what is requested. I don't think there's much you can do about it except preprocess your data to transform it into a line layer with no duplicates. cheers, -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com On Sat, Mar 29, 2008 at 1:22 PM, DNC wrote: > > Hi. > > I'm having trouble getting thin lines to draw. The thinnest line I get seems > to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. Anyone > can point out why this happens? > > Some sections from the map file: > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > LAYER > NAME 'test' > GROUP "test group" > TYPE POLYGON > #MINSCALE 250000 > CONNECTIONTYPE postgis > CONNECTION 'bla' > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA 'the_geom from table using unique gid' > #FILTER '' > METADATA > 'wms_title' 'some layer' > "ows_abstract" "some text" > 'wms_srs' 'EPSG:27492' > "wms_opaque" "0" > "wms_group_title" "group title" > "wms_group_abstract" "group text" > END > STATUS ON > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27492' > END > EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 > MINSCALE 1 > # MAXSCALE 100000 > # data is queryable > DUMP TRUE > HEADER /ms_ogc_workshop/templates/rivers_query_header.html > TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html > # fuzziness for querying > TOLERANCE 5 > CLASS > NAME 'outlines' > STYLE > WIDTH 1 > OUTLINECOLOR 232 232 232 > END > END > END > > Regards, > Duarte > -- > View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.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 thomas.bonfort at gmail.com Mon Mar 31 00:51:15 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 31 Mar 2008 08:51:15 +0100 Subject: [mapserver-users] labeling charts In-Reply-To: <47ECEB94.3010002@wheregroup.com> References: <47ECEB94.3010002@wheregroup.com> Message-ID: On Fri, Mar 28, 2008 at 1:59 PM, "Sven B?hme (WhereGroup)" wrote: > Hi list, > > i?d like to add a label to my charts (bar or pie). I?dd like to see the > values of each column. Is this possible? no (not yet?) cheers, -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com From Janosch.Skrobek at trier.de Mon Mar 31 02:39:45 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 31 Mar 2008 11:39:45 +0200 Subject: [mapserver-users] javascript & mapserver In-Reply-To: References: <16369480.post@talk.nabble.com> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> Hello everyone, Writing this in the template file produces my map with the option for a rubber band box: Now I'm trying to implement my applet in a way that it doesnt require the activation-click for IE6 users. Following this guide (http://java.sun.com/developer/technicalArticles/J2SE/Desktop/ieappletgu ide/)it should work like this: In the js-file: document.write(''); document.writeln(''); In the template: The script is being loaded but I get the following error: "Applet error. Malformed image url" I tried replacing the image url with a direct image url to an existing image but still the same error. Unfortunately I'm completely new to javascript and can't seem to solve this. Any help would be appreciated. Best Regards Janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From jdaly at panix.com Mon Mar 31 06:08:08 2008 From: jdaly at panix.com (John Daly) Date: Mon, 31 Mar 2008 09:08:08 -0400 (EDT) Subject: [mapserver-users] javascript & mapserver In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> (Janosch.Skrobek@trier.de) References: <16369480.post@talk.nabble.com> <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> Message-ID: <200803311308.m2VD88D01002@panix1.panix.com> Not sure what your replacement url looked like, but I'd check out an interpolation problem first. Maybe something like: document.write(''); JD > > In the js-file: > document.write(' archive="jBoxPNG.jar,png.jar" code="jBoxPNG.class" width="450" > height="450" name="jBox"'); > document.write(''); > document.writeln(''); > > In the template: > > > The script is being loaded but I get the following error: > > "Applet error. Malformed image url" > > I tried replacing the image url with a direct image url to an existing > image but still the same error. > > Unfortunately I'm completely new to javascript and can't seem to solve > this. > Any help would be appreciated. > From jdaly at panix.com Mon Mar 31 05:57:27 2008 From: jdaly at panix.com (John Daly) Date: Mon, 31 Mar 2008 08:57:27 -0400 (EDT) Subject: [mapserver-users] javascript & mapserver In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> (Janosch.Skrobek@trier.de) References: <16369480.post@talk.nabble.com> <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> Message-ID: <200803311257.m2VCvR516315@panix1.panix.com> From Andreas.Eichner at sid.sachsen.de Mon Mar 31 06:52:29 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Mon, 31 Mar 2008 15:52:29 +0200 Subject: [mapserver-users] Re: Hiding overviews References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> Message-ID: Hello Daniel, before submitting a "patch" there are just some things to note. But it's nice that there's so much interest on it. > What was involved in setting up an Apache module? There was talk about > doing that as an experiment a few weeks ago on the mapserver-dev list. > If you are interested in sharing what you've done then I'm sure that > would generate some interest. Perhaps you could file a ticket and attach > a patch and some notes? Well, looked at the mail archive back till Jan 07 but could not find something about it in a first quick look. Maybe you can point me to the thread? Currently I call the dirty thing mod_wms since that's what it currently is. The main target was to get a faster WMS mainly because MapServer got a little bit slow especially with large map files. I looked at the mapserv.c and saw, that even in fastcgi mode it loads and parses the hole map file for _every_ request. This seems to be a bad thing but can't be done much different with CGI I think. Well, if we would use the Apache module mechanism we can do it better. We can load and parse the map file and ideally prepare everthing required for the requests. When receiving a request we would do nearly the same things that are currently done in the CGI - take the URI, break it into name/value pairs, hash the things for fast lookups and take all other things out of the already prepared MapObj. This speeds up and simplifies much of the things but are only applicable since we know that the configuration remains constant which is something the CGI can't assume. Currently the baby is mostly a hack... Some simple steps were involved till now: 1. generate a template with: apxs2 -g -n wms 2. create a function taking the (currently) only config option we provide which is taking the filename of the map file, try to load it as usual with LoadMap() and store the result in a per directory config. 3. adopt the fastcgi output redirection code from mapio.c to redirect to the Apache output functions 4. copy over most of the things from mapserv.c to the module's request handler Sounds easy, doesn't it? Well, there's a last step which makes it IMHO being a real hack: the MapServer functions output the content type directly to the output stream via things like 'msIO_printf("Content-type: text/xml%c%c",10,10);' which have to be modified to set it in the Apache's request_rec. So currently I can compile it under Debian Testing for Apache 2.2 and it works quite well. Last week I've done a first successful build under RedHat Enterprise Linux 5 with some additional packages from Fedora Core (gdal, geos f.e.) but had not much time for testing. There are still some things to improve I believe but that would require a deeper look into the source. Mainly this would involve a modification of the cleanup code to prevent the destruction of label, font and symbol caches. Also, in that environment it doesn't make much sense to close database connections so we could keep them open from Apache startup to shutdown and so would be nice to prepare the queries in the startup sequence for faster handling at runtime... Daniel, I would prefer to send a commented patch directly to you first and let you decide what to do with it. Remember that I already missed some things with the metadata thing... May be tried to improve the world but really created the hell on earth ;-) So that's for now. Will now comment the patch... Greetings! From kristien.ooms at ugent.be Mon Mar 31 08:49:25 2008 From: kristien.ooms at ugent.be (Kristien Ooms) Date: Mon, 31 Mar 2008 17:49:25 +0200 Subject: [mapserver-users] difference label objects In-Reply-To: References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> Message-ID: <006401c89346$cba59780$62f0c680$@ooms@ugent.be> Hi, I'm trying to figure out how MapServer places its labels on the map. So right now I'm looking at the file 'maplabel.c' from the mapserver source code (mapserver-5.0.2, from 'mapserver.gis.umn.edu/dload.html'). But the difference and relation between some objects isn't really clear to me: -labelObj -labelCacheObj -labelCacheSlotObj -LabelCacheMemberObj Could anybody explain the difference/relation between these objects? Many thanks! Gr. Kristien No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008 12:32 From dmorissette at mapgears.com Mon Mar 31 09:02:14 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 31 Mar 2008 12:02:14 -0400 Subject: [mapserver-users] MapServer Apache module (was: Re: Hiding overviews) In-Reply-To: References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> Message-ID: <47F10B06.4010102@mapgears.com> Hi Andreas, Eichner, Andreas - SID-NLK wrote: > > Well, looked at the mail archive back till Jan 07 but could not find > something about it in a first quick look. Maybe you can point me to the > thread? The thread was titled "ModMapServer?" and started on March 13: http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006869.html > > Sounds easy, doesn't it? Well, there's a last step which makes it IMHO > being a real hack: the MapServer functions output the content type > directly to the output stream via things like > 'msIO_printf("Content-type: text/xml%c%c",10,10);' which have to be > modified to set it in the Apache's request_rec. I don't know what Apache expects exactly, but I think it would be reasonable to create a new msReturnHTTPHeaders() function that would replace all those printf's for the headers, and could pass the information to Apache when running as a module. > There are still some things to improve I believe but that would require > a deeper look into the source. Mainly this would involve a modification > of the cleanup code to prevent the destruction of label, font and symbol > caches. Also, in that environment it doesn't make much sense to close > database connections so we could keep them open from Apache startup to > shutdown and so would be nice to prepare the queries in the startup > sequence for faster handling at runtime... > The FastCGI code should already handle that kind of stuff, so if you try to follow the same execution path when running as an Apache module then you may not have any change to make. With respect to keeping database connections opened, the PROCESSING "CLOSE_CONNECTION=DEFER" directive already does that, and keeps the connections between requests in FastCGI mode, see the PROCESSING docs in http://ms.gis.umn.edu/docs/reference/mapfile/layer > Daniel, I would prefer to send a commented patch directly to you first > and let you decide what to do with it. Remember that I already missed > some things with the metadata thing... May be tried to improve the world > but really created the hell on earth ;-) > Well, your patch doesn't have to be final before you share it publicly. I'm already swamped with stuff and don't have much time to review the patch in the next little while, plus there are a few people who expressed interest in this feature on the list and that would work out the issues with you much quicker than myself, so I think you should share your work and try to gather feedback from other interested parties as early as possible. That's taking full advantage of the open source way of doing things: throw an idea out there and use the feedback from the community to help you refine it. Thanks for your interest in pursing those ideas BTW! Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Mon Mar 31 11:40:55 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 31 Mar 2008 14:40:55 -0400 Subject: [mapserver-users] Google Summer of Code projects Message-ID: <47F13037.6030905@mapgears.com> OSGeo has received several student applications for Google Summer of Code (GSoC) projects, but unfortunately we got none for MapServer which is a bit disappointing. Sounds like MapServer is going to miss GSoC for a second time... what's up, are there no students interested in working on MapServer? Fortunately, Google announced an extension of the student application deadline to April 7, 2008 (the original deadline was tonight), so there is still time to come up with proposal for students interested in MapServer. Google Summer of Code page: http://code.google.com/soc/2008/ MapServer GSoC ideas page: http://wiki.osgeo.org/wiki/MapServer_2008_SOC_Ideas OSGeo's GSoC page: http://wiki.osgeo.org/wiki/Google_Summer_of_Code Daniel -- Daniel Morissette http://www.mapgears.com/ From jeshua at OpenOSX.com Mon Mar 31 11:55:11 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Mon, 31 Mar 2008 12:55:11 -0600 Subject: [mapserver-users] Google Summer of Code projects In-Reply-To: <47F13037.6030905@mapgears.com> References: <47F13037.6030905@mapgears.com> Message-ID: On Mar 31, 2008, at 12:40 PM, Daniel Morissette wrote: > what's up, are there no students interested in working on MapServer? Ahhh, now if I were only a student! Ciao, Jeshua Lacock, Owner phone: 877.240.1364 From joealan at sbcglobal.net Mon Mar 31 12:06:42 2008 From: joealan at sbcglobal.net (Joe Nannery) Date: Mon, 31 Mar 2008 12:06:42 -0700 (PDT) Subject: [mapserver-users] need help getting pan button in php to work Message-ID: <393074.78671.qm@web81601.mail.mud.yahoo.com> Hey all, I am new to working with phpmapscript...i've used the PHPMapscript example at mapserver.gis.umn.edu, and have found a code snippet for an arrow (function panarrow()), however when i try to get it to work with an input button in html the map just refreshes itself. what changes should I make? thanks. setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if ($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; } $val_zsize = abs($zoom_factor); $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); } function panarrow ($map, $HTTP_POST_VARS) { $xmax = intval($HTTP_POST_VARS["maxx"]); // E $xmin = intval($HTTP_POST_VARS["minx"]); // W $xinc = ($maxx - $minx ) / 5; // pan-factor $ymax = intval($HTTP_POST_VARS["maxy"]); // S $ymin = intval($HTTP_POST_VARS["miny"]); // N $yinc = ($maxy - $miny ) / 5; // pan-factor // which button is pressed if ( isset($HTTP_POST_VARS["panN_x"])) { $map->setextent( $minx, ($miny + $yinc), $maxx, ($maxy +$yinc)); } elseif ( isset($HTTP_POST_VARS["panS_x"])) { $map->setextent( $minx, ($miny - $yinc), $maxx, ($maxy - $yinc)); } elseif ( isset($HTTP_POST_VARS["panW_x"])) { $map->setextent( ($minx - $xinc), $miny, ($maxx - $xinc),$maxy); } elseif ( isset($HTTP_POST_VARS["panE_x"])) { $map->setextent( ($minx + $xinc), $miny, ($maxx + $xinc),$maxy); } } $image=$map->draw(); $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; //////////////////here's the html where I bring up the arrow: Pan North > Joe Nannery Joealan at sbcglobal.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbw2003 at earthlink.net Mon Mar 31 13:12:53 2008 From: jbw2003 at earthlink.net (jim white) Date: Mon, 31 Mar 2008 16:12:53 -0400 Subject: [mapserver-users] clip and zip server Message-ID: <47F145C5.9090308@earthlink.net> We have implemented a mapserver site that allows users to create an area of interest. Next, we want to let the user select some layers and then clip the layers to the AOI, zip them, put the zip file on an ftp server, and send an e-mail when they are ready. This should be done on a second server from the main mapserver server. Would appreciate any suggestions from anyone who has done something similar or who has any ideas how this is best done. Original mapserver site is in PHP and prefer that or Python for the second server. Thanks, Jim -- James (Jim) B. White From David.Fawcett at state.mn.us Mon Mar 31 13:34:50 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 31 Mar 2008 15:34:50 -0500 Subject: [mapserver-users] clip and zip server In-Reply-To: <47F145C5.9090308@earthlink.net> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBC02@s-sp22.pca.state.mn.us> You might want to look at http://deli.dnr.state.mn.us/data_search.html -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jim white Sent: Monday, March 31, 2008 3:13 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] clip and zip server We have implemented a mapserver site that allows users to create an area of interest. Next, we want to let the user select some layers and then clip the layers to the AOI, zip them, put the zip file on an ftp server, and send an e-mail when they are ready. This should be done on a second server from the main mapserver server. Would appreciate any suggestions from anyone who has done something similar or who has any ideas how this is best done. Original mapserver site is in PHP and prefer that or Python for the second server. Thanks, Jim -- James (Jim) B. White _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mlinden at zeelandnet.nl Mon Mar 31 13:50:54 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Mon, 31 Mar 2008 22:50:54 +0200 Subject: [mapserver-users] clip and zip server In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBC02@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBC02@s-sp22.pca.state.mn.us> Message-ID: <47F14EAE.50803@zeelandnet.nl> Hello Jim, This is no out of the box functionality, but I would solve this as follows: You build some sort of webservice that responds to an AJAX request by: A) //- Website functions ---// 1) - Taking the bounding box, the users e-mail and the selected layers as parameters 2) - Doing some business logic to tell if the request is valid 3) - Storing the request including the users e-mail and the boundingbox and the layers that the user selected (in a table in the postgres database for instance) 4)- return an AJAX response telling the user that: - His request is added to the que - He will recieve the dataset per e-mail B) //- Server batch ---// 1) You build a script on the server that - looks at the postgres table for pending requests - loops the requested layers doing a geo-select (postGIS function) - Export the selection to shape using ogr2ogr or psql2shp - zip the shapes - mail them. Hope this is helpfull for you. Kind regards, Milo Fawcett, David schreef: > You might want to look at http://deli.dnr.state.mn.us/data_search.html > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jim white > Sent: Monday, March 31, 2008 3:13 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] clip and zip server > > > We have implemented a mapserver site that allows users to create an > area of interest. Next, we want to let the user select some layers and > then clip the layers to the AOI, zip them, put the zip file on an ftp > server, and send an e-mail when they are ready. This should be done on a > second server from the main mapserver server. > > Would appreciate any suggestions from anyone who has done something > similar or who has any ideas how this is best done. Original mapserver > site is in PHP and prefer that or Python for the second server. > > Thanks, > > Jim > > From jcleary at email.unc.edu Mon Mar 31 13:57:15 2008 From: jcleary at email.unc.edu (Jesse Cleary) Date: Mon, 31 Mar 2008 16:57:15 -0400 Subject: [mapserver-users] MS version issue with overviews Message-ID: <47F1502B.2000607@email.unc.edu> Hi folks I'm dealing with a server with several versions of MapServer on it. We are serving PNGs from the filesystem via CGI and working to speed up performance. I've been trying gdaladdo (-r nearest) to create overviews for each image. Mainly this works great and does give us the speed increase I'm after. However, some of the MS versions on this box balk once I create an OVR file on any given PNG. Upon calling the PNG in question, I get a 500 "Internal Server error" error from Apache (2.0.46). So the exact same CGI call works without an OVR file and gives me the 500 error with an OVR file present. The Apache error logs don't contain a record of the 500 error. This is an issue because several existing web service hit the problematic (and newer) version of MapServer and I don't want to roll back to an older version which might have its own performance costs. I'm a bit baffled - anyone else seen this kind of error with overview files? I'd like some possibilities before I go back to the sys admin of the machine in question. Sorry I can't provide more details, but it is not my box. Thanks so much folks - apologies for the sketchy details... Jesse This version of MapServer always works, *.OVR present or not: MapServer version 4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE This version of MapServer only works with no *.OVR file present: MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Jesse A. Cleary Department of Marine Sciences UNC Chapel Hill 334 Chapman Hall (919) 962-4987 jcleary at email.unc.edu From mapserver at geoworld.de Mon Mar 31 14:31:10 2008 From: mapserver at geoworld.de (Nicol Hermann) Date: Mon, 31 Mar 2008 23:31:10 +0200 Subject: [mapserver-users] AGG Compile error with PHP Mapscript Message-ID: <1206999070.4038.10.camel@mobil.geoworld.de> Hi List, i like to compile mapserver 5.0.2 with agg support on my amd64 bit debian testing box. I installed libagg-dev ( 2.5+dfsg1-1 ) If i run a "normal" configure without PHP mapscript mapserver compiles without any error. Whenever i include PHP Mapscript support (--with-php=/usr/local/php5) i get the following error message: (PHP 5.2.2) /usr/bin/ld: /usr/lib64/libagg.a(agg_arc.o): relocation R_X86_64_32 against `__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libagg.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [php_mapscript.so] Fehler 1 make[1]: Leaving directory `/usr/local/src/mapserver/mapserver-5.0.2/mapscript/php3' Does anybody know what is going wrong? gcc --version gcc (GCC) 4.2.3 (Debian 4.2.3-2) c++ --version c++ (GCC) 4.2.3 (Debian 4.2.3-2) Many thanks Nicol From nickthegreek_ at hotmail.com Mon Mar 31 18:30:48 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Mon, 31 Mar 2008 18:30:48 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver connection database Message-ID: <16404505.post@talk.nabble.com> hello to everyone ... what i wanna is a help and tell me what exactly to do ... i have made an enviroment who it shows me a map , i can move in the map, zoom in the map , select layers to show and some otheres... in the mapfile all the data that are be shown are declared with the path eg : ''c:\ms4w\apps\roads.shp" what i wanna is to put all these files in a database and to connect to the database and as a result to be shown first.., what database to use, the easiest second, how i can add these files... shp,shx.dbf ..how i can create these tables with the fields ,cause the shp and shx files cannot see what they have inside.. i wanna a big help, cause i can't understand how to indert all these files in a database and then to be shown... many thanks to everyone -- View this message in context: http://www.nabble.com/mapserver-connection-database-tp16404505p16404505.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jennifer.spurgeon at stantec.com Mon Mar 31 19:17:23 2008 From: jennifer.spurgeon at stantec.com (Spurgeon, Jennifer) Date: Mon, 31 Mar 2008 20:17:23 -0600 Subject: [mapserver-users] Hyperlinking Images Message-ID: An HTML attachment was scrubbed... URL: From nickthegreek_ at hotmail.com Mon Mar 31 19:19:19 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Mon, 31 Mar 2008 19:19:19 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver connection database Message-ID: <16404505.post@talk.nabble.com> hello to everyone ... what i wanna is a help and tell me what exactly to do ... i have made an enviroment who it shows me a map , i can move in the map, zoom in the map , select layers to show and some otheres... in the mapfile all the data that are be shown are declared with the path eg : ''c:\ms4w\apps\roads.shp" what i wanna is to put all these files in a database and to connect to the database and as a result to be shown first.., what database to use, the easiest second, how i can add these files... shp,shx.dbf ..how i can create these tables with the fields ,cause the shp and shx files cannot see what they have inside.. i wanna a big help, cause i can't understand how to indert all these files in a database and then to be shown... many thanks to everyone from a try i did.. i insert in the postgresql the file country.shp.. then i try to connect to it from the mapfile and in this layer i write ..................... CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=postgis user=postgres password=d3klw7 port=5432" STATUS ON DATA "the_geom FROM province" .................... the result i take is Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'canada states'. in C:\ms4w\Apache\htdocs\canada.php on line 203 Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from province WHERE the_geom && setSRID('BOX3D(-179.041698235478 25.406659782504,179.75431737052 89.1495117937299)'::BOX3D, find_srid('','province','the_geom') )' Postgresql reports the error as 'ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan in C:\ms4w\Apache\htdocs\canada.php on line 203 Warning: [MapServer Error]: msPOSTGISLayerRetrievePGVersion(): Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) in C:\ms4w\Apache\htdocs\canada.php on line 203 Fatal error: Call to a member function saveImage() on a non-object in C:\ms4w\Apache\htdocs\canada.php on line 204 can u understand wht is the problem??pls ..it is my diploma and i have to do it until the end of the week -- View this message in context: http://www.nabble.com/mapserver-connection-database-tp16404505p16404505.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Mar 31 23:07:40 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 1 Apr 2008 09:07:40 +0300 Subject: [MAPSERVER-USERS] mapserver connection database References: <16404505.post@talk.nabble.com> Message-ID: mapserver-users-bounces at lists.osgeo.org puolesta: nickthegreek- > hello to everyone ... what i wanna is a help and tell me what exactly to do ... > what i wanna is to put all these files in a database and to connect to the > database and as a result to be shown > first.., what database to use, the easiest Use PostGIS. > second, how i can add these files... shp,shx.dbf ..how i can create these > tables with the fields ,cause the shp and shx files cannot see what they > have inside.. PostGIS comes with a tool called shp2pgsql. Ogr2ogr is another possibility. Both can upload shapefiles into PostGIS and there is no need to care about the individual files in a shapefile package. They are general purpose tools and they may not automatically do exactly what you need for your application. I fear you need to read some documentation. > i wanna a big help, cause i can't understand how to indert all these files > in a database and then to be shown... many thanks to everyone > from a try i did.. i insert in the postgresql the file country.shp.. > then i try to connect to it from the mapfile and in this layer i write Looks like you know the tools already? ..................... > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=postgis user=postgres > password=d3klw7 port=5432" > STATUS ON > DATA "the_geom FROM province" .................... > the result i take is > 'ERROR: column "oid" does not exist LINE 1: Error probably means what it says. For Mapserver there must be an unique colunm in the database. If you don't tell what is the name of the unique column then OID is the default. Now it is obviously lacking. If you have some other column that is unique you can use it by addind "using unique". Otherwise you need to create one. > can u understand wht is the problem??pls ..it is my diploma and i have to do > it until the end of the week Problem? Perhaps that you have quite a little time to do both the learning and writing. -Jukka- From nickthegreek_ at hotmail.com Mon Mar 31 23:37:34 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Mon, 31 Mar 2008 23:37:34 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver connection database In-Reply-To: <16404505.post@talk.nabble.com> References: <16404505.post@talk.nabble.com> Message-ID: <16415452.post@talk.nabble.com> i done the writing ..it remains just the connection with the base.that's why -- View this message in context: http://www.nabble.com/mapserver-connection-database-tp16404505p16415452.html Sent from the Mapserver - User mailing list archive at Nabble.com.