From Steve.Lime at dnr.state.mn.us Thu Oct 1 07:12:57 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Oct 2009 09:12:57 -0500 Subject: [mapserver-users] mapserver 5.6beta1: mindistance not workingproperly? Message-ID: <4AC472990200008F00028DD3@co5.dnr.state.mn.us> I'm not aware of any changes in that area of the code although something tells me there was a small change but will try and create a test case. Thanks for the testing... Steve >>> Michael Schulz 09/30/09 5:32 AM >>> Hi, thanks for the 5.6 beta1. I'm pretty curious about the new mapfile xml-format. I have a mapfile that uses MINDISTANCE in label objects, the maps and labels are generated fine with mapserver- 5.4, with mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into account. Can anyone confirm this behaviour? Cheers, Michael -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aboudreault at mapgears.com Thu Oct 1 07:20:11 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 1 Oct 2009 10:20:11 -0400 Subject: [mapserver-users] mapserver 5.6beta1: mindistance not workingproperly? In-Reply-To: <4AC472990200008F00028DD3@co5.dnr.state.mn.us> References: <4AC472990200008F00028DD3@co5.dnr.state.mn.us> Message-ID: <200910011020.12076.aboudreault@mapgears.com> Hi, Could you check that ticket please: http://trac.osgeo.org/mapserver/ticket/3050 Let me informed. Thanks, Alan On October 1, 2009 10:12:57 am Steve Lime wrote: > I'm not aware of any changes in that area of the code although something > tells me there was a small change but will try and create a test case. > Thanks for the testing... > > Steve > > >>> Michael Schulz 09/30/09 5:32 AM >>> > > Hi, > > thanks for the 5.6 beta1. I'm pretty curious about the new mapfile > xml-format. > > I have a mapfile that uses MINDISTANCE in label objects, the maps and > labels are generated fine with mapserver- 5.4, with > mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into > account. Can anyone confirm this behaviour? > > Cheers, Michael > -- Alan Boudreault Mapgears http://www.mapgears.com From Baas at speerit.nl Thu Oct 1 08:21:18 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Thu, 1 Oct 2009 17:21:18 +0200 Subject: [mapserver-users] MapServer Projection Issues (I think). Message-ID: <68C97F84EAD0174799AC6FCEE219DEF28ACB29@batavia.Speerit.local> Hello List, I've been struggling with OpenLayers and MapServer while using Google Maps as a backgroundlayer (thus using Spherical Mercator projection). I've been able to figure it out quite well, but I seem to be stuck at a reprojection issue. The request from OL is: mapserv.exe?map=test.map&LAYERS=layer1%Clayer2&TRANSPARENT=true&SERVICE= WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.og c.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=664084.90082266,6 838973.7927063,664696.39704883,6839585.2889324&WIDTH=256&HEIGHT=256 This results in an image such as this: http://www.cocontheweb.nl/_ftth/test.png The black line is the original file, in EPSG:28992 (Amersfoort new) and has a projection "init=EPSG:28992" in the map file. The green line has the default map file projection ("init=epsg:4326") and the file is saved as WGS84 with MapInfo. The problem now is that the green line is the correct one, the black line is offset. I've checked all relevant declarations in my epsg file, they are correct. Am I doing something wrong? I hope there is another solution besides re-saving all files as WGS84. Thanks in advance for any assistance! With kind regards, Jelmer Baas From woklist at kyngchaos.com Thu Oct 1 08:07:10 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 1 Oct 2009 10:07:10 -0500 Subject: [mapserver-users] MapServer 5.6.0-beta1 release In-Reply-To: <4ABC16FE.7050107@mapgears.com> References: <4ABC16FE.7050107@mapgears.com> Message-ID: <35FDE0CC-22BB-4A7F-B69F-9FADB6CEE4B4@kyngchaos.com> Can someone ("Alan" assigned in the bug) do something about this - it simply breaks PHP Mapscript compilation on OSX because the system regex is used in PHP: http://trac.osgeo.org/mapserver/ticket/3078 On Sep 24, 2009, at 8:03 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of the first > beta for the 5.6.0 release. We have decided to delay the 6.0 release > a bit to leave some time to stabilize the rendering enhancements > that are planned for 6.0, and to have a 5.6.0 release this fall > which contains a few new features and performance enhancements. Here > is a quick summary: > ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From aboudreault at mapgears.com Thu Oct 1 08:49:14 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 1 Oct 2009 11:49:14 -0400 Subject: [mapserver-users] mapserver 5.6beta1: mindistance not workingproperly? In-Reply-To: <200910011020.12076.aboudreault@mapgears.com> References: <4AC472990200008F00028DD3@co5.dnr.state.mn.us> <200910011020.12076.aboudreault@mapgears.com> Message-ID: <200910011149.15075.aboudreault@mapgears.com> In fact, that ticket changed the label distance calculation. Before, only the distance between label1 point and label2 point was calculated. Now, the label size is taken into account for the distance calculation. So, we are now sure that there is really the "mindistance" value between our labels. Thanks, Alan On October 1, 2009 10:20:11 am Alan Boudreault wrote: > Hi, > > Could you check that ticket please: > http://trac.osgeo.org/mapserver/ticket/3050 > > Let me informed. > > Thanks, > Alan > > On October 1, 2009 10:12:57 am Steve Lime wrote: > > I'm not aware of any changes in that area of the code although something > > tells me there was a small change but will try and create a test case. > > Thanks for the testing... > > > > Steve > > > > >>> Michael Schulz 09/30/09 5:32 AM >>> > > > > Hi, > > > > thanks for the 5.6 beta1. I'm pretty curious about the new mapfile > > xml-format. > > > > I have a mapfile that uses MINDISTANCE in label objects, the maps and > > labels are generated fine with mapserver- 5.4, with > > mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into > > account. Can anyone confirm this behaviour? > > > > Cheers, Michael > -- Alan Boudreault Mapgears http://www.mapgears.com From bfraser at geoanalytic.com Thu Oct 1 08:49:46 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 01 Oct 2009 09:49:46 -0600 Subject: [mapserver-users] Using nquery/mapxy/TOLERANCE/TOLERANCEUNITS Message-ID: <4AC4CF9A.3070201@geoanalytic.com> I'd like someone to confirm my understanding of using nquery/mapxy/TOLERANCE/TOLERANCEUNITS. GeoMoose v1.6 sets mapxy and imgext (along with mode=nquery and imgsize) CGI variables when doing an "Identify Feature" operation. I'd like to use TOLERANCEUNITS PIXELS (and TOLERANCE 3) for my point layer because I think it's more intuitive over a range of scales (as opposed to TOLERANCEUNITS METERS, TOLERANCE 500). This is not possible as using Mapserver's mapxy requires the map file to have TOLERANCEUNITS METERS to work properly. If I want to use TOLERANCEUNITS PIXELS, I must use imgxy instead of mapxy because mapserver does not do the conversion from mapxy mapping coords to imgxy image coords. Is this correct? Thanks! Brent Fraser From mlinden at zeelandnet.nl Thu Oct 1 09:04:41 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 01 Oct 2009 18:04:41 +0200 Subject: [mapserver-users] MapServer Projection Issues (I think). In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF28ACB29@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF28ACB29@batavia.Speerit.local> Message-ID: <4AC4D319.10909@zeelandnet.nl> .... projections....projections... it is what differentiates a geo-specialist from a "regular" programmer Hello Jelmer, The wgs84 layer is correct because the ellipsoid/spheroid is the same as used by the mercator projection. We in the Netherlands use the Bessel ellipsoid on our Rijksdriehoekstelsel so you need a +towgs84 transformation too.. http://blog.openstreetmap.nl/index.php/2009/08/27/woorden-schieten-tekort/ Good luck! Milo van der Linden Jelmer Baas schreef: > Hello List, > > I've been struggling with OpenLayers and MapServer while using Google > Maps as a backgroundlayer (thus using Spherical Mercator projection). > I've been able to figure it out quite well, but I seem to be stuck at a > reprojection issue. > > The request from OL is: > mapserv.exe?map=test.map&LAYERS=layer1%Clayer2&TRANSPARENT=true&SERVICE= > WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.og > c.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=664084.90082266,6 > 838973.7927063,664696.39704883,6839585.2889324&WIDTH=256&HEIGHT=256 > > This results in an image such as this: > http://www.cocontheweb.nl/_ftth/test.png > > The black line is the original file, in EPSG:28992 (Amersfoort new) and > has a projection "init=EPSG:28992" in the map file. The green line has > the default map file projection ("init=epsg:4326") and the file is saved > as WGS84 with MapInfo. > > The problem now is that the green line is the correct one, the black > line is offset. I've checked all relevant declarations in my epsg file, > they are correct. > > Am I doing something wrong? I hope there is another solution besides > re-saving all files as WGS84. > > > Thanks in advance for any assistance! > > With kind regards, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Thu Oct 1 09:27:28 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Oct 2009 11:27:28 -0500 Subject: [mapserver-users] mapserver 5.6beta1: mindistance notworkingproperly? Message-ID: <4AC492200200008F00028DF7@co5.dnr.state.mn.us> Michael, can you describe the effect you're seeing? The change Alan refers to should cause you to see fewer labels but your original message leads me to believe that's not the case. If you remove that option with the 5.6 beta does the map look different? Steve >>> Alan Boudreault 10/01/09 10:49 AM >>> In fact, that ticket changed the label distance calculation. Before, only the distance between label1 point and label2 point was calculated. Now, the label size is taken into account for the distance calculation. So, we are now sure that there is really the "mindistance" value between our labels. Thanks, Alan On October 1, 2009 10:20:11 am Alan Boudreault wrote: > Hi, > > Could you check that ticket please: > http://trac.osgeo.org/mapserver/ticket/3050 > > Let me informed. > > Thanks, > Alan > > On October 1, 2009 10:12:57 am Steve Lime wrote: > > I'm not aware of any changes in that area of the code although something > > tells me there was a small change but will try and create a test case. > > Thanks for the testing... > > > > Steve > > > > >>> Michael Schulz 09/30/09 5:32 AM >>> > > > > Hi, > > > > thanks for the 5.6 beta1. I'm pretty curious about the new mapfile > > xml-format. > > > > I have a mapfile that uses MINDISTANCE in label objects, the maps and > > labels are generated fine with mapserver- 5.4, with > > mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into > > account. Can anyone confirm this behaviour? > > > > Cheers, Michael > -- Alan Boudreault Mapgears http://www.mapgears.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Oct 1 09:47:55 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Oct 2009 11:47:55 -0500 Subject: [mapserver-users] Using nquery/mapxy/TOLERANCE/TOLERANCEUNITS Message-ID: <4AC496EB0200008F00028DFC@co5.dnr.state.mn.us> It's possible to use mapxy in conjunction with TOLERANCEUNITS PIXELS but you have to understand how pixel size is computed for it to work as expected. The assumption is that there's a map associated with the point query and it's defined by a map extent, a width and a height. So, you'd need to define those somehow too. If not explicitly set as part of a query the defaults in the mapfile are used which is where things could get convoluted. I can't recall what happens if you define mapxy AND mapext with mode=nquery though, which takes precedence in setting the query method? (looks ambiguous in the code) Practically speaking, if a query or whatever is associated with a map image regardless of client environment I *always* use imgxy, imgext and imgsize and populate those from the client and let MapServer do the conversion. Works fine with the environments I use frequently (e.g. OL and dBox). This site does it extensively via OL: http://www.dnr.state.mn.us/waters/csg/index_beta.html Steve >>> Brent Fraser 10/01/09 10:51 AM >>> I'd like someone to confirm my understanding of using nquery/mapxy/TOLERANCE/TOLERANCEUNITS. GeoMoose v1.6 sets mapxy and imgext (along with mode=nquery and imgsize) CGI variables when doing an "Identify Feature" operation. I'd like to use TOLERANCEUNITS PIXELS (and TOLERANCE 3) for my point layer because I think it's more intuitive over a range of scales (as opposed to TOLERANCEUNITS METERS, TOLERANCE 500). This is not possible as using Mapserver's mapxy requires the map file to have TOLERANCEUNITS METERS to work properly. If I want to use TOLERANCEUNITS PIXELS, I must use imgxy instead of mapxy because mapserver does not do the conversion from mapxy mapping coords to imgxy image coords. Is this correct? Thanks! 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 Thu Oct 1 10:25:26 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 01 Oct 2009 11:25:26 -0600 Subject: [mapserver-users] Using nquery/mapxy/TOLERANCE/TOLERANCEUNITS In-Reply-To: <4AC496EB0200008F00028DFC@co5.dnr.state.mn.us> References: <4AC496EB0200008F00028DFC@co5.dnr.state.mn.us> Message-ID: <4AC4E606.8030306@geoanalytic.com> Steve, So the alternative to using imgxy is to send mapserver: mapxy and mapext and imgext (where mapext=imgext) and imgsize? Hmm, I think I tried that, but I'll take a closer look. Sounds like the better solution is just to change Geomoose to use imgxy. Thanks! Brent Fraser Steve Lime wrote: > It's possible to use mapxy in conjunction with TOLERANCEUNITS PIXELS but you > have to understand how pixel size is computed for it to work as expected. The > assumption is that there's a map associated with the point query and it's defined > by a map extent, a width and a height. I thought that was imgext and imgsize? > So, you'd need to define those somehow > too. If not explicitly set as part of a query the defaults in the mapfile are used which > is where things could get convoluted. I can't recall what happens if you define > mapxy AND mapext with mode=nquery though, which takes precedence in setting > the query method? (looks ambiguous in the code) Could be a implementation/support headache... > Practically speaking, if a query or whatever is associated with a map image regardless > of client environment I *always* use imgxy, imgext and imgsize and populate those > from the client and let MapServer do the conversion. Works fine with the environments > I use frequently (e.g. OL and dBox). This site does it extensively via OL: I'm off to hack GeoMoose! > > http://www.dnr.state.mn.us/waters/csg/index_beta.html > > Steve > >>>> Brent Fraser 10/01/09 10:51 AM >>> > I'd like someone to confirm my understanding of using > nquery/mapxy/TOLERANCE/TOLERANCEUNITS. > > GeoMoose v1.6 sets mapxy and imgext (along with mode=nquery and imgsize) CGI > variables when doing an "Identify Feature" operation. I'd like to use > TOLERANCEUNITS PIXELS (and TOLERANCE 3) for my point layer because I think it's > more intuitive over a range of scales (as opposed to TOLERANCEUNITS METERS, > TOLERANCE 500). > > This is not possible as using Mapserver's mapxy requires the map file to have > TOLERANCEUNITS METERS to work properly. If I want to use TOLERANCEUNITS PIXELS, > I must use imgxy instead of mapxy because mapserver does not do the conversion > from mapxy mapping coords to imgxy image coords. > > Is this correct? > > Thanks! > Brent Fraser > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Thu Oct 1 12:08:19 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Oct 2009 14:08:19 -0500 Subject: [mapserver-users] JOIN SHP and CSV Message-ID: <4AC4B7E60200008F00028E40@co5.dnr.state.mn.us> Hi Stefan: Well, the obvious problem is that you haven't set the join CONNECTIONTYPE. The docs look to be wrong to me in a couple of ways wrt to CSV joins. The first is the connection type as mentioned earlier. The second is that CSV join code doesn't use the first row as column names, instead you refer to the columns by number (1, 2, 3, ..., n). It's a pretty basic implementation I'll admit. So, your JOIN block should look something like: JOIN NAME "tab" CONNECTIONTYPE CSV TABLE "../../../../daten/vektordaten/utm/studios/europa_sonnenstudio.csv" FROM "NAME" TO "1" TYPE ONE-TO-ONE END and then in the template you'd use [tab_1], [tab_2], ... to access joined values. Not sure why the docs are so far off, I'll file a ticket on that. Steve >>> Stefan Schantz 09/30/09 7:18 AM >>> Hello, although I 've read several informations (in this user list, mapserver documentation) about joining datas von a csv-file to a shp-file, I still get the error message "Content-type: application/vnd.ogc.se_xml msDBFJoinConnect(): Unable to access file. (../../../../daten/vektordaten/utm/studios/europa_sonnenstudio.csv)" I 've tried already several things like putting csv-file at the same place as the mapfile, chmod 777 , but I always got the same message. Any ideas? Thanks! My mapfile looks like: LAYER NAME "europa" TYPE POLYGON STATUS ON DUMP TRUE DATA "europa" JOIN NAME "tab" TABLE "../../../../daten/vektordaten/utm/studios/europa_sonnenstudio.csv" FROM "NAME" TO "NAME" TYPE ONE-TO-ONE END PROJECTION "init=epsg:4326" END METADATA WMS_SRS "EPSG:25832 EPSG:4326 EPSG:32632 EPSG:31466 EPSG:31467 EPSG:31468" WMS_TITLE "Sonnenstudio" WMS_ABSTRACT "blabla" END LABELITEM 'NAME' CLASS ... END # CLASS CLASS .. END # CLASS TEMPLATE "../templates/getFeature_sonnenstudio.html" .. The path to the data is "/daten/vektordaten/utm/studios/europa_sonnenstudio.csv" 303140 -rwxrwxrwx 1 ssh-m gdi 2229 Sep 30 11:27 europa_sonnenstudio.csv path to the mapfile is "/data/umn/abc/map/studio.map" The information of the csv-data is: ogrinfo europa_sonnenstudio.csv europa_sonnenstudio -summary INFO: Open of `europa_sonnenstudio.csv' using driver `CSV' successful. Layer name: europa_sonnenstudio Geometry: None Feature Count: 54 Layer SRS WKT: (unknown) ID: String (0.0) NAME: String (0.0) TEXT: String (0.0) DATUM: String (0.0) The information of the shp-data is: ogrinfo europa.shp europa -summary INFO: Open of `europa.shp' using driver `ESRI Shapefile' successful. Layer name: europa Geometry: Polygon Feature Count: 54 Extent: (-31.265747, 32.397476) - (69.070320, 81.857368) Layer SRS WKT: (unknown) NAME: String (40.0) Greetings from the Bavarian-Oktoberfest Stefan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Oct 1 12:53:02 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Oct 2009 14:53:02 -0500 Subject: [mapserver-users] WMS in Google Earth Message-ID: <4AC4C2530200008F00028E56@co5.dnr.state.mn.us> Depends on the version of MapServer. Certain versions required required (yes that's correct) parameters according to the WMS specification. I recall requiring "style" for example. Problem is that not all clients follow the spec and Google Earth was one example and manually adding "&style=" to the WMS url fixed things. Subsequently we've backed off the required params in a few cases when a major WMS client breaks. Of course with Google Earth you need to support epsg:4326 as an output projection explicitly as well. Posting version info and mapfile snippets always helps folks respond. Steve >>> Edmar Moretti 09/29/09 8:56 PM >>> Here's an example that uses Mapserver to generate layers in google earth (i3geo software - http://mapas.mma.gov.br): http://mapas.mma.gov.br/i3geo/kml.php Use the link in the "network link" (link de rede) option. Josh Hevenor escreveu: > I'm wondering if anyone has had success viewing their mapserver WMS > services through Google Earth? I can manually enter a GetMap request and > see the image but when I try to list my layers in the Refresh->WMS > Parameters section I get an error message stating that "This MWS server > has no layers which can be rendered by Google Earth" > > Are there any common trip-ups that others have experienced? I can post > more details if required... > > josh > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > E-mail verificado pelo Terra Anti-Spam. > Para classificar esta mensagem como spam ou n??o spam, visite > http://ecp.terra.com.br/cgi-bin/reportspam.cgi?+_d=SCY1NDIyNDE3I3Blcm0hdGVycmEmMSwxMjU0MjM1MzYyLjU1NzEzNy4xNzc2Ny5nYW5hbm9xdWUudGVycmEuY29tLDM3NDk=TerraMail > Verifique periodicamente a pasta Spam para garantir que apenas mensagens > indesejadas sejam classificadas como Spam. > > Esta mensagem foi verificada pelo E-mail Protegido Terra. > Atualizado em 29/09/2009 > > > > -- Por favor, atualize sua lista de contatos com meu novo e-mail: edmar.moretti at terra.com.br Skype: edmar.moretti Blog: http://edmarmoretti.blogspot.com/ Ohloh: https://www.ohloh.net/accounts/edmarmoretti _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu Oct 1 15:28:01 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 01 Oct 2009 18:28:01 -0400 Subject: [mapserver-users] MapServer 5.6.0-beta2 released Message-ID: <4AC52CF1.4060203@mapgears.com> MapServer 5.6.0-beta2 has just been released and is available for download at http://mapserver.org/download.html OR http://download.osgeo.org/mapserver/mapserver-5.6.0-beta2.tar.gz The list of fixes since beta1 is included at the end of this message. Once again, we need your help to ensure a high quality product so please help out by testing your applications with this new beta. One area that need special testing is the queries, to catch and fix any possible side-effects of the new one-pass query implementation in RFC 52. Here are a list of things to test for those interested: 1- Test regular CGI applications with queries, with and without querymaps, and with various data sources (shapefiles, OGR, PostGIS, Oracle Spatial, SDE, etc.) 2- In the MapScript case, a change is required: MapScript applications will need to be modified to use the new layer.resultsGetShape() method to read query results instead of the layer.getShape/getFeature() methods that were used in previous versions. It is also no longer required to call layer.open() before reading query results as this is now handled by the query functions. With that little change, MapScript applications should work properly, if not then please let us know ASAP. 3- WFS services use the query mechanism as well internally, so it would be good to have reports of tests of WFS GetFeature requests with various data sources. Thanks for your help The MapServer development team. Version 5.6.0-beta2 (2009-10-01): --------------------------------- - Fixed a couple of issues with Oracle Spatial and single pass queries (#3069) - Added layer.resultsGetShape() to PHP MapScript for use with queries (#3069) - Fixed query maps under the new single pass query process (#3069) - WFS Client seg fault (OGR layer not opened) (#3136) - Reduce use of sqrt() calls when determining distances (#3134) - support axis ordering for WFS 1.1 (#2899) - const changes to avoid warnings with msLoadProjectionString() - mapgd.c: removed unused drawVectorSymbolGD() function. - Use http://www.mapserver.org/mapserver namespace URI in XML mapfile schema (#3142) - Fixed issue with PHP_REGEX_INC in mapscript/php3/Makefile.in (#3078) From dmorissette at mapgears.com Thu Oct 1 15:39:34 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 01 Oct 2009 18:39:34 -0400 Subject: [mapserver-users] MapServer 5.6.0-beta1 release In-Reply-To: <35FDE0CC-22BB-4A7F-B69F-9FADB6CEE4B4@kyngchaos.com> References: <4ABC16FE.7050107@mapgears.com> <35FDE0CC-22BB-4A7F-B69F-9FADB6CEE4B4@kyngchaos.com> Message-ID: <4AC52FA6.4060903@mapgears.com> William Kyngesburye wrote: > Can someone ("Alan" assigned in the bug) do something about this - it > simply breaks PHP Mapscript compilation on OSX because the system regex > is used in PHP: > > http://trac.osgeo.org/mapserver/ticket/3078 > Thanks for the reminder. It's fixed in 5.6.0-beta2. Daniel -- Daniel Morissette http://www.mapgears.com/ From mschulz at webgis.de Fri Oct 2 00:35:53 2009 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 2 Oct 2009 09:35:53 +0200 Subject: [mapserver-users] mapserver 5.6beta1: mindistance notworkingproperly? In-Reply-To: <4AC492200200008F00028DF7@co5.dnr.state.mn.us> References: <4AC492200200008F00028DF7@co5.dnr.state.mn.us> Message-ID: Hi Steve, Hi Alan, exactly, that was the change I also noted in trac. When I realized the effect, I reverted the last condition in maplabel.c. line 515, to its previous state, only comparing the distance of the points with mindistance. With the expected results, that I even got some more labels. So basically the change is working, but I see a lot more labels than with 54. Here are three screenshots of the effect: - http://img35.imageshack.us/img35/7871/mindistlabelsms54.png - http://img39.imageshack.us/img39/1130/mindistlabelsms56.png - http://img32.imageshack.us/img32/5196/mindistlabelsms56wolabe.png (MS56 without taking the labelsize into account) The maps are based on the osm data example, and as you can see it renders flawlessly with mapserver 54. Maybe someone who also uses this example can have a try with mapserv56 and see if it is the same. The mindistance used is 150 px. The calls to images were getMap requests. Thanks, Michael 2009/10/1 Steve Lime : > Michael, can you describe the effect you're seeing? The change Alan refers to > should cause you to see fewer labels but your original message leads me to > believe that's not the case. If you remove that option with the 5.6 beta does > the map look different? > > Steve > >>>> Alan Boudreault 10/01/09 10:49 AM >>> > In fact, that ticket changed the label distance calculation. Before, only the > distance between label1 point and label2 point was calculated. Now, the label > size is taken into account for the distance calculation. So, we are now sure > that there is really the "mindistance" value between our labels. > > Thanks, > Alan > > On October 1, 2009 10:20:11 am Alan Boudreault wrote: >> Hi, >> >> Could you check that ticket please: >> http://trac.osgeo.org/mapserver/ticket/3050 >> >> Let me informed. >> >> Thanks, >> Alan >> >> On October 1, 2009 10:12:57 am Steve Lime wrote: >> > I'm not aware of any changes in that area of the code although something >> > tells me there was a small change but will try and create a test case. >> > Thanks for the testing... >> > >> > Steve >> > >> > >>> Michael Schulz 09/30/09 5:32 AM >>> >> > >> > Hi, >> > >> > thanks for the 5.6 beta1. I'm pretty curious about the new mapfile >> > xml-format. >> > >> > I have a mapfile that uses MINDISTANCE in label objects, the maps and >> > labels are generated fine with mapserver- 5.4, with >> > mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into >> > account. Can anyone confirm this behaviour? >> > >> > Cheers, Michael >> > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From Baas at speerit.nl Fri Oct 2 01:07:28 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Fri, 2 Oct 2009 10:07:28 +0200 Subject: [mapserver-users] MapServer Projection Issues (I think). In-Reply-To: <4AC4D319.10909@zeelandnet.nl> References: <68C97F84EAD0174799AC6FCEE219DEF28ACB29@batavia.Speerit.local> <4AC4D319.10909@zeelandnet.nl> Message-ID: <68C97F84EAD0174799AC6FCEE219DEF28ACB6D@batavia.Speerit.local> Milo, Thanks for the reply. I've changed the definition in my epsg file and it works! Thanks :) -- Jelmer > -----Original Message----- > From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] > Sent: donderdag 1 oktober 2009 18:05 > To: Jelmer Baas > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer Projection Issues (I think). > > .... projections....projections... it is what differentiates a > geo-specialist from a "regular" programmer > > Hello Jelmer, > > > The wgs84 layer is correct because the ellipsoid/spheroid is > the same as > used by the mercator projection. > > We in the Netherlands use the Bessel ellipsoid on our > Rijksdriehoekstelsel so you need a +towgs84 transformation too.. > > http://blog.openstreetmap.nl/index.php/2009/08/27/woorden-schi eten-tekort/ > > Good luck! > > Milo van der Linden > > > Jelmer Baas schreef: > > Hello List, > > > > I've been struggling with OpenLayers and MapServer while > using Google > > Maps as a backgroundlayer (thus using Spherical Mercator > projection). > > I've been able to figure it out quite well, but I seem to > be stuck at a > > reprojection issue. > > > > The request from OL is: > > > mapserv.exe?map=test.map&LAYERS=layer1%Clayer2&TRANSPARENT=tru e&SERVICE= > > > WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=applicatio n%2Fvnd.og > > > c.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=664084. 90082266,6 > > 838973.7927063,664696.39704883,6839585.2889324&WIDTH=256&HEIGHT=256 > > > > This results in an image such as this: > > http://www.cocontheweb.nl/_ftth/test.png > > > > The black line is the original file, in EPSG:28992 > (Amersfoort new) and > > has a projection "init=EPSG:28992" in the map file. The > green line has > > the default map file projection ("init=epsg:4326") and the > file is saved > > as WGS84 with MapInfo. > > > > The problem now is that the green line is the correct one, the black > > line is offset. I've checked all relevant declarations in > my epsg file, > > they are correct. > > > > Am I doing something wrong? I hope there is another solution besides > > re-saving all files as WGS84. > > > > > > Thanks in advance for any assistance! > > > > With kind regards, > > Jelmer Baas > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From mlinden at zeelandnet.nl Fri Oct 2 01:14:16 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 02 Oct 2009 10:14:16 +0200 Subject: [mapserver-users] MapServer Projection Issues (I think). In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF28ACB6D@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF28ACB29@batavia.Speerit.local> <4AC4D319.10909@zeelandnet.nl> <68C97F84EAD0174799AC6FCEE219DEF28ACB6D@batavia.Speerit.local> Message-ID: <4AC5B658.2020905@zeelandnet.nl> Jelmer, You're welcome! Glad it was the right solution for you. Cheers Milo Jelmer Baas schreef: > Milo, > > Thanks for the reply. I've changed the definition in my epsg file and it > works! > > Thanks :) > > From gis at shnu.edu.cn Fri Oct 2 07:38:02 2009 From: gis at shnu.edu.cn (Rui Jianxun) Date: Fri, 02 Oct 2009 22:38:02 +0800 Subject: [mapserver-users] Giving us a sample of draw dynamic thematic map Message-ID: Professor Steve.Lime, How are you! I am a beginner for MapServer. I want to draw dynamic thematic map via MapServer. My ques is : There is only one polygon layer (.shp files)with several attributes fields.I will develop a web app via MapServer that allows users selecting the number of classification for this layer via the dropdown list components or write into the text field on the web app ,such as ie or firefox. In this case,one could draw thematic map of the layer with 4 subclass,and others with 5 subclass. How can i do? Would you like to give me a sample? Best Regards, Rui jx ????????????????????: >From: "Steve Lime" >Reply-To: >To: "PatB" , >Subject: Re: [mapserver-users] Scale Bar Size Issue >Date:Tue, 29 Sep 2009 10:11:09 -0500 > >I thought about this more last night and settled on using a negative width to imply bar width >and a positive width to imply image width. Wouldn't affect the mapfile defs or anything like that >and a relatively easy addition on my part. > >Steve > >>>> On 9/29/2009 at 10:06 AM, in message ><1254236781386-3736841.post at n2.nabble.com>, PatB >wrote: > >> Gotcha - I meant that the image size I'd need to calculate would change >> because of the text etc. >> >> I don't think changing the ms source code is an option for me, I'd prefer to >> go that route but don't have direct access to the produciton server. If, >> however, you come up with a patch please pass it along, maybe I can talk my >> boss into letting me use it :) It could also help someone else down the >> line, I can't be the only person that wants control of the interval size. >> >> So anyway, I know the output dpi and I know I want 1/2" intervals for >> english and 1 cm for metric so I may end up just making a one size fits all >> graphic and sticking text underneath it. Sucks though. >> >> Thanks for your help, >> Pat >> >> >> Steve Lime wrote: >>> >>> No, the image size is held constant and changes in the bar itself are made >>> to accommodate for >>> that restriction, at least that what we try to do. We know how much space >>> we have for the >>> bar and the various text elements and work backwards from that. You say, >>> if the bar is >>> so big the text is this, does it fit? If not then make the bar a touch >>> shorter and re-compute >>> things. Again, that was done to facilitate websites where just image >>> elements change and >>> not printing. >>> >>> I suppose one could hack the scalebar code to interpret the size to mean >>> "the bar" and not >>> the image, or at least have that as an option. I'll take a peek and get >>> back to you (or feel free >>> if you're so inclined). Probably easier to hack the source than make your >>> own. >>> >>> Steve >>> >>>>>> On 9/28/2009 at 2:12 PM, in message >>>>>> <1254165139306-3731312.post at n2.nabble.com>, >>> PatB wrote: >>> >>>> The image size will vary because of the length of the last callout under >>>> the >>>> bar, right? 100000 km will stick out past the bar farther than 5000 m. >>>> I >>>> guess I could eyeball how much based on the font size, number of >>>> characters >>>> and ouput dpi but, well, bleach. Is there a better way? Plan B is to >>>> make >>>> my own scalebar but I'm not wild about that idea either. >>>> >>>> Engineers all over the world just cringed when I wrote 'eyeball'. >>>> >>>> Thanks. >>>> >>>> >>>> Steve Lime wrote: >>>>> >>>>> When you set a size for a scalebar the width you provide is what you get >>>>> back. The height is for >>>>> the bar only. This was done so that scalebar images could retain the >>>>> same >>>>> image size and you >>>>> could just swap img.src in a web app (assuming you're not mucking with >>>>> font sizes). You'll likely >>>>> have to experiment a bit with the width then to get it roughly the right >>>>> size (e.g ask for 750). >>>>> >>>>> Steve >>>>> >>>>>>>> On 9/24/2009 at 11:04 PM, in message >>>>> <1253851467382-3710334.post at n2.nabble.com>, PatB >>>>> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm using the code below to request a scalebar from mapserver. My >>>>>> understanding of the documentation is that the size parameter sets the >>>>>> size >>>>>> of the scalebar itself not including the text, border, etc but that's >>>>>> not >>>>>> what I'm getting back. The url below returns an image that is 600 x >>>>>> 153 >>>>>> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >>>>>> account >>>>>> for the surrounding stuff. The height works as expected and the >>>>>> units/distances look right, the width of the scalebar itself is the >>>>>> issue. >>>>>> >>>>>> This is for a print app, the output res is 300dpi so by setting the >>>>>> width >>>>>> to >>>>>> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >>>>>> intervals. >>>>>> This seems like it would be a common task but I've been digging though >>>>>> the >>>>>> forum for hours without success. A little help? I'm using MS version >>>>>> 5.4.2 >>>>>> >>>>>> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >>>>>> >>>> >> 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval >> >>>> >>>>>> s+4+label+size+40+end >>>>>> >>>>>> and my map file goes something like: >>>>>> >>>>>> MAP >>>>>> ... >>>>>> UNITS meters >>>>>> ... >>>>>> SCALEBAR >>>>>> STYLE 0 >>>>>> IMAGECOLOR 255 255 255 >>>>>> LABEL >>>>>> TYPE TRUETYPE >>>>>> FONT "tahoma" >>>>>> SIZE 40 >>>>>> COLOR 0 114 255 >>>>>> END >>>>>> SIZE 600 75 >>>>>> COLOR 235 235 235 >>>>>> BACKGROUNDCOLOR 0 114 255 >>>>>> OUTLINECOLOR 0 0 0 >>>>>> UNITS meters >>>>>> INTERVALS 4 >>>>>> STATUS on >>>>>> TRANSPARENT on >>>>>> END >>>>>> ... >>>>>> >>>>>> Thanks - and yes, the map size is friggin huge. >>>>> >>>>> _______________________________________________ >>>>> 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 dgwalton at gmail.com Fri Oct 2 07:55:02 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Fri, 2 Oct 2009 09:55:02 -0500 Subject: [mapserver-users] Type initializer exception with C# MapScript In-Reply-To: <8ab83e650910020603u32db4dd2gc62b2c9a9d9fa10e@mail.gmail.com> References: <8ab83e650910020603u32db4dd2gc62b2c9a9d9fa10e@mail.gmail.com> Message-ID: <8ab83e650910020755w5a6c5f55k26a360004c8ffbb9@mail.gmail.com> Hey guys, I'm new to MS, and using the MS4W distribution. It was the only Windows binary dist. I found that had C# MapScript set up. Anyway, I get the following exception when I try to construct a mapObj: *The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception.* Anyone else out there seen this? I have referenced mapscript_csharp.dll compiled by the MS4W folks, and here is the properties pane in VS2008: *Aliases: global Copy Local: true File Type: Assembly Identity: mapscript_csharp Path: C:\Domains\Website1\ImageService\ImageService1\bin\mapscript_csharp.dll Resolved: true Runtime Version: v2.0.50727 Specific Version: true Strong Name: true Version: 1.0.3491.26938* Here is the basic structure of my code: private void CreateMap(string folder) { //Add a new map (based on a unique ticket string) string mapfilename = folder + this.ticket + ".map"; string[] rasterfiles = Directory.GetFiles(folder, "*.tif", SearchOption.AllDirectories); string[] shapefiles = Directory.GetFiles(folder, "*.shp", SearchOption.AllDirectories); mapObj map = new mapObj(mapfilename); //Add raster layers to the map foreach (string rasterfile in rasterfiles) { //Call GDAL utils string tiledrasterfile = rasterfile.Substring(0,rasterfile.LastIndexOf(".")) + "_tiled.tif"; //Create image tiles for full raster Shell(gdalroot + "gdal_translate"," -co TILED=YES " + rasterfile + " " + tiledrasterfile); //Add Overviews for various zoom levels Shell(gdalroot + "gdaladdo", tiledrasterfile + " 2 4 8 16 32 64"); layerObj layer = new layerObj(map); layer.connectiontype = MS_CONNECTION_TYPE.MS_RASTER; layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; layer.data = rasterfile; layer.status = mapscript.MS_ON; } //Add shape layers to the map (ESRI shapefile) foreach (string shapefile in shapefiles) { layerObj layer = new layerObj(map); layer.connectiontype = MS_CONNECTION_TYPE.MS_SHAPEFILE; layer.type = MS_LAYER_TYPE.MS_LAYER_POLYGON; layer.data = shapefile; layer.status = mapscript.MS_ON; } map.save(mapfilename); } Dan Walton dgwalton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Oct 2 08:12:58 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 2 Oct 2009 17:12:58 +0200 Subject: [mapserver-users] Type initializer exception with C# MapScript In-Reply-To: <8ab83e650910020755w5a6c5f55k26a360004c8ffbb9@mail.gmail.com> References: <8ab83e650910020603u32db4dd2gc62b2c9a9d9fa10e@mail.gmail.com> <8ab83e650910020755w5a6c5f55k26a360004c8ffbb9@mail.gmail.com> Message-ID: 2009/10/2 Daniel Walton : > Hey guys, > > I'm new to MS, and using the MS4W distribution. It was the only Windows > binary dist. I found that had C# MapScript set up. Daniel, That's not exactly the case, you could also use the binaries available at this location: http://vbkto.dyndns.org/sdk/ FWTools (http://fwtools.maptools.org/) should also have the C# bindings included. Anyway, I get the > following exception when I try to construct a mapObj: > > The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an > exception. > > Anyone else out there seen this? > > > I have referenced mapscript_csharp.dll compiled by the MS4W folks, and here > is the properties pane in VS2008: > Yes, most of the users have ever seen that, which would normally mean that not all of the dll-s are available to load when your application is running. Make sure all of the required dependecies (like mapscript.dll, libmap.dll, gdal geos dll-s etc.) are available in your executing directory. You may also use a file monitoring tool (like Sysinternals filemon) to identify the expected location of the files at run-time. Best regards, Tamas From jmckenna at gatewaygeomatics.com Fri Oct 2 08:16:04 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 02 Oct 2009 12:16:04 -0300 Subject: [mapserver-users] FOSS4G BOF for MapServer Message-ID: <4AC61934.2070004@gatewaygeomatics.com> Hello everyone! I noticed that the PostGIS users are going to get together to share ideas/feedback in a Birds of a Feather session in Sydney (on the Thursday night), and I think this is a great idea for MapServer users as well, so I have entered it in the wiki (http://wiki.osgeo.org/wiki/FOSS4G_2009_BirdsOfAFeather#MapServer_Users_Meeting). Please add yourself and come along! -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From seis4web at web.de Fri Oct 2 08:44:32 2009 From: seis4web at web.de (seis4web at web.de) Date: Fri, 02 Oct 2009 17:44:32 +0200 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale Message-ID: <874491905@web.de> Hi list, I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem: For instance I am using a group of layers: LAYER NAME "A_a" GROUP "A" ... LAYER NAME "A_b" GROUP "A" ... LAYER NAME "A_c" GROUP "A" ... A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible. But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response. It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842) What can I do beside upgrading on version 6.0 as soon as it's available? Any advice is welcome! Thanks in advance, Nina ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ From David.Fawcett at state.mn.us Fri Oct 2 08:59:11 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 2 Oct 2009 10:59:11 -0500 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale In-Reply-To: <874491905@web.de> References: <874491905@web.de> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD507A7AAB8@s-sp22.pca.state.mn.us> Is there a reason why you can't organize your data as scale-dependent classes within one layer instead of as three separate layers in a group? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de Sent: Friday, October 02, 2009 10:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS GetFeatureInfo beyond scale Hi list, I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem: For instance I am using a group of layers: LAYER NAME "A_a" GROUP "A" ... LAYER NAME "A_b" GROUP "A" ... LAYER NAME "A_c" GROUP "A" ... A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible. But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response. It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842) What can I do beside upgrading on version 6.0 as soon as it's available? Any advice is welcome! Thanks in advance, Nina ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Oct 2 09:08:46 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 02 Oct 2009 13:08:46 -0300 Subject: [mapserver-users] FOSS4G BOF for MapServer In-Reply-To: <4AC61934.2070004@gatewaygeomatics.com> References: <4AC61934.2070004@gatewaygeomatics.com> Message-ID: <4AC6258E.60604@gatewaygeomatics.com> Jeff McKenna wrote: > Hello everyone! > > I noticed that the PostGIS users are going to get together to share > ideas/feedback in a Birds of a Feather session in Sydney (on the > Thursday night), and I think this is a great idea for MapServer users as > well, so I have entered it in the wiki > (http://wiki.osgeo.org/wiki/FOSS4G_2009_BirdsOfAFeather#MapServer_Users_Meeting). > Please add yourself and come along! > For those that can make it at that time on IRC (in #mapserver) please do so, and we'll make sure that your feedback is discussed. (I've updated the BOF wiki with a timeanddate.com link) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From seis4web at web.de Fri Oct 2 08:40:23 2009 From: seis4web at web.de (seis4web at web.de) Date: Fri, 02 Oct 2009 17:40:23 +0200 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale Message-ID: <874436197@web.de> Hi list, I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem: For instance I am using a group of layers: LAYER NAME "A_a" GROUP "A" ... LAYER NAME "A_b" GROUP "A" ... LAYER NAME "A_c" GROUP "A" ... A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible. But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response. It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842) What can I do beside upgrading on version 6.0 as soon as it's available? Any advice is welcome! Thanks in advance, Nina ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ From Steve.Lime at dnr.state.mn.us Fri Oct 2 10:29:02 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 02 Oct 2009 12:29:02 -0500 Subject: [mapserver-users] REMINDER: Call for Nominations - Sol Katz Award forGeospatial Free and Open Source Software Message-ID: <4AC5F20E.5157.008F.0@dnr.state.mn.us> Only one week left to submit your Sol Katz award nominations! (more details below). ------- The Open Source Geospatial Foundation would like to open nominations for the 2009 Sol Katz Award for Geospatial Free and Open Source Software. The Sol Katz Award for Geospatial Free and Open Source Software (GFOSS) will be given to individuals who have demonstrated leadership in the GFOSS community. Recipients of the award will have contributed significantly through their activities to advance open source ideals in the geospatial realm. Sol Katz was an early pioneer of GFOSS and left behind a large body of work in the form of applications, format specifications, and utilities while at the U.S. Bureau of Land Management. This early GFOSS archive provided both source code and applications freely available to the community. Sol was also a frequent contributor to many geospatial list servers, providing much guidance to the geospatial community at large. Sol unfortunately passed away in 1999 from Non-Hodgkin's Lymphoma, but his legacy lives on in the open source world. Those interested in making a donation to the American Cancer Society, as per Sol's family's request, can do so at https://www.cancer.org/asp/donate/don_multi_donate.asp?navToScreen=don_1. Nominations for the Sol Katz Award should be sent to SolKatzAward at osgeo.org with a description of the reasons for this nomination. Nominations will be accepted until midnight UTC on October 9th (http://www.timeanddate.com/worldclock/fixedtime.html?month=10&day=09&year=2009&hour=23&min=59&sec=59). A recipient will be decided from the nomination list by an OSGeo designated selection committee. The winner of the Sol Katz Award for Geospatial Free and Open Source Software will be announced on October 23rd at the FOSS4G 2009 conference (http://2009.foss4g.org/) closing plenary in Sydney, Australia. The hope is that the award will both acknowledge the work of community members, and pay tribute to one of its founders, for years to come. It should be noted that past awardees and selection committee members are not eligible. Past Awardees: 2008: Paul Ramsey 2007: Steve Lime 2006: Markus Neteler 2005: Frank Warmerdam Selection Committee: Jeff McKenna (chair) Frank Warmerdam Markus Neteler Steve Lime Paul Ramsey Sophia Parafina From dgwalton at gmail.com Fri Oct 2 10:31:59 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Fri, 2 Oct 2009 12:31:59 -0500 Subject: [mapserver-users] Type initializer exception with C# MapScript - Step 2 Message-ID: <8ab83e650910021031n45905a4w22a98398cb860147@mail.gmail.com> More pre-apologies for the 101 type questions I'm asking here. Thanks for the replies. You were all right, I just had to check all the dll dependencies and copy those into my bin folder (32 dlls in all). Now I am one inch further down the road. I can create the mapfile (text shown below), but how to I get from mapfile to hosted WMS? I will break down the question into the parts I can see so far (please add or subtract if I'm off): 1. Do I need to create the mapfile in a specific folder for MapServer to 'see' it? 2. Are there any other configuration files that need to be created or edited for MapServer to expose my map via WMS? 3. Can the files in (2) be created/edited via MapScript? 4. What would be the base URL of the WMS once it's running? Thanks again for your patience in holding my hand for these baby steps! Mapfile currently being created at R:\Temp\A091002122006.map: *MAP EXTENT -1 -1 -1 -1 IMAGECOLOR 255 255 255 IMAGETYPE gif SIZE -1 -1 STATUS ON UNITS METERS NAME "MS" OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE "PC256" TRANSPARENT FALSE END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF 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 END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_NIR.tif" NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_NIR" STATUS ON TYPE RASTER UNITS METERS END LAYER DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_RATIO.tif" NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_RATIO" STATUS ON TYPE RASTER UNITS METERS END LAYER DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_SWIR.tif" NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_SWIR" STATUS ON TYPE RASTER UNITS METERS END LAYER DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_Hot_Spots.tif" NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_HOT_SPOTS" STATUS ON TYPE RASTER UNITS METERS END LAYER DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_FIRE_HIGHLIGHT.tif" NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_FIRE_HIGHLIGHT" STATUS ON TYPE RASTER UNITS METERS END END* On Fri, Oct 2, 2009 at 10:12 AM, Tamas Szekeres wrote: > 2009/10/2 Daniel Walton : > > Hey guys, > > > > I'm new to MS, and using the MS4W distribution. It was the only Windows > > binary dist. I found that had C# MapScript set up. > > Daniel, > > That's not exactly the case, you could also use the binaries available > at this location: > http://vbkto.dyndns.org/sdk/ > > FWTools (http://fwtools.maptools.org/) should also have the C# > bindings included. > > > Anyway, I get the > > following exception when I try to construct a mapObj: > > > > The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an > > exception. > > > > Anyone else out there seen this? > > > > > > I have referenced mapscript_csharp.dll compiled by the MS4W folks, and > here > > is the properties pane in VS2008: > > > > Yes, most of the users have ever seen that, which would normally mean > that not all of the dll-s are available to load when your application > is running. > Make sure all of the required dependecies (like mapscript.dll, > libmap.dll, gdal geos dll-s etc.) are available in your executing > directory. > You may also use a file monitoring tool (like Sysinternals filemon) to > identify the expected location of the files at run-time. > > > > > Best regards, > > Tamas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Fri Oct 2 10:43:58 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 2 Oct 2009 10:43:58 -0700 Subject: [mapserver-users] FOSS4G BOF for MapServer In-Reply-To: <4AC61934.2070004@gatewaygeomatics.com> References: <4AC61934.2070004@gatewaygeomatics.com> Message-ID: <30fe546d0910021043ie3a2504wbe619a867e3f2306@mail.gmail.com> Of course, the sessions are at the same time, so I will be using this as a loyalty test. Who do you love more, PostGIS or Mapserver? Think carefully about your answer, there may be repercussions... :) p. On Fri, Oct 2, 2009 at 8:16 AM, Jeff McKenna wrote: > I noticed that the PostGIS users are going to get together to share > ideas/feedback in a Birds of a Feather session in Sydney (on the Thursday > night), and I think this is a great idea for MapServer users as well, so I > have entered it in the wiki > (http://wiki.osgeo.org/wiki/FOSS4G_2009_BirdsOfAFeather#MapServer_Users_Meeting). > ?Please add yourself and come along! From szekerest at gmail.com Fri Oct 2 13:34:40 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 2 Oct 2009 22:34:40 +0200 Subject: [mapserver-users] Re: Type initializer exception with C# MapScript - Step 2 In-Reply-To: <8ab83e650910021031n45905a4w22a98398cb860147@mail.gmail.com> References: <8ab83e650910021031n45905a4w22a98398cb860147@mail.gmail.com> Message-ID: Daniel, Please find my comments inline below... 2009/10/2 Daniel Walton : > More pre-apologies for the 101 type questions I'm asking here. Thanks for > the replies. You were all right, I just had to check all the dll > dependencies and copy those into my bin folder (32 dlls in all). Now I am > one inch further down the road. I can create the mapfile (text shown below), > but how to I get from mapfile to hosted WMS? I will break down the question > into the parts I can see so far (please add or subtract if I'm off): > If you're about to serve WMS from the mapfile, you probably don't need to deal with MapScript at all. The WMS capabilities are exposed primarily with the CGI mapscript (ie. mapserv.exe). In this regard this issue would be more about how to set up your webserver to interact with mapserv.exe. You said you're using ms4w which contains a pre-configured apache to serve the mapserver maps. You'll probably require to use apache-install.bat for setting up the server and modify the httpd.conf according to your expectations (ports, virtual directories etc). See the ms4w related documentation for the details. After setting this up you'll be able to get the map by using a standard WMS request on the configured port, like: http://localhost/cgi-bin/mapserv.exe?map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-67.5725,42.3683,-58.9275,48.13&FORMAT=image/png&WIDTH=300&HEIGHT=200&STYLES=&LAYERS=road > Do I need to create the mapfile in a specific folder for MapServer to 'see' > it? I guess you could use absolute paths (like D:/ms4w/apps/blah/blah.map) or relative paths to the executing directory as well. > Are there any other configuration files that need to be created or edited > for MapServer to expose my map via WMS? Please refer to the WMS server documentation fro the details: http://mapserver.org/ogc/wms_server.html > Can the files in (2) be created/edited via MapScript? > What would be the base URL of the WMS once it's running? > I you would programmatically edit the map config before serving the WMS, you'll probably require to implement the WMS specification with your WEB (ASP.NET) application, since the WxS IO redirection haven't been implemented with the C# bindings, yet. > Thanks again for your patience in holding my hand for these baby steps! > no problem Best regards, Tamas From mlinden at zeelandnet.nl Fri Oct 2 13:40:11 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 02 Oct 2009 22:40:11 +0200 Subject: [mapserver-users] FOSS4G BOF for MapServer In-Reply-To: <30fe546d0910021043ie3a2504wbe619a867e3f2306@mail.gmail.com> References: <4AC61934.2070004@gatewaygeomatics.com> <30fe546d0910021043ie3a2504wbe619a867e3f2306@mail.gmail.com> Message-ID: <4AC6652B.9030304@zeelandnet.nl> (Black Eyed Peas, Simple little melody) Love ain?t technological, like Auto-bot, auto-bot Love ain?t robotic, like Auto-bot, auto-bot Love ain?t complicated, like Arithmetic, -rithmetic Love is stimulating Let me stimulate and tickle it Love is elementary, like 1, 2, 3, 1, 2, 3 Love is really simple, just like A, b, c, a, b, c ------ It is love that is keeping me at home instead of visiting all these wonderfull BOF's! ;-) Paul Ramsey schreef: > Of course, the sessions are at the same time, so I will be using this > as a loyalty test. Who do you love more, PostGIS or Mapserver? Think > carefully about your answer, there may be repercussions... :) > > p. > > On Fri, Oct 2, 2009 at 8:16 AM, Jeff McKenna > wrote: > >> I noticed that the PostGIS users are going to get together to share >> ideas/feedback in a Birds of a Feather session in Sydney (on the Thursday >> night), and I think this is a great idea for MapServer users as well, so I >> have entered it in the wiki >> (http://wiki.osgeo.org/wiki/FOSS4G_2009_BirdsOfAFeather#MapServer_Users_Meeting). >> Please add yourself and come along! >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From woodbri at swoodbridge.com Fri Oct 2 14:11:07 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 02 Oct 2009 17:11:07 -0400 Subject: [mapserver-users] Can you pass draw scale into postgis SQL? Message-ID: <4AC66C6B.1070204@swoodbridge.com> Hi all, I would like to be able to make my postgis queries in mapserver be aware of the current draw scale. Is there an easy way to do this in the mapfile? I would like to avoid parameter substitution since mapserver is already aware of the scale, it would be nice if we could just embed a token like [scale] in a mapserver data statement and mapserver would substitute that for the current draw scale. DATA "way from ( select way, osm_id, landuse, name from osm_landuse1 where landuse is not null and is_large_enough(area(way),'landuse1',[scale]) ) as foo using unique osm_id using srid=900913" The idea here is that is_large_enough(area(way),'landuse1',[scale]) whould return true or false based on comparing area(way) to some value it looks up for 'landuse1' and the current [scale]. This would allow dynamic filtering of data in the database based on the current scale. Likewise you could use the [scale] in a SQL case statement to dynamically change the SQL results based on scale. It would seem that this could greatly simplify mapfiles. -Steve W From tspradley at snoogems.com Fri Oct 2 17:01:18 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Fri, 2 Oct 2009 17:01:18 -0700 (PDT) Subject: [mapserver-users] tile4ms - Layer object STATUS Message-ID: <1254528078635-3758428.post@n2.nabble.com> Hi All, Still working on basics. Now tiling. Following the steps to tile data on http://mapserver.org/utilities/tile4ms.html#tile4ms. 1. With STATUS ON, MS does not display the tiled data at any zoom level 2. With STATUS DEFAULT, MS displays the tiled data at all zoom levels I have scratched my head over this one. Your thoughts please? The steps followed and the associated mapfile are below. The commented out lines are exactly as in the actual file from debugging. Thank you! Ted S. Steps from http://mapserver.org/utilities/tile4ms.html#tile4ms: 1. Create the meta-file # find *areawater.shp -print > areawater_list.txt 2. Execute tile4ms # tile4ms areawater_list.txt areawaterindex 3. areawaterindex.dbf, areawaterindex.shp, areawaterindex.dbx are created (I notice the contents of areawaterindex.dbf is only a single column, LOCATION. The instructional page shows an ID column) 4. Create the layer object for the mapfile. Mapfile ###################### MAP SIZE 1600 800 EXTENT -125 24 -65 50 UNITS DD PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" "no_defs" END IMAGETYPE PNG24 WEB TEMPLATE "/path/to/templates/mapserver.html" IMAGEPATH "/path/to/temp/" IMAGEURL "/temp/" METADATA "wms_title" "WMS Map Server" #"wms_srs" "EPSG:4326" END END LAYER NAME counties TYPE LINE STATUS DEFAULT DATA "/path/to/tl_2008_us_county.shp" # MINSCALE 1000 # MAXSCALE 1000000000 CLASS COLOR 0 255 0 END METADATA "wms_title" "US County Boundaries" END PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" "no_defs" END END LAYER NAME "areawater" STATUS DEFAULT TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' CLASS NAME "areawater" STYLE COLOR 0 0 255 END END END END ################################### Mapfile End -- View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3758428.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Fri Oct 2 17:18:21 2009 From: punk.kish at gmail.com (P Kishor) Date: Fri, 2 Oct 2009 19:18:21 -0500 Subject: [mapserver-users] tile4ms - Layer object STATUS In-Reply-To: <1254528078635-3758428.post@n2.nabble.com> References: <1254528078635-3758428.post@n2.nabble.com> Message-ID: On Fri, Oct 2, 2009 at 7:01 PM, Ted Spradley wrote: > > Hi All, > > Still working on basics. ?Now tiling. ?Following the steps to tile data on > http://mapserver.org/utilities/tile4ms.html#tile4ms. > > 1. With STATUS ON, MS does not display the tiled data at any zoom level > 2. With STATUS DEFAULT, MS displays the tiled data at all zoom levels > > I have scratched my head over this one. ?Your thoughts please? It is actually quite simple, once clear. Here we go -- STATUS OFF means just that. STATUS ON means, it is available, but has to be requested STATUS DEFAULT means you're gonna get it no matter what Given the above three states, you can apply MINSCALEDENOM and MAXSCALEDENOM. Note that MINSCALE and MAXSCALE are now deprecated. >?The steps > followed and the associated mapfile are below. ?The commented out lines are > exactly as in the actual file from debugging. > > Thank you! > > Ted S. > > Steps from http://mapserver.org/utilities/tile4ms.html#tile4ms: > > 1. Create the meta-file > # find *areawater.shp -print > areawater_list.txt > > 2. Execute tile4ms > # tile4ms areawater_list.txt areawaterindex > > 3. areawaterindex.dbf, areawaterindex.shp, areawaterindex.dbx are created > ? ? (I notice the contents of areawaterindex.dbf is only a single column, > LOCATION. ?The instructional > ? ? ?page shows an ID column) > > 4. Create the layer object for the mapfile. > > Mapfile > ###################### > > MAP > ? ? ? ?SIZE ? ? ? ? ? ?1600 800 > ? ? ? ?EXTENT ? ? ? ? ?-125 24 -65 50 > ? ? ? ?UNITS DD > ? ? ? ?PROJECTION > ? ? ? ? ?"proj=latlong" > ? ? ? ? ?"ellps=GRS80" > ? ? ? ? ?"datum=NAD83" > ? ? ? ? ?"no_defs" > ? ? ? ?END > ? ?IMAGETYPE PNG24 > ? ? ? ?WEB > ? ? ? ? ? ? ? ?TEMPLATE ? ? ? ?"/path/to/templates/mapserver.html" > ? ? ? ? ? ? ? ?IMAGEPATH ? ? ? "/path/to/temp/" > ? ? ? ? ? ? ? ?IMAGEURL ? ? ? ?"/temp/" > ? ? ? ? ? ? ? ?METADATA > ? ? ? ? ? ? ? ? ? ? ? ?"wms_title" "WMS Map Server" > ? ? ? ? ? ? ? ? ? ? ? ?#"wms_srs" "EPSG:4326" > ? ? ? ? ? ? ? ?END > ? ? ? ?END > ? ? ? ?LAYER > ? ? ? ? ? ? ? ?NAME ? ? ? ? ? ?counties > ? ? ? ? ? ? ? ?TYPE ? ? ? ? ? ?LINE > ? ? ? ? ? ? ? ?STATUS ? ? ? ? ?DEFAULT > ? ? ? ? ? ? ? ?DATA ? ? ? ? ? ?"/path/to/tl_2008_us_county.shp" > ? ? ? ?# ? ? ? MINSCALE ? ? ? ?1000 > ? ? ? ?# ? ? ? MAXSCALE ? ? ? ?1000000000 > ? ? ? ? ? ? ? ?CLASS > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLOR ? 0 255 0 > ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?METADATA > ? ? ? ? ? ? ? ? ? ? ? ?"wms_title" "US County Boundaries" > ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?PROJECTION > ? ? ? ? ? ? ? ? ?"proj=latlong" > ? ? ? ? ? ? ? ? ?"ellps=GRS80" > ? ? ? ? ? ? ? ? ?"datum=NAD83" > ? ? ? ? ? ? ? ? ?"no_defs" > ? ? ? ? ? ? ? ?END > ? ? ? ?END > > ? ? ? ?LAYER > ? ? ? ? ? ? ? ?NAME ? ? ? ? ? ?"areawater" > ? ? ? ? ? ? ? ?STATUS ? ? ? ? ?DEFAULT > ? ? ? ? ? ? ? ?TYPE ? ? ? ? ? ?POLYGON > ? ? ? ? ? ? ? ?TILEINDEX ? ? ? "/path/to/areawaterindex" > ? ? ? ? ? ? ? ?TILEITEM ? ? ? ?'LOCATION' > ? ? ? ? ? ? ? ?CLASS > ? ? ? ? ? ? ? ? ? ? ? ?NAME "areawater" > ? ? ? ? ? ? ? ? ? ? ? ?STYLE > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLOR ? 0 0 255 > ? ? ? ? ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?END > > > ? ? ? ?END > END > > ################################### > Mapfile End > -- > View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3758428.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 > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= Sent from Madison, WI, United States From tspradley at snoogems.com Fri Oct 2 21:00:29 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Fri, 2 Oct 2009 21:00:29 -0700 (PDT) Subject: [mapserver-users] tile4ms - Layer object STATUS In-Reply-To: References: <1254528078635-3758428.post@n2.nabble.com> Message-ID: <1254542429245-3759035.post@n2.nabble.com> Thank you for taking a look at it! Still no success displaying with any other STATUS than DEFAULT. Here are the variations I tried: Variation 1 - Result: No Layer display at any zoom level ##################### LAYER NAME "areawater" STATUS ON TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' CLASS NAME "areawater" STYLE COLOR 0 0 255 END END ################## End Variation 1 Variation 2 - Result: No Layer Display at any zoom level ##################### LAYER NAME "areawater" STATUS ON TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' MAXSCALEDENOM 1000000 # Another layer with this same Maxscaledenom did display CLASS NAME "areawater" STYLE COLOR 0 0 255 END END ################## End Variation 2 Variation 3 - Result: No Layer Display at any zoom level ##################### LAYER NAME "areawater" STATUS ON TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' CLASS NAME "areawater" MAXSCALEDENOM 1000000 STYLE COLOR 0 0 255 END END ################## End Variation 3 Variation 4 - Result: Layer Displays upon reaching MAXSCALEDENOM 1000000 ##################### LAYER NAME "areawater" STATUS DEFAULT TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' MAXSCALEDENOM 1000000 # Another layer with this same Maxscaledenom did display CLASS NAME "areawater" STYLE COLOR 0 0 255 END END ################## End Variation 4 Variation 4 displays of course, but so would a regular layer that had not had a tile index built for it, with the same MAXSCALEDENOM 1000000. Could it possibly be something in my template? Thanks again, Ted S. Mapserver Template ######################## U.S. Atlas - States, Counties, Area Water


[Zoom In ] [Pan ] [Zoom Out ] Zoom Size
################### End Mapserver Template STATUS OFF means just that. STATUS ON means, it is available, but has to be requested STATUS DEFAULT means you're gonna get it no matter what Given the above three states, you can apply MINSCALEDENOM and MAXSCALEDENOM. Note that MINSCALE and MAXSCALE are now deprecated. -- View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3759035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From James.Card at calcad.com Fri Oct 2 21:53:27 2009 From: James.Card at calcad.com (James Card) Date: Fri, 2 Oct 2009 21:53:27 -0700 Subject: [mapserver-users] tile4ms - Layer object STATUS In-Reply-To: <1254542429245-3759035.post@n2.nabble.com> References: <1254528078635-3758428.post@n2.nabble.com> Message-ID: On Fri, 02 Oct 2009 21:00:29 -0700, Ted Spradley wrote: > STATUS ON means, it is available, but has to be requested The key here, that you may be missing, is that your WMS request must specify each layer that you want to be included in the map that is returned. Requesting a map without including the LAYERS parameter will return only the layers that have STATUS DEFAULT set. -- James Card From harpalhira at gmail.com Fri Oct 2 23:20:08 2009 From: harpalhira at gmail.com (harpal singh) Date: Sat, 3 Oct 2009 11:50:08 +0530 Subject: [mapserver-users] PROBLEM IN GETTING LAYER ITEMS WITH ZOOM Message-ID: <623d78c30910022320n17606bf9ld69dbb8c4d623cc1@mail.gmail.com> WANT TO DISPLAY LAYER ITEMS WITH VARYING ZOOMING ..... I HAVE SPECIFIED THE MINSCALEDENOM UNDER EACH CLASS IN MAPFILE AND THE ZOOM FACTOR .........BUT NOT BEING ABLE TO GET THE DESIRED OUTPUT.......CAN ANYBODY ASSIST ME IN ASSIGNING THE CORRECT MIN AND MAX SCALEDENOM........ THANX IN ADVANCE ...... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Oct 3 03:37:08 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 3 Oct 2009 13:37:08 +0300 Subject: [mapserver-users] PROBLEM IN GETTING LAYER ITEMS WITH ZOOM References: <623d78c30910022320n17606bf9ld69dbb8c4d623cc1@mail.gmail.com> Message-ID: Hi, I am usually looking at the layer with some WMS client which allows continuous zooming (no fixed zoom levels like with OpenLayers) and then I keep adjusting the MINSCALEDENOM and MAXSCALEDENOM values until the result is good enough for me. -Jukka Rahkonen- harpal singh wrote: WANT TO DISPLAY LAYER ITEMS WITH VARYING ZOOMING ..... I HAVE SPECIFIED THE MINSCALEDENOM UNDER EACH CLASS IN MAPFILE AND THE ZOOM FACTOR .........BUT NOT BEING ABLE TO GET THE DESIRED OUTPUT.......CAN ANYBODY ASSIST ME IN ASSIGNING THE CORRECT MIN AND MAX SCALEDENOM........ THANX IN ADVANCE ...... From bthoen at gisnet.com Sat Oct 3 08:58:08 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Sat, 03 Oct 2009 09:58:08 -0600 Subject: [mapserver-users] Problem w/ SLD Documentation Message-ID: <4AC77490.9000404@gisnet.com> I was trying to learn something about SLD this morning and while reading SLD by Jeff McKenna (http://mapserver.org/ogc/sld.html) I found that virtually all the links to examples are either 403 or 404 or FORBIDDEN. Am I reading the wrong docs or is this just the way the web wobbles sometimes? Anyway if I need to do anything else besides whine about it here, would somebody please let me know what the procedure is? Thanks, - Bill Thoen From dgwalton at gmail.com Sat Oct 3 14:30:53 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Sat, 3 Oct 2009 16:30:53 -0500 Subject: [mapserver-users] Help Serving Tiled Tiffs Message-ID: <8ab83e650910031430s47265793k6a38e71ece5d8ebd@mail.gmail.com> Thanks to all of you who've been helping me learn the ropes. I am getting close (I hope) to being able to serve up on-the-fly-generated remote sensing imagery using GDAL and MS. I am using the latest MS4W distribution with GDAL 1.6. I have taken Tiff images and tiled and created overviews using Frank's suggestions: gdal_translate -co TILED=YES in.tif out.tif gdaladdo out.tif 2 4 8 16 32 64 When I request an image using a web browser like: http://localhost/cgi-bin/mapserv.exe?map=R:\Temp\Test\A091003033655.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap& SRS=EPSG:4326&BBOX=36.141921,-121.788916,36.324769,-121.565064&FORMAT=image/tiff&WIDTH=256&HEIGHT=256&STYLES=&LAYERS=TEST_SWIR_TILED all I get is a white image. The BBOX parameter is the same as my mapfile extents, which is the same as the imagery bounds. The projections are the same as well (EPSG 4326). Questions: 1. Can I pull up an image this way in a browser (using FF 3.5) 2. If so, what am I doing wrong? 3. What are some other points of validation I can perform to break down the testing a bit more? 4. What needs to be done to be able to view the WMS images in Google Earth or ArcGIS explorer (e.g. adding querystring arguments via a proxy handler, etc?) Thanks again MS community. I look forward to someday joining the ranks. -Dan My Mapfile looks like this: MAP EXTENT 36.141921 -121.788916 36.324769 -121.565064 IMAGECOLOR 255 255 255 IMAGETYPE gif SIZE -1 -1 STATUS ON UNITS DD NAME "MS" OUTPUTFORMAT NAME "GTiff" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "RGB" TRANSPARENT FALSE END PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF 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 END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER DATA "R:\Temp\Test\test_SWIR_tiled.tif" NAME "TEST_SWIR_TILED" STATUS DEFAULT TYPE RASTER UNITS DD END END Dan Walton dgwalton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From eugenetimmermans at gmail.com Sat Oct 3 18:08:11 2009 From: eugenetimmermans at gmail.com (Eugene Timmermans) Date: Sat, 3 Oct 2009 19:08:11 -0600 Subject: [mapserver-users] Cannot download mstutorial_data.zip ; Proxy error Message-ID: <671837110910031808s26ad645fh5653edc1d55cb8d1@mail.gmail.com> When I click on http://demo.mapserver.org/tutorial/mstutorial_data.zip on http://www.mapserver.org/tutorial/background.html#tutorial-data I get a : Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /tutorial/mstutorial_data.zip. Reason: Error reading from remote server Apache/2.0.54 (Fedora) Server at demo.mapserver.org Port 80 From tspradley at snoogems.com Sat Oct 3 18:14:58 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Sat, 3 Oct 2009 18:14:58 -0700 (PDT) Subject: [mapserver-users] tile4ms - Layer object STATUS In-Reply-To: References: <1254528078635-3758428.post@n2.nabble.com> <1254542429245-3759035.post@n2.nabble.com> Message-ID: <1254618898144-3762353.post@n2.nabble.com> James, I can't thank you enough. Exactly as you said, I was not passing the LAYERS parameter from my initialization html file, and then it took me a while to come around to the fact that I was not storing the layer parameter in the template html file. So, for any future readers of tile4ms documentation (http://mapserver.org/utilities/tile4ms.html#tile4ms), my steps to creating a working map from that page follow. Best Regards Guys! Thanks again, Ted S. Initialization file - Changes marked by ***************** ######################## This form will initialize the Mapserver.
**************** **********************
######################## End Initialization file Mapserver Template - Changes marked by ***************** ######################## U.S. Atlas - States, Counties, Area Water


[Zoom In ] [Pan ] [Zoom Out ] Zoom Size *********** **************** *********** ****************
################### End Mapserver Template Variation 2 - Result: Tiled Layer Displays at the requested Scale denominatorl ##################### LAYER NAME "areawater" STATUS ON TYPE POLYGON TILEINDEX "/path/to/areawaterindex" TILEITEM 'LOCATION' ****** MAXSCALEDENOM 2000000 ********************** CLASS NAME "areawater" STYLE COLOR 0 0 255 END END ################## End Variation 2 James Card wrote: > > On Fri, 02 Oct 2009 21:00:29 -0700, Ted Spradley > wrote: > >> STATUS ON means, it is available, but has to be requested > > The key here, that you may be missing, is that your WMS request must > specify each layer that you want to be included in the map that is > returned. Requesting a map without including the LAYERS parameter will > return only the layers that have STATUS DEFAULT set. > -- > James Card > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/tile4ms-Layer-object-STATUS-tp3758428p3762353.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Sat Oct 3 18:34:44 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Sat, 03 Oct 2009 21:34:44 -0400 Subject: [mapserver-users] Problem w/ SLD Documentation In-Reply-To: <4AC77490.9000404@gisnet.com> References: <4AC77490.9000404@gisnet.com> Message-ID: <4AC7FBB4.9090501@dmsolutions.ca> Hi Bill, There was a server crash and sew things did not get trasferred properly on the new server. I will make sure that they are back in service early next week. regards, Bill Thoen wrote: > I was trying to learn something about SLD this morning and while > reading SLD by Jeff McKenna (http://mapserver.org/ogc/sld.html) I > found that virtually all the links to examples are either 403 or 404 > or FORBIDDEN. Am I reading the wrong docs or is this just the way the > web wobbles sometimes? > > Anyway if I need to do anything else besides whine about it here, > would somebody please let me know what the procedure is? > > Thanks, > - Bill Thoen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at swoodbridge.com Sat Oct 3 19:13:50 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 03 Oct 2009 22:13:50 -0400 Subject: [mapserver-users] Can you pass draw scale into postgis SQL? In-Reply-To: <4AC66C6B.1070204@swoodbridge.com> References: <4AC66C6B.1070204@swoodbridge.com> Message-ID: <4AC804DE.7020205@swoodbridge.com> Open an enhancement request for this. If anyone has any additional thoughts on this please add them to the ticket. Thanks, -Steve Stephen Woodbridge wrote: > Hi all, > > I would like to be able to make my postgis queries in mapserver be aware > of the current draw scale. Is there an easy way to do this in the > mapfile? I would like to avoid parameter substitution since mapserver is > already aware of the scale, it would be nice if we could just embed a > token like [scale] in a mapserver data statement and mapserver would > substitute that for the current draw scale. > > DATA "way from ( > select way, osm_id, landuse, name > from osm_landuse1 where landuse is not null > and is_large_enough(area(way),'landuse1',[scale]) > ) as foo using unique osm_id using srid=900913" > > The idea here is that is_large_enough(area(way),'landuse1',[scale]) > whould return true or false based on comparing area(way) to some value > it looks up for 'landuse1' and the current [scale]. This would allow > dynamic filtering of data in the database based on the current scale. > > Likewise you could use the [scale] in a SQL case statement to > dynamically change the SQL results based on scale. > > It would seem that this could greatly simplify mapfiles. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mpg70221725 at yahoo.com.ar Sat Oct 3 22:09:15 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Sat, 3 Oct 2009 22:09:15 -0700 (PDT) Subject: [mapserver-users] To compile module libmapsript.so for Java Message-ID: <452914.20816.qm@web33901.mail.mud.yahoo.com> hello to all, I have a question, I am making a program in Java and I want to use the functionalities of Mapserver, specifically I want to know as I compile libmapscript.so from the code source, on the platform Fedora 11. please any aid is welcome I need, it to migrate the program that I am doing in Windows to Linux. * already it installs swig 1.3.4, fgs 5.4. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From mpg70221725 at yahoo.com.ar Sat Oct 3 22:09:15 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Sat, 3 Oct 2009 22:09:15 -0700 (PDT) Subject: [mapserver-users] To compile module libmapsript.so for Java Message-ID: <452914.20816.qm@web33901.mail.mud.yahoo.com> hello to all, I have a question, I am making a program in Java and I want to use the functionalities of Mapserver, specifically I want to know as I compile libmapscript.so from the code source, on the platform Fedora 11. please any aid is welcome I need, it to migrate the program that I am doing in Windows to Linux. * already it installs swig 1.3.4, fgs 5.4. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From Jukka.Rahkonen at mmmtike.fi Sat Oct 3 23:41:39 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 4 Oct 2009 09:41:39 +0300 Subject: [mapserver-users] Help Serving Tiled Tiffs References: <8ab83e650910031430s47265793k6a38e71ece5d8ebd@mail.gmail.com> Message-ID: Hi, I guess your BBOX in not quite right. Try giving in in order easting-northing for WMS 1.1.0. Or try what happens by changing WMS version to 1.3.0, which accepts northing-eatings. Adding MS_ERRORFILE to map level and DEBUG 5 to layer level definitions in the mapfile gives often useful information about what really happens. -Jukka Rahkonen- Daniel Walton wrote: Thanks to all of you who've been helping me learn the ropes. I am getting close (I hope) to being able to serve up on-the-fly-generated remote sensing imagery using GDAL and MS. I am using the latest MS4W distribution with GDAL 1.6. I have taken Tiff images and tiled and created overviews using Frank's suggestions: gdal_translate -co TILED=YES in.tif out.tif gdaladdo out.tif 2 4 8 16 32 64 When I request an image using a web browser like: http://localhost/cgi-bin/mapserv.exe?map=R:\Temp\Test\A091003033655.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap& SRS=EPSG:4326&BBOX=36.141921,-121.788916,36.324769,-121.565064&FORMAT=image/tiff&WIDTH=256&HEIGHT=256&STYLES=&LAYERS=TEST_SWIR_TILED all I get is a white image. The BBOX parameter is the same as my mapfile extents, which is the same as the imagery bounds. The projections are the same as well (EPSG 4326). Questions: 1. Can I pull up an image this way in a browser (using FF 3.5) 2. If so, what am I doing wrong? 3. What are some other points of validation I can perform to break down the testing a bit more? 4. What needs to be done to be able to view the WMS images in Google Earth or ArcGIS explorer (e.g. adding querystring arguments via a proxy handler, etc?) Thanks again MS community. I look forward to someday joining the ranks. -Dan My Mapfile looks like this: MAP EXTENT 36.141921 -121.788916 36.324769 -121.565064 IMAGECOLOR 255 255 255 IMAGETYPE gif SIZE -1 -1 STATUS ON UNITS DD NAME "MS" OUTPUTFORMAT NAME "GTiff" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "RGB" TRANSPARENT FALSE END PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF 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 END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER DATA "R:\Temp\Test\test_SWIR_tiled.tif" NAME "TEST_SWIR_TILED" STATUS DEFAULT TYPE RASTER UNITS DD END END Dan Walton dgwalton at gmail.com From ml at lingner.eu Sun Oct 4 01:55:44 2009 From: ml at lingner.eu (Lars Lingner) Date: Sun, 04 Oct 2009 10:55:44 +0200 Subject: [mapserver-users] 5.6.0-b2 and GetFeatureInfo Message-ID: <4AC86310.7010002@lingner.eu> Hello, I'm seeing an diference between 5.4.2 and last beta regarding GetFeatureInfo. While 5.4.2 sends back my template with requested values, beta2 gives me lists of coordinates of the requested features. The result looks like this: My request url: http://myserver/mywrapper?LAYERS=grenzen&FORMAT=agg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A900913&BBOX=1173585.468193%2C6770353.815697%2C1215090.774545%2C6786176.280549&X=596&Y=272&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=grenzen&FEATURE_COUNT=10&WIDTH=1086&HEIGHT=414 I just have to change the binary to get this behavior. MapServer details: ./configure --with-postgis --with-wms --with-gdal --with-geos --with-ogr --with-fastcgi --with-proj --with-wfs -with-agg --with-freetype --with-experimental-png MapServer version 5.6.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Maybe its not related to the changes in beta2, but in general to 5.6. I can send further infos on request if that helps to solve this case. Lars From Steve.Lime at dnr.state.mn.us Sun Oct 4 20:44:48 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sun, 04 Oct 2009 22:44:48 -0500 Subject: [mapserver-users] 5.6.0-b2 and GetFeatureInfo Message-ID: <4AC925600200008F00028F23@co5.dnr.state.mn.us> Ah, I know the problem here. It's a known issue we're still struggling with. We'll fix it one way or the other before the next beta. Problem has to do with exposing various templates to the OGC services and mimetypes being lousy format keys... Steve >>> Lars Lingner 10/04/09 3:56 AM >>> Hello, I'm seeing an diference between 5.4.2 and last beta regarding GetFeatureInfo. While 5.4.2 sends back my template with requested values, beta2 gives me lists of coordinates of the requested features. The result looks like this: My request url: http://myserver/mywrapper?LAYERS=grenzen&FORMAT=agg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A900913&BBOX=1173585.468193%2C6770353.815697%2C1215090.774545%2C6786176.280549&X=596&Y=272&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=grenzen&FEATURE_COUNT=10&WIDTH=1086&HEIGHT=414 I just have to change the binary to get this behavior. MapServer details: ./configure --with-postgis --with-wms --with-gdal --with-geos --with-ogr --with-fastcgi --with-proj --with-wfs -with-agg --with-freetype --with-experimental-png MapServer version 5.6.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Maybe its not related to the changes in beta2, but in general to 5.6. I can send further infos on request if that helps to solve this case. Lars _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Mon Oct 5 06:30:22 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 05 Oct 2009 09:30:22 -0400 Subject: [mapserver-users] Problem w/ SLD Documentation In-Reply-To: <4AC7FBB4.9090501@dmsolutions.ca> References: <4AC77490.9000404@gisnet.com> <4AC7FBB4.9090501@dmsolutions.ca> Message-ID: <4AC9F4EE.8080208@mapgears.com> Yewondwossen Assefa wrote: > Hi Bill, > > There was a server crash and sew things did not get trasferred properly > on the new server. I will make sure that they are back in service early > next week. > FYI there is a doc ticket about this: https://trac.osgeo.org/mapserver/ticket/3104 Daniel -- Daniel Morissette http://www.mapgears.com/ From jbloc1878 at googlemail.com Mon Oct 5 06:30:32 2009 From: jbloc1878 at googlemail.com (jbloc1878 at googlemail.com) Date: Mon, 5 Oct 2009 14:30:32 +0100 Subject: [mapserver-users] Call layer Message-ID: Hi, If the status of my layer is set to ON how do I call the layer without adding '&layer=[layername]' on the end of the URL? I am viewing the map via localhost/cgi-bin/mapserv.exe? Cheers for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Oct 5 06:40:14 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 5 Oct 2009 08:40:14 -0500 Subject: [mapserver-users] Call layer In-Reply-To: References: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD507AD9F06@s-sp22.pca.state.mn.us> You don?t. That is how you tell MapServer that you want to view a particular layer that doesn?t have a status of default. In many cases, if you are viewing your map using a client like OpenLayers, the client does this for you. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jbloc1878 at googlemail.com Sent: Monday, October 05, 2009 8:31 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Call layer Hi, If the status of my layer is set to ON how do I call the layer without adding '&layer=[layername]' on the end of the URL? I am viewing the map via localhost/cgi-bin/mapserv.exe? Cheers for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbloc1878 at googlemail.com Mon Oct 5 06:49:19 2009 From: jbloc1878 at googlemail.com (jbloc1878 at googlemail.com) Date: Mon, 5 Oct 2009 14:49:19 +0100 Subject: [mapserver-users] Call layer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD507AD9F06@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD507AD9F06@s-sp22.pca.state.mn.us> Message-ID: Thanks for the response. I am using openlayers and my map does not appear unless layer is STATUS DEFAULT. I call layer as follows layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://localhost/cgi-bin/mapserv.exe?", { layers: "testlayer", map: '/ms4w/.../data/tr00.map', gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' }); map.addLayer(layer1); I only view pink tiles when STATUS ON? Thanks On 5 Oct 2009, at 14:40, "Fawcett, David" wrote: > You don?t. That is how you tell MapServer that you want to view a p > articular layer that doesn?t have a status of default. > > > > In many cases, if you are viewing your map using a client like > OpenLayers, the client does this for you. > > > > David. > > > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- > users-bounces at lists.osgeo.org] On Behalf Of jbloc1878 at googlemail.com > Sent: Monday, October 05, 2009 8:31 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Call layer > > > > Hi, > > > > > If the status of my layer is set to ON how do I call the layer > without adding '&layer=[layername]' on the end of the URL? > > > > > I am viewing the map via localhost/cgi-bin/mapserv.exe? > > > > Cheers for any help > -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Mon Oct 5 09:48:24 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 5 Oct 2009 12:48:24 -0400 Subject: [mapserver-users] WMS Client Transparency Message-ID: <681116190910050948r753acafcp54fada79cbd773e1@mail.gmail.com> Do WMS clients support semi transparent images? -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From iratxe.lejarreta at axios.es Mon Oct 5 11:09:12 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Mon, 5 Oct 2009 20:09:12 +0200 Subject: [mapserver-users] GetFeatureInfo Message-ID: <200910052009.12809.iratxe.lejarreta@axios.es> Hi, When I execute the following command, Postfix return the correct result: select * from building where ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)'); But when I execute GetFeatureInfo request in MapServer with the same point(x,y), the response doesn't return any result: http://localhost/cgi- bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&QUERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512 My map file: MAP NAME "TEST" STATUS ON SIZE 400 300 SYMBOLSET symbols.sym EXTENT 530000 4740000 610000 4820000 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET fonts.txt WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" HEADER "../templates/test_header.html" FOOTER "../templates/test_footer.html" METADATA "wms_title" "Test" "wms_onlineresource" "http://localhost/cgi-bin/test?" "wms_srs" "EPSG:23030" "wms_feature_info_mime_type" "text/html" END END PROJECTION "init=epsg:23030" END LAYER NAME mylayer PROJECTION "init=epsg:23030" END TYPE POLYGON STATUS ON DUMP TRUE UNITS METERS TEMPLATE "../templates/mylayer_body.html" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=mydb user=postgres password=******" DATA "the_geom from mylayer" METADATA "wms_title" "mylayer" "wms_srs" "EPSG:23030" "wms_extent" "532666 4749720 603151 4805350" "wms_feature_info_mime_type" "text/html" "wms_include_items" "all" END TOLERANCE 5 CLASS NAME "building" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END END I tried the same map configuration with another layer but with SRS:4326 and the result of GetFeatureInfo request is ok. If the difference is the projection and extent, where is the error? Thanks in advance! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Oct 5 12:26:35 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 5 Oct 2009 22:26:35 +0300 Subject: [mapserver-users] GetFeatureInfo References: <200910052009.12809.iratxe.lejarreta@axios.es> Message-ID: Hi, X and y in GetFeatureInfo request are image pixel coordinates, not geographic ones. See how ESRI describes it http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_connector/get_featureinfo.htm -Jukka Rahkonen- Iratxe Lejarreta wrote: Hi, When I execute the following command, Postfix return the correct result: select * from building where ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)'); But when I execute GetFeatureInfo request in MapServer with the same point(x,y), the response doesn't return any result: http://localhost/cgi- bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&QUERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512 My map file: MAP NAME "TEST" STATUS ON SIZE 400 300 SYMBOLSET symbols.sym EXTENT 530000 4740000 610000 4820000 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET fonts.txt WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" HEADER "../templates/test_header.html" FOOTER "../templates/test_footer.html" METADATA "wms_title" "Test" "wms_onlineresource" "http://localhost/cgi-bin/test?" "wms_srs" "EPSG:23030" "wms_feature_info_mime_type" "text/html" END END PROJECTION "init=epsg:23030" END LAYER NAME mylayer PROJECTION "init=epsg:23030" END TYPE POLYGON STATUS ON DUMP TRUE UNITS METERS TEMPLATE "../templates/mylayer_body.html" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=mydb user=postgres password=******" DATA "the_geom from mylayer" METADATA "wms_title" "mylayer" "wms_srs" "EPSG:23030" "wms_extent" "532666 4749720 603151 4805350" "wms_feature_info_mime_type" "text/html" "wms_include_items" "all" END TOLERANCE 5 CLASS NAME "building" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END END I tried the same map configuration with another layer but with SRS:4326 and the result of GetFeatureInfo request is ok. If the difference is the projection and extent, where is the error? Thanks in advance! -- Iratxe Lejarreta www.axios.es From aboudreault at mapgears.com Mon Oct 5 13:14:36 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 5 Oct 2009 16:14:36 -0400 Subject: [mapserver-users] To compile module libmapsript.so for Java In-Reply-To: <452914.20816.qm@web33901.mail.mud.yahoo.com> References: <452914.20816.qm@web33901.mail.mud.yahoo.com> Message-ID: <200910051614.36881.aboudreault@mapgears.com> Take a look at the README file in mapscript/java/ directory. Alan On October 4, 2009 01:09:15 am joel ml wrote: > hello to all, I have a question, I am making a program in Java and I want > to use the functionalities of Mapserver, specifically I want to know as I > compile libmapscript.so from the code source, on the platform Fedora 11. > > please any aid is welcome I need, it to migrate the program that I am doing > in Windows to Linux. > > * already it installs swig 1.3.4, fgs 5.4. > > > Yahoo! Cocina > > Encontra las mejores recetas con Yahoo! Cocina. > > > http://ar.mujer.yahoo.com/cocina/ > _______________________________________________ > 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 warmerdam at pobox.com Mon Oct 5 13:16:57 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 05 Oct 2009 16:16:57 -0400 Subject: [mapserver-users] Cannot download mstutorial_data.zip ; Proxy error In-Reply-To: <671837110910031808s26ad645fh5653edc1d55cb8d1@mail.gmail.com> References: <671837110910031808s26ad645fh5653edc1d55cb8d1@mail.gmail.com> Message-ID: <4ACA5439.2080504@pobox.com> Eugene Timmermans wrote: > When I click on http://demo.mapserver.org/tutorial/mstutorial_data.zip > > on > > http://www.mapserver.org/tutorial/background.html#tutorial-data > > I get a : > > Proxy Error > > The proxy server received an invalid response from an upstream server. > The proxy server could not handle the request GET /tutorial/mstutorial_data.zip. > > Reason: Error reading from remote server > > > > Apache/2.0.54 (Fedora) Server at demo.mapserver.org Port 80 Eugene, I have restarted this server - hopefully it will work fine now. 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 iacovlev.pavel at gmail.com Mon Oct 5 13:37:17 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Mon, 5 Oct 2009 23:37:17 +0300 Subject: [mapserver-users] Generating a world file from extent and scale Message-ID: <2a37f67a0910051337v48406e1asc930ec64c3700179@mail.gmail.com> Hello, sorry for not a very mapserver related question. I have a script that does the following: User inputs the extent and the scale, based on this data I compute the image width and height and pass this information to mapserver to generate the image. It all works fine with flat projections. The problem is I don't know how to generate the the images width and height using extent and scale then I have data in WGS84. My code atm is: http://pastie.org/642735 Could anyone point me in the right direction ? -- http://iap.md, The future is open From jmckenna at gatewaygeomatics.com Mon Oct 5 17:47:49 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 05 Oct 2009 21:47:49 -0300 Subject: [mapserver-users] ANGLE FOLLOW with MINFEATURESIZE AUTO In-Reply-To: <49dc012b0908170028u246ee4fcq81618426df5df15a@mail.gmail.com> References: <49dc012b0908170028u246ee4fcq81618426df5df15a@mail.gmail.com> Message-ID: <4ACA93B5.4010103@gatewaygeomatics.com> Raivo Alla wrote: > Hello, > > is there any hope that mapserver will in the future support curved > labels with MINFEATURESIZE AUTO settings? > Would be nice to display street labels displayed only when they have > enough space in the line segment... Raivo, We hit your same problem while testing for the FOSS4G2009 benchmarking exercise[1]. The change has been added[2] (curved labels with the minfeaturesize auto setting) and will be available in the next beta release. For those that are saying "what the heck does MINFEATURESIZE AUTO do?", like me recently, it will only show labels that are larger than the feature. You can see it in action with the benchmarking roads layer[3] [1] http://wiki.osgeo.org/wiki/Benchmarking_2009 [2] http://trac.osgeo.org/mapserver/ticket/3151 [3] http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver/vector-by-merged.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=roads-merged-labeled&STYLES=&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From seis4web at web.de Mon Oct 5 23:53:54 2009 From: seis4web at web.de (seis4web at web.de) Date: Tue, 06 Oct 2009 08:53:54 +0200 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale Message-ID: <879618193@web.de> Hi David, hi list, thank you very much for the reply. I already use scale-dependent layers. That's why I believe I can't organize my "data as scale-dependent classes within one layer instead of as various separate layers in a group" . But I'm not sure - so please have a look at my data structure below (or in the attached file - part of my mapfile): I have got a WMS displaying earthquake data for the last 12 month (GROUP A), last month (GROUP B), the last 7 days (GROUP C) and the actual (latest) earthquake (GROUP D). Each group has got a couple of scale-dependent layers (A_a, A_b, A_c; B_a, B_b ...). I've grouped the layers because all layers displaying earthquake events from e.g. the last 12 month should appear as just one layer. Each layer has got several magnitude-dependent classes, as the earthquake dots should increase when zooming into the application. LAYER NAME "A_a" GROUP "A" MAXSCALE 10000000 MINSCALE 4000000 ... CLASS NAME "Magnitude > 3 - 3.499" EXPRESSION ([mag] > 3 AND [mag] < 3.499) STYLE SYMBOL "circle" SIZE 9 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END CLASS NAME "Magnitude > 3.5 - 3.999" EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) STYLE SYMBOL "circle" SIZE 10 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END ... LAYER NAME "A_b" GROUP "A" MAXSCALE 4000000 MINSCALE 1000000 ... CLASS ... END ... LAYER NAME "A_c" GROUP "A" MAXSCALE 1000000 MINSCALE ... ... CLASS ... END ... Thanks in advance! Regards, Nina > -----Urspr?ngliche Nachricht----- > Von: "Fawcett, David" > Gesendet: 02.10.09 18:00:44 > An: > Betreff: RE: [mapserver-users] WMS GetFeatureInfo beyond scale > Is there a reason why you can't organize your data as scale-dependent classes within one layer instead of as three separate layers in a group? > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de > Sent: Friday, October 02, 2009 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS GetFeatureInfo beyond scale > > Hi list, > > I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem: > > For instance I am using a group of layers: > > LAYER > NAME "A_a" > GROUP "A" > ... > LAYER > NAME "A_b" > GROUP "A" > ... > LAYER > NAME "A_c" > GROUP "A" > ... > A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible. > > But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A > I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response. > > It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842) > > What can I do beside upgrading on version 6.0 as soon as it's available? > > Any advice is welcome! Thanks in advance, > Nina > > ________________________________________________________________ > Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate > f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ______________________________________________________ GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de From M.Kofahl at gmx.net Tue Oct 6 01:33:40 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Tue, 06 Oct 2009 10:33:40 +0200 Subject: [mapserver-users] WMS Client Transparency In-Reply-To: <681116190910050948r753acafcp54fada79cbd773e1@mail.gmail.com> References: <681116190910050948r753acafcp54fada79cbd773e1@mail.gmail.com> Message-ID: <20091006083340.241040@gmx.net> Hi Travis, you can set an OPACITY value (0-100) at the layer level. See http://mapserver.org/mapfile/layer.html Martin -------- Original-Nachricht -------- > Datum: Mon, 5 Oct 2009 12:48:24 -0400 > Von: Travis Kirstine > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] WMS Client Transparency > Do WMS clients support semi transparent images? > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > and that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From adrian_gh.popa at romtelecom.ro Tue Oct 6 02:04:12 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 06 Oct 2009 12:04:12 +0300 Subject: [mapserver-users] Tips on generating tiles from mapserver Message-ID: <4ACB080C.1020904@romtelecom.ro> Hello everyone, I have some mapserver layers that I would like to generate into tiles (because the content doesn't change much). I would like to find out the following: 1) a link to a tutorial or help on how to do this (which tools to use) 2) how can I calculate an estimate of the size those tiles would occupy 3) what naming convention (or extra details) are needed to make the tiles viewable in OpenLayers. Thanks, Adrian From bea at ixsea.com Tue Oct 6 02:29:28 2009 From: bea at ixsea.com (=?utf-8?Q?Beno=C3=AEt_Andrieu?=) Date: Tue, 6 Oct 2009 11:29:28 +0200 Subject: [mapserver-users] Tips on generating tiles from mapserver In-Reply-To: <4ACB080C.1020904@romtelecom.ro> References: <4ACB080C.1020904@romtelecom.ro> Message-ID: Very quick answer, some could add comments ! ^^ 1. http://www.gdal.org/gdal2tiles.html 2. It will depend on the output format of gdal2tiles (jpeg/tiff/png & compression). Don't know ! 3. Don't know ! Sorry ! Regards, Beno?t ----- Original Message ----- From: "Adrian Popa" To: Sent: Tuesday, October 06, 2009 11:04 AM Subject: [mapserver-users] Tips on generating tiles from mapserver > Hello everyone, > > I have some mapserver layers that I would like to generate into tiles (because the content doesn't change much). I would like to > find out the following: > 1) a link to a tutorial or help on how to do this (which tools to use) > 2) how can I calculate an estimate of the size those tiles would occupy > 3) what naming convention (or extra details) are needed to make the tiles viewable in OpenLayers. > > Thanks, > Adrian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From iacovlev.pavel at gmail.com Tue Oct 6 02:43:55 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Tue, 6 Oct 2009 12:43:55 +0300 Subject: [mapserver-users] Re: Generating a world file from extent and scale In-Reply-To: <2a37f67a0910051337v48406e1asc930ec64c3700179@mail.gmail.com> References: <2a37f67a0910051337v48406e1asc930ec64c3700179@mail.gmail.com> Message-ID: <2a37f67a0910060243i74397b30ge66385026e9d52d9@mail.gmail.com> Ok I have some progress on the problem I found a post(http://openlayers.org/pipermail/users/2007-September/003023.html) by Arnd Wippermann and he wrote the scales factors for various units: Factors: inches - 1 ft - 12 mi - 63360 m - 39.3701 km - 39370.1 dd - 4374754 in - 1 So now I can compute the width and height of the image pass to mapserver and generate the image I want at a given scale. Is this approach correct from geodetic point of view ? On Mon, Oct 5, 2009 at 11:37 PM, Pavel Iacovlev wrote: > Hello, sorry for not a very mapserver related question. > > I have a script that does the following: > User inputs the extent and the scale, based on this data I compute the > image width and height and pass this information to mapserver to > generate the image. It all works fine with flat projections. > The problem is I don't know how to generate the the images width and > height using extent and scale then I have data in WGS84. > > My code atm is: http://pastie.org/642735 > > Could anyone point me in the right direction ? > > -- > http://iap.md, The future is open > -- http://iap.md, The future is open From adrian_gh.popa at romtelecom.ro Tue Oct 6 03:26:57 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 06 Oct 2009 13:26:57 +0300 Subject: [mapserver-users] Tips on generating tiles from mapserver In-Reply-To: References: <4ACB080C.1020904@romtelecom.ro> Message-ID: <4ACB1B71.8080102@romtelecom.ro> Thanks for the help Beno?t, but the project you sent me doesn't seem to be able to generate tiles from map files. It seems to be able to generate tiles from other images. Maybe I'm missing something.... Beno?t Andrieu wrote: > Very quick answer, some could add comments ! ^^ > > 1. http://www.gdal.org/gdal2tiles.html > 2. It will depend on the output format of gdal2tiles (jpeg/tiff/png & > compression). Don't know ! > 3. Don't know ! > > Sorry ! > > Regards, > Beno?t > > ----- Original Message ----- From: "Adrian Popa" > > To: > Sent: Tuesday, October 06, 2009 11:04 AM > Subject: [mapserver-users] Tips on generating tiles from mapserver > > >> Hello everyone, >> >> I have some mapserver layers that I would like to generate into tiles >> (because the content doesn't change much). I would like to find out >> the following: >> 1) a link to a tutorial or help on how to do this (which tools to use) >> 2) how can I calculate an estimate of the size those tiles would occupy >> 3) what naming convention (or extra details) are needed to make the >> tiles viewable in OpenLayers. >> >> Thanks, >> Adrian >> >> _______________________________________________ >> 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 ml at lingner.eu Tue Oct 6 03:54:49 2009 From: ml at lingner.eu (Lars Lingner) Date: Tue, 06 Oct 2009 12:54:49 +0200 Subject: [mapserver-users] Tips on generating tiles from mapserver In-Reply-To: <4ACB080C.1020904@romtelecom.ro> References: <4ACB080C.1020904@romtelecom.ro> Message-ID: <4ACB21F9.4030107@lingner.eu> Adrian Popa schrieb: > Hello everyone, > > I have some mapserver layers that I would like to generate into tiles > (because the content doesn't change much). I would like to find out the > following: > 1) a link to a tutorial or help on how to do this (which tools to use) You could use TileCache. It comes with an tilecache_seed.py script which generates the tiles queering MapServer. A sample config can look like: - MapServer layer LAYER TYPE POLYGON STATUS ON NAME "landuse" CONNECTIONTYPE POSTGIS CONNECTION "host= port= dbname= user= password=" DATA "way from (select way,id ,landuse from otg_polygon where landuse is not null ) as foo using unique id using srid=900913" PROCESSING "LABEL_NO_CLIP=ON" PROCESSING "CLOSE_CONNECTION=DEFER" CLASSITEM "landuse" METADATA WMS_TITLE "landuse" WMS_GROUP_TITLE "landuse" WMS_EXTENT "-3654301.4476046 3830412.5307382 6971056.978358 9730128.1208444" WMS_ABSTRACT "layer landuse" END #metadata CLASS STYLE COLOR "#E3E2DF" END END END - corresponding TileCache config [landuse] type=WMS url=http://example.org/cgi-bin/mapserv?map=/path/to/mapfile.map layers=landuse extension=png bbox=-3654301.4476046,3830412.5307382,6971056.978358,9730128.1208444 maxResolution=9783.93961875 srs=EPSG:900913 metaTile=true metaSize=8,8 You have to adjust the extents, resolutions, srs, url to your needs Have a look at TileCache docs for further explanation. (www.tilecache.org) > 2) how can I calculate an estimate of the size those tiles would occupy I have no formula at hand. > 3) what naming convention (or extra details) are needed to make the > tiles viewable in OpenLayers. > Either you are using TileCache or you can direct access the cache directory via an OpenLayers.Layer.TileCache so you don't have to bother with naming. Lars From unseen.wizard at gmail.com Tue Oct 6 03:58:23 2009 From: unseen.wizard at gmail.com (Alex G.) Date: Tue, 6 Oct 2009 13:58:23 +0300 Subject: [mapserver-users] Drawing points with a FGS installation Message-ID: Hi all, Apologies if this is the incorrect list but I would like to ask for advice on how to implement my idea. I've been fiddling with a FGS installation of MapServer and things seem to be going pretty well: I was able to display some shapefiles I was sent using the Gmap example but now I need to able to draw points on the map - meaning that if a user clicks on the map, a dot/pin appears on the map. The idea is to able to record that pin and the layers (that were enabled at the time) and save them to a database and later show that data on the map itself. But first things first, how could I go about placing points/pins? I am guessing I am going to need a toolset? I was told that OpenLayers might be able to do what I am asking but it looks a bit complicated for me (setting MapServer as WMS etc). Is there something else out there that might do what I want? The second part of my application would save that data to a database and then display them, but that's the second step, I am interested more into getting the points/pins on the map first. Thanks in advance for any replies! ps. Apologies if the questions seem silly but I have very little experience with MapServer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Tue Oct 6 04:26:32 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 6 Oct 2009 13:26:32 +0200 Subject: [mapserver-users] GetFeatureInfo In-Reply-To: References: <200910052009.12809.iratxe.lejarreta@axios.es> Message-ID: <200910061326.32539.iratxe.lejarreta@axios.es> On Monday 05 October 2009 09:26:35 pm Rahkonen Jukka wrote: > Hi, > > X and y in GetFeatureInfo request are image pixel coordinates, not > geographic ones. See how ESRI describes it > http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_c >onnector/get_featureinfo.htm > > -Jukka Rahkonen- > > > > Iratxe Lejarreta wrote: > > Hi, > > When I execute the following command, Postfix return the correct result: > select * from building where > ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)'); > > But when I execute GetFeatureInfo request in MapServer with the same > point(x,y), the response doesn't return any result: > http://localhost/cgi- > bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&Q >UERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS= >EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512 > > My map file: > > MAP > NAME "TEST" > STATUS ON > SIZE 400 300 > SYMBOLSET symbols.sym > EXTENT 530000 4740000 610000 4820000 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > FONTSET fonts.txt > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > HEADER "../templates/test_header.html" > FOOTER "../templates/test_footer.html" > METADATA > "wms_title" "Test" > "wms_onlineresource" "http://localhost/cgi-bin/test?" > "wms_srs" "EPSG:23030" > "wms_feature_info_mime_type" "text/html" > END > END > > PROJECTION > "init=epsg:23030" > END > > LAYER > NAME mylayer > PROJECTION > "init=epsg:23030" > END > TYPE POLYGON > STATUS ON > DUMP TRUE > UNITS METERS > TEMPLATE "../templates/mylayer_body.html" > CONNECTIONTYPE postgis > CONNECTION "host=localhost port=5432 dbname=mydb user=postgres > password=******" > DATA "the_geom from mylayer" > METADATA > "wms_title" "mylayer" > "wms_srs" "EPSG:23030" > "wms_extent" "532666 4749720 603151 4805350" > "wms_feature_info_mime_type" "text/html" > "wms_include_items" "all" > END > TOLERANCE 5 > CLASS > NAME "building" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > > END > > > I tried the same map configuration with another layer but with SRS:4326 and > the result of GetFeatureInfo request is ok. > If the difference is the projection and extent, where is the error? > > Thanks in advance! Ok, I changed X and Y but the result is null. The same request with shapefile gives me the result that I want, but with postgis I don't receive any result. Is there any bug with MapServer and Postgis in a different projection than 4326? Thanks! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From sb.ray at hotmail.com Tue Oct 6 05:12:26 2009 From: sb.ray at hotmail.com (sunny74) Date: Tue, 6 Oct 2009 05:12:26 -0700 (PDT) Subject: [mapserver-users] maploading problem Message-ID: <1254831146611-3774596.post@n2.nabble.com> Dear Friends, The map from a mapserver takes enormously long time to load about 5 mins when the server machine on which it works is set to accept public IP i.e uses DHCP. Most of the time it does not load at all - only a pink background is seen in place of the map. After changing a machine IP to public I also change the httpd file in conf folder of Apache to localhost:8085. But despite this the above problem occurs. Can someone tell me the cause of the problem and how to resolve? Whether it can be solved by implementing mapfish? Thanks for your responses. -- View this message in context: http://n2.nabble.com/maploading-problem-tp3774596p3774596.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Tue Oct 6 05:25:10 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 06 Oct 2009 15:25:10 +0300 Subject: [mapserver-users] Tips on generating tiles from mapserver In-Reply-To: <4ACB21F9.4030107@lingner.eu> References: <4ACB080C.1020904@romtelecom.ro> <4ACB21F9.4030107@lingner.eu> Message-ID: <4ACB3726.6050207@romtelecom.ro> Thank you Lars, I will follow your approach. I hope I won't run out of disk space :) Lars Lingner wrote: > Adrian Popa schrieb: > >> Hello everyone, >> >> I have some mapserver layers that I would like to generate into tiles >> (because the content doesn't change much). I would like to find out the >> following: >> 1) a link to a tutorial or help on how to do this (which tools to use) >> > > You could use TileCache. It comes with an tilecache_seed.py script which > generates the tiles queering MapServer. > > A sample config can look like: > > - MapServer layer > > LAYER > TYPE POLYGON > STATUS ON > NAME "landuse" > CONNECTIONTYPE POSTGIS > CONNECTION "host= port= dbname= user= > password=" > DATA "way from (select way,id ,landuse from otg_polygon where > landuse is not null ) as foo using unique id using srid=900913" > PROCESSING "LABEL_NO_CLIP=ON" > PROCESSING "CLOSE_CONNECTION=DEFER" > CLASSITEM "landuse" > METADATA > WMS_TITLE "landuse" > WMS_GROUP_TITLE "landuse" > WMS_EXTENT "-3654301.4476046 3830412.5307382 6971056.978358 > 9730128.1208444" > WMS_ABSTRACT "layer landuse" > END #metadata > CLASS > STYLE > COLOR "#E3E2DF" > END > END > END > > - corresponding TileCache config > > [landuse] > type=WMS > url=http://example.org/cgi-bin/mapserv?map=/path/to/mapfile.map > layers=landuse > extension=png > bbox=-3654301.4476046,3830412.5307382,6971056.978358,9730128.1208444 > maxResolution=9783.93961875 > srs=EPSG:900913 > metaTile=true > metaSize=8,8 > > You have to adjust the extents, resolutions, srs, url to your needs > Have a look at TileCache docs for further explanation. (www.tilecache.org) > > >> 2) how can I calculate an estimate of the size those tiles would occupy >> > > I have no formula at hand. > > >> 3) what naming convention (or extra details) are needed to make the >> tiles viewable in OpenLayers. >> >> > > Either you are using TileCache or you can direct access the cache > directory via an OpenLayers.Layer.TileCache so you don't have to bother > with naming. > > > Lars > _______________________________________________ > 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 pspencer at dmsolutions.ca Tue Oct 6 05:32:29 2009 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Tue, 6 Oct 2009 08:32:29 -0400 Subject: [mapserver-users] Drawing points with a FGS installation In-Reply-To: References: Message-ID: <54E4A2D0-C97E-4F3E-9E88-46FF0D3CFF58@dmsolutions.ca> If you don't need the placing of points to be a web-based application, you might want to try either qgis or udig. Both will allow you to create GIS data that you can then use in mapserver to display. If you need it to be a web-based application, then your best bet is to use OpenLayers. Despite the apparent learning curve, it really is not all that difficult to get mapserver working with OpenLayers. Getting MapServer to work as a WMS server is actually trivial - all you really need is to make sure your map has a PROJECTION defined using an epsg code and you add some METADATA blocks with at least wms_title and wms_srs. There are some excellent documents on how to do this at mapserver.org Getting started with OpenLayers is even easier, there are a huge number of examples with clear descriptions and code and the users mailing list is very helpful. Cheers Paul On 2009-10-06, at 6:58 AM, Alex G. wrote: > Hi all, > > Apologies if this is the incorrect list but I would like to ask for > advice on how to implement my idea. > > I've been fiddling with a FGS installation of MapServer and things > seem to be going pretty well: I was able to display some shapefiles > I was sent using the Gmap example but now I need to able to draw > points on the map - meaning that if a user clicks on the map, a dot/ > pin appears on the map. > > The idea is to able to record that pin and the layers (that were > enabled at the time) and save them to a database and later show that > data on the map itself. > > But first things first, how could I go about placing points/pins? I > am guessing I am going to need a toolset? I was told that OpenLayers > might be able to do what I am asking but it looks a bit complicated > for me (setting MapServer as WMS etc). > Is there something else out there that might do what I want? > > The second part of my application would save that data to a database > and then display them, but that's the second step, I am interested > more into getting the points/pins on the map first. > > Thanks in advance for any replies! > > ps. Apologies if the questions seem silly but I have very little > experience with MapServer. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From dgwalton at gmail.com Tue Oct 6 05:37:12 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Tue, 6 Oct 2009 07:37:12 -0500 Subject: [mapserver-users] Call layer In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD507AD9F06@s-sp22.pca.state.mn.us> Message-ID: <8ab83e650910060537q1717402dgc992fe95fd48bf46@mail.gmail.com> I have this same problem, only I am using a Silverlight client to view the layers. I can view layers only by setting their status to DEFAULT. Whenever I request a layer whose status is ON, I get the response: Invalid CRS given : CRS must be valid for all requested layers. The CRS query string I passed is: &CRS=EPSG:4326 The projection in my mapfile both for the whole map and individual layers is: PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END It looks like the problem is in referencing the EPSG file, and I have tried every method I know to reference it: 1. setting CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/" at the top of my mapfile 2. adding the line SetEnv PROJ_LIB "c:/ms4w/proj/nad/" to Apache's httpd.conf file 3. doing 1 and 2 but omitting the leading "c:" Further confirmation that this is the problem is that I tried to set the map's projection in MapScript using the line mapObj.setProjection("init=epsg:4326"); and received the PROJ4 error: msProcessProjection(): Projection library error. No such file or directory Any ideas out there? Dan Walton dgwalton at gmail.com On Mon, Oct 5, 2009 at 8:49 AM, wrote: > Thanks for the response. I am using openlayers and my map does not appear > unless layer is STATUS DEFAULT. > > I call layer as follows > > layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS", " > http://localhost/cgi-bin/mapserv.exe?", { layers: "testlayer", map: > '/ms4w/.../data/tr00.map', > gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' }); > > map.addLayer(layer1); > > I only view pink tiles when STATUS ON? > > Thanks > > On 5 Oct 2009, at 14:40, "Fawcett, David" > wrote: > > You don?t. That is how you tell MapServer that you want to view a > particular layer that doesn?t have a status of default. > > > > In many cases, if you are viewing your map using a client like OpenLayers, > the client does this for you. > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of * > jbloc1878 at googlemail.com > *Sent:* Monday, October 05, 2009 8:31 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Call layer > > > > Hi, > > > > If the status of my layer is set to ON how do I call the layer without > adding '&layer=[layername]' on the end of the URL? > > > > I am viewing the map via localhost/cgi-bin/mapserv.exe? > > > > Cheers for any help > > > _______________________________________________ > 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 jkapalczynski at ci.maple-grove.mn.us Tue Oct 6 06:34:56 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 6 Oct 2009 08:34:56 -0500 Subject: [mapserver-users] Extents Message-ID: I have a applications using MapServer. I have a button that runs some code on a .js page every few seconds. What I need to do is somehow get the map extent to the .js page. Is it possible to write some javascript code to retrieve the maps extent every few seconds? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Oct 6 07:17:52 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 6 Oct 2009 09:17:52 -0500 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale In-Reply-To: <879618193@web.de> References: <879618193@web.de> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD507ADA843@s-sp22.pca.state.mn.us> Nina, I guess that your data was more complex than I originally assumed. Would it be possible to create one layer with classes that incorporated both the scale and magnitude? Something like: LAYER CLASS # low-res, low magnitude MAXSCALEDENOM 10000000 MINSCALEDENOM 4000000 EXPRESSION ([mag] > 3 AND [mag] < 3.499) END CLASS # low-res, high magnitude MAXSCALEDENOM 10000000 MINSCALEDENOM 4000000 EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) END CLASS # medium-res, low magnitude MAXSCALEDENOM 4000000 MINSCALEDENOM 1000000 EXPRESSION ([mag] > 3 AND [mag] < 3.499) END CLASS # medium-res, high magnitude MAXSCALEDENOM 4000000 MINSCALEDENOM 1000000 EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) END CLASS # high-res, low magnitude MAXSCALEDENOM 1000000 EXPRESSION ([mag] > 3 AND [mag] < 3.499) END CLASS # high-res, high magnitude MAXSCALEDENOM 1000000 EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) END I haven't thought too much about it, so I can't promise that it will do what you need. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de Sent: Tuesday, October 06, 2009 1:54 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS GetFeatureInfo beyond scale Hi David, hi list, thank you very much for the reply. I already use scale-dependent layers. That's why I believe I can't organize my "data as scale-dependent classes within one layer instead of as various separate layers in a group" . But I'm not sure - so please have a look at my data structure below (or in the attached file - part of my mapfile): I have got a WMS displaying earthquake data for the last 12 month (GROUP A), last month (GROUP B), the last 7 days (GROUP C) and the actual (latest) earthquake (GROUP D). Each group has got a couple of scale-dependent layers (A_a, A_b, A_c; B_a, B_b ...). I've grouped the layers because all layers displaying earthquake events from e.g. the last 12 month should appear as just one layer. Each layer has got several magnitude-dependent classes, as the earthquake dots should increase when zooming into the application. LAYER NAME "A_a" GROUP "A" MAXSCALE 10000000 MINSCALE 4000000 ... CLASS NAME "Magnitude > 3 - 3.499" EXPRESSION ([mag] > 3 AND [mag] < 3.499) STYLE SYMBOL "circle" SIZE 9 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END CLASS NAME "Magnitude > 3.5 - 3.999" EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) STYLE SYMBOL "circle" SIZE 10 COLOR 255 165 0 OUTLINECOLOR 255 0 0 END END ... LAYER NAME "A_b" GROUP "A" MAXSCALE 4000000 MINSCALE 1000000 ... CLASS ... END ... LAYER NAME "A_c" GROUP "A" MAXSCALE 1000000 MINSCALE ... ... CLASS ... END ... Thanks in advance! Regards, Nina > -----Urspr?ngliche Nachricht----- > Von: "Fawcett, David" > Gesendet: 02.10.09 18:00:44 > An: > Betreff: RE: [mapserver-users] WMS GetFeatureInfo beyond scale > Is there a reason why you can't organize your data as scale-dependent classes within one layer instead of as three separate layers in a group? > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de > Sent: Friday, October 02, 2009 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] WMS GetFeatureInfo beyond scale > > Hi list, > > I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem: > > For instance I am using a group of layers: > > LAYER > NAME "A_a" > GROUP "A" > ... > LAYER > NAME "A_b" > GROUP "A" > ... > LAYER > NAME "A_c" > GROUP "A" > ... > A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible. > > But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A > I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response. > > It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842) > > What can I do beside upgrading on version 6.0 as soon as it's available? > > Any advice is welcome! Thanks in advance, > Nina > > ________________________________________________________________ > Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate > f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ______________________________________________________ GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jbloc1878 at googlemail.com Tue Oct 6 09:22:34 2009 From: jbloc1878 at googlemail.com (jbloc1878 at googlemail.com) Date: Tue, 6 Oct 2009 17:22:34 +0100 Subject: [mapserver-users] Call layer In-Reply-To: <8ab83e650910060537q1717402dgc992fe95fd48bf46@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD507AD9F06@s-sp22.pca.state.mn.us> <8ab83e650910060537q1717402dgc992fe95fd48bf46@mail.gmail.com> Message-ID: <8BE5E2FA-F66B-41A2-82FC-C00CC6F62BCE@googlemail.com> Yeah I have the same Projection in my map file. PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END Thanks for the response. It's pretty fustrating there must be another simple method to call the layer On 6 Oct 2009, at 13:37, Daniel Walton wrote: > I have this same problem, only I am using a Silverlight client to > view the layers. I can view layers only by setting their status to > DEFAULT. Whenever I request a layer whose status is ON, I get the > response: > > Invalid CRS given : CRS must be valid for all requested layers. > > The CRS query string I passed is: > > &CRS=EPSG:4326 > > The projection in my mapfile both for the whole map and individual > layers is: > > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > > It looks like the problem is in referencing the EPSG file, and I > have tried every method I know to reference it: > setting CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/" at the top of my mapfile > adding the line SetEnv PROJ_LIB "c:/ms4w/proj/nad/" to Apache's > httpd.conf file > doing 1 and 2 but omitting the leading "c:" > Further confirmation that this is the problem is that I tried to set > the map's projection in MapScript using the line > > mapObj.setProjection("init=epsg:4326"); > > and received the PROJ4 error: > > msProcessProjection(): Projection library error. No such file or > directory > > Any ideas out there? > > Dan Walton > dgwalton at gmail.com > > > On Mon, Oct 5, 2009 at 8:49 AM, wrote: > Thanks for the response. I am using openlayers and my map does not > appear unless layer is STATUS DEFAULT. > > I call layer as follows > > layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS", > "http://localhost/cgi-bin/mapserv.exe?", { layers: > "testlayer", map: '/ms4w/.../data/tr00.map', > gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, > units:'meters' }); > > map.addLayer(layer1); > > I only view pink tiles when STATUS ON? > > Thanks > > On 5 Oct 2009, at 14:40, "Fawcett, David" > wrote: > >> You don?t. That is how you tell MapServer that you want to view a >> particular layer that doesn?t have a status of default. >> >> >> >> In many cases, if you are viewing your map using a client like >> OpenLayers, the client does this for you. >> >> >> >> David. >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- >> users-bounces at lists.osgeo.org] On Behalf Of jbloc1878 at googlemail.com >> Sent: Monday, October 05, 2009 8:31 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Call layer >> >> >> >> Hi, >> >> >> >> >> If the status of my layer is set to ON how do I call the layer >> without adding '&layer=[layername]' on the end of the URL? >> >> >> >> >> I am viewing the map via localhost/cgi-bin/mapserv.exe? >> >> >> >> Cheers for any help >> > > _______________________________________________ > 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 jkapalczynski at ci.maple-grove.mn.us Tue Oct 6 11:17:36 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 6 Oct 2009 13:17:36 -0500 Subject: [mapserver-users] RE: Extents In-Reply-To: References: Message-ID: Can I call or make a request from a .js page to get the extent of my map? From: Jay Kapalczynski Sent: Tuesday, October 06, 2009 8:35 AM To: mapserver-users at lists.osgeo.org Subject: Extents I have a applications using MapServer. I have a button that runs some code on a .js page every few seconds. What I need to do is somehow get the map extent to the .js page. Is it possible to write some javascript code to retrieve the maps extent every few seconds? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Oct 6 11:24:53 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 06 Oct 2009 13:24:53 -0500 Subject: [mapserver-users] RE: Extents In-Reply-To: References: Message-ID: <4ACB4525.5157.008F.0@dnr.state.mn.us> Why wouldn't you get the extent at the same time you get the map? You had to have one to retrieve it in the first place. -Steve >>> On 10/6/2009 at 1:17 PM, in message , Jay Kapalczynski wrote: > Can I call or make a request from a .js page to get the extent of my map? > > > From: Jay Kapalczynski > Sent: Tuesday, October 06, 2009 8:35 AM > To: mapserver-users at lists.osgeo.org > Subject: Extents > > I have a applications using MapServer. I have a button that runs some code > on a .js page every few seconds. > What I need to do is somehow get the map extent to the .js page. > > Is it possible to write some javascript code to retrieve the maps extent > every few seconds? > > Thanks From jkapalczynski at ci.maple-grove.mn.us Tue Oct 6 11:33:46 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 6 Oct 2009 13:33:46 -0500 Subject: [mapserver-users] RE: Extents In-Reply-To: <4ACB4525.5157.008F.0@dnr.state.mn.us> References: <4ACB4525.5157.008F.0@dnr.state.mn.us> Message-ID: I am using GeoMOOSE if that sheds new light on this... What I am trying to do is click a button. This calls a js page that runs some code every few seconds. Right now its simply refreshing a specific layer. I want the code to grab the extent of the current map I then use an XY to recreate a new extent. Then zoom to that extent. I am getting the XY from a database. Testing to see if within current extent. If not I want it to recenter (zoom to new extent I calculated) Currently I am doing this in php...the only thing is that I cant figure out how to get the app to recenter from PHP. I can do it from a button (see below) but I need it to work automatically
Zoom to View String: I have everything I need ( I think ) but need to figure out how to get the js page to retireve the extent, then I can fire to above off in javascript. That make sense.... Thanks for your thoughts Steve... -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, October 06, 2009 1:25 PM To: Jay Kapalczynski; 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] RE: Extents Why wouldn't you get the extent at the same time you get the map? You had to have one to retrieve it in the first place. -Steve >>> On 10/6/2009 at 1:17 PM, in message , Jay Kapalczynski wrote: > Can I call or make a request from a .js page to get the extent of my map? > > > From: Jay Kapalczynski > Sent: Tuesday, October 06, 2009 8:35 AM > To: mapserver-users at lists.osgeo.org > Subject: Extents > > I have a applications using MapServer. I have a button that runs some code > on a .js page every few seconds. > What I need to do is somehow get the map extent to the .js page. > > Is it possible to write some javascript code to retrieve the maps extent > every few seconds? > > Thanks From seis4web at web.de Wed Oct 7 04:58:18 2009 From: seis4web at web.de (seis4web at web.de) Date: Wed, 07 Oct 2009 13:58:18 +0200 Subject: [mapserver-users] WMS GetFeatureInfo beyond scale Message-ID: <881720177@web.de> Hi David, thank you very much for your help! Your suggestion worked very well for me! Regards, Nina > -----Urspr?ngliche Nachricht----- > Von: "Fawcett, David" > Gesendet: 06.10.09 16:24:45 > An: > Betreff: RE: [mapserver-users] WMS GetFeatureInfo beyond scale > Nina, > > I guess that your data was more complex than I originally assumed. > > Would it be possible to create one layer with classes that incorporated both the scale and magnitude? > > Something like: > > LAYER > > CLASS # low-res, low magnitude > MAXSCALEDENOM 10000000 > MINSCALEDENOM 4000000 > EXPRESSION ([mag] > 3 AND [mag] < 3.499) > END > > CLASS # low-res, high magnitude > MAXSCALEDENOM 10000000 > MINSCALEDENOM 4000000 > EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) > END > > CLASS # medium-res, low magnitude > MAXSCALEDENOM 4000000 > MINSCALEDENOM 1000000 > EXPRESSION ([mag] > 3 AND [mag] < 3.499) > END > > CLASS # medium-res, high magnitude > MAXSCALEDENOM 4000000 > MINSCALEDENOM 1000000 > EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) > END > > CLASS # high-res, low magnitude > MAXSCALEDENOM 1000000 > EXPRESSION ([mag] > 3 AND [mag] < 3.499) > END > > CLASS # high-res, high magnitude > MAXSCALEDENOM 1000000 > EXPRESSION ([mag] > 3.5 AND [mag] < 3.999) > END > > I haven't thought too much about it, so I can't promise that it will do what you need. > > David. > ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ From tspradley at snoogems.com Wed Oct 7 09:36:33 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Wed, 7 Oct 2009 09:36:33 -0700 (PDT) Subject: [mapserver-users] Mapserver Tutorial - Section 3 and Section 4 Message-ID: <1254933393700-3782980.post@n2.nabble.com> http://mapserver.org/tutorial/index.html#tutorial Paragraph two references 'Section three introduces the use of HTML templates to provide a ?query? interface. Finally, section four introduces some advanced user interface concepts.' I am unable to find links to Sections 3 and 4. Are these future sections or are the navigation links missing? Thanks, Ted S. -- View this message in context: http://n2.nabble.com/Mapserver-Tutorial-Section-3-and-Section-4-tp3782980p3782980.html Sent from the Mapserver - User mailing list archive at Nabble.com. From minerdiggins at gmail.com Wed Oct 7 12:20:06 2009 From: minerdiggins at gmail.com (Ruby) Date: Wed, 7 Oct 2009 12:20:06 -0700 Subject: [mapserver-users] Print template and WMS Message-ID: <731ed3bb0910071220x4943b5beqc22f4516b86eed79@mail.gmail.com> Greetings, I employ a print function via javascript button in an HTML map template. The print template produces a higher resolution version of the existing map in a new window. The print form I am using works perfectly except for my single WMS client layer, all other layers display except this one. The WMS layer displays correctly in my main map window. The tmp file image does not include the WMS data. Can anyone please guide me in including the WMS data in my print template? I would rather not call the WMS server again for my print template as connections to this server are very slow. All other data is stored locally. Below are my javascript call button and the HTML print template.