From oliver.christen at camptocamp.com Fri Feb 1 00:18:17 2013 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Fri, 01 Feb 2013 09:18:17 +0100 Subject: [mapserver-users] Mapserver with postgis connection behind ELB - timeout problem Message-ID: <510B7A49.1030307@camptocamp.com> dear list Im using Mapserver with postgis layers, the postgres server is behind an AWS ELB (amazon load balancer) which timout connections after 60 seconds or so. If I configure my layers with "PROCESSING "CLOSE_CONNECTION=DEFER"" to increase performances, I often get the following error in Mapserver after a period of inactivity which seems to correspond to the timeout duration of the ELB: msPostGISRetrieveVersion(): Query error. Error executing SQL: SELECT postgis_version() when this error occur, I effectively see nothing in Postrgres logs, meaning there are no new connection attempt. Now if I remove the CLOSE_CONNECTION=DEFER I dont have any problem anymore. Is there a way to configure the timeout duration in Mapserver for postgis connection so I could set it to be the same as the ELB one? Also, what is the internal Mapserver default timeout duration ? thank you for you attention. best regards Oliver -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com From juanrapoport at suremptec.com.ar Fri Feb 1 07:33:40 2013 From: juanrapoport at suremptec.com.ar (Juan Rapoport) Date: Fri, 1 Feb 2013 12:33:40 -0300 Subject: [mapserver-users] generateSLD on raster layer returns an empty SLD Message-ID: Hi list, I have a classified raster layer and i'm trying to get de sld string, using PHP/mapscript, but $layer->generetaSLD method returns an empty SLD. This code (works for vector layers): $layer = $mapobject->getLayerByName("ImagenSatelitalbajares"); $layer->set('status', MS_ON); echo $layer->generateSLD(): prints: Layer definition: LAYER NAME "ImagenSatelitalbajares" TYPE RASTER STATUS OFF CLASS NAME "Clase 0" EXPRESSION ([pixel] >= 20 AND [pixel] < 30) STYLE COLOR 0 255 0 END END CLASS NAME "Clase 1" EXPRESSION ([pixel] >= 30 AND [pixel] < 40) STYLE COLOR 0 0 255 END END CLASSITEM "[pixel]" DATA "../layers/raster/BlueMarble_Argentina.img" GROUP "grImagenSatelitalbajares" PROCESSING "BANDS=1" PROJECTION "init=epsg:900913" END TEMPLATE "foo.bar" END Mapserver version is 6.0.1. Don't know if this is a bug or I'm doing something wrong. Thanks in advance, -- Juan Rapoport SUR Emprendimientos Tecnol?gicos Per? 345 Piso 5to Oficina "B" (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 juanrapoport at suremptec.com.ar www.suremptec.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pwillis at aslenv.com Mon Feb 4 15:55:06 2013 From: pwillis at aslenv.com (Peter Willis) Date: Mon, 4 Feb 2013 15:55:06 -0800 Subject: [mapserver-users] Mapserver 1.1.0 WCS ENVI Binary File with accompanying ENVI header Message-ID: <001801ce0333$0ec94550$2c5bcff0$@aslenv.com> Hello, I have set up a WCS server using mapserver. I can retrieve a Float32 ENVI 'img' BSQ file just fine and select specific bands. However, I DO NOT get an accompanying header (.HDR) file with the binary data download. how do I request an HDR file for my data? Is there some special map file secret to this? I thought of making a 'pseudo' GDAL driver that wraps gdal_translate and ZIP together but I'm hoping there is an easier fix. Thanks, Peter From pwillis at aslenv.com Mon Feb 4 16:02:34 2013 From: pwillis at aslenv.com (Peter Willis) Date: Mon, 4 Feb 2013 16:02:34 -0800 Subject: [mapserver-users] Mapserver WCS and PCI Geomatica Message-ID: <001901ce0334$1997e210$4cc7a630$@aslenv.com> Hello, I can request WCS files directly via a web browser and get a file, so I know WCS is working on mapserver. I get an obscure error attempting to retrieve WCS from mapserver with PCI Geomatica. The remote data wizard shows my test data and extents set after connecting but I get a dialog: 'No coverage offerings found on server [OK]' . Pressing [OK] opens another dialog: 'Uncaught exception: An exception occurred. Reason: Unable to read the coverage description [OK]' Any thin glimmers of hope? Thanks Peter From pwillis at aslenv.com Tue Feb 5 08:36:08 2013 From: pwillis at aslenv.com (Peter Willis) Date: Tue, 5 Feb 2013 08:36:08 -0800 Subject: [mapserver-users] Mapserver 1.1.0 WCS ENVI Binary File with accompanying ENVI header In-Reply-To: References: <001801ce0333$0ec94550$2c5bcff0$@aslenv.com> Message-ID: <001c01ce03be$e66a5180$b33ef480$@aslenv.com> Hello, I think the file issue is resolved. It turns out the server was actually passing me three (3) separate files in multipart MIME sequence. Your comment about that made me look closer at what was coming back via the web browser. Files come in this sequence: 1.) the WCS metadata 2.) the ENVI header (HDR) file 3.) the ENVI data (IMG) file I was being a bit thick I guess. I kept wondering why the web browser was trying to give me the same file 3 times on each GetCoverage request. A second issue related to this is how to get mapserver to *Name* the files properly. Each file sent by the mapserver is called 'wcs' with no file extension. This is why I thought I was getting the same file 3 times. Is there a mapfile variable that can be set up to set the file names and extensions if ENVI multiband format is selected as the FORMAT for GetCoverage? Thanks for pointing out the multi part MIME thing. You probably saved me days of debugging and unproductive spinning. Peter --------------------------------------------------------------------------- Peter, Hopefully Stefan Meissl will answer. If not, poke me and I'll try to figure it out. For some versions of WCS multi-part responses are supported as long as GDAL knows the files are associated. Either in a zip or multi-part mime. I'm a bit rusty on this now though. Best regards, Frank On Mon, Feb 4, 2013 at 3:55 PM, Peter Willis wrote: > Hello, > > I have set up a WCS server using mapserver. > > I can retrieve a Float32 ENVI 'img' BSQ file just fine and select > specific bands. > > However, I DO NOT get an accompanying header (.HDR) file with the > binary data download. > > how do I request an HDR file for my data? > Is there some special map file secret to this? > > I thought of making a 'pseudo' GDAL driver that wraps gdal_translate > and ZIP together but I'm hoping there is an easier fix. > > > Thanks, > > Peter > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 Software Developer From Bob.Bistrais at maine.gov Tue Feb 5 12:28:47 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 5 Feb 2013 20:28:47 +0000 Subject: [mapserver-users] Getting centroid coords Message-ID: This seemed like a simple one but I am having problems. I am trying to get the X and Y of a centroid, and display it to console. I keep getting errors instead. Here is the code: $centroid=ms_newPointObj(); $oShape=$searchLayer->getShape($oResult); //$oShape is a result from a queryByAttributes which I know is returning valid results $centroid = $oShape->getCentroid(); print "Centroid=". $centroid(x).",". $centroid(y); The error message from FireBug: Fatal error: Function name must be a string in C:\htdocs\php\streamprocessBak3.php on line 75 -How do I get the X and Y to print? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomaschx at gmx.de Tue Feb 5 12:46:58 2013 From: thomaschx at gmx.de (Thomasch) Date: Tue, 05 Feb 2013 21:46:58 +0100 Subject: [mapserver-users] Getting centroid coords In-Reply-To: References: Message-ID: <51116FC2.7080502@gmx.de> Bistrais, Bob wrote: > $centroid = $oShape->getCentroid(); from http://mapserver.org/mapscript/php/index.html#shapeobj : "pointObj getCentroid() Returns a point object representing the centroid of the shape. Only available if php/mapscript is built with GEOS library." Here you get an point object > > print "Centroid=". $centroid(x).",". $centroid(y); try print "Centroid=".$centroid->x; Thomasch From Bob.Bistrais at maine.gov Tue Feb 5 13:03:08 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 5 Feb 2013 21:03:08 +0000 Subject: [mapserver-users] Getting centroid coords Message-ID: Got it- use the wrong syntax. Instead of: $centroid(x)... Should have used: $centroid->x ... From: Bistrais, Bob Sent: Tuesday, February 05, 2013 3:29 PM To: mapserver-users at lists.osgeo.org Subject: Getting centroid coords This seemed like a simple one but I am having problems. I am trying to get the X and Y of a centroid, and display it to console. I keep getting errors instead. Here is the code: $centroid=ms_newPointObj(); $oShape=$searchLayer->getShape($oResult); //$oShape is a result from a queryByAttributes which I know is returning valid results $centroid = $oShape->getCentroid(); print "Centroid=". $centroid(x).",". $centroid(y); The error message from FireBug: Fatal error: Function name must be a string in C:\htdocs\php\streamprocessBak3.php on line 75 -How do I get the X and Y to print? -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Wed Feb 6 01:21:19 2013 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 06 Feb 2013 10:21:19 +0100 Subject: [mapserver-users] WFS with Complex Features in MapServer or TinyOWS Message-ID: <5112208F.2050704@r3-gis.com> We would need to return some nested data from the WFS service, mostly representing data with a 1:N relationship. Could this be done with MapServer or TinyOWS? Regards, Peter -- Peter Hopfgartner R3 GIS Srl - GmbH web : http://www.r3-gis.com From luis.a.de.sousa at gmail.com Wed Feb 6 08:04:07 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Wed, 6 Feb 2013 08:04:07 -0800 (PST) Subject: [mapserver-users] IMAGEMODE with Mapserver 6.2 Message-ID: <1360166647692-5032509.post@n6.nabble.com> Dear all, We updated to Mapserver 6.2 in one of our servers today (from 6.0) and a few of the map files started issuing the following error: msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. A GetCapabilities request on these files returns an incomplete XML response and generates a segmentation fault. We found this being caused by the IMAGEMODE FLOAT32 tag we have to include in the OUTPUTFORMAR for raster layers. Commenting out this tag all WMS queries works as they should, but the WCS always returns RGB data that we can't use. So this question is if something changed for IMAGEMODE from version 6.0 to 6.2 or if this is a bug. Please advise on how to proceed. Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/IMAGEMODE-with-Mapserver-6-2-tp5032509.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Wed Feb 6 08:12:01 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Wed, 6 Feb 2013 08:12:01 -0800 (PST) Subject: [mapserver-users] Legends with colour ramps. Message-ID: <1360167121582-5032514.post@n6.nabble.com> Dear all, I have a raster layer with the colour ramp reproduced below. It does what it should in a GetMap request, but with GetLegendGraphic it is returning the image here attached. I imagine I'm missing some config to get the legend correctly. But what exactly? Thank you, Lu?s #------------------------------------------------------------ CLASS NAME "ColourRamp" EXPRESSION ([pixel] >= -10 and [pixel] <= 100) STYLE COLORRANGE 240 249 232 8 88 158 DATARANGE -10 100 END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Legends-with-colour-ramps-tp5032514.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Wed Feb 6 14:55:29 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 6 Feb 2013 22:55:29 +0000 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 Message-ID: Anyone had any luck displaying a MapServer-based WFS service (MapServer 6.2) in ArcGIS 10.1 via the data interoperability extension? I can get ArcCatalog to list layers from a service so at least some GetCapabilities parsing is working fine but can't get features to be recognized. I end up with a "NoGeometry" feature class. Documentation is a tad sparse. Service works great in QGIS 1.8. Steve StEVE LIME | DATA & Applications MANAGER MN.IT Services @ MnDNR 651-259-5473 (w) | 651-297-4946 (f) | steve.lime at state.mn.us [cid:image002.jpg at 01CE048A.C48E9680] Information Technology for Minnesota Government | mn.gov/oet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 1611 bytes Desc: image002.jpg URL: From jmckenna at gatewaygeomatics.com Wed Feb 6 15:49:27 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Feb 2013 19:49:27 -0400 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: References: Message-ID: <5112EC07.3050707@gatewaygeomatics.com> On 13-02-06 6:55 PM, Lime, Steve D (MNIT) wrote: > Anyone had any luck displaying a MapServer-based WFS service (MapServer > 6.2) in ArcGIS 10.1 via the data interoperability extension? I can get > ArcCatalog to list layers from a service so at least some > GetCapabilities parsing is working fine but can?t get features to be > recognized. I end up with a ?NoGeometry? feature class. Documentation is > a tad sparse. > Interesting Steve, have you checked Apache's access_log on your MapServer machine to see the exact request being sent? That might give us a hint of the Arc magic going on. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jea at hbaspecto.com Wed Feb 6 16:27:24 2013 From: jea at hbaspecto.com (John Abraham) Date: Wed, 6 Feb 2013 17:27:24 -0700 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: <5112EC07.3050707@gatewaygeomatics.com> References: <5112EC07.3050707@gatewaygeomatics.com> Message-ID: <7A02BAA5-92BD-4BBE-ADBF-9DF0800896CA@hbaspecto.com> I have it working after struggling for a few days. A big part of it was that the mapserver documentation didn't specify the right string for double/float types. The GML type needs to be "xsd:double". I filed a ticket to improve the mapserver documentation on this, not sure if that ticket went anywhere. Try that and copy me personally on any followup to the list. -- John Abraham jea at hbaspecto.com On Feb 6, 2013, at 4:49 PM, Jeff McKenna wrote: > On 13-02-06 6:55 PM, Lime, Steve D (MNIT) wrote: >> Anyone had any luck displaying a MapServer-based WFS service (MapServer >> 6.2) in ArcGIS 10.1 via the data interoperability extension? I can get >> ArcCatalog to list layers from a service so at least some >> GetCapabilities parsing is working fine but can?t get features to be >> recognized. I end up with a ?NoGeometry? feature class. Documentation is >> a tad sparse. >> > > Interesting Steve, have you checked Apache's access_log on your > MapServer machine to see the exact request being sent? That might give > us a hint of the Arc magic going on. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jea at hbaspecto.com Wed Feb 6 16:35:37 2013 From: jea at hbaspecto.com (John Abraham) Date: Wed, 6 Feb 2013 17:35:37 -0700 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: References: Message-ID: <1941AEA0-D8A9-46A0-A2D2-AC4E1F856E4E@hbaspecto.com> I just responded about how the double types need to be xsd:double. But now I'm remembering that was the second problem I had, to allow ArcGIS to actually do something with the values it was getting. Before that, I struggled for a long time with a problem much more similar to the one you describe. I can't remember how I solved the first problem, but would you like a copy of a map file that actually works with ArgGIS data interoperability extension? I now have a working web app that generates such map files on-the-fly based on user-requested data. -- John Abraham jea at hbaspecto.com 403-232-1060 On Feb 6, 2013, at 3:55 PM, "Lime, Steve D (MNIT)" wrote: > Anyone had any luck displaying a MapServer-based WFS service (MapServer 6.2) in ArcGIS 10.1 via the data interoperability extension? I can get ArcCatalog to list layers from a service so at least some GetCapabilities parsing is working fine but can?t get features to be recognized. I end up with a ?NoGeometry? feature class. Documentation is a tad sparse. > > Service works great in QGIS 1.8. > > Steve > > STEVE LIME | DATA & APPLICATIONS MANAGER > MN.IT SERVICES @ MNDNR > 651-259-5473 (w) | 651-297-4946 (f) | steve.lime at state.mn.us > > Information Technology for Minnesota Government | mn.gov/oet > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Feb 7 04:08:45 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Feb 2013 08:08:45 -0400 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: <1941AEA0-D8A9-46A0-A2D2-AC4E1F856E4E@hbaspecto.com> References: <1941AEA0-D8A9-46A0-A2D2-AC4E1F856E4E@hbaspecto.com> Message-ID: <5113994D.2080900@gatewaygeomatics.com> John I think it would be great if you took the time to create a "Serving data through OGC/MapServer to ArcGIS 10" page on our wiki (https://github.com/mapserver/mapserver/wiki). You can add screen-captures, mapfile snippets, or anything your heart desires. For an example see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 13-02-06 8:35 PM, John Abraham wrote: > I just responded about how the double types need to be xsd:double. But > now I'm remembering that was the second problem I had, to allow ArcGIS > to actually do something with the values it was getting. Before that, I > struggled for a long time with a problem much more similar to the one > you describe. > > I can't remember how I solved the first problem, but would you like a > copy of a map file that actually works with ArgGIS data interoperability > extension? I now have a working web app that generates such map files > on-the-fly based on user-requested data. > > -- > John Abraham > jea at hbaspecto.com > 403-232-1060 > > On Feb 6, 2013, at 3:55 PM, "Lime, Steve D (MNIT)" > > wrote: > >> Anyone had any luck displaying a MapServer-based WFS service >> (MapServer 6.2) in ArcGIS 10.1 via the data interoperability >> extension? I can get ArcCatalog to list layers from a service so at >> least some GetCapabilities parsing is working fine but can?t get >> features to be recognized. I end up with a ?NoGeometry? feature class. >> Documentation is a tad sparse. >> >> Service works great in QGIS 1.8. >> >> Steve >> From jea at hbaspecto.com Thu Feb 7 08:26:16 2013 From: jea at hbaspecto.com (John Abraham) Date: Thu, 7 Feb 2013 09:26:16 -0700 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: <5113994D.2080900@gatewaygeomatics.com> References: <1941AEA0-D8A9-46A0-A2D2-AC4E1F856E4E@hbaspecto.com> <5113994D.2080900@gatewaygeomatics.com> Message-ID: I've created a wiki page about using the mapserver WFS with ArcGIS: https://github.com/mapserver/mapserver/wiki/WFS-Server-working-with-ArcGIS-Data-Interoperability-Extensions Steve, there's not much else in my mapfile other than what's on the wiki page. I have a couple of "include" statements that include other layers (some roads for context, some barcharts for the WMS), but the example layer is the one that feeds data properly to the WFS clients. I'll be happy to send you the full mapfile if you still need it, but I don't want to post all the extra detail on the wiki. Please update the wiki if you learn more. -- John Abraham jea at hbaspecto.com 403-232-1060 On Feb 7, 2013, at 5:08 AM, Jeff McKenna wrote: > John I think it would be great if you took the time to create a "Serving > data through OGC/MapServer to ArcGIS 10" page on our wiki > (https://github.com/mapserver/mapserver/wiki). You can add > screen-captures, mapfile snippets, or anything your heart desires. For > an example see > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows > > Thanks! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > On 13-02-06 8:35 PM, John Abraham wrote: >> I just responded about how the double types need to be xsd:double. But >> now I'm remembering that was the second problem I had, to allow ArcGIS >> to actually do something with the values it was getting. Before that, I >> struggled for a long time with a problem much more similar to the one >> you describe. >> >> I can't remember how I solved the first problem, but would you like a >> copy of a map file that actually works with ArgGIS data interoperability >> extension? I now have a working web app that generates such map files >> on-the-fly based on user-requested data. >> >> -- >> John Abraham >> jea at hbaspecto.com >> 403-232-1060 >> >> On Feb 6, 2013, at 3:55 PM, "Lime, Steve D (MNIT)" >> > wrote: >> >>> Anyone had any luck displaying a MapServer-based WFS service >>> (MapServer 6.2) in ArcGIS 10.1 via the data interoperability >>> extension? I can get ArcCatalog to list layers from a service so at >>> least some GetCapabilities parsing is working fine but can?t get >>> features to be recognized. I end up with a ?NoGeometry? feature class. >>> Documentation is a tad sparse. >>> >>> Service works great in QGIS 1.8. >>> >>> Steve >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Feb 7 08:38:29 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Feb 2013 12:38:29 -0400 Subject: [mapserver-users] MapServer WFS/ArcGIS 10.1 In-Reply-To: References: <1941AEA0-D8A9-46A0-A2D2-AC4E1F856E4E@hbaspecto.com> <5113994D.2080900@gatewaygeomatics.com> Message-ID: <5113D885.1020901@gatewaygeomatics.com> Excellent! Don't forget to reference your new wiki pages on the wiki homepage: https://github.com/mapserver/mapserver/wiki Thanks (for taking the time to document), -jeff On 13-02-07 12:26 PM, John Abraham wrote: > I've created a wiki page about using the mapserver WFS with ArcGIS: > > https://github.com/mapserver/mapserver/wiki/WFS-Server-working-with-ArcGIS-Data-Interoperability-Extensions > > Steve, there's not much else in my mapfile other than what's on the wiki page. I have a couple of "include" statements that include other layers (some roads for context, some barcharts for the WMS), but the example layer is the one that feeds data properly to the WFS clients. I'll be happy to send you the full mapfile if you still need it, but I don't want to post all the extra detail on the wiki. Please update the wiki if you learn more. > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Bob.Bistrais at maine.gov Fri Feb 8 08:01:15 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 8 Feb 2013 16:01:15 +0000 Subject: [mapserver-users] Combined spatial and attribute query Message-ID: Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 8 08:05:01 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 8 Feb 2013 16:05:01 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: Message-ID: Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Fri Feb 8 08:07:10 2013 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Fri, 8 Feb 2013 08:07:10 -0800 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: Message-ID: <1844B8CB-371D-480F-9586-2F9994CCA16C@gmail.com> On Feb 8, 2013, at 8:01 AM, "Bistrais, Bob" wrote: > Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. This is a very generic, broad question that would have very specific case-by-case answers. It all depends on your query and, more importantly, your indexes. Why don't you just time both strategies and then figure out which one you could tune further. Depending on the attributes, you could possibly have more latitude playing around with the various indexes instead of just the spatial index. -- Puneet Kishor From Bob.Bistrais at maine.gov Fri Feb 8 08:09:46 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 8 Feb 2013 16:09:46 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: Message-ID: Interesting thought. Bbox won't quite do it- the spatial select would be based on, for instance, a selected county or town, or a user-defined polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 11:05 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Feb 8 08:49:39 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 8 Feb 2013 16:49:39 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A639E20DF@suutari.haapa.mmm.fi> Hi, How about doing two WFS requests in a row? In pseudo SQL 1) select geometry from town_polygons where town='my_town' 2) capture the geometry from the previous and use in the WFS Intersects filter select * from my_features where [attribute filter] AND [Intersects filter with selected_town_polygon] I know it is doable, we use that in some OpenLayers applications just like you plan. User can draw a polygon or select a region name from a drop down menu which makes the application to do the first WFS query automatically. -Jukka Rahkonen- ________________________________ Bistrais, Bob wrote: > Interesting thought. Bbox won?t quite do it- the spatial select would be based on, for instance, a selected > county or town, or a user-defined polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 11:05 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. From Steve.Lime at state.mn.us Fri Feb 8 09:00:13 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 8 Feb 2013 17:00:13 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: , Message-ID: Look at mode=itemfeaturequery (I think that's it) and related modes. The stock CGI app supports 2-stage queries like this. So, for instance you can select a county by name or id and then use that geometry to select all hospitals. Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:09 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Interesting thought. Bbox won?t quite do it- the spatial select would be based on, for instance, a selected county or town, or a user-defined polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 11:05 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Fri Feb 8 11:13:43 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 8 Feb 2013 20:13:43 +0100 Subject: [mapserver-users] tutorial for python mapscript Message-ID: Hi, There is a tutorial to learn how start to do a python mapscript for a runtime mapfile ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From umberto.nicoletti at gmail.com Fri Feb 8 11:55:30 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 8 Feb 2013 20:55:30 +0100 Subject: [mapserver-users] tutorial for python mapscript In-Reply-To: References: Message-ID: Andrea, are you looking for something specific? ie: cgi wrapper, WxS wrapper, querying, mapfile modification... The python mapscript folder contains a test directory with plenty of examples in the form of unit tests. The API reference is documented here: http://www.mapserver.org/mapscript/mapscript.html hth, Umberto On Fri, Feb 8, 2013 at 8:13 PM, Andrea Peri wrote: > Hi, > > There is a tutorial to learn how start to do a python mapscript for a > runtime mapfile ? > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Fri Feb 8 12:23:48 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 8 Feb 2013 21:23:48 +0100 Subject: [mapserver-users] tutorial for python mapscript In-Reply-To: References: Message-ID: Hi, thx for hints. I need to understand how and how much is possible to change the mapfile using python mapscripts. More specific I need to understand if with mapscript is allowed to set the visibility of specific layers to specific IP addresses. 2013/2/8 Umberto Nicoletti : > Andrea, > are you looking for something specific? ie: cgi wrapper, WxS wrapper, > querying, mapfile modification... > > The python mapscript folder contains a test directory with plenty of > examples in the form of unit tests. > > The API reference is documented here: > > http://www.mapserver.org/mapscript/mapscript.html > > hth, > Umberto > > > > On Fri, Feb 8, 2013 at 8:13 PM, Andrea Peri wrote: >> >> Hi, >> >> There is a tutorial to learn how start to do a python mapscript for a >> runtime mapfile ? >> >> Thx, >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From umberto.nicoletti at gmail.com Fri Feb 8 12:31:05 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 8 Feb 2013 21:31:05 +0100 Subject: [mapserver-users] tutorial for python mapscript In-Reply-To: References: Message-ID: On Feb 8, 2013 9:23 PM, "Andrea Peri" wrote: > > Hi, > thx for hints. > > I need to understand how and how much is possible to change the > mapfile using python mapscripts. > > More specific I need to understand if with mapscript is allowed to set > the visibility of specific layers to specific IP addresses. Certainly, I have used it myself in java for a long time > > 2013/2/8 Umberto Nicoletti : > > Andrea, > > are you looking for something specific? ie: cgi wrapper, WxS wrapper, > > querying, mapfile modification... > > > > The python mapscript folder contains a test directory with plenty of > > examples in the form of unit tests. > > > > The API reference is documented here: > > > > http://www.mapserver.org/mapscript/mapscript.html > > > > hth, > > Umberto > > > > > > > > On Fri, Feb 8, 2013 at 8:13 PM, Andrea Peri wrote: > >> > >> Hi, > >> > >> There is a tutorial to learn how start to do a python mapscript for a > >> runtime mapfile ? > >> > >> Thx, > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty ????? > >> ----------------- > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ready945 at gmail.com Fri Feb 8 13:06:14 2013 From: ready945 at gmail.com (ready945 at gmail.com) Date: Fri, 08 Feb 2013 22:06:14 +0100 Subject: [mapserver-users] tutorial for python mapscript In-Reply-To: References: Message-ID: <511568C6.4030705@gmail.com> Hi, Have a look to MapFish Studio https://github.com/camptocamp/Studio It is with python, you manage mapfile. Rob Le 08/02/2013 21:23, Andrea Peri a ?crit : > Hi, > thx for hints. > > I need to understand how and how much is possible to change the > mapfile using python mapscripts. > > More specific I need to understand if with mapscript is allowed to set > the visibility of specific layers to specific IP addresses. > > > 2013/2/8 Umberto Nicoletti : >> Andrea, >> are you looking for something specific? ie: cgi wrapper, WxS wrapper, >> querying, mapfile modification... >> >> The python mapscript folder contains a test directory with plenty of >> examples in the form of unit tests. >> >> The API reference is documented here: >> >> http://www.mapserver.org/mapscript/mapscript.html >> >> hth, >> Umberto >> >> >> >> On Fri, Feb 8, 2013 at 8:13 PM, Andrea Peri wrote: >>> Hi, >>> >>> There is a tutorial to learn how start to do a python mapscript for a >>> runtime mapfile ? >>> >>> Thx, >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From traviskirstine at gmail.com Mon Feb 11 08:32:32 2013 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 11 Feb 2013 11:32:32 -0500 Subject: [mapserver-users] mapcache make issues Message-ID: I've been having issues with the make of mapcache. The configure seems to go off without a hitch but the make generates several skipping incompatible warning. Is this an issue, and if so how is it resolved mapcache_seed.c: In function 'pop_queue': mapcache_seed.c:156: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'trypop_queue': mapcache_seed.c:183: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'main': mapcache_seed.c:1166: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for -lpcre /usr/bin/ld: skipping incompatible /usr/lib/libqpixman-1.so when searching for -lqpixman-1 /usr/bin/ld: skipping incompatible /usr/lib/libtiff.so when searching for -ltiff /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc ./configure --without-bdb --with-apxs=/usr/bin/apxs --with-pixman=/usr/lib/pkgconfig/qpixman-1.pc --with-apu-config=/usr/bin/apu-1-config --with-apr-config=/usr/bin/apr-1-config checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 98304 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for a BSD-compatible install... /usr/bin/install -c checking for ANSI C header files... (cached) yes checking for symlink... yes checking for apxs usability in /usr/bin/apxs... yes checking for apachectl utility... /usr/sbin/apachectl checking whether to enable FASTCGI... not requested. use --with-fastcgi=dir to enable checking for apr-config usability in /usr/bin/apr-1-config... yes checking for apu-config usability in /usr/bin/apu-1-config... yes checking for apr_memcache_hash in -laprutil-1... no configure: WARNING: supplied apr-util does not contain memcache functions. memcache cache backend disabled checking sqlite3.h usability... yes checking sqlite3.h presence... yes checking for sqlite3.h... yes checking for sqlite3_open_v2 in -lsqlite3... yes using libsqlite3 from system libs. checking for pkg-config... /usr/bin/pkg-config checking for Pixman... using supplied pkg-config definition /usr/lib/pkgconfig/qpixman-1.pc checking if pixman version is >= 0.13.2... 0.13.3 configure: checking where PNG is installed... checking for png_init_io in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using libpng from system libs. checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where JPEG is installed... checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes using libjpeg from system libs. configure: checking where TIFF is installed... checking for TIFFReadScanline in -ltiff... yes checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes using libtiff from system libs. checking for pcre library inclusion... in system locations checking for pcre_compile in -lpcre... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for gdal-config... /usr/local/bin/gdal-config checking for geos-config... /usr/local/bin/geos-config checking for GEOSPreparedIntersects in -lgeos_c... yes checking for curl-config... /usr/bin/curl-config configure: creating ./config.status config.status: creating Makefile.inc config.status: creating nginx/config config.status: creating lib/Makefile config.status: creating apache/Makefile config.status: creating util/Makefile config.status: creating cgi/Makefile config.status: executing libtool commands -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Mon Feb 11 11:24:36 2013 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 11 Feb 2013 14:24:36 -0500 Subject: [mapserver-users] re mapcache make issues Message-ID: Found the issue I had configure set wrong ./configure --without-bdb --with-pixman=/usr/lib/pkgconfig/qpixman-1.pc Should be ./configure --without-bdb --with-pixman=/usr/lib64/pkgconfig/qpixman-1.pc -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Mon Feb 11 14:40:49 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 11 Feb 2013 23:40:49 +0100 Subject: [mapserver-users] QGIS vs Mapserver someone use wrong scale ? Message-ID: Hi, I set a class rule to show the label in this interval scale: LABEL COLOR 175 109 134 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 300100 MINSCALEDENOM 1 .... After I try to test it with QGIS, but I see calling it with qgis the show of labels in the scale are not so linear as I could guess. infact the label ARE NOT SHOWED at 1:299.990 the label ARE NOT SHOWED at 1:300.000 the label are showed at 1:300.001 the label are showed at 1:300.010 the label ARE NOT SHOWED at 1:300.050 the label are showed at 1:300.090 the label ARE NOT SHOWED at 1:300.100 the label ARE NOT SHOWED at 1:300.110 the label ARE NOT SHOWED at 1:300.150 So seem the limit of 1:300.100 I set in the mapfile is not so exactly used. But I'm not able to understand if is a wrong QGIS calculation of scale value or is a MapServer trouble. Any hint is welcome -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From neil_crisp at technologyonecorp.com Mon Feb 11 20:38:34 2013 From: neil_crisp at technologyonecorp.com (Neil Crisp) Date: Tue, 12 Feb 2013 14:38:34 +1000 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 Message-ID: I have successfully installed the latest release of MapServer (6.2beta4) on Windows via MS4W using Apache, but I need to get it running under IIS7.5. I haven't been having a good time. The latest documentation (Release 6.3-dev) still has the old IIS 5 documentation written by Debbie Paqurek back in 2005 and the latest other documentation I can find is for IIS 6 and is rather complex. Has anyone successfully installed it on IIS7.5 and if so do you have a nice straightforward procedure for it? Something similar to Debbie's instructions, but up to date, would be great. Thanks Neil Crisp. -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Tue Feb 12 00:20:06 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 12 Feb 2013 08:20:06 -0000 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: References: Message-ID: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> Neil, I have some rough notes for my set up (Classic ASP website wit Openlayers - Mapserver WMS/WFS) as follows: 1. IIS a. Click Start, Control Panel, Programs, Turn Windows features on or off. b. Select Internet Information Services. c. Select Web Management Tools then select IIS Management Consule. d. Select World Wide Web Services e. In Application development Features, select ASP, CGI, ISAPI Extensions, ISAPI Filters and Server-Side Includes. f. In Common HTTP Features, select Default Document, HTTP Errors, HTTP Redirection and Static Content. g. In Health and Diagnostics, select HTTP Logging and Request Monitor. h. In Performance Features, select Static Content Compression. i. In Security, select Request Filtering. j. Navigate to http://localhost - An IIS welcome page should be shown. k. Run inetmgr. l. Highlight Default Web Site under Sites the right-click, Manage Web Site then click Advanced Settings. Change the physical path to d:\vmds\web\. m. Double-click ASP in the centre panel of IIS Manager and ensure the following are set: i. Enable Parent Paths n. Click on Application Pools in the left hand panel of IIS Manager, click DefaultAppPool in the centre panel then click advanced settings in the right hand panel. Ensure that Enable 32-Bit Applications is set to True. o. Create the following virtual directories in IIS: i. cgi-bin d:\mapserver\cgi-bin (Neil, will probably be MS4W cgi-bin?) ii. mapserver d:\mapserver\wwwroot (Neil, you will probably not require this) p. Mapserver via FastCGI i. Click on Default Web Site then double-click Handler Mappings in the centre panel. ii. In the Actions Pane, click Add Module Mapping then set the following: 1. Request path: *.exe 2. Module: FastCgiModule 3. Executable: d:\mapserver\cgi-bin\mapserv.exe 4. Name: Mapserver via FastCGI 5. Click on Request Restrictions and set the following: a. Mapping Tab: Check "Invoke hander . ", then set for "File". b. Verbs Tab: "One of the following .", enter "GET,HEAD,POST". c. Access Tab: Check "Execute". iii. Whilst the "Mapserver via FastCGI" handler mapping is highlighted, click on Edit feature permissions in the right hand panel then ensure that read, script and execute are checked. For 64 bit Mapserver: 2. Mapserver x64 a. Download x64 version of Mapserver from http://www.gisinternals.com/sdk/ b. Delete all existing files in d:\mapserver\cgi-bin\. These are the 32 bit Mapserver files from MS4W. c. From the above download, copy all dlls from /bin/ to d:\mapserver\cgi-bin\. d. Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin I hope this helps. If you write it up properly (something I should have done) then please send me a copy. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Crisp Sent: 12 February 2013 04:39 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 I have successfully installed the latest release of MapServer (6.2beta4) on Windows via MS4W using Apache, but I need to get it running under IIS7.5. I haven't been having a good time. The latest documentation (Release 6.3-dev) still has the old IIS 5 documentation written by Debbie Paqurek back in 2005 and the latest other documentation I can find is for IIS 6 and is rather complex. Has anyone successfully installed it on IIS7.5 and if so do you have a nice straightforward procedure for it? Something similar to Debbie's instructions, but up to date, would be great. Thanks Neil Crisp. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Crisp Sent: 12 February 2013 04:39 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 I have successfully installed the latest release of MapServer (6.2beta4) on Windows via MS4W using Apache, but I need to get it running under IIS7.5. I haven't been having a good time. The latest documentation (Release 6.3-dev) still has the old IIS 5 documentation written by Debbie Paqurek back in 2005 and the latest other documentation I can find is for IIS 6 and is rather complex. Has anyone successfully installed it on IIS7.5 and if so do you have a nice straightforward procedure for it? Something similar to Debbie's instructions, but up to date, would be great. Thanks Neil Crisp. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Feb 12 00:46:34 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 12 Feb 2013 09:46:34 +0100 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> Message-ID: Saved you both some time and copied your notes in the wiki: https://github.com/mapserver/mapserver/wiki/Installing-mapserver-under-IIS Cheers, Umberto On Tue, Feb 12, 2013 at 9:20 AM, Donald Kerr wrote: > Neil,**** > > ** ** > > I have some rough notes for my set up (Classic ASP website wit Openlayers > ? Mapserver WMS/WFS) as follows:**** > > ** ** > > **1. **IIS**** > > **a. **Click Start, Control Panel, Programs, Turn Windows features > on or off.**** > > **b. **Select Internet Information Services.**** > > **c. **Select Web Management Tools then select IIS Management > Consule.**** > > **d. **Select World Wide Web Services**** > > **e. **In Application development Features, select ASP, CGI, ISAPI > Extensions, ISAPI Filters and Server-Side Includes.**** > > **f. **In Common HTTP Features, select Default Document, HTTP > Errors, HTTP Redirection and Static Content.**** > > **g. **In Health and Diagnostics, select HTTP Logging and Request > Monitor.**** > > **h. **In Performance Features, select Static Content Compression.*** > * > > **i. **In Security, select Request Filtering.**** > > **j. **Navigate to http://localhost ? An IIS welcome page should > be shown.**** > > **k. **Run inetmgr.**** > > **l. **Highlight Default Web Site under Sites the right-click, > Manage Web Site then click Advanced Settings. Change the physical path to > d:\vmds\web\.**** > > **m. **Double-click ASP in the centre panel of IIS Manager and ensure > the following are set:**** > > ** i. **Enable > Parent Paths**** > > **n. **Click on Application Pools in the left hand panel of IIS > Manager, click DefaultAppPool in the centre panel then click advanced > settings in the right hand panel. Ensure that Enable 32-Bit Applications is > set to True.**** > > **o. **Create the following virtual directories in IIS:**** > > ** i. **cgi-bin > d:\mapserver\cgi-bin (Neil, will probably be MS4W > cgi-bin?)**** > > ** ii. **mapserver > d:\mapserver\wwwroot (Neil, you will probably not require this)**** > > **p. **Mapserver via FastCGI**** > > ** i. **Click on Default Web Site > then double-click Handler Mappings in the centre panel.**** > > ** ii. **In the Actions Pane, click > Add Module Mapping then set the following:**** > > **1. **Request path: *.exe**** > > **2. **Module: FastCgiModule**** > > **3. **Executable: d:\mapserver\cgi-bin\mapserv.exe**** > > **4. **Name: Mapserver via FastCGI**** > > **5. **Click on Request Restrictions and set the following:**** > > **a. **Mapping Tab: Check ?Invoke hander ? ?, then set for ?File?.**** > > **b. **Verbs Tab: ?One of the following ??, enter ?GET,HEAD,POST?.**** > > **c. **Access Tab: Check ?Execute?.**** > > ** iii. **Whilst the ?Mapserver via > FastCGI? handler mapping is highlighted, click on Edit feature permissions > in the right hand panel then ensure that read, script and execute are > checked.**** > > ** ** > > For 64 bit Mapserver:**** > > ** ** > > **2. **Mapserver x64**** > > **a. **Download x64 version of Mapserver from > http://www.gisinternals.com/sdk/ **** > > **b. **Delete all existing files in d:\mapserver\cgi-bin\. These are > the 32 bit Mapserver files from MS4W.**** > > **c. **From the above download, copy all dlls from /bin/ to > d:\mapserver\cgi-bin\.**** > > **d. **Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin*** > * > > ** ** > > I hope this helps. If you write it up properly (something I should have > done) then please send me a copy.**** > > ** ** > > Regards,**** > > ** ** > > Donald**** > > ** ** > > ** ** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp > *Sent:* 12 February 2013 04:39 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** > > ** ** > > I have successfully installed the latest release of MapServer (6.2beta4) > on Windows via MS4W using Apache, but I need to get it running under > IIS7.5. I haven't been having a good time.**** > > ** ** > > The latest documentation (Release 6.3-dev) still has the old IIS 5 > documentation written by Debbie Paqurek back in 2005 and the latest other > documentation I can find is for IIS 6 and is rather complex.**** > > ** ** > > Has anyone successfully installed it on IIS7.5 and if so do you have a > nice straightforward procedure for it? Something similar to Debbie's > instructions, but up to date, would be great.**** > > ** ** > > Thanks **** > > Neil Crisp.**** > > ** ** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp > *Sent:* 12 February 2013 04:39 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** > > ** ** > > I have successfully installed the latest release of MapServer (6.2beta4) > on Windows via MS4W using Apache, but I need to get it running under > IIS7.5. I haven't been having a good time.**** > > ** ** > > The latest documentation (Release 6.3-dev) still has the old IIS 5 > documentation written by Debbie Paqurek back in 2005 and the latest other > documentation I can find is for IIS 6 and is rather complex.**** > > ** ** > > Has anyone successfully installed it on IIS7.5 and if so do you have a > nice straightforward procedure for it? Something similar to Debbie's > instructions, but up to date, would be great.**** > > ** ** > > Thanks **** > > Neil Crisp.**** > > _______________________________________________ > 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 donald.kerr at dkerr.co.uk Tue Feb 12 01:06:53 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 12 Feb 2013 09:06:53 -0000 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> Message-ID: <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> Thanks, Umberto. As I said to Neil, they're very rough. Neil can maybe neaten them up a bit whilst he's going through the process of installing on his machine. I'll do the same when I next work on a non- XP machine. Regards, Donald From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Sent: 12 February 2013 08:47 To: Donald Kerr Cc: Neil Crisp; mapserver Subject: Re: [mapserver-users] Installing MapServer 6.2 on IIS7.5 Saved you both some time and copied your notes in the wiki: https://github.com/mapserver/mapserver/wiki/Installing-mapserver-under-IIS Cheers, Umberto On Tue, Feb 12, 2013 at 9:20 AM, Donald Kerr wrote: Neil, I have some rough notes for my set up (Classic ASP website wit Openlayers - Mapserver WMS/WFS) as follows: 1. IIS a. Click Start, Control Panel, Programs, Turn Windows features on or off. b. Select Internet Information Services. c. Select Web Management Tools then select IIS Management Consule. d. Select World Wide Web Services e. In Application development Features, select ASP, CGI, ISAPI Extensions, ISAPI Filters and Server-Side Includes. f. In Common HTTP Features, select Default Document, HTTP Errors, HTTP Redirection and Static Content. g. In Health and Diagnostics, select HTTP Logging and Request Monitor. h. In Performance Features, select Static Content Compression. i. In Security, select Request Filtering. j. Navigate to http://localhost - An IIS welcome page should be shown. k. Run inetmgr. l. Highlight Default Web Site under Sites the right-click, Manage Web Site then click Advanced Settings. Change the physical path to d:\vmds\web\. m. Double-click ASP in the centre panel of IIS Manager and ensure the following are set: i. Enable Parent Paths n. Click on Application Pools in the left hand panel of IIS Manager, click DefaultAppPool in the centre panel then click advanced settings in the right hand panel. Ensure that Enable 32-Bit Applications is set to True. o. Create the following virtual directories in IIS: i. cgi-bin d:\mapserver\cgi-bin (Neil, will probably be MS4W cgi-bin?) ii. mapserver d:\mapserver\wwwroot (Neil, you will probably not require this) p. Mapserver via FastCGI i. Click on Default Web Site then double-click Handler Mappings in the centre panel. ii. In the Actions Pane, click Add Module Mapping then set the following: 1. Request path: *.exe 2. Module: FastCgiModule 3. Executable: d:\mapserver\cgi-bin\mapserv.exe 4. Name: Mapserver via FastCGI 5. Click on Request Restrictions and set the following: a. Mapping Tab: Check "Invoke hander . ", then set for "File". b. Verbs Tab: "One of the following .", enter "GET,HEAD,POST". c. Access Tab: Check "Execute". iii. Whilst the "Mapserver via FastCGI" handler mapping is highlighted, click on Edit feature permissions in the right hand panel then ensure that read, script and execute are checked. For 64 bit Mapserver: 2. Mapserver x64 a. Download x64 version of Mapserver from http://www.gisinternals.com/sdk/ b. Delete all existing files in d:\mapserver\cgi-bin\. These are the 32 bit Mapserver files from MS4W. c. From the above download, copy all dlls from /bin/ to d:\mapserver\cgi-bin\. d. Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin I hope this helps. If you write it up properly (something I should have done) then please send me a copy. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Crisp Sent: 12 February 2013 04:39 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 I have successfully installed the latest release of MapServer (6.2beta4) on Windows via MS4W using Apache, but I need to get it running under IIS7.5. I haven't been having a good time. The latest documentation (Release 6.3-dev) still has the old IIS 5 documentation written by Debbie Paqurek back in 2005 and the latest other documentation I can find is for IIS 6 and is rather complex. Has anyone successfully installed it on IIS7.5 and if so do you have a nice straightforward procedure for it? Something similar to Debbie's instructions, but up to date, would be great. Thanks Neil Crisp. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Crisp Sent: 12 February 2013 04:39 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 I have successfully installed the latest release of MapServer (6.2beta4) on Windows via MS4W using Apache, but I need to get it running under IIS7.5. I haven't been having a good time. The latest documentation (Release 6.3-dev) still has the old IIS 5 documentation written by Debbie Paqurek back in 2005 and the latest other documentation I can find is for IIS 6 and is rather complex. Has anyone successfully installed it on IIS7.5 and if so do you have a nice straightforward procedure for it? Something similar to Debbie's instructions, but up to date, would be great. Thanks Neil Crisp. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2897 / Virus Database: 2639/6097 - Release Date: 02/11/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Feb 12 07:19:26 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 12 Feb 2013 15:19:26 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: , Message-ID: Thanks Steve. I'm taking a look at it in the documentation but the usage is a bit vague. Are there any samples showing itemfeaturequery in use? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 12:00 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Look at mode=itemfeaturequery (I think that's it) and related modes. The stock CGI app supports 2-stage queries like this. So, for instance you can select a county by name or id and then use that geometry to select all hospitals. Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:09 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Interesting thought. Bbox won't quite do it- the spatial select would be based on, for instance, a selected county or town, or a user-defined polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 11:05 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Feb 12 12:16:02 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 12 Feb 2013 20:16:02 +0000 Subject: [mapserver-users] Combined spatial and attribute query In-Reply-To: References: , Message-ID: One other thing I should have mentioned was that I needed to work within MapScript and also couldn't readily do CGI requests. I was able to work out a solution- I first set a filter on my selection layer, effectively performing the attribute query. With that, I can then do the spatial query and get the result I'm looking for. Many thanks to everyone for their input, BB From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 12:00 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Look at mode=itemfeaturequery (I think that's it) and related modes. The stock CGI app supports 2-stage queries like this. So, for instance you can select a county by name or id and then use that geometry to select all hospitals. Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:09 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Interesting thought. Bbox won't quite do it- the spatial select would be based on, for instance, a selected county or town, or a user-defined polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 08, 2013 11:05 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Combined spatial and attribute query Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, February 08, 2013 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Combined spatial and attribute query Does anyone have advice on the best or most efficient way to query data, involving both a spatial and an attribute query. I need to query several layers, selecting based on an area, then select from that selection based on an attribute value. It would be OK to query by the attribute first, then spatial. -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil_crisp at technologyonecorp.com Tue Feb 12 20:26:33 2013 From: neil_crisp at technologyonecorp.com (Neil Crisp) Date: Wed, 13 Feb 2013 14:26:33 +1000 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> Message-ID: Donald, Umberto, Thanks for your help. I am still working through the steps with minor modifications to suit my application and making notes as I go, I will let you know how I go. Cheers, Neil. On Tue, Feb 12, 2013 at 7:06 PM, Donald Kerr wrote: > Thanks, Umberto.**** > > ** ** > > As I said to Neil, they?re very rough. Neil can maybe neaten them up a bit > whilst he?s going through the process of installing on his machine. I?ll do > the same when I next work on a non- XP machine.**** > > ** ** > > Regards,**** > > ** ** > > Donald**** > > ** ** > > ** ** > > ** ** > > *From:* Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > *Sent:* 12 February 2013 08:47 > *To:* Donald Kerr > *Cc:* Neil Crisp; mapserver > *Subject:* Re: [mapserver-users] Installing MapServer 6.2 on IIS7.5**** > > ** ** > > Saved you both some time and copied your notes in the wiki:**** > > ** ** > > https://github.com/mapserver/mapserver/wiki/Installing-mapserver-under-IIS > **** > > ** ** > > Cheers,**** > > Umberto**** > > ** ** > > On Tue, Feb 12, 2013 at 9:20 AM, Donald Kerr > wrote:**** > > Neil,**** > > **** > > I have some rough notes for my set up (Classic ASP website wit Openlayers > ? Mapserver WMS/WFS) as follows:**** > > **** > > 1. IIS**** > > a. Click Start, Control Panel, Programs, Turn Windows features on or > off.**** > > b. Select Internet Information Services.**** > > c. Select Web Management Tools then select IIS Management Consule.** > ** > > d. Select World Wide Web Services**** > > e. In Application development Features, select ASP, CGI, ISAPI > Extensions, ISAPI Filters and Server-Side Includes.**** > > f. In Common HTTP Features, select Default Document, HTTP Errors, > HTTP Redirection and Static Content.**** > > g. In Health and Diagnostics, select HTTP Logging and Request > Monitor.**** > > h. In Performance Features, select Static Content Compression.**** > > i. In Security, select Request Filtering.**** > > j. Navigate to http://localhost ? An IIS welcome page should be > shown.**** > > k. Run inetmgr.**** > > l. Highlight Default Web Site under Sites the right-click, Manage > Web Site then click Advanced Settings. Change the physical path to > d:\vmds\web\.**** > > m. Double-click ASP in the centre panel of IIS Manager and ensure the > following are set:**** > > i. Enable Parent > Paths**** > > n. Click on Application Pools in the left hand panel of IIS Manager, > click DefaultAppPool in the centre panel then click advanced settings in > the right hand panel. Ensure that Enable 32-Bit Applications is set to True. > **** > > o. Create the following virtual directories in IIS:**** > > i. cgi-bin > d:\mapserver\cgi-bin (Neil, will probably be MS4W > cgi-bin?)**** > > ii. mapserver > d:\mapserver\wwwroot (Neil, you will probably not require this)**** > > p. Mapserver via FastCGI**** > > i. Click on Default Web Site then > double-click Handler Mappings in the centre panel.**** > > ii. In the Actions Pane, click Add > Module Mapping then set the following:**** > > 1. Request path: *.exe**** > > 2. Module: FastCgiModule**** > > 3. Executable: d:\mapserver\cgi-bin\mapserv.exe**** > > 4. Name: Mapserver via FastCGI**** > > 5. Click on Request Restrictions and set the following:**** > > a. Mapping Tab: Check ?Invoke hander ? ?, then set for ?File?.**** > > b. Verbs Tab: ?One of the following ??, enter ?GET,HEAD,POST?.**** > > c. Access Tab: Check ?Execute?.**** > > iii. Whilst the ?Mapserver via > FastCGI? handler mapping is highlighted, click on Edit feature permissions > in the right hand panel then ensure that read, script and execute are > checked.**** > > **** > > For 64 bit Mapserver:**** > > **** > > 2. Mapserver x64**** > > a. Download x64 version of Mapserver from > http://www.gisinternals.com/sdk/ **** > > b. Delete all existing files in d:\mapserver\cgi-bin\. These are the > 32 bit Mapserver files from MS4W.**** > > c. From the above download, copy all dlls from /bin/ to > d:\mapserver\cgi-bin\.**** > > d. Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin**** > > **** > > I hope this helps. If you write it up properly (something I should have > done) then please send me a copy.**** > > **** > > Regards,**** > > **** > > Donald**** > > **** > > **** > > **** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp > *Sent:* 12 February 2013 04:39 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** > > **** > > I have successfully installed the latest release of MapServer (6.2beta4) > on Windows via MS4W using Apache, but I need to get it running under > IIS7.5. I haven't been having a good time.**** > > **** > > The latest documentation (Release 6.3-dev) still has the old IIS 5 > documentation written by Debbie Paqurek back in 2005 and the latest other > documentation I can find is for IIS 6 and is rather complex.**** > > **** > > Has anyone successfully installed it on IIS7.5 and if so do you have a > nice straightforward procedure for it? Something similar to Debbie's > instructions, but up to date, would be great.**** > > **** > > Thanks **** > > Neil Crisp.**** > > **** > > **** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp > *Sent:* 12 February 2013 04:39 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** > > **** > > I have successfully installed the latest release of MapServer (6.2beta4) > on Windows via MS4W using Apache, but I need to get it running under > IIS7.5. I haven't been having a good time.**** > > **** > > The latest documentation (Release 6.3-dev) still has the old IIS 5 > documentation written by Debbie Paqurek back in 2005 and the latest other > documentation I can find is for IIS 6 and is rather complex.**** > > **** > > Has anyone successfully installed it on IIS7.5 and if so do you have a > nice straightforward procedure for it? Something similar to Debbie's > instructions, but up to date, would be great.**** > > **** > > Thanks **** > > Neil Crisp.**** > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users**** > > ** ** > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.2897 / Virus Database: 2639/6097 - Release Date: 02/11/13* > *** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michaelhinke at gmail.com Tue Feb 12 21:09:33 2013 From: michaelhinke at gmail.com (Michael Hinke) Date: Tue, 12 Feb 2013 22:09:33 -0700 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> Message-ID: I am working through this now on IIS 7.5, 2008 R2. I will contribute. I miss CentOS. M. On Tue, Feb 12, 2013 at 9:26 PM, Neil Crisp < neil_crisp at technologyonecorp.com> wrote: > Donald, Umberto, > > Thanks for your help. I am still working through the steps with minor > modifications to suit my application and making notes as I go, I will let > you know how I go. > > Cheers, > Neil. > > > On Tue, Feb 12, 2013 at 7:06 PM, Donald Kerr wrote: > >> Thanks, Umberto.**** >> >> ** ** >> >> As I said to Neil, they?re very rough. Neil can maybe neaten them up a >> bit whilst he?s going through the process of installing on his machine. >> I?ll do the same when I next work on a non- XP machine.**** >> >> ** ** >> >> Regards,**** >> >> ** ** >> >> Donald**** >> >> ** ** >> >> ** ** >> >> ** ** >> >> *From:* Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] >> *Sent:* 12 February 2013 08:47 >> *To:* Donald Kerr >> *Cc:* Neil Crisp; mapserver >> *Subject:* Re: [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >> >> ** ** >> >> Saved you both some time and copied your notes in the wiki:**** >> >> ** ** >> >> https://github.com/mapserver/mapserver/wiki/Installing-mapserver-under-IIS >> **** >> >> ** ** >> >> Cheers,**** >> >> Umberto**** >> >> ** ** >> >> On Tue, Feb 12, 2013 at 9:20 AM, Donald Kerr >> wrote:**** >> >> Neil,**** >> >> **** >> >> I have some rough notes for my set up (Classic ASP website wit Openlayers >> ? Mapserver WMS/WFS) as follows:**** >> >> **** >> >> 1. IIS**** >> >> a. Click Start, Control Panel, Programs, Turn Windows features on >> or off.**** >> >> b. Select Internet Information Services.**** >> >> c. Select Web Management Tools then select IIS Management Consule.* >> *** >> >> d. Select World Wide Web Services**** >> >> e. In Application development Features, select ASP, CGI, ISAPI >> Extensions, ISAPI Filters and Server-Side Includes.**** >> >> f. In Common HTTP Features, select Default Document, HTTP Errors, >> HTTP Redirection and Static Content.**** >> >> g. In Health and Diagnostics, select HTTP Logging and Request >> Monitor.**** >> >> h. In Performance Features, select Static Content Compression.**** >> >> i. In Security, select Request Filtering.**** >> >> j. Navigate to http://localhost ? An IIS welcome page should be >> shown.**** >> >> k. Run inetmgr.**** >> >> l. Highlight Default Web Site under Sites the right-click, Manage >> Web Site then click Advanced Settings. Change the physical path to >> d:\vmds\web\.**** >> >> m. Double-click ASP in the centre panel of IIS Manager and ensure the >> following are set:**** >> >> i. Enable Parent >> Paths**** >> >> n. Click on Application Pools in the left hand panel of IIS >> Manager, click DefaultAppPool in the centre panel then click advanced >> settings in the right hand panel. Ensure that Enable 32-Bit Applications is >> set to True.**** >> >> o. Create the following virtual directories in IIS:**** >> >> i. cgi-bin >> d:\mapserver\cgi-bin (Neil, will probably be MS4W >> cgi-bin?)**** >> >> ii. mapserver >> d:\mapserver\wwwroot (Neil, you will probably not require this)**** >> >> p. Mapserver via FastCGI**** >> >> i. Click on Default Web Site then >> double-click Handler Mappings in the centre panel.**** >> >> ii. In the Actions Pane, click Add >> Module Mapping then set the following:**** >> >> 1. Request path: *.exe**** >> >> 2. Module: FastCgiModule**** >> >> 3. Executable: d:\mapserver\cgi-bin\mapserv.exe**** >> >> 4. Name: Mapserver via FastCGI**** >> >> 5. Click on Request Restrictions and set the following:**** >> >> a. Mapping Tab: Check ?Invoke hander ? ?, then set for ?File?.**** >> >> b. Verbs Tab: ?One of the following ??, enter ?GET,HEAD,POST?.**** >> >> c. Access Tab: Check ?Execute?.**** >> >> iii. Whilst the ?Mapserver via >> FastCGI? handler mapping is highlighted, click on Edit feature permissions >> in the right hand panel then ensure that read, script and execute are >> checked.**** >> >> **** >> >> For 64 bit Mapserver:**** >> >> **** >> >> 2. Mapserver x64**** >> >> a. Download x64 version of Mapserver from >> http://www.gisinternals.com/sdk/ **** >> >> b. Delete all existing files in d:\mapserver\cgi-bin\. These are >> the 32 bit Mapserver files from MS4W.**** >> >> c. From the above download, copy all dlls from /bin/ to >> d:\mapserver\cgi-bin\.**** >> >> d. Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin**** >> >> **** >> >> I hope this helps. If you write it up properly (something I should have >> done) then please send me a copy.**** >> >> **** >> >> Regards,**** >> >> **** >> >> Donald**** >> >> **** >> >> **** >> >> **** >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp >> *Sent:* 12 February 2013 04:39 >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >> >> **** >> >> I have successfully installed the latest release of MapServer (6.2beta4) >> on Windows via MS4W using Apache, but I need to get it running under >> IIS7.5. I haven't been having a good time.**** >> >> **** >> >> The latest documentation (Release 6.3-dev) still has the old IIS 5 >> documentation written by Debbie Paqurek back in 2005 and the latest other >> documentation I can find is for IIS 6 and is rather complex.**** >> >> **** >> >> Has anyone successfully installed it on IIS7.5 and if so do you have a >> nice straightforward procedure for it? Something similar to Debbie's >> instructions, but up to date, would be great.**** >> >> **** >> >> Thanks **** >> >> Neil Crisp.**** >> >> **** >> >> **** >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp >> *Sent:* 12 February 2013 04:39 >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >> >> **** >> >> I have successfully installed the latest release of MapServer (6.2beta4) >> on Windows via MS4W using Apache, but I need to get it running under >> IIS7.5. I haven't been having a good time.**** >> >> **** >> >> The latest documentation (Release 6.3-dev) still has the old IIS 5 >> documentation written by Debbie Paqurek back in 2005 and the latest other >> documentation I can find is for IIS 6 and is rather complex.**** >> >> **** >> >> Has anyone successfully installed it on IIS7.5 and if so do you have a >> nice straightforward procedure for it? Something similar to Debbie's >> instructions, but up to date, would be great.**** >> >> **** >> >> Thanks **** >> >> Neil Crisp.**** >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users**** >> >> ** ** >> >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2013.0.2897 / Virus Database: 2639/6097 - Release Date: 02/11/13 >> **** >> > > > _______________________________________________ > 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 neil_crisp at technologyonecorp.com Tue Feb 12 21:25:19 2013 From: neil_crisp at technologyonecorp.com (Neil Crisp) Date: Wed, 13 Feb 2013 15:25:19 +1000 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> Message-ID: Hi Michael, That will be very helpful, as I am also on 2008 R2. I am working on a Windows 7 laptop that is connected to a 2008 R2 Amazon Cloud instance and could not understand why I could not follow some of Donald's very easy instructions. Then I tried it on my laptop successfully and realised the difference between operating systems. Cheers, Neil. On Wed, Feb 13, 2013 at 3:09 PM, Michael Hinke wrote: > I am working through this now on IIS 7.5, 2008 R2. I will contribute. I > miss CentOS. M. > > > On Tue, Feb 12, 2013 at 9:26 PM, Neil Crisp < > neil_crisp at technologyonecorp.com> wrote: > >> Donald, Umberto, >> >> Thanks for your help. I am still working through the steps with minor >> modifications to suit my application and making notes as I go, I will let >> you know how I go. >> >> Cheers, >> Neil. >> >> >> On Tue, Feb 12, 2013 at 7:06 PM, Donald Kerr wrote: >> >>> Thanks, Umberto.**** >>> >>> ** ** >>> >>> As I said to Neil, they?re very rough. Neil can maybe neaten them up a >>> bit whilst he?s going through the process of installing on his machine. >>> I?ll do the same when I next work on a non- XP machine.**** >>> >>> ** ** >>> >>> Regards,**** >>> >>> ** ** >>> >>> Donald**** >>> >>> ** ** >>> >>> ** ** >>> >>> ** ** >>> >>> *From:* Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] >>> *Sent:* 12 February 2013 08:47 >>> *To:* Donald Kerr >>> *Cc:* Neil Crisp; mapserver >>> *Subject:* Re: [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >>> >>> ** ** >>> >>> Saved you both some time and copied your notes in the wiki:**** >>> >>> ** ** >>> >>> >>> https://github.com/mapserver/mapserver/wiki/Installing-mapserver-under-IIS >>> **** >>> >>> ** ** >>> >>> Cheers,**** >>> >>> Umberto**** >>> >>> ** ** >>> >>> On Tue, Feb 12, 2013 at 9:20 AM, Donald Kerr >>> wrote:**** >>> >>> Neil,**** >>> >>> **** >>> >>> I have some rough notes for my set up (Classic ASP website wit >>> Openlayers ? Mapserver WMS/WFS) as follows:**** >>> >>> **** >>> >>> 1. IIS**** >>> >>> a. Click Start, Control Panel, Programs, Turn Windows features on >>> or off.**** >>> >>> b. Select Internet Information Services.**** >>> >>> c. Select Web Management Tools then select IIS Management Consule. >>> **** >>> >>> d. Select World Wide Web Services**** >>> >>> e. In Application development Features, select ASP, CGI, ISAPI >>> Extensions, ISAPI Filters and Server-Side Includes.**** >>> >>> f. In Common HTTP Features, select Default Document, HTTP >>> Errors, HTTP Redirection and Static Content.**** >>> >>> g. In Health and Diagnostics, select HTTP Logging and Request >>> Monitor.**** >>> >>> h. In Performance Features, select Static Content Compression.**** >>> >>> i. In Security, select Request Filtering.**** >>> >>> j. Navigate to http://localhost ? An IIS welcome page should be >>> shown.**** >>> >>> k. Run inetmgr.**** >>> >>> l. Highlight Default Web Site under Sites the right-click, >>> Manage Web Site then click Advanced Settings. Change the physical path to >>> d:\vmds\web\.**** >>> >>> m. Double-click ASP in the centre panel of IIS Manager and ensure >>> the following are set:**** >>> >>> i. Enable Parent >>> Paths**** >>> >>> n. Click on Application Pools in the left hand panel of IIS >>> Manager, click DefaultAppPool in the centre panel then click advanced >>> settings in the right hand panel. Ensure that Enable 32-Bit Applications is >>> set to True.**** >>> >>> o. Create the following virtual directories in IIS:**** >>> >>> i. cgi-bin >>> d:\mapserver\cgi-bin (Neil, will probably be MS4W >>> cgi-bin?)**** >>> >>> ii. mapserver >>> d:\mapserver\wwwroot (Neil, you will probably not require this)**** >>> >>> p. Mapserver via FastCGI**** >>> >>> i. Click on Default Web Site then >>> double-click Handler Mappings in the centre panel.**** >>> >>> ii. In the Actions Pane, click Add >>> Module Mapping then set the following:**** >>> >>> 1. Request path: *.exe**** >>> >>> 2. Module: FastCgiModule**** >>> >>> 3. Executable: d:\mapserver\cgi-bin\mapserv.exe**** >>> >>> 4. Name: Mapserver via FastCGI**** >>> >>> 5. Click on Request Restrictions and set the following:**** >>> >>> a. Mapping Tab: Check ?Invoke hander ? ?, then set for ?File?.**** >>> >>> b. Verbs Tab: ?One of the following ??, enter ?GET,HEAD,POST?.**** >>> >>> c. Access Tab: Check ?Execute?.**** >>> >>> iii. Whilst the ?Mapserver via >>> FastCGI? handler mapping is highlighted, click on Edit feature permissions >>> in the right hand panel then ensure that read, script and execute are >>> checked.**** >>> >>> **** >>> >>> For 64 bit Mapserver:**** >>> >>> **** >>> >>> 2. Mapserver x64**** >>> >>> a. Download x64 version of Mapserver from >>> http://www.gisinternals.com/sdk/ **** >>> >>> b. Delete all existing files in d:\mapserver\cgi-bin\. These are >>> the 32 bit Mapserver files from MS4W.**** >>> >>> c. From the above download, copy all dlls from /bin/ to >>> d:\mapserver\cgi-bin\.**** >>> >>> d. Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin**** >>> >>> **** >>> >>> I hope this helps. If you write it up properly (something I should have >>> done) then please send me a copy.**** >>> >>> **** >>> >>> Regards,**** >>> >>> **** >>> >>> Donald**** >>> >>> **** >>> >>> **** >>> >>> **** >>> >>> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >>> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp >>> *Sent:* 12 February 2013 04:39 >>> *To:* mapserver-users at lists.osgeo.org >>> *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >>> >>> **** >>> >>> I have successfully installed the latest release of MapServer (6.2beta4) >>> on Windows via MS4W using Apache, but I need to get it running under >>> IIS7.5. I haven't been having a good time.**** >>> >>> **** >>> >>> The latest documentation (Release 6.3-dev) still has the old IIS 5 >>> documentation written by Debbie Paqurek back in 2005 and the latest other >>> documentation I can find is for IIS 6 and is rather complex.**** >>> >>> **** >>> >>> Has anyone successfully installed it on IIS7.5 and if so do you have a >>> nice straightforward procedure for it? Something similar to Debbie's >>> instructions, but up to date, would be great.**** >>> >>> **** >>> >>> Thanks **** >>> >>> Neil Crisp.**** >>> >>> **** >>> >>> **** >>> >>> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >>> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Neil Crisp >>> *Sent:* 12 February 2013 04:39 >>> *To:* mapserver-users at lists.osgeo.org >>> *Subject:* [mapserver-users] Installing MapServer 6.2 on IIS7.5**** >>> >>> **** >>> >>> I have successfully installed the latest release of MapServer (6.2beta4) >>> on Windows via MS4W using Apache, but I need to get it running under >>> IIS7.5. I haven't been having a good time.**** >>> >>> **** >>> >>> The latest documentation (Release 6.3-dev) still has the old IIS 5 >>> documentation written by Debbie Paqurek back in 2005 and the latest other >>> documentation I can find is for IIS 6 and is rather complex.**** >>> >>> **** >>> >>> Has anyone successfully installed it on IIS7.5 and if so do you have a >>> nice straightforward procedure for it? Something similar to Debbie's >>> instructions, but up to date, would be great.**** >>> >>> **** >>> >>> Thanks **** >>> >>> Neil Crisp.**** >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users**** >>> >>> ** ** >>> >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> Version: 2013.0.2897 / Virus Database: 2639/6097 - Release Date: 02/11/13 >>> **** >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Feb 13 04:13:12 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 13 Feb 2013 08:13:12 -0400 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> Message-ID: <511B8358.8010209@gatewaygeomatics.com> Thanks for using the wiki Umberto! Neil/Michael: as you travel down the path please add to Donald's wonderful notes in the wiki: https://github.com/mapserver/mapserver/wiki/Installing-Mapserver-under-IIS-7.n-with-FastCGI (the page URL changed at some point) Thanks all! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From michaelhinke at gmail.com Wed Feb 13 04:14:14 2013 From: michaelhinke at gmail.com (Michael Hinke) Date: Wed, 13 Feb 2013 05:14:14 -0700 Subject: [mapserver-users] Installing MapServer 6.2 on IIS7.5 In-Reply-To: <511B8358.8010209@gatewaygeomatics.com> References: <001a01ce08f9$c78bf440$56a3dcc0$@dkerr.co.uk> <002d01ce0900$5039ac50$f0ad04f0$@dkerr.co.uk> <511B8358.8010209@gatewaygeomatics.com> Message-ID: Thank you Jeff. Will do. M. On Wed, Feb 13, 2013 at 5:13 AM, Jeff McKenna wrote: > Thanks for using the wiki Umberto! Neil/Michael: as you travel down the > path please add to Donald's wonderful notes in the wiki: > > https://github.com/mapserver/mapserver/wiki/Installing-Mapserver-under-IIS-7.n-with-FastCGI > (the page URL changed at some point) > > Thanks all! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hishanm at gmail.com Wed Feb 13 10:40:18 2013 From: hishanm at gmail.com (Hishan Melanga) Date: Thu, 14 Feb 2013 00:10:18 +0530 Subject: [mapserver-users] msAddLabel(): General error message. msAddLabel error: missing style definition Message-ID: I am a complete newbie to map server. Currently I am trying to generate a map by looking at this article. https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#wiki-map-gen in there in the 10th step I have to use "shp2img -m osm-google.map -o output.png -map_debug 3" command. After that it shows the following error and stops working. msDrawMap(): Layer 70 (borders11), 0.000s msAddLabel(): General error message. msAddLabel error: missing style definition for layer 'places11' msDrawMap(): Image handling error. Failed to draw layer named 'places11'. msDrawMap(): Image handling error. Failed to draw layer named 'places11'.
msAddLabel(): General error message. msAddLabel error: missing style definition for layer 'places11'
Please help me to find some answer to this problem. -- ?????? ????? | Hishan Melanga From andy at squeakycode.net Wed Feb 13 10:43:45 2013 From: andy at squeakycode.net (Andy Colson) Date: Wed, 13 Feb 2013 12:43:45 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript Message-ID: <511BDEE1.6060003@squeakycode.net> Hi all, I'm having problems updating to 6.2.0. I can get perl mapscript to compile and install ok, but when I try to run anything: # perl dump.pl perl: symbol lookup error: /usr/local/lib64/perl5/auto/mapscript/mapscript.so: undefined symbol: msSetup Any hints what might be wrong? Thanks for your time, -Andy From jmckenna at gatewaygeomatics.com Wed Feb 13 11:00:55 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 13 Feb 2013 15:00:55 -0400 Subject: [mapserver-users] msAddLabel(): General error message. msAddLabel error: missing style definition In-Reply-To: References: Message-ID: <511BE2E7.505@gatewaygeomatics.com> On 13-02-13 2:40 PM, Hishan Melanga wrote: > I am a complete newbie to map server. Currently I am trying to > generate a map by looking at this article. > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#wiki-map-gen > in there in the 10th step I have to use "shp2img -m osm-google.map -o > output.png -map_debug 3" command. After that it shows the following > error and stops working. > > msDrawMap(): Layer 70 (borders11), 0.000s > msAddLabel(): General error message. msAddLabel error: missing style definition > for layer 'places11' > msDrawMap(): Image handling error. Failed to draw layer named 'places11'. > msDrawMap(): Image handling error. Failed to draw layer named 'places11'.
> msAddLabel(): General error message. msAddLabel error: missing style definition > for layer 'places11'
> > Please help me to find some answer to this problem. Hmmm I am not sure. Maybe verify that you installed the latest MS4W version (see the first 3 bullets at https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#wiki-ms4w). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From andy at squeakycode.net Wed Feb 13 11:27:31 2013 From: andy at squeakycode.net (Andy Colson) Date: Wed, 13 Feb 2013 13:27:31 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> Message-ID: <511BE923.8060204@squeakycode.net> On 2/13/2013 1:19 PM, Umberto Nicoletti wrote: > Did you run make install in the MapServer top level directory? > > Umberto > > On Feb 13, 2013 7:52 PM, "Andy Colson" > wrote: > > Hi all, > > I'm having problems updating to 6.2.0. I can get perl mapscript to > compile and install ok, but when I try to run anything: > > # perl dump.pl > perl: symbol lookup error: > /usr/local/lib64/perl5/auto/__mapscript/mapscript.so: undefined > symbol: msSetup > > Any hints what might be wrong? > > Thanks for your time, > > -Andy > I believe so. I'm actually making a slackware package (which I've done for 6.0.3 as well), and then I install the package. ls -l /usr/local/lib64/perl5/auto/mapscript/mapscript.so does show it as todays date, so I'm pretty sure its new. I will go try to build it by hand and verify its not the packaging script that's a problem. -Andy From andy at squeakycode.net Wed Feb 13 12:03:34 2013 From: andy at squeakycode.net (Andy Colson) Date: Wed, 13 Feb 2013 14:03:34 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> Message-ID: <511BF196.2050700@squeakycode.net> I was not doing a toplevel make install, so it didnt copy libmapserver-6.2.0.so. But, even after fixing my script, and installing: usr/local/lib64/perl5/auto/mapscript/mapscript.so usr/lib/libmapserver.la usr/lib/libmapserver-6.2.0.so I get the same error. Also: ldd /usr/local/lib64/perl5/auto/mapscript/mapscript.so doesn't show it using libmapserver. -Andy On 2/13/2013 1:30 PM, Umberto Nicoletti wrote: > As of 6.2 mapscript is built as a shared lib and depends on mapserver > which therefore must have been installed before. > > Umberto > > On Feb 13, 2013 8:27 PM, "Andy Colson" > wrote: > > On 2/13/2013 1:19 PM, Umberto Nicoletti wrote: > > Did you run make install in the MapServer top level directory? > > Umberto > > On Feb 13, 2013 7:52 PM, "Andy Colson" > >> wrote: > > Hi all, > > I'm having problems updating to 6.2.0. I can get perl > mapscript to > compile and install ok, but when I try to run anything: > > # perl dump.pl > perl: symbol lookup error: > /usr/local/lib64/perl5/auto/____mapscript/mapscript.so: > undefined > symbol: msSetup > > Any hints what might be wrong? > > Thanks for your time, > > -Andy > > > I believe so. I'm actually making a slackware package (which I've > done for 6.0.3 as well), and then I install the package. > > ls -l /usr/local/lib64/perl5/auto/__mapscript/mapscript.so > does show it as todays date, so I'm pretty sure its new. > > I will go try to build it by hand and verify its not the packaging > script that's a problem. > > -Andy > > > From andy at squeakycode.net Wed Feb 13 12:24:15 2013 From: andy at squeakycode.net (Andy Colson) Date: Wed, 13 Feb 2013 14:24:15 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: <511BF196.2050700@squeakycode.net> References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> Message-ID: <511BF66F.7080400@squeakycode.net> Ah. I figured it out. I have to make and make install from top level first, so that libmapserver.so is found, BEFORE I go into mapscript/perl and make/make install. That'll make building a package a little more difficult. Maybe if I play with the path's I wont have to actually install it first. Thanks for the help, though. It works now. -Andy On 2/13/2013 2:03 PM, Andy Colson wrote: > I was not doing a toplevel make install, so it didnt copy > libmapserver-6.2.0.so. > > But, even after fixing my script, and installing: > > usr/local/lib64/perl5/auto/mapscript/mapscript.so > usr/lib/libmapserver.la > usr/lib/libmapserver-6.2.0.so > > I get the same error. Also: > > ldd /usr/local/lib64/perl5/auto/mapscript/mapscript.so > > doesn't show it using libmapserver. > > -Andy > > On 2/13/2013 1:30 PM, Umberto Nicoletti wrote: >> As of 6.2 mapscript is built as a shared lib and depends on mapserver >> which therefore must have been installed before. >> >> Umberto >> >> On Feb 13, 2013 8:27 PM, "Andy Colson" > > wrote: >> >> On 2/13/2013 1:19 PM, Umberto Nicoletti wrote: >> >> Did you run make install in the MapServer top level directory? >> >> Umberto >> >> On Feb 13, 2013 7:52 PM, "Andy Colson" > >> >> >> wrote: >> >> Hi all, >> >> I'm having problems updating to 6.2.0. I can get perl >> mapscript to >> compile and install ok, but when I try to run anything: >> >> # perl dump.pl >> perl: symbol lookup error: >> /usr/local/lib64/perl5/auto/____mapscript/mapscript.so: >> undefined >> symbol: msSetup >> >> Any hints what might be wrong? >> >> Thanks for your time, >> >> -Andy >> >> >> I believe so. I'm actually making a slackware package (which I've >> done for 6.0.3 as well), and then I install the package. >> >> ls -l /usr/local/lib64/perl5/auto/__mapscript/mapscript.so >> does show it as todays date, so I'm pretty sure its new. >> >> I will go try to build it by hand and verify its not the packaging >> script that's a problem. >> >> -Andy >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From umberto.nicoletti at gmail.com Wed Feb 13 12:25:58 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 13 Feb 2013 21:25:58 +0100 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: <511BF196.2050700@squeakycode.net> References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> Message-ID: Perhaps then you've hit this issue: https://github.com/mapserver/mapserver/issues/4528 Let me know and I'll make sure to push it forward asap. br, Umberto On Wed, Feb 13, 2013 at 9:03 PM, Andy Colson wrote: > I was not doing a toplevel make install, so it didnt copy > libmapserver-6.2.0.so. > > But, even after fixing my script, and installing: > > usr/local/lib64/perl5/auto/**mapscript/mapscript.so > usr/lib/libmapserver.la > usr/lib/libmapserver-6.2.0.so > > I get the same error. Also: > > ldd /usr/local/lib64/perl5/auto/**mapscript/mapscript.so > > doesn't show it using libmapserver. > > -Andy > > > On 2/13/2013 1:30 PM, Umberto Nicoletti wrote: > >> As of 6.2 mapscript is built as a shared lib and depends on mapserver >> which therefore must have been installed before. >> >> Umberto >> >> On Feb 13, 2013 8:27 PM, "Andy Colson" > > wrote: >> >> On 2/13/2013 1:19 PM, Umberto Nicoletti wrote: >> >> Did you run make install in the MapServer top level directory? >> >> Umberto >> >> On Feb 13, 2013 7:52 PM, "Andy Colson" > >> >**> >> wrote: >> >> Hi all, >> >> I'm having problems updating to 6.2.0. I can get perl >> mapscript to >> compile and install ok, but when I try to run anything: >> >> # perl dump.pl >> perl: symbol lookup error: >> /usr/local/lib64/perl5/auto/__**__mapscript/mapscript.so: >> >> undefined >> symbol: msSetup >> >> Any hints what might be wrong? >> >> Thanks for your time, >> >> -Andy >> >> >> I believe so. I'm actually making a slackware package (which I've >> done for 6.0.3 as well), and then I install the package. >> >> ls -l /usr/local/lib64/perl5/auto/__**mapscript/mapscript.so >> >> does show it as todays date, so I'm pretty sure its new. >> >> I will go try to build it by hand and verify its not the packaging >> script that's a problem. >> >> -Andy >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Wed Feb 13 12:30:08 2013 From: andy at squeakycode.net (Andy Colson) Date: Wed, 13 Feb 2013 14:30:08 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> Message-ID: <511BF7D0.60201@squeakycode.net> Yep, exactly what I hit. And if there is a patch for it, I'll just wait on my packaging. Awesome! Thanks -Andy On 2/13/2013 2:25 PM, Umberto Nicoletti wrote: > Perhaps then you've hit this issue: > > https://github.com/mapserver/mapserver/issues/4528 > > Let me know and I'll make sure to push it forward asap. > > br, > Umberto > > > On Wed, Feb 13, 2013 at 9:03 PM, Andy Colson > wrote: > > I was not doing a toplevel make install, so it didnt copy > libmapserver-6.2.0.so . > > But, even after fixing my script, and installing: > > usr/local/lib64/perl5/auto/__mapscript/mapscript.so > usr/lib/libmapserver.la > usr/lib/libmapserver-6.2.0.so > > I get the same error. Also: > > ldd /usr/local/lib64/perl5/auto/__mapscript/mapscript.so > > doesn't show it using libmapserver. > > -Andy > > > On 2/13/2013 1:30 PM, Umberto Nicoletti wrote: > > As of 6.2 mapscript is built as a shared lib and depends on > mapserver > which therefore must have been installed before. > > Umberto > > On Feb 13, 2013 8:27 PM, "Andy Colson" > >> wrote: > > On 2/13/2013 1:19 PM, Umberto Nicoletti wrote: > > Did you run make install in the MapServer top level > directory? > > Umberto > > On Feb 13, 2013 7:52 PM, "Andy Colson" > > > > >>__> wrote: > > Hi all, > > I'm having problems updating to 6.2.0. I can get perl > mapscript to > compile and install ok, but when I try to run > anything: > > # perl dump.pl > > perl: symbol lookup error: > > /usr/local/lib64/perl5/auto/______mapscript/mapscript.so: > > undefined > symbol: msSetup > > Any hints what might be wrong? > > Thanks for your time, > > -Andy > > > I believe so. I'm actually making a slackware package > (which I've > done for 6.0.3 as well), and then I install the package. > > ls -l /usr/local/lib64/perl5/auto/____mapscript/mapscript.so > > does show it as todays date, so I'm pretty sure its new. > > I will go try to build it by hand and verify its not the > packaging > script that's a problem. > > -Andy > > > > > From boolean10001 at yahoo.com Wed Feb 13 15:02:27 2013 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 13 Feb 2013 15:02:27 -0800 (PST) Subject: [mapserver-users] QGIS vs Mapserver someone use wrong scale ? In-Reply-To: References: Message-ID: <1360796547.88710.YahooMailNeo@web163803.mail.gq1.yahoo.com> Andrea, I'm having the same problem with scales working with a WMS layer and QGIS. I've defined my layer like this: ??? LAYER ??? ??? NAME "2011" ??? ??? TYPE RASTER ??? ??? STATUS DEFAULT ??? ??? ??? ??? ... ??? ??? ??? ??? ??? ??? MINSCALEDENOM 250000 ??? ??? MAXSCALEDENOM 5000000 END I can't get the image when I set the scale to 1:250000. Trying with some discrete scales upwards, I find that the image finally shows at 1:335000. So I don't know if is a QGIS or Mapserver problem, I'm performing some tests to see where the problem is, maybe that could help to find a solution. Cheers from M?xico IC Carlos Ruiz ________________________________ From: Andrea Peri To: mapserver-users at lists.osgeo.org Sent: Monday, February 11, 2013 4:40 PM Subject: [mapserver-users] QGIS vs Mapserver someone use wrong scale ? Hi, I set a class rule to show the label in this interval scale: ? ? ? LABEL ? ? ? ? COLOR 175 109 134 ? ? ? ? OUTLINECOLOR 255 255 255 ? ? ? ? OUTLINEWIDTH 1 ? ? ? ? MAXSCALEDENOM 300100 ? ? ? ? MINSCALEDENOM 1 ? ? ? ? .... After I try to test it with QGIS, but I see calling it with qgis the show of labels in the scale are not so linear as I could guess. infact the label ARE NOT SHOWED at 1:299.990 the label ARE NOT SHOWED at 1:300.000 the label are showed at 1:300.001 the label are showed at 1:300.010 the label ARE NOT SHOWED at 1:300.050 the label are showed at 1:300.090 the label ARE NOT SHOWED at 1:300.100 the label ARE NOT SHOWED at 1:300.110 the label ARE NOT SHOWED at 1:300.150 So seem the limit of 1:300.100 I set in the mapfile is not so exactly used. But I'm not able to understand if is a wrong QGIS calculation of scale value or is a MapServer trouble. Any hint is welcome -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.kofahl at gmail.com Thu Feb 14 00:27:26 2013 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Thu, 14 Feb 2013 09:27:26 +0100 Subject: [mapserver-users] QGIS vs Mapserver someone use wrong scale ? In-Reply-To: References: Message-ID: Hi Andrea, the inaccuracy may rest upon the resolution defined in your mapfile. By default, MapServer uses RESOLUTION 72, I think. This is not quite correct for OGC WMS, because this standard assumes a pixelsize of 0.28 x 0.28 mm? which is ~90.7 dpi. Not sure if you can set floating point resolutions in MapServer. Try setting RESOLUTION 90.7 or 91 in your mapfile. Best regards, Martin 2013/2/11 Andrea Peri > Hi, > > I set a class rule to show the label in this interval scale: > > LABEL > COLOR 175 109 134 > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 300100 > MINSCALEDENOM 1 > .... > > After I try to test it with QGIS, but I see calling it with qgis the > show of labels in the scale are not so linear as I could guess. > > infact > > the label ARE NOT SHOWED at 1:299.990 > the label ARE NOT SHOWED at 1:300.000 > the label are showed at 1:300.001 > the label are showed at 1:300.010 > the label ARE NOT SHOWED at 1:300.050 > the label are showed at 1:300.090 > the label ARE NOT SHOWED at 1:300.100 > the label ARE NOT SHOWED at 1:300.110 > the label ARE NOT SHOWED at 1:300.150 > > So seem the limit of > 1:300.100 I set in the mapfile is not so exactly used. > > But I'm not able to understand if is a wrong QGIS calculation of scale > value or is a MapServer trouble. > > Any hint is welcome > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariane.broermann at googlemail.com Thu Feb 14 01:39:41 2013 From: ariane.broermann at googlemail.com (=?ISO-8859-1?Q?Ariane_Br=F6rmann?=) Date: Thu, 14 Feb 2013 10:39:41 +0100 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? Message-ID: Is there a possibility to add an attributionlayer (copyright) with mapcache? If yes, how can I configure this? Ariane -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariane.broermann at googlemail.com Thu Feb 14 01:41:52 2013 From: ariane.broermann at googlemail.com (=?ISO-8859-1?Q?Ariane_Br=F6rmann?=) Date: Thu, 14 Feb 2013 10:41:52 +0100 Subject: [mapserver-users] mapcache: How can I configure an other name for rootlayer in getcapabilities document? Message-ID: I use mapcache for caching my own WMS-service. I called my layer "mylayer", but the GetCapabilities document contains "rootlayer" all time. I would already like to have the name of my layer "mylayer" instead of "rootlayer". Is it configurable? Or missed I something? Ariane OGC:WMS test ... @@ -48,11 +52,11 @@ rootlayer test ... mylayer test ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.kofahl at gmail.com Thu Feb 14 03:20:27 2013 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Thu, 14 Feb 2013 12:20:27 +0100 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: Message-ID: Hi Ariane, you may configure to add a watermark (from png file, etc) in the tileset section. See http://mapserver.org/en/mapcache/config.html. /path/to/static/watermark.png Martin 2013/2/14 Ariane Br?rmann > Is there a possibility to add an attributionlayer (copyright) with > mapcache? > If yes, how can I configure this? > > Ariane > > _______________________________________________ > 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 csdave4u at gmail.com Thu Feb 14 04:55:02 2013 From: csdave4u at gmail.com (csdave4u) Date: Thu, 14 Feb 2013 04:55:02 -0800 (PST) Subject: [mapserver-users] OGR SQL "select Query" to extract decimal part Message-ID: <1360846502728-5034263.post@n6.nabble.com> I am using MapServer version 6.0.3 (MS4W 3.0.6) and my target to display decimal number as per attached png. My Solution - Map file with two layers - First Layer to display Integer Part i.e. 12 and Second Layer to display decimal part i.e. 8 with some offset. My Connection type is OGR.My Query - OGR SQL "select Query" to extract decimal part i.e. 8 from decimal value 12.8 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/OGR-SQL-select-Query-to-extract-decimal-part-tp5034263.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Feb 14 06:48:49 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 14 Feb 2013 08:48:49 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> <511BF7D0.60201@squeakycode.net> Message-ID: <511CF951.3040704@squeakycode.net> On 2/14/2013 8:09 AM, Umberto Nicoletti wrote: > It's in the 6.2 branch, please review it: > > https://github.com/mapserver/mapserver/commit/a4ac07d8da7d81f42090890a7e359bdc1f277dbf > > Umberto > > Mmm.. No, that didnt seem to work. andy at mapper:/pub/apps/mapserver$ git branch * branch-6-2 master top level ./configure and make went ok, then: andy at mapper:/pub/apps/mapserver$ cd mapscript/perl andy at mapper:/pub/apps/mapserver/mapscript/perl$ perl Makefile.PL -I/pub/apps/mapserver -I/usr/local/include -I/usr/include -L/usr/lib -L/pub/apps/mapserver/.libs -lmapserver -rpath /usr/lib -lmapserver -lfreetype -lz -lbz2 -L/usr/lib64 -lgd -lproj -ljpeg -lpng -lgif -L/usr/local/lib -lgdal -L/usr/local/pg92/lib -lpq -L/usr/lib64 -lgeos_c -lc -lm -ldl -lstdc++ 6.2.0 Writing Makefile for mapscript Writing MYMETA.yml and MYMETA.json andy at mapper:/pub/apps/mapserver/mapscript/perl$ make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/pub/apps/mapserver -I/usr/local/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fPIC -DVERSION=\"6.2.0\" -DXS_VERSION=\"6.2.0\" -fPIC "-I/usr/lib64/perl5/CORE" -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID mapscript_wrap.c mapscript_wrap.c: In function '_wrap_scaleTokenEntryObj_minscale_set': mapscript_wrap.c:21664:5: error: unknown type name 'scaleTokenEntryObj' mapscript_wrap.c:21664:33: error: 'scaleTokenEntryObj' undeclared (first use in this function) mapscript_wrap.c:21664:33: note: each undeclared identifier is reported only once for each function it appears in mapscript_wrap.c:21664:53: error: expected expression before ')' token mapscript_wrap.c:21680:33: error: expected expression before ')' token ...Lots more... From muratbeyhan28 at gmail.com Thu Feb 14 06:49:51 2013 From: muratbeyhan28 at gmail.com (Murat Beyhan) Date: Thu, 14 Feb 2013 16:49:51 +0200 Subject: [mapserver-users] line issue in mapserver 6 Message-ID: Dear All, I have installed mapserver 6.0.1 on ubuntu 12.10 and I tried to draw map which is including some line and polygon layers. By the way I have been using mapserver 5.4.2 for a long time. Same map file which is working to draw map using mapserver 5.4.2 working well under mandriva 2010. When I try to draw it on new Mapserver the line looking like a point on the map even if its shapefile is line data. BUt for old mapsever it seems line without any problem. When I try to find reason I understood style and symbol has minor change. Then I would like to solve my problem making some test. Then I have found a solution but it is little bit strange. like this for old version of mapserver layers as follows in the map and it seems like a point on the map when I zoomed much. LAYER NAME Faults TYPE line DATA faults_line STATUS on CLASS SYMBOL "cline" SIZE 1 COLOR 200 10 0 END END and symbol cline as follows SYMBOL NAME "cline" TYPE line POINTS 0 0 END FILLED TRUE END these are workng for the mapserver 5.4.2 well. But for Mapserver 6.0 it look like a points instead of line on the map. Then I have used style and I modified map file as follows LAYER TYPE line STATUS on CLASS STYLE WIDTH 2.0 COLOR 200 10 20 END END LAYER NAME Faults DATA fault_lines STATUS on END it works well but for all line layer I should use layer for style for any layer which are including line data. I mean if I try to draw another layer after the fault_lines layer I have to add layer for style before the layer. So if I use layer for style for all line layer it gives confusion on the map file. Do you have any suggestion What I'm missing. Regards. Murat /usr/lib/cgi-bin/mapserv -v MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From muratbeyhan28 at gmail.com Thu Feb 14 07:11:34 2013 From: muratbeyhan28 at gmail.com (Murat Beyhan) Date: Thu, 14 Feb 2013 17:11:34 +0200 Subject: [mapserver-users] posting variable to map file from html page Message-ID: Dear Friend After installing mapserver 6.0.1 I have faced a problem that I could not post string variable into the map file. It was working well for mapserver 5.4.2 but it doesn't work for new version from html file I have sending eq_id to the map file and in layer I use the following SELECT sta_id,latitude,longitude from pgav where eq_id like "%eq_id%" it was worked for mapserver 5.4.2 but I could not sent when I installed new version of map file. May be it caused by new apache2 server. But in case please help me. Regards... Murat -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Thu Feb 14 07:19:33 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 14 Feb 2013 16:19:33 +0100 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: <511CF951.3040704@squeakycode.net> References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> <511BF7D0.60201@squeakycode.net> <511CF951.3040704@squeakycode.net> Message-ID: make clean fixed it for me Umberto On Thu, Feb 14, 2013 at 3:48 PM, Andy Colson wrote: > On 2/14/2013 8:09 AM, Umberto Nicoletti wrote: > >> It's in the 6.2 branch, please review it: >> >> https://github.com/mapserver/**mapserver/commit/** >> a4ac07d8da7d81f42090890a7e359b**dc1f277dbf >> >> Umberto >> >> >> > Mmm.. No, that didnt seem to work. > > andy at mapper:/pub/apps/**mapserver$ git branch > * branch-6-2 > master > > > > top level ./configure and make went ok, then: > > andy at mapper:/pub/apps/**mapserver$ cd mapscript/perl > > andy at mapper:/pub/apps/**mapserver/mapscript/perl$ perl Makefile.PL > -I/pub/apps/mapserver -I/usr/local/include -I/usr/include > -L/usr/lib -L/pub/apps/mapserver/.libs -lmapserver > -rpath /usr/lib -lmapserver -lfreetype -lz -lbz2 -L/usr/lib64 -lgd -lproj > -ljpeg -lpng -lgif -L/usr/local/lib -lgdal -L/usr/local/pg92/lib -lpq > -L/usr/lib64 -lgeos_c -lc -lm -ldl -lstdc++ > 6.2.0 > Writing Makefile for mapscript > Writing MYMETA.yml and MYMETA.json > > andy at mapper:/pub/apps/**mapserver/mapscript/perl$ make > cp mapscript.pm blib/lib/mapscript.pm > cc -c -I/pub/apps/mapserver -I/usr/local/include -I/usr/include > -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fPIC > -DVERSION=\"6.2.0\" -DXS_VERSION=\"6.2.0\" -fPIC "-I/usr/lib64/perl5/CORE" > -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL > -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_PROJ -DUSE_GD > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF > -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT > -DNEED_STRRSTR -DDISABLE_CVSID mapscript_wrap.c > mapscript_wrap.c: In function '_wrap_scaleTokenEntryObj_**minscale_set': > mapscript_wrap.c:21664:5: error: unknown type name 'scaleTokenEntryObj' > mapscript_wrap.c:21664:33: error: 'scaleTokenEntryObj' undeclared (first > use in this function) > mapscript_wrap.c:21664:33: note: each undeclared identifier is reported > only once for each function it appears in > mapscript_wrap.c:21664:53: error: expected expression before ')' token > mapscript_wrap.c:21680:33: error: expected expression before ')' token > ...Lots more... > > > > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Feb 14 07:26:57 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 14 Feb 2013 09:26:57 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> <511BF7D0.60201@squeakycode.net> <511CF951.3040704@squeakycode.net> Message-ID: <511D0241.1000305@squeakycode.net> You mean make clean and then start over? or a make clean at some strategic point? Assuming make clean and start over: andy at mapper:/pub/apps/mapserver$ git status # On branch branch-6-2 nothing to commit (working directory clean) then configure and make worked ok, but in mapscript/perl I got the same error's. -Andy On 2/14/2013 9:19 AM, Umberto Nicoletti wrote: > make clean > > fixed it for me > Umberto > > > On Thu, Feb 14, 2013 at 3:48 PM, Andy Colson > wrote: > > On 2/14/2013 8:09 AM, Umberto Nicoletti wrote: > > It's in the 6.2 branch, please review it: > > https://github.com/mapserver/__mapserver/commit/__a4ac07d8da7d81f42090890a7e359b__dc1f277dbf > > > Umberto > > > > Mmm.. No, that didnt seem to work. > > andy at mapper:/pub/apps/__mapserver$ git branch > * branch-6-2 > master > > > > top level ./configure and make went ok, then: > > andy at mapper:/pub/apps/__mapserver$ cd mapscript/perl > > andy at mapper:/pub/apps/__mapserver/mapscript/perl$ perl Makefile.PL > -I/pub/apps/mapserver -I/usr/local/include -I/usr/include > -L/usr/lib -L/pub/apps/mapserver/.libs -lmapserver > -rpath /usr/lib -lmapserver -lfreetype -lz -lbz2 -L/usr/lib64 -lgd > -lproj -ljpeg -lpng -lgif -L/usr/local/lib -lgdal > -L/usr/local/pg92/lib -lpq -L/usr/lib64 -lgeos_c -lc -lm -ldl -lstdc++ > 6.2.0 > Writing Makefile for mapscript > Writing MYMETA.yml and MYMETA.json > > andy at mapper:/pub/apps/__mapserver/mapscript/perl$ make > cp mapscript.pm blib/lib/mapscript.pm > > cc -c -I/pub/apps/mapserver -I/usr/local/include -I/usr/include > -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O2 -fPIC -DVERSION=\"6.2.0\" > -DXS_VERSION=\"6.2.0\" -fPIC "-I/usr/lib64/perl5/CORE" > -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL > -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_PROJ -DUSE_GD > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG > -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY > -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID mapscript_wrap.c > mapscript_wrap.c: In function '_wrap_scaleTokenEntryObj___minscale_set': > mapscript_wrap.c:21664:5: error: unknown type name 'scaleTokenEntryObj' > mapscript_wrap.c:21664:33: error: 'scaleTokenEntryObj' undeclared > (first use in this function) > mapscript_wrap.c:21664:33: note: each undeclared identifier is > reported only once for each function it appears in > mapscript_wrap.c:21664:53: error: expected expression before ')' token > mapscript_wrap.c:21680:33: error: expected expression before ')' token > ...Lots more... > > > > _________________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.__org > > http://lists.osgeo.org/__mailman/listinfo/mapserver-__users > > > From andy at squeakycode.net Thu Feb 14 07:43:10 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 14 Feb 2013 09:43:10 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> <511BF7D0.60201@squeakycode.net> <511CF951.3040704@squeakycode.net> Message-ID: <511D060E.5030607@squeakycode.net> Ok, got it. inside mapscript/perl, make clean didnt remove mapscript_wrap.c. I manually removed it, then make clean'ed everywhere. Then started over, and it compiled clean. On to testing... -Andy On 2/14/2013 9:19 AM, Umberto Nicoletti wrote: > make clean > > fixed it for me > Umberto > > From David.Fawcett at state.mn.us Thu Feb 14 07:31:16 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Thu, 14 Feb 2013 15:31:16 +0000 Subject: [mapserver-users] posting variable to map file from html page In-Reply-To: References: Message-ID: Murat, Starting at 6.0, you need to add a validation block to your layer. With validation, you include an expression that defines which characters are allowed to be passed in that variable. http://mapserver.org/cgi/runsub.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murat Beyhan Sent: Thursday, February 14, 2013 9:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] posting variable to map file from html page Dear Friend After installing mapserver 6.0.1 I have faced a problem that I could not post string variable into the map file. It was working well for mapserver 5.4.2 but it doesn't work for new version from html file I have sending eq_id to the map file and in layer I use the following SELECT sta_id,latitude,longitude from pgav where eq_id like "%eq_id%" it was worked for mapserver 5.4.2 but I could not sent when I installed new version of map file. May be it caused by new apache2 server. But in case please help me. Regards... Murat -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 14 07:49:42 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Feb 2013 10:49:42 -0500 Subject: [mapserver-users] posting variable to map file from html page In-Reply-To: References: Message-ID: <511D0796.1040303@swoodbridge.com> On 2/14/2013 10:11 AM, Murat Beyhan wrote: > Dear Friend > After installing mapserver 6.0.1 I have faced a problem that > I could not post string variable into the map file. > It was working well for mapserver 5.4.2 but it doesn't work for new version > from html file I have sending eq_id to the map file > and in layer I use the following > > SELECT sta_id,latitude,longitude from pgav where eq_id like > "%eq_id%" > > > it was worked for mapserver 5.4.2 but I could not sent when I installed > new version of map file. > May be it caused by new apache2 server. But in case please help me. > Regards... > Murat In the newer version of mapserver you have to add validation regexs to all variables. This is a security update. read: http://mapserver.org/cgi/runsub.html -Steve W From andy at squeakycode.net Thu Feb 14 08:12:03 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 14 Feb 2013 10:12:03 -0600 Subject: [mapserver-users] mapserver 6.2.0 perl mapscript In-Reply-To: <511D060E.5030607@squeakycode.net> References: <511BDEE1.6060003@squeakycode.net> <511BE923.8060204@squeakycode.net> <511BF196.2050700@squeakycode.net> <511BF7D0.60201@squeakycode.net> <511CF951.3040704@squeakycode.net> <511D060E.5030607@squeakycode.net> Message-ID: <511D0CD3.1080508@squeakycode.net> It works! My package build script ran as-is, the libs link ok, and my maps serve correctly from apache. Thank you much. -Andy On 2/14/2013 9:43 AM, Andy Colson wrote: > Ok, got it. > > inside mapscript/perl, make clean didnt remove mapscript_wrap.c. I > manually removed it, then make clean'ed everywhere. Then started over, > and it compiled clean. > > On to testing... > > -Andy > > On 2/14/2013 9:19 AM, Umberto Nicoletti wrote: >> make clean >> >> fixed it for me >> Umberto >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Weisbend at WAPA.GOV Thu Feb 14 08:03:05 2013 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Thu, 14 Feb 2013 16:03:05 +0000 Subject: [mapserver-users] Photo Viewer Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Feb 14 08:33:41 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 14 Feb 2013 16:33:41 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> Message-ID: Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Feb 14 08:53:49 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 14 Feb 2013 16:53:49 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> Message-ID: I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Feb 14 09:30:16 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 14 Feb 2013 17:30:16 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> Message-ID: Steve, Do you have a sample Mapfile chunk around for this? I can try a test later today . . . Bobb From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:54 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Thu Feb 14 14:16:49 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 14 Feb 2013 22:16:49 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> , Message-ID: Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925 Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file. Still not responding to all the CGI parameters either. MAPFILE: MAP NAME PHOTO SIZE 2048 1536 EXTENT 0 0 2048 1536 UNITS feet LAYER NAME "photo" DATA "up_a_tree.jpg" TYPE RASTER TRANSFORM FALSE STATUS DEFAULT UNITS PIXELS END END WORLD FILE: 1.0000 0.0000 0.0000 1.0000 0.5 0.5 bobb ________________________________ From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:53 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Feb 14 14:41:17 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 14 Feb 2013 22:41:17 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> , Message-ID: Could try ANGLE 90 at the map level? From: Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 4:17 PM To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925 Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file. Still not responding to all the CGI parameters either. MAPFILE: MAP NAME PHOTO SIZE 2048 1536 EXTENT 0 0 2048 1536 UNITS feet LAYER NAME "photo" DATA "up_a_tree.jpg" TYPE RASTER TRANSFORM FALSE STATUS DEFAULT UNITS PIXELS END END WORLD FILE: 1.0000 0.0000 0.0000 1.0000 0.5 0.5 bobb ________________________________ From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:53 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Thu Feb 14 23:50:59 2013 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Fri, 15 Feb 2013 09:50:59 +0200 Subject: [mapserver-users] java - mapscript, using hibernate-jpa2 Message-ID: Hello I would like to know your view. In java - mapscript, using hibernate-jpa2 is a good choice ? If you have any experiences in this respect, could you share your experiences ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From ariane.broermann at googlemail.com Fri Feb 15 00:37:34 2013 From: ariane.broermann at googlemail.com (=?ISO-8859-1?Q?Ariane_Br=F6rmann?=) Date: Fri, 15 Feb 2013 09:37:34 +0100 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: Message-ID: Thank you for this hint and the quick answer. I have already tried the watermark but the label appears on every tile. I would like to have the label at a bottom corner only once, no matter of how many tiles my image consists. 2013/2/14 Martin Kofahl > Hi Ariane, > you may configure to add a watermark (from png file, etc) in the tileset > section. See http://mapserver.org/en/mapcache/config.html. > > > /path/to/static/watermark.png > > Martin > > > > 2013/2/14 Ariane Br?rmann > >> Is there a possibility to add an attributionlayer (copyright) with >> mapcache? >> If yes, how can I configure this? >> >> Ariane >> >> _______________________________________________ >> 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 umberto.nicoletti at gmail.com Fri Feb 15 00:47:56 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 15 Feb 2013 09:47:56 +0100 Subject: [mapserver-users] java - mapscript, using hibernate-jpa2 In-Reply-To: References: Message-ID: On Fri, Feb 15, 2013 at 8:50 AM, Ahmet Temiz wrote: > Hello > > I would like to know your view. > > In java - mapscript, using hibernate-jpa2 is a good choice ? > > Depends on what your needs are. In any case I don't see any incompatibility between the two. hth, Umberto > If you have any experiences in this respect, could you share your > experiences ? > > regards > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.a.de.sousa at gmail.com Fri Feb 15 02:55:06 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 15 Feb 2013 02:55:06 -0800 (PST) Subject: [mapserver-users] SLD with colour ramp in WMS GetMap Message-ID: <1360925706550-5034507.post@n6.nabble.com> Hello everyone, I have a raster layer with the following range of values: $ gdalinfo -hist my_data.tiff [...] STATISTICS_MAXIMUM=128.30499267578 STATISTICS_MEAN=6.3870258293789 STATISTICS_MINIMUM=-9.5671482086182 STATISTICS_STDDEV=11.960967394892 This is layer is being published through Mapserver and I get perfectly correct maps through WMS. Now I'd like to style the maps retrieved by mapserver using the SLD parameter of the GetMap request. I'm starting with the basic example in the SLD Cookbook [1]: my_data SLD Cook Book: Two color gradient When I issue a request with this SLD file: http://my.server/cgi-bin/mapserv?map=/var/www/file.map&VERSION=1.1.1&REQUEST=GetMap&LAYERS=my_data&SRS=EPSG:3857&BBOX=497600,6784100,498900,6786500&WIDTH=300&HEIGHT=600&FORMAT=image/gif&SLD=http://my.server/SLD/my_data.sld I'm getting back simply a green patch (see the file my_data_SLD.gif). Whereas without the SLD argument the features in the file are quite visible (my_data.gif). So what's wrong in here? The SLD file is exactly the same found in the SLD cookbock, I doubt it has an error. Do I have to configure the layer somehow in the map file in order for Mapserver to style it with the SLD? Thank you. [1] http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Feb 15 03:19:20 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 15 Feb 2013 07:19:20 -0400 Subject: [mapserver-users] SLD with colour ramp in WMS GetMap In-Reply-To: <1360925706550-5034507.post@n6.nabble.com> References: <1360925706550-5034507.post@n6.nabble.com> Message-ID: <511E19B8.8000200@gatewaygeomatics.com> On 13-02-15 6:55 AM, Lu?s de Sousa wrote: > > [1] > http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster > Please follow the MapServer SLD document at: http://www.mapserver.org/ogc/sld.html You can mimic the working examples in that document, such as: http://demo.mapserver.org/cgi-bin/wms?SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&LAYERS=country_bounds&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=TRUE&SLD=http://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml Have a nice weekend. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Fri Feb 15 06:01:57 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 15 Feb 2013 14:01:57 +0000 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: , Message-ID: I'm assuming you're using open layers or similar. There isn't one image, that's the point of using tiles, it only looks like one. You could do something with OL to overlay a watermark but it's just an overlay and not part of the underlying tiles. That's would also be independent of mapcache. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Ariane Br?rmann [ariane.broermann at googlemail.com] Sent: Friday, February 15, 2013 2:37 AM To: Martin Kofahl Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? Thank you for this hint and the quick answer. I have already tried the watermark but the label appears on every tile. I would like to have the label at a bottom corner only once, no matter of how many tiles my image consists. 2013/2/14 Martin Kofahl > Hi Ariane, you may configure to add a watermark (from png file, etc) in the tileset section. See http://mapserver.org/en/mapcache/config.html. /path/to/static/watermark.png Martin 2013/2/14 Ariane Br?rmann > [X] Is there a possibility to add an attributionlayer (copyright) with mapcache? If yes, how can I configure this? Ariane _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Feb 15 06:38:31 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 15 Feb 2013 10:38:31 -0400 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: , Message-ID: <511E4867.2090203@gatewaygeomatics.com> On 13-02-15 10:01 AM, Lime, Steve D (MNIT) wrote: > I'm assuming you're using open layers or similar. There isn't one image, > that's the point of using tiles, it only looks like one. You could do > something with OL to overlay a watermark but it's just an overlay and > not part of the underlying tiles. That's would also be independent of > mapcache. > I have done what Steve mentioned recently, using the "attribution" option for each OpenLayers layer, and then controlled the location of the watermark with CSS (.olControlAttribution). Works well! I found how to do it through the OpenLayers mailing list (http://osgeo-org.1560.n6.nabble.com/OpenLayers-Dev-f3888596.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Weisbend at WAPA.GOV Fri Feb 15 08:51:40 2013 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Fri, 15 Feb 2013 16:51:40 +0000 Subject: [mapserver-users] Photo Viewer In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> , Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F089339E4@afovsml1m.WAPA.INT> I got it to work. Thanks for all your help. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisbend at wapa.gov 39?42'25.06"N 105? 8'13.61"W [cid:image003.jpg at 01CE0B62.0D60C7B0] From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: February 14, 2013 3:41 PM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer Could try ANGLE 90 at the map level? From: Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 4:17 PM To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925 Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file. Still not responding to all the CGI parameters either. MAPFILE: MAP NAME PHOTO SIZE 2048 1536 EXTENT 0 0 2048 1536 UNITS feet LAYER NAME "photo" DATA "up_a_tree.jpg" TYPE RASTER TRANSFORM FALSE STATUS DEFAULT UNITS PIXELS END END WORLD FILE: 1.0000 0.0000 0.0000 1.0000 0.5 0.5 bobb ________________________________ From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:53 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 1669 bytes Desc: image003.jpg URL: From warmerdam at pobox.com Fri Feb 15 11:37:12 2013 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 15 Feb 2013 11:37:12 -0800 Subject: [mapserver-users] SLD with colour ramp in WMS GetMap In-Reply-To: <1360925706550-5034507.post@n6.nabble.com> References: <1360925706550-5034507.post@n6.nabble.com> Message-ID: Luis, I suspect the problem is how raster values are scaled. I think the raster SLD is applied essentially as a set of classes on the layer but it is not clear how scaling gets set. What does the layer definition look like? Can you try doing what you want with mapserver classes in the map file? While your SLD looks fine, how these are used by mapserver is fiddly. Best regards, Frank On Feb 15, 2013 2:55 AM, "Lu?s de Sousa" wrote: > Hello everyone, > > I have a raster layer with the following range of values: > > $ gdalinfo -hist my_data.tiff > [...] > STATISTICS_MAXIMUM=128.30499267578 > STATISTICS_MEAN=6.3870258293789 > STATISTICS_MINIMUM=-9.5671482086182 > STATISTICS_STDDEV=11.960967394892 > > This is layer is being published through Mapserver and I get perfectly > correct maps through WMS. > > Now I'd like to style the maps retrieved by mapserver using the SLD > parameter of the GetMap request. I'm starting with the basic example in the > SLD Cookbook [1]: > > > xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > my_data > > SLD Cook Book: Two color gradient > > > > > > > > > > > > > > > When I issue a request with this SLD file: > > > http://my.server/cgi-bin/mapserv?map=/var/www/file.map&VERSION=1.1.1&REQUEST=GetMap&LAYERS=my_data&SRS=EPSG:3857&BBOX=497600,6784100,498900,6786500&WIDTH=300&HEIGHT=600&FORMAT=image/gif&SLD=http://my.server/SLD/my_data.sld > > I'm getting back simply a green patch (see the file my_data_SLD.gif). > Whereas without the SLD argument the features in the file are quite visible > (my_data.gif). > > > > > > So what's wrong in here? The SLD file is exactly the same found in the SLD > cookbock, I doubt it has an error. Do I have to configure the layer somehow > in the map file in order for Mapserver to style it with the SLD? > > Thank you. > > [1] > > http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Sun Feb 17 20:30:01 2013 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 17 Feb 2013 21:30:01 -0700 Subject: [mapserver-users] line issue in mapserver 6 In-Reply-To: References: Message-ID: On Thu, Feb 14, 2013 at 7:49 AM, Murat Beyhan wrote: > Dear All, > > I have installed mapserver 6.0.1 on ubuntu 12.10 and I tried to draw map > which is including some line and polygon layers. > By the way I have been using mapserver 5.4.2 for a long time. > > Same map file which is working to draw map using mapserver 5.4.2 working > well under mandriva 2010. > When I try to draw it on new Mapserver the line looking like a point on > the map even if its shapefile is line data. > BUt for old mapsever it seems line without any problem. > > When I try to find reason I understood style and symbol has minor change. > > Then I would like to solve my problem making some test. > > Then I have found a solution but it is little bit strange. > like this > > for old version of mapserver layers as follows in the map and it seems > like a point on the map when I zoomed much. > > > LAYER > NAME Faults > TYPE line > DATA faults_line > STATUS on > CLASS > SYMBOL "cline" > SIZE 1 > COLOR 200 10 0 > END > END > > and symbol cline as follows > > SYMBOL > NAME "cline" > TYPE line > POINTS 0 0 END > FILLED TRUE > END > these are workng for the mapserver 5.4.2 well. > > But for Mapserver 6.0 it look like a points instead of line on the map. > Then I have used style and I modified map file as follows > > LAYER > TYPE line > STATUS on > CLASS > STYLE > WIDTH 2.0 > COLOR 200 10 20 > END > END > You need one more "END" above so that it looks like: LAYER TYPE line STATUS on CLASS STYLE WIDTH 2.0 COLOR 200 10 20 END # style END # class END #layer > > LAYER > NAME Faults > DATA fault_lines > STATUS on > END > You need a CLASS and a STYLE in your Faults layer above. -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Doyle at bom.gov.au Sun Feb 17 23:09:49 2013 From: M.Doyle at bom.gov.au (Matthew Doyle) Date: Mon, 18 Feb 2013 18:09:49 +1100 Subject: [mapserver-users] Lock file limit on many concurrent seeding processes [SEC=UNCLASSIFIED] Message-ID: Hi Thomas and MapCache users, Is there a way to raise the limit on the number of lockfiles which MapCache uses by default? I am seeding a *lot* of layers twice a day, and when there are many parallel processes at once, i get a steady stream of messages in my apache error_log like: [Mon Feb 18 06:16:14 2013] [error] [client 134.178.63.147] found old lockfile /tiletmp/scratch/_gc_lock3-4-26-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-4-28-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-5-29-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-4-27-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-4-29-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-5-26-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-6-27-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock0-0-0-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock2-1-6-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock1-0-2-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-5-28-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-5-27-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-5-25-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock3-6-26-ADFDWEATHER1820130218061203.lck, deleting itfound old lockfile /tiletmp/scratch/_gc_lock2-1-7-ADFDWEATHER1820130218061203.lck, deleting it Subsequently, i also see a lot of messages like: [Mon Feb 18 06:17:08 2013] [error] [client 134.178.63.167] tileset ADFDWEATHER: unknown error (another thread/process failed to create the tile I was waiting for), referer: http://www.bom.gov.au/australia/meteye/ when a user tries to access a tile which is in the process of being seeded. Is this in any way related to a limit on the lockfiles? Is it possible to avoid these errors, or are they false positives and something to ignore? Regards, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Mon Feb 18 03:22:12 2013 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 18 Feb 2013 12:22:12 +0100 Subject: [mapserver-users] Photo Viewer In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08933471@afovsml1m.WAPA.INT> Message-ID: <51220EE4.8040005@uva.nl> I do this by faking a WMS-service, with the pixel size of the scan as map boundaries, and using an arbitrary EPSG. It's primitive, but it works and I use it a lot, especially for large serieses of scans. See: http://mapserver.sara.nl/atlas/georef.html Left the unreferenced scan, right the referenced maps, both zoomable independently. With a little elementary math, you can even align both maps (the sync buttons). You can even use it in QGIS or any other WMS-enabled program, e.g. to set reference points for warping or designing vector art work. Comments appreciated. Jan (file: utils.inc) setProjection("init=epsg:$epsg"); $oMap->setMetaData("wms_title",$title); $oMap->setMetaData("wms_srs","epsg:$epsg"); $oMap->setMetadata("wms_contactperson","Jan Hartmann"); $oMap->setMetadata("wms_contactorganization","University of Amsterdam"); $oMap->setMetadata("wms_contactelectronicmailaddress","j.l.h.hartmann at uva.nl"); $oMap->setMetadata("wms_enable_request","*"); $pwd = "http://mapserver.sara.nl/" . $_SERVER["SERVER_NAME"]; $pwd = $pwd . $_SERVER["PHP_SELF"]; if ($parms) $pwd = $pwd . "?$parms"; $oMap->setMetadata("wms_onlineresource",$pwd); $l = ms_newLayerObj($oMap); $l->set("name",$title); $l->setProjection("init=epsg:$epsg"); $l->setMetadata("wms_title",$title); $l->setMetadata("wms_srs","epsg:$epsg"); $l->set("status",MS_DEFAULT); $l->set("type",MS_LAYER_RASTER); $l->set("data",$data); $ar = getSizeRaster($data); $oMap->setExtent($ar[0],$ar[1],$ar[2],$ar[3]); $oMap->setMetadata("wms_extent","$ar[0] $ar[1] $ar[2] $ar[3]"); $l->setMetadata("wms_extent","$ar[0] $ar[1] $ar[2] $ar[3]"); $oMap->setSize(600,600 * (($ar[3]-$ar[1]) / ($ar[2] - $ar[0]))); return($oMap); } function dispatchMap($oMap) { $request = ms_newowsrequestobj(); $request->loadparams(); ms_ioinstallstdouttobuffer(); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); if ($contenttype == "text/xml") { header("Content-type: application/xml"); $buffer = ms_iogetstdoutbufferstring(); echo $buffer; } else { header("Content-type:$contenttype"); ms_iogetStdoutBufferBytes(); } ms_ioresethandlers(); } ?> The simplest WMS-service would be a PHP-script like ; $oMap = createMapFromData("WMS_title",28992,"",$fn); dispatchMap($oMap); ?> The WMS-service would just be: mywms.php When you have a series of numbered scans in subdirectories, you could do: ; $subdir = $_REQUEST["subdir"]; $nr = $_REQUEST["nr"]; $path = "$base/$subdir/scan_$nr.tif"; $oMap = createMapFromData("scan",28992,"subdir=$subdir&nr=$nr",$path); dispatchMap($oMap); ?> And accessl each scan as a WMS service like: mywms.php?subdir=&nr= On 02/14/2013 05:03 PM, Weisbender, Eric wrote: > > I would like to use MapServer as just an unreferenced image viewer for > jpgs so I can zoom in and out on the image. Everything I read says > that images have to be georeferenced. Any idea or even examples would > be greatly appreciated. > > Thanks, > > Eric Weisbender > > > > _______________________________________________ > 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 K.Digeser at gmail.com Mon Feb 18 05:45:21 2013 From: K.Digeser at gmail.com (ElPer) Date: Mon, 18 Feb 2013 05:45:21 -0800 (PST) Subject: [mapserver-users] How to render mapserver with openGL Message-ID: <1361195121985-5034909.post@n6.nabble.com> Hi I try to use the mapserver with openGL, but I get only this exception: msDrawMap(): Image handling error. Unable to initialize image. OglContext::init(): Renderer error. DISPLAY environment variable not set Which environment variable I have to set? I installed Mapserver 6.2. on Ubuntu 12.04 with opengl and change "OUTPUTFORMAT" in the mapfile to "DRIVER OGL/PNG" I hope someone can help me Thanks ElPer -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-render-mapserver-with-openGL-tp5034909.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Mon Feb 18 05:46:13 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon, 18 Feb 2013 05:46:13 -0800 (PST) Subject: [mapserver-users] SLD with colour ramp in WMS GetMap In-Reply-To: <511E19B8.8000200@gatewaygeomatics.com> References: <1360925706550-5034507.post@n6.nabble.com> <511E19B8.8000200@gatewaygeomatics.com> Message-ID: <1361195173664-5034910.post@n6.nabble.com> Jeff McKenna wrote > Please follow the MapServer SLD document at: > http://www.mapserver.org/ogc/sld.html Hi Jeff, thank you for replying. Unfortunately there's no reference in that document to colour ramps for raster files. Hence I recurred to the Cookbook. Regards, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5034910.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Mon Feb 18 06:00:29 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon, 18 Feb 2013 06:00:29 -0800 (PST) Subject: [mapserver-users] SLD with colour ramp in WMS GetMap In-Reply-To: References: <1360925706550-5034507.post@n6.nabble.com> Message-ID: <1361196029328-5034913.post@n6.nabble.com> Hi Frank thanks for replying, my comments go below: Frank Warmerdam wrote > Luis, > > I suspect the problem is how raster values are scaled. I think the raster > SLD is applied essentially as a set of classes on the layer but it is not > clear how scaling gets set. All the examples in the Cookbook using ColorMap groups generate colour ramps, not classes, nor doesn't seem logic for it to be otherwise. Frank Warmerdam wrote > What does the layer definition look like? Can > you try doing what you want with mapserver classes in the map file? I would expect a ColorMap group with two ColorMapEntry tags, like in the example I posted originally, to produce the same result as this map file style class: CLASS NAME "ColourRamp" EXPRESSION ([pixel] >= -10 and [pixel] <= 130) STYLE COLORRANGE 0 128 0 102 51 51 DATARANGE -10 130 END END Frank Warmerdam wrote > While your SLD looks fine, how these are used by mapserver is fiddly. SLD is an OGC standard, it shouldn't give room for fiddling. Or does it? Regards, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5034913.html Sent from the Mapserver - User mailing list archive at Nabble.com. From info at knowhow-la.de Mon Feb 18 07:46:08 2013 From: info at knowhow-la.de (Helmut Seidel M.A.) Date: Mon, 18 Feb 2013 16:46:08 +0100 Subject: [mapserver-users] Build Perl-Mapscript om Windows Message-ID: <51224CC0.7060705@knowhow-la.de> Hello everybody, my employer wants me to start a mapserver project with perl MapScript in a Windows environment, as we do most of our programming in Perl. I've tried some html-coding with mapserver and a few very basic perl MapScript examples on my Linux machine so far. Now comes the task of moving to windows. I have learned that all binary distributions do not come with Perl MapScript, so it seems I have to build Mapserver from source. (I've only ever built minor projects from source - so maybe not everything I say is quite correct). I've browsed the net for two day now (not all the time) but I couldn't find instructions how to build Mapserver with Perl MapScript support. So can anybody please give a few instructions (for built-newbees) howto build Perl Mapscript? Thanks and regards From umberto.nicoletti at gmail.com Mon Feb 18 08:52:17 2013 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 18 Feb 2013 17:52:17 +0100 Subject: [mapserver-users] Build Perl-Mapscript om Windows In-Reply-To: <51224CC0.7060705@knowhow-la.de> References: <51224CC0.7060705@knowhow-la.de> Message-ID: Helmut, I would start by downloading a Windows build SDK (scroll midpage, until you find the header: *GDAL and MapServer build SDK packages (provides to compile MapServer and GDAL by yourself)*) from: http://www.gisinternals.com/sdk/ and then extend the build to include Perl mapscript. It might not be easy but it's probably your best shot. You could also check if MS4W includes Perl mapscript. hth, Umberto On Mon, Feb 18, 2013 at 4:46 PM, Helmut Seidel M.A. wrote: > Hello everybody, > > my employer wants me to start a mapserver project with perl MapScript in a > Windows environment, as we do most of our programming in Perl. I've tried > some html-coding with mapserver and a few very basic perl MapScript > examples on my Linux machine so far. > > Now comes the task of moving to windows. I have learned that all binary > distributions do not come with Perl MapScript, so it seems I have to build > Mapserver from source. (I've only ever built minor projects from source - > so maybe not everything I say is quite correct). I've browsed the net for > two day now (not all the time) but I couldn't find instructions how to > build Mapserver with Perl MapScript support. > > So can anybody please give a few instructions (for built-newbees) howto > build Perl Mapscript? > > Thanks and regards > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 18 09:10:41 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 18 Feb 2013 13:10:41 -0400 Subject: [mapserver-users] Build Perl-Mapscript om Windows In-Reply-To: <51224CC0.7060705@knowhow-la.de> References: <51224CC0.7060705@knowhow-la.de> Message-ID: <51226091.1090504@gatewaygeomatics.com> Hello, MS4W does not include Perl mapscript (it does include PHP, CSharp, Python, and Java mapscript). http://www.maptools.org/ms4w/index.phtml If you wish to fund the development time to add/test Perl mapscript into MS4W you can contact me directly. We did make some attempts years back, but it would be great to dedicate some time on this to make it happen. In general you'll find that PHP mapscript is the most widely used and supported. Hope that helps, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 13-02-18 11:46 AM, Helmut Seidel M.A. wrote: > Hello everybody, > > my employer wants me to start a mapserver project with perl MapScript in > a Windows environment, as we do most of our programming in Perl. I've > tried some html-coding with mapserver and a few very basic perl > MapScript examples on my Linux machine so far. > > Now comes the task of moving to windows. I have learned that all binary > distributions do not come with Perl MapScript, so it seems I have to > build Mapserver from source. (I've only ever built minor projects from > source - so maybe not everything I say is quite correct). I've browsed > the net for two day now (not all the time) but I couldn't find > instructions how to build Mapserver with Perl MapScript support. > > So can anybody please give a few instructions (for built-newbees) howto > build Perl Mapscript? > > Thanks and regards > _______________________________________________ > From vincentpmiller at yahoo.com Mon Feb 18 12:34:02 2013 From: vincentpmiller at yahoo.com (Vince Miller) Date: Mon, 18 Feb 2013 12:34:02 -0800 (PST) Subject: [mapserver-users] php-mapscript not working Message-ID: <1361219642.27993.YahooMailClassic@web121101.mail.ne1.yahoo.com> I recently upgraded my development server and updated all the relevant software. The only thing that doesn't work is mapserver/php-mapscript. Here's the particulars: After Ubuntu server 12.04, postgres 9.1, apache2, and php5 seemingly (since they work) installed fine, the installation commands were : sudo apt-add-repository ppa:ubuntugis/ppa sudo apt-get update sudo apt-cache search postgis sudo apt-get install postgis postgresql-9.1-postgis mapserver-bin php5-mapscript cgi-mapserver ./mapserv -v # result: MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG sUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The file php_mapscript.so is in /usr/lib/php5/20090626 and phpinfo() suggests that everything is fine, but my PHP script script dies on this line: The mapfile eunomi0.map is: MAP CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" CONFIG "MS_DEBUGLEVEL" "4" OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" END FONTSET "font.list" SYMBOLSET "symbols.sym" EXTENT -180 -90 180 90 SIZE 1190 595 MAXSIZE 2048 IMAGECOLOR 173 178 161 STATUS OFF ... 20 or so LAYER objects, raster pngs and posgis vectors The mapserver.log file is empty. Any clues? This worked fine on my old server. Thanks a bunch, Vince From szekerest at gmail.com Mon Feb 18 13:24:01 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 18 Feb 2013 22:24:01 +0100 Subject: [mapserver-users] Build Perl-Mapscript om Windows In-Reply-To: <51224CC0.7060705@knowhow-la.de> References: <51224CC0.7060705@knowhow-la.de> Message-ID: Hi, Just gave it a try and I could successfully compile Perl this way: 1. Install ActivePerl-5.16.2.1602-MSWin32-x86-296513.msi into a given folder (ie: C:\Perl) 2. Download the SDK package http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1500-dev.zip Extract these files into a folder, let's say: E:\builds 3. Checkout mapserver sources into the SDK root, ie: E:\builds\mapserver 4. Open Visual Studio 2008 Command Prompt 5. Change directory to E:\builds cd E:\builds 6. Compile mapserver: nmake ms MS_DIR=mapserver 7. Go to perl dir: cd mapserver\mapscript\perl 8. Copy the attached makefile.vc into this subdirectory 9. Compile the Perl bindings nmake -f makefile.vcEXT_NMAKE_OPT=E:\builds\release-1500\mapserver.opt PERL_DIR=C:\Perl I suspect Perl may have a more sophisticated compilation approach, but my knowledge of Pearl is near to nothing. Best regards, Tamas 2013/2/18 Helmut Seidel M.A. > Hello everybody, > > my employer wants me to start a mapserver project with perl MapScript in a > Windows environment, as we do most of our programming in Perl. I've tried > some html-coding with mapserver and a few very basic perl MapScript > examples on my Linux machine so far. > > Now comes the task of moving to windows. I have learned that all binary > distributions do not come with Perl MapScript, so it seems I have to build > Mapserver from source. (I've only ever built minor projects from source - > so maybe not everything I say is quite correct). I've browsed the net for > two day now (not all the time) but I couldn't find instructions how to > build Mapserver with Perl MapScript support. > > So can anybody please give a few instructions (for built-newbees) howto > build Perl Mapscript? > > Thanks and regards > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.vc Type: application/octet-stream Size: 1225 bytes Desc: not available URL: From vincentpmiller at yahoo.com Mon Feb 18 14:46:21 2013 From: vincentpmiller at yahoo.com (Vince Miller) Date: Mon, 18 Feb 2013 14:46:21 -0800 (PST) Subject: [mapserver-users] previous post Message-ID: <1361227581.67212.YahooMailClassic@web121103.mail.ne1.yahoo.com> previous problem solved. not mapscript's fault. It's something (quiz: what?) undigest-able about the following in my symbols.sym file: SYMBOL NAME dotted_circle TYPE ELLIPSE POINTS 1 1 END PATTERN 1 5 1 5 END FILLED TRUE END BTW, I can't seem to figure out how to APPEND to these osgeo threads, rather than starting a new thread. Please inform. Thanks. From Steve.Lime at state.mn.us Mon Feb 18 16:23:41 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 19 Feb 2013 00:23:41 +0000 Subject: [mapserver-users] previous post In-Reply-To: <1361227581.67212.YahooMailClassic@web121103.mail.ne1.yahoo.com> References: <1361227581.67212.YahooMailClassic@web121103.mail.ne1.yahoo.com> Message-ID: I believe PATTERN is now obsolete in a symbol file. You define it in a style instead... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Vince Miller [vincentpmiller at yahoo.com] Sent: Monday, February 18, 2013 4:46 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] previous post previous problem solved. not mapscript's fault. It's something (quiz: what?) undigest-able about the following in my symbols.sym file: SYMBOL NAME dotted_circle TYPE ELLIPSE POINTS 1 1 END PATTERN 1 5 1 5 END FILLED TRUE END BTW, I can't seem to figure out how to APPEND to these osgeo threads, rather than starting a new thread. Please inform. Thanks. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From david.fawcett at gmail.com Mon Feb 18 18:44:41 2013 From: david.fawcett at gmail.com (David Fawcett) Date: Mon, 18 Feb 2013 20:44:41 -0600 Subject: [mapserver-users] FOSS4G NA 2013 Presentation Abstract Deadline Extended Message-ID: The deadline for submitting presentation abstracts for FOSS4G North America 2013 presentations has been extended to Friday, February 22nd. We have received many great abstracts, but we could use some more to put together the best program for all of you. We are looking for all kinds of presentations. Entry level to highly technical. Audiences from developers to end users, to mangers. FOSS4G NA is a community conference. We are working hard to put together a great conference, but the presentations need to come from you! Now is the time to send in your abstracts. Don?t be modest, we know that you are working on something cool. http://foss4g-na.org/call-for-presentations/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Feb 19 06:42:20 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 19 Feb 2013 14:42:20 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 61, Issue 23 In-Reply-To: References: Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31A8BA7@swmail01.r8nssis.local> Bob, Just curious how do you know that guy climbing in the tree? Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of mapserver-users- > request at lists.osgeo.org > Sent: Thursday, February 14, 2013 4:41 PM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 61, Issue 23 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific than "Re: > Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: Photo Viewer (Basques, Bob (CI-StPaul)) > 2. Re: Photo Viewer (Lime, Steve D (MNIT)) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 14 Feb 2013 22:16:49 +0000 > From: "Basques, Bob (CI-StPaul)" > To: "Lime, Steve D (MNIT)" , "Weisbender, > Eric" , "mapserver- > users at lists.osgeo.org" > > Subject: Re: [mapserver-users] Photo Viewer > Message-ID: > 003.055d.mgd.msft.net> > > Content-Type: text/plain; charset="iso-8859-1" > > Ok, I sort of got something to work . . . > > http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/ > image_pixel_coord_public.map > > http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/ > image_pixel_coord_public.map?mapext=750+600+1100+925 > > Danged if I can figure out how to rotate the image (via the world file), > nothing is happening with edits to the world file. > > Still not responding to all the CGI parameters either. > > MAPFILE: > > MAP > > NAME PHOTO > SIZE 2048 1536 > EXTENT 0 0 2048 1536 > UNITS feet > > LAYER > NAME "photo" > DATA "up_a_tree.jpg" > TYPE RASTER > TRANSFORM FALSE > STATUS DEFAULT > UNITS PIXELS > END > > END > > WORLD FILE: > > 1.0000 > 0.0000 > 0.0000 > 1.0000 > 0.5 > 0.5 > > bobb > > > ________________________________ > From: Lime, Steve D (MNIT) > Sent: Thursday, February 14, 2013 10:53 AM > To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver- > users at lists.osgeo.org > Subject: RE: Photo Viewer > > I would think it could be done, your extent would be given in pixels. Full > extent is given as 0 0 width-1 height-1. Depends if the raster code respects > the layer TRANSFORM parameter. > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) > Sent: Thursday, February 14, 2013 10:34 AM > To: Weisbender, Eric; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Photo Viewer > > Eric, > > Interesting idea. I remember a thread a few years back about something > similar being asked. > > As far as the geo-referencing part, you can simply use the size of the image > as your reference coordinate system for each image. Mapserver is more > generally suit towards combining different data into a single output, thus the > need for a coordinate system to reference more than one layer. > > So, the real question boils down to a technique for fooling MapServer into > some sort of projection some how for each image. Let me think on this a bit. > I wonder though about setting up something to register images to a location > via a loading form which grabs the image size, etc. Then they are put away > with the sudo projection assigned to each image at the uploading point. > > Bobb > > > > From: mapserver-users-bounces at lists.osgeo.org bounces at lists.osgeo.org> [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric > Sent: Thursday, February 14, 2013 10:03 AM > To: mapserver-users at lists.osgeo.org users at lists.osgeo.org> > Subject: [mapserver-users] Photo Viewer > > I would like to use MapServer as just an unreferenced image viewer for jpgs > so I can zoom in and out on the image. Everything I read says that images > have to be georeferenced. Any idea or even examples would be greatly > appreciated. > > Thanks, > > Eric Weisbender > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: users/attachments/20130214/8a9c0c19/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Thu, 14 Feb 2013 22:41:17 +0000 > From: "Lime, Steve D (MNIT)" > To: "Basques, Bob (CI-StPaul)" , > "Weisbender, Eric" , > "mapserver-users at lists.osgeo.org" users at lists.osgeo.org> > Subject: Re: [mapserver-users] Photo Viewer > Message-ID: > 041.055d.mgd.msft.net> > > Content-Type: text/plain; charset="us-ascii" > > Could try ANGLE 90 at the map level? > > From: Basques, Bob (CI-StPaul) > Sent: Thursday, February 14, 2013 4:17 PM > To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver- > users at lists.osgeo.org > Subject: RE: Photo Viewer > > Ok, I sort of got something to work . . . > > http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/ > image_pixel_coord_public.map > > http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/ > image_pixel_coord_public.map?mapext=750+600+1100+925 > > Danged if I can figure out how to rotate the image (via the world file), > nothing is happening with edits to the world file. > > Still not responding to all the CGI parameters either. > > MAPFILE: > > MAP > > NAME PHOTO > SIZE 2048 1536 > EXTENT 0 0 2048 1536 > UNITS feet > > LAYER > NAME "photo" > DATA "up_a_tree.jpg" > TYPE RASTER > TRANSFORM FALSE > STATUS DEFAULT > UNITS PIXELS > END > > END > > WORLD FILE: > > 1.0000 > 0.0000 > 0.0000 > 1.0000 > 0.5 > 0.5 > > bobb > > ________________________________ > From: Lime, Steve D (MNIT) > Sent: Thursday, February 14, 2013 10:53 AM > To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver- > users at lists.osgeo.org > Subject: RE: Photo Viewer > I would think it could be done, your extent would be given in pixels. Full > extent is given as 0 0 width-1 height-1. Depends if the raster code respects > the layer TRANSFORM parameter. > > Steve > > From: mapserver-users-bounces at lists.osgeo.org bounces at lists.osgeo.org> [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) > Sent: Thursday, February 14, 2013 10:34 AM > To: Weisbender, Eric; mapserver-users at lists.osgeo.org users at lists.osgeo.org> > Subject: Re: [mapserver-users] Photo Viewer > > Eric, > > Interesting idea. I remember a thread a few years back about something > similar being asked. > > As far as the geo-referencing part, you can simply use the size of the image > as your reference coordinate system for each image. Mapserver is more > generally suit towards combining different data into a single output, thus the > need for a coordinate system to reference more than one layer. > > So, the real question boils down to a technique for fooling MapServer into > some sort of projection some how for each image. Let me think on this a bit. > I wonder though about setting up something to register images to a location > via a loading form which grabs the image size, etc. Then they are put away > with the sudo projection assigned to each image at the uploading point. > > Bobb > > > > From: mapserver-users-bounces at lists.osgeo.org bounces at lists.osgeo.org> [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric > Sent: Thursday, February 14, 2013 10:03 AM > To: mapserver-users at lists.osgeo.org users at lists.osgeo.org> > Subject: [mapserver-users] Photo Viewer > > I would like to use MapServer as just an unreferenced image viewer for jpgs > so I can zoom in and out on the image. Everything I read says that images > have to be georeferenced. Any idea or even examples would be greatly > appreciated. > > Thanks, > > Eric Weisbender > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: users/attachments/20130214/63da4dc2/attachment.html> > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 61, Issue 23 > *********************************************** From MarkVolz at co.lyon.mn.us Tue Feb 19 07:45:18 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 19 Feb 2013 15:45:18 +0000 Subject: [mapserver-users] MapServer .map file security question Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> Hi, I have a server that I would like to run both internal and external applications on it. I know I can use apache to limit who can access internal web pages. However, is there any mechanism to stop an external user from drawing an internal actual .map file? For example, what would stop someone from changing the requested map from: http://myserver/cgi-bin/mapserv.exe?map=External.map. To: http://myserver/cgi-bin/mapserv.exe?map=Internal.map. I could see this as an issue if I want to enable wms. Thanks Mark Volz GIS Specialist From jt at mapmedia.de Tue Feb 19 08:04:22 2013 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Tue, 19 Feb 2013 17:04:22 +0100 Subject: [mapserver-users] MapServer .map file security question In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> Message-ID: <5123A286.7010706@mapmedia.de> Hello Mark, have a look at http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url If using 'Apache SetEnvIf' you could redirect to different cgi-directories and there use allow-from / deny-from rules. Regards, J?rg Am 19.02.2013 16:45, schrieb Mark Volz: > Hi, > > I have a server that I would like to run both internal and external applications on it. I know I can use apache to limit who can access internal web pages. However, is there any mechanism to stop an external user from drawing an internal actual .map file? For example, what would stop someone from changing the requested map from: http://myserver/cgi-bin/mapserv.exe?map=External.map. To: http://myserver/cgi-bin/mapserv.exe?map=Internal.map. > > I could see this as an issue if I want to enable wms. > > Thanks > > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bob.basques at ci.stpaul.mn.us Tue Feb 19 08:16:58 2013 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 19 Feb 2013 16:16:58 +0000 Subject: [mapserver-users] MapServer .map file security question In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> Message-ID: We do some stuff with Apache re-write rules for specially named files. Only certain naming conventions can be seen on the outside. This leaves the permissions aspects up the data owners to administer. Bobb >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- >> users-bounces at lists.osgeo.org] On Behalf Of Mark Volz >> Sent: Tuesday, February 19, 2013 9:45 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MapServer .map file security question >> >> Hi, >> >> I have a server that I would like to run both internal and >> external applications on it. I know I can use apache to limit >> who can access internal web pages. However, is there any >> mechanism to stop an external user from drawing an internal >> actual .map file? For example, what would stop someone from >> changing the requested map from: http://myserver/cgi- >> bin/mapserv.exe?map=External.map. To: http://myserver/cgi- >> bin/mapserv.exe?map=Internal.map. >> >> I could see this as an issue if I want to enable wms. >> >> Thanks >> >> Mark Volz >> GIS Specialist >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Feb 19 08:17:45 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 19 Feb 2013 16:17:45 +0000 Subject: [mapserver-users] MapServer .map file security question In-Reply-To: <5123A286.7010706@mapmedia.de> References: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> <5123A286.7010706@mapmedia.de> Message-ID: It's tricky though using the same webserver instance. If you have separate instances (e.g. different ports, names or whatever) on the same box you can use the MS_MAP_PATTERN environment variable (given as a regex) to restrict allowable mapfile patterns. If you had in separate directories (e.g. internal/appname/foo.map and external/appname/foo.map) you could limit things that way too. Be careful though because back references (../../..) can be hard to catch. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of J?rg Thomsen Sent: Tuesday, February 19, 2013 10:04 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer .map file security question Hello Mark, have a look at http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url If using 'Apache SetEnvIf' you could redirect to different cgi-directories and there use allow-from / deny-from rules. Regards, J?rg Am 19.02.2013 16:45, schrieb Mark Volz: > Hi, > > I have a server that I would like to run both internal and external applications on it. I know I can use apache to limit who can access internal web pages. However, is there any mechanism to stop an external user from drawing an internal actual .map file? For example, what would stop someone from changing the requested map from: http://myserver/cgi-bin/mapserv.exe?map=External.map. To: http://myserver/cgi-bin/mapserv.exe?map=Internal.map. > > I could see this as an issue if I want to enable wms. > > Thanks > > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Feb 19 08:20:15 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Feb 2013 11:20:15 -0500 Subject: [mapserver-users] MapServer .map file security question In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> Message-ID: <5123A63F.7050509@swoodbridge.com> On 2/19/2013 10:45 AM, Mark Volz wrote: > Hi, > > I have a server that I would like to run both internal and external applications on it. I know I can use apache to limit who can access internal web pages. However, is there any mechanism to stop an external user from drawing an internal actual .map file? For example, what would stop someone from changing the requested map from: http://myserver/cgi-bin/mapserv.exe?map=External.map. To: http://myserver/cgi-bin/mapserv.exe?map=Internal.map. > > I could see this as an issue if I want to enable wms. One way would be to create a wrapper around mapserver for the internal vs external connections, that prepends a path to the mapfile path like: map=/external/$map vs map=/internal/$map You would need to do some check of the path to clean something like: ../internal/... The other thing you could do is run two instances of apache with different uids and separate the internal and external file into separate directories with filesystem perms that prevent external from accessing the internal ones. Lots of choices, at the system level, probably not that many in mapserver. Probably the best thing is two separate servers, the internal on not accessible from the external connection. Or maybe two virtual hosts on one box? -Steve W From martin.kofahl at gmail.com Tue Feb 19 10:53:50 2013 From: martin.kofahl at gmail.com (Martin Kofahl) Date: Tue, 19 Feb 2013 19:53:50 +0100 Subject: [mapserver-users] MapServer .map file security question In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31A8C4E@swmail01.r8nssis.local> Message-ID: Hello, with Apache you can set MS_MAPFILE pointing to the desired mapfile and MS_MAP_NO_PATH in order to disallow overriding it with &map= in the url. Using this, you even don't have to use &map= at all. Kind regards, Martin 2013/2/19 Mark Volz > Hi, > > I have a server that I would like to run both internal and external > applications on it. I know I can use apache to limit who can access > internal web pages. However, is there any mechanism to stop an external > user from drawing an internal actual .map file? For example, what would > stop someone from changing the requested map from: > http://myserver/cgi-bin/mapserv.exe?map=External.map. To: > http://myserver/cgi-bin/mapserv.exe?map=Internal.map. > > I could see this as an issue if I want to enable wms. > > Thanks > > Mark Volz > GIS Specialist > > > _______________________________________________ > 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 K.Digeser at gmail.com Wed Feb 20 02:09:07 2013 From: K.Digeser at gmail.com (ElPer) Date: Wed, 20 Feb 2013 02:09:07 -0800 (PST) Subject: [mapserver-users] How to render mapserver with openGL In-Reply-To: <1361195121985-5034909.post@n6.nabble.com> References: <1361195121985-5034909.post@n6.nabble.com> Message-ID: <1361354947303-5035440.post@n6.nabble.com> Hi I read that apache hasn't a DISPLAY environment variable, so I add in apache2.conf "SetEnv DISPLAY :0". But now I get the following error: msDrawMap(): Image handling error. Unable to initialize image. OglContext::init(): Renderer error. XOpenDisplay() failed. On an openGL turoial page I found a code wich also uses the method XOpenDisplay. When I run this code on the same maschine I haven't any problems. Has anybody an idea why the mapserver code doesn't work? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-render-mapserver-with-openGL-tp5034909p5035440.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ariane.broermann at googlemail.com Wed Feb 20 04:33:55 2013 From: ariane.broermann at googlemail.com (=?ISO-8859-1?Q?Ariane_Br=F6rmann?=) Date: Wed, 20 Feb 2013 13:33:55 +0100 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: <511E4867.2090203@gatewaygeomatics.com> Message-ID: Thank you for the OpenLayers tip. But i'm looking for a more client-independent solution. Is there something else i can try? Ariane 2013/2/15 Jeff McKenna > >> On 13-02-15 10:01 AM, Lime, Steve D (MNIT) wrote: >> > I'm assuming you're using open layers or similar. There isn't one image, >> > that's the point of using tiles, it only looks like one. You could do >> > something with OL to overlay a watermark but it's just an overlay and >> > not part of the underlying tiles. That's would also be independent of >> > mapcache. >> > >> >> I have done what Steve mentioned recently, using the "attribution" >> option for each OpenLayers layer, and then controlled the location of >> the watermark with CSS (.olControlAttribution). Works well! >> >> I found how to do it through the OpenLayers mailing list >> (http://osgeo-org.1560.n6.nabble.com/OpenLayers-Dev-f3888596.html) >> >> -jeff >> >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 20 05:44:52 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Feb 2013 13:44:52 +0000 Subject: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? In-Reply-To: References: <511E4867.2090203@gatewaygeomatics.com> , Message-ID: Tiles are basically independent images until the client assembles them. You either need to do something to each tile or something using the client. You never know which tile will be in the lower left corner of the display. The only other option I can think of is somehow exploiting the meta-tiling process (assuming you're using that). Recall that meta-tiling creates a much larger image (to minimize edge effects) and creates the tiles from that. You could, I think, annotate just the corner of the meta-tile. That would give you sparser attribution, but that may not be what you're looking for nor does that guarantee where the attribution will be located. Another option would be to not worry about attribution on the tiles (they're not the easiest to use) but have a "download map" link that creates a non-tiled image and annotate that. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Ariane Br?rmann [ariane.broermann at googlemail.com] Sent: Wednesday, February 20, 2013 6:33 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? Thank you for the OpenLayers tip. But i'm looking for a more client-independent solution. Is there something else i can try? Ariane 2013/2/15 Jeff McKenna > On 13-02-15 10:01 AM, Lime, Steve D (MNIT) wrote: > I'm assuming you're using open layers or similar. There isn't one image, > that's the point of using tiles, it only looks like one. You could do > something with OL to overlay a watermark but it's just an overlay and > not part of the underlying tiles. That's would also be independent of > mapcache. > I have done what Steve mentioned recently, using the "attribution" option for each OpenLayers layer, and then controlled the location of the watermark with CSS (.olControlAttribution). Works well! I found how to do it through the OpenLayers mailing list (http://osgeo-org.1560.n6.nabble.com/OpenLayers-Dev-f3888596.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Feb 20 12:38:51 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 20 Feb 2013 20:38:51 +0000 Subject: [mapserver-users] queryByShape returns too many results Message-ID: I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what's within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 20 13:06:19 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Feb 2013 21:06:19 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: Message-ID: You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what?s within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Feb 20 13:34:58 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 20 Feb 2013 21:34:58 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: Message-ID: Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what's within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 20 13:49:26 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Feb 2013 21:49:26 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: , Message-ID: It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what?s within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Feb 20 14:08:34 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 20 Feb 2013 22:08:34 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: , Message-ID: Seems to be line layers. I reset the tolerance in the map file to 0.1, toleranceunits pixels, but still getting a few records outside of the selection polygon. I'm confident the projection is OK. Is there someplace else I should check tolerance? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:49 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what's within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Wed Feb 20 14:21:05 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 20 Feb 2013 22:21:05 -0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: , Message-ID: <002d01ce0fb8$96d42e10$c47c8a30$@dkerr.co.uk> Bob, I seem to recall having an issue with what's returned from a WFS and TOLERANCE. Now, do not ask me to explain the following as I cannot remember what or why but I have the following in my map file and I think it may be related to the issue you highlight. Ignore "6.0.2" as I am using 6.2 Beta 4. TOLERANCE 0 TOLERANCEUNITS pixels # "pixels" broken in Mapserver 6.0.2 - TOLERANCE has to be zero for WFS BBOX to work properly Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: 20 February 2013 22:09 To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByShape returns too many results Seems to be line layers. I reset the tolerance in the map file to 0.1, toleranceunits pixels, but still getting a few records outside of the selection polygon. I'm confident the projection is OK. Is there someplace else I should check tolerance? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:49 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve _____ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve _____ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what's within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Feb 20 14:27:29 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 20 Feb 2013 22:27:29 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: <002d01ce0fb8$96d42e10$c47c8a30$@dkerr.co.uk> References: , <002d01ce0fb8$96d42e10$c47c8a30$@dkerr.co.uk> Message-ID: Steve, Donald- That was it! I reset the layer tolerances for 0.0 and set toleranceunits to meters. Now all the selections are confined within the polygon, except a few line features which are partly within and outside the polygon (but that's what I want). Thanks for your help! Bob From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Wednesday, February 20, 2013 5:21 PM To: Bistrais, Bob; 'Lime, Steve D (MNIT)'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] queryByShape returns too many results Bob, I seem to recall having an issue with what's returned from a WFS and TOLERANCE. Now, do not ask me to explain the following as I cannot remember what or why but I have the following in my map file and I think it may be related to the issue you highlight. Ignore "6.0.2" as I am using 6.2 Beta 4. TOLERANCE 0 TOLERANCEUNITS pixels # "pixels" broken in Mapserver 6.0.2 - TOLERANCE has to be zero for WFS BBOX to work properly Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: 20 February 2013 22:09 To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByShape returns too many results Seems to be line layers. I reset the tolerance in the map file to 0.1, toleranceunits pixels, but still getting a few records outside of the selection polygon. I'm confident the projection is OK. Is there someplace else I should check tolerance? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:49 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what's within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 20 14:14:16 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Feb 2013 22:14:16 +0000 Subject: [mapserver-users] queryByShape returns too many results In-Reply-To: References: , , Message-ID: Pixels probably aren't appropriate in this case. I mean, there isn't an image in play so the pixel cellsize is computed from the default extent and default image size. It can have a profound effect. If you truly want intersections then set the tolerance to 0 for each layer being queried. Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 4:08 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Seems to be line layers. I reset the tolerance in the map file to 0.1, toleranceunits pixels, but still getting a few records outside of the selection polygon. I?m confident the projection is OK. Is there someplace else I should check tolerance? From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:49 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results Thanks Steve. Interestingly, the process you showed me works great with my point data. But with line or poly data, I am getting some results outside of the polygon. But, using the nextShape() method works properly with these. I can but some if/then code in to examine the results based on feature type. But it would be interesting to know why one way works best for points, the other for lines/polys. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 20, 2013 4:06 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: queryByShape returns too many results You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer->queryByShape($q_shape); for($i=0; $i < $layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($i)); .. do something with the shape .. } As part of query operations the bounding box of $q_shape was used to select candidate shapes (that's why nextShape() is returning what is does). Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Wednesday, February 20, 2013 2:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] queryByShape returns too many results I am working on a spatial query module (actually, modifying an existing GeoMoose module) which uses queryByShape to take a previously selected feature from one layer, and use it to select features from another layer. Both layers are shapefiles, the query layer is of course polygon, the selection layer is points in this case. When I do the query I am finding too many results are returned- there are many features outside the query polygon which are selected, well beyond the polygon boundary. The selected features might possibly be within the BBOX of the polygon, but I only want what?s within the polygon. $layer->queryByShape($q_shape); while($shape = $layer->nextShape()) { # if we have a projection, convert the shape into latlong if($q_shape->intersects($shape) == MS_TRUE or $shape->containsShape($q_shape) == MS_TRUE) { if($projection != NULL) { $shape->project($projection, $LATLONG_PROJ); } $foundShapes[] = $shape; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Feb 20 19:39:48 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 20 Feb 2013 22:39:48 -0500 Subject: [mapserver-users] php-mapscript not working In-Reply-To: <1361219642.27993.YahooMailClassic@web121101.mail.ne1.yahoo.com> References: <1361219642.27993.YahooMailClassic@web121101.mail.ne1.yahoo.com> Message-ID: <51259704.10908@mapgears.com> I may be wrong, but I don't think the following line in your mapfile will do anything: CONFIG "MS_DEBUGLEVEL" "4" Instead, inside a mapfile I'd suggest using: DEBUG 4 and then see if you get some log output... Daniel On 13-02-18 3:34 PM, Vince Miller wrote: > I recently upgraded my development server and updated all the relevant software. The only thing that doesn't work is mapserver/php-mapscript. > > Here's the particulars: > > After Ubuntu server 12.04, postgres 9.1, apache2, and php5 seemingly (since they work) installed fine, the installation commands were : > > sudo apt-add-repository ppa:ubuntugis/ppa > sudo apt-get update > sudo apt-cache search postgis > sudo apt-get install postgis postgresql-9.1-postgis mapserver-bin php5-mapscript cgi-mapserver > ./mapserv -v # result: > > MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG sUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > The file php_mapscript.so is in /usr/lib/php5/20090626 and phpinfo() suggests that everything is fine, but my PHP script script dies on this line: > > ... > $map = ms_newMapObj(__MAPS_PATH__ . 'eunomi0.map'); > ... > ?> > > The mapfile eunomi0.map is: > > MAP > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" > CONFIG "MS_DEBUGLEVEL" "4" > > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > END > > FONTSET "font.list" > SYMBOLSET "symbols.sym" > > EXTENT -180 -90 180 90 > SIZE 1190 595 > MAXSIZE 2048 > IMAGECOLOR 173 178 161 > STATUS OFF > > ... 20 or so LAYER objects, raster pngs and posgis vectors > > The mapserver.log file is empty. Any clues? > This worked fine on my old server. > > Thanks a bunch, > Vince > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From oliver.christen at camptocamp.com Thu Feb 21 06:40:59 2013 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Thu, 21 Feb 2013 15:40:59 +0100 Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ? Message-ID: <512631FB.5090007@camptocamp.com> hello dear mailinglist Im having a strange result when using a TRUETYPE symbol used as LABEL, with a GEOMTRANSFORM 'labelpoly' to give some background color of my symbol, the background polygon created by the GEOMTRANSFORM 'labelpoly' is smaller than my symbol, ending in a not so great result, as seen on this example: http://dev.camptocamp.com/files/mapserver/test_train_symbol.png also, the OUTLINECOLOR show some color inside the symbol, something I dont understand at all. if someone could possibly tell me how to adjust the labelpoly size and explain me the OUTLINECOLOR behavior in this case, I would be very grateful. here is the CLASS used to render that layer: CLASS LABEL TYPE TRUETYPE FONT HPMDRG SIZE 20 ANTIALIAS TRUE COLOR 0 51 153 # dark blue OUTLINECOLOR 255 0 0 # red, just for testing, I dont understand why there is an outline inside the symbol STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 255 255 # background cyan rectangle, not the correct size END POSITION cc END TEXT "1" END Im using mapserver 6.3.0 on debian thank you for reading this, best regards Oliver -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com From tom_price at yahoo.com Thu Feb 21 07:00:25 2013 From: tom_price at yahoo.com (Tom Price) Date: Thu, 21 Feb 2013 07:00:25 -0800 (PST) Subject: [mapserver-users] HowTo? GotoState set extents Message-ID: <1361458825.65636.YahooMailNeo@web110309.mail.gq1.yahoo.com> Working with the 2010 Tiger state/county shape file and looking for the best way to find the proper extents to display a specific state. Years ago, I ended up spinning through the selected state's shape file and getting min/max. But, for 2010 Tiger all states are combined in the same shape file and I'm really confused how to select just the shapes for a given state. Never liked the original solution. Is there a better way? Using C#/Mapscript with VS2008. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Feb 21 11:42:00 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 21 Feb 2013 19:42:00 +0000 Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ? In-Reply-To: <512631FB.5090007@camptocamp.com> References: <512631FB.5090007@camptocamp.com> Message-ID: Oliver: Any chance you can create a test case and a ticket? Steve _______________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Oliver Christen [oliver.christen at camptocamp.com] Sent: Thursday, February 21, 2013 8:40 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ? hello dear mailinglist Im having a strange result when using a TRUETYPE symbol used as LABEL, with a GEOMTRANSFORM 'labelpoly' to give some background color of my symbol, the background polygon created by the GEOMTRANSFORM 'labelpoly' is smaller than my symbol, ending in a not so great result, as seen on this example: http://dev.camptocamp.com/files/mapserver/test_train_symbol.png also, the OUTLINECOLOR show some color inside the symbol, something I dont understand at all. if someone could possibly tell me how to adjust the labelpoly size and explain me the OUTLINECOLOR behavior in this case, I would be very grateful. here is the CLASS used to render that layer: CLASS LABEL TYPE TRUETYPE FONT HPMDRG SIZE 20 ANTIALIAS TRUE COLOR 0 51 153 # dark blue OUTLINECOLOR 255 0 0 # red, just for testing, I dont understand why there is an outline inside the symbol STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 255 255 # background cyan rectangle, not the correct size END POSITION cc END TEXT "1" END Im using mapserver 6.3.0 on debian thank you for reading this, best regards Oliver -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Fri Feb 22 01:23:51 2013 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Fri, 22 Feb 2013 10:23:51 +0100 Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ? In-Reply-To: References: <512631FB.5090007@camptocamp.com> Message-ID: <51273927.1060308@camptocamp.com> Hello Steve I have created a test case and opened a issue: https://github.com/mapserver/mapserver/issues/4595 as stated in the issue, it is possible the problem is caused by the TRUETYPE font itself, but I dont have the knowledge to debug the processing inside mapserver to find out. best regards Oliver > Oliver: Any chance you can create a test case and a ticket? > > Steve > > _______________________________________ > > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Oliver Christen [oliver.christen at camptocamp.com] > Sent: Thursday, February 21, 2013 8:40 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ? > > hello dear mailinglist > > Im having a strange result when using a TRUETYPE symbol used as LABEL, > with a GEOMTRANSFORM 'labelpoly' to give some background color of my symbol, > > the background polygon created by the GEOMTRANSFORM 'labelpoly' is > smaller than my symbol, ending in a not so great result, as seen on this > example: > > http://dev.camptocamp.com/files/mapserver/test_train_symbol.png > > also, the OUTLINECOLOR show some color inside the symbol, something I > dont understand at all. > > if someone could possibly tell me how to adjust the labelpoly size and > explain me the OUTLINECOLOR behavior in this case, I would be very grateful. > > here is the CLASS used to render that layer: > > CLASS > LABEL > TYPE TRUETYPE > FONT HPMDRG > SIZE 20 > ANTIALIAS TRUE > COLOR 0 51 153 # dark blue > OUTLINECOLOR 255 0 0 # red, just for testing, I dont understand > why there is an outline inside the symbol > STYLE > GEOMTRANSFORM 'labelpoly' > COLOR 0 255 255 # background cyan rectangle, not the correct size > END > POSITION cc > END > TEXT "1" > END > > Im using mapserver 6.3.0 on debian > > thank you for reading this, > best regards > Oliver > > -- > Camptocamp SA > Oliver Christen > PSE A > CH-1015 Lausanne > > www.camptocamp.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) From romat2 at gmail.com Fri Feb 22 05:10:25 2013 From: romat2 at gmail.com (Roman) Date: Fri, 22 Feb 2013 14:10:25 +0100 Subject: [mapserver-users] Connection to SpatiaLite utilizing SQL Message-ID: Hi list, I have a working connection to SpatiaLite CONNECTION "c:/Temp/test.sqlite" DATA "Lines" For certain layers I need to specify connection by SQL. According to http://mapserver.org/input/vector/sqlite.html I tried this: CONNECTION "c:/Temp/test.sqlite" DATA "SELECT geometry FROM Lines" With 6.2.0 stable it does not render specified layer and does not throw any error. With development version taken from http://www.gisinternals.com/sdk/ I get an error "msOGRFileNextShape(): OGR error. Unable to query table Lines(geometry) for column definitions : no such table: Lines(geometry)." Geometry column is correctly registered in geometry_columns table and "ogrinfo test.sqlite Lines -summary" says "Geometry Column = geometry". Where could be the problem? Thank you in advance. Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri Feb 22 15:02:55 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 22 Feb 2013 23:02:55 +0000 Subject: [mapserver-users] Connection to SpatiaLite utilizing SQL In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A639E4DC6@suutari.haapa.mmm.fi> Hi, I checked my mapfiles and I have been using CONNECTIONTYPE OGR CONNECTION "\ms4w\data\OSM_Suomi_20120213.sqlite" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "select geometry, osm_id ,place , name from osm_point where place is not null" Nothing so much different than what you have. The error you get looks a bit odd and suggests that Mapserver is trying to find a table called "Lines(geometry)". I would make a blind try and copy the "Lines" table to another table with all underscore characters in the table name. -Jukka Rahkonen- ________________________________ Roman wrote: Hi list, I have a working connection to SpatiaLite CONNECTION "c:/Temp/test.sqlite" DATA "Lines" For certain layers I need to specify connection by SQL. According to http://mapserver.org/input/vector/sqlite.html I tried this: CONNECTION "c:/Temp/test.sqlite" DATA "SELECT geometry FROM Lines" With 6.2.0 stable it does not render specified layer and does not throw any error. With development version taken from http://www.gisinternals.com/sdk/ I get an error "msOGRFileNextShape(): OGR error. Unable to query table Lines(geometry) for column definitions : no such table: Lines(geometry)." Geometry column is correctly registered in geometry_columns table and "ogrinfo test.sqlite Lines -summary" says "Geometry Column = geometry". Where could be the problem? Thank you in advance. Roman From pcreso at pcreso.com Fri Feb 22 16:39:54 2013 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 22 Feb 2013 16:39:54 -0800 (PST) Subject: [mapserver-users] Connection to SpatiaLite utilizing SQL In-Reply-To: <84446DEF76453C439E9E97E438E13A639E4DC6@suutari.haapa.mmm.fi> Message-ID: <1361579994.58992.YahooMailClassic@web122002.mail.ne1.yahoo.com> Try renaming your "Lines" table to "lines" - remove the upper case "L" I'm not a spatiallite user, but this might help... Brent Wood --- On Sat, 2/23/13, Rahkonen Jukka wrote: From: Rahkonen Jukka Subject: Re: [mapserver-users] Connection to SpatiaLite utilizing SQL To: "Roman" , "mapserver-users at lists.osgeo.org" Date: Saturday, February 23, 2013, 12:02 PM Hi, I checked my mapfiles and I have been using CONNECTIONTYPE OGR CONNECTION "\ms4w\data\OSM_Suomi_20120213.sqlite" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "select geometry, osm_id ,place , name from osm_point where place is not null" Nothing so much different than what you have. The error you get looks a bit odd and suggests that Mapserver is trying to find a table called "Lines(geometry)". I would make a blind try and copy the "Lines" table to another table with all underscore characters in the table name. -Jukka Rahkonen- ________________________________ Roman wrote: Hi list, I have a working connection to SpatiaLite ? CONNECTION "c:/Temp/test.sqlite" ? DATA "Lines" For certain layers I need to specify connection by SQL. According to http://mapserver.org/input/vector/sqlite.html I tried this: ? CONNECTION "c:/Temp/test.sqlite" ? DATA "SELECT geometry FROM Lines" With 6.2.0 stable it does not render specified layer and does not throw any error. With development version taken from http://www.gisinternals.com/sdk/ I get an error "msOGRFileNextShape(): OGR error. Unable to query table Lines(geometry) for column definitions : no such table: Lines(geometry)." Geometry column is correctly registered in geometry_columns table and "ogrinfo test.sqlite Lines -summary" says "Geometry Column = geometry". Where could be the problem? Thank you in advance. Roman _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sat Feb 23 04:15:12 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 23 Feb 2013 13:15:12 +0100 Subject: [mapserver-users] How Filter items only if provided parameter Message-ID: Hi, I need to set a layer to allow to retrieve in the response all the elements available in the layer, and when the request has a specific parameter it should apply a filter to limit the show to only the filtered geometries. To do this until now I have set this configuration: LAYER ... DATA "geometry from table using unique gid srid=25832" FILTER "PK_FIELD like '%idvalue%' " VALIDATION 'idvalue' '^[a-zA-Z0-9\-_]+$' END ... METADATA 'default_idvalue' '%' This configuration work pretty well when the PK is a string field. Infact is the request has no the idvalue parameter it show all the records , thx to the "default_idvalue %" definitioni, instead if the request has a parameter as example ..&idvalue=xxx1 It show only the specific item having PK_FIELD=xxx1 Now I have the same need for a layer where the PK is numeric. With this layer the solution described seem don't work, infact the 'default_idvalue' '%' is not working with a numeric field. There same other solution to have the same result? I need to show all the records and apply the filter only when there is a specific parameter in the request. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Michael.Smith at erdc.dren.mil Sat Feb 23 04:30:10 2013 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Sat, 23 Feb 2013 12:30:10 +0000 Subject: [mapserver-users] How Filter items only if provided parameter In-Reply-To: Message-ID: <68A6D85AFE844844ABCD23232A5C97950179512B@MS-EX1VKS.erdc.dren.mil> Andrea, What I do is set the default_idvalue to "1=1" and change the filter to FILTER "%idvalue%". Then the cgi value is something like &idvalue="id=1" Your valididation regex becomes more complex though. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 2/23/13 7:15 AM, "Andrea Peri" wrote: >Hi, > >I need to set a layer to allow to retrieve in the response all the >elements available in the layer, and when the request has a specific >parameter it should apply a filter to limit the show to only the >filtered geometries. > >To do this until now I have set this configuration: > >LAYER > ... > DATA "geometry from table using unique gid srid=25832" > FILTER "PK_FIELD like '%idvalue%' " > VALIDATION > 'idvalue' '^[a-zA-Z0-9\-_]+$' > END > ... > METADATA > 'default_idvalue' '%' > >This configuration work pretty well when the PK is a string field. >Infact is the request has no the idvalue parameter it show all the >records , thx to the "default_idvalue %" definitioni, >instead if the request has a parameter as example >..&idvalue=xxx1 > >It show only the specific item having PK_FIELD=xxx1 > >Now I have the same need for a layer where the PK is numeric. > >With this layer the solution described seem don't work, infact the >'default_idvalue' '%' > >is not working with a numeric field. > >There same other solution to have the same result? > >I need to show all the records and apply the filter only when there is >a specific parameter in the request. > >Thx, > >-- >----------------- >Andrea Peri >. . . . . . . . . >qwerty ????? >----------------- >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From david.fawcett at gmail.com Mon Feb 25 06:47:18 2013 From: david.fawcett at gmail.com (David Fawcett) Date: Mon, 25 Feb 2013 08:47:18 -0600 Subject: [mapserver-users] FOSS4G NA 2013 Community Review Now Open! Message-ID: The FOSS4G North America Conference is a community event. That doesn?t just mean that we all get together in May, it means that you get a voice in shaping the conference program. We have received a lot of great abstracts, please help us now pull them together to create the conference that you want to attend. Go to the Community Review app and let us know which presentations look most interesting to you. http://community-review.foss4g.org/ The results of the community review will be used by the Program Committee to assist in the selection and scheduling of presentations. The review is now open and will run through March 4th. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gamejihou at hotmail.com Mon Feb 25 15:36:28 2013 From: gamejihou at hotmail.com (Gery) Date: Mon, 25 Feb 2013 15:36:28 -0800 (PST) Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= Message-ID: <1361835388782-5036813.post@n6.nabble.com> Hello folks, I've been trying to draw the attached image but with no luck, I've used "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but couldn't get the opened "v" effect, could anyone please provide some tips to draw such image? I'll appreciate it, thanks in advance. Regards, Gery -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html Sent from the Mapserver - User mailing list archive at Nabble.com. From havard.tveite at umb.no Tue Feb 26 00:00:53 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 26 Feb 2013 09:00:53 +0100 Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: <1361835388782-5036813.post@n6.nabble.com> References: <1361835388782-5036813.post@n6.nabble.com> Message-ID: <512C6BB5.7090101@umb.no> Dear Gary, The v-poly symbol should be OK (I just tested it with 6.2 and 5.6.6). If you want an open V, you should use only outlinecolor: STYLE SYMBOL "v-poly" SIZE 30 OUTLINECOLOR 0 255 0 END # STYLE H?vard On 2/26/2013 12:36 AM, Gery wrote: > Hello folks, > > I've been trying to draw the attached image but with no luck, I've used > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > couldn't get the opened "v" effect, could anyone please provide some tips to > draw such image? I'll appreciate it, thanks in advance. > > Regards, > > Gery > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From gamejihou at hotmail.com Tue Feb 26 01:21:09 2013 From: gamejihou at hotmail.com (Gery) Date: Tue, 26 Feb 2013 01:21:09 -0800 (PST) Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: <512C6BB5.7090101@umb.no> References: <1361835388782-5036813.post@n6.nabble.com> <512C6BB5.7090101@umb.no> Message-ID: Hello H?vard, Thanks for your answer, I tested yesterday in my 5.6 version and it also works well, the problem is that after changing the values during many hours I couldn't set properly the right value to get that "opened v", so I think just doing random changes here and there won't help me to draw well this figure. I was thinking about some tips to draw this image, I think first I should take a piece of paper and draw this image and then take the measurements from it, is this the right, easy way to do it? those values in v-poly were calculated in this way? Gery Date: Tue, 26 Feb 2013 00:07:25 -0800 From: ml-node+s1560n5036860h86 at n6.nabble.com To: gamejihou at hotmail.com Subject: Re: tips to draw a symbol? Dear Gary, The v-poly symbol should be OK (I just tested it with 6.2 and 5.6.6). If you want an open V, you should use only outlinecolor: STYLE SYMBOL "v-poly" SIZE 30 OUTLINECOLOR 0 255 0 END # STYLE H?vard On 2/26/2013 12:36 AM, Gery wrote: > Hello folks, > > I've been trying to draw the attached image but with no luck, I've used > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > couldn't get the opened "v" effect, could anyone please provide some tips to > draw such image? I'll appreciate it, thanks in advance. > > Regards, > > Gery > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036860.html To unsubscribe from tips to draw a symbol?, click here. NAML -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036887.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Feb 26 08:29:51 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 26 Feb 2013 17:29:51 +0100 Subject: [mapserver-users] Lock file limit on many concurrent seeding processes [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Hi Matthew, Running the seeder in parallel to incoming user requests is definitely something that wasn't planned for, and may potentially end up in corrupted tiles being written to the caches. The heart of the problem is that the seeder deletes the existing lockfiles at startup as it expects it will be the only instance creating tiles; clearly this isn't the case if there are other seeding instances running, or if live web users are requesting tiles. The reason the locks are deleted is to avoid a deadlock when old lockfiles are still present after e.g. a server crash. I'd say the risk of tile corruption is pretty low, however the error messages (another thread/process failed to create the tile ...) are to be regularly expected (namely each time you launch a seeder process when a lockfile created by a web-user request is present). I'd say your options are - to live with the small risk of tile corruption, and the fact that your users will be receiving transient error messages, as is the case today - to trivially patch mapcache to deactivate the lockfile deletion when launching a seeder. note that in that case this will end up in a deadlock if there where leftover lockfiles, and they would need to be manually deleted. - to sponsor the implementation of some kind of lockfile deadlock detection/recovery mechanism, either by checking that the lockfile creator is still alive, and/or that the lockfile creation date is more recent than a certain threshold. cheers, thomas On 18 February 2013 08:09, Matthew Doyle wrote: > Hi Thomas and MapCache users, > > Is there a way to raise the limit on the number of lockfiles which MapCache > uses by default? > > I am seeding a *lot* of layers twice a day, and when there are many parallel > processes at once, i get a steady stream of messages in my apache error_log > like: > > [Mon Feb 18 06:16:14 2013] [error] [client 134.178.63.147] found old > lockfile /tiletmp/scratch/_gc_lock3-4-26-ADFDWEATHER1820130218061203.lck, > deleting itfound old lockfile > /tiletmp/scratch/_gc_lock3-4-28-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-5-29-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-4-27-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-4-29-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-5-26-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-6-27-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock0-0-0-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock2-1-6-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock1-0-2-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-5-28-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-5-27-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-5-25-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock3-6-26-ADFDWEATHER1820130218061203.lck, deleting > itfound old lockfile > /tiletmp/scratch/_gc_lock2-1-7-ADFDWEATHER1820130218061203.lck, deleting it > > Subsequently, i also see a lot of messages like: > [Mon Feb 18 06:17:08 2013] [error] [client 134.178.63.167] tileset > ADFDWEATHER: unknown error (another thread/process failed to create the tile > I was waiting for), referer: http://www.bom.gov.au/australia/meteye/ > when a user tries to access a tile which is in the process of being seeded. > > Is this in any way related to a limit on the lockfiles? Is it possible to > avoid these errors, or are they false positives and something to ignore? > > Regards, > Matt > > From woodbri at swoodbridge.com Tue Feb 26 08:34:38 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 26 Feb 2013 11:34:38 -0500 Subject: [mapserver-users] Lock file limit on many concurrent seeding processes [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <512CE41E.1080008@swoodbridge.com> Hi Thomas, Does the seeder delete the lock files once on startup? If so then would it be safe to stop apache, start the seeder, then restart apache and allow the seeder and apache to generate tiles? Thanks, -Steve W On 2/26/2013 11:29 AM, thomas bonfort wrote: > Hi Matthew, > > Running the seeder in parallel to incoming user requests is definitely > something that wasn't planned for, and may potentially end up in > corrupted tiles being written to the caches. The heart of the problem > is that the seeder deletes the existing lockfiles at startup as it > expects it will be the only instance creating tiles; clearly this > isn't the case if there are other seeding instances running, or if > live web users are requesting tiles. The reason the locks are deleted > is to avoid a deadlock when old lockfiles are still present after e.g. > a server crash. > > I'd say the risk of tile corruption is pretty low, however the error > messages (another thread/process failed to create the tile ...) are to > be regularly expected (namely each time you launch a seeder process > when a lockfile created by a web-user request is present). I'd say > your options are > > - to live with the small risk of tile corruption, and the fact that > your users will be receiving transient error messages, as is the case > today > - to trivially patch mapcache to deactivate the lockfile deletion when > launching a seeder. note that in that case this will end up in a > deadlock if there where leftover lockfiles, and they would need to be > manually deleted. > - to sponsor the implementation of some kind of lockfile deadlock > detection/recovery mechanism, either by checking that the lockfile > creator is still alive, and/or that the lockfile creation date is more > recent than a certain threshold. > > cheers, > thomas > > On 18 February 2013 08:09, Matthew Doyle wrote: >> Hi Thomas and MapCache users, >> >> Is there a way to raise the limit on the number of lockfiles which MapCache >> uses by default? >> >> I am seeding a *lot* of layers twice a day, and when there are many parallel >> processes at once, i get a steady stream of messages in my apache error_log >> like: >> >> [Mon Feb 18 06:16:14 2013] [error] [client 134.178.63.147] found old >> lockfile /tiletmp/scratch/_gc_lock3-4-26-ADFDWEATHER1820130218061203.lck, >> deleting itfound old lockfile >> /tiletmp/scratch/_gc_lock3-4-28-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-5-29-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-4-27-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-4-29-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-5-26-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-6-27-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock0-0-0-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock2-1-6-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock1-0-2-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-5-28-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-5-27-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-5-25-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock3-6-26-ADFDWEATHER1820130218061203.lck, deleting >> itfound old lockfile >> /tiletmp/scratch/_gc_lock2-1-7-ADFDWEATHER1820130218061203.lck, deleting it >> >> Subsequently, i also see a lot of messages like: >> [Mon Feb 18 06:17:08 2013] [error] [client 134.178.63.167] tileset >> ADFDWEATHER: unknown error (another thread/process failed to create the tile >> I was waiting for), referer: http://www.bom.gov.au/australia/meteye/ >> when a user tries to access a tile which is in the process of being seeded. >> >> Is this in any way related to a limit on the lockfiles? Is it possible to >> avoid these errors, or are they false positives and something to ignore? >> >> Regards, >> Matt >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Tue Feb 26 08:57:50 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 26 Feb 2013 17:57:50 +0100 Subject: [mapserver-users] Lock file limit on many concurrent seeding processes [SEC=UNCLASSIFIED] In-Reply-To: <512CE41E.1080008@swoodbridge.com> References: <512CE41E.1080008@swoodbridge.com> Message-ID: Hi Steve, On 26 February 2013 17:34, Stephen Woodbridge wrote: > Hi Thomas, > > Does the seeder delete the lock files once on startup? > If so then would it be safe to stop apache, start the seeder, then restart > apache and allow the seeder and apache to generate tiles? Unfortunately no, as the apache instance also deletes existing lockfiles for the same reason. In practice this *would* however help a bit as the seeder is never supposed to lock on a lock it has created itself, however you might still end up with corruptions in the case where multiple seeding instances have been launched. Given Matthew's usecase, I also suspect that restarting apache is not an acceptable behavior. cheers, -- thomas > > Thanks, > -Steve W > > > On 2/26/2013 11:29 AM, thomas bonfort wrote: >> >> Hi Matthew, >> >> Running the seeder in parallel to incoming user requests is definitely >> something that wasn't planned for, and may potentially end up in >> corrupted tiles being written to the caches. The heart of the problem >> is that the seeder deletes the existing lockfiles at startup as it >> expects it will be the only instance creating tiles; clearly this >> isn't the case if there are other seeding instances running, or if >> live web users are requesting tiles. The reason the locks are deleted >> is to avoid a deadlock when old lockfiles are still present after e.g. >> a server crash. >> >> I'd say the risk of tile corruption is pretty low, however the error >> messages (another thread/process failed to create the tile ...) are to >> be regularly expected (namely each time you launch a seeder process >> when a lockfile created by a web-user request is present). I'd say >> your options are >> >> - to live with the small risk of tile corruption, and the fact that >> your users will be receiving transient error messages, as is the case >> today >> - to trivially patch mapcache to deactivate the lockfile deletion when >> launching a seeder. note that in that case this will end up in a >> deadlock if there where leftover lockfiles, and they would need to be >> manually deleted. >> - to sponsor the implementation of some kind of lockfile deadlock >> detection/recovery mechanism, either by checking that the lockfile >> creator is still alive, and/or that the lockfile creation date is more >> recent than a certain threshold. >> >> cheers, >> thomas >> >> On 18 February 2013 08:09, Matthew Doyle wrote: >>> >>> Hi Thomas and MapCache users, >>> >>> Is there a way to raise the limit on the number of lockfiles which >>> MapCache >>> uses by default? >>> >>> I am seeding a *lot* of layers twice a day, and when there are many >>> parallel >>> processes at once, i get a steady stream of messages in my apache >>> error_log >>> like: >>> >>> [Mon Feb 18 06:16:14 2013] [error] [client 134.178.63.147] found old >>> lockfile /tiletmp/scratch/_gc_lock3-4-26-ADFDWEATHER1820130218061203.lck, >>> deleting itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-4-28-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-5-29-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-4-27-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-4-29-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-5-26-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-6-27-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock0-0-0-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock2-1-6-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock1-0-2-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-5-28-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-5-27-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-5-25-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock3-6-26-ADFDWEATHER1820130218061203.lck, deleting >>> itfound old lockfile >>> /tiletmp/scratch/_gc_lock2-1-7-ADFDWEATHER1820130218061203.lck, deleting >>> it >>> >>> Subsequently, i also see a lot of messages like: >>> [Mon Feb 18 06:17:08 2013] [error] [client 134.178.63.167] tileset >>> ADFDWEATHER: unknown error (another thread/process failed to create the >>> tile >>> I was waiting for), referer: http://www.bom.gov.au/australia/meteye/ >>> when a user tries to access a tile which is in the process of being >>> seeded. >>> >>> Is this in any way related to a limit on the lockfiles? Is it possible to >>> avoid these errors, or are they false positives and something to ignore? >>> >>> Regards, >>> Matt >>> >>> >> _______________________________________________ >> 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 havard.tveite at umb.no Wed Feb 27 00:21:53 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Wed, 27 Feb 2013 09:21:53 +0100 Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: References: <1361835388782-5036813.post@n6.nabble.com> <512C6BB5.7090101@umb.no> Message-ID: <512DC221.6030809@umb.no> Creating vector symbols: Unless you have a formulae, you will have to measure. In 6.2, precise placement of symbols is easy using SYMBOL ANCHORPOINT. It is therefore possible to split a complex symbol into more manageable parts (for instance some parts using lines and some parts using polygons), and then combine them using STYLEs. H?vard On 2/26/2013 10:21 AM, Gery wrote: > Hello H?vard, > > Thanks for your answer, I tested yesterday in my 5.6 version and it also works well, the problem is that after changing the values during many hours I couldn't set properly the right value to get that "opened v", so I think just doing random changes here and there won't help me to draw well this figure. I was thinking about some tips to draw this image, I think first I should take a piece of paper and draw this image and then take the measurements from it, is this the right, easy way to do it? those values in v-poly were calculated in this way? > > Gery > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > Date: Tue, 26 Feb 2013 00:07:25 -0800 > From: [hidden email] > To: [hidden email] > Subject: Re: tips to draw a symbol? > > Dear Gary, > > The v-poly symbol should be OK (I just tested it with > 6.2 and 5.6.6). If you want an open V, you should > use only outlinecolor: > > STYLE > SYMBOL "v-poly" > SIZE 30 > OUTLINECOLOR 0 255 0 > END # STYLE > > H?vard > > On 2/26/2013 12:36 AM, Gery wrote: > > > Hello folks, > > > > I've been trying to draw the attached image but with no luck, I've used > > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > > couldn't get the opened "v" effect, could anyone please provide some tips to > > draw such image? I'll appreciate it, thanks in advance. > > > > Regards, > > > > Gery > > > > > > > > -- > > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036860.html > To unsubscribe from tips to draw a symbol?, click here. > NAML > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > View this message in context: RE: tips to draw a symbol? > 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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From gamejihou at hotmail.com Wed Feb 27 01:44:28 2013 From: gamejihou at hotmail.com (Gery) Date: Wed, 27 Feb 2013 01:44:28 -0800 (PST) Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: <512DC221.6030809@umb.no> References: <1361835388782-5036813.post@n6.nabble.com> <512C6BB5.7090101@umb.no> <512DC221.6030809@umb.no> Message-ID: Thanks again H?vard, and the SYMBOL ANCHORPOINT is not present in version 5.6, right? splitting and then combining as you suggest is the solution for me. How about measuring? is there any tip? imagine I have a simple notebook with graph paper, I draw (or print) there the image I want to reproduce in mapserver and then measure it in centimeters? milimeters? __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist. Date: Wed, 27 Feb 2013 00:22:19 -0800 From: ml-node+s1560n5037177h13 at n6.nabble.com To: gamejihou at hotmail.com Subject: Re: tips to draw a symbol? Creating vector symbols: Unless you have a formulae, you will have to measure. In 6.2, precise placement of symbols is easy using SYMBOL ANCHORPOINT. It is therefore possible to split a complex symbol into more manageable parts (for instance some parts using lines and some parts using polygons), and then combine them using STYLEs. H?vard On 2/26/2013 10:21 AM, Gery wrote: > Hello H?vard, > > Thanks for your answer, I tested yesterday in my 5.6 version and it also works well, the problem is that after changing the values during many hours I couldn't set properly the right value to get that "opened v", so I think just doing random changes here and there won't help me to draw well this figure. I was thinking about some tips to draw this image, I think first I should take a piece of paper and draw this image and then take the measurements from it, is this the right, easy way to do it? those values in v-poly were calculated in this way? > > Gery > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > Date: Tue, 26 Feb 2013 00:07:25 -0800 > From: [hidden email] > To: [hidden email] > Subject: Re: tips to draw a symbol? > > Dear Gary, > > The v-poly symbol should be OK (I just tested it with > 6.2 and 5.6.6). If you want an open V, you should > use only outlinecolor: > > STYLE > SYMBOL "v-poly" > SIZE 30 > OUTLINECOLOR 0 255 0 > END # STYLE > > H?vard > > On 2/26/2013 12:36 AM, Gery wrote: > > > Hello folks, > > > > I've been trying to draw the attached image but with no luck, I've used > > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > > couldn't get the opened "v" effect, could anyone please provide some tips to > > draw such image? I'll appreciate it, thanks in advance. > > > > Regards, > > > > Gery > > > > > > > > -- > > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036860.html > To unsubscribe from tips to draw a symbol?, click here. > NAML > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > View this message in context: RE: tips to draw a symbol? > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037177.html To unsubscribe from tips to draw a symbol?, click here. NAML -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037202.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Doyle at bom.gov.au Wed Feb 27 21:37:37 2013 From: M.Doyle at bom.gov.au (Matthew Doyle) Date: Wed, 27 Feb 2013 21:37:37 -0800 (PST) Subject: [mapserver-users] Lock file limit on many concurrent seeding processes [SEC=UNCLASSIFIED] In-Reply-To: References: <512CE41E.1080008@swoodbridge.com> Message-ID: <1362029857923-5037422.post@n6.nabble.com> Hi Thomas, Thanks for the response & explanation. Makes sense. thomas bonfort wrote > Given Matthew's usecase, I also suspect that restarting apache is not > an acceptable behavior. You'd be right. At certain times of the day, depending on data arrival, we could be running > 1 concurrent seeding processes, and also allowing live users to seed any tiles on the fly. For the most part, it works (although it pollutes the logs a fair bit). Sometimes it doesn't work, but the worst case scenario here is that the next attempt to load that tile, it will get created and served to the live user. For now, we are happy to live with option 1 - live with the risk of tile corruptions and/or missed tiles. We have configured OpenLayers IMAGE_RELOAD_ATTEMPTS to re-request up to three times, if a request for a tile fails, so the chance of the user seeing dead tiles is greatly reduced. Regards, Matt -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Lock-file-limit-on-many-concurrent-seeding-processes-SEC-UNCLASSIFIED-tp5034835p5037422.html Sent from the Mapserver - User mailing list archive at Nabble.com. From havard.tveite at umb.no Thu Feb 28 00:20:24 2013 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 28 Feb 2013 09:20:24 +0100 Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: References: <1361835388782-5036813.post@n6.nabble.com> <512C6BB5.7090101@umb.no> <512DC221.6030809@umb.no> Message-ID: <512F1348.1030704@umb.no> ANCHORPOINT was introduced in 6.2. Mapserver does not care about the units of measure, so you can use what is most convenient for you. Instead of measuring manually, you could digitize with your favourite digitizing software and extract the numbers from the resulting digital representation. H?vard On 2/27/2013 10:44 AM, Gery wrote: > Thanks again H?vard, and the SYMBOL ANCHORPOINT is not present in version 5.6, right? splitting and then combining as you suggest is the solution for me. How about measuring? is there any tip? imagine I have a simple notebook with graph paper, I draw (or print) there the image I want to reproduce in mapserver and then measure it in centimeters? milimeters? > > __________________________________________________________________________________________ > Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. > Think green - keep it on the screen. Do NOT print if it is NOT necessary. > Denken Sie an die Umwelt- bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > Date: Wed, 27 Feb 2013 00:22:19 -0800 > From: [hidden email] > To: [hidden email] > Subject: Re: tips to draw a symbol? > > Creating vector symbols: > Unless you have a formulae, you will have to measure. > > In 6.2, precise placement of symbols is easy using SYMBOL > ANCHORPOINT. It is therefore possible to split a complex > symbol into more manageable parts (for instance some parts > using lines and some parts using polygons), and then combine > them using STYLEs. > > H?vard > > On 2/26/2013 10:21 AM, Gery wrote: > > Hello H?vard, > > > > Thanks for your answer, I tested yesterday in my 5.6 version and it also works well, the problem is that after changing the values during many hours I couldn't set properly the right value to get that "opened v", so I think just doing random changes here and there won't help me to draw well this figure. I was thinking about some tips to draw this image, I think first I should take a piece of paper and draw this image and then take the measurements from it, is this the right, easy way to do it? those values in v-poly were calculated in this way? > > > > Gery > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > > Date: Tue, 26 Feb 2013 00:07:25 -0800 > > From: [hidden email] > > To: [hidden email] > > Subject: Re: tips to draw a symbol? > > > > Dear Gary, > > > > The v-poly symbol should be OK (I just tested it with > > 6.2 and 5.6.6). If you want an open V, you should > > use only outlinecolor: > > > > STYLE > > SYMBOL "v-poly" > > SIZE 30 > > OUTLINECOLOR 0 255 0 > > END # STYLE > > > > H?vard > > > > On 2/26/2013 12:36 AM, Gery wrote: > > > > > Hello folks, > > > > > > I've been trying to draw the attached image but with no luck, I've used > > > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > > > couldn't get the opened "v" effect, could anyone please provide some tips to > > > draw such image? I'll appreciate it, thanks in advance. > > > > > > Regards, > > > > > > Gery > > > > > > > > > > > > -- > > > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > _______________________________________________ > > > mapserver-users mailing list > > > [hidden email] > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > > H?vard Tveite > > Department of Mathematical Sciences and Technology, UMB > > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > If you reply to this email, your message will be added to the discussion below: > > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036860.html > > To unsubscribe from tips to draw a symbol?, click here. > > NAML > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > View this message in context: RE: tips to draw a symbol? > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037177.html > To unsubscribe from tips to draw a symbol?, click here. > NAML > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > View this message in context: RE: tips to draw a symbol? > 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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From gamejihou at hotmail.com Thu Feb 28 01:09:52 2013 From: gamejihou at hotmail.com (Gery) Date: Thu, 28 Feb 2013 01:09:52 -0800 (PST) Subject: [mapserver-users] =?utf-8?q?tips_to_draw_a_symbol=E2=80=8F?= In-Reply-To: <512F1348.1030704@umb.no> References: <1361835388782-5036813.post@n6.nabble.com> <512C6BB5.7090101@umb.no> <512DC221.6030809@umb.no> <512F1348.1030704@umb.no> Message-ID: thanks for the tip!, I'll try that __________________________________________________________________________________________ Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. Think green - keep it on the screen. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist. Date: Thu, 28 Feb 2013 00:20:48 -0800 From: ml-node+s1560n5037440h66 at n6.nabble.com To: gamejihou at hotmail.com Subject: Re: tips to draw a symbol? ANCHORPOINT was introduced in 6.2. Mapserver does not care about the units of measure, so you can use what is most convenient for you. Instead of measuring manually, you could digitize with your favourite digitizing software and extract the numbers from the resulting digital representation. H?vard On 2/27/2013 10:44 AM, Gery wrote: > Thanks again H?vard, and the SYMBOL ANCHORPOINT is not present in version 5.6, right? splitting and then combining as you suggest is the solution for me. How about measuring? is there any tip? imagine I have a simple notebook with graph paper, I draw (or print) there the image I want to reproduce in mapserver and then measure it in centimeters? milimeters? > > __________________________________________________________________________________________ > Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario. > Think green - keep it on the screen. Do NOT print if it is NOT necessary. > Denken Sie an die Umwelt- bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > Date: Wed, 27 Feb 2013 00:22:19 -0800 > From: [hidden email] > To: [hidden email] > Subject: Re: tips to draw a symbol? > > Creating vector symbols: > Unless you have a formulae, you will have to measure. > > In 6.2, precise placement of symbols is easy using SYMBOL > ANCHORPOINT. It is therefore possible to split a complex > symbol into more manageable parts (for instance some parts > using lines and some parts using polygons), and then combine > them using STYLEs. > > H?vard > > On 2/26/2013 10:21 AM, Gery wrote: > > Hello H?vard, > > > > Thanks for your answer, I tested yesterday in my 5.6 version and it also works well, the problem is that after changing the values during many hours I couldn't set properly the right value to get that "opened v", so I think just doing random changes here and there won't help me to draw well this figure. I was thinking about some tips to draw this image, I think first I should take a piece of paper and draw this image and then take the measurements from it, is this the right, easy way to do it? those values in v-poly were calculated in this way? > > > > Gery > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > > Date: Tue, 26 Feb 2013 00:07:25 -0800 > > From: [hidden email] > > To: [hidden email] > > Subject: Re: tips to draw a symbol? > > > > Dear Gary, > > > > The v-poly symbol should be OK (I just tested it with > > 6.2 and 5.6.6). If you want an open V, you should > > use only outlinecolor: > > > > STYLE > > SYMBOL "v-poly" > > SIZE 30 > > OUTLINECOLOR 0 255 0 > > END # STYLE > > > > H?vard > > > > On 2/26/2013 12:36 AM, Gery wrote: > > > > > Hello folks, > > > > > > I've been trying to draw the attached image but with no luck, I've used > > > "v-poly" from http://mapserver.org/mapfile/symbology/construction.html but > > > couldn't get the opened "v" effect, could anyone please provide some tips to > > > draw such image? I'll appreciate it, thanks in advance. > > > > > > Regards, > > > > > > Gery > > > > > > > > > > > > -- > > > View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > _______________________________________________ > > > mapserver-users mailing list > > > [hidden email] > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > > H?vard Tveite > > Department of Mathematical Sciences and Technology, UMB > > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > If you reply to this email, your message will be added to the discussion below: > > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5036860.html > > To unsubscribe from tips to draw a symbol?, click here. > > NAML > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --- > -- > > View this message in context: RE: tips to draw a symbol? > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > If you reply to this email, your message will be added to the discussion below: > http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037177.html > To unsubscribe from tips to draw a symbol?, click here. > NAML > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- > View this message in context: RE: tips to draw a symbol? > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037440.html To unsubscribe from tips to draw a symbol?, click here. NAML -- View this message in context: http://osgeo-org.1560.n6.nabble.com/tips-to-draw-a-symbol-tp5036813p5037452.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Thu Feb 28 11:14:29 2013 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Thu, 28 Feb 2013 19:14:29 +0000 (GMT) Subject: [mapserver-users] First attempt on Maserver Message-ID: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> Hello everyone! I'm quite new to mapserver and I'm experimenting with the 2 first examples of Kropla's book... the first one, that is supposed to produce just an image... I click on "Click me" button and the message I get is: ? Not Found The requested URL /cgi-bin/mapserv was not found on this server I don't get it.. according to the instructions cp mapserv /var/www/cgi-bin Why isn't it working?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at cadservicesinc.com Thu Feb 28 12:05:16 2013 From: jim at cadservicesinc.com (James Ryder) Date: Thu, 28 Feb 2013 12:05:16 -0800 (PST) Subject: [mapserver-users] First attempt on Maserver In-Reply-To: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> References: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> Message-ID: <1362081916201-5037580.post@n6.nabble.com> Stefanos... You're in good company, I'm very new to mapserver as well. I don't have Kropla's book but I have started the tutorials at http://www.mapserver.org/tutorial/index.html. I did have a little difficulty at first getting the example to display (using Windows 7) but finally figured it out. I have also been able to get my own map base to display as well, also with a little troubleshooting. Anyway, you might want to check it out. Jim -- View this message in context: http://osgeo-org.1560.n6.nabble.com/First-attempt-on-Maserver-tp5037569p5037580.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Feb 28 12:06:25 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Feb 2013 15:06:25 -0500 Subject: [mapserver-users] First attempt on Maserver In-Reply-To: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> References: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> Message-ID: <512FB8C1.8000803@swoodbridge.com> On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote: > Hello everyone! > > I'm quite new to mapserver and I'm experimenting with the 2 first > examples of Kropla's book... the first one, that is supposed to produce > just an image... I click on "Click me" button and the message I get is: > > Not Found > > The requested URL /cgi-bin/mapserv was not found on this server > > I don't get it.. according to the instructions cp mapserv /var/www/cgi-bin > > Why isn't it working? OK, there are a bunch of assumptions in the above: cp mapserv /var/www/cgi-bin assumes the apache or your webserver is configured to look for cgi-bin files in this directory assumes that the directory already exists. what does these report: file /var/www/cgi-bin ls -l /var/www/cgi-bin/mapserv /var/www/cgi-bin/mapserv -v If the above looks ok, then you probably need to look at the apache config. If you changed the apache config as part of your install, have you restarted apache: sudo /etc/init.d/apache2 restart or sudo /etc/init.d/apache restart -Steve W