From richard.matsunaga at troocorp.com Mon May 2 07:33:04 2011 From: richard.matsunaga at troocorp.com (Richard Matsunaga) Date: Mon, 2 May 2011 10:33:04 -0400 Subject: [mapserver-users] GetFeatureInfo crashes MapServer 5.6.6 Message-ID: <26eb90b74768e7c17c4373c25e57390f@mail.gmail.com> I?ve been trying to get GetFeatureInfo working with MapServer 5.6.6 and have found that if one of several layers returns ?Search returned no results? then the query will fail and the server will return a 500 ? Internal Server Error. If I query the one layer, I will get a normal ?Search returned no results? return. We have several (too many) versions of MapServer running on our server and I have found that older versions will work, but anything after 5.2 will not. The server is running CentOS and the MapServer versions have been built from scratch, although I don?t know much more than that. We have no issues with GetMap requests on these map files on any version of MapServer. When the error occurs, there are no MapServer logs generated. The only clue is in the messages log: ? kernel: mapserv-test[4192] trap stack segment rip:3dad072cd1 rsp:7fff6e2b5080 error:0 In trying to troubleshoot this, I installed ms4w with MapServer 5.6.6 on my Windows PC and it works in all scenarios. Any ideas what might be going on? Have we built MapServer incorrectly? Is there any way to get more detailed logging? Thanks, Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Mon May 2 07:29:07 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 2 May 2011 10:29:07 -0400 Subject: [mapserver-users] Map image not appearing Message-ID: <4EFF8BB964547748A07CA32961810C041B19667B@SOM-TEAQASMAIL1.som.w2k.state.me.us> I have an application which doesn't show its map image. I think it's not accessing the tmp directory for the image, in Firebug I get a 404 not found error. I can see the map image in a Windows Explorer, and view the image graphic. I know this must be something simple, but I'm perplexed. Other than the imagedir variable in the Map file, can anyone think of another place to check? Permissions issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon May 2 08:44:52 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 02 May 2011 12:44:52 -0300 Subject: [mapserver-users] Map image not appearing In-Reply-To: <4EFF8BB964547748A07CA32961810C041B19667B@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041B19667B@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4DBED174.4030407@gatewaygeomatics.com> Hi Bob, Hmm I have been in that same situation many times. My thoughts: - since your map image is created properly on disk, this means that there is no problem with your IMAGEPATH setting in your mapfile - however there might be a problem with your IMAGEURL setting in your mapfile. In your mapping application, in Firefox right-click where the map image is supposed to be, and select "View Image"...does that URL in the location bar match what you specified in the mapfile's IMAGEURL setting? (and verify that you have configured your Apache correctly for that alias) For example, MapServer for Windows (MS4W) comes with Apache configured for a "ms_tmp" alias, which points to /ms4w/tmp/ms_tmp/ on your harddrive. Those are my initial thoughts when hitting that error. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-02 11:29 AM, Bistrais, Bob wrote: > I have an application which doesn?t show its map image. I think it?s not > accessing the tmp directory for the image, in Firebug I get a 404 not > found error. I can see the map image in a Windows Explorer, and view the > image graphic. I know this must be something simple, but I?m perplexed. > Other than the imagedir variable in the Map file, can anyone think of > another place to check? Permissions issue? From yassefa at dmsolutions.ca Mon May 2 10:53:58 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 02 May 2011 13:53:58 -0400 Subject: AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 In-Reply-To: <14AC4A81AA9C46E98C331CF6D513513F@pcawh2> References: <97942B28A7BA423B89980D58DF1966FE@pcawh2> <4DB9BBBC.3060104@dmsolutions.ca> <4DB9BC19.3010206@dmsolutions.ca> <4DBAF9C6.6060105@dmsolutions.ca> <14AC4A81AA9C46E98C331CF6D513513F@pcawh2> Message-ID: <4DBEEFB6.2060502@dmsolutions.ca> On 29/04/2011 5:38 PM, Arnd Wippermann wrote: > Hi > > Here you can online see > > external graphic mostly not showing > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ > er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0 > > Perhaps it has something to do with the complexity of the polygons. Locally > test with simplier polygons works. But also with the simplier polygons it > doesn't show the graphic if i apply the sld file from > http://demo.mapserver.org/ogc-demos/map/sld/sld_polygon_fill_symbol_external > .xml (gif image). > > Rotated square not like 5.6.1 > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ > er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0 > Are the above 2 demos still work? I see "broken" tiles. As I mentioned initially, I was not able to see the problem with my test using external symbols. I just also used a copy of your sld (pointing to an external symbol on your server) and was also able to get expected result. Same with the sld on mapserver site. Please file a bug with data/map that shows the problem and I can spend more time on it. > borders as thin lines without stroke set > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ > er_SLD_World.asp?SLDsrcIdx=52&mapservVersion=6.0.0 > I see that on your server. One test to do is to put your map in debug and see the map file that is produced after the sld is applied. It should only have one class with one style for the fill. If that is not that case, please report. > The patch I cannot test. I'm not able to compile MapServer by myself. > > Thank for watching the points I will apply the patch when MapServer trac/svn come back. It should be available fr the next release. best regards, > Regards, > Arnd -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ahmettemiz88 at gmail.com Tue May 3 00:04:32 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 3 May 2011 10:04:32 +0300 Subject: [mapserver-users] maven installation in Eclipse Message-ID: Hello Is maven "Installation in Eclipse" available in Mapserver" ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From tohashmi at gmail.com Tue May 3 02:55:28 2011 From: tohashmi at gmail.com (Mir Hashmi) Date: Tue, 3 May 2011 12:55:28 +0300 Subject: [mapserver-users] MapScript - ZoomToPrevious & Next Extents Message-ID: Hello I am working on a desktop application using .net mapscript_csharp.dll. Anyone please guide me towards achieving "Zoom To Previous" & "Zoom To Next" extents. Is it that I should save previous actions & extents? or is there some other way to do it? Please suggest some examples or code. Kind regards. Mir Hashmi -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue May 3 03:15:30 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 3 May 2011 12:15:30 +0200 Subject: [mapserver-users] MapScript - ZoomToPrevious & Next Extents In-Reply-To: References: Message-ID: Hi, You must save the extents and then use map.setExtent to select one according to the user actions. There's no builtin mechanism in MapServer to store the history of extents internally. Best regards, Tamas 2011/5/3 Mir Hashmi > Hello > > I am working on a desktop application using .net mapscript_csharp.dll. > Anyone please guide me towards achieving "Zoom To Previous" > & "Zoom To Next" extents. > > Is it that I should save previous actions & extents? or is there some other > way to do it? > > Please suggest some examples or code. > > Kind regards. > Mir Hashmi > > > > _______________________________________________ > 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 andy.hird at aligned-assets.co.uk Tue May 3 08:22:50 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Tue, 3 May 2011 16:22:50 +0100 Subject: [mapserver-users] RE: Problems with Query Template Message-ID: <12E95C4AD68A754789F634B91B3FBE3F1E3D68@aasrv01.alignedassets> Steve, Thanks so much for the reply and apologies for long delay (have been on holiday). I have carried out the url line you specified http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/MFRS_Maps/Map/MFRS_Maps.map&qlayer=Wards&qindex=1&mode=indexquery and the result is as follows: 1. Internet Explorer Returns: msQueryByIndex(): Search returned no results. Not valid record request. 2. In my ms_error.txt file I am returned with: [Tue May 03 16:12:13 2011].244000 CGI Request 1 on process 7676 [Tue May 03 16:12:13 2011].244000 msQueryByIndex(): Search returned no results. Not valid record request. [Tue May 03 16:12:13 2011].244000 msFreeMap(): freeing map at 01C8AF68. I have tried to look up what the message means and I can only assume its an issue with the Template side of things? Using my shape file layer: http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/MFRS_Maps/Map/MFRS_Maps.map&qlayer=10K+StreetView&qindex=1&mode=indexquery I get this back: msQueryByIndex(): Search returned no results. Not valid record request. msRASTERLayerGetShape(): General error message. Out of range shape index requested. Requested -1 but only 0 shapes available. I am really quite stumped and unfortunately running out of time to throw at this. Any help would help greatly. Thanks in advance Andy ---------------------------------------------------------------------- Message: 1 Date: Wed, 13 Apr 2011 13:59:34 -0500 From: "Lime, Steve D (DNR)" Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) To: Andy Hird , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="utf-8" There???s nothing in the templates that would care about the data source be it shapefile or mapinfo tab file. If it were something like missing attributes you should get the template content back but without tags being processed. Can you take this outside of Chameleon to debug? You could issue a query against the MasterMap Area layer and see what happens. For example: http://yourserver/cgi-bin/mapserv.exe?/yourmapfile.map&qlayer=MasterMap+Area&qindex=1&mode=indexquery That should pull the first record from the MasterMap Area layer. Steve From: Andy Hird [mailto:andy.hird at aligned-assets.co.uk] Sent: Tuesday, April 12, 2011 4:28 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: Problems with Query Template (Chameleon) Steve Thanks for the reply. There are no errors being logged and as I say it works for files which are not MapInfo Tab files. For instance the following works fine. LAYER NAME "10K StreetView" STATUS ON TYPE RASTER MINSCALEDENOM 6000 #600 MAXSCALEDENOM 22499 #2999 TILEINDEX "C:\ms4w\apps\XXXX\data\10K.shp" TILEITEM "LOCATION" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END END I assume that this is because it???s a shp file which has a dbf file. This does not work: LAYER NAME "MasterMap Area" TYPE POLYGON MINSCALEDENOM 1 MAXSCALEDENOM 5999 STATUS ON CONNECTIONTYPE OGR CONNECTION "C:\ms4w\apps\XXXX\data\MM_Topo_Area.TAB" STYLEITEM "AUTO" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END # Class section HEADER "templates/XXXX_header.html" FOOTER "templates/XXXX_footer.html" END Its bugging me like crazy as I can???t figure it out, - the second part of my question was: ???However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too.??? If it???s easier for someone to advise on that it would be appreciated. Thanks Andy From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: 11 April 2011 22:49 To: Andy Hird; mapserver-users at lists.osgeo.org Subject: RE: Problems with Query Template (Chameleon) Not a Chameleon user so I may not be of much help. Any errors being logged? What does the template file look like? It???s possible that ms4w_2.3.1???s MapServer did not require a magic string be on the first line of the template. In new versions it is required. Basically the first line of a template must contain the string ???MapServer Template???. Typically you???d put that in a HTML comment, e.g.: ...template follows... That???s my first guess anyway. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Hird Sent: Friday, April 08, 2011 3:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with Query Template (Chameleon) Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 & chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc ??? but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling ??? ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy From cnieman at dmsolutions.ca Tue May 3 09:46:28 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 03 May 2011 12:46:28 -0400 Subject: [mapserver-users] TYPE UNION and STYLEITEM Message-ID: <4DC03164.1050200@dmsolutions.ca> Hello, I was wondering if someone could let me know if my logic here is flawed... I am testing layers of TYPE UNION. I have two point data files and if I have classes in the UNION'ed layer, they draw correctly. E.g.: # ================================================== # Layer: Layer 1 for union # ================================================== LAYER NAME "layer_1_for_union" STATUS OFF TYPE POINT SIZEUNITS PIXELS DATA "points1" END # ================================================== # Layer: Layer 2 for union # ================================================== LAYER NAME "layer_2_for_union" STATUS OFF TYPE POINT SIZEUNITS PIXELS DATA "points2" END # ================================================== # Layer: UNION Layer # ================================================== LAYER NAME "union_layer" STATUS DEFAULT TYPE POINT SIZEUNITS PIXELS CONNECTIONTYPE UNION CONNECTION "layer_1_for_union,layer_2_for_union" PROCESSING "ITEMS=TYPE,ELEV" CLASS NAME "At 4ft or lower" EXPRESSION ([ELEV] <= 4) STYLE SYMBOL 'circle' COLOR 0 255 0 SIZE 15 END END CLASS NAME "Above 4ft" EXPRESSION ([ELEV] <= 100) STYLE SYMBOL 'circle' COLOR 0 255 255 SIZE 15 END END CLASS NAME "Other" STYLE SYMBOL 'circle' COLOR 180 180 180 SIZE 15 END END END However, if I have styling in the source layers (i.e. layer_1_for_union and layer_2_for_union) and use STYLEITEM "AUTO" in the union layer, the two source layers must have STATUS DEFAULT for anything to show up (which, I think, causes them to be drawn twice?). Am I missing something with how UNIONs and STYLEITEM "AUTO" work? Or is this how it was designed? Thanks, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Phone: 613-565-5056 x12 From jmckenna at gatewaygeomatics.com Tue May 3 10:27:29 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 03 May 2011 14:27:29 -0300 Subject: [mapserver-users] TYPE UNION and STYLEITEM In-Reply-To: <4DC039D3.3080705@gatewaygeomatics.com> References: <4DC03164.1050200@dmsolutions.ca> <4DC039D3.3080705@gatewaygeomatics.com> Message-ID: <4DC03B01.6060309@gatewaygeomatics.com> On 11-05-03 2:22 PM, Jeff McKenna wrote: > Hi Christy, > > I am not sure what is happening in your case. When I tested and > documented, I included my full working mapfile here: > http://www.mapserver.org/trunk/mapfile/union.html#mapfile-example > > If you structure your test mapfile the same, does your issue still occur? > > -jeff > > Another thought: maybe you are missing the empty class in the UNION layer? (see my example) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue May 3 10:22:27 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 03 May 2011 14:22:27 -0300 Subject: [mapserver-users] TYPE UNION and STYLEITEM In-Reply-To: <4DC03164.1050200@dmsolutions.ca> References: <4DC03164.1050200@dmsolutions.ca> Message-ID: <4DC039D3.3080705@gatewaygeomatics.com> Hi Christy, I am not sure what is happening in your case. When I tested and documented, I included my full working mapfile here: http://www.mapserver.org/trunk/mapfile/union.html#mapfile-example If you structure your test mapfile the same, does your issue still occur? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-03 1:46 PM, Christy Nieman wrote: > Hello, > > I was wondering if someone could let me know if my logic here is flawed... > > I am testing layers of TYPE UNION. I have two point data files and if I > have classes in the UNION'ed layer, they draw correctly. E.g.: > > # ================================================== > # Layer: Layer 1 for union > # ================================================== > LAYER > NAME "layer_1_for_union" > STATUS OFF > TYPE POINT > SIZEUNITS PIXELS > DATA "points1" > END > > # ================================================== > # Layer: Layer 2 for union > # ================================================== > LAYER > NAME "layer_2_for_union" > STATUS OFF > TYPE POINT > SIZEUNITS PIXELS > DATA "points2" > END > > # ================================================== > # Layer: UNION Layer > # ================================================== > LAYER > NAME "union_layer" > STATUS DEFAULT > TYPE POINT > SIZEUNITS PIXELS > CONNECTIONTYPE UNION > CONNECTION "layer_1_for_union,layer_2_for_union" > PROCESSING "ITEMS=TYPE,ELEV" > CLASS > NAME "At 4ft or lower" > EXPRESSION ([ELEV] <= 4) > STYLE > SYMBOL 'circle' > COLOR 0 255 0 > SIZE 15 > END > END > CLASS > NAME "Above 4ft" > EXPRESSION ([ELEV] <= 100) > STYLE > SYMBOL 'circle' > COLOR 0 255 255 > SIZE 15 > END > END > CLASS > NAME "Other" > STYLE > SYMBOL 'circle' > COLOR 180 180 180 > SIZE 15 > END > END > END > > However, if I have styling in the source layers (i.e. layer_1_for_union > and layer_2_for_union) and use STYLEITEM "AUTO" in the union layer, the > two source layers must have STATUS DEFAULT for anything to show up > (which, I think, causes them to be drawn twice?). > > Am I missing something with how UNIONs and STYLEITEM "AUTO" work? Or is > this how it was designed? > > Thanks, > Christy > From szekerest at gmail.com Tue May 3 10:31:48 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 3 May 2011 19:31:48 +0200 Subject: [mapserver-users] TYPE UNION and STYLEITEM In-Reply-To: <4DC03164.1050200@dmsolutions.ca> References: <4DC03164.1050200@dmsolutions.ca> Message-ID: 2011/5/3 Christy Nieman > > However, if I have styling in the source layers (i.e. layer_1_for_union and > layer_2_for_union) and use STYLEITEM "AUTO" in the union layer, the two > source layers must have STATUS DEFAULT for anything to show up (which, I > think, causes them to be drawn twice?). > > Am I missing something with how UNIONs and STYLEITEM "AUTO" work? Or is > this how it was designed? > > Christy, The UNION layer should show the features from the source layers regardless of their STATUS setting, so all of the features from the sources should be rendered by default. A new attribute (Union:SourceLayerVisible) has been added to the union layer so you can set up a FILTER expression to display the features from only the "visible" sources if required. The most common setting is to disable the visibility of the source layers (by setting the STATUS of the layers or classes to 'off') to avoid the feature duplication. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue May 3 10:55:40 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 03 May 2011 14:55:40 -0300 Subject: [mapserver-users] TYPE UNION and STYLEITEM In-Reply-To: <4DC03164.1050200@dmsolutions.ca> References: <4DC03164.1050200@dmsolutions.ca> Message-ID: <4DC0419C.2020609@gatewaygeomatics.com> Christy, I did more tests: with beta6 my example (the one on the mapserver site) works, but with the recent beta7 and rc1 the union layer is never styled through styleitem auto. Tamas did something change in beta7 in the union code? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-03 1:46 PM, Christy Nieman wrote: > Hello, > > I was wondering if someone could let me know if my logic here is flawed... > > I am testing layers of TYPE UNION. I have two point data files and if I > have classes in the UNION'ed layer, they draw correctly. E.g.: > > # ================================================== > # Layer: Layer 1 for union > # ================================================== > LAYER > NAME "layer_1_for_union" > STATUS OFF > TYPE POINT > SIZEUNITS PIXELS > DATA "points1" > END > > # ================================================== > # Layer: Layer 2 for union > # ================================================== > LAYER > NAME "layer_2_for_union" > STATUS OFF > TYPE POINT > SIZEUNITS PIXELS > DATA "points2" > END > > # ================================================== > # Layer: UNION Layer > # ================================================== > LAYER > NAME "union_layer" > STATUS DEFAULT > TYPE POINT > SIZEUNITS PIXELS > CONNECTIONTYPE UNION > CONNECTION "layer_1_for_union,layer_2_for_union" > PROCESSING "ITEMS=TYPE,ELEV" > CLASS > NAME "At 4ft or lower" > EXPRESSION ([ELEV] <= 4) > STYLE > SYMBOL 'circle' > COLOR 0 255 0 > SIZE 15 > END > END > CLASS > NAME "Above 4ft" > EXPRESSION ([ELEV] <= 100) > STYLE > SYMBOL 'circle' > COLOR 0 255 255 > SIZE 15 > END > END > CLASS > NAME "Other" > STYLE > SYMBOL 'circle' > COLOR 180 180 180 > SIZE 15 > END > END > END > > However, if I have styling in the source layers (i.e. layer_1_for_union > and layer_2_for_union) and use STYLEITEM "AUTO" in the union layer, the > two source layers must have STATUS DEFAULT for anything to show up > (which, I think, causes them to be drawn twice?). > > Am I missing something with how UNIONs and STYLEITEM "AUTO" work? Or is > this how it was designed? From szekerest at gmail.com Tue May 3 10:59:08 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 3 May 2011 19:59:08 +0200 Subject: [mapserver-users] TYPE UNION and STYLEITEM In-Reply-To: <4DC0419C.2020609@gatewaygeomatics.com> References: <4DC03164.1050200@dmsolutions.ca> <4DC0419C.2020609@gatewaygeomatics.com> Message-ID: 2011/5/3 Jeff McKenna > Christy, > > I did more tests: with beta6 my example (the one on the mapserver site) > works, but with the recent beta7 and rc1 the union layer is never styled > through styleitem auto. > > Tamas did something change in beta7 in the union code? > > Good question, I'll investigate this problem. Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue May 3 11:27:23 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 3 May 2011 20:27:23 +0200 Subject: [mapserver-users] Mapserver usage with commercial vendors data In-Reply-To: <4DBABAD2.1070206@ubiest.com> References: <4DBABAD2.1070206@ubiest.com> Message-ID: On Fri, Apr 29, 2011 at 3:19 PM, Paolo Crosato wrote: > Hi, > > I work for an LBS based company, we have our own proprietary rendering > engine for producing maps, and we work mainly with data from Navteq and > Teleatlas. Presently our rendering engine is behind the competition in terms > of visual quality (we have a bad support for antialiasing, label names with > both native and transliterate names are missing, and so on). Introducing new > features in our current rendering architecture would require quite a lot of > coding and re-engineering, so we are looking for alternative renderers, > possibly open sourced. During this research project I came across Mapserver, > and it seems it would suit our needs in terms of high quality rendering and > customization. > However, there are still some open issues, mainly questions, I'd like to > ask. > > In regards to rendering: > 1) Is there any way to align labels in different encondings for the same > city? I mean something like writing ??????? and *Moskv? *vertically > aligned, like on Google Maps. > 2) Is there any plan to support 2.5D rendering for buildings? > > In regards to working with high loads of data: > 1) We render our maps from data provided by vendors like Navteq, and they > have a lot of details and features. Is there anyone working in the same > field, who could share some of his experience? > 2) Is it more efficient to work with PostGis/Oracle Spatial or with > shapefiles? I suppose the former would be faster, since shapefiles provided > by Navteq would require about 100gigs for Europe only, just to store the > data. > As Thomas said probably a database like Postgis or Oracle (if your budget allows for the hefty license fee) is a sensible choice because it makes complex manipulations (like adding a translation for a label) easy. In that case a machine dedicated to the db backend with a fast network (GB or better) link to the rendering workstation is also *probably* recommended to free CPU resources and memory (for caching resultsets) on the rendering side (but that depends on your queries). If a query is particularly CPU or I/O intensive consider using a materialized view instead (Oracle has builtin support, postgres not yet but it can be done). 3) In regards to the hardware, I reckon we would need at least one > workstation dedicated to rendering. Currently we are hosting our rendering > service on dual Xeon (quad core), with 16G of ram and SAS arrays of hard > disks, would one server like this be ok or would it be better to have more > machines, especially if planning to use RDBMS to hold the data? I'm asking > this because with currently work with detailed data from Europe, North and > South America, so it's quite a lot of stuff :) > One issue to consider (might not be critical, just informing you) is that mapserver will perform the layer rendering serially. Another is that disks are only involved when it is writing the image to a file so I would also think about saving money on disks and get more servers instead or use a fast primary for file generation (think SSD) and then move them async'ly to a slower (but cheaper) storage (think NFS). Last: too much ram might never get used because of the cpu bottleneck kicking in before so I would also make sure that I could shuffle ram around if necessary (i.e.: one server's CPUs are consistently maxed out, but memory isn't: in that case I would buy a new server and move memory to the new one instead of buying more and waste it). HTH, Umberto > Thanks in advance for any feedback. > > Regards, > > Paolo Crosato > > -- > > Paolo Crosato > Ubiest SPAhttp://www.ubiest.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 vsaraf.gmu at gmail.com Tue May 3 13:19:10 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Tue, 3 May 2011 16:19:10 -0400 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> Message-ID: Hi, Thanks a lot Andreas. That JOIN was the culprit as you rightly suggested. Once I removed the join, the performance increased exponentially. The 5 minute cgi run now took under 5 seconds which is simply amazing. I just need one more help. Is there a DBF editor out there that can be used to import the fields from any external data source into the shapefile attribute DBF without affecting the structure? I looked for a lot but they do not have the capability of doing a JOIN based on a common field and pulling data into the shapefile DBF automatically. My company cannot afford the ArcGis software. Thanks, Varun On Fri, Apr 15, 2011 at 2:40 AM, Eichner, Andreas - SID-NLKM wrote: > > Hi, > > AFAIK dBase files don't provide an index themselves and there's no other > way to provide one. shptree only creates an spatial index. Therefore > only queries like 'does this geometry touch/intersect/lie within a given > rectangle'can be accelerated. > >> I tried the shptree tool but did not see any performance improvement. > > So this becomes clear: By doing a JOIN MapServer basically runs a loop: > for each geometry that matches search withing external data for a line > matching the join condition. > >> Could it be because all of this information that I require is coming >> from an external DBF file that I join to the layer/shape's DBF? Will >> including all these fields/information in the shape's DBF file itself >> help? > > I'm pretty sure that this would help, since this would avoid the > (unaccelerated) join. With a database like PostgreSQL/PostGIS or SQlite > it's basically the same problem: if you don't create an appropriate > index for the join condition, this becomes an costly operation. Although > those columns are usually primary and foreign key columns with > appropriate index and the join condition is usually a simple equality > match. > From punk.kish at gmail.com Tue May 3 13:42:16 2011 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Tue, 3 May 2011 15:42:16 -0500 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> <048D3301-F71C-4E88-8FF1-FB5AEE8C3700@gmail.com> Message-ID: On May 3, 2011, at 3:36 PM, Varun saraf wrote: > Hi Puneet, > > Thanks a lot for the prompt reply. I tried using Excel 2007 and was > not able to re-save the dbf file after editing. Also, I am having DBF > files with about a million records and Excel tends to hang for these > operations. Now you tell us ;-). My sense is that most gui-based tools will choke on million+ rows. You might well want to "upgrade" to a Pg/PostGIS solution at some point, but I realize that is not what you are asking for... (also, I believe the most recent Excel versions might have lost the DBF translation capabilities -- I am not an Excel person, so I can't confirm... besides, I use Macs, and Excel is most likely hobbled on Macs anyway). > Is there some tool other than Excel which can do these > operations? I remember using Perl and XBase.pm to do this. It was really very quick and trivial, but it was a long time ago. Choose your language of choice. Try R. > > Thanks, > Varun > > On Tue, May 3, 2011 at 4:27 PM, Mr. Puneet Kishor wrote: >> >> On May 3, 2011, at 3:19 PM, Varun saraf wrote: >> >>> ..Is there a DBF editor out >>> there that can be used to import the fields from any external data >>> source into the shapefile attribute DBF without affecting the >>> structure? I looked for a lot but they do not have the capability of >>> doing a JOIN based on a common field and pulling data into the >>> shapefile DBF automatically. >> >> Just use MS-Excel or any program that can open up and write DBF. As long as you are careful to not change the number of rows, just add additional columns, and make sure the column names are not changed, and follow the various DBF limitations, you should be ok. Make sure to keep a backup of the original DBF in case things go ka-pow! >> >> Since the DBF data and the geometry are in separate files, there is no issue with adding more attributes provide you follow the care noted above. >> .. >> >> >> >> Puneet. From vsaraf.gmu at gmail.com Tue May 3 14:02:08 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Tue, 3 May 2011 17:02:08 -0400 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> <048D3301-F71C-4E88-8FF1-FB5AEE8C3700@gmail.com> Message-ID: Hi, Thanks a lot for the quick help. I am a PHP/Java guy. I shall try my luck with some sort of PHP scripting as I need a solution fairly quickly. I had made the suggestion of shifting to a PostGIS system quite some time back but I guess you know how it is with approvals :) Thanks again, Varun On Tue, May 3, 2011 at 4:42 PM, Mr. Puneet Kishor wrote: > > On May 3, 2011, at 3:36 PM, Varun saraf wrote: > >> Hi Puneet, >> >> Thanks a lot for the prompt reply. I tried using Excel 2007 and was >> not able to re-save the dbf file after editing. Also, I am having DBF >> files with about a million records and Excel tends to hang for these >> operations. > > > Now you tell us ;-). My sense is that most gui-based tools will choke on million+ rows. You might well want to "upgrade" to a Pg/PostGIS solution at some point, but I realize that is not what you are asking for... (also, I believe the most recent Excel versions might have lost the DBF translation capabilities -- I am not an Excel person, so I can't confirm... besides, I use Macs, and Excel is most likely hobbled on Macs anyway). > > >> Is there some tool other than Excel which can do these >> operations? > > > I remember using Perl and XBase.pm to do this. It was really very quick and trivial, but it was a long time ago. Choose your language of choice. Try R. > > > > >> >> Thanks, >> Varun >> >> On Tue, May 3, 2011 at 4:27 PM, Mr. Puneet Kishor wrote: >>> >>> On May 3, 2011, at 3:19 PM, Varun saraf wrote: >>> >>>> ..Is there a DBF editor out >>>> there that can be used to import the fields from any external data >>>> source into the shapefile attribute DBF without affecting the >>>> structure? I looked for a lot but they do not have the capability of >>>> doing a JOIN based on a common field and pulling data into the >>>> shapefile DBF automatically. >>> >>> Just use MS-Excel or any program that can open up and write DBF. As long as you are careful to not change the number of rows, just add additional columns, and make sure the column names are not changed, and follow the various DBF limitations, you should be ok. Make sure to keep a backup of the original DBF in case things go ka-pow! >>> >>> Since the DBF data and the geometry are in separate files, there is no issue with adding more attributes provide you follow the care noted above. >>> .. >>> >>> >>> >>> Puneet. > > From mwkorver at gmail.com Tue May 3 14:05:30 2011 From: mwkorver at gmail.com (Mark Korver) Date: Tue, 3 May 2011 16:05:30 -0500 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> Message-ID: Spatialite jumps into my mind. http://www.gaia-gis.it/spatialite/ On Tue, May 3, 2011 at 3:19 PM, Varun saraf wrote: > Hi, > > Thanks a lot Andreas. That JOIN was the culprit as you rightly > suggested. Once I removed the join, the performance increased > exponentially. The 5 minute cgi run now took under 5 seconds which is > simply amazing. I just need one more help. Is there a DBF editor out > there that can be used to import the fields from any external data > source into the shapefile attribute DBF without affecting the > structure? I looked for a lot but they do not have the capability of > doing a JOIN based on a common field and pulling data into the > shapefile DBF automatically. My company cannot afford the ArcGis > software. > > Thanks, > Varun > > On Fri, Apr 15, 2011 at 2:40 AM, Eichner, Andreas - SID-NLKM > wrote: >> >> Hi, >> >> AFAIK dBase files don't provide an index themselves and there's no other >> way to provide one. shptree only creates an spatial index. Therefore >> only queries like 'does this geometry touch/intersect/lie within a given >> rectangle'can be accelerated. >> >>> I tried the shptree tool but did not see any performance improvement. >> >> So this becomes clear: By doing a JOIN MapServer basically runs a loop: >> for each geometry that matches search withing external data for a line >> matching the join condition. >> >>> Could it be because all of this information that I require is coming >>> from an external DBF file that I join to the layer/shape's DBF? Will >>> including all these fields/information in the shape's DBF file itself >>> help? >> >> I'm pretty sure that this would help, since this would avoid the >> (unaccelerated) join. With a database like PostgreSQL/PostGIS or SQlite >> it's basically the same problem: if you don't create an appropriate >> index for the join condition, this becomes an costly operation. Although >> those columns are usually primary and foreign key columns with >> appropriate index and the join condition is usually a simple equality >> match. >> > _______________________________________________ > 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 Tue May 3 14:07:26 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 3 May 2011 16:07:26 -0500 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> Message-ID: I was thinking the same thing... You could either just import the shapefiles or use the virtual shape functionality. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Korver Sent: Tuesday, May 03, 2011 4:06 PM To: Varun saraf Cc: mapserver-users at lists.osgeo.org Subject: Re: VS: [mapserver-users] Mapserver search performance Spatialite jumps into my mind. http://www.gaia-gis.it/spatialite/ From terraplan at gmx.net Tue May 3 14:29:49 2011 From: terraplan at gmx.net (Iris Rittinger (Terraplan)) Date: Tue, 03 May 2011 23:29:49 +0200 Subject: [mapserver-users] Problems with the WMS Client VERSION 1.3.0 Message-ID: <4DC073CD.6060702@gmx.net> Hi, I am trying to include a WMS Layer with the WMS Version 1.3.0 in my MapFile. I have included serveral WMS Layers, but so far only VERSION 1.1.1 or lower. The syntax I used before does not seem to work here. I keep on getting the error message: msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string) My Mapserver Version is MapServer version 5.7-dev from FWTools2.4.7. My Mapfile includes the following Layer: LAYER NAME "Deutschland" TYPE RASTER STATUS DEFAULT CONNECTIONTYPE WMS CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500" METADATA "wms_srs" "epsg:4326" "wms_name" "0" "wms_title" "DTK2500" "wms_server_version" "1.3.0" "wms_format" "image/png" "wms_onlineresource" "http://gdz.bkg.bund.de/wms_dtk2500" END END When I include the CONNECTION in my MapFile, then I get the described error. When I ommit the CONNECTION String and use the wms_onlineresource which seems to be the newer syntax, then I do not get the error message, but I can also not see the map. When I use wms_server_version 1.1.0, then I do see the map, but on a wrong position. From what I read that might have something to do with the change of the axis between 1.1.0 and 1.3.0. Did the Syntax for the mapfile change between the Version 1.1.0 and 1.3.0 and I did not see it in the documentation or am I missing something else? Does the wms_srs still work, since in the url I need the CRS for the projection. Any ideas? The following REQUEST works in my browser, so the wms Server is running: http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true Any help would be greatly appreciated. Thanks, Iris Rittinger -- Iris Rittinger Terraplan Gewerbestr. 33 79229 Schallstadt www.terraplan.com From osgeo.mailinglist at gmail.com Tue May 3 18:00:37 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Wed, 4 May 2011 03:00:37 +0200 Subject: [mapserver-users] Problems with the WMS Client VERSION 1.3.0 In-Reply-To: <4DC073CD.6060702@gmx.net> References: <4DC073CD.6060702@gmx.net> Message-ID: Hello, After a look, my results are near the same. With "wms_server_version" "1.3.0", I got the same error msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string) but when I use wms_server_version 1.1.1, positions between original layer and the one included into mapserver are OK. Your test url http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true My localhost url (I don't hide map path) http://localhost/cgi-bin/mapserv?map=/home/quelleville/SIG/wms130/mapfiles/mapfile_carte.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&STYLES=&FORMAT=image/png&LAYERS=0 The sample mapfile mapfile_carte.map (change paths) MAP CONFIG PROJ_LIB "/home/user/test/" SYMBOLSET "/home/user/test/symbols.sym" FONTSET "/home/user/test/FONT/fonts.list" SHAPEPATH "home/user/test/deutschland" NAME "DEUTSCHLAND" #name to give your map service IMAGETYPE PNG24 EXTENT -180.0000 -90.0000 180.0000 90.0000 SIZE 953 480 STATUS ON TRANSPARENT ON PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA END WEB IMAGEPATH "/home/user/test/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Deutschland Map" "wms_onlineresource" " http://localhost/cgi-bin/mapserv?map=/home/user/test/wms130/mapfiles/mapfile_carte.map&" "wms_srs" "EPSG:4326" END END #End Web LAYER NAME "0" TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500?" METADATA "wms_title" "0" "wms_name" "0" "wms_srs" "EPSG:4326" "wms_server_version" "1.1.1" "wms_format" "image/png" END END END # Map File Hope it helps Regards ThomasG GIS specialist PS : Don't forget to zoom after you render map in your brower in both case. If not, you may think that layers positions are differents althought they are perfectly aligned. (for FF, I get this behavior) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue May 3 18:12:06 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 03 May 2011 21:12:06 -0400 Subject: [mapserver-users] Problems with the WMS Client VERSION 1.3.0 In-Reply-To: References: <4DC073CD.6060702@gmx.net> Message-ID: <4DC0A7E6.70309@mapgears.com> I believe the MapServer WMS Client code does not support WMS 1.3.0 yet (as the error message says). There is a ticket about adding this in a future release: http://trac.osgeo.org/mapserver/ticket/3039 Daniel On 11-05-03 09:00 PM, Thomas Gratier wrote: > Hello, > > After a look, my results are near the same. With "wms_server_version" > "1.3.0", I got the same error msBuildWMSLayerURL(): WMS connection > error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the > VERSION parameter in the connection string) but when I use > wms_server_version 1.1.1, positions between original layer and the one > included into mapserver are OK. > > Your test url > http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true > > > My localhost url (I don't hide map path) > http://localhost/cgi-bin/mapserv?map=/home/quelleville/SIG/wms130/mapfiles/mapfile_carte.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&STYLES=&FORMAT=image/png&LAYERS=0 > > > The sample mapfile mapfile_carte.map (change paths) > > MAP > CONFIG PROJ_LIB "/home/user/test/" > SYMBOLSET "/home/user/test/symbols.sym" > FONTSET "/home/user/test/FONT/fonts.list" > SHAPEPATH "home/user/test/deutschland" > NAME "DEUTSCHLAND" #name to give your map service > IMAGETYPE PNG24 > EXTENT -180.0000 -90.0000 180.0000 90.0000 > SIZE 953 480 > STATUS ON > TRANSPARENT ON > PROJECTION > "init=epsg:4326" > END > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > END > WEB > IMAGEPATH "/home/user/test/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Deutschland Map" > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv?map=/home/user/test/wms130/mapfiles/mapfile_carte.map& > " > > "wms_srs" "EPSG:4326" > END > END #End Web > > LAYER > NAME "0" > TYPE RASTER > STATUS ON > CONNECTIONTYPE WMS > CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500?" > METADATA > "wms_title" "0" > "wms_name" "0" > "wms_srs" "EPSG:4326" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > END > END > > END # Map File > > Hope it helps > > Regards > > ThomasG > GIS specialist > > PS : Don't forget to zoom after you render map in your brower in both > case. If not, you may think that layers positions are differents > althought they are perfectly aligned. (for FF, I get this behavior) > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Andreas.Eichner at sid.sachsen.de Wed May 4 01:23:54 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 4 May 2011 10:23:54 +0200 Subject: AW: VS: [mapserver-users] Mapserver search performance References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> Hi. The first thing to note: editing a DBF with Excel & Co. seems to be a _really_ bad idea. Those who tried that got Shapes wired to wrong attribute lines. So DBF, SHP, SHX and QIX files have to be used as a whole or will usually end up in a corrupted dataset. I would suggest "ogr2ogr" from the GDAL suite. It's fast, reliable, can do joins and is aware of the mentioned dependencies. Please note that such a fileset can only provide a spatial index via a QIX file. This is OK if you only want to filter by BBOX. If you want to filter by attribute all lines of the DBF still need to be scanned. In such cases it's wise to use ogr2ogr to split the data in pre-filtered sets. Using a more sophisticated database like PostGIS or SpatialLite can help you implement more complex scenarios. Since MapServer has no native driver for SpatialLite it's probably not as fast as it is supposed to be. This mostly depends on OGRs implementation. Greetings > Is there a DBF editor out > there that can be used to import the fields from any external data > source into the shapefile attribute DBF without affecting the > structure? I looked for a lot but they do not have the capability of > doing a JOIN based on a common field and pulling data into the > shapefile DBF automatically. From nikos at maich.gr Wed May 4 03:19:07 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 04 May 2011 13:19:07 +0300 Subject: [mapserver-users] DBF editor for adding fields Message-ID: <2fab7bbd71ee4c15cebf2ddf01049839@maich.gr> Hi, FWIW, years ago we developed a small tool to update fields/columns of a shapefile dbf from a flatfile. This was essentially additions to shapelib/dbflib that added a few additional functions such as DBFWriteStringAttributeList and DBFWriteDoubleAttributeList. The lib was additionally built as a loadable module under tcl... Usage was like UpdateDBF {DBFName txtDataFile txtFieldName FieldNo} IIRC, we submitted the changes to shapelib maintainer, but I don't know if they ever made it.. Let me know and I can send it over with some basic usage instructions... regards, nikos From geotech.sarel at gmail.com Wed May 4 04:46:20 2011 From: geotech.sarel at gmail.com (Sarel Coetzer) Date: Wed, 4 May 2011 13:46:20 +0200 Subject: [mapserver-users] Mapserver configure error libgd.so Message-ID: HI I am building mapserver on Ubuntu 10.10 and hit a wall. I have been searching for solutions but cant find any. Your help will be greatly apprecaited. Problem: ./configure mapserver 5.6.6 runs into error: "Could not find gd.h or lib.gd.a/libgd.so in /opt/lampp/lib". All my libraries are present under /opt/lampp/lib. I did notice there is a gdFontCacheSetup issue. Anyone has any ideas. I have seen these issues over and over again in the past 7 years but no real solution. Your help will be amazing. Regards Sarel -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.hird at aligned-assets.co.uk Wed May 4 05:07:41 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Wed, 4 May 2011 05:07:41 -0700 (PDT) Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: <4DA5984D.1010906@gatewaygeomatics.com> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> <4DA5984D.1010906@gatewaygeomatics.com> Message-ID: <1304510861218-6330562.post@n2.nabble.com> Jeff, I have ruled it out from being a chameleon issue - as the issue still occurs when using the ITASCA demo. to replicate I created a tab file using ogr2ogr ie: (in Dos) cd C:\ms4w\apps\mapserv-demo\data ogr2ogr -f "MapInfo File" lakespy2.Tab lakespy2.shp I then adjusted the ITASCA.map file to reference the newly created Tab file instead of the shape and the querying then no longer worked for that layer. This is good in some ways as I guess its a MapServer issue rather than the add-ons. However with reference to the first point you make would you be able to offer any more advise as I am uncertain as to what/how to do what you describe. "make sure GDAL/OGR is accessing your file properly (testing with the ogrinfo command on your old installation version and with your new installation GDAL version, and compare the ogrinfo results) " If anyone can help I would be very grateful Thanks Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6330562.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed May 4 05:21:08 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 04 May 2011 09:21:08 -0300 Subject: [mapserver-users] DBF editor for adding fields In-Reply-To: <2fab7bbd71ee4c15cebf2ddf01049839@maich.gr> References: <2fab7bbd71ee4c15cebf2ddf01049839@maich.gr> Message-ID: <4DC144B4.3090103@gatewaygeomatics.com> On 11-05-04 7:19 AM, nikos at maich.gr wrote: > Hi, > > FWIW, years ago we developed a small tool to update fields/columns of a > shapefile dbf from a flatfile. This was essentially additions to > shapelib/dbflib that added a few additional > functions such as DBFWriteStringAttributeList and > DBFWriteDoubleAttributeList. > > The lib was additionally built as a loadable module under tcl... > > Usage was like > UpdateDBF {DBFName txtDataFile txtFieldName FieldNo} > > IIRC, we submitted the changes to shapelib maintainer, but I don't know > if they ever made it.. > Let me know and I can send it over with some basic usage instructions... Hello, Did you follow the instructions on http://shapelib.maptools.org/ to submit your changes through Bugzilla? http://bugzilla.maptools.org/enter_bug.cgi?product=Shapelib Your direct email to the maintainers might have been lost, so it's always good to file a ticket in the bug tracker, and then you can follow along with the development. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Wed May 4 05:56:35 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 04 May 2011 09:56:35 -0300 Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: <1304510861218-6330562.post@n2.nabble.com> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> <4DA5984D.1010906@gatewaygeomatics.com> <1304510861218-6330562.post@n2.nabble.com> Message-ID: <4DC14D03.6080200@gatewaygeomatics.com> On 11-05-04 9:07 AM, Andy Hird wrote: > Jeff, > > I have ruled it out from being a chameleon issue - as the issue still occurs > when using the ITASCA demo. to replicate I created a tab file using ogr2ogr > ie: > (in Dos) > cd C:\ms4w\apps\mapserv-demo\data > ogr2ogr -f "MapInfo File" lakespy2.Tab lakespy2.shp > I then adjusted the ITASCA.map file to reference the newly created Tab file > instead of the shape and the querying then no longer worked for that layer. > Hello Andy, I am not sure what is happening for you. I just installed a fresh MS4W version 3.0.2, then created lakespy2.tab as you did, and then modified the itasca.map file to point to the tab file (using the mapfile example from http://www.mapserver.org/input/vector/mapinfo.html), and I am able to query the tab file in the Itasca application. Note that if you are stuck on something you can always contact a MapServer service provider like us that offers professional support for MapServer. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From andy.hird at aligned-assets.co.uk Wed May 4 06:04:07 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Wed, 4 May 2011 06:04:07 -0700 (PDT) Subject: [mapserver-users] Out of Office AutoReply: Problems with Query Template (Chameleon) In-Reply-To: <4DC14D03.6080200@gatewaygeomatics.com> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> <4DA5984D.1010906@gatewaygeomatics.com> <1304510861218-6330562.post@n2.nabble.com> <4DC14D03.6080200@gatewaygeomatics.com> Message-ID: I am currently out of the Office and will be back on the 3rd May 2011 - Please contact support at aligned-assets.co.uk ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6330717.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Wed May 4 06:26:29 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 04 May 2011 16:26:29 +0300 Subject: [mapserver-users] Re: DBF EDITOR In-Reply-To: <20110504141246.095C9E02078@lists.osgeo.org> References: <20110504141246.095C9E02078@lists.osgeo.org> Message-ID: <560b014dc70bc9b15bb7e6212497c00d@maich.gr> Hi, Cant be sure, but IIRC, I just sent the changes to Frank. Regardless, I'll file a ticket with the diffs. regards, nikos From mwkorver at gmail.com Wed May 4 06:51:57 2011 From: mwkorver at gmail.com (Mark Korver) Date: Wed, 4 May 2011 08:51:57 -0500 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> Message-ID: I agree with Andreas, if you just want to manipulate the shapefile and continue to use a moded shapefile with MapServer then Spatialite ( or ogr2ogr ) can help you, but if you want query flexibility with MapServer then postGIS is the way to go. On Wed, May 4, 2011 at 3:23 AM, Eichner, Andreas - SID-NLKM wrote: > > Hi. The first thing to note: editing a DBF with Excel & Co. seems to be > a _really_ bad idea. Those who tried that got Shapes wired to wrong > attribute lines. So DBF, SHP, SHX and QIX files have to be used as a > whole or will usually end up in a corrupted dataset. I would suggest > "ogr2ogr" from the GDAL suite. It's fast, reliable, can do joins and is > aware of the mentioned dependencies. > Please note that such a fileset can only provide a spatial index via a > QIX file. This is OK if you only want to filter by BBOX. If you want to > filter by attribute all lines of the DBF still need to be scanned. In > such cases it's wise to use ogr2ogr to split the data in pre-filtered > sets. > Using a more sophisticated database like PostGIS or SpatialLite can help > you implement more complex scenarios. Since MapServer has no native > driver for SpatialLite it's probably not as fast as it is supposed to > be. This mostly depends on OGRs implementation. > > Greetings > >> Is there a DBF editor out >> there that can be used to import the fields from any external data >> source into the shapefile attribute DBF without affecting the >> structure? I looked for a lot but they do not have the capability of >> doing a JOIN based on a common field and pulling data into the >> shapefile DBF automatically. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cnieman at dmsolutions.ca Wed May 4 07:33:21 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 04 May 2011 10:33:21 -0400 Subject: [mapserver-users] CLUSTER object with GROUPs and FILTERs Message-ID: <4DC163B1.8020501@dmsolutions.ca> Hello, I'm trying to understand the new CLUSTER object. I have a feeling that I'm just expecting things to work differently than they do, but wanted to confirm. If you have a CLUSTER object with a GROUP expression in it (e.g. GROUP ( '[type]' = 'car' ), the Cluster:Group feature attribute evaluates to true or false. Makes sense. Now, is there a way to make it so that a grouping by attribute value happens? i.e. if I have data with vehicle types in it and want the data to be clustered by type - car, truck and van for example - is there a way to do this without having three layers where each one has a GROUP expression for each vehicle type? Thanks, Christy From andy.hird at aligned-assets.co.uk Wed May 4 07:38:59 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Wed, 4 May 2011 07:38:59 -0700 (PDT) Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: <4DC14D03.6080200@gatewaygeomatics.com> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> <4DA5984D.1010906@gatewaygeomatics.com> <1304510861218-6330562.post@n2.nabble.com> <4DC14D03.6080200@gatewaygeomatics.com> Message-ID: Jeff Your quite right. Sorry I do not know what happened there (I have swapped settings so much on my pc here I guess I failed to swap something back). I can confirm it works in ITASCA demo, but does not within Chameleon. Easily recreated by Installing Chameleon and doing the same sort of thing (In Dos) cd C:\ms4w\apps\chameleon\samples\data ogr2ogr -f "MapInfo File" popplace.Tab popplace.shp Then change map file and goto the demo url http://localhost/chameleon/samples/sample_basic_jsapi.phtml Now when I click on one of the cities I get an actual error (which may be progress) Warning: array_merge(): Argument #1 is not an array in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_query.php on line 577 Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\chameleon\htdocs\widgets\Query\QueryResults.phtml on line 294 Looks like the Chameleon List is rarely used these days and unfortunately I have no budget available to get this issue professionally sorted, Its looking like I am up a creek with no paddle... Thanks in advance Andy From: Jeff McKenna [via OSGeo.org] [mailto:ml-node+6330714-2002393781-329509 at n2.nabble.com] Sent: 04 May 2011 14:04 To: Andy Hird Subject: RE: Problems with Query Template (Chameleon) On 11-05-04 9:07 AM, Andy Hird wrote: > Jeff, > > I have ruled it out from being a chameleon issue - as the issue still occurs > when using the ITASCA demo. to replicate I created a tab file using ogr2ogr > ie: > (in Dos) > cd C:\ms4w\apps\mapserv-demo\data > ogr2ogr -f "MapInfo File" lakespy2.Tab lakespy2.shp > I then adjusted the ITASCA.map file to reference the newly created Tab file > instead of the shape and the querying then no longer worked for that layer. > Hello Andy, I am not sure what is happening for you. I just installed a fresh MS4W version 3.0.2, then created lakespy2.tab as you did, and then modified the itasca.map file to point to the tab file (using the mapfile example from http://www.mapserver.org/input/vector/mapinfo.html), and I am able to query the tab file in the Itasca application. Note that if you are stuck on something you can always contact a MapServer service provider like us that offers professional support for MapServer. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _____ If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Cham eleon-tp6252878p6330714.html To unsubscribe from Problems with Query Template (Chameleon), click here . ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6331102.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed May 4 08:18:15 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 4 May 2011 17:18:15 +0200 Subject: [mapserver-users] Mapfile syntax highlighting Message-ID: Hi All, Could someone point me to a working syntax file for editing mapfiles in SciTE? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsaraf.gmu at gmail.com Wed May 4 08:22:51 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Wed, 4 May 2011 11:22:51 -0400 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> Message-ID: Hi Andreas, I have looked and looked but could not find how to use ogr2ogr to do the operation I am interested in. Could you point me in the right direction here as to how can ogr2ogr be used to add new fields to an existing dbf file from another dbf file. The external dbf file from which I need to fetch data does not have a corresponding shp file associated with it. Its just a simple data file that has a common field with the shp file attributes. Varun On Wed, May 4, 2011 at 4:23 AM, Eichner, Andreas - SID-NLKM wrote: > > Hi. The first thing to note: editing a DBF with Excel & Co. seems to be > a _really_ bad idea. Those who tried that got Shapes wired to wrong > attribute lines. So DBF, SHP, SHX and QIX files have to be used as a > whole or will usually end up in a corrupted dataset. I would suggest > "ogr2ogr" from the GDAL suite. It's fast, reliable, can do joins and is > aware of the mentioned dependencies. > Please note that such a fileset can only provide a spatial index via a > QIX file. This is OK if you only want to filter by BBOX. If you want to > filter by attribute all lines of the DBF still need to be scanned. In > such cases it's wise to use ogr2ogr to split the data in pre-filtered > sets. > Using a more sophisticated database like PostGIS or SpatialLite can help > you implement more complex scenarios. Since MapServer has no native > driver for SpatialLite it's probably not as fast as it is supposed to > be. This mostly depends on OGRs implementation. > > Greetings > >> Is there a DBF editor out >> there that can be used to import the fields from any external data >> source into the shapefile attribute DBF without affecting the >> structure? I looked for a lot but they do not have the capability of >> doing a JOIN based on a common field and pulling data into the >> shapefile DBF automatically. > From dmorissette at mapgears.com Wed May 4 09:31:30 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 04 May 2011 12:31:30 -0400 Subject: [mapserver-users] Mapserver configure error libgd.so In-Reply-To: References: Message-ID: <4DC17F62.6070501@mapgears.com> On 11-05-04 07:46 AM, Sarel Coetzer wrote: > HI > I am building mapserver on Ubuntu 10.10 and hit a wall. I have been > searching for solutions but cant find any. Your help will be greatly > apprecaited. > Problem: > ./configure mapserver 5.6.6 runs into error: > "Could not find gd.h or lib.gd.a/libgd.so in /opt/lampp/lib". The error message should also say: "... Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv)." Is your GD version 2.0.16 or more recent? Did you check that all GD dependencies are satisfied? And that libgd.so is present in /opt/lampp/lib (i.e. not just libgd.so.xx) > All my libraries are present under /opt/lampp/lib. > I did notice there is a gdFontCacheSetup issue. The gdFontCacheSetup test is to ensure we have GD 2.0.16 or more recent. What is the Issue with this test exactly? Does it just say "no" at the end of the test or is there an explicit error message? You may also want to look at the config.log file... it may contain hints as to why the GD lib test fails. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From osgeo.mailinglist at gmail.com Wed May 4 10:59:33 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Wed, 4 May 2011 19:59:33 +0200 Subject: [mapserver-users] Mapfile syntax highlighting In-Reply-To: References: Message-ID: Hello, Retrieve the ZIP http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties For Ubuntu wget http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties unzip map_properties.zip sudo cp map.properties /usr/share/scite/ sudo chmod 777 /usr/share/scite/map.properties sudo gedit /usr/share/scite/SciTEGlobal.properties #Before import matlab, add import map #Now open a mapfile in scite and you have syntax highlighting You can have a look on http://sites.google.com/site/gianpierocampanella/files It's for Notepad++ highlighting but Scite and Notepad++ shared Scintilla library behind. Be careful, both solutions use mapserver syntax from one, two or more years. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed May 4 11:16:22 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 4 May 2011 20:16:22 +0200 Subject: [mapserver-users] CLUSTER object with GROUPs and FILTERs In-Reply-To: <4DC163B1.8020501@dmsolutions.ca> References: <4DC163B1.8020501@dmsolutions.ca> Message-ID: Christy, The GROUP expression evaluates to a string which controls that which features are being negotiated. Only the neighbouring features belonging to the same group are added to the same cluster. On the contrary the filter evaluates to a boolean expression which determines whether the feature should be omitted in the clustering operation. Best regards, Tamas 2011/5/4 Christy Nieman > Hello, > > I'm trying to understand the new CLUSTER object. I have a feeling that I'm > just expecting things to work differently than they do, but wanted to > confirm. > > If you have a CLUSTER object with a GROUP expression in it (e.g. GROUP ( > '[type]' = 'car' ), the Cluster:Group feature attribute evaluates to true or > false. Makes sense. Now, is there a way to make it so that a grouping by > attribute value happens? i.e. if I have data with vehicle types in it and > want the data to be clustered by type - car, truck and van for example - is > there a way to do this without having three layers where each one has a > GROUP expression for each vehicle type? > > Thanks, > Christy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed May 4 11:44:37 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 4 May 2011 20:44:37 +0200 Subject: [mapserver-users] Mapfile syntax highlighting In-Reply-To: References: Message-ID: Thomas, Thanks for the input, it was really helpful. Best regards, Tamas 2011/5/4 Thomas Gratier > Hello, > > Retrieve the ZIP > > http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties > > For Ubuntu > > wget > http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties > unzip map_properties.zip > sudo cp map.properties /usr/share/scite/ > sudo chmod 777 /usr/share/scite/map.properties > sudo gedit /usr/share/scite/SciTEGlobal.properties > #Before import matlab, add > import map > > #Now open a mapfile in scite and you have syntax highlighting > > You can have a look on > http://sites.google.com/site/gianpierocampanella/files > It's for Notepad++ highlighting but Scite and Notepad++ shared Scintilla > library behind. > > Be careful, both solutions use mapserver syntax from one, two or more > years. > > Regards > > ThomasG > GIS specialist > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From terraplan at gmx.net Wed May 4 23:59:07 2011 From: terraplan at gmx.net (Iris Rittinger (Terraplan)) Date: Thu, 05 May 2011 08:59:07 +0200 Subject: [mapserver-users] Problems with the WMS Client VERSION 1.3.0 In-Reply-To: <4DC073CD.6060702@gmx.net> References: <4DC073CD.6060702@gmx.net> Message-ID: <4DC24ABB.1030500@gmx.net> Hi, I found the error. The letters EPSG in the srs_wms have to be uppercase. I used the lower case letters. Now it works. Thanks Iris Rittinger Am 03.05.2011 23:29, schrieb Iris Rittinger (Terraplan): > Hi, > > I am trying to include a WMS Layer with the WMS Version 1.3.0 in my > MapFile. I have included serveral WMS Layers, but so far only VERSION > 1.1.1 or lower. The syntax I used before does not seem to work here. > I keep on getting the error message: > > msBuildWMSLayerURL(): WMS connection error. MapServer supports only > WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the > connection string) > > My Mapserver Version is MapServer version 5.7-dev from FWTools2.4.7. > > My Mapfile includes the following Layer: > > LAYER > NAME "Deutschland" > TYPE RASTER > STATUS DEFAULT > CONNECTIONTYPE WMS > CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500" > METADATA > "wms_srs" "epsg:4326" > "wms_name" "0" > "wms_title" "DTK2500" > "wms_server_version" "1.3.0" > "wms_format" "image/png" > "wms_onlineresource" "http://gdz.bkg.bund.de/wms_dtk2500" > END > END > > When I include the CONNECTION in my MapFile, then I get the described > error. When I ommit the CONNECTION String and use the > wms_onlineresource which seems to be the newer syntax, then I do not > get the error message, but I can also not see the map. When I use > wms_server_version 1.1.0, then I do see the map, but on a wrong > position. From what I read that might have something to do with the > change of the axis between 1.1.0 and 1.3.0. > > Did the Syntax for the mapfile change between the Version 1.1.0 and > 1.3.0 and I did not see it in the documentation or am I missing > something else? Does the wms_srs still work, since in the url I need > the CRS for the projection. Any ideas? > > The following REQUEST works in my browser, so the wms Server is running: > > http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true > > > Any help would be greatly appreciated. > > Thanks, > > Iris Rittinger > > -- Iris Rittinger Terraplan Gewerbestr. 33 79229 Schallstadt www.terraplan.com From geotech.sarel at gmail.com Thu May 5 00:34:14 2011 From: geotech.sarel at gmail.com (Sarel Coetzer) Date: Thu, 5 May 2011 09:34:14 +0200 Subject: [mapserver-users] Re: Mapserver configure error libgd.so Message-ID: Hi All my libs are present. I am using LAMPP. The specific error I am getting starts from: "checking for gdFontCacheSetup in -lgd... no" "configure error: Could not find gd.h or libgd.a/libgd.so" Any ideas what the issue might be? Sarel Coetzer | GIS Developer Malaria Research Programme Medical Research Council -------------- next part -------------- An HTML attachment was scrubbed... URL: From verena.diewald at wheregroup.com Thu May 5 00:36:47 2011 From: verena.diewald at wheregroup.com (Verena Diewald) Date: Thu, 05 May 2011 09:36:47 +0200 Subject: [mapserver-users] Problem with CLUSTER in a WFS service Message-ID: <4DC2538F.7000901@wheregroup.com> Hi list, I have a mapfile for a WMS using the new CLUSTER option for layers. This works without any problem. Now I tried to extend this mapfile to use it also as a WFS, but doing a GetCapabilities request gives an error about the clustering. After removing all cluster params I got a valid GetCapabilities xml and I could use the WFS. Am I right that the WFS should ignore all cluster params which are used for the WMS? Greetings, Verena -- From Andreas.Eichner at sid.sachsen.de Thu May 5 01:16:03 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 5 May 2011 10:16:03 +0200 Subject: VS: [mapserver-users] Mapserver search performance References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF149@KS-EVS1.smi.sachsen.de> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF14A@KS-EVS1.smi.sachsen.de> Have a look at http://www.gdal.org/ogr/ogr_sql.html and http://www.gdal.org/ogr2ogr.html If you have base.{shp,shx,dbf} and addon.dbf that look like $ ogrinfo -al -so base.shp INFO: Open of `base.shp' using driver `ESRI Shapefile' successful. Layer name: base Geometry: Multi Point Feature Count: 1099 Extent: (4636093.190318, 5632568.189608) - (4667726.042353, 5652933.942667) Layer SRS WKT: (unknown) OBJ_ID: String (10.0) OBJ_NAME: String (50.0) and $ ogrinfo -al -so addon.dbf INFO: Open of `addon.dbf' using driver `ESRI Shapefile' successful. Layer name: addon Geometry: None Feature Count: 1099 Layer SRS WKT: (unknown) OBJ_ID: String (10.0) GN: String (45.0) KN: String (13.0) KN2: String (7.0) HHO: Integer (4.0) you will end up in something like $ogr2ogr -f "ESRI Shapefile" -sql "SELECT OBJ_ID, OBJ_NAME, GN, KN, KN2, HHO FROM base JOIN 'addon.dbf'.addon ON base.OBJ_ID = addon.OBJ_ID" output base.shp and lead to this $ ogrinfo -al -so output/base.shp INFO: Open of `output/base.shp' using driver `ESRI Shapefile' successful. Layer name: base Geometry: Multi Point Feature Count: 1099 Extent: (4636093.190318, 5632568.189608) - (4667726.042353, 5652933.942667) Layer SRS WKT: (unknown) OBJ_ID: String (10.0) OBJ_NAME: String (50.0) GN: String (45.0) KN: String (13.0) KN2: String (7.0) HHO: Integer (4.0) Hope this helps :) From Andreas.Eichner at sid.sachsen.de Thu May 5 01:30:46 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 5 May 2011 10:30:46 +0200 Subject: [mapserver-users] Re: Mapserver configure error libgd.so References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF14B@KS-EVS1.smi.sachsen.de> I guess it's a problem with autoconf/automake. Install them if you haven't already and try to recreate the configure script. On my Debian box I have to version: 2.13 and 2.50 and trying to recreate configure results in that: mapserver-6.0.0-beta7$ rm configure && autoconf2.13 autoconf: Undefined macros: configure.in:773: dnl AC_CHECK_DECL needs to know the gd include path configure.in:778: AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include ]) configure.in:832: AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include ]) mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads ... checking for GD 2.0.28 or higher checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lpng -lz -lXpm -lX11 ). ./configure: 4297: Syntax error: word unexpected (expecting ")") and that: mapserver-6.0.0-beta7$ rm configure && autoconf2.50 mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads ... checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. So configure created with autoconf2.50 works where as with 2.13 does not... HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Sarel Coetzer > Gesendet: Donnerstag, 5. Mai 2011 09:34 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Re: Mapserver configure error libgd.so > > Hi > > All my libs are present. I am using LAMPP. > > The specific error I am getting starts from: > "checking for gdFontCacheSetup in -lgd... no" > "configure error: Could not find gd.h or libgd.a/libgd.so" > > Any ideas what the issue might be? > > Sarel Coetzer | GIS Developer > > Malaria Research Programme > Medical Research Council > > > From ivan.mincik at gista.sk Thu May 5 02:57:31 2011 From: ivan.mincik at gista.sk (Ivan Mincik) Date: Thu, 05 May 2011 11:57:31 +0200 Subject: [mapserver-users] Why is LAYERS parameter required in GetFeatureInfo Message-ID: <4DC2748B.4060703@gista.sk> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I would like to ask, why is the LAYERS parameter required in GetFeatureInfo request. Looking to WMS specification, it is not mentioned in this type of request. Neither in Mapserver doc I can't find any relevant info. Tested on Mapserver 5.6.6. Without LAYERS parameter I get: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. Thanks - -- Ivan Mincik, Gista s.r.o. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3CdIsACgkQVqso/9cUsCydZgCgzE3uoIfl3AknEvoVEEuxgHFU 1twAniaRmixQ200mbLDlcJe3367RWIgo =Xy55 -----END PGP SIGNATURE----- From bartvde at osgis.nl Thu May 5 02:59:46 2011 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Thu, 5 May 2011 11:59:46 +0200 Subject: [mapserver-users] Why is LAYERS parameter required in GetFeatureInfo In-Reply-To: <4DC2748B.4060703@gista.sk> References: <4DC2748B.4060703@gista.sk> Message-ID: <412DB890-32DC-459E-97B2-DE4530B6ED86@osgis.nl> The WMS spec does say it is required: 7.3.3.4 map_request_copy is not a name/value pair like the other parameters. Instead, most of the GetMap request parameters that generated the original map are repeated. Two are omitted because GetFeatureInfo provides its own values: VERSION and REQUEST. The remainder of the GetMap request shall be embedded contiguously in the GetFeatureInfo request. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On May 5, 2011, at 11:57 AM, Ivan Mincik wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > I would like to ask, why is the LAYERS parameter required in > GetFeatureInfo request. > Looking to WMS specification, it is not mentioned in this type of > request. Neither in Mapserver doc I can't find any relevant info. > > Tested on Mapserver 5.6.6. Without LAYERS parameter I get: > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the > LAYERS parameter. > > Thanks > > - -- > Ivan Mincik, Gista s.r.o. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3CdIsACgkQVqso/9cUsCydZgCgzE3uoIfl3AknEvoVEEuxgHFU > 1twAniaRmixQ200mbLDlcJe3367RWIgo > =Xy55 > -----END PGP SIGNATURE----- > _______________________________________________ > 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 nikos at maich.gr Thu May 5 03:31:39 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 05 May 2011 13:31:39 +0300 Subject: [mapserver-users] Re: VS: Mapserver search performance In-Reply-To: <20110505090623.D42A112AA02F@lists.osgeo.org> References: <20110505090623.D42A112AA02F@lists.osgeo.org> Message-ID: <3ed5aa7567a58d80882bf34b8c3b57d1@maich.gr> Hi, This comment is clipped of the web somwhere... "However, the OGR join support includes the ability to join against a table in a different data source, potentially of a different format. This is indicated by qualifying the secondary table name with a datasource name. In this case the secondary datasource is opened using normal OGR semantics and utilized to access the secondary table untill the query result is no longer needed." so, an example of ogr2ogr with different data source, in your case, still a dbf... LANDUNIT is ths shapefile and its attribute dbf etc.... second is the sole (different) dbf.... OBJECTID is the field to join on out.shp is an output shp and dbf files ogr2ogr -sql "SELECT * FROM LANDUNIT LEFT JOIN 'second.dbf'.second ON LANDUNIT.OBJECTID = second.OBJECTID" -f "ESRI Shapefile" out.shp LANDUNIT.shp You can check the other switches of ogr2ogr so you may append, overwrite or update... I have not followed this thread from the top, but you do know it takes forever... If this is a one time thing ok, otherwise look eleswhere as others have suggested... regards, nikos From ivan.mincik at gista.sk Thu May 5 03:53:29 2011 From: ivan.mincik at gista.sk (Ivan Mincik) Date: Thu, 05 May 2011 12:53:29 +0200 Subject: [mapserver-users] Why is LAYERS parameter required in GetFeatureInfo In-Reply-To: <412DB890-32DC-459E-97B2-DE4530B6ED86@osgis.nl> References: <4DC2748B.4060703@gista.sk> <412DB890-32DC-459E-97B2-DE4530B6ED86@osgis.nl> Message-ID: <4DC281A9.8080008@gista.sk> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/05/2011 11:59 AM, Bart van den Eijnden wrote: > The WMS spec does say it is required: > > 7.3.3.4 map_request_copy > is not a name/value pair like the other parameters. Instead, most of the GetMap request parameters that generated the original map are repeated. Two are omitted because GetFeatureInfo provides its own values: VERSION and REQUEST. The remainder of the GetMap request shall be embedded contiguously in the GetFeatureInfo request. Thanks a lot Bart, I missed that. - -- Ivan Mincik, Gista s.r.o. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3CgakACgkQVqso/9cUsCyxrACgnw8SAw0g/vOoEEbh5aEL4CYp xKgAn0GpBX6twUNQcFJhr1bM8SJ7F8jN =Ucut -----END PGP SIGNATURE----- From dmorissette at mapgears.com Thu May 5 07:33:00 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 05 May 2011 10:33:00 -0400 Subject: [mapserver-users] Re: Mapserver configure error libgd.so In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF14B@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF14B@KS-EVS1.smi.sachsen.de> Message-ID: <4DC2B51C.4070702@mapgears.com> On 11-05-05 04:30 AM, Eichner, Andreas - SID-NLKM wrote: > > I guess it's a problem with autoconf/automake. Install them if you haven't already and try to recreate the configure script. On my Debian box I have to version: 2.13 and 2.50 and trying to recreate configure results in that: > For the record, the release version of configure is generated with autoconf2.59 (and shouldn't have the problem you describe). -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From dmorissette at mapgears.com Thu May 5 07:44:59 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 05 May 2011 10:44:59 -0400 Subject: [mapserver-users] Re: Mapserver configure error libgd.so In-Reply-To: References: Message-ID: <4DC2B7EB.10604@mapgears.com> On 11-05-05 03:34 AM, Sarel Coetzer wrote: > Hi > All my libs are present. I am using LAMPP. What about gd.h? And which version of GD is it? > The specific error I am getting starts from: > "checking for gdFontCacheSetup in -lgd... no" > "configure error: Could not find gd.h or libgd.a/libgd.so" > Any ideas what the issue might be? > Also, as I wrote yesterday, please look at the config.log file... it may contain hints as to why the GD lib test fails." -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From lucho1524 at gmail.com Thu May 5 07:50:45 2011 From: lucho1524 at gmail.com (Lucho) Date: Thu, 5 May 2011 09:50:45 -0500 Subject: [mapserver-users] Error consuming MapServer WMS service version 1.3.0 by many desktop clients Message-ID: Hi everybody! I get the following error when I try to consume a MapServer WMS service: *One or more layers failed to draw: Servicio WMS Cartografia Basica 1:500.000: WMS service exceptions:-Service Error Code:InvalidFormat Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid format for the EXCEPTION parameter. -Service Error Code:InvalidFormat* This error description is taken from ArcMap, but I have problems in gvSIG and QuantumGIS too. The error seems to be related with a tag in METADATA definition of * "wms_exceptions_format"*. Here is my METADATA tags: METADATA "wms_title" "Servicio WMS Cartografia Basica 1:500.000" "wms_abstract" "Servicio WMS de Cartografia Basica a escala 1:500.000. No esta permitida la descarga masiva de porciones de cartografia." "wms_keywordlist" "Cartografia Basica" "wms_onlineresource" "http://geoservice.igac.gov.co/IGACwms ?" "wms_contactperson" "Luis Fernando Ortiz Reyes" "wms_contactorganization" "***" "wms_contactposition" "***" "wms_addresstype" "postal" "wms_address" "***" "wms_city" "BOGOTA DC" "wms_stateorprovince" "BOGOTA DC" "wms_postcode" "11001000" "wms_country" "COLOMBIA" "wms_contactvoicetelephone" "***" "wms_contactfacsimiletelephone" "***" "wms_contactelectronicmailaddress" "***" "wms_fees" "none" "wms_accessconstraints" "none" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" * "wms_exceptions_format" "application/vnd.ogc.se_blank"* "version" "any string" "ows_schemas_location" "http://serviciaf.igac.gov.co" END # Metadata Any idea of what I have to put there? Or this error has another cause? Clients like ArcMap or gvSIG take by default 1.3.0 as the version of the WMS service. This could be the problem too. When I select the 1.1.1 version of service in ArcMap, the WMS works well. I've been reading in many sites, and it seems to be a frequent error. I hope you know how to solve it. Best regards, -- LUIS FERNANDO ORTIZ REYES INGENIERO DE SISTEMAS UNIVERSIDAD DISTRITAL -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Thu May 5 09:46:17 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 5 May 2011 18:46:17 +0200 Subject: [mapserver-users] Error consuming MapServer WMS service version 1.3.0 by many desktop clients In-Reply-To: References: Message-ID: Hello, Maybe this trac bug can help http://trac.osgeo.org/mapserver/ticket/3525 It seems that "wms_exceptions_format" has to bet set to "XML" for WMS 1.3 Are you sure you really need to set wms_exceptions_format? You will restrict your WMS service to only a WMS version. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenknox73 at gmail.com Thu May 5 13:12:49 2011 From: stephenknox73 at gmail.com (Stephen Knox) Date: Thu, 5 May 2011 21:12:49 +0100 Subject: [mapserver-users] Template for itemquery - GeoMoose Message-ID: Hi Mapserver List! I'm wondering if any of you can help me with a problem I'm having with GeoMoose, using Mapserver. I am using the latest version of Geomoose (2.4RC1) and Mapserver 5.6.3 (packaged for Fedora 14). My issue is when I carry out a query in Geomoose. I have set everything there up according to the docs, and submitted info to the mailing list, so hopefully it's all correct. From what I can gather, the problem is when the php script calls: $queryLayer->queryByRect($queryLayer->getExtent()); In the Apache log, this returns msPostGISLayerResultsGetShape: Assertion `layer->layerinfo != ((void *)0)' failed. and the mapserver log says: getSymbol(): Symbol definition error. Parsing error near (per_ttw_lu):(line 320) [per_ttw_lu is the name of my field. It is definitely there as I use it in an identify query, and I can map the Mapserver layer fine] I'm convinced this is something to do with the template - GeoMoose does something non-standard with Mapserver templates, and the template is specified in the METADATA for the layer. But, from the debugging I've done in PHP, the template seems to be properly specified - it is specified using itemquery itemquery_template.html in the METADATA tag. I'm not sure I've got the right markup in the template though - currently it is: [errmsg] Output Areas Census Code: [census_code] Percentage travel by LU: [per_ttw_lu]     Can anyone help me with this, or help me to debug it better. Thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From CowieA at landcareresearch.co.nz Thu May 5 16:22:02 2011 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Fri, 6 May 2011 11:22:02 +1200 Subject: [mapserver-users] Mapserver as a WMS Client - problems working with a 'remote' Tilecache service Message-ID: <99F4D44109DA3A448A9C811B14E04B151618623654@donkey.landcare.ad.landcareresearch.co.nz> Hello List, We are currently setting up a cascading WMS using Mapserver as a client to request maps from another Mapserver and from a Tilecache. We have read that Mapserver can be configured to do this but we are running into problems when using Mapserver as a client to Tlecache. Specifically, how do we publish metadata in the MapSever Client capabilities document about the correct resolutions / bounding box of a Tilecache service. More details... Here's a snippet of our 'top level' Mapserver mapfile, which will sit on our public server: LAYER NAME 'lcr_basemap_cache_wgs84' TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://ourserver/tilecache/wms-c/tilecache.py?" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_name" "lcr_basemap_cache_wgs84" "wms_title" "Baselayer - Cached" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_extent" "165 -48 179.5 -33" "wms_abstract" "Cached via Tilcache" END END This pulls a layer from our Tilecache (a snippet from our tilecache config file): [lcr_basemap_cache_wgs84] type=WMSLayer layers=coastpoly,veg,urban_grp,contours,water,coast_feats,height_pnts,tracks,rail,all_roads,railway_station,text srs=EPSG:4326 bbox=165,-48,179.5,-33 resolutions=0.025398253504337,0.012699126752168,0.006349563376084,0.003174781688042,0.001587390844021,0.000793695422011,0.000317478168804,0.000158739084402,0.000079369542201,0.000031747816880,0.000015873908440,0.000006349563376,0.000003174781688 url=http://ourserver/cgi-bin/mapserv?map=/path/to/ourmapfile.map&transparent=true& extent_type=loose metaBuffer=10 metasize=6,6 metaTile=true (As you can see, Tilecache is pointing to another Mapserver which generates the maps.) We have had some success in connecting to the Tilecache via the Mapserver Client using an Openlayers client to view the 'top level' WMS layers ** BUT ** this only works because we configured Openlayers to use the correct resolutions / bounding box etc. What we are really trying to achieve with this is a public WMS for which other people/clients can use, e.g. Openlayers / QGIS, by just reading the Capabilities document provided by the MapServer client. So far, we have yet to find a way to advertise (via the capabilities document) these underlying Tilecache resolutions as metadata in the cascading level Mapserver. Is this possible? If it is not possible, does anybody have recommendations as to how to go about this in a standards compliant way? Many thanks, Andy ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu May 5 19:39:07 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 05 May 2011 22:39:07 -0400 Subject: [mapserver-users] MapServer 6.0.0-rc2 release Message-ID: <4DC35F4B.7010504@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-rc2. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). We had to issue a new release candidate since a few important issues were reported and fixed in rc1. If all goes well and no blocker issues are reported, then this release candidate could lead us to a final 6.0.0 release next week. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since the last release candidate is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. The latest version is available online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-rc2 (2011-05-05) ------------------------------ - Fixed seg fault with [shpxy] tag... (#3860) - Removed obsolete msQueryByOperator() function - Call msLayerClose() before msLayerOpen() in the various query functions (#3692) - Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) - PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) - Fix SLD containing a PropertyIsLike filter (#3855) - Fixed msUnionLayerNextShape to return correct values (#3859) - Union layer: fix for the failure if one or more of the source layers are not in the current extent (#3858) - Fix memory leak in msResampleGDALToMap() (#3857) - Fix missing initialization of default formats in WCS 1.x. - Fix maxoverlapangle when value is set to 0 (#3856) From Jukka.Rahkonen at mmmtike.fi Thu May 5 21:09:55 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 6 May 2011 07:09:55 +0300 Subject: [mapserver-users] Mapserver as a WMS Client - problems working with a 'remote' Tilecache service References: <99F4D44109DA3A448A9C811B14E04B151618623654@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: Hi, I have never tried myself but I would guess that you need to prepare a xml file for defining a gdal-wms datasource and refer to that xml file in your mapfile. Read http://gdal.org/frmt_wms.html -Jukka Rahkonen- Andrew Cowie wrote: > Hello List, > We are currently setting up a cascading WMS using Mapserver as a client to request maps from another Mapserver and from a Tilecache. We have read that Mapserver can be configured to do this but we are running into problems when using Mapserver as a client to Tlecache. Specifically, how do we publish metadata in the MapSever Client capabilities document about the correct resolutions / bounding box of a Tilecache service. > More details... > Here's a snippet of our 'top level' Mapserver mapfile, which will sit on our public server: LAYER NAME 'lcr_basemap_cache_wgs84' TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://ourserver/tilecache/wms-c/tilecache.py?" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_name" "lcr_basemap_cache_wgs84" "wms_title" "Baselayer - Cached" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_extent" "165 -48 179.5 -33" "wms_abstract" "Cached via Tilcache" END END This pulls a layer from our Tilecache (a snippet from our tilecache config file): [lcr_basemap_cache_wgs84] type=WMSLayer layers=coastpoly,veg,urban_grp,contours,water,coast_feats,height_pnts,tracks,rail,all_roads,railway_station,text srs=EPSG:4326 bbox=165,-48,179.5,-33 resolutions=0.025398253504337,0.012699126752168,0.006349563376084,0.003174781688042,0.001587390844021,0.000793695422011,0.000317478168804,0.000158739084402,0.000079369542201,0.000031747816880,0.000015873908440,0.000006349563376,0.000003174781688 url=http://ourserver/cgi-bin/mapserv?map=/path/to/ourmapfile.map&transparent=true& extent_type=loose metaBuffer=10 metasize=6,6 metaTile=true (As you can see, Tilecache is pointing to another Mapserver which generates the maps.) We have had some success in connecting to the Tilecache via the Mapserver Client using an Openlayers client to view the 'top level' WMS layers ** BUT ** this only works because we configured Openlayers to use the correct resolutions / bounding box etc. What we are really trying to achieve with this is a public WMS for which other people/clients can use, e.g. Openlayers / QGIS, by just reading the Capabilities document provided by the MapServer client. So far, we have yet to find a way to advertise (via the capabilities document) these underlying Tilecache resolutions as metadata in the cascading level Mapserver. Is this possible? If it is not possible, does anybody have recommendations as to how to go about this in a standards compliant way? Many thanks, Andy ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz From niwa at orkney.co.jp Thu May 5 21:59:45 2011 From: niwa at orkney.co.jp (Makoto Niwa) Date: Fri, 06 May 2011 13:59:45 +0900 Subject: [mapserver-users] Arrowhead in Mapserver 6.0 In-Reply-To: <4DC35F4B.7010504@mapgears.com> References: <4DC35F4B.7010504@mapgears.com> Message-ID: <427620110506045945niwa@orkney.co.jp> Hi,list I tried new MapServer 6.0(rc2). I got diffrent images GD/PNG and CAIRO renderes for arrowhead symbols. Attached images are ms6_gd.gif : render by GD/GIF ms6_aggpng8.png : render by AGG/PNG CAIRO renderer image is as same as AGG. CARIO/AGG renderer has incorrect ofsset for arrowhead symbols. I used vcetor type symbols for arrowhead symbols. But I got same results both AGG and GD in MapSever 5.6 Is this behavior correct in MapServer 6 ? regards, makoto. --------------------------------------------------- Symbol definition: SYMBOL NAME "from" TYPE vector POINTS 0 10 -20 0 0 -10 -99 -99 -40 10 -99 -99 -40 -10 END END SYMBOL NAME "to" TYPE vector POINTS 0 10 20 0 0 -10 -99 -99 40 10 -99 -99 40 -10 END END Style in the layer: STYLE ANGLE AUTO GEOMTRANSFORM "start" SYMBOL "from" COLOR 255 20 20 WIDTH 2 END STYLE ANGLE AUTO GEOMTRANSFORM "end" SYMBOL "to" COLOR 20 20 255 WIDTH 2 END --------------------------------------------------- Makoto Niwa Orkney,Inc. Queen's Tower C 12F 2-3-5 Minatomirai, Nishi, Yokohama, Japan TEL.81-45-228-3320 FAX.81-45-228-3321 E-mail niwa at orkney.co.jp http://www.orkney.co.jp -------------- next part -------------- A non-text attachment was scrubbed... Name: ms6_aggpng8.png Type: image/png Size: 50288 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms6_gd.gif Type: image/gif Size: 16097 bytes Desc: not available URL: From thomas.bonfort at gmail.com Fri May 6 01:58:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 6 May 2011 10:58:51 +0200 Subject: [mapserver-users] Arrowhead in Mapserver 6.0 In-Reply-To: <427620110506045945niwa@orkney.co.jp> References: <4DC35F4B.7010504@mapgears.com> <427620110506045945niwa@orkney.co.jp> Message-ID: vector symbols are ill-defined by nature in mapserver, especially if you are using negative values and single points like you are. more precisely, you should *never* use -99 -99 x y -99 -99 as in that case you are drawing a line with a single point which will be rightfully discarded by cairo and agg, whereas gd will render a single pixel. A vector symbol that should work should be POINTS 0 0 1 0.5 0 1 END But I would strongly recommend that you use a truetype symbol for arrowheads: SYMBOL TYPE TRUETYPE FONT sans CHARACTER '>' NAME "to" END SYMBOL TYPE TRUETYPE FONT sans CHARACTER '<' NAME "from" END regards, thomas On Fri, May 6, 2011 at 06:59, Makoto Niwa wrote: > Hi,list > > I tried new MapServer 6.0(rc2). > > I got diffrent images GD/PNG and CAIRO renderes for arrowhead symbols. > > Attached images are > ms6_gd.gif : render by GD/GIF > ms6_aggpng8.png : render by AGG/PNG > > CAIRO renderer image is as same as AGG. > CARIO/AGG renderer has incorrect ofsset for arrowhead symbols. > I used vcetor type symbols for arrowhead symbols. > > But I got same results both AGG and GD in MapSever 5.6 > > Is this behavior correct in MapServer 6 ? > > regards, > > makoto. > > --------------------------------------------------- > Symbol definition: > ?SYMBOL > ? ?NAME "from" > ? ?TYPE vector > ? ?POINTS > ? ? ?0 10 > ? ? ?-20 0 > ? ? ?0 -10 > ? ? ?-99 -99 > ? ? ?-40 10 > ? ? ?-99 -99 > ? ? ?-40 -10 > ? ?END > ?END > > ?SYMBOL > ? ?NAME "to" > ? ?TYPE vector > ? ?POINTS > ? ? ?0 10 > ? ? ?20 0 > ? ? ?0 -10 > ? ? ?-99 -99 > ? ? ?40 10 > ? ? ?-99 -99 > ? ? ?40 -10 > ? ?END > ?END > > Style in the layer: > ? ? ?STYLE > ? ? ? ?ANGLE AUTO > ? ? ? ?GEOMTRANSFORM "start" > ? ? ? ?SYMBOL "from" > ? ? ? ?COLOR 255 20 20 > ? ? ? ?WIDTH 2 > ? ? ?END > ? ? ?STYLE > ? ? ? ?ANGLE AUTO > ? ? ? ?GEOMTRANSFORM "end" > ? ? ? ?SYMBOL "to" > ? ? ? ?COLOR 20 20 255 > ? ? ? ?WIDTH 2 > ? ? ?END > > --------------------------------------------------- > Makoto Niwa Orkney,Inc. > Queen's Tower C 12F > 2-3-5 Minatomirai, Nishi, Yokohama, Japan > TEL.81-45-228-3320 ?FAX.81-45-228-3321 > E-mail niwa at orkney.co.jp http://www.orkney.co.jp > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From peter.hopfgartner at r3-gis.com Fri May 6 04:57:47 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 6 May 2011 13:57:47 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-rc2 release Message-ID: <20110506115748.1E8561678241@mail.r3-gis.com> --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-rc2 release Date: 06.05.2011 04:39 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-rc2. > Updated packages for RHEL and CentOS 5.6 can be downloaded from http://elgis.argeo.org/ testing repository. Scientific Linux need php53 packages in order to install php-mapserver6. >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >We had to issue a new release candidate since a few important issues >were reported and fixed in rc1. If all goes well and no blocker issues >are reported, then this release candidate could lead us to a final 6.0.0 >release next week. The full release plan which also includes the list of >new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since the last release candidate is attached at the >end of this message. For a complete list see the HISTORY.TXT file at: > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. The latest version is available online >at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-rc2 (2011-05-05) >------------------------------ > >- Fixed seg fault with [shpxy] tag... (#3860) > >- Removed obsolete msQueryByOperator() function > >- Call msLayerClose() before msLayerOpen() in the various query > functions (#3692) > >- Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) > >- PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) > >- Fix SLD containing a PropertyIsLike filter (#3855) > >- Fixed msUnionLayerNextShape to return correct values (#3859) > >- Union layer: fix for the failure if one or more of the source layers > are not in the current extent (#3858) > >- Fix memory leak in msResampleGDALToMap() (#3857) > >- Fix missing initialization of default formats in WCS 1.x. > >- Fix maxoverlapangle when value is set to 0 (#3856) > > Enjoy, Peter R3 GIS Srl - GmbH http://www.r3-gis.com From aboudreault at mapgears.com Fri May 6 05:55:38 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 6 May 2011 08:55:38 -0400 Subject: [mapserver-users] MapServer 6.0.0-rc2 release In-Reply-To: <4DC35F4B.7010504@mapgears.com> References: <4DC35F4B.7010504@mapgears.com> Message-ID: <201105060855.38406.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the RC2 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On May 5, 2011 10:39:07 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc2. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > We had to issue a new release candidate since a few important issues > were reported and fixed in rc1. If all goes well and no blocker issues > are reported, then this release candidate could lead us to a final 6.0.0 > release next week. The full release plan which also includes the list of > new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last release candidate is attached at the > end of this message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HISTOR > Y.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-rc2 (2011-05-05) > ------------------------------ > > - Fixed seg fault with [shpxy] tag... (#3860) > > - Removed obsolete msQueryByOperator() function > > - Call msLayerClose() before msLayerOpen() in the various query > functions (#3692) > > - Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) > > - PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) > > - Fix SLD containing a PropertyIsLike filter (#3855) > > - Fixed msUnionLayerNextShape to return correct values (#3859) > > - Union layer: fix for the failure if one or more of the source layers > are not in the current extent (#3858) > > - Fix memory leak in msResampleGDALToMap() (#3857) > > - Fix missing initialization of default formats in WCS 1.x. > > - Fix maxoverlapangle when value is set to 0 (#3856) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From Jose.Lopes at AGR.GC.CA Fri May 6 07:26:34 2011 From: Jose.Lopes at AGR.GC.CA (Lopes, Jose (AAFC-AAC)) Date: Fri, 6 May 2011 10:26:34 -0400 Subject: [mapserver-users] Getting the tag in a WMS GetCapabilities response fromMap Server In-Reply-To: <8E5471DB13993145A6D9183ED4DBC2D001296644@onottaxms8.AGR.GC.CA> Message-ID: <8E5471DB13993145A6D9183ED4DBC2D001296646@onottaxms8.AGR.GC.CA> Hi, I though this would be an easy thing but it didn't work I cannot find any instruction on how to set this (sorry, newby MapServer user...). I added a "wms_identifier" "myIdentifier" to the .map file in the layer METADATA section. Also tried adding an IDENTIFIER element in the LAYER section. But when I call GetCapabiliites there is never an Identifier tag in the response. Any hints please... Thanks, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri May 6 07:39:22 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 06 May 2011 11:39:22 -0300 Subject: [mapserver-users] Getting the tag in a WMS GetCapabilities response fromMap Server In-Reply-To: <8E5471DB13993145A6D9183ED4DBC2D001296646@onottaxms8.AGR.GC.CA> References: <8E5471DB13993145A6D9183ED4DBC2D001296646@onottaxms8.AGR.GC.CA> Message-ID: <4DC4081A.3000508@gatewaygeomatics.com> Hello, I believe what you are looking for is available in MapServer 6.0 (described in the development version of the WMS Server doc: http://www.mapserver.org/trunk/ogc/wms_server.html#reference-section) I think the metadata tags you need with MapServer 6.0 are: - wms_authorityurl_name, - wms_authorityurl_href - wms_identifier_authority - wms_identifier_value -jeff (hello from a beautiful sunny day on the East coast) -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-06 11:26 AM, Lopes, Jose (AAFC-AAC) wrote: > Hi, > > I though this would be an easy thing but it didn't work I cannot > find any instruction on how to set this (sorry, newby MapServer > user...). > I added a "wms_identifier" "myIdentifier" to the .map file in the > layer METADATA section. > Also tried adding an IDENTIFIER element in the LAYER section. > But when I call GetCapabiliites there is never an Identifier tag in > the response. > Any hints please... > Thanks, > Joe > From dmorissette at mapgears.com Fri May 6 10:43:59 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 06 May 2011 13:43:59 -0400 Subject: [mapserver-users] FOSS4G 2011 Community Program Review ends on Sunday - Please vote now! Message-ID: <4DC4335F.6070006@mapgears.com> Hi MapServer Users, As in previous year, the selection process of the FOSS4G 2011 conference program will be based (in part) on review and votes from the community: http://community-review.foss4g.org/ There are lots of very interesting proposals, including a good number of MapServer related ones. This is your chance to make sure your favorite topics will make it in the program, and hopefully to help ensure MapServer is also well reprensented in the program (better than in previous years). There are only two days left, the community review period ends on Sunday May 8th. I encourage you to take a few minutes to review the proposals and vote now: http://community-review.foss4g.org/ -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jmckenna at gatewaygeomatics.com Fri May 6 10:59:36 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 06 May 2011 14:59:36 -0300 Subject: [mapserver-users] MapServer 6.0.0-rc2 release In-Reply-To: <4DC35F4B.7010504@mapgears.com> References: <4DC35F4B.7010504@mapgears.com> Message-ID: <4DC43708.5090800@gatewaygeomatics.com> Windows users can access the RC2 release at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-05 11:39 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc2. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > We had to issue a new release candidate since a few important issues > were reported and fixed in rc1. If all goes well and no blocker issues > are reported, then this release candidate could lead us to a final 6.0.0 > release next week. The full release plan which also includes the list of > new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last release candidate is attached at the > end of this message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-rc2 (2011-05-05) > ------------------------------ > > - Fixed seg fault with [shpxy] tag... (#3860) > > - Removed obsolete msQueryByOperator() function > > - Call msLayerClose() before msLayerOpen() in the various query > functions (#3692) > > - Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) > > - PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) > > - Fix SLD containing a PropertyIsLike filter (#3855) > > - Fixed msUnionLayerNextShape to return correct values (#3859) > > - Union layer: fix for the failure if one or more of the source layers > are not in the current extent (#3858) > > - Fix memory leak in msResampleGDALToMap() (#3857) > > - Fix missing initialization of default formats in WCS 1.x. > > - Fix maxoverlapangle when value is set to 0 (#3856) > From wal3 at mindspring.com Fri May 6 11:18:55 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 6 May 2011 14:18:55 -0400 Subject: [mapserver-users] Reference Map must be a GIF???? Message-ID: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> When did the restriction, "the Reference Map base image must be a .gif", start being enforced? I now see it in my old printed copy (version 5.2) of the documentation. I checked there to see if this was new to MapServer version 6 as I found it first in the online documentation. Obviously I had never read the documentation closely in this area. All my reference maps are "png" drawn with Mapserver (aggpng I think) and work in version 5.6. When my try/catch throws an exception trying to draw this reference map, the exception message is an empty string. Through testing and looking at the apache logs, I find that there are MapServer Errors in the MapServer errorObj and PHP Notices and Warning. These are: [Mapserver Error] msDrawREferenceMap() : error loading reference image /data/mapfiles/ref_maps/. [MapServer Error] readImage(): unsupported pixmap format/n in . Is this truly a change in the image type restriction for Reference Maps or is it just an change in the checking for errors when the MapScriptException was added? Was I just lucky my ".png" reference maps worked in the past? Am I the only one to try this? I don't have many to convert but wanted to point this out so it could be added to the Migration Guide if it must remain a restriction. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Fri May 6 11:24:43 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 6 May 2011 14:24:43 -0400 Subject: [mapserver-users] Reference Map must be a GIF???? In-Reply-To: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> References: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> Message-ID: <81C0CE85C847417B86461DF68F206B7B@Worthlaptop> I just looked again and I'm using .jpg and .png images but no .gif. :-( _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: Friday, May 06, 2011 2:19 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Reference Map must be a GIF???? When did the restriction, "the Reference Map base image must be a .gif", start being enforced? I now see it in my old printed copy (version 5.2) of the documentation. I checked there to see if this was new to MapServer version 6 as I found it first in the online documentation. Obviously I had never read the documentation closely in this area. All my reference maps are "png" drawn with Mapserver (aggpng I think) and work in version 5.6. When my try/catch throws an exception trying to draw this reference map, the exception message is an empty string. Through testing and looking at the apache logs, I find that there are MapServer Errors in the MapServer errorObj and PHP Notices and Warning. These are: [Mapserver Error] msDrawREferenceMap() : error loading reference image /data/mapfiles/ref_maps/. [MapServer Error] readImage(): unsupported pixmap format/n in . Is this truly a change in the image type restriction for Reference Maps or is it just an change in the checking for errors when the MapScriptException was added? Was I just lucky my ".png" reference maps worked in the past? Am I the only one to try this? I don't have many to convert but wanted to point this out so it could be added to the Migration Guide if it must remain a restriction. _____ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1325 / Virus Database: 1500/3619 - Release Date: 05/06/11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Fri May 6 15:29:34 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sat, 7 May 2011 00:29:34 +0200 Subject: [mapserver-users] SLD Filter with comment breaks filter Message-ID: <39D9A84951D74C349961E64756FEA1C6@pcawh2> Hi, The filter PropertyIsLike works now as expected with 6 RC2. I have noticed two other issues: 1. The use of a filter And/Or with two or more conditions and adding a comment between the conditions resolves to true for all features, whether true or not. NA3DESCAsia DESCRIPTIOContinent 2. The use of a filter And/Or with only one condition resolves to true for all features, whether true or not. NA3DESCAsia Arnd From Andreas.Eichner at sid.sachsen.de Mon May 9 03:13:32 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 9 May 2011 12:13:32 +0200 Subject: AW: [mapserver-users] SLD Filter with comment breaks filter References: <39D9A84951D74C349961E64756FEA1C6@pcawh2> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF14F@KS-EVS1.smi.sachsen.de> Seems to be a bug in MapServers OGC filter implementation (mapogcfilter.c). I think it blindly handles XML nodes without checking there types which makes comments and text nodes being used as filter arguments as well... The code from MS 5.6.6 is the same as in 6.0rc2 so falling back to a previous version won't be a solution :( > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Arnd Wippermann > Gesendet: Samstag, 7. Mai 2011 00:30 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] SLD Filter with comment breaks filter > > Hi, > > The filter PropertyIsLike works now as expected with 6 RC2. > > I have noticed two other issues: > > 1. The use of a filter And/Or with two or more conditions and adding a > comment between the conditions > resolves to true for all features, whether true or not. > > > > > NA3DESCAsia > > > > DESCRIPTIOContinent > > > > > 2. The use of a filter And/Or with only one condition > resolves to true for all features, whether true or not. > > > > > NA3DESCAsia > > > > > Arnd > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jose.Lopes at AGR.GC.CA Mon May 9 07:13:05 2011 From: Jose.Lopes at AGR.GC.CA (Lopes, Jose (AAFC-AAC)) Date: Mon, 9 May 2011 10:13:05 -0400 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 40, Issue 12 In-Reply-To: <20110506222519.A256A12AA0E1@lists.osgeo.org> Message-ID: <8E5471DB13993145A6D9183ED4DBC2D001296649@onottaxms8.AGR.GC.CA> Hi Jeff, I was looking at URL http://mapserver.org/ogc/wms_server.html ... They seem to refer to the same version but the information is not the same as in the URL you provided. I am using MapServer 5.2 with WMS 1.1.1 but I think the same tags should work since they are defined in WMS 1.1.1 dtd as well. Thanks Jeff, (from a beautiful sunny day on Upper Canada) Joe Date: Fri, 06 May 2011 11:39:22 -0300 From: Jeff McKenna Subject: Re: [mapserver-users] Getting the tag in a WMS GetCapabilities response fromMap Server To: mapserver-users at lists.osgeo.org Message-ID: <4DC4081A.3000508 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, I believe what you are looking for is available in MapServer 6.0 (described in the development version of the WMS Server doc: http://www.mapserver.org/trunk/ogc/wms_server.html#reference-section) I think the metadata tags you need with MapServer 6.0 are: - wms_authorityurl_name, - wms_authorityurl_href - wms_identifier_authority - wms_identifier_value -jeff (hello from a beautiful sunny day on the East coast) -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-06 11:26 AM, Lopes, Jose (AAFC-AAC) wrote: > Hi, > > I though this would be an easy thing but it didn't work I cannot > find any instruction on how to set this (sorry, newby MapServer > user...). > I added a "wms_identifier" "myIdentifier" to the .map file in the > layer METADATA section. > Also tried adding an IDENTIFIER element in the LAYER section. > But when I call GetCapabiliites there is never an Identifier tag in > the response. > Any hints please... > Thanks, > Joe > ------------------------------ Message: 4 Date: Fri, 06 May 2011 13:43:59 -0400 From: Daniel Morissette Subject: [mapserver-users] FOSS4G 2011 Community Program Review ends on Sunday - Please vote now! To: mapserver-users Message-ID: <4DC4335F.6070006 at mapgears.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi MapServer Users, As in previous year, the selection process of the FOSS4G 2011 conference program will be based (in part) on review and votes from the community: http://community-review.foss4g.org/ There are lots of very interesting proposals, including a good number of MapServer related ones. This is your chance to make sure your favorite topics will make it in the program, and hopefully to help ensure MapServer is also well reprensented in the program (better than in previous years). There are only two days left, the community review period ends on Sunday May 8th. I encourage you to take a few minutes to review the proposals and vote now: http://community-review.foss4g.org/ -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ------------------------------ Message: 5 Date: Fri, 06 May 2011 14:59:36 -0300 From: Jeff McKenna Subject: Re: [mapserver-users] MapServer 6.0.0-rc2 release To: mapserver-users Message-ID: <4DC43708.5090800 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Windows users can access the RC2 release at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_ dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-05 11:39 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc2. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > We had to issue a new release candidate since a few important issues > were reported and fixed in rc1. If all goes well and no blocker issues > are reported, then this release candidate could lead us to a final 6.0.0 > release next week. The full release plan which also includes the list of > new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last release candidate is attached at the > end of this message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HIS TORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-rc2 (2011-05-05) > ------------------------------ > > - Fixed seg fault with [shpxy] tag... (#3860) > > - Removed obsolete msQueryByOperator() function > > - Call msLayerClose() before msLayerOpen() in the various query > functions (#3692) > > - Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) > > - PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) > > - Fix SLD containing a PropertyIsLike filter (#3855) > > - Fixed msUnionLayerNextShape to return correct values (#3859) > > - Union layer: fix for the failure if one or more of the source layers > are not in the current extent (#3858) > > - Fix memory leak in msResampleGDALToMap() (#3857) > > - Fix missing initialization of default formats in WCS 1.x. > > - Fix maxoverlapangle when value is set to 0 (#3856) > ------------------------------ Message: 6 Date: Fri, 6 May 2011 14:18:55 -0400 From: "Worth Lutz" Subject: [mapserver-users] Reference Map must be a GIF???? To: Message-ID: <19649158A79349CBAF50B5EF45C2F375 at Worthlaptop> Content-Type: text/plain; charset="us-ascii" When did the restriction, "the Reference Map base image must be a .gif", start being enforced? I now see it in my old printed copy (version 5.2) of the documentation. I checked there to see if this was new to MapServer version 6 as I found it first in the online documentation. Obviously I had never read the documentation closely in this area. All my reference maps are "png" drawn with Mapserver (aggpng I think) and work in version 5.6. When my try/catch throws an exception trying to draw this reference map, the exception message is an empty string. Through testing and looking at the apache logs, I find that there are MapServer Errors in the MapServer errorObj and PHP Notices and Warning. These are: [Mapserver Error] msDrawREferenceMap() : error loading reference image /data/mapfiles/ref_maps/. [MapServer Error] readImage(): unsupported pixmap format/n in . Is this truly a change in the image type restriction for Reference Maps or is it just an change in the checking for errors when the MapScriptException was added? Was I just lucky my ".png" reference maps worked in the past? Am I the only one to try this? I don't have many to convert but wanted to point this out so it could be added to the Migration Guide if it must remain a restriction. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110506/86 811af3/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 40, Issue 12 *********************************************** From trottier.marcandre at gmail.com Mon May 9 10:18:09 2011 From: trottier.marcandre at gmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Mon, 9 May 2011 13:18:09 -0400 Subject: [mapserver-users] opacity and outputformat Message-ID: hi! how can i get a output with opacity on 2 or more layers. with only 1 layer it's working fine but not with 2 or more. How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA) i tried something like OPACITY 22,22,22,22 but looks bad in all my tests, all i got was my 2 layers with full opacity (100) ... here is my mapfile : MAP EXTENT -8146324.306063 5632144.09953312 -8137075.425642 5638229.88815488 FONTSET "fonts" IMAGECOLOR 255 255 255 IMAGETYPE AGGA SIZE 732 482 STATUS ON UNITS METERS NAME "MS" OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA TRANSPARENT TRUE END PROJECTION "init=epsg:900913" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "arial" MAXSIZE 256 MINSIZE 4 SIZE 10 TYPE TRUETYPE BUFFER 0 COLOR 255 255 255 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END OUTLINECOLOR 0 0 0 POSITION LR POSTLABELCACHE TRUE STATUS EMBED TRANSPARENT FALSE END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR ALIGN CENTER COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CR END OUTLINECOLOR 0 0 0 POSITION LL SIZE 200 3 STATUS EMBED STYLE 0 UNITS METERS END WEB IMAGEPATH "path" IMAGEURL "" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER CONNECTION "PATATE3" CONNECTIONTYPE WMS DEBUG 5 METADATA "wms_srs" "EPSG:900913" "wms_name" "PATATE3" "wms_format" "image/png" "wms_server_version" "1.1.1" END NAME "Carte" PROCESSING "CLOSE_CONNECTION=NORMAL" PROJECTION "init=epsg:900913" END STATUS ON TRANSFORM FALSE TYPE RASTER UNITS METERS END LAYER CONNECTION "PATATE2" CONNECTIONTYPE WMS DEBUG 5 METADATA "wms_srs" "EPSG:900913" "opacity" "100" "wms_name" "PATATE2" "wms_format" "image/png" "wms_server_version" "1.1.1" END NAME "PATATE2" PROCESSING "CLOSE_CONNECTION=NORMAL" PROJECTION "init=epsg:900913" END STATUS ON TRANSFORM FALSE TYPE RASTER UNITS METERS END LAYER CONNECTION "PATATE" CONNECTIONTYPE WMS DEBUG 5 METADATA "wms_srs" "EPSG:900913" "opacity" "40" "wms_name" "PATATE" "wms_format" "image/png" "wms_server_version" "1.1.1" END NAME "PATATE" PROJECTION "init=epsg:900913" END STATUS ON OPACITY 40 TYPE RASTER UNITS METERS END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Mon May 9 10:16:44 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 9 May 2011 10:16:44 -0700 (PDT) Subject: [mapserver-users] Problem with raster file and layer's getExtent method Message-ID: <632409.25099.qm@web38201.mail.mud.yahoo.com> Hi list, I'm using the getExtent method of layer object with PHP Mapscript, works fine with PostGIS layers but with a raster files I get some troubles. I have a DEM.IMG file, using gdalinfo -nomd dem.img throws this: Driver: HFA/Erdas Imagine Images (.img) ... Coordinate System is: PROJCS["UTM Zone 13, Northern Hemisphere", ... Corner Coordinates: Upper Left? (? 687178.570, 2247514.668) (103d12'26.04"W, 20d18'59.14"N) Lower Left? (? 687178.570, 2243914.668) (103d12'27.39"W, 20d17'2.08"N) Upper Right (? 690918.570, 2247514.668) (103d10'17.13"W, 20d18'57.80"N) Lower Right (? 690918.570, 2243914.668) (103d10'18.51"W, 20d17'0.75"N) Center????? (? 689048.570, 2245714.668) (103d11'22.27"W, 20d17'59.94"N) ... But $layer->getExtent() has the following extent: -25000000, -25000000, 25000000, 25000000 Is there another way to get the raster file extent ? Thanks in advance ? IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Mon May 9 12:51:40 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 09 May 2011 13:51:40 -0600 Subject: [mapserver-users] Rendering Challenges Message-ID: <4DC845CC.3040808@geoanalytic.com> While testing v6, I can up with the following list of things I couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): 1. Render lines inside polygon boundary (with or without opacity) 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) 3. Rotate anno if required to fit inside a polygon 4. Place polygon annotation outside polygon if anno doesn't fit inside 5. Place line anno above (or below) when using ANGLE FOLLOW 6. Rotate vector symbols to follow lines (a font might work but is a pain to create) 7. User specified character spacing 8. Erase lines (but not other objects) under annotation My goal was to use the published shp files (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) without modification and see how close I could get to the published PDF (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). Any suggested rendering techniques are appreciated. I'll file tickets for those problems deemed worthy. -- Best Regards, Brent Fraser From woodbri at swoodbridge.com Mon May 9 13:30:54 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 09 May 2011 16:30:54 -0400 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC845CC.3040808@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> Message-ID: <4DC84EFE.2030905@swoodbridge.com> Brent, I think this is an excellent list of features that we should strive to support in mapserver. I here that you ideal stated goal is to use the files as published, but as a close alternative I can see that having a utility to preprocess the files might make implementation faster and and more consistent. This thought is based on some simple ideas: 1. what is inside/outside of a polygon? While we can compute this for every polygon on every draw, I do not think we want to do that, so having a preprocessor that standardizes polygon node ordering would avoid this. 2. polygon label point and orientations. It would be nice to have a utility, or the one above, that can do some basic analysis of a polygon and pick the ideal label point and orientation. This then might create a companion label point shapefile or add additional attribute columns for this purpose. This approach also has the benefit that you could then edit the label point file to override the automatically generated point. I think these two items would greatly increase our ability to implement in a consistent manner items 1, 2, 3, and 4. On 5/9/2011 3:51 PM, Brent Fraser wrote: > While testing v6, I can up with the following list of things I couldn't > do (see http://i56.tinypic.com/8vvprn.png for a graphic): > > 1. Render lines inside polygon boundary (with or without opacity) > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > 3. Rotate anno if required to fit inside a polygon > 4. Place polygon annotation outside polygon if anno doesn't fit inside > 5. Place line anno above (or below) when using ANGLE FOLLOW > 6. Rotate vector symbols to follow lines (a font might work but is a > pain to create) > 7. User specified character spacing > 8. Erase lines (but not other objects) under annotation For this one, do you want to erase ALL lines or just suspend drawing the line of the object being labeled? If you truely want to erase all lines, then you have to define what is a line! antialiased? wide lines? how is a line different from the highlighted edge of a polygon? or a line that has been drawn as a wide street with shoulders and a centerline? Currently we support drawing a multi-pixel halo around the text the in effect erases/replaces everything under the halo. I like your example image as a great use case. Thanks, -Steve > > My goal was to use the published shp files > (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) > without modification and see how close I could get to the published PDF > (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). > > > Any suggested rendering techniques are appreciated. I'll file tickets > for those problems deemed worthy. > From steve.lime at state.mn.us Mon May 9 13:36:14 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 9 May 2011 15:36:14 -0500 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC845CC.3040808@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> Message-ID: These aren't specific to 6.0 though- more of a wish list... Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed the GEOS buffer operator as a proof-of-concept. For example: STYLE GEOMTRANSFORM (buffer([shape], -2)) OUTLINECOLOR 255 0 0 END Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective for rendering effects only. If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). The rest of the ideas are interesting and worthy of discussion. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Monday, May 09, 2011 2:52 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rendering Challenges While testing v6, I can up with the following list of things I couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): 1. Render lines inside polygon boundary (with or without opacity) 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) 3. Rotate anno if required to fit inside a polygon 4. Place polygon annotation outside polygon if anno doesn't fit inside 5. Place line anno above (or below) when using ANGLE FOLLOW 6. Rotate vector symbols to follow lines (a font might work but is a pain to create) 7. User specified character spacing 8. Erase lines (but not other objects) under annotation My goal was to use the published shp files (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) without modification and see how close I could get to the published PDF (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). Any suggested rendering techniques are appreciated. I'll file tickets for those problems deemed worthy. -- Best Regards, Brent Fraser _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From arnd.wippermann at web.de Mon May 9 13:44:02 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon, 9 May 2011 22:44:02 +0200 Subject: [mapserver-users] WFS with 6.0.0 Beta RC2 Message-ID: Hi, I'm trying to get WFS working with 6.0.0 Beta RC2. If i use MapServer 5.6.5 a wfs post request returns the features. If I use MapServer 6.0.0 the same post request responses with ...missing. The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763' There is no reprojection needed. Is there something I have to consider, when using MapServer Version 6.0.0 and WFS. Arnd POST msgeometry -535786.68671593,-509560.89777426 559489.72019154,364218.61581997 RESPONSE MapServer 5.6.5 -21537.507741,-91486.277029 44944.469424,-56235.046915 -21441.941044,-67958.139907 -11234.384166,-56235.046915 -21441.941044,-56235.046915 -11234.384166,-56256.314719 -16838.013555,-67958.139907 -21441.941044,-56235.046915 No 1 AREA ... RESPONSE MapServer 6.0.0 missing LOG Entry [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 [Mon May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no results. No matching record(s) found. [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed to reproject, doing internal sampling. [Mon May 09 22:11:54 2011].713000 mapserv request processing time (msLoadMap not incl.): 0.047s [Mon May 09 22:11:54 2011].713000 msFreeMap(): freeing map at 0184A9E8. From bfraser at geoanalytic.com Mon May 9 14:17:33 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 09 May 2011 15:17:33 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC84EFE.2030905@swoodbridge.com> References: <4DC845CC.3040808@geoanalytic.com> <4DC84EFE.2030905@swoodbridge.com> Message-ID: <4DC859ED.3070808@geoanalytic.com> Steve W., The reason I'd like to minimize any pre-processing is that NRCan publishes about 30 GB of shapefiles for the map series. And they publish a complete new version of these every 6 months. Currently I build tileindexes, and I expect I'll have to do other pre-processing steps to get the rendered output I'd like. The answer may be to load the data into PostGIS (every 6 months) and use its functions to make the data suitable for Mapserver. Maybe not. I've been thinking about a pre-processing commandline utility based on OGR and the GEOS functions it supports (and other functions it will hopefully support in the future). One thing I have to do is a LineMerge on the rivers shapefile so they will label in Mapserver. Currently a river will have many short segments broken at every tributary preventing any segment to be long enough to support a label. Having a separate pre-calculated shapefile for polygon annotation might get me closer to my goal. Dunno about the impact of having to support any arbitrary scale the user may view the map... NRCan's cartographers have it easy; they just have to render the data a one scale! And since it is [just] basemap data I suppose I could use Mapnik to render tiles, but that feels wrong. I'd much rather help to improve Mapserver. As for the "erasing of lines", I want just the contour lines under the label not to be drawn. I've used OUTLINECOLOR in the past but have been unhappy with the results (segments visible between characters, other features erased). I suppose the lines could be clipped to the bounding boxes of the contour labels, but due to the potentially curved nature of the contour labels I think the clipping polygons would have to be something like the convex hull of the character boxes. Best Regards, Brent Fraser On 5/9/2011 2:30 PM, Stephen Woodbridge wrote: > Brent, > > I think this is an excellent list of features that we should strive to > support in mapserver. I here that you ideal stated goal is to use the > files as published, but as a close alternative I can see that having a > utility to preprocess the files might make implementation faster and > and more consistent. This thought is based on some simple ideas: > > 1. what is inside/outside of a polygon? While we can compute this for > every polygon on every draw, I do not think we want to do that, so > having a preprocessor that standardizes polygon node ordering would > avoid this. > > 2. polygon label point and orientations. It would be nice to have a > utility, or the one above, that can do some basic analysis of a > polygon and pick the ideal label point and orientation. This then > might create a companion label point shapefile or add additional > attribute columns for this purpose. This approach also has the benefit > that you could then edit the label point file to override the > automatically generated point. > > I think these two items would greatly increase our ability to > implement in a consistent manner items 1, 2, 3, and 4. > > On 5/9/2011 3:51 PM, Brent Fraser wrote: >> While testing v6, I can up with the following list of things I couldn't >> do (see http://i56.tinypic.com/8vvprn.png for a graphic): >> >> 1. Render lines inside polygon boundary (with or without opacity) >> 2. Place polygon annotation on/inside boundary line >> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >> 3. Rotate anno if required to fit inside a polygon >> 4. Place polygon annotation outside polygon if anno doesn't fit inside >> 5. Place line anno above (or below) when using ANGLE FOLLOW >> 6. Rotate vector symbols to follow lines (a font might work but is a >> pain to create) >> 7. User specified character spacing >> 8. Erase lines (but not other objects) under annotation > > For this one, do you want to erase ALL lines or just suspend drawing > the line of the object being labeled? If you truely want to erase all > lines, then you have to define what is a line! antialiased? wide > lines? how is a line different from the highlighted edge of a polygon? > or a line that has been drawn as a wide street with shoulders and a > centerline? > > Currently we support drawing a multi-pixel halo around the text the in > effect erases/replaces everything under the halo. > > I like your example image as a great use case. > > Thanks, > -Steve > >> >> My goal was to use the published shp files >> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >> >> without modification and see how close I could get to the published PDF >> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >> >> >> >> Any suggested rendering techniques are appreciated. I'll file tickets >> for those problems deemed worthy. >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Mon May 9 15:17:37 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 09 May 2011 16:17:37 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: References: <4DC845CC.3040808@geoanalytic.com> Message-ID: <4DC86801.7020106@geoanalytic.com> Steve L., Good point; I couldn't do any of this in pre-6.0 either! I tried the buffer and it worked great (but we might have to work on the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg Best Regards, Brent Fraser On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: > These aren't specific to 6.0 though- more of a wish list... > > Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed > the GEOS buffer operator as a proof-of-concept. For example: > > STYLE > GEOMTRANSFORM (buffer([shape], -2)) > OUTLINECOLOR 255 0 0 > END > > Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. > Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective > for rendering effects only. > > If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). > > The rest of the ideas are interesting and worthy of discussion. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser > Sent: Monday, May 09, 2011 2:52 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Rendering Challenges > > While testing v6, I can up with the following list of things I > couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): > > 1. Render lines inside polygon boundary (with or without opacity) > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > 3. Rotate anno if required to fit inside a polygon > 4. Place polygon annotation outside polygon if anno doesn't fit inside > 5. Place line anno above (or below) when using ANGLE FOLLOW > 6. Rotate vector symbols to follow lines (a font might work but is a > pain to create) > 7. User specified character spacing > 8. Erase lines (but not other objects) under annotation > > My goal was to use the published shp files > (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) > without modification and see how close I could get to the published PDF > (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). > > > Any suggested rendering techniques are appreciated. I'll file > tickets for those problems deemed worthy. > From steve.lime at state.mn.us Mon May 9 15:20:23 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 9 May 2011 17:20:23 -0500 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC86801.7020106@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> Message-ID: That's were a difference operator might come in handy since you're looking for more of a fill-type effect: GEOMTRANSFORM (difference([shape], buffer([shape], -2))) or something like that. Steve -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Monday, May 09, 2011 5:18 PM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rendering Challenges Steve L., Good point; I couldn't do any of this in pre-6.0 either! I tried the buffer and it worked great (but we might have to work on the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg Best Regards, Brent Fraser On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: > These aren't specific to 6.0 though- more of a wish list... > > Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed > the GEOS buffer operator as a proof-of-concept. For example: > > STYLE > GEOMTRANSFORM (buffer([shape], -2)) > OUTLINECOLOR 255 0 0 > END > > Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. > Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective > for rendering effects only. > > If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). > > The rest of the ideas are interesting and worthy of discussion. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser > Sent: Monday, May 09, 2011 2:52 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Rendering Challenges > > While testing v6, I can up with the following list of things I > couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): > > 1. Render lines inside polygon boundary (with or without opacity) > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > 3. Rotate anno if required to fit inside a polygon > 4. Place polygon annotation outside polygon if anno doesn't fit inside > 5. Place line anno above (or below) when using ANGLE FOLLOW > 6. Rotate vector symbols to follow lines (a font might work but is a > pain to create) > 7. User specified character spacing > 8. Erase lines (but not other objects) under annotation > > My goal was to use the published shp files > (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) > without modification and see how close I could get to the published PDF > (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). > > > Any suggested rendering techniques are appreciated. I'll file > tickets for those problems deemed worthy. > From thomas.bonfort at gmail.com Tue May 10 00:38:35 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 10 May 2011 09:38:35 +0200 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC845CC.3040808@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> Message-ID: Brent, those are interesting questions On Mon, May 9, 2011 at 21:51, Brent Fraser wrote: > ?While testing v6, I can up with the following list of things I couldn't do > (see http://i56.tinypic.com/8vvprn.png for a graphic): > > 1. Render lines inside polygon boundary (with or without opacity) Along with Steve's buffer proposition, you can already more or less do that with OFFSET , except you don't have the notion of inside/outside, but left/right. If all your polygons are digitized in the same direction (i.e. clockwise or anticlockwise) this can be done with: STYLE #FILL END STYLE OUTLINECOLOR r g b OFFSET 1.5 -99 WIDTH 3 OPACITY 50 END > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) not possible in a single step, but by using the polygon layer a second time in a TYPE LINE layer for labelling should get you close. > 3. Rotate anno if required to fit inside a polygon would be a nice addition, ANGLE AUTO for polygon labels. We should probably give some way to define if the label should always follow the longest polygon diagonal, or if it should be first placed horizontally and fall back to automatic angling only if the horizontal one does not fit. > 4. Place polygon annotation outside polygon if anno doesn't fit inside The fine tuning on how to place the label text compared to the feature would require new mapfile keywords, but that would seem possible to implement. I'm not sure these kind of automatic adjustments would really enhance the rendered quality though. > 5. Place line anno above (or below) when using ANGLE FOLLOW This is something I would like to add to. There's a paper detailing the underlying algorithm here: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 > 6. Rotate vector symbols to follow lines (a font might work but is a pain to > create) how is this different than what we already have with a negative GAP? On a side note, vector symbols are currently rather ill-defined in mapserver and would need to be tightened up before being able to use them for precise symbol placement like here. > 7. User specified character spacing SIZE AUTO for labels in polygon layers would be a nice addition. We'd have to be able to define how the size of the font varies in accordance with the spacing that is applied between characters. Before going down that road, we shall have to implement the refactoring proposed in http://trac.osgeo.org/mapserver/ticket/3611 so as not to clutter the glyph rendering functions of each renderer. > 8. Erase lines (but not other objects) under annotation This seems rather involved. It would be difficult to keep the ordering of layers, as the modified feature could only be drawn during the labelcache phase, i.e. after all other features in the map. > > ?My goal was to use the published shp files > (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) > without modification and see how close I could get to the published PDF > (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). > > ?Any suggested rendering techniques are appreciated. ?I'll file tickets for > those problems deemed worthy. So, most of these enhancements seem possible, some were already on my laundry-list of rendering enhancements I'd like to tackle. Creating enhancement tickets for those features is a first step, and funding them is the second ;) regards, thomas > > -- > Best Regards, > Brent Fraser > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Tue May 10 07:06:58 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 10 May 2011 08:06:58 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> Message-ID: <4DC94682.8030304@geoanalytic.com> Using STYLE GEOMTRANSFORM "difference([shape],buffer([shape], -5))" COLOR 255 211 127 END results in the entire original polygon being filled. Using GEOMTRANSFORM (difference([shape],buffer([shape], -5))) results in no fill. Best Regards, Brent Fraser On 5/9/2011 4:20 PM, Lime, Steve D (DNR) wrote: > That's were a difference operator might come in handy since you're looking for more of a fill-type effect: > > GEOMTRANSFORM (difference([shape], buffer([shape], -2))) > > or something like that. > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Monday, May 09, 2011 5:18 PM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rendering Challenges > > Steve L., > > Good point; I couldn't do any of this in pre-6.0 either! > > I tried the buffer and it worked great (but we might have to work on > the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg > > Best Regards, > Brent Fraser > > > On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: >> These aren't specific to 6.0 though- more of a wish list... >> >> Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed >> the GEOS buffer operator as a proof-of-concept. For example: >> >> STYLE >> GEOMTRANSFORM (buffer([shape], -2)) >> OUTLINECOLOR 255 0 0 >> END >> >> Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. >> Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective >> for rendering effects only. >> >> If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). >> >> The rest of the ideas are interesting and worthy of discussion. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser >> Sent: Monday, May 09, 2011 2:52 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Rendering Challenges >> >> While testing v6, I can up with the following list of things I >> couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): >> >> 1. Render lines inside polygon boundary (with or without opacity) >> 2. Place polygon annotation on/inside boundary line >> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >> 3. Rotate anno if required to fit inside a polygon >> 4. Place polygon annotation outside polygon if anno doesn't fit inside >> 5. Place line anno above (or below) when using ANGLE FOLLOW >> 6. Rotate vector symbols to follow lines (a font might work but is a >> pain to create) >> 7. User specified character spacing >> 8. Erase lines (but not other objects) under annotation >> >> My goal was to use the published shp files >> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >> without modification and see how close I could get to the published PDF >> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >> >> >> Any suggested rendering techniques are appreciated. I'll file >> tickets for those problems deemed worthy. >> > > > From bfraser at geoanalytic.com Tue May 10 07:21:31 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 10 May 2011 08:21:31 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: References: <4DC845CC.3040808@geoanalytic.com> Message-ID: <4DC949EB.8000902@geoanalytic.com> Thomas, Interesting. I suspect all the polygons are digitized the same was as I think this is a requirement for shapefiles. The result of using: STYLE OUTLINECOLOR 255 211 127 OFFSET 1.5 -99 WIDTH 3 END results in http://i54.tinypic.com/25a22k4.jpg Close, but notice the "bleed" outside the polygon at the sharp corners. Thanks! Best Regards, Brent Fraser On 5/10/2011 1:38 AM, thomas bonfort wrote: > Brent, > > those are interesting questions > > On Mon, May 9, 2011 at 21:51, Brent Fraser wrote: >> While testing v6, I can up with the following list of things I couldn't do >> (see http://i56.tinypic.com/8vvprn.png for a graphic): >> >> 1. Render lines inside polygon boundary (with or without opacity) > Along with Steve's buffer proposition, you can already more or less do > that with OFFSET , except you don't have the notion of inside/outside, > but left/right. If all your polygons are digitized in the same > direction (i.e. clockwise or anticlockwise) this can be done with: > > STYLE > #FILL > END > STYLE > OUTLINECOLOR r g b > OFFSET 1.5 -99 > WIDTH 3 > OPACITY 50 > END > > > >> 2. Place polygon annotation on/inside boundary line >> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > not possible in a single step, but by using the polygon layer a second > time in a TYPE LINE layer for labelling should get you close. > >> 3. Rotate anno if required to fit inside a polygon > would be a nice addition, ANGLE AUTO for polygon labels. We should > probably give some way to define if the label should always follow the > longest polygon diagonal, or if it should be first placed horizontally > and fall back to automatic angling only if the horizontal one does not > fit. > >> 4. Place polygon annotation outside polygon if anno doesn't fit inside > The fine tuning on how to place the label text compared to the feature > would require new mapfile keywords, but that would seem possible to > implement. I'm not sure these kind of automatic adjustments would > really enhance the rendered quality though. > >> 5. Place line anno above (or below) when using ANGLE FOLLOW > This is something I would like to add to. There's a paper detailing > the underlying algorithm here: > http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 > >> 6. Rotate vector symbols to follow lines (a font might work but is a pain to >> create) > how is this different than what we already have with a negative GAP? > On a side note, vector symbols are currently rather ill-defined in > mapserver and would need to be tightened up before being able to use > them for precise symbol placement like here. > >> 7. User specified character spacing > SIZE AUTO for labels in polygon layers would be a nice addition. We'd > have to be able to define how the size of the font varies in > accordance with the spacing that is applied between characters. > Before going down that road, we shall have to implement the > refactoring proposed in http://trac.osgeo.org/mapserver/ticket/3611 so > as not to clutter the glyph rendering functions of each renderer. > > >> 8. Erase lines (but not other objects) under annotation > This seems rather involved. It would be difficult to keep the ordering > of layers, as the modified feature could only be drawn during the > labelcache phase, i.e. after all other features in the map. > >> My goal was to use the published shp files >> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >> without modification and see how close I could get to the published PDF >> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >> >> Any suggested rendering techniques are appreciated. I'll file tickets for >> those problems deemed worthy. > So, most of these enhancements seem possible, some were already on my > laundry-list of rendering enhancements I'd like to tackle. Creating > enhancement tickets for those features is a first step, and funding > them is the second ;) > > regards, > > thomas > >> -- >> Best Regards, >> Brent Fraser >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From steve.lime at state.mn.us Tue May 10 07:25:20 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 10 May 2011 09:25:20 -0500 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC94682.8030304@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> <4DC94682.8030304@geoanalytic.com> Message-ID: I don't have a difference operator implemented. Wouldn't take much though... -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Tuesday, May 10, 2011 9:07 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rendering Challenges Using STYLE GEOMTRANSFORM "difference([shape],buffer([shape], -5))" COLOR 255 211 127 END results in the entire original polygon being filled. Using GEOMTRANSFORM (difference([shape],buffer([shape], -5))) results in no fill. Best Regards, Brent Fraser On 5/9/2011 4:20 PM, Lime, Steve D (DNR) wrote: > That's were a difference operator might come in handy since you're looking for more of a fill-type effect: > > GEOMTRANSFORM (difference([shape], buffer([shape], -2))) > > or something like that. > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Monday, May 09, 2011 5:18 PM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rendering Challenges > > Steve L., > > Good point; I couldn't do any of this in pre-6.0 either! > > I tried the buffer and it worked great (but we might have to work on > the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg > > Best Regards, > Brent Fraser > > > On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: >> These aren't specific to 6.0 though- more of a wish list... >> >> Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed >> the GEOS buffer operator as a proof-of-concept. For example: >> >> STYLE >> GEOMTRANSFORM (buffer([shape], -2)) >> OUTLINECOLOR 255 0 0 >> END >> >> Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. >> Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective >> for rendering effects only. >> >> If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). >> >> The rest of the ideas are interesting and worthy of discussion. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser >> Sent: Monday, May 09, 2011 2:52 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Rendering Challenges >> >> While testing v6, I can up with the following list of things I >> couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): >> >> 1. Render lines inside polygon boundary (with or without opacity) >> 2. Place polygon annotation on/inside boundary line >> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >> 3. Rotate anno if required to fit inside a polygon >> 4. Place polygon annotation outside polygon if anno doesn't fit inside >> 5. Place line anno above (or below) when using ANGLE FOLLOW >> 6. Rotate vector symbols to follow lines (a font might work but is a >> pain to create) >> 7. User specified character spacing >> 8. Erase lines (but not other objects) under annotation >> >> My goal was to use the published shp files >> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >> without modification and see how close I could get to the published PDF >> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >> >> >> Any suggested rendering techniques are appreciated. I'll file >> tickets for those problems deemed worthy. >> > > > From thomas.bonfort at gmail.com Tue May 10 07:29:15 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 10 May 2011 16:29:15 +0200 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC949EB.8000902@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> <4DC949EB.8000902@geoanalytic.com> Message-ID: Yes, offset is intended for lines, using it on polygons is abusing it. the buffer+difference method is probably the way to go. note to myself and steve: the OFFSET keyword should be moved into a GEOMTRANSFORM instead of residing in a keyword of its own. -- thomas On Tue, May 10, 2011 at 16:21, Brent Fraser wrote: > Thomas, > > ?Interesting. I suspect all the polygons are digitized the same was as I > think this is a requirement for shapefiles. ?The result of using: > > ? ? ?STYLE > ? ? ? ?OUTLINECOLOR 255 211 127 > ? ? ? ?OFFSET 1.5 -99 > ? ? ? ?WIDTH 3 > ? ? ?END > > results in http://i54.tinypic.com/25a22k4.jpg ?Close, but notice the "bleed" > outside the polygon at the sharp corners. > > Thanks! > > Best Regards, > Brent Fraser > > > On 5/10/2011 1:38 AM, thomas bonfort wrote: >> >> Brent, >> >> those are interesting questions >> >> On Mon, May 9, 2011 at 21:51, Brent Fraser >> ?wrote: >>> >>> ?While testing v6, I can up with the following list of things I couldn't >>> do >>> (see http://i56.tinypic.com/8vvprn.png for a graphic): >>> >>> 1. Render lines inside polygon boundary (with or without opacity) >> >> Along with Steve's buffer proposition, you can already more or less do >> that with OFFSET , except you don't have the notion of inside/outside, >> but left/right. If all your polygons are digitized in the same >> direction (i.e. clockwise or anticlockwise) this can be done with: >> >> STYLE >> ? #FILL >> END >> STYLE >> ? ?OUTLINECOLOR r g b >> ? ?OFFSET 1.5 -99 >> ? ?WIDTH 3 >> ? ?OPACITY 50 >> END >> >> >> >>> 2. Place polygon annotation on/inside boundary line >>> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >> >> not possible in a single step, but by using the polygon layer a second >> time in a TYPE LINE layer for labelling should get you close. >> >>> 3. Rotate anno if required to fit inside a polygon >> >> would be a nice addition, ANGLE AUTO for polygon labels. We should >> probably give some way to define if the label should always follow the >> longest polygon diagonal, or if it should be first placed horizontally >> and fall back to automatic angling only if the horizontal one does not >> fit. >> >>> 4. Place polygon annotation outside polygon if anno doesn't fit inside >> >> The fine tuning on how to place the label text compared to the feature >> would require new mapfile keywords, but that would seem possible to >> implement. I'm not sure these kind of automatic adjustments would >> really enhance the rendered quality though. >> >>> 5. Place line anno above (or below) when using ANGLE FOLLOW >> >> This is something I would like to add to. There's a paper detailing >> the underlying algorithm here: >> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 >> >>> 6. Rotate vector symbols to follow lines (a font might work but is a pain >>> to >>> create) >> >> how is this different than what we already have with a negative GAP? >> On a side note, vector symbols are currently rather ill-defined in >> mapserver and would need to be tightened up before being able to use >> them for precise symbol placement like here. >> >>> 7. User specified character spacing >> >> SIZE AUTO for labels in polygon layers would be a nice addition. We'd >> have to be able to define how the size of the font varies in >> accordance with the spacing that is applied between characters. >> Before going down that road, we shall have to implement the >> refactoring proposed in http://trac.osgeo.org/mapserver/ticket/3611 so >> as not to clutter the glyph rendering functions of each renderer. >> >> >>> 8. Erase lines (but not other objects) under annotation >> >> This seems rather involved. It would be difficult to keep the ordering >> of layers, as the modified feature could only be drawn during the >> labelcache phase, i.e. after all other features in the map. >> >>> ?My goal was to use the published shp files >>> >>> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >>> without modification and see how close I could get to the published PDF >>> >>> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >>> >>> ?Any suggested rendering techniques are appreciated. ?I'll file tickets >>> for >>> those problems deemed worthy. >> >> So, most of these enhancements seem possible, some were already on my >> laundry-list of rendering enhancements I'd like to tackle. Creating >> enhancement tickets for those features is a first step, and funding >> them is the second ;) >> >> regards, >> >> thomas >> >>> -- >>> Best Regards, >>> Brent Fraser >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > From bfraser at geoanalytic.com Tue May 10 07:42:13 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 10 May 2011 08:42:13 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> <4DC94682.8030304@geoanalytic.com> Message-ID: <4DC94EC5.8060106@geoanalytic.com> I think it would be very valuable.... Best Regards, Brent Fraser On 5/10/2011 8:25 AM, Lime, Steve D (DNR) wrote: > I don't have a difference operator implemented. Wouldn't take much though... > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Tuesday, May 10, 2011 9:07 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rendering Challenges > > Using > > STYLE > GEOMTRANSFORM "difference([shape],buffer([shape], -5))" > COLOR 255 211 127 > END > > results in the entire original polygon being filled. > > Using > GEOMTRANSFORM (difference([shape],buffer([shape], -5))) > results in no fill. > > Best Regards, > Brent Fraser > > > On 5/9/2011 4:20 PM, Lime, Steve D (DNR) wrote: >> That's were a difference operator might come in handy since you're looking for more of a fill-type effect: >> >> GEOMTRANSFORM (difference([shape], buffer([shape], -2))) >> >> or something like that. >> >> Steve >> >> -----Original Message----- >> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Sent: Monday, May 09, 2011 5:18 PM >> To: Lime, Steve D (DNR) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Rendering Challenges >> >> Steve L., >> >> Good point; I couldn't do any of this in pre-6.0 either! >> >> I tried the buffer and it worked great (but we might have to work on >> the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg >> >> Best Regards, >> Brent Fraser >> >> >> On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: >>> These aren't specific to 6.0 though- more of a wish list... >>> >>> Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed >>> the GEOS buffer operator as a proof-of-concept. For example: >>> >>> STYLE >>> GEOMTRANSFORM (buffer([shape], -2)) >>> OUTLINECOLOR 255 0 0 >>> END >>> >>> Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. >>> Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective >>> for rendering effects only. >>> >>> If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). >>> >>> The rest of the ideas are interesting and worthy of discussion. >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser >>> Sent: Monday, May 09, 2011 2:52 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Rendering Challenges >>> >>> While testing v6, I can up with the following list of things I >>> couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): >>> >>> 1. Render lines inside polygon boundary (with or without opacity) >>> 2. Place polygon annotation on/inside boundary line >>> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >>> 3. Rotate anno if required to fit inside a polygon >>> 4. Place polygon annotation outside polygon if anno doesn't fit inside >>> 5. Place line anno above (or below) when using ANGLE FOLLOW >>> 6. Rotate vector symbols to follow lines (a font might work but is a >>> pain to create) >>> 7. User specified character spacing >>> 8. Erase lines (but not other objects) under annotation >>> >>> My goal was to use the published shp files >>> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >>> without modification and see how close I could get to the published PDF >>> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >>> >>> >>> Any suggested rendering techniques are appreciated. I'll file >>> tickets for those problems deemed worthy. >>> >> >> > > > From bfraser at geoanalytic.com Tue May 10 08:09:16 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 10 May 2011 09:09:16 -0600 Subject: [mapserver-users] Rendering Challenges - Polygon labeling Message-ID: <4DC9551C.8040901@geoanalytic.com> I've been thinking about the polygon label challenge. The difficulty is the view (the extent of the rendered map image) may be completely inside the polygon-to-be-labeled (and so no polygon edges are visible), partially overlap the polygon, or completely enclose the polygon. Here's my thought on how to handle the various cases: 1. if View completely within Poly, then place Label at top left of View (but be careful, there could be multiple layers of polygons putting labels there so maybe the user should specify X,Y, location in pixels?) 2. else if Poly partially overlaps View place Label at inside edge (POSITION FollowEdgeInside?) of Poly 3. else (polygon is completely within view) 3.1 if Label fits within Poly place Label within (allow: CC, FollowEdgeInside, FollowEdgeOutside) 3.2 else if rotated text fits within Poly rotate Label and place within 3.3 else place Label beside Poly (allow the eight positions similar to point labeling?) Might be a big effort to implement, and I have no clue how to make it configurable via the map file.... -- Best Regards, Brent Fraser From steve.lime at state.mn.us Tue May 10 08:32:30 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 10 May 2011 10:32:30 -0500 Subject: [mapserver-users] Rendering Challenges In-Reply-To: <4DC94EC5.8060106@geoanalytic.com> References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> <4DC94682.8030304@geoanalytic.com> <4DC94EC5.8060106@geoanalytic.com> Message-ID: I've attached a patch against trunk that adds the difference function. It's untested, give it a whirl and let me know how it goes... You'll have to re-build the lexer and parser. Steve -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Tuesday, May 10, 2011 9:42 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rendering Challenges I think it would be very valuable.... Best Regards, Brent Fraser On 5/10/2011 8:25 AM, Lime, Steve D (DNR) wrote: > I don't have a difference operator implemented. Wouldn't take much though... > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Tuesday, May 10, 2011 9:07 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rendering Challenges > > Using > > STYLE > GEOMTRANSFORM "difference([shape],buffer([shape], -5))" > COLOR 255 211 127 > END > > results in the entire original polygon being filled. > > Using > GEOMTRANSFORM (difference([shape],buffer([shape], -5))) > results in no fill. > > Best Regards, > Brent Fraser > > > On 5/9/2011 4:20 PM, Lime, Steve D (DNR) wrote: >> That's were a difference operator might come in handy since you're looking for more of a fill-type effect: >> >> GEOMTRANSFORM (difference([shape], buffer([shape], -2))) >> >> or something like that. >> >> Steve >> >> -----Original Message----- >> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Sent: Monday, May 09, 2011 5:18 PM >> To: Lime, Steve D (DNR) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Rendering Challenges >> >> Steve L., >> >> Good point; I couldn't do any of this in pre-6.0 either! >> >> I tried the buffer and it worked great (but we might have to work on >> the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg >> >> Best Regards, >> Brent Fraser >> >> >> On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: >>> These aren't specific to 6.0 though- more of a wish list... >>> >>> Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed >>> the GEOS buffer operator as a proof-of-concept. For example: >>> >>> STYLE >>> GEOMTRANSFORM (buffer([shape], -2)) >>> OUTLINECOLOR 255 0 0 >>> END >>> >>> Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. >>> Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective >>> for rendering effects only. >>> >>> If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). >>> >>> The rest of the ideas are interesting and worthy of discussion. >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser >>> Sent: Monday, May 09, 2011 2:52 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Rendering Challenges >>> >>> While testing v6, I can up with the following list of things I >>> couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): >>> >>> 1. Render lines inside polygon boundary (with or without opacity) >>> 2. Place polygon annotation on/inside boundary line >>> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >>> 3. Rotate anno if required to fit inside a polygon >>> 4. Place polygon annotation outside polygon if anno doesn't fit inside >>> 5. Place line anno above (or below) when using ANGLE FOLLOW >>> 6. Rotate vector symbols to follow lines (a font might work but is a >>> pain to create) >>> 7. User specified character spacing >>> 8. Erase lines (but not other objects) under annotation >>> >>> My goal was to use the published shp files >>> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >>> without modification and see how close I could get to the published PDF >>> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >>> >>> >>> Any suggested rendering techniques are appreciated. I'll file >>> tickets for those problems deemed worthy. >>> >> >> > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: difference.patch Type: application/octet-stream Size: 2377 bytes Desc: difference.patch URL: From bfraser at geoanalytic.com Tue May 10 11:32:48 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 10 May 2011 12:32:48 -0600 Subject: [mapserver-users] Rendering Challenges In-Reply-To: References: <4DC845CC.3040808@geoanalytic.com> <4DC86801.7020106@geoanalytic.com> <4DC94682.8030304@geoanalytic.com> <4DC94EC5.8060106@geoanalytic.com> Message-ID: <4DC984D0.3040802@geoanalytic.com> Steve, So I've done C:\>svn -r 11667 co https://svn.osgeo.org/mapserver/trunk/mapserver mapserver-6.0.0-r11667 C:\ mapserver-6.0.0-r11667> patch < difference.patch patching file mapparser.y patching file mapserver.h patching file maplexer.l C:\ mapserver-6.0.0-r11667> flex -Pmsyy -i -omaplexer.c maplexer.l but my make results in: Creating library mapserver_i.lib and object mapserver_i.exp mapfile.obj : error LNK2019: unresolved external symbol _msyylex_destroy referenced in function _msUpdateLabelFromString maputil.obj : error LNK2001: unresolved external symbol _msyylex_destroy Did I miss a step? Best Regards, Brent Fraser On 5/10/2011 9:32 AM, Lime, Steve D (DNR) wrote: > I've attached a patch against trunk that adds the difference function. It's untested, give it a whirl and > let me know how it goes... You'll have to re-build the lexer and parser. > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Tuesday, May 10, 2011 9:42 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rendering Challenges > > I think it would be very valuable.... > > Best Regards, > Brent Fraser > > > On 5/10/2011 8:25 AM, Lime, Steve D (DNR) wrote: >> I don't have a difference operator implemented. Wouldn't take much though... >> >> -----Original Message----- >> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Sent: Tuesday, May 10, 2011 9:07 AM >> To: Lime, Steve D (DNR) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Rendering Challenges >> >> Using >> >> STYLE >> GEOMTRANSFORM "difference([shape],buffer([shape], -5))" >> COLOR 255 211 127 >> END >> >> results in the entire original polygon being filled. >> >> Using >> GEOMTRANSFORM (difference([shape],buffer([shape], -5))) >> results in no fill. >> >> Best Regards, >> Brent Fraser >> >> >> On 5/9/2011 4:20 PM, Lime, Steve D (DNR) wrote: >>> That's were a difference operator might come in handy since you're looking for more of a fill-type effect: >>> >>> GEOMTRANSFORM (difference([shape], buffer([shape], -2))) >>> >>> or something like that. >>> >>> Steve >>> >>> -----Original Message----- >>> From: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Sent: Monday, May 09, 2011 5:18 PM >>> To: Lime, Steve D (DNR) >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] Rendering Challenges >>> >>> Steve L., >>> >>> Good point; I couldn't do any of this in pre-6.0 either! >>> >>> I tried the buffer and it worked great (but we might have to work on >>> the end-cap types in PDF output)! See http://i52.tinypic.com/2qjc9yv.jpg >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> On 5/9/2011 2:36 PM, Lime, Steve D (DNR) wrote: >>>> These aren't specific to 6.0 though- more of a wish list... >>>> >>>> Item 1 might be doable in 6.0 as it sits. In 6.0 a style GEOMTRANSFORM is really an expression and I exposed >>>> the GEOS buffer operator as a proof-of-concept. For example: >>>> >>>> STYLE >>>> GEOMTRANSFORM (buffer([shape], -2)) >>>> OUTLINECOLOR 255 0 0 >>>> END >>>> >>>> Should generate a single pixel red line on the inside of a polygon shape. You can render it however you'd like. >>>> Note that a GEOMTRANSFORM is performed AFTER a shape is converted from map to image coordinates so it's effective >>>> for rendering effects only. >>>> >>>> If we exposed a few others you'd be able to do some other interesting things (like fills just inside a line...). >>>> >>>> The rest of the ideas are interesting and worthy of discussion. >>>> >>>> Steve >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser >>>> Sent: Monday, May 09, 2011 2:52 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Rendering Challenges >>>> >>>> While testing v6, I can up with the following list of things I >>>> couldn't do (see http://i56.tinypic.com/8vvprn.png for a graphic): >>>> >>>> 1. Render lines inside polygon boundary (with or without opacity) >>>> 2. Place polygon annotation on/inside boundary line >>>> (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) >>>> 3. Rotate anno if required to fit inside a polygon >>>> 4. Place polygon annotation outside polygon if anno doesn't fit inside >>>> 5. Place line anno above (or below) when using ANGLE FOLLOW >>>> 6. Rotate vector symbols to follow lines (a font might work but is a >>>> pain to create) >>>> 7. User specified character spacing >>>> 8. Erase lines (but not other objects) under annotation >>>> >>>> My goal was to use the published shp files >>>> (http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_shp/092/h/canvec_092h06_shp.zip) >>>> without modification and see how close I could get to the published PDF >>>> (http://ftp2.cits.rncan.gc.ca/pub/cantopo/50k_geopdf/092/h/cantopo_092h06_geopdf.zip). >>>> >>>> >>>> Any suggested rendering techniques are appreciated. I'll file >>>> tickets for those problems deemed worthy. >>>> >>> >> >> > From joanne.mcgraw at SYMPATICO.CA Tue May 10 12:11:54 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 12:11:54 -0700 (PDT) Subject: [mapserver-users] WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? Message-ID: <1305054714557-6349109.post@n2.nabble.com> Hello all, I've been trying to figure out how to do this for a while this afternoon and thought perhaps I'd better step back and find out if it's even possible before I keep struggling with it. Is it possible to support multiple INFO_FORMAT properties to a WMS GetFeatureInfo request? That is, is there a way to configure a MAP file that is acting as a WMS Server to return HTML or XML based on what is asked for in the request itself? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349109.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue May 10 12:34:31 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 10 May 2011 16:34:31 -0300 Subject: [mapserver-users] WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305054714557-6349109.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> Message-ID: <4DC99347.5020106@gatewaygeomatics.com> On 11-05-10 4:11 PM, myOpenLayersUName wrote: > Hello all, > > I've been trying to figure out how to do this for a while this afternoon and > thought perhaps I'd better step back and find out if it's even possible > before I keep struggling with it. > > Is it possible to support multiple INFO_FORMAT properties to a WMS > GetFeatureInfo request? That is, is there a way to configure a MAP file that > is acting as a WMS Server to return HTML or XML based on what is asked for > in the request itself? Not that I know of. In fact you should probably check the WMS spec on the OGC site to see if that is allowed by the standard (my guess is no). I do know that the MapServer support for GetFeatureInfo requests is documented in the "Configuring for GetFeatureInfo Requests" section of http://www.mapserver.org/ogc/wms_server.html Of course, I've been wrong many times before, so someone can correct me if I am wrong here :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue May 10 12:42:06 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 10 May 2011 16:42:06 -0300 Subject: [mapserver-users] WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305054714557-6349109.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> Message-ID: <4DC9950E.7020906@gatewaygeomatics.com> On 11-05-10 4:11 PM, myOpenLayersUName wrote: > Hello all, > > I've been trying to figure out how to do this for a while this afternoon and > thought perhaps I'd better step back and find out if it's even possible > before I keep struggling with it. > > Is it possible to support multiple INFO_FORMAT properties to a WMS > GetFeatureInfo request? That is, is there a way to configure a MAP file that > is acting as a WMS Server to return HTML or XML based on what is asked for > in the request itself? Further comments: - maybe look into a mapscript wrapper for your WMS service: http://www.mapserver.org/ogc/mapscript.html Have fun. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From joanne.mcgraw at SYMPATICO.CA Tue May 10 12:44:26 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 12:44:26 -0700 (PDT) Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <4DC99347.5020106@gatewaygeomatics.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> Message-ID: <1305056666658-6349243.post@n2.nabble.com> Thanks for your response, Jeff; and, to be honest, I didn't think it could. However, it's quite interesting that you would reference that particular documentation because it was exactly that section that started me looking into how it might be possible. There are three links to what I was guessing was ultimately the same MAP file at "http://demo.mapserver.org/cgi-bin/wms": "Here are working examples of GetFeatureInfo requests: text/plain, text/html, gml ... " However, given your confirmation and my own previous understanding, I imagine it's likely a script that is looking at different MAP files based on the value passed for the INFO_FORMAT parameter. Again, thanks. It's always nice to know when I can stop beating my head against a wall. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349243.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Tue May 10 12:45:35 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 12:45:35 -0700 (PDT) Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305056666658-6349243.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> <1305056666658-6349243.post@n2.nabble.com> Message-ID: <1305056735179-6349248.post@n2.nabble.com> Ah, you're two steps ahead of me again! Thanks, -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349248.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue May 10 12:47:06 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 10 May 2011 22:47:06 +0300 Subject: [mapserver-users] WMS GetFeatureInfo - is it possible to supportmultiple INFO_FORMATs? References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> Message-ID: Hi, If you mean an effect like this http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 vs. http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 then yes, it is possible -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jeff McKenna L?hetetty: ti 10.5.2011 22:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WMS GetFeatureInfo - is it possible to supportmultiple INFO_FORMATs? On 11-05-10 4:11 PM, myOpenLayersUName wrote: > Hello all, > > I've been trying to figure out how to do this for a while this afternoon and > thought perhaps I'd better step back and find out if it's even possible > before I keep struggling with it. > > Is it possible to support multiple INFO_FORMAT properties to a WMS > GetFeatureInfo request? That is, is there a way to configure a MAP file that > is acting as a WMS Server to return HTML or XML based on what is asked for > in the request itself? Not that I know of. In fact you should probably check the WMS spec on the OGC site to see if that is allowed by the standard (my guess is no). I do know that the MapServer support for GetFeatureInfo requests is documented in the "Configuring for GetFeatureInfo Requests" section of http://www.mapserver.org/ogc/wms_server.html Of course, I've been wrong many times before, so someone can correct me if I am wrong here :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue May 10 12:51:35 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 10 May 2011 16:51:35 -0300 Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305056666658-6349243.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> <1305056666658-6349243.post@n2.nabble.com> Message-ID: <4DC99747.3080201@gatewaygeomatics.com> Wait! MapServer out of the box supports the formats described in that document...I think I am misunderstanding your question. I thought you were trying to return multiple formats in one request, so I answered no. But if you read that section it tells you how to configure the mapfile for the requests individually (and yes I included those working examples to show you..no script involved). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-10 4:44 PM, myOpenLayersUName wrote: > Thanks for your response, Jeff; and, to be honest, I didn't think it could. > > However, it's quite interesting that you would reference that particular > documentation because it was exactly that section that started me looking > into how it might be possible. There are three links to what I was guessing > was ultimately the same MAP file at "http://demo.mapserver.org/cgi-bin/wms": > > "Here are working examples of GetFeatureInfo requests: text/plain, > text/html, gml ... " > > However, given your confirmation and my own previous understanding, I > imagine it's likely a script that is looking at different MAP files based on > the value passed for the INFO_FORMAT parameter. > > Again, thanks. It's always nice to know when I can stop beating my head > against a wall. From joanne.mcgraw at SYMPATICO.CA Tue May 10 13:05:26 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 13:05:26 -0700 (PDT) Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <4DC99747.3080201@gatewaygeomatics.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> <1305056666658-6349243.post@n2.nabble.com> <4DC99747.3080201@gatewaygeomatics.com> Message-ID: <1305057926929-6349329.post@n2.nabble.com> To clarify, I want to be able to make two completely separate GetFeatureInfo requests to a WMS Server; one that will return HTML and the other will return XML. As far as I'm understand from the MapServer documentation, I need to set "wms_feature_info_mime_type" parameter to one of three values: - text/xml - text/html - application/vnd.ogc.gml How can I set it to two of those values? Or, am I supposed to be able to do something like the following in a LAYER's WEB object? "wms_feature_info_mime_type" "text/html" "wms_feature_info_mime_type" "text/xml" And, if I can do that, how can I point to two different TEMPLATES? An HTML one and an XSL for the XML? Or, again, am I supposed to be able to have two TEMPLATE keywords in a single LAYER? Or, am I completely missing some very important item in all these discussions? BTW, Rahkonen Jukka, I particularly appreciated your description of these items at: http://osgeo-org.1803224.n2.nabble.com/GetFeatureInfo-request-doubts-td5083816.html http://osgeo-org.1803224.n2.nabble.com/GetFeatureInfo-request-doubts-td5083816.html . -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349329.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Tue May 10 13:06:22 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 13:06:22 -0700 (PDT) Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305057926929-6349329.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> <1305056666658-6349243.post@n2.nabble.com> <4DC99747.3080201@gatewaygeomatics.com> <1305057926929-6349329.post@n2.nabble.com> Message-ID: <1305057982295-6349334.post@n2.nabble.com> I'm starting to think that what I might do is support HTML and GML and simply not return any geometry for the GML. Does that sound like a way to do what I need? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349334.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Tue May 10 13:19:16 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 10 May 2011 13:19:16 -0700 (PDT) Subject: [mapserver-users] Re: WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <1305057982295-6349334.post@n2.nabble.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> <1305056666658-6349243.post@n2.nabble.com> <4DC99747.3080201@gatewaygeomatics.com> <1305057926929-6349329.post@n2.nabble.com> <1305057982295-6349334.post@n2.nabble.com> Message-ID: <1305058756506-6349382.post@n2.nabble.com> There is no such thing as "text/xml". Where the heck did I come up with that? Okay, I know how to support HTML and GML at the same time. Sorry about all that... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-GetFeatureInfo-is-it-possible-to-support-multiple-INFO-FORMATs-tp6349109p6349382.html Sent from the Mapserver - User mailing list archive at Nabble.com. From CowieA at landcareresearch.co.nz Tue May 10 13:32:59 2011 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Wed, 11 May 2011 08:32:59 +1200 Subject: [mapserver-users] Mapserver as a WMS Client - problems working with a 'remote' Tilecache service In-Reply-To: References: <99F4D44109DA3A448A9C811B14E04B151618623654@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: <99F4D44109DA3A448A9C811B14E04B1516186BB17E@donkey.landcare.ad.landcareresearch.co.nz> Hi Jukka, Many thanks for the suggestion however we've decided to take another route - which basically entails publishing a OGC standards compliant Mapserver WMS alongside a WMTS enabled Tilecache service. Cheers Andrew -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Friday, 6 May 2011 4:10 p.m. To: Andrew Cowie; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as a WMS Client - problems working with a 'remote' Tilecache service Hi, I have never tried myself but I would guess that you need to prepare a xml file for defining a gdal-wms datasource and refer to that xml file in your mapfile. Read http://gdal.org/frmt_wms.html -Jukka Rahkonen- Andrew Cowie wrote: > Hello List, > We are currently setting up a cascading WMS using Mapserver as a client to request maps from another Mapserver and from a Tilecache. We have read that Mapserver can be configured to do this but we are running into problems when using Mapserver as a client to Tlecache. Specifically, how do we publish metadata in the MapSever Client capabilities document about the correct resolutions / bounding box of a Tilecache service. > More details... > Here's a snippet of our 'top level' Mapserver mapfile, which will sit on our public server: LAYER NAME 'lcr_basemap_cache_wgs84' TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://ourserver/tilecache/wms-c/tilecache.py?" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_name" "lcr_basemap_cache_wgs84" "wms_title" "Baselayer - Cached" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_extent" "165 -48 179.5 -33" "wms_abstract" "Cached via Tilcache" END END This pulls a layer from our Tilecache (a snippet from our tilecache config file): [lcr_basemap_cache_wgs84] type=WMSLayer layers=coastpoly,veg,urban_grp,contours,water,coast_feats,height_pnts,tracks,rail,all_roads,railway_station,text srs=EPSG:4326 bbox=165,-48,179.5,-33 resolutions=0.025398253504337,0.012699126752168,0.006349563376084,0.003174781688042,0.001587390844021,0.000793695422011,0.000317478168804,0.000158739084402,0.000079369542201,0.000031747816880,0.000015873908440,0.000006349563376,0.000003174781688 url=http://ourserver/cgi-bin/mapserv?map=/path/to/ourmapfile.map&transparent=true& extent_type=loose metaBuffer=10 metasize=6,6 metaTile=true (As you can see, Tilecache is pointing to another Mapserver which generates the maps.) We have had some success in connecting to the Tilecache via the Mapserver Client using an Openlayers client to view the 'top level' WMS layers ** BUT ** this only works because we configured Openlayers to use the correct resolutions / bounding box etc. What we are really trying to achieve with this is a public WMS for which other people/clients can use, e.g. Openlayers / QGIS, by just reading the Capabilities document provided by the MapServer client. So far, we have yet to find a way to advertise (via the capabilities document) these underlying Tilecache resolutions as metadata in the cascading level Mapserver. Is this possible? If it is not possible, does anybody have recommendations as to how to go about this in a standards compliant way? Many thanks, Andy ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz From trondmm-mapserver at crusaders.no Tue May 10 13:09:46 2011 From: trondmm-mapserver at crusaders.no (Trond Michelsen) Date: Tue, 10 May 2011 22:09:46 +0200 Subject: [mapserver-users] WMS GetFeatureInfo - is it possible to support multiple INFO_FORMATs? In-Reply-To: <4DC99347.5020106@gatewaygeomatics.com> References: <1305054714557-6349109.post@n2.nabble.com> <4DC99347.5020106@gatewaygeomatics.com> Message-ID: <20110510200946.GA6638@crusaders.no> On Tue, May 10, 2011 at 04:34:31PM -0300, Jeff McKenna wrote: >> Is it possible to support multiple INFO_FORMAT properties to a WMS >> GetFeatureInfo request? That is, is there a way to configure a MAP >> file that is acting as a WMS Server to return HTML or XML based on >> what is asked for in the request itself? > Not that I know of. In fact you should probably check the WMS spec > on the OGC site to see if that is allowed by the standard (my guess > is no). The standard allows multiple mime types for the GetFeatureInfo request: 7.4.3.5 INFO_FORMAT The mandatory INFO_FORMAT parameter indicates what format to use when returning the feature information. Supported values for a GetFeatureInfo request on a WMS server are listed as MIME types in one or more elements of its service metadata. The entire MIME type string in is used as the value of the INFO_FORMAT parameter. In an HTTP environment, the MIME type shall be set on the returned object using the Content-type entity header. If the request specifies a format not supported by the server, the server shall issue a service exception (code = InvalidFormat). However, as the example capabilities document shows, the available mime types for the GetFeatureInfo request is defined on a per-server basis, and as far as I can tell, all queryable layers must support all formats. http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xml ... ... text/xml text/plain text/html -- Trond Michelsen From niwa at orkney.co.jp Tue May 10 22:36:23 2011 From: niwa at orkney.co.jp (Makoto Niwa) Date: Wed, 11 May 2011 14:36:23 +0900 Subject: [mapserver-users] Re: Arrowhead in Mapserver 6.0 In-Reply-To: <427620110506045945niwa@orkney.co.jp> References: <4DC35F4B.7010504@mapgears.com> <427620110506045945niwa@orkney.co.jp> Message-ID: <501220110511053623niwa@orkney.co.jp> me again, It was resoleved. I used negative value in vector symbol point such as -20,-10. It was wrong. I thougt only -99 was non-continuous line value. Use all postive value(except non-continuous value -99) in it, I can get the same results by all 3 renderers. thanks, makoto. At 06 May 2011 13:59:45 +0900 Makoto Niwa wrote: > Hi,list > > I tried new MapServer 6.0(rc2). > > I got diffrent images GD/PNG and CAIRO renderes for arrowhead symbols. > > Attached images are > ms6_gd.gif : render by GD/GIF > ms6_aggpng8.png : render by AGG/PNG > > CAIRO renderer image is as same as AGG. > CARIO/AGG renderer has incorrect ofsset for arrowhead symbols. > I used vcetor type symbols for arrowhead symbols. > > But I got same results both AGG and GD in MapSever 5.6 > > Is this behavior correct in MapServer 6 ? > > regards, > > makoto. > > --------------------------------------------------- > Symbol definition: > SYMBOL > NAME "from" > TYPE vector > POINTS > 0 10 > -20 0 > 0 -10 > -99 -99 > -40 10 > -99 -99 > -40 -10 > END > END > > SYMBOL > NAME "to" > TYPE vector > POINTS > 0 10 > 20 0 > 0 -10 > -99 -99 > 40 10 > -99 -99 > 40 -10 > END > END > > Style in the layer: > STYLE > ANGLE AUTO > GEOMTRANSFORM "start" > SYMBOL "from" > COLOR 255 20 20 > WIDTH 2 > END > STYLE > ANGLE AUTO > GEOMTRANSFORM "end" > SYMBOL "to" > COLOR 20 20 255 > WIDTH 2 > END > > --------------------------------------------------- > Makoto Niwa Orkney,Inc. > Queen's Tower C 12F > 2-3-5 Minatomirai, Nishi, Yokohama, Japan > TEL.81-45-228-3320 FAX.81-45-228-3321 > E-mail niwa at orkney.co.jp http://www.orkney.co.jp > > ------------------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users --------------------------------------------------- ?????????????? ?220-6212 ???????????2-3-5 ????????C?12? Tel.045-228-3320 Fax.045-228-3321 E-mail:niwa at orkney.co.jp?URL:www.orkney.co.jp From npj at i-gis.dk Wed May 11 02:40:06 2011 From: npj at i-gis.dk (Niels-Peter Jensen) Date: Wed, 11 May 2011 11:40:06 +0200 Subject: [mapserver-users] Rendering line crossing iteslf Message-ID: <0B9855DB676440C0BB641FD3A07DCA1B@T61p> Hi users We have a problem in rendering a route based on a line feature. When we use the common way to do that, by using two styles, with a thick black line that defines an outline, and a thinner defying the road center, we will not get the desired result. But I want to show where routes cross ("bridge" intersection), and not as a "normal" intersection, see the attached examples. As there is no outline definition on linefeatures I can't se how that can be done in a simple way. Niels-Peter I-GIS -------------- next part -------------- A non-text attachment was scrubbed... Name: NormalIntersection.jpg Type: image/jpeg Size: 18268 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BridgeIntersection.jpg Type: image/jpeg Size: 18502 bytes Desc: not available URL: From thomas.bonfort at gmail.com Wed May 11 03:13:58 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 11 May 2011 12:13:58 +0200 Subject: [mapserver-users] Rendering line crossing iteslf In-Reply-To: <0B9855DB676440C0BB641FD3A07DCA1B@T61p> References: <0B9855DB676440C0BB641FD3A07DCA1B@T61p> Message-ID: An undocumented and "not guaranteed to work in future versions" is to trick mapserver in not drawing the cached base style for bridge lines. As you are avoiding the line caching mechanism, you have to tweak the linecaps for the base style. CLASS EXPRESSION ([bridge]=1) STYLE END STYLE color black width 5 linecap butt END STYLE color yellow width 3 linecap round END STYLE color black width 1 END END I haven't tested this recently, so please keep in touch if this solves your problem or not. regards, thomas On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen wrote: > Hi users > > We have a problem in rendering a route based on a line feature. > > When we use the common way to do that, by using two styles, with a thick > black line that defines an outline, and a thinner defying the road center, > we will not get the desired result. > > But I want to show where routes cross ("bridge" intersection), and not as a > "normal" intersection, see the attached examples. > > As there is no outline definition on linefeatures I can't se how that can be > done in a simple way. > > > Niels-Peter > I-GIS > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From npj at i-gis.dk Wed May 11 04:51:05 2011 From: npj at i-gis.dk (Niels-Peter Jensen) Date: Wed, 11 May 2011 13:51:05 +0200 Subject: SV: [mapserver-users] Rendering line crossing iteslf In-Reply-To: Message-ID: <33CC25FEF3D6427384508C6E1D46C71D@T61p> Hi Thomas Thanks for the quick answer. We cannot make the style work in the mapfile and have to place it in the symbol file. By the way, we are using Mapserver 5.4.2. But anyway, I don't think it solves our problem. We don't have any "bridge" in our line data, it is just a single line feature that crosses itself. Regards Niels-Peter -----Oprindelig meddelelse----- Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sendt: 11. maj 2011 12:14 Til: Niels-Peter Jensen Cc: mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Rendering line crossing iteslf An undocumented and "not guaranteed to work in future versions" is to trick mapserver in not drawing the cached base style for bridge lines. As you are avoiding the line caching mechanism, you have to tweak the linecaps for the base style. CLASS EXPRESSION ([bridge]=1) STYLE END STYLE color black width 5 linecap butt END STYLE color yellow width 3 linecap round END STYLE color black width 1 END END I haven't tested this recently, so please keep in touch if this solves your problem or not. regards, thomas On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen wrote: > Hi users > > We have a problem in rendering a route based on a line feature. > > When we use the common way to do that, by using two styles, with a > thick black line that defines an outline, and a thinner defying the > road center, we will not get the desired result. > > But I want to show where routes cross ("bridge" intersection), and not > as a "normal" intersection, see the attached examples. > > As there is no outline definition on linefeatures I can't se how that > can be done in a simple way. > > > Niels-Peter > I-GIS > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From npj at i-gis.dk Wed May 11 05:18:56 2011 From: npj at i-gis.dk (Niels-Peter Jensen) Date: Wed, 11 May 2011 14:18:56 +0200 Subject: SV: [mapserver-users] Rendering line crossing iteslf In-Reply-To: Message-ID: Hi Thomas The bridge was used as an anology. In fact, the line feature is a bus route that crosses itself, and we just want to show where the route passes through an intersection. Niels-Peter -----Oprindelig meddelelse----- Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sendt: 11. maj 2011 13:56 Til: Niels-Peter Jensen Emne: Re: [mapserver-users] Rendering line crossing iteslf On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: > Hi Thomas > > Thanks for the quick answer. > > We cannot make the style work in the mapfile and have to place it in > the symbol file. By the way, we are using Mapserver 5.4.2. > > But anyway, I don't think it solves our problem. > We don't have any "bridge" in our line data, it is just a single line > feature that crosses itself. then how can you distinguish the case of the bridge with the case of the intersection ? applying the solution I proposed on all lines will give incorrect cases everywhere you don't have a bridge, so it would not be a possible solution. -- thomas > > Regards > Niels-Peter > > > -----Oprindelig meddelelse----- > Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sendt: 11. maj 2011 12:14 > Til: Niels-Peter Jensen > Cc: mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Rendering line crossing iteslf > > > An undocumented and "not guaranteed to work in future versions" is to > trick mapserver in not drawing the cached base style for bridge lines. > As you are avoiding the line caching mechanism, you have to tweak the > linecaps for the base style. > > CLASS > ? EXPRESSION ([bridge]=1) > ? STYLE > ? END > ? STYLE > ? ? ?color black > ? ? ?width 5 > ? ? ?linecap butt > ? END > ? STYLE > ? ? ?color yellow > ? ? ?width 3 > ? ? ?linecap round > ? END > ? STYLE > ? ? ?color black > ? ? ?width 1 > ? END > END > > I haven't tested this recently, so please keep in touch if this solves > your problem or not. > > regards, > thomas > > On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen > wrote: >> Hi users >> >> We have a problem in rendering a route based on a line feature. >> >> When we use the common way to do that, by using two styles, with a >> thick black line that defines an outline, and a thinner defying the >> road center, we will not get the desired result. >> >> But I want to show where routes cross ("bridge" intersection), and >> not as a "normal" intersection, see the attached examples. >> >> As there is no outline definition on linefeatures I can't se how that >> can be done in a simple way. >> >> >> Niels-Peter >> I-GIS >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From woodbri at swoodbridge.com Wed May 11 06:47:22 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 11 May 2011 09:47:22 -0400 Subject: SV: [mapserver-users] Rendering line crossing iteslf In-Reply-To: References: Message-ID: <4DCA936A.8040401@swoodbridge.com> Niels-Peter, I believe that you will need to split the line at the intersection into multiple lines to get the display that you want. Because you line just crosses itself there is no intersection there. If you split the line into multiple segments that there will be an intersection and mapserver should render it is desired. -Steve W On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: > Hi Thomas > > The bridge was used as an anology. In fact, the line feature is a bus route > that crosses itself, and we just want to show where the route passes through > an intersection. > > Niels-Peter > > > -----Oprindelig meddelelse----- > Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sendt: 11. maj 2011 13:56 > Til: Niels-Peter Jensen > Emne: Re: [mapserver-users] Rendering line crossing iteslf > > > On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: >> Hi Thomas >> >> Thanks for the quick answer. >> >> We cannot make the style work in the mapfile and have to place it in >> the symbol file. By the way, we are using Mapserver 5.4.2. >> >> But anyway, I don't think it solves our problem. >> We don't have any "bridge" in our line data, it is just a single line >> feature that crosses itself. > > then how can you distinguish the case of the bridge with the case of the > intersection ? applying the solution I proposed on all lines will give > incorrect cases everywhere you don't have a bridge, so it would not be a > possible solution. > > -- > thomas > >> >> Regards >> Niels-Peter >> >> >> -----Oprindelig meddelelse----- >> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sendt: 11. maj 2011 12:14 >> Til: Niels-Peter Jensen >> Cc: mapserver-users at lists.osgeo.org >> Emne: Re: [mapserver-users] Rendering line crossing iteslf >> >> >> An undocumented and "not guaranteed to work in future versions" is to >> trick mapserver in not drawing the cached base style for bridge lines. >> As you are avoiding the line caching mechanism, you have to tweak the >> linecaps for the base style. >> >> CLASS >> EXPRESSION ([bridge]=1) >> STYLE >> END >> STYLE >> color black >> width 5 >> linecap butt >> END >> STYLE >> color yellow >> width 3 >> linecap round >> END >> STYLE >> color black >> width 1 >> END >> END >> >> I haven't tested this recently, so please keep in touch if this solves >> your problem or not. >> >> regards, >> thomas >> >> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >> wrote: >>> Hi users >>> >>> We have a problem in rendering a route based on a line feature. >>> >>> When we use the common way to do that, by using two styles, with a >>> thick black line that defines an outline, and a thinner defying the >>> road center, we will not get the desired result. >>> >>> But I want to show where routes cross ("bridge" intersection), and >>> not as a "normal" intersection, see the attached examples. >>> >>> As there is no outline definition on linefeatures I can't se how that >>> can be done in a simple way. >>> >>> >>> Niels-Peter >>> I-GIS >>> >>> _______________________________________________ >>> 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 Wed May 11 07:04:24 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 11 May 2011 16:04:24 +0200 Subject: [mapserver-users] Rendering line crossing iteslf In-Reply-To: References: <4DCA936A.8040401@swoodbridge.com> Message-ID: ---------- Forwarded message ---------- From: thomas bonfort Date: Wed, May 11, 2011 at 16:03 Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf To: Stephen Woodbridge Steve, That isn't the case. The first style of all the features are rendered in a first phase, and the following ones are rendered in a second phase, so the order is feature1->style1 feature2->style1 ... featuren->style1 feature1->style2 ... featuren->style2 ... ... feature1->stylem featuren->stylem without that, you'd get artifacts on road intersections. -- thomas On Wed, May 11, 2011 at 15:47, Stephen Woodbridge wrote: > Niels-Peter, > > I believe that you will need to split the line at the intersection into > multiple lines to get the display that you want. Because you line just > crosses itself there is no intersection there. If you split the line into > multiple segments that there will be an intersection and mapserver should > render it is desired. > > -Steve W > > On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >> >> Hi Thomas >> >> The bridge was used as an anology. In fact, the line feature is a bus >> route >> that crosses itself, and we just want to show where the route passes >> through >> an intersection. >> >> Niels-Peter >> >> >> -----Oprindelig meddelelse----- >> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sendt: 11. maj 2011 13:56 >> Til: Niels-Peter Jensen >> Emne: Re: [mapserver-users] Rendering line crossing iteslf >> >> >> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen ?wrote: >>> >>> Hi Thomas >>> >>> Thanks for the quick answer. >>> >>> We cannot make the style work in the mapfile and have to place it in >>> the symbol file. By the way, we are using Mapserver 5.4.2. >>> >>> But anyway, I don't think it solves our problem. >>> We don't have any "bridge" in our line data, it is just a single line >>> feature that crosses itself. >> >> then how can you distinguish the case of the bridge with the case of the >> intersection ? applying the solution I proposed on all lines will give >> incorrect cases everywhere you don't have a bridge, so it would not be a >> possible solution. >> >> -- >> thomas >> >>> >>> Regards >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sendt: 11. maj 2011 12:14 >>> Til: Niels-Peter Jensen >>> Cc: mapserver-users at lists.osgeo.org >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> An undocumented and "not guaranteed to work in future versions" is to >>> trick mapserver in not drawing the cached base style for bridge lines. >>> As you are avoiding the line caching mechanism, you have to tweak the >>> linecaps for the base style. >>> >>> CLASS >>> ? EXPRESSION ([bridge]=1) >>> ? STYLE >>> ? END >>> ? STYLE >>> ? ? ?color black >>> ? ? ?width 5 >>> ? ? ?linecap butt >>> ? END >>> ? STYLE >>> ? ? ?color yellow >>> ? ? ?width 3 >>> ? ? ?linecap round >>> ? END >>> ? STYLE >>> ? ? ?color black >>> ? ? ?width 1 >>> ? END >>> END >>> >>> I haven't tested this recently, so please keep in touch if this solves >>> your problem or not. >>> >>> regards, >>> thomas >>> >>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >>> wrote: >>>> >>>> Hi users >>>> >>>> We have a problem in rendering a route based on a line feature. >>>> >>>> When we use the common way to do that, by using two styles, with a >>>> thick black line that defines an outline, and a thinner defying the >>>> road center, we will not get the desired result. >>>> >>>> But I want to show where routes cross ("bridge" intersection), and >>>> not as a "normal" intersection, see the attached examples. >>>> >>>> As there is no outline definition on linefeatures I can't se how that >>>> can be done in a simple way. >>>> >>>> >>>> Niels-Peter >>>> I-GIS >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Wed May 11 07:06:49 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 11 May 2011 10:06:49 -0400 Subject: [mapserver-users] Rendering line crossing iteslf In-Reply-To: References: <4DCA936A.8040401@swoodbridge.com> Message-ID: <4DCA97F9.7020209@swoodbridge.com> Oops, right. brain not in gear yet :) On 5/11/2011 10:04 AM, thomas bonfort wrote: > ---------- Forwarded message ---------- > From: thomas bonfort > Date: Wed, May 11, 2011 at 16:03 > Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf > To: Stephen Woodbridge > > > Steve, > That isn't the case. The first style of all the features are rendered > in a first phase, and the following ones are rendered in a second > phase, so the order is > > feature1->style1 > feature2->style1 > ... > featuren->style1 > feature1->style2 > ... > featuren->style2 > ... > ... > feature1->stylem > featuren->stylem > > without that, you'd get artifacts on road intersections. > > -- > thomas > > > > On Wed, May 11, 2011 at 15:47, Stephen Woodbridge > wrote: >> Niels-Peter, >> >> I believe that you will need to split the line at the intersection into >> multiple lines to get the display that you want. Because you line just >> crosses itself there is no intersection there. If you split the line into >> multiple segments that there will be an intersection and mapserver should >> render it is desired. >> >> -Steve W >> >> On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >>> >>> Hi Thomas >>> >>> The bridge was used as an anology. In fact, the line feature is a bus >>> route >>> that crosses itself, and we just want to show where the route passes >>> through >>> an intersection. >>> >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sendt: 11. maj 2011 13:56 >>> Til: Niels-Peter Jensen >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: >>>> >>>> Hi Thomas >>>> >>>> Thanks for the quick answer. >>>> >>>> We cannot make the style work in the mapfile and have to place it in >>>> the symbol file. By the way, we are using Mapserver 5.4.2. >>>> >>>> But anyway, I don't think it solves our problem. >>>> We don't have any "bridge" in our line data, it is just a single line >>>> feature that crosses itself. >>> >>> then how can you distinguish the case of the bridge with the case of the >>> intersection ? applying the solution I proposed on all lines will give >>> incorrect cases everywhere you don't have a bridge, so it would not be a >>> possible solution. >>> >>> -- >>> thomas >>> >>>> >>>> Regards >>>> Niels-Peter >>>> >>>> >>>> -----Oprindelig meddelelse----- >>>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>>> Sendt: 11. maj 2011 12:14 >>>> Til: Niels-Peter Jensen >>>> Cc: mapserver-users at lists.osgeo.org >>>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>>> >>>> >>>> An undocumented and "not guaranteed to work in future versions" is to >>>> trick mapserver in not drawing the cached base style for bridge lines. >>>> As you are avoiding the line caching mechanism, you have to tweak the >>>> linecaps for the base style. >>>> >>>> CLASS >>>> EXPRESSION ([bridge]=1) >>>> STYLE >>>> END >>>> STYLE >>>> color black >>>> width 5 >>>> linecap butt >>>> END >>>> STYLE >>>> color yellow >>>> width 3 >>>> linecap round >>>> END >>>> STYLE >>>> color black >>>> width 1 >>>> END >>>> END >>>> >>>> I haven't tested this recently, so please keep in touch if this solves >>>> your problem or not. >>>> >>>> regards, >>>> thomas >>>> >>>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >>>> wrote: >>>>> >>>>> Hi users >>>>> >>>>> We have a problem in rendering a route based on a line feature. >>>>> >>>>> When we use the common way to do that, by using two styles, with a >>>>> thick black line that defines an outline, and a thinner defying the >>>>> road center, we will not get the desired result. >>>>> >>>>> But I want to show where routes cross ("bridge" intersection), and >>>>> not as a "normal" intersection, see the attached examples. >>>>> >>>>> As there is no outline definition on linefeatures I can't se how that >>>>> can be done in a simple way. >>>>> >>>>> >>>>> Niels-Peter >>>>> I-GIS >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jpdobson40 at gmail.com Wed May 11 08:39:45 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Wed, 11 May 2011 16:39:45 +0100 Subject: [mapserver-users] Layer rendering performance problem Message-ID: Hi, Whenever I display a layer based on a Shape file I notice that the Shape file is accessed constantly. This makes rendering extremely slow when compared to, for example, ESRI ArcIMS which appears to cache the Shape file. Is there an equivalent caching mechanism for Map Server? ArcIMS seems to render an order of magnitude faster when the number of symbols runs into the 1000s Similarly, whenever I display layer symbols using a truetype font I notice that the .ttf file is accessed for every symbol. This makes rendering appallingly slow. Is there also any caching mechanism to prevent this? Any insight anyone can give would be much appreciated. Best regards, Jon-Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed May 11 08:41:02 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 May 2011 18:41:02 +0300 Subject: [mapserver-users] Layer rendering performance problem References: Message-ID: Hi, No answers but a question back. Have you created spatial index (.qix) for your shapefiles with shptree? -Jukka Rahkonen- Jon-Paul Dobson wrote: > Hi, > Whenever I display a layer based on a Shape file I notice that the Shape file is accessed constantly. This makes rendering extremely slow when compared to, for example, ESRI ArcIMS which appears to cache the Shape file. Is there an equivalent caching mechanism for Map Server? ArcIMS seems to render an order of magnitude faster when the number of symbols runs into the 1000s > Similarly, whenever I display layer symbols using a truetype font I notice that the .ttf file is accessed for every symbol. This makes rendering appallingly slow. Is there also any caching mechanism to prevent this? > Any insight anyone can give would be much appreciated. Best regards, Jon-Paul. From jpdobson40 at gmail.com Wed May 11 08:47:00 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Wed, 11 May 2011 16:47:00 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: Message-ID: Hi Jukka, Thanks for getting back to me so quickly. No I haven't tried this. How is this done and what is the benefit? Aren't Shape files already indexed? Regards, Jon-Paul. On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka wrote: > Hi, > > No answers but a question back. Have you created spatial index (.qix) for > your shapefiles with shptree? > > -Jukka Rahkonen- > > Jon-Paul Dobson wrote: > > > Hi, > > > > > Whenever I display a layer based on a Shape file I notice that the Shape > file is accessed constantly. This makes rendering extremely slow when > compared to, for example, ESRI ArcIMS which appears to cache the Shape > file. > Is there an equivalent caching mechanism for Map Server? ArcIMS seems to > render an order of magnitude faster when the number of symbols runs into > the > 1000s > > > > > Similarly, whenever I display layer symbols using a truetype font I > notice > that the .ttf file is accessed for every symbol. This makes rendering > appallingly slow. Is there also any caching mechanism to prevent this? > > > > > Any insight anyone can give would be much appreciated. > > > Best regards, > Jon-Paul. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 11 08:54:21 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 11 May 2011 12:54:21 -0300 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: Message-ID: <4DCAB12D.8030408@gatewaygeomatics.com> On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: > Hi Jukka, > Thanks for getting back to me so quickly. No I haven't tried this. How > is this done and what is the benefit? Aren't Shape files already indexed? > Regards, > Jon-Paul. Jukka is right, always make sure to run the shptree commandline utility on all of your ESRI shapefiles before using them in MapServer (http://mapserver.org/utilities/shptree.html). You'll see huge speed differences. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Wed May 11 08:53:34 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 11 May 2011 11:53:34 -0400 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: Message-ID: <4DCAB0FE.8020907@swoodbridge.com> look at the mapserver utilities: shptree myshapefile This creates a spatial index (*.qix) and you should create one for every shapefile you are using. On Linux this will do the trick: find /path/data -name \*.shp -exec shptree {} \; If the .qix file is missing on every draw mapserver must create one on the fly in memory and the it throws it away. -Steve W On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: > Hi Jukka, > Thanks for getting back to me so quickly. No I haven't tried this. How > is this done and what is the benefit? Aren't Shape files already indexed? > Regards, > Jon-Paul. > > On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka > > wrote: > > Hi, > > No answers but a question back. Have you created spatial index > (.qix) for your shapefiles with shptree? > > -Jukka Rahkonen- > > Jon-Paul Dobson wrote: > > > Hi, > > > > > Whenever I display a layer based on a Shape file I notice that > the Shape > file is accessed constantly. This makes rendering extremely slow when > compared to, for example, ESRI ArcIMS which appears to cache the > Shape file. > Is there an equivalent caching mechanism for Map Server? ArcIMS seems to > render an order of magnitude faster when the number of symbols runs > into the > 1000s > > > > > Similarly, whenever I display layer symbols using a truetype font > I notice > that the .ttf file is accessed for every symbol. This makes rendering > appallingly slow. Is there also any caching mechanism to prevent this? > > > > > Any insight anyone can give would be much appreciated. > > > Best regards, > Jon-Paul. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jpdobson40 at gmail.com Wed May 11 09:00:41 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Wed, 11 May 2011 17:00:41 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <4DCAB12D.8030408@gatewaygeomatics.com> References: <4DCAB12D.8030408@gatewaygeomatics.com> Message-ID: Thanks guys. I will give this ago. Any ideas about poor performance when using a true type font? Why does MapServer need to load the .ttf file each time to draw a symbol. Surely the ttf file should be cached? Rgards, Jon-Paul. On Wed, May 11, 2011 at 4:54 PM, Jeff McKenna wrote: > On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: > >> Hi Jukka, >> Thanks for getting back to me so quickly. No I haven't tried this. How >> is this done and what is the benefit? Aren't Shape files already indexed? >> Regards, >> Jon-Paul. >> > > Jukka is right, always make sure to run the shptree commandline utility on > all of your ESRI shapefiles before using them in MapServer ( > http://mapserver.org/utilities/shptree.html). You'll see huge speed > differences. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed May 11 09:10:26 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 11 May 2011 18:10:26 +0200 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <4DCAB12D.8030408@gatewaygeomatics.com> Message-ID: what mapserver version and renderer/driver are you using? AGG should'nt be accessing the font file unless a new character is encountered. For GD I don't know. -- thomas On Wed, May 11, 2011 at 18:00, Jon-Paul Dobson wrote: > Thanks guys. I will give this ago. Any ideas about poor performance when > using a true type font? Why does MapServer need to load the .ttf file each > time to draw a symbol. Surely the ttf file should be cached? > > Rgards, > Jon-Paul. > > On Wed, May 11, 2011 at 4:54 PM, Jeff McKenna > wrote: >> >> On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: >>> >>> Hi Jukka, >>> Thanks for getting back to me so quickly. No I haven't tried this. How >>> is this done and what is the benefit? Aren't Shape files already indexed? >>> Regards, >>> Jon-Paul. >> >> Jukka is right, always make sure to run the shptree commandline utility on >> all of your ESRI shapefiles before using them in MapServer >> (http://mapserver.org/utilities/shptree.html). ?You'll see huge speed >> differences. >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jmckenna at gatewaygeomatics.com Wed May 11 09:11:49 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 11 May 2011 13:11:49 -0300 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <4DCAB0FE.8020907@swoodbridge.com> References: <4DCAB0FE.8020907@swoodbridge.com> Message-ID: <4DCAB545.9040002@gatewaygeomatics.com> On 11-05-11 12:53 PM, Stephen Woodbridge wrote: > look at the mapserver utilities: > > shptree myshapefile > > This creates a spatial index (*.qix) and you should create one for every > shapefile you are using. > > On Linux this will do the trick: > > find /path/data -name \*.shp -exec shptree {} \; > > If the .qix file is missing on every draw mapserver must create one on > the fly in memory and the it throws it away. Great point Steve, I always refer to this old page for those Windows and Unix commands when I am in a bind and need them run for all subfolders: http://www.mapserver.org/utilities/batch_utilities.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jpdobson40 at gmail.com Wed May 11 09:21:49 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Wed, 11 May 2011 17:21:49 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <4DCAB12D.8030408@gatewaygeomatics.com> Message-ID: Hi Thomas, I'm actually using the latest version of the MapScript c# API. Is it possible to specify whether to use AGG or GD? The font file is definately being continually accessed. Any ideas? Regards, Jon-Paul. On Wed, May 11, 2011 at 5:10 PM, thomas bonfort wrote: > what mapserver version and renderer/driver are you using? > > AGG should'nt be accessing the font file unless a new character is > encountered. For GD I don't know. > > -- > thomas > > On Wed, May 11, 2011 at 18:00, Jon-Paul Dobson > wrote: > > Thanks guys. I will give this ago. Any ideas about poor performance when > > using a true type font? Why does MapServer need to load the .ttf file > each > > time to draw a symbol. Surely the ttf file should be cached? > > > > Rgards, > > Jon-Paul. > > > > On Wed, May 11, 2011 at 4:54 PM, Jeff McKenna > > wrote: > >> > >> On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: > >>> > >>> Hi Jukka, > >>> Thanks for getting back to me so quickly. No I haven't tried this. How > >>> is this done and what is the benefit? Aren't Shape files already > indexed? > >>> Regards, > >>> Jon-Paul. > >> > >> Jukka is right, always make sure to run the shptree commandline utility > on > >> all of your ESRI shapefiles before using them in MapServer > >> (http://mapserver.org/utilities/shptree.html). You'll see huge speed > >> differences. > >> > >> -jeff > >> > >> > >> -- > >> Jeff McKenna > >> MapServer Consulting and Training Services > >> http://www.gatewaygeomatics.com/ > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From npj at i-gis.dk Wed May 11 10:54:37 2011 From: npj at i-gis.dk (Niels-Peter Jensen) Date: Wed, 11 May 2011 19:54:37 +0200 Subject: SV: [Spam] Re: [mapserver-users] Rendering line crossing iteslf In-Reply-To: <4DCA97F9.7020209@swoodbridge.com> Message-ID: Yes, I can't see any solutions, other doing something special in the crossings, or maybe exploding the theme into all segments, and create a layer for each segment. But that seems to be a troublesome way to get around the problem. The image examples I supplied, was made with ArcGIS. Here it's just outline definition on a line theme. Is there no way to do the same in Mapserver ? Niels-Peter -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Stephen Woodbridge Sendt: 11. maj 2011 16:07 Til: mapserver-users at lists.osgeo.org Emne: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Oops, right. brain not in gear yet :) On 5/11/2011 10:04 AM, thomas bonfort wrote: > ---------- Forwarded message ---------- > From: thomas bonfort > Date: Wed, May 11, 2011 at 16:03 > Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf > To: Stephen Woodbridge > > > Steve, > That isn't the case. The first style of all the features are rendered > in a first phase, and the following ones are rendered in a second > phase, so the order is > > feature1->style1 > feature2->style1 > ... > featuren->style1 > feature1->style2 > ... > featuren->style2 > ... > ... > feature1->stylem > featuren->stylem > > without that, you'd get artifacts on road intersections. > > -- > thomas > > > > On Wed, May 11, 2011 at 15:47, Stephen Woodbridge > wrote: >> Niels-Peter, >> >> I believe that you will need to split the line at the intersection >> into multiple lines to get the display that you want. Because you >> line just crosses itself there is no intersection there. If you split >> the line into multiple segments that there will be an intersection >> and mapserver should render it is desired. >> >> -Steve W >> >> On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >>> >>> Hi Thomas >>> >>> The bridge was used as an anology. In fact, the line feature is a >>> bus route that crosses itself, and we just want to show where the >>> route passes through >>> an intersection. >>> >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sendt: 11. maj 2011 13:56 >>> Til: Niels-Peter Jensen >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: >>>> >>>> Hi Thomas >>>> >>>> Thanks for the quick answer. >>>> >>>> We cannot make the style work in the mapfile and have to place it >>>> in the symbol file. By the way, we are using Mapserver 5.4.2. >>>> >>>> But anyway, I don't think it solves our problem. >>>> We don't have any "bridge" in our line data, it is just a single >>>> line feature that crosses itself. >>> >>> then how can you distinguish the case of the bridge with the case of >>> the intersection ? applying the solution I proposed on all lines >>> will give incorrect cases everywhere you don't have a bridge, so it >>> would not be a possible solution. >>> >>> -- >>> thomas >>> >>>> >>>> Regards >>>> Niels-Peter >>>> >>>> >>>> -----Oprindelig meddelelse----- >>>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>>> Sendt: 11. maj 2011 12:14 >>>> Til: Niels-Peter Jensen >>>> Cc: mapserver-users at lists.osgeo.org >>>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>>> >>>> >>>> An undocumented and "not guaranteed to work in future versions" is >>>> to trick mapserver in not drawing the cached base style for bridge >>>> lines. As you are avoiding the line caching mechanism, you have to >>>> tweak the linecaps for the base style. >>>> >>>> CLASS >>>> EXPRESSION ([bridge]=1) >>>> STYLE >>>> END >>>> STYLE >>>> color black >>>> width 5 >>>> linecap butt >>>> END >>>> STYLE >>>> color yellow >>>> width 3 >>>> linecap round >>>> END >>>> STYLE >>>> color black >>>> width 1 >>>> END >>>> END >>>> >>>> I haven't tested this recently, so please keep in touch if this >>>> solves your problem or not. >>>> >>>> regards, >>>> thomas >>>> >>>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >>>> wrote: >>>>> >>>>> Hi users >>>>> >>>>> We have a problem in rendering a route based on a line feature. >>>>> >>>>> When we use the common way to do that, by using two styles, with a >>>>> thick black line that defines an outline, and a thinner defying >>>>> the road center, we will not get the desired result. >>>>> >>>>> But I want to show where routes cross ("bridge" intersection), and >>>>> not as a "normal" intersection, see the attached examples. >>>>> >>>>> As there is no outline definition on linefeatures I can't se how >>>>> that can be done in a simple way. >>>>> >>>>> >>>>> Niels-Peter >>>>> I-GIS >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve.lime at state.mn.us Wed May 11 13:39:17 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 11 May 2011 15:39:17 -0500 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <4DCAB12D.8030408@gatewaygeomatics.com> Message-ID: I believe GD had its own font caching built in or it used some Freetype constructs. I never wrote it... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, May 11, 2011 11:10 AM To: Jon-Paul Dobson Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Layer rendering performance problem what mapserver version and renderer/driver are you using? AGG should'nt be accessing the font file unless a new character is encountered. For GD I don't know. -- thomas On Wed, May 11, 2011 at 18:00, Jon-Paul Dobson wrote: > Thanks guys. I will give this ago. Any ideas about poor performance when > using a true type font? Why does MapServer need to load the .ttf file each > time to draw a symbol. Surely the ttf file should be cached? > > Rgards, > Jon-Paul. > > On Wed, May 11, 2011 at 4:54 PM, Jeff McKenna > wrote: >> >> On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: >>> >>> Hi Jukka, >>> Thanks for getting back to me so quickly. No I haven't tried this. How >>> is this done and what is the benefit? Aren't Shape files already indexed? >>> Regards, >>> Jon-Paul. >> >> Jukka is right, always make sure to run the shptree commandline utility on >> all of your ESRI shapefiles before using them in MapServer >> (http://mapserver.org/utilities/shptree.html). ?You'll see huge speed >> differences. >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve.lime at state.mn.us Wed May 11 14:16:31 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 11 May 2011 16:16:31 -0500 Subject: [Spam] Re: [mapserver-users] Rendering line crossing iteslf In-Reply-To: References: <4DCA97F9.7020209@swoodbridge.com> Message-ID: To be clear, in your data example are there two segments or four? - Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Niels-Peter Jensen Sent: Wednesday, May 11, 2011 12:55 PM To: mapserver-users at lists.osgeo.org Subject: SV: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Yes, I can't see any solutions, other doing something special in the crossings, or maybe exploding the theme into all segments, and create a layer for each segment. But that seems to be a troublesome way to get around the problem. The image examples I supplied, was made with ArcGIS. Here it's just outline definition on a line theme. Is there no way to do the same in Mapserver ? Niels-Peter -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Stephen Woodbridge Sendt: 11. maj 2011 16:07 Til: mapserver-users at lists.osgeo.org Emne: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Oops, right. brain not in gear yet :) On 5/11/2011 10:04 AM, thomas bonfort wrote: > ---------- Forwarded message ---------- > From: thomas bonfort > Date: Wed, May 11, 2011 at 16:03 > Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf > To: Stephen Woodbridge > > > Steve, > That isn't the case. The first style of all the features are rendered > in a first phase, and the following ones are rendered in a second > phase, so the order is > > feature1->style1 > feature2->style1 > ... > featuren->style1 > feature1->style2 > ... > featuren->style2 > ... > ... > feature1->stylem > featuren->stylem > > without that, you'd get artifacts on road intersections. > > -- > thomas > > > > On Wed, May 11, 2011 at 15:47, Stephen Woodbridge > wrote: >> Niels-Peter, >> >> I believe that you will need to split the line at the intersection >> into multiple lines to get the display that you want. Because you >> line just crosses itself there is no intersection there. If you split >> the line into multiple segments that there will be an intersection >> and mapserver should render it is desired. >> >> -Steve W >> >> On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >>> >>> Hi Thomas >>> >>> The bridge was used as an anology. In fact, the line feature is a >>> bus route that crosses itself, and we just want to show where the >>> route passes through >>> an intersection. >>> >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sendt: 11. maj 2011 13:56 >>> Til: Niels-Peter Jensen >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: >>>> >>>> Hi Thomas >>>> >>>> Thanks for the quick answer. >>>> >>>> We cannot make the style work in the mapfile and have to place it >>>> in the symbol file. By the way, we are using Mapserver 5.4.2. >>>> >>>> But anyway, I don't think it solves our problem. >>>> We don't have any "bridge" in our line data, it is just a single >>>> line feature that crosses itself. >>> >>> then how can you distinguish the case of the bridge with the case of >>> the intersection ? applying the solution I proposed on all lines >>> will give incorrect cases everywhere you don't have a bridge, so it >>> would not be a possible solution. >>> >>> -- >>> thomas >>> >>>> >>>> Regards >>>> Niels-Peter >>>> >>>> >>>> -----Oprindelig meddelelse----- >>>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>>> Sendt: 11. maj 2011 12:14 >>>> Til: Niels-Peter Jensen >>>> Cc: mapserver-users at lists.osgeo.org >>>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>>> >>>> >>>> An undocumented and "not guaranteed to work in future versions" is >>>> to trick mapserver in not drawing the cached base style for bridge >>>> lines. As you are avoiding the line caching mechanism, you have to >>>> tweak the linecaps for the base style. >>>> >>>> CLASS >>>> EXPRESSION ([bridge]=1) >>>> STYLE >>>> END >>>> STYLE >>>> color black >>>> width 5 >>>> linecap butt >>>> END >>>> STYLE >>>> color yellow >>>> width 3 >>>> linecap round >>>> END >>>> STYLE >>>> color black >>>> width 1 >>>> END >>>> END >>>> >>>> I haven't tested this recently, so please keep in touch if this >>>> solves your problem or not. >>>> >>>> regards, >>>> thomas >>>> >>>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >>>> wrote: >>>>> >>>>> Hi users >>>>> >>>>> We have a problem in rendering a route based on a line feature. >>>>> >>>>> When we use the common way to do that, by using two styles, with a >>>>> thick black line that defines an outline, and a thinner defying >>>>> the road center, we will not get the desired result. >>>>> >>>>> But I want to show where routes cross ("bridge" intersection), and >>>>> not as a "normal" intersection, see the attached examples. >>>>> >>>>> As there is no outline definition on linefeatures I can't se how >>>>> that can be done in a simple way. >>>>> >>>>> >>>>> Niels-Peter >>>>> I-GIS >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From npj at i-gis.dk Wed May 11 14:44:58 2011 From: npj at i-gis.dk (Niels-Peter Jensen) Date: Wed, 11 May 2011 23:44:58 +0200 Subject: [mapserver-users] Rendering line crossing iteslf In-Reply-To: Message-ID: <9C4CEDF13952484981655E8786913D6C@T61p> Hi Steve Its one feature. There is not necessarily a vertex in the crossing, so its probably two segments. I have attached the shapefile, if you want to have a look at it. Niels-Peter -----Oprindelig meddelelse----- Fra: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sendt: 11. maj 2011 23:17 Til: Niels-Peter Jensen; mapserver-users at lists.osgeo.org Emne: RE: [Spam] Re: [mapserver-users] Rendering line crossing iteslf To be clear, in your data example are there two segments or four? - Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Niels-Peter Jensen Sent: Wednesday, May 11, 2011 12:55 PM To: mapserver-users at lists.osgeo.org Subject: SV: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Yes, I can't see any solutions, other doing something special in the crossings, or maybe exploding the theme into all segments, and create a layer for each segment. But that seems to be a troublesome way to get around the problem. The image examples I supplied, was made with ArcGIS. Here it's just outline definition on a line theme. Is there no way to do the same in Mapserver ? Niels-Peter -----Oprindelig meddelelse----- Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne af Stephen Woodbridge Sendt: 11. maj 2011 16:07 Til: mapserver-users at lists.osgeo.org Emne: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Oops, right. brain not in gear yet :) On 5/11/2011 10:04 AM, thomas bonfort wrote: > ---------- Forwarded message ---------- > From: thomas bonfort > Date: Wed, May 11, 2011 at 16:03 > Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf > To: Stephen Woodbridge > > > Steve, > That isn't the case. The first style of all the features are rendered > in a first phase, and the following ones are rendered in a second > phase, so the order is > > feature1->style1 > feature2->style1 > ... > featuren->style1 > feature1->style2 > ... > featuren->style2 > ... > ... > feature1->stylem > featuren->stylem > > without that, you'd get artifacts on road intersections. > > -- > thomas > > > > On Wed, May 11, 2011 at 15:47, Stephen Woodbridge > wrote: >> Niels-Peter, >> >> I believe that you will need to split the line at the intersection >> into multiple lines to get the display that you want. Because you >> line just crosses itself there is no intersection there. If you split >> the line into multiple segments that there will be an intersection >> and mapserver should render it is desired. >> >> -Steve W >> >> On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >>> >>> Hi Thomas >>> >>> The bridge was used as an anology. In fact, the line feature is a >>> bus route that crosses itself, and we just want to show where the >>> route passes through >>> an intersection. >>> >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>> Sendt: 11. maj 2011 13:56 >>> Til: Niels-Peter Jensen >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen wrote: >>>> >>>> Hi Thomas >>>> >>>> Thanks for the quick answer. >>>> >>>> We cannot make the style work in the mapfile and have to place it >>>> in the symbol file. By the way, we are using Mapserver 5.4.2. >>>> >>>> But anyway, I don't think it solves our problem. >>>> We don't have any "bridge" in our line data, it is just a single >>>> line feature that crosses itself. >>> >>> then how can you distinguish the case of the bridge with the case of >>> the intersection ? applying the solution I proposed on all lines >>> will give incorrect cases everywhere you don't have a bridge, so it >>> would not be a possible solution. >>> >>> -- >>> thomas >>> >>>> >>>> Regards >>>> Niels-Peter >>>> >>>> >>>> -----Oprindelig meddelelse----- >>>> Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com] >>>> Sendt: 11. maj 2011 12:14 >>>> Til: Niels-Peter Jensen >>>> Cc: mapserver-users at lists.osgeo.org >>>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>>> >>>> >>>> An undocumented and "not guaranteed to work in future versions" is >>>> to trick mapserver in not drawing the cached base style for bridge >>>> lines. As you are avoiding the line caching mechanism, you have to >>>> tweak the linecaps for the base style. >>>> >>>> CLASS >>>> EXPRESSION ([bridge]=1) >>>> STYLE >>>> END >>>> STYLE >>>> color black >>>> width 5 >>>> linecap butt >>>> END >>>> STYLE >>>> color yellow >>>> width 3 >>>> linecap round >>>> END >>>> STYLE >>>> color black >>>> width 1 >>>> END >>>> END >>>> >>>> I haven't tested this recently, so please keep in touch if this >>>> solves your problem or not. >>>> >>>> regards, >>>> thomas >>>> >>>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen >>>> wrote: >>>>> >>>>> Hi users >>>>> >>>>> We have a problem in rendering a route based on a line feature. >>>>> >>>>> When we use the common way to do that, by using two styles, with a >>>>> thick black line that defines an outline, and a thinner defying >>>>> the road center, we will not get the desired result. >>>>> >>>>> But I want to show where routes cross ("bridge" intersection), and >>>>> not as a "normal" intersection, see the attached examples. >>>>> >>>>> As there is no outline definition on linefeatures I can't se how >>>>> that can be done in a simple way. >>>>> >>>>> >>>>> Niels-Peter >>>>> I-GIS >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: Renderproblem.rar Type: application/octet-stream Size: 15521 bytes Desc: not available URL: From mzanfardino at gmail.com Wed May 11 18:19:05 2011 From: mzanfardino at gmail.com (Mark K. Zanfardino) Date: Wed, 11 May 2011 18:19:05 -0700 Subject: [mapserver-users] Issue with mapserver rendering multiple layers Message-ID: <4DCB3589.7080509@gmail.com> I will try to make this brief. Some years ago I created a number of web-based applications which use mapserver to render various maps. At the time I was running mapserver 5.0.3 and my data is stored in a PostgreSQL database. The server is running on ubuntu 9.04 and mapserver was installed from the package manager (I did not build it custom). Fast-forward to a few days ago. I've installed mapserver 5.6.6 (from repos) onto an ubuntu 10.10 server. I copied the map files and data to the new server and when I attempt to render the map I find a number of peculiar behaviors. 1. When I request multiple layers to be rendered mapserver generates an image file that is completely white, however I can successfully render one layer at a time. 2. The rendered map appears to ignore all parameters in the URL relating the SRS, BBOX, HEIGHT, and WIDTH Some details: I am rendering the map through my browser as follows: http://10.10.10.86/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 Where 10.10.10.86 is my server (I will attach the map file for review). When I make this exact call to my server running mapserver 5.0.3 it renders it as I expect (see attached). When I make the same call to my server running 5.6.6 I end up with a blank image. If I restrict the LAYERS parameter to just 'county' or 'water' the layer renders. Also, the size of the resulting image is not 450x450 as defined. You will notice by the map file that I am referencing shapefiles now instead of my postgresql database. Please note that I get the same behavior with both shapefiles and the database. I will happily provide the shape files if necessary. I have been banging my head against the wall on this for three days and I can't seem to catch a break. I would appreciate any suggestions. I'm also more than willing to provide additional information. Cheers! Mark K. Zanfardino (zanberdo) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ccc.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-5.0.3-image.png Type: image/png Size: 3707 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-5.6.6-image.png Type: image/png Size: 3800 bytes Desc: not available URL: From lists at remoteinformation.com.au Wed May 11 17:59:36 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Thu, 12 May 2011 08:59:36 +0800 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <20110512024525.148D3E022C0@lists.osgeo.org> References: <20110512024525.148D3E022C0@lists.osgeo.org> Message-ID: <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> I'm not sure whether it is still the case, but it used also to be that if you wanted to use the index, you need to name the shapefile without the .shp extension. If you used the .shp extension it wouldn't use the .qix index. So maybe this is a question - Is that still the case? On a similar note, does anyone know ... is the index created with shptree the same as the one created by QGIS (also a .qix file)? cheers Ben On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.org wrote: > From: Stephen Woodbridge > Date: 11 May 2011 11:53:34 PM AWST > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Layer rendering performance problem > > > look at the mapserver utilities: > > shptree myshapefile > > This creates a spatial index (*.qix) and you should create one for every shapefile you are using. > > On Linux this will do the trick: > > find /path/data -name \*.shp -exec shptree {} \; > > If the .qix file is missing on every draw mapserver must create one on the fly in memory and the it throws it away. > > -Steve W > > On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: >> Hi Jukka, >> Thanks for getting back to me so quickly. No I haven't tried this. How >> is this done and what is the benefit? Aren't Shape files already indexed? >> Regards, >> Jon-Paul. >> >> On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka >> > wrote: >> >> Hi, >> >> No answers but a question back. Have you created spatial index >> (.qix) for your shapefiles with shptree? >> >> -Jukka Rahkonen- >> >> Jon-Paul Dobson wrote: >> >> > Hi, >> >> >> >> > Whenever I display a layer based on a Shape file I notice that >> the Shape >> file is accessed constantly. This makes rendering extremely slow when >> compared to, for example, ESRI ArcIMS which appears to cache the >> Shape file. >> Is there an equivalent caching mechanism for Map Server? ArcIMS seems to >> render an order of magnitude faster when the number of symbols runs >> into the >> 1000s >> >> >> >> > Similarly, whenever I display layer symbols using a truetype font >> I notice >> that the .ttf file is accessed for every symbol. This makes rendering >> appallingly slow. Is there also any caching mechanism to prevent this? >> >> >> >> > Any insight anyone can give would be much appreciated. >> >> >> Best regards, >> Jon-Paul. >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed May 11 23:52:30 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 12 May 2011 09:52:30 +0300 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: Hi, For clarification, it used to be rather a long time ago that the index file (.qix) was not utilised even it was present in the data folder if the LAYER DATA was given as DATA "C:\Data\WMS_DATA.shp" Index was used only if the LAYER DATA was like DATA "C:\Data\WMS_DATA" However, this in old knowledge and both WMS_DATA.shp and WMS_DATA are utilising the index nowadays. Gdal is using the same .qix index file system and therefore also QGIS. There is more info about gdal shapefile spatial index in http://www.gdal.org/ogr/drv_shapefile.html The page tells also that native ESRI spatial index files (.sbn/ .sbx) are not supported. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Ben Madin L?hetetty: 12. toukokuuta 2011 4:00 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Layer rendering performance problem I'm not sure whether it is still the case, but it used also to be that if you wanted to use the index, you need to name the shapefile without the .shp extension. If you used the .shp extension it wouldn't use the .qix index. So maybe this is a question - Is that still the case? On a similar note, does anyone know ... is the index created with shptree the same as the one created by QGIS (also a .qix file)? cheers Ben On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.org wrote: From: Stephen Woodbridge Date: 11 May 2011 11:53:34 PM AWST To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Layer rendering performance problem look at the mapserver utilities: shptree myshapefile This creates a spatial index (*.qix) and you should create one for every shapefile you are using. On Linux this will do the trick: find /path/data -name \*.shp -exec shptree {} \; If the .qix file is missing on every draw mapserver must create one on the fly in memory and the it throws it away. -Steve W On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: Hi Jukka, Thanks for getting back to me so quickly. No I haven't tried this. How is this done and what is the benefit? Aren't Shape files already indexed? Regards, Jon-Paul. On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka > wrote: Hi, No answers but a question back. Have you created spatial index (.qix) for your shapefiles with shptree? -Jukka Rahkonen- Jon-Paul Dobson wrote: > Hi, > Whenever I display a layer based on a Shape file I notice that the Shape file is accessed constantly. This makes rendering extremely slow when compared to, for example, ESRI ArcIMS which appears to cache the Shape file. Is there an equivalent caching mechanism for Map Server? ArcIMS seems to render an order of magnitude faster when the number of symbols runs into the 1000s > Similarly, whenever I display layer symbols using a truetype font I notice that the .ttf file is accessed for every symbol. This makes rendering appallingly slow. Is there also any caching mechanism to prevent this? > Any insight anyone can give would be much appreciated. Best regards, Jon-Paul. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu May 12 00:41:05 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 May 2011 09:41:05 +0200 Subject: [mapserver-users] opacity and outputformat In-Reply-To: References: Message-ID: Opacity is set as a single integer between 0 and 100 on the layer level. There are no limitations on setting it on multiple layers, but in that case the opacity adds up, so if you have two layers with opacity 50, the final opacity of the image ends up being 75. If your final images end up with no opacity, this could be because your are also including a layer with full opacity, or because you are using a format which does not support an alpha channel (i.e. jpeg) regards, thomas On Mon, May 9, 2011 at 19:18, Marc-Andr? Trottier wrote: > hi! > how can i get a output with opacity on 2 or more layers. > with only 1 layer it's working fine but not with 2 or more. > > How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA) > i tried something like OPACITY 22,22,22,22 but looks bad > > in all my tests, all i got was my 2 layers with full opacity (100) ... > > here is my mapfile : > > ?MAP > ? EXTENT -8146324.306063 5632144.09953312 -8137075.425642 5638229.88815488 > ? FONTSET "fonts" > ? IMAGECOLOR 255 255 255 > ? IMAGETYPE AGGA > ? SIZE 732 482 > ? STATUS ON > ? UNITS METERS > ? NAME "MS" > > ?OUTPUTFORMAT > ???? NAME 'AGGA' > ???? DRIVER AGG/PNG > ???? IMAGEMODE RGBA > ???? TRANSPARENT TRUE > END > > ? PROJECTION > ??? "init=epsg:900913" > ? END > ? LEGEND > ??? IMAGECOLOR 255 255 255 > ??? KEYSIZE 20 10 > ??? KEYSPACING 5 5 > ??? LABEL > ????? ANGLE 0.000000 > ????? ANTIALIAS TRUE > ????? FONT "arial" > ????? MAXSIZE 256 > ????? MINSIZE 4 > ????? SIZE 10 > ????? TYPE TRUETYPE > ????? BUFFER 0 > ????? COLOR 255 255 255 > ????? FORCE FALSE > ????? MINDISTANCE -1 > ????? MINFEATURESIZE -1 > ????? OFFSET 0 0 > ????? PARTIALS TRUE > ??? END > ??? OUTLINECOLOR 0 0 0 > ??? POSITION LR > ??? POSTLABELCACHE TRUE > ??? STATUS EMBED > ??? TRANSPARENT FALSE > ? END > > ? QUERYMAP > ??? COLOR 255 255 0 > ??? SIZE -1 -1 > ??? STATUS OFF > ??? STYLE HILITE > ? END > > ? SCALEBAR > ??? ALIGN CENTER > ??? COLOR 0 0 0 > ??? IMAGECOLOR 255 255 255 > ??? INTERVALS 4 > ??? LABEL > ????? SIZE MEDIUM > ????? TYPE BITMAP > ????? BUFFER 0 > ????? COLOR 0 0 0 > ????? FORCE FALSE > ????? MINDISTANCE -1 > ????? MINFEATURESIZE -1 > ????? OFFSET 0 0 > ????? PARTIALS TRUE > ????? POSITION CR > ??? END > ??? OUTLINECOLOR 0 0 0 > ??? POSITION LL > ??? SIZE 200 3 > ??? STATUS EMBED > ??? STYLE 0 > ??? UNITS METERS > ? END > > ? WEB > ??? IMAGEPATH "path" > ??? IMAGEURL "" > ??? QUERYFORMAT text/html > ??? LEGENDFORMAT text/html > ??? BROWSEFORMAT text/html > ? END > > ? LAYER > ??? CONNECTION "PATATE3" > ??? CONNECTIONTYPE WMS > ??? DEBUG 5 > ??? METADATA > ????? "wms_srs"??? "EPSG:900913" > ????? "wms_name"??? "PATATE3" > ????? "wms_format"??? "image/png" > ????? "wms_server_version"??? "1.1.1" > ??? END > ??? NAME "Carte" > ??? PROCESSING "CLOSE_CONNECTION=NORMAL" > ??? PROJECTION > ????? "init=epsg:900913" > ??? END > ??? STATUS ON > ??? TRANSFORM FALSE > ??? TYPE RASTER > ??? UNITS METERS > ? END > > ? LAYER > ??? CONNECTION "PATATE2" > ??? CONNECTIONTYPE WMS > ??? DEBUG 5 > ??? METADATA > ????? "wms_srs"??? "EPSG:900913" > ????? "opacity"??? "100" > ????? "wms_name"??? "PATATE2" > ????? "wms_format"??? "image/png" > ????? "wms_server_version"??? "1.1.1" > ??? END > ??? NAME "PATATE2" > ??? PROCESSING "CLOSE_CONNECTION=NORMAL" > ??? PROJECTION > ????? "init=epsg:900913" > ??? END > ??? STATUS ON > ??? TRANSFORM FALSE > ??? TYPE RASTER > ??? UNITS METERS > ? END > > ? LAYER > ??? CONNECTION "PATATE" > ??? CONNECTIONTYPE WMS > ??? DEBUG 5 > ??? METADATA > ????? "wms_srs"??? "EPSG:900913" > ????? "opacity"??? "40" > ????? "wms_name"??? "PATATE" > ????? "wms_format"??? "image/png" > ????? "wms_server_version"??? "1.1.1" > ??? END > ??? NAME "PATATE" > ??? PROJECTION > ????? "init=epsg:900913" > ??? END > ??? STATUS ON > ??? OPACITY 40 > ??? TYPE RASTER > ??? UNITS METERS > ? END > > END > > > _______________________________________________ > 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 May 12 00:48:24 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 May 2011 09:48:24 +0200 Subject: [mapserver-users] Reference Map must be a GIF???? In-Reply-To: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> References: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> Message-ID: looking through the code, both GD and the other renderers should support loading GIF and PNG images. (This also concerns pixmap symbols, legend icons, etc... i.e. anything which requires loading an image file outside of GDAL) Can you supply the and the reference image you are using ? regards, thomas On Fri, May 6, 2011 at 20:18, Worth Lutz wrote: > When did the restriction, ?the Reference Map base image must be a .gif?, > start being enforced? > > > > I now see it in my old printed copy (version 5.2) of the documentation. ?I > checked there to see if this was new to MapServer version 6 as I found it > first in the online documentation.? Obviously I had never read the > documentation closely in this area. > > > > All my reference maps are ?png? drawn with Mapserver (aggpng I think) and > work in version 5.6. > > > > When my try/catch throws an exception trying to draw this reference map, the > exception message is an empty string. > > > > Through testing and looking at the apache logs, I find that there are > MapServer Errors in the MapServer errorObj and PHP Notices and Warning. > These are: > > > > [Mapserver Error] msDrawREferenceMap() : error loading reference image > /data/mapfiles/ref_maps/? > > [MapServer Error] readImage(): unsupported pixmap format/n in ? > > > > Is this truly a change in the image type restriction for Reference Maps or > is it just an change in the checking for errors when the MapScriptException > was added? > > > > Was I just lucky my ?.png? reference maps worked in the past?? Am I the only > one to try this?? I don?t have many to convert but wanted to point this out > so it could be added to the Migration Guide if it must remain a restriction. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From j.l.h.hartmann at uva.nl Thu May 12 01:57:10 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 12 May 2011 10:57:10 +0200 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <4DCAB12D.8030408@gatewaygeomatics.com> Message-ID: <4DCBA0E6.5090507@uva.nl> About the GD library: the dowload site (http://www.boutell.com/gd/) is down, and there is no indication how long this will be so. There is a link to the code repository, but no standard tar-file is to be found there. Since MapServer cannot be compiled without GD, would it make sense to provide a tarball on mapserver.org? Jan On 05/11/11 22:39, Lime, Steve D (DNR) wrote: > I believe GD had its own font caching built in or it used some Freetype constructs. I never wrote it... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort > Sent: Wednesday, May 11, 2011 11:10 AM > To: Jon-Paul Dobson > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Layer rendering performance problem > > what mapserver version and renderer/driver are you using? > > AGG should'nt be accessing the font file unless a new character is > encountered. For GD I don't know. > > -- > thomas > > On Wed, May 11, 2011 at 18:00, Jon-Paul Dobson wrote: >> Thanks guys. I will give this ago. Any ideas about poor performance when >> using a true type font? Why does MapServer need to load the .ttf file each >> time to draw a symbol. Surely the ttf file should be cached? >> >> Rgards, >> Jon-Paul. >> >> On Wed, May 11, 2011 at 4:54 PM, Jeff McKenna >> wrote: >>> On 11-05-11 12:47 PM, Jon-Paul Dobson wrote: >>>> Hi Jukka, >>>> Thanks for getting back to me so quickly. No I haven't tried this. How >>>> is this done and what is the benefit? Aren't Shape files already indexed? >>>> Regards, >>>> Jon-Paul. >>> Jukka is right, always make sure to run the shptree commandline utility on >>> all of your ESRI shapefiles before using them in MapServer >>> (http://mapserver.org/utilities/shptree.html). You'll see huge speed >>> differences. >>> >>> -jeff >>> >>> >>> -- >>> Jeff McKenna >>> MapServer Consulting and Training Services >>> http://www.gatewaygeomatics.com/ >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > 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 jpdobson40 at gmail.com Thu May 12 01:57:19 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Thu, 12 May 2011 09:57:19 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: Hi, I just tried creating a qix file as suggested and found that the Shape file now renders 22 times faster! Fantastic advice guys. Many thanks. If only there was a way to prevent the TTF file being continuously accessed when displaying a symbol using a truetype font. Any further ideas at all? It kind of makes a TTF unusable. Best regards, Jon-Paul. On Thu, May 12, 2011 at 7:52 AM, Rahkonen Jukka wrote: > Hi, > > For clarification, it used to be rather a long time ago that the index file > (.qix) was not utilised even it was present in the data folder if the LAYER > DATA was given as > DATA "C:\Data\WMS_DATA.shp" > > Index was used only if the LAYER DATA was like > DATA "C:\Data\WMS_DATA" > > However, this in old knowledge and both WMS_DATA.shp and WMS_DATA are > utilising the index nowadays. > > Gdal is using the same .qix index file system and therefore also QGIS. > There is more info about gdal shapefile spatial index in > http://www.gdal.org/ogr/drv_shapefile.html > The page tells also that native ESRI spatial index files (.sbn/ .sbx) are > not supported. > > -Jukka Rahkonen- > > > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Ben Madin > *L?hetetty:* 12. toukokuuta 2011 4:00 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* Re: [mapserver-users] Layer rendering performance problem > > I'm not sure whether it is still the case, but it used also to be that > if you wanted to use the index, you need to name the shapefile without the > .shp extension. If you used the .shp extension it wouldn't use the .qix > index. > > So maybe this is a question - Is that still the case? > > On a similar note, does anyone know ... is the index created with shptree > the same as the one created by QGIS (also a .qix file)? > > cheers > > Ben > > > > On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.orgwrote: > > *From: *Stephen Woodbridge > *Date: *11 May 2011 11:53:34 PM AWST > *To: *mapserver-users at lists.osgeo.org > *Subject: **Re: [mapserver-users] Layer rendering performance problem* > > > look at the mapserver utilities: > > shptree myshapefile > > This creates a spatial index (*.qix) and you should create one for every > shapefile you are using. > > On Linux this will do the trick: > > find /path/data -name \*.shp -exec shptree {} \; > > If the .qix file is missing on every draw mapserver must create one on the > fly in memory and the it throws it away. > > -Steve W > > On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: > > Hi Jukka, > > Thanks for getting back to me so quickly. No I haven't tried this. How > > is this done and what is the benefit? Aren't Shape files already indexed? > > Regards, > > Jon-Paul. > > > On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka > > >> > wrote: > > > Hi, > > > No answers but a question back. Have you created spatial index > > (.qix) for your shapefiles with shptree? > > > -Jukka Rahkonen- > > > Jon-Paul Dobson wrote: > > > > Hi, > > > > > > Whenever I display a layer based on a Shape file I notice that > > the Shape > > file is accessed constantly. This makes rendering extremely slow when > > compared to, for example, ESRI ArcIMS which appears to cache the > > Shape file. > > Is there an equivalent caching mechanism for Map Server? ArcIMS seems to > > render an order of magnitude faster when the number of symbols runs > > into the > > 1000s > > > > > > Similarly, whenever I display layer symbols using a truetype font > > I notice > > that the .ttf file is accessed for every symbol. This makes rendering > > appallingly slow. Is there also any caching mechanism to prevent this? > > > > > > Any insight anyone can give would be much appreciated. > > > > Best regards, > > Jon-Paul. > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu May 12 02:43:43 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 May 2011 11:43:43 +0200 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: On Thu, May 12, 2011 at 10:57, Jon-Paul Dobson wrote: > Hi, > > I just tried creating a qix file as suggested and found that the Shape file > now renders 22 times faster! Fantastic advice guys. Many thanks. > > If only there was a way to prevent the TTF file being continuously accessed > when displaying a symbol using a truetype font. Any further ideas at all? It > kind of makes?a TTF unusable. I've just straced and ltraced the access to the font file, and mapserver/agg/freetype does *not* continually access the font file. By default, agg maintains a cache of the last 32 glyphs that were accessed, so access to the font file only occurs if the the current glyph is not in one of the last 32 to be requested. what tool are you using indicating that the font file is accessed multiple times? -- thomas > > Best regards, > Jon-Paul. > > On Thu, May 12, 2011 at 7:52 AM, Rahkonen Jukka > wrote: >> >> Hi, >> >> For clarification, it used to be rather a long time ago that the index >> file (.qix) was not utilised?even it was present in the data folder if the >> LAYER DATA?was given as >> DATA "C:\Data\WMS_DATA.shp" >> >> Index was used only if the LAYER DATA was like >> DATA "C:\Data\WMS_DATA" >> >> However, this in old knowledge and both WMS_DATA.shp and WMS_DATA are >> utilising the index nowadays. >> >> Gdal is using the same?.qix?index file system?and?therefore also QGIS. >> There is more info about gdal shapefile spatial index in >> http://www.gdal.org/ogr/drv_shapefile.html >> The page tells also that native ESRI spatial index files (.sbn/ .sbx)? are >> not supported. >> >> -Jukka Rahkonen- >> >> >> >> ________________________________ >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Ben Madin >> L?hetetty: 12. toukokuuta 2011 4:00 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] Layer rendering performance problem >> >> I'm not sure whether it is still the case, but it used also to be that if >> you wanted to use the index, you need to name the shapefile without the .shp >> extension. If you used the .shp extension it wouldn't use the .qix index. >> So maybe this is a question - Is that still the case? >> On a similar note, does anyone know ... is the index created with shptree >> the same as the one created by QGIS (also a .qix file)? >> cheers >> Ben >> >> >> On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.org wrote: >> >> From:?Stephen Woodbridge >> Date:?11 May 2011 11:53:34 PM AWST >> To:?mapserver-users at lists.osgeo.org >> Subject:?Re: [mapserver-users] Layer rendering performance problem >> >> >> look at the mapserver utilities: >> >> shptree myshapefile >> >> This creates a spatial index (*.qix) and you should create one for every >> shapefile you are using. >> >> On Linux this will do the trick: >> >> find /path/data -name \*.shp -exec shptree {} \; >> >> If the .qix file is missing on every draw mapserver must create one on the >> fly in memory and the it throws it away. >> >> -Steve W >> >> On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: >> >> Hi Jukka, >> >> Thanks for getting back to me so quickly. No I haven't tried this. How >> >> is this done and what is the benefit? Aren't Shape files already indexed? >> >> Regards, >> >> Jon-Paul. >> >> On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka >> >> > wrote: >> >> ???Hi, >> >> ???No answers but a question back. Have you created spatial index >> >> ???(.qix) for your shapefiles with shptree? >> >> ???-Jukka Rahkonen- >> >> ???Jon-Paul Dobson wrote: >> >> ????> Hi, >> >> >> >> ????> Whenever I display a layer based on a Shape file I notice that >> >> ???the Shape >> >> ???file is accessed constantly. This makes rendering extremely slow when >> >> ???compared to, for example, ESRI ArcIMS which appears to cache the >> >> ???Shape file. >> >> ???Is there an equivalent caching mechanism for Map Server? ArcIMS seems >> to >> >> ???render an order of magnitude faster when the number of symbols runs >> >> ???into the >> >> ???1000s >> >> >> >> ????> Similarly, whenever I display layer symbols using a truetype font >> >> ???I notice >> >> ???that the .ttf file is accessed for every symbol. This makes rendering >> >> ???appallingly slow. Is there also any caching mechanism to prevent this? >> >> >> >> ????> Any insight anyone can give would be much appreciated. >> >> >> ???Best regards, >> >> ???Jon-Paul. >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jpdobson40 at gmail.com Thu May 12 03:10:45 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Thu, 12 May 2011 11:10:45 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: Resent without the .log attachment as it seems this is being blocked to mapserver users. On Thu, May 12, 2011 at 11:03 AM, Jon-Paul Dobson wrote: > Hi Thomas, > > Thanks for looking into this. I'm using plain old File Monitor to see that > the .TTF file is being accessed hundreds of times. I've attached the output > I'm receiving with this mail. > > I'm actually using the c# mapscript API in order to make use of MapServer. > Could that have anything to do with this? Presumably this is just a wrapper > around core MapServer functionality in any case? > > I notice you mention AGG. How do you configure MapServer to use AGG rather > than GD? (Maybe a naive question but I'm new to this!) > > Regards, > Jon-Paul. > > On Thu, May 12, 2011 at 10:43 AM, thomas bonfort < > thomas.bonfort at gmail.com> wrote: > >> On Thu, May 12, 2011 at 10:57, Jon-Paul Dobson >> wrote: >> > Hi, >> > >> > I just tried creating a qix file as suggested and found that the Shape >> file >> > now renders 22 times faster! Fantastic advice guys. Many thanks. >> > >> > If only there was a way to prevent the TTF file being continuously >> accessed >> > when displaying a symbol using a truetype font. Any further ideas at >> all? It >> > kind of makes a TTF unusable. >> I've just straced and ltraced the access to the font file, and >> mapserver/agg/freetype does *not* continually access the font file. By >> default, agg maintains a cache of the last 32 glyphs that were >> accessed, so access to the font file only occurs if the the current >> glyph is not in one of the last 32 to be requested. >> what tool are you using indicating that the font file is accessed >> multiple times? >> >> -- >> thomas >> >> >> > >> > Best regards, >> > Jon-Paul. >> > >> > On Thu, May 12, 2011 at 7:52 AM, Rahkonen Jukka < >> Jukka.Rahkonen at mmmtike.fi> >> > wrote: >> >> >> >> Hi, >> >> >> >> For clarification, it used to be rather a long time ago that the index >> >> file (.qix) was not utilised even it was present in the data folder if >> the >> >> LAYER DATA was given as >> >> DATA "C:\Data\WMS_DATA.shp" >> >> >> >> Index was used only if the LAYER DATA was like >> >> DATA "C:\Data\WMS_DATA" >> >> >> >> However, this in old knowledge and both WMS_DATA.shp and WMS_DATA are >> >> utilising the index nowadays. >> >> >> >> Gdal is using the same .qix index file system and therefore also QGIS. >> >> There is more info about gdal shapefile spatial index in >> >> http://www.gdal.org/ogr/drv_shapefile.html >> >> The page tells also that native ESRI spatial index files (.sbn/ .sbx) >> are >> >> not supported. >> >> >> >> -Jukka Rahkonen- >> >> >> >> >> >> >> >> ________________________________ >> >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Ben Madin >> >> L?hetetty: 12. toukokuuta 2011 4:00 >> >> Vastaanottaja: mapserver-users at lists.osgeo.org >> >> Aihe: Re: [mapserver-users] Layer rendering performance problem >> >> >> >> I'm not sure whether it is still the case, but it used also to be that >> if >> >> you wanted to use the index, you need to name the shapefile without the >> .shp >> >> extension. If you used the .shp extension it wouldn't use the .qix >> index. >> >> So maybe this is a question - Is that still the case? >> >> On a similar note, does anyone know ... is the index created with >> shptree >> >> the same as the one created by QGIS (also a .qix file)? >> >> cheers >> >> Ben >> >> >> >> >> >> On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.orgwrote: >> >> >> >> From: Stephen Woodbridge >> >> Date: 11 May 2011 11:53:34 PM AWST >> >> To: mapserver-users at lists.osgeo.org >> >> Subject: Re: [mapserver-users] Layer rendering performance problem >> >> >> >> >> >> look at the mapserver utilities: >> >> >> >> shptree myshapefile >> >> >> >> This creates a spatial index (*.qix) and you should create one for >> every >> >> shapefile you are using. >> >> >> >> On Linux this will do the trick: >> >> >> >> find /path/data -name \*.shp -exec shptree {} \; >> >> >> >> If the .qix file is missing on every draw mapserver must create one on >> the >> >> fly in memory and the it throws it away. >> >> >> >> -Steve W >> >> >> >> On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: >> >> >> >> Hi Jukka, >> >> >> >> Thanks for getting back to me so quickly. No I haven't tried this. How >> >> >> >> is this done and what is the benefit? Aren't Shape files already >> indexed? >> >> >> >> Regards, >> >> >> >> Jon-Paul. >> >> >> >> On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka >> >> >> >> > wrote: >> >> >> >> Hi, >> >> >> >> No answers but a question back. Have you created spatial index >> >> >> >> (.qix) for your shapefiles with shptree? >> >> >> >> -Jukka Rahkonen- >> >> >> >> Jon-Paul Dobson wrote: >> >> >> >> > Hi, >> >> >> >> >> >> >> >> > Whenever I display a layer based on a Shape file I notice that >> >> >> >> the Shape >> >> >> >> file is accessed constantly. This makes rendering extremely slow >> when >> >> >> >> compared to, for example, ESRI ArcIMS which appears to cache the >> >> >> >> Shape file. >> >> >> >> Is there an equivalent caching mechanism for Map Server? ArcIMS >> seems >> >> to >> >> >> >> render an order of magnitude faster when the number of symbols runs >> >> >> >> into the >> >> >> >> 1000s >> >> >> >> >> >> >> >> > Similarly, whenever I display layer symbols using a truetype font >> >> >> >> I notice >> >> >> >> that the .ttf file is accessed for every symbol. This makes >> rendering >> >> >> >> appallingly slow. Is there also any caching mechanism to prevent >> this? >> >> >> >> >> >> >> >> > Any insight anyone can give would be much appreciated. >> >> >> >> >> >> Best regards, >> >> >> >> Jon-Paul. >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> >> mapserver-users mailing list >> >> >> >> mapserver-users at lists.osgeo.org >> >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 12 05:58:00 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 12 May 2011 09:58:00 -0300 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: <4DCBD958.10004@gatewaygeomatics.com> On 11-05-11 9:59 PM, Ben Madin wrote: > I'm not sure whether it is still the case, but it used also to be that > if you wanted to use the index, you need to name the shapefile without > the .shp extension. If you used the .shp extension it wouldn't use the > .qix index. > > So maybe this is a question - Is that still the case? Hi Ben, This is documented at: http://www.mapserver.org/utilities/shptree.html#mapfile-notes "Note: As of MapServer 5.2 the qix will be used even when the .shp extension is specified" PS. this is why I always push the documentation team/developers to record the version number the change applies to, directly in the document. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From to.tonton at gmail.com Thu May 12 06:20:32 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 12 May 2011 15:20:32 +0200 Subject: [mapserver-users] sld pointsymbolizer Message-ID: hello i use sld to symbolize a wms layer the sld file is validate by udig to describe the same postgis sources but in the wms we don't see any point (i use well known star) but label is drawing correctly i dont read any error in mapserver log ms-error.txt how to know where is trouble log level or apache cgi option? regards tonton -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu May 12 06:30:07 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 12 May 2011 09:30:07 -0400 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: <4DCBA0E6.5090507@uva.nl> References: <4DCAB12D.8030408@gatewaygeomatics.com> <4DCBA0E6.5090507@uva.nl> Message-ID: <4DCBE0DF.6080304@mapgears.com> On 11-05-12 04:57 AM, Jan Hartmann wrote: > About the GD library: the dowload site (http://www.boutell.com/gd/) is > down, and there is no indication how long this will be so. There is a > link to the code repository, but no standard tar-file is to be found > there. Since MapServer cannot be compiled without GD, would it make > sense to provide a tarball on mapserver.org? > The official GD home was moved to http://www.libgd.org/ a few years ago but as you wrote this site is down at the moment, so I posted copies of the latest GD source releases as a convenience to MapServer users at http://download.osgeo.org/mapserver/libgd/ All the details in the ticket at http://trac.osgeo.org/mapserver/ticket/3869#comment:3 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jpdobson40 at gmail.com Thu May 12 03:03:51 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Thu, 12 May 2011 11:03:51 +0100 Subject: [mapserver-users] Layer rendering performance problem In-Reply-To: References: <20110512024525.148D3E022C0@lists.osgeo.org> <689FD2E1-FB78-4B2A-9264-31AAF9A4FAAA@remoteinformation.com.au> Message-ID: Hi Thomas, Thanks for looking into this. I'm using plain old File Monitor to see that the .TTF file is being accessed hundreds of times. I've attached the output I'm receiving with this mail. I'm actually using the c# mapscript API in order to make use of MapServer. Could that have anything to do with this? Presumably this is just a wrapper around core MapServer functionality in any case? I notice you mention AGG. How do you configure MapServer to use AGG rather than GD? (Maybe a naive question but I'm new to this!) Regards, Jon-Paul. On Thu, May 12, 2011 at 10:43 AM, thomas bonfort wrote: > On Thu, May 12, 2011 at 10:57, Jon-Paul Dobson > wrote: > > Hi, > > > > I just tried creating a qix file as suggested and found that the Shape > file > > now renders 22 times faster! Fantastic advice guys. Many thanks. > > > > If only there was a way to prevent the TTF file being continuously > accessed > > when displaying a symbol using a truetype font. Any further ideas at all? > It > > kind of makes a TTF unusable. > I've just straced and ltraced the access to the font file, and > mapserver/agg/freetype does *not* continually access the font file. By > default, agg maintains a cache of the last 32 glyphs that were > accessed, so access to the font file only occurs if the the current > glyph is not in one of the last 32 to be requested. > what tool are you using indicating that the font file is accessed > multiple times? > > -- > thomas > > > > > > Best regards, > > Jon-Paul. > > > > On Thu, May 12, 2011 at 7:52 AM, Rahkonen Jukka < > Jukka.Rahkonen at mmmtike.fi> > > wrote: > >> > >> Hi, > >> > >> For clarification, it used to be rather a long time ago that the index > >> file (.qix) was not utilised even it was present in the data folder if > the > >> LAYER DATA was given as > >> DATA "C:\Data\WMS_DATA.shp" > >> > >> Index was used only if the LAYER DATA was like > >> DATA "C:\Data\WMS_DATA" > >> > >> However, this in old knowledge and both WMS_DATA.shp and WMS_DATA are > >> utilising the index nowadays. > >> > >> Gdal is using the same .qix index file system and therefore also QGIS. > >> There is more info about gdal shapefile spatial index in > >> http://www.gdal.org/ogr/drv_shapefile.html > >> The page tells also that native ESRI spatial index files (.sbn/ .sbx) > are > >> not supported. > >> > >> -Jukka Rahkonen- > >> > >> > >> > >> ________________________________ > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Ben Madin > >> L?hetetty: 12. toukokuuta 2011 4:00 > >> Vastaanottaja: mapserver-users at lists.osgeo.org > >> Aihe: Re: [mapserver-users] Layer rendering performance problem > >> > >> I'm not sure whether it is still the case, but it used also to be that > if > >> you wanted to use the index, you need to name the shapefile without the > .shp > >> extension. If you used the .shp extension it wouldn't use the .qix > index. > >> So maybe this is a question - Is that still the case? > >> On a similar note, does anyone know ... is the index created with > shptree > >> the same as the one created by QGIS (also a .qix file)? > >> cheers > >> Ben > >> > >> > >> On 12/05/2011, at 10:45 AM, mapserver-users-request at lists.osgeo.orgwrote: > >> > >> From: Stephen Woodbridge > >> Date: 11 May 2011 11:53:34 PM AWST > >> To: mapserver-users at lists.osgeo.org > >> Subject: Re: [mapserver-users] Layer rendering performance problem > >> > >> > >> look at the mapserver utilities: > >> > >> shptree myshapefile > >> > >> This creates a spatial index (*.qix) and you should create one for every > >> shapefile you are using. > >> > >> On Linux this will do the trick: > >> > >> find /path/data -name \*.shp -exec shptree {} \; > >> > >> If the .qix file is missing on every draw mapserver must create one on > the > >> fly in memory and the it throws it away. > >> > >> -Steve W > >> > >> On 5/11/2011 11:47 AM, Jon-Paul Dobson wrote: > >> > >> Hi Jukka, > >> > >> Thanks for getting back to me so quickly. No I haven't tried this. How > >> > >> is this done and what is the benefit? Aren't Shape files already > indexed? > >> > >> Regards, > >> > >> Jon-Paul. > >> > >> On Wed, May 11, 2011 at 4:41 PM, Rahkonen Jukka > >> > >> > wrote: > >> > >> Hi, > >> > >> No answers but a question back. Have you created spatial index > >> > >> (.qix) for your shapefiles with shptree? > >> > >> -Jukka Rahkonen- > >> > >> Jon-Paul Dobson wrote: > >> > >> > Hi, > >> > >> > >> > >> > Whenever I display a layer based on a Shape file I notice that > >> > >> the Shape > >> > >> file is accessed constantly. This makes rendering extremely slow when > >> > >> compared to, for example, ESRI ArcIMS which appears to cache the > >> > >> Shape file. > >> > >> Is there an equivalent caching mechanism for Map Server? ArcIMS seems > >> to > >> > >> render an order of magnitude faster when the number of symbols runs > >> > >> into the > >> > >> 1000s > >> > >> > >> > >> > Similarly, whenever I display layer symbols using a truetype font > >> > >> I notice > >> > >> that the .ttf file is accessed for every symbol. This makes rendering > >> > >> appallingly slow. Is there also any caching mechanism to prevent > this? > >> > >> > >> > >> > Any insight anyone can give would be much appreciated. > >> > >> > >> Best regards, > >> > >> Jon-Paul. > >> > >> > >> > >> > >> _______________________________________________ > >> > >> mapserver-users mailing list > >> > >> mapserver-users at lists.osgeo.org > >> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > _______________________________________________ > > 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: MapServerFileAccess.LOG Type: application/octet-stream Size: 83160 bytes Desc: not available URL: From bfraser at geoanalytic.com Thu May 12 08:08:20 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 12 May 2011 09:08:20 -0600 Subject: [mapserver-users] Rendering Challenges - GEOMTRANSFORM Message-ID: <4DCBF7E4.8080009@geoanalytic.com> Steve, Thanks to your patch I was able to render thick lines inside polygons (http://i56.tinypic.com/1z347yq.jpg). The solution of using a STYLE with GEOMTRANSFORM got me thinking of using the technique to solve some of the labeling challenges: 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], -3)) of the original polygon 5. Place line anno above (or below) when using ANGLE FOLLOW - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], 5)) of the original line Currently the LABEL object uses the original geometry. Do you think it would be possible to [optionally?] use the GEOMTRANSFORMed geometry? Similarly, would it be possible to have the LABEL's convex hull (or a buffer the character boxes?) used as a clipping polygons of the layer's geometry to address: 8. Erase layer's geometry (but not other layers) under label - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) Your thoughts? -- Best Regards, Brent Fraser From lists at remoteinformation.com.au Thu May 12 08:33:14 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Thu, 12 May 2011 23:33:14 +0800 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 40, Issue 29 In-Reply-To: <20110513013022.68DC0E023D0@lists.osgeo.org> References: <20110513013022.68DC0E023D0@lists.osgeo.org> Message-ID: Thanks Jeff, Truth be told, I haven't set up a map file with a shapefile for about three years (all our data is in PostGIS now), so I haven't looked at the docs on that for a while. Based on the feedback here, could I maybe suggest that the last part of the shptree page be reworded to something like <<< Mapfile Notes The qix will be used when it is available and may provide significant gains in rendering speed. ESRI index files (.sbn / .shx) are not used by MapServer. Note Prior to Mapserver 5.2, in order for MapServer to use the.qix extension you MUST NOT specify the extension, for example: LAYER ... DATA "us_states" #MapServer will search for us_states.qix and will use it ... END LAYER ... DATA "us_states.shp" #MapServer will search for us_states.shp.qix and won't find it ... END Shapefiles are native to MapServer, and therefore do not require the .shp extension in the DATA path of the LAYER. >>> cheers Ben On 13/05/2011, at 9:30 AM, mapserver-users-request at lists.osgeo.org wrote: > From: Jeff McKenna > Date: 12 May 2011 8:58:00 PM AWST > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Layer rendering performance problem > > > On 11-05-11 9:59 PM, Ben Madin wrote: >> I'm not sure whether it is still the case, but it used also to be that >> if you wanted to use the index, you need to name the shapefile without >> the .shp extension. If you used the .shp extension it wouldn't use the >> .qix index. >> >> So maybe this is a question - Is that still the case? > > Hi Ben, > > This is documented at: http://www.mapserver.org/utilities/shptree.html#mapfile-notes > > "Note: As of MapServer 5.2 the qix will be used even when the .shp extension is specified" > > PS. this is why I always push the documentation team/developers to record the version number the change applies to, directly in the document. > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Thu May 12 08:47:29 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 12 May 2011 17:47:29 +0200 Subject: [mapserver-users] Re: sld pointsymbolizer In-Reply-To: References: Message-ID: ok it is solved pb with it is better whitout On Thu, May 12, 2011 at 3:20 PM, Tonton wrote: > hello > > i use sld to symbolize a wms layer > > the sld file is validate by udig to describe the same postgis sources > > but in the wms we don't see any point (i use well known star) but label > is drawing correctly > > i dont read any error in mapserver log ms-error.txt > > how to know where is trouble log level or apache cgi option? > > regards > > tonton > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpdobson40 at gmail.com Thu May 12 08:51:12 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Thu, 12 May 2011 16:51:12 +0100 Subject: [mapserver-users] MapServer v GeoServer Message-ID: Hi, MapServer appears to do most of what I need it too. Is there any reason why one would choose GeoServer as an alternative? Are there any disadvantages to MapServer when compared to GeoServer? Regards, Jon-Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu May 12 10:52:08 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 12 May 2011 12:52:08 -0500 Subject: [mapserver-users] MapServer v GeoServer In-Reply-To: References: Message-ID: There have been lots of comparisons done, just Goggle mapserver vs geoserver. IMHO the big differences are: - Platform: C/C++ vs Java - GeoServer WFS-T Support (although see TinyOWS for WFS-T and MapServer) - GeoServer GUI-based configuration (vs mapfiles) There are other more nuanced differences that would be use case specific. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jon-Paul Dobson Sent: Thursday, May 12, 2011 10:51 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer v GeoServer Hi, MapServer appears to do most of what I need it too. Is there any reason why one would choose GeoServer as an alternative? Are there any disadvantages to MapServer when compared to GeoServer? Regards, Jon-Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.moisan at boreal-is.com Thu May 12 13:04:30 2011 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Thu, 12 May 2011 16:04:30 -0400 Subject: [mapserver-users] MapServer v GeoServer In-Reply-To: References: Message-ID: <4DCC3D4E.4030605@boreal-is.com> > There have been lots of comparisons done, just Goggle mapserver vs > geoserver. > > IMHO the big differences are: > > -Platform: C/C++ vs Java > > -GeoServer WFS-T Support (although see TinyOWS for WFS-T and MapServer) > > -GeoServer GUI-based configuration (vs mapfiles) > You may also be interested in the 2010 WMS shootout results : http://2010.foss4g.org/wms_benchmarking.php See the link at the bottom of that page to the PDF for results. That's one "neutral" comparison, albeit for one aspect of things : WMS performance. My 2 cents. Yves -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Thu May 12 14:10:16 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 12 May 2011 23:10:16 +0200 Subject: [mapserver-users] MapServer v GeoServer In-Reply-To: <4DCC3D4E.4030605@boreal-is.com> References: <4DCC3D4E.4030605@boreal-is.com> Message-ID: Hello, You can look for example this comparison by P. Ramsey http://s3.cleverelephant.ca/geoweb-mapserver.pdf Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu May 12 17:25:12 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 12 May 2011 20:25:12 -0400 Subject: [mapserver-users] MapServer 6.0.0 Release Message-ID: <4DCC7A68.8040609@mapgears.com> The MapServer Team is pleased to announce the long awaited release of MapServer 6.0.0. The 6.0 release introduces important changes in key components of the MapServer core, as well as a large number of new features and enhancements. The complete list of changes and enhancements is too long to include here, so here is a quick list of RFCs related to this release: (RFCs are available online at http://mapserver.org/development/rfc/) Core Changes in MapServer 6.0 Which Could Affect Existing Applications: ----------------------------------------------------------------------- * MS RFC 54: Rendering Interface API * MS RFC 64: MapServer Expression Parser Overhaul * MS RFC 65: Single-pass Query Changes for 6.0 New Features and Notable Enhancements in MapServer 6.0: ------------------------------------------------------- * MS RFC 50: OpenGL Rendering Support * MS RFC 58: Kml Output * MS RFC 60: Labeling enhancement: MAXOVERLAPANGLE * MS RFC 61: Enhance MapServer Feature Style Support * MS RFC 62: Support Additional WFS GetFeature Output Formats * MS RFC 63: Built-in OpenLayers map viewer * MS RFC 66: Better handling of temporary files * MS RFC 67: Enable/Disable Layers in OGC Web Services * MS RFC 68: Support for combining features from multiple layers * MS RFC 69: Support for clustering of features in point layers More details are also available in the 6.0 release plan at: http://mapserver.org/development/release/release-plan-6.0.html Migration Guide: ---------------- Users upgrading to 6.0 from an older 5.x release are strongly encouraged to start by reviewing the 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. The latest version is available online at: http://mapserver.org/MIGRATION_GUIDE.html Source Code Download: --------------------- The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0.tar.gz Binary Distributions: --------------------- Existing MS4W 3.0 users can upgrade to this MapServer 6.0.0 release by following instructions at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html Ubuntu Binaries for hardy, lucid, maverick and natty are also built and available in the unstable PPA of UbuntuGIS. See details and instructions at: http://trac.osgeo.org/ubuntugis/ The other binary distributions listed in the download page should also be updated with binaries for the new release shortly. Documentation: -------------- The MapServer documentation team is continuing to update and maintain documents, and are happy to announce that MapServer documentation is now available in English, German, French, and Spanish at http://www.mapserver.org/. Volunteers are always needed to help translate documents and update the documentation. The documentation team asks those volunteers interested in translating documents to please introduce yourself on the mapserver-dev email list. Finally, thank you to all of the users, developers, and supporters of MapServer. Enjoy! - The MapServer Team P.S. A copy of this announcement in pretty print is available online at http://mapserver.org/development/announce/6-0.html From Jukka.Rahkonen at mmmtike.fi Thu May 12 23:22:57 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 13 May 2011 09:22:57 +0300 Subject: [mapserver-users] MapServer v GeoServer References: Message-ID: Hi, I am listing just the advantages of Geoserver and not the other way. - Biggest advantage for new or simple minded users like me can be seen here: http://demo.opengeo.org/geoserver/web/ The whole server can be controlled with the admin utility. If one does not like it or wants to do automated tasks it is also possible to use a RESTful alternative or just edit the configuration files manually. - Layers are automatically configured for both WMS and WFS - Geoserver does WFS-T with a bunch of backends, of those PostGIS and Oracle have a pretty good support. Mapserver does not do WFS-T, and TinyOWS which is a nice pair with Mapserver is only for PostGIS. - WFS should be the same standard for all but somehow Geoserver WFS has been more standard than Mapserver WFS. - Geoserver has an integrated security system for user management. The next ones are more a matter of taste - If Java + Tomcat etc. architecture is in use then Geoserver integrates fine into it. - There are people who love XML configuration files and Geoserver is using them. - Styling is done with SLD files which also the OGC way. - There are more graphical styling utilities available for SLD than for styling with a mapfile. I read the blog from http://s3.cleverelephant.ca/geoweb-mapserver.pdf It is rather old and readers should investigate what is situation right now with Mapserver 6.0 and Geoserver 2.1 both published yesterday. However, the metaphoras are probably still valid. Mapserver is a cheetah and an oxe while Geoserver is a car (both are fast and strong but one is easier to ride than the other). -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jon-Paul Dobson L?hetetty: to 12.5.2011 18:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] MapServer v GeoServer Hi, MapServer appears to do most of what I need it too. Is there any reason why one would choose GeoServer as an alternative? Are there any disadvantages to MapServer when compared to GeoServer? Regards, Jon-Paul. From peter.hopfgartner at r3-gis.com Fri May 13 03:08:40 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 13 May 2011 12:08:40 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0 Release Message-ID: <20110513100840.904521678238@mail.r3-gis.com> --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0 Release Date: 13.05.2011 02:25 >The MapServer Team is pleased to announce the long awaited release of >MapServer 6.0.0. > Updated packages for RHEL and CentOS 5.6 can be downloaded from http://elgis.argeo.org/ testing repository. Scientific Linux need php53 packages in order to install php-mapserver6. Users, who have mapserver6 beta and rc packages installed are advised to remove those before installing MapServer 6.0.0 packages. >The 6.0 release introduces important changes in key components of the >MapServer core, as well as a large number of new features and >enhancements. The complete list of changes and enhancements is too long >to include here, so here is a quick list of RFCs related to this release: > >(RFCs are available online at http://mapserver.org/development/rfc/) > >Core Changes in MapServer 6.0 Which Could Affect Existing Applications: >----------------------------------------------------------------------- > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > >New Features and Notable Enhancements in MapServer 6.0: >------------------------------------------------------- > > * MS RFC 50: OpenGL Rendering Support > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: MAXOVERLAPANGLE > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > >More details are also available in the 6.0 release plan at: > http://mapserver.org/development/release/release-plan-6.0.html > >Migration Guide: >---------------- > >Users upgrading to 6.0 from an older 5.x release are strongly encouraged >to start by reviewing the 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. The latest version is available online >at: > > http://mapserver.org/MIGRATION_GUIDE.html > >Source Code Download: >--------------------- > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0.tar.gz > >Binary Distributions: >--------------------- > >Existing MS4W 3.0 users can upgrade to this MapServer 6.0.0 release by >following instructions at: >http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html > >Ubuntu Binaries for hardy, lucid, maverick and natty are also built and >available in the unstable PPA of UbuntuGIS. See details and instructions >at: >http://trac.osgeo.org/ubuntugis/ > >The other binary distributions listed in the download page should also >be updated with binaries for the new release shortly. > >Documentation: >-------------- > >The MapServer documentation team is continuing to update and maintain >documents, and are happy to announce that MapServer documentation is now >available in English, German, French, and Spanish at >http://www.mapserver.org/. Volunteers are always needed to help >translate documents and update the documentation. The documentation >team asks those volunteers interested in translating documents to please >introduce yourself on the mapserver-dev email list. > >Finally, thank you to all of the users, developers, and supporters of >MapServer. Enjoy! > >- The MapServer Team > > >P.S. A copy of this announcement in pretty print is available online at > http://mapserver.org/development/announce/6-0.html >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > Congratulations to everybody involved in making this release of MapServer happen! Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com From steve.lime at state.mn.us Fri May 13 05:30:31 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 13 May 2011 07:30:31 -0500 Subject: [mapserver-users] RE: Rendering Challenges - GEOMTRANSFORM In-Reply-To: <4DCBF7E4.8080009@geoanalytic.com> References: <4DCBF7E4.8080009@geoanalytic.com> Message-ID: Cool. I committed that patch in trunk in what will be 6.2 if folks are interested. I'll add a few other functions too (see ticket #3871). Regarding other uses, sure it's possible. We'd need to add the GEOMTRANSFORM processing to labels and execute it before computing a label point. I've also thought about defining a layer-level GEOMTRANSFORM that would alter the original geometry before any processing so all classes and styles would be affected and you could query it. ;-) Your last idea (8) is a bit different. Here's you're talking about a drawing effect so we're back into styles, but in this case a label's style. Issue here is that a label has two geometries - the point, and the bbox(es) so which are you referencing with [shape]? I'm thinking that in this context we'd always mean the bbox(es) so you could create a buffered convex hull easily and draw it under a label. Probably should create a couple of tickets... Steve -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, May 12, 2011 10:08 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Rendering Challenges - GEOMTRANSFORM Steve, Thanks to your patch I was able to render thick lines inside polygons (http://i56.tinypic.com/1z347yq.jpg). The solution of using a STYLE with GEOMTRANSFORM got me thinking of using the technique to solve some of the labeling challenges: 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], -3)) of the original polygon 5. Place line anno above (or below) when using ANGLE FOLLOW - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], 5)) of the original line Currently the LABEL object uses the original geometry. Do you think it would be possible to [optionally?] use the GEOMTRANSFORMed geometry? Similarly, would it be possible to have the LABEL's convex hull (or a buffer the character boxes?) used as a clipping polygons of the layer's geometry to address: 8. Erase layer's geometry (but not other layers) under label - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) Your thoughts? -- Best Regards, Brent Fraser From jpdobson40 at gmail.com Fri May 13 06:08:38 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Fri, 13 May 2011 14:08:38 +0100 Subject: [mapserver-users] MapServer v GeoServer In-Reply-To: <4DCC3D4E.4030605@boreal-is.com> References: <4DCC3D4E.4030605@boreal-is.com> Message-ID: Some great input guys. Many thanks for taking time to respond to this. From the external links provided it does sound like MapServer is the better option for most requirements. Regards, Jon-Paul. On Thu, May 12, 2011 at 9:04 PM, Yves Moisan wrote: > > There have been lots of comparisons done, just Goggle mapserver vs > geoserver. > > > > IMHO the big differences are: > > - Platform: C/C++ vs Java > > - GeoServer WFS-T Support (although see TinyOWS for WFS-T and > MapServer) > > - GeoServer GUI-based configuration (vs mapfiles) > > You may also be interested in the 2010 WMS shootout results : > http://2010.foss4g.org/wms_benchmarking.php See the link at the bottom of > that page to the PDF for results. That's one "neutral" comparison, albeit > for one aspect of things : WMS performance. > > My 2 cents. > > Yves > -------------- next part -------------- An HTML attachment was scrubbed... URL: From remon.sadikni at zmaw.de Fri May 13 06:02:33 2011 From: remon.sadikni at zmaw.de (Remon Sadikni) Date: Fri, 13 May 2011 15:02:33 +0200 Subject: [mapserver-users] itemnquery on more than one layers? Message-ID: <4DCD2BE9.6090405@zmaw.de> Dear mapserver users, after some trial and errors I just managed to find a way querying more than one attribute via CGI: http://localhost/cgi-bin/mapserv?map=/mapfile.map&mode=itemnquery&qstring=(([DATE_YEAR>2005) AND ('[type]'='transport'))&qlayer=Fixed_Point_Stations The documentation says that if you do not specify qlayer than all layers are searched. But that does not work for me, I always get the Web application error: "Query layer not set or references an invalid layer.", if I do not specify the qlayer. How can I do it? (Mapserver 5.6.6-3 on MacOSX) Thank you very much, Remon From Bob.Basques at ci.stpaul.mn.us Fri May 13 07:19:53 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 13 May 2011 09:19:53 -0500 Subject: [mapserver-users] RE: Rendering Challenges - GEOMTRANSFORM In-Reply-To: References: <4DCBF7E4.8080009@geoanalytic.com> Message-ID: <4DCCF7B9020000A80002A020@heckle> All, Ok, now you got me thinking (again) on the ideas (some old threads) related to labeling a view. Things like overlay grids, and such. But if I understand what has just been built, couldn't some sort of sudo geometries that represent a view (BBOX for example) be used to label a view and constructs within it? View (BBOX) edge label/stylings and such, maybe starting with simpler alignment/justifications for edge labeling of a map view? Using these feature labeling options via CGI introduce all sorts of ideas about how to use these capabilities for end user "view" labeling/styling, that may be separate from the mapping data. bobb >>> "Lime, Steve D (DNR)" wrote: Cool. I committed that patch in trunk in what will be 6.2 if folks are interested. I'll add a few other functions too (see ticket #3871). Regarding other uses, sure it's possible. We'd need to add the GEOMTRANSFORM processing to labels and execute it before computing a label point. I've also thought about defining a layer-level GEOMTRANSFORM that would alter the original geometry before any processing so all classes and styles would be affected and you could query it. ;-) Your last idea (8) is a bit different. Here's you're talking about a drawing effect so we're back into styles, but in this case a label's style. Issue here is that a label has two geometries - the point, and the bbox(es) so which are you referencing with [shape]? I'm thinking that in this context we'd always mean the bbox(es) so you could create a buffered convex hull easily and draw it under a label. Probably should create a couple of tickets... Steve -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, May 12, 2011 10:08 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Rendering Challenges - GEOMTRANSFORM Steve, Thanks to your patch I was able to render thick lines inside polygons (http://i56.tinypic.com/1z347yq.jpg). The solution of using a STYLE with GEOMTRANSFORM got me thinking of using the technique to solve some of the labeling challenges: 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], -3)) of the original polygon 5. Place line anno above (or below) when using ANGLE FOLLOW - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], 5)) of the original line Currently the LABEL object uses the original geometry. Do you think it would be possible to [optionally?] use the GEOMTRANSFORMed geometry? Similarly, would it be possible to have the LABEL's convex hull (or a buffer the character boxes?) used as a clipping polygons of the layer's geometry to address: 8. Erase layer's geometry (but not other layers) under label - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) Your thoughts? -- Best Regards, Brent Fraser _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri May 13 08:00:21 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 13 May 2011 11:00:21 -0400 Subject: [mapserver-users] RE: Rendering Challenges - GEOMTRANSFORM In-Reply-To: <4DCCF7B9020000A80002A020@heckle> References: <4DCBF7E4.8080009@geoanalytic.com> <4DCCF7B9020000A80002A020@heckle> Message-ID: <4DCD4785.4060001@swoodbridge.com> Bob, Don't we already have that with: LAYER NAME "copyright" STATUS DEFAULT TYPE POINT TRANSFORM OFF FEATURE POINTS 0 -1 END END CLASS COLOR "#000000" TEXT "? 2010 iMaptools.com" LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION LR OFFSET 0 0 BUFFER 1 COLOR "#555555" BACKGROUNDCOLOR "#FFFFFF" FORCE TRUE END END END You can put a label anywhere on the view as it is fully addressable in pixels. -Steve W On 5/13/2011 10:19 AM, Bob Basques wrote: > All, > > > Ok, now you got me thinking (again) on the ideas (some old threads) > related to labeling a view. Things like overlay grids, and such. But if > I understand what has just been built, couldn't some sort of sudo > geometries that represent a view (BBOX for example) be used to label a > view and constructs within it? View (BBOX) edge label/stylings and such, > maybe starting with simpler alignment/justifications for edge labeling > of a map view? Using these feature labeling options via CGI introduce > all sorts of ideas about how to use these capabilities for end user > "view" labeling/styling, that may be separate from the mapping data. > > > bobb > > > > >>> "Lime, Steve D (DNR)" wrote: > > Cool. I committed that patch in trunk in what will be 6.2 if folks are > interested. I'll add a few other functions too (see ticket #3871). > > Regarding other uses, sure it's possible. We'd need to add the > GEOMTRANSFORM processing to labels and execute it before computing a > label point. > > I've also thought about defining a layer-level GEOMTRANSFORM that would > alter the original geometry before any processing so all classes and > styles would be affected and you could query it. ;-) > > Your last idea (8) is a bit different. Here's you're talking about a > drawing effect so we're back into styles, but in this case a label's > style. Issue here is that a label has two geometries - the point, and > the bbox(es) so which are you referencing with [shape]? I'm thinking > that in this context we'd always mean the bbox(es) so you could create a > buffered convex hull easily and draw it under a label. > > Probably should create a couple of tickets... > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Thursday, May 12, 2011 10:08 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Rendering Challenges - GEOMTRANSFORM > > Steve, > > Thanks to your patch I was able to render thick lines inside polygons > (http://i56.tinypic.com/1z347yq.jpg). > > The solution of using a STYLE with GEOMTRANSFORM got me thinking of > using the technique to solve some of the labeling challenges: > > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], -3)) of the original polygon > > 5. Place line anno above (or below) when using ANGLE FOLLOW > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], 5)) of the original line > > Currently the LABEL object uses the original geometry. Do you think it > would be possible to [optionally?] use the GEOMTRANSFORMed geometry? > > > Similarly, would it be possible to have the LABEL's convex hull (or a > buffer the character boxes?) used as a clipping polygons of the layer's > geometry to address: > > 8. Erase layer's geometry (but not other layers) under label > - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) > > Your thoughts? > > -- > Best Regards, > Brent Fraser > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve.lime at state.mn.us Fri May 13 09:04:43 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 13 May 2011 11:04:43 -0500 Subject: [mapserver-users] RE: Rendering Challenges - GEOMTRANSFORM In-Reply-To: <4DCD4785.4060001@swoodbridge.com> References: <4DCBF7E4.8080009@geoanalytic.com> <4DCCF7B9020000A80002A020@heckle> <4DCD4785.4060001@swoodbridge.com> Message-ID: And you can do percentages instead of pixels so if your image size changes you can always put something in a corner or wherever... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Friday, May 13, 2011 10:00 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Rendering Challenges - GEOMTRANSFORM Bob, Don't we already have that with: LAYER NAME "copyright" STATUS DEFAULT TYPE POINT TRANSFORM OFF FEATURE POINTS 0 -1 END END CLASS COLOR "#000000" TEXT "(c) 2010 iMaptools.com" LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION LR OFFSET 0 0 BUFFER 1 COLOR "#555555" BACKGROUNDCOLOR "#FFFFFF" FORCE TRUE END END END You can put a label anywhere on the view as it is fully addressable in pixels. -Steve W On 5/13/2011 10:19 AM, Bob Basques wrote: > All, > > > Ok, now you got me thinking (again) on the ideas (some old threads) > related to labeling a view. Things like overlay grids, and such. But if > I understand what has just been built, couldn't some sort of sudo > geometries that represent a view (BBOX for example) be used to label a > view and constructs within it? View (BBOX) edge label/stylings and such, > maybe starting with simpler alignment/justifications for edge labeling > of a map view? Using these feature labeling options via CGI introduce > all sorts of ideas about how to use these capabilities for end user > "view" labeling/styling, that may be separate from the mapping data. > > > bobb > > > > >>> "Lime, Steve D (DNR)" wrote: > > Cool. I committed that patch in trunk in what will be 6.2 if folks are > interested. I'll add a few other functions too (see ticket #3871). > > Regarding other uses, sure it's possible. We'd need to add the > GEOMTRANSFORM processing to labels and execute it before computing a > label point. > > I've also thought about defining a layer-level GEOMTRANSFORM that would > alter the original geometry before any processing so all classes and > styles would be affected and you could query it. ;-) > > Your last idea (8) is a bit different. Here's you're talking about a > drawing effect so we're back into styles, but in this case a label's > style. Issue here is that a label has two geometries - the point, and > the bbox(es) so which are you referencing with [shape]? I'm thinking > that in this context we'd always mean the bbox(es) so you could create a > buffered convex hull easily and draw it under a label. > > Probably should create a couple of tickets... > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Thursday, May 12, 2011 10:08 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Rendering Challenges - GEOMTRANSFORM > > Steve, > > Thanks to your patch I was able to render thick lines inside polygons > (http://i56.tinypic.com/1z347yq.jpg). > > The solution of using a STYLE with GEOMTRANSFORM got me thinking of > using the technique to solve some of the labeling challenges: > > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], -3)) of the original polygon > > 5. Place line anno above (or below) when using ANGLE FOLLOW > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], 5)) of the original line > > Currently the LABEL object uses the original geometry. Do you think it > would be possible to [optionally?] use the GEOMTRANSFORMed geometry? > > > Similarly, would it be possible to have the LABEL's convex hull (or a > buffer the character boxes?) used as a clipping polygons of the layer's > geometry to address: > > 8. Erase layer's geometry (but not other layers) under label > - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) > > Your thoughts? > > -- > Best Regards, > Brent Fraser > > > > > _______________________________________________ > 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 mzanfardino at gmail.com Fri May 13 10:16:27 2011 From: mzanfardino at gmail.com (Mark K. Zanfardino) Date: Fri, 13 May 2011 10:16:27 -0700 Subject: [mapserver-users] Problem rendering multiple layers Message-ID: <4DCD676B.2040708@gmail.com> I have created a simple map with two layers with shapefiles as the datasource. I have two servers I am using for testing in order to attempt to identify the source of a problem I am having when I attempt to render the two layers. Server A is running Ubuntu 9.04. It has been patched to the latest releases. I did *not* add the UbuntuGIS repo. I installed the package cgi-mapserver and mapserver-bin (along with the appropriate dependencies). MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I then render my map from my browser (Firefox 3.6.17 and Chrome 11.0.696.65) with the following URL: http://10.10.10.86/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 The resulting image is rendered at 450x450 and displays both the county and water layers as expected. Server B is running Ubuntu 10.04. It has been patched to the latest releases. I *did* add the UbuntuGIS repo. I installed the same packages. MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I then render my map from the browser as before with the following URL: http://10.10.10.105/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 The resulting image is rendered at 740x400 and is a single white image (no layers rendered). If I only include one layer at a time the specified layer *does* render (again at 740x400 *not* 450x450 as specified in the URL). If I change the parameters &LAYERS to &LAYER (singular) and use two (one for county and one for water) the two layers render, again at the wrong resolution. I'm completely stumped. I've been using mapserver for a number of years now, but I hadn't upgraded to 5.6.6 as I'd been using it on my ubuntu 9.04 server. I'd love to take advantage of the changes available in 5.6.6 but right now I can't seem to get any of my maps to work. Help! I have enabled debugging for both servers. The output for Server A when requesting to render both county and water is: [Fri May 13 10:13:21 2011].721463 msSearchDiskTree(): Search returned no results. Unable to open spatial index for /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. [Fri May 13 10:13:21 2011].723899 msDrawMap(): Layer 0 (county), 0.003s [Fri May 13 10:13:21 2011].724028 msSearchDiskTree(): Search returned no results. Unable to open spatial index for /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. [Fri May 13 10:13:21 2011].726447 msDrawMap(): Layer 1 (water), 0.003s The output for Server B is: [Fri May 13 10:12:23 2011].707688 msSearchDiskTree(): Search returned no results. Unable to open spatial index for /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. [Fri May 13 10:12:23 2011].710121 msDrawMap(): Layer 0 (county), 0.003s [Fri May 13 10:12:23 2011].710285 msSearchDiskTree(): Search returned no results. Unable to open spatial index for /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. [Fri May 13 10:12:23 2011].712486 msDrawMap(): Layer 1 (water), 0.002s My map file is as follows: # # Start of map file # MAP NAME ccc STATUS on EXTENT -122.40 37.70 -121.50 38.05 SIZE 740 400 UNITS dd SHAPEPATH "." IMAGECOLOR 255 255 255 FONTSET "./fonts.list" TEMPLATEPATTERN "example" CONFIG "MS_ERRORFILE" "/var/log/mapserver.log" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" FORMATOPTION "QUALITY=75" IMAGEMODE RGB EXTENSION "jpg" END # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB IMAGEPATH '/data/tmp/' IMAGEURL '/tmp/' METADATA WMS_TITLE "Contra Costa County Mapserver" WMS_ABSTRACT "This is a UMN MapServer application for Contra Costa County." # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?" WMS_SRS "EPSG:4326" END END # # Start of LAYER DEFINITIONS --------------------------------------------- # LAYER NAME county DEBUG 3 DATA ccc_gis.county.shp STATUS OFF TYPE POLYGON METADATA WMS_TITLE "Contra Costa County" WMS_ABSTRACT "County polygon for Contra Costa County." WMS_SRS "EPSG:4326" END CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 242 239 233 END END END # County polygon layer ends here # # Start of LAYER DEFINITIONS --------------------------------------------- # LAYER NAME water DEBUG 3 DATA ccc_gis.water.shp STATUS OFF TYPE POLYGON METADATA WMS_TITLE "Contra Costa County" WMS_ABSTRACT "County polygon for Contra Costa County." WMS_SRS "EPSG:4326" END CLASS STYLE COLOR 155 177 205 END END END # Water polygon layer ends here END From thomas.bonfort at gmail.com Fri May 13 10:22:56 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 May 2011 19:22:56 +0200 Subject: [mapserver-users] Problem rendering multiple layers In-Reply-To: <4DCD676B.2040708@gmail.com> References: <4DCD676B.2040708@gmail.com> Message-ID: mixing the mode=map with a WMS request might be treated differently in 5.0 than 5.6. To be on the safe side, either do a mapserver style mode=map request without the SERVICE and REQUEST params, or do some pure wms requests without the mode=map (the second option seems to be what you are trying to achieve) i.e.: try http://10.10.10.105/cgi-bin/mapserv?map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT= -- thomas On Fri, May 13, 2011 at 19:16, Mark K. Zanfardino wrote: > I have created a simple map with two layers with shapefiles as the > datasource. I have two servers I am using for testing in order to attempt to > identify the source of a problem I am having when I attempt to render the > two layers. > > Server A is running Ubuntu 9.04. It has been patched to the latest releases. > I did *not* add the UbuntuGIS repo. I installed the package cgi-mapserver > and mapserver-bin (along with the appropriate dependencies). MapServer > version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I then render my map from my browser (Firefox 3.6.17 and Chrome 11.0.696.65) > with the following URL: > > http://10.10.10.86/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 > > > The resulting image is rendered at 450x450 and displays both the county and > water layers as expected. > > Server B is running Ubuntu 10.04. It has been patched to the latest > releases. I *did* add the UbuntuGIS repo. I installed the same packages. > MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > I then render my map from the browser as before with the following URL: > > http://10.10.10.105/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 > > > The resulting image is rendered at 740x400 and is a single white image (no > layers rendered). > > If I only include one layer at a time the specified layer *does* render > (again at 740x400 *not* 450x450 as specified in the URL). If I change the > parameters &LAYERS to &LAYER (singular) and use two (one for county and one > for water) the two layers render, again at the wrong resolution. > > I'm completely stumped. I've been using mapserver for a number of years now, > but I hadn't upgraded to 5.6.6 as I'd been using it on my ubuntu 9.04 > server. ?I'd love to take advantage of the changes available in 5.6.6 but > right now I can't seem to get any of my maps to work. Help! > > I have enabled debugging for both servers. The output for Server A when > requesting to render both county and water is: > > [Fri May 13 10:13:21 2011].721463 msSearchDiskTree(): Search returned no > results. Unable to open spatial index for > /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely > ignore this message, otherwise check file names and permissions. > [Fri May 13 10:13:21 2011].723899 msDrawMap(): Layer 0 (county), 0.003s > [Fri May 13 10:13:21 2011].724028 msSearchDiskTree(): Search returned no > results. Unable to open spatial index for > /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely > ignore this message, otherwise check file names and permissions. > [Fri May 13 10:13:21 2011].726447 msDrawMap(): Layer 1 (water), 0.003s > > The output for Server B is: > [Fri May 13 10:12:23 2011].707688 msSearchDiskTree(): Search returned no > results. Unable to open spatial index for > /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely > ignore this message, otherwise check file names and permissions. > [Fri May 13 10:12:23 2011].710121 msDrawMap(): Layer 0 (county), 0.003s > [Fri May 13 10:12:23 2011].710285 msSearchDiskTree(): Search returned no > results. Unable to open spatial index for > /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely > ignore this message, otherwise check file names and permissions. > [Fri May 13 10:12:23 2011].712486 msDrawMap(): Layer 1 (water), 0.002s > > > My map file is as follows: > # > # Start of map file > # > MAP > ?NAME ccc > ?STATUS on > ?EXTENT -122.40 37.70 -121.50 38.05 > ?SIZE 740 400 > ?UNITS dd > ?SHAPEPATH "." > ?IMAGECOLOR 255 255 255 > ?FONTSET "./fonts.list" > ?TEMPLATEPATTERN "example" > ?CONFIG "MS_ERRORFILE" "/var/log/mapserver.log" > > ?OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER "GD/PNG" > ? ?MIMETYPE "image/png" > ? ?IMAGEMODE PC256 > ? ?EXTENSION "png" > ?END > ?OUTPUTFORMAT > ? ?NAME png24 > ? ?DRIVER "GD/PNG" > ? ?MIMETYPE "image/png" > ? ?IMAGEMODE RGB > ? ?EXTENSION "png" > ?END > ?OUTPUTFORMAT > ? ?NAME jpeg > ? ?DRIVER "GD/JPEG" > ? ?MIMETYPE "image/jpeg" > ? ?FORMATOPTION "QUALITY=75" > ? ?IMAGEMODE RGB > ? ?EXTENSION "jpg" > ?END > > ?# > ?# Projection definition, consult the PROJ.4 documentation for parameter > discussion > ?# > ?PROJECTION > ? ? "init=epsg:4326" > ?END > > ?# > ?# Start of web interface definition (including WMS enabling metadata) > ?# > ?WEB > ? ?IMAGEPATH '/data/tmp/' > ? ?IMAGEURL '/tmp/' > ? ?METADATA > ? ? ?WMS_TITLE "Contra Costa County Mapserver" > ? ? ?WMS_ABSTRACT "This is a UMN MapServer application for Contra Costa > County." > ? ? ?# change this value to match your setup > ? ? ?WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?" > ? ? ?WMS_SRS "EPSG:4326" > ? ?END > ?END > > ?# > ?# Start of LAYER DEFINITIONS --------------------------------------------- > ?# > ?LAYER > ? ?NAME ? ? ? ? ? ? county > ? ?DEBUG ? ? ? ?3 > ? ?DATA ? ? ? ?ccc_gis.county.shp > ? ?STATUS ? ? ? ? ?OFF > ? ?TYPE ? ? ? ? ? ? POLYGON > > ? ?METADATA > ? ? ?WMS_TITLE "Contra Costa County" > ? ? ?WMS_ABSTRACT "County polygon for Contra Costa County." > ? ? ?WMS_SRS "EPSG:4326" > ? ?END > > ? ?CLASS > ? ? ?STYLE > ? ? ? ?OUTLINECOLOR ? ? 0 0 0 > ? ? ? ?COLOR ? ? ? ? 242 239 233 > ? ? ?END > ? ?END > ?END # County polygon layer ends here > > ?# > ?# Start of LAYER DEFINITIONS --------------------------------------------- > ?# > ?LAYER > ? ?NAME ? ? ? ? ? ? ? ?water > ? ?DEBUG ? ? ? ?3 > ? ?DATA ? ? ? ?ccc_gis.water.shp > ? ?STATUS ? ? ? ? ? ? ?OFF > ? ?TYPE ? ? ? ? ? ? ? ?POLYGON > > ? ?METADATA > ? ? ?WMS_TITLE "Contra Costa County" > ? ? ?WMS_ABSTRACT "County polygon for Contra Costa County." > ? ? ?WMS_SRS "EPSG:4326" > ? ?END > > ? ?CLASS > ? ? ?STYLE > ? ? ? ?COLOR ? ? ? ? ? ? 155 177 205 > ? ? ?END > ? ?END > ?END # Water polygon layer ends here > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mzanfardino at gmail.com Fri May 13 11:11:27 2011 From: mzanfardino at gmail.com (Mark K. Zanfardino) Date: Fri, 13 May 2011 11:11:27 -0700 Subject: [mapserver-users] Problem rendering multiple layers In-Reply-To: References: <4DCD676B.2040708@gmail.com> Message-ID: <4DCD744F.6090004@gmail.com> Thomas, Thank you! I've been struggling with this for several days! This has definitely solved my problem. I will try to understand what was happening and why I was using 'mode=map' in my URL. Mark Zanfardino On 05/13/2011 10:22 AM, thomas bonfort wrote: > mixing the mode=map with a WMS request might be treated differently in > 5.0 than 5.6. To be on the safe side, either do a mapserver style > mode=map request without the SERVICE and REQUEST params, or do some > pure wms requests without the mode=map (the second option seems to be > what you are trying to achieve) > > i.e.: try > http://10.10.10.105/cgi-bin/mapserv?map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT= > > -- > thomas > > On Fri, May 13, 2011 at 19:16, Mark K. Zanfardino wrote: >> I have created a simple map with two layers with shapefiles as the >> datasource. I have two servers I am using for testing in order to attempt to >> identify the source of a problem I am having when I attempt to render the >> two layers. >> >> Server A is running Ubuntu 9.04. It has been patched to the latest releases. >> I did *not* add the UbuntuGIS repo. I installed the package cgi-mapserver >> and mapserver-bin (along with the appropriate dependencies). MapServer >> version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG >> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >> SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> I then render my map from my browser (Firefox 3.6.17 and Chrome 11.0.696.65) >> with the following URL: >> >> http://10.10.10.86/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 >> >> >> The resulting image is rendered at 450x450 and displays both the county and >> water layers as expected. >> >> Server B is running Ubuntu 10.04. It has been patched to the latest >> releases. I *did* add the UbuntuGIS repo. I installed the same packages. >> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS >> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> INPUT=SHAPEFILE >> >> I then render my map from the browser as before with the following URL: >> >> http://10.10.10.105/cgi-bin/mapserv?mode=map&map=mapdata/ccc.map&LAYERS=county,water&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=-122.41859552788569,37.48140447211431,-121.56140447211433,38.33859552788568&WIDTH=450&HEIGHT=450 >> >> >> The resulting image is rendered at 740x400 and is a single white image (no >> layers rendered). >> >> If I only include one layer at a time the specified layer *does* render >> (again at 740x400 *not* 450x450 as specified in the URL). If I change the >> parameters&LAYERS to&LAYER (singular) and use two (one for county and one >> for water) the two layers render, again at the wrong resolution. >> >> I'm completely stumped. I've been using mapserver for a number of years now, >> but I hadn't upgraded to 5.6.6 as I'd been using it on my ubuntu 9.04 >> server. I'd love to take advantage of the changes available in 5.6.6 but >> right now I can't seem to get any of my maps to work. Help! >> >> I have enabled debugging for both servers. The output for Server A when >> requesting to render both county and water is: >> >> [Fri May 13 10:13:21 2011].721463 msSearchDiskTree(): Search returned no >> results. Unable to open spatial index for >> /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely >> ignore this message, otherwise check file names and permissions. >> [Fri May 13 10:13:21 2011].723899 msDrawMap(): Layer 0 (county), 0.003s >> [Fri May 13 10:13:21 2011].724028 msSearchDiskTree(): Search returned no >> results. Unable to open spatial index for >> /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely >> ignore this message, otherwise check file names and permissions. >> [Fri May 13 10:13:21 2011].726447 msDrawMap(): Layer 1 (water), 0.003s >> >> The output for Server B is: >> [Fri May 13 10:12:23 2011].707688 msSearchDiskTree(): Search returned no >> results. Unable to open spatial index for >> /usr/lib/cgi-bin/mapdata/./ccc_gis.county.qix. In most cases you can safely >> ignore this message, otherwise check file names and permissions. >> [Fri May 13 10:12:23 2011].710121 msDrawMap(): Layer 0 (county), 0.003s >> [Fri May 13 10:12:23 2011].710285 msSearchDiskTree(): Search returned no >> results. Unable to open spatial index for >> /usr/lib/cgi-bin/mapdata/./ccc_gis.water.qix. In most cases you can safely >> ignore this message, otherwise check file names and permissions. >> [Fri May 13 10:12:23 2011].712486 msDrawMap(): Layer 1 (water), 0.002s >> >> >> My map file is as follows: >> # >> # Start of map file >> # >> MAP >> NAME ccc >> STATUS on >> EXTENT -122.40 37.70 -121.50 38.05 >> SIZE 740 400 >> UNITS dd >> SHAPEPATH "." >> IMAGECOLOR 255 255 255 >> FONTSET "./fonts.list" >> TEMPLATEPATTERN "example" >> CONFIG "MS_ERRORFILE" "/var/log/mapserver.log" >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE PC256 >> EXTENSION "png" >> END >> OUTPUTFORMAT >> NAME png24 >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> END >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "GD/JPEG" >> MIMETYPE "image/jpeg" >> FORMATOPTION "QUALITY=75" >> IMAGEMODE RGB >> EXTENSION "jpg" >> END >> >> # >> # Projection definition, consult the PROJ.4 documentation for parameter >> discussion >> # >> PROJECTION >> "init=epsg:4326" >> END >> >> # >> # Start of web interface definition (including WMS enabling metadata) >> # >> WEB >> IMAGEPATH '/data/tmp/' >> IMAGEURL '/tmp/' >> METADATA >> WMS_TITLE "Contra Costa County Mapserver" >> WMS_ABSTRACT "This is a UMN MapServer application for Contra Costa >> County." >> # change this value to match your setup >> WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?" >> WMS_SRS "EPSG:4326" >> END >> END >> >> # >> # Start of LAYER DEFINITIONS --------------------------------------------- >> # >> LAYER >> NAME county >> DEBUG 3 >> DATA ccc_gis.county.shp >> STATUS OFF >> TYPE POLYGON >> >> METADATA >> WMS_TITLE "Contra Costa County" >> WMS_ABSTRACT "County polygon for Contra Costa County." >> WMS_SRS "EPSG:4326" >> END >> >> CLASS >> STYLE >> OUTLINECOLOR 0 0 0 >> COLOR 242 239 233 >> END >> END >> END # County polygon layer ends here >> >> # >> # Start of LAYER DEFINITIONS --------------------------------------------- >> # >> LAYER >> NAME water >> DEBUG 3 >> DATA ccc_gis.water.shp >> STATUS OFF >> TYPE POLYGON >> >> METADATA >> WMS_TITLE "Contra Costa County" >> WMS_ABSTRACT "County polygon for Contra Costa County." >> WMS_SRS "EPSG:4326" >> END >> >> CLASS >> STYLE >> COLOR 155 177 205 >> END >> END >> END # Water polygon layer ends here >> >> END >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From steve.lime at state.mn.us Fri May 13 11:33:28 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 13 May 2011 13:33:28 -0500 Subject: [mapserver-users] itemnquery on more than one layers? In-Reply-To: <4DCD2BE9.6090405@zmaw.de> References: <4DCD2BE9.6090405@zmaw.de> Message-ID: Documentation is correct except for item and index queries. Those are both one-layer only at this time. Sorry, wish I had better news. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Remon Sadikni Sent: Friday, May 13, 2011 8:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] itemnquery on more than one layers? Dear mapserver users, after some trial and errors I just managed to find a way querying more than one attribute via CGI: http://localhost/cgi-bin/mapserv?map=/mapfile.map&mode=itemnquery&qstring=(([DATE_YEAR>2005) AND ('[type]'='transport'))&qlayer=Fixed_Point_Stations The documentation says that if you do not specify qlayer than all layers are searched. But that does not work for me, I always get the Web application error: "Query layer not set or references an invalid layer.", if I do not specify the qlayer. How can I do it? (Mapserver 5.6.6-3 on MacOSX) Thank you very much, Remon _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Fri May 13 12:01:56 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 13 May 2011 15:01:56 -0400 Subject: [mapserver-users] MapServer 6.0.0 Release In-Reply-To: <20110513100840.904521678238@mail.r3-gis.com> References: <20110513100840.904521678238@mail.r3-gis.com> Message-ID: <4DCD8024.80306@mapgears.com> On 11-05-13 06:08 AM, Peter Hopfgartner wrote: > > Updated packages for RHEL and CentOS 5.6 can be downloaded from > http://elgis.argeo.org/ testing repository. Scientific Linux need php53 packages in order to install php-mapserver6. > Users, who have mapserver6 beta and rc packages installed are advised to remove those before installing MapServer 6.0.0 packages. > Thank you Peter. FYI this note has been added to the online version of the release announcement at http://mapserver.org/development/announce/6-0.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jhevenor at rogers.com Sat May 14 09:15:18 2011 From: jhevenor at rogers.com (Josh Hevenor) Date: Sat, 14 May 2011 12:15:18 -0400 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DCD8024.80306@mapgears.com> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> Message-ID: <4DCEAA96.7030909@rogers.com> This may or may not be relevant but reading RFC 68 got me wondering. I have an application that has shape file data for lakes. There are different shapefiles for data with higher accuracy that are used with scale ranges so that only one is drawn at a time. Specifically something like lakes_1_1m, lakes_1_250k, lakes_1_50k. I'm really looking for a way to show one LAKES layer in the application legend instead of 3 layers, two of which are always out of scale. Can or should I use a UNION layer to connect these layers? What other approach should I consider? Thanks for the advice, Josh From szekerest at gmail.com Sat May 14 12:21:00 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 14 May 2011 21:21:00 +0200 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DCEAA96.7030909@rogers.com> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> Message-ID: Josh, The union layer always retrieve all features from the source layers regardless of their visibility. This is because the source layers are hidden in most cases (STATUS OFF) to avoid the duplication of the features drawn. However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed be taken into account when accessing the source layers, by using a minor change. BTW: How the legend is drawn in your case? As far as I know mapserver draws only the layers in the scale range by default. Best regards, Tamas 2011/5/14 Josh Hevenor > This may or may not be relevant but reading RFC 68 got me wondering. > > I have an application that has shape file data for lakes. There are > different shapefiles for data with higher accuracy that are used with > scale ranges so that only one is drawn at a time. Specifically > something like lakes_1_1m, lakes_1_250k, lakes_1_50k. > > I'm really looking for a way to show one LAKES layer in the application > legend instead of 3 layers, two of which are always out of scale. Can or > should I use a UNION layer to connect these layers? What other approach > should I consider? > > Thanks for the advice, > > Josh > > _______________________________________________ > 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 jhevenor at rogers.com Sat May 14 19:01:55 2011 From: jhevenor at rogers.com (Josh Hevenor) Date: Sat, 14 May 2011 22:01:55 -0400 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> Message-ID: <4DCF3413.7060008@rogers.com> Thanks Tamas, The legend is custom build by mapscript and it's a feature of the app that it shows the out of scale layers. I could customize it to group layers that are essentially the same thing if there was a need for it, but I figured I'd see if this new feature would do that for me for free when I upgrade to ms6. If the UNION layer respected the source layers {min|max}scaledenom settings that would work for me. Are there any other ways to have a single layer provide more detail when zoomed in? Just curious. Josh On 5/14/2011 3:21 PM, Tamas Szekeres wrote: > Josh, > > The union layer always retrieve all features from the source layers > regardless of their visibility. This is because the source layers are > hidden in most cases (STATUS OFF) to avoid the duplication of the > features drawn. > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could > indeed be taken into account when accessing the source layers, by > using a minor change. > > BTW: How the legend is drawn in your case? As far as I know mapserver > draws only the layers in the scale range by default. > > Best regards, > > Tamas > > > > 2011/5/14 Josh Hevenor > > > This may or may not be relevant but reading RFC 68 got me wondering. > > I have an application that has shape file data for lakes. There are > different shapefiles for data with higher accuracy that are used with > scale ranges so that only one is drawn at a time. Specifically > something like lakes_1_1m, lakes_1_250k, lakes_1_50k. > > I'm really looking for a way to show one LAKES layer in the > application > legend instead of 3 layers, two of which are always out of scale. > Can or > should I use a UNION layer to connect these layers? What other > approach > should I consider? > > Thanks for the advice, > > Josh > > _______________________________________________ > 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 - www.avg.com > Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11 06:34:00 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sun May 15 01:31:13 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 15 May 2011 10:31:13 +0200 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DCF3413.7060008@rogers.com> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DCF3413.7060008@rogers.com> Message-ID: Hi Josh, The UNION layer doen't remove the source layers it refers to, so those would be displayed in the legend as well. Would this provide the expected result even so? Best regards, Tamas 2011/5/15 Josh Hevenor > Thanks Tamas, > > The legend is custom build by mapscript and it's a feature of the app that > it shows the out of scale layers. I could customize it to group layers that > are essentially the same thing if there was a need for it, but I figured I'd > see if this new feature would do that for me for free when I upgrade to ms6. > > > If the UNION layer respected the source layers {min|max}scaledenom settings > that would work for me. Are there any other ways to have a single layer > provide more detail when zoomed in? Just curious. > > Josh > > > On 5/14/2011 3:21 PM, Tamas Szekeres wrote: > > Josh, > > The union layer always retrieve all features from the source layers > regardless of their visibility. This is because the source layers are hidden > in most cases (STATUS OFF) to avoid the duplication of the features drawn. > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed > be taken into account when accessing the source layers, by using a minor > change. > > BTW: How the legend is drawn in your case? As far as I know mapserver draws > only the layers in the scale range by default. > > Best regards, > > Tamas > > > > 2011/5/14 Josh Hevenor > >> This may or may not be relevant but reading RFC 68 got me wondering. >> >> I have an application that has shape file data for lakes. There are >> different shapefiles for data with higher accuracy that are used with >> scale ranges so that only one is drawn at a time. Specifically >> something like lakes_1_1m, lakes_1_250k, lakes_1_50k. >> >> I'm really looking for a way to show one LAKES layer in the application >> legend instead of 3 layers, two of which are always out of scale. Can or >> should I use a UNION layer to connect these layers? What other approach >> should I consider? >> >> Thanks for the advice, >> >> Josh >> >> _______________________________________________ >> 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 - www.avg.com > Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11 06:34:00 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun May 15 03:10:06 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 15 May 2011 13:10:06 +0300 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DCF3413.7060008@rogers.com> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DCF3413.7060008@rogers.com> Message-ID: Hi, Have you tried GROUP? LAYER GROUP "group_layer" NAME "level_1" STATUS ON TILEINDEX "d:/data/...." MAXSCALEDENOM 14000 ...... LAYER GROUP "group_layer" NAME "level_2" STATUS ON TILEINDEX "d:/data/....." MINSCALEDENOM 14000 MAXSCALEDENOM 100000 WMS clients will show all the layers in a tree with level_1 and level_2 as members of group_layer. However, all your users need to do is to add group_layer into their WMS client. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Josh Hevenor L?hetetty: 15. toukokuuta 2011 5:02 Vastaanottaja: Tamas Szekeres Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Question on rfc 86 Thanks Tamas, The legend is custom build by mapscript and it's a feature of the app that it shows the out of scale layers. I could customize it to group layers that are essentially the same thing if there was a need for it, but I figured I'd see if this new feature would do that for me for free when I upgrade to ms6. If the UNION layer respected the source layers {min|max}scaledenom settings that would work for me. Are there any other ways to have a single layer provide more detail when zoomed in? Just curious. Josh On 5/14/2011 3:21 PM, Tamas Szekeres wrote: Josh, The union layer always retrieve all features from the source layers regardless of their visibility. This is because the source layers are hidden in most cases (STATUS OFF) to avoid the duplication of the features drawn. However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed be taken into account when accessing the source layers, by using a minor change. BTW: How the legend is drawn in your case? As far as I know mapserver draws only the layers in the scale range by default. Best regards, Tamas 2011/5/14 Josh Hevenor This may or may not be relevant but reading RFC 68 got me wondering. I have an application that has shape file data for lakes. There are different shapefiles for data with higher accuracy that are used with scale ranges so that only one is drawn at a time. Specifically something like lakes_1_1m, lakes_1_250k, lakes_1_50k. I'm really looking for a way to show one LAKES layer in the application legend instead of 3 layers, two of which are always out of scale. Can or should I use a UNION layer to connect these layers? What other approach should I consider? Thanks for the advice, Josh _______________________________________________ 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 - www.avg.com Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11 06:34:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Sun May 15 12:49:44 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 15 May 2011 13:49:44 -0600 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DCF3413.7060008@rogers.com> Message-ID: As Jukka suggests, use GROUP, but only provide a NAME for the one class that you want to have displayed in your legend. HTH, Rich On Sun, May 15, 2011 at 4:10 AM, Rahkonen Jukka wrote: > Hi, > > Have you?tried GROUP? > > LAYER > ????? GROUP "group_layer" > ????? NAME "level_1" > ????? STATUS ON > ????? TILEINDEX "d:/data/...." > ????? MAXSCALEDENOM 14000 > ...... > ? LAYER > ??????? GROUP "group_layer" > ??????? NAME "level_2" > ??????? STATUS ON > ??????? TILEINDEX "d:/data/....." > ??????? MINSCALEDENOM 14000 > ??????? MAXSCALEDENOM 100000 > > WMS clients will show all the layers in a tree with level_1 and level_2 as > members of group_layer.? However, all your users need to do is to add > group_layer into their WMS client. > > -Jukka Rahkonen- > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Josh Hevenor > L?hetetty: 15. toukokuuta 2011 5:02 > Vastaanottaja: Tamas Szekeres > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Question on rfc 86 > > Thanks Tamas, > > The legend is custom build by mapscript and it's a feature of the app that > it shows the out of scale layers. I could customize it to group layers that > are essentially the same thing if there was a need for it, but I figured I'd > see if this new feature would do that for me for free when I upgrade to ms6. > > If the UNION layer respected the source layers {min|max}scaledenom settings > that would work for me. Are there any other ways to have a single layer > provide more detail when zoomed in? Just curious. > > Josh > > On 5/14/2011 3:21 PM, Tamas Szekeres wrote: > > Josh, > > The union layer always retrieve all features from the source layers > regardless of their visibility. This is because the source layers are hidden > in most cases (STATUS OFF) to avoid the duplication of the features drawn. > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed > be taken into account when accessing the source layers, by using a minor > change. > > BTW: How the legend is drawn in your case? As far as I know mapserver draws > only the layers in the scale range by default. > > Best regards, > > Tamas > > > > 2011/5/14 Josh Hevenor >> >> This may or may not be relevant but reading RFC 68 got me wondering. >> >> I have an application that has shape file data for lakes. There are >> different shapefiles for data with higher accuracy that are used with >> scale ranges so that only one is drawn at a time. ?Specifically >> something like lakes_1_1m, lakes_1_250k, lakes_1_50k. >> >> I'm really looking for a way to show one LAKES layer in the application >> legend instead of 3 layers, two of which are always out of scale. Can or >> should I use a UNION layer to connect these layers? What other approach >> should I consider? >> >> Thanks for the advice, >> >> Josh >> >> _______________________________________________ >> 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 - www.avg.com > Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11 > 06:34:00 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From judemwenda at gmail.com Sun May 15 19:17:08 2011 From: judemwenda at gmail.com (jude mwenda) Date: Mon, 16 May 2011 05:17:08 +0300 Subject: [mapserver-users] Please help In-Reply-To: References: Message-ID: Hi, I am new to mapserver. I have been able to generate images, and on viewing images folder i can see images that have been generated by mapserver. The only problem comes in that on loading them via template the image is a broken path. Any pointers on resolving this, Mapfile http://dpaste.de/4bmw/ On accessing the images via http://localhost/judemaps/output/parcels_map130551107432207.gif they do load. Any clue on what i am doing wrong. the template has Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

-- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Mon May 16 03:56:02 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 16 May 2011 06:56:02 -0400 Subject: [mapserver-users] Please help In-Reply-To: References: Message-ID: Try changing: WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/output/" END To: WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/judemaps/output/" END _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jude mwenda Sent: Sunday, May 15, 2011 10:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Please help Hi, I am new to mapserver. I have been able to generate images, and on viewing images folder i can see images that have been generated by mapserver. The only problem comes in that on loading them via template the image is a broken path. Any pointers on resolving this, Mapfile http://dpaste.de/4bmw/ On accessing the images via http://localhost/judemaps/output/parcels_map130551107432207.gif they do load. Any clue on what i am doing wrong. the template has Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

-- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe _____ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3641 - Release Date: 05/16/11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon May 16 05:40:45 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 16 May 2011 08:40:45 -0400 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> Message-ID: <4DD11B4D.9060600@mapgears.com> On 11-05-14 03:21 PM, Tamas Szekeres wrote: > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could > indeed be taken into account when accessing the source layers, by using > a minor change. > If that's not the case already then I think MINSCALEDENOM, MAXSCALEDENOM from the source layer should be taken into account by default with UNION layers. i.e. when one sets up a layer with min/max scale, it is normally because the data is not appropriate for use at other scales, so I see no reason to expose via in the union layer outside of those scales either. My 0.02$ -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From szekerest at gmail.com Mon May 16 05:56:31 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 May 2011 14:56:31 +0200 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DD11B4D.9060600@mapgears.com> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DD11B4D.9060600@mapgears.com> Message-ID: Hi Daniel, Good point. I've just been waiting for someone more proficient than me, who confirms that this approach makes sense ;-) Best regards, Tamas 2011/5/16 Daniel Morissette > On 11-05-14 03:21 PM, Tamas Szekeres wrote: > >> However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could >> indeed be taken into account when accessing the source layers, by using >> a minor change. >> >> > If that's not the case already then I think MINSCALEDENOM, MAXSCALEDENOM > from the source layer should be taken into account by default with UNION > layers. i.e. when one sets up a layer with min/max scale, it is normally > because the data is not appropriate for use at other scales, so I see no > reason to expose via in the union layer outside of those scales either. > > My 0.02$ > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Mon May 16 06:19:17 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Mon, 16 May 2011 16:19:17 +0300 Subject: [mapserver-users] compilation error Message-ID: hello I tried to comple ms-6.0 in ubuntu 10.1 What might be the reason of this error. ./libmapserver.a(mapimageio.o): In function `savePalettePNG': /usr/local/mapserver-6.0.0/mapimageio.c:274: undefined reference to `png_set_longjmp_fn' ./libmapserver.a(mapimageio.o): In function `saveAsPNG': /usr/local/mapserver-6.0.0/mapimageio.c:461: undefined reference to `png_set_longjmp_fn' ./libmapserver.a(mapimageio.o): In function `readPNG': /usr/local/mapserver-6.0.0/mapimageio.c:738: undefined reference to `png_set_longjmp_fn' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 kind regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From dmorissette at mapgears.com Mon May 16 06:20:26 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 16 May 2011 09:20:26 -0400 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DD11B4D.9060600@mapgears.com> Message-ID: <4DD1249A.2050302@mapgears.com> On 11-05-16 08:56 AM, Tamas Szekeres wrote: > Hi Daniel, > > Good point. I've just been waiting for someone more proficient than me, > who confirms that this approach makes sense ;-) > Well, that's my thinking, but we could also see what others on the -dev list think before making the final call. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jgolinowski at codematix.de Mon May 16 06:18:45 2011 From: jgolinowski at codematix.de (Jana Golinowski) Date: Mon, 16 May 2011 15:18:45 +0200 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DD11B4D.9060600@mapgears.com> Message-ID: <4DD12435.7030502@codematix.de> > Good point. I've just been waiting for someone more proficient than me, > who confirms that this approach makes sense ;-) > > Best regards, > > Tamas > > > 2011/5/16 Daniel Morissette > > > On 11-05-14 03:21 PM, Tamas Szekeres wrote: > > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could > indeed be taken into account when accessing the source layers, > by using > a minor change. > > > If that's not the case already then I think MINSCALEDENOM, > MAXSCALEDENOM from the source layer should be taken into account by > default with UNION layers. i.e. when one sets up a layer with > min/max scale, it is normally because the data is not appropriate > for use at other scales, so I see no reason to expose via in the > union layer outside of those scales either. I agree with this. Additionally SYMBOLSCALEDENOM, LABELMINSCALEDENOM and LABELMAXSCALEDENOM could also be taken into account for similar reasons. Greetings, Jana. From boolean10001 at yahoo.com Mon May 16 07:28:44 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 16 May 2011 07:28:44 -0700 (PDT) Subject: [mapserver-users] Please help In-Reply-To: References: Message-ID: <37610.1754.qm@web38206.mail.mud.yahoo.com> Jude, This is how I have it configured in my server: ??? WEB ??? ??? IMAGEURL "/temp/" ??? ??? IMAGEPATH "/var/www/html/temp/" ??? END As you can see, I'm using the abolute path. Cheers from M?xico IC Carlos Ruiz ________________________________ From: Worth Lutz To: 'jude mwenda' ; mapserver-users at lists.osgeo.org Sent: Monday, May 16, 2011 5:56 AM Subject: RE: [mapserver-users] Please help Try changing: ? WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/output/" END ? To: ? WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/judemaps/output/" END ? ________________________________ From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jude mwenda Sent: Sunday, May 15, 2011 10:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Please help ? ? Hi, I am new to mapserver. I have been able to generate images, and on viewing images folder i can see images that have been generated by mapserver. The only problem comes in that on loading them via template the image is a broken path. Any pointers on resolving this, Mapfile http://dpaste.de/4bmw/ On accessing the images via http://localhost/judemaps/output/parcels_map130551107432207.gif they do load. Any clue on what i am doing wrong. the template has Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

-- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com ? ? "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3641 - Release Date: 05/16/11 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Mon May 16 08:48:48 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 16 May 2011 10:48:48 -0500 Subject: [mapserver-users] Question on rfc 86 In-Reply-To: <4DD12435.7030502@codematix.de> References: <20110513100840.904521678238@mail.r3-gis.com> <4DCD8024.80306@mapgears.com> <4DCEAA96.7030909@rogers.com> <4DD11B4D.9060600@mapgears.com> <4DD12435.7030502@codematix.de> Message-ID: I think you can and should use MIN/MAXSCALE when deciding to include features from source layers into the union'd layer but the others mentioned should be ignored IMHO. There's no easy way (I would think) to carry them through to the union'd layer. Those values should only be honored when set in the union'd layer definition. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jana Golinowski Sent: Monday, May 16, 2011 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Question on rfc 86 > Good point. I've just been waiting for someone more proficient than me, > who confirms that this approach makes sense ;-) > > Best regards, > > Tamas > > > 2011/5/16 Daniel Morissette > > > On 11-05-14 03:21 PM, Tamas Szekeres wrote: > > However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could > indeed be taken into account when accessing the source layers, > by using > a minor change. > > > If that's not the case already then I think MINSCALEDENOM, > MAXSCALEDENOM from the source layer should be taken into account by > default with UNION layers. i.e. when one sets up a layer with > min/max scale, it is normally because the data is not appropriate > for use at other scales, so I see no reason to expose via in the > union layer outside of those scales either. I agree with this. Additionally SYMBOLSCALEDENOM, LABELMINSCALEDENOM and LABELMAXSCALEDENOM could also be taken into account for similar reasons. Greetings, Jana. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Mon May 16 08:52:21 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 16 May 2011 09:52:21 -0600 Subject: [mapserver-users] Re: Rendering Challenges - GEOMTRANSFORM In-Reply-To: References: <4DCBF7E4.8080009@geoanalytic.com> Message-ID: <4DD14835.6050904@geoanalytic.com> On 5/13/2011 6:30 AM, Lime, Steve D (DNR) wrote: > Cool. I committed that patch in trunk in what will be 6.2 if folks are interested. I'll add a few other functions too (see ticket #3871). > > Regarding other uses, sure it's possible. We'd need to add the GEOMTRANSFORM processing to labels and execute it before computing a label point. > > I've also thought about defining a layer-level GEOMTRANSFORM that would alter the original geometry before any processing so all classes and styles would be affected and you could query it. ;-) Sounds powerful for buffered queries,etc. So would we have Layer-level GEOMTRANSFORM (applies to rendered geometry, labels, queries) Style-level GEOMTRANSFORM (applies to rendered geometry only) Label-level GEOMTRANSFORM (applies to label placement only) > Your last idea (8) is a bit different. Here's you're talking about a drawing effect so we're back into styles, but in this case a label's style. Issue here is that a label has two geometries - the point, and the bbox(es) so which are you referencing with [shape]? I'm thinking that in this context we'd always mean the bbox(es) so you could create a buffered convex hull easily and draw it under a label. How about having [labelpointshape] and [labelbboxshape]? And I'm not sure the label's convex hull would be the way to go (for my problem at least); it might erase too much in the case of a horseshoe shaped label. Have a look at the example Daniel generated for the curved label enhancement: http://trac.osgeo.org/mapserver/attachment/ticket/3523/maxoverlapangle-2.png A better polygon might be generated by simplify(union(characterbboxshape)) . Thanks! Brent > Probably should create a couple of tickets... > > Steve > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Thursday, May 12, 2011 10:08 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Rendering Challenges - GEOMTRANSFORM > > Steve, > > Thanks to your patch I was able to render thick lines inside polygons > (http://i56.tinypic.com/1z347yq.jpg). > > The solution of using a STYLE with GEOMTRANSFORM got me thinking of > using the technique to solve some of the labeling challenges: > > 2. Place polygon annotation on/inside boundary line > (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], -3)) of the original polygon > > 5. Place line anno above (or below) when using ANGLE FOLLOW > - label the line geometry resulting from GEOMTRANSFORM > (buffer([shape], 5)) of the original line > > Currently the LABEL object uses the original geometry. Do you think it > would be possible to [optionally?] use the GEOMTRANSFORMed geometry? > > > Similarly, would it be possible to have the LABEL's convex hull (or a > buffer the character boxes?) used as a clipping polygons of the layer's > geometry to address: > > 8. Erase layer's geometry (but not other layers) under label > - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) > > Your thoughts? > From jmckenna at gatewaygeomatics.com Mon May 16 11:45:45 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 16 May 2011 15:45:45 -0300 Subject: [mapserver-users] Visualizing the MapServer 6.0 release.. Message-ID: <4DD170D9.2030205@gatewaygeomatics.com> Watch the changes to MapServer from the year 2000 all the way up to the 6.0 release! http://vimeo.com/gatewaygeomatics/mapserver6-0 (created with Gource & ffmpeg through the SVN logs) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From punk.kish at gmail.com Mon May 16 11:47:31 2011 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Mon, 16 May 2011 13:47:31 -0500 Subject: [mapserver-users] Visualizing the MapServer 6.0 release.. In-Reply-To: <4DD170D9.2030205@gatewaygeomatics.com> References: <4DD170D9.2030205@gatewaygeomatics.com> Message-ID: On May 16, 2011, at 1:45 PM, Jeff McKenna wrote: > Watch the changes to MapServer from the year 2000 all the way up to the 6.0 release! http://vimeo.com/gatewaygeomatics/mapserver6-0 Dunno what it means, but looks awesome. > > (created with Gource & ffmpeg through the SVN logs) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at remoteinformation.com.au Mon May 16 17:20:20 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Tue, 17 May 2011 08:20:20 +0800 Subject: [mapserver-users] Visualizing the MapServer 6.0 release.. In-Reply-To: <20110517160021.507B3E01FE8@lists.osgeo.org> References: <20110517160021.507B3E01FE8@lists.osgeo.org> Message-ID: <5A8AC10E-EAF2-4A4D-B32A-9F6CE3725A3A@remoteinformation.com.au> Truly excellent - very neat. cheers Ben On 18/05/2011, at 12:00 AM, mapserver-users-request at lists.osgeo.org wrote: > From: Jeff McKenna > Date: 17 May 2011 2:45:45 AM AWST > To: MapServer > Subject: [mapserver-users] Visualizing the MapServer 6.0 release.. > > > Watch the changes to MapServer from the year 2000 all the way up to the 6.0 release! http://vimeo.com/gatewaygeomatics/mapserver6-0 > > (created with Gource & ffmpeg through the SVN logs) > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Thu May 12 06:37:07 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Thu, 12 May 2011 09:37:07 -0400 Subject: [mapserver-users] Reference Map must be a GIF???? In-Reply-To: References: <19649158A79349CBAF50B5EF45C2F375@Worthlaptop> Message-ID: <74FDE072BC014343A3CC7E61287408A1@Worthlaptop> An update after building a test case: I was based my original email on finding out that the "jpg" format was not handled by MapServer v6. Upon reading the manuals (version 6.0 in trunk and old paper copy) I saw only "gif" was supposed to be used. I saw I was using both "jpg" and "png" in MapServer v5.6.6 and earlier. The attached test case shows that both "gif" and "png" reference maps work in MapServer version 6.0. The "jpg" does not. The "jpg" does work in version 5.6.6. The MapServer Error given in v6.0.0 for "jpg" is "readImage(): unsupported pixmap format". There is no error message for the caught exception. Originally I was not looking at the MapServer error object when catching the exceptions but in this case (and some others) I found that the thrown exception has no message. To test, unpack the files in the server and run refMapTest.php from a browser. You should see three reference maps on v5.6.6 and two reference maps and some errors on v6.0.0. I do not know what is expected of MapServer in this case. I can live without "jpg". That is what was given me by the customer but I can change it to "gif". Maybe only the documentation needs be updated to add "png" and exclude "jpg". I've been using "png" when drawing reference maps myself with MapServer. Thanks, Worth Lutz -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thursday, May 12, 2011 3:48 AM To: Worth Lutz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Reference Map must be a GIF???? looking through the code, both GD and the other renderers should support loading GIF and PNG images. (This also concerns pixmap symbols, legend icons, etc... i.e. anything which requires loading an image file outside of GDAL) Can you supply the and the reference image you are using ? regards, thomas On Fri, May 6, 2011 at 20:18, Worth Lutz wrote: > When did the restriction, ?the Reference Map base image must be a .gif?, > start being enforced? > > > > I now see it in my old printed copy (version 5.2) of the documentation. ?I > checked there to see if this was new to MapServer version 6 as I found it > first in the online documentation.? Obviously I had never read the > documentation closely in this area. > > > > All my reference maps are ?png? drawn with Mapserver (aggpng I think) and > work in version 5.6. > > > > When my try/catch throws an exception trying to draw this reference map, the > exception message is an empty string. > > > > Through testing and looking at the apache logs, I find that there are > MapServer Errors in the MapServer errorObj and PHP Notices and Warning. > These are: > > > > [Mapserver Error] msDrawREferenceMap() : error loading reference image > /data/mapfiles/ref_maps/ > > [MapServer Error] readImage(): unsupported pixmap format/n in > > > > Is this truly a change in the image type restriction for Reference Maps or > is it just an change in the checking for errors when the MapScriptException > was added? > > > > Was I just lucky my ?.png? reference maps worked in the past?? Am I the only > one to try this?? I don?t have many to convert but wanted to point this out > so it could be added to the Migration Guide if it must remain a restriction. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3630 - Release Date: 05/11/11 -------------- next part -------------- A non-text attachment was scrubbed... Name: refmaptest.tar.gz Type: application/x-gzip Size: 51265 bytes Desc: not available URL: From owenfan0715 at sina.com.cn Mon May 16 23:56:46 2011 From: owenfan0715 at sina.com.cn (owenfan0715) Date: Tue, 17 May 2011 14:56:46 +0800 Subject: [mapserver-users] How to publish the observation data as SOS by Mapserver? Message-ID: <201105171456456964363@sina.com.cn> Hi there, As we know, the Mapserver supports the OGC SOS now. I am trying to test that. Now, I acquired some data by temperature sersor integrated with GPS module described in the following format, time,temperature,location. ..... For example, 2011-5-16 16:00, 16?, (lat long) ..... I want to publish those acquired data lines by Mapserver based on Sensor Observation Service. The data input in Mapserver includs Vector and Raster. Do you think I need to convert the data value into some data format, such as KML or others? Any reply will be appreciated! Thanks! Best Regards, Tim 2011-05-17 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Tue May 17 00:18:52 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 17 May 2011 10:18:52 +0300 Subject: [mapserver-users] compilation error about shp2img Message-ID: hello when I tried to compile UMN_Mapsever (6.0), I encountered this error: -undefined reference to `png_set_longjmp_fn'- collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I am using ubuntu 10.1 How can I solve the problem ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From thomas.bonfort at gmail.com Tue May 17 00:40:58 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 17 May 2011 09:40:58 +0200 Subject: [mapserver-users] compilation error about shp2img In-Reply-To: References: Message-ID: what png library version are you using. if 1.5, try downgrading to 1.4 regards, thomas 2011/5/17 ahmet temiz : > hello > > when I tried to compile UMN_Mapsever (6.0), I encountered this error: > > -undefined reference to `png_set_longjmp_fn'- > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > I am using ubuntu 10.1 > > How can I solve the problem ? > > regards > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > Bilgi ve CBS grubu > Eski?ehir Yolu 10. km. > Lodumlu / Ankara > Tel : 0 312 2872680 / 1535 > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From judemwenda at gmail.com Tue May 17 04:21:31 2011 From: judemwenda at gmail.com (jude mwenda) Date: Tue, 17 May 2011 14:21:31 +0300 Subject: [mapserver-users] Mapserver graduated symbols Message-ID: Hi, is this possible using mapserver and openlayers? where the values used are based on predefined values of from the shapefile loaded using wms? -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpdobson40 at gmail.com Tue May 17 04:38:22 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Tue, 17 May 2011 12:38:22 +0100 Subject: [mapserver-users] MapScript C# binaries for mapserver 6.0 Message-ID: Hi, Does anyone know if the MapScript C# binaries are available for mapserver 6.0? (i.e. mapscript.dll and mapscript_csharp.dll). Alternatively, is MS4W available for mapserver 6.0 yet? Regards, Jon-Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue May 17 04:44:25 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 May 2011 08:44:25 -0300 Subject: [mapserver-users] MapScript C# binaries for mapserver 6.0 In-Reply-To: References: Message-ID: <4DD25F99.3040107@gatewaygeomatics.com> On 11-05-17 8:38 AM, Jon-Paul Dobson wrote: > Alternatively, is MS4W available for > mapserver 6.0 yet? Yes: http://osgeo-org.1803224.n2.nabble.com/MS4W-Users-MapServer-6-0-0-release-package-available-td6359261.html Your best bet is to follow the MS4W-users mailing list to stay on top of issues like this, and ask questions/comments there. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jpdobson40 at gmail.com Tue May 17 04:47:25 2011 From: jpdobson40 at gmail.com (Jon-Paul Dobson) Date: Tue, 17 May 2011 12:47:25 +0100 Subject: [mapserver-users] MapScript C# binaries for mapserver 6.0 In-Reply-To: <4DD25F99.3040107@gatewaygeomatics.com> References: <4DD25F99.3040107@gatewaygeomatics.com> Message-ID: Brilliant. Thanks Jeff for the prompt reply. Best regards, Jon-Paul On Tue, May 17, 2011 at 12:44 PM, Jeff McKenna < jmckenna at gatewaygeomatics.com> wrote: > On 11-05-17 8:38 AM, Jon-Paul Dobson wrote: > >> Alternatively, is MS4W available for >> mapserver 6.0 yet? >> > > Yes: > http://osgeo-org.1803224.n2.nabble.com/MS4W-Users-MapServer-6-0-0-release-package-available-td6359261.html > > Your best bet is to follow the MS4W-users mailing list to stay on top of > issues like this, and ask questions/comments there. > > Thanks. > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver at crusaders.no Tue May 17 05:11:56 2011 From: trondmm-mapserver at crusaders.no (Trond Michelsen) Date: Tue, 17 May 2011 14:11:56 +0200 Subject: [mapserver-users] Which is fastest? finding nearest point, or polygon? Message-ID: <20110517121156.GB1889@crusaders.no> Hi. I have a pointlayer with about 10000 points (will probably become 25000 later), and I want to find the nearest point when I click in the map. To solve this, I've loaded the layer into qgis, and using the mmqgis plugin, I created a voronoi diagram layer. I'm now serving this layer with mapserver, and a click on the map will trigger a GetFeatureInfo request from this layer, which returns the metadata from the corresponding point. Everything works fine, but I get this nagging feeling that I've overcomplicated things, so I'm wondering: 1. Can mapserver find the nearest point directly? If so, how do I set it up? 2. Is this faster than finding the polygon the click is inside? -- Trond Michelsen From mwkorver at gmail.com Tue May 17 06:48:32 2011 From: mwkorver at gmail.com (Mark Korver) Date: Tue, 17 May 2011 08:48:32 -0500 Subject: [mapserver-users] Which is fastest? finding nearest point, or polygon? In-Reply-To: <20110517121156.GB1889@crusaders.no> References: <20110517121156.GB1889@crusaders.no> Message-ID: > 1. Can mapserver find the nearest point directly? If so, how do I set > it up? normally this would be PostGIS query as in http://osgeo-org.1803224.n2.nabble.com/get-the-closest-feature-in-a-point-query-td5819760.html > 2. Is this faster than finding the polygon the click is inside? I would expect the point based query to be a lot faster. Tolerance defines a bbox of what subset of points to calc distance from, then just sorting by distance to get your answer. You can do this with just SQL and little code np. On Tue, May 17, 2011 at 7:11 AM, Trond Michelsen wrote: > Hi. > > I have a pointlayer with about 10000 points (will probably become > 25000 later), and I want to find the nearest point when I click in the > map. > > To solve this, I've loaded the layer into qgis, and using the mmqgis > plugin, I created a voronoi diagram layer. I'm now serving this layer > with mapserver, and a click on the map will trigger a GetFeatureInfo > request from this layer, which returns the metadata from the > corresponding point. > > Everything works fine, but I get this nagging feeling that I've > overcomplicated things, so I'm wondering: > > 1. Can mapserver find the nearest point directly? If so, how do I set > ? it up? > 2. Is this faster than finding the polygon the click is inside? > > -- > Trond Michelsen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From traviskirstine at gmail.com Tue May 17 07:33:07 2011 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 17 May 2011 10:33:07 -0400 Subject: [mapserver-users] mapserver 6.0 make error Message-ID: Hi all, I have been trying to install Mapserver 6.0 and I am running into the following error. I thought this could be related to a older version of GEOS / GDAL so I installed gdal 1.8 and geos 3.2.2. Any ideas # static library if it exists. if test -r libmapserver.so ; then \ make shared ; \ fi gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/freetype2 -I/usr/include -Irenderers/agg/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/freetype2 -I/usr/include -Irenderers/agg/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.o -L. -lmapserver -lfreetype -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lexpat -lproj -ljpeg -lpng -lgif -L/usr/local/lib -lgdal -L/usr/lib -lpq -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c -lpthread -lc -L/usr/lib -lfcgi -lz -L/usr/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img /usr/bin/ld: warning: libexpat.so.1, needed by /usr/local/lib/libgdal.so, may conflict with libexpat.so.0 ./libmapserver.a(mapgeos.o): In function `msGEOSFreeWKT': /root/build/mapserver-6.0.0/mapgeos.c:650: undefined reference to `GEOSFree' ./libmapserver.a(mapgeos.o): In function `msGEOSSimplify': /root/build/mapserver-6.0.0/mapgeos.c:697: undefined reference to `GEOSSimplify' ./libmapserver.a(mapgeos.o): In function `msGEOSTopologyPreservingSimplify': /root/build/mapserver-6.0.0/mapgeos.c:719: undefined reference to `GEOSTopologyPreserveSimplify' /usr/local/lib/libgdal.so: undefined reference to `GEOSUnionCascaded' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 From zhaops at hotmail.com Tue May 17 09:52:37 2011 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 17 May 2011 16:52:37 +0000 Subject: [mapserver-users] (no subject) Message-ID: Do your dream!... http://www.stadcopolyproducts.com/friends_links.php?photmailID=14ce3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Tue May 17 10:04:58 2011 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 17 May 2011 13:04:58 -0400 Subject: [mapserver-users] re mapserver 6.0 make error Message-ID: The issue was related to having the "Extra Packages for Enterprise Linux (EPEL)" repository configure, this contained a version of GEOS, removing this version fixed the issue - I hope. Regards From havard.tveite at umb.no Tue May 17 10:51:20 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 17 May 2011 19:51:20 +0200 Subject: [mapserver-users] Mapserver graduated symbols In-Reply-To: References: Message-ID: <4DD2B598.5000605@umb.no> The LAYER-> CLASS-> STYLE-> SIZE parameter can specify an attribute of the data set, so this should be possible. H?vard On 17/05/11 13:21, jude mwenda wrote: > Hi, is this possible using mapserver and openlayers? where the values > used are based on predefined values of from the shapefile loaded using wms? > > -- > Regards, > > Jude Mwenda > Skype id: jmwenda > Twitter: www.twitter.com/judemwenda > Web: www.africangeogeek.com > > "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." > Johann Wolfgang von Goethe From owenfan0715 at sina.com.cn Tue May 17 18:46:34 2011 From: owenfan0715 at sina.com.cn (owenfan0715) Date: Wed, 18 May 2011 09:46:34 +0800 Subject: [mapserver-users] How to publish the observation data as SOS by Mapserver? Message-ID: <201105180946344249126@sina.com.cn> Hi there, As we know, the Mapserver supports the OGC SOS now. I am trying to test that. Now, I acquired some data by temperature sersor integrated with GPS module described in the following format, time,temperature,location. ..... For example, 2011-5-16 16:00, 16?, (lat long) ..... I want to publish those acquired data lines by Mapserver based on Sensor Observation Service. The data input in Mapserver includs Vector and Raster. Do you think I need to convert the data value into some data format, such as KML or others? Any reply will be appreciated! Thanks! Best Regards, Tim 2011-05-18 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Wed May 18 03:03:14 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 18 May 2011 13:03:14 +0300 Subject: [mapserver-users] Postgis itemquery help Message-ID: <2eb7b6c0a5382275a932b725287c3d83@maich.gr> Hello, Am trying to perform an itemquery on a postgis layer and am getting the following error. prepare_database(): Query error. Error declaring cursor: ERROR: syntax error at or near "[" LINE 1: ...the_geom)),'NDR'),gid::text from landunits WHERE ([cynara] >... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "cynara"::text,asb inary(force_collection(force_2d(the_geom)),'NDR'),gid::text from landunits WHERE ([cynara] > 1.0) and (the_geom && setSRID( 'BOX3D(338975.96875 4319199,391 293.59375 4383580.5)'::BOX3D,-1) ) Here's what I send to the ms cgi.... queryfile=&img.x=225&img.y=225 &zoomdir=0 &zoomsize=2 &map=/var/www/html/IUNG/IUNG.map &imgext=332944.031250 4319199.000000 397325.531250 4383580.500000 &mapext=shape &layer=landunits &query_mode=itemquery &qlayer=landunits &qstring=([cynara] > 1.0) &qitem=cynara &w=450 &h=450 &imgxy=225.0 225.0 &mode=itemquery &rnd982g=0.18569989648275098&ID=1305708848 &fname=/IUNG/tmp/IUNG1305708848.html /var/www/html/IUNG/tmp/IUNG1305708848.gif Using mapserver 5.2.1 The layer renders ok, and featurequeries work, so I'm thinking mapfile is ok... Would appreciate a little insight, thank you, nikos From ahmettemiz88 at gmail.com Wed May 18 05:00:06 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Wed, 18 May 2011 15:00:06 +0300 Subject: [mapserver-users] compilation problem in java Message-ID: hello I tried to compile ms 6.0 in java after changing java dir, mapscript_wrap.c:135: fatal error: jni.h: No such file or directory compilation terminated. make: *** [mapscript_so] Error 1 I checked jni.h: orkun at orkun-HP:~$ ls $JAVA_HOME/include/ classfile_constants.h jawt.h jdwpTransport.h jni.h jvmti.h linux // jni.h exists I put : export CPPFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" The problem still remains. what could I do ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From nikos at maich.gr Wed May 18 05:20:18 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 18 May 2011 15:20:18 +0300 Subject: [mapserver-users] savequery and queryfile Message-ID: <9f88b503272fbeefba69ebeaad906cd5@maich.gr> Hello, I am wondering if someone could explain how to use savequery and queryfile functionality to make a query map persistent for further operations. I've read the docs but cant seem to get a handle on it. regards, nikos From Weisbend at wapa.gov Wed May 18 06:24:52 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Wed, 18 May 2011 07:24:52 -0600 Subject: [mapserver-users] nquery and getfeatureinfo Message-ID: <4DD37444020000DF0007715D@10.1.50.131> Does nquery execute a getfeatureinfo request on wms layer? -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Wed May 18 06:35:29 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 18 May 2011 15:35:29 +0200 (CEST) Subject: [mapserver-users] Patch for #2903 Message-ID: <20110518133529.DD389167823F@mail.r3-gis.com> Could http://trac.osgeo.org/mapserver/attachment/ticket/2903/mapserver.ticket_2903.patch ba applied to branch-5-6 ? BTW: the problem seems to be fixed in 6.0, so the ticket can be closed. Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com From dmorissette at mapgears.com Wed May 18 06:37:13 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 18 May 2011 09:37:13 -0400 Subject: [mapserver-users] nquery and getfeatureinfo In-Reply-To: <4DD37444020000DF0007715D@10.1.50.131> References: <4DD37444020000DF0007715D@10.1.50.131> Message-ID: <4DD3CB89.9000409@mapgears.com> On 11-05-18 09:24 AM, Eric Weisbender wrote: > Does nquery execute a getfeatureinfo request on wms layer? > No. There is no support for queries on CONNECTIONTYPE WMS layers. The main reason behind this limitation is that GetFeatureInfo is only loosely defined in the spec and there is no predictable way for MapServer (or any WMS client) to ingest a GetFeatureInfo response and do something meaningful with it (other than just forwarding the contents of the response without trying to interpret it). OGC recommends the use of WFS for queries. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From steve.lime at state.mn.us Wed May 18 10:48:42 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 18 May 2011 12:48:42 -0500 Subject: [mapserver-users] Patch for #2903 In-Reply-To: <20110518133529.DD389167823F@mail.r3-gis.com> References: <20110518133529.DD389167823F@mail.r3-gis.com> Message-ID: I updated the ticked to reflect a 5.6.7 release target and will apply the patch asap... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Hopfgartner Sent: Wednesday, May 18, 2011 8:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Patch for #2903 Could http://trac.osgeo.org/mapserver/attachment/ticket/2903/mapserver.ticket_2903.patch ba applied to branch-5-6 ? BTW: the problem seems to be fixed in 6.0, so the ticket can be closed. Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Keith.Moss at landgate.wa.gov.au Wed May 18 22:38:20 2011 From: Keith.Moss at landgate.wa.gov.au (Keith Moss) Date: Thu, 19 May 2011 13:38:20 +0800 Subject: [mapserver-users] Union Layers and GetLegendGraphic Message-ID: <82C223B25A75614D9F884563CE191C14086AABEB@MAIL.dli.wa.gov.au> Hi all, Just noticed an issue with the new 'UNION' layer type in MapServer 6. With 'STYLEITEM AUTO' set the styles are inherited for GetMap requests but, it seems, not for GetLegendGraphic requests. Giving the UNION layer a copy of the styles for the source layers works, but obviously this is exactly ideal. Just wondering if this is on anyone's "to implement" list? cheers __________________________________ Keith Moss Satellite Remote Sensing Services Operations Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu May 19 01:12:12 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 19 May 2011 10:12:12 +0200 Subject: [mapserver-users] Union Layers and GetLegendGraphic In-Reply-To: <82C223B25A75614D9F884563CE191C14086AABEB@MAIL.dli.wa.gov.au> References: <82C223B25A75614D9F884563CE191C14086AABEB@MAIL.dli.wa.gov.au> Message-ID: Keith, The idea looks promising. Which source layer should be used to copy the styles? In case if the source layer contains multiple classes (with expressions, classitem etc.), the actual feature may be required to select the class to be used. Best regards, Tamas 2011/5/19 Keith Moss > Hi all, > > Just noticed an issue with the new 'UNION' layer type in MapServer 6. > > With 'STYLEITEM AUTO' set the styles are inherited for GetMap requests but, > it seems, not for GetLegendGraphic requests. Giving the UNION layer a copy > of the styles for the source layers works, but obviously this is exactly > ideal. Just wondering if this is on anyone's "to implement" list? > > cheers > > __________________________________ > Keith Moss > Satellite Remote Sensing Services > Operations > Landgate > 65 Brockway Road, FLOREAT WA 6014 > PO Box 741 Wembley WA 6913 > Ph. (08) 9387 0332 | Fx. (08) 9383 7142 > keith.moss at landgate.wa.gov.au > www.landgate.wa.gov.au > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged, in which case neither is intended to be waived or lost by > mistaken delivery to you. If you are not an intended recipient, any use, > interference with, disclosure, distribution or copying of this material is > unauthorised and prohibited. If you receive this e-mail in error, please > notify the sender by return e-mail and delete the message and any > attachments from your system. Unless specifically indicated, this e-mail > does not constitute formal advice or commitment by the sender or the Western > Australian Land Information Authority (Landgate). Information in this > message not relating to the official business of Landgate shall be > understood as neither given nor endorsed by it. It is your responsibility to > check any attachments for viruses and defects before opening or sending them > on. Landgate?s liability is limited to re-supplying affected attachments. > > _______________________________________________ > 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 ahmettemiz88 at gmail.com Thu May 19 04:10:54 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Thu, 19 May 2011 14:10:54 +0300 Subject: [mapserver-users] confused about mapscript java configuration Message-ID: hello I think I am confused about mapscript java configuration I added my configuration file --with-java-include-os-name=$JAVA_HOME/include But It still cannot find "jni.h" I checked $JAVA_HOME: orkun at orkun-HP:~$ ls $JAVA_HOME/include/ classfile_constants.h jawt.h jdwpTransport.h jni.h jvmti.h linux // jni.h seems to exist. what might have caused the problem ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From jachym.cepicky at gmail.com Thu May 19 05:37:42 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Thu, 19 May 2011 14:37:42 +0200 Subject: [mapserver-users] mapscript owsdispatch does not work, cgi mapserver does Message-ID: Hi, I have strange problem, I need to use mapobject.OWSDispatch with WMS GetMap request, and I do expect image at the output. I have prepared small python wrapper script, which should load the mapfile, perform owsdispatch and return the result. It does not work (saying something about missing xerces support, which is not true, see below). When I use *exactly the same* mapfile, but with simple shell wrapper (so no mapscript), it works perfectly. Examples: (1) Shell script wrapper: #!/bin/sh export MS_MAPFILE="/tmp/wfs02.map" /usr/lib/cgi-bin/mapserv http://localhost/cgi-bin/owsviewer2.sh?LAYERS=kraje&TRANSPARENT=TRUE&FORMAT=image%2Fpng&EXCEPTIONS=XML&VERSION=1.3.0&STYLES=default&CRS=EPSG%3A4326&SERVICE=WMS&REQUEST=GetMap&BBOX=49,12,51,18&WIDTH=1000&HEIGHT=634 -> Image is returned (2) Python script: #!/usr/bin/python import mapscript mapobj = mapscript.mapObj("/tmp/wfs02.map") request = mapscript.OWSRequest() request.loadParams() print mapobj.OWSDispatch(request) http://localhost/cgi-bin/owsviewer2.py?LAYERS=kraje&TRANSPARENT=TRUE&FORMAT=image%2Fpng&EXCEPTIONS=XML&VERSION=1.3.0&STYLES=default&CRS=EPSG%3A4326&SERVICE=WMS&REQUEST=GetMap&BBOX=49,12,51,18&WIDTH=1000&HEIGHT=634 -> msDrawMap(): Image handling error. Failed to draw layer named 'kraje'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `kraje'. File /tmp/mapserv/4dd50e3f_54c_0..tmp.gml appears to be GML but the GML reader can't be instantiated, likely because Xerces support wasn't configured in. What am I doing wrong? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: wfs02.map Type: application/octet-stream Size: 1098 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: owsviewer2.sh Type: application/x-sh Size: 72 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: owsviewer2.py Type: text/x-python Size: 169 bytes Desc: not available URL: From steve.lime at state.mn.us Thu May 19 06:57:20 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 19 May 2011 08:57:20 -0500 Subject: [mapserver-users] savequery and queryfile In-Reply-To: <9f88b503272fbeefba69ebeaad906cd5@maich.gr> References: <9f88b503272fbeefba69ebeaad906cd5@maich.gr> Message-ID: Hi Nikos: It's pretty straight forward. Using the CGI, if you issue a "mode=xxxquery" call with "savequery=true" MapServer will write a file that serializes the query parameters to a temporary file. Then, if you make a call with "mode=map" with "queryfile=queryfile name.qy" MapServer will execute that query and render a query map instead of a regular map. The trick is how the file is named. MapServer CGI generates a unique ID each time it's run and it's used to name all temp files including the queryfile. Format is "map name + id.qy". You can access that ID via template. Often that's not possible and you might want to generate it yourself (as a pseudo-session id) and pass it using the id CGI param. This way the queryfile name is known on the client. In OpenLayers-land I've used query files successfully to maintain a selection overlay layer even for complex queries. You can even maintain cache multiple queries using multiple session ids. Let me know if you need more info. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of nikos at maich.gr Sent: Wednesday, May 18, 2011 7:20 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] savequery and queryfile Hello, I am wondering if someone could explain how to use savequery and queryfile functionality to make a query map persistent for further operations. I've read the docs but cant seem to get a handle on it. regards, nikos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vanwars at gmail.com Thu May 19 09:42:49 2011 From: vanwars at gmail.com (vanwars) Date: Thu, 19 May 2011 09:42:49 -0700 (PDT) Subject: [mapserver-users] Issues with Bilinear Rendering of Raster Images in MapServer 6.0.0-2 Message-ID: <1305823369742-6382806.post@n2.nabble.com> Hello, I just upgraded MapServer today on (Ubuntu Lucid Lynx) to 6.0.0-2 from MapServer 5.6.6, and am experiencing a weird error with the bilinear rendering from GeoTiff (the underlying data store) to PNG (the display format). Whereas before there were nice tapered edges and smoothing, there is now a strange black / blue /green border around all of our pngs. I read through the upgrade documentation, and it seems like there have been a number of changes to the way in which rasters are rendered, but I can't figure out the element(s) that I might be able to adjust to get the rasters to look fabulous again. Has anyone run into this particular issue? I've attached before / after pngs. Thank you! Sarah Relevant parts of my map config file http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer5.6BilinearInterpolation.png MapServer5.6BilinearInterpolation.png http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer6.0BilinearInterpolation.png MapServer6.0BilinearInterpolation.png : MAP ... IMAGETYPE aggpng24 OUTPUTFORMAT NAME "aggpng24" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT ON EXTENSION "png" END ... LAYER NAME "snowpack" TYPE RASTER DUMP true OFFSITE 0 0 0 DATA "/path_to_directory/the_geotiff.tif" EXTENT -124.625 31.875 -113 44 METADATA "wms_title" "snowpack" "gml_include_items" "all" "wms_include_items" "all" END STATUS OFF PROCESSING "BANDS=1,1,1" PROCESSING "RESAMPLE=BILINEAR" PROCESSING "SCALE=10,500" # Brighter purple gradient PROCESSING "LUT_1=1:249, 64:223, 128:200, 220:112, 255:112" #192:174 PROCESSING "LUT_2=1:213, 64:184, 128:145, 220:12, 255:12" #192:108 PROCESSING "LUT_3=1:242, 64:230, 128:220, 220:242, 255:242" #192:198 PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END END ... END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Issues-with-Bilinear-Rendering-of-Raster-Images-in-MapServer-6-0-0-2-tp6382806p6382806.html Sent from the Mapserver - User mailing list archive at Nabble.com. From trottier.marcandre at gmail.com Thu May 19 12:15:19 2011 From: trottier.marcandre at gmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Thu, 19 May 2011 15:15:19 -0400 Subject: [mapserver-users] opacity and outputformat In-Reply-To: References: Message-ID: i'm using MapScript to create un mapObj. finally a draw the image with Map->draw(); but the OPACITY is not good. Just one OPACITY, of my two layers, is set to all image i got this for my Outputformat : OUTPUTFORMAT NAME "aggpng24" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE END i think it's good. if the address is not the same in the parameter CONNECTION it's all good. can i add a random number in my CONNECTION ? with the mapscript Marc-Andr? Trottier 2011/5/12 thomas bonfort Opacity is set as a single integer between 0 and 100 on the layer level. There are no limitations on setting it on multiple layers, but in that case the opacity adds up, so if you have two layers with opacity 50, the final opacity of the image ends up being 75. If your final images end up with no opacity, this could be because your are also including a layer with full opacity, or because you are using a format which does not support an alpha channel (i.e. jpeg) regards, thomas On Mon, May 9, 2011 at 19:18, Marc-Andr? Trottier wrote: > hi! > how can i get a output with opacity on 2 or more layers. > with only 1 layer it's working fine but not with 2 or more. > > How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA) > i tried something like OPACITY 22,22,22,22 but looks bad > > in all my tests, all i got was my 2 layers with full opacity (100) ... > > here is my mapfile : > > MAP > EXTENT -8146324.306063 5632144.09953312 -8137075.425642 5638229.88815488 > FONTSET "fonts" > IMAGECOLOR 255 255 255 > IMAGETYPE AGGA > SIZE 732 482 > STATUS ON > UNITS METERS > NAME "MS" > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > TRANSPARENT TRUE > END > > PROJECTION > "init=epsg:900913" > END > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "arial" > MAXSIZE 256 > MINSIZE 4 > SIZE 10 > TYPE TRUETYPE > BUFFER 0 > COLOR 255 255 255 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > OUTLINECOLOR 0 0 0 > POSITION LR > POSTLABELCACHE TRUE > STATUS EMBED > TRANSPARENT FALSE > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > ALIGN CENTER > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CR > END > OUTLINECOLOR 0 0 0 > POSITION LL > SIZE 200 3 > STATUS EMBED > STYLE 0 > UNITS METERS > END > > WEB > IMAGEPATH "path" > IMAGEURL "" > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > > LAYER > CONNECTION "PATATE3" > CONNECTIONTYPE WMS > DEBUG 5 > METADATA > "wms_srs" "EPSG:900913" > "wms_name" "PATATE3" > "wms_format" "image/png" > "wms_server_version" "1.1.1" > END > NAME "Carte" > PROCESSING "CLOSE_CONNECTION=NORMAL" > PROJECTION > "init=epsg:900913" > END > STATUS ON > TRANSFORM FALSE > TYPE RASTER > UNITS METERS > END > > LAYER > CONNECTION "PATATE2" > CONNECTIONTYPE WMS > DEBUG 5 > METADATA > "wms_srs" "EPSG:900913" > "opacity" "100" > "wms_name" "PATATE2" > "wms_format" "image/png" > "wms_server_version" "1.1.1" > END > NAME "PATATE2" > PROCESSING "CLOSE_CONNECTION=NORMAL" > PROJECTION > "init=epsg:900913" > END > STATUS ON > TRANSFORM FALSE > TYPE RASTER > UNITS METERS > END > > LAYER > CONNECTION "PATATE" > CONNECTIONTYPE WMS > DEBUG 5 > METADATA > "wms_srs" "EPSG:900913" > "opacity" "40" > "wms_name" "PATATE" > "wms_format" "image/png" > "wms_server_version" "1.1.1" > END > NAME "PATATE" > PROJECTION > "init=epsg:900913" > END > STATUS ON > OPACITY 40 > TYPE RASTER > UNITS METERS > END > > END > > > ______________________________ > > _________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulcarlisle at comcast.net Thu May 19 12:36:17 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Thu, 19 May 2011 12:36:17 -0700 (PDT) Subject: [mapserver-users] Rasters and WFS Message-ID: <1305833777761-6383431.post@n2.nabble.com> I am very new to GIS software. We are developing an application that will use both QGis and/or a web browser as the front end. Basically, we have large image files we will be sending as a background layer, and we want to overlay them with points having various attributes. The user should be able to click on each of the points and read off that point's attributes. This works well if we load our background image through a WMS layer and load the points via a shapefile as a vector layer in QGis; points are displayed atop the image and are clickable, bringing up a table of attributes for the selected point. In QGis, at least, adding the shapefile to the WMS mapfile does not permit clicking on points in the UI. It is not possible for the user to obtain shapefiles locally, so we need a solution that will allow both sets of information to be sent through a web service. Will WFS allow raster images to be embedded? Documentation seems to indicate not, but isn't quite clear. We can insist that the user open both a WMS and WFS layer, but this gets messy; we would really prefer a single data stream solution. A browser-based solution seems feasible with WMS, based on the quick trip I've taken through MapServer tutorials. Our customers, however, are comfortable with QGis and strongly prefer that option as an interface. Any thoughts would be appreciated. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rasters-and-WFS-tp6383431p6383431.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Thu May 19 13:46:00 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 19 May 2011 16:46:00 -0400 Subject: [mapserver-users] Rasters and WFS In-Reply-To: <1305833777761-6383431.post@n2.nabble.com> References: <1305833777761-6383431.post@n2.nabble.com> Message-ID: <4DD58188.2050000@pobox.com> On 11-05-19 03:36 PM, SixDegrees wrote: > Will WFS allow raster images to be embedded? Documentation seems to indicate > not, but isn't quite clear. Paul, MapServer WFS does not serve raster data. > We can insist that the user open both a WMS and WFS layer, but this gets > messy; we would really prefer a single data stream solution. I think you will need to insist though there may be ways of simplifying things with a qgis plugin or something. 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 | Geospatial Programmer for Rent From paulcarlisle at comcast.net Thu May 19 14:26:57 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Thu, 19 May 2011 14:26:57 -0700 (PDT) Subject: [mapserver-users] Re: Rasters and WFS In-Reply-To: <4DD58188.2050000@pobox.com> References: <1305833777761-6383431.post@n2.nabble.com> <4DD58188.2050000@pobox.com> Message-ID: <1305840417179-6383792.post@n2.nabble.com> Thanks for clearing that up. Is there support within QGis for using WMS' GetFeatureInfo request when a point from the shapefile is clicked? This doesn't seem to be happening in my setup, but I may have something configured incorrectly. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rasters-and-WFS-tp6383431p6383792.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Keith.Moss at landgate.wa.gov.au Thu May 19 20:44:23 2011 From: Keith.Moss at landgate.wa.gov.au (Keith Moss) Date: Fri, 20 May 2011 11:44:23 +0800 Subject: [mapserver-users] Union Layers and GetLegendGraphic References: <82C223B25A75614D9F884563CE191C14086AABEB@MAIL.dli.wa.gov.au> Message-ID: <82C223B25A75614D9F884563CE191C14086AABEE@MAIL.dli.wa.gov.au> Hi Tamas, The notion we had was that a GetLegendGraphic on a union layer would just work in the same way as a GetLegendGraphic on a layer group does at the moment. i.e. Displays all of the classes for all of the source layers. cheers __________________________________ Keith Moss Satellite Remote Sensing Services Operations Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au ________________________________ From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Thu 19/05/2011 16:12 To: Keith Moss Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Union Layers and GetLegendGraphic Keith, The idea looks promising. Which source layer should be used to copy the styles? In case if the source layer contains multiple classes (with expressions, classitem etc.), the actual feature may be required to select the class to be used. Best regards, Tamas 2011/5/19 Keith Moss Hi all, Just noticed an issue with the new 'UNION' layer type in MapServer 6. With 'STYLEITEM AUTO' set the styles are inherited for GetMap requests but, it seems, not for GetLegendGraphic requests. Giving the UNION layer a copy of the styles for the source layers works, but obviously this is exactly ideal. Just wondering if this is on anyone's "to implement" list? cheers __________________________________ Keith Moss Satellite Remote Sensing Services Operations Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate's liability is limited to re-supplying affected attachments. _______________________________________________ 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 CowieA at landcareresearch.co.nz Thu May 19 21:34:44 2011 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Fri, 20 May 2011 16:34:44 +1200 Subject: [mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ? Message-ID: <99F4D44109DA3A448A9C811B14E04B15161878B9C5@donkey.landcare.ad.landcareresearch.co.nz> Hello list, We have a cascading WMS using Mapserver as a client to request maps from another Mapserver. We have it working well, however we are wondering whether it is possible to do a GetLegendGraphic request to this top level Mapserver and have it in turn pass on that request to the underlying mapserver, which would then return the legend graphic. Here's a snippet of our 'top level' Mapserver mapfile, which sits on our public server: ... LEGEND STATUS OFF KEYSIZE 30 15 KEYSPACING 10 10 LABEL COLOR 0 0 0 FONT 'arialbd' TYPE truetype SIZE 10 END END LAYER NAME 'coastpoly' TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://ourprivateserver/wms?" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_name" "coastpoly" "wms_title" "Topographic Coastline Polygons" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:2193 EPSG:27200 EPSG:4326" END END ... And a snippet from our underlying Mapserver: ... LEGEND STATUS OFF KEYSIZE 30 15 KEYSPACING 10 10 LABEL COLOR 0 0 0 FONT 'arialbd' TYPE truetype SIZE 10 END END LAYER NAME 'coastpoly' TYPE POLYGON STATUS OFF CONNECTIONTYPE postgis CONNECTION "dbname='ourdb' host='ourprivateserver' port=5432 user='user' password=pass" PROCESSING "CLOSE_CONNECTION=DEFER" DATA 'the_geom FROM "data"."coastlinepoly" USING UNIQUE gid USING srid=2193' PROJECTION "proj=tmerc" "lat_0=0" "lon_0=173" "k=0.9996" "x_0=1600000" "y_0=10000000" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0" "units=m" END EXTENT 983515.7211 4728776.8709 2117458.3527 6223676.2306 METADATA "wms_name" "coastpoly" "wms_title" "Topographic Coastline Polygons" "wms_version" "1.1.1" "wms_format" "image/png" "wms_srs" "EPSG:2193 EPSG:27200 EPSG:4326" "wms_abstract" "Abstract" END CLASS NAME 'Coast Polygon' STYLE COLOR 225 223 197 END END END ... I think we may be missing something obvious here, so any ideas greatly appreciated... :) Andrew ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Thu May 19 23:55:13 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Thu, 19 May 2011 23:55:13 -0700 (PDT) Subject: [mapserver-users] Rasters and WFS In-Reply-To: <1305833777761-6383431.post@n2.nabble.com> Message-ID: <955404.99994.qm@web33203.mail.mud.yahoo.com> WMS supports a GetFeature capability, to retrieve info from the server about the location clicked on the map, queried against a specified layer, which might work if you are determined not to have a WMS background & WFS overlay. Note that if you open the WMS & WFS layers in QGIS, & save the project (session), you can just reopen the project to re-make both connections as a single operation. HTH Brent Wood --- On Fri, 5/20/11, SixDegrees wrote: From: SixDegrees Subject: [mapserver-users] Rasters and WFS To: mapserver-users at lists.osgeo.org Date: Friday, May 20, 2011, 7:36 AM I am very new to GIS software. We are developing an application that will use both QGis and/or a web browser as the front end. Basically, we have large image files we will be sending as a background layer, and we want to overlay them with points having various attributes. The user should be able to click on each of the points and read off that point's attributes. This works well if we load our background image through a WMS layer and load the points via a shapefile as a vector layer in QGis; points are displayed atop the image and are clickable, bringing up a table of attributes for the selected point. In QGis, at least, adding the shapefile to the WMS mapfile does not permit clicking on points in the UI. It is not possible for the user to obtain shapefiles locally, so we need a solution that will allow both sets of information to be sent through a web service. Will WFS allow raster images to be embedded? Documentation seems to indicate not, but isn't quite clear. We can insist that the user open both a WMS and WFS layer, but this gets messy; we would really prefer a single data stream solution. A browser-based solution seems feasible with WMS, based on the quick trip I've taken through MapServer tutorials. Our customers, however, are comfortable with QGis and strongly prefer that option as an interface. Any thoughts would be appreciated. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rasters-and-WFS-tp6383431p6383431.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 umberto.nicoletti at gmail.com Fri May 20 00:15:35 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 20 May 2011 09:15:35 +0200 Subject: [mapserver-users] confused about mapscript java configuration In-Reply-To: References: Message-ID: Ahmet, you gave the wrong param to with-java-include-os-name and usually it is not necessary to specify anything as it will correctly guess from the environment. Try this: set JAVA_HOME to point to the jdk (NOTE: a full JDK is required, JRE is NOT enough) run ./configure (leave with-java-include-os-name out for now) make cd mapscript/java make clean make HTH, Umberto 2011/5/19 ahmet temiz > hello > > I think I am confused about mapscript java configuration > > I added my configuration file > --with-java-include-os-name=$JAVA_HOME/include > > But It still cannot find "jni.h" > > I checked $JAVA_HOME: > > orkun at orkun-HP:~$ ls $JAVA_HOME/include/ > classfile_constants.h jawt.h jdwpTransport.h jni.h jvmti.h linux > // jni.h seems to exist. > > > what might have caused the problem ? > > regards > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > Bilgi ve CBS grubu > Eski?ehir Yolu 10. km. > Lodumlu / Ankara > Tel : 0 312 2872680 / 1535 > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > _______________________________________________ > 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 ahmettemiz88 at gmail.com Fri May 20 01:49:24 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Fri, 20 May 2011 11:49:24 +0300 Subject: [mapserver-users] confused about mapscript java configuration In-Reply-To: References: Message-ID: Thank you Umberto , I did. It constructed libmapscript.so, and mapscript.jar. " make test" passes. But, "make threadtests" gave orkun at orkun-HP:~/data/mapserver-6.0.0/mapscript/java$ make threadtests javac -cp ./mapscript.jar -d tests/threadtest/ tests/threadtest/*.java tests/threadtest/MapThread.java:60: cannot find symbol symbol : method getFeature(int,int) location: class edu.umn.gis.mapscript.layerObj shapeObj shape=layer.getFeature(0,-1); ^ 1 error make: *** [threadtests] Error 1 how can I solve this problem ? regards 20 May?s 2011 10:15 tarihinde Umberto Nicoletti yazd?: > Ahmet, > you gave the wrong param to?with-java-include-os-name and usually it is not > necessary to specify anything as it will correctly guess from the > environment. > Try this: > set JAVA_HOME to point to the jdk (NOTE: a full JDK is required, JRE is NOT > enough) > run ./configure (leave?with-java-include-os-name out for now) > make > cd mapscript/java > make clean > make > HTH, > Umberto > 2011/5/19 ahmet temiz >> >> hello >> >> I think I am confused about mapscript java configuration >> >> I added my configuration file >> --with-java-include-os-name=$JAVA_HOME/include >> >> But It still cannot find "jni.h" >> >> I checked $JAVA_HOME: >> >> orkun at orkun-HP:~$ ls $JAVA_HOME/include/ >> classfile_constants.h ?jawt.h ?jdwpTransport.h ?jni.h ?jvmti.h ?linux >> // jni.h seems to exist. >> >> >> what might have caused the problem ? >> >> regards >> -- >> Ahmet Temiz >> Jeoloji M?h. >> Afet ve Acil Durum Y?netimi Ba?kanl??? >> Planlama ve Zarar Azaltma Dairesi Ba?kanl??? >> Bilgi ve CBS grubu >> Eski?ehir Yolu 10. km. >> Lodumlu / Ankara >> Tel : 0 312 2872680 / 1535 >> ________________________ >> >> Ahmet Temiz >> Geological Eng. >> Information Systems - GIS Group >> Disaster and Emergency Management >> of Presidency >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From umberto.nicoletti at gmail.com Fri May 20 02:42:58 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 20 May 2011 11:42:58 +0200 Subject: [mapserver-users] confused about mapscript java configuration In-Reply-To: References: Message-ID: good catch, that's probably because of some of the recent changes in the mapserver codebase. please open a ticket and address it to me, i'll fix it asap. BR, Umberto 2011/5/20 ahmet temiz > Thank you Umberto , > > I did. > > It constructed libmapscript.so, and mapscript.jar. > > " make test" passes. > But, "make threadtests" gave > > orkun at orkun-HP:~/data/mapserver-6.0.0/mapscript/java$ make threadtests > javac -cp ./mapscript.jar -d tests/threadtest/ tests/threadtest/*.java > tests/threadtest/MapThread.java:60: cannot find symbol > symbol : method getFeature(int,int) > location: class edu.umn.gis.mapscript.layerObj > shapeObj shape=layer.getFeature(0,-1); > ^ > 1 error > make: *** [threadtests] Error 1 > > how can I solve this problem ? > > regards > > > 20 May?s 2011 10:15 tarihinde Umberto Nicoletti > yazd?: > > Ahmet, > > you gave the wrong param to with-java-include-os-name and usually it is > not > > necessary to specify anything as it will correctly guess from the > > environment. > > Try this: > > set JAVA_HOME to point to the jdk (NOTE: a full JDK is required, JRE is > NOT > > enough) > > run ./configure (leave with-java-include-os-name out for now) > > make > > cd mapscript/java > > make clean > > make > > HTH, > > Umberto > > 2011/5/19 ahmet temiz > >> > >> hello > >> > >> I think I am confused about mapscript java configuration > >> > >> I added my configuration file > >> --with-java-include-os-name=$JAVA_HOME/include > >> > >> But It still cannot find "jni.h" > >> > >> I checked $JAVA_HOME: > >> > >> orkun at orkun-HP:~$ ls $JAVA_HOME/include/ > >> classfile_constants.h jawt.h jdwpTransport.h jni.h jvmti.h linux > >> // jni.h seems to exist. > >> > >> > >> what might have caused the problem ? > >> > >> regards > >> -- > >> Ahmet Temiz > >> Jeoloji M?h. > >> Afet ve Acil Durum Y?netimi Ba?kanl??? > >> Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > >> Bilgi ve CBS grubu > >> Eski?ehir Yolu 10. km. > >> Lodumlu / Ankara > >> Tel : 0 312 2872680 / 1535 > >> ________________________ > >> > >> Ahmet Temiz > >> Geological Eng. > >> Information Systems - GIS Group > >> Disaster and Emergency Management > >> of Presidency > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > Bilgi ve CBS grubu > Eski?ehir Yolu 10. km. > Lodumlu / Ankara > Tel : 0 312 2872680 / 1535 > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > -------------- next part -------------- An HTML attachment was scrubbed... URL: From forest21000 at yahoo.cn Fri May 20 07:30:53 2011 From: forest21000 at yahoo.cn (Forest) Date: Fri, 20 May 2011 22:30:53 +0800 (CST) Subject: [mapserver-users] QuadTree Index problem In-Reply-To: <20110520095116.4FF5FE0219D@lists.osgeo.org> Message-ID: <876754.47013.qm@web92104.mail.cnh.yahoo.com> Hello,everyone. ?? I am using the Mapserver to deploy a webgis system.And I've used the shp2tree tool to generate .qix File. ? When I ZoomOut my web map,I found that,the more I zoomOut,Mapserver loads vector data more slow.Then I go to see the source code, I found that when the extent is bigger,it will search from the root to the bottom of the quadtree. ?? Is there anyway so solve the problem?And Is this a bug? ?? Wait for ur answers,thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri May 20 07:42:35 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 20 May 2011 10:42:35 -0400 Subject: [mapserver-users] QuadTree Index problem In-Reply-To: <876754.47013.qm@web92104.mail.cnh.yahoo.com> References: <876754.47013.qm@web92104.mail.cnh.yahoo.com> Message-ID: <4DD67DDB.6070004@pobox.com> On 11-05-20 10:30 AM, Forest wrote: > Hello,everyone. > I am using the Mapserver to deploy a webgis system.And I've used the shp2tree > tool to generate .qix File. > When I ZoomOut my web map,I found that,the more I zoomOut,Mapserver loads > vector data more slow.Then I go to see the source code, I found that when the > extent is bigger,it will search from the root to the bottom of the quadtree. > Is there anyway so solve the problem?And Is this a bug? > Wait for ur answers,thank you! Forest, This is the expected behavior. The typical approach to this problem is to produce a new "reduced resolution" shapefile with less refined features and less important features discarded and then use this as a distinct layer in your mapfile. The "full resolution" shapefile would be used at some scales and the simplified shapefile was be used at other scales. There are keywords you can place in Map LAYERs to restrict the layers to only be used at particular scales. 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 | Geospatial Programmer for Rent From trottier.marcandre at gmail.com Fri May 20 10:30:28 2011 From: trottier.marcandre at gmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Fri, 20 May 2011 13:30:28 -0400 Subject: [mapserver-users] opacity and outputformat In-Reply-To: References: Message-ID: url = "blablabl/cgi-wms/mapserv?map=patate&randomnumber" + mt_rand() + "&"; layer->set("connection",url) and everything is good 2011/5/19 Marc-Andr? Trottier > i'm using MapScript to create un mapObj. > finally a draw the image with Map->draw(); > > but the OPACITY is not good. Just one OPACITY, of my two layers, is set to > all image > > i got this for my Outputformat : > > OUTPUTFORMAT > NAME "aggpng24" > MIMETYPE "image/png; mode=24bit" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE "RGBA" > TRANSPARENT TRUE > END > > i think it's good. > > if the address is not the same in the parameter CONNECTION > it's all good. > > can i add a random number in my CONNECTION ? > with the mapscript > > Marc-Andr? Trottier > > > > > 2011/5/12 thomas bonfort > Opacity is set as a single integer between 0 and 100 on the layer level. > There are no limitations on setting it on multiple layers, but in that > case the opacity adds up, so if you have two layers with opacity 50, > the final opacity of the image ends up being 75. > > If your final images end up with no opacity, this could be because > your are also including a layer with full opacity, or because you are > using a format which does not support an alpha channel (i.e. jpeg) > > regards, > thomas > > On Mon, May 9, 2011 at 19:18, Marc-Andr? Trottier > wrote: > > hi! > > how can i get a output with opacity on 2 or more layers. > > with only 1 layer it's working fine but not with 2 or more. > > > > How should be written OPACITY when using IMAGEMODE RGBA ? (ALPHA) > > i tried something like OPACITY 22,22,22,22 but looks bad > > > > in all my tests, all i got was my 2 layers with full opacity (100) ... > > > > here is my mapfile : > > > > MAP > > EXTENT -8146324.306063 5632144.09953312 -8137075.425642 > 5638229.88815488 > > FONTSET "fonts" > > IMAGECOLOR 255 255 255 > > IMAGETYPE AGGA > > SIZE 732 482 > > STATUS ON > > UNITS METERS > > NAME "MS" > > > > OUTPUTFORMAT > > NAME 'AGGA' > > DRIVER AGG/PNG > > IMAGEMODE RGBA > > TRANSPARENT TRUE > > END > > > > PROJECTION > > "init=epsg:900913" > > END > > LEGEND > > IMAGECOLOR 255 255 255 > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "arial" > > MAXSIZE 256 > > MINSIZE 4 > > SIZE 10 > > TYPE TRUETYPE > > BUFFER 0 > > COLOR 255 255 255 > > FORCE FALSE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > PARTIALS TRUE > > END > > OUTLINECOLOR 0 0 0 > > POSITION LR > > POSTLABELCACHE TRUE > > STATUS EMBED > > TRANSPARENT FALSE > > END > > > > QUERYMAP > > COLOR 255 255 0 > > SIZE -1 -1 > > STATUS OFF > > STYLE HILITE > > END > > > > SCALEBAR > > ALIGN CENTER > > COLOR 0 0 0 > > IMAGECOLOR 255 255 255 > > INTERVALS 4 > > LABEL > > SIZE MEDIUM > > TYPE BITMAP > > BUFFER 0 > > COLOR 0 0 0 > > FORCE FALSE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > PARTIALS TRUE > > POSITION CR > > END > > OUTLINECOLOR 0 0 0 > > POSITION LL > > SIZE 200 3 > > STATUS EMBED > > STYLE 0 > > UNITS METERS > > END > > > > WEB > > IMAGEPATH "path" > > IMAGEURL "" > > QUERYFORMAT text/html > > LEGENDFORMAT text/html > > BROWSEFORMAT text/html > > END > > > > LAYER > > CONNECTION "PATATE3" > > CONNECTIONTYPE WMS > > DEBUG 5 > > METADATA > > "wms_srs" "EPSG:900913" > > "wms_name" "PATATE3" > > "wms_format" "image/png" > > "wms_server_version" "1.1.1" > > END > > NAME "Carte" > > PROCESSING "CLOSE_CONNECTION=NORMAL" > > PROJECTION > > "init=epsg:900913" > > END > > STATUS ON > > TRANSFORM FALSE > > TYPE RASTER > > UNITS METERS > > END > > > > LAYER > > CONNECTION "PATATE2" > > CONNECTIONTYPE WMS > > DEBUG 5 > > METADATA > > "wms_srs" "EPSG:900913" > > "opacity" "100" > > "wms_name" "PATATE2" > > "wms_format" "image/png" > > "wms_server_version" "1.1.1" > > END > > NAME "PATATE2" > > PROCESSING "CLOSE_CONNECTION=NORMAL" > > PROJECTION > > "init=epsg:900913" > > END > > STATUS ON > > TRANSFORM FALSE > > TYPE RASTER > > UNITS METERS > > END > > > > LAYER > > CONNECTION "PATATE" > > CONNECTIONTYPE WMS > > DEBUG 5 > > METADATA > > "wms_srs" "EPSG:900913" > > "opacity" "40" > > "wms_name" "PATATE" > > "wms_format" "image/png" > > "wms_server_version" "1.1.1" > > END > > NAME "PATATE" > > PROJECTION > > "init=epsg:900913" > > END > > STATUS ON > > OPACITY 40 > > TYPE RASTER > > UNITS METERS > > END > > > > END > > > > > > ______________________________ >> >> _________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From RMcCulley at county24.com Fri May 20 10:35:41 2011 From: RMcCulley at county24.com (Rob McCulley) Date: Fri, 20 May 2011 11:35:41 -0600 Subject: [mapserver-users] Mapserver 6 WMS / PostGIS Problem Message-ID: I'm trying to upgrade to Mapserver 6, but I'm having some difficulty with my PostGIS layers. I've made all of the style / symbology changes required by Version 6, as well as adding the "wms_enable_request" "*" line to the WEB section. My raster and shapefile layers work fine. Any mapfile that has a postgis layer won't work at all. On a GetCapabilities request, the cgi executable just churns away at 100% CPU usage, but never produces a result. A GetMap request produces the same result. I running on windows 7, and I've tried the binaries from both MS4W as well as the ones available from Tamas. I also tried to roll my own, but all returned the same results. It doesn't appear to be a problem with the mapfile or the postgis access, because shp2img produces images just fine. It's only WMS requests that don't work. An example mapfile is below. It works fine with shp2img, but hangs on any WMS request. Thanks in advance, Rob McCulley Mapfile: MAP NAME "WMS-test" STATUS ON SIZE 800 800 SYMBOLSET symbol.sym EXTENT 497444 5856659 566947 5971683 UNITS METERS WEB IMAGEPATH "/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/tmp/" IMAGEURL "/tmp/" METADATA "ows_enable_request" "*" "wms_title" "WMS Demo Server" "wms_onlintresource" "http://localhost/cgi-bin/mapserv.exe?map=wmstest.map&" "wms_srs" "EPSG:26912" END END CONFIG "PROJ_LIB" "C:/proj/nad/" PROJECTION "init=epsg:26912" END LAYER NAME "parcels" METADATA "wms_title" "Parcels" END TYPE POLYGON STATUS OFF CONNECTION "host=gpsserver dbname=CVR user=***** password=*****" CONNECTIONTYPE postgis DATA "shape FROM (SELECT id AS oid, geom AS shape FROM titles WHERE county = 1) AS foo USING UNIQUE oid USING SRID=26912" PROJECTION "init=epsg:26912" END CLASS NAME "Parcels" STYLE OUTLINECOLOR 0 0 0 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nicolas.Chenier at AGR.GC.CA Fri May 20 10:17:07 2011 From: Nicolas.Chenier at AGR.GC.CA (Chenier, Nicolas) Date: Fri, 20 May 2011 13:17:07 -0400 Subject: [mapserver-users] Are dynamically generated tiles cached once generated? Message-ID: Hi all, Quick question on mapserver/tilecache. Lets say a raster layer is dynamically generated with mapserver - is it cached/tiled? The next time a user loads the same area of a map at the same scale, will the tile load faster? Is this a "by default" setting or can this be configured somewhere? Let me know if you need further information! Thank you, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.suiter at gmail.com Fri May 20 11:36:51 2011 From: karl.suiter at gmail.com (Karl Suiter) Date: Fri, 20 May 2011 14:36:51 -0400 Subject: [mapserver-users] Mapserver 6 - Background color shift Message-ID: Hi All, I'm hoping someone has experienced this or knows how to fix this problem. In currently running Mapserver 5.6 on Redhat Enterprise Linux 5 (compiled from source, no issues). Wanting to test version 6, I compiled the latest Mapserver 6 release on Redhat Enterprise Linus 5. I updated the required libraries (gdal, gd, png, jpg, etc) and it did compiled successfully. Running ./mapserv -v list out the usual configuration parameters. However, when creating a map from a mapfile using cgi-bin, the map is drawn correctly except for the map background. All maps are drawn with a yellow background color. It's as if the first decimal value is set to zero or is missing (e.g., version 6 is rendering IMAGECOLOR as 255 255 0 instead of the 0 255 0 I specify in the mapfile).. I've recompiled, checked the gdal, gd and png versions, tried different mapfiles, etc., but the color shift issue persists. Here are the library versions, the mapserv -v output and a mapfile snippet. gdal 2.0.24 gd 1.8.0 geos 3.2.0 proj 4.7.0 jpeg 8c png 1.5.2 tiff 3.9.2 ./mapserv6 -v MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MAP NAME "WORLD" IMAGETYPE PNG EXTENT -180 -90 180 90 SIZE 700 500 SHAPEPATH "/var/www/html/mapdata/world/" IMAGECOLOR 255 255 255 FONTSET "/var/www/html/fonts/fonts.list" CONFIG GDAL_DATA "/usr/local/share/gdal" PROJECTION "epsg:4326" "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LAYER # States polygon layer begins here NAME BASE DATA world_adm0.shp STATUS OFF TYPE POLYGON LABELITEM "NAME" CLASSITEM "GMI_CNTRY" CLASS NAME "THE_WORLD" STYLE COLOR 176 255 176 OUTLINECOLOR 32 32 32 END EXPRESSION /./ LABEL MAXSCALEDENOM 25 COLOR 0 0 0 TYPE POINT FONT verdana SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END END END ------ Cheers, Karl From dmorissette at mapgears.com Fri May 20 13:07:28 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 20 May 2011 16:07:28 -0400 Subject: [mapserver-users] Mapserver 6 WMS / PostGIS Problem In-Reply-To: References: Message-ID: <4DD6CA00.3010404@mapgears.com> A few guesses/hints... Perhaps enable DEBUG in your postgis layer, and compare the SQL query that is generated by shp2img and by the WMS request. What are the differences? What if you try to run the same SQL query at the psql prompt or in pgadmin? Which version of MapServer are you upgrading from? Did the same WMS request work in that older version? Daniel On 11-05-20 01:35 PM, Rob McCulley wrote: > I?m trying to upgrade to Mapserver 6, but I?m having some difficulty > with my PostGIS layers. I?ve made all of the style / symbology changes > required by Version 6, as well as adding the ?wms_enable_request? ?*? > line to the WEB section. My raster and shapefile layers work fine. Any > mapfile that has a postgis layer won?t work at all. On a GetCapabilities > request, the cgi executable just churns away at 100% CPU usage, but > never produces a result. A GetMap request produces the same result. I > running on windows 7, and I?ve tried the binaries from both MS4W as well > as the ones available from Tamas. I also tried to roll my own, but all > returned the same results. > > It doesn?t appear to be a problem with the mapfile or the postgis > access, because shp2img produces images just fine. It?s only WMS > requests that don?t work. > > An example mapfile is below. It works fine with shp2img, but hangs on > any WMS request. > > Thanks in advance, > > Rob McCulley > > Mapfile: > > MAP > > NAME "WMS-test" > > STATUS ON > > SIZE 800 800 > > SYMBOLSET symbol.sym > > EXTENT 497444 5856659 566947 5971683 > > UNITS METERS > > WEB > > IMAGEPATH "/Program Files (x86)/Apache Software > Foundation/Apache2.2/htdocs/tmp/" > > IMAGEURL "/tmp/" > > METADATA > > "ows_enable_request" "*" > > "wms_title" "WMS Demo Server" > > "wms_onlintresource" "http://localhost/cgi-bin/mapserv.exe?map=wmstest.map&" > > "wms_srs" "EPSG:26912" > > END > > END > > CONFIG "PROJ_LIB" "C:/proj/nad/" > > PROJECTION > > "init=epsg:26912" > > END > > LAYER > > NAME "parcels" > > METADATA > > "wms_title" "Parcels" > > END > > TYPE POLYGON > > STATUS OFF > > CONNECTION "host=gpsserver dbname=CVR user=***** password=*****" > > CONNECTIONTYPE postgis > > DATA "shape FROM (SELECT id AS oid, geom AS shape FROM titles WHERE > county = 1) AS foo USING UNIQUE oid USING SRID=26912" > > PROJECTION > > "init=epsg:26912" > > END > > CLASS > > NAME "Parcels" > > STYLE > > OUTLINECOLOR 0 0 0 > > END > > END > > END > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jmckenna at gatewaygeomatics.com Sun May 22 04:34:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 22 May 2011 08:34:26 -0300 Subject: [mapserver-users] Mapserver 6 WMS / PostGIS Problem In-Reply-To: References: Message-ID: <4DD8F4C2.5030403@gatewaygeomatics.com> On 11-05-20 2:35 PM, Rob McCulley wrote: > I?m trying to upgrade to Mapserver 6, but I?m having some difficulty > with my PostGIS layers. I?ve made all of the style / symbology changes > required by Version 6, as well as adding the ?wms_enable_request? ?*? > line to the WEB section. My raster and shapefile layers work fine. Any > mapfile that has a postgis layer won?t work at all. On a GetCapabilities > request, the cgi executable just churns away at 100% CPU usage, but > never produces a result. A GetMap request produces the same result. I > running on windows 7, and I?ve tried the binaries from both MS4W as well > as the ones available from Tamas. I also tried to roll my own, but all > returned the same results. > > It doesn?t appear to be a problem with the mapfile or the postgis > access, because shp2img produces images just fine. It?s only WMS > requests that don?t work. > > An example mapfile is below. It works fine with shp2img, but hangs on > any WMS request. I just tested a postgis layer (PostgreSQL 8.4.1, PostGIS 1.4.0) displayed in MapServer 6.0.0 with MS4W 3.0.2 (and the 6.0 add-on), and I have no problems with a WMS GetCapabilities request. My advice is to install this on a fresh machine and re-test (maybe another PG dll is being used by mistake or something). And also follow each step suggested by Daniel. Happy long weekend to all in Canada. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From warmerdam at pobox.com Sun May 22 08:51:36 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sun, 22 May 2011 11:51:36 -0400 Subject: [mapserver-users] Issues with Bilinear Rendering of Raster Images in MapServer 6.0.0-2 In-Reply-To: <1305823369742-6382806.post@n2.nabble.com> References: <1305823369742-6382806.post@n2.nabble.com> Message-ID: <4DD93108.9040400@pobox.com> On 11-05-19 12:42 PM, vanwars wrote: > Hello, > > I just upgraded MapServer today on (Ubuntu Lucid Lynx) to 6.0.0-2 from > MapServer 5.6.6, and am experiencing a weird error with the bilinear > rendering from GeoTiff (the underlying data store) to PNG (the display > format). Whereas before there were nice tapered edges and smoothing, there > is now a strange black / blue /green border around all of our pngs. I read > through the upgrade documentation, and it seems like there have been a > number of changes to the way in which rasters are rendered, but I can't > figure out the element(s) that I might be able to adjust to get the rasters > to look fabulous again. Has anyone run into this particular issue? I've > attached before / after pngs. > > Thank you! > > Sarah > > Relevant parts of my map config file > http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer5.6BilinearInterpolation.png > MapServer5.6BilinearInterpolation.png > http://osgeo-org.1803224.n2.nabble.com/file/n6382806/MapServer6.0BilinearInterpolation.png > MapServer6.0BilinearInterpolation.png : Sarah, My take would be that previously the nodata value of the raster was being recognised, and was not getting blended with real values but now that is not the case. There have been some advances in this area though now it is looking like a regression in your case. I would appreciate it if you could prepare a ticket with sufficient detail for me to reproduce the problem. Ideally a pointer to the dataset, your mapfile and a "shp2img" command demonstrating the problem. Make sure to have it assigned to "warmerdam" or to email me after the ticket is created. 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 | Geospatial Programmer for Rent From woodbri at swoodbridge.com Sun May 22 14:03:04 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 22 May 2011 17:03:04 -0400 Subject: [mapserver-users] Are dynamically generated tiles cached once generated? In-Reply-To: References: Message-ID: <4DD97A08.3030709@swoodbridge.com> On 5/20/2011 1:17 PM, Chenier, Nicolas wrote: > Hi all, > Quick question on mapserver/tilecache. > Lets say a raster layer is dynamically generated with mapserver - is it > cached/tiled? > The next time a user loads the same area of a map at the same scale, > will the tile load faster? > Is this a "by default" setting or can this be configured somewhere? > Let me know if you need further information! Hi Nicolas, I think we need more information. What are you using to generate tiles: 1. mapserver mode=tile? This does not cache tiles 2. mapserver 5.6.x with the tilecache patch? Yes, this does cache tiles, but is deprecated and is not part of 6.0 3. tilecache.org tilecache configured to request tiles from mapserver? Yes this does cache tiles. 4. something else? What? While tilecache.org is a separate project and you can check with them on that, mod_geocache is a new apache module for caching tiles and worked well with a variety of tile requests, and proxying tile requests via WMS servers. This does cache tiles and it is replacing the mapserver tilecache patch. mod_geocache is going to be managed via the mapserver PSC with the goal to make mod_geocache more mapserver aware so configure and management of the two are more transparent. -Steve W From jgolinowski at codematix.de Mon May 23 00:12:34 2011 From: jgolinowski at codematix.de (Jana Golinowski) Date: Mon, 23 May 2011 09:12:34 +0200 Subject: [mapserver-users] Problem scaling symbols (ships) to their real size Message-ID: <4DDA08E2.3060506@codematix.de> Hi list, in our current project we need to display symbols for ships in real size at a certain scale. To realize this we use SYMBOLSCALEDENOM. The sizes of the ships are in meters and requesting that layer via WMS in a metric system (like EPSG:31467) gives us the results we want. Our Problem appears when requesting the layer in a system like EPSG:4326 (degree units). In that case the symbols are quite huge. Is there a way to get those symbols scaled to the correct real size in both kinds of reference systems? Greetings, Jana. From aborruso at tin.it Mon May 23 02:12:51 2011 From: aborruso at tin.it (iomeneandrei) Date: Mon, 23 May 2011 02:12:51 -0700 (PDT) Subject: [mapserver-users] Itemquery and postGIS Message-ID: <1306141971052-6393666.post@n2.nabble.com> Dear all, I have a strange problem using Itemquery and postGIS. I make a query using this URL: http://localhost/cgi-bin/mapserv.exe?map=/mymap.map&mode=ITEMQUERY&QLAYER=Utenz&QITEM=ulm&QSTRING=130 I have this error: prepare_database(): Query error. Error declaring cursor: ERROR: argument of AND must be type boolean, not type integer LINE 1: ... = "V_D_Bo"."gid_civ") as subquery WHERE (504421) an... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "ulm"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),ULM::text from (SELECT "V_Utenze".the_geom AS the_geom, "V_Utenze".gid AS gid, "V_D_Bo"."ULM" AS ULM FROM public."V_Utenze", public."V_D_Bo" WHERE "V_Utenze".gid_civ = "V_D_Bo"."gid_civ") as subquery WHERE (504421) and (the_geom && setSRID( 'BOX3D(2375322.8 4218981.98,2377763.97 4220813.62)'::BOX3D,3004) ) What I see is that mapserver does not write well the where condition of the subquery. Mapserver writes "WHERE (504421)" and it should be "WHERE (ulm=504421)". It seems it does not pass the QITEM parameter. I'm using MapServer version 5.2.1 for windows. My mapserver layer is a postgis layer based on a postgis view. This is its definition: DATA 'the_geom from (SELECT "V_Utenze".the_geom AS the_geom, "V_Utenze".gid AS gid, "V_D_Bo"."ULM" AS ULM FROM public."V_Utenze", public."V_D_Bo" WHERE "V_Utenze".gid_civ = "V_D_Bo"."gid_civ") as subquery using unique ULM using srid=3004' Do you have some advice for me? Thank you very much, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Itemquery-and-postGIS-tp6393666p6393666.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aborruso at tin.it Mon May 23 02:14:31 2011 From: aborruso at tin.it (iomeneandrei) Date: Mon, 23 May 2011 02:14:31 -0700 (PDT) Subject: [mapserver-users] Re: Itemquery and postGIS In-Reply-To: <1306141971052-6393666.post@n2.nabble.com> References: <1306141971052-6393666.post@n2.nabble.com> Message-ID: <1306142071849-6393673.post@n2.nabble.com> Dear All, my right query URL is: http://localhost/cgi-bin/mapserv.exe?map=/mymap.map&mode=ITEMQUERY&QLAYER=Utenz&QITEM=ULM&QSTRING=504421 Thank you ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Itemquery-and-postGIS-tp6393666p6393673.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nikos at maich.gr Mon May 23 05:20:26 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 23 May 2011 15:20:26 +0300 Subject: [mapserver-users] savequery and queryfile In-Reply-To: References: <9f88b503272fbeefba69ebeaad906cd5@maich.gr> Message-ID: <2677435a242f051c1c8d9d818233c466@maich.gr> Thanks for the reply Steve, I've managed to follow this through and it, indeed does work. The main issue I see with my users is that they have to remember to "reset" the map after they are done querying and navigating the generated querymap. I generate my own ID and have access to that info. thanx, again nikos From steve.lime at state.mn.us Mon May 23 07:15:04 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 23 May 2011 09:15:04 -0500 Subject: [mapserver-users] savequery and queryfile In-Reply-To: <2677435a242f051c1c8d9d818233c466@maich.gr> References: <9f88b503272fbeefba69ebeaad906cd5@maich.gr> <2677435a242f051c1c8d9d818233c466@maich.gr> Message-ID: In my use I add a 'clear selection' button that hides the overlay layer. The query file is present on the server but it won't be referenced until the next query action. Steve -----Original Message----- From: nikos at maich.gr [mailto:nikos at maich.gr] Sent: Monday, May 23, 2011 7:20 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] savequery and queryfile Thanks for the reply Steve, I've managed to follow this through and it, indeed does work. The main issue I see with my users is that they have to remember to "reset" the map after they are done querying and navigating the generated querymap. I generate my own ID and have access to that info. thanx, again nikos From pcreso at pcreso.com Mon May 23 13:06:47 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 23 May 2011 13:06:47 -0700 (PDT) Subject: [mapserver-users] Help needed with empty WFS layer Message-ID: <279051.40494.qm@web33206.mail.mud.yahoo.com> Hi, I figure I've missed something obvious in the mapfile, but I can't see it... can anyone else see why WMS works for this layer but WFS doesn't? GetCapabilities works fine for both WMS & WFS. I have a mapfile, (MS v5.6.6.) with a layer set up as both WMS & WFS, accessible from: http://boi.wms.niwa.co.nz/cgi-bin/mapserv?map=/srv/www/htdocs/mapdata/mafbnz/bnz_demo.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-36.855397,174.740902,-36.813416,174.798964&CRS=EPSG:4326&WIDTH=485&HEIGHT=351&LAYERS=Surveillance_native&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE (for context you can include the coastpoly layer as well) As a WMS, it works fine, all points rendered as expected, eg, the URL above in a browser. As a WFS, it returns an empty dataset. The XML from the WFS connection: http://boi.wms.niwa.co.nz/cgi-bin/mapserv?map=/srv/www/htdocs/mapdata/mafbnz/bnz_demo.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Surveillance_native p, li { white-space: pre-wrap; } is: missing
The embedded SQL works fine from psql, & it works via WMS. I have "GML_include_items" & "DUMP true" in the layer definition in the mapfile, which is below. ? LAYER ??? NAME "Surveillance_native" ??? TYPE point ??? STATUS on ??? DUMP true ??? CONNECTIONTYPE POSTGIS ??? CONNECTION "dbname=xxx user=xxx host=localhost port=5432" ??? DATA "geom from (SELECT t.stid as gid, ??????????????????????????? n.taxon_name as name, ??????????????????????????? s.geom_point as geom ???????????????????? FROM surveillance.samples s, ????????????????????????? public.taxon_names n, ????????????????????????? surveillance.s_taxa t ???????????????????? WHERE s.site_id = t.site_id ?????????????????????? and t.key=n.key ?????????????????????? and n.biosecurity_status = 'Native' ???????????????????? ) as myquery using unique gid using srid=4326" ??? METADATA ????? "wms_title" "Surveillance_native" ????? "wms_srs"?? "EPSG:4326" ????? "wfs_title" "Surveillance_native"??? ????? "wfs_srs"?? "EPSG:4326" ????? "wfs_version" "1.0.0" ????? "wfs_typename" "Surveillance_native" ????? "gml_include_items" "all" ????? "wfs_extent" "177 -48 179 -34" ??? END ??? CLASS ????? NAME "Surv_native" ????? STYLE ??????? SYMBOL "circle" ??????? SIZE 5 ??????? COLOR 255 0 0 ??????? ANTIALIAS true ????? END ??? END ??? PROJECTION ????? "init=epsg:4326" ??? END ? END # layer Any advice appreciated... ? Thanks, ? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Mon May 23 16:58:34 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Tue, 24 May 2011 01:58:34 +0200 Subject: [mapserver-users] Help needed with empty WFS layer In-Reply-To: <279051.40494.qm@web33206.mail.mud.yahoo.com> References: <279051.40494.qm@web33206.mail.mud.yahoo.com> Message-ID: Hello, Most of the time, this error is related to spatial extent or units you use at map or layer level e.g. the archives like http://osgeo-org.1803224.n2.nabble.com/wfs-error-lt-gml-null-gt-missing-lt-gml-null-gt-td5074106.html Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From debasish.sahu at gmail.com Mon May 23 19:31:27 2011 From: debasish.sahu at gmail.com (Debasish Sahu) Date: Tue, 24 May 2011 08:01:27 +0530 Subject: [mapserver-users] WMS SLD ExternalGraphic Rendering Issue Message-ID: Hi, When I try to render a Polygon shapefile with a SLD file using the ExternalGraphic , the mapserver crashes. After investigating the cause by putting the DEBUG in map file and analyzing the temporary map file that is created , it seems the SYMBOL , TYPE Pixmap tags are not getting created in the map file. Only the Symbol tag in the Layer is present. The image file though gets downloaded into the temp dir. Any ideas please ? Do I need to make an entry in the symbolset file ? LAYER DATA "states" METADATA "wms_srs" "EPSG:4326" "wms_title" "states" END # METADATA NAME "states" PROJECTION "init=epsg:4326" END # PROJECTION STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "states" STYLE ANGLE 0 COLOR 255 0 0 OFFSET 0 0 SIZE 10 SYMBOL "http://demo.mapserver.org/ogc-demos/etc/images/target-1.gif" END # STYLE STYLE ANGLE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 END # STYLE END # CLASS END # LAYER -- Thanks and Warm Regards Debasish Sahu -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborruso at tin.it Tue May 24 00:45:35 2011 From: aborruso at tin.it (iomeneandrei) Date: Tue, 24 May 2011 00:45:35 -0700 (PDT) Subject: [mapserver-users] Re: Itemquery and postGIS In-Reply-To: <1306142071849-6393673.post@n2.nabble.com> References: <1306141971052-6393666.post@n2.nabble.com> <1306142071849-6393673.post@n2.nabble.com> Message-ID: <1306223135043-6397568.post@n2.nabble.com> Dear all, I have solved. I have changed my query URL inserting two time the name of my field and using URL Escape Codes for "=" character. My URL now is: http://localhost/cgi-bin/mapserv.exe?map=/mymap.map&mode=ITEMQUERY&QLAYER=Utenz&QITEM=ULM&QSTRING=ULM%3D504421 This is a solution but I think that it's not a correct behavioral for MapServer. Best regards, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Itemquery-and-postGIS-tp6393666p6397568.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mpapec at yahoo.com Tue May 24 01:35:58 2011 From: mpapec at yahoo.com (mpapec) Date: Tue, 24 May 2011 01:35:58 -0700 (PDT) Subject: [mapserver-users] populating EPSG file Message-ID: <1306226158812-6397699.post@n2.nabble.com> I would like to add values for EPSG:3765 projection. Is there some tutorial or web calculator to do this? ps. I've only found this entry with comments regarding 3765 ---------- # Unknown # Unable to translate coordinate system EPSG:3765 into PROJ.4 format. tnx in advance -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/populating-EPSG-file-tp6397699p6397699.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue May 24 01:52:23 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 24 May 2011 11:52:23 +0300 Subject: [mapserver-users] populating EPSG file References: <1306226158812-6397699.post@n2.nabble.com> Message-ID: Hi, Found this from a new MS4W installation. # HTRS96 / Croatia TM <3765> +proj=tmerc +lat_0=0 +lon_0=16.5 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <> I also had those #Unknows lines in the epsg file of some old MS4W installation. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: mpapec L?hetetty: ti 24.5.2011 11:35 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] populating EPSG file I would like to add values for EPSG:3765 projection. Is there some tutorial or web calculator to do this? ps. I've only found this entry with comments regarding 3765 ---------- # Unknown # Unable to translate coordinate system EPSG:3765 into PROJ.4 format. tnx in advance -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/populating-EPSG-file-tp6397699p6397699.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 mpapec at yahoo.com Tue May 24 03:42:48 2011 From: mpapec at yahoo.com (mpapec) Date: Tue, 24 May 2011 03:42:48 -0700 (PDT) Subject: [mapserver-users] Re: populating EPSG file In-Reply-To: References: <1306226158812-6397699.post@n2.nabble.com> Message-ID: <1306233768098-6398017.post@n2.nabble.com> Tnx! I've checked latest version of mapserver and epsg:3765 is included in it (I'm currently running ms4w 2.3.1) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/populating-EPSG-file-tp6397699p6398017.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue May 24 04:56:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 24 May 2011 08:56:26 -0300 Subject: [mapserver-users] populating EPSG file In-Reply-To: <1306226158812-6397699.post@n2.nabble.com> References: <1306226158812-6397699.post@n2.nabble.com> Message-ID: <4DDB9CEA.5020006@gatewaygeomatics.com> On 11-05-24 5:35 AM, mpapec wrote: > I would like to add values for EPSG:3765 projection. Is there some tutorial > or web calculator to do this? > > ps. I've only found this entry with comments regarding 3765 > ---------- > # Unknown > # Unable to translate coordinate system EPSG:3765 into PROJ.4 format. A nice page to keep bookmarked is this PROJ page explaining parameters: http://trac.osgeo.org/proj/wiki/GenParms -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From amkha.nazou at gmail.com Tue May 24 05:05:18 2011 From: amkha.nazou at gmail.com (Amkha VAYAPHATH) Date: Tue, 24 May 2011 19:05:18 +0700 Subject: [mapserver-users] Error Loading Map on Win Serv 2003 Message-ID: Hi, I'm a rookie on mapserver. Is there any one can help me to solve the problem below: I try to run web mapping on windows server 2003. It generates error saying: " msLoadMap: Unable to accessfile(.../mymap/Web.map) Amkha -- *Amkha Vayaphath* *Mobile: 856-20-22002477* www.softechlao.ucoz.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue May 24 06:12:30 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 24 May 2011 09:12:30 -0400 Subject: [mapserver-users] populating EPSG file In-Reply-To: <4DDB9CEA.5020006@gatewaygeomatics.com> References: <1306226158812-6397699.post@n2.nabble.com> <4DDB9CEA.5020006@gatewaygeomatics.com> Message-ID: <4DDBAEBE.5010504@pobox.com> > On 11-05-24 5:35 AM, mpapec wrote: >> I would like to add values for EPSG:3765 projection. Is there some tutorial >> or web calculator to do this? >> >> ps. I've only found this entry with comments regarding 3765 >> ---------- >> # Unknown >> # Unable to translate coordinate system EPSG:3765 into PROJ.4 format. Hi, This is the current entry for EPSG:3765 in the proj "epsg" init file. # HTRS96 / Croatia TM <3765> +proj=tmerc +lat_0=0 +lon_0=16.5 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <> 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 | Geospatial Programmer for Rent From mrdouville at shaw.ca Tue May 24 14:57:29 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 24 May 2011 14:57:29 -0700 (PDT) Subject: [mapserver-users] Re: how do min/max scale filters work? In-Reply-To: References: <20110406091033.0EXJ7.16017.imail@eastrmwml30> <20110406132210.6SF2H.19770.imail@eastrmwml39> Message-ID: <1306274249150-6400635.post@n2.nabble.com> Have you been able to get the MAXSCALEDENOM to work in this case? I am see discrepancies in the way it respects MAXSCALEDENOM depending on which EPSG projection I request in my WMS GETMAP request..(using Mapserver 6.0) Projection is set at MAP level as all SDE layers are in EPSG:3005.. PROJECTION "init=epsg:3005" END #projection IE.. This respects scale dependency..(zoomed out greater than MAXSCALEDENOM 42000) http://server/mapserver6/base6?service=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=TWTR_LINES&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:3005&BBOX=1098893.28235966,374108.170310702,1181083.70268062,432796.317606444&WIDTH=1217&HEIGHT=869 log says this.. [Tue May 24 14:45:31 2011].114000 msDrawMap(): rendering using outputformat named aggpng24 (AGG/PNG). [Tue May 24 14:45:31 2011].114000 msLayerIsVisible(): Skipping layer (TWTR_LINES) because LAYER.MAXSCALE is too small for this MAP scale [Tue May 24 14:45:31 2011].114000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Tue May 24 14:45:31 2011].114000 msLayerIsVisible(): Skipping layer (TWTR_LINES) because LAYER.MAXSCALE is too small for this MAP scale [Tue May 24 14:45:31 2011].114000 msDrawMap(): Drawing Label Cache, 0.000s this does not respect MAXSCALEDENOM.. (get very busy image after 30 secs ) http://server/mapserver6/base6?service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&BBOX=-124.185652285947,48.4090479408979,-122.255909410219,49.4369750954166&WIDTH=811&HEIGHT=432&FORMAT=image/png&STYLES=&layers=TWTR_LINES Layer is defined as such: LAYER EXTENT 200000 200000 1900000 1900000 MAXSCALEDENOM 42000 debug 5 GROUP "Base_Mapping_20K" NAME 'TWTR_LINES' CONNECTIONTYPE sde CONNECTION 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' DATA 'WHSE_BASEMAPPING.TRIM_WATER_LINES,GEOMETRY' TYPE line CLASSITEM FCODE STATUS ON CLASS NAME "Canal" EXPRESSION GA03950000 STYLE COLOR 0 0 255 WIDTH 2 END STYLE COLOR 0 0 255 WIDTH 2 OFFSET 0 10 END END ...... METADATA wms_title "Water - Lines (1:20K)" wms_metadataurl_format "html" wms_metadataurl_href "XXXXXXXXXXXXXXXXXXXXX" wms_metadataurl_type "TC211" wms_srs "EPSG:3005 EPSG:3785 EPSG:102190 EPSG:26907 EPSG:26707 EPSG:32607 EPSG:3857 EPSG:42102 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612 EPSG:54004" wfs_title "Water - Lines (1:20K)" gml_geometries "geom" gml_geom_type "line" gml_include_items "all" gml_exclude_items "GEOMETRY,OBJECTID" ows_include_items "all" ows_exclude_items "GEOMETRY,OBJECTID" END #end PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE TEMPLATE "foo.html" END #end LAYER Many thanks for you help! Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-do-min-max-scale-filters-work-tp6246019p6400635.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jgolinowski at codematix.de Wed May 25 00:18:42 2011 From: jgolinowski at codematix.de (Jana Golinowski) Date: Wed, 25 May 2011 09:18:42 +0200 Subject: [mapserver-users] Problem scaling symbols (ships) to their real size In-Reply-To: <4DDBBCFC.9060802@umb.no> References: <4DDA08E2.3060506@codematix.de> <4DDBBCFC.9060802@umb.no> Message-ID: <4DDCAD52.50204@codematix.de> > This might be a bug. > > You could test using sizeunits instead of symbolscaledenom > as a workaround: > > sizeunits meters > > And then specify the height of the symbol in meters. > > H?vard I think I could solve it. Using SIZEUNITS without SYMBOLSCALEDENOM isn't enough. In that case the symbols are not scaled but that's what I need. Changing MAP->PROJECTION to the projection of those layers (EPSG:4326) fixed the problem. Now the symbol sizes are ok for WMS request in metric and geographical systems. Greetings, Jana. From dmorissette at mapgears.com Wed May 25 08:59:40 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 25 May 2011 11:59:40 -0400 Subject: [mapserver-users] mapscript owsdispatch does not work, cgi mapserver does In-Reply-To: References: Message-ID: <4DDD276C.50202@mapgears.com> Did you solve this? This kind of stuff could happen if you have multiple copies of GDAL/OGR installed on the system, one with Xerces and one without. Make sure your script is really using the copy of GDAL/OGR that you think it is. On 11-05-19 08:37 AM, Jachym Cepicky wrote: > Hi, > > I have strange problem, I need to use mapobject.OWSDispatch with WMS > GetMap request, and I do expect image at the output. > > I have prepared small python wrapper script, which should load the > mapfile, perform owsdispatch and return the result. It does not work > (saying something about missing xerces support, which is not true, see > below). > > When I use *exactly the same* mapfile, but with simple shell wrapper > (so no mapscript), it works perfectly. > > Examples: > > (1) Shell script wrapper: > > #!/bin/sh > export MS_MAPFILE="/tmp/wfs02.map" > /usr/lib/cgi-bin/mapserv > > http://localhost/cgi-bin/owsviewer2.sh?LAYERS=kraje&TRANSPARENT=TRUE&FORMAT=image%2Fpng&EXCEPTIONS=XML&VERSION=1.3.0&STYLES=default&CRS=EPSG%3A4326&SERVICE=WMS&REQUEST=GetMap&BBOX=49,12,51,18&WIDTH=1000&HEIGHT=634 > > -> Image is returned > > > > (2) Python script: > > #!/usr/bin/python > import mapscript > mapobj = mapscript.mapObj("/tmp/wfs02.map") > request = mapscript.OWSRequest() > request.loadParams() > print mapobj.OWSDispatch(request) > > http://localhost/cgi-bin/owsviewer2.py?LAYERS=kraje&TRANSPARENT=TRUE&FORMAT=image%2Fpng&EXCEPTIONS=XML&VERSION=1.3.0&STYLES=default&CRS=EPSG%3A4326&SERVICE=WMS&REQUEST=GetMap&BBOX=49,12,51,18&WIDTH=1000&HEIGHT=634 > > -> > > > xmlns="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"> > > msDrawMap(): Image handling error. Failed to draw layer named'kraje'. > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `kraje'. > File /tmp/mapserv/4dd50e3f_54c_0..tmp.gml appears to be GML but the > GML reader can't > be instantiated, likely because Xerces support wasn't > configured in. > > > > > What am I doing wrong? > > Thanks > > Jachym > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From matheus.lacarini at sntgeo.com.br Wed May 25 11:15:06 2011 From: matheus.lacarini at sntgeo.com.br (matheus lacarini) Date: Wed, 25 May 2011 11:15:06 -0700 (PDT) Subject: [mapserver-users] IDENTIFY COMAND ERROR Message-ID: <1306347306716-6403867.post@n2.nabble.com> Hello, I?m from Brazil and i have a medium english so be patiente I have problems to input a indentify on openlayers .The mapa is a farm and i have to input this identify for a vegetation polygon .How i do this? OBS: ? I did execute the search comand, but in the popup show me this error: mapserver WMS server error. Requested layer(s) are not queryable, and i tried to execute the map Server example that stay in : www.openlayers.org i add the buttons and the optput search ,but both are null or did start the search. ? The mapfile are a Qgis exported file. Thanks Matheus Lacarini -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/IDENTIFY-COMAND-ERROR-tp6403867p6403867.html Sent from the Mapserver - User mailing list archive at Nabble.com. From eduardo.kanegae at gmail.com Thu May 26 03:26:34 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Thu, 26 May 2011 07:26:34 -0300 Subject: [mapserver-users] OGRinfo works, but a MapServer test mode=map DOES NOT Message-ID: Hi all, I?m running Windows Server 2008 R2 Enterprise SP1 64bits using?MS4W 3.0.1 with MapServer?CGI 5.6.6 grabed from MapTools.org My spatial data is on SQL Server 2008 + MsSqlSpatial 0.1.1 Lib and I?ve set an ODBC DSN connection using SQL Server Native Driver 10 ( using Control Panel -> ODBC Admin -> System DSN and also C:\Windows\SysWOW64\odbcad32.exe tool ) When I run ogrinfo using: $ ogrinfo -so "MSSQL:dsn=my_dsn;server=(local);database=my_database;tables=dbo.my_table;uid=my_user;pwd=my_passwd" my_table it works and dumps info like: ... INFO: Open of `MSSQL:dsn=nucoffee;server=(local);database=nucoffee;tables=dbo.fazendas2;uid=db_nucoffee;pwd=@&NuCoFfEe&@' using driver `MSSQLSpatial' successful. ... and so on! BUT, when trying a MapServer CGI mode map request like: http://my_server/cgi-bin/mapserv.exe?map=e:/my_mapfile.map&mode=map&layers=all&map_size=800+600 I only got the error: msDrawMap(): Image handling error. Failed to draw layer named 'pol_my_layer'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `pol_my_layer'. Unable to initialize ODBC connection to DSN for my_user/my_passwd at my_dsn, [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Can anybody give me a clue on that? My LAYER mapfile part is defined as : ********************** LAYER NAME "pol_my_layer" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION " ODBC:my_user/my_passwd at my_dsn dbo.vw_pol_my_spatial_view WGS84 wkbUnknown " DATA "pol_my_layer" FILTER "329" FILTERITEM "farm_id" PROCESSING "CLOSE_CONNECTION=DEFER" END ... END ********************** best regards, -- Eduardo Patto Kanegae From matheus.lacarini at sntgeo.com.br Thu May 26 05:04:32 2011 From: matheus.lacarini at sntgeo.com.br (Matheus Lacarini) Date: Thu, 26 May 2011 09:04:32 -0300 Subject: [mapserver-users] (no subject) Message-ID: <4dde41d4.23af650a.3fe8.2b37@mx.google.com> matheus.lacarini at sntgeo.com.br cid:part1.02060705.09020105 at sntgeo.com.brMatheus Lacarini Centro de Servi?os Compartilhados de Tecnologia da Informa??o -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1674 bytes Desc: not available URL: From mpapec at yahoo.com Thu May 26 06:13:05 2011 From: mpapec at yahoo.com (mpapec) Date: Thu, 26 May 2011 06:13:05 -0700 (PDT) Subject: [mapserver-users] WMS client misalignment, access to BBOX Message-ID: <1306415585023-6406938.post@n2.nabble.com> I would like to tell WMS layer to take my BBOX url values calculated on the fly (using mapscript) when pulling image from WMS server, ie. BBOX=5630486.41644111,5124593.93648124,5631312.94103496,5125101.75879526 I know that layer misalignment should be corrected using proper EPSG codes, but this just doesn't work and I see no other alternative but to calculate bbox on my own (my oracle spatial has no srid, and WMS is using epsg:31275). -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-client-misalignment-access-to-BBOX-tp6406938p6406938.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Thu May 26 07:14:10 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 26 May 2011 08:14:10 -0600 Subject: [mapserver-users] OGRinfo works, but a MapServer test mode=map DOES NOT In-Reply-To: References: Message-ID: <4DDE6032.5030609@geoanalytic.com> Eduardo, What happens when you use ogrinfo to access it via ODBC: ogrinfo ODBC:my_user/my_passwd at my_dsn or if you put the connection in a vrt file and use ogrinfo on it? Best Regards, Brent Fraser On 5/26/2011 4:26 AM, Eduardo Kanegae wrote: > Hi all, > > I?m running Windows Server 2008 R2 Enterprise SP1 64bits using MS4W > 3.0.1 with MapServer CGI 5.6.6 grabed from MapTools.org > My spatial data is on SQL Server 2008 + MsSqlSpatial 0.1.1 Lib and > I?ve set an ODBC DSN connection using SQL Server Native Driver 10 > ( using Control Panel -> ODBC Admin -> System DSN and also > C:\Windows\SysWOW64\odbcad32.exe tool ) > > When I run ogrinfo using: > $ ogrinfo -so "MSSQL:dsn=my_dsn;server=(local);database=my_database;tables=dbo.my_table;uid=my_user;pwd=my_passwd" > my_table > > it works and dumps info like: > ... > INFO: Open of `MSSQL:dsn=nucoffee;server=(local);database=nucoffee;tables=dbo.fazendas2;uid=db_nucoffee;pwd=@&NuCoFfEe&@' > using driver `MSSQLSpatial' successful. > ... and so on! > > BUT, when trying a MapServer CGI mode map request like: > http://my_server/cgi-bin/mapserv.exe?map=e:/my_mapfile.map&mode=map&layers=all&map_size=800+600 > I only got the error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'pol_my_layer'. msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `pol_my_layer'. Unable to initialize ODBC > connection to DSN for my_user/my_passwd at my_dsn, [Microsoft][ODBC > Driver Manager] Data source name not found and no default driver > specified > > Can anybody give me a clue on that? > > My LAYER mapfile part is defined as : > > ********************** > LAYER > NAME "pol_my_layer" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION " > > ODBC:my_user/my_passwd at my_dsn > dbo.vw_pol_my_spatial_view > WGS84 > wkbUnknown > > > " > DATA "pol_my_layer" > FILTER "329" > FILTERITEM "farm_id" > PROCESSING "CLOSE_CONNECTION=DEFER" > END > ... > END > ********************** > > best regards, > > -- > Eduardo Patto Kanegae > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu May 26 07:16:19 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 26 May 2011 11:16:19 -0300 Subject: [mapserver-users] OGRinfo works, but a MapServer test mode=map DOES NOT In-Reply-To: References: Message-ID: <4DDE60B3.4030709@gatewaygeomatics.com> Hello, Viewing SQLServer2008 data in MapServer with MS4W 3.0.1 is done through a plugin, and you should follow instructions in your local MS4W README file for this (such as http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#microsoft-sql-server-2008) If you have any further questions, or comments, or problems with this, please use the MS4W mailing list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users) Thank you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-05-26 7:26 AM, Eduardo Kanegae wrote: > Hi all, > > I?m running Windows Server 2008 R2 Enterprise SP1 64bits using MS4W > 3.0.1 with MapServer CGI 5.6.6 grabed from MapTools.org > My spatial data is on SQL Server 2008 + MsSqlSpatial 0.1.1 Lib and > I?ve set an ODBC DSN connection using SQL Server Native Driver 10 > ( using Control Panel -> ODBC Admin -> System DSN and also > C:\Windows\SysWOW64\odbcad32.exe tool ) > > When I run ogrinfo using: > $ ogrinfo -so "MSSQL:dsn=my_dsn;server=(local);database=my_database;tables=dbo.my_table;uid=my_user;pwd=my_passwd" > my_table > > it works and dumps info like: > ... > INFO: Open of `MSSQL:dsn=nucoffee;server=(local);database=nucoffee;tables=dbo.fazendas2;uid=db_nucoffee;pwd=@&NuCoFfEe&@' > using driver `MSSQLSpatial' successful. > ... and so on! > > BUT, when trying a MapServer CGI mode map request like: > http://my_server/cgi-bin/mapserv.exe?map=e:/my_mapfile.map&mode=map&layers=all&map_size=800+600 > I only got the error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'pol_my_layer'. msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `pol_my_layer'. Unable to initialize ODBC > connection to DSN for my_user/my_passwd at my_dsn, [Microsoft][ODBC > Driver Manager] Data source name not found and no default driver > specified > > Can anybody give me a clue on that? > > My LAYER mapfile part is defined as : > > ********************** > LAYER > NAME "pol_my_layer" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION " > > ODBC:my_user/my_passwd at my_dsn > dbo.vw_pol_my_spatial_view > WGS84 > wkbUnknown > > > " > DATA "pol_my_layer" > FILTER "329" > FILTERITEM "farm_id" > PROCESSING "CLOSE_CONNECTION=DEFER" > END > ... > END From Asad.Ullah at sigmaspace.com Thu May 26 09:52:03 2011 From: Asad.Ullah at sigmaspace.com (Asad Ullah) Date: Thu, 26 May 2011 16:52:03 +0000 Subject: [mapserver-users] Controling the amount of concurrent GetMap requests Message-ID: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> List, Does anybody know how to control number of concurrent GetMap requests in MapServer? Thanks, Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.kanegae at gmail.com Thu May 26 11:02:11 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Thu, 26 May 2011 15:02:11 -0300 Subject: [mapserver-users] OGRinfo works, but a MapServer test mode=map DOES NOT In-Reply-To: <4DDE6032.5030609@geoanalytic.com> References: <4DDE6032.5030609@geoanalytic.com> Message-ID: Thanks Brent and Jeff for your suggestions. My old scenario was: - the system was running fine on Windows 2003 Server 64bits with SQL 2008+ MsSqlSpatial Lib using MapServer with ODBC But now, the server was upgraded to Windows Server 2008 64bits with SQL 2008R2. And the only way I finally found to put it to work was: - use MSSQL OGR Driver but DOT NOT use geometry field type of SQL 2008 ( absolutely slow! ) - instead of 2008 field I translate 2005 geom field ( MsSqlSpatial lib) to WKT using: ... ST.AsText(v.geom_2005) AS geom_2008 And now it?s working! Thanks for helping. best -- Eduardo Patto Kanegae 2011/5/26 Brent Fraser : > Eduardo, > > ?What happens when you use ogrinfo to access it via ODBC: > > ogrinfo ODBC:my_user/my_passwd at my_dsn > > or if you put the connection in a vrt file and use ogrinfo on it? > > Best Regards, > Brent Fraser > > > On 5/26/2011 4:26 AM, Eduardo Kanegae wrote: >> >> Hi all, >> >> I?m running Windows Server 2008 R2 Enterprise SP1 64bits using MS4W >> 3.0.1 with MapServer CGI 5.6.6 grabed from MapTools.org >> My spatial data is on SQL Server 2008 + MsSqlSpatial 0.1.1 Lib and >> I?ve set an ODBC DSN connection using SQL Server Native Driver 10 >> ( using Control Panel -> ?ODBC Admin -> ?System DSN and also >> C:\Windows\SysWOW64\odbcad32.exe tool ) >> >> When I run ogrinfo using: >> $ ogrinfo -so >> "MSSQL:dsn=my_dsn;server=(local);database=my_database;tables=dbo.my_table;uid=my_user;pwd=my_passwd" >> my_table >> >> it works and dumps info like: >> ... >> INFO: Open of >> `MSSQL:dsn=nucoffee;server=(local);database=nucoffee;tables=dbo.fazendas2;uid=db_nucoffee;pwd=@&NuCoFfEe&@' >> ? ? ? using driver `MSSQLSpatial' successful. >> ... and so on! >> >> BUT, when trying a MapServer CGI mode map request like: >> >> http://my_server/cgi-bin/mapserv.exe?map=e:/my_mapfile.map&mode=map&layers=all&map_size=800+600 >> I only got the error: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'pol_my_layer'. msOGRFileOpen(): OGR error. Open failed for OGR >> connection in layer `pol_my_layer'. Unable to initialize ODBC >> connection to DSN for my_user/my_passwd at my_dsn, [Microsoft][ODBC >> Driver Manager] Data source name not found and no default driver >> specified >> >> Can anybody give me a clue on that? >> >> My LAYER mapfile part is defined as : >> >> ********************** >> LAYER >> ? ? ? ? ? ? ? ?NAME ? ? ? ? ? ? ? ? ? ?"pol_my_layer" >> ? ? ? ? ? ? ? ?TYPE ? ? ? ? ? ? ? ? ? ?POLYGON >> ? ? ? ? ? ? ? ?CONNECTIONTYPE OGR >> ? ? ? ? ? ? ? ?CONNECTION " >> ? ? >> >> ?ODBC:my_user/my_passwd at my_dsn >> ? ? ? ? ? ? ? ?dbo.vw_pol_my_spatial_view >> ? ? ? ? ? ? ? ?WGS84 >> ? ? ? ? ? ? ? ?wkbUnknown >> ? ? ? ? ? ? ? ? >> ? ? >> " >> ? ? ? ? ? ? ? ?DATA "pol_my_layer" >> ? ? ? ? ? ? ? ?FILTER "329" >> ? ? ? ? ? ? ? ?FILTERITEM "farm_id" >> ? ? ? ? ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" >> ? ? ? ?END >> ? ? ? ?... >> END >> ********************** >> >> best regards, >> >> -- >> Eduardo Patto Kanegae >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From Bob.Bistrais at maine.gov Thu May 26 11:13:46 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 26 May 2011 14:13:46 -0400 Subject: [mapserver-users] Question on predicates Message-ID: <4EFF8BB964547748A07CA32961810C041B50C390@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm trying to construct a predicate to be used in a query. I need to select based on two items, however, such as "where item1 = 'this' and item2 =' that'", please excuse my informal SQL :) I don't know how to construct a predicate that way. Is it possible to do this, and what would it look like? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu May 26 11:57:26 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 26 May 2011 14:57:26 -0400 Subject: [mapserver-users] Controling the amount of concurrent GetMap requests In-Reply-To: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> References: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> Message-ID: <4DDEA296.1050203@swoodbridge.com> On 5/26/2011 12:52 PM, Asad Ullah wrote: > List, > > Does anybody know how to control number of concurrent GetMap requests in > MapServer? You can't do this within mapserver because each instance of mapserver is not aware that there are any other instances running. Presumably, you would have to look at Apache or IIS and see what controls there are to limit concurrent requests to a URL or something like that. I more basic question in my mind is what do you want to happen if this limit is exceeded. What would you expect the user experience would be if you were to make a limit+1 request? would it get rejected, queued up until another request finished? Anyway probably not a mapserver question other than to say mapserver does not do this. -Steve W From bfraser at geoanalytic.com Thu May 26 12:11:33 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 26 May 2011 13:11:33 -0600 Subject: [mapserver-users] Question on predicates In-Reply-To: <4EFF8BB964547748A07CA32961810C041B50C390@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041B50C390@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4DDEA5E5.3040407@geoanalytic.com> Bob, If this is for your GeoMoose installation have a look at the "Search Parcels" function on the live demo (http://www.geomoose.org/demo/geomoose2/geomoose.html), and the [new] General Query Service doc (http://www.geomoose.org/services/query.php.html) Best Regards, Brent Fraser On 5/26/2011 12:13 PM, Bistrais, Bob wrote: > > I'm trying to construct a predicate to be used in a query. I need to > select based on two items, however, such as "where item1 = 'this' and > item2 =' that'", please excuse my informal SQL :) I don't know how to > construct a predicate that way. Is it possible to do this, and what > would it look like? > > > _______________________________________________ > 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 mwkorver at gmail.com Thu May 26 14:01:10 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 26 May 2011 16:01:10 -0500 Subject: [mapserver-users] Controling the amount of concurrent GetMap requests In-Reply-To: <4DDEA296.1050203@swoodbridge.com> References: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> <4DDEA296.1050203@swoodbridge.com> Message-ID: I would think that the thinking here is that a server only scales well to some number of concurrent requests. That beyond that number, all requests suffer. In this case it's better to queue the requests rather than try to process them, meaning queuing improves performance overall. On Thu, May 26, 2011 at 1:57 PM, Stephen Woodbridge wrote: > On 5/26/2011 12:52 PM, Asad Ullah wrote: >> >> List, >> >> Does anybody know how to control number of concurrent GetMap requests in >> MapServer? > > You can't do this within mapserver because each instance of mapserver is not > aware that there are any other instances running. Presumably, you would have > to look at Apache or IIS and see what controls there are to limit concurrent > requests to a URL or something like that. > > I more basic question in my mind is what do you want to happen if this limit > is exceeded. What would you expect the user experience would be if you were > to make a limit+1 request? would it get rejected, queued up until another > request finished? > > Anyway probably not a mapserver question other than to say mapserver does > not do this. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Thu May 26 14:07:33 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 26 May 2011 17:07:33 -0400 Subject: [mapserver-users] Controling the amount of concurrent GetMap requests In-Reply-To: References: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> <4DDEA296.1050203@swoodbridge.com> Message-ID: <4DDEC115.408@pobox.com> On 11-05-26 05:01 PM, Mark Korver wrote: > I would think that the thinking here is that a server only scales well > to some number of concurrent requests. That beyond that number, all > requests suffer. In this case it's better to queue the requests > rather than try to process them, meaning queuing improves performance > overall. Folks, I will just note that Apache + FastCGI makes it pretty easy to limit the number of concurrent requests being processed and when saturated the new requests are queued. I presume they would timeout after a while if there is just too much traffic. 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 | Geospatial Programmer for Rent From rdmailings at duif.net Thu May 26 14:58:02 2011 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Thu, 26 May 2011 23:58:02 +0200 Subject: [mapserver-users] mapserver5 postgis connection problem Message-ID: <4DDECCEA.6010400@duif.net> Like somebody else in the list I have a strange problem with MS6 on a fresh RHEL6 machine. Running the same data and mapfile in an older MS works. Below as much info I could get. Anybody a clue? I can recompile or add debug statements if nessecary (will be on irc tomorrow morning) Regards, Richard Duivenvoorde I fail to get a postgres connection log somewhere on this machine... a new installed RHEL6 machine: Red Hat Enterprise Linux Server release 6.0 (Santiago) running "PostgreSQL 8.4.8 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13), 64-bit" and "1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" mapserver -v gives MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I've done a gdal and mapserver compile myself A database with OSM data and mapfile with connectionstring like: CONNECTION "host=localhost dbname=osm password=xxxx user=geo" keeps saying: Permission denied Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? ) with connect string 'host=localhost dbname=osm password=******* user=geo' while: - I can connect with that user/password via psql - can use shp2img and the same mapfile (generating a map) - can do ogrinfo -ro PG:'host=localhost user=geo password=xxxxxx dbname=osm' -sql "select count(*) from mytable" - even tried trust for all hosts in pg_hba.conf setting debug in LAYER at 5 -- first part is from wms request (failing connection): [Thu May 26 23:45:30 2011].566614 msPostGISLayerOpen called: way28992 from nl_osm_point using unique osm_id using srid=28992 [Thu May 26 23:45:30 2011].566704 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Thu May 26 23:45:30 2011].568103 msPostGISLayerOpen: Connection failure. [Thu May 26 23:45:30 2011].568123 msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? could not connect to server: Permission denied Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? ) with connect string 'host=localhost dbname=osm password=******* user=geo' Is the database running? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? [Thu May 26 23:45:30 2011].568138 msDrawMap(): Image handling error. Failed to draw layer named 'plaatsen'. [Thu May 26 23:45:30 2011].568224 msPostGISLayerClose called: way28992 from nl_osm_point using unique osm_id using srid=28992 [Thu May 26 23:45:30 2011].568238 freeLayer(): freeing layer at 0x1c67250. [Thu May 26 23:45:30 2011].568243 msPostGISLayerIsOpen called. [Thu May 26 23:45:30 2011].568251 freeLayer(): freeing layer at 0x1c6a7f0. [Thu May 26 23:45:30 2011].568255 msPostGISLayerIsOpen called. -- This part is from shp2img (connection succesfull): [Thu May 26 23:47:55 2011].3388 msLayerIsVisible(): Skipping layer (plaatsen) because no CLASS in the layer is in-scale for this MAP scale [Thu May 26 23:47:55 2011].3450 msLayerIsVisible(): Skipping layer (plaatsen) because no CLASS in the layer is in-scale for this MAP scale [Thu May 26 23:47:55 2011].3457 msLayerIsVisible(): Skipping layer (plaatsen) because no CLASS in the layer is in-scale for this MAP scale [Thu May 26 23:47:55 2011].3470 msPostGISLayerOpen called: way28992 from (select way28992, z_order, landuse, osm_id, name from nl_osm_polygon order by z_order) as foo using unique osm_id using srid=28992 [Thu May 26 23:47:55 2011].3478 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Thu May 26 23:47:55 2011].16884 msConnPoolRegister(residentialandindustry,host=localhost dbname=osm password=xxxx user=geo,0x18ff430) [Thu May 26 23:47:55 2011].27950 msPostGISLayerOpen: Got PostGIS version 10500. [Thu May 26 23:47:55 2011].27963 msPostGISLayerFreeItemInfo called. [Thu May 26 23:47:55 2011].27971 msPostGISLayerInitItemInfo called. [Thu May 26 23:47:55 2011].27986 msPostGISLayerWhichShapes called. [Thu May 26 23:47:55 2011].27992 msPostGISParseData called. [Thu May 26 23:47:55 2011].28008 msPostGISParseData: unique_column=osm_id, srid=28992, geom_column_name=way28992, table_name=(select way28992, z_order, landuse, osm_id, name from nl_osm_polygon order by z_order) as foo [Thu May 26 23:47:55 2011].28012 msPostGISBuildSQL called. [Thu May 26 23:47:55 2011].28016 msPostGISBuildSQLItems called. [Thu May 26 23:47:55 2011].28021 msPostGISBuildSQLItems: 2 items requested. [Thu May 26 23:47:55 2011].28025 msPostGISBuildSQLFrom called. [Thu May 26 23:47:55 2011].28031 msPostGISBuildSQLWhere called. [Thu May 26 23:47:55 2011].28034 msPostGISBuildSQLSRID called. [Thu May 26 23:47:55 2011].28038 msPostGISBuildSQLSRID: SRID provided (28992) [Thu May 26 23:47:55 2011].28041 msPostGISBuildSQLBox called. ... From woodbri at swoodbridge.com Thu May 26 19:39:49 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 26 May 2011 22:39:49 -0400 Subject: [mapserver-users] Controling the amount of concurrent GetMap requests In-Reply-To: <4DDEC115.408@pobox.com> References: <05CB785138CBDC42B993061A0161A57E04A5C166@stimpy.sigmaspace.local> <4DDEA296.1050203@swoodbridge.com> <4DDEC115.408@pobox.com> Message-ID: <4DDF0EF5.2010901@swoodbridge.com> On 5/26/2011 5:07 PM, Frank Warmerdam wrote: > On 11-05-26 05:01 PM, Mark Korver wrote: >> I would think that the thinking here is that a server only scales well >> to some number of concurrent requests. That beyond that number, all >> requests suffer. In this case it's better to queue the requests >> rather than try to process them, meaning queuing improves performance >> overall. > > Folks, > > I will just note that Apache + FastCGI makes it pretty easy to > limit the number of concurrent requests being processed and when > saturated the new requests are queued. I presume they would timeout > after a while if there is just too much traffic. > > Best regards, Mark, Yes, this is what I was trying to say. And to expand on this, to make scalable systems, there is normally some layering of services. So while mapserver know how to render maps, Apache is what receives requests, queues them, knows how many requests are running, so this is the logical place to deal with this, not in mapserver. You can also place a load balancer in front of a farm of servers and have it route requests to the least loaded system. But this even starts to fail at some point, then you need to look at other solutions like caching tiles. In my 11+ years of working with mapserver, I can say that often mapserver is disk I/O bound, and that you can do stuff to speed that up which makes in CPU bound. It is best to test your setup to find where the bottlenecks are and then work on eliminating the top ones, then retesting to see how the bottlenecks have shifted. This optimizes a single mapserver, then you need to look at how to scale that maybe across multiple servers depending on your load and usage requirements. -Steve W From aborruso at tin.it Fri May 27 01:11:37 2011 From: aborruso at tin.it (iomeneandrei) Date: Fri, 27 May 2011 01:11:37 -0700 (PDT) Subject: [mapserver-users] OT: OSGeo Gallery Message-ID: <1306483897540-6410133.post@n2.nabble.com> Dear all, I do not know who manage OSGeo Gallery webpage - http://gallery.osgeo.org/ -, but there are a lot of website that do not seems to me OSGeo related. Probably this page needs a sort of moderation. Best regards, a ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/OT-OSGeo-Gallery-tp6410133p6410133.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rdmailings at duif.net Fri May 27 02:18:13 2011 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Fri, 27 May 2011 11:18:13 +0200 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDECCEA.6010400@duif.net> References: <4DDECCEA.6010400@duif.net> Message-ID: <4DDF6C55.4010704@duif.net> Sorry for wrong subject, I'm talking about mapserver6 here. Ok, don't think it is a postgres/postgis problem... Installed geoserver, and that is serving fine .... Als0 tried mapserv from command line: ./mapserv -nh "QUERY_STRING=map=osmwm.map&mode=map" > /tmp/test11.png also ok mapfile snippet: LAYER NAME test TYPE polygon STATUS default DEBUG 5 CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm password=sssst user=geo" DATA "way28992 from (select * from landuse2) as foo using unique osm_id using srid=28992" FILTER "landuse in ('industrial', 'residential')" METADATA "WMS_TITLE" "test" "WMS_SRS" "EPSG:28992" "OWS_EXTENT" "-26000 296000 293000 634000" END CLASS STYLE COLOR 255 0 0 END STYLE OUTLINECOLOR 0 0 0 WIDTH 3 ANTIALIAS TRUE END END #CLASS END On 05/26/2011 11:58 PM, Richard Duivenvoorde wrote: > Like somebody else in the list I have a strange problem with MS6 on a > fresh RHEL6 machine. Running the same data and mapfile in an older MS works. > Below as much info I could get. > Anybody a clue? > I can recompile or add debug statements if nessecary (will be on irc > tomorrow morning) > > Regards, > > Richard Duivenvoorde > > > I fail to get a postgres connection log somewhere on this machine... > > a new installed RHEL6 machine: > Red Hat Enterprise Linux Server release 6.0 (Santiago) > > running > "PostgreSQL 8.4.8 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) > 4.4.4 20100726 (Red Hat 4.4.4-13), 64-bit" > and > "1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" > > mapserver -v gives > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I've done a gdal and mapserver compile myself > > A database with OSM data and mapfile with connectionstring like: > CONNECTION "host=localhost dbname=osm password=xxxx user=geo" > keeps saying: > Permission denied Is the server running on host "localhost" and > accepting TCP/IP connections on port 5432? ) with connect string > 'host=localhost dbname=osm password=******* user=geo' > > while: > - I can connect with that user/password via psql > - can use shp2img and the same mapfile (generating a map) > - can do > ogrinfo -ro PG:'host=localhost user=geo password=xxxxxx dbname=osm' -sql > "select count(*) from mytable" > - even tried trust for all hosts in pg_hba.conf > > setting debug in LAYER at 5 > > -- first part is from wms request (failing connection): > [Thu May 26 23:45:30 2011].566614 msPostGISLayerOpen called: way28992 > from nl_osm_point using unique osm_id using srid=28992 > [Thu May 26 23:45:30 2011].566704 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Thu May 26 23:45:30 2011].568103 msPostGISLayerOpen: Connection failure. > [Thu May 26 23:45:30 2011].568123 msPostGISLayerOpen(): Query error. > Database connection failed (could not connect to server: Permission denied > Is the server running on host "localhost" and accepting > TCP/IP connections on port 5432? > could not connect to server: Permission denied > Is the server running on host "localhost" and accepting > TCP/IP connections on port 5432? > ) with connect string 'host=localhost dbname=osm password=******* user=geo' > Is the database running? Is it allowing connections? Does the specified > user exist? Is the password valid? Is the database on the standard port? > [Thu May 26 23:45:30 2011].568138 msDrawMap(): Image handling error. > Failed to draw layer named 'plaatsen'. > [Thu May 26 23:45:30 2011].568224 msPostGISLayerClose called: way28992 > from nl_osm_point using unique osm_id using srid=28992 > [Thu May 26 23:45:30 2011].568238 freeLayer(): freeing layer at 0x1c67250. > [Thu May 26 23:45:30 2011].568243 msPostGISLayerIsOpen called. > [Thu May 26 23:45:30 2011].568251 freeLayer(): freeing layer at 0x1c6a7f0. > [Thu May 26 23:45:30 2011].568255 msPostGISLayerIsOpen called. > > -- This part is from shp2img (connection succesfull): > [Thu May 26 23:47:55 2011].3388 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3450 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3457 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3470 msPostGISLayerOpen called: way28992 from > (select way28992, z_order, landuse, osm_id, name from nl_osm_polygon > order by z_order) as foo using unique osm_id using srid=28992 > [Thu May 26 23:47:55 2011].3478 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Thu May 26 23:47:55 2011].16884 > msConnPoolRegister(residentialandindustry,host=localhost dbname=osm > password=xxxx user=geo,0x18ff430) > [Thu May 26 23:47:55 2011].27950 msPostGISLayerOpen: Got PostGIS version > 10500. > [Thu May 26 23:47:55 2011].27963 msPostGISLayerFreeItemInfo called. > [Thu May 26 23:47:55 2011].27971 msPostGISLayerInitItemInfo called. > [Thu May 26 23:47:55 2011].27986 msPostGISLayerWhichShapes called. > [Thu May 26 23:47:55 2011].27992 msPostGISParseData called. > [Thu May 26 23:47:55 2011].28008 msPostGISParseData: > unique_column=osm_id, srid=28992, geom_column_name=way28992, > table_name=(select way28992, z_order, landuse, osm_id, name from > nl_osm_polygon order by z_order) as foo > [Thu May 26 23:47:55 2011].28012 msPostGISBuildSQL called. > [Thu May 26 23:47:55 2011].28016 msPostGISBuildSQLItems called. > [Thu May 26 23:47:55 2011].28021 msPostGISBuildSQLItems: 2 items requested. > [Thu May 26 23:47:55 2011].28025 msPostGISBuildSQLFrom called. > [Thu May 26 23:47:55 2011].28031 msPostGISBuildSQLWhere called. > [Thu May 26 23:47:55 2011].28034 msPostGISBuildSQLSRID called. > [Thu May 26 23:47:55 2011].28038 msPostGISBuildSQLSRID: SRID provided > (28992) > [Thu May 26 23:47:55 2011].28041 msPostGISBuildSQLBox called. > ... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri May 27 05:32:19 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 27 May 2011 08:32:19 -0400 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDF6C55.4010704@duif.net> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> Message-ID: <4DDF99D3.7030609@swoodbridge.com> What happens if you try: sudo -u ./mapserv -nh "QUERY_STRING=map=osmwm.map&mode=map"> /tmp/test11.png This might be a permission problem somewhere. -Steve W On 5/27/2011 5:18 AM, Richard Duivenvoorde wrote: > Sorry for wrong subject, I'm talking about mapserver6 here. > > Ok, don't think it is a postgres/postgis problem... > > Installed geoserver, and that is serving fine .... > > Als0 tried mapserv from command line: > ./mapserv -nh "QUERY_STRING=map=osmwm.map&mode=map"> /tmp/test11.png > also ok > > mapfile snippet: > > LAYER > NAME test > TYPE polygon > STATUS default > DEBUG 5 > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=osm password=sssst user=geo" > DATA "way28992 from (select * from landuse2) as foo using unique > osm_id using srid=28992" > FILTER "landuse in ('industrial', 'residential')" > METADATA > "WMS_TITLE" "test" > "WMS_SRS" "EPSG:28992" > "OWS_EXTENT" "-26000 296000 293000 634000" > END > CLASS > STYLE > COLOR 255 0 0 > END > STYLE > OUTLINECOLOR 0 0 0 > WIDTH 3 > ANTIALIAS TRUE > END > END #CLASS > END > > > > On 05/26/2011 11:58 PM, Richard Duivenvoorde wrote: >> Like somebody else in the list I have a strange problem with MS6 on a >> fresh RHEL6 machine. Running the same data and mapfile in an older MS works. >> Below as much info I could get. >> Anybody a clue? >> I can recompile or add debug statements if nessecary (will be on irc >> tomorrow morning) >> >> Regards, >> >> Richard Duivenvoorde >> >> >> I fail to get a postgres connection log somewhere on this machine... >> >> a new installed RHEL6 machine: >> Red Hat Enterprise Linux Server release 6.0 (Santiago) >> >> running >> "PostgreSQL 8.4.8 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) >> 4.4.4 20100726 (Red Hat 4.4.4-13), 64-bit" >> and >> "1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" >> >> mapserver -v gives >> MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> I've done a gdal and mapserver compile myself >> >> A database with OSM data and mapfile with connectionstring like: >> CONNECTION "host=localhost dbname=osm password=xxxx user=geo" >> keeps saying: >> Permission denied Is the server running on host "localhost" and >> accepting TCP/IP connections on port 5432? ) with connect string >> 'host=localhost dbname=osm password=******* user=geo' >> >> while: >> - I can connect with that user/password via psql >> - can use shp2img and the same mapfile (generating a map) >> - can do >> ogrinfo -ro PG:'host=localhost user=geo password=xxxxxx dbname=osm' -sql >> "select count(*) from mytable" >> - even tried trust for all hosts in pg_hba.conf >> >> setting debug in LAYER at 5 >> >> -- first part is from wms request (failing connection): >> [Thu May 26 23:45:30 2011].566614 msPostGISLayerOpen called: way28992 >> from nl_osm_point using unique osm_id using srid=28992 >> [Thu May 26 23:45:30 2011].566704 msPostGISLayerOpen: No connection in >> pool, creating a fresh one. >> [Thu May 26 23:45:30 2011].568103 msPostGISLayerOpen: Connection failure. >> [Thu May 26 23:45:30 2011].568123 msPostGISLayerOpen(): Query error. >> Database connection failed (could not connect to server: Permission denied >> Is the server running on host "localhost" and accepting >> TCP/IP connections on port 5432? >> could not connect to server: Permission denied >> Is the server running on host "localhost" and accepting >> TCP/IP connections on port 5432? >> ) with connect string 'host=localhost dbname=osm password=******* user=geo' >> Is the database running? Is it allowing connections? Does the specified >> user exist? Is the password valid? Is the database on the standard port? >> [Thu May 26 23:45:30 2011].568138 msDrawMap(): Image handling error. >> Failed to draw layer named 'plaatsen'. >> [Thu May 26 23:45:30 2011].568224 msPostGISLayerClose called: way28992 >> from nl_osm_point using unique osm_id using srid=28992 >> [Thu May 26 23:45:30 2011].568238 freeLayer(): freeing layer at 0x1c67250. >> [Thu May 26 23:45:30 2011].568243 msPostGISLayerIsOpen called. >> [Thu May 26 23:45:30 2011].568251 freeLayer(): freeing layer at 0x1c6a7f0. >> [Thu May 26 23:45:30 2011].568255 msPostGISLayerIsOpen called. >> >> -- This part is from shp2img (connection succesfull): >> [Thu May 26 23:47:55 2011].3388 msLayerIsVisible(): Skipping layer >> (plaatsen) because no CLASS in the layer is in-scale for this MAP scale >> [Thu May 26 23:47:55 2011].3450 msLayerIsVisible(): Skipping layer >> (plaatsen) because no CLASS in the layer is in-scale for this MAP scale >> [Thu May 26 23:47:55 2011].3457 msLayerIsVisible(): Skipping layer >> (plaatsen) because no CLASS in the layer is in-scale for this MAP scale >> [Thu May 26 23:47:55 2011].3470 msPostGISLayerOpen called: way28992 from >> (select way28992, z_order, landuse, osm_id, name from nl_osm_polygon >> order by z_order) as foo using unique osm_id using srid=28992 >> [Thu May 26 23:47:55 2011].3478 msPostGISLayerOpen: No connection in >> pool, creating a fresh one. >> [Thu May 26 23:47:55 2011].16884 >> msConnPoolRegister(residentialandindustry,host=localhost dbname=osm >> password=xxxx user=geo,0x18ff430) >> [Thu May 26 23:47:55 2011].27950 msPostGISLayerOpen: Got PostGIS version >> 10500. >> [Thu May 26 23:47:55 2011].27963 msPostGISLayerFreeItemInfo called. >> [Thu May 26 23:47:55 2011].27971 msPostGISLayerInitItemInfo called. >> [Thu May 26 23:47:55 2011].27986 msPostGISLayerWhichShapes called. >> [Thu May 26 23:47:55 2011].27992 msPostGISParseData called. >> [Thu May 26 23:47:55 2011].28008 msPostGISParseData: >> unique_column=osm_id, srid=28992, geom_column_name=way28992, >> table_name=(select way28992, z_order, landuse, osm_id, name from >> nl_osm_polygon order by z_order) as foo >> [Thu May 26 23:47:55 2011].28012 msPostGISBuildSQL called. >> [Thu May 26 23:47:55 2011].28016 msPostGISBuildSQLItems called. >> [Thu May 26 23:47:55 2011].28021 msPostGISBuildSQLItems: 2 items requested. >> [Thu May 26 23:47:55 2011].28025 msPostGISBuildSQLFrom called. >> [Thu May 26 23:47:55 2011].28031 msPostGISBuildSQLWhere called. >> [Thu May 26 23:47:55 2011].28034 msPostGISBuildSQLSRID called. >> [Thu May 26 23:47:55 2011].28038 msPostGISBuildSQLSRID: SRID provided >> (28992) >> [Thu May 26 23:47:55 2011].28041 msPostGISBuildSQLBox called. >> ... >> _______________________________________________ >> 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 rdmailings at duif.net Fri May 27 07:07:21 2011 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Fri, 27 May 2011 16:07:21 +0200 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDF99D3.7030609@swoodbridge.com> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> <4DDF99D3.7030609@swoodbridge.com> Message-ID: <4DDFB019.1090500@duif.net> On 05/27/2011 02:32 PM, Stephen Woodbridge wrote: > sudo -u ./mapserv -nh > "QUERY_STRING=map=osmwm.map&mode=map"> /tmp/test11.png Ok thanks for you tip, tried both these version: sudo -u apache ./mapserv -nh QUERY_STRING='map=osmwm.map&mode=map' > /tmp/test20.png sudo su -s /bin/sh apache -c "./mapserv -nh 'QUERY_STRING=map=osmwm.map&mode=map' > /tmp/test19.png" and BOTH are working and generating png's (while looking into 'top' to see if it was indeed the user 'apache' which was running the mapserver-command: it was) Still url below: is NOT: http://46.21.168.170/cgi-bin/mapserv?map=osmwm.map&mode=map Permission problem is the most obvious reason... What is special on running a cgi trying to connect to postgis? It's not trying to write to something is it? As said, I compiled both mapserver and gdal myself, which files need special permissions? Tested with a shapefile layer, that one is working ok Capabilities also: http://46.21.168.170/cgi-bin/mapserv?map=osmwm.map&service=wms&request=getcapabilities Regards, Richard From boolean10001 at yahoo.com Fri May 27 07:36:04 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 27 May 2011 07:36:04 -0700 (PDT) Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDF6C55.4010704@duif.net> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> Message-ID: <198566.61767.qm@web38206.mail.mud.yahoo.com> Richard, Just checking for the most common errors, and taking a look at this fragment of the layer's debug dump: [Thu May 26 23:45:30 2011].568123 msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied ? ? ? ? Is the server running on host "localhost" and accepting ? ? ? ? TCP/IP connections on port 5432? could not connect to server: Permission denied ? ? ? ? Is the server running on host "localhost" and accepting ? ? ? ? TCP/IP connections on port 5432? ? Using GeoServer, you have posted this connection string: host=localhost dbname=osm password=sssst user=geo Using Mapserver, you have posted this other connection string: host=localhost dbname=osm password=******* user=geo You receive a "Database connection failed (could not connect to server: Permission denied)", this means that there's a problem with the connection parameters. I can see a "sssst" password (5 chars) with Geoserver test and a "*******" password (7 chars) with Mapserver test, are you sure that you're using the same password ??? Also, if you're using HBA, you have to do the Geoserver and the Mapserver test in the same machine because the ip address. Cheers from M?xico IC Carlos Ruiz ________________________________ From: Richard Duivenvoorde To: mapserver-users at lists.osgeo.org Sent: Friday, May 27, 2011 4:18 AM Subject: Re: [mapserver-users] mapserver6 (was 5) postgis connection problem Sorry for wrong subject, I'm talking about mapserver6 here. Ok, don't think it is a postgres/postgis problem... Installed geoserver, and that is serving fine .... Als0 tried mapserv from command line: ./mapserv -nh "QUERY_STRING=map=osmwm.map&mode=map" > /tmp/test11.png also ok mapfile snippet: LAYER ? ? NAME test ? ? TYPE polygon ? ? STATUS default ? ? DEBUG 5 ? ? CONNECTIONTYPE postgis ? ? CONNECTION "host=localhost dbname=osm password=sssst user=geo" ? ? DATA "way28992 from (select * from landuse2) as foo using unique osm_id using srid=28992" ? ? FILTER "landuse in ('industrial', 'residential')" ? ? METADATA ? ? ? "WMS_TITLE"? ? ? ? ? ? ? ? ? ? "test" ? ? ? "WMS_SRS"? ? ? ? ? ? ? ? ? ? ? "EPSG:28992" ? ? ? "OWS_EXTENT"? ? ? ? ? ? ? ? ? ? "-26000 296000 293000 634000" ? ? END ? ? CLASS ? ? STYLE ? ? ? COLOR 255 0 0 ? ? END ? ? STYLE ? ? ? OUTLINECOLOR 0 0 0 ? ? ? WIDTH 3 ? ? ? ANTIALIAS TRUE ? ? END ? ? END #CLASS ? END On 05/26/2011 11:58 PM, Richard Duivenvoorde wrote: > Like somebody else in the list I have a strange problem with MS6 on a > fresh RHEL6 machine. Running the same data and mapfile in an older MS works. > Below as much info I could get. > Anybody a clue? > I can recompile or add debug statements if nessecary (will be on irc > tomorrow morning) > > Regards, > > Richard Duivenvoorde > > > I fail to get a postgres connection log somewhere on this machine... > > a new installed RHEL6 machine: > Red Hat Enterprise Linux Server release 6.0 (Santiago) > > running > "PostgreSQL 8.4.8 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) > 4.4.4 20100726 (Red Hat 4.4.4-13), 64-bit" > and > "1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" > > mapserver -v gives > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I've done a gdal and mapserver compile myself > > A database with OSM data and mapfile with connectionstring like: > CONNECTION "host=localhost dbname=osm password=xxxx user=geo" > keeps saying: > Permission denied Is the server running on host "localhost" and > accepting TCP/IP connections on port 5432? ) with connect string > 'host=localhost dbname=osm password=******* user=geo' > > while: > - I can connect with that user/password via psql > - can use shp2img and the same mapfile (generating a map) > - can do > ogrinfo -ro PG:'host=localhost user=geo password=xxxxxx dbname=osm' -sql > "select count(*) from mytable" > - even tried trust for all hosts in pg_hba.conf > > setting debug in LAYER at 5 > > -- first part is from wms request (failing connection): > [Thu May 26 23:45:30 2011].566614 msPostGISLayerOpen called: way28992 > from nl_osm_point using unique osm_id using srid=28992 > [Thu May 26 23:45:30 2011].566704 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Thu May 26 23:45:30 2011].568103 msPostGISLayerOpen: Connection failure. > [Thu May 26 23:45:30 2011].568123 msPostGISLayerOpen(): Query error. > Database connection failed (could not connect to server: Permission denied >? ? ? ? Is the server running on host "localhost" and accepting >? ? ? ? TCP/IP connections on port 5432? > could not connect to server: Permission denied >? ? ? ? Is the server running on host "localhost" and accepting >? ? ? ? TCP/IP connections on port 5432? > ) with connect string 'host=localhost dbname=osm password=******* user=geo' > Is the database running? Is it allowing connections? Does the specified > user exist? Is the password valid? Is the database on the standard port? > [Thu May 26 23:45:30 2011].568138 msDrawMap(): Image handling error. > Failed to draw layer named 'plaatsen'. > [Thu May 26 23:45:30 2011].568224 msPostGISLayerClose called: way28992 > from nl_osm_point using unique osm_id using srid=28992 > [Thu May 26 23:45:30 2011].568238 freeLayer(): freeing layer at 0x1c67250. > [Thu May 26 23:45:30 2011].568243 msPostGISLayerIsOpen called. > [Thu May 26 23:45:30 2011].568251 freeLayer(): freeing layer at 0x1c6a7f0. > [Thu May 26 23:45:30 2011].568255 msPostGISLayerIsOpen called. > > -- This part is from shp2img (connection succesfull): > [Thu May 26 23:47:55 2011].3388 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3450 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3457 msLayerIsVisible(): Skipping layer > (plaatsen) because no CLASS in the layer is in-scale for this MAP scale > [Thu May 26 23:47:55 2011].3470 msPostGISLayerOpen called: way28992 from > (select way28992, z_order, landuse, osm_id, name from nl_osm_polygon > order by z_order) as foo using unique osm_id using srid=28992 > [Thu May 26 23:47:55 2011].3478 msPostGISLayerOpen: No connection in > pool, creating a fresh one. > [Thu May 26 23:47:55 2011].16884 > msConnPoolRegister(residentialandindustry,host=localhost dbname=osm > password=xxxx user=geo,0x18ff430) > [Thu May 26 23:47:55 2011].27950 msPostGISLayerOpen: Got PostGIS version > 10500. > [Thu May 26 23:47:55 2011].27963 msPostGISLayerFreeItemInfo called. > [Thu May 26 23:47:55 2011].27971 msPostGISLayerInitItemInfo called. > [Thu May 26 23:47:55 2011].27986 msPostGISLayerWhichShapes called. > [Thu May 26 23:47:55 2011].27992 msPostGISParseData called. > [Thu May 26 23:47:55 2011].28008 msPostGISParseData: > unique_column=osm_id, srid=28992, geom_column_name=way28992, > table_name=(select way28992, z_order, landuse, osm_id, name from > nl_osm_polygon order by z_order) as foo > [Thu May 26 23:47:55 2011].28012 msPostGISBuildSQL called. > [Thu May 26 23:47:55 2011].28016 msPostGISBuildSQLItems called. > [Thu May 26 23:47:55 2011].28021 msPostGISBuildSQLItems: 2 items requested. > [Thu May 26 23:47:55 2011].28025 msPostGISBuildSQLFrom called. > [Thu May 26 23:47:55 2011].28031 msPostGISBuildSQLWhere called. > [Thu May 26 23:47:55 2011].28034 msPostGISBuildSQLSRID called. > [Thu May 26 23:47:55 2011].28038 msPostGISBuildSQLSRID: SRID provided > (28992) > [Thu May 26 23:47:55 2011].28041 msPostGISBuildSQLBox called. > ... > _______________________________________________ > 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 g8a at email.com Fri May 27 07:51:12 2011 From: g8a at email.com (aznan) Date: Fri, 27 May 2011 07:51:12 -0700 (PDT) Subject: [mapserver-users] Legend and styles Message-ID: <1306507872496-6411331.post@n2.nabble.com> Hi! I've made a map file with a layer that has two styles like so: LAYER GROUP "LayerGroup" NAME "TheLayer" CLASSGROUP "blue" ... CLASS NAME "The blue class" GROUP "blue" STYLE SYMBOL "CIRCLE" SIZE 10 WIDTH 2 COLOR 0 0 255 END END CLASS NAME "The red class" GROUP "red" STYLE SYMBOL "CIRCLE" SIZE 10 WIDTH 2 COLOR 255 0 0 END END END Setting styles=red in a GetMap request will change the color of the circles, but the same does not work with GetLegendGraphic. Please help! Thanks! /Matti -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Legend-and-styles-tp6411331p6411331.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rdmailings at duif.net Fri May 27 08:24:11 2011 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Fri, 27 May 2011 17:24:11 +0200 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <198566.61767.qm@web38206.mail.mud.yahoo.com> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> <198566.61767.qm@web38206.mail.mud.yahoo.com> Message-ID: <4DDFC21B.60009@duif.net> On 05/27/2011 04:36 PM, Carlos Ruiz wrote: > I can see a "sssst" password (5 chars) with Geoserver test and a > "*******" password (7 chars) with Mapserver test, are you sure > that you're using the same password ??? The sssst is just me hiding a password. And if that was the problem, the command line calls would have failed also? > Also, if you're using HBA, you have to do the Geoserver and the > Mapserver test in the same machine because the ip address. both database, mapserver and geoserver are all on 1 virtual machine. Thanks, Richard From woodbri at swoodbridge.com Fri May 27 08:28:01 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 27 May 2011 11:28:01 -0400 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDFC21B.60009@duif.net> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> <198566.61767.qm@web38206.mail.mud.yahoo.com> <4DDFC21B.60009@duif.net> Message-ID: <4DDFC301.8020302@swoodbridge.com> On 5/27/2011 11:24 AM, Richard Duivenvoorde wrote: > On 05/27/2011 04:36 PM, Carlos Ruiz wrote: >> I can see a "sssst" password (5 chars) with Geoserver test and a >> "*******" password (7 chars) with Mapserver test, are you sure >> that you're using the same password ??? > The sssst is just me hiding a password. And if that was the problem, the > command line calls would have failed also? > >> Also, if you're using HBA, you have to do the Geoserver and the >> Mapserver test in the same machine because the ip address. > > both database, mapserver and geoserver are all on 1 virtual machine. Richard, The only other things that I can think of that might be going on is that: 1. are you running selinux? try disabling this to see if the problem goes away 2. that the LD_LIBRARY_PATH in apache does not include the libraries that are getting used at the commandline. or that you have multiple copies of the libraries installed, some from rpms and some from what you compiled and different stuff is being used under apache vs the commandline -Steve W From rdmailings at duif.net Fri May 27 09:00:20 2011 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Fri, 27 May 2011 18:00:20 +0200 Subject: [mapserver-users] mapserver6 (was 5) postgis connection problem In-Reply-To: <4DDFC301.8020302@swoodbridge.com> References: <4DDECCEA.6010400@duif.net> <4DDF6C55.4010704@duif.net> <198566.61767.qm@web38206.mail.mud.yahoo.com> <4DDFC21B.60009@duif.net> <4DDFC301.8020302@swoodbridge.com> Message-ID: <4DDFCA94.5020503@duif.net> On 05/27/2011 05:28 PM, Stephen Woodbridge wrote: > 1. are you running selinux? try disabling this to see if the problem > goes away That's the trick .... Grmpf Thanks grmbl grmbl MyFirstRedHat .... Disabled it with temporarily with: setenforce 0 Thanks!! Richard From mattm184 at gmail.com Fri May 27 09:45:06 2011 From: mattm184 at gmail.com (Matt Miller) Date: Fri, 27 May 2011 09:45:06 -0700 Subject: [mapserver-users] European Weather Data WMS Message-ID: Does anyone know of a source of weather data in WMS format for Europe and parts of North African and the middle east? I am using http://mesonet.agron.iastate.edu/cgi-bin/wms/goes/conus_ir.cgi for the continental US but I am having a hard time finding sources for other parts of the world. Thanks for the help, and I'm sorry if this is a dumb question. Matt Miller From havard.tveite at umb.no Fri May 27 10:17:03 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Fri, 27 May 2011 19:17:03 +0200 Subject: [mapserver-users] European Weather Data WMS In-Reply-To: References: Message-ID: <4DDFDC8F.4070905@umb.no> For northern Europe you can check: http://openmetoc.met.no/about.html H?vard Tveite On 27/05/11 18:45, Matt Miller wrote: > Does anyone know of a source of weather data in WMS format for Europe > and parts of North African and the middle east? I am using > http://mesonet.agron.iastate.edu/cgi-bin/wms/goes/conus_ir.cgi for the > continental US but I am having a hard time finding sources for other > parts of the world. > > Thanks for the help, and I'm sorry if this is a dumb question. > > Matt Miller > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aborruso at tin.it Fri May 27 12:55:16 2011 From: aborruso at tin.it (iomeneandrei) Date: Fri, 27 May 2011 12:55:16 -0700 (PDT) Subject: [mapserver-users] Re: Postgis itemquery help In-Reply-To: <2eb7b6c0a5382275a932b725287c3d83@maich.gr> References: <2eb7b6c0a5382275a932b725287c3d83@maich.gr> Message-ID: <1306526116337-6412379.post@n2.nabble.com> Hi niko, first of all try to activate error log file in mapserver: CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" Then I think you should escape some character in your query URL. In example "&qstring=(%5Bcynara%5D%3E1.0)" and not "&qstring=([cynara] > 1.0)". This is a page with some URL Escape Codes: http://www.december.com/html/spec/esccodes.html I think that you will find the solution looking at log file. Best regards, a ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Postgis-itemquery-help-tp6377156p6412379.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Stuart.Harlan at modot.mo.gov Fri May 27 13:55:22 2011 From: Stuart.Harlan at modot.mo.gov (Stuart.Harlan at modot.mo.gov) Date: Fri, 27 May 2011 15:55:22 -0500 Subject: [mapserver-users] Oracle Spatial Message-ID: I am querying an Oracle Spatial table. I am restricting the query using an attribute in the table (road type). In examining the query sent to Oracle, it seems to query by attribute first, then by spatial envelope. For datasets that only return a few features in the attribute query, this seems fairly efficient. However, for datasets that return many features in the attribute query that lie over a large spatial area, it would seem more efficient to limit by spatial envelope first, then by attributes, especially if the query area is relatively small compared to the spatial extent of the dataset. Can the user be allowed to set the spatial/attribute query order? Example query - attribute query is executed first, then spatial. For small spatial areas, the query might be faster if the spatial filter were executed first. DATA "SHAPE FROM (SELECT SHAPE FROM ROAD_TABLE WHERE DESG IN ('CST','CRD')) USING SRID 8307" Stuart Harlan Senior Information Systems Technologist GIS Web Services Transportation Planning Division Missouri Department of Transportation -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sat May 28 05:44:46 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 28 May 2011 14:44:46 +0200 Subject: [mapserver-users] Polygon layer with no fill shows line thumbnail in the legend image Message-ID: Folks, According to a client's report, the current behaviour of drawing the legend images may be confusing, as the polygon layer with no fill shows line thumbnail (zigzag) in the legend image. I've been tracking down the changes in SVN and came to the conlusion that this behaviour has been introduced with http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. I'd be curious to know if this approach is satisfactory for all users, or would it be more convenient to show an empty rectangle in these cases? I would personally be in favour of drawing a rectangle in order to make it clear that the layer type is polygon and not line. Or is there any other reason that I'm not aware of, which makes the current approach more compelling? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat May 28 09:17:40 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 28 May 2011 19:17:40 +0300 Subject: [mapserver-users] Oracle Spatial References: Message-ID: Hi, It is impossible to know how the Oracle optimiser selects to do the final job in the database only by looking at the SQL. Capture the SQL and send it directly with SQL*Plus by giving first "set autotrace on". By doing that Oracle will print the execution plan which will give more information. Oracle is usually willing to utilise spatial index very soon in the plan, but with complicated views with many odd joins it is not necessary so. -Jukka Rahkonen- Stuart.Harlan wrote: > I am querying an Oracle Spatial table. I am restricting the query using > an attribute in the table (road type). In examining the query sent to > Oracle, it seems to query by attribute first, then by spatial envelope. > For datasets that only return a few features in the attribute query, this > seems fairly efficient. However, for datasets that return many features > in the attribute query that lie over a large spatial area, it would seem > more efficient to limit by spatial envelope first, then by attributes, > especially if the query area is relatively small compared to the spatial > extent of the dataset. Can the user be allowed to set the > spatial/attribute query order? > Example query - attribute query is executed first, then spatial. For > small spatial areas, the query might be faster if the spatial filter were > executed first. > DATA "SHAPE FROM (SELECT SHAPE FROM ROAD_TABLE WHERE DESG IN > ('CST','CRD')) USING SRID 8307" > Stuart Harlan > Senior Information Systems Technologist > GIS Web Services > Transportation Planning Division > Missouri Department of Transportation From nikos at maich.gr Sun May 29 21:52:29 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 30 May 2011 07:52:29 +0300 Subject: [mapserver-users] Re: mapserver6 (was 5) postgis connection problem In-Reply-To: <20110527160022.544D0E0240A@lists.osgeo.org> References: <20110527160022.544D0E0240A@lists.osgeo.org> Message-ID: <031caeee6af5e509bd0dd7f238d2b040@maich.gr> This url seems to work for me.... http://46.21.168.170/cgi-bin/mapserv?map=osmwm.map&mode=map From nikos at maich.gr Sun May 29 22:07:19 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 30 May 2011 08:07:19 +0300 Subject: [mapserver-users] Re: mapserver6 (was 5) postgis connection problem Message-ID: Hi, I don't know if it is relevant, but I get a no route to host when I test that ip via pgadmin, meaning tcp connections will fail, whereas local connections should not as they are IPC based. Does postgis use tcp/ip by default for connecting? regards, nikos From lists at remoteinformation.com.au Mon May 30 09:28:00 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Tue, 31 May 2011 00:28:00 +0800 Subject: [mapserver-users] Re: mapserver6 (was 5) postgis connection problem In-Reply-To: <20110530160018.B3130E020D9@lists.osgeo.org> References: <20110530160018.B3130E020D9@lists.osgeo.org> Message-ID: Nikos, On 31/05/2011, at 12:00 AM, mapserver-users-request at lists.osgeo.org wrote: > I don't know if it is relevant, but I get a no route to host when I test that ip via pgadmin, meaning tcp connections will fail, whereas local connections should not as they are IPC based. Does postgis use tcp/ip by default for connecting? It will depend on the host based authentication of your postgres instance - if you do not have an entry for your client machine in the pg_hba.conf file, you won't be able to connect from pgadmin, or psql. But you are more likely to have a trust setting for connections from localhost, so mapserver won't have the same problems. it isn't set to trust anyone, (which it absolutely shouldn't be), vis : psql: could not connect to server: Connection refused Is the server running on host "46.21.168.170" and accepting TCP/IP connections on port 5432? http://www.postgresql.org/docs/9.0/static/auth-pg-hba-conf.html cheers Ben From mikesaunt at gmail.com Mon May 30 15:22:09 2011 From: mikesaunt at gmail.com (Mike Saunt) Date: Mon, 30 May 2011 23:22:09 +0100 Subject: [mapserver-users] MapServer WMS requests with SLD shows extra layers Message-ID: Hi All Wondering if anyone knows if this is correct or not. I'm using MapServer 5.6.6 on Windows. I have a WMS where I specify an SLD for a layer - say called A (the SLD has a NamedLayer entry for that layer A) - and in the URL I specify the SLD path and also the layers that I want - let's say A, B - everything is great. The issue (or feature!) that arises is that if I leave the SLD in the URL and DON'T specify layer A (but do specify say B) I still get A coming through on the Map - is it because it has a NamedLayer entry in the SLD file. This causes an issue for us as we're starting to use SLD's more and more and are trying to avoid rewrite the SLD on the server if we turn a layer on or off - I'd have thought the LAYERS parameter would handle this as it does for every other type of request to MapServer. Hopefully this makes sense - anyone have any clues? Thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon May 30 20:19:37 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 30 May 2011 23:19:37 -0400 Subject: [mapserver-users] Re: [postgis-users] Google Maps API with PostGIS In-Reply-To: References: <4DE3FA22.70202@swoodbridge.com> Message-ID: <4DE45E49.2000008@swoodbridge.com> On 5/30/2011 8:55 PM, Ahmad Aburizaiza wrote: > Hello Stefan, > > Thank you for your reply. I will answer your questions : > > 1. the user selects a polygon(s), how does this happen? where are the > polygons? > > The polygons are in a PostGIS table. I want the users to select the > polygons from a list. > > 2. create a convex hull from the select polygons : 3. now you have a > convex hull : > > I just need a convex hull to be drawn or displayed on top of the map. I > do not need to store it anywhere. > > I have a question. You said "but if you have less then passing the > features to OpenLayers and rendering them as a vector layer is probably > fine". By passing the features, do you mean that I do not need a WMS? > Can you give me an example please. Write a php ajax function that queries your data base for the buildings and returns an XML or GeoJSON doc to OpenLayers and load the features into a layer over you google layer. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/xml.html http://dev.openlayers.org/releases/OpenLayers-2.10/examples/geojson.html http://dev.openlayers.org/releases/OpenLayers-2.10/examples/google-v3.html http://dev.openlayers.org/releases/OpenLayers-2.10/examples/ http://www.openlayers.org/ You can set the layer up so on every pan/zoom you re-query the database based on the view port extents to get the features you need. If the total feature count is under 500, you can probably just load them all initially and not issue additional requests. If you pass the gid of each feature to OpenLayer and display it as a vector layer, you can then use the select tool on that layer so when the user selects the building they will get highlighted. Then add a button to get the convex hull, and when this button is pressed get the list of gid of the selected objects and issue an ajax request to your PHP with the list of gids and have it run sql like: select astext(st_convexhull(st_collect(the_geom))) from buildings where gid in (); and have it return the result. Then you can all that as a feature to the your vector layer or a results layer. You will probably also want to add a clear button to clear the selected buildings and convex hull. At this point, you might want to take this over to the openlayers list because you can probably do all this with using mapserver. Also you should look at the source code of the openlayers examples, they are designed to be very simple so you can use them as spring board to building bigger applications. -Steve > Please let me know. > > Thank you, > > > > On Mon, May 30, 2011 at 4:12 PM, Stephen Woodbridge > > wrote: > > I think you need to think through the whole flow of this application and > answer questions like: > > 1. the user selects a polygon(s) > how does this happen? > where are the polygons? in the client, or on the your server, or on > google's server? > How did they get display on the page because this will determine what > the selection process needs to be. > > 2. create a convex hull from the select polygons > if you are creating the convex hull in postgis, then you need to get the > selections to your postgis server. > where is the postgis server? > Where are the selected polygons? > > 3. now you have a convex hull > what do you want to do with it? display it on the map? do you want to > draw it as a vector object or draw it as an image overlay? Do you need > to store the convex hull for later use? Where do you plan to store it? > > As you know there are many ways to skin a cat. Without more information > on your specific use case, I would implement this using OpenLayers and > not the Google API (in part because it open javascript api for mapping > and feature manipulation and I know it better than the Google API), and > I would probably write a simple PHP ajax handler to interact between the > web application and the database. I assume the building are already > loaded in postgis. If you need more then say 500 building display on the > screen them you will probably want to draw them via mapserver as an > image overlay, but if you have less then passing the features to > OpenLayers and rendering them as a vector layer is probably fine. > > Hope this helps, > -Steve W > > On 5/30/2011 1:51 PM, Ahmad Aburizaiza wrote: > > Hello all, > > I am fairly new to PostGIS and I have to work on a project for > my PhD. I > hope you can help me. I want to build a web map where the user can > select a building or more than one from a layer on top of Google > Maps > API and the code should create an automatic convex hull from the > set of > points generated from the selected polygon(s). I am not sure on > what to > use but I have general ideas and I do not know which is the best : > > * Do I use Google Maps API and PostGIS without needing a WMS > or WFS? > * Do I have to use with Google Maps API a WMS or a WFS? > > And if someone has beneficial samples I can use to build the > website, I > would really appreciate it. > > Thank you in advance. > > > From andreas.siegel at vorarlberg.at Tue May 31 00:50:01 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Tue, 31 May 2011 00:50:01 -0700 (PDT) Subject: [mapserver-users] HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up Message-ID: <1306828201530-6421746.post@n2.nabble.com> Hello. Im struck with HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up whenever i try to use proxy authentification. I use mapserver 5.6.6 built from Source on a centos-linux-box. Configure-statement: ./configure --with-proj=/usr/local --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-fastcgi=/usr --with-wfs --with-postgis=/usr/bin/pg_config --with-xml2-config=/usr/bin --with-wmsclient --with-wfsclient I found a thread from April-2011 covering the same issue but i could not figure out a solution for myself. But in that thread a compiler-option -DUSE_CURL -DCURLOPT_PROXYAUTH caught my eye. Is this -DUSE_CURL -DCURLOPT_PROXYAUTH the solution to my problem and how to enable it? Cheers Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6421746.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mikesaunt at gmail.com Tue May 31 02:21:16 2011 From: mikesaunt at gmail.com (Mike Saunt) Date: Tue, 31 May 2011 10:21:16 +0100 Subject: [mapserver-users] Re: MapServer WMS requests with SLD shows extra layers In-Reply-To: References: Message-ID: Dear All Please ignore this question below it was a real PICNIC (Problem In Chair Not In Computer) - I had STATUS DEFAULT in my .map file so when those LAYERS were specified in the SLD they then got styled (they have no style in the .map) Although I've been using MapServer for over 6 years my only excuse could be the time of day i.e. late one evening. - just to CONFIRM - MapServer works as expected with SLD (and very nice too!) Thanks Mike On 30 May 2011 23:22, Mike Saunt wrote: > Hi All > > Wondering if anyone knows if this is correct or not. I'm using MapServer > 5.6.6 on Windows. > > I have a WMS where I specify an SLD for a layer - say called A (the SLD has > a NamedLayer entry for that layer A) - and in the URL I specify the SLD path > and also the layers that I want - let's say A, B - everything is great. > > The issue (or feature!) that arises is that if I leave the SLD in the URL > and DON'T specify layer A (but do specify say B) I still get A coming > through on the Map - is it because it has a NamedLayer entry in the SLD > file. > > This causes an issue for us as we're starting to use SLD's more and more > and are trying to avoid rewrite the SLD on the server if we turn a layer on > or off - I'd have thought the LAYERS parameter would handle this as it does > for every other type of request to MapServer. > > Hopefully this makes sense - anyone have any clues? > > Thanks > Mike > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Tue May 31 05:26:10 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 31 May 2011 14:26:10 +0200 Subject: [mapserver-users] SLD with filter Message-ID: <4DE4DE62.8080204@r3-gis.com> Hi, I've a problem with following filter: localita 1.102 Output: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator does not exist: text = numeric LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. ) executing query: select "gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"gc_objid" from (SELECT __data__.di_id as gc_objid,__data__.the_geom, __data__.di_id,__data__.localita,__data__.di_name_1 FROM geo.district_area AS __data__) AS foo where the_geom && GeomFromText('POLYGON((-393764.596966392 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 4130435.36164853))',32632) and ( (localita= 1.102) ) It seems that the value 1.102 is not quoted. Should I add the attribute xs:type="string" to the literal node or use the PropertyIsLike condition? I'm using MapServer 5.6.6 Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com From yassefa at dmsolutions.ca Tue May 31 05:37:11 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 31 May 2011 08:37:11 -0400 Subject: [mapserver-users] SLD with filter In-Reply-To: <4DE4DE62.8080204@r3-gis.com> References: <4DE4DE62.8080204@r3-gis.com> Message-ID: <4DE4E0F7.8050202@dmsolutions.ca> Hi Daniel, You could possibly try to set on the layer a metadata for the type of your field to force it to string: something like metadata "ows_localita_type" "Character" ... end regards, On 31/05/2011 8:26 AM, Daniel Degasperi wrote: > Hi, > I've a problem with following filter: > > > > localita > 1.102 > > > > Output: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ows="http://www.opengis.net/ows" version="1.1.0" > language="en-US" xsi:schemaLocation="http://www.opengis.net/ows > http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> > > msWFSGetFeature(): WFS server error. > FLTApplyFilterToLayer() failed > msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator does > not exist: text = numeric > LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) > ^ > HINT: No operator matches the given name and argument type(s). You > might need to add explicit type casts. > ) executing query: select > "gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') > as geom,"gc_objid" from (SELECT __data__.di_id as > gc_objid,__data__.the_geom, > __data__.di_id,__data__.localita,__data__.di_name_1 FROM > geo.district_area AS __data__) AS foo where the_geom && > GeomFromText('POLYGON((-393764.596966392 > 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 > 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 > 4130435.36164853))',32632) and ( (localita= 1.102) ) > > > > It seems that the value 1.102 is not quoted. Should I add the > attribute xs:type="string" to the literal node or use the > PropertyIsLike condition? > > I'm using MapServer 5.6.6 > > Best regards, > Daniel > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From daniel.degasperi at r3-gis.com Tue May 31 07:25:00 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 31 May 2011 16:25:00 +0200 Subject: [mapserver-users] SLD with filter In-Reply-To: <4DE4E0F7.8050202@dmsolutions.ca> References: <4DE4DE62.8080204@r3-gis.com> <4DE4E0F7.8050202@dmsolutions.ca> Message-ID: <4DE4FA3C.7010708@r3-gis.com> Ok, with the metadata tag described below mapserver does not reprocude this error, but it throws a segfault. I've put the coredump online: http://www.r3-gis.com/core.333.gz Best regards, Daniel Am 31/05/2011 14:37, schrieb Yewondwossen Assefa: > Hi Daniel, > > You could possibly try to set on the layer a metadata for the type of > your field to force it to string: something like > metadata > "ows_localita_type" "Character" > ... > end > > regards, > > On 31/05/2011 8:26 AM, Daniel Degasperi wrote: >> Hi, >> I've a problem with following filter: >> >> >> >> localita >> 1.102 >> >> >> >> Output: >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:ows="http://www.opengis.net/ows" version="1.1.0" >> language="en-US" xsi:schemaLocation="http://www.opengis.net/ows >> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> >> >> msWFSGetFeature(): WFS server error. >> FLTApplyFilterToLayer() failed >> msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator >> does not exist: text = numeric >> LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) >> ^ >> HINT: No operator matches the given name and argument type(s). You >> might need to add explicit type casts. >> ) executing query: select >> "gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') >> as geom,"gc_objid" from (SELECT __data__.di_id as >> gc_objid,__data__.the_geom, >> __data__.di_id,__data__.localita,__data__.di_name_1 FROM >> geo.district_area AS __data__) AS foo where the_geom && >> GeomFromText('POLYGON((-393764.596966392 >> 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 >> 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 >> 4130435.36164853))',32632) and ( (localita= 1.102) ) >> >> >> >> It seems that the value 1.102 is not quoted. Should I add the >> attribute xs:type="string" to the literal node or use the >> PropertyIsLike condition? >> >> I'm using MapServer 5.6.6 >> >> Best regards, >> Daniel >> >> > > -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com From vmaffei at gmail.com Tue May 31 07:54:51 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Tue, 31 May 2011 11:54:51 -0300 Subject: [mapserver-users] SLD with filter In-Reply-To: <4DE4FA3C.7010708@r3-gis.com> References: <4DE4DE62.8080204@r3-gis.com> <4DE4E0F7.8050202@dmsolutions.ca> <4DE4FA3C.7010708@r3-gis.com> Message-ID: Hi, i'm new at this and i'm trying to connect to postgis raster in the mapfile. I loaded a tif file into postgis raster database. It created a table with 2 fields. In the mapfile i added the connection like it specifies in the postgis raster FAQ but it doesnt displays a thing: LAYER NAME coolwktraster TYPE raster STATUS ON DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" #... other standard raster processing functions here #... classes are optional but useful for 1 band data CLASS NAME "boring" EXPRESSION ([pixel] < 20) COLOR 250 250 250 END CLASS NAME "mildly interesting" EXPRESSION ([pixel] > 20 AND [pixel] < 1000) COLOR 255 0 0 END CLASS NAME "very interesting" EXPRESSION ([pixel] >= 1000) COLOR 0 255 0 END END the mode=2 i deleted it because its for other postgis version, i have postgis 1.5.2. Could you help me with this? Could someone connect with success? Thank you! Viriginia -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Tue May 31 07:59:02 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 31 May 2011 16:59:02 +0200 Subject: [mapserver-users] SLD with filter In-Reply-To: References: <4DE4DE62.8080204@r3-gis.com> <4DE4E0F7.8050202@dmsolutions.ca> <4DE4FA3C.7010708@r3-gis.com> Message-ID: <4DE50236.7050202@r3-gis.com> Could you please use a different subject. This is totally offtopic with the current problem. Am 31/05/2011 16:54, schrieb Virginia Maffei: > Hi, i'm new at this and i'm trying to connect to postgis raster in the > mapfile. > I loaded a tif file into postgis raster database. It created a table > with 2 fields. > In the mapfile i added the connection like it specifies in the postgis > raster FAQ but it doesnt displays a thing: > > LAYER > NAME coolwktraster > TYPE raster > STATUS ON > DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' > schema='someschema' table='cooltable' mode='2'" > PROCESSING "NODATA=0" > PROCESSING "SCALE=AUTO" > #... other standard raster processing functions here > #... classes are optional but useful for 1 band data > CLASS > NAME "boring" > EXPRESSION ([pixel]< 20) > COLOR 250 250 250 > END > CLASS > NAME "mildly interesting" > EXPRESSION ([pixel]> 20 AND [pixel]< 1000) > COLOR 255 0 0 > END > CLASS > NAME "very interesting" > EXPRESSION ([pixel]>= 1000) > COLOR 0 255 0 > END > END > > the mode=2 i deleted it because its for other postgis version, i have > postgis 1.5.2. > > Could you help me with this? Could someone connect with success? > > Thank you! > > Viriginia > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.peinado at geodata.es Tue May 31 09:18:55 2011 From: luis.peinado at geodata.es (luis peinado) Date: Tue, 31 May 2011 18:18:55 +0200 Subject: [mapserver-users] SLD and Mapserver Message-ID: Hi list, I'm using mapserver as a WMS server and I try to use an SLD file to render my map, instead of the usual CLASS and STYLE labels. I've succeded using an SLD parameter on my querystring but I can not get the same result removing the sld url from the querystring and writing it into wms_sld_url paramenter (into LAYER metadata tag). I have done that as told here:http://mapserver.org/ogc/sld.html But it seems that wms_sld_url is only useful when using mapserver as a WMS client. I would like to render my maps using SLD files instead of the STYLE label to avoid programming on my client application. Have you got any idea? Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vmaffei at gmail.com Tue May 31 09:22:16 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Tue, 31 May 2011 13:22:16 -0300 Subject: [mapserver-users] Postgis Raster Connection Message-ID: > Hi, i'm new at this and i'm trying to connect to postgis raster in the > mapfile. > I loaded a tif file into postgis raster database. It created a table with 2 > fields. > In the mapfile i added the connection like it specifies in the postgis > raster FAQ but it doesnt displays a thing: > > > LAYER > NAME coolwktraster > TYPE raster > STATUS ON > DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' > schema='someschema' table='cooltable' mode='2'" > PROCESSING "NODATA=0" > PROCESSING "SCALE=AUTO" > #... other standard raster processing functions here > #... classes are optional but useful for 1 band data > CLASS > NAME "boring" > EXPRESSION ([pixel] < 20) > COLOR 250 250 250 > END > CLASS > NAME "mildly interesting" > EXPRESSION ([pixel] > 20 AND [pixel] < 1000) > COLOR 255 0 0 > END > CLASS > NAME "very interesting" > EXPRESSION ([pixel] >= 1000) > COLOR 0 255 0 > END > END > > > the mode=2 i deleted it because its for other postgis version, i have > postgis 1.5.2. > > Could you help me with this? Could someone connect with success? > > Thank you! > > Viriginia > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue May 31 10:35:12 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 31 May 2011 13:35:12 -0400 Subject: [mapserver-users] SLD with filter In-Reply-To: <4DE4FA3C.7010708@r3-gis.com> References: <4DE4DE62.8080204@r3-gis.com> <4DE4E0F7.8050202@dmsolutions.ca> <4DE4FA3C.7010708@r3-gis.com> Message-ID: <4DE526D0.20908@dmsolutions.ca> Daniel, I just did a quick test with 5.6.x (svn) and a postgis layer using the metadata but could not reproduce a crash. If it is something I can reproduce using some test map/data/filter, I will investigate. You can either send them to me or attache it to a trac bug. best regards On 31/05/2011 10:25 AM, Daniel Degasperi wrote: > Ok, with the metadata tag described below mapserver does not reprocude > this error, but it throws a segfault. > I've put the coredump online: http://www.r3-gis.com/core.333.gz > > Best regards, > Daniel > > Am 31/05/2011 14:37, schrieb Yewondwossen Assefa: >> Hi Daniel, >> >> You could possibly try to set on the layer a metadata for the type >> of your field to force it to string: something like >> metadata >> "ows_localita_type" "Character" >> ... >> end >> >> regards, >> >> On 31/05/2011 8:26 AM, Daniel Degasperi wrote: >>> Hi, >>> I've a problem with following filter: >>> >>> >>> >>> localita >>> 1.102 >>> >>> >>> >>> Output: >>> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xmlns:ows="http://www.opengis.net/ows" version="1.1.0" >>> language="en-US" xsi:schemaLocation="http://www.opengis.net/ows >>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> >>> >>> msWFSGetFeature(): WFS server error. >>> FLTApplyFilterToLayer() failed >>> msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator >>> does not exist: text = numeric >>> LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) >>> ^ >>> HINT: No operator matches the given name and argument type(s). You >>> might need to add explicit type casts. >>> ) executing query: select >>> "gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') >>> as geom,"gc_objid" from (SELECT __data__.di_id as >>> gc_objid,__data__.the_geom, >>> __data__.di_id,__data__.localita,__data__.di_name_1 FROM >>> geo.district_area AS __data__) AS foo where the_geom && >>> GeomFromText('POLYGON((-393764.596966392 >>> 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 >>> 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 >>> 4130435.36164853))',32632) and ( (localita= 1.102) >>> ) >>> >>> >>> >>> It seems that the value 1.102 is not quoted. Should I add the >>> attribute xs:type="string" to the literal node or use the >>> PropertyIsLike condition? >>> >>> I'm using MapServer 5.6.6 >>> >>> Best regards, >>> Daniel >>> >>> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Tue May 31 11:06:23 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 31 May 2011 14:06:23 -0400 Subject: [mapserver-users] SLD and Mapserver In-Reply-To: References: Message-ID: <4DE52E1F.7080507@dmsolutions.ca> Hi, It is not yet possible to use directly sld styles in a map file. We have discussed that a couple of times but It is still in the wish list for future versions. If you are interested to see that sooner than later and might be possible for you to contribute toward it's development, let me know. best regards, On 31/05/2011 12:18 PM, luis peinado wrote: > Hi list, > I'm using mapserver as a WMS server and I try to use an SLD file to > render my map, instead of the usual CLASS and STYLE labels. > I've succeded using an SLD parameter on my querystring but I can not > get the same result removing the sld url from the querystring and > writing it into wms_sld_url paramenter (into LAYER metadata tag). > > I have done that as told here:http://mapserver.org/ogc/sld.html > But it seems that wms_sld_url is only useful when using mapserver as a > WMS client. > I would like to render my maps using SLD files instead of the STYLE > label to avoid programming on my client application. > > Have you got any idea? > > Best regards. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.kanegae at gmail.com Tue May 31 12:31:56 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 31 May 2011 16:31:56 -0300 Subject: [mapserver-users] MapServer 5.2.1 - Trying to show a band as transparent Message-ID: Hi, I have a Windows 2008 R2 Server running MapServer 5.2.1 from MS4W pack. My trouble: I?m trying to display a gdaltindex file ( set of rasters ) but the image border is not being displayed as expected. The raster files are all 4-band based, with 3 bands for RGB and the 4th band for ALPHA channel. The band 4 has only two possible values: 0 ( for transparent desired area) and 255 for area where RGB bands has content References: 1. http://www.sntgeo.com.br/tmp/qgis-shot1.jpg and http://www.sntgeo.com.br/tmp/qgis-shot2.jpg - raster shown using QGIS 2. http://www.sntgeo.com.br/tmp/mapserver-openlayers.jpg - raster layer as it?s being shown with MapServer + OpenLayers ( 2.10, using output png) My mapfile: ... OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END LAYER #-- ras_imagens NAME "ras_imagens" TYPE RASTER TILEINDEX "/imagens.shp" TILEITEM "location" ... OPACITY ALPHA ... PROCESSING "BANDS=1,2,3,4" PROCESSING "SCALE_1=AUTO" PROCESSING "SCALE_2=AUTO" PROCESSING "SCALE_3=AUTO" PROCESSING "SCALE_4=1,2" PROCESSING "RESAMPLE=BILINEAR" END Any hints? -- Eduardo Patto Kanegae -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue May 31 13:57:26 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 31 May 2011 16:57:26 -0400 Subject: [mapserver-users] MapServer 5.2.1 - Trying to show a band as transparent In-Reply-To: References: Message-ID: <4DE55636.505@pobox.com> On 11-05-31 03:31 PM, Eduardo Kanegae wrote: > Hi, > > I have a Windows 2008 R2 Server running MapServer 5.2.1 from MS4W pack. > > My trouble: I?m trying to display a gdaltindex file ( set of rasters ) but the > image border is not being displayed as expected. > > The raster files are all 4-band based, with 3 bands for RGB and the 4th band > for ALPHA channel. > The band 4 has only two possible values: 0 ( for transparent desired area) and > 255 for area where RGB bands has content ... > ... > OPACITY ALPHA Eduardo, I am not clear on what "OPACITY ALPHA" is supposed to do. I don't think you need it. > ... > PROCESSING "BANDS=1,2,3,4" > PROCESSING "SCALE_1=AUTO" > PROCESSING "SCALE_2=AUTO" > PROCESSING "SCALE_3=AUTO" > PROCESSING "SCALE_4=1,2" > PROCESSING "RESAMPLE=BILINEAR" SCALE_4=1,2 will transform 1 to 0, and 2 to 255 but the input values are apparently 0 and 255 already (as I deduce from the qgis snapshot) so I think you should just omit the SCALE_4 processing option. There may be bad interactions between RESAMPLE=BILINEAR and the alpha support. You might want to try with and without this option. If this is an issue try upgrading to MapServer 6 and see if the problem persists. I have made significant improvement in raster alpha handling in recent years. 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 | Geospatial Programmer for Rent From eduardo.kanegae at gmail.com Tue May 31 14:39:24 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 31 May 2011 18:39:24 -0300 Subject: [mapserver-users] RE: MapServer 5.2.1 - Trying to show a band as transparent Message-ID: Hi Franks, Thanks for all your suggestions. It?s pretty working now! See http://www.sntgeo.com.br/tmp/mapserver-openlayers-fixed.jpg Mapfile now is just like: LAYER NAME "ras_imagens" TYPE RASTER TILEINDEX "/imagens.shp" TILEITEM "location" ... ... PROCESSING "BANDS=1,2,3,4" PROCESSING "SCALE_1=AUTO" PROCESSING "SCALE_2=AUTO" PROCESSING "SCALE_3=AUTO" END -- Thank you again Frank. best, Eduardo Patto Kanegae On 11-05-31 03:31 PM, Eduardo Kanegae wrote: > Hi, > > I have a Windows 2008 R2 Server running MapServer 5.2.1 from MS4W pack. > > My trouble: I?m trying to display a gdaltindex file ( set of rasters ) but the > image border is not being displayed as expected. > > The raster files are all 4-band based, with 3 bands for RGB and the 4th band > for ALPHA channel. > The band 4 has only two possible values: 0 ( for transparent desired area) and > 255 for area where RGB bands has content ... > ... > OPACITY ALPHA Eduardo, I am not clear on what "OPACITY ALPHA" is supposed to do. I don't think you need it. > ... > PROCESSING "BANDS=1,2,3,4" > PROCESSING "SCALE_1=AUTO" > PROCESSING "SCALE_2=AUTO" > PROCESSING "SCALE_3=AUTO" > PROCESSING "SCALE_4=1,2" > PROCESSING "RESAMPLE=BILINEAR" SCALE_4=1,2 will transform 1 to 0, and 2 to 255 but the input values are apparently 0 and 255 already (as I deduce from the qgis snapshot) so I think you should just omit the SCALE_4 processing option. There may be bad interactions between RESAMPLE=BILINEAR and the alpha support. You might want to try with and without this option. If this is an issue try upgrading to MapServer 6 and see if the problem persists. I have made significant improvement in raster alpha handling in recent years. 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 | Geospatial Programmer for Rent From prab.raja at gmail.com Tue May 31 23:09:06 2011 From: prab.raja at gmail.com (prab.raja) Date: Tue, 31 May 2011 23:09:06 -0700 (PDT) Subject: [mapserver-users] Is it posible to substitute a value from table for width of line Message-ID: <1306908546452-6425708.post@n2.nabble.com> Hi, I would like to know if it's posible to draw line layer with variable width from database table. Something like this? LAYER NAME line_layer CONNECTIONTYPE postgis CONNECTION "user=postgres password=****** dbname=shpdb host=localhost port=5432" DATA "the_geom FROM (SELECT gid, the_geom FROM line_layer) AS SUBQUERY using unique gid" PROCESSING "CLOSE_CONNECTION=DEFER" TYPE line OPACITY 100 STATUS Off CLASS STYLE COLOR 0 140 70 WIDTH [gid] END END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html Sent from the Mapserver - User mailing list archive at Nabble.com.