From o.bedel at alkante.com Tue Sep 1 01:25:04 2009 From: o.bedel at alkante.com (Olivier Bedel) Date: Tue, 01 Sep 2009 10:25:04 +0200 Subject: [mapserver-users] CGI Controls - queryfile and pattern validationproblem In-Reply-To: <4A965877.5157.008F.0@dnr.state.mn.us> References: <4A9663F7.2070807@alkante.com> <4A965877.5157.008F.0@dnr.state.mn.us> Message-ID: <4A9CDA60.5000701@alkante.com> It works ! Thanks a lot. Olivier Steve Lime wrote: > Query files *must* have the extension .qy. There is no workaround other than to rename > the file. > > Steve > > >>>> On 8/27/2009 at 5:46 AM, in message <4A9663F7.2070807 at alkante.com>, Olivier >>>> > Bedel wrote: > >> Hello list, >> >> I am trying to call mapserv in CGI using NQUERYMAP mode. I would like to use >> the queryfile parameter but I have difficulties setting the validation >> pattern on it. My URL call looks like this : >> >> http://localhost/cgi-bin/mapserv? >> map=test_postgis.map& >> LAYERS=layer86& >> map_imagetype=png& >> map_transparent=TRUE& >> map_resolution=96& >> mapext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316 >> 24997& >> imgext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316 >> 24997& >> map_size=2464+714& >> imgx=1232&imgy=357& >> imgxy=2464+714& >> mode=nquerymap& >> queryfile=myquery.msv >> >> And mapserv always complains with the following error : >> >> msEvalRegex(): Regular expression error. String (myquery.msv) failed >> expression test. >> >> I've tried setting validation patterns in the MAP/WEB/METADATA section of >> the mapfile : >> >> "TEMPLATEPATTERN" ".*" >> "qstring_validation_pattern" ".*" >> "queryfile_validation_pattern" ".*" >> >> But none of these patterns resolve the problem... >> >> Can anyone tell me if CGI queryfile parameter is still supported or if i do >> something wrong with my patterns ? >> >> I am using mapserver 5.4.1 >> >> Best regards, >> >> Olivier. >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- Olivier BEDEL ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 From Steve.Lime at dnr.state.mn.us Tue Sep 1 08:32:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 01 Sep 2009 10:32:56 -0500 Subject: [mapserver-users] Re: annotations in mapserver 5.4 In-Reply-To: <49dc012b0908312242h79cac72an73bbd1944dc8d42@mail.gmail.com> References: <49dc012b0908032312g75b51371xd08158b46f4b574f@mail.gmail.com> <49dc012b0908310323j7868aed2gea5cf8528a23e0f@mail.gmail.com> <4A9BCD2E.5157.008F.0@dnr.state.mn.us> <49dc012b0908312242h79cac72an73bbd1944dc8d42@mail.gmail.com> Message-ID: <4A9CF858.5157.008F.0@dnr.state.mn.us> Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so:
Map extent: [mapext]
Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8d42 at mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 6360000 754000 6660000" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 1333333 #1000000 > MINSCALE 400000 #300000 > STYLE > SYMBOL "punsoon3" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 400000 #300000 > MINSCALE 200000 #150000 > STYLE > SYMBOL "punsoon4" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 200000 #150000 > MINSCALE 66666 #50000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 66666 #50000 > MINSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > END > > But problem still remains, even if I changed layer definition to > one-class only and with the scales defined in LAYER, not CLASS > section. > > > Raivo > > On Mon, Aug 31, 2009 at 9:16 PM, Steve Lime wrote: >> If you get rid of the class min/max scales do the problems go away? What if > you put those constraints >> at the layer level (with only one class that should work). Also, the layer > defn is confusing since it doesn't >> hint at a marker yet the images missing labels definitely do have a marker > accompanying the text. >> >> Steve >> >>>>> On 8/31/2009 at 5:23 AM, in message >> <49dc012b0908310323j7868aed2gea5cf8528a23e0f at mail.gmail.com>, Raivo Alla >> wrote: >>> This is a bit old problem (still got that bug), but I found that I >>> typed the second link not right, the right link to >>> the problematic output is that: >>> http://picasaweb.google.com/snaperski/Ort#5365984697960162578 >>> I assume this is some 5.4 version bug? >>> >>> Sincerely, >>> Raivo >>> >>> On Tue, Aug 4, 2009 at 9:12 AM, Raivo Alla wrote: >>>> Hey, >>>> >>>> I got some weird behavior while trying to display labels with mapserver 5.4. >>>> With mapserver 5.0.3 these labels show up nicely: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> But with mapserver 5.4, these layers are shown at scale about >>>> 350000-200000, but they will disappear at higher scales, so nothing >>>> can be seen: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> This could'nt be collision conflict either as they have enough space to fit >>> in. >>>> Is something changed in the way mapserver treats annotations elements? >>>> >>>> Data source is a polygon shapefile: I hope that (polygon type) is not >>>> the problem? >>>> The layer itself in the mapfile: >>>> >>>> LAYER >>>> NAME alevikAnno_1 >>>> GROUP HYBRID >>>> METADATA >>>> "wms_title" "alevikAnno" >>>> "wms_srs" "EPSG:3301" >>>> "wms_extent" "355000 6360000 754000 6660000" >>>> END >>>> STATUS default >>>> TYPE annotation >>>> DATA "kohanimed/alevikud_1" >>>> LABELITEM "TEXTSTRING" >>>> CLASS >>>> MAXSCALE 1333333 >>>> MINSCALE 200000 >>>> LABEL >>>> TYPE truetype >>>> ANTIALIAS true >>>> FONT "arial" >>>> COLOR 255 255 255 >>>> SIZE 9 >>>> priority 6 >>>> force false >>>> ANGLE auto >>>> OUTLINECOLOR 25 25 25 >>>> POSITION cr >>>> BUFFER 1 >>>> END >>>> END >>>> END >>>> >>>> >>>> >>>> Raivo Alla >>>> Estonian Land Board >>>> >>> _______________________________________________ >>> 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 songerl at lanecc.edu Tue Sep 1 08:45:14 2009 From: songerl at lanecc.edu (Lynn Songer) Date: Tue, 01 Sep 2009 08:45:14 -0700 Subject: [mapserver-users] Module links Message-ID: <4A9CDF1A020000A90003C0F3@mailhost.lanecc.edu> I am writing an article to discuss the use of geospatial technologies ineducation. I have used ArcIMS extensively and want to discuss MapServer aswell. However, my expertise in programming and setting up server applicationsis pretty limited. Actually FORTRAN 97 in 1998!. So I find myself in over myhead trying to compare the functionality and ease of use of ArcIMS andMapServer. Additionally I am trying to find some examples of MapServer toexplore. I was hoping you could direct me to a few sites running MapServer and perhapsput me in touch with someone I could talk with about MapServer. Respectfully Lynn Songer >>> "Steve Lime" 09/01/09 8:42 AM >>> Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so: Map extent: [mapext] Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8d42 at mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 6360000 754000 6660000" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 1333333 #1000000 > MINSCALE 400000 #300000 > STYLE > SYMBOL "punsoon3" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 400000 #300000 > MINSCALE 200000 #150000 > STYLE > SYMBOL "punsoon4" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 200000 #150000 > MINSCALE 66666 #50000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 66666 #50000 > MINSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > END > > But problem still remains, even if I changed layer definition to > one-class only and with the scales defined in LAYER, not CLASS > section. > > > Raivo > > On Mon, Aug 31, 2009 at 9:16 PM, Steve Lime wrote: >> If you get rid of the class min/max scales do the problems go away? What if > you put those constraints >> at the layer level (with only one class that should work). Also, the layer > defn is confusing since it doesn't >> hint at a marker yet the images missing labels definitely do have a marker > accompanying the text. >> >> Steve >> >>>>> On 8/31/2009 at 5:23 AM, in message >> <49dc012b0908310323j7868aed2gea5cf8528a23e0f at mail.gmail.com>, Raivo Alla >> wrote: >>> This is a bit old problem (still got that bug), but I found that I >>> typed the second link not right, the right link to >>> the problematic output is that: >>> http://picasaweb.google.com/snaperski/Ort#5365984697960162578 >>> I assume this is some 5.4 version bug? >>> >>> Sincerely, >>> Raivo >>> >>> On Tue, Aug 4, 2009 at 9:12 AM, Raivo Alla wrote: >>>> Hey, >>>> >>>> I got some weird behavior while trying to display labels with mapserver 5.4. >>>> With mapserver 5.0.3 these labels show up nicely: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> But with mapserver 5.4, these layers are shown at scale about >>>> 350000-200000, but they will disappear at higher scales, so nothing >>>> can be seen: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> This could'nt be collision conflict either as they have enough space to fit >>> in. >>>> Is something changed in the way mapserver treats annotations elements? >>>> >>>> Data source is a polygon shapefile: I hope that (polygon type) is not >>>> the problem? >>>> The layer itself in the mapfile: >>>> >>>> LAYER >>>> NAME alevikAnno_1 >>>> GROUP HYBRID >>>> METADATA >>>> "wms_title" "alevikAnno" >>>> "wms_srs" "EPSG:3301" >>>> "wms_extent" "355000 6360000 754000 6660000" >>>> END >>>> STATUS default >>>> TYPE annotation >>>> DATA "kohanimed/alevikud_1" >>>> LABELITEM "TEXTSTRING" >>>> CLASS >>>> MAXSCALE 1333333 >>>> MINSCALE 200000 >>>> LABEL >>>> TYPE truetype >>>> ANTIALIAS true >>>> FONT "arial" >>>> COLOR 255 255 255 >>>> SIZE 9 >>>> priority 6 >>>> force false >>>> ANGLE auto >>>> OUTLINECOLOR 25 25 25 >>>> POSITION cr >>>> BUFFER 1 >>>> END >>>> END >>>> END >>>> >>>> >>>> >>>> Raivo Alla >>>> Estonian Land Board >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users !SIG:4a9d40bd134011336520108! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Tue Sep 1 09:20:35 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 01 Sep 2009 11:20:35 -0500 Subject: [mapserver-users] Module links In-Reply-To: <4A9CDF1A020000A90003C0F3@mailhost.lanecc.edu> References: <4A9CDF1A020000A90003C0F3@mailhost.lanecc.edu> Message-ID: <4A9D0382.163B.00A8.0@ci.stpaul.mn.us> Lynn, There are a couple of mode of operation for MapServer that are available. You can communicate directly with it via a CGI request, or it can be scripted via MapScript, which has many binding flavors. We use the CGI mechanism quite extensively in our own service work as well as GeoMoose, a Javascript client framework which accesses MapServer CGI amoung other things. Maybe we can help with some of you questions. bobb >>> "Lynn Songer" wrote: I am writing an article to discuss the use of geospatial technologies in education. I have used ArcIMS extensively and want to discuss MapServer as well. However, my expertise in programming and setting up server applications is pretty limited. Actually FORTRAN 97 in 1998!. So I find myself in over my head trying to compare the functionality and ease of use of ArcIMS and MapServer. Additionally I am trying to find some examples of MapServer to explore. I was hoping you could direct me to a few sites running MapServer and perhaps put me in touch with someone I could talk with about MapServer. Respectfully Lynn Songer >>> "Steve Lime" 09/01/09 8:42 AM >>> Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so:
Map extent: [mapext]
Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8d42 at mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 6360000 754000 6660000" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 1333333 #1000000 > MINSCALE 400000 #300000 > STYLE > SYMBOL "punsoon3" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 400000 #300000 > MINSCALE 200000 #150000 > STYLE > SYMBOL "punsoon4" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 200000 #150000 > MINSCALE 66666 #50000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 66666 #50000 > MINSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 20000 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > END > > But problem still remains, even if I changed layer definition to > one-class only and with the scales defined in LAYER, not CLASS > section. > > > Raivo > > On Mon, Aug 31, 2009 at 9:16 PM, Steve Lime wrote: >> If you get rid of the class min/max scales do the problems go away? What if > you put those constraints >> at the layer level (with only one class that should work). Also, the layer > defn is confusing since it doesn't >> hint at a marker yet the images missing labels definitely do have a marker > accompanying the text. >> >> Steve >> >>>>> On 8/31/2009 at 5:23 AM, in message >> <49dc012b0908310323j7868aed2gea5cf8528a23e0f at mail.gmail.com>, Raivo Alla >> wrote: >>> This is a bit old problem (still got that bug), but I found that I >>> typed the second link not right, the right link to >>> the problematic output is that: >>> http://picasaweb.google.com/snaperski/Ort#5365984697960162578 >>> I assume this is some 5.4 version bug? >>> >>> Sincerely, >>> Raivo >>> >>> On Tue, Aug 4, 2009 at 9:12 AM, Raivo Alla wrote: >>>> Hey, >>>> >>>> I got some weird behavior while trying to display labels with mapserver 5.4. >>>> With mapserver 5.0.3 these labels show up nicely: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> But with mapserver 5.4, these layers are shown at scale about >>>> 350000-200000, but they will disappear at higher scales, so nothing >>>> can be seen: >>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>> This could'nt be collision conflict either as they have enough space to fit >>> in. >>>> Is something changed in the way mapserver treats annotations elements? >>>> >>>> Data source is a polygon shapefile: I hope that (polygon type) is not >>>> the problem? >>>> The layer itself in the mapfile: >>>> >>>> LAYER >>>> NAME alevikAnno_1 >>>> GROUP HYBRID >>>> METADATA >>>> "wms_title" "alevikAnno" >>>> "wms_srs" "EPSG:3301" >>>> "wms_extent" "355000 6360000 754000 6660000" >>>> END >>>> STATUS default >>>> TYPE annotation >>>> DATA "kohanimed/alevikud_1" >>>> LABELITEM "TEXTSTRING" >>>> CLASS >>>> MAXSCALE 1333333 >>>> MINSCALE 200000 >>>> LABEL >>>> TYPE truetype >>>> ANTIALIAS true >>>> FONT "arial" >>>> COLOR 255 255 255 >>>> SIZE 9 >>>> priority 6 >>>> force false >>>> ANGLE auto >>>> OUTLINECOLOR 25 25 25 >>>> POSITION cr >>>> BUFFER 1 >>>> END >>>> END >>>> END >>>> >>>> >>>> >>>> Raivo Alla >>>> Estonian Land Board >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users !SIG:4a9d40bd134011336520108! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cak at speedgauge.net Tue Sep 1 09:57:46 2009 From: cak at speedgauge.net (Chris Kantarjiev) Date: Tue, 01 Sep 2009 09:57:46 -0700 Subject: [mapserver-users] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial? Message-ID: <4A9D528A.9040007@speedgauge.net> I've figured out my issues through trial and error (and mode=map). I'm now wondering if there's an easy way to get the scale legend to display the SCALEDENOM directly, rather than having to guess and/or convert units? That would be really useful. Thanks, chris From Bob.Basques at ci.stpaul.mn.us Tue Sep 1 10:37:22 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 01 Sep 2009 12:37:22 -0500 Subject: [mapserver-users] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial? In-Reply-To: <4A9D528A.9040007@speedgauge.net> References: <4A9D528A.9040007@speedgauge.net> Message-ID: <4A9D1581.163B.00A8.0@ci.stpaul.mn.us> I'm not sure that there is something built in for MapServer for this, but I do know that we built this capability into GeoMoose, which takes the pixel sizes into account and does the scaling on the fly at the client for any view size. Just click in the Scale window at the bottom right of this interface to see what I mean. You can type in a scale or use one of the predefined ones in the list. http://gis.ci.stpaul.mn.us/gis/gismo_public/html/ This got us out of a lot of those what scale is this questions. Doesn't really help with your question directly about making a scale, but it helps with figuring out what scale a view is at. We do work harder on the scale display in the printing tool though (which now that I look, is not included in the external viewer list for some reason) Anyway, might help with how you arrive at your scale computations. The conversion code is in one of the javascript includes. bobb >>> Chris Kantarjiev wrote: I've figured out my issues through trial and error (and mode=map). I'm now wondering if there's an easy way to get the scale legend to display the SCALEDENOM directly, rather than having to guess and/or convert units? That would be really useful. Thanks, chris _______________________________________________ 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 cak at speedgauge.net Tue Sep 1 10:49:17 2009 From: cak at speedgauge.net (Chris Kantarjiev) Date: Tue, 01 Sep 2009 10:49:17 -0700 Subject: [mapserver-users] query mode, multiple selections Message-ID: <4A9D5E9D.9000701@speedgauge.net> I'm just starting to play with query mode and find it very useful. I have an interaction style in mind that would let me select and highlight several (possibly connected) links in a layer in a fairly interactive style (more like one would do with ArcGIS, I guess). I'm pretty sure that I won't be successful doing this with the basic CGI, and am overwhelmed by the number of Ajax layers that I might choose from. Are there documents/pages out there that might give me some guidance about what's possible with the various packages? Thanks, chris From Steve.Lime at dnr.state.mn.us Tue Sep 1 14:09:04 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 01 Sep 2009 16:09:04 -0500 Subject: [mapserver-users] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial? In-Reply-To: <4A9D528A.9040007@speedgauge.net> References: <4A9D528A.9040007@speedgauge.net> Message-ID: <4A9D4720.5157.008F.0@dnr.state.mn.us> I posted an idea to use mode=browse in another thread today (9/1)... Check that out. Steve >>> On 9/1/2009 at 11:57 AM, in message <4A9D528A.9040007 at speedgauge.net>, Chris Kantarjiev wrote: > I've figured out my issues through trial and error (and mode=map). I'm > now wondering if there's an easy way to get the scale legend to display > the SCALEDENOM directly, rather than having to guess and/or convert > units? That would be really useful. > > Thanks, > chris > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Sep 1 14:16:39 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 01 Sep 2009 16:16:39 -0500 Subject: [mapserver-users] query mode, multiple selections In-Reply-To: <4A9D5E9D.9000701@speedgauge.net> References: <4A9D5E9D.9000701@speedgauge.net> Message-ID: <4A9D48E7.5157.008F.0@dnr.state.mn.us> You'd be surprised with what you can do with the CGI backend. It's certainly possible, with the right web client (e.g. something like GeoMoose or OpenLayers) to craft queries against the CGI to select one or many features from one or many layers using a point, box or arbitrary geometry. Perhaps if you could sketch out a use case or two... Steve >>> On 9/1/2009 at 12:49 PM, in message <4A9D5E9D.9000701 at speedgauge.net>, Chris Kantarjiev wrote: > I'm just starting to play with query mode and find it very useful. I have an > interaction style in > mind that would let me select and highlight several (possibly connected) > links in a layer in a > fairly interactive style (more like one would do with ArcGIS, I guess). I'm > pretty sure that I won't > be successful doing this with the basic CGI, and am overwhelmed by the > number of Ajax layers that I > might choose from. > > Are there documents/pages out there that might give me some guidance about > what's possible with the > various packages? > > Thanks, > chris > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cak at speedgauge.net Tue Sep 1 15:03:12 2009 From: cak at speedgauge.net (Chris Kantarjiev) Date: Tue, 01 Sep 2009 15:03:12 -0700 Subject: [mapserver-users] query mode, multiple selections In-Reply-To: <4A9D48E7.5157.008F.0@dnr.state.mn.us> References: <4A9D5E9D.9000701@speedgauge.net> <4A9D48E7.5157.008F.0@dnr.state.mn.us> Message-ID: <4A9D9A20.7040000@speedgauge.net> Sure. The basic use case is: User navigates to a particular, known, lat/lon as starting point; this can be by entering the known lat/lon values, or by navigation around cities. User then selects one or more links and can inspect attributes associated with those links - in particular, link_id and direction. Initial selection could be by sweeping out an area, but should also provide a way of adding/removing specific links from the selection (control-select). Did that makes sense? chris Steve Lime wrote: > You'd be surprised with what you can do with the CGI backend. It's certainly possible, with the right > web client (e.g. something like GeoMoose or OpenLayers) to craft queries against the CGI to select > one or many features from one or many layers using a point, box or arbitrary geometry. Perhaps if > you could sketch out a use case or two... > > Steve > >>>> On 9/1/2009 at 12:49 PM, in message <4A9D5E9D.9000701 at speedgauge.net>, Chris > Kantarjiev wrote: >> I'm just starting to play with query mode and find it very useful. I have an >> interaction style in >> mind that would let me select and highlight several (possibly connected) >> links in a layer in a >> fairly interactive style (more like one would do with ArcGIS, I guess). I'm >> pretty sure that I won't >> be successful doing this with the basic CGI, and am overwhelmed by the >> number of Ajax layers that I >> might choose from. >> >> Are there documents/pages out there that might give me some guidance about >> what's possible with the >> various packages? >> >> Thanks, >> chris >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mikesaunt at gmail.com Tue Sep 1 15:20:47 2009 From: mikesaunt at gmail.com (Mike Saunt) Date: Tue, 1 Sep 2009 23:20:47 +0100 Subject: [mapserver-users] query mode, multiple selections In-Reply-To: <4A9D9A20.7040000@speedgauge.net> References: <4A9D5E9D.9000701@speedgauge.net> <4A9D48E7.5157.008F.0@dnr.state.mn.us> <4A9D9A20.7040000@speedgauge.net> Message-ID: <5a9686e80909011520q106f3a7dpdc2238f50aedfd01@mail.gmail.com> Hi We use the back end CGI extensively and it is extremely fast. It is simply a case of being able to define what type of constraint you want against each layer (tolerance etc) - I'm normally surprised if mapserver takes more than a second or two to query up to 20-30 individual layers... Hope this reassures! Mike 2009/9/1 Chris Kantarjiev > Sure. The basic use case is: > > User navigates to a particular, known, lat/lon as starting point; this can > be by entering the known lat/lon values, or by navigation around cities. > > User then selects one or more links and can inspect attributes associated > with those links - in particular, link_id and direction. Initial selection > could be by sweeping out an area, but should also provide a way of > adding/removing specific links from the selection (control-select). > > Did that makes sense? > > chris > > > Steve Lime wrote: > >> You'd be surprised with what you can do with the CGI backend. It's >> certainly possible, with the right >> web client (e.g. something like GeoMoose or OpenLayers) to craft queries >> against the CGI to select >> one or many features from one or many layers using a point, box or >> arbitrary geometry. Perhaps if >> you could sketch out a use case or two... >> >> Steve >> >> On 9/1/2009 at 12:49 PM, in message <4A9D5E9D.9000701 at speedgauge.net>, >>>>> Chris >>>>> >>>> Kantarjiev wrote: >> >>> I'm just starting to play with query mode and find it very useful. I have >>> an interaction style in mind that would let me select and highlight several >>> (possibly connected) links in a layer in a fairly interactive style (more >>> like one would do with ArcGIS, I guess). I'm pretty sure that I won't be >>> successful doing this with the basic CGI, and am overwhelmed by the number >>> of Ajax layers that I might choose from. >>> >>> Are there documents/pages out there that might give me some guidance >>> about what's possible with the various packages? >>> >>> Thanks, >>> chris >>> _______________________________________________ >>> 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 jhevenor at rogers.com Tue Sep 1 16:13:40 2009 From: jhevenor at rogers.com (Josh Hevenor) Date: Tue, 01 Sep 2009 19:13:40 -0400 Subject: [mapserver-users] KML Export Message-ID: <4A9DAAA4.4040604@rogers.com> I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include symbolization here...something that accepts a mapfile and a layername (or just a mapfile, or whatever) and exports kml. Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have nicely symbolized features coming outbut no attributes. Has anyone used open source tools and gotten both? Any advice would be appreciated. If anyone has advice on an Arc approach they can contact me off-list. Thanks, Josh From Steve.Lime at dnr.state.mn.us Tue Sep 1 21:10:12 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 01 Sep 2009 23:10:12 -0500 Subject: [mapserver-users] KML Export Message-ID: <4A9DA9D60200008F00027E71@co5.dnr.state.mn.us> Josh, you can use MapServer templates to do this sort of thing. With this approach you can control most aspects of the output file because you have to write the basics. MapServer then adds feature specific things like geometries and attributes based on your template. You can run this nightly using a command line approach like so: mapserv -nh "QUERY_STRING=map=your.map&mode=nsquery&qformat=mykml&layer=somelayer" > somelayer.kml The -nh surpresses the http headers so you can redirect your output to a file easily. This approach does not convert MapServer styling to KML, you'd need to make that part of your template. You can also build multi layer KML with this approach with one template used to represent multiple layers. Let me know if you need an example. Steve >>> Josh Hevenor 09/01/09 6:21 PM >>> I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include symbolization here...something that accepts a mapfile and a layername (or just a mapfile, or whatever) and exports kml. Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have nicely symbolized features coming outbut no attributes. Has anyone used open source tools and gotten both? Any advice would be appreciated. If anyone has advice on an Arc approach they can contact me off-list. Thanks, Josh _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From snaperski at gmail.com Tue Sep 1 22:40:08 2009 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 2 Sep 2009 08:40:08 +0300 Subject: [mapserver-users] Re: annotations in mapserver 5.4 In-Reply-To: <4A9CF858.5157.008F.0@dnr.state.mn.us> References: <49dc012b0908032312g75b51371xd08158b46f4b574f@mail.gmail.com> <49dc012b0908310323j7868aed2gea5cf8528a23e0f@mail.gmail.com> <4A9BCD2E.5157.008F.0@dnr.state.mn.us> <49dc012b0908312242h79cac72an73bbd1944dc8d42@mail.gmail.com> <4A9CF858.5157.008F.0@dnr.state.mn.us> Message-ID: <49dc012b0909012240s518eb34dvf232377b74f3a366@mail.gmail.com> Thank you for attention, I checked my data source and since it was a polygon layer I generated centroids out of them and now it works. Weird I did'nt noticed that before :S Raivo On Tue, Sep 1, 2009 at 6:32 PM, Steve Lime wrote: > Can you get the scale value MapServer is using on a map where you think there should be > annotation for this layer but there is not? Easiest way to do that is with a simple browse > template like so: > > ? > ?
> ?Map extent: [mapext]
> ?Scale: [scale] > > Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then > you can call the CGI like so: > > ?http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse > > If all goes well you should see the generated image and the computed extent and scale. I'd be > curious to see those numbers on a problematic map for 5.2 and 5.4. > > Steve > >>>> On 9/1/2009 at 12:42 AM, in message > <49dc012b0908312242h79cac72an73bbd1944dc8d42 at mail.gmail.com>, Raivo Alla > wrote: >> Thanks! >> >> You're right, I shortened the layer definition here confusingly, whole >> layer definition was like that: >> >> LAYER >> ? ? ? ? ? ? ? NAME alevikAnno_1 >> ? ? ? ? ? ? ? GROUP HYBRID >> ? ? ? ? ? ? ? METADATA >> ? ? ? ? ? ? ? ? ? ? ? "wms_title" "alevikAnno" >> ? ? ? ? ? ? ? ? ? ? ? "wms_srs" "EPSG:3301" >> ? ? ? ? ? ? ? ? ? ? ? "wms_extent" "355000 6360000 754000 6660000" >> ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? STATUS default >> ? ? ? ? ? ? ? TYPE annotation >> ? ? ? ? ? ? ? DATA "kohanimed/alevikud_1" >> ? ? ? ? ? ? ? #sama andmestik, mis newages. >> ? ? ? ? ? ? ? #Uuendamine vastavalt vajadusele. >> ? ? ? ? ? ? ? #OPACITY 100 >> ? ? ? ? ? ? ? LABELITEM "TEXTSTRING" >> ? ? ? ? ? ? ? CLASS >> ? ? ? ? ? ? ? MAXSCALE 1333333 #1000000 >> ? ? ? ? ? ? ? MINSCALE 400000 #300000 >> ? ? ? ? ? ? ? ? STYLE >> ? ? ? ? ? ? ? ? ?SYMBOL "punsoon3" >> ? ? ? ? ? ? ? ? ?SIZE 15 >> ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? ? ? ? ? LABEL >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TYPE truetype >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANTIALIAS true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FONT "arial" >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? COLOR 255 255 255 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SIZE 9 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? priority 6 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? encoding utf-8 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? force false >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANGLE auto >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OUTLINECOLOR 25 25 25 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? POSITION cr >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? BUFFER 1 >> ? ? ? ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? CLASS >> ? ? ? ? ? ? ? MAXSCALE 400000 #300000 >> ? ? ? ? ? ? ? MINSCALE 200000 #150000 >> ? ? ? ? ? ? ? ? STYLE >> ? ? ? ? ? ? ? ? ?SYMBOL "punsoon4" >> ? ? ? ? ? ? ? ? ?SIZE 15 >> ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? ? ? ? ? LABEL >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TYPE truetype >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANTIALIAS true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FONT "arialb" >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? COLOR 255 255 255 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SIZE 9 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? force false >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANGLE auto >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? priority 6 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OUTLINECOLOR 25 25 25 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? POSITION cr >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? BUFFER 1 >> ? ? ? ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? CLASS >> ? ? ? ? ? ? ? MAXSCALE 200000 #150000 >> ? ? ? ? ? ? ? MINSCALE 66666 #50000 >> ? ? ? ? ? ? ? ? ? ? ? LABEL >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TYPE truetype >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANTIALIAS true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FONT "arialb" >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? COLOR 255 255 255 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SIZE 10 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #force true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? priority 8 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANGLE auto >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OUTLINECOLOR 25 25 25 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? POSITION cc >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? BUFFER 3 >> ? ? ? ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? CLASS >> ? ? ? ? ? ? ? MAXSCALE 66666 #50000 >> ? ? ? ? ? ? ? MINSCALE 20000 #15000 >> ? ? ? ? ? ? ? ? ? ? ? LABEL >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TYPE truetype >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANTIALIAS true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FONT "arialb" >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? COLOR 255 255 255 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SIZE 11 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #force true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? priority 8 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANGLE auto >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OUTLINECOLOR 25 25 25 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? POSITION cc >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? BUFFER 3 >> ? ? ? ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? CLASS >> ? ? ? ? ? ? ? MAXSCALE 20000 #15000 >> ? ? ? ? ? ? ? ? ? ? ? LABEL >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TYPE truetype >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANTIALIAS true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FONT "arialb" >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? COLOR 255 255 255 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SIZE 12 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #force true >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? priority 8 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ANGLE auto >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OUTLINECOLOR 25 25 25 >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? POSITION cc >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? BUFFER 3 >> ? ? ? ? ? ? ? ? ? ? ? END >> ? ? ? ? ? ? ? END >> ? ? ? ?END >> >> But problem still remains, even if I changed layer definition to >> one-class only and with the scales defined in LAYER, not CLASS >> section. >> >> >> Raivo >> >> On Mon, Aug 31, 2009 at 9:16 PM, Steve Lime wrote: >>> If you get rid of the class min/max scales do the problems go away? What if >> you put those constraints >>> at the layer level (with only one class that should work). Also, the layer >> defn is confusing since it doesn't >>> hint at a marker yet the images missing labels definitely do have a marker >> accompanying the text. >>> >>> Steve >>> >>>>>> On 8/31/2009 at 5:23 AM, in message >>> <49dc012b0908310323j7868aed2gea5cf8528a23e0f at mail.gmail.com>, Raivo Alla >>> wrote: >>>> This is a bit old problem (still got that bug), but I found that I >>>> typed the second link not right, the right link to >>>> the problematic output is that: >>>> http://picasaweb.google.com/snaperski/Ort#5365984697960162578 >>>> I assume this is some 5.4 version bug? >>>> >>>> Sincerely, >>>> Raivo >>>> >>>> On Tue, Aug 4, 2009 at 9:12 AM, Raivo Alla wrote: >>>>> Hey, >>>>> >>>>> I got some weird behavior while trying to display labels with mapserver 5.4. >>>>> With mapserver 5.0.3 these labels show up nicely: >>>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>>> But with mapserver 5.4, these layers are shown at scale about >>>>> 350000-200000, but they will disappear at higher scales, so nothing >>>>> can be seen: >>>>> http://picasaweb.google.com/snaperski/Ort#5365984694609689634 >>>>> This could'nt be collision conflict either as they have enough space to fit >>>> in. >>>>> Is something changed in the way mapserver treats annotations elements? >>>>> >>>>> Data source is a polygon shapefile: I hope that (polygon type) is not >>>>> the problem? >>>>> The layer itself in the mapfile: >>>>> >>>>> ? ? ? ?LAYER >>>>> ? ? ? ? ? ? ? ?NAME alevikAnno_1 >>>>> ? ? ? ? ? ? ? ?GROUP HYBRID >>>>> ? ? ? ? ? ? ? ?METADATA >>>>> ? ? ? ? ? ? ? ? ? ? ? ?"wms_title" "alevikAnno" >>>>> ? ? ? ? ? ? ? ? ? ? ? ?"wms_srs" "EPSG:3301" >>>>> ? ? ? ? ? ? ? ? ? ? ? ?"wms_extent" "355000 6360000 754000 6660000" >>>>> ? ? ? ? ? ? ? ?END >>>>> ? ? ? ? ? ? ? ?STATUS default >>>>> ? ? ? ? ? ? ? ?TYPE annotation >>>>> ? ? ? ? ? ? ? ?DATA "kohanimed/alevikud_1" >>>>> ? ? ? ? ? ? ? ?LABELITEM "TEXTSTRING" >>>>> ? ? ? ? ? ? ? ?CLASS >>>>> ? ? ? ? ? ? ? ?MAXSCALE 1333333 >>>>> ? ? ? ? ? ? ? ?MINSCALE 200000 >>>>> ? ? ? ? ? ? ? ? ? ? ? ?LABEL >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?TYPE truetype >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?ANTIALIAS true >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?FONT "arial" >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLOR 255 255 255 >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?SIZE 9 >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?priority 6 >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?force false >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?ANGLE auto >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?OUTLINECOLOR 25 25 25 >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?POSITION cr >>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?BUFFER 1 >>>>> ? ? ? ? ? ? ? ? ? ? ? ?END >>>>> ? ? ? ? ? ? ? ?END >>>>> ? ? ? ?END >>>>> >>>>> >>>>> >>>>> Raivo Alla >>>>> Estonian Land Board >>>>> >>>> _______________________________________________ >>>> 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 gorka.lopez at geograma.com Tue Sep 1 23:42:23 2009 From: gorka.lopez at geograma.com (=?iso-8859-1?Q?Gorka_L=F3pez_Rivacoba?=) Date: Wed, 2 Sep 2009 08:42:23 +0200 Subject: [mapserver-users] MapServer 5.2.1 performance References: <1251302171603-3516379.post@n2.nabble.com> <4A96931D.3060001@squeakycode.net> Message-ID: <288C13941457C34CB3081F058BB1965C766A32@sageograma.GEO-I.local> Hi Andy, Thanks for your response. I get the timings using mapfile debug (level 3). Besides, I use JMeter to ask for random tiles and get the elapsed time. With these times, I have done some changes: * I clean the coordinate system definitions that I don't use (this change is very important for the elapsed time) * I see that most of the layers spent around 0,015 seconds for each. Some layers spent around 0.25 seconds and I could see that these layers have few geometries very complex (I try to break these geometries in others simpler) In the example, the program and database are on the same box so there are not latency problems. In my project, I use OpenLayers client that consumes Tilecache as mod_python and metatile (metaSize=3,3 and size=512,512 pixels) that consumes mapserver as fast cgi. The requested time is asking tiles to mapserver as fast cgi. Do I forget something to improve the performance? Best regards, Gorka L?pez -----Mensaje original----- De: Andy Colson [mailto:andy at squeakycode.net] Enviado el: jueves, 27 de agosto de 2009 16:07 Para: Gorka L?pez Rivacoba CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] MapServer 5.2.1 performance Gorka Lopez wrote: > Hi, > > I have a .map file with 120 layers. All this layers contain different > information and this project is prepared to consume all these layers > together. The style of those layers is basic (some annotations and some > tematics) > > This layers consumes PostGIS tables (28 tables) which disk spaces are > between 1 MB and 1GB (database total space: 2,5GB). The indexes of these > tables (gist and btrees indexes) and the statistics are created. These > information are in the same coordinate system that in the requested tiles. > > I want to improve the performance and I have the following results for a > 512x512 tile: > > * 27 milliseconds per visible layer (layers that are visible in the map's > scale (40 layers)) > * 18 millisecods per non-visible layer (layers that are not visible in the > map' scale (80 layers)) > > Is there any solution to improve this results (I just use tilechache > metatile property)? I think that 18 milliseconds per non-visible layer is > too much (only for evaluating wether the requested tile is contained in the > layer's min/max scale) > > Thanks for your help. > > Best regards, > > Gorka L?pez > Did you use the mapfile debug to get the timings? Did you profile any of the sql statements? (In PG do you log slow sql statements? Or log them all and use 'explain analyze' on them to make sure they are all running fast?) Are the program and database on the same box? (ie is there network latency problems?) Are you using mapserv as cgi? OpenLayers? something else? -Andy From natancalzolari at gmail.com Wed Sep 2 00:45:53 2009 From: natancalzolari at gmail.com (=?ISO-8859-1?Q?Nat=E1n?=) Date: Wed, 2 Sep 2009 04:45:53 -0300 Subject: [mapserver-users] Opening layer with PHP/Mapscript Message-ID: In my PHP code I do: $map = ms_newMapObj("docs/distrito.map"); $layer = $map->getLayerByName("Distrito"); $layer->open(); The open() method returns me a warning like this: Warning: [MapServer Error]: msShapefileOpen(): (/var/www/ajax/docs/distrito.dbf) in /var/www/ajax/index.php on line 6 I know the map has loaded properly because I tried echoing $map->numlayers and it outputs the number of layers correctly. Also, the layer has loaded properly; I tried echoing $layer->numclasses and it outputs correctly. But when trying to use the open method, I get that problem. It points at the .DBF file, I don't know which could be the problem. Any help would be amazing. Nat?n From marc.weustink at cuperus.nl Wed Sep 2 02:54:33 2009 From: marc.weustink at cuperus.nl (Marc Weustink) Date: Wed, 02 Sep 2009 11:54:33 +0200 Subject: [mapserver-users] Where to find symbols_mapinfo.sym Message-ID: <4A9E40D9.2030302@cuperus.nl> Hi, When using styleitem "auto" on mapinfo source in mapserver, the doc says that for a quick solution I can use http://www2.dmsolutions.ca/msapps/yk_demo/etc/symbols_mapinfo.sym However access to that server is denied. Are there any other examples floating around I can try ? Thanks, Marc From PGiannini at bytewise.it Wed Sep 2 03:51:08 2009 From: PGiannini at bytewise.it (Giannini Pietro) Date: Wed, 2 Sep 2009 12:51:08 +0200 Subject: R: [mapserver-users] Opening layer with PHP/Mapscript In-Reply-To: References: Message-ID: <43411A0E963AFB438880E632F990D81730D1E6A1@EXCHANGE.bytewise.local> Nat?n, I cannot reproduce this error, but normally I query the layer first (query functions are queryByPoint, queryByRect, queryByShape ...) then I invoke the open() function to read attributes of shapes: $qLay = $oMap->getLayerByName('europa'); $qLay->queryByRect($oMap->extent); $results = $qLay->getNumResults(); echo $results."
\n"; if ($results > 0) { $qLay->open(); for ($i=0;$i<$results;$i++){ $res = $qLay->getresult($i); $feature = $qLay->getShape($res->tileindex,$res->shapeindex); if ($feature){ echo "country: ".$feature->values['CNTRYNAME']."
\n"; } } $qLay->close(); } This works in MapServer 5.2.1. Bye. ..................................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -----Messaggio originale----- Da: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di Nat?n Inviato: mercoled? 2 settembre 2009 9.46 A: mapserver-users at lists.osgeo.org Oggetto: [mapserver-users] Opening layer with PHP/Mapscript In my PHP code I do: $map = ms_newMapObj("docs/distrito.map"); $layer = $map->getLayerByName("Distrito"); $layer->open(); The open() method returns me a warning like this: Warning: [MapServer Error]: msShapefileOpen(): (/var/www/ajax/docs/distrito.dbf) in /var/www/ajax/index.php on line 6 I know the map has loaded properly because I tried echoing $map->numlayers and it outputs the number of layers correctly. Also, the layer has loaded properly; I tried echoing $layer->numclasses and it outputs correctly. But when trying to use the open method, I get that problem. It points at the .DBF file, I don't know which could be the problem. Any help would be amazing. Nat?n _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sb.ray at hotmail.com Wed Sep 2 05:30:30 2009 From: sb.ray at hotmail.com (sunny74) Date: Wed, 2 Sep 2009 07:30:30 -0500 (CDT) Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> References: <1251460371790-3534156.post@n2.nabble.com> <1251467096433-3534743.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us> <1251529272378-3540787.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> Message-ID: <1251894630372-3566414.post@n2.nabble.com> Hi, Thanks for the reply. 1) Can u tell me how to sandwich all the layers and make one WMS call to the server and request all of the layers in one image/call. Presently I am calling the layers separately as below: function init() { //alert("in init"); map = new OpenLayers.Map('<%=map.ClientID%>'); // layer = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', layers: 'STATE', 'format': 'png' }); layer1 = new OpenLayers.Layer.WMS("Rail Main", "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Railwayline' }); // layer2 = new OpenLayers.Layer.WMS("Rail WaterBody", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'WaterBody' }); // layer3 = new OpenLayers.Layer.WMS("Rail Rail_Buffer", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Rail_Buffer' }); // layer4 = new OpenLayers.Layer.WMS("Roads", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Roads' }); // layer5 = new OpenLayers.Layer.WMS("Diversions", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Diversions' }); // layer6 = new OpenLayers.Layer.WMS("Rail Side_Line", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Rail_Side_Line' }); // layer7 = new OpenLayers.Layer.WMS("LANDMARKS", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'LANDMARKS' }); layer8 = new OpenLayers.Layer.WMS("RailwayStations", "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'RailwayStations' }); // layer9 = new OpenLayers.Layer.WMS("Bridges_Minor", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Bridges_Minor' }); // layer10 = new OpenLayers.Layer.WMS("Bridge_Major", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'Bridge_Major' }); // layer11 = new OpenLayers.Layer.WMS("LC_Gate", // "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: 'Shape/newwr1.map', transparent: 'true', layers: 'LC_Gate' }); // highlight = new OpenLayers.Layer.Vector("highlight", { style: vector_style }); choice_features = new OpenLayers.Layer.Vector("choice_features", { style: v_style }); distline = new OpenLayers.Layer.Vector("distline", { style: vector_style }); //GML = new OpenLayers.Layers.GML("GML", { style: v_style }); // map.addLayers([layer, layer1, layer8, highlight,distline]); // markers = new OpenLayers.Layer.Markers("markers"); // map.addLayer(markers); // map.OpenLayers.Control.PanZoom.destroy(); // map.OpenLayers.Control.MouseToolbar.destroy(); map.zoomToMaxExtent(); map.setCenter(new OpenLayers.LonLat(73.25, 20.35), 7); map.addControl(new OpenLayers.Control.PanZoomBar()); //map.addControl(new OpenLayers.Control.MouseToolbar()); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.OverviewMap()); map.addControl(new OpenLayers.Control.Scale()); } 2) Is there a way by which the layers will load at certain zoom level bec' in case of MAXSCALEDENOM /MINSCALEDENOM the layers are loading at PageLoad while only visible at that zoom level. 3)If I use TileCache layer instead of Wms then will it load faster. Regards. Fawcett, David wrote: > > 1. You can use MINSCALEDENOM and MAXSCALEDENOM at either the layer or > class level (on a current version of MapServer). So, it looks like they > are in an appropriate place. The real test is to use MapServer to draw > the layer for you. Does it turn on and off at the scales that you want it > to? > > 2. Yes, it can apply to both the layer or class properties. I assume > that you looked here: http://www.mapserver.org/mapfile/class.html#class > > 3. MapServer has nothing to do with when things load. This all happens > on your client. It sounds like you modified your client to request each > layer individually. If you just want to sandwich them all together, why > not just make one WMS call to the server and request all of the layers in > one image/call. This question is really more appropriate for the > OpenLayers list. > > 4. I would consult the TileCache or OpenLayers list for this one. > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sunny74 > Sent: Saturday, August 29, 2009 2:01 AM > To: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] turning on layers at a particular zoom > level > > > > Hi David, > > Thanks for your reply. > I wanted to have 3 layers displayed b/w scale of 1.2M and 1.15M and so I > have added set MAXSCALEDENOM /MINSCALEDENOM as follows: > > LAYER > NAME 'WaterBody' > TYPE POLYGON > DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' > METADATA > 'wms_title' 'WaterBody' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'WaterBody' > MAXSCALEDENOM 2000000 > MINSCALEDENOM 1500000 > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 150 123 90 > END > END > END > > 1)Pls tell me whether I hav added the things at the correct place. > 2) Can I also add it within the layer properties? > 3) I find that the layers are being added at PageLoad.This I found out by > looking at the number of items being added at the bottom left corner of > IE. The number of items has nearly doubled due to the addition of the 3 > layers. Is there any way by which I can stop the layers from being added > at PageLoad i.e they should be added only when the desired scale is > reached. > > 4) How to use TileCache or GeoWebCache i.e js code? > > Thanks again. > > Fawcett, David wrote: >> >> I assume the 'M' stands for million. >> >> If you want the layer to be only visible when 'zoomed in' beyond 1:2M, >> I would set a MAXSCALEDENOM of 2000000. >> >> If you want the layer to be only visible when 'zoomed out' beyond >> 1:2M, I would set a MINSCALEDENOM of 2000000. >> >> If you only want the layer to be visible between resolutions of >> 1:100000 and 1:200000, you would set: both MINSCALEDENOM 100000 and >> MAXSCALEDENOM 200000 >> >> These values go in either a LAYER or CLASS of LAYER in your MapServer map >> file. >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sunny74 >> Sent: Friday, August 28, 2009 8:45 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] turning on layers at a particular zoom >> level >> >> >> >> Hi, >> >> Thanks for your reply. >> I went thru the link and read about MAXSCALEDENOM/MINSCALEDENOM. So >> MINSCALEDENOM is the minimum scale level at which a layer will become >> visible. But I am a bit confused.When the map loads for the first time >> it has a zoom level of 7 as given in the code below. >> >> map.setCenter(new OpenLayers.LonLat(74.25, 20.35), 7); >> >> In terms of scale it is showing 1:3M. >> What is M? >> If I increase the zoom level i.e do zoom in, scale becomes 1:856K and >> 1:256K etc i.e scale decreases. So If want a layer to be visible at a >> scale level of 1:2M what do I write in the mapfile? >> >> How to use TileCache or GeoWebCache?Pls give the js code. >> >> >> Rahkonen Jukka wrote: >>> >>> Hi, >>> >>> Mapserver is somehow documented, about adjusting visibility according >>> to scale, try to find MAXSCALEDENOM/MINSCALEDENOM from >>> http://www.mapserver.org/mapfile/layer.html#index-21 >>> >>> Mapserver does not do caching but you can use for examply TileCache >>> or >>> GeoWebCache between your clients and Mapserver. >>> >>> -Jukka Rahkonen- >>> >>> >>> >>>> -----Alkuper?inen viesti----- >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta sunny74 >>>> L?hetetty: 28. elokuuta 2009 14:53 >>>> Vastaanottaja: mapserver-users at lists.osgeo.org >>>> Aihe: [mapserver-users] turning on layers at a particular zoom level >>>> >>>> >>>> DEar Friends, >>>> >>>> I have 12 layers in my map and it is taking tooooo long to >>>> load.Therefore I decided to turn on only 2 layers at Page Load. >>>> >>>> Rest of the layers I want to turn on at a particular zoom level.How >>>> can I check the zoom level and turn on these layers. >>>> >>>> How can make the map load faster especially on page reload? Is it >>>> possible to cache the map or is there some other technique? >>>> >>>> Thanks for ur reply. >>>> >>>> -- >>>> View this message in context: >>>> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le >>>> vel-tp3534156p3534156.html >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> -- >> View this message in context: >> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3534743.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3540787.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3566414.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Sep 2 05:48:06 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 Sep 2009 15:48:06 +0300 Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: <1251894630372-3566414.post@n2.nabble.com> References: <1251460371790-3534156.post@n2.nabble.com><1251467096433-3534743.post@n2.nabble.com><6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us><1251529272378-3540787.post@n2.nabble.com><6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> <1251894630372-3566414.post@n2.nabble.com> Message-ID: Hi, Collect the layers to one GROUP, and send requests against the GROUP instead of the original scale dependent layers. Mapfile may have something like this inside: LAYER GROUP "group" NAME "scale1" MAXSCALEDENOM 100000 . . . END LAYER GROUP "group" NAME "scale2" TYPE POLYGON MAXSCALEDENOM 1000000 MINSCALEDENOM 100000 . . . END sunny74 wrote: > > > Hi, > > Thanks for the reply. > > 1) Can u tell me how to sandwich all the layers and make one > WMS call to the server and request all of the layers in one > image/call. > Presently I am calling the layers separately as below: > > function init() { > > //alert("in init"); > map = new OpenLayers.Map('<%=map.ClientID%>'); > > // > layer = new OpenLayers.Layer.WMS("OpenLayers WMS", > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', layers: 'STATE', 'format': 'png' }); > > layer1 = new OpenLayers.Layer.WMS("Rail Main", > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', transparent: 'true', layers: 'Railwayline' }); > > // layer2 = new OpenLayers.Layer.WMS("Rail WaterBody", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', transparent: 'true', layers: 'WaterBody' }); > > // layer3 = new OpenLayers.Layer.WMS("Rail Rail_Buffer", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', transparent: 'true', layers: 'Rail_Buffer' }); > > // layer4 = new OpenLayers.Layer.WMS("Roads", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', transparent: 'true', layers: 'Roads' }); > > // layer5 = new OpenLayers.Layer.WMS("Diversions", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: 'Diversions' }); > > // layer6 = new OpenLayers.Layer.WMS("Rail Side_Line", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: > 'Rail_Side_Line' }); > // layer7 = new OpenLayers.Layer.WMS("LANDMARKS", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: 'LANDMARKS' }); > layer8 = new OpenLayers.Layer.WMS("RailwayStations", > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > 'Shape/newwr1.map', transparent: 'true', layers: 'RailwayStations' }); > // layer9 = new OpenLayers.Layer.WMS("Bridges_Minor", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: > 'Bridges_Minor' }); > // layer10 = new OpenLayers.Layer.WMS("Bridge_Major", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: > 'Bridge_Major' }); > // layer11 = new OpenLayers.Layer.WMS("LC_Gate", > // > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > map: 'Shape/newwr1.map', transparent: 'true', layers: 'LC_Gate' }); > > // > > highlight = new OpenLayers.Layer.Vector("highlight", { style: > vector_style }); > choice_features = new > OpenLayers.Layer.Vector("choice_features", { > style: v_style }); > distline = new OpenLayers.Layer.Vector("distline", { style: > vector_style }); > //GML = new OpenLayers.Layers.GML("GML", { style: v_style }); > > // > map.addLayers([layer, layer1, layer8, highlight,distline]); > // markers = new OpenLayers.Layer.Markers("markers"); > // map.addLayer(markers); > > // map.OpenLayers.Control.PanZoom.destroy(); > // map.OpenLayers.Control.MouseToolbar.destroy(); > map.zoomToMaxExtent(); > map.setCenter(new OpenLayers.LonLat(73.25, 20.35), 7); > > map.addControl(new OpenLayers.Control.PanZoomBar()); > //map.addControl(new OpenLayers.Control.MouseToolbar()); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > map.addControl(new OpenLayers.Control.MousePosition()); > > map.addControl(new OpenLayers.Control.OverviewMap()); > map.addControl(new OpenLayers.Control.Scale()); > > } > > 2) Is there a way by which the layers will load at certain > zoom level bec' > in case of MAXSCALEDENOM /MINSCALEDENOM the layers are > loading at PageLoad while only visible at that zoom level. > > 3)If I use TileCache layer instead of Wms then will it load faster. > > Regards. > > Fawcett, David wrote: > > > > 1. You can use MINSCALEDENOM and MAXSCALEDENOM at either > the layer or > > class level (on a current version of MapServer). So, it looks like > > they are in an appropriate place. The real test is to use > MapServer > > to draw the layer for you. Does it turn on and off at the > scales that > > you want it to? > > > > 2. Yes, it can apply to both the layer or class > properties. I assume > > that you looked here: > > http://www.mapserver.org/mapfile/class.html#class > > > > 3. MapServer has nothing to do with when things load. This all > > happens on your client. It sounds like you modified your client to > > request each layer individually. If you just want to sandwich them > > all together, why not just make one WMS call to the server > and request > > all of the layers in one image/call. This question is really more > > appropriate for the OpenLayers list. > > > > 4. I would consult the TileCache or OpenLayers list for this one. > > > > David. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of sunny74 > > Sent: Saturday, August 29, 2009 2:01 AM > > To: mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] turning on layers at a > particular zoom > > level > > > > > > > > Hi David, > > > > Thanks for your reply. > > I wanted to have 3 layers displayed b/w scale of 1.2M and > 1.15M and so > > I have added set MAXSCALEDENOM /MINSCALEDENOM as follows: > > > > LAYER > > NAME 'WaterBody' > > TYPE POLYGON > > DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' > > METADATA > > 'wms_title' 'WaterBody' > > END > > STATUS OFF > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > '' > > END > > CLASS > > NAME 'WaterBody' > > MAXSCALEDENOM 2000000 > > MINSCALEDENOM 1500000 > > STYLE > > SYMBOL 0 > > SIZE 2 > > OUTLINECOLOR 0 0 0 > > COLOR 150 123 90 > > END > > END > > END > > > > 1)Pls tell me whether I hav added the things at the correct place. > > 2) Can I also add it within the layer properties? > > 3) I find that the layers are being added at PageLoad.This > I found out > > by looking at the number of items being added at the bottom left > > corner of IE. The number of items has nearly doubled due to the > > addition of the 3 layers. Is there any way by which I can stop the > > layers from being added at PageLoad i.e they should be > added only when > > the desired scale is reached. > > > > 4) How to use TileCache or GeoWebCache i.e js code? > > > > Thanks again. > > > > Fawcett, David wrote: > >> > >> I assume the 'M' stands for million. > >> > >> If you want the layer to be only visible when 'zoomed in' beyond > >> 1:2M, I would set a MAXSCALEDENOM of 2000000. > >> > >> If you want the layer to be only visible when 'zoomed out' beyond > >> 1:2M, I would set a MINSCALEDENOM of 2000000. > >> > >> If you only want the layer to be visible between resolutions of > >> 1:100000 and 1:200000, you would set: both MINSCALEDENOM > 100000 and > >> MAXSCALEDENOM 200000 > >> > >> These values go in either a LAYER or CLASS of LAYER in > your MapServer map > >> file. > >> > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of sunny74 > >> Sent: Friday, August 28, 2009 8:45 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: Re: [mapserver-users] turning on layers at a > particular zoom > >> level > >> > >> > >> > >> Hi, > >> > >> Thanks for your reply. > >> I went thru the link and read about > MAXSCALEDENOM/MINSCALEDENOM. So > >> MINSCALEDENOM is the minimum scale level at which a layer > will become > >> visible. But I am a bit confused.When the map loads for the first > >> time it has a zoom level of 7 as given in the code below. > >> > >> map.setCenter(new OpenLayers.LonLat(74.25, 20.35), 7); > >> > >> In terms of scale it is showing 1:3M. > >> What is M? > >> If I increase the zoom level i.e do zoom in, scale becomes > 1:856K and > >> 1:256K etc i.e scale decreases. So If want a layer to be > visible at a > >> scale level of 1:2M what do I write in the mapfile? > >> > >> How to use TileCache or GeoWebCache?Pls give the js code. > >> > >> > >> Rahkonen Jukka wrote: > >>> > >>> Hi, > >>> > >>> Mapserver is somehow documented, about adjusting visibility > >>> according to scale, try to find MAXSCALEDENOM/MINSCALEDENOM from > >>> http://www.mapserver.org/mapfile/layer.html#index-21 > >>> > >>> Mapserver does not do caching but you can use for examply > TileCache > >>> or GeoWebCache between your clients and Mapserver. > >>> > >>> -Jukka Rahkonen- > >>> > >>> > >>> > >>>> -----Alkuper?inen viesti----- > >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta sunny74 > >>>> L?hetetty: 28. elokuuta 2009 14:53 > >>>> Vastaanottaja: mapserver-users at lists.osgeo.org > >>>> Aihe: [mapserver-users] turning on layers at a particular zoom > >>>> level > >>>> > >>>> > >>>> DEar Friends, > >>>> > >>>> I have 12 layers in my map and it is taking tooooo long to > >>>> load.Therefore I decided to turn on only 2 layers at Page Load. > >>>> > >>>> Rest of the layers I want to turn on at a particular zoom > >>>> level.How can I check the zoom level and turn on these layers. > >>>> > >>>> How can make the map load faster especially on page > reload? Is it > >>>> possible to cache the map or is there some other technique? > >>>> > >>>> Thanks for ur reply. > >>>> > >>>> -- > >>>> View this message in context: > >>>> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le > >>>> vel-tp3534156p3534156.html > >>>> Sent from the Mapserver - User mailing list archive at > Nabble.com. > >>>> _______________________________________________ > >>>> mapserver-users mailing list mapserver-users at lists.osgeo.org > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >> > >> -- > >> View this message in context: > >> > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3 > >> 534156p3534743.html Sent from the Mapserver - User mailing list > >> archive at Nabble.com. > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > > > -- > > View this message in context: > > > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp35 > > 34156p3540787.html Sent from the Mapserver - User mailing > list archive > > at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le > vel-tp3534156p3566414.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Wed Sep 2 05:53:07 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 Sep 2009 15:53:07 +0300 Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: References: <1251460371790-3534156.post@n2.nabble.com><1251467096433-3534743.post@n2.nabble.com><6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us><1251529272378-3540787.post@n2.nabble.com><6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us><1251894630372-3566414.post@n2.nabble.com> Message-ID: Oh, I should have read your question first. I try again. Use a comma separated list of layers, like layers:'STATE','Railwayline'. I am not at all sure about the exact syntax to be used with OpenLayers. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Rahkonen Jukka > L?hetetty: 2. syyskuuta 2009 15:48 > Vastaanottaja: sunny74; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] turning on layers at a particular > zoom level > > Hi, > > Collect the layers to one GROUP, and send requests against > the GROUP instead of the original scale dependent layers. > Mapfile may have something like this inside: > > LAYER > GROUP "group" > NAME "scale1" > MAXSCALEDENOM 100000 > . > . > . > END > > LAYER > GROUP "group" > NAME "scale2" > TYPE POLYGON > MAXSCALEDENOM 1000000 > MINSCALEDENOM 100000 > . > . > . > END > > > sunny74 wrote: > > > > > > Hi, > > > > Thanks for the reply. > > > > 1) Can u tell me how to sandwich all the layers and make > one WMS call > > to the server and request all of the layers in one image/call. > > Presently I am calling the layers separately as below: > > > > function init() { > > > > //alert("in init"); > > map = new OpenLayers.Map('<%=map.ClientID%>'); > > > > // > > layer = new OpenLayers.Layer.WMS("OpenLayers WMS", > > > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', layers: 'STATE', 'format': 'png' }); > > > > layer1 = new OpenLayers.Layer.WMS("Rail Main", > > > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', transparent: 'true', layers: 'Railwayline' }); > > > > // layer2 = new OpenLayers.Layer.WMS("Rail WaterBody", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', transparent: 'true', layers: 'WaterBody' }); > > > > // layer3 = new OpenLayers.Layer.WMS("Rail Rail_Buffer", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', transparent: 'true', layers: 'Rail_Buffer' }); > > > > // layer4 = new OpenLayers.Layer.WMS("Roads", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', transparent: 'true', layers: 'Roads' }); > > > > // layer5 = new OpenLayers.Layer.WMS("Diversions", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: > 'Diversions' }); > > > > // layer6 = new OpenLayers.Layer.WMS("Rail Side_Line", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: > > 'Rail_Side_Line' }); > > // layer7 = new OpenLayers.Layer.WMS("LANDMARKS", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: > 'LANDMARKS' }); > > layer8 = new OpenLayers.Layer.WMS("RailwayStations", > > > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: > > 'Shape/newwr1.map', transparent: 'true', layers: > 'RailwayStations' }); > > // layer9 = new OpenLayers.Layer.WMS("Bridges_Minor", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: > > 'Bridges_Minor' }); > > // layer10 = new OpenLayers.Layer.WMS("Bridge_Major", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: > > 'Bridge_Major' }); > > // layer11 = new OpenLayers.Layer.WMS("LC_Gate", > > // > > "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { > > map: 'Shape/newwr1.map', transparent: 'true', layers: 'LC_Gate' }); > > > > // > > > > highlight = new > OpenLayers.Layer.Vector("highlight", { style: > > vector_style }); > > choice_features = new > > OpenLayers.Layer.Vector("choice_features", { > > style: v_style }); > > distline = new OpenLayers.Layer.Vector("distline", { style: > > vector_style }); > > //GML = new OpenLayers.Layers.GML("GML", { style: > v_style }); > > > > // > > map.addLayers([layer, layer1, layer8, highlight,distline]); > > // markers = new > OpenLayers.Layer.Markers("markers"); > > // map.addLayer(markers); > > > > // map.OpenLayers.Control.PanZoom.destroy(); > > // map.OpenLayers.Control.MouseToolbar.destroy(); > > map.zoomToMaxExtent(); > > map.setCenter(new OpenLayers.LonLat(73.25, 20.35), 7); > > > > map.addControl(new OpenLayers.Control.PanZoomBar()); > > //map.addControl(new OpenLayers.Control.MouseToolbar()); > > map.addControl(new OpenLayers.Control.LayerSwitcher()); > > map.addControl(new OpenLayers.Control.MousePosition()); > > > > map.addControl(new OpenLayers.Control.OverviewMap()); > > map.addControl(new OpenLayers.Control.Scale()); > > > > } > > > > 2) Is there a way by which the layers will load at certain > zoom level > > bec' > > in case of MAXSCALEDENOM /MINSCALEDENOM the layers are loading at > > PageLoad while only visible at that zoom level. > > > > 3)If I use TileCache layer instead of Wms then will it load faster. > > > > Regards. > > > > Fawcett, David wrote: > > > > > > 1. You can use MINSCALEDENOM and MAXSCALEDENOM at either > > the layer or > > > class level (on a current version of MapServer). So, it > looks like > > > they are in an appropriate place. The real test is to use > > MapServer > > > to draw the layer for you. Does it turn on and off at the > > scales that > > > you want it to? > > > > > > 2. Yes, it can apply to both the layer or class > > properties. I assume > > > that you looked here: > > > http://www.mapserver.org/mapfile/class.html#class > > > > > > 3. MapServer has nothing to do with when things load. This all > > > happens on your client. It sounds like you modified your > client to > > > request each layer individually. If you just want to > sandwich them > > > all together, why not just make one WMS call to the server > > and request > > > all of the layers in one image/call. This question is > really more > > > appropriate for the OpenLayers list. > > > > > > 4. I would consult the TileCache or OpenLayers list for this one. > > > > > > David. > > > > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of sunny74 > > > Sent: Saturday, August 29, 2009 2:01 AM > > > To: mapserver-users at lists.osgeo.org > > > Subject: RE: [mapserver-users] turning on layers at a > > particular zoom > > > level > > > > > > > > > > > > Hi David, > > > > > > Thanks for your reply. > > > I wanted to have 3 layers displayed b/w scale of 1.2M and > > 1.15M and so > > > I have added set MAXSCALEDENOM /MINSCALEDENOM as follows: > > > > > > LAYER > > > NAME 'WaterBody' > > > TYPE POLYGON > > > DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' > > > METADATA > > > 'wms_title' 'WaterBody' > > > END > > > STATUS OFF > > > TRANSPARENCY 100 > > > PROJECTION > > > 'proj=longlat' > > > 'ellps=WGS84' > > > 'datum=WGS84' > > > 'no_defs' > > > '' > > > END > > > CLASS > > > NAME 'WaterBody' > > > MAXSCALEDENOM 2000000 > > > MINSCALEDENOM 1500000 > > > STYLE > > > SYMBOL 0 > > > SIZE 2 > > > OUTLINECOLOR 0 0 0 > > > COLOR 150 123 90 > > > END > > > END > > > END > > > > > > 1)Pls tell me whether I hav added the things at the correct place. > > > 2) Can I also add it within the layer properties? > > > 3) I find that the layers are being added at PageLoad.This > > I found out > > > by looking at the number of items being added at the bottom left > > > corner of IE. The number of items has nearly doubled due to the > > > addition of the 3 layers. Is there any way by which I can > stop the > > > layers from being added at PageLoad i.e they should be > > added only when > > > the desired scale is reached. > > > > > > 4) How to use TileCache or GeoWebCache i.e js code? > > > > > > Thanks again. > > > > > > Fawcett, David wrote: > > >> > > >> I assume the 'M' stands for million. > > >> > > >> If you want the layer to be only visible when 'zoomed in' beyond > > >> 1:2M, I would set a MAXSCALEDENOM of 2000000. > > >> > > >> If you want the layer to be only visible when 'zoomed > out' beyond > > >> 1:2M, I would set a MINSCALEDENOM of 2000000. > > >> > > >> If you only want the layer to be visible between resolutions of > > >> 1:100000 and 1:200000, you would set: both MINSCALEDENOM > > 100000 and > > >> MAXSCALEDENOM 200000 > > >> > > >> These values go in either a LAYER or CLASS of LAYER in > > your MapServer map > > >> file. > > >> > > >> > > >> -----Original Message----- > > >> From: mapserver-users-bounces at lists.osgeo.org > > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of sunny74 > > >> Sent: Friday, August 28, 2009 8:45 AM > > >> To: mapserver-users at lists.osgeo.org > > >> Subject: Re: [mapserver-users] turning on layers at a > > particular zoom > > >> level > > >> > > >> > > >> > > >> Hi, > > >> > > >> Thanks for your reply. > > >> I went thru the link and read about > > MAXSCALEDENOM/MINSCALEDENOM. So > > >> MINSCALEDENOM is the minimum scale level at which a layer > > will become > > >> visible. But I am a bit confused.When the map loads for > the first > > >> time it has a zoom level of 7 as given in the code below. > > >> > > >> map.setCenter(new OpenLayers.LonLat(74.25, 20.35), 7); > > >> > > >> In terms of scale it is showing 1:3M. > > >> What is M? > > >> If I increase the zoom level i.e do zoom in, scale becomes > > 1:856K and > > >> 1:256K etc i.e scale decreases. So If want a layer to be > > visible at a > > >> scale level of 1:2M what do I write in the mapfile? > > >> > > >> How to use TileCache or GeoWebCache?Pls give the js code. > > >> > > >> > > >> Rahkonen Jukka wrote: > > >>> > > >>> Hi, > > >>> > > >>> Mapserver is somehow documented, about adjusting visibility > > >>> according to scale, try to find MAXSCALEDENOM/MINSCALEDENOM from > > >>> http://www.mapserver.org/mapfile/layer.html#index-21 > > >>> > > >>> Mapserver does not do caching but you can use for examply > > TileCache > > >>> or GeoWebCache between your clients and Mapserver. > > >>> > > >>> -Jukka Rahkonen- > > >>> > > >>> > > >>> > > >>>> -----Alkuper?inen viesti----- > > >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] > Puolesta sunny74 > > >>>> L?hetetty: 28. elokuuta 2009 14:53 > > >>>> Vastaanottaja: mapserver-users at lists.osgeo.org > > >>>> Aihe: [mapserver-users] turning on layers at a particular zoom > > >>>> level > > >>>> > > >>>> > > >>>> DEar Friends, > > >>>> > > >>>> I have 12 layers in my map and it is taking tooooo long to > > >>>> load.Therefore I decided to turn on only 2 layers at Page Load. > > >>>> > > >>>> Rest of the layers I want to turn on at a particular zoom > > >>>> level.How can I check the zoom level and turn on these layers. > > >>>> > > >>>> How can make the map load faster especially on page > > reload? Is it > > >>>> possible to cache the map or is there some other technique? > > >>>> > > >>>> Thanks for ur reply. > > >>>> > > >>>> -- > > >>>> View this message in context: > > >>>> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le > > >>>> vel-tp3534156p3534156.html > > >>>> Sent from the Mapserver - User mailing list archive at > > Nabble.com. > > >>>> _______________________________________________ > > >>>> mapserver-users mailing list mapserver-users at lists.osgeo.org > > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >>>> > > >>> _______________________________________________ > > >>> mapserver-users mailing list > > >>> mapserver-users at lists.osgeo.org > > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >>> > > >>> > > >> > > >> -- > > >> View this message in context: > > >> > > > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3 > > >> 534156p3534743.html Sent from the Mapserver - User mailing list > > >> archive at Nabble.com. > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > >> > > > > > > -- > > > View this message in context: > > > > > > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp35 > > > 34156p3540787.html Sent from the Mapserver - User mailing > > list archive > > > at Nabble.com. > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > View this message in context: > > http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le > > vel-tp3534156p3566414.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sb.ray at hotmail.com Wed Sep 2 06:04:04 2009 From: sb.ray at hotmail.com (sunny74) Date: Wed, 2 Sep 2009 08:04:04 -0500 (CDT) Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: References: <1251460371790-3534156.post@n2.nabble.com> <1251467096433-3534743.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us> <1251529272378-3540787.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> <1251894630372-3566414.post@n2.nabble.com> Message-ID: <1251896644794-3566575.post@n2.nabble.com> Hi, Thanks for ur reply. 1)What is the syntax for send request against a Group? 2)If I just write the name of the group within layer then will it be placed against the group? 3) What is the syntax for checking the zoom level of a map so that once a zoom level is reached I can call a group of layers? Regards. Rahkonen Jukka wrote: > > Hi, > > Collect the layers to one GROUP, and send requests against the GROUP > instead of the original scale dependent layers. Mapfile may have > something like this inside: > > LAYER > GROUP "group" > NAME "scale1" > MAXSCALEDENOM 100000 > . > . > . > END > > LAYER > GROUP "group" > NAME "scale2" > TYPE POLYGON > MAXSCALEDENOM 1000000 > MINSCALEDENOM 100000 > . > . > . > END > > > sunny74 wrote: >> >> >> Hi, >> >> Thanks for the reply. >> >> 1) Can u tell me how to sandwich all the layers and make one >> WMS call to the server and request all of the layers in one >> image/call. >> Presently I am calling the layers separately as below: >> >> function init() { >> >> //alert("in init"); >> map = new OpenLayers.Map('<%=map.ClientID%>'); >> >> // >> layer = new OpenLayers.Layer.WMS("OpenLayers WMS", >> >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', layers: 'STATE', 'format': 'png' }); >> >> layer1 = new OpenLayers.Layer.WMS("Rail Main", >> >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', transparent: 'true', layers: 'Railwayline' }); >> >> // layer2 = new OpenLayers.Layer.WMS("Rail WaterBody", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', transparent: 'true', layers: 'WaterBody' }); >> >> // layer3 = new OpenLayers.Layer.WMS("Rail Rail_Buffer", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', transparent: 'true', layers: 'Rail_Buffer' }); >> >> // layer4 = new OpenLayers.Layer.WMS("Roads", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', transparent: 'true', layers: 'Roads' }); >> >> // layer5 = new OpenLayers.Layer.WMS("Diversions", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: 'Diversions' }); >> >> // layer6 = new OpenLayers.Layer.WMS("Rail Side_Line", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: >> 'Rail_Side_Line' }); >> // layer7 = new OpenLayers.Layer.WMS("LANDMARKS", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: 'LANDMARKS' }); >> layer8 = new OpenLayers.Layer.WMS("RailwayStations", >> >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { map: >> 'Shape/newwr1.map', transparent: 'true', layers: 'RailwayStations' }); >> // layer9 = new OpenLayers.Layer.WMS("Bridges_Minor", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: >> 'Bridges_Minor' }); >> // layer10 = new OpenLayers.Layer.WMS("Bridge_Major", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: >> 'Bridge_Major' }); >> // layer11 = new OpenLayers.Layer.WMS("LC_Gate", >> // >> "http://172.16.128.173:8085/cgi-bin/mapserv.exe?", { >> map: 'Shape/newwr1.map', transparent: 'true', layers: 'LC_Gate' }); >> >> // >> >> highlight = new OpenLayers.Layer.Vector("highlight", { style: >> vector_style }); >> choice_features = new >> OpenLayers.Layer.Vector("choice_features", { >> style: v_style }); >> distline = new OpenLayers.Layer.Vector("distline", { style: >> vector_style }); >> //GML = new OpenLayers.Layers.GML("GML", { style: v_style }); >> >> // >> map.addLayers([layer, layer1, layer8, highlight,distline]); >> // markers = new OpenLayers.Layer.Markers("markers"); >> // map.addLayer(markers); >> >> // map.OpenLayers.Control.PanZoom.destroy(); >> // map.OpenLayers.Control.MouseToolbar.destroy(); >> map.zoomToMaxExtent(); >> map.setCenter(new OpenLayers.LonLat(73.25, 20.35), 7); >> >> map.addControl(new OpenLayers.Control.PanZoomBar()); >> //map.addControl(new OpenLayers.Control.MouseToolbar()); >> map.addControl(new OpenLayers.Control.LayerSwitcher()); >> map.addControl(new OpenLayers.Control.MousePosition()); >> >> map.addControl(new OpenLayers.Control.OverviewMap()); >> map.addControl(new OpenLayers.Control.Scale()); >> >> } >> >> 2) Is there a way by which the layers will load at certain >> zoom level bec' >> in case of MAXSCALEDENOM /MINSCALEDENOM the layers are >> loading at PageLoad while only visible at that zoom level. >> >> 3)If I use TileCache layer instead of Wms then will it load faster. >> >> Regards. >> >> Fawcett, David wrote: >> > >> > 1. You can use MINSCALEDENOM and MAXSCALEDENOM at either >> the layer or >> > class level (on a current version of MapServer). So, it looks like >> > they are in an appropriate place. The real test is to use >> MapServer >> > to draw the layer for you. Does it turn on and off at the >> scales that >> > you want it to? >> > >> > 2. Yes, it can apply to both the layer or class >> properties. I assume >> > that you looked here: >> > http://www.mapserver.org/mapfile/class.html#class >> > >> > 3. MapServer has nothing to do with when things load. This all >> > happens on your client. It sounds like you modified your client to >> > request each layer individually. If you just want to sandwich them >> > all together, why not just make one WMS call to the server >> and request >> > all of the layers in one image/call. This question is really more >> > appropriate for the OpenLayers list. >> > >> > 4. I would consult the TileCache or OpenLayers list for this one. >> > >> > David. >> > >> > >> > -----Original Message----- >> > From: mapserver-users-bounces at lists.osgeo.org >> > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf >> Of sunny74 >> > Sent: Saturday, August 29, 2009 2:01 AM >> > To: mapserver-users at lists.osgeo.org >> > Subject: RE: [mapserver-users] turning on layers at a >> particular zoom >> > level >> > >> > >> > >> > Hi David, >> > >> > Thanks for your reply. >> > I wanted to have 3 layers displayed b/w scale of 1.2M and >> 1.15M and so >> > I have added set MAXSCALEDENOM /MINSCALEDENOM as follows: >> > >> > LAYER >> > NAME 'WaterBody' >> > TYPE POLYGON >> > DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' >> > METADATA >> > 'wms_title' 'WaterBody' >> > END >> > STATUS OFF >> > TRANSPARENCY 100 >> > PROJECTION >> > 'proj=longlat' >> > 'ellps=WGS84' >> > 'datum=WGS84' >> > 'no_defs' >> > '' >> > END >> > CLASS >> > NAME 'WaterBody' >> > MAXSCALEDENOM 2000000 >> > MINSCALEDENOM 1500000 >> > STYLE >> > SYMBOL 0 >> > SIZE 2 >> > OUTLINECOLOR 0 0 0 >> > COLOR 150 123 90 >> > END >> > END >> > END >> > >> > 1)Pls tell me whether I hav added the things at the correct place. >> > 2) Can I also add it within the layer properties? >> > 3) I find that the layers are being added at PageLoad.This >> I found out >> > by looking at the number of items being added at the bottom left >> > corner of IE. The number of items has nearly doubled due to the >> > addition of the 3 layers. Is there any way by which I can stop the >> > layers from being added at PageLoad i.e they should be >> added only when >> > the desired scale is reached. >> > >> > 4) How to use TileCache or GeoWebCache i.e js code? >> > >> > Thanks again. >> > >> > Fawcett, David wrote: >> >> >> >> I assume the 'M' stands for million. >> >> >> >> If you want the layer to be only visible when 'zoomed in' beyond >> >> 1:2M, I would set a MAXSCALEDENOM of 2000000. >> >> >> >> If you want the layer to be only visible when 'zoomed out' beyond >> >> 1:2M, I would set a MINSCALEDENOM of 2000000. >> >> >> >> If you only want the layer to be visible between resolutions of >> >> 1:100000 and 1:200000, you would set: both MINSCALEDENOM >> 100000 and >> >> MAXSCALEDENOM 200000 >> >> >> >> These values go in either a LAYER or CLASS of LAYER in >> your MapServer map >> >> file. >> >> >> >> >> >> -----Original Message----- >> >> From: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf >> Of sunny74 >> >> Sent: Friday, August 28, 2009 8:45 AM >> >> To: mapserver-users at lists.osgeo.org >> >> Subject: Re: [mapserver-users] turning on layers at a >> particular zoom >> >> level >> >> >> >> >> >> >> >> Hi, >> >> >> >> Thanks for your reply. >> >> I went thru the link and read about >> MAXSCALEDENOM/MINSCALEDENOM. So >> >> MINSCALEDENOM is the minimum scale level at which a layer >> will become >> >> visible. But I am a bit confused.When the map loads for the first >> >> time it has a zoom level of 7 as given in the code below. >> >> >> >> map.setCenter(new OpenLayers.LonLat(74.25, 20.35), 7); >> >> >> >> In terms of scale it is showing 1:3M. >> >> What is M? >> >> If I increase the zoom level i.e do zoom in, scale becomes >> 1:856K and >> >> 1:256K etc i.e scale decreases. So If want a layer to be >> visible at a >> >> scale level of 1:2M what do I write in the mapfile? >> >> >> >> How to use TileCache or GeoWebCache?Pls give the js code. >> >> >> >> >> >> Rahkonen Jukka wrote: >> >>> >> >>> Hi, >> >>> >> >>> Mapserver is somehow documented, about adjusting visibility >> >>> according to scale, try to find MAXSCALEDENOM/MINSCALEDENOM from >> >>> http://www.mapserver.org/mapfile/layer.html#index-21 >> >>> >> >>> Mapserver does not do caching but you can use for examply >> TileCache >> >>> or GeoWebCache between your clients and Mapserver. >> >>> >> >>> -Jukka Rahkonen- >> >>> >> >>> >> >>> >> >>>> -----Alkuper?inen viesti----- >> >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta sunny74 >> >>>> L?hetetty: 28. elokuuta 2009 14:53 >> >>>> Vastaanottaja: mapserver-users at lists.osgeo.org >> >>>> Aihe: [mapserver-users] turning on layers at a particular zoom >> >>>> level >> >>>> >> >>>> >> >>>> DEar Friends, >> >>>> >> >>>> I have 12 layers in my map and it is taking tooooo long to >> >>>> load.Therefore I decided to turn on only 2 layers at Page Load. >> >>>> >> >>>> Rest of the layers I want to turn on at a particular zoom >> >>>> level.How can I check the zoom level and turn on these layers. >> >>>> >> >>>> How can make the map load faster especially on page >> reload? Is it >> >>>> possible to cache the map or is there some other technique? >> >>>> >> >>>> Thanks for ur reply. >> >>>> >> >>>> -- >> >>>> View this message in context: >> >>>> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le >> >>>> vel-tp3534156p3534156.html >> >>>> Sent from the Mapserver - User mailing list archive at >> Nabble.com. >> >>>> _______________________________________________ >> >>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>>> >> >>> _______________________________________________ >> >>> mapserver-users mailing list >> >>> mapserver-users at lists.osgeo.org >> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>> >> >>> >> >> >> >> -- >> >> View this message in context: >> >> >> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3 >> >> 534156p3534743.html Sent from the Mapserver - User mailing list >> >> archive at Nabble.com. >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > >> > -- >> > View this message in context: >> > >> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp35 >> > 34156p3540787.html Sent from the Mapserver - User mailing >> list archive >> > at Nabble.com. >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> -- >> View this message in context: >> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le >> vel-tp3534156p3566414.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3566575.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Wed Sep 2 06:25:30 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 02 Sep 2009 09:25:30 -0400 Subject: [mapserver-users] Where to find symbols_mapinfo.sym In-Reply-To: <4A9E40D9.2030302@cuperus.nl> References: <4A9E40D9.2030302@cuperus.nl> Message-ID: <4A9E724A.7080905@mapgears.com> Marc Weustink wrote: > Hi, > > When using styleitem "auto" on mapinfo source in mapserver, the doc says > that for a quick solution I can use > http://www2.dmsolutions.ca/msapps/yk_demo/etc/symbols_mapinfo.sym > However access to that server is denied. > Are there any other examples floating around I can try ? > The www2.dmsolutions.ca server had a hardware problem and has been decommissioned, so we need to reinstall those demos somewhere else and update the docs. There is already a ticket about this: http://trac.osgeo.org/mapserver/ticket/3104 In the meantime, I have attached to this email a copy of the symbols_mapinfo.sym file. Daniel -- Daniel Morissette http://www.mapgears.com/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: symbols_mapinfo.sym URL: From sb.ray at hotmail.com Wed Sep 2 06:28:23 2009 From: sb.ray at hotmail.com (sunny74) Date: Wed, 2 Sep 2009 08:28:23 -0500 (CDT) Subject: [mapserver-users] check if a layer exists and remove it Message-ID: <1251898103785-3566636.post@n2.nabble.com> Hi, I am declaring a layer at PageLoad in the following way: choice_features = new OpenLayers.Layer.Vector("choice_features", { style: v_style }); Then I am adding the layer in a different function as below: map.addLayer(new OpenLayers.Layer.GML("choice_features", "XML1/FeatureGML.xml")); But I want to check if this layer exists and remove it before adding it to the map using the addLayer function. This will ensure that the layer is created afresh with every fresh request. For this I have done the following but it doesn't work: if (map.getLayersByName("choice_features") != null) { map.layers["choice_features"].removeFeatures(map.layers["choice_features"].features); //alert("layer removed"); } But I get error in the getLayersByName() function.It says object doesn't support this property. Can u suggest an alternative method. Thanks. -- View this message in context: http://n2.nabble.com/check-if-a-layer-exists-and-remove-it-tp3566636p3566636.html Sent from the Mapserver - User mailing list archive at Nabble.com. From liste at geo-dienstleistung.de Wed Sep 2 05:39:28 2009 From: liste at geo-dienstleistung.de (Frank Broniewski) Date: Wed, 2 Sep 2009 14:39:28 +0200 Subject: [mapserver-users] mapfile and data encoding Message-ID: <200909021439.29303.liste@geo-dienstleistung.de> Hello list, unfortunately I have to work with data in different encodings. Most of my data is in UTF-8 in a Postgis Database, so I decided to go with the mapfile encoding in UTF-8 as well. Some shapefiles I have are in windows-1252 or iso-8859-1 and have of course special characters in some fields. And I need to filter the data on these fields. So my question is: can I somehow escape the special characters to iso-8859-1 in my utf-8 mapfile so that the expression matches the data in the shapefile? Because right now I get a blank map. Obviously simply using the character "as is" in the mapfile does not work. I tried creating the character in iso-8859-1 in the console but I only get a diamond with a question mark in it and this doesn't work neither. I found out that the sequence for ? is 0xc3a9 but I don't know what to do with that information ... Many thanks Frank From pen at orbicon.dk Wed Sep 2 07:03:26 2009 From: pen at orbicon.dk (Peter N) Date: Wed, 2 Sep 2009 09:03:26 -0500 (CDT) Subject: [mapserver-users] Error displaying layer with tileindex of TAB files Message-ID: <1251900206519-3566728.post@n2.nabble.com> I have 133 TAB files that i want to display as a single layer. I have used OGRTINDEX to create an indexfile (hojde_idx.tab) pointing out the TAB files. LAYER NAME "Kurver" DEBUG 5 TYPE LINE STATUS OFF CONNECTIONTYPE OGR TILEINDEX "C:\WebGraf_kort\proj\Herning\Hojdekurver\hojde_idx.tab" CLASS COLOR 150 150 150 END END When i turn the layer on i get the following error in my log file: [Wed Sep 02 15:23:23 2009].936000 msOGRFileOpen(C:\WebGraf_kort\proj\Herning\Hojdekurver\4km_6228_492.TAB,0)... [Wed Sep 02 15:23:23 2009].936000 OGROPen(C:\WebGraf_kort\proj\Herning\Hojdekurver\4km_6228_492.TAB) [Wed Sep 02 15:23:23 2009].951000 msConnPoolRegister(Kurver,(null),15912010) [Wed Sep 02 15:23:23 2009].951000 msConnPoolRegister(): Missing CONNECTION on layer Kurver. [Wed Sep 02 15:23:23 2009].951000 msConnPoolRegister(): General error message. Missing CONNECTION on layer Kurver. It seems like MapServer can't find my TAB files, so i have tried setting SHAPEPATH, creating the tileindex with relative paths, but nothing seems to help me. Peter -- View this message in context: http://n2.nabble.com/Error-displaying-layer-with-tileindex-of-TAB-files-tp3566728p3566728.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Wed Sep 2 07:10:54 2009 From: andy at squeakycode.net (Andy Colson) Date: Wed, 02 Sep 2009 09:10:54 -0500 Subject: [mapserver-users] MapServer 5.2.1 performance In-Reply-To: <288C13941457C34CB3081F058BB1965C766A32@sageograma.GEO-I.local> References: <1251302171603-3516379.post@n2.nabble.com> <4A96931D.3060001@squeakycode.net> <288C13941457C34CB3081F058BB1965C766A32@sageograma.GEO-I.local> Message-ID: <4A9E7CEE.1090309@squeakycode.net> Gorka L?pez Rivacoba wrote: > Hi Andy, > > Thanks for your response. > > I get the timings using mapfile debug (level 3). Besides, I use JMeter to ask for random tiles and get the elapsed time. With these times, I have done some changes: > > * I clean the coordinate system definitions that I don't use (this change is very important for the elapsed time) Could you elaborate on this? What does this mean? > > * I see that most of the layers spent around 0,015 seconds for each. Some layers spent around 0.25 seconds and I could see that these layers have few geometries very complex (I try to break these geometries in others simpler) As I see it, you have two options: 1) Make an individual request faster (hard to do) 2) Reduce the number of requests (easier, and different options) Do you really need all 120 layers? For one tile you have to make 120 requests. If it takes 4 tiles to fill out your map, thats 4 * 120 = 480 requests. If you could combine a few layers you would reduce the number of requests, and improve performance. Have you tried using multiple urls in OpenLayers? see: http://openlayers.org/dev/examples/multiserver.html Have you used firebug to watch it load? It has a nice pretty graph that shows which requests are concurrent, the time for each, etc, etc. If you can switch any of your layers to load as a single tile that would also cut down the number of requests (from 4 to 1 in the example above). -Andy From crschmidt at metacarta.com Wed Sep 2 07:22:34 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 2 Sep 2009 10:22:34 -0400 Subject: [mapserver-users] MapServer 5.2.1 performance In-Reply-To: <4A9E7CEE.1090309@squeakycode.net> References: <1251302171603-3516379.post@n2.nabble.com> <4A96931D.3060001@squeakycode.net> <288C13941457C34CB3081F058BB1965C766A32@sageograma.GEO-I.local> <4A9E7CEE.1090309@squeakycode.net> Message-ID: <20090902142234.GB11853@metacarta.com> On Wed, Sep 02, 2009 at 09:10:54AM -0500, Andy Colson wrote: >> >> * I see that most of the layers spent around 0,015 seconds for each. Some layers spent around 0.25 seconds and I could see that these layers have few geometries very complex (I try to break these geometries in others simpler) > > As I see it, you have two options: > > 1) Make an individual request faster (hard to do) > 2) Reduce the number of requests (easier, and different options) > > Do you really need all 120 layers? For one tile you have to make 120 > requests. If it takes 4 tiles to fill out your map, thats 4 * 120 = 480 > requests. If you could combine a few layers you would reduce the > number of requests, and improve performance. Er, I think your'e confused. His *mapfile* has 120 layers -- 40 of which are 'within range', 80 of which are not, and he's putting those 40 layers into one tile. (This is large, but not excessive; the Boston Freemap had something like 60 layers, and was a pretty simple map, all things considered.) I could be reading this wrong, but I think you're misunderstanding the problem. -- Chris > Have you tried using multiple urls in OpenLayers? > > see: > http://openlayers.org/dev/examples/multiserver.html > > Have you used firebug to watch it load? It has a nice pretty graph that > shows which requests are concurrent, the time for each, etc, etc. > > If you can switch any of your layers to load as a single tile that would > also cut down the number of requests (from 4 to 1 in the example above). > > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From Steve.Lime at dnr.state.mn.us Wed Sep 2 07:47:59 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Sep 2009 09:47:59 -0500 Subject: [mapserver-users] OGR shapefile w/MySQL Join Message-ID: <4A9E3F4E.5157.008F.0@dnr.state.mn.us> Hi all: Anyone have a sample configuration for creating an OGR layer joined to a MySQL table? The MySQL table has no spatial component. I believe it's possible but haven't stumbled upon a concrete example showing how. Figured better just to ask... Thanks. Steve From andy at squeakycode.net Wed Sep 2 08:04:45 2009 From: andy at squeakycode.net (Andy Colson) Date: Wed, 02 Sep 2009 10:04:45 -0500 Subject: [mapserver-users] MapServer 5.2.1 performance In-Reply-To: <20090902142234.GB11853@metacarta.com> References: <1251302171603-3516379.post@n2.nabble.com> <4A96931D.3060001@squeakycode.net> <288C13941457C34CB3081F058BB1965C766A32@sageograma.GEO-I.local> <4A9E7CEE.1090309@squeakycode.net> <20090902142234.GB11853@metacarta.com> Message-ID: <4A9E898D.10007@squeakycode.net> Wow... Yeah, I totally missed that. I need to stop drinking the heavy liquor in the morning. :-) -Andy Christopher Schmidt wrote: > On Wed, Sep 02, 2009 at 09:10:54AM -0500, Andy Colson wrote: >>> * I see that most of the layers spent around 0,015 seconds for each. Some layers spent around 0.25 seconds and I could see that these layers have few geometries very complex (I try to break these geometries in others simpler) >> As I see it, you have two options: >> >> 1) Make an individual request faster (hard to do) >> 2) Reduce the number of requests (easier, and different options) >> >> Do you really need all 120 layers? For one tile you have to make 120 >> requests. If it takes 4 tiles to fill out your map, thats 4 * 120 = 480 >> requests. If you could combine a few layers you would reduce the >> number of requests, and improve performance. > > Er, I think your'e confused. His *mapfile* has 120 layers -- 40 of which > are 'within range', 80 of which are not, and he's putting those > 40 layers into one tile. (This is large, but not excessive; the Boston > Freemap had something like 60 layers, and was a pretty simple map, all > things considered.) > > I could be reading this wrong, but I think you're misunderstanding the > problem. > > -- Chris > > >> Have you tried using multiple urls in OpenLayers? >> >> see: >> http://openlayers.org/dev/examples/multiserver.html >> >> Have you used firebug to watch it load? It has a nice pretty graph that >> shows which requests are concurrent, the time for each, etc, etc. >> >> If you can switch any of your layers to load as a single tile that would >> also cut down the number of requests (from 4 to 1 in the example above). >> >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From PGiannini at bytewise.it Wed Sep 2 08:12:56 2009 From: PGiannini at bytewise.it (Giannini Pietro) Date: Wed, 2 Sep 2009 17:12:56 +0200 Subject: R: [mapserver-users] OGR shapefile w/MySQL Join In-Reply-To: <4A9E3F4E.5157.008F.0@dnr.state.mn.us> References: <4A9E3F4E.5157.008F.0@dnr.state.mn.us> Message-ID: <43411A0E963AFB438880E632F990D81730D1E6AF@EXCHANGE.bytewise.local> Steve, I'm able to create an OGR layer in connection to a mysql table with x/y information, otherwise if you want to join a shapefile layer with a mysql table there is the JOIN object within a LAYER defined in the mapfile (http://mapserver.org/mapfile/join.html)... Sorry, I never tried... ....................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -----Messaggio originale----- Da: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di Steve Lime Inviato: mercoled? 2 settembre 2009 16.48 A: mapserver-users at lists.osgeo.org Oggetto: [mapserver-users] OGR shapefile w/MySQL Join Hi all: Anyone have a sample configuration for creating an OGR layer joined to a MySQL table? The MySQL table has no spatial component. I believe it's possible but haven't stumbled upon a concrete example showing how. Figured better just to ask... Thanks. Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jhevenor at rogers.com Wed Sep 2 10:18:16 2009 From: jhevenor at rogers.com (Josh Hevenor) Date: Wed, 02 Sep 2009 13:18:16 -0400 Subject: [mapserver-users] KML Export In-Reply-To: <4A9DA9D60200008F00027E71@co5.dnr.state.mn.us> References: <4A9DA9D60200008F00027E71@co5.dnr.state.mn.us> Message-ID: <4A9EA8D8.9020406@rogers.com> That approach worked perfectly! Thanks Steve, Plus, if you access the layer in question through a service (wms getfeatureinfo) then you have a makeshift (standards non-compliant?) KML web service. I noticed on the template side that [shpclass] gives an index. Not a problem, my style IDs are hard wired anyway. I was wondering what mechanisms are available to use this index (what does it access) in the template context? Thanks again, this was a great help, Josh Steve Lime wrote: > Josh, you can use MapServer templates to do this sort of thing. With this approach > you can control most aspects of the output file because you have to write the > basics. MapServer then adds feature specific things like geometries and attributes > based on your template. You can run this nightly using a command line approach > like so: > > mapserv -nh "QUERY_STRING=map=your.map&mode=nsquery&qformat=mykml&layer=somelayer" > somelayer.kml > > The -nh surpresses the http headers so you can redirect your output to a file easily. > > This approach does not convert MapServer styling to KML, you'd need to make that > part of your template. You can also build multi layer KML with this approach with one > template used to represent multiple layers. Let me know if you need an example. > > Steve > > >>>> Josh Hevenor 09/01/09 6:21 PM >>> >>>> > I've been using the ogr2ogr kml exporter to build some nightly conversions > of shape data. I'm wondering if there's a way to include symbolization > here...something that accepts a mapfile and a layername (or just a > mapfile, or whatever) and exports kml. > > Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have > nicely symbolized features coming outbut no attributes. > > Has anyone used open source tools and gotten both? Any advice would be > appreciated. If anyone has advice on an Arc approach they can contact me > off-list. > > Thanks, > > Josh > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.409 / Virus Database: 270.13.74/2339 - Release Date: 09/01/09 06:52:00 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Sep 2 11:33:36 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 02 Sep 2009 14:33:36 -0400 Subject: [mapserver-users] MapServer 5.2.1 performance In-Reply-To: <1251302171603-3516379.post@n2.nabble.com> References: <1251302171603-3516379.post@n2.nabble.com> Message-ID: <4A9EBA80.6030008@mapgears.com> Gorka Lopez wrote: > > * 18 millisecods per non-visible layer (layers that are not visible in the > map' scale (80 layers)) > > Is there any solution to improve this results (I just use tilechache > metatile property)? I think that 18 milliseconds per non-visible layer is > too much (only for evaluating wether the requested tile is contained in the > layer's min/max scale) > Do you use MINSCALEDENOM/MAXSCALEDENOM in your layer definition in the mapserver mapfile? If yes then the time should be zero (or < 1 msec) for layers that are out of scale. Or did you instead mean that it takes 18msecs to process layers whose data is outside of the requested tile extents? That could be explained by the fact that I think the postgis driver does not know the data extents until it queries the database and has no way to tell that a layer has no visible features for a given extent until it runs the query on the database. A way to force MapServer to skip those layers would be to set EXTENT in each layer to a valid value (the data extents for each layer). Then if a given layer's EXTENT value does not overlap the extents of the requested tile it should be skipped right away. Note that I didn't test this just now, but this is my understanding of the way the postgis driver works in MapServer. Daniel -- Daniel Morissette http://www.mapgears.com/ From Tim.Nolte at ipcswirelessinc.com Wed Sep 2 12:50:20 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 2 Sep 2009 15:50:20 -0400 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol Message-ID: Does anyone have any ideas of how to convert an SVG/EPS/PS file to something so that I can use it as a symbol on my map? I've searched and searched for some sort of application that will convert it to something I can use, no luck. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From yjacolin at free.fr Wed Sep 2 12:53:02 2009 From: yjacolin at free.fr (Yves Jacolin (free)) Date: Wed, 2 Sep 2009 21:53:02 +0200 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol In-Reply-To: References: Message-ID: <200909022153.03054.yjacolin@free.fr> Le mercredi 02 septembre 2009, Nolte, Tim a ?crit?: > Does anyone have any ideas of how to convert an SVG/EPS/PS file to > something so that I can use it as a symbol on my map? I've searched and > searched for some sort of application that will convert it to something > I can use, no luck. > > - Tim Tim, You can try imagemagick [1] ;) Y. [1] http://www.imagemagick.org/script/index.php -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From Tim.Nolte at ipcswirelessinc.com Wed Sep 2 12:56:31 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 2 Sep 2009 15:56:31 -0400 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol In-Reply-To: <200909022153.03054.yjacolin@free.fr> References: <200909022153.03054.yjacolin@free.fr> Message-ID: Looks like I forgot to mention that my desire is to convert to a vector format that I can use. It's no problem for me to create a bitmap to use but bitmaps don't scale as well as vector. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Yves Jacolin (free) [mailto:yjacolin at free.fr] Sent: Wednesday, September 02, 2009 3:53 PM To: mapserver-users at lists.osgeo.org Cc: Nolte, Tim Subject: Re: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol Le mercredi 02 septembre 2009, Nolte, Tim a ?crit?: > Does anyone have any ideas of how to convert an SVG/EPS/PS file to > something so that I can use it as a symbol on my map? I've searched and > searched for some sort of application that will convert it to something > I can use, no luck. > > - Tim Tim, You can try imagemagick [1] ;) Y. [1] http://www.imagemagick.org/script/index.php -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From Bob.Basques at ci.stpaul.mn.us Wed Sep 2 13:17:05 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 02 Sep 2009 15:17:05 -0500 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol In-Reply-To: References: <200909022153.03054.yjacolin@free.fr> Message-ID: <4A9E8C71.163B.00A8.0@ci.stpaul.mn.us> A thought, is there a SVG to TrueType font convertor anywhere, this would allow for the symbol scaling . . . bobb >>> "Nolte, Tim" wrote: Looks like I forgot to mention that my desire is to convert to a vector format that I can use. It's no problem for me to create a bitmap to use but bitmaps don't scale as well as vector. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Yves Jacolin (free) [mailto:yjacolin at free.fr] Sent: Wednesday, September 02, 2009 3:53 PM To: mapserver-users at lists.osgeo.org Cc: Nolte, Tim Subject: Re: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol Le mercredi 02 septembre 2009, Nolte, Tim a ?crit : > Does anyone have any ideas of how to convert an SVG/EPS/PS file to > something so that I can use it as a symbol on my map? I've searched and > searched for some sort of application that will convert it to something > I can use, no luck. > > - Tim Tim, You can try imagemagick [1] ;) Y. [1] http://www.imagemagick.org/script/index.php -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org _______________________________________________ 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 Tim.Nolte at ipcswirelessinc.com Wed Sep 2 13:19:49 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 2 Sep 2009 16:19:49 -0400 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as aSymbol In-Reply-To: <4A9E8C71.163B.00A8.0@ci.stpaul.mn.us> References: <200909022153.03054.yjacolin@free.fr> <4A9E8C71.163B.00A8.0@ci.stpaul.mn.us> Message-ID: That's exactly the sort of thing I'm looking for. There is an app called FontForge that I found but it wasn't very easy to use ask I basically had to know everything there is about what goes into creating fonts. Actually I had to install this on my home Mac as there is no Windows build that works without Cygwin and X. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Wednesday, September 02, 2009 4:17 PM To: Yves Jacolin (free); Nolte, Tim; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Convert SVG/EPS/PS File for Use as aSymbol A thought, is there a SVG to TrueType font convertor anywhere, this would allow for the symbol scaling . . . bobb >>> "Nolte, Tim" wrote: Looks like I forgot to mention that my desire is to convert to a vector format that I can use. It's no problem for me to create a bitmap to use but bitmaps don't scale as well as vector. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Yves Jacolin (free) [mailto:yjacolin at free.fr] Sent: Wednesday, September 02, 2009 3:53 PM To: mapserver-users at lists.osgeo.org Cc: Nolte, Tim Subject: Re: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol Le mercredi 02 septembre 2009, Nolte, Tim a ?crit : > Does anyone have any ideas of how to convert an SVG/EPS/PS file to > something so that I can use it as a symbol on my map? I've searched and > searched for some sort of application that will convert it to something > I can use, no luck. > > - Tim Tim, You can try imagemagick [1] ;) Y. [1] http://www.imagemagick.org/script/index.php -- Yves Jacolin ------------- "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du pouvoir, de la puissance d'agir." M Gauchet "Give freedom to people is not enough, we also have to give them the power to use this freedom, to act". M Gauchet ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Sep 2 14:36:04 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Sep 2009 16:36:04 -0500 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as aSymbol In-Reply-To: References: <200909022153.03054.yjacolin@free.fr> <4A9E8C71.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4A9E9EF4.5157.008F.0@dnr.state.mn.us> It ain't free but I've used FontCreator (http://www.high-logic.com/fontcreator.html) at work to create fonts including importing simple drawings from Illustrator. Was a pretty straight forward package to use if I remember right. Steve >>> On 9/2/2009 at 3:19 PM, in message , "Nolte, Tim" wrote: > That's exactly the sort of thing I'm looking for. There is an app called > FontForge that I found but it wasn't very easy to use ask I basically had to > know everything there is about what goes into creating fonts. Actually I had > to install this on my home Mac as there is no Windows build that works > without Cygwin and X. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] > Sent: Wednesday, September 02, 2009 4:17 PM > To: Yves Jacolin (free); Nolte, Tim; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Convert SVG/EPS/PS File for Use as aSymbol > > A thought, is there a SVG to TrueType font convertor anywhere, this would > allow for the symbol scaling . . . > > > bobb > > > > > >>>> "Nolte, Tim" wrote: > > > Looks like I forgot to mention that my desire is to convert to a vector > format that I can use. It's no problem for me to create a bitmap to use but > bitmaps don't scale as well as vector. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Yves Jacolin (free) [mailto:yjacolin at free.fr] > Sent: Wednesday, September 02, 2009 3:53 PM > To: mapserver-users at lists.osgeo.org > Cc: Nolte, Tim > Subject: Re: [mapserver-users] Convert SVG/EPS/PS File for Use as a Symbol > > Le mercredi 02 septembre 2009, Nolte, Tim a ?crit : >> Does anyone have any ideas of how to convert an SVG/EPS/PS file to >> something so that I can use it as a symbol on my map? I've searched and >> searched for some sort of application that will convert it to something >> I can use, no luck. >> >> - Tim > > Tim, > > You can try imagemagick [1] ;) > > Y. > [1] http://www.imagemagick.org/script/index.php > -- > Yves Jacolin > ------------- > "Donner la libert? aux individus ne suffit pas, il faut aussi leur donner du > pouvoir, de la puissance d'agir." M Gauchet > > "Give freedom to people is not enough, we also have to give them the power > to use this freedom, to act". M Gauchet > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Sep 2 14:41:01 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Sep 2009 16:41:01 -0500 Subject: [mapserver-users] KML Export In-Reply-To: <4A9EA8D8.9020406@rogers.com> References: <4A9DA9D60200008F00027E71@co5.dnr.state.mn.us> <4A9EA8D8.9020406@rogers.com> Message-ID: <4A9EA01C.5157.008F.0@dnr.state.mn.us> There are no mechanisms to access class data via index. You have to maintain some external representation and use the index that way. Forces you to keep the internal and external representations in the same order though. Steve >>> On 9/2/2009 at 12:18 PM, in message <4A9EA8D8.9020406 at rogers.com>, Josh Hevenor wrote: > That approach worked perfectly! Thanks Steve, > > Plus, if you access the layer in question through a service (wms > getfeatureinfo) then you have a makeshift (standards non-compliant?) > KML web service. > > I noticed on the template side that [shpclass] gives an index. Not a > problem, my style IDs are hard wired anyway. I was wondering what > mechanisms are available to use this index (what does it access) in the > template context? > > Thanks again, this was a great help, > > Josh > > Steve Lime wrote: >> Josh, you can use MapServer templates to do this sort of thing. With this > approach >> you can control most aspects of the output file because you have to write > the >> basics. MapServer then adds feature specific things like geometries and > attributes >> based on your template. You can run this nightly using a command line > approach >> like so: >> >> mapserv -nh > "QUERY_STRING=map=your.map&mode=nsquery&qformat=mykml&layer=somelayer" > > somelayer.kml >> >> The -nh surpresses the http headers so you can redirect your output to a file > easily. >> >> This approach does not convert MapServer styling to KML, you'd need to make > that >> part of your template. You can also build multi layer KML with this approach > with one >> template used to represent multiple layers. Let me know if you need an > example. >> >> Steve >> >> >>>>> Josh Hevenor 09/01/09 6:21 PM >>> >>>>> >> I've been using the ogr2ogr kml exporter to build some nightly conversions >> of shape data. I'm wondering if there's a way to include symbolization >> here...something that accepts a mapfile and a layername (or just a >> mapfile, or whatever) and exports kml. >> >> Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have >> nicely symbolized features coming outbut no attributes. >> >> Has anyone used open source tools and gotten both? Any advice would be >> appreciated. If anyone has advice on an Arc approach they can contact me >> off-list. >> >> Thanks, >> >> Josh >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.5.409 / Virus Database: 270.13.74/2339 - Release Date: 09/01/09 > 06:52:00 >> >> From natancalzolari at gmail.com Wed Sep 2 16:25:52 2009 From: natancalzolari at gmail.com (=?ISO-8859-1?Q?Nat=E1n?=) Date: Wed, 2 Sep 2009 20:25:52 -0300 Subject: [mapserver-users] Re: Opening layer with PHP/Mapscript Message-ID: Thank you for answering. The problem was that the shapefile was named "distrito.dbf" and the DBF file was named "Distrito.dbf", and Linux is case sensitive, so it didn't really find the file. Sorry for wasting your time, and thanks again. Nat?n > Nat?n, > I cannot reproduce this error, but normally I query the layer first (query functions are queryByPoint, queryByRect, queryByShape ...) then I invoke the open() function to read attributes of shapes: > > > ? ? ? ? ? ? ? ?$qLay = $oMap->getLayerByName('europa'); > ? ? ? ? ? ? ? ?$qLay->queryByRect($oMap->extent); > ? ? ? ? ? ? ? ?$results = $qLay->getNumResults(); > ? ? ? ? ? ? ? ?echo $results."
\n"; > ? ? ? ? ? ? ? ?if ($results > 0) { > ? ? ? ? ? ? ? ? ? ? ? ?$qLay->open(); > ? ? ? ? ? ? ? ? ? ? ? ?for ($i=0;$i<$results;$i++){ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$res = $qLay->getresult($i); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$feature = $qLay->getShape($res->tileindex,$res->shapeindex); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ($feature){ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?echo "country: ".$feature->values['CNTRYNAME']."
\n"; > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ? ? ? ? ?$qLay->close(); > ? ? ? ? ? ? ? ?} > > > This works in MapServer 5.2.1. > Bye. > ..................................pg > > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > -----Messaggio originale----- > Da: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di Nat?n > Inviato: mercoled? 2 settembre 2009 9.46 > A: mapserver-users at lists.osgeo.org > Oggetto: [mapserver-users] Opening layer with PHP/Mapscript > > In my PHP code I do: > > $map = ms_newMapObj("docs/distrito.map"); > $layer = $map->getLayerByName("Distrito"); > $layer->open(); > > The open() method returns me a warning like this: > > Warning: [MapServer Error]: msShapefileOpen(): > (/var/www/ajax/docs/distrito.dbf) in /var/www/ajax/index.php on line 6 > > I know the map has loaded properly because I tried echoing > $map->numlayers and it outputs the number of layers correctly. > Also, the layer has loaded properly; I tried echoing > $layer->numclasses and it outputs correctly. > > But when trying to use the open method, I get that problem. It points > at the .DBF file, I don't know which could be the problem. > > Any help would be amazing. > > Nat?n From bob.b at gritechnologies.com Wed Sep 2 18:13:37 2009 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 02 Sep 2009 20:13:37 -0500 Subject: [mapserver-users] Convert SVG/EPS/PS File for Use as aSymbol In-Reply-To: <4A9E9EF4.5157.008F.0@dnr.state.mn.us> References: <200909022153.03054.yjacolin@free.fr> <4A9E8C71.163B.00A8.0@ci.stpaul.mn.us> <4A9E9EF4.5157.008F.0@dnr.state.mn.us> Message-ID: <4A9F1841.3020908@gritechnologies.com> Another possible option might be to do some sort of pipeline conversion like . . . . SVG --> Postscript --> TrueType or some other combination. bobb Steve Lime wrote: > It ain't free but I've used FontCreator > (http://www.high-logic.com/fontcreator.html) at work to > create fonts including importing simple drawings from Illustrator. Was > a pretty straight forward > package to use if I remember right. > > Steve > > >>>> On 9/2/2009 at 3:19 PM, in message >>>> > , "Nolte, > Tim" > wrote: > >> That's exactly the sort of thing I'm looking for. There is an app >> > called > >> FontForge that I found but it wasn't very easy to use ask I basically >> > had to > >> know everything there is about what goes into creating fonts. >> > Actually I had > >> to install this on my home Mac as there is no Windows build that >> > works > >> without Cygwin and X. >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] >> Sent: Wednesday, September 02, 2009 4:17 PM >> To: Yves Jacolin (free); Nolte, Tim; mapserver-users at lists.osgeo.org >> > > >> Subject: RE: [mapserver-users] Convert SVG/EPS/PS File for Use as >> > aSymbol > >> A thought, is there a SVG to TrueType font convertor anywhere, this >> > would > >> allow for the symbol scaling . . . >> >> >> bobb >> >> >> >> >> >> >>>>> "Nolte, Tim" wrote: >>>>> >> Looks like I forgot to mention that my desire is to convert to a >> > vector > >> format that I can use. It's no problem for me to create a bitmap to >> > use but > >> bitmaps don't scale as well as vector. >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: Yves Jacolin (free) [mailto:yjacolin at free.fr] >> Sent: Wednesday, September 02, 2009 3:53 PM >> To: mapserver-users at lists.osgeo.org >> Cc: Nolte, Tim >> Subject: Re: [mapserver-users] Convert SVG/EPS/PS File for Use as a >> > Symbol > >> Le mercredi 02 septembre 2009, Nolte, Tim a ?crit : >> >>> Does anyone have any ideas of how to convert an SVG/EPS/PS file to >>> something so that I can use it as a symbol on my map? I've searched >>> > and > >>> searched for some sort of application that will convert it to >>> > something > >>> I can use, no luck. >>> >>> - Tim >>> >> Tim, >> >> You can try imagemagick [1] ;) >> >> Y. >> [1] http://www.imagemagick.org/script/index.php >> -- >> Yves Jacolin >> ------------- >> "Donner la libert? aux individus ne suffit pas, il faut aussi leur >> > donner du > >> pouvoir, de la puissance d'agir." M Gauchet >> >> "Give freedom to people is not enough, we also have to give them the >> > power > >> to use this freedom, to act". M Gauchet >> ------------- >> http://yjacolin.gloobe.org >> http://softlibre.gloobe.org >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at gisnet.com Wed Sep 2 19:26:13 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Wed, 02 Sep 2009 20:26:13 -0600 Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: <1251896644794-3566575.post@n2.nabble.com> References: <1251460371790-3534156.post@n2.nabble.com> <1251467096433-3534743.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us> <1251529272378-3540787.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> <1251894630372-3566414.post@n2.nabble.com> <1251896644794-3566575.post@n2.nabble.com> Message-ID: <4A9F2945.5070407@gisnet.com> sunny74 wrote: > Hi, > > Thanks for ur reply. > 1)What is the syntax for send request against a Group? > 2)If I just write the name of the group within layer then will it be placed > against the group? > 3) What is the syntax for checking the zoom level of a map so that once a > zoom level is reached I can call a group of layers? > 1. You call it just like you do a layer. Just use the group name instead of the file name. 2. Yes. 3. Just make separate LAYERs as you do normally, but do a set for each scale zone, and then assign MAX ansd MIN SCALEDENOM for each one so that when you only one set is active at any scale. (i.e., don't overlap scale intervals) I don't know happens at the transition points though. For example, suppose you have your large scale symbology visible from a MINSCALEDENOM of 1 to a MAAXSCALEDENOM of 100,000. Then at 100,000, your small scale symbology layers take over. But what happens at 100,000? Do you get both layer sets, or neither? Or does it do something clever like MINSCALEDENOM starts right on the value and up, while the MAXSCALEDENOM goes up to, but never equals the specified value? Maybe while you're at it, could you check that and let us know? Also, you ought to look this over: http://www.mapserver.org/mapfile/ In particular, check out MIN and MAXSCALEDENOM under "LAYER". Good luck! - Bill Thoen From gluker at scu.edu.au Wed Sep 2 23:15:09 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 03 Sep 2009 16:15:09 +1000 Subject: [mapserver-users] OGR shapefile w/MySQL Join In-Reply-To: <4A9E3F4E.5157.008F.0@dnr.state.mn.us> References: <4A9E3F4E.5157.008F.0@dnr.state.mn.us> Message-ID: <200909030614.n836EmjD003847@atom.scu.edu.au> Hi mapservers, At 12:47 AM 3/09/2009, Steve Lime wrote: >Hi all: Anyone have a sample configuration for creating an OGR layer >joined to a MySQL table? The >MySQL table has no spatial component. I believe it's possible but >haven't stumbled upon a concrete >example showing how. Figured better just to ask... Thanks. I'd be really interested to see how you get this to work, Steve. I cannot get the JOIN command to work, even on a simple csv file. Here's what I have tried: LAYER NAME "squares" TYPE POLYGON STATUS ON DATA "squares" CLASS ... END TOLERANCE 20 TEMPLATE "testm_template.html" HEADER "testm_header.html" FOOTER "testm_footer.html" JOIN NAME "jointest" TABLE "testm.csv" FROM "IDENT" TO "id" END END #of layer testm.csv is in the same directory as the mapfile. The shapefile (squares) shows up fine, but querying it gives this message: Status: 302 Found Uri: http://.../errors/errors.html Location: http://.../errors/errors.html Content-type: text/html and this debug message: [Thu Sep 3 15:37:43 2009].493754 msDBFJoinConnect(): Unable to access file. (testm.csv) Commenting out the JOIN lines gives correct expected results, so I assume everything else is in the right place (including template files). I've tried a few variations of "testm.csv" - like "'testm.csv'" and "/full/pathname/to/testm.csv" but still no luck. I tried JOINing a shape to an OGR MySQL table, but that didn't work, which is why I dropped back to testing with a simple csv JOIN. Any ideas? Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From gilles.tasse at alyotech.fr Thu Sep 3 00:13:53 2009 From: gilles.tasse at alyotech.fr (TASSE Gilles) Date: Thu, 3 Sep 2009 09:13:53 +0200 Subject: [mapserver-users] TR: SLD_BODY - getlegendgraphics Message-ID: <06A7AD4E92172446ADDEB44F8A5D5C1009FE307C58@ARE01.alyotech.fr> Hello, I am trying to get a image of my legend via legendGraphic using SLD_BODY but the SLD_BODY param is ignored and I always have the style that is defined for the layer in the mapfile. Here is my request : http://gis.api.fr/geoserv/?REQUEST=GetLegendGraphic&LAYER=troncon_vue&WIDTH=20&HEIGHT=20&SLD_BODY=xxx%230000002&VERSION=1.1.1&FORMAT=image/png I am tried both on a linux and windows mapServer version. Would you have a suggestion ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Sep 3 00:17:42 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 3 Sep 2009 09:17:42 +0200 (CEST) Subject: [mapserver-users] TR: SLD_BODY - getlegendgraphics In-Reply-To: <06A7AD4E92172446ADDEB44F8A5D5C1009FE307C58@ARE01.alyotech.fr> References: <06A7AD4E92172446ADDEB44F8A5D5C1009FE307C58@ARE01.alyotech.fr> Message-ID: <14112.145.50.39.11.1251962262.squirrel@webmail.hostingdiscounter.nl> Hi, your SLD_BODY is only a fragment of an SLD document, it is not complete. An SLD starts with a StyledLayerDescriptor root tag. Bart > Hello, > > I am trying to get a image of my legend via legendGraphic using SLD_BODY > but the SLD_BODY param is ignored and I always have the style that is > defined for the layer in the mapfile. > Here is my request : > > http://gis.api.fr/geoserv/?REQUEST=GetLegendGraphic&LAYER=troncon_vue&WIDTH=20&HEIGHT=20&SLD_BODY=xxx name="stroke">%23000000 name="stroke-width">2&VERSION=1.1.1&FORMAT=image/png > > I am tried both on a linux and windows mapServer version. > Would you have a suggestion ? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Thu Sep 3 06:16:42 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Sep 2009 08:16:42 -0500 Subject: [mapserver-users] OGR shapefile w/MySQL Join Message-ID: <4A9F7B6A0200008F00027F6D@co5.dnr.state.mn.us> This isn't an instance where a JOIN block is particularly useful. I need the MySQL attributes for map making and JOINs are only used with query results. Plus the MySQL join driver assumes integer keys and I have strings. Hence my hope to do the join in OGR before the data even hit MapServer. Anywho, I use the CSV join driver all the time. Looking at your example the syntax for specifying the CSV column looks wrong. The CSV driver assumes there are no column names in the first row. Might be a nice addition in the future but for now you just use a column reference (1..n). The documentation at: http://mapserver.org/mapfile/join.html for CSV is flat out wrong (too much cut and paste). I'll have a go at fixing that. Join element should look like: JOIN NAME "test" TABLE "../data/lookup.csv" FROM "ID" TO "1" TYPE ONE-TO-ONE END The column names can be left in place in the actual file, that row just won't match anything. Steve >>> Greg Luker 09/03/09 1:17 AM >>> Hi mapservers, At 12:47 AM 3/09/2009, Steve Lime wrote: >Hi all: Anyone have a sample configuration for creating an OGR layer >joined to a MySQL table? The >MySQL table has no spatial component. I believe it's possible but >haven't stumbled upon a concrete >example showing how. Figured better just to ask... Thanks. I'd be really interested to see how you get this to work, Steve. I cannot get the JOIN command to work, even on a simple csv file. Here's what I have tried: LAYER NAME "squares" TYPE POLYGON STATUS ON DATA "squares" CLASS ... END TOLERANCE 20 TEMPLATE "testm_template.html" HEADER "testm_header.html" FOOTER "testm_footer.html" JOIN NAME "jointest" TABLE "testm.csv" FROM "IDENT" TO "id" END END #of layer testm.csv is in the same directory as the mapfile. The shapefile (squares) shows up fine, but querying it gives this message: Status: 302 Found Uri: http://.../errors/errors.html Location: http://.../errors/errors.html Content-type: text/html and this debug message: [Thu Sep 3 15:37:43 2009].493754 msDBFJoinConnect(): Unable to access file. (testm.csv) Commenting out the JOIN lines gives correct expected results, so I assume everything else is in the right place (including template files). I've tried a few variations of "testm.csv" - like "'testm.csv'" and "/full/pathname/to/testm.csv" but still no luck. I tried JOINing a shape to an OGR MySQL table, but that didn't work, which is why I dropped back to testing with a simple csv JOIN. Any ideas? Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu Sep 3 06:34:12 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Sep 2009 09:34:12 -0400 Subject: [mapserver-users] OGR shapefile w/MySQL Join In-Reply-To: <4A9F7B6A0200008F00027F6D@co5.dnr.state.mn.us> References: <4A9F7B6A0200008F00027F6D@co5.dnr.state.mn.us> Message-ID: <4A9FC5D4.9050802@mapgears.com> Steve Lime wrote: > This isn't an instance where a JOIN block is particularly useful. I need the > MySQL attributes for map making and JOINs are only used with query > results. Plus the MySQL join driver assumes integer keys and I have strings. > Hence my hope to do the join in OGR before the data even hit MapServer. > Here is a post by Frank from a couple of years ago that explains how to join shapefile and ODBC data with an OGR SQL statement in the layer's DATA parameter: http://lists.osgeo.org/pipermail/mapserver-users/2004-November/002149.html It should be easy to adapt this example to connect to MySQL instead of ODBC for the join, but I didn't test it myself. (The MySQL driver docs are at http://gdal.org/ogr/drv_mysql.html) Daniel -- Daniel Morissette http://www.mapgears.com/ From nelsonwc7 at hotmail.com Thu Sep 3 06:46:36 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Thu, 3 Sep 2009 13:46:36 +0000 Subject: [mapserver-users] Postgis tile index not working In-Reply-To: <4A9BC98C.8090403@gatewaygeomatics.com> References: <4A9BC98C.8090403@gatewaygeomatics.com> Message-ID: Thanks Jeff! Just to share with those that have the same problem, I was having issues rendering PNG (changing to GIF worked the way I want) and the world file was missing too (I thought Mapserver would get the bounding box from the postgis database). Nelson > Date: Mon, 31 Aug 2009 10:01:00 -0300 > From: jmckenna at gatewaygeomatics.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Postgis tile index not working > > Nelson Correia wrote: > > Hi, > > > > I'm trying to use a postgis layer as tile index of a raster layer and > > can't get it working. > > Here are the layers I'm using: > > > > > > LAYER > > NAME "layer_tindex" > > TYPE POLYGON > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost port=5432 dbname=mydb > > user=myuser password=mypwd" > > DATA "bbox from shapes" > > CLASS > > STYLE > > OUTLINECOLOR 0 0 0 > > END > > END > > END > > LAYER > > NAME "layer_raster" > > TYPE RASTER > > STATUS DEFAULT > > DUMP TRUE > > TILEINDEX "layer_tindex" > > TILEITEM "image_path" > > PROJECTION > > "init=epsg:4326" > > END > > END > > > > When I make a request to Mapserver, everything gets into the image, > > except the images from the "layer_raster" layer. I can even see the > > bboxes if I turn on the layer "layer_tindex". > > > > I can't find much documentation about this integration between Mapserver > > and Postgis, so tell me if I'm making some mistake. > > > > By the way, I'm doing this with a Mapserver 5.2.1. > > > > Thanks in advance, > > > > I would start by using the commandline utility shp2img with the > '-all_debug 3' switch to see all errors (example#3 on > http://www.mapserver.org/utilities/shp2img.html). > > -jeff > > > > -- > Jeff McKenna > FOSS4G 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 _________________________________________________________________ Share your memories online with anyone you want. http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Sep 3 07:40:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 03 Sep 2009 09:40:41 -0500 Subject: [mapserver-users] OGR shapefile w/MySQL Join In-Reply-To: <4A9FC5D4.9050802@mapgears.com> References: <4A9F7B6A0200008F00027F6D@co5.dnr.state.mn.us> <4A9FC5D4.9050802@mapgears.com> Message-ID: <4A9F8F18.5157.008F.0@dnr.state.mn.us> Thanks, didn't search on the right terms. Lot's of "in theory"'s... Will give it a try. Fortunately I only have 60 records so sucky performance may be tolerable. Steve >>> On 9/3/2009 at 8:34 AM, in message <4A9FC5D4.9050802 at mapgears.com>, Daniel Morissette wrote: > Steve Lime wrote: >> This isn't an instance where a JOIN block is particularly useful. I need the >> MySQL attributes for map making and JOINs are only used with query >> results. Plus the MySQL join driver assumes integer keys and I have strings. >> Hence my hope to do the join in OGR before the data even hit MapServer. >> > > Here is a post by Frank from a couple of years ago that explains how to > join shapefile and ODBC data with an OGR SQL statement in the layer's > DATA parameter: > > http://lists.osgeo.org/pipermail/mapserver-users/2004-November/002149.html > > It should be easy to adapt this example to connect to MySQL instead of > ODBC for the join, but I didn't test it myself. (The MySQL driver docs > are at http://gdal.org/ogr/drv_mysql.html) > > Daniel From Steve.Toutant at inspq.qc.ca Fri Sep 4 10:19:27 2009 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 4 Sep 2009 13:19:27 -0400 Subject: [mapserver-users] problem with WMS GetFeatureInfo and GML In-Reply-To: <2a37f67a0908260635v3ab62146g5a9aeae1be79f55d@mail.gmail.com> Message-ID: Hello, Via openlayers I launch an url to mapserver (v5.2.1) which returns a GML. See the URL and the response below. I put the layer definition of the mapfile as well. I'm not sure if my problem is on mapserver or on openlayers side. The problem is I can't add the geometry to the openlayers vector layer for some reasons. As if the geometry was null. If someone could confirm that everything is ok or not on mapserver side would help me. thanks in advance for your help, Steve ***************************************** LAYER NAME "national_2006" GROUP "Vulnerabilite" CONNECTIONTYPE postgis CONNECTION "host=10.2.192.247 dbname=geo user=dbaInspq password=!dbaInspq! port=5432" DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid" TYPE POLYGON STATUS off PROJECTION "init=epsg:900913" END PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Indice de d?favorisation national 2006" "wms_group_title" "Vuln?rabilit?" 'wms_srs' 'EPSG:4326 EPSG:32198 EPSG:900913' "wms_include_items" "all" "gml_include_items" "ad,quintmat,quintsoc" 'gml_featureid' 'gid' END DUMP TRUE TOLERANCE 0 TEMPLATE '../template/query_indiceDef.html' HEADER '../template/query_header.html' FOOTER '../template/query_footer.html' INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map" END ********************************** http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006&query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500&height=608&width=1008&info_format=application%2Fvnd.ogc.gml *********************************************************************************** And the response is this: -8212506.502737,5697097.841728 -8204853.558950,5702856.964043 24662464 1 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Fri Sep 4 10:53:30 2009 From: michael.smith at usace.army.mil (Smith, Michael ERDC-USACE-NH) Date: Fri, 04 Sep 2009 13:53:30 -0400 Subject: [mapserver-users] problem with WMS GetFeatureInfo and GML In-Reply-To: Message-ID: Steve, There is an existing ticket open on this. http://trac.osgeo.org/mapserver/ticket/2989 Maybe something to push for in 5.6? Mike -- Michael Smith RSGIS Center US Army Corps of Engineers On 9/4/09 1:19 PM, "Steve.Toutant at inspq.qc.ca" wrote: > > Hello, > Via openlayers I launch an url to mapserver (v5.2.1) which returns a GML. See > the URL and the response below. I put the layer definition of the mapfile as > well. > I'm not sure if my problem is on mapserver or on openlayers side. The problem > is I can't add the geometry to the openlayers vector layer for some reasons. > As if the geometry was null. > If someone could confirm that everything is ok or not on mapserver side would > help me. > > thanks in advance for your help, > Steve > ***************************************** > LAYER > NAME "national_2006" > GROUP "Vulnerabilite" > CONNECTIONTYPE postgis > CONNECTION "host=10.2.192.247 dbname=geo user=dbaInspq password=!dbaInspq! > port=5432" > DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid" > TYPE POLYGON > STATUS off > > PROJECTION > "init=epsg:900913" > END > PROCESSING "CLOSE_CONNECTION=DEFER" > METADATA > "wms_title" "Indice de d?favorisation national 2006" > "wms_group_title" "Vuln?rabilit?" > 'wms_srs' 'EPSG:4326 EPSG:32198 EPSG:900913' > "wms_include_items" "all" > "gml_include_items" "ad,quintmat,quintsoc" > 'gml_featureid' 'gid' > END > DUMP TRUE > TOLERANCE 0 > TEMPLATE '../template/query_indiceDef.html' > HEADER '../template/query_header.html' > FOOTER '../template/query_footer.html' > INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map" > END > ********************************** > > http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chal > eur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006 > &query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8 > 187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500& > height=608&width=1008&info_format=application%2Fvnd.ogc.gml > ****************************************************************************** > ***** > And the response is this: > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > > -8212506.502737,5697097.841728 > -8204853.558950,5702856.964043 > > > 24662464 > 1 > 2 > > > > > > > > > _______________________________________________ > 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 bartvde at osgis.nl Fri Sep 4 10:28:44 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Fri, 04 Sep 2009 19:28:44 +0200 Subject: [mapserver-users] problem with WMS GetFeatureInfo and GML In-Reply-To: References: Message-ID: <4AA14E4C.4090405@osgis.nl> Hi Steve, there is no way to output a geometry with WMS GetFeatureInfo right now, see also: http://trac.osgeo.org/mapserver/ticket/2989 You would better use a WFS GetFeature request. Best regards, Bart Steve.Toutant at inspq.qc.ca wrote: > > Hello, > Via openlayers I launch an url to mapserver (v5.2.1) which returns a > GML. See the URL and the response below. I put the layer definition of > the mapfile as well. > I'm not sure if my problem is on mapserver or on openlayers side. The > problem is I can't add the geometry to the openlayers vector layer for > some reasons. As if the geometry was null. > If someone could confirm that everything is ok or not on mapserver > side would help me. > > thanks in advance for your help, > Steve > ***************************************** > LAYER > NAME "national_2006" > GROUP "Vulnerabilite" > CONNECTIONTYPE postgis > CONNECTION "host=10.2.192.247 dbname=geo user=dbaInspq > password=!dbaInspq! port=5432" > DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid" > TYPE POLYGON > STATUS off > > PROJECTION > "init=epsg:900913" > END > PROCESSING "CLOSE_CONNECTION=DEFER" > METADATA > "wms_title" "Indice de d?favorisation national 2006" > "wms_group_title" "Vuln?rabilit?" > 'wms_srs' 'EPSG:4326 EPSG:32198 EPSG:900913' > "wms_include_items" "all" > "gml_include_items" "ad,quintmat,quintsoc" > 'gml_featureid' 'gid' > END > DUMP TRUE > TOLERANCE 0 > TEMPLATE '../template/query_indiceDef.html' > HEADER '../template/query_header.html' > FOOTER '../template/query_footer.html' > INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map" > END > ********************************** > > http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006&query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500&height=608&width=1008&info_format=application%2Fvnd.ogc.gml > > *********************************************************************************** > > And the response is this: > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > > -8212506.502737,5697097.841728 > -8204853.558950,5702856.964043 > > > 24662464 > 1 > 2 > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From jbw2003 at earthlink.net Fri Sep 4 11:26:49 2009 From: jbw2003 at earthlink.net (jim white) Date: Fri, 04 Sep 2009 14:26:49 -0400 Subject: [mapserver-users] how to throw exception for failed ms_newMapObj Message-ID: <4AA15BE9.9090206@earthlink.net> Hi, My PHP MapScript sometimes fails to create a new map object. I would like to be able to handle this occurrence, and send a notice to the user that there has been an error and they don't have to wait for a page that is not going to load. The script just fails at the $map = ms_newMapObj($mapfile) line and stops. How to throw an exception when this happens? Thanks, Jim James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ From tohashmi at gmail.com Sat Sep 5 04:19:45 2009 From: tohashmi at gmail.com (Hussain Hashmi) Date: Sat, 5 Sep 2009 14:19:45 +0300 Subject: [mapserver-users] Shapefile Encrypt / Decrypt - UMNMapServer ! Message-ID: <28aabd160909050419m1464047qc595a4bbc332e261@mail.gmail.com> Hello, I havent done this before, and therefore seeking your suggestions please. I have to develop a desktop application for browsing maps; but it demands data security. I have my data in form of shapefiles. My following idea is still immature. 1. Use Csharp MapScript for creating desktop app. 2. Use .Net encrypt / decrypt methods for the shapefile. 3. decrypt the shapfile within the memory. (Here I am wondering if MapServer would be able to read shapefile from the memory location). Has anyone here done it before. I would be really greatful for any suggestions & sharing your ideas. Thanks & regards, Mir Hashmi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sb.ray at hotmail.com Sun Sep 6 12:11:14 2009 From: sb.ray at hotmail.com (sunny74) Date: Sun, 6 Sep 2009 14:11:14 -0500 (CDT) Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: <4A9F2945.5070407@gisnet.com> References: <1251460371790-3534156.post@n2.nabble.com> <1251467096433-3534743.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us> <1251529272378-3540787.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> <1251894630372-3566414.post@n2.nabble.com> <1251896644794-3566575.post@n2.nabble.com> <4A9F2945.5070407@gisnet.com> Message-ID: <1252264274524-3593710.post@n2.nabble.com> Hi Bill, Thanks for your reply. I am now loading the layers in groups instead of individually. First I am loading the base layer followed by 4 groups of layers, first group contains 2 while others contain 3 each. But the problem now is that at PageLoad for the first time the layers of group1 are not visible because it is getting overlapped by the other layers. The other layers are also not visible bec' they are mandated to be visible at higher zoomin levels because of max/min scaledom. Now if I load the group1 layers last then not only is it visible at initial zoom level but also at higher zoom levels bec' in that case it is overlapping the other layers mandated to be visible at that level. So how to tackle the problem. Can it be solved by changing the z-index of the first group at initial PageLoad. Pls provide some solution to this problem. Bill Thoen wrote: > > sunny74 wrote: >> Hi, >> >> Thanks for ur reply. >> 1)What is the syntax for send request against a Group? >> 2)If I just write the name of the group within layer then will it be >> placed >> against the group? >> 3) What is the syntax for checking the zoom level of a map so that once a >> zoom level is reached I can call a group of layers? >> > 1. You call it just like you do a layer. Just use the group name instead > of the file name. > > 2. Yes. > > 3. Just make separate LAYERs as you do normally, but do a set for each > scale zone, and then assign MAX ansd MIN SCALEDENOM for each one so that > when you only one set is active at any scale. (i.e., don't overlap scale > intervals) > > I don't know happens at the transition points though. For example, > suppose you have your large scale symbology visible from a MINSCALEDENOM > of 1 to a MAAXSCALEDENOM of 100,000. Then at 100,000, your small scale > symbology layers take over. But what happens at 100,000? Do you get both > layer sets, or neither? Or does it do something clever like > MINSCALEDENOM starts right on the value and up, while the MAXSCALEDENOM > goes up to, but never equals the specified value? > > Maybe while you're at it, could you check that and let us know? > > Also, you ought to look this over: http://www.mapserver.org/mapfile/ In > particular, check out MIN and MAXSCALEDENOM under "LAYER". > > > Good luck! > - Bill Thoen > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3593710.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jakob.worm at gmail.com Mon Sep 7 14:22:21 2009 From: jakob.worm at gmail.com (worjak) Date: Mon, 7 Sep 2009 16:22:21 -0500 (CDT) Subject: [mapserver-users] Labelling with real numbers Message-ID: <1252358541051-3599499.post@n2.nabble.com> Hi, I need to present numbers in a map that have the data type real (length=19, Precision=8) by labeling a shapefile. It looks a kind off stupid with this precision as the eg. 27.12 is represented as 27.12000000. So i'd like to chop off some of the trailing zeros. I understand that mapserver can't do this in current version. So my question is - how can I do this in batch in pre processing? I receive the shape files with this data definition as a daily dump, so manipulation by hand is out off the question :( Any suggestions are welcome. Regards Jakob http://n2.nabble.com/file/n3599499/label_real_number.png -- View this message in context: http://n2.nabble.com/Labelling-with-real-numbers-tp3599499p3599499.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vincent.blanque at oriondata.cl Mon Sep 7 14:38:54 2009 From: vincent.blanque at oriondata.cl (=?ISO-8859-1?Q?Vincent_Blanqu=E9?=) Date: Mon, 07 Sep 2009 17:38:54 -0400 Subject: [mapserver-users] JPG is bad rendered in some computers ? Message-ID: <4AA57D6E.20405@oriondata.cl> Hi, I have a JPEG rendering issue with a WMS service. In some computers, I have a bad rendering, you can watch a screenshots illustrating the difference of rendering: http://tiptop9.free.fr/02_mapserver/smap_jpg_goodvsbad.jpg I use Mapserver 5.4.2 on Ubuntu 9.04. The mapfile is written like: IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' IMAGEMODE RGB EXTENSION 'jpeg' END If you have any solution ? Thanks, Vincent -------------- next part -------------- A non-text attachment was scrubbed... Name: vincent_blanque.vcf Type: text/x-vcard Size: 290 bytes Desc: not available URL: From damien.demaj at demap.com.au Mon Sep 7 22:01:51 2009 From: damien.demaj at demap.com.au (Damien Demaj) Date: Tue, 8 Sep 2009 15:01:51 +1000 Subject: [mapserver-users] Developers Required Message-ID: Hi All, I am wanting to add an application to my website using MapServer? that delivers the following... I want to make my own World Dataset available in a mapviewer application online like the following websites: http://www.demis.nl/home/pages/wms/demiswms.htm http://www.kgis.scar.org/mapviewer/kgis.phtml Users would be allowed to zoom into a specified area, add or subtract data layers and export the map as an Adobe Illustrator file or PDF file. I want to build in a charge mechanism by where the user is charged depending on the how big an area they select and what layers they select. They would proceed to a checkout before allowing to export the map. Is this possible? If anyone is interested in talking to me more about the job please contact me at damien.demaj at demap.com.au. Regards, Damien -- Damien Demaj Cartographic Director www.demap.com.au 50 James Street | Strathdale | VIC | 3550 Australia Tel: +61 (0) 408 856 506 | Skype name: damiendemaj LATEST NEWS AUGUST: EARTH wins The International Map Trade Association (Asia Pacific) Best Book Based Product and the Best Overall Cartographic Product for 2008. JULY: Damien Demaj is nominated for RMIT Alumni of the Year 2009 for his distinction and significant contribution to the field of cartography. JUNE: At the 33rd Galley Club Awards EARTH received the prestigious Book Of The Year award 2008. Earth is published by Millennium House. demap (Damien Demaj) is proud to be a major contributor to Earth (Chief Cartographic Consultant). -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.blanque at oriondata.cl Mon Sep 7 11:58:45 2009 From: vincent.blanque at oriondata.cl (=?ISO-8859-1?Q?Vincent_Blanqu=E9?=) Date: Mon, 07 Sep 2009 14:58:45 -0400 Subject: [mapserver-users] JPG is bad rendered in some computers ? Message-ID: <4AA557E5.8010408@oriondata.cl> Hi, I have a problem with a WMS service in JPEG format. With various computers, I have a bad rendering of the JPEG tiles while with another rendering is perfect. You can watch screenshots joint to understand better the issue. My mapfile is written like: IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' IMAGEMODE RGB EXTENSION 'jpeg' END If you have any solution ? Thanks, Vincent -------------- next part -------------- A non-text attachment was scrubbed... Name: smap_jpg_good.jpg Type: image/jpeg Size: 92655 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smap_jpg_bad.jpg Type: image/jpeg Size: 62345 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vincent_blanque.vcf Type: text/x-vcard Size: 290 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 8 00:22:39 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 8 Sep 2009 10:22:39 +0300 Subject: [mapserver-users] JPG is bad rendered in some computers ? In-Reply-To: <4AA557E5.8010408@oriondata.cl> References: <4AA557E5.8010408@oriondata.cl> Message-ID: Hi, I strongly believe that Mapserver is sending identical jpegs to all your computers and the reason is somewhere in the WMS client side. That does not mean that everything is OK and you should just suffer. Investigate the jpeg files that Mapserver is sending by saving some samples on disk. Open saved images with image processing software and have a look at image information. Are images technically identical on each computer? If they are then there must be some differencies in your WMS clients or their settings. My guess is that the bad jpeg is not a jpeg at all but your WMS client is asking for 8-bit png or gif. -Jukka Rahkonen- Vincent Blanqu? wrote: > Hi, > > I have a problem with a WMS service in JPEG format. With > various computers, I have a bad rendering of the JPEG tiles > while with another rendering is perfect. You can watch > screenshots joint to understand better the issue. > > My mapfile is written like: > > IMAGEQUALITY 95 > IMAGETYPE jpeg > > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > IMAGEMODE RGB > EXTENSION 'jpeg' > END > > If you have any solution ? > > Thanks, > > Vincent > > > From erbugcelebi at gmail.com Tue Sep 8 01:48:37 2009 From: erbugcelebi at gmail.com (mapcyp) Date: Tue, 8 Sep 2009 03:48:37 -0500 (CDT) Subject: [mapserver-users] Character encoding in Query Results Message-ID: <1252399717919-3601960.post@n2.nabble.com> Hi All, I am using a shapefile that contians Turkish charaters (iso-8859-9) in my MapServer application. I can display Labels properly on the map with the following configuration: LAYER ..... LABEL MINDISTANCE 150 PARTIALS false TYPE truetype FONT "serif" SIZE 10 POSITION CC OUTLINECOLOR 254 254 254 COLOR 0 0 0 ENCODING ISO-8859-9 END .... END My problem arise when I get the result of my queries. The query results contain wrong character as in the following. Name Population Area Dumlup?nar 2702 68km2 <<<<---- The character that has ? mark is wrong. I have tried to solve this problem by defining LAYER_ENCODING in LAYER section, and ENCODING in MAP section but the result was the same. Is there any suggestion to get the query results in ISO-8859-9 format? Thanks in advance. -- View this message in context: http://n2.nabble.com/Character-encoding-in-Query-Results-tp3601960p3601960.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Sep 8 09:04:08 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Sep 2009 11:04:08 -0500 Subject: [mapserver-users] Character encoding in Query Results In-Reply-To: <1252399717919-3601960.post@n2.nabble.com> References: <1252399717919-3601960.post@n2.nabble.com> Message-ID: <4AA63A28.5157.008F.0@dnr.state.mn.us> I'm afraid this is a bug and should be reported in Trac. There's no code in the template output that capitalizes on the encoding values set elsewhere. One approach might be to add encoding support to the [item ...] tag. If you'd file a ticket along with a simple test case I'd appreciate it. Steve >>> On 9/8/2009 at 3:48 AM, in message <1252399717919-3601960.post at n2.nabble.com>, mapcyp wrote: > Hi All, > > I am using a shapefile that contians Turkish charaters (iso-8859-9) in my > MapServer application. I can display Labels properly on the map with the > following configuration: > > LAYER > ..... > LABEL > MINDISTANCE 150 > PARTIALS false > TYPE truetype > FONT "serif" > SIZE 10 > POSITION CC > OUTLINECOLOR 254 254 254 > COLOR 0 0 0 > ENCODING ISO-8859-9 > END > .... > END > > My problem arise when I get the result of my queries. The query results > contain wrong character as in the following. > Name Population Area > Dumlup?nar 2702 68km2 <<<<---- The character that has ? mark is wrong. > > I have tried to solve this problem by defining LAYER_ENCODING in LAYER > section, and ENCODING in MAP section but the result was the same. > > Is there any suggestion to get the query results in ISO-8859-9 format? > > Thanks in advance. > > > > -- > View this message in context: > http://n2.nabble.com/Character-encoding-in-Query-Results-tp3601960p3601960.ht > ml > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tim.Nolte at ipcswirelessinc.com Tue Sep 8 09:59:00 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 8 Sep 2009 12:59:00 -0400 Subject: [mapserver-users] HTML Legend, Hide Out of Scale Class Message-ID: I've spent a good part of my morning scouring the internet trying to find the solution to my problem. I have an HTML legend that is used by the Chameleon framework. I can't for the life of me figure out how to make sure that the out-of-scale (non-visible) classes don't show up in the legend. No matter what I've tried it is showing all the scales for my layer(s). Can anyone give me a clue what I'm missing? Here's my settings/code: Mapfile: CLASSITEM "evdo_implemented" CLASS NAME on_air_1x TITLE "1X On-Air" EXPRESSION "No" MINSCALE 0 MAXSCALE 1200000 SYMBOL "cellsite-1x" COLOR 0 208 104 OUTLINECOLOR 0 0 0 SIZE 12 LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END CLASS NAME on_air_evdo TITLE "EVDO On-Air" EXPRESSION "Yes" MINSCALE 0 MAXSCALE 1200000 SYMBOL "cellsite-evdo" COLOR 0 208 104 OUTLINECOLOR 0 0 0 SIZE 10 LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END CLASS NAME on_air_1x TITLE "1X On-Air" EXPRESSION "No" MINSCALE 1200001 MAXSCALE 6000000 SYMBOL "cellsite-1x" COLOR 0 208 104 OUTLINECOLOR 0 0 0 SIZE 10 END CLASS NAME on_air_evdo TITLE "EVDO On-Air" EXPRESSION "Yes" MINSCALE 1200001 MAXSCALE 6000000 SYMBOL "cellsite-evdo" COLOR 0 208 104 OUTLINECOLOR 0 0 0 SIZE 8 END HTML Legend: [leg_header_html][/leg_header_html] [leg_group_html opt_flag=0][if name=static_legend oper=isset]

[leg_group_name]

[/if][/le g_group_html] [leg_layer_html opt_flag=0][if name=layer_group oper=neq value="Cell Sites"][if name=static_legend oper=isset][if name=layer_visible value=1]

[if name=signal_strength oper=isset][/if][if name=signal_strength oper=isnull][/if] [leg_layer_name]

[/if][/if][/if][/leg_layer_html] [leg_class_html opt_flag=14][if name=layer_group oper=eq value="Cell Sites"][if name=static_legend oper=isset][if name=layer_visible value=1]

[if name=signal_strength oper=isset][/if][if name=signal_strength oper=isnull][/if] [leg_class_title]

[/if][/if][/if][/leg_class_html] [leg_footer_html][/leg_footer_html] ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From luciosoto at hotmail.com Tue Sep 8 10:08:48 2009 From: luciosoto at hotmail.com (luciosoto) Date: Tue, 8 Sep 2009 12:08:48 -0500 (CDT) Subject: [mapserver-users] Show tiles only in current extent Message-ID: <1252429728233-3604671.post@n2.nabble.com> Hello everyone, i need your valuable help with this issue I have: I'm running MapServer 4.8.1 over Apache 2.2.1 in Windows, and also TileCache 2.1 using mod_python, everything is great so far, but i want to improve the performance when displaying the maps by only showing the tiles in the current extent, let me explain: I've noticed that when I zoom in the mapserver in some way (that I'm too stupid to find out) takes the coordinates and starts sending the request to get the tiles one by one, i see that sometimes it downloads up to 70 tiles when looking at the screen no more than 20 would be neccesary to fill the screen, so that is the question, how do i make mapserver to show me just the necessary stuff instead of downloading tiles that are close to the visible area but are not necessary anyway? Thank a lot. -- View this message in context: http://n2.nabble.com/Show-tiles-only-in-current-extent-tp3604671p3604671.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vincent.blanque at oriondata.cl Tue Sep 8 11:59:29 2009 From: vincent.blanque at oriondata.cl (=?ISO-8859-1?Q?Vincent_Blanqu=E9?=) Date: Tue, 08 Sep 2009 14:59:29 -0400 Subject: [mapserver-users] JPG is bad rendered in some computers ? In-Reply-To: References: <4AA557E5.8010408@oriondata.cl> Message-ID: <4AA6A991.5060601@oriondata.cl> Hi, It appears that you are right, the client only allows loading PNG format. I tested with Arcgis and QGis in the 'bad' computer only PNG format is available, BUT in the 'good', PNG, JPEG, PNG and TIFF are available for the same WMS url: http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg? Do you have any explanation to this strange behaviour ? In the 'bad' computer, the grafical card is: NVDIA GForce 7050 PV/630A in the 'good' one: ATI Radeon HD 2600... The issue could be relative to the kind of graphical card ? Thx, Vincent Rahkonen Jukka a ?crit : > Hi, > > I strongly believe that Mapserver is sending identical jpegs to all your computers and the reason is somewhere in the WMS client side. That does not mean that everything is OK and you should just suffer. > > Investigate the jpeg files that Mapserver is sending by saving some samples on disk. Open saved images with image processing software and have a look at image information. Are images technically identical on each computer? If they are then there must be some differencies in your WMS clients or their settings. > > My guess is that the bad jpeg is not a jpeg at all but your WMS client is asking for 8-bit png or gif. > > -Jukka Rahkonen- > > Vincent Blanqu? wrote: > > >> Hi, >> >> I have a problem with a WMS service in JPEG format. With >> various computers, I have a bad rendering of the JPEG tiles >> while with another rendering is perfect. You can watch >> screenshots joint to understand better the issue. >> >> My mapfile is written like: >> >> IMAGEQUALITY 95 >> IMAGETYPE jpeg >> >> OUTPUTFORMAT >> NAME jpeg >> DRIVER 'GD/JPEG' >> MIMETYPE 'image/jpeg' >> IMAGEMODE RGB >> EXTENSION 'jpeg' >> END >> >> If you have any solution ? >> >> Thanks, >> >> Vincent >> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: vincent_blanque.vcf Type: text/x-vcard Size: 290 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 8 14:22:27 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 Sep 2009 00:22:27 +0300 Subject: [mapserver-users] JPG is bad rendered in some computers ? References: <4AA557E5.8010408@oriondata.cl> <4AA6A991.5060601@oriondata.cl> Message-ID: Hi, Forget the WMS clients for a while and send WMS requests from your browser so you can have more control on what really happens. This should return quite a sharp jpeg image: http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fjpeg&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= This one not so beautiful 8-bit png: http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= And finally this a top-quality but large 24-bit png: http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fpng%3B+mode%3D24bit&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= I believe this is somehow related to your WMS clients and not to hardware. I tried your service with OpenJUMP and Windows Vista and for me all the formats I tried (jpeg, gif, 8-bit png and 24-bit png) are OK. Less colours in 8-bit formats is a fact and not an issue. I see you have set image extension to "jpeg". I cannot see anything wrong with that but have a try with "jpg" anyway. -Jukka Rahkonen- Vincent Blanqu? wrote: Hi, It appears that you are right, the client only allows loading PNG format. I tested with Arcgis and QGis in the 'bad' computer only PNG format is available, BUT in the 'good', PNG, JPEG, PNG and TIFF are available for the same WMS url: http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg? Do you have any explanation to this strange behaviour ? In the 'bad' computer, the grafical card is: NVDIA GForce 7050 PV/630A in the 'good' one: ATI Radeon HD 2600... The issue could be relative to the kind of graphical card ? Thx, Vincent Rahkonen Jukka a ?crit : > Hi, > > I strongly believe that Mapserver is sending identical jpegs to all your computers and the reason is somewhere in the WMS client side. That does not mean that everything is OK and you should just suffer. > > Investigate the jpeg files that Mapserver is sending by saving some samples on disk. Open saved images with image processing software and have a look at image information. Are images technically identical on each computer? If they are then there must be some differencies in your WMS clients or their settings. > > My guess is that the bad jpeg is not a jpeg at all but your WMS client is asking for 8-bit png or gif. > > -Jukka Rahkonen- > > Vincent Blanqu? wrote: > > >> Hi, >> >> I have a problem with a WMS service in JPEG format. With >> various computers, I have a bad rendering of the JPEG tiles >> while with another rendering is perfect. You can watch >> screenshots joint to understand better the issue. >> >> My mapfile is written like: >> >> IMAGEQUALITY 95 >> IMAGETYPE jpeg >> >> OUTPUTFORMAT >> NAME jpeg >> DRIVER 'GD/JPEG' >> MIMETYPE 'image/jpeg' >> IMAGEMODE RGB >> EXTENSION 'jpeg' >> END >> >> If you have any solution ? >> >> Thanks, >> >> Vincent >> >> >> > From ben at remoteinformation.com.au Tue Sep 8 14:47:40 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Wed, 9 Sep 2009 05:47:40 +0800 Subject: [mapserver-users] Character encoding in Query Results In-Reply-To: <20090908160030.EF721E013A6@lists.osgeo.org> References: <20090908160030.EF721E013A6@lists.osgeo.org> Message-ID: G'day. Someone else has probably answered by now, but if it is a rendering issue only you could try putting the character set into the !DOCTYPE or meta headers. cheers Ben On 09/09/2009, at 24:00 , mapserver-users-request at lists.osgeo.org wrote: > From: mapcyp > Date: 8 September 2009 4:48:37 PM AWST > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Character encoding in Query Results > > > > Hi All, > > I am using a shapefile that contians Turkish charaters (iso-8859-9) > in my > MapServer application. I can display Labels properly on the map with > the > following configuration: > > LAYER > ..... > LABEL > MINDISTANCE 150 > PARTIALS false > TYPE truetype > FONT "serif" > SIZE 10 > POSITION CC > OUTLINECOLOR 254 254 254 > COLOR 0 0 0 > ENCODING ISO-8859-9 > END > .... > END > > My problem arise when I get the result of my queries. The query > results > contain wrong character as in the following. > Name Population Area > Dumlup?nar 2702 68km2 <<<<---- The character that has ? mark is > wrong. > > I have tried to solve this problem by defining LAYER_ENCODING in LAYER > section, and ENCODING in MAP section but the result was the same. > > Is there any suggestion to get the query results in ISO-8859-9 format? > > Thanks in advance. > -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.blanque at oriondata.cl Tue Sep 8 14:32:33 2009 From: vincent.blanque at oriondata.cl (=?ISO-8859-1?Q?Vincent_Blanqu=E9?=) Date: Tue, 08 Sep 2009 17:32:33 -0400 Subject: [mapserver-users] JPG is bad rendered in some computers ? In-Reply-To: References: <4AA557E5.8010408@oriondata.cl> <4AA6A991.5060601@oriondata.cl> Message-ID: <4AA6CD71.5050201@oriondata.cl> Jukka, All these links work well ! But I still have problem when I connect the WMS from the client ArcGIS and QGis: only PNG is available in the 'bad' computer ! I could try with OpenJump but I am quite sure the problem will be the same. Thanks for your help... Vincent Rahkonen Jukka a ?crit : > Hi, > > Forget the WMS clients for a while and send WMS requests from your browser so you can have more control on what really happens. > > This should return quite a sharp jpeg image: > http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fjpeg&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= > > This one not so beautiful 8-bit png: > http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= > > And finally this a top-quality but large 24-bit png: > http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=536&LAYERS=mascara&TRANSPARENT=TRUE&FORMAT=image%2Fpng%3B+mode%3D24bit&BBOX=477741.3106567791,5339772.595359228,479456.0484341582,5341158.869037471&SRS=EPSG:32719&STYLES= > > I believe this is somehow related to your WMS clients and not to hardware. I tried your service with OpenJUMP and Windows Vista and for me all the formats I tried (jpeg, gif, 8-bit png and 24-bit png) are OK. Less colours in 8-bit formats is a fact and not an issue. > > I see you have set image extension to "jpeg". I cannot see anything wrong with that but have a try with "jpg" anyway. > > -Jukka Rahkonen- > > > Vincent Blanqu? wrote: > > Hi, > > It appears that you are right, the client only allows loading PNG > format. I tested with Arcgis and QGis in the 'bad' computer only PNG > format is available, BUT in the 'good', PNG, JPEG, PNG and TIFF are > available for the same WMS url: > http://oriondata.homedns.org:8542/cgi-bin/mapserv_jpeg? > > Do you have any explanation to this strange behaviour ? > > In the 'bad' computer, the grafical card is: NVDIA GForce 7050 PV/630A > in the 'good' one: ATI Radeon HD 2600... The issue could be relative to > the kind of graphical card ? > > Thx, > > Vincent > > > > Rahkonen Jukka a ?crit : >> Hi, >> >> I strongly believe that Mapserver is sending identical jpegs to all your computers and the reason is somewhere in the WMS client side. That does not mean that everything is OK and you should just suffer. >> >> Investigate the jpeg files that Mapserver is sending by saving some samples on disk. Open saved images with image processing software and have a look at image information. Are images technically identical on each computer? If they are then there must be some differencies in your WMS clients or their settings. >> >> My guess is that the bad jpeg is not a jpeg at all but your WMS client is asking for 8-bit png or gif. >> >> -Jukka Rahkonen- >> >> Vincent Blanqu? wrote: >> >> >>> Hi, >>> >>> I have a problem with a WMS service in JPEG format. With >>> various computers, I have a bad rendering of the JPEG tiles >>> while with another rendering is perfect. You can watch >>> screenshots joint to understand better the issue. >>> >>> My mapfile is written like: >>> >>> IMAGEQUALITY 95 >>> IMAGETYPE jpeg >>> >>> OUTPUTFORMAT >>> NAME jpeg >>> DRIVER 'GD/JPEG' >>> MIMETYPE 'image/jpeg' >>> IMAGEMODE RGB >>> EXTENSION 'jpeg' >>> END >>> >>> If you have any solution ? >>> >>> Thanks, >>> >>> Vincent >>> >>> >>> > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: vincent_blanque.vcf Type: text/x-vcard Size: 290 bytes Desc: not available URL: From Steve.Lime at dnr.state.mn.us Tue Sep 8 15:21:34 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Sep 2009 17:21:34 -0500 Subject: [mapserver-users] Show tiles only in current extent In-Reply-To: <1252429728233-3604671.post@n2.nabble.com> References: <1252429728233-3604671.post@n2.nabble.com> Message-ID: <4AA6929E.5157.008F.0@dnr.state.mn.us> You're using OpenLayers? If so then that's a question for that mailing list I guess. There are configuration options to limit the number of tiles retrieved. I believe it's a 'ratio' parameter passed when instantiating a layer and if set to 1 you don't get anything beyond the view port. Steve >>> On 9/8/2009 at 12:08 PM, in message <1252429728233-3604671.post at n2.nabble.com>, luciosoto wrote: > Hello everyone, i need your valuable help with this issue I have: > > I'm running MapServer 4.8.1 over Apache 2.2.1 in Windows, and also TileCache > 2.1 using mod_python, everything is great so far, but i want to improve the > performance when displaying the maps by only showing the tiles in the > current extent, let me explain: I've noticed that when I zoom in the > mapserver in some way (that I'm too stupid to find out) takes the > coordinates and starts sending the request to get the tiles one by one, i > see that sometimes it downloads up to 70 tiles when looking at the screen no > more than 20 would be neccesary to fill the screen, so that is the question, > how do i make mapserver to show me just the necessary stuff instead of > downloading tiles that are close to the visible area but are not necessary > anyway? > > Thank a lot. From luciosoto at hotmail.com Tue Sep 8 15:53:57 2009 From: luciosoto at hotmail.com (Lucio Soto) Date: Tue, 8 Sep 2009 16:53:57 -0600 Subject: [mapserver-users] Show tiles only in current extent Message-ID: Sir, you're right I'm sorry, as i just posted my question I realized it was something for OpenLayers forum, I'll try you're suggestion anyway and if I'm not lucky i'll get back in the right forum, Thanks! Lucio Steve Lime wrote: You're using OpenLayers? If so then that's a question for that mailing list I guess. There are configuration options to limit the number of tiles retrieved. I believe it's a 'ratio' parameter passed when instantiating a layer and if set to 1 you don't get anything beyond the view port. Steve On 9/8/2009 at 12:08 PM, in message <1252429728233-3604671.post at n2.nabble.com>, luciosoto wrote: Hello everyone, i need your valuable help with this issue I have: I'm running MapServer 4.8.1 over Apache 2.2.1 in Windows, and also TileCache 2.1 using mod_python, everything is great so far, but i want to improve the performance when displaying the maps by only showing the tiles in the current extent, let me explain: I've noticed that when I zoom in the mapserver in some way (that I'm too stupid to find out) takes the coordinates and starts sending the request to get the tiles one by one, i see that sometimes it downloads up to 70 tiles when looking at the screen no more than 20 would be neccesary to fill the screen, so that is the question, how do i make mapserver to show me just the necessary stuff instead of downloading tiles that are close to the visible area but are not necessary anyway? Thank a lot. _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Sep 8 16:59:12 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 8 Sep 2009 19:59:12 -0400 Subject: [mapserver-users] Show tiles only in current extent In-Reply-To: <4AA6929E.5157.008F.0@dnr.state.mn.us> References: <1252429728233-3604671.post@n2.nabble.com> <4AA6929E.5157.008F.0@dnr.state.mn.us> Message-ID: <20090908235912.GH31880@metacarta.com> On Tue, Sep 08, 2009 at 05:21:34PM -0500, Steve Lime wrote: > You're using OpenLayers? If so then that's a question for that mailing list I guess. There are configuration > options to limit the number of tiles retrieved. I believe it's a 'ratio' parameter passed when instantiating a > layer and if set to 1 you don't get anything beyond the view port. ratio: Untiled, set to 1 for untiled image which is the same size as viewport buffer: Tiled, set to 0 for minimal number of tile loads. -- Chris > Steve > > >>> On 9/8/2009 at 12:08 PM, in message <1252429728233-3604671.post at n2.nabble.com>, > luciosoto wrote: > > > Hello everyone, i need your valuable help with this issue I have: > > > > I'm running MapServer 4.8.1 over Apache 2.2.1 in Windows, and also TileCache > > 2.1 using mod_python, everything is great so far, but i want to improve the > > performance when displaying the maps by only showing the tiles in the > > current extent, let me explain: I've noticed that when I zoom in the > > mapserver in some way (that I'm too stupid to find out) takes the > > coordinates and starts sending the request to get the tiles one by one, i > > see that sometimes it downloads up to 70 tiles when looking at the screen no > > more than 20 would be neccesary to fill the screen, so that is the question, > > how do i make mapserver to show me just the necessary stuff instead of > > downloading tiles that are close to the visible area but are not necessary > > anyway? > > > > Thank a lot. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From luciosoto at hotmail.com Tue Sep 8 17:37:55 2009 From: luciosoto at hotmail.com (Lucio Soto) Date: Tue, 8 Sep 2009 18:37:55 -0600 Subject: [mapserver-users] Show tiles only in current extent Message-ID: yes sir buffer: 0, thanks a lot !! Christopher Schmidt wrote: On Tue, Sep 08, 2009 at 05:21:34PM -0500, Steve Lime wrote: You're using OpenLayers? If so then that's a question for that mailing list I guess. There are configuration options to limit the number of tiles retrieved. I believe it's a 'ratio' parameter passed when instantiating a layer and if set to 1 you don't get anything beyond the view port. ratio: Untiled, set to 1 for untiled image which is the same size as viewport buffer: Tiled, set to 0 for minimal number of tile loads. -- Chris Steve On 9/8/2009 at 12:08 PM, in message <1252429728233-3604671.post at n2.nabble.com>, luciosoto wrote: Hello everyone, i need your valuable help with this issue I have: I'm running MapServer 4.8.1 over Apache 2.2.1 in Windows, and also TileCache 2.1 using mod_python, everything is great so far, but i want to improve the performance when displaying the maps by only showing the tiles in the current extent, let me explain: I've noticed that when I zoom in the mapserver in some way (that I'm too stupid to find out) takes the coordinates and starts sending the request to get the tiles one by one, i see that sometimes it downloads up to 70 tiles when looking at the screen no more than 20 would be neccesary to fill the screen, so that is the question, how do i make mapserver to show me just the necessary stuff instead of downloading tiles that are close to the visible area but are not necessary anyway? Thank a lot. _______________________________________________ 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 wal3 at mindspring.com Tue Sep 8 18:24:39 2009 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 8 Sep 2009 21:24:39 -0400 Subject: [mapserver-users] PHP mapscript question Message-ID: <19F115848F7D407DB0B53098C62253C6@Worthlaptop> Hi, Given a list of x,y points, can I do one query to find the shape for each point or do I have to loop through the list of points doing a point query for each one? I've not found the answer in the documentation. Thanks, Worth From IANT at napier.govt.nz Tue Sep 8 19:43:54 2009 From: IANT at napier.govt.nz (Ian Tidy) Date: Wed, 9 Sep 2009 14:43:54 +1200 Subject: [mapserver-users] File Format Performance Message-ID: Hi All, I know this will be a bit of an open question, but I am looking for a general answer. Currently I use ESRI Shape files with my MapServer implementation (and this performs OK), but I am building a new server and I have installed PostgreSQL on this new server. So what I want to know is: 1. Are ESRI Shape files the best file format for MapServer? 2. Will storing all my data in PostgreSQL be faster (at rendering with php_mapscript) than ESRI Shape files? 3. Is there another options that is better (faster) than PostgreSQL or Shape files (e.g. another file format)? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Skype ian.tidy.ncc Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iacovlev.pavel at gmail.com Tue Sep 8 21:39:18 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 9 Sep 2009 07:39:18 +0300 Subject: [mapserver-users] File Format Performance In-Reply-To: References: Message-ID: <2a37f67a0909082139l38e2fa00rb756e626651f3d3d@mail.gmail.com> There is no best file format, if you want max performance and you have static data use TileCache. PostGIS will give you better for performance of spatial manipulations like select by bbox, or select using some index as well as well as flexibility and scalability. Reading all data and rendering it will be faster using Shape files. On Wed, Sep 9, 2009 at 5:43 AM, Ian Tidy wrote: > Hi All, > > I know this will be a bit of an open question, but I am looking for a > general answer. > > Currently I use ESRI Shape files with my MapServer implementation (and this > performs OK), but I am building a new server and I have installed PostgreSQL > on this new server. > > So what I want to know is: > > 1.????? Are ESRI Shape files the best file format for MapServer? > > 2.????? Will storing all my data in PostgreSQL be faster (at rendering with > php_mapscript) than ESRI Shape files? > > 3.????? Is there another options that is better (faster) than PostgreSQL or > Shape files (e.g. another file format)? > > Cheers Ian > > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Skype ian.tidy.ncc > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz | http://maps.napier.govt.nz > > ________________________________ > This e-mail message has been scanned for Viruses and Content and cleared by > MailMarshal > ________________________________ > ###################################################################### > Attention: > This e-mail message and accompanying data may contain information that > is confidential and subject to legal privilege. Any information > provided is given in good faith. However unless specifically stated to > the contrary, Napier City Council accepts no liability for the > content of this e-mail or for the consequences of any action taken on > the basis of the information provided, unless that information is > subsequently confirmed in writing. If you are not the intended recipient, > you are notified that any use, dissemination, distribution or copying > of this message or data is prohibited. If you received this e-mail > message in error, please notify us immediately and erase all copies > of this message and attachments. Thank you. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- http://iap.md, The future is open From M.Kofahl at gmx.net Tue Sep 8 23:42:07 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Wed, 09 Sep 2009 08:42:07 +0200 Subject: [mapserver-users] Variable Substitution Message-ID: <20090909064207.39870@gmx.net> Hi, the documentation at http://mapserver.org/mapfile/variable_sub.html tells about using cookies for variable substitution. Can someone provide a working example? I can get substitution working by using get/post request parameters only. Martin From paul_everton at hotmail.com Wed Sep 9 00:42:39 2009 From: paul_everton at hotmail.com (Paul Curran) Date: Wed, 9 Sep 2009 07:42:39 +0000 Subject: [mapserver-users] Status - On - Off - Default Message-ID: Hi, if I set the status of my layer to Default I can view the layer fine via Cgi/mapserv.exe? and my front end openlayers. However when it is set to On, I just have a White blank screen via mapserv.exe and error messages through openlayers. Does anyone know where I am going wrong? Thanks for any help in advance _________________________________________________________________ Learn how to add other email accounts to Hotmail in 3 easy steps. http://clk.atdmt.com/UKM/go/167688463/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Sep 9 01:21:08 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 Sep 2009 11:21:08 +0300 Subject: [mapserver-users] Status - On - Off - Default In-Reply-To: References: Message-ID: Hi, If some layer is set to "On" it means actually something like "Available". The layer does not come for you automatically but you need to ask for it. It is an usefull feature that makes is possible to toggle layer visibility. For cgi it is documented in the LAYERS paragraph here: http://mapserver.org/cgi/controls.html -Jukka Rahkonen ________________________________ Paul Curran wrote: Hi, if I set the status of my layer to Default I can view the layer fine via Cgi/mapserv.exe? and my front end openlayers. However when it is set to On, I just have a White blank screen via mapserv.exe and error messages through openlayers. Does anyone know where I am going wrong? Thanks for any help in advance ________________________________ New! Receive and respond to mail from other email accounts from within Hotmail Find out how. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iacovlev.pavel at gmail.com Wed Sep 9 02:52:23 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 9 Sep 2009 12:52:23 +0300 Subject: [mapserver-users] PHP mapscript question In-Reply-To: <19F115848F7D407DB0B53098C62253C6@Worthlaptop> References: <19F115848F7D407DB0B53098C62253C6@Worthlaptop> Message-ID: <2a37f67a0909090252j6df5d8b7jec646d6e10b89454@mail.gmail.com> You have to loop through the list of points. On Wed, Sep 9, 2009 at 4:24 AM, Worth Lutz wrote: > Hi, > > > Given a list of x,y points, can I do one query to find the shape for each > point or do I have to loop through the list of points doing a point query > for each one? ?I've not found the answer in the documentation. > > Thanks, > > Worth > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- http://iap.md, The future is open From Jukka.Rahkonen at mmmtike.fi Wed Sep 9 03:13:18 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 Sep 2009 13:13:18 +0300 Subject: [mapserver-users] Status - On - Off - Default In-Reply-To: References: Message-ID: Hi, I do not know anything about OpenLayers exept that such a thing exists. But if you are quering your mapserver cgi directly you should include &layers=250 in request. In WMS calls the keyword is "LAYERS". Interesting, by the way, that for cgi there are keywords "layer" and "layers". &layer=250 works for one layer, but &layer=250 260 does not work. Logical, yes, "layer" is singular. Perhaps unlogical but good is that "layers" works both for one or several layers. -Jukka Rahkonen- ________________________________ Paul Curran wrote: Thanks for the reponse. However I am bit confused. So does the following need to be added to my Mapserv.exe URL? E.g. @LAYER [250] to call my 250 layer? ________________________________ Subject: Re: [mapserver-users] Status - On - Off - Default Date: Wed, 9 Sep 2009 11:21:08 +0300 From: Jukka.Rahkonen at mmmtike.fi To: paul_everton at hotmail.com; mapserver-users at lists.osgeo.org Hi, If some layer is set to "On" it means actually something like "Available". The layer does not come for you automatically but you need to ask for it. It is an usefull feature that makes is possible to toggle layer visibility. For cgi it is documented in the LAYERS paragraph here: http://mapserver.org/cgi/controls.html -Jukka Rahkonen ________________________________ Paul Curran wrote: Hi, if I set the status of my layer to Default I can view the layer fine via Cgi/mapserv.exe? and my front end openlayers. However when it is set to On, I just have a White blank screen via mapserv.exe and error messages through openlayers. Does anyone know where I am going wrong? Thanks for any help in advance ________________________________ New! Receive and respond to mail from other email accounts from within Hotmail Find out how. ________________________________ View your other email accounts from your Hotmail inbox. Add them now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Wed Sep 9 04:46:46 2009 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 9 Sep 2009 13:46:46 +0200 Subject: [mapserver-users] Howto: WMS abstract for root layer? Message-ID: Hi, how can I define a wms getcapabilities abstract tag for the root layer of a service? The root layer of a wms corresponds to the map level settings of the mapfile, but the wms abstract of the web metadata section is used in the service section of the getcapabilities response. Is this missing and should I file an enhancement ticket or am I missing some configuration options? If it is missing two possible solutions could be evaluated: 1) reusing the abstract of the service section or 2) adding a new metadata keyword, e.g. wms_abstract_rootlayer. Thanks for any help, Michael -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Besuchen Sie uns auf der INTERGEO 2009: 22.09. - 24.09.2009 in Karlsruhe; Halle 1, Stand 1.417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From Tom.Kralidis at ec.gc.ca Wed Sep 9 06:05:50 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 9 Sep 2009 09:05:50 -0400 Subject: [mapserver-users] Howto: WMS abstract for root layer? In-Reply-To: References: Message-ID: <23842457308FD64AA88A8EE62F2A7D5BD7441B@OntExch3.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Michael Schulz > Sent: Wednesday, 09 September 2009 07:47 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Howto: WMS abstract for root layer? > > Hi, > > how can I define a wms getcapabilities abstract tag for the > root layer of a service? The root layer of a wms corresponds > to the map level settings of the mapfile, but the wms > abstract of the web metadata section is used in the service > section of the getcapabilities response. Is this missing and > should I file an enhancement ticket or am I missing some > configuration options? > True. Root Layer abstract metadata is not supported (note that group level title/abstract is). > If it is missing two possible solutions could be evaluated: > 1) reusing the abstract of the service section or We could, but then again I'm not sure how useful this would be, as it would be identical to the service abstract. >2) adding a > new metadata keyword, e.g. wms_abstract_rootlayer. > We'd probably want to set a suite of these, i.e.: wms_rootlayer_title wms_rootlayer_abstract wms_rootlayer_keywordlist ...which would exist at the MAP/WEB/METADATA level. Thoughts? > Thanks for any help, > Michael From flavio at tydac.ch Wed Sep 9 06:31:43 2009 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 09 Sep 2009 15:31:43 +0200 Subject: [mapserver-users] File Format Performance In-Reply-To: References: Message-ID: <4AA7AE3F.1060000@tydac.ch> Hi Ian > 1. Are ESRI Shape files the best file format for MapServer? For smaller area yes. However I did not see a big difference between Shape and MapInfo. Use shapeindex for larger files. > 2. Will storing all my data in PostgreSQL be faster (at rendering > with php_mapscript) than ESRI Shape files? Should be similar, maybe slightly slower. We use PostGIS for very large site (gigabytes of vector data). Performance is pretty good, however I would suggest quadcores and Linux 64. I would not like to fiddle around with such large shapefiles and I do not like the idea of tiling the data . > 3. Is there another options that is better (faster) than PostgreSQL > or Shape files (e.g. another file format)? MapInfo is pretty good too ... suggested if you are a MapInfo User. Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From jlacroix at mapgears.com Wed Sep 9 06:44:14 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed, 09 Sep 2009 09:44:14 -0400 Subject: [mapserver-users] Variable Substitution In-Reply-To: <20090909064207.39870@gmx.net> References: <20090909064207.39870@gmx.net> Message-ID: <4AA7B12E.3050405@mapgears.com> Hi, Looking at the code in loadParams() in cgiutil.c, the cookies are added to the GET or POST variables automatically. There's nothing special to do. Julien Martin Kofahl wrote: > Hi, > the documentation at http://mapserver.org/mapfile/variable_sub.html tells about using cookies for variable substitution. Can someone provide a working example? I can get substitution working by using get/post request parameters only. > > Martin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From bthoen at gisnet.com Wed Sep 9 06:53:35 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Wed, 09 Sep 2009 07:53:35 -0600 Subject: [mapserver-users] turning on layers at a particular zoom level In-Reply-To: <1252264274524-3593710.post@n2.nabble.com> References: <1251460371790-3534156.post@n2.nabble.com> <1251467096433-3534743.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7B0@s-sp22.pca.state.mn.us> <1251529272378-3540787.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA7BA@s-sp22.pca.state.mn.us> <1251894630372-3566414.post@n2.nabble.com> <1251896644794-3566575.post@n2.nabble.com> <4A9F2945.5070407@gisnet.com> <1252264274524-3593710.post@n2.nabble.com> Message-ID: <4AA7B35F.9020507@gisnet.com> sunny74 wrote: > I am now loading the layers in groups instead of individually. > First I am loading the base layer followed by 4 groups of layers, first > group contains 2 while others contain 3 each. > > But the problem now is that at PageLoad for the first time the layers of > group1 are not visible because it is getting overlapped by the other layers. > The other layers are also not visible bec' they are mandated to be visible > at higher zoomin levels because of max/min scaledom. > > Now if I load the group1 layers last then not only is it visible at initial > zoom level but also at higher zoom levels bec' in that case it is > overlapping the other layers mandated to be visible at that level. > > So how to tackle the problem. > Tricky, isn't it? Sometimes it helps to use different mapfiles for different zoom levels. There is a way to automatically switch to a different mapfile when the current one goes beyond its maximum or minimum scale, but I don't remember how to do that just now. Hmm.... and I can't find it in the docs either. Probably because I forget what it's called. It was useful for even doing projection changes as the map became more local. I believe it's one of the MAX/MIN commands. I also found that some effects that I wanted couldn't be done exactly the way I wanted, but there was always a way to reorganize and set things up to get what I needed. From woodbri at swoodbridge.com Wed Sep 9 08:36:43 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 09 Sep 2009 11:36:43 -0400 Subject: [mapserver-users] File Format Performance In-Reply-To: <4AA7AE3F.1060000@tydac.ch> References: <4AA7AE3F.1060000@tydac.ch> Message-ID: <4AA7CB8B.50801@swoodbridge.com> Flavio Hendry wrote: > Hi Ian > >> 1. Are ESRI Shape files the best file format for MapServer? > > For smaller area yes. However I did not see a big difference between > Shape and MapInfo. Use shapeindex for larger files. Unless something has changed, mapserver used to build a temporary shapeindex on the fly and discard it if one did not exist. In general if you are using shapefiles, you should always create shapeindexes. >> 2. Will storing all my data in PostgreSQL be faster (at rendering >> with php_mapscript) than ESRI Shape files? > > Should be similar, maybe slightly slower. We use PostGIS for very large > site (gigabytes of vector data). Performance is pretty good, however I > would suggest quadcores and Linux 64. I would not like to fiddle around > with such large shapefiles and I do not like the idea of tiling the data . As has been said, if you are displaying all or most all the data in the data set then shapefiles will be faster than Postgres. If you are zoomed in to a small percentage of your data then Postgres will likely be faster. Tiling your shapefiles is also a good option for many people that are deploying mapping data that is not highly dynamic. Tiling breaks huge shapefiles into multiple smaller shapefiles, that can be re assembled using a tileindex. The goal of tiling is to organize data into files such that if mapserver needs to open the file, then most of the data in the file is consumed. If you data is highly dynamic, then postgres is highly recommended. >> 3. Is there another options that is better (faster) than PostgreSQL or >> Shape files (e.g. another file format)? > > MapInfo is pretty good too ... suggested if you are a MapInfo User. One of the reasons mapserver is so good with shapefiles is that it has native support for shapefiles. Most other file formats go through a GDAL/OGR interface to access the data. While this is very efficient it is still more overhead than direct access to the shapefiles. Database connection pay an over head in making the connection and in transferring the data across that connection, but has the benefit of better indexing and page management which can offset the connection costs in some cases. Best regards, Steve W. > Mit freundlichem Gruss / Best regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Inc. - http://www.tydac.ch > Web Mapping - http://www.mapserver.ch > Swiss Maps - http://www.mapplus.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Optingenstrasse 27 -- CH-3013 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 > ---------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From M.Kofahl at gmx.net Wed Sep 9 22:35:09 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Thu, 10 Sep 2009 07:35:09 +0200 Subject: [mapserver-users] Variable Substitution In-Reply-To: <4AA7B12E.3050405@mapgears.com> References: <20090909064207.39870@gmx.net> <4AA7B12E.3050405@mapgears.com> Message-ID: <20090910053509.274450@gmx.net> Hi Julien, I think I missed something in my configuration as I thought, a cookie set using apaches rewrite mechanism is already visible for mapserv in the first request. But now there's a general problem when using this technique with separate authentication mechanisms: a cookie is handled equate with get/post-request parameters and is processed last. Thus, when using a variable in a data statement, e.g. 'select ... where uid=%user%', one can easily override a cookie holding the username by adding '&user=foreign_account' to the request_uri. So I'm not perfectly satisfied using this for authorization purposes. What do you think? Martin -------- Original-Nachricht -------- > Datum: Wed, 09 Sep 2009 09:44:14 -0400 > Von: Julien-Samuel Lacroix > An: Martin Kofahl > CC: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Variable Substitution > Hi, > > Looking at the code in loadParams() in cgiutil.c, the cookies are added > to the GET or POST variables automatically. There's nothing special to do. > > Julien > > Martin Kofahl wrote: > > Hi, > > the documentation at http://mapserver.org/mapfile/variable_sub.html > tells about using cookies for variable substitution. Can someone provide a > working example? I can get substitution working by using get/post request > parameters only. > > > > Martin > > > From jlacroix at mapgears.com Thu Sep 10 06:36:30 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Thu, 10 Sep 2009 09:36:30 -0400 Subject: [mapserver-users] Variable Substitution In-Reply-To: <20090910053509.274450@gmx.net> References: <20090909064207.39870@gmx.net> <4AA7B12E.3050405@mapgears.com> <20090910053509.274450@gmx.net> Message-ID: <4AA900DE.7060207@mapgears.com> Hi, You can't pass authentication information through cookies anyway. They can easily be overwriten by the user. You should probably have a proxy in front of your mapserver that does the authentication. There's a couple of access control systems that will be presented at FOSS4G in october. There may be one that may interest you. Julien Martin Kofahl wrote: > Hi Julien, > I think I missed something in my configuration as I thought, a cookie set using apaches rewrite mechanism is already visible for mapserv in the first request. > > But now there's a general problem when using this technique with separate authentication mechanisms: a cookie is handled equate with get/post-request parameters and is processed last. Thus, when using a variable in a data statement, e.g. 'select ... where uid=%user%', one can easily override a cookie holding the username by adding '&user=foreign_account' to the request_uri. > > So I'm not perfectly satisfied using this for authorization purposes. What do you think? > > Martin > > > > -------- Original-Nachricht -------- >> Datum: Wed, 09 Sep 2009 09:44:14 -0400 >> Von: Julien-Samuel Lacroix >> An: Martin Kofahl >> CC: mapserver-users at lists.osgeo.org >> Betreff: Re: [mapserver-users] Variable Substitution > >> Hi, >> >> Looking at the code in loadParams() in cgiutil.c, the cookies are added >> to the GET or POST variables automatically. There's nothing special to do. >> >> Julien >> >> Martin Kofahl wrote: >>> Hi, >>> the documentation at http://mapserver.org/mapfile/variable_sub.html >> tells about using cookies for variable substitution. Can someone provide a >> working example? I can get substitution working by using get/post request >> parameters only. >>> Martin >>> > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From LIN at hvenegaard.dk Thu Sep 10 06:56:35 2009 From: LIN at hvenegaard.dk (Lars I. Nielsen (Hvenegaard)) Date: Thu, 10 Sep 2009 15:56:35 +0200 Subject: [mapserver-users] Mapserver with SQL 2008 express ? Message-ID: <2A9AA1E3175B4814BE1FDBDEDDB1F0E3@ODIN> Has anyone had success using the Mapserver MSSQL2008 plugin to access spatial (geometry) data residing in an SQLEXPRESS instance database ? TIA Best regards / Med venlig hilsen Lars I. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Fri Sep 11 01:00:13 2009 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 11 Sep 2009 10:00:13 +0200 Subject: [mapserver-users] Howto: WMS abstract for root layer? In-Reply-To: <23842457308FD64AA88A8EE62F2A7D5BD7441B@OntExch3.ontario.int.ec.gc.ca> References: <23842457308FD64AA88A8EE62F2A7D5BD7441B@OntExch3.ontario.int.ec.gc.ca> Message-ID: Hi Tom, thanks for your answer, I think your suggestion sounds good. I'm going to create a enhancement ticket for this, so it won't get lost. Discussion can be continued there: http://trac.osgeo.org/mapserver/ticket/3121 Cheers, Michael 2009/9/9 Kralidis,Tom [Ontario] : > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Michael Schulz >> Sent: Wednesday, 09 September 2009 07:47 >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Howto: WMS abstract for root layer? >> >> Hi, >> >> how can I define a wms getcapabilities abstract tag for the >> root layer of a service? The root layer of a wms corresponds >> to the map level settings of the mapfile, but the wms >> abstract of the web metadata section is used in the service >> section of the getcapabilities response. Is this missing and >> should I file an enhancement ticket or am I missing some >> configuration options? >> > > True. ?Root Layer abstract metadata is not supported (note that group > level title/abstract is). > >> If it is missing two possible solutions could be evaluated: >> 1) reusing the abstract of the service section or > > We could, but then again I'm not sure how useful this would be, as it > would be identical to the service abstract. > >>2) adding a >> new metadata keyword, e.g. wms_abstract_rootlayer. >> > > We'd probably want to set a suite of these, i.e.: > > wms_rootlayer_title > wms_rootlayer_abstract > wms_rootlayer_keywordlist > > ...which would exist at the MAP/WEB/METADATA level. ?Thoughts? > > >> Thanks for any help, >> Michael > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Besuchen Sie uns auf der INTERGEO 2009: 22.09. - 24.09.2009 in Karlsruhe; Halle 1, Stand 1.417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From ml at lingner.eu Fri Sep 11 06:47:06 2009 From: ml at lingner.eu (Lars Lingner) Date: Fri, 11 Sep 2009 15:47:06 +0200 Subject: [mapserver-users] Updated MapServer flyer Message-ID: <4AAA54DA.7050503@lingner.eu> Hi, I just updated the MapServer flyer at [1] with the new template available at [2]. The idea was to get new screenshots from nice, real life applications, but I couldn't find a MapServer gallery, just a old reference to [3]. So I took a screenshot of one of mine apps and of the MapServer website. It would be really great if someone could take a look and maybe update some facts about features or wording where necessary. There is a german and english file. Because of difficulties to commit to svn.osgeo.org I temporarily uploaded the files to my webspace [4]. Speaking of updating marketing material, I want to ask if someone could pass me some keywords of new features that where included lately or will be get included in MapServer. ...Cairo/OpenGL rendering, XML-Mapfile, AGG, performance improvements (one-pass query), multilingual website ;) ?? I'm holding a introductory presentation about MapServer. If there are some eye-catchers or cool buzz words worth including in a talk, please let me know. Lars [1] https://svn.osgeo.org/osgeo/marketing/flyer/project_brochure_pdfs/OSGeo_Brochures_Mapserver.pdf [2] https://svn.osgeo.org/osgeo/marketing/flyer/template/ [3] http://ms.gis.umn.edu/gallery/galleryfolder_view [4] http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template.pdf http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template.odp http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template_de.pdf http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template_de.odp From bicphuongonline at yahoo.com Sun Sep 13 11:44:50 2009 From: bicphuongonline at yahoo.com (Mr. Bic Phuong) Date: Sun, 13 Sep 2009 11:44:50 -0700 (PDT) Subject: [mapserver-users] MINSCALEDENOM did not work? Message-ID: <799441.90100.qm@web112019.mail.gq1.yahoo.com> DDear everyone, Do you know how to make MINSCALEDENOM work? In ArcMap, I set minimum scale of layer to 1:10,000 then: - when I zoom to larger scale (for example: 1:9000, 1:8000 ...), the layer is still displayed - when I zoom to smaller scale (for example: 1:11000, 1:12000 ...), the layer is not displayed In the map file of mapserver, I set "MINSCALEDENOM 10000" but the layer is display on every scale. I think MINSCALEDENOM did not work. I do not know how to make MINSCALEDENOM work. I hope you are please to help me. Thanks for your attention -------------- next part -------------- An HTML attachment was scrubbed... URL: From bicphuongonline at yahoo.com Sun Sep 13 11:50:33 2009 From: bicphuongonline at yahoo.com (Mr. Bic Phuong) Date: Sun, 13 Sep 2009 11:50:33 -0700 (PDT) Subject: [mapserver-users] How to run mapserv under fastcgi Message-ID: <681164.47758.qm@web112001.mail.gq1.yahoo.com> DDear MapServer Board Members, I have just configured MapServer successfull with fast cgi enabled on RHEL 5 by following this document: http://mapserver.org/optimization/fastcgi.html but I don't know how to run mapserv with fast cgi now? Will you please give me a help! Thanks for your attention, -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun Sep 13 23:18:20 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 14 Sep 2009 09:18:20 +0300 Subject: [mapserver-users] MINSCALEDENOM did not work? In-Reply-To: <799441.90100.qm@web112019.mail.gq1.yahoo.com> References: <799441.90100.qm@web112019.mail.gq1.yahoo.com> Message-ID: Hi, Minscaledenom does work for me as supposed. If I set it to value 1:10000 I can see the layer in scale 1:11000 because scale demoninator is bigger than my limit. In scale 1:9000 it does not show. But I see that you have understood correctly that because map scale is a division, big number under the line means small scale. MINSCALEDENOM is used just as you have done, by adding a line into LAYER definitions. I have no idea why it would not work. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mr. Bic Phuong L?hetetty: 13. syyskuuta 2009 21:45 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] MINSCALEDENOM did not work? DDear everyone, Do you know how to make MINSCALEDENOM work? In ArcMap, I set minimum scale of layer to 1:10,000 then: - when I zoom to larger scale (for example: 1:9000, 1:8000 ...), the layer is still displayed - when I zoom to smaller scale (for example: 1:11000, 1:12000 ...), the layer is not displayed In the map file of mapserver, I set "MINSCALEDENOM 10000" but the layer is display on every scale. I think MINSCALEDENOM did not work. I do not know how to make MINSCALEDENOM work. I hope you are please to help me. Thanks for your attention -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Sep 14 05:51:22 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Sep 2009 09:51:22 -0300 Subject: [mapserver-users] How to run mapserv under fastcgi In-Reply-To: <681164.47758.qm@web112001.mail.gq1.yahoo.com> References: <681164.47758.qm@web112001.mail.gq1.yahoo.com> Message-ID: <4AAE3C4A.2050603@gatewaygeomatics.com> Mr. Bic Phuong wrote: > > DDear MapServer Board Members, > > I have just configured MapServer successfull with fast cgi enabled on > RHEL 5 by following this document: > > http://mapserver.org/optimization/fastcgi.html > > but I don't know how to run mapserv with fast cgi now? Will you please > give me a help! > > Thanks for your attention, I can tell you how MapServer for Windows (MS4W) is configured for FastCGI (see instructions at http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#f-fastcgi). MS4W's Apache is configured so that users can call "/fcgi-bin/mapserv.exe" instead of the usual "/cgi-bin/mapserv.exe", which triggers the FastCGI module. You can check MS4W's Apache httpd.conf for its configuration, if you would like to see it in action. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From cheung.jackey at gmail.com Mon Sep 14 18:36:00 2009 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Tue, 15 Sep 2009 09:36:00 +0800 Subject: [mapserver-users] An question about future MapServer Message-ID: Hi All, Just wondering recently, will MapServer implement something like 2.5D (perspective view) or 3D functionalities in the future? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Mon Sep 14 18:53:00 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 14 Sep 2009 18:53:00 -0700 Subject: [mapserver-users] An question about future MapServer In-Reply-To: References: Message-ID: <30fe546d0909141853n3c82ce6cp19fae6ae01520711@mail.gmail.com> Hmmm, where have I heard that question before... oh, wait a second it was *you*, asking it two weeks ago. http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg08252.html I guess a question that good, deserves to be asked twice. P On Mon, Sep 14, 2009 at 6:36 PM, Jackey Cheung wrote: > Hi All, > Just wondering recently, will MapServer implement something like 2.5D > (perspective view) or 3D functionalities in the future? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Mon Sep 14 22:01:42 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 15 Sep 2009 00:01:42 -0500 Subject: [mapserver-users] Updated MapServer flyer Message-ID: <4AAED9660200008F0002847B@co5.dnr.state.mn.us> Hi Lars, thanks for working up an updated brochure, looking at the old one it could use it. Some comments... - I think I'd avoid the MapServer website screen shot in favor of another app. The website text features the security fix announcements which while a reality in a project aren't marketing friendly. I can offer a couple of sites as could others I bet. I like your example, nice and colorful. - Perhaps the screen shots could be a bit taller, more of a square aspect ratio? - Under features it might make sense to highlight output options: all sorts of raster images, PDF, SWF, SVG and templated text - Might include input and the new output plugin architectures as features - The "Leverages best-of-breed" sentence could be reworked to say we leverage other OSGeo projects including GDAL, GEOS, PostGIS and Proj.4. I think we should really emphasize the reliance on other OSGeo projects. - In the last feature sentence I think MapBuilder can be removed. There are some frameworks specific to (or that at least favor) MapServer (e.g. p.mapper and GeoMoose) that could get some love here... I think the 5.6 features are performance centric (raster rendering improvements, single pass, etc...). The 6.0 release *should* have a more output-based focus with full support for the rendering plugin, new object structures including references, better SLD support, styles within labels and so on. XML mapfiles will be in 5.6. It's important to note that XML mapfiles allow users to define a configuration in XML but you must transform it to a .map file for use. I hope that might really have an impact on wysiwyg editors eventually. That's all for now! Steve >>> Lars Lingner 09/11/09 8:54 AM >>> Hi, I just updated the MapServer flyer at [1] with the new template available at [2]. The idea was to get new screenshots from nice, real life applications, but I couldn't find a MapServer gallery, just a old reference to [3]. So I took a screenshot of one of mine apps and of the MapServer website. It would be really great if someone could take a look and maybe update some facts about features or wording where necessary. There is a german and english file. Because of difficulties to commit to svn.osgeo.org I temporarily uploaded the files to my webspace [4]. Speaking of updating marketing material, I want to ask if someone could pass me some keywords of new features that where included lately or will be get included in MapServer. ...Cairo/OpenGL rendering, XML-Mapfile, AGG, performance improvements (one-pass query), multilingual website ;) ?? I'm holding a introductory presentation about MapServer. If there are some eye-catchers or cool buzz words worth including in a talk, please let me know. Lars [1] https://svn.osgeo.org/osgeo/marketing/flyer/project_brochure_pdfs/OSGeo_Brochures_Mapserver.pdf [2] https://svn.osgeo.org/osgeo/marketing/flyer/template/ [3] http://ms.gis.umn.edu/gallery/galleryfolder_view [4] http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template.pdf http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template.odp http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template_de.pdf http://www.lingner.eu/mydownloads/osgeo/OSGeo_MapServer_Flyer_template_de.odp _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ml at lingner.eu Mon Sep 14 22:17:00 2009 From: ml at lingner.eu (Lars Lingner) Date: Tue, 15 Sep 2009 07:17:00 +0200 Subject: [mapserver-users] Updated MapServer flyer In-Reply-To: <4AAED9660200008F0002847B@co5.dnr.state.mn.us> References: <4AAED9660200008F0002847B@co5.dnr.state.mn.us> Message-ID: <4AAF234C.1000903@lingner.eu> Steve Lime schrieb: > Hi Lars, thanks for working up an updated brochure, looking at the old one > it could use it. Some comments... > > - I think I'd avoid the MapServer website screen shot in favor of another > app. The website text features the security fix announcements which while > a reality in a project aren't marketing friendly. I can offer a couple of sites > as could others I bet. I like your example, nice and colorful. If someone could point me to MapServer powered sites, I'll update the screenshot in the flyer. > > - Perhaps the screen shots could be a bit taller, more of a square aspect > ratio? Ok, I'll take a further look. > > - Under features it might make sense to highlight output options: all sorts > of raster images, PDF, SWF, SVG and templated text > > - Might include input and the new output plugin architectures as features > > - The "Leverages best-of-breed" sentence could be reworked to say we > leverage other OSGeo projects including GDAL, GEOS, PostGIS and Proj.4. I > think we should really emphasize the reliance on other OSGeo projects. > > - In the last feature sentence I think MapBuilder can be removed. There are > some frameworks specific to (or that at least favor) MapServer (e.g. p.mapper > and GeoMoose) that could get some love here... Thanks for this info. I'm putting it in. > > I think the 5.6 features are performance centric (raster rendering improvements, > single pass, etc...). The 6.0 release *should* have a more output-based focus > with full support for the rendering plugin, new object structures including > references, better SLD support, styles within labels and so on. XML mapfiles > will be in 5.6. It's important to note that XML mapfiles allow users to define > a configuration in XML but you must transform it to a .map file for use. I hope > that might really have an impact on wysiwyg editors eventually. > Sounds like an interesting roadmap, I'll spread the word... ;) Lars From harpalhira at gmail.com Tue Sep 15 00:18:37 2009 From: harpalhira at gmail.com (harpal singh) Date: Tue, 15 Sep 2009 12:48:37 +0530 Subject: [mapserver-users] MapServer Error]: msLoadMap() Message-ID: <623d78c30909150018w3160403xfde2922b2b2368f3@mail.gmail.com> I am new to map servers? I have written my first program ?..and I am having problem ??I have written a simple hello world programon windows and it is showing problems?? Error is ------------------ *Warning*: [MapServer Error]: msLoadMap(): First token must be MAP, this doesn't look like a mapfile. in *C:\OSGeo4W\apache\htdocs\hello.php* on line *6* *Warning*: Failed to open map file C:\OSGeo4W\apache\htdocs/hello.map in * C:\OSGeo4W\apache\htdocs\hello.php* on line *6* *Fatal error*: Call to a member function draw() on a non-object in * C:\OSGeo4W\apache\htdocs\hello.php* on line *8* I have tried so much but it is not sorted out ?.. plz help me in doing so ??.. thanx in advance ? The code is draw(); $image_url=$image->saveWebImage(); ?> MAPSERVER HELLO WORLD > The hello.map file is in the C:\OSGeo4W\apache\htdocs directory ??. And the hello.php file is also in the same directory. Plz help me I will be greatful to u -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Tue Sep 15 00:24:41 2009 From: micklesh at gmail.com (Michael Shishcu) Date: Tue, 15 Sep 2009 10:24:41 +0300 Subject: [mapserver-users] MapServer Error]: msLoadMap() In-Reply-To: <623d78c30909150018w3160403xfde2922b2b2368f3@mail.gmail.com> References: <623d78c30909150018w3160403xfde2922b2b2368f3@mail.gmail.com> Message-ID: > > Hi > Seems you are using mapserver 5.4 In your MAP-file the first word (except for comments) must be "MAP" (see the error message) also, can you post here contents of the map-file... Regards, michael 2009/9/15 harpal singh > I am new to map servers? I have written my first program ?..and I am having > problem ??I have written a simple hello world programon windows and it is > showing problems?? > > Error is ------------------ > *Warning*: [MapServer Error]: msLoadMap(): First token must be MAP, this > doesn't look like a mapfile. in *C:\OSGeo4W\apache\htdocs\hello.php* on > line *6* > > *Warning*: Failed to open map file C:\OSGeo4W\apache\htdocs/hello.map in * > C:\OSGeo4W\apache\htdocs\hello.php* on line *6* > > *Fatal error*: Call to a member function draw() on a non-object in * > C:\OSGeo4W\apache\htdocs\hello.php* on line *8* > > I have tried so much but it is not sorted out ?.. plz help me in doing so > ??.. thanx in advance ? > > > > > > The code is > > > dl("php_mapscript.dll"); > > $map_path="C:\OSGeo4W\apache\htdocs/"; > > $map = ms_newMapObj($map_path."hello.map"); > > $image=$map->draw(); > > $image_url=$image->saveWebImage(); > > ?> > > > > > > MAPSERVER HELLO WORLD > > > > > > > > > > > > > The hello.map file is in the C:\OSGeo4W\apache\htdocs directory ??. And > the hello.php file is also in the same directory. > Plz help me I will be greatful to u > _______________________________________________ > 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 daniel.degasperi at r3-gis.com Tue Sep 15 05:16:33 2009 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 15 Sep 2009 14:16:33 +0200 Subject: [mapserver-users] SLD with TextSymbolizer Message-ID: <4AAF85A1.2030509@r3-gis.com> Hi, I've some problems using the TextSymbolizer in my SLD-File (see Attachment route_sld.xml), specially with the following part, which will generate this error: column Literal does not exists. (see Attachment wms_error.png for further details) V Is this problem related to MapServer or MapServer does not support SLD-Labels? I've tested this with MapServer 5.2.2 and 5.4.2. Best regards, Daniel Degasperi -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: route_sld.xml Type: text/xml Size: 1904 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: wms_error.png Type: image/png Size: 4105 bytes Desc: not available URL: From Bob.Basques at ci.stpaul.mn.us Tue Sep 15 06:38:14 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 15 Sep 2009 08:38:14 -0500 Subject: [mapserver-users] Updated MapServer flyer In-Reply-To: <4AAF234C.1000903@lingner.eu> References: <4AAED9660200008F0002847B@co5.dnr.state.mn.us> <4AAF234C.1000903@lingner.eu> Message-ID: <4AAF5276.163B.00A8.0@ci.stpaul.mn.us> All, OK, probably a weird idea, but. . . . while looking for the brochure mentioned here (only found the old one so far . . .came into the thread in the middle) . . .a thought occurred to me. Why not make this project brochure creation thing a step in the incubation process. Use some sort of basic template and each project has it's own brochure. bobb >>> Lars Lingner wrote: Steve Lime schrieb: > Hi Lars, thanks for working up an updated brochure, looking at the old one > it could use it. Some comments... > > - I think I'd avoid the MapServer website screen shot in favor of another > app. The website text features the security fix announcements which while > a reality in a project aren't marketing friendly. I can offer a couple of sites > as could others I bet. I like your example, nice and colorful. If someone could point me to MapServer powered sites, I'll update the screenshot in the flyer. > > - Perhaps the screen shots could be a bit taller, more of a square aspect > ratio? Ok, I'll take a further look. > > - Under features it might make sense to highlight output options: all sorts > of raster images, PDF, SWF, SVG and templated text > > - Might include input and the new output plugin architectures as features > > - The "Leverages best-of-breed" sentence could be reworked to say we > leverage other OSGeo projects including GDAL, GEOS, PostGIS and Proj.4. I > think we should really emphasize the reliance on other OSGeo projects. > > - In the last feature sentence I think MapBuilder can be removed. There are > some frameworks specific to (or that at least favor) MapServer (e.g. p.mapper > and GeoMoose) that could get some love here... Thanks for this info. I'm putting it in. > > I think the 5.6 features are performance centric (raster rendering improvements, > single pass, etc...). The 6.0 release *should* have a more output-based focus > with full support for the rendering plugin, new object structures including > references, better SLD support, styles within labels and so on. XML mapfiles > will be in 5.6. It's important to note that XML mapfiles allow users to define > a configuration in XML but you must transform it to a .map file for use. I hope > that might really have an impact on wysiwyg editors eventually. > Sounds like an interesting roadmap, I'll spread the word... ;) Lars _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Tue Sep 15 06:55:53 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 15 Sep 2009 15:55:53 +0200 Subject: [mapserver-users] SLD with TextSymbolizer In-Reply-To: <4AAF85A1.2030509@r3-gis.com> References: <4AAF85A1.2030509@r3-gis.com> Message-ID: <4AAF9CE9.3080306@neogeo-online.net> Hi Daniel, Label is supposed to enclise the name of a field. Here is a complete working example of text symbolizer : 5 VERDANA bold 16 #000000 3 #FFFFFF Hope that helps Guillaume Daniel Degasperi a ?crit : > Hi, > > I've some problems using the TextSymbolizer in my SLD-File (see > Attachment route_sld.xml), specially with the following part, which will > generate this error: column Literal does not exists. (see Attachment > wms_error.png for further details) > > V > > Is this problem related to MapServer or MapServer does not support > SLD-Labels? > > I've tested this with MapServer 5.2.2 and 5.4.2. > > Best regards, > Daniel Degasperi > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From daniel.degasperi at r3-gis.com Tue Sep 15 08:03:54 2009 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 15 Sep 2009 17:03:54 +0200 Subject: [mapserver-users] SLD with TextSymbolizer In-Reply-To: <4AAF9CE9.3080306@neogeo-online.net> References: <4AAF85A1.2030509@r3-gis.com> <4AAF9CE9.3080306@neogeo-online.net> Message-ID: <4AAFACDA.10508@r3-gis.com> Hi Guillaume, I found this example: http://blog.geoserver.org/2009/04/02/follow-the-arrows/ Does MapServer support the ogc:Literal Element within label, too? Daniel Guillaume Sueur schrieb: > Hi Daniel, > > Label is supposed to enclise the name of a field. Here is a complete > working example of text symbolizer : > > > > > > > 5 > > > > > VERDANA > bold > 16 > > > #000000 > > > 3 > #FFFFFF > > > > Hope that helps > > Guillaume > > > Daniel Degasperi a ?crit : > >> Hi, >> >> I've some problems using the TextSymbolizer in my SLD-File (see >> Attachment route_sld.xml), specially with the following part, which will >> generate this error: column Literal does not exists. (see Attachment >> wms_error.png for further details) >> >> V >> >> Is this problem related to MapServer or MapServer does not support >> SLD-Labels? >> >> I've tested this with MapServer 5.2.2 and 5.4.2. >> >> Best regards, >> Daniel Degasperi >> >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Tue Sep 15 08:04:47 2009 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 15 Sep 2009 17:04:47 +0200 Subject: [mapserver-users] SLD with TextSymbolizer In-Reply-To: <4AAF9CE9.3080306@neogeo-online.net> References: <4AAF85A1.2030509@r3-gis.com> <4AAF9CE9.3080306@neogeo-online.net> Message-ID: Hi, actually, I think the sld specs say that the label property can be of mixed content and thus should e.g. allow for static text and variable property values. So if you want to have a static text "V" id should suffice to put that as it is in the label-tag. Values that have variable content obtained from a DB-field should be enclosed with . An example from the ogc spec: I had these problems too with older mapserver versions (< 5.x), but thought that recent versions handle this correctly. Especially the case of the example should work. Can you try that, i.e. have a static text mixed with a ogc:PropertyValue? Cheers, Michael 2009/9/15 Guillaume Sueur : > > Hi Daniel, > > Label is supposed to enclise the name of a field. Here is a complete > working example of text symbolizer : > > ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?5 > ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ?VERDANA > ? ? ? ? ? ? ? ?bold > ? ? ? ? ? ? ? ?16 > ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ?#000000 > ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ?3 > ? ? ? ? ? ? ? ?#FFFFFF > ? ? ? ? > > > Hope that helps > > Guillaume > > > Daniel Degasperi a ?crit : >> Hi, >> >> I've some problems using the TextSymbolizer in my SLD-File (see >> Attachment route_sld.xml), specially with the following part, which will >> generate this error: column Literal does not exists. (see Attachment >> wms_error.png for further details) >> >> V >> >> Is this problem related to MapServer or MapServer does not support >> SLD-Labels? >> >> I've tested this with MapServer 5.2.2 and 5.4.2. >> >> Best regards, >> Daniel Degasperi >> >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Besuchen Sie uns auf der INTERGEO 2009: 22.09. - 24.09.2009 in Karlsruhe; Halle 1, Stand 1.417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From daniel.degasperi at r3-gis.com Tue Sep 15 08:17:33 2009 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 15 Sep 2009 17:17:33 +0200 Subject: [mapserver-users] SLD with TextSymbolizer In-Reply-To: References: <4AAF85A1.2030509@r3-gis.com> <4AAF9CE9.3080306@neogeo-online.net> Message-ID: <4AAFB00D.4070608@r3-gis.com> Hi Michael, I've tested now the mixed case and it works. The simple static text generates an error (AAA), but it can be avoided with the following example: AAA Best regards, Daniel Michael Schulz schrieb: > Hi, > > actually, I think the sld specs say that the label property can be of > mixed content and thus should e.g. allow for static text and variable > property values. So if you want to have a static text "V" id should > suffice to put that as it is in the label-tag. Values that have > variable content obtained from a DB-field should be enclosed with > . An example from the ogc spec: > > > > I had these problems too with older mapserver versions (< 5.x), but > thought that recent versions handle this correctly. Especially the > case of the example should work. Can you try that, i.e. have a static > text mixed with a ogc:PropertyValue? > > Cheers, Michael > > > 2009/9/15 Guillaume Sueur : > >> Hi Daniel, >> >> Label is supposed to enclise the name of a field. Here is a complete >> working example of text symbolizer : >> >> >> >> >> >> >> 5 >> >> >> >> >> VERDANA >> bold >> 16 >> >> >> #000000 >> >> >> 3 >> #FFFFFF >> >> >> >> Hope that helps >> >> Guillaume >> >> >> Daniel Degasperi a ?crit : >> >>> Hi, >>> >>> I've some problems using the TextSymbolizer in my SLD-File (see >>> Attachment route_sld.xml), specially with the following part, which will >>> generate this error: column Literal does not exists. (see Attachment >>> wms_error.png for further details) >>> >>> V >>> >>> Is this problem related to MapServer or MapServer does not support >>> SLD-Labels? >>> >>> I've tested this with MapServer 5.2.2 and 5.4.2. >>> >>> Best regards, >>> Daniel Degasperi >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Sep 15 08:21:28 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 15 Sep 2009 11:21:28 -0400 Subject: [mapserver-users] SLD with TextSymbolizer In-Reply-To: References: <4AAF85A1.2030509@r3-gis.com> <4AAF9CE9.3080306@neogeo-online.net> Message-ID: <4AAFB0F8.4000502@dmsolutions.ca> trac id referring to this issue is http://trac.osgeo.org/mapserver/ticket/1857 It was done before the 5.0 release. regards Michael Schulz wrote: > Hi, > > actually, I think the sld specs say that the label property can be of > mixed content and thus should e.g. allow for static text and variable > property values. So if you want to have a static text "V" id should > suffice to put that as it is in the label-tag. Values that have > variable content obtained from a DB-field should be enclosed with > . An example from the ogc spec: > > > > I had these problems too with older mapserver versions (< 5.x), but > thought that recent versions handle this correctly. Especially the > case of the example should work. Can you try that, i.e. have a static > text mixed with a ogc:PropertyValue? > > Cheers, Michael > > > 2009/9/15 Guillaume Sueur : >> Hi Daniel, >> >> Label is supposed to enclise the name of a field. Here is a complete >> working example of text symbolizer : >> >> >> >> >> >> >> 5 >> >> >> >> >> VERDANA >> bold >> 16 >> >> >> #000000 >> >> >> 3 >> #FFFFFF >> >> >> >> Hope that helps >> >> Guillaume >> >> >> Daniel Degasperi a ?crit : >>> Hi, >>> >>> I've some problems using the TextSymbolizer in my SLD-File (see >>> Attachment route_sld.xml), specially with the following part, which will >>> generate this error: column Literal does not exists. (see Attachment >>> wms_error.png for further details) >>> >>> V >>> >>> Is this problem related to MapServer or MapServer does not support >>> SLD-Labels? >>> >>> I've tested this with MapServer 5.2.2 and 5.4.2. >>> >>> Best regards, >>> Daniel Degasperi >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pauljame at gmail.com Tue Sep 15 10:59:30 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 15 Sep 2009 14:59:30 -0300 Subject: [mapserver-users] Problem using getShape with MsSql2008 (Mapscript C#) In-Reply-To: <33fad6880908110522l5a006b58p595fdab47f8ca306@mail.gmail.com> References: <33fad6880908051248l41051eadxef73770d6943b949@mail.gmail.com> <33fad6880908060733s4980df12t39141c3d69edaf3@mail.gmail.com> <33fad6880908070639w59aff538qe5b43ee96e181dc@mail.gmail.com> <33fad6880908070738t699fa9ffg7c9ac4ef0614a7ee@mail.gmail.com> <33fad6880908070911w53f9e7c8l19978f11dc222992@mail.gmail.com> <33fad6880908110522l5a006b58p595fdab47f8ca306@mail.gmail.com> Message-ID: <33fad6880909151059k5ca77597j8e64eda9358e3f6c@mail.gmail.com> Tamas, The last problem with getShape is solved and working fine.... But now I got other possible bug using MsSql2008/C# ... Code : MapObj.queryByPoint(_oGeo, mapscript.MS_MULTIPLE, -1) Thas is working fine with Postgis... But wth MsSql2008, got the following error : (using queryByRect all works fine) msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL statement: SELECT convert(varchar(max), oid),convert(varchar(max), anoreferencia),convert(varchar(max), uf),convert(varchar(max), rodovia),convert(varchar(max), codigopnv),convert(varchar(max), localiniciofim),convert(varchar(max), inicio),convert(varchar(max), fim),convert(varchar(max), extensao),convert(varchar(max), superficie),convert(varchar(max), listacoincidente),convert(varchar(max), estadualcoincidente),convert(varchar(max), superficieestadualcoincidente),convert(varchar(max), mp_082),convert(varchar(max), concessaoconvenio),the_geom.STAsBinary(),convert(varchar(20), oid) from viwgeo_test WHERE the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]: System.FormatException: 24305: The Polygon input is not valid because the ring does not have enough distinct points. Each ring of a polygon must contain at least three distinct points. System.FormatException: at Microsoft.SqlServer.Types.Validator.Execute(Transition transition) at Microsoft.SqlServer.Types.Validator.EndFigure() at Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type) at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.STGeom -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Sep 15 13:10:12 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 15 Sep 2009 22:10:12 +0200 Subject: [mapserver-users] Problem using getShape with MsSql2008 (Mapscript C#) In-Reply-To: <33fad6880909151059k5ca77597j8e64eda9358e3f6c@mail.gmail.com> References: <33fad6880908051248l41051eadxef73770d6943b949@mail.gmail.com> <33fad6880908070639w59aff538qe5b43ee96e181dc@mail.gmail.com> <33fad6880908070738t699fa9ffg7c9ac4ef0614a7ee@mail.gmail.com> <33fad6880908070911w53f9e7c8l19978f11dc222992@mail.gmail.com> <33fad6880908110522l5a006b58p595fdab47f8ca306@mail.gmail.com> <33fad6880909151059k5ca77597j8e64eda9358e3f6c@mail.gmail.com> Message-ID: Paul, To avoid this problem you might want to set either the buffer parameter of queryByPoint or layerObj.tolerance to a positive value to avoid passing a rectangle with no extent to the SQL data source. Best regards, Tamas 2009/9/15 Paul james > Tamas, > > The last problem with getShape is solved and working fine.... > But now I got other possible bug using MsSql2008/C# ... > > Code : > MapObj.queryByPoint(_oGeo, mapscript.MS_MULTIPLE, -1) > > Thas is working fine with Postgis... > > But wth MsSql2008, got the following error : > (using queryByRect all works fine) > > msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL > statement: SELECT convert(varchar(max), oid),convert(varchar(max), > anoreferencia),convert(varchar(max), uf),convert(varchar(max), > rodovia),convert(varchar(max), codigopnv),convert(varchar(max), > localiniciofim),convert(varchar(max), inicio),convert(varchar(max), > fim),convert(varchar(max), extensao),convert(varchar(max), > superficie),convert(varchar(max), listacoincidente),convert(varchar(max), > estadualcoincidente),convert(varchar(max), > superficieestadualcoincidente),convert(varchar(max), > mp_082),convert(varchar(max), > concessaoconvenio),the_geom.STAsBinary(),convert(varchar(20), oid) from > viwgeo_test WHERE > the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-74.6741893243784 > 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 > 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 > 2.46256865079364))',0)) = 1 > -[Microsoft][ODBC SQL Server Driver][SQL Server]: > System.FormatException: 24305: The Polygon input is not valid because the > ring does not have enough distinct points. Each ring of a polygon must > contain at least three distinct points. > System.FormatException: > at Microsoft.SqlServer.Types.Validator.Execute(Transition transition) > at Microsoft.SqlServer.Types.Validator.EndFigure() > at Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure() > at Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText() > at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText() > at > Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type) > at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, > Int32 srid) > at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType > type, SqlChars text, Int32 srid) > at Microsoft.SqlServer.Types.SqlGeometry.STGeom > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chodgson at refractions.net Tue Sep 15 15:50:37 2009 From: chodgson at refractions.net (Chris Hodgson) Date: Tue, 15 Sep 2009 15:50:37 -0700 Subject: [mapserver-users] WMS Client Error Handling Message-ID: <4AB01A3D.8080904@refractions.net> I'm implementing a WMS proxy server using PHP mapscript. I'm fetching the capabilities programmatically and storing them in a database and then building a mapfile on the fly. The mapfile contains multiple "connectiontype WMS" layers, and I'd like to be able to (a) determine when one of the WMS client requests has failed, and (b) get the error message returned for each failed layer. I'm starting to think this may not be possible currently, and it seems that the code for doing anything like this has been pushed back for a while [ http://trac.osgeo.org/mapserver/ticket/1246 ]. Any chance that I'm wrong and there is already a way to do this? Anybody else interested in this feature? Anybody already done something like this? I guess the alternatives are to either try to implement this myself in mapserver, or perhaps drop mapserver altogether for my proxy application and just do my own WMS requests and image compositing because I guess that is all that I am using mapserver for right now. Thanks, Chris From dmorissette at mapgears.com Tue Sep 15 17:15:01 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 15 Sep 2009 20:15:01 -0400 Subject: [mapserver-users] WMS Client Error Handling In-Reply-To: <4AB01A3D.8080904@refractions.net> References: <4AB01A3D.8080904@refractions.net> Message-ID: <4AB02E05.2020509@mapgears.com> Chris Hodgson wrote: > I'm implementing a WMS proxy server using PHP mapscript. I'm fetching > the capabilities programmatically and storing them in a database and > then building a mapfile on the fly. The mapfile contains multiple > "connectiontype WMS" layers, and I'd like to be able to (a) determine > when one of the WMS client requests has failed, and (b) get the error > message returned for each failed layer. I'm starting to think this may > not be possible currently, and it seems that the code for doing anything > like this has been pushed back for a while [ > http://trac.osgeo.org/mapserver/ticket/1246 ]. > > Any chance that I'm wrong and there is already a way to do this? Anybody > else interested in this feature? Anybody already done something like this? > Ticket 1246 is only about the *default* exception format, but using the wms_exceptions_format metadata you can override the default and request text/xml or application/vnd.ogc.se_xml exceptions (depending on WMS version). Then if an exception is received MapServer will try to read the exception message and pass it to msSetError() with an error code of MS_WMSERR (24). This does not cause a fatal error and won't stop your script though, the message is only stored in the error stack. In MapScript you should be able to read the error stack (errorObj) and extract the error messages. More about the errorObj at http://mapserver.org/trunk/en/mapscript/php/index.html#errorobj-class I think the handling of WMS exceptions could be greatly improved, but you may be able to get along with this basic stuff. Daniel -- Daniel Morissette http://www.mapgears.com/ From bob.b at gritechnologies.com Tue Sep 15 17:58:43 2009 From: bob.b at gritechnologies.com (Bob Basques) Date: Tue, 15 Sep 2009 19:58:43 -0500 Subject: [OSGeo-Discuss] Re: [mapserver-users] Updated MapServer flyer In-Reply-To: <1253032655.28633.2133.camel@siduxbox> References: <4AAED9660200008F0002847B@co5.dnr.state.mn.us> <4AAF234C.1000903@lingner.eu> <4AAF5276.163B.00A8.0@ci.stpaul.mn.us> <1253032655.28633.2133.camel@siduxbox> Message-ID: <4AB03843.20704@gritechnologies.com> All, I could do something for collecting the data with perl, haven't worked with PDF output yet though. bobb Tyler Mitchell (OSGeo) wrote: > Not a bad idea Bob. I'd also like to take it a step further and have > some basic web forms that help to create the flyers so that no software > is required on the client - e.g. enter the info, press create and > download a PDF. Anyone want to help put their CGI and PDF lib skills > into this kind of thing? It could even be used for creating business > cards, etc. > > On Tue, 2009-09-15 at 08:38 -0500, Bob Basques wrote: > >> All, >> >> >> OK, probably a weird idea, but. . . . while looking for the brochure >> mentioned here (only found the old one so far . . .came into the >> thread in the middle) . . .a thought occurred to me. Why not make >> this project brochure creation thing a step in the incubation >> process. Use some sort of basic template and each project has it's >> own brochure. >> >> >> bobb >> >> >> >> >> >> >> >>>>> Lars Lingner wrote: >>>>> >> Steve Lime schrieb: >> >>> Hi Lars, thanks for working up an updated brochure, looking at the >>> >> old one >> >>> it could use it. Some comments... >>> >>> - I think I'd avoid the MapServer website screen shot in favor of >>> >> another >> >>> app. The website text features the security fix announcements which >>> >> while >> >>> a reality in a project aren't marketing friendly. I can offer a >>> >> couple of sites >> >>> as could others I bet. I like your example, nice and colorful. >>> >> If someone could point me to MapServer powered sites, I'll update the >> screenshot in the flyer. >> >> >>> - Perhaps the screen shots could be a bit taller, more of a square >>> >> aspect >> >>> ratio? >>> >> Ok, I'll take a further look. >> >> >>> - Under features it might make sense to highlight output options: >>> >> all sorts >> >>> of raster images, PDF, SWF, SVG and templated text >>> >>> - Might include input and the new output plugin architectures as >>> >> features >> >>> - The "Leverages best-of-breed" sentence could be reworked to say >>> >> we >> >>> leverage other OSGeo projects including GDAL, GEOS, PostGIS and >>> >> Proj.4. I >> >>> think we should really emphasize the reliance on other OSGeo >>> >> projects. >> >>> - In the last feature sentence I think MapBuilder can be removed. >>> >> There are >> >>> some frameworks specific to (or that at least favor) MapServer (e.g. >>> >> p.mapper >> >>> and GeoMoose) that could get some love here... >>> >> Thanks for this info. I'm putting it in. >> >> >>> I think the 5.6 features are performance centric (raster rendering >>> >> improvements, >> >>> single pass, etc...). The 6.0 release *should* have a more >>> >> output-based focus >> >>> with full support for the rendering plugin, new object structures >>> >> including >> >>> references, better SLD support, styles within labels and so on. XML >>> >> mapfiles >> >>> will be in 5.6. It's important to note that XML mapfiles allow users >>> >> to define >> >>> a configuration in XML but you must transform it to a .map file for >>> >> use. I hope >> >>> that might really have an impact on wysiwyg editors eventually. >>> >>> >> Sounds like an interesting roadmap, I'll spread the word... ;) >> >> >> Lars >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> _______________________________________________ >> Discuss mailing list >> Discuss at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/discuss >> > > > _______________________________________________ > Discuss mailing list > Discuss at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/discuss > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From harpalhira at gmail.com Tue Sep 15 21:26:05 2009 From: harpalhira at gmail.com (harpal singh) Date: Wed, 16 Sep 2009 09:56:05 +0530 Subject: [mapserver-users] (no subject) Message-ID: <623d78c30909152126x2ad6cc5foe1f1d153413591b@mail.gmail.com> THANX MICHAEL FOR YOUR ADVISE........ NOW MY PROGRAM IS RUNNING JUST BECOZ OF U ... NOW IT SEEMS LIKE THAT I M READY TO DO SOME MORE STUFF WITH MAPSERVER.... HARPAL SINGH -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Tue Sep 15 23:47:31 2009 From: micklesh at gmail.com (Michael Shishcu) Date: Wed, 16 Sep 2009 09:47:31 +0300 Subject: [mapserver-users] (no subject) In-Reply-To: <623d78c30909152126x2ad6cc5foe1f1d153413591b@mail.gmail.com> References: <623d78c30909152126x2ad6cc5foe1f1d153413591b@mail.gmail.com> Message-ID: Ur are welcome Regards, Michael 2009/9/16 harpal singh > THANX MICHAEL FOR YOUR ADVISE........ > NOW MY PROGRAM IS RUNNING JUST BECOZ OF U ... > NOW IT SEEMS LIKE THAT I M READY TO DO SOME MORE STUFF WITH MAPSERVER.... > HARPAL SINGH > > _______________________________________________ > 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 r.terhaar at i-real.nl Wed Sep 16 02:16:17 2009 From: r.terhaar at i-real.nl (I-Real - Rob ter Haar) Date: Wed, 16 Sep 2009 11:16:17 +0200 Subject: [mapserver-users] Problem big filteritem (apache crash) Message-ID: <4AB0ACE1.1080602@i-real.nl> Hello All, I have a problem with a filteritem witch contains +/- 11000 characters. This are id's of points which I would show on a map. When I called the page apache crasht. And in the coredump I see the following: #0 0x00cf15bc in mempcpy () from /lib/libc.so.6 No symbol table info available. #1 0x00ce6558 in _IO_default_xsputn_internal () from /lib/libc.so.6 No symbol table info available. #2 0x00cc2bd8 in vfprintf () from /lib/libc.so.6 No symbol table info available. #3 0x00cdbd4c in vsprintf () from /lib/libc.so.6 No symbol table info available. #4 0x00cc853e in sprintf () from /lib/libc.so.6 No symbol table info available. #5 0x070fa3f5 in msOracleSpatialLayerWhichShapes (layer=0x36393639, rect= {minx = 1.7223872351905284e-47, miny = 1.1808818690463142e-95, maxx = 2.0056059668611313e-76, maxy = 2.7151806783827087e-33}) at maporaclespatial.c:670 success = i = -1081417209 function = 959197241 version = 909716537 query_str = "SELECT LOCATIEID, alarm_actief, NAAM, SHAPE FROM (SELECT L.LOCATIEID AS LOCATIEID, LG.SHAPE, L.NAAM AS NAAM, L.ADRES, L.PLAATS, alarm.NAAM Laatste_alarm, unixts_to_date(Alarm.TIJDSTIP_HOOG) Actief_sin"... table_name = ",4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5113,5396,5546,5547,5548,5549"... geom_column_name = ",9647,9648,9649,9654,9655,9656,9657,9658,9659,9660,9661,9662,9663,9664,9665,9669,9670,9671,9672,9688" unique = ",9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,9637,9641,9642,9643,9644,9645,9646" srid = ",9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617,9618,9619,9620,9621,9622,9623" adtp = (OCIDefine *) 0x3836392c items = (OCIDefine **) 0x93b5560 dthand = (msOracleSpatialDataHandler *) 0x938e930 hand = (msOracleSpatialHandler *) 0x9436080 In the fields Table_name, geon_colomn_name, unique and srid are filled with the string I assign to FilterItem. Is this a bug or do I make a mistake? I use the mapscript (php) to assign the variables. Can anyone help me? Met vriendelijke groet, Rob ter Haar *I-Real* Postbus 593 7000 AN Doetinchem *T:* +31 (0)314 366600 *F:* +31 (0)314 363410 *E:* r.terhaar at i-real.nl *I:* www.i-real.nl De informatie in dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Verstrekking aan en gebruik door anderen is niet toegestaan. Door de elektronische verzending van het bericht, kunnen er geen rechten worden ontleend aan de informatie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schatterjee at addisontx.gov Wed Sep 16 06:30:48 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Wed, 16 Sep 2009 08:30:48 -0500 Subject: [mapserver-users] multilinestring and linestring Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F0@sc-exchange.addisongov.org> Hi all, I want to know : 1) Is there any way to convert many Multilinestring geometry into one linestring geometry? I need to enter linestring geometry into a table with check constraint "enforce_geotype_the_geom" meant for Multilinestring . So I need to convert the linestring to a multilinestring 2) How can I convert a linestring to a multilinestring? Thanks Suman ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Sep 16 06:35:19 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 16 Sep 2009 08:35:19 -0500 Subject: [mapserver-users] Problem big filteritem (apache crash) In-Reply-To: <4AB0ACE1.1080602@i-real.nl> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA835@s-sp22.pca.state.mn.us> If you take the query that MapServer is creating and run it directly against Oracle, does it work? I seem to remember that Oracle has a limit on the number or elements or characters allowed in IN statements. The limit is 1000 'expressions' in an IN condition. If you care to RTM: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressio ns014.htm#i1033664 You are going to have to come up with another way to write your filter query. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of I-Real - Rob ter Haar Sent: Wednesday, September 16, 2009 4:16 AM To: mapserver Subject: [mapserver-users] Problem big filteritem (apache crash) Hello All, I have a problem with a filteritem witch contains +/- 11000 characters. This are id's of points which I would show on a map. When I called the page apache crasht. And in the coredump I see the following: #0 0x00cf15bc in mempcpy () from /lib/libc.so.6 No symbol table info available. #1 0x00ce6558 in _IO_default_xsputn_internal () from /lib/libc.so.6 No symbol table info available. #2 0x00cc2bd8 in vfprintf () from /lib/libc.so.6 No symbol table info available. #3 0x00cdbd4c in vsprintf () from /lib/libc.so.6 No symbol table info available. #4 0x00cc853e in sprintf () from /lib/libc.so.6 No symbol table info available. #5 0x070fa3f5 in msOracleSpatialLayerWhichShapes (layer=0x36393639, rect= {minx = 1.7223872351905284e-47, miny = 1.1808818690463142e-95, maxx = 2.0056059668611313e-76, maxy = 2.7151806783827087e-33}) at maporaclespatial.c:670 success = i = -1081417209 function = 959197241 version = 909716537 query_str = "SELECT LOCATIEID, alarm_actief, NAAM, SHAPE FROM (SELECT L.LOCATIEID AS LOCATIEID, LG.SHAPE, L.NAAM AS NAAM, L.ADRES, L.PLAATS, alarm.NAAM Laatste_alarm, unixts_to_date(Alarm.TIJDSTIP_HOOG) Actief_sin"... table_name = ",4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5035,5036, 5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,50 51,5052,5053,5054,5055,5056,5113,5396,5546,5547,5548,5549"... geom_column_name = ",9647,9648,9649,9654,9655,9656,9657,9658,9659,9660,9661,9662,9663,9664, 9665,9669,9670,9671,9672,9688" unique = ",9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,9637, 9641,9642,9643,9644,9645,9646" srid = ",9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617, 9618,9619,9620,9621,9622,9623" adtp = (OCIDefine *) 0x3836392c items = (OCIDefine **) 0x93b5560 dthand = (msOracleSpatialDataHandler *) 0x938e930 hand = (msOracleSpatialHandler *) 0x9436080 In the fields Table_name, geon_colomn_name, unique and srid are filled with the string I assign to FilterItem. Is this a bug or do I make a mistake? I use the mapscript (php) to assign the variables. Can anyone help me? Met vriendelijke groet, Rob ter Haar I-Real Postbus 593 7000 AN Doetinchem T: +31 (0)314 366600 F: +31 (0)314 363410 E: r.terhaar at i-real.nl I: www.i-real.nl De informatie in dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Verstrekking aan en gebruik door anderen is niet toegestaan. Door de elektronische verzending van het bericht, kunnen er geen rechten worden ontleend aan de informatie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iacovlev.pavel at gmail.com Wed Sep 16 06:40:31 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 16 Sep 2009 16:40:31 +0300 Subject: [mapserver-users] Problem big filteritem (apache crash) In-Reply-To: <4AB0ACE1.1080602@i-real.nl> References: <4AB0ACE1.1080602@i-real.nl> Message-ID: <2a37f67a0909160640m67f74392i26e2db9ce16ccf63@mail.gmail.com> If you use mapscript you can: Insert your "items" in a a separate table and then just do a SELECT * FROM table where id in (SELECT id from TABLE_WITH_YOUR_FILTER_IDS) On Wed, Sep 16, 2009 at 12:16 PM, I-Real - Rob ter Haar wrote: > Hello All, > > I have a problem with a filteritem witch contains +/- 11000 characters. This > are id's of points which I would show on a map. When I called the page > apache crasht. And in the coredump I see the following: > > #0? 0x00cf15bc in mempcpy () from /lib/libc.so.6 > No symbol table info available. > #1? 0x00ce6558 in _IO_default_xsputn_internal () from /lib/libc.so.6 > No symbol table info available. > #2? 0x00cc2bd8 in vfprintf () from /lib/libc.so.6 > No symbol table info available. > #3? 0x00cdbd4c in vsprintf () from /lib/libc.so.6 > No symbol table info available. > #4? 0x00cc853e in sprintf () from /lib/libc.so.6 > No symbol table info available. > #5? 0x070fa3f5 in msOracleSpatialLayerWhichShapes (layer=0x36393639, rect= > ????? {minx = 1.7223872351905284e-47, miny = 1.1808818690463142e-95, maxx = > 2.0056059668611313e-76, maxy = 2.7151806783827087e-33}) at > maporaclespatial.c:670 > ??????? success = > ??????? i = -1081417209 > ??????? function = 959197241 > ??????? version = 909716537 > ??????? query_str = "SELECT LOCATIEID, alarm_actief, NAAM, SHAPE FROM > (SELECT L.LOCATIEID AS LOCATIEID, LG.SHAPE, L.NAAM AS NAAM, L.ADRES, > L.PLAATS, alarm.NAAM Laatste_alarm, unixts_to_date(Alarm.TIJDSTIP_HOOG) > Actief_sin"... > ??????? table_name = > ",4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5113,5396,5546,5547,5548,5549"... > ??????? geom_column_name = > ",9647,9648,9649,9654,9655,9656,9657,9658,9659,9660,9661,9662,9663,9664,9665,9669,9670,9671,9672,9688" > ??????? unique = > ",9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,9637,9641,9642,9643,9644,9645,9646" > ??????? srid = > ",9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617,9618,9619,9620,9621,9622,9623" > ??????? adtp = (OCIDefine *) 0x3836392c > ??????? items = (OCIDefine **) 0x93b5560 > ??????? dthand = (msOracleSpatialDataHandler *) 0x938e930 > ??????? hand = (msOracleSpatialHandler *) 0x9436080 > > In the fields Table_name, geon_colomn_name, unique? and srid are filled with > the string I assign to FilterItem. > > Is this a bug or do I make a mistake? > > I use the mapscript (php) to assign the variables. > > Can anyone help me? > > Met vriendelijke groet, > Rob ter Haar > > I-Real > Postbus 593 > 7000 AN Doetinchem > T: +31 (0)314 366600 > F: +31 (0)314 363410 > E: r.terhaar at i-real.nl > I: www.i-real.nl > > De informatie in dit e-mailbericht is uitsluitend bestemd voor de > geadresseerde. > Verstrekking aan en gebruik door anderen is niet toegestaan. > Door de elektronische verzending van het bericht, kunnen er geen rechten > worden ontleend aan de informatie. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- http://iap.md, The future is open From iacovlev.pavel at gmail.com Wed Sep 16 06:43:48 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 16 Sep 2009 16:43:48 +0300 Subject: [mapserver-users] multilinestring and linestring In-Reply-To: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F0@sc-exchange.addisongov.org> References: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F0@sc-exchange.addisongov.org> Message-ID: <2a37f67a0909160643q4bf5fb5by7bb97cc015a1a16a@mail.gmail.com> 1) You can convert multiple multilinestrings into 1 multilinestring with st_union 2) st_multi() On Wed, Sep 16, 2009 at 4:30 PM, Suman Chatterjee wrote: > Hi all, > > I want to know : > > > > 1)?????? Is there any way to convert many Multilinestring geometry into one > linestring geometry? > > > > I need to enter linestring geometry into a table with check constraint > ?enforce_geotype_the_geom? meant for Multilinestring . So I need to convert > the linestring to a multilinestring > > > > 2)?????? How can I convert a linestring to a multilinestring? > > > > Thanks > > Suman > > ******************************************************************************************************************* > > This e-mail and any files or attachments transmitted with it contains > Information that is confidential and privileged. This document may contain > Protected Health Information (PHI) or other information that is intended > only for the use of the individual(s) and entity(ies) to whom it is > addressed. If you are the intended recipient, further disclosures are > prohibited without proper authorization. If you are not the intended > recipient, any disclosure, copying, printing, or use of this information is > strictly prohibited and possibly a violation of federal or state law and > regulations. If you have received this information in error, please delete > it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. > > ******************************************************************************************************************* > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- http://iap.md, The future is open From schatterjee at addisontx.gov Wed Sep 16 07:38:05 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Wed, 16 Sep 2009 09:38:05 -0500 Subject: [mapserver-users] multilinestring and linestring Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D00279779C@sc-exchange.addisongov.org> Hi Pavel! Thanks a lot for your help. St_union is really helpful. Now I am able to do it Suman -----Original Message----- From: Pavel Iacovlev [mailto:iacovlev.pavel at gmail.com] Sent: Wednesday, September 16, 2009 8:44 AM To: Suman Chatterjee Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] multilinestring and linestring 1) You can convert multiple multilinestrings into 1 multilinestring with st_union 2) st_multi() On Wed, Sep 16, 2009 at 4:30 PM, Suman Chatterjee wrote: > Hi all, > > I want to know : > > > > 1)?????? Is there any way to convert many Multilinestring geometry into one > linestring geometry? > > > > I need to enter linestring geometry into a table with check constraint > "enforce_geotype_the_geom" meant for Multilinestring . So I need to convert > the linestring to a multilinestring > > > > 2)?????? How can I convert a linestring to a multilinestring? > > > > Thanks > > Suman > > ******************************************************************************************************************* > > This e-mail and any files or attachments transmitted with it contains > Information that is confidential and privileged. This document may contain > Protected Health Information (PHI) or other information that is intended > only for the use of the individual(s) and entity(ies) to whom it is > addressed. If you are the intended recipient, further disclosures are > prohibited without proper authorization. If you are not the intended > recipient, any disclosure, copying, printing, or use of this information is > strictly prohibited and possibly a violation of federal or state law and > regulations. If you have received this information in error, please delete > it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. > > ******************************************************************************************************************* > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- http://iap.md, The future is open From stevegrey78 at gmail.com Wed Sep 16 07:55:30 2009 From: stevegrey78 at gmail.com (Steve Grey) Date: Wed, 16 Sep 2009 15:55:30 +0100 Subject: [mapserver-users] multilinestring and linestring In-Reply-To: <6924A68BEE67AA46A1E95CC0EB4F98D00279779C@sc-exchange.addisongov.org> References: <6924A68BEE67AA46A1E95CC0EB4F98D00279779C@sc-exchange.addisongov.org> Message-ID: Suman, Also try ST_LineMerge for merging the indivudal linestring elements of a single multilinestring into a single linestring (where the lines connect). ST_Union is expensive, although I believe work has been done on aggregated geometry functions in the later/latest postgis releases. Steve 2009/9/16 Suman Chatterjee > Hi Pavel! > Thanks a lot for your help. St_union is really helpful. Now I am able to do > it > Suman > > -----Original Message----- > From: Pavel Iacovlev [mailto:iacovlev.pavel at gmail.com] > Sent: Wednesday, September 16, 2009 8:44 AM > To: Suman Chatterjee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] multilinestring and linestring > > 1) You can convert multiple multilinestrings into 1 multilinestring > with st_union > 2) st_multi() > > On Wed, Sep 16, 2009 at 4:30 PM, Suman Chatterjee > wrote: > > Hi all, > > > > I want to know : > > > > > > > > 1) Is there any way to convert many Multilinestring geometry into > one > > linestring geometry? > > > > > > > > I need to enter linestring geometry into a table with check constraint > > "enforce_geotype_the_geom" meant for Multilinestring . So I need to > convert > > the linestring to a multilinestring > > > > > > > > 2) How can I convert a linestring to a multilinestring? > > > > > > > > Thanks > > > > Suman > > > > > ******************************************************************************************************************* > > > > This e-mail and any files or attachments transmitted with it contains > > Information that is confidential and privileged. This document may > contain > > Protected Health Information (PHI) or other information that is intended > > only for the use of the individual(s) and entity(ies) to whom it is > > addressed. If you are the intended recipient, further disclosures are > > prohibited without proper authorization. If you are not the intended > > recipient, any disclosure, copying, printing, or use of this information > is > > strictly prohibited and possibly a violation of federal or state law and > > regulations. If you have received this information in error, please > delete > > it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. > > > > > ******************************************************************************************************************* > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > http://iap.md, The future is open > _______________________________________________ > 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 jasonbeverage at gmail.com Wed Sep 16 11:13:02 2009 From: jasonbeverage at gmail.com (Jason Beverage) Date: Wed, 16 Sep 2009 14:13:02 -0400 Subject: [mapserver-users] Raster layers with partial transparency Message-ID: <2c4bbbeb0909161113r1a3f170bqbb768f7ce200585a@mail.gmail.com> Hi all, I'm serving up some raster imagery with an alpha band that contains partially transparent pixels using mapscript but when the image is rendered, the partially transparent portions (alpha between 5 and 10) come through completely opaque (alpha of 255). Areas that are fully opaque or fully transparent look fine. I'm using an output format with the GD/PNG renderer with a RGBA image mode and "transparent" set to true. I've tried using the AGG/PNG and GDAL/PNG renderers with the same result. C# code for the output format: map.outputformat.name = "PNG"; map.outputformat.driver = "GD/PNG"; map.outputformat.mimetype = "image/png"; map.outputformat.imagemode = (int)MS_IMAGEMODE.MS_IMAGEMODE_RGBA; map.outputformat.extension = "png"; map.outputformat.transparent = 1; Any ideas on what I'm doing wrong? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From chodgson at refractions.net Wed Sep 16 12:58:30 2009 From: chodgson at refractions.net (Chris Hodgson) Date: Wed, 16 Sep 2009 12:58:30 -0700 Subject: [mapserver-users] WMS Client Error Handling In-Reply-To: <4AB02E05.2020509@mapgears.com> References: <4AB01A3D.8080904@refractions.net> <4AB02E05.2020509@mapgears.com> Message-ID: <4AB14366.6090202@refractions.net> Thanks Daniel, that seems to be working well. The biggest problem I have is that I need to parse the name of the layer that had the error out of the error->message - this works but obviously the format of the error message could change in the future which would break my parser. I guess there is potentially a lot of different things that could be involved in the error so having a separate field in the error object for each of them might be too much to ask, but a field for the layer name would certainly be handy for me in this case :) Cheers, Chris Daniel Morissette wrote: > Chris Hodgson wrote: >> I'm implementing a WMS proxy server using PHP mapscript. I'm fetching >> the capabilities programmatically and storing them in a database and >> then building a mapfile on the fly. The mapfile contains multiple >> "connectiontype WMS" layers, and I'd like to be able to (a) determine >> when one of the WMS client requests has failed, and (b) get the error >> message returned for each failed layer. I'm starting to think this >> may not be possible currently, and it seems that the code for doing >> anything like this has been pushed back for a while [ >> http://trac.osgeo.org/mapserver/ticket/1246 ]. >> >> Any chance that I'm wrong and there is already a way to do this? >> Anybody else interested in this feature? Anybody already done >> something like this? >> > > Ticket 1246 is only about the *default* exception format, but using > the wms_exceptions_format metadata you can override the default and > request text/xml or application/vnd.ogc.se_xml exceptions (depending > on WMS version). > > Then if an exception is received MapServer will try to read the > exception message and pass it to msSetError() with an error code of > MS_WMSERR (24). This does not cause a fatal error and won't stop your > script though, the message is only stored in the error stack. In > MapScript you should be able to read the error stack (errorObj) and > extract the error messages. > > More about the errorObj at > http://mapserver.org/trunk/en/mapscript/php/index.html#errorobj-class > > I think the handling of WMS exceptions could be greatly improved, but > you may be able to get along with this basic stuff. > > Daniel From chodgson at refractions.net Wed Sep 16 16:20:27 2009 From: chodgson at refractions.net (Chris Hodgson) Date: Wed, 16 Sep 2009 16:20:27 -0700 Subject: [mapserver-users] Raster layers with partial transparency In-Reply-To: <2c4bbbeb0909161113r1a3f170bqbb768f7ce200585a@mail.gmail.com> References: <2c4bbbeb0909161113r1a3f170bqbb768f7ce200585a@mail.gmail.com> Message-ID: <4AB172BB.7020306@refractions.net> Just a guess but have you tried with transparent = 0? Just wondering if the transparent mode rendering is somehow overriding the RGBA alpha mode rendering? Chris Jason Beverage wrote: > Hi all, > > I'm serving up some raster imagery with an alpha band that contains > partially transparent pixels using mapscript but when the image is > rendered, the partially transparent portions (alpha between 5 and 10) > come through completely opaque (alpha of 255). Areas that are fully > opaque or fully transparent look fine. > > I'm using an output format with the GD/PNG renderer with a RGBA image > mode and "transparent" set to true. I've tried using the AGG/PNG and > GDAL/PNG renderers with the same result. > > C# code for the output format: > map.outputformat.name = "PNG"; > map.outputformat.driver = "GD/PNG"; > map.outputformat.mimetype = "image/png"; > map.outputformat.imagemode = (int)MS_IMAGEMODE.MS_IMAGEMODE_RGBA; > map.outputformat.extension = "png"; > map.outputformat.transparent = 1; > > Any ideas on what I'm doing wrong? > > Thanks, > > Jason > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jasonbeverage at gmail.com Wed Sep 16 16:57:40 2009 From: jasonbeverage at gmail.com (Jason Beverage) Date: Wed, 16 Sep 2009 19:57:40 -0400 Subject: [mapserver-users] Raster layers with partial transparency In-Reply-To: <4AB172BB.7020306@refractions.net> References: <2c4bbbeb0909161113r1a3f170bqbb768f7ce200585a@mail.gmail.com> <4AB172BB.7020306@refractions.net> Message-ID: <2c4bbbeb0909161657y1daea49dm95d11350523f82a9@mail.gmail.com> Hey Chris, Thanks for the guess, setting transparent to 0 doesn't get rid of the issue, just makes the background default to white with full opacity. I found the issue, I was setting PROCESSING=BILINEAR which apparently doesn't work well with partially transparent pixels. Going back to nearest seems to work fine. Thanks! Jason On Wed, Sep 16, 2009 at 7:20 PM, Chris Hodgson wrote: > Just a guess but have you tried with transparent = 0? Just wondering if the > transparent mode rendering is somehow overriding the RGBA alpha mode > rendering? > > Chris > > Jason Beverage wrote: > >> Hi all, >> >> I'm serving up some raster imagery with an alpha band that contains >> partially transparent pixels using mapscript but when the image is rendered, >> the partially transparent portions (alpha between 5 and 10) come through >> completely opaque (alpha of 255). Areas that are fully opaque or fully >> transparent look fine. >> I'm using an output format with the GD/PNG renderer with a RGBA image mode >> and "transparent" set to true. I've tried using the AGG/PNG and GDAL/PNG >> renderers with the same result. >> >> C# code for the output format: >> map.outputformat.name = "PNG"; >> map.outputformat.driver = "GD/PNG"; >> map.outputformat.mimetype = "image/png"; >> map.outputformat.imagemode = (int)MS_IMAGEMODE.MS_IMAGEMODE_RGBA; >> map.outputformat.extension = "png"; >> map.outputformat.transparent = 1; >> >> Any ideas on what I'm doing wrong? >> >> Thanks, >> >> Jason >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 M.Kofahl at gmx.net Wed Sep 16 23:41:19 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Thu, 17 Sep 2009 08:41:19 +0200 Subject: [mapserver-users] Variable Substitution -- using environment variables (#3122) In-Reply-To: <4AA900DE.7060207@mapgears.com> References: <20090909064207.39870@gmx.net> <4AA7B12E.3050405@mapgears.com> <20090910053509.274450@gmx.net> <4AA900DE.7060207@mapgears.com> Message-ID: <20090917064119.65000@gmx.net> [Crossposting to dev-list in case that someone is interested.] Hi Julien! I have a separate access control system for ows in use. But for the reason of performance, it might be valuable to have some simple access control mechanisms inside mapserver. Such as using the REMOTE_USER environment variable for a substitution in the DATA statement. I did add a new enhancement #3122 to the tracking system. The included patch simply expands msDecryptStringTokens() in order to avoid multiple search runs. No-hex tokens will be treated as environment variable, but this should be improved to avoid confusions. Martin -------- Original-Nachricht -------- > Datum: Thu, 10 Sep 2009 09:36:30 -0400 > Von: Julien-Samuel Lacroix > An: Martin Kofahl > CC: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Variable Substitution > Hi, > > You can't pass authentication information through cookies anyway. They > can easily be overwriten by the user. You should probably have a proxy > in front of your mapserver that does the authentication. > > There's a couple of access control systems that will be presented at > FOSS4G in october. There may be one that may interest you. > > Julien > > Martin Kofahl wrote: > > Hi Julien, > > I think I missed something in my configuration as I thought, a cookie > set using apaches rewrite mechanism is already visible for mapserv in the > first request. > > > > But now there's a general problem when using this technique with > separate authentication mechanisms: a cookie is handled equate with > get/post-request parameters and is processed last. Thus, when using a variable in a data > statement, e.g. 'select ... where uid=%user%', one can easily override a > cookie holding the username by adding '&user=foreign_account' to the > request_uri. > > > > So I'm not perfectly satisfied using this for authorization purposes. > What do you think? > > > > Martin > > > > > > > > -------- Original-Nachricht -------- > >> Datum: Wed, 09 Sep 2009 09:44:14 -0400 > >> Von: Julien-Samuel Lacroix > >> An: Martin Kofahl > >> CC: mapserver-users at lists.osgeo.org > >> Betreff: Re: [mapserver-users] Variable Substitution > > > >> Hi, > >> > >> Looking at the code in loadParams() in cgiutil.c, the cookies are added > >> to the GET or POST variables automatically. There's nothing special to > do. > >> > >> Julien > >> > >> Martin Kofahl wrote: > >>> Hi, > >>> the documentation at http://mapserver.org/mapfile/variable_sub.html > >> tells about using cookies for variable substitution. Can someone > provide a > >> working example? I can get substitution working by using get/post > request > >> parameters only. > >>> Martin > >>> > > > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ From schatterjee at addisontx.gov Thu Sep 17 08:42:33 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Thu, 17 Sep 2009 10:42:33 -0500 Subject: [mapserver-users] distance of a point from a multistring line Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F1@sc-exchange.addisongov.org> Hi, I am having a table in which I am storing a MULTISTRING after applying ST_union on a set of multistring data which are continuous. This is actually the shortest path that I am determining. Now, I am capturing real time gps coordinates. My plan is that when the gps position deviates from the determined route it will calculate the shortest path again from the GPS position. So I am trying to find the distance of the GPS point from the line ( representing the shortest path) as follows: Select ST_Distance(gpsdata.gpscoords,ST_line_interpolate_point(shortpath.the_ge om,ST_line_locate_point(ST_LineMerge(shortpath.the_geom), GeomFromText('POINT(2477850.34 7044705.10)',2276))) from gpsdata,shortpath where shortpath.gid=1 and gpsdata.oid=2 The coordinates are that of one such gps point. But I am getting error in the ST_line_locate_point . It says Line_locate_point: 1st arg isn't a line. But when I am running the line_locate_point with some different table like roads table it works fine. So is there any other way to find the distance of a point to a line? Thanks Suman ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpg70221725 at yahoo.com.ar Thu Sep 17 11:31:06 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Thu, 17 Sep 2009 11:31:06 -0700 (PDT) Subject: [mapserver-users] error de proyeccion, Que significa? Message-ID: <608608.14391.qm@web33902.mail.mud.yahoo.com> java.lang.UnknownError: msProcessProjection(): Projection library error. No such file or directory?? ? ? ?at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method)?? ? ? ?at edu.umn.gis.mapscript.mapObj.(mapObj.java:275) -------------------------------------------------------------------------------------Hola a todos, yo estoy haciendo un SIG con MapScript Java, tengo el problema de arriba, no se que significa, como lo soluciono? Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpg70221725 at yahoo.com.ar Thu Sep 17 11:31:06 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Thu, 17 Sep 2009 11:31:06 -0700 (PDT) Subject: [mapserver-users] error de proyeccion, Que significa? Message-ID: <608608.14391.qm@web33902.mail.mud.yahoo.com> java.lang.UnknownError: msProcessProjection(): Projection library error. No such file or directory?? ? ? ?at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method)?? ? ? ?at edu.umn.gis.mapscript.mapObj.(mapObj.java:275) -------------------------------------------------------------------------------------Hola a todos, yo estoy haciendo un SIG con MapScript Java, tengo el problema de arriba, no se que significa, como lo soluciono? Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Thu Sep 17 16:41:33 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Thu, 17 Sep 2009 19:41:33 -0400 Subject: [mapserver-users] Symbols and Transparency Message-ID: Hi all, Quick question regarding symbols and transparency. I have a lot of symbols that I am displaying on my map, however, the problem I am having is the symbols are not rendering transparently. When two symbols are near each other, one will sometimes block another with a part of the image which should render as transparent. I am positive that each symbol png is transparent. I am using mapserver 5.4.0 and using PNG images, rendering them using GD. Any suggestions? -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Thu Sep 17 22:30:47 2009 From: micklesh at gmail.com (Michael Shishcu) Date: Fri, 18 Sep 2009 08:30:47 +0300 Subject: [mapserver-users] Symbols and Transparency In-Reply-To: References: Message-ID: Hi, Adam just a thought: can you try to specify an opacity property for your layer (I mean OPACITY 99, or any other than 100). regards, michael 2009/9/18 Adam Eskreis > Hi all, > Quick question regarding symbols and transparency. I have a lot of symbols > that I am displaying on my map, however, the problem I am having is the > symbols are not rendering transparently. When two symbols are near each > other, one will sometimes block another with a part of the image which > should render as transparent. > > I am positive that each symbol png is transparent. I am using mapserver > 5.4.0 and using PNG images, rendering them using GD. Any suggestions? > > -Adam > > _______________________________________________ > 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 sb.ray at hotmail.com Fri Sep 18 06:14:12 2009 From: sb.ray at hotmail.com (sunny74) Date: Fri, 18 Sep 2009 06:14:12 -0700 (PDT) Subject: [mapserver-users] display feature name beside feature Message-ID: <1253279652112-3668528.post@n2.nabble.com> Hi, I have a number of features(Layers) in my map.One of the feature is a Water Body. How can I display the feature name beside the feature? Is there anything in the map file which can do this or do I have to do this thru' coding in js? I am using mapserver v 5.0.0 with openlayers. If anybody has a solution pls mention in detail. Thanks for your reply. -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668528p3668528.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sb.ray at hotmail.com Fri Sep 18 06:16:06 2009 From: sb.ray at hotmail.com (sunny74) Date: Fri, 18 Sep 2009 06:16:06 -0700 (PDT) Subject: [mapserver-users] display feature name beside feature Message-ID: <1253279766206-3668538.post@n2.nabble.com> Hi, I have a number of features(Layers) in my map.One of the feature is a Water Body. How can I display the feature name beside the feature? Is there anything in the map file which can do this or do I have to do this thru' coding in js? I am using mapserver v 5.0.0 with openlayers. If anybody has a solution pls mention in detail. Thanks for your reply. -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3668538.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mschulz at webgis.de Fri Sep 18 06:43:50 2009 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Sep 2009 15:43:50 +0200 Subject: [mapserver-users] display feature name beside feature In-Reply-To: <1253279766206-3668538.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com> Message-ID: Hi, you can use the labeling options mapserver offers. Labeling can be accomplished by adding a label section to a class of a layer. You can define the labelitem aka. a fieldname of a shape's attributes or a database table, that mapserver takes the value from to actually label a feature. Read on here: - http://mapserver.org/introduction.html#label - http://mapserver.org/mapfile/label.html If you want to have the labeling as a separate layer, that can be turned on and off, you should have a look at the annotation layer type. Cheers, Michael 2009/9/18 sunny74 : > > Hi, > > I have ?a number of features(Layers) in my map.One of the feature is a Water > Body. > > How can I display the feature name beside the feature? > Is there anything in the map file which can do this or do I have to do this > thru' coding in js? > I am using mapserver v 5.0.0 with openlayers. > > If anybody has a solution pls mention in detail. > > Thanks for your reply. > -- > View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3668538.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 > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Besuchen Sie uns auf der INTERGEO 2009: 22.09. - 24.09.2009 in Karlsruhe; Halle 1, Stand 1.417 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From zhaops at hotmail.com Fri Sep 18 07:36:34 2009 From: zhaops at hotmail.com (Peisheng Zhao) Date: Fri, 18 Sep 2009 14:36:34 +0000 Subject: [mapserver-users] =?windows-1256?q?set_up_style_name_in_capabili?= =?windows-1256?q?tes=FE?= Message-ID: Hi, The "getcapabilities" response is like this: My question is how to set up map file in order to change the style name from "default" to my customized name. Thanks. Peisheng _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From schatterjee at addisontx.gov Fri Sep 18 07:50:02 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 18 Sep 2009 09:50:02 -0500 Subject: [mapserver-users] How to write the SQL query dynamically for the DATA part of a layer in mapfile? Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F2@sc-exchange.addisongov.org> Hi all, I have solved my earlier problem of finding the distance of a point from a line by iterating over each of the multistring records. It is working fine. But I have another query: 1) How can I generate the sql query dynamically for setting the data of a layer, from POSTGIS database, in the mapfile through C# mapscript? I have to write the SQL query dynamically for the DATA part of a layer. Any idea how to do it? Looking for help, Suman ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From schatterjee at addisontx.gov Fri Sep 18 09:07:31 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 18 Sep 2009 11:07:31 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 20, Issue 31 Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D00279779F@sc-exchange.addisongov.org> Hi all, Now I know how to do it. Map.getlayerbyname("...").data= SQL query goes here Thanks Suman -----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: Friday, September 18, 2009 11:00 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 20, Issue 31 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. How to write the SQL query dynamically for the DATA part of a layer in mapfile? (Suman Chatterjee) ---------------------------------------------------------------------- Message: 1 Date: Fri, 18 Sep 2009 09:50:02 -0500 From: "Suman Chatterjee" Subject: [mapserver-users] How to write the SQL query dynamically for the DATA part of a layer in mapfile? To: Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F2 at sc-exchange.addisongov.org> Content-Type: text/plain; charset="us-ascii" Hi all, I have solved my earlier problem of finding the distance of a point from a line by iterating over each of the multistring records. It is working fine. But I have another query: 1) How can I generate the sql query dynamically for setting the data of a layer, from POSTGIS database, in the mapfile through C# mapscript? I have to write the SQL query dynamically for the DATA part of a layer. Any idea how to do it? Looking for help, Suman ************************************************************************ ******************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ************************************************************************ ******************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090918/52 d138fd/attachment-0001.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 20, Issue 31 *********************************************** ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* From robhyx at gmail.com Fri Sep 18 09:47:17 2009 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 18 Sep 2009 12:47:17 -0400 Subject: [mapserver-users] Problem with WMS Request through Mapserver Message-ID: I am making a WMS request from a simple OpenLayers client to Mapserver which is in turn calling another WMS server. My problem is, is that the call from MapServer to the secondary WMS server has an extra paramater tacked on: EXCEPTIONS=application/vnd.ogc.se_inimage (I saw this going through Wire Shark which is a packet sniffer), and when I grab the exact call, strip out that argument, the image returns fine. Is there a way to specify, in the map file, that I either do not want this? Note, that the request coming from OpenLayers does not have this argument (I found this out via Firebug). Here is a layer out of my map file: LAYER # name of layer # NAME "Infrared1995" GROUP "newjerseywms" # what type of data is this? TYPE RASTER # always returned with interface STATUS ON CONNECTION "http://njwebmap.state.nj.us/njorthos" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "Infrared1995" "wms_server_version" "1.1.1" "wms_format" "image/png" END END Thanks! -- web http://www.hyxspace.com aim hyx1138 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpg70221725 at yahoo.com.ar Fri Sep 18 11:06:57 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Fri, 18 Sep 2009 11:06:57 -0700 (PDT) Subject: [mapserver-users] Compilar mapscript.so de mapserver para trabajar en Linux Con Java Message-ID: <817238.85263.qm@web33905.mail.mud.yahoo.com> hola a Todos los usuarios de MapServer de habla Hispana, hace mucho que quiero trabajar con mapserver en linux. tengo varios problemas: 1: al instalar mapserver (FGS) para linux, yo tengo instalada Fedora 11 2: tambien tengo problemas, porque quiero utilizar la Extension de Mapserver para java, para php no hay problema, se que tengo que utilizar swig para compilar mapscript para linux, si podrian explicarme paso a paso para lograrlo me seria de gran ayuda!. gracias!. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From mpg70221725 at yahoo.com.ar Fri Sep 18 11:06:57 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Fri, 18 Sep 2009 11:06:57 -0700 (PDT) Subject: [mapserver-users] Compilar mapscript.so de mapserver para trabajar en Linux Con Java Message-ID: <817238.85263.qm@web33905.mail.mud.yahoo.com> hola a Todos los usuarios de MapServer de habla Hispana, hace mucho que quiero trabajar con mapserver en linux. tengo varios problemas: 1: al instalar mapserver (FGS) para linux, yo tengo instalada Fedora 11 2: tambien tengo problemas, porque quiero utilizar la Extension de Mapserver para java, para php no hay problema, se que tengo que utilizar swig para compilar mapscript para linux, si podrian explicarme paso a paso para lograrlo me seria de gran ayuda!. gracias!. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From aeskreis at gmail.com Fri Sep 18 12:49:35 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 18 Sep 2009 15:49:35 -0400 Subject: [mapserver-users] Symbols and Transparency In-Reply-To: References: Message-ID: Setting Opacity to 99 causes the symbols to appear in solid black On Fri, Sep 18, 2009 at 1:30 AM, Michael Shishcu wrote: > Hi, Adam > just a thought: can you try to specify an opacity property for your layer > (I mean OPACITY 99, or any other than 100). > > regards, michael > > 2009/9/18 Adam Eskreis > >> Hi all, >> Quick question regarding symbols and transparency. I have a lot of >> symbols that I am displaying on my map, however, the problem I am having is >> the symbols are not rendering transparently. When two symbols are near each >> other, one will sometimes block another with a part of the image which >> should render as transparent. >> >> I am positive that each symbol png is transparent. I am using mapserver >> 5.4.0 and using PNG images, rendering them using GD. Any suggestions? >> >> -Adam >> >> _______________________________________________ >> 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 yassefa at dmsolutions.ca Fri Sep 18 13:40:26 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 18 Sep 2009 16:40:26 -0400 Subject: [mapserver-users] Problem with WMS Request through Mapserver In-Reply-To: References: Message-ID: <4AB3F03A.8000502@dmsolutions.ca> Hi There, Maybe you could do a GetCapabilities request on the WMS server and see what are the types of exceptions that are supported by the server. It might support other exceptions than the application/vnd.ogc.se_inimage. if that is the case, you can set a layer level metadata called ows_exception to the one that is supported. Something like: METADATA "ows_exception" "supported_exception" ... END best regards, Robert Hicks wrote: > I am making a WMS request from a simple OpenLayers client to Mapserver > which is in turn calling another WMS server. My problem is, is that the > call from MapServer to the secondary WMS server has an extra paramater > tacked on: EXCEPTIONS=application/vnd.ogc.se_inimage (I saw this going > through Wire Shark which is a packet sniffer), and when I grab the exact > call, strip out that argument, the image returns fine. Is there a way to > specify, in the map file, that I either do not want this? Note, that the > request coming from OpenLayers does not have this argument (I found this > out via Firebug). > > Here is a layer out of my map file: > > LAYER > # name of layer > # > NAME "Infrared1995" > GROUP "newjerseywms" > > # what type of data is this? > TYPE RASTER > > # always returned with interface > STATUS ON > > CONNECTION "http://njwebmap.state.nj.us/njorthos" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "Infrared1995" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > END > END > > Thanks! > > -- > web http://www.hyxspace.com > aim hyx1138 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Fri Sep 18 13:57:18 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 18 Sep 2009 16:57:18 -0400 Subject: [mapserver-users] Problem with WMS Request through Mapserver In-Reply-To: <4AB3F03A.8000502@dmsolutions.ca> References: <4AB3F03A.8000502@dmsolutions.ca> Message-ID: <4AB3F42E.7020901@dmsolutions.ca> metadata name is in fact ows_exceptions_format instead of ows_exception Yewondwossen Assefa wrote: > Hi There, > > Maybe you could do a GetCapabilities request on the WMS server and see > what are the types of exceptions that are supported by the server. It > might support other exceptions than the application/vnd.ogc.se_inimage. > if that is the case, you can set a layer level metadata called > ows_exception to the one that is supported. Something like: > METADATA > "ows_exception" "supported_exception" > ... > END > > best regards, > > > Robert Hicks wrote: >> I am making a WMS request from a simple OpenLayers client to Mapserver >> which is in turn calling another WMS server. My problem is, is that >> the call from MapServer to the secondary WMS server has an extra >> paramater tacked on: EXCEPTIONS=application/vnd.ogc.se_inimage (I saw >> this going through Wire Shark which is a packet sniffer), and when I >> grab the exact call, strip out that argument, the image returns fine. >> Is there a way to specify, in the map file, that I either do not want >> this? Note, that the request coming from OpenLayers does not have this >> argument (I found this out via Firebug). >> >> Here is a layer out of my map file: >> >> LAYER >> # name of layer >> # >> NAME "Infrared1995" >> GROUP "newjerseywms" >> # what type of data is this? >> TYPE RASTER >> >> # always returned with interface >> STATUS ON >> >> CONNECTION "http://njwebmap.state.nj.us/njorthos" >> CONNECTIONTYPE WMS >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "Infrared1995" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png" >> END >> END >> >> Thanks! >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Fri Sep 18 19:44:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 18 Sep 2009 21:44:27 -0500 Subject: [mapserver-users] Nominations open for the "2009 Sol Katz Award for Geospatial Free and Open Source Software" Message-ID: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> The Open Source Geospatial Foundation would like to open nominations for the 2009 Sol Katz Award for Geospatial Free and Open Source Software. The Sol Katz Award for Geospatial Free and Open Source Software (GFOSS) will be given to individuals who have demonstrated leadership in the GFOSS community. Recipients of the award will have contributed significantly through their activities to advance open source ideals in the geospatial realm. Sol Katz was an early pioneer of GFOSS and left behind a large body of work in the form of applications, format specifications, and utilities while at the U.S. Bureau of Land Management. This early GFOSS archive provided both source code and applications freely available to the community. Sol was also a frequent contributor to many geospatial list servers, providing much guidance to the geospatial community at large. Sol unfortunately passed away in 1999 from Non-Hodgkin's Lymphoma, but his legacy lives on in the open source world. Those interested in making a donation to the American Cancer Society, as per Sol's family's request, can do so online. Nominations for the Sol Katz Award should be sent to SolKatzAward at osgeo.org with a description of the reasons for this nomination. Nominations will be accepted until midnight UTC on October 9th. A recipient will be decided from the nomination list by an OSGeo designated selection committee. The winner of the Sol Katz Award for Geospatial Free and Open Source Software will be announced on October 23rd at the FOSS4G 2009 conference closing plenary in Sydney, Australia. The hope is that the award will both acknowledge the work of community members, and pay tribute to one of its founders, for years to come. It should be noted that past awardees and selection committee members are not eligible. Past Awardees: 2008: Paul Ramsey 2007: Steve Lime 2006: Markus Neteler 2005: Frank Warmerdam Selection Committee: Jeff McKenna (chair) Frank Warmerdam Markus Neteler Steve Lime Paul Ramsey Sophia Parafina From Jukka.Rahkonen at mmmtike.fi Fri Sep 18 23:55:36 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 19 Sep 2009 09:55:36 +0300 Subject: [mapserver-users] Is there TileCache for MS4W tutorial? References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> Message-ID: Hi, This time I would like to try TileCache. Is there any step-by-step tutorial available about how to install TileCache in front of Mapserver MS4W? Getting TileCache CGI running would be enough to start with but mod_python interests me also. -Jukka Rahkonen- From micklesh at gmail.com Sat Sep 19 00:37:58 2009 From: micklesh at gmail.com (Michael Shishcu) Date: Sat, 19 Sep 2009 10:37:58 +0300 Subject: [mapserver-users] Is there TileCache for MS4W tutorial? In-Reply-To: References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> Message-ID: Hi there are some links, if this helps http://viswaug.wordpress.com/2008/02/03/setting-up-tilecache-on-iis/ http://oegeo.wordpress.com/2008/03/08/the-5-minute-guide-to-setting-up-tilecache-on-windows/ http://oegeo.wordpress.com/2008/03/10/tilecache-on-windows-part-2-mod_python/ regards, michael 2009/9/19 Rahkonen Jukka > Hi, > > This time I would like to try TileCache. Is there any step-by-step > tutorial available about how to install TileCache in front of Mapserver > MS4W? Getting TileCache CGI running would be enough to start with but > mod_python interests me also. > > -Jukka Rahkonen- > _______________________________________________ > 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 harpalhira at gmail.com Sat Sep 19 03:29:32 2009 From: harpalhira at gmail.com (harpal singh) Date: Sat, 19 Sep 2009 15:59:32 +0530 Subject: [mapserver-users] how to get pdf from mapserver Message-ID: <623d78c30909190329j48f4fb92j92c2ea2973225fcc@mail.gmail.com> I AM TRYING TO GET A PDF BACK FROM MAP SERVER ...IT IS NOT GIVING ANY ERROR BUT THE IMAGE ALSO IS NOT DISPLAYING .......... GETTING A BROKEN IMAGE ICON ...ON VIEWING IT GIVES BACK A BLANK PDF FILE ........CAN ANYBODY BE ABLE TO SORT MY PROBLEM... THANX IN ADVANCE REGARDS HARPAL SINGH -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Sat Sep 19 06:46:25 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Sat, 19 Sep 2009 09:46:25 -0400 Subject: [mapserver-users] Is there TileCache for MS4W tutorial? In-Reply-To: References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> Message-ID: <4AB4E0B1.7070605@dmsolutions.ca> Michael Shishcu wrote: > Hi > there are some links, if this helps > http://viswaug.wordpress.com/2008/02/03/setting-up-tilecache-on-iis/ > http://oegeo.wordpress.com/2008/03/08/the-5-minute-guide-to-setting-up-tilecache-on-windows/ > http://oegeo.wordpress.com/2008/03/10/tilecache-on-windows-part-2-mod_python/ > > regards, michael > > 2009/9/19 Rahkonen Jukka > > > Hi, > > This time I would like to try TileCache. Is there any step-by-step > tutorial available about how to install TileCache in front of > Mapserver MS4W? Getting TileCache CGI running would be enough to > start with but mod_python interests me also. > If you are using the latest ms4w (ms4w 3.0-beta7), there is also a demo tool package for ms4w that does tilecache through MapServer. There is a small read me (README.txt) in the package that shows how it should work with the the gmap sample data set: - http://maptools.org/ms4w/index.phtml?page=downloads.html (Tilecache MapServer (WMS-C tilecache through MapServer) : http://maptools.org/dl/ms4w/ms-tilecache.zip - http://maptools.org/dl/ms4w/gmap_ms4w_ms5.zip regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From truong_pham_minh at yahoo.com Sun Sep 20 10:07:03 2009 From: truong_pham_minh at yahoo.com (truongpm) Date: Sun, 20 Sep 2009 10:07:03 -0700 (PDT) Subject: [mapserver-users] Is mapserver possible to dynamic layout Message-ID: <1253466423934-3680865.post@n2.nabble.com> Hi list, Iam new with mapserver and i wondering is mapserver possible to dynamic layout The issue is: I have data store in MySql database (each row is a polygon, have a column to defined the value of this polygon). Now i can display this data as a map (polygon). But i want to rendering each polygon in another color base on the value of polygon. The step i done is: using mapfile for display map via file.ovf to connect to database. My question: Is this possible to layout each polygon in difference color base on value of this polygon (store in database)? If yes, could you suggest for me how? I have just find on this mail list and google after but had no ideal. Thanks for your attentions and sorry about my english skill. -- View this message in context: http://n2.nabble.com/Is-mapserver-possible-to-dynamic-layout-tp3680865p3680865.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Sep 20 10:35:17 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 20 Sep 2009 19:35:17 +0200 Subject: [mapserver-users] Is mapserver possible to dynamic layout In-Reply-To: <1253466423934-3680865.post@n2.nabble.com> References: <1253466423934-3680865.post@n2.nabble.com> Message-ID: Hi, This sounds like the style attribute binding would be a good option to achieve this. For more information see: http://mapserver.org/mapfile/style.html I you mapfile you'd do something loke STYLE COLOR [MYCOLORATTRIBUTE] ... END Best regards, Tamas 2009/9/20 truongpm > > Hi list, > > Iam new with mapserver and i wondering is mapserver possible to dynamic > layout > The issue is: > I have data store in MySql database (each row is a polygon, have a column > to > defined the value of this polygon). Now i can display this data as a map > (polygon). But i want to rendering each polygon in another color base on > the > value of polygon. > The step i done is: using mapfile for display map via file.ovf to connect > to > database. > > My question: Is this possible to layout each polygon in difference color > base on value of this polygon (store in database)? If yes, could you > suggest > for me how? > > I have just find on this mail list and google after but had no ideal. > > Thanks for your attentions and sorry about my english skill. > -- > View this message in context: > http://n2.nabble.com/Is-mapserver-possible-to-dynamic-layout-tp3680865p3680865.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 sb.ray at hotmail.com Sun Sep 20 10:49:14 2009 From: sb.ray at hotmail.com (sunny74) Date: Sun, 20 Sep 2009 10:49:14 -0700 (PDT) Subject: [mapserver-users] display feature name beside feature In-Reply-To: References: <1253279766206-3668538.post@n2.nabble.com> Message-ID: <1253468954077-3681031.post@n2.nabble.com> Hi Michael, Thanks for your reply. I had gone thru' the links you have given before making this post.But I am having the problems given in the link below: http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654455 When using truetype I get the error probably bec' I am not able to specify the fontset file. So I need to know the following: 1) What kind of file is the fontset file?I think it is a text file 2) Where do I keep the fontset file - in the same folder as the map file or in different folder.If different folder how do I specify the path in the map file. 3) Where do I keep the fonts? Is it okay if I keep it in the Windows Font Folder i.e C:/Windows/Fonts 4)How do I specify the path of the fonts in the fontset file? Pls give ur answer so as to solve this problem. After Michael Schulz wrote: > > Hi, > > you can use the labeling options mapserver offers. Labeling can be > accomplished by adding a label section to a class of a layer. You can > define the labelitem aka. a fieldname of a shape's attributes or a > database table, that mapserver takes the value from to actually label > a feature. > > Read on here: > - http://mapserver.org/introduction.html#label > - http://mapserver.org/mapfile/label.html > > If you want to have the labeling as a separate layer, that can be > turned on and off, you should have a look at the annotation layer > type. > > Cheers, Michael > > 2009/9/18 sunny74 : >> >> Hi, >> >> I have ?a number of features(Layers) in my map.One of the feature is a >> Water >> Body. >> >> How can I display the feature name beside the feature? >> Is there anything in the map file which can do this or do I have to do >> this >> thru' coding in js? >> I am using mapserver v 5.0.0 with openlayers. >> >> If anybody has a solution pls mention in detail. >> >> Thanks for your reply. >> -- >> View this message in context: >> http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3668538.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 >> > > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Besuchen Sie uns auf der INTERGEO 2009: 22.09. - 24.09.2009 in Karlsruhe; > Halle 1, Stand 1.417 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Aufwind durch Wissen! > > Qualifizierte Open Source Schulungen bei der > http://www.foss-akademie.de/ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ > > Schwimmbadstra?e 2 > D-79100 Freiburg i. Br. > > Tel: +49 (0)761 705798-102 > Tel: +49 (0)761 705798-0 > Fax: +49 (0)761 705798-09 > > +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ > > http://www.webgis.de / http://www.zopecms.de > -------------------------------------------------------------- > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3681031.html Sent from the Mapserver - User mailing list archive at Nabble.com. From truong_pham_minh at yahoo.com Sun Sep 20 10:50:52 2009 From: truong_pham_minh at yahoo.com (truongpm) Date: Sun, 20 Sep 2009 10:50:52 -0700 (PDT) Subject: [mapserver-users] Is mapserver possible to dynamic layout In-Reply-To: References: <1253466423934-3680865.post@n2.nabble.com> Message-ID: <1253469052161-3681037.post@n2.nabble.com> But how could i get the value of polygon from database and set condition in mapfile. As i image, in mapfile will folowing: if(value==1){ //layout with another color } else if{} ... I had just found some document about PHPMapscript but not success! Thanks for your help! Tamas Szekeres wrote: > > Hi, > > This sounds like the style attribute binding would be a good option to > achieve this. For more information see: > http://mapserver.org/mapfile/style.html > > I you mapfile you'd do something loke > > > STYLE > COLOR [MYCOLORATTRIBUTE] > ... > END > > -- View this message in context: http://n2.nabble.com/Is-mapserver-possible-to-dynamic-layout-tp3680865p3681037.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Sep 20 11:00:07 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 20 Sep 2009 20:00:07 +0200 Subject: [mapserver-users] Is mapserver possible to dynamic layout In-Reply-To: <1253469052161-3681037.post@n2.nabble.com> References: <1253466423934-3680865.post@n2.nabble.com> <1253469052161-3681037.post@n2.nabble.com> Message-ID: I thought you have a the color value itself as the attribute. But if you'd categorize by a different value you might want to define a different class for each value, something like LAYER CLASS EXPRESSION ([MYCOLORATTRIBUTE]=1) STYLE COLOR 255 255 0 END END CLASS EXPRESSION ([MYCOLORATTRIBUTE]=2) STYLE COLOR 255 0 0 END END END Best regards, Tamas 2009/9/20 truongpm > > But how could i get the value of polygon from database and set condition in > mapfile. As i image, in mapfile will folowing: > > if(value==1){ > //layout with another color > } > else if{} > ... > > I had just found some document about PHPMapscript but not success! > > Thanks for your help! > > > Tamas Szekeres wrote: > > > > Hi, > > > > This sounds like the style attribute binding would be a good option to > > achieve this. For more information see: > > http://mapserver.org/mapfile/style.html > > > > I you mapfile you'd do something loke > > > > > > STYLE > > COLOR [MYCOLORATTRIBUTE] > > ... > > END > > > > > > -- > View this message in context: > http://n2.nabble.com/Is-mapserver-possible-to-dynamic-layout-tp3680865p3681037.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 ml at lingner.eu Sun Sep 20 12:19:22 2009 From: ml at lingner.eu (Lars Lingner) Date: Sun, 20 Sep 2009 21:19:22 +0200 Subject: [mapserver-users] display feature name beside feature In-Reply-To: <1253468954077-3681031.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> Message-ID: <4AB6803A.9000406@lingner.eu> sunny74 schrieb: > Hi Michael, > > Thanks for your reply. > I had gone thru' the links you have given before making this post.But I am > having the problems given in the link below: > > http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654455 > When using truetype I get the error probably bec' I am not able to specify > the fontset file. > So I need to know the following: > 1) What kind of file is the fontset file?I think it is a text file its just a textfile, yes > 2) Where do I keep the fontset file - in the same folder as the map file or > in different folder.If different folder how do I specify the path in the map > file. as you wish. You have to tell MapServer the place with the keywortd FONTSET. > 3) Where do I keep the fonts? Is it okay if I keep it in the Windows Font > Folder i.e C:/Windows/Fonts yes, you can keep it there. MapServer needs read permissions to the fonts. In the fonset file you can define the path. > 4)How do I specify the path of the fonts in the fontset file? > /path/to/fonts/font.ttf Please have a look at http://mapserver.org/mapfile/map.html and http://mapserver.org/mapfile/fontset.html Lars From SansonR at asurequality.com Sun Sep 20 13:45:04 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 21 Sep 2009 08:45:04 +1200 Subject: [mapserver-users] how to get pdf from mapserver In-Reply-To: <623d78c30909190329j48f4fb92j92c2ea2973225fcc@mail.gmail.com> References: <623d78c30909190329j48f4fb92j92c2ea2973225fcc@mail.gmail.com> Message-ID: <4AB73D12.379F.0037.0@asurequality.com> Hi Harpal Here is an example from my internal server that works for me: http://10.65.192.1/cgi-bin/mapserv.exe?map=/ms4w/apps/service/gsstmpdf.map&farmid=AS00001&mode=map&layers=nz50ktm+linz_orthos+farm+crs_parcels+crs_road+main_gates+copyright+fid&MINX=1471766&MINY=5119253&MAXX=1475952&MAXY=5123406&mapsize=1200+1200&map.layer[fid]=FEATURE+POINTS+600+20+END+TEXT+AS00001+END In my mapfile I have the following sections: # default output image dimensions SIZE 1200 1200 RESOLUTION 150 MAXSIZE 4096 OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION "pdf" IMAGEMODE RGB FORMATOPTION "OUTPUT_TYPE=RASTER" TRANSPARENT FALSE END #outputformat regards, Robert >>> harpal singh 19/09/2009 10:29 p.m. >>> I AM TRYING TO GET A PDF BACK FROM MAP SERVER ...IT IS NOT GIVING ANY ERROR BUT THE IMAGE ALSO IS NOT DISPLAYING .......... GETTING A BROKEN IMAGE ICON ...ON VIEWING IT GIVES BACK A BLANK PDF FILE ........CAN ANYBODY BE ABLE TO SORT MY PROBLEM... THANX IN ADVANCE REGARDS HARPAL SINGH Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Sep 20 17:31:57 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 21 Sep 2009 12:31:57 +1200 Subject: [mapserver-users] Preparing GeoTIFF files for use in Mapserver In-Reply-To: <4AB73D12.379F.0037.0@asurequality.com> References: <623d78c30909190329j48f4fb92j92c2ea2973225fcc@mail.gmail.com> <4AB73D12.379F.0037.0@asurequality.com> Message-ID: <4AB7723C.379F.0037.0@asurequality.com> Hi I am trying to use gdal_translate to convert some image files (PNGs and JPEGs) into GeoTIFFs for using in Mapserver. I am using the gdal_translate utility. The problem I am having is getting the proper Projection information embedded. I want to assign EPSG:2193 (NZGD2000 / New Zealand Transverse Mercator 2000). I have .jgw / .pgw worldfiles and ESRI .prj files for my input files. When I try: gdal_translate -of GTiff -co "TILED=YES" -a_srs "EPSG:2193" infile.jpg outfile.tif then examine outfile.tif with gdalinfo, it shows: PROJCS["unnamed", GEOGCS[, DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","2193"]] It doesn't seem to be finding the correct EPSG reference. I have GDAL_DATA environment variable specified, and have also included it in my path. I am using the gdal utilities that came with ms4w. Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Sep 20 18:10:47 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 21 Sep 2009 13:10:47 +1200 Subject: [mapserver-users] Preparing GeoTIFF files for use in Mapserver In-Reply-To: <215784.24772.qm@web33205.mail.mud.yahoo.com> References: <4AB7723C.379F.0037.0@asurequality.com> <215784.24772.qm@web33205.mail.mud.yahoo.com> Message-ID: <4AB77B56.379F.0037.0@asurequality.com> Thanks Brent 2193 is definitely in C:\ms4w\gdaldata\pcs.csv 2193,"NZGD2000 / New Zealand Transverse Mercator 2000",9001,4167,19971,9807,1,0,4500,8801,0,9102,8802,173,9102,8805,0.9996,9201,8806,1600000,9001,8807,10000000,9001,,,,,, Not sure why it is not looking it up. Robert >>> 21/09/2009 1:08 p.m. >>> Hi Robert, Can you check to see that 2193 (NZTM2000) is included in the look-up table of projections used by GDAL? If not, you might try fully describing the parameters in proj.4 syntax instead of using the EPSG notation, see: http://spatialreference.org/ref/epsg/2193/ Cheers, Brent Wood --- On Mon, 9/21/09, Robert Sanson wrote: > From: Robert Sanson > Subject: [mapserver-users] Preparing GeoTIFF files for use in Mapserver > To: mapserver-users at lists.osgeo.org > Date: Monday, September 21, 2009, 12:31 PM > > > > > Hi > > I am trying to use gdal_translate to convert some > image files (PNGs and JPEGs) into GeoTIFFs for using in > Mapserver. I am using the gdal_translate utility. The > problem I am having is getting the proper Projection > information embedded. I want to assign EPSG:2193 (NZGD2000 / > New Zealand Transverse Mercator 2000). > > I have .jgw / .pgw worldfiles and ESRI .prj files for > my input files. > > When I try: > > gdal_translate -of GTiff -co "TILED=YES" > -a_srs "EPSG:2193" infile.jpg outfile.tif > > then examine outfile.tif with gdalinfo, it > shows: > > PROJCS["unnamed", > GEOGCS[, > > DATUM["unknown", > > SPHEROID["unretrievable - using > WGS84",6378137,298.257223563]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433]], > UNIT["metre",1, > > AUTHORITY["EPSG","9001"]], > > AUTHORITY["EPSG","2193"]] > > It doesn't seem to be finding the correct EPSG > reference. I have GDAL_DATA environment variable specified, > and have also included it in my path. I am using the gdal > utilities that came with ms4w. > > Many thanks, > > Robert Sanson > > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > > ------------------------------------------------------------------ > > > This message has been > scanned for malware by SurfControl plc. www.surfcontrol.com > > > -----Inline Attachment Follows----- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Sun Sep 20 18:08:18 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sun, 20 Sep 2009 18:08:18 -0700 (PDT) Subject: [mapserver-users] Preparing GeoTIFF files for use in Mapserver In-Reply-To: <4AB7723C.379F.0037.0@asurequality.com> Message-ID: <215784.24772.qm@web33205.mail.mud.yahoo.com> Hi Robert, Can you check to see that 2193 (NZTM2000) is included in the look-up table of projections used by GDAL? If not, you might try fully describing the parameters in proj.4 syntax instead of using the EPSG notation, see: http://spatialreference.org/ref/epsg/2193/ Cheers, Brent Wood --- On Mon, 9/21/09, Robert Sanson wrote: > From: Robert Sanson > Subject: [mapserver-users] Preparing GeoTIFF files for use in Mapserver > To: mapserver-users at lists.osgeo.org > Date: Monday, September 21, 2009, 12:31 PM > > > > > Hi > > I am trying to use gdal_translate to convert some > image files (PNGs and JPEGs) into GeoTIFFs for using in > Mapserver. I am using the gdal_translate utility. The > problem I am having is getting the proper Projection > information embedded. I want to assign EPSG:2193 (NZGD2000 / > New Zealand Transverse Mercator 2000). > > I have .jgw / .pgw worldfiles and ESRI .prj files for > my input files. > > When I try: > > gdal_translate -of GTiff -co "TILED=YES" > -a_srs "EPSG:2193" infile.jpg outfile.tif > > then examine outfile.tif with gdalinfo, it > shows: > > PROJCS["unnamed", > GEOGCS[, > > DATUM["unknown", > > SPHEROID["unretrievable - using > WGS84",6378137,298.257223563]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433]], > UNIT["metre",1, > > AUTHORITY["EPSG","9001"]], > > AUTHORITY["EPSG","2193"]] > > It doesn't seem to be finding the correct EPSG > reference. I have GDAL_DATA environment variable specified, > and have also included it in my path. I am using the gdal > utilities that came with ms4w. > > Many thanks, > > Robert Sanson > > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > > ------------------------------------------------------------------ > > > This message has been > scanned for malware by SurfControl plc. www.surfcontrol.com > > > -----Inline Attachment Follows----- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bicphuongonline at yahoo.com Mon Sep 21 01:53:46 2009 From: bicphuongonline at yahoo.com (Mr. Bic Phuong) Date: Mon, 21 Sep 2009 01:53:46 -0700 (PDT) Subject: [mapserver-users] How to set MINSCALEDENOM for map file Message-ID: <174898.41451.qm@web112005.mail.gq1.yahoo.com> Dear everyone, I have a webgis using MapServer + OpenLayers+ TileCache. To optimize apearance of map, I use MAXSCALEDENOM but it's not lucky to make it works. First, I take a look on the scale bar for scale on every levels (for example at level 8 the scale is: 1:6478, at level 10 the scale is 1:1619...) There is a road layer, I want it visible from level 8 and higher (level 9,10, 11...), so in the map file on the LAYER section I set MAXSCALEDENOM 6478 for the road layer. This will make the layer return empty tile with grey color on the OpenLayers WMS request on all zoom levels. Just comment the MAXSCALEDENOM out, everything is ok again So I think I'm missing some things for the mapfile to make MAXSCALEDENOM works, right? Thanks for your attention, please help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Mon Sep 21 03:16:23 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Mon, 21 Sep 2009 10:16:23 +0000 Subject: [mapserver-users] Mapscript taking too long on my production server Message-ID: Hi all, I'm doing an application in C# that uses mapscript to generate images. The features come from a postgis database. On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two production servers (both powerfull than my dev machine), I noticed a very strange behavior: it takes +-20 seconds to generate the same image. Doing some debug on what's happening, I realized that was the call to mapObj.draw() method that was taking all that time. Thinking it could be a database related problem, (note that I'm using a local database) I've inspected the server logs and saw that the query only arrived at the database after that 20 seconds. So, the time is being taken in the draw, but before the database call. Anyone have a clue on what could be happening? Thanks, Nelson _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From bicphuongonline at yahoo.com Mon Sep 21 03:31:35 2009 From: bicphuongonline at yahoo.com (Alphatran) Date: Mon, 21 Sep 2009 03:31:35 -0700 (PDT) Subject: [mapserver-users] How to run mapserv under fastcgi In-Reply-To: <4AAE3C4A.2050603@gatewaygeomatics.com> References: <681164.47758.qm@web112001.mail.gq1.yahoo.com> <4AAE3C4A.2050603@gatewaygeomatics.com> Message-ID: <1253529095490-3684358.post@n2.nabble.com> Jeff McKenna wrote: > > > I can tell you how MapServer for Windows (MS4W) is configured for > FastCGI (see instructions at > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#f-fastcgi). > MS4W's Apache is configured so that users can call > "/fcgi-bin/mapserv.exe" instead of the usual "/cgi-bin/mapserv.exe", > which triggers the FastCGI module. You can check MS4W's Apache > httpd.conf for its configuration, if you would like to see it in action. > > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > Thanks very much for your help, finally it's working ! -- View this message in context: http://n2.nabble.com/How-to-run-mapserv-under-fastcgi-tp3637578p3684358.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bicphuongonline at yahoo.com Mon Sep 21 03:36:32 2009 From: bicphuongonline at yahoo.com (Alphatran) Date: Mon, 21 Sep 2009 03:36:32 -0700 (PDT) Subject: [mapserver-users] MINSCALEDENOM did not work? In-Reply-To: References: <799441.90100.qm@web112019.mail.gq1.yahoo.com> Message-ID: <1253529392303-3684387.post@n2.nabble.com> Rahkonen Jukka wrote: > > Hi, > > Minscaledenom does work for me as supposed. If I set it to value 1:10000 > I can see the layer in scale 1:11000 because scale demoninator is bigger > than my limit. In scale 1:9000 it does not show. But I see that you have > understood correctly that because map scale is a division, big number > under the line means small scale. > > MINSCALEDENOM is used just as you have done, by adding a line into LAYER > definitions. I have no idea why it would not work. > > -Jukka Rahkonen- > > Dear Rahkonen, I understand now. But I cannot make it's working. I set MINSCALEDENOM 6319 (this is scaledenom of level 8) but it make the tile is empty with grey color for all levels . Remove it away, the layer is working normal. Have you experienced on this? -- View this message in context: http://n2.nabble.com/MINSCALEDENOM-did-not-work-tp3637534p3684387.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Sep 21 03:49:21 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 Sep 2009 13:49:21 +0300 Subject: [mapserver-users] MINSCALEDENOM did not work? In-Reply-To: <1253529392303-3684387.post@n2.nabble.com> References: <799441.90100.qm@web112019.mail.gq1.yahoo.com> <1253529392303-3684387.post@n2.nabble.com> Message-ID: Hi, Try to get something written into Mapserver log. Add something like CONFIG "MS_ERRORFILE" "d:/program files/ms4w/tmp/ms_error.txt" into MAP object, and DEGUG 5 into LAYER. It might be easier to understand what happens by using something else than Openlayers application as a client first. Shp2img or browser and &mode=map are simple to keep under control, as well as sending WMS request directly from browser or through some WMS client like OpenJUMP or QGIs. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Alphatran > L?hetetty: 21. syyskuuta 2009 13:37 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] MINSCALEDENOM did not work? > > > > > Rahkonen Jukka wrote: > > > > Hi, > > > > Minscaledenom does work for me as supposed. If I set it to value > > 1:10000 I can see the layer in scale 1:11000 because scale > demoninator > > is bigger than my limit. In scale 1:9000 it does not show. > But I see > > that you have understood correctly that because map scale is a > > division, big number under the line means small scale. > > > > MINSCALEDENOM is used just as you have done, by adding a line into > > LAYER definitions. I have no idea why it would not work. > > > > -Jukka Rahkonen- > > > > > > > Dear Rahkonen, > > I understand now. But I cannot make it's working. I set > MINSCALEDENOM 6319 (this is scaledenom of level 8) but it > make the tile is empty with grey color for all levels . > Remove it away, the layer is working normal. > > Have you experienced on this? > -- > View this message in context: > http://n2.nabble.com/MINSCALEDENOM-did-not-work-tp3637534p3684387.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sb.ray at hotmail.com Mon Sep 21 05:34:13 2009 From: sb.ray at hotmail.com (sunny74) Date: Mon, 21 Sep 2009 05:34:13 -0700 (PDT) Subject: [mapserver-users] display feature name beside feature In-Reply-To: <4AB6803A.9000406@lingner.eu> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> Message-ID: <1253536453758-3684929.post@n2.nabble.com> Hi Lars, I have added the fontset file and also the Label and other definitions at the appropriate places but still the Labels are not being displayed for the layer RailwayStation. My map file now looks like this: # Map file created from QGIS project file D:/QGIS/newwr.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME newwr.map # Map image size SIZE 600 600 UNITS dd EXTENT 67.440106 17.379867 78.390250 25.122977 FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE gif OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' #IMAGEMODE PC256 EXTENSION 'gif' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'wms_title' 'newwr.map' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'STATE' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' LABELITEM 'STATE' CLASSITEM 'STATE' METADATA 'wms_title' 'STATE' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'STATE' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 255 255 127 END END END LAYER GROUP 'basic1' NAME 'WaterBody' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' METADATA 'wms_title' 'WaterBody' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'WaterBody' MAXSCALEDENOM 2000000 MINSCALEDENOM 1500000 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 150 123 90 END END END LAYER GROUP 'basic1' NAME 'Rail_Buffer' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' METADATA 'wms_title' 'Rail_Buffer' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Rail_Buffer' MAXSCALEDENOM 2000000 MINSCALEDENOM 1500000 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 117 232 255 END END END LAYER GROUP 'basic1' NAME 'Roads' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' METADATA 'wms_title' 'Roads' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Roads' MAXSCALEDENOM 2000000 MINSCALEDENOM 1500000 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 45 220 182 COLOR 0 0 0 END END END LAYER GROUP 'basic2' NAME 'Diversions' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' METADATA 'wms_title' 'Diversions' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Diversions' MAXSCALEDENOM 1500000 MINSCALEDENOM 1000000 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 144 50 207 COLOR 0 0 0 END END END LAYER GROUP 'basic2' NAME 'Rail_Side_Line' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' METADATA 'wms_title' 'Rail_Side_Line' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Rail_Side_Line' MAXSCALEDENOM 1500000 MINSCALEDENOM 1000000 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 170 115 90 COLOR 0 0 0 END END END LAYER GROUP 'basic' NAME 'RailwayLine' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' METADATA 'wms_title' 'RailwayLine' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'RailwayLine' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 255 0 0 COLOR 255 0 0 END END END LAYER GROUP 'basic2' NAME 'LANDMARKS' TYPE POINT DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' METADATA 'wms_title' 'LANDMARKS' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'LANDMARKS' MAXSCALEDENOM 1500000 MINSCALEDENOM 1000000 STYLE SYMBOL 'CIRCLE' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 229 210 191 END END END LAYER GROUP 'basic' NAME 'RailwayStations' TYPE POINT DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' CLASSITEM 'S_NAME' LABELITEM 'S_NAME' METADATA 'wms_title' 'RailwayStations' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'RailwayStations' STYLE SYMBOL 'CIRCLE' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 0 0 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END END LAYER GROUP 'basic3' NAME 'LC_Gate' TYPE POINT DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' METADATA 'wms_title' 'LC_Gate' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'LC_Gate' MAXSCALEDENOM 1000000 MINSCALEDENOM 500000 STYLE SYMBOL 'CIRCLE' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 15 155 200 END END END LAYER GROUP 'basic3' NAME 'Bridges_Minor' TYPE POINT DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' METADATA 'wms_title' 'Bridges_Minor' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Bridges_Minor' MAXSCALEDENOM 1000000 MINSCALEDENOM 500000 STYLE SYMBOL 'CIRCLE' SIZE 2 OUTLINECOLOR 0 0 0 COLOR 43 253 114 END END END LAYER GROUP 'basic3' NAME 'Bridge_Major' TYPE POINT DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' METADATA 'wms_title' 'Bridge_Major' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Bridge_Major' MAXSCALEDENOM 1000000 MINSCALEDENOM 500000 STYLE SYMBOL 'CIRCLE' SIZE 2 OUTLINECOLOR 0 0 0 COLOR 97 136 146 END END END #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END END My Fontset file is fonts.txt and it is located in the same folder as the map file. It contains the following: arial C:/WINDOWS/Fonts/arial.ttf arial-bold C:/WINDOWS/Fonts/arialbd.ttf So where is the problem? Where am I going wrong? Thanks for your reply. sunny. Lars Lingner-2 wrote: > > sunny74 schrieb: >> Hi Michael, >> >> Thanks for your reply. >> I had gone thru' the links you have given before making this post.But I >> am >> having the problems given in the link below: >> >> http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654455 >> When using truetype I get the error probably bec' I am not able to >> specify >> the fontset file. >> So I need to know the following: >> 1) What kind of file is the fontset file?I think it is a text file > > its just a textfile, yes > >> 2) Where do I keep the fontset file - in the same folder as the map file >> or >> in different folder.If different folder how do I specify the path in the >> map >> file. > > as you wish. You have to tell MapServer the place with the keywortd > FONTSET. > >> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows Font >> Folder i.e C:/Windows/Fonts > > yes, you can keep it there. MapServer needs read permissions to the > fonts. In the fonset file you can define the path. > >> 4)How do I specify the path of the fonts in the fontset file? >> > > /path/to/fonts/font.ttf > > > Please have a look at > > http://mapserver.org/mapfile/map.html > and > http://mapserver.org/mapfile/fontset.html > > > Lars > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3684929.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sjur.ringheim.lid at imr.no Mon Sep 21 04:47:03 2009 From: sjur.ringheim.lid at imr.no (Lid Sjur Ringheim) Date: Mon, 21 Sep 2009 13:47:03 +0200 Subject: [mapserver-users] Creating maps from external gml files Message-ID: <88F4CF342351F142B1B20E937579EA372CE6439513@exmbx1.imr.no> Hi, I'm developing an application that creates gml files and displays them in OpenLayers. This creates a small problem when the amount of point data becomes to large, so I was thinking of using a wms server to create a single layer based on the data. The problem I'm now facing is that I can't be sure that I can run the application (developed in Java as a webservice) on the same server that we are running Mapserver so I can't base the generation of the wms service on local data. I have been trying to find out if it's possible to use Mapserver to generate images based on input from the user but I can't seem to find any information on this. Do any of you know if it is possible to generate images based on input from the user (in form of a gml file or anything else). I have looked at the Web Map Context but that seems to only work if I already have a wms server to output data. If this isn't possible to do in Mapserver do anyone know if there is another way to do this? Kind regards, Sjur Ringheim Lid -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.westerlind at enera.se Mon Sep 21 06:46:23 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Mon, 21 Sep 2009 15:46:23 +0200 Subject: [mapserver-users] Upgrading ms4w setup.exe installer In-Reply-To: References: Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Mon Sep 21 06:48:06 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Sep 2009 08:48:06 -0500 Subject: [mapserver-users] Mapscript taking too long on my production server In-Reply-To: References: Message-ID: <4AB78416.4050001@squeakycode.net> Nelson Correia wrote: > > Hi all, > > I'm doing an application in C# that uses mapscript to generate images. > The features come from a postgis database. > > On my development machine all goes well and the image is always > generated in less than 1 second. When I deployed the application to my > two production servers (both powerfull than my dev machine), I noticed a > very strange behavior: it takes +-20 seconds to generate the same image. > Doing some debug on what's happening, I realized that was the call to > mapObj.draw() method that was taking all that time. > > Thinking it could be a database related problem, (note that I'm using a > local database) I've inspected the server logs and saw that the query > only arrived at the database after that 20 seconds. So, the time is > being taken in the draw, but before the database call. > > Anyone have a clue on what could be happening? > > Thanks, > > Nelson > dns lookup timeout? -Andy From szekerest at gmail.com Mon Sep 21 07:02:12 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 21 Sep 2009 16:02:12 +0200 Subject: [mapserver-users] Mapscript taking too long on my production server In-Reply-To: References: Message-ID: Nelson, Depending on your MapSever version you could set up the debug options in your mapfile in order to see the timings when the layers are drawn. like: CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" DEBUG 5 For more info about the debugging options see: http://mapserver.org/mapfile/map.html http://mapserver.org/mapfile/layer.html Best regards, Tamas 2009/9/21 Nelson Correia > > Hi all, > > I'm doing an application in C# that uses mapscript to generate images. The > features come from a postgis database. > > On my development machine all goes well and the image is always generated > in less than 1 second. When I deployed the application to my two production > servers (both powerfull than my dev machine), I noticed a very strange > behavior: it takes +-20 seconds to generate the same image. Doing some debug > on what's happening, I realized that was the call to mapObj.draw() method > that was taking all that time. > > Thinking it could be a database related problem, (note that I'm using a > local database) I've inspected the server logs and saw that the query only > arrived at the database after that 20 seconds. So, the time is being taken > in the draw, but before the database call. > > Anyone have a clue on what could be happening? > > Thanks, > > Nelson > > ------------------------------ > What can you do with the new Windows Live? Find out > > _______________________________________________ > 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 bicphuongonline at yahoo.com Mon Sep 21 08:22:22 2009 From: bicphuongonline at yahoo.com (Alphatran) Date: Mon, 21 Sep 2009 08:22:22 -0700 (PDT) Subject: [mapserver-users] MINSCALEDENOM did not work? In-Reply-To: References: <799441.90100.qm@web112019.mail.gq1.yahoo.com> <1253529392303-3684387.post@n2.nabble.com> Message-ID: <1253546542445-3686070.post@n2.nabble.com> Rahkonen Jukka wrote: > > > Hi, > > Try to get something written into Mapserver log. Add something like > CONFIG "MS_ERRORFILE" "d:/program files/ms4w/tmp/ms_error.txt" > > into MAP object, and DEGUG 5 into LAYER. > > It might be easier to understand what happens by using something else than > Openlayers application as a client first. Shp2img or browser and &mode=map > are simple to keep under control, as well as sending WMS request directly > from browser or through some WMS client like OpenJUMP or QGIs. > > -Jukka Rahkonen- > > > Thanks for your help Jukka, As your suggestion, I config MS_ERRORFILE and found following error when I turn on the layer on LayerSwitcher of OL: [Mon Sep 21 22:10:43 2009].688894 getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist [Mon Sep 21 22:10:57 2009].424388 freeLayer(): freeing layer at 0x892c518. [Mon Sep 21 22:10:43 2009].702094 getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist [Mon Sep 21 22:10:58 2009].120686 freeLayer(): freeing layer at 0x87fb518. [Mon Sep 21 22:10:44 2009].162755 getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist [Mon Sep 21 22:10:58 2009].155177 freeLayer(): freeing layer at 0x91ab518. [Mon Sep 21 22:11:27 2009].717496 freeLayer(): freeing layer at 0x9b08038. [Mon Sep 21 22:11:27 2009].771941 freeLayer(): freeing layer at 0x8f19038. I tried to open the layer with QuantumGIS, and QuantumGIS shows me no features. Someone could fix the error above by set DEBUG OFF at MAP section in map file. I tried this way too but no better news. Do you know how to solve this error, Jukka? -- View this message in context: http://n2.nabble.com/MINSCALEDENOM-did-not-work-tp3637534p3686070.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Mon Sep 21 09:03:38 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Sep 2009 11:03:38 -0500 Subject: [mapserver-users] display feature name beside feature In-Reply-To: <1253536453758-3684929.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> Message-ID: <4AB75D8A.5157.008F.0@dnr.state.mn.us> And you can see the railway points? >>> On 9/21/2009 at 7:34 AM, in message <1253536453758-3684929.post at n2.nabble.com>, sunny74 wrote: > Hi Lars, > > I have added the fontset file and also the Label and other definitions at > the appropriate places but still the Labels are not being displayed for the > layer RailwayStation. > > My map file now looks like this: > > # Map file created from QGIS project file D:/QGIS/newwr.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME newwr.map > # Map image size > SIZE 600 600 > UNITS dd > > EXTENT 67.440106 17.379867 78.390250 25.122977 > FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > > # Background color for the map canvas -- change as desired > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE gif > OUTPUTFORMAT > NAME gif > DRIVER 'GD/GIF' > MIMETYPE 'image/gif' > #IMAGEMODE PC256 > EXTENSION 'gif' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH '/tmp/' > > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL '/tmp/' > > # WMS server settings > METADATA > 'wms_title' 'newwr.map' > 'wms_onlineresource' > 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' > 'wms_srs' 'EPSG:4326' > END > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > END > > LAYER > NAME 'STATE' > TYPE POLYGON > DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' > LABELITEM 'STATE' > CLASSITEM 'STATE' > METADATA > 'wms_title' 'STATE' > END > STATUS DEFAULT > TRANSPARENCY 100 > > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'STATE' > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 255 255 127 > END > END > END > > LAYER > GROUP 'basic1' > NAME 'WaterBody' > TYPE POLYGON > DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' > METADATA > 'wms_title' 'WaterBody' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'WaterBody' > MAXSCALEDENOM 2000000 > MINSCALEDENOM 1500000 > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 150 123 90 > END > END > END > > LAYER > GROUP 'basic1' > NAME 'Rail_Buffer' > TYPE POLYGON > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' > METADATA > 'wms_title' 'Rail_Buffer' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Rail_Buffer' > MAXSCALEDENOM 2000000 > MINSCALEDENOM 1500000 > > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 117 232 255 > END > END > END > > LAYER > GROUP 'basic1' > NAME 'Roads' > TYPE LINE > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' > METADATA > 'wms_title' 'Roads' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Roads' > MAXSCALEDENOM 2000000 > MINSCALEDENOM 1500000 > > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 45 220 182 > COLOR 0 0 0 > END > END > END > > LAYER > GROUP 'basic2' > NAME 'Diversions' > TYPE LINE > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' > METADATA > 'wms_title' 'Diversions' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Diversions' > MAXSCALEDENOM 1500000 > MINSCALEDENOM 1000000 > > > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 144 50 207 > COLOR 0 0 0 > END > END > END > > LAYER > GROUP 'basic2' > NAME 'Rail_Side_Line' > TYPE LINE > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' > METADATA > 'wms_title' 'Rail_Side_Line' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Rail_Side_Line' > MAXSCALEDENOM 1500000 > MINSCALEDENOM 1000000 > > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 170 115 90 > COLOR 0 0 0 > END > END > END > > LAYER > GROUP 'basic' > NAME 'RailwayLine' > TYPE LINE > DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' > > METADATA > 'wms_title' 'RailwayLine' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'RailwayLine' > > > STYLE > SYMBOL 0 > SIZE 2 > OUTLINECOLOR 255 0 0 > COLOR 255 0 0 > END > END > END > > LAYER > GROUP 'basic2' > NAME 'LANDMARKS' > TYPE POINT > DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' > METADATA > 'wms_title' 'LANDMARKS' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'LANDMARKS' > MAXSCALEDENOM 1500000 > MINSCALEDENOM 1000000 > > STYLE > SYMBOL 'CIRCLE' > SIZE 8 > OUTLINECOLOR 0 0 0 > COLOR 229 210 191 > END > END > END > > LAYER > GROUP 'basic' > NAME 'RailwayStations' > TYPE POINT > DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' > CLASSITEM 'S_NAME' > LABELITEM 'S_NAME' > METADATA > 'wms_title' 'RailwayStations' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'RailwayStations' > STYLE > SYMBOL 'CIRCLE' > SIZE 8 > OUTLINECOLOR 0 0 0 > COLOR 255 0 0 > END > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > > END > > END > > LAYER > GROUP 'basic3' > NAME 'LC_Gate' > TYPE POINT > DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' > METADATA > 'wms_title' 'LC_Gate' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'LC_Gate' > MAXSCALEDENOM 1000000 > MINSCALEDENOM 500000 > > STYLE > SYMBOL 'CIRCLE' > SIZE 8 > OUTLINECOLOR 0 0 0 > COLOR 15 155 200 > END > END > END > > LAYER > GROUP 'basic3' > NAME 'Bridges_Minor' > TYPE POINT > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' > METADATA > 'wms_title' 'Bridges_Minor' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Bridges_Minor' > MAXSCALEDENOM 1000000 > MINSCALEDENOM 500000 > > STYLE > SYMBOL 'CIRCLE' > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 43 253 114 > END > END > END > > LAYER > GROUP 'basic3' > NAME 'Bridge_Major' > TYPE POINT > DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' > METADATA > 'wms_title' 'Bridge_Major' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > NAME 'Bridge_Major' > MAXSCALEDENOM 1000000 > MINSCALEDENOM 500000 > > STYLE > SYMBOL 'CIRCLE' > SIZE 2 > OUTLINECOLOR 0 0 0 > COLOR 97 136 146 > END > END > END > > #Circle symbol > SYMBOL > NAME 'CIRCLE' > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > END > > My Fontset file is fonts.txt and it is located in the same folder as the map > file. > It contains the following: > > arial C:/WINDOWS/Fonts/arial.ttf > arial-bold C:/WINDOWS/Fonts/arialbd.ttf > > So where is the problem? > Where am I going wrong? > > Thanks for your reply. > > sunny. > > Lars Lingner-2 wrote: >> >> sunny74 schrieb: >>> Hi Michael, >>> >>> Thanks for your reply. >>> I had gone thru' the links you have given before making this post.But I >>> am >>> having the problems given in the link below: >>> >>> > http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654 > 455 >>> When using truetype I get the error probably bec' I am not able to >>> specify >>> the fontset file. >>> So I need to know the following: >>> 1) What kind of file is the fontset file?I think it is a text file >> >> its just a textfile, yes >> >>> 2) Where do I keep the fontset file - in the same folder as the map file >>> or >>> in different folder.If different folder how do I specify the path in the >>> map >>> file. >> >> as you wish. You have to tell MapServer the place with the keywortd >> FONTSET. >> >>> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows Font >>> Folder i.e C:/Windows/Fonts >> >> yes, you can keep it there. MapServer needs read permissions to the >> fonts. In the fonset file you can define the path. >> >>> 4)How do I specify the path of the fonts in the fontset file? >>> >> >> /path/to/fonts/font.ttf >> >> >> Please have a look at >> >> http://mapserver.org/mapfile/map.html >> and >> http://mapserver.org/mapfile/fontset.html >> >> >> Lars >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From paul_pag00 at hotmail.com Mon Sep 21 10:00:10 2009 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Mon, 21 Sep 2009 10:00:10 -0700 (PDT) Subject: [mapserver-users] dynamic queries Message-ID: <1253552410126-3686777.post@n2.nabble.com> Greetings users, im using a php mapscript , and im like to know if there is a way to make a dynamic query using mapserver, into the layers made in postgis, im using o.mapper as framework, im using mapserver 5.4.1 Thanks a lot Paul -- View this message in context: http://n2.nabble.com/dynamic-queries-tp3686777p3686777.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iacovlev.pavel at gmail.com Mon Sep 21 10:42:13 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Mon, 21 Sep 2009 20:42:13 +0300 Subject: [mapserver-users] dynamic queries In-Reply-To: <1253552410126-3686777.post@n2.nabble.com> References: <1253552410126-3686777.post@n2.nabble.com> Message-ID: <2a37f67a0909211042u74c37b09jf7bc0567bc97e50a@mail.gmail.com> /** $select - SELECT query $srid - projection srid $unique - unique table column, example: gid */ $layer->set('data', "the_geom from ($select) as tmp using SRID={$srid} using unique $unique"); On Mon, Sep 21, 2009 at 8:00 PM, Paul Alarcon wrote: > > Greetings users, im using a php mapscript , and im like to know if there is a > way to make a dynamic query using mapserver, into the layers made in > postgis, im using o.mapper as framework, im using mapserver 5.4.1 > Thanks a lot > > Paul > > -- > View this message in context: http://n2.nabble.com/dynamic-queries-tp3686777p3686777.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 > -- http://iap.md, The future is open From tspradley at snoogems.com Mon Sep 21 12:03:29 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 21 Sep 2009 12:03:29 -0700 (PDT) Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url Message-ID: <1253559809841-3687559.post@n2.nabble.com> Hi all, I decided it would be a good idea to move all of my mapping activity to a subdomain: maps.subdomain.com Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result is '500 Internal Server Error'. Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result is the expected 'No query information to decode. QUERY_STRING is set, but empty. '. access_log shows the two requests converted to the same GET: 1. 'http://domain.com/cgi-bin/mapserv' - [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" 2. 'http://maps.domain.com/cgi-bin/mapserv' - [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" One gets code 200, Two gets code 500. error_log shows: [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of script headers: mapserv mapserv -v MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: yes Installation: Fedora 7, Linux Apache/2.2.8 Does anyone have any thoughts about where I may start looking for clues? Thank you, Ted S. -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3687559.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tspradley at snoogems.com Mon Sep 21 12:05:24 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 21 Sep 2009 12:05:24 -0700 (PDT) Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253559809841-3687559.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> Message-ID: <1253559924346-3687574.post@n2.nabble.com> should read 'all of my mapping activity to a subdomain: maps.domain.com -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3687574.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Mon Sep 21 12:16:33 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 21 Sep 2009 14:16:33 -0500 Subject: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253559809841-3687559.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> Message-ID: <4AB78AC1.5157.008F.0@dnr.state.mn.us> Typically I would think this is a linking error. That is, the mapserv binary can't find the shared libs it needs to run. You probably need to configure apache further. There's a LD_LIBRARY_PATH env variable that you can look into setting. Steve >>> On 9/21/2009 at 2:03 PM, in message <1253559809841-3687559.post at n2.nabble.com>, Ted Spradley wrote: > Hi all, > > I decided it would be a good idea to move all of my mapping activity to a > subdomain: maps.subdomain.com > > Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result > is '500 Internal Server Error'. > > Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result > is the expected 'No query information to decode. QUERY_STRING is set, but > empty. '. > > access_log shows the two requests converted to the same GET: > > 1. 'http://domain.com/cgi-bin/mapserv' - > > [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" > "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 > Firefox/3.5.3 (.NET CLR 3.5.30729)" > > 2. 'http://maps.domain.com/cgi-bin/mapserv' - > [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-" > "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 > Firefox/3.5.3 (.NET CLR 3.5.30729)" > > One gets code 200, Two gets code 500. > > error_log shows: > [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of > script headers: mapserv > > > mapserv -v > MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: > AGG Freetype support: > Ming(flash) support: > PDFLib support: > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: -DUSE_LIBXML2 > FriBidi support: > Curl support: -DUSE_CURL > FastCGI support: > Threading support: -DUSE_THREAD > GEOS support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: -DUSE_POSTGIS > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: yes > > > Installation: Fedora 7, Linux Apache/2.2.8 > > Does anyone have any thoughts about where I may start looking for clues? > > Thank you, > Ted S. From andy at squeakycode.net Mon Sep 21 14:08:18 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Sep 2009 16:08:18 -0500 Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253559809841-3687559.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> Message-ID: <4AB7EB42.20300@squeakycode.net> Ted Spradley wrote: > Hi all, > > I decided it would be a good idea to move all of my mapping activity to a > subdomain: maps.subdomain.com > > Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result > is '500 Internal Server Error'. > > Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result > is the expected 'No query information to decode. QUERY_STRING is set, but > empty. '. > > access_log shows the two requests converted to the same GET: > > 1. 'http://domain.com/cgi-bin/mapserv' - > What does apache error log show? -Andy From tspradley at snoogems.com Mon Sep 21 16:09:54 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 21 Sep 2009 16:09:54 -0700 (PDT) Subject: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url In-Reply-To: <4AB78AC1.5157.008F.0@dnr.state.mn.us> References: <1253559809841-3687559.post@n2.nabble.com> <4AB78AC1.5157.008F.0@dnr.state.mn.us> Message-ID: <1253574594435-3689025.post@n2.nabble.com> Thanks Steve. I added SetEnv LD_LIBRARY_PATH /usr/local/lib to /etc/httpd/conf/httpd.conf as follows: AllowOverride None Options None Order allow,deny Allow from all SetEnv LD_LIBRARY_PATH /usr/local/lib and restarted Apache, but I know I am only guessing. No success. Then I tried setting the environment variable by adding 'SetEnv LD_LIBRARY_PATH /usr/local/lib' to the /var/www/vhosts/domain/conf/httpd.include file as follows: ServerName maps.domain.com:80 SuexecUserGroup snoogadmin psacln ServerAdmin "admin at domain.com" DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log ScriptAlias /cgi-bin/ /var/www/cgi-bin/ SetEnv LD_LIBRARY_PATH /usr/local/lib and restarted Apache, but with the same result of '500 Internal Server Error'. Possibly I need to be entering different parameters into the LD_LIBRARY_PATH variable? Thanks again, Ted S Steve Lime wrote: > > Typically I would think this is a linking error. That is, the mapserv > binary can't find the shared > libs it needs to run. You probably need to configure apache further. > There's a LD_LIBRARY_PATH > env variable that you can look into setting. > > Steve > >>>> On 9/21/2009 at 2:03 PM, in message >>>> <1253559809841-3687559.post at n2.nabble.com>, > Ted Spradley wrote: > >> Hi all, >> >> I decided it would be a good idea to move all of my mapping activity to a >> subdomain: maps.subdomain.com >> >> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result >> is '500 Internal Server Error'. >> >> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result >> is the expected 'No query information to decode. QUERY_STRING is set, but >> empty. '. >> >> access_log shows the two requests converted to the same GET: >> >> 1. 'http://domain.com/cgi-bin/mapserv' - >> >> [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" >> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) >> Gecko/20090824 >> Firefox/3.5.3 (.NET CLR 3.5.30729)" >> >> 2. 'http://maps.domain.com/cgi-bin/mapserv' - >> [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-" >> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) >> Gecko/20090824 >> Firefox/3.5.3 (.NET CLR 3.5.30729)" >> >> One gets code 200, Two gets code 500. >> >> error_log shows: >> [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end >> of >> script headers: mapserv >> >> >> mapserv -v >> MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 >> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> MapServer is now configured for >> >> -------------- Compiler Info ------------- >> C compiler: gcc -O2 -fPIC -Wall >> C++ compiler: g++ -O2 -fPIC -Wall >> Debug: -DNEED_NONBLOCKING_STDERR >> Generic NINT: >> >> -------------- Renderer Settings --------- >> zlib support: -DUSE_ZLIB >> png support: >> palette rgba png support: >> jpeg support: >> iconv support: -DUSE_ICONV >> AGG support: >> AGG Freetype support: >> Ming(flash) support: >> PDFLib support: >> >> -------------- Support Libraries --------- >> Proj.4 support: -DUSE_PROJ >> Libxml2 support: -DUSE_LIBXML2 >> FriBidi support: >> Curl support: -DUSE_CURL >> FastCGI support: >> Threading support: -DUSE_THREAD >> GEOS support: >> >> -------------- Data Format Drivers ------- >> native tiff support: >> PostGIS support: -DUSE_POSTGIS >> EPPL7 support: -DUSE_EPPL >> ArcSDE support: >> OGR support: -DUSE_OGR >> GDAL support: -DUSE_GDAL >> Oracle Spatial support: >> >> -------------- OGC Services -------------- >> WMS Server: -DUSE_WMS_SVR >> WMS Client: -DUSE_WMS_LYR >> WFS Server: -DUSE_WFS_SVR >> WFS Client: -DUSE_WMS_LYR >> WCS Server: -DUSE_WCS_SVR >> SOS Server: >> >> -------------- MapScript ----------------- >> PHP MapScript: yes >> >> >> Installation: Fedora 7, Linux Apache/2.2.8 >> >> Does anyone have any thoughts about where I may start looking for clues? >> >> Thank you, >> Ted S. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3689025.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tspradley at snoogems.com Mon Sep 21 16:11:42 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 21 Sep 2009 16:11:42 -0700 (PDT) Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: <4AB7EB42.20300@squeakycode.net> References: <1253559809841-3687559.post@n2.nabble.com> <4AB7EB42.20300@squeakycode.net> Message-ID: <1253574702575-3689033.post@n2.nabble.com> The Apache error_log shows: error_log shows: [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of script headers: mapserv Thanks, Ted S. Andy Colson wrote: > > Ted Spradley wrote: >> Hi all, >> >> I decided it would be a good idea to move all of my mapping activity to a >> subdomain: maps.subdomain.com >> >> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result >> is '500 Internal Server Error'. >> >> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result >> is the expected 'No query information to decode. QUERY_STRING is set, but >> empty. '. >> >> access_log shows the two requests converted to the same GET: >> >> 1. 'http://domain.com/cgi-bin/mapserv' - >> > > What does apache error log show? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3689033.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Mon Sep 21 17:29:24 2009 From: punk.kish at gmail.com (P Kishor) Date: Mon, 21 Sep 2009 19:29:24 -0500 Subject: [mapserver-users] MapServer failing to find any result, causing WMSGetFeatureInfo hang Message-ID: Greetings, I have a 1 km. sq. grid layer stored in Pg/PostGIS (8.4/1.4.0) served by MapServer 5.4.2. If I query for WMSGetFeatureInfo (from OpenLayers 2.8) while zoomed out, the following queries run in the backend, and xmin, xmax, ymin, ymax values are returned to the user and presented in a popup window by OpenLayers. statement 1a: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"gid" from grid_1km_cnnf where the_geom && GeomFromText('POLYGON((630976.809608983 585638.303216044,630976.809608983 587492.192802734,632291.577207376 587492.192802734,632291.577207376 585638.303216044,630976.809608983 585638.303216044))',find_srid('','grid_1km_cnnf','the_geom')) statement 1b: select * from grid_1km_cnnf where false limit 0 statement 1c: select "gid", "ID", "XMIN", "XMAX", "YMIN", "YMAX", encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"gid" from grid_1km_cnnf where "gid" = 31437 Mapserver logs the following messages [Mon Sep 21 18:58:04 2009].190912 CGI Request 1 on process 56359 [Mon Sep 21 18:58:04 2009].191385 msWMSLoadGetMapParams(): enabling non-square pixels. [Mon Sep 21 18:58:04 2009].301261 mapserv request processing time (msLoadMap not incl.): 0.110s My understanding is that statement 1a finds the actual grid square containing my click, statement 1b returns no rows at all so I don't know what it does, and statement 1c returns the actual attributes. All this happens successfully. Now, if I zoom in quite a bit and click for WMSGetFeatureInfo, the only statement that runs is statement 2a below. As is evident from MapServer logs shown below, no result is found, so my WMSGetFeatureInfo event keeps on waiting for something to come back. statement 2a: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"gid" from grid_1km_cnnf where the_geom && GeomFromText('POLYGON((630616.805138803 580174.87136618,630616.805138803 580290.724370171,630699.037346471 580290.724370171,630699.037346471 580174.87136618,630616.805138803 580174.87136618))',find_srid('','grid_1km_cnnf','the_geom')) MapServer log, as shown below, shows that no result was returned. [Mon Sep 21 19:00:29 2009].391044 CGI Request 1 on process 56414 [Mon Sep 21 19:00:29 2009].391503 msWMSLoadGetMapParams(): enabling non-square pixels. [Mon Sep 21 19:00:29 2009].410388 msQueryByPoint(): Search returned no results. No matching record(s) found. [Mon Sep 21 19:00:29 2009].410501 mapserv request processing time (msLoadMap not incl.): 0.019s Now, statement 2a runs fine and fast in Pgadmin3, returns a gid, and I can then use that gid to run the equivalent of statement 1c above and get back the xmin, ymin, xmax, ymax attributes, but only through pgadmin3. Through my map interface I get nothing back because nothing happens after statement 2a. I don't even know where the problem is -- doesn't seem like a problem with OpenLayers because all it does is send a query. Doesn?t seem to be a problem with Pg because if it actually got the query it would return a result, as it does in Pgadmin3. But, why should it be a problem with MapServer as all MapServer would do, if it got back a result from 2a, it would run the equivalent of 1b and 1c. As is, my query just hangs. Any idea what is going on? Fwiw, I don't have TOLERANCE and TOLERANCEUNITS set in my mapfile, as, from their description, they don't seem to apply. In any case, if not provided, TOLERANCE defaults to 0 for poly layers which restricts poly searches so that point falls within the polygon, which is what I want. I am stumped. -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= Sent from Madison, WI, United States From john.callahan at UDel.Edu Mon Sep 21 17:33:43 2009 From: john.callahan at UDel.Edu (John Callahan) Date: Mon, 21 Sep 2009 20:33:43 -0400 Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253574702575-3689033.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> <4AB7EB42.20300@squeakycode.net> <1253574702575-3689033.post@n2.nabble.com> Message-ID: <4AB81B67.9060802@udel.edu> I was getting the exact same error when accessing the GetCapabilities output. For me, the output was getting truncated at 4kb, resulting in the "premature end of script headers" message. Even if I ran the script from the command line, the error was still there (if output was to a file, such as > out.xml, but all worked great when directing output to screen.) http://n2.nabble.com/GetCapabilities-response-being-truncated-td3234081.html The error was also there when connecting to WMS services as a tile server, such as via Google Maps API. About half of the tiles would show up and the other half of the requests had the same error. (a single request to the WMS always worked great, it seemed to be the multiple, almost concurrent requests from the GM api that caused the error.) Unfortunately, I could not solve the problem. The error occurred on two of by Windows Server 2008 machines, a third 2008 machine worked great. My Windows XP and Server 2003 machines worked great so I went with Server 2003. (all machines were x64 bit and used Apache 2.2. I am not sure if they all used vhosts/subdomains or not.) Good luck! I gave up and just went with a machine that worked (one of the benefits of virtualization!) - John ************************************************** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware Email: john.callahan at udel.edu ************************************************** Ted Spradley wrote: > The Apache error_log shows: > > > error_log shows: > [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of > script headers: mapserv > > Thanks, Ted S. > > > Andy Colson wrote: > >> Ted Spradley wrote: >> >>> Hi all, >>> >>> I decided it would be a good idea to move all of my mapping activity to a >>> subdomain: maps.subdomain.com >>> >>> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result >>> is '500 Internal Server Error'. >>> >>> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result >>> is the expected 'No query information to decode. QUERY_STRING is set, but >>> empty. '. >>> >>> access_log shows the two requests converted to the same GET: >>> >>> 1. 'http://domain.com/cgi-bin/mapserv' - >>> >>> >> What does apache error log show? >> >> -Andy >> _______________________________________________ >> 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 pramsey at cleverelephant.ca Mon Sep 21 17:47:27 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 21 Sep 2009 17:47:27 -0700 Subject: [mapserver-users] MapServer failing to find any result, causing WMSGetFeatureInfo hang In-Reply-To: References: Message-ID: <30fe546d0909211747l2e5eb4abwa24db35bd2745015@mail.gmail.com> Can you provide a table dump, a map file and a URL that exercise this condition? if you can provide a minimal test case, I'll debug. (PS, open a ticket and attach the collateral to it (dump, map file, url)) P On Mon, Sep 21, 2009 at 5:29 PM, P Kishor wrote: > Greetings, > > I have a 1 km. sq. grid layer stored in Pg/PostGIS (8.4/1.4.0) served > by MapServer 5.4.2. If I query for WMSGetFeatureInfo (from OpenLayers > 2.8) while zoomed out, the following queries run in the backend, and > xmin, xmax, ymin, ymax values are returned to the user and presented > in a popup window by OpenLayers. > > statement 1a: > select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom,"gid" from grid_1km_cnnf where the_geom && > GeomFromText('POLYGON((630976.809608983 > 585638.303216044,630976.809608983 587492.192802734,632291.577207376 > 587492.192802734,632291.577207376 585638.303216044,630976.809608983 > 585638.303216044))',find_srid('','grid_1km_cnnf','the_geom')) > > statement 1b: > select * from grid_1km_cnnf where false limit 0 > > statement 1c: > select "gid", "ID", "XMIN", "XMAX", "YMIN", "YMAX", > encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom,"gid" from grid_1km_cnnf where "gid" = 31437 > > Mapserver logs the following messages > > [Mon Sep 21 18:58:04 2009].190912 CGI Request 1 on process 56359 > [Mon Sep 21 18:58:04 2009].191385 msWMSLoadGetMapParams(): enabling > non-square pixels. > [Mon Sep 21 18:58:04 2009].301261 mapserv request processing time > (msLoadMap not incl.): 0.110s > > My understanding is that statement 1a finds the actual grid square containing > my click, statement 1b returns no rows at all so I don't know what it > does, and statement 1c returns the actual attributes. All this happens > successfully. > > Now, if I zoom in quite a bit and click for WMSGetFeatureInfo, the > only statement that runs is statement 2a below. As is evident from > MapServer logs shown below, no result is found, so my > WMSGetFeatureInfo event keeps on waiting for something to come back. > > statement 2a: > select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom,"gid" from grid_1km_cnnf where the_geom && > GeomFromText('POLYGON((630616.805138803 > 580174.87136618,630616.805138803 580290.724370171,630699.037346471 > 580290.724370171,630699.037346471 580174.87136618,630616.805138803 > 580174.87136618))',find_srid('','grid_1km_cnnf','the_geom')) > > MapServer log, as shown below, shows that no result was returned. > > [Mon Sep 21 19:00:29 2009].391044 CGI Request 1 on process 56414 > [Mon Sep 21 19:00:29 2009].391503 msWMSLoadGetMapParams(): enabling > non-square pixels. > [Mon Sep 21 19:00:29 2009].410388 msQueryByPoint(): Search returned no > results. No matching record(s) found. > [Mon Sep 21 19:00:29 2009].410501 mapserv request processing time > (msLoadMap not incl.): 0.019s > > > Now, statement 2a runs fine and fast in Pgadmin3, returns a gid, and I > can then use that gid to run the equivalent of statement 1c above and > get back the xmin, ymin, xmax, ymax attributes, but only through > pgadmin3. Through my map interface I get nothing back because nothing > happens after statement 2a. > > I don't even know where the problem is -- doesn't seem like a problem > with OpenLayers because all it does is send a query. Doesn?t seem to > be a problem with Pg because if it actually got the query it would > return a result, as it does in Pgadmin3. But, why should it be a > problem with MapServer as all MapServer would do, if it got back a > result from 2a, it would run the equivalent of 1b and 1c. > > As is, my query just hangs. Any idea what is going on? > > Fwiw, I don't have TOLERANCE and TOLERANCEUNITS set in my mapfile, as, > from their description, they don't seem to apply. In any case, if not > provided, TOLERANCE defaults to 0 for poly layers which restricts poly > searches so that point falls within the polygon, which is what I want. > > I am stumped. > > > -- > Puneet Kishor http://www.punkish.org > Carbon Model http://carbonmodel.org > Charter Member, Open Source Geospatial Foundation http://www.osgeo.org > Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor > Nelson Institute, UW-Madison http://www.nelson.wisc.edu > ----------------------------------------------------------------------- > Assertions are politics; backing up assertions with evidence is science > ======================================================================= > Sent from Madison, WI, United States > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mpg70221725 at yahoo.com.ar Mon Sep 21 18:54:27 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Mon, 21 Sep 2009 18:54:27 -0700 (PDT) Subject: [mapserver-users] build mapscript.so for linux? Message-ID: <325174.36397.qm@web33906.mail.mud.yahoo.com> I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? tank's. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From mpg70221725 at yahoo.com.ar Mon Sep 21 18:54:27 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Mon, 21 Sep 2009 18:54:27 -0700 (PDT) Subject: [mapserver-users] build mapscript.so for linux? Message-ID: <325174.36397.qm@web33906.mail.mud.yahoo.com> I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? tank's. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From andy at squeakycode.net Mon Sep 21 18:57:50 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Sep 2009 20:57:50 -0500 Subject: [mapserver-users] build mapscript.so for linux? In-Reply-To: <325174.36397.qm@web33906.mail.mud.yahoo.com> References: <325174.36397.qm@web33906.mail.mud.yahoo.com> Message-ID: <4AB82F1E.1070300@squeakycode.net> joel ml wrote: > I need help to build the library mapscript.so to work with java mapscript, > I already have the source code of mapserver, > and swig 1.3.40, everything installed on linux, > which are the steps to generate the library mapscript.so? > > tank's. > > > Yahoo! Cocina > > Encontra las mejores recetas con Yahoo! Cocina. > > > http://ar.mujer.yahoo.com/cocina/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Did you read any of the documentation? Was there some part of the documentation that you had problems with? What have you tried? What errors did you get? What step are you on? -Andy From andy at squeakycode.net Mon Sep 21 19:03:52 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Sep 2009 21:03:52 -0500 Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253574702575-3689033.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> <4AB7EB42.20300@squeakycode.net> <1253574702575-3689033.post@n2.nabble.com> Message-ID: <4AB83088.9080302@squeakycode.net> Ted Spradley wrote: > The Apache error_log shows: > > > error_log shows: > [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of > script headers: mapserv > > Thanks, Ted S. > > > Andy Colson wrote: >> Ted Spradley wrote: >>> Hi all, >>> >>> I decided it would be a good idea to move all of my mapping activity to a >>> subdomain: maps.subdomain.com >>> >>> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result >>> is '500 Internal Server Error'. >>> >>> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result >>> is the expected 'No query information to decode. QUERY_STRING is set, but >>> empty. '. >>> >>> access_log shows the two requests converted to the same GET: >>> >>> 1. 'http://domain.com/cgi-bin/mapserv' - >>> >> What does apache error log show? >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > Yep, that means mapserv is crashing before it can send any output to apache. I've had the same error in my perl mapscript when I do something dumb and the script dies in the middle. Are you sending different params to mapserv for one url vs. the other? Any differences at all? Does apache have different virtual hosts for the two urls, or aliases (ie. are they hitting the same mapserv on disk)? (If you rename the mapserv to something and then try both urls do they both return 404's?) -Andy From tspradley at snoogems.com Mon Sep 21 19:47:12 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Mon, 21 Sep 2009 21:47:12 -0500 Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url References: <1253559809841-3687559.post@n2.nabble.com> <4AB7EB42.20300@squeakycode.net> <1253574702575-3689033.post@n2.nabble.com> <4AB83088.9080302@squeakycode.net> Message-ID: Thanks Andy. Yes, changed mapserv to a different name, and both 404's. access_log: - - [21/Sep/2009:21:35:25 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 1464 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" - - [21/Sep/2009:21:35:33 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 1464 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" I am not sending any parameters at all through the url, only checking functionality. 1. http://domain.com/cgi-bin/mapserv 2. http://maps.domain.com/cgi-bin/mapserv Apache does have different virtual hosts for each, but the access_log above shows each request getting converted to the identical GET request. 1. 'http://domain.com/cgi-bin/mapserv' - [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" 2. 'http://maps.domain.com/cgi-bin/mapserv' - [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" One gets code 200, Two gets code 500. All of my openlayers, mapserver, etc programs function normally on the main domain. I even tried moving around the SetEnv directive to outside the in both httpd.conf files Thanks again for all of your thought. Ted S. ----- Original Message ----- From: "Andy Colson" To: "Ted Spradley" Cc: Sent: Monday, September 21, 2009 9:03 PM Subject: Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url > Ted Spradley wrote: >> The Apache error_log shows: >> >> >> error_log shows: >> [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end >> of >> script headers: mapserv >> >> Thanks, Ted S. >> >> >> Andy Colson wrote: >>> Ted Spradley wrote: >>>> Hi all, >>>> >>>> I decided it would be a good idea to move all of my mapping activity to >>>> a >>>> subdomain: maps.subdomain.com >>>> >>>> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the >>>> result >>>> is '500 Internal Server Error'. >>>> >>>> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result >>>> is the expected 'No query information to decode. QUERY_STRING is set, >>>> but >>>> empty. '. >>>> >>>> access_log shows the two requests converted to the same GET: >>>> >>>> 1. 'http://domain.com/cgi-bin/mapserv' - >>>> >>> What does apache error log show? >>> >>> -Andy >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > Yep, that means mapserv is crashing before it can send any output to > apache. I've had the same error in my perl mapscript when I do something > dumb and the script dies in the middle. > > Are you sending different params to mapserv for one url vs. the other? > Any differences at all? Does apache have different virtual hosts for the > two urls, or aliases (ie. are they hitting the same mapserv on disk)? > > (If you rename the mapserv to something and then try both urls do they > both return 404's?) > > -Andy From andy at squeakycode.net Mon Sep 21 20:18:17 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Sep 2009 22:18:17 -0500 Subject: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url In-Reply-To: References: <1253559809841-3687559.post@n2.nabble.com> <4AB7EB42.20300@squeakycode.net> <1253574702575-3689033.post@n2.nabble.com> <4AB83088.9080302@squeakycode.net> Message-ID: <4AB841F9.8090408@squeakycode.net> Ted Spradley wrote: > Thanks Andy. > > Yes, changed mapserv to a different name, and both 404's. > access_log: > - - [21/Sep/2009:21:35:25 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 > 1464 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; > rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" > - - [21/Sep/2009:21:35:33 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 > 1464 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en- US; > rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" > shoot. > I am not sending any parameters at all through the url, only checking > functionality. > > 1. http://domain.com/cgi-bin/mapserv > 2. http://maps.domain.com/cgi-bin/mapserv shoot. > > Apache does have different virtual hosts for each, but the access_log > above shows each request getting converted to the identical GET request. > > 1. 'http://domain.com/cgi-bin/mapserv' - > > [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" > "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) > Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" > > 2. 'http://maps.domain.com/cgi-bin/mapserv' - > [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 > "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) > Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)" > Yeah, I noticed that, but it's obviously before mapping to the filesystem, unless the path on disk really is /cgi-bin? I'd assumed it was more like /var/www/cgi-bin. But still, the 404's seem to prove its going to the same place. So, shoot. Have you tried any other cgi's? I'm not even sure if it would be helpful. How adventurous do you feel? http://www.net-track.ch/opensource/articles/strace-cgi.php I've never tried this, have no idea if it'll help. But in theory, there is a chance, of it potentially, being possibly helpful. :-) -Andy From truong_pham_minh at yahoo.com Tue Sep 22 00:12:36 2009 From: truong_pham_minh at yahoo.com (truongpm) Date: Tue, 22 Sep 2009 00:12:36 -0700 (PDT) Subject: [mapserver-users] Point in polygon Message-ID: <1253603556683-3690813.post@n2.nabble.com> Hi list, I have a problem with defined a point is in which polygon. For example, a map have 2 layer: commune-polygon; park - point. I want to layout color of polygon (each commune) depend on amount of point in this polygon. I done with query polygon from mySQL database, layout its color base on an attribute in database. My question is that how could i know which polygon that point inside??? Thanks for your attentions and sorry about my language skills. -- View this message in context: http://n2.nabble.com/Point-in-polygon-tp3690813p3690813.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lars.westerlind at enera.se Tue Sep 22 00:47:41 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Tue, 22 Sep 2009 09:47:41 +0200 Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer In-Reply-To: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, "httpd.exe" can't execute "The system cannot execute the specified program." I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.westerlind at enera.se Tue Sep 22 02:29:57 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Tue, 22 Sep 2009 11:29:57 +0200 Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued In-Reply-To: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930F@enerasrv01.Enera.local> Current position: On my Windows server 2003, SP2, MS4W 3.0 simply does not install. I make a new download of the zipfile and expand it as C:/ms4w ... I copy msvcr90.dll from cgi-bin to a directory in the "path". Still, I get "The system cannot execute the specified program". Using dependency walker on httpd.exe, I get errors on loading IESHIMS.DLL and WER.DLL which both are probably not required (delay-load). And msvcr90 was fixed with above action. Still, this program says Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\HTTPD.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBHTTPD.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPRICONV-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPR-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one delay-load dependency module was not found. I've tried with the standard looks of the configuration from the download, and know nothing about any "application configuration" that could be wrong. The download works well on my Windows XP-system, and the old ms4w installed using the windows installer works well on this Windows 2003 server. Please help /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 22 September 2009 09:48 Till: mapserver-users at lists.osgeo.org ?mne: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, "httpd.exe" can't execute "The system cannot execute the specified program." I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 22 03:44:21 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 22 Sep 2009 13:44:21 +0300 Subject: [mapserver-users] Upgrading ms4w setup.exe installer - continued In-Reply-To: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930F@enerasrv01.Enera.local> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local><2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930F@enerasrv01.Enera.local> Message-ID: Hi, Just the same for me and our Windows server 2003, SP2. I unzipped everything to d:\ms4w as usual, but Apache does not start. Error message is "The system cannot execute the specified program". -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lars Westerlind L?hetetty: 22. syyskuuta 2009 12:30 Vastaanottaja: Lars Westerlind; mapserver-users at lists.osgeo.org Aihe: SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued Current position: On my Windows server 2003, SP2, MS4W 3.0 simply does not install. I make a new download of the zipfile and expand it as C:/ms4w ... I copy msvcr90.dll from cgi-bin to a directory in the "path". Still, I get "The system cannot execute the specified program". Using dependency walker on httpd.exe, I get errors on loading IESHIMS.DLL and WER.DLL which both are probably not required (delay-load). And msvcr90 was fixed with above action. Still, this program says Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\HTTPD.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBHTTPD.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPRICONV-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\ms4w\apache\bin\LIBAPR-1.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one delay-load dependency module was not found. I've tried with the standard looks of the configuration from the download, and know nothing about any "application configuration" that could be wrong. The download works well on my Windows XP-system, and the old ms4w installed using the windows installer works well on this Windows 2003 server. Please help /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 22 September 2009 09:48 Till: mapserver-users at lists.osgeo.org ?mne: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, "httpd.exe" can't execute "The system cannot execute the specified program." I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Sep 22 04:31:03 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Sep 2009 08:31:03 -0300 Subject: [mapserver-users] Upgrading ms4w setup.exe installer - continued In-Reply-To: References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local><2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930F@enerasrv01.Enera.local> Message-ID: <4AB8B577.1070604@gatewaygeomatics.com> Rahkonen Jukka wrote: > Hi, > > Just the same for me and our Windows server 2003, SP2. I unzipped > everything to d:\ms4w as usual, but Apache does not start. Error > message is ?The system cannot execute the specified program?. > > -Jukka Rahkonen- > > > > ------------------------------------------------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *Puolesta *Lars > Westerlind > *L?hetetty:* 22. syyskuuta 2009 12:30 > *Vastaanottaja:* Lars Westerlind; mapserver-users at lists.osgeo.org > *Aihe:* SV: [mapserver-users] Upgrading ms4w setup.exe installer - > continued > > Current position: > > On my Windows server 2003, SP2, MS4W 3.0 simply does not install. > > > > I make a new download of the zipfile and expand it as C:/ms4w ? I > copy msvcr90.dll from cgi-bin to a directory in the ?path?. Still, I > get ?The system cannot execute the specified program?. > > > > Using dependency walker on httpd.exe, I get errors on loading > IESHIMS.DLL and WER.DLL which both are probably not required > (delay-load). And msvcr90 was fixed with above action. Still, this > program says > > > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\HTTPD.EXE" contains errors. This application has > failed to start because the application configuration is incorrect. > Reinstalling the application may fix this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBHTTPD.DLL" contains errors. This application > has failed to start because the application configuration is > incorrect. Reinstalling the application may fix this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL" contains errors. This > application has failed to start because the application > configuration is incorrect. Reinstalling the application may fix > this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPRICONV-1.DLL" contains errors. This > application has failed to start because the application > configuration is incorrect. Reinstalling the application may fix > this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPR-1.DLL" contains errors. This application > has failed to start because the application configuration is > incorrect. Reinstalling the application may fix this problem (14001).* > > *Warning: At least one delay-load dependency module was not found.* > > > > I?ve tried with the standard looks of the configuration from the > download, and know nothing about any ?application configuration? > that could be wrong. > > > > The download works well on my Windows XP-system, and the old ms4w > installed using the windows installer works well on this Windows > 2003 server. > Lars & Jukka, Would you mind posting your issues on the MS4W-users mailing list so all users can follow along? (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From lars.westerlind at enera.se Tue Sep 22 05:29:38 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Tue, 22 Sep 2009 14:29:38 +0200 Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued In-Reply-To: <4AB8B577.1070604@gatewaygeomatics.com> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local><2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930F@enerasrv01.Enera.local> <4AB8B577.1070604@gatewaygeomatics.com> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29314@enerasrv01.Enera.local> Done. Topic moved to the other list /Lars -----Ursprungligt meddelande----- Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Jeff McKenna Skickat: 22 September 2009 13:31 Till: mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] Upgrading ms4w setup.exe installer - continued Rahkonen Jukka wrote: > Hi, > > Just the same for me and our Windows server 2003, SP2. I unzipped > everything to d:\ms4w as usual, but Apache does not start. Error > message is "The system cannot execute the specified program". > > -Jukka Rahkonen- > > > > ------------------------------------------------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *Puolesta *Lars > Westerlind > *L?hetetty:* 22. syyskuuta 2009 12:30 > *Vastaanottaja:* Lars Westerlind; mapserver-users at lists.osgeo.org > *Aihe:* SV: [mapserver-users] Upgrading ms4w setup.exe installer - > continued > > Current position: > > On my Windows server 2003, SP2, MS4W 3.0 simply does not install. > > > > I make a new download of the zipfile and expand it as C:/ms4w ... I > copy msvcr90.dll from cgi-bin to a directory in the "path". Still, I > get "The system cannot execute the specified program". > > > > Using dependency walker on httpd.exe, I get errors on loading > IESHIMS.DLL and WER.DLL which both are probably not required > (delay-load). And msvcr90 was fixed with above action. Still, this > program says > > > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\HTTPD.EXE" contains errors. This application has > failed to start because the application configuration is incorrect. > Reinstalling the application may fix this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBHTTPD.DLL" contains errors. This application > has failed to start because the application configuration is > incorrect. Reinstalling the application may fix this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL" contains errors. This > application has failed to start because the application > configuration is incorrect. Reinstalling the application may fix > this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPRICONV-1.DLL" contains errors. This > application has failed to start because the application > configuration is incorrect. Reinstalling the application may fix > this problem (14001).* > > *Error: The Side-by-Side configuration information for > "c:\ms4w\apache\bin\LIBAPR-1.DLL" contains errors. This application > has failed to start because the application configuration is > incorrect. Reinstalling the application may fix this problem (14001).* > > *Warning: At least one delay-load dependency module was not found.* > > > > I've tried with the standard looks of the configuration from the > download, and know nothing about any "application configuration" > that could be wrong. > > > > The download works well on my Windows XP-system, and the old ms4w > installed using the windows installer works well on this Windows > 2003 server. > Lars & Jukka, Would you mind posting your issues on the MS4W-users mailing list so all users can follow along? (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Sep 22 06:04:09 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 22 Sep 2009 08:04:09 -0500 Subject: [mapserver-users] Point in polygon Message-ID: <4AB884FA0200008F000287C3@co5.dnr.state.mn.us> I know if you were in PostGIS you could do a spatial join of sorts. That is join each commune polygon with the points it contains (or just a count) based on an intersection operator. I don't know if that's possible with MySQL or not. You could also consider pre-processing your data if it doesn't change often. A simple MapScript script could be used like so: - for each commune geom - build a shapeObj - do a queryByShape() against the point data - store the count in the appropriate commune record You might have to pull the park data into something MapServer can query. With the count in the commune data you could easily classify on that attribute. You'd see better performance as well. Some ideas anyway. Steve >>> truongpm 09/22/09 2:13 AM >>> Hi list, I have a problem with defined a point is in which polygon. For example, a map have 2 layer: commune-polygon; park - point. I want to layout color of polygon (each commune) depend on amount of point in this polygon. I done with query polygon from mySQL database, layout its color base on an attribute in database. My question is that how could i know which polygon that point inside??? Thanks for your attentions and sorry about my language skills. -- View this message in context: http://n2.nabble.com/Point-in-polygon-tp3690813p3690813.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Tue Sep 22 07:28:33 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 22 Sep 2009 09:28:33 -0500 Subject: [mapserver-users] Upgrading ms4w setup.exe installer In-Reply-To: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA851@s-sp22.pca.state.mn.us> Lars, According to MapTools.org, the latest version of MS4W includes MapServer 5.4.2. http://www.maptools.org/ms4w/ Is this what you are looking for? David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Westerlind Sent: Tuesday, September 22, 2009 2:48 AM To: mapserver-users at lists.osgeo.org Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, "httpd.exe" can't execute "The system cannot execute the specified program." I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.westerlind at enera.se Tue Sep 22 07:43:03 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Tue, 22 Sep 2009 16:43:03 +0200 Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA851@s-sp22.pca.state.mn.us> References: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29305@enerasrv01.Enera.local> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2930D@enerasrv01.Enera.local> <6246727221874A4FB8D3F9BBC37D9BD5056DA851@s-sp22.pca.state.mn.us> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE29318@enerasrv01.Enera.local> David, Not really "looking for". I've at last successfully installed the mentioned 5.4.2 in MS4W 3.0. The problem was a dependency to new C++ DLLs or similar, on my Windows Server 2003, which may be followed on the ms4w mailing list. My original problem was that the 5.4 2 was only included in a zipfile download, not the kind using windows installer. The zipfile download should be loaded at disk drive root, and use port 80. But I've succeeded in changing the apache config files by reading the README of the ms4w very carefully. Thanks. /Lars ________________________________ Fr?n: Fawcett, David [mailto:David.Fawcett at state.mn.us] Skickat: 22 September 2009 16:29 Till: Lars Westerlind; mapserver-users at lists.osgeo.org ?mne: RE: [mapserver-users] Upgrading ms4w setup.exe installer Lars, According to MapTools.org, the latest version of MS4W includes MapServer 5.4.2. http://www.maptools.org/ms4w/ Is this what you are looking for? David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lars Westerlind Sent: Tuesday, September 22, 2009 2:48 AM To: mapserver-users at lists.osgeo.org Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, "httpd.exe" can't execute "The system cannot execute the specified program." I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some "howto"? /Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Tue Sep 22 08:53:17 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 22 Sep 2009 10:53:17 -0500 Subject: [mapserver-users] Mapserver consuming Google Maps In-Reply-To: <20090921211429.GD10824@metacarta.com> References: <20090825151424.GD16979@metacarta.com> <4D504DFCDBC248B8A910C8FECF9B456C@T61p> <20090826171615.GL16979@metacarta.com> <20090921211429.GD10824@metacarta.com> Message-ID: How do I write code (map File) to consume aerial images (not obliques) from Google maps or Bing etc. This is an example of a few services that I am consuming right now... BUT need the aerials....I assume that I can consume the aerials just as you see in Bing or Google Maps.. Any help would be greatly appreciated. http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?LAYERS=nexrad-n0r&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=EPSG:26915&BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%&WIDTH=%WIDTH%&HEIGHT=%HEIGHT%&TRANSPARENT=TRUE http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/conus_ir.cgi?LAYERS=nexrad-ir&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=EPSG:26915&BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%&WIDTH=%WIDTH%&HEIGHT=%HEIGHT%&TRANSPARENT=TRUE -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Monday, September 21, 2009 4:14 PM To: Jay Kapalczynski Subject: Re: [mapserver-users] Mapserver consuming Google Maps On Mon, Sep 21, 2009 at 03:49:54PM -0500, Jay Kapalczynski wrote: > I am trying to see if there is a way to consume the Aerial images from Google Maps inside a map server / open layers application. Not the obliques... > Is this at all possible? Even fee based.... OpenLayers does this by design. (It is not a 'Desktop client'.) So yes. If you want more information, send mail to a mailing list, rather than to me personally. -- Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christopher Schmidt > Sent: Wednesday, August 26, 2009 12:16 PM > To: Marco Foi (marco.foi) > Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver consuming Google Maps > > On Wed, Aug 26, 2009 at 05:13:53PM +0200, Marco Foi (marco.foi) wrote: > > Some time ago a similar issue was raised among UDig users and the conclusion was that: > > IT IS NOT POSSIBLE to consume Google Maps in Desktop clients. > > This isn't strictly true. Desktop clients which are capable of embedding > a browser can use the browser, render a scene, take the resulting image, > and display that to the client. There are a number of clients which > do exactly that in OpenStreetMap editors, for example. > > However, this is obviousl significantly more complex than just fetching the > tiles, which is the way most people discuss doing it. > > Anything is possible, but that doesn't mean it will be easy. > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From iacovlev.pavel at gmail.com Tue Sep 22 08:57:21 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Tue, 22 Sep 2009 18:57:21 +0300 Subject: [mapserver-users] Mapserver consuming Google Maps In-Reply-To: References: <20090825151424.GD16979@metacarta.com> <4D504DFCDBC248B8A910C8FECF9B456C@T61p> <20090826171615.GL16979@metacarta.com> <20090921211429.GD10824@metacarta.com> Message-ID: <2a37f67a0909220857sfbdff02l90331a874da2f191@mail.gmail.com> Bing as WMS Maps http://integrate.onterrasys.com/WMSforWebMaps/ On Tue, Sep 22, 2009 at 6:53 PM, Jay Kapalczynski wrote: > How do I write code (map File) to consume aerial images (not obliques) from Google maps or Bing etc. > > This is an example of a few services that I am consuming right now... > > BUT need the aerials....I assume that I can consume the aerials just as you see in Bing or Google Maps.. > > Any help would be greatly appreciated. > > > ? ? ? ? > ? ? ? ? ? ? ? ?http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?LAYERS=nexrad-n0r&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=EPSG:26915&BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%&WIDTH=%WIDTH%&HEIGHT=%HEIGHT%&TRANSPARENT=TRUE > ? ? ? ? > > ? ? ? ? > ? ? ? ? ? ? ? ?http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/conus_ir.cgi?LAYERS=nexrad-ir&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=EPSG:26915&BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%&WIDTH=%WIDTH%&HEIGHT=%HEIGHT%&TRANSPARENT=TRUE > ? ? ? ? > > > > -----Original Message----- > From: Christopher Schmidt [mailto:crschmidt at metacarta.com] > Sent: Monday, September 21, 2009 4:14 PM > To: Jay Kapalczynski > Subject: Re: [mapserver-users] Mapserver consuming Google Maps > > On Mon, Sep 21, 2009 at 03:49:54PM -0500, Jay Kapalczynski wrote: >> I am trying to see if there is a way to consume the Aerial images from Google Maps inside a map server / open layers application. ?Not the obliques... >> Is this at all possible? ?Even fee based.... > > OpenLayers does this by design. (It is not a 'Desktop client'.) > > So yes. > > If you want more information, send mail to a mailing list, rather than to > me personally. > > -- Chris > >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christopher Schmidt >> Sent: Wednesday, August 26, 2009 12:16 PM >> To: Marco Foi (marco.foi) >> Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Mapserver consuming Google Maps >> >> On Wed, Aug 26, 2009 at 05:13:53PM +0200, Marco Foi (marco.foi) wrote: >> > Some time ago a similar issue was raised among UDig users and the conclusion was that: >> > IT IS NOT POSSIBLE to consume Google Maps in Desktop clients. >> >> This isn't strictly true. Desktop clients which are capable of embedding >> a browser can use the browser, render a scene, take the resulting image, >> and display that to the client. There are a number of clients which >> do exactly that in OpenStreetMap editors, for example. >> >> However, this is obviousl significantly more complex than just fetching the >> tiles, which is the way most people discuss doing it. >> >> Anything is possible, but that doesn't mean it will be easy. >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- http://iap.md, The future is open From dmorissette at mapgears.com Tue Sep 22 12:49:51 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 22 Sep 2009 15:49:51 -0400 Subject: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url In-Reply-To: <1253574594435-3689025.post@n2.nabble.com> References: <1253559809841-3687559.post@n2.nabble.com> <4AB78AC1.5157.008F.0@dnr.state.mn.us> <1253574594435-3689025.post@n2.nabble.com> Message-ID: <4AB92A5F.3030700@mapgears.com> Ted Spradley wrote: > > Then I tried setting the environment variable by adding 'SetEnv > LD_LIBRARY_PATH /usr/local/lib' > to the /var/www/vhosts/domain/conf/httpd.include file as follows: > > > ServerName maps.domain.com:80 > SuexecUserGroup snoogadmin psacln > ServerAdmin "admin at domain.com" > DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs > CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log > plesklog > ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log > ScriptAlias /cgi-bin/ /var/www/cgi-bin/ > SetEnv LD_LIBRARY_PATH /usr/local/lib > > and restarted Apache, but with the same result of '500 Internal Server > Error'. > You also need to tell Apache to pass the env var to the CGI environment using PassEnv: PassEnv LD_LIBRARY_PATH Daniel -- Daniel Morissette http://www.mapgears.com/ From sirpeenky at gmail.com Tue Sep 22 15:04:33 2009 From: sirpeenky at gmail.com (Jide Odulana) Date: Tue, 22 Sep 2009 18:04:33 -0400 Subject: [mapserver-users] MapServer Question In-Reply-To: References: <798559224A8A469692F6750A557415C0@GEOIMAGING23> Message-ID: Hi all, Does MapServer support Unicode characters? Is it possible to embed any unicode characters such as tonemarked alphabets in the generated map, and/or in the generated legend (which are a pictures, .gif)? If possible, can you please direct me to some resources out there that can guide me. cheers Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpg70221725 at yahoo.com.ar Tue Sep 22 15:13:11 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Tue, 22 Sep 2009 15:13:11 -0700 (PDT) Subject: [mapserver-users] Building mapscript.so for Java with swig? Message-ID: <702099.22582.qm@web33902.mail.mud.yahoo.com> I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From mpg70221725 at yahoo.com.ar Tue Sep 22 15:13:11 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Tue, 22 Sep 2009 15:13:11 -0700 (PDT) Subject: [mapserver-users] Building mapscript.so for Java with swig? Message-ID: <702099.22582.qm@web33902.mail.mud.yahoo.com> I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From nsanchezb08 at gmail.com Tue Sep 22 15:39:09 2009 From: nsanchezb08 at gmail.com (NN SS) Date: Tue, 22 Sep 2009 17:39:09 -0500 Subject: [mapserver-users] Multiple Filter options. WMS Service Message-ID: Hi. I'm using wms service to load layers in openlayers. This works fine, but I have a problem. I need to use different filters options to load data. I need a dynamic filter My layer is some like this : *********** LAYER NAME "Polizas" STATUS ON CONNECTION "polizas.ovf" CONNECTIONTYPE OGR DATA "polizas" TYPE POINT METADATA "wms_name" "Polizas" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_transparent" "true" END FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and ([cod_lin_business] eq %CODLINEA%) and ("[geoestado]" eq "%GEOESTADO%") and ("[txt_municipio]" eq "%CIUDAD%" ) ) CLASS STYLE SYMBOL 'circle' SIZE 8 COLOR 255 255 0 OUTLINECOLOR 0 0 0 END END END ************* I some cases I need all filter options : FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and ([cod_lin_business] eq %CODLINEA%) and ("[geoestado]" eq "%GEOESTADO%") and ("[txt_municipio]" eq "%CIUDAD%" ) ) but other cases I need 2 parameters or 3 parameters FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) ) FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and ([cod_lin_business] eq %CODLINEA%) ) or 1 parameter : FILTER (([cod_suc] eq %CODSUC%) ) How can I do this? Thanks for your help. Regards Nelson S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Tue Sep 22 17:23:29 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 23 Sep 2009 12:23:29 +1200 Subject: [mapserver-users] Invalid format for the EXCEPTION parameter In-Reply-To: References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> Message-ID: <4ABA1341.379F.0037.0@asurequality.com> I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is giving me an Error message: WMS service exceptions:-Service Error Code:InvalidFormat Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid format for the EXCEPTION parameter. -Service Error Code:InvalidFormat Looking in the Apache access.log file I see: "GET /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.0" In my various layer Metadata I have the following: METADATA "ows_title" "apiaries" "ows_abstract" "These are the registered apiaries from the Apiary DB" "wms_srs" "EPSG:2193" "wms_opaque" "0" "wms_group_title" "API" "wms_group_abstract" "Apiaries" "ows_extent" "773500 4615000 2602100 6324500" "wms_dataurl_format" "text/html" "gml_include_items" "all" "wms_exceptions_format" "application/vnd.ogc.se_xml" END Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Sep 22 17:48:00 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 22 Sep 2009 20:48:00 -0400 Subject: [mapserver-users] Invalid format for the EXCEPTION parameter In-Reply-To: <4ABA1341.379F.0037.0@asurequality.com> References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> <4ABA1341.379F.0037.0@asurequality.com> Message-ID: <4AB97040.7060900@dmsolutions.ca> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From SansonR at asurequality.com Tue Sep 22 17:49:13 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 23 Sep 2009 12:49:13 +1200 Subject: [mapserver-users] Invalid format for the EXCEPTION parameter In-Reply-To: <4AB97040.7060900@dmsolutions.ca> References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> <4ABA1341.379F.0037.0@asurequality.com><4ABA1341.379F.0037.0@asurequality.com> <4AB97040.7060900@dmsolutions.ca> Message-ID: <4ABA1949.379F.0037.0@asurequality.com> Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Sep 22 18:24:09 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 22 Sep 2009 21:24:09 -0400 Subject: [mapserver-users] Invalid format for the EXCEPTION parameter In-Reply-To: <4ABA1949.379F.0037.0@asurequality.com> References: <4AB3FF3B0200008F000286A1@co5.dnr.state.mn.us> <4ABA1341.379F.0037.0@asurequality.com><4ABA1341.379F.0037.0@asurequality.com> <4AB97040.7060900@dmsolutions.ca> <4ABA1949.379F.0037.0@asurequality.com> Message-ID: <4AB978B9.1090101@dmsolutions.ca> Robert Sanson wrote: > Hi Assefa > > Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to > only offer WMS version 1.1.1? > Not at this point; all supported versions are exposed by default. I think supporting application/vnd.ogc.se_xml could be done for 1.3.0 unless it prevents MapServer from passing all OGC tests (for certification purpose). I will check the tests and update before the 5.6.0 release. regards, > Thanks, > > Robert > > >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> > Hi There, > > Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. > application/vnd.ogc.se_XML was used for previous versions. Do you have > any control on this parameter from ArcMap/ArcCatalog ? > > regards > > Robert Sanson wrote: > > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > > giving me an Error message: > > > > WMS service exceptions:-Service Error Code:InvalidFormat > > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > > Invalid format for the EXCEPTION parameter. > > -Service Error Code:InvalidFormat > > > > Looking in the Apache access.log file I see: > > > > "GET > > > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > > > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > > > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > > > HTTP/1.0" > > > > In my various layer Metadata I have the following: > > > > METADATA > > "ows_title" "apiaries" > > "ows_abstract" "These are the registered apiaries from the > Apiary DB" > > "wms_srs" "EPSG:2193" > > "wms_opaque" "0" > > "wms_group_title" "API" > > "wms_group_abstract" "Apiaries" > > "ows_extent" "773500 4615000 2602100 6324500" > > "wms_dataurl_format" "text/html" > > "gml_include_items" "all" > > "wms_exceptions_format" "application/vnd.ogc.se_xml" > > END > > > > Many thanks, > > > > Robert Sanson > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sb.ray at hotmail.com Tue Sep 22 21:57:49 2009 From: sb.ray at hotmail.com (sunny74) Date: Tue, 22 Sep 2009 21:57:49 -0700 (PDT) Subject: [mapserver-users] display feature name beside feature In-Reply-To: <4AB75D8A.5157.008F.0@dnr.state.mn.us> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> <4AB75D8A.5157.008F.0@dnr.state.mn.us> Message-ID: <1253681869217-3697539.post@n2.nabble.com> Hi Steve, Thanks for your reply. Regarding the railway points I was able to see the points before doing all this. I did all this just to see the Labels i.e names of the railway stations beside the points But I am not able to see this. Can u tell me where the problem is? What am I doing wrong? Thanks again. Steve Lime wrote: > > And you can see the railway points? > >>>> On 9/21/2009 at 7:34 AM, in message >>>> <1253536453758-3684929.post at n2.nabble.com>, > sunny74 wrote: > >> Hi Lars, >> >> I have added the fontset file and also the Label and other definitions at >> the appropriate places but still the Labels are not being displayed for >> the >> layer RailwayStation. >> >> My map file now looks like this: >> >> # Map file created from QGIS project file D:/QGIS/newwr.qgs >> # Edit this file to customize for your map interface >> # (Created with PyQgis MapServer Export plugin) >> MAP >> NAME newwr.map >> # Map image size >> SIZE 600 600 >> UNITS dd >> >> EXTENT 67.440106 17.379867 78.390250 25.122977 >> FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> >> # Background color for the map canvas -- change as desired >> IMAGECOLOR 192 192 192 >> IMAGEQUALITY 95 >> IMAGETYPE gif >> OUTPUTFORMAT >> NAME gif >> DRIVER 'GD/GIF' >> MIMETYPE 'image/gif' >> #IMAGEMODE PC256 >> EXTENSION 'gif' >> END >> # Legend >> LEGEND >> IMAGECOLOR 255 255 255 >> STATUS ON >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> END >> >> # Web interface definition. Only the template parameter >> # is required to display a map. See MapServer documentation >> WEB >> # Set IMAGEPATH to the path where MapServer should >> # write its output. >> IMAGEPATH '/tmp/' >> >> # Set IMAGEURL to the url that points to IMAGEPATH >> # as defined in your web server configuration >> IMAGEURL '/tmp/' >> >> # WMS server settings >> METADATA >> 'wms_title' 'newwr.map' >> 'wms_onlineresource' >> 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' >> 'wms_srs' 'EPSG:4326' >> END >> >> #Scale range at which web interface will operate >> # Template and header/footer settings >> # Only the template parameter is required to display a map. See >> MapServer documentation >> END >> >> LAYER >> NAME 'STATE' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' >> LABELITEM 'STATE' >> CLASSITEM 'STATE' >> METADATA >> 'wms_title' 'STATE' >> END >> STATUS DEFAULT >> TRANSPARENCY 100 >> >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'STATE' >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 255 255 127 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'WaterBody' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' >> METADATA >> 'wms_title' 'WaterBody' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'WaterBody' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 150 123 90 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'Rail_Buffer' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' >> METADATA >> 'wms_title' 'Rail_Buffer' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Rail_Buffer' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 117 232 255 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'Roads' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' >> METADATA >> 'wms_title' 'Roads' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Roads' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 45 220 182 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'Diversions' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' >> METADATA >> 'wms_title' 'Diversions' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Diversions' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 144 50 207 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'Rail_Side_Line' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' >> METADATA >> 'wms_title' 'Rail_Side_Line' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Rail_Side_Line' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 170 115 90 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic' >> NAME 'RailwayLine' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' >> >> METADATA >> 'wms_title' 'RailwayLine' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'RailwayLine' >> >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 255 0 0 >> COLOR 255 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'LANDMARKS' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' >> METADATA >> 'wms_title' 'LANDMARKS' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'LANDMARKS' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 229 210 191 >> END >> END >> END >> >> LAYER >> GROUP 'basic' >> NAME 'RailwayStations' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' >> CLASSITEM 'S_NAME' >> LABELITEM 'S_NAME' >> METADATA >> 'wms_title' 'RailwayStations' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'RailwayStations' >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 255 0 0 >> END >> LABEL >> COLOR 132 31 31 >> SHADOWCOLOR 218 218 218 >> SHADOWSIZE 2 2 >> TYPE TRUETYPE >> FONT arial-bold >> SIZE 12 >> ANTIALIAS TRUE >> POSITION CL >> PARTIALS FALSE >> MINDISTANCE 300 >> BUFFER 4 >> END # end of label >> >> END >> >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'LC_Gate' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' >> METADATA >> 'wms_title' 'LC_Gate' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'LC_Gate' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 15 155 200 >> END >> END >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'Bridges_Minor' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' >> METADATA >> 'wms_title' 'Bridges_Minor' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Bridges_Minor' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 43 253 114 >> END >> END >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'Bridge_Major' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' >> METADATA >> 'wms_title' 'Bridge_Major' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Bridge_Major' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 97 136 146 >> END >> END >> END >> >> #Circle symbol >> SYMBOL >> NAME 'CIRCLE' >> TYPE ellipse >> FILLED true >> POINTS >> 1 1 >> END >> END >> END >> >> My Fontset file is fonts.txt and it is located in the same folder as the >> map >> file. >> It contains the following: >> >> arial C:/WINDOWS/Fonts/arial.ttf >> arial-bold C:/WINDOWS/Fonts/arialbd.ttf >> >> So where is the problem? >> Where am I going wrong? >> >> Thanks for your reply. >> >> sunny. >> >> Lars Lingner-2 wrote: >>> >>> sunny74 schrieb: >>>> Hi Michael, >>>> >>>> Thanks for your reply. >>>> I had gone thru' the links you have given before making this post.But I >>>> am >>>> having the problems given in the link below: >>>> >>>> >> http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654 >> 455 >>>> When using truetype I get the error probably bec' I am not able to >>>> specify >>>> the fontset file. >>>> So I need to know the following: >>>> 1) What kind of file is the fontset file?I think it is a text file >>> >>> its just a textfile, yes >>> >>>> 2) Where do I keep the fontset file - in the same folder as the map >>>> file >>>> or >>>> in different folder.If different folder how do I specify the path in >>>> the >>>> map >>>> file. >>> >>> as you wish. You have to tell MapServer the place with the keywortd >>> FONTSET. >>> >>>> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows >>>> Font >>>> Folder i.e C:/Windows/Fonts >>> >>> yes, you can keep it there. MapServer needs read permissions to the >>> fonts. In the fonset file you can define the path. >>> >>>> 4)How do I specify the path of the fonts in the fontset file? >>>> >>> >>> /path/to/fonts/font.ttf >>> >>> >>> Please have a look at >>> >>> http://mapserver.org/mapfile/map.html >>> and >>> http://mapserver.org/mapfile/fontset.html >>> >>> >>> Lars >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3697539.html Sent from the Mapserver - User mailing list archive at Nabble.com. From harpalhira at gmail.com Tue Sep 22 22:08:37 2009 From: harpalhira at gmail.com (harpal singh) Date: Wed, 23 Sep 2009 10:38:37 +0530 Subject: [mapserver-users] swf output Message-ID: <623d78c30909222208h12c206dk3a8b3efa5a61142@mail.gmail.com> I AM TRYING TO GET SWF FILE OUTPUT FROM MAPSERVER ALTHOUGH I AM NOW GETTING THE FLASH DISPLAY .....BUT I DON'T KNOW WHERE TO PROVIDE CONTROLS OVER SWF OBJECT........ I TRIED TO CONTROL IT WITH JAVASCRIPT BUT NOT CAPABLE OF DOING IT ......... READ ONE FORUM SAYING ACTION SCRIPT CAN DO THIS FOR ME ........HOW TO INCLUDE ACTION SCRIPT INTO MY PHP DOCUMENT ???? CAN ANYBODY HELP ME IN SOLVING THIS ...... THANX IN ADVANCE HARPAL SINGH -------------- next part -------------- An HTML attachment was scrubbed... URL: From tspradley at snoogems.com Tue Sep 22 22:09:26 2009 From: tspradley at snoogems.com (Ted Spradley) Date: Tue, 22 Sep 2009 22:09:26 -0700 (PDT) Subject: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url In-Reply-To: <4AB92A5F.3030700@mapgears.com> References: <1253559809841-3687559.post@n2.nabble.com> <4AB78AC1.5157.008F.0@dnr.state.mn.us> <1253574594435-3689025.post@n2.nabble.com> <4AB92A5F.3030700@mapgears.com> Message-ID: <1253682566385-3697577.post@n2.nabble.com> Daniel Morissette wrote: > > Ted Spradley wrote: >> >> Then I tried setting the environment variable by adding 'SetEnv >> LD_LIBRARY_PATH /usr/local/lib' >> to the /var/www/vhosts/domain/conf/httpd.include file as follows: >> >> >> ServerName maps.domain.com:80 >> SuexecUserGroup snoogadmin psacln >> ServerAdmin "admin at domain.com" >> DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs >> CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log >> plesklog >> ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log >> ScriptAlias /cgi-bin/ /var/www/cgi-bin/ >> SetEnv LD_LIBRARY_PATH /usr/local/lib >> >> and restarted Apache, but with the same result of '500 Internal Server >> Error'. >> > > You also need to tell Apache to pass the env var to the CGI environment > using PassEnv: > > PassEnv LD_LIBRARY_PATH > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Thanks Daniel. It appears I made something simple, complicated. Ultimately the solution was: 1. setting: 'Options -Includes -ExecCGI' whereas prior to this options were 'Options -Includes +ExecCGI' 2. removing the ScriptAlias from the context. 'http://maps.domain.com/cgi-bin/mapserv' now returns 'No query information to decode. QUERY_STRING is set, but empty. ' as expected. I include various unsuccessful attempts in the event it is helpful to someone in the future. ######### I entered the pass env directive into httpd.conf: PassEnv LD_LIBRARY_PATH Apache gave the following warning and the internal server error was still returned. 'Starting httpd: [Tue Sep 22 15:46:08 2009] [warn] PassEnv variable LD_LIBRARY_PATH was undefined' I tried entering the pass env directive: 1. after the SetEnv directive : SetEnv LD_LIBRARY_PATH "/lib:/usr/lib:/usr/local/lib" PassEnv LD_LIBRARY_PATH 2. without using the SetEnv directive PassEnv LD_LIBRARY_PATH 3. in Context server config, virtual host, and directory in the above two combinations ########## Thanks to all, Ted S. -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3697577.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lars.westerlind at enera.se Wed Sep 23 01:21:39 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Wed, 23 Sep 2009 10:21:39 +0200 Subject: SV: [mapserver-users] MapServer Question In-Reply-To: References: <798559224A8A469692F6750A557415C0@GEOIMAGING23> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931D@enerasrv01.Enera.local> I don't fully understand your question, but yes, there is support for (at least some) unicode characters. Look in the LABEL / ENCODING section. I Use UTF-8 in my data files. You should also use correct font settings in order to get it work. That was difficult; I've proposed some changes in the manual for that matter. /Lars ________________________________ Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r Jide Odulana Skickat: 23 September 2009 00:05 Till: mapserver-users at lists.osgeo.org ?mne: [mapserver-users] MapServer Question Hi all, Does MapServer support Unicode characters? Is it possible to embed any unicode characters such as tonemarked alphabets in the generated map, and/or in the generated legend (which are a pictures, .gif)? If possible, can you please direct me to some resources out there that can guide me. cheers Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.westerlind at enera.se Wed Sep 23 01:29:35 2009 From: lars.westerlind at enera.se (Lars Westerlind) Date: Wed, 23 Sep 2009 10:29:35 +0200 Subject: SV: [mapserver-users] display feature name beside feature In-Reply-To: <1253681869217-3697539.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com><1253468954077-3681031.post@n2.nabble.com><4AB6803A.9000406@lingner.eu><1253536453758-3684929.post@n2.nabble.com><4AB75D8A.5157.008F.0@dnr.state.mn.us> <1253681869217-3697539.post@n2.nabble.com> Message-ID: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931E@enerasrv01.Enera.local> Try removing "CLASSITEM" from the layer with the label. As you have no expression, I think the class does not match. I also expect a warning for this in the log file. /Lars -----Ursprungligt meddelande----- Fr?n: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] F?r sunny74 Skickat: 23 September 2009 06:58 Till: mapserver-users at lists.osgeo.org ?mne: Re: [mapserver-users] display feature name beside feature Hi Steve, Thanks for your reply. Regarding the railway points I was able to see the points before doing all this. I did all this just to see the Labels i.e names of the railway stations beside the points But I am not able to see this. Can u tell me where the problem is? What am I doing wrong? Thanks again. Steve Lime wrote: > > And you can see the railway points? > >>>> On 9/21/2009 at 7:34 AM, in message >>>> <1253536453758-3684929.post at n2.nabble.com>, > sunny74 wrote: > >> Hi Lars, >> >> I have added the fontset file and also the Label and other definitions at >> the appropriate places but still the Labels are not being displayed for >> the >> layer RailwayStation. >> >> My map file now looks like this: >> >> # Map file created from QGIS project file D:/QGIS/newwr.qgs >> # Edit this file to customize for your map interface >> # (Created with PyQgis MapServer Export plugin) >> MAP >> NAME newwr.map >> # Map image size >> SIZE 600 600 >> UNITS dd >> >> EXTENT 67.440106 17.379867 78.390250 25.122977 >> FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> >> # Background color for the map canvas -- change as desired >> IMAGECOLOR 192 192 192 >> IMAGEQUALITY 95 >> IMAGETYPE gif >> OUTPUTFORMAT >> NAME gif >> DRIVER 'GD/GIF' >> MIMETYPE 'image/gif' >> #IMAGEMODE PC256 >> EXTENSION 'gif' >> END >> # Legend >> LEGEND >> IMAGECOLOR 255 255 255 >> STATUS ON >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> END >> >> # Web interface definition. Only the template parameter >> # is required to display a map. See MapServer documentation >> WEB >> # Set IMAGEPATH to the path where MapServer should >> # write its output. >> IMAGEPATH '/tmp/' >> >> # Set IMAGEURL to the url that points to IMAGEPATH >> # as defined in your web server configuration >> IMAGEURL '/tmp/' >> >> # WMS server settings >> METADATA >> 'wms_title' 'newwr.map' >> 'wms_onlineresource' >> 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' >> 'wms_srs' 'EPSG:4326' >> END >> >> #Scale range at which web interface will operate >> # Template and header/footer settings >> # Only the template parameter is required to display a map. See >> MapServer documentation >> END >> >> LAYER >> NAME 'STATE' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' >> LABELITEM 'STATE' >> CLASSITEM 'STATE' >> METADATA >> 'wms_title' 'STATE' >> END >> STATUS DEFAULT >> TRANSPARENCY 100 >> >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'STATE' >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 255 255 127 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'WaterBody' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' >> METADATA >> 'wms_title' 'WaterBody' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'WaterBody' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 150 123 90 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'Rail_Buffer' >> TYPE POLYGON >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' >> METADATA >> 'wms_title' 'Rail_Buffer' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Rail_Buffer' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 117 232 255 >> END >> END >> END >> >> LAYER >> GROUP 'basic1' >> NAME 'Roads' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' >> METADATA >> 'wms_title' 'Roads' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Roads' >> MAXSCALEDENOM 2000000 >> MINSCALEDENOM 1500000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 45 220 182 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'Diversions' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' >> METADATA >> 'wms_title' 'Diversions' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Diversions' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 144 50 207 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'Rail_Side_Line' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' >> METADATA >> 'wms_title' 'Rail_Side_Line' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Rail_Side_Line' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 170 115 90 >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic' >> NAME 'RailwayLine' >> TYPE LINE >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' >> >> METADATA >> 'wms_title' 'RailwayLine' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'RailwayLine' >> >> >> STYLE >> SYMBOL 0 >> SIZE 2 >> OUTLINECOLOR 255 0 0 >> COLOR 255 0 0 >> END >> END >> END >> >> LAYER >> GROUP 'basic2' >> NAME 'LANDMARKS' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' >> METADATA >> 'wms_title' 'LANDMARKS' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'LANDMARKS' >> MAXSCALEDENOM 1500000 >> MINSCALEDENOM 1000000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 229 210 191 >> END >> END >> END >> >> LAYER >> GROUP 'basic' >> NAME 'RailwayStations' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' >> CLASSITEM 'S_NAME' >> LABELITEM 'S_NAME' >> METADATA >> 'wms_title' 'RailwayStations' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'RailwayStations' >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 255 0 0 >> END >> LABEL >> COLOR 132 31 31 >> SHADOWCOLOR 218 218 218 >> SHADOWSIZE 2 2 >> TYPE TRUETYPE >> FONT arial-bold >> SIZE 12 >> ANTIALIAS TRUE >> POSITION CL >> PARTIALS FALSE >> MINDISTANCE 300 >> BUFFER 4 >> END # end of label >> >> END >> >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'LC_Gate' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' >> METADATA >> 'wms_title' 'LC_Gate' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'LC_Gate' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 8 >> OUTLINECOLOR 0 0 0 >> COLOR 15 155 200 >> END >> END >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'Bridges_Minor' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' >> METADATA >> 'wms_title' 'Bridges_Minor' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Bridges_Minor' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 43 253 114 >> END >> END >> END >> >> LAYER >> GROUP 'basic3' >> NAME 'Bridge_Major' >> TYPE POINT >> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' >> METADATA >> 'wms_title' 'Bridge_Major' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> CLASS >> NAME 'Bridge_Major' >> MAXSCALEDENOM 1000000 >> MINSCALEDENOM 500000 >> >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 2 >> OUTLINECOLOR 0 0 0 >> COLOR 97 136 146 >> END >> END >> END >> >> #Circle symbol >> SYMBOL >> NAME 'CIRCLE' >> TYPE ellipse >> FILLED true >> POINTS >> 1 1 >> END >> END >> END >> >> My Fontset file is fonts.txt and it is located in the same folder as the >> map >> file. >> It contains the following: >> >> arial C:/WINDOWS/Fonts/arial.ttf >> arial-bold C:/WINDOWS/Fonts/arialbd.ttf >> >> So where is the problem? >> Where am I going wrong? >> >> Thanks for your reply. >> >> sunny. >> >> Lars Lingner-2 wrote: >>> >>> sunny74 schrieb: >>>> Hi Michael, >>>> >>>> Thanks for your reply. >>>> I had gone thru' the links you have given before making this post.But I >>>> am >>>> having the problems given in the link below: >>>> >>>> >> http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654 >> 455 >>>> When using truetype I get the error probably bec' I am not able to >>>> specify >>>> the fontset file. >>>> So I need to know the following: >>>> 1) What kind of file is the fontset file?I think it is a text file >>> >>> its just a textfile, yes >>> >>>> 2) Where do I keep the fontset file - in the same folder as the map >>>> file >>>> or >>>> in different folder.If different folder how do I specify the path in >>>> the >>>> map >>>> file. >>> >>> as you wish. You have to tell MapServer the place with the keywortd >>> FONTSET. >>> >>>> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows >>>> Font >>>> Folder i.e C:/Windows/Fonts >>> >>> yes, you can keep it there. MapServer needs read permissions to the >>> fonts. In the fonset file you can define the path. >>> >>>> 4)How do I specify the path of the fonts in the fontset file? >>>> >>> >>> /path/to/fonts/font.ttf >>> >>> >>> Please have a look at >>> >>> http://mapserver.org/mapfile/map.html >>> and >>> http://mapserver.org/mapfile/fontset.html >>> >>> >>> Lars >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3697539.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From truong_pham_minh at yahoo.com Wed Sep 23 04:40:32 2009 From: truong_pham_minh at yahoo.com (truongpm) Date: Wed, 23 Sep 2009 04:40:32 -0700 (PDT) Subject: [mapserver-users] Point in polygon In-Reply-To: <4AB884FA0200008F000287C3@co5.dnr.state.mn.us> References: <1253603556683-3690813.post@n2.nabble.com> <4AB884FA0200008F000287C3@co5.dnr.state.mn.us> Message-ID: <1253706032505-3699021.post@n2.nabble.com> Thanks Steve, I trying with MySWL Spatial extension. Steve Lime wrote: > > I know if you were in PostGIS you could do a spatial join of sorts. That > is join > each commune polygon with the points it contains (or just a count) based > on > an intersection operator. I don't know if that's possible with MySQL or > not. > > You could also consider pre-processing your data if it doesn't change > often. > A simple MapScript script could be used like so: > > - for each commune geom > - build a shapeObj > - do a queryByShape() against the point data > - store the count in the appropriate commune record > > You might have to pull the park data into something MapServer can query. > With the count in the commune data you could easily classify on that > attribute. You'd see better performance as well. > > Some ideas anyway. > > Steve > >>>> truongpm 09/22/09 2:13 AM >>> > > Hi list, > > I have a problem with defined a point is in which polygon. For example, a > map have 2 layer: commune-polygon; park - point. > I want to layout color of polygon (each commune) depend on amount of point > in this polygon. > > I done with query polygon from mySQL database, layout its color base on an > attribute in database. > > My question is that how could i know which polygon that point inside??? > > Thanks for your attentions and sorry about my language skills. > -- > View this message in context: > http://n2.nabble.com/Point-in-polygon-tp3690813p3690813.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Point-in-polygon-tp3690813p3699021.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Wed Sep 23 08:20:39 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 23 Sep 2009 10:20:39 -0500 Subject: [mapserver-users] display feature name beside feature In-Reply-To: <1253681869217-3697539.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> <4AB75D8A.5157.008F.0@dnr.state.mn.us> <1253681869217-3697539.post@n2.nabble.com> Message-ID: <4AB9F677.5157.008F.0@dnr.state.mn.us> It's still not clear from your response if you can see the railway points now or not. You could before, but now? Someone else suggested removing the CLASSITEM from the layer in question, did you try that? Steve >>> On 9/22/2009 at 11:57 PM, in message <1253681869217-3697539.post at n2.nabble.com>, sunny74 wrote: > Hi Steve, > > Thanks for your reply. > Regarding the railway points I was able to see the points before doing all > this. > I did all this just to see the Labels i.e names of the railway stations > beside the points > But I am not able to see this. > Can u tell me where the problem is? > > What am I doing wrong? > > Thanks again. > > Steve Lime wrote: >> >> And you can see the railway points? >> >>>>> On 9/21/2009 at 7:34 AM, in message >>>>> <1253536453758-3684929.post at n2.nabble.com>, >> sunny74 wrote: >> >>> Hi Lars, >>> >>> I have added the fontset file and also the Label and other definitions at >>> the appropriate places but still the Labels are not being displayed for >>> the >>> layer RailwayStation. >>> >>> My map file now looks like this: >>> >>> # Map file created from QGIS project file D:/QGIS/newwr.qgs >>> # Edit this file to customize for your map interface >>> # (Created with PyQgis MapServer Export plugin) >>> MAP >>> NAME newwr.map >>> # Map image size >>> SIZE 600 600 >>> UNITS dd >>> >>> EXTENT 67.440106 17.379867 78.390250 25.122977 >>> FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> >>> # Background color for the map canvas -- change as desired >>> IMAGECOLOR 192 192 192 >>> IMAGEQUALITY 95 >>> IMAGETYPE gif >>> OUTPUTFORMAT >>> NAME gif >>> DRIVER 'GD/GIF' >>> MIMETYPE 'image/gif' >>> #IMAGEMODE PC256 >>> EXTENSION 'gif' >>> END >>> # Legend >>> LEGEND >>> IMAGECOLOR 255 255 255 >>> STATUS ON >>> KEYSIZE 18 12 >>> LABEL >>> TYPE BITMAP >>> SIZE MEDIUM >>> COLOR 0 0 89 >>> END >>> END >>> >>> # Web interface definition. Only the template parameter >>> # is required to display a map. See MapServer documentation >>> WEB >>> # Set IMAGEPATH to the path where MapServer should >>> # write its output. >>> IMAGEPATH '/tmp/' >>> >>> # Set IMAGEURL to the url that points to IMAGEPATH >>> # as defined in your web server configuration >>> IMAGEURL '/tmp/' >>> >>> # WMS server settings >>> METADATA >>> 'wms_title' 'newwr.map' >>> 'wms_onlineresource' >>> 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' >>> 'wms_srs' 'EPSG:4326' >>> END >>> >>> #Scale range at which web interface will operate >>> # Template and header/footer settings >>> # Only the template parameter is required to display a map. See >>> MapServer documentation >>> END >>> >>> LAYER >>> NAME 'STATE' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' >>> LABELITEM 'STATE' >>> CLASSITEM 'STATE' >>> METADATA >>> 'wms_title' 'STATE' >>> END >>> STATUS DEFAULT >>> TRANSPARENCY 100 >>> >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'STATE' >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 255 255 127 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'WaterBody' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' >>> METADATA >>> 'wms_title' 'WaterBody' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'WaterBody' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 150 123 90 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'Rail_Buffer' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' >>> METADATA >>> 'wms_title' 'Rail_Buffer' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Rail_Buffer' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 117 232 255 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'Roads' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' >>> METADATA >>> 'wms_title' 'Roads' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Roads' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 45 220 182 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'Diversions' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' >>> METADATA >>> 'wms_title' 'Diversions' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Diversions' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 144 50 207 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'Rail_Side_Line' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' >>> METADATA >>> 'wms_title' 'Rail_Side_Line' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Rail_Side_Line' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 170 115 90 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic' >>> NAME 'RailwayLine' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' >>> >>> METADATA >>> 'wms_title' 'RailwayLine' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'RailwayLine' >>> >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 255 0 0 >>> COLOR 255 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'LANDMARKS' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' >>> METADATA >>> 'wms_title' 'LANDMARKS' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'LANDMARKS' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 229 210 191 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic' >>> NAME 'RailwayStations' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' >>> CLASSITEM 'S_NAME' >>> LABELITEM 'S_NAME' >>> METADATA >>> 'wms_title' 'RailwayStations' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'RailwayStations' >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 255 0 0 >>> END >>> LABEL >>> COLOR 132 31 31 >>> SHADOWCOLOR 218 218 218 >>> SHADOWSIZE 2 2 >>> TYPE TRUETYPE >>> FONT arial-bold >>> SIZE 12 >>> ANTIALIAS TRUE >>> POSITION CL >>> PARTIALS FALSE >>> MINDISTANCE 300 >>> BUFFER 4 >>> END # end of label >>> >>> END >>> >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'LC_Gate' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' >>> METADATA >>> 'wms_title' 'LC_Gate' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'LC_Gate' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 15 155 200 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'Bridges_Minor' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' >>> METADATA >>> 'wms_title' 'Bridges_Minor' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Bridges_Minor' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 43 253 114 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'Bridge_Major' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' >>> METADATA >>> 'wms_title' 'Bridge_Major' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Bridge_Major' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 97 136 146 >>> END >>> END >>> END >>> >>> #Circle symbol >>> SYMBOL >>> NAME 'CIRCLE' >>> TYPE ellipse >>> FILLED true >>> POINTS >>> 1 1 >>> END >>> END >>> END >>> >>> My Fontset file is fonts.txt and it is located in the same folder as the >>> map >>> file. >>> It contains the following: >>> >>> arial C:/WINDOWS/Fonts/arial.ttf >>> arial-bold C:/WINDOWS/Fonts/arialbd.ttf >>> >>> So where is the problem? >>> Where am I going wrong? >>> >>> Thanks for your reply. >>> >>> sunny. >>> >>> Lars Lingner-2 wrote: >>>> >>>> sunny74 schrieb: >>>>> Hi Michael, >>>>> >>>>> Thanks for your reply. >>>>> I had gone thru' the links you have given before making this post.But I >>>>> am >>>>> having the problems given in the link below: >>>>> >>>>> >>> > http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654 > >>> 455 >>>>> When using truetype I get the error probably bec' I am not able to >>>>> specify >>>>> the fontset file. >>>>> So I need to know the following: >>>>> 1) What kind of file is the fontset file?I think it is a text file >>>> >>>> its just a textfile, yes >>>> >>>>> 2) Where do I keep the fontset file - in the same folder as the map >>>>> file >>>>> or >>>>> in different folder.If different folder how do I specify the path in >>>>> the >>>>> map >>>>> file. >>>> >>>> as you wish. You have to tell MapServer the place with the keywortd >>>> FONTSET. >>>> >>>>> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows >>>>> Font >>>>> Folder i.e C:/Windows/Fonts >>>> >>>> yes, you can keep it there. MapServer needs read permissions to the >>>> fonts. In the fonset file you can define the path. >>>> >>>>> 4)How do I specify the path of the fonts in the fontset file? >>>>> >>>> >>>> /path/to/fonts/font.ttf >>>> >>>> >>>> Please have a look at >>>> >>>> http://mapserver.org/mapfile/map.html >>>> and >>>> http://mapserver.org/mapfile/fontset.html >>>> >>>> >>>> Lars >>>> >>>> >>>> _______________________________________________ >>>> 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 arnd.wippermann at web.de Wed Sep 23 08:48:07 2009 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 23 Sep 2009 17:48:07 +0200 Subject: AW: [mapserver-users] Invalid format for the EXCEPTIONparameter In-Reply-To: <4ABA1949.379F.0037.0@asurequality.com> Message-ID: Hi, in ArcMap 9.3 it's possible to change from default version for the WMS request to other versions. Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Robert Sanson Gesendet: Mittwoch, 23. September 2009 02:49 An: Yewondwossen Assefa Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=G etMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_ homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGC OLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfe at ixsea.com Wed Sep 23 09:05:22 2009 From: bfe at ixsea.com (benjamin ferlicot) Date: Wed, 23 Sep 2009 18:05:22 +0200 Subject: [mapserver-users] Question Regarding layer/Projection Message-ID: <000001ca3c67$a8ca03b0$fa5e0b10$@com> Hi all , Is it possible to have two layer with the same name who have two raster set in two different projection (to avoid mapserver reprojection) ? I have one utm sonar raster layer who work well with most of gis, but when requested by Worldwind (WGS84 ), the picture quality is poor some I would like to make the projection with gdal . Thank for reading Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From sb.ray at hotmail.com Wed Sep 23 11:13:05 2009 From: sb.ray at hotmail.com (sunny74) Date: Wed, 23 Sep 2009 11:13:05 -0700 (PDT) Subject: [mapserver-users] SV: display feature name beside feature In-Reply-To: <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931E@enerasrv01.Enera.local> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> <4AB75D8A.5157.008F.0@dnr.state.mn.us> <1253681869217-3697539.post@n2.nabble.com> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931E@enerasrv01.Enera.local> Message-ID: <1253729585271-3701418.post@n2.nabble.com> Hi Lars,Steve Thanks for your suggestions. I am now able to see the Label but not not at the base scale at which the page loads for the first time. I am able to see a few at the next zoomin level, followed by next set of labels at a still higher zoomin level and so on. What are the label attributes that make this happen? What shud I do if I need to see all of the Labels at at single scale i.e zoomin level. Thanks a lot for your support. Lars Westerlind wrote: > > Try removing "CLASSITEM" from the layer with the label. As you have no > expression, I think the class does not match. I also expect a warning for > this in the log file. > > /Lars > > -----Ursprungligt meddelande----- > Fr?n: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] F?r sunny74 > Skickat: 23 September 2009 06:58 > Till: mapserver-users at lists.osgeo.org > ?mne: Re: [mapserver-users] display feature name beside feature > > > Hi Steve, > > Thanks for your reply. > Regarding the railway points I was able to see the points before doing all > this. > I did all this just to see the Labels i.e names of the railway stations > beside the points > But I am not able to see this. > Can u tell me where the problem is? > > What am I doing wrong? > > Thanks again. > > Steve Lime wrote: >> >> And you can see the railway points? >> >>>>> On 9/21/2009 at 7:34 AM, in message >>>>> <1253536453758-3684929.post at n2.nabble.com>, >> sunny74 wrote: >> >>> Hi Lars, >>> >>> I have added the fontset file and also the Label and other definitions >>> at >>> the appropriate places but still the Labels are not being displayed for >>> the >>> layer RailwayStation. >>> >>> My map file now looks like this: >>> >>> # Map file created from QGIS project file D:/QGIS/newwr.qgs >>> # Edit this file to customize for your map interface >>> # (Created with PyQgis MapServer Export plugin) >>> MAP >>> NAME newwr.map >>> # Map image size >>> SIZE 600 600 >>> UNITS dd >>> >>> EXTENT 67.440106 17.379867 78.390250 25.122977 >>> FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> >>> # Background color for the map canvas -- change as desired >>> IMAGECOLOR 192 192 192 >>> IMAGEQUALITY 95 >>> IMAGETYPE gif >>> OUTPUTFORMAT >>> NAME gif >>> DRIVER 'GD/GIF' >>> MIMETYPE 'image/gif' >>> #IMAGEMODE PC256 >>> EXTENSION 'gif' >>> END >>> # Legend >>> LEGEND >>> IMAGECOLOR 255 255 255 >>> STATUS ON >>> KEYSIZE 18 12 >>> LABEL >>> TYPE BITMAP >>> SIZE MEDIUM >>> COLOR 0 0 89 >>> END >>> END >>> >>> # Web interface definition. Only the template parameter >>> # is required to display a map. See MapServer documentation >>> WEB >>> # Set IMAGEPATH to the path where MapServer should >>> # write its output. >>> IMAGEPATH '/tmp/' >>> >>> # Set IMAGEURL to the url that points to IMAGEPATH >>> # as defined in your web server configuration >>> IMAGEURL '/tmp/' >>> >>> # WMS server settings >>> METADATA >>> 'wms_title' 'newwr.map' >>> 'wms_onlineresource' >>> 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' >>> 'wms_srs' 'EPSG:4326' >>> END >>> >>> #Scale range at which web interface will operate >>> # Template and header/footer settings >>> # Only the template parameter is required to display a map. See >>> MapServer documentation >>> END >>> >>> LAYER >>> NAME 'STATE' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' >>> LABELITEM 'STATE' >>> CLASSITEM 'STATE' >>> METADATA >>> 'wms_title' 'STATE' >>> END >>> STATUS DEFAULT >>> TRANSPARENCY 100 >>> >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'STATE' >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 255 255 127 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'WaterBody' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' >>> METADATA >>> 'wms_title' 'WaterBody' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'WaterBody' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 150 123 90 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'Rail_Buffer' >>> TYPE POLYGON >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' >>> METADATA >>> 'wms_title' 'Rail_Buffer' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Rail_Buffer' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 117 232 255 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic1' >>> NAME 'Roads' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' >>> METADATA >>> 'wms_title' 'Roads' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Roads' >>> MAXSCALEDENOM 2000000 >>> MINSCALEDENOM 1500000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 45 220 182 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'Diversions' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' >>> METADATA >>> 'wms_title' 'Diversions' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Diversions' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 144 50 207 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'Rail_Side_Line' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Side_Line.shp' >>> METADATA >>> 'wms_title' 'Rail_Side_Line' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Rail_Side_Line' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 170 115 90 >>> COLOR 0 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic' >>> NAME 'RailwayLine' >>> TYPE LINE >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayLine.shp' >>> >>> METADATA >>> 'wms_title' 'RailwayLine' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'RailwayLine' >>> >>> >>> STYLE >>> SYMBOL 0 >>> SIZE 2 >>> OUTLINECOLOR 255 0 0 >>> COLOR 255 0 0 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic2' >>> NAME 'LANDMARKS' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LANDMARKS.shp' >>> METADATA >>> 'wms_title' 'LANDMARKS' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'LANDMARKS' >>> MAXSCALEDENOM 1500000 >>> MINSCALEDENOM 1000000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 229 210 191 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic' >>> NAME 'RailwayStations' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\RailwayStations.shp' >>> CLASSITEM 'S_NAME' >>> LABELITEM 'S_NAME' >>> METADATA >>> 'wms_title' 'RailwayStations' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'RailwayStations' >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 255 0 0 >>> END >>> LABEL >>> COLOR 132 31 31 >>> SHADOWCOLOR 218 218 218 >>> SHADOWSIZE 2 2 >>> TYPE TRUETYPE >>> FONT arial-bold >>> SIZE 12 >>> ANTIALIAS TRUE >>> POSITION CL >>> PARTIALS FALSE >>> MINDISTANCE 300 >>> BUFFER 4 >>> END # end of label >>> >>> END >>> >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'LC_Gate' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\LC_Gate.shp' >>> METADATA >>> 'wms_title' 'LC_Gate' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'LC_Gate' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 8 >>> OUTLINECOLOR 0 0 0 >>> COLOR 15 155 200 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'Bridges_Minor' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridges_Minor.shp' >>> METADATA >>> 'wms_title' 'Bridges_Minor' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Bridges_Minor' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 43 253 114 >>> END >>> END >>> END >>> >>> LAYER >>> GROUP 'basic3' >>> NAME 'Bridge_Major' >>> TYPE POINT >>> DATA 'C:\ms4w\Apache\cgi-bin\Shape\Bridge_Major.shp' >>> METADATA >>> 'wms_title' 'Bridge_Major' >>> END >>> STATUS OFF >>> TRANSPARENCY 100 >>> PROJECTION >>> 'proj=longlat' >>> 'ellps=WGS84' >>> 'datum=WGS84' >>> 'no_defs' >>> '' >>> END >>> CLASS >>> NAME 'Bridge_Major' >>> MAXSCALEDENOM 1000000 >>> MINSCALEDENOM 500000 >>> >>> STYLE >>> SYMBOL 'CIRCLE' >>> SIZE 2 >>> OUTLINECOLOR 0 0 0 >>> COLOR 97 136 146 >>> END >>> END >>> END >>> >>> #Circle symbol >>> SYMBOL >>> NAME 'CIRCLE' >>> TYPE ellipse >>> FILLED true >>> POINTS >>> 1 1 >>> END >>> END >>> END >>> >>> My Fontset file is fonts.txt and it is located in the same folder as the >>> map >>> file. >>> It contains the following: >>> >>> arial C:/WINDOWS/Fonts/arial.ttf >>> arial-bold C:/WINDOWS/Fonts/arialbd.ttf >>> >>> So where is the problem? >>> Where am I going wrong? >>> >>> Thanks for your reply. >>> >>> sunny. >>> >>> Lars Lingner-2 wrote: >>>> >>>> sunny74 schrieb: >>>>> Hi Michael, >>>>> >>>>> Thanks for your reply. >>>>> I had gone thru' the links you have given before making this post.But >>>>> I >>>>> am >>>>> having the problems given in the link below: >>>>> >>>>> >>> http://n2.nabble.com/font-error-while-trying-to-show-Label-on-map-td3654455.html#a3654 >>> 455 >>>>> When using truetype I get the error probably bec' I am not able to >>>>> specify >>>>> the fontset file. >>>>> So I need to know the following: >>>>> 1) What kind of file is the fontset file?I think it is a text file >>>> >>>> its just a textfile, yes >>>> >>>>> 2) Where do I keep the fontset file - in the same folder as the map >>>>> file >>>>> or >>>>> in different folder.If different folder how do I specify the path in >>>>> the >>>>> map >>>>> file. >>>> >>>> as you wish. You have to tell MapServer the place with the keywortd >>>> FONTSET. >>>> >>>>> 3) Where do I keep the fonts? Is it okay if I keep it in the Windows >>>>> Font >>>>> Folder i.e C:/Windows/Fonts >>>> >>>> yes, you can keep it there. MapServer needs read permissions to the >>>> fonts. In the fonset file you can define the path. >>>> >>>>> 4)How do I specify the path of the fonts in the fontset file? >>>>> >>>> >>>> /path/to/fonts/font.ttf >>>> >>>> >>>> Please have a look at >>>> >>>> http://mapserver.org/mapfile/map.html >>>> and >>>> http://mapserver.org/mapfile/fontset.html >>>> >>>> >>>> Lars >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3697539.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3701418.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mpg70221725 at yahoo.com.ar Wed Sep 23 11:28:07 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Wed, 23 Sep 2009 11:28:07 -0700 (PDT) Subject: [mapserver-users] Install FGS in Linux? Message-ID: <459786.35486.qm@web33904.mail.mud.yahoo.com> need help for FGS intall on my operating system Linux Fedora 11, already try installing the binary mapserver_basic_5.4.2-fgs-fgs_9.5 - linux-i386.bin already downloaded, but gives me an error at the end with the php module, and not how to install it without errors. please help. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From mpg70221725 at yahoo.com.ar Wed Sep 23 11:28:07 2009 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Wed, 23 Sep 2009 11:28:07 -0700 (PDT) Subject: [mapserver-users] Install FGS in Linux? Message-ID: <459786.35486.qm@web33904.mail.mud.yahoo.com> need help for FGS intall on my operating system Linux Fedora 11, already try installing the binary mapserver_basic_5.4.2-fgs-fgs_9.5 - linux-i386.bin already downloaded, but gives me an error at the end with the php module, and not how to install it without errors. please help. Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ From vsaraf.gmu at gmail.com Wed Sep 23 13:24:38 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Wed, 23 Sep 2009 16:24:38 -0400 Subject: [mapserver-users] Maps based on external data Message-ID: <6db14d250909231324i7aa81a96t5f37195e14dd46b8@mail.gmail.com> Hi, I am using mapserver to generate map overlays for google (using tiles). I was wondering if there is a way in which I can color code the map based on external data (data not available in the dbf file). I was able to join the external data and display to the user when a click event happened but could not figure out a way in which mapserver can color code using expressions and classes. Is the only way to this is combining the external data with the existing dbf file? Thanks, Varun From mads.helgi at gmail.com Wed Sep 23 13:31:20 2009 From: mads.helgi at gmail.com (Mads Helgi Poulsen) Date: Wed, 23 Sep 2009 21:31:20 +0100 Subject: [mapserver-users] SV: display feature name beside feature In-Reply-To: <1253729585271-3701418.post@n2.nabble.com> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> <4AB75D8A.5157.008F.0@dnr.state.mn.us> <1253681869217-3697539.post@n2.nabble.com> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931E@enerasrv01.Enera.local> <1253729585271-3701418.post@n2.nabble.com> Message-ID: <3b603a170909231331g7a0453d7lfb5b948880438ff9@mail.gmail.com> Read this: http://mapserver.org/mapfile/label.html and note the FORCE parameter. On Wed, Sep 23, 2009 at 7:13 PM, sunny74 wrote: > > What are the label attributes that make this happen? > What shud I do if I need to see all of the Labels at at single scale i.e > zoomin level. > > Thanks a lot for your support. > > > -- Mads Helgi -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Wed Sep 23 13:43:32 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 24 Sep 2009 08:43:32 +1200 Subject: AW: [mapserver-users] Invalid format for the EXCEPTIONparameter In-Reply-To: References: <4ABA1949.379F.0037.0@asurequality.com> Message-ID: <4ABB3133.379F.0037.0@asurequality.com> Hi Arnd How do you change it? Many thanks, Robert Sanson >>> "Arnd Wippermann" 24/09/2009 3:48 a.m. >>> Hi, in ArcMap 9.3 it's possible to change from default version for the WMS request to other versions. Arnd Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Robert Sanson Gesendet: Mittwoch, 23. September 2009 02:49 An: Yewondwossen Assefa Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/aXvuw3mCkbbTndxI!oX7Uh+06udK7PYKdhjz!5vazOZsY5l0AnZ7y4pZgJsHF+7Wxz4XShocZX0AI1jSF4rfTg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Wed Sep 23 13:56:34 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 24 Sep 2009 08:56:34 +1200 Subject: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter In-Reply-To: <4ABB3133.379F.0037.0@asurequality.com> References: <4ABA1949.379F.0037.0@asurequality.com> <4ABB3133.379F.0037.0@asurequality.com> Message-ID: <4ABB3441.379F.0037.0@asurequality.com> Hi Arnd and list Here is a response from an ESRI agent in New Zealand: "The issue you are reporting has been logged as a bug. #NIM045493 ArcMap GETREQUEST is not compliant with the 1.3.0 version of the WMS standard. We have added this incident to the bug and you will be the 5th user tied to it. The bug has been assigned to an ESRI Developer to be worked on but a timeframe for a fix has not yet been specified. There is no workaround listed for the bug at this time. We apologize for any inconvenience this has caused and we hope to have this fixed in a future release." regards, Robert >>> "Arnd Wippermann" 24/09/2009 3:48 a.m. >>> Hi, in ArcMap 9.3 it's possible to change from default version for the WMS request to other versions. Arnd Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Robert Sanson Gesendet: Mittwoch, 23. September 2009 02:49 An: Yewondwossen Assefa Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Sep 23 14:02:54 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 Sep 2009 18:02:54 -0300 Subject: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter In-Reply-To: <4ABB3441.379F.0037.0@asurequality.com> References: <4ABA1949.379F.0037.0@asurequality.com> <4ABB3133.379F.0037.0@asurequality.com> <4ABB3441.379F.0037.0@asurequality.com> Message-ID: <4ABA8CFE.8090902@gatewaygeomatics.com> Robert Sanson wrote: > Hi Arnd and list > > Here is a response from an ESRI agent in New Zealand: > > "The issue you are reporting has been logged as a bug. #NIM045493 > ArcMap GETREQUEST is not compliant with the 1.3.0 version of the WMS > standard. We have added this incident to the bug and you will be the 5th > user tied to it. > > The bug has been assigned to an ESRI Developer to be worked on but a > timeframe for a fix has not yet been specified. There is no workaround > listed for the bug at this time. We apologize for any inconvenience > this has caused and we hope to have this fixed in a future release." > > regards, > > Robert I'm copy/pasting this text so I can reuse it...it's so well worded :) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From yassefa at dmsolutions.ca Wed Sep 23 14:19:20 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 23 Sep 2009 17:19:20 -0400 Subject: [mapserver-users] Maps based on external data In-Reply-To: <6db14d250909231324i7aa81a96t5f37195e14dd46b8@mail.gmail.com> References: <6db14d250909231324i7aa81a96t5f37195e14dd46b8@mail.gmail.com> Message-ID: <4ABA90D8.6090607@dmsolutions.ca> Hi There, maybe using OGR join to achieve that could be a solution. Check the following post: http://lists.osgeo.org/pipermail/mapserver-users/2004-November/002149.html On a MapServer layer you can do something like: LAYER CONNECTIONTYPE OGR CONNECTION "/test/my_shape_file.shp" DATA "SELECT ..." ... END regards, Varun saraf wrote: > Hi, > > I am using mapserver to generate map overlays for google (using > tiles). I was wondering if there is a way in which I can color code > the map based on external data (data not available in the dbf file). I > was able to join the external data and display to the user when a > click event happened but could not figure out a way in which mapserver > can color code using expressions and classes. Is the only way to this > is combining the external data with the existing dbf file? > > Thanks, > Varun > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Bob.Basques at ci.stpaul.mn.us Wed Sep 23 14:21:45 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 23 Sep 2009 16:21:45 -0500 Subject: [mapserver-users] Mapserver error debugging Message-ID: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> All, So I'm trying to run MapServer from a thumb Drive, first off, is this possible? I'm on Windows XP, and get what looks like a Browser error: The image "" cannot be displayed, because it contains errors. I'm using the MS4W Mapserv Binary ( should I try another, if so which?), are there things I should look for related to MS4W? How do I go about trying to debug the problem? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Part.002 Type: application/octet-stream Size: 163 bytes Desc: not available URL: From arnd.wippermann at web.de Wed Sep 23 14:34:30 2009 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 23 Sep 2009 23:34:30 +0200 Subject: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter In-Reply-To: <4ABB3133.379F.0037.0@asurequality.com> Message-ID: Hi Robert, I'm using ArcMap 9.3 and the add WMS server dialog has a dropdown list for selecting a version (see attached image). Arnd _____ Von: Robert Sanson [mailto:SansonR at asurequality.com] Gesendet: Mittwoch, 23. September 2009 22:44 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter Hi Arnd How do you change it? Many thanks, Robert Sanson >>> "Arnd Wippermann" 24/09/2009 3:48 a.m. >>> Hi, in ArcMap 9.3 it's possible to change from default version for the WMS request to other versions. Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Robert Sanson Gesendet: Mittwoch, 23. September 2009 02:49 An: Yewondwossen Assefa Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=G etMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_ homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGC OLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: addWMSServer.png Type: image/png Size: 10628 bytes Desc: not available URL: From SansonR at asurequality.com Wed Sep 23 15:00:59 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 24 Sep 2009 10:00:59 +1200 Subject: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter In-Reply-To: References: <4ABB3133.379F.0037.0@asurequality.com> Message-ID: <4ABB435A.379F.0037.0@asurequality.com> Hi Arnd Thanks for that. I tried with v 1.1.1 at it works against my Mapserver 5.4.2 installation. That option does not appear to be present in ArcCatalog though. Regards, Robert >>> "Arnd Wippermann" 24/09/2009 9:34 a.m. >>> Hi Robert, I'm using ArcMap 9.3 and the add WMS server dialog has a dropdown list for selecting a version (see attached image). Arnd Von: Robert Sanson [mailto:SansonR at asurequality.com] Gesendet: Mittwoch, 23. September 2009 22:44 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter Hi Arnd How do you change it? Many thanks, Robert Sanson >>> "Arnd Wippermann" 24/09/2009 3:48 a.m. >>> Hi, in ArcMap 9.3 it's possible to change from default version for the WMS request to other versions. Arnd Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Robert Sanson Gesendet: Mittwoch, 23. September 2009 02:49 An: Yewondwossen Assefa Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter Hi Assefa Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only offer WMS version 1.1.1? Thanks, Robert >>> Yewondwossen Assefa 23/09/2009 12:48 p.m. >>> Hi There, Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. application/vnd.ogc.se_XML was used for previous versions. Do you have any control on this parameter from ArcMap/ArcCatalog ? regards Robert Sanson wrote: > I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. > OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is > giving me an Error message: > > WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid format for the EXCEPTION parameter. > -Service Error Code:InvalidFormat > > Looking in the Apache access.log file I see: > > "GET > /cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.map&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:2193&BBOX=773500,4615000,2602100,5973130.71761735 > &WIDTH=82&HEIGHT=111&LAYERS=crs_roads,crs_address,centroids,main_gates,main_homesteads,stockyards,dairysheds,synlait,apiaries,copyright > &STYLES=,,,,,,,,,&EXCEPTIONS=application/vnd.ogc.se_XML&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" > > In my various layer Metadata I have the following: > > METADATA > "ows_title" "apiaries" > "ows_abstract" "These are the registered apiaries from the Apiary DB" > "wms_srs" "EPSG:2193" > "wms_opaque" "0" > "wms_group_title" "API" > "wms_group_abstract" "Apiaries" > "ows_extent" "773500 4615000 2602100 6324500" > "wms_dataurl_format" "text/html" > "gml_include_items" "all" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > END > > Many thanks, > > Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Sep 24 06:41:26 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 24 Sep 2009 08:41:26 -0500 Subject: [mapserver-users] Mapserver error debugging In-Reply-To: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> References: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA862@s-sp22.pca.state.mn.us> Bob, A couple of years ago, I had FWTools, including MapServer running on a USB stick. You might want to take a look at Jo Cook's Portable GIS: http://www.archaeogeek.com/blog/portable-gis/ David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Wednesday, September 23, 2009 4:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver error debugging All, So I'm trying to run MapServer from a thumb Drive, first off, is this possible? I'm on Windows XP, and get what looks like a Browser error: The image "" cannot be displayed, because it contains errors. I'm using the MS4W Mapserv Binary ( should I try another, if so which?), are there things I should look for related to MS4W? How do I go about trying to debug the problem? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Sep 24 06:51:22 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 24 Sep 2009 10:51:22 -0300 Subject: [mapserver-users] Mapserver error debugging In-Reply-To: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> References: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4ABB795A.60500@gatewaygeomatics.com> Bob Basques wrote: > > > All, > > > So I'm trying to run MapServer from a thumb Drive, first off, is this > possible? > > > I'm on Windows XP, and get what looks like a Browser error: > > > > The image "" cannot be displayed, because it > contains errors. > > > I'm using the MS4W Mapserv Binary ( should I try another, if so which?), > are there things I should look for related to MS4W? > > > > How do I go about trying to debug the problem? > Hi Bob, If you're looking for help with MS4W, please send a message to the MS4W-users mailing list so everyone can follow along (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Bob.Basques at ci.stpaul.mn.us Thu Sep 24 07:08:46 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 24 Sep 2009 09:08:46 -0500 Subject: [mapserver-users] Mapserver error debugging In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA862@s-sp22.pca.state.mn.us> References: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5056DA862@s-sp22.pca.state.mn.us> Message-ID: <4ABB371E.163B.00A8.0@ci.stpaul.mn.us> David, I'm getting FF browser error right now about the MapServer CGI generated image being bad . . . . The image "" cannot be displayed, because it contains errors. All the google results talk about a SKYPE extention that causes this, but I don't have SKYPE installed on the machine at all. Still pondering . . . It looks like MapServer is sending the right headers and such for the Image types, I've tried both GIF and PNG, and the headers are reporting correctly. . . . bobb >>> "Fawcett, David" wrote: Bob, A couple of years ago, I had FWTools, including MapServer running on a USB stick. You might want to take a look at Jo Cook?s Portable GIS: http://www.archaeogeek.com/blog/portable-gis/ David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Wednesday, September 23, 2009 4:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver error debugging All, So I'm trying to run MapServer from a thumb Drive, first off, is this possible? I'm on Windows XP, and get what looks like a Browser error: The image "" cannot be displayed, because it contains errors. I'm using the MS4W Mapserv Binary ( should I try another, if so which?), are there things I should look for related to MS4W? How do I go about trying to debug the problem? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at fuchsschwanzdomain.de Thu Sep 24 06:54:01 2009 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Thu, 24 Sep 2009 13:54:01 +0000 (UTC) Subject: [mapserver-users] Does tilemode actually work? Message-ID: Starting from a mapserver setup which works fine in WMS Mode I tried to access the same machine with mode=tile. Unfortunately it looks like something is wrong with the zoom factor. Position seems to be fairly correct however: Just compare the following URLs: http://a.tile.openstreetmap.org/14/8574/5625.png http://geo.gegg.us/lv-bw.cgi?LAYERS=DVDOP2&mode=tile&tilemode=gmap&tile=8574+5625+14 The first URL is from the Openstreetmap Tileserver, the second is just the image of a public WMS-Server reprojected from GK2 (epsg:31467). Mapfile looks like this: --cut-- MAP NAME lv-bw STATUS ON UNITS METERS WEB METADATA "wms_title" "Svens lv-bw Proxyserver" "wms_onlineresource" "http://geo.gegg.us/lv-bw.cgi?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:31467" END EXTENT 3340000 5230000 3615000 5550000 WEB IMAGEPATH "/tmp/" END LAYER NAME "DVDOP2" METADATA "wms_title" "lv-bw.de Data" ##required END TYPE RASTER STATUS ON CONNECTION "http://www.lv-bw.de/rdsaccess/default.aspx?ServiceName=geodata31467&reaspect=false&" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:31467" "wms_server_version" "1.1.1" "wms_name" "DOP2" # Non Standard :( "wms_format" "png" END END END --cut-- The mapserver Version in use is 5.4.2 from Debian GNU/Linux: $ /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Regards Sven -- "Whenever there is a conflict between human rights and property rights, human rights must prevail." (Abraham Lincoln) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From aboudreault at mapgears.com Thu Sep 24 07:38:04 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 24 Sep 2009 10:38:04 -0400 Subject: [mapserver-users] Mapserver error debugging In-Reply-To: <4ABB371E.163B.00A8.0@ci.stpaul.mn.us> References: <4ABA4B19.163B.00A8.0@ci.stpaul.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5056DA862@s-sp22.pca.state.mn.us> <4ABB371E.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <200909241038.04448.aboudreault@mapgears.com> It is possible that FF was unable to display that image because it is too big for it. Try to download the image with a tool like "wget" and open the image with a image viewer and see if the image is correct or not. Alan On September 24, 2009 10:08:46 am Bob Basques wrote: > David, > > I'm getting FF browser error right now about the MapServer CGI > generated image being bad . . . . > > The image "" cannot be displayed, because it > contains errors. > > All the google results talk about a SKYPE extention that causes this, > but I don't have SKYPE installed on the machine at all. > > Still pondering . . . > > It looks like MapServer is sending the right headers and such for the > Image types, I've tried both GIF and PNG, and the headers are reporting > correctly. > > . . . > > bobb > > >>> "Fawcett, David" wrote: > > Bob, > > > A couple of years ago, I had FWTools, including MapServer running on a > USB stick. > > > You might want to take a look at Jo Cook?s Portable GIS: > http://www.archaeogeek.com/blog/portable-gis/ > > > David. > > > > > > From: > > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob > Basques > Sent: Wednesday, September 23, 2009 4:22 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver error debugging > > > > All, > > > > > So I'm trying to run MapServer from a thumb Drive, first off, is this > possible? > > > > > I'm on Windows XP, and get what looks like a Browser error: > > > > > The image "" cannot be displayed, because it > contains errors. > > > > > I'm using the MS4W Mapserv Binary ( should I try another, if so which?), > are there things I should look for related to MS4W? > > > > > How do I go about trying to debug the problem? > > > > > Thanks > > > > > bobb > -- Alan Boudreault Mapgears http://www.mapgears.com From pramsey at cleverelephant.ca Thu Sep 24 08:20:26 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 24 Sep 2009 08:20:26 -0700 Subject: [mapserver-users] Does tilemode actually work? In-Reply-To: References: Message-ID: <30fe546d0909240820ye278757r16555639b6fa8c59@mail.gmail.com> It actually worked when I tested against gmaps and virtual earth some moons ago. It's possible what osm means by '14' and what the others mean by '14' is different. You can different numbers depending on whether you start counting from zero and whether your top zoom level is one tile or four. P On Thu, Sep 24, 2009 at 6:54 AM, Sven Geggus wrote: > Starting from a mapserver setup which works fine in WMS Mode I tried to > access the same machine with mode=tile. > > Unfortunately it looks like something is wrong with the zoom factor. > Position seems to be fairly correct however: > > Just compare the following URLs: > > http://a.tile.openstreetmap.org/14/8574/5625.png > http://geo.gegg.us/lv-bw.cgi?LAYERS=DVDOP2&mode=tile&tilemode=gmap&tile=8574+5625+14 > > The first URL is from the Openstreetmap Tileserver, the second is just the > image of a public WMS-Server reprojected from GK2 (epsg:31467). > > Mapfile looks like this: > > --cut-- > MAP > ? ?NAME lv-bw > ? ?STATUS ON > ? ?UNITS METERS > ? ?WEB > ? ? ? ?METADATA > ? ? ? ? ? "wms_title" ? ? "Svens lv-bw Proxyserver" > ? ? ? ? ? "wms_onlineresource" "http://geo.gegg.us/lv-bw.cgi?" > ? ? ? ? ? "wms_srs" ? ? ? "EPSG:4326" > ? ? ? ?END > ? ?END > ? ?PROJECTION "init=epsg:31467" END > ? ?EXTENT 3340000 5230000 3615000 5550000 > ? ?WEB > ? ? ?IMAGEPATH "/tmp/" > ? ?END > ? ?LAYER > ? ? ? ?NAME "DVDOP2" > ? ? ? ?METADATA > ? ? ? ? ? "wms_title" ? ?"lv-bw.de Data" ?##required > ? ? ? ?END > ? ? ? ?TYPE RASTER > ? ? ? ?STATUS ON > ? ? ? ?CONNECTION "http://www.lv-bw.de/rdsaccess/default.aspx?ServiceName=geodata31467&reaspect=false&" > ? ? ? ?CONNECTIONTYPE WMS > ? ? ? ?METADATA > ? ? ? ? ? "wms_srs" "EPSG:31467" > ? ? ? ? ? "wms_server_version" "1.1.1" > ? ? ? ? ? "wms_name" "DOP2" > ? ? ? ? ? ?# Non Standard :( > ? ? ? ? ? "wms_format" "png" > ? ? ? ?END > ? ?END > END > --cut-- > > The mapserver Version in use is 5.4.2 from Debian GNU/Linux: > > $ /usr/lib/cgi-bin/mapserv -v > MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > Regards > > Sven > > -- > "Whenever there is a conflict between human rights and property > rights, human rights must prevail." (Abraham Lincoln) > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu Sep 24 11:04:13 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 24 Sep 2009 15:04:13 -0300 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.6.0-beta1 today... In-Reply-To: <4ABB6D01.5157.008F.0@dnr.state.mn.us> References: <4ABA1349.5010208@mapgears.com> <4ABAD7B3.8000104@mapgears.com> <4ABB4617.5157.008F.0@dnr.state.mn.us> <200909241202.55774.aboudreault@mapgears.com> <4ABBB285.3090900@mapgears.com> <4ABB6D01.5157.008F.0@dnr.state.mn.us> Message-ID: <4ABBB49D.9090507@gatewaygeomatics.com> I'll package this beta for MS4W 3.0 users. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From lists at fuchsschwanzdomain.de Thu Sep 24 11:34:23 2009 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Thu, 24 Sep 2009 18:34:23 +0000 (UTC) Subject: [mapserver-users] Does tilemode actually work? References: <30fe546d0909240820ye278757r16555639b6fa8c59@mail.gmail.com> Message-ID: Paul Ramsey wrote: > It actually worked when I tested against gmaps and virtual earth some > moons ago. It's possible what osm means by '14' and what the others > mean by '14' is different. You can different numbers depending on > whether you start counting from zero and whether your top zoom level > is one tile or four. Openstreetmap tiles are fully compatible with Google tiles: http://a.tile.openstreetmap.org/14/8574/5625.png http://mt3.google.com/vt/lyrs=m at 107&hl=de&src=api&x=8574&y=5625&z=14 Sven -- "Thinking of using NT for your critical apps? Isn't there enough suffering in the world?" (Advertisement of Sun Microsystems in Wall Street Journal) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From James.Card at calcad.com Thu Sep 24 16:51:02 2009 From: James.Card at calcad.com (James Card) Date: Thu, 24 Sep 2009 16:51:02 -0700 Subject: [mapserver-users] Is It Possible To Draw The Map Without Reading Joined Tables? Message-ID: We have a map that includes four layers that have OGR joins to database tables. The joined tables are used only for queries, not for theming or labeling the layers. When we compare performance of those same layers without the database joins we discover that maps are drawn in 1/3 - 1/5 of the time that's required for the joined layers. Is it possible to force MapServer to draw layers without reading the joined tables, but still have the tabular data available for queries? -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX From dmorissette at mapgears.com Thu Sep 24 18:03:58 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Sep 2009 21:03:58 -0400 Subject: [mapserver-users] MapServer 5.6.0-beta1 release Message-ID: <4ABC16FE.7050107@mapgears.com> The MapServer Team is pleased to announce the release of the first beta for the 5.6.0 release. We have decided to delay the 6.0 release a bit to leave some time to stabilize the rendering enhancements that are planned for 6.0, and to have a 5.6.0 release this fall which contains a few new features and performance enhancements. Here is a quick summary: New features in 5.6: * MS RFC 51: XML Mapfile schema and XSLT (see http://trac.osgeo.org/mapserver/wiki/XMLMapfiles) * MS RFC 52: One-pass query processing, making WFS queries on database backends much much faster * MS RFC 55: Improve control of output resolution, allows printing maps at printer resolution using a mapfile defined for screen resolution * MS RFC 57: Labeling enhancements: ability to repeat labels along a line/multiline (RFCs are available online at http://mapserver.org/development/rfc/) Preview features that will be fully functional only in 6.0: * MS RFC 50: OpenGL Rendering Support * MS RFC 54: Rendering Interface API Other notable enhancements include: * Security fixes (also backported to 5.4): * Improved security relative to untrusted directories and mapfiles (RFC 56) * Fixed several security issues found in an audit of the CGI application (#2939, #2941, #2942, #2943, #2944) * Performance optimizations: * Load all GDAL image bands in one pass for faster processing (r9260) * Optimized access to very large shapefiles (#2930) * Several enhancements/fixes to OGC Web Services specs support * Several enhancements/fixes to all flavors of MapScript As usual there an a large number of additional small enhancements and bug fixes. For a complete list is the HISTORY.TXT file at: http://svn.osgeo.org/mapserver/tags/rel-5-6-0-beta1/mapserver/HISTORY.TXT We have started working in a 5.4 -> 5.6 migration guide. It will become part of the official documentation soon, but in the meantime you can view some draft content online at: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT The release can be downloaded at: http://mapserver.org/download.html OR http://download.osgeo.org/mapserver/mapserver-5.6.0-beta1.tar.gz This is the first of three planned beta releases and if all goes well a final release should occur on October 24th, the day of the FOSS4G Code Sprint in Sydney. The full release plan can be viewed at: http://trac.osgeo.org/mapserver/wiki/56ReleasePlan We need your help to ensure a high quality product so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From richard.greenwood at gmail.com Thu Sep 24 19:17:41 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 24 Sep 2009 20:17:41 -0600 Subject: [mapserver-users] Is It Possible To Draw The Map Without Reading Joined Tables? In-Reply-To: References: Message-ID: On Thu, Sep 24, 2009 at 5:51 PM, James Card wrote: > We have a map that includes four layers that have OGR joins to database > tables. The joined tables are used only for queries, not for theming or > labeling the layers. When we compare performance of those same layers > without the database joins we discover that maps are drawn in 1/3 - 1/5 of > the time that's required for the joined layers. > > Is it possible to force MapServer to draw layers without reading the joined > tables, but still have the tabular data available for queries? Sure. Two approaches come to mind: 1. Define the layer twice, once without the join for spatial rendering, and then again with a different name, including the joins, for attribute queries. 2. Use 2 different map files. One for rendering, one for queries. I'd recommend the second approach because it gives you some nice flexibility, especailly with HEADER and FOOTER templates. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From pbarnhart at gis-services.com Thu Sep 24 21:04:27 2009 From: pbarnhart at gis-services.com (PatB) Date: Thu, 24 Sep 2009 21:04:27 -0700 (PDT) Subject: [mapserver-users] Scale Bar Size Issue Message-ID: <1253851467382-3710334.post@n2.nabble.com> Hi, I'm using the code below to request a scalebar from mapserver. My understanding of the documentation is that the size parameter sets the size of the scalebar itself not including the text, border, etc but that's not what I'm getting back. The url below returns an image that is 600 x 153 (I'm requesting 600 x 75) when it should be more like 750 x 153 to account for the surrounding stuff. The height works as expected and the units/distances look right, the width of the scalebar itself is the issue. This is for a print app, the output res is 300dpi so by setting the width to 600 I was hoping to print a 2 inch wide scale bar with four 1/2" intervals. This seems like it would be a common task but I've been digging though the forum for hours without success. A little help? I'm using MS version 5.4.2 mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+intervals+4+label+size+40+end and my map file goes something like: MAP ... UNITS meters ... SCALEBAR STYLE 0 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT "tahoma" SIZE 40 COLOR 0 114 255 END SIZE 600 75 COLOR 235 235 235 BACKGROUNDCOLOR 0 114 255 OUTLINECOLOR 0 0 0 UNITS meters INTERVALS 4 STATUS on TRANSPARENT on END ... Thanks - and yes, the map size is friggin huge. -- View this message in context: http://n2.nabble.com/Scale-Bar-Size-Issue-tp3710334p3710334.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Fri Sep 25 06:57:13 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 25 Sep 2009 09:57:13 -0400 Subject: [mapserver-users] Re: [OSGeo-Discuss] MapServer dynamic thematic map In-Reply-To: References: Message-ID: <4ABCCC39.5030200@swoodbridge.com> jxRui, You should ask this question on the Mapserver Users List mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users You are more likely to get a response to this Mapserver specific question on that list. I have added it to the reply. -Steve W ??? wrote: > Folks, > I know that MapServer can draw dynamic thematic map(choropleth map) via > cgi. I'd like to develope MapServer app via PHP MapScript to realize > the dynamic thematic map. But i find that the PHP MapScript interface > cannot do this. > For instance, i have only one polygon layer about U.S states,and this > layer has 50 fields in the dbf or in MySQL,the most important thing is > that these attributes values varying everyday. When the user select one > of the fields from the droplist component of the MapServer web app in > Firefox or ie > explorer,then the dynamic thematic map wil be drawn automaticly with the > selected fields. > What can i do this via PHP MapScript ? I need your help. Thank a lot to > you first! > Best regards > jxRui > > > ------------------------------------------------------------------------ > > _______________________________________________ > Discuss mailing list > Discuss at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/discuss From woodbri at swoodbridge.com Fri Sep 25 07:07:53 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 25 Sep 2009 10:07:53 -0400 Subject: [mapserver-users] Re: [OSGeo-Discuss] MapServer dynamic thematic map In-Reply-To: <4ABCCC39.5030200@swoodbridge.com> References: <4ABCCC39.5030200@swoodbridge.com> Message-ID: <4ABCCEB9.2090100@swoodbridge.com> > jxRui wrote: >> Folks, >> I know that MapServer can draw dynamic thematic map(choropleth map) via >> cgi. I'd like to develope MapServer app via PHP MapScript to realize >> the dynamic thematic map. But i find that the PHP MapScript interface >> cannot do this. >> For instance, i have only one polygon layer about U.S states,and this >> layer has 50 fields in the dbf or in MySQL,the most important thing is >> that these attributes values varying everyday. When the user select one >> of the fields from the droplist component of the MapServer web app in >> Firefox or ie >> explorer,then the dynamic thematic map wil be drawn automaticly with the >> selected fields. >> What can i do this via PHP MapScript ? I need your help. Thank a lot to >> you first! >> Best regards >> jxRui I think the first question is where is the state polygon layer stored and how is it getting updated? I would recommend putting it in a PostgreSQL/PostGIS database because: 1) it is easy to load a shapefile into the database 2) it is easy to update the attributes asynchronously to the mapping without any issues 3) postGIS is well supported and easy to use from mapserver 4) it is the best way to do dynamic thematic maps Then in you mapfile you can setup the layer with the appropriate connection parameters for postGIS, and you can change the DATA statement in php mapscript to select the appropriate SQL to render the map thematically. -Steve W From khayer117 at yahoo.com Fri Sep 25 10:04:46 2009 From: khayer117 at yahoo.com (abul khayer) Date: Fri, 25 Sep 2009 10:04:46 -0700 (PDT) Subject: [mapserver-users] Overlay Google Map API Message-ID: <679222.54401.qm@web45405.mail.sp1.yahoo.com> I need to overlay a google map layer with my custom OSgeo Mapserver layer in specific extend. Map will? be rendered by OSgeo Mapserver. I need to superinpose my map with google map. How can i integrate google map Layer in OSgeo Mapserver??? ....................................... Md. Abul Khayer GIS Programmer CEGIS (www.cegisbd.com) Cell: +8801730019572 Blog: khayer.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Fri Sep 25 10:15:43 2009 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 25 Sep 2009 13:15:43 -0400 Subject: [mapserver-users] Overlay Google Map API In-Reply-To: <679222.54401.qm@web45405.mail.sp1.yahoo.com> References: <679222.54401.qm@web45405.mail.sp1.yahoo.com> Message-ID: try this: http://mapserver.org/development/rfc/ms-rfc-43.html Paul On 2009-09-25, at 1:04 PM, abul khayer wrote: > I need to overlay a google map layer with my custom OSgeo Mapserver > layer in specific extend. Map will be rendered by OSgeo Mapserver. > I need to superinpose my map with google map. > How can i integrate google map Layer in OSgeo Mapserver? > > ....................................... > Md. Abul Khayer > GIS Programmer > CEGIS (www.cegisbd.com) > Cell: +8801730019572 > Blog: khayer.wordpress.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From schatterjee at addisontx.gov Fri Sep 25 11:30:18 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 25 Sep 2009 13:30:18 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F4@sc-exchange.addisongov.org> Hi all, I have developed a real time vehicle location and Routing Information system which will read data from a gps and send the values to the postgresql server through a webservice. Then I developed a viewer in C# and mapscript which will read the values from the database and plot on the map. The map is being generated through mapserver with the help of mapfile. This process will run continuously with the help of a timer. Now my problem is: Sometimes the map fails to draw and it throws an error stating that the database server has refused the connection. But while in debugging mode I find the database connection is still open. The connection string that I have given in the mapfile is also OK as the error is being thrown all of a sudden and it's random. So how can I solve this problem so that the connection between mapserver and postgresql database is not disrupted? Any help will be highly acknowledged. Thanks Suman ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Sep 25 11:43:19 2009 From: andy at squeakycode.net (Andy Colson) Date: Fri, 25 Sep 2009 13:43:19 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted In-Reply-To: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F4@sc-exchange.addisongov.org> References: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F4@sc-exchange.addisongov.org> Message-ID: <4ABD0F47.1070000@squeakycode.net> Suman Chatterjee wrote: > Hi all, > > > Now my problem is: > > Sometimes the map fails to draw and it throws an error stating that > the database server has refused the connection. > > > Thanks > > Suman > Is there anything in the postgres logs? -Andy From schatterjee at addisontx.gov Fri Sep 25 11:58:36 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 25 Sep 2009 13:58:36 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F5@sc-exchange.addisongov.org> Hi Andy, Thanks for your reply. But how can I read the postgres logs? When I am trying to open the files in pg_log folder it is saying "access is denied" Thanks Suman -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Friday, September 25, 2009 1:43 PM To: Suman Chatterjee Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Suman Chatterjee wrote: > Hi all, > > > Now my problem is: > > Sometimes the map fails to draw and it throws an error stating that > the database server has refused the connection. > > > Thanks > > Suman > Is there anything in the postgres logs? -Andy ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* From andy at squeakycode.net Fri Sep 25 12:02:25 2009 From: andy at squeakycode.net (Andy Colson) Date: Fri, 25 Sep 2009 14:02:25 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted In-Reply-To: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F5@sc-exchange.addisongov.org> References: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F5@sc-exchange.addisongov.org> Message-ID: <4ABD13C1.2040508@squeakycode.net> Suman Chatterjee wrote: > Hi Andy, > Thanks for your reply. But how can I read the postgres logs? When I am > trying to open the files in pg_log folder it is saying "access is > denied" > Thanks > Suman > > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Friday, September 25, 2009 1:43 PM > To: Suman Chatterjee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Connection between mapserver and > postgresql is getting disrupted > > Suman Chatterjee wrote: >> Hi all, >> >> >> Now my problem is: >> >> Sometimes the map fails to draw and it throws an error stating that > >> the database server has refused the connection. >> >> >> Thanks >> >> Suman >> > > Is there anything in the postgres logs? > > -Andy > Is postgres running on windows? From schatterjee at addisontx.gov Fri Sep 25 12:04:17 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 25 Sep 2009 14:04:17 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027977A4@sc-exchange.addisongov.org> Yes, it is running on windows vista. Suman -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Friday, September 25, 2009 2:02 PM To: Suman Chatterjee Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Suman Chatterjee wrote: > Hi Andy, > Thanks for your reply. But how can I read the postgres logs? When I am > trying to open the files in pg_log folder it is saying "access is > denied" > Thanks > Suman > > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Friday, September 25, 2009 1:43 PM > To: Suman Chatterjee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Connection between mapserver and > postgresql is getting disrupted > > Suman Chatterjee wrote: >> Hi all, >> >> >> Now my problem is: >> >> Sometimes the map fails to draw and it throws an error stating that > >> the database server has refused the connection. >> >> >> Thanks >> >> Suman >> > > Is there anything in the postgres logs? > > -Andy > Is postgres running on windows? ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* From andy at squeakycode.net Fri Sep 25 12:08:42 2009 From: andy at squeakycode.net (Andy Colson) Date: Fri, 25 Sep 2009 14:08:42 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted In-Reply-To: <6924A68BEE67AA46A1E95CC0EB4F98D0027977A4@sc-exchange.addisongov.org> References: <6924A68BEE67AA46A1E95CC0EB4F98D0027977A4@sc-exchange.addisongov.org> Message-ID: <4ABD153A.8000901@squeakycode.net> Suman Chatterjee wrote: > Yes, it is running on windows vista. > > Suman > > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Friday, September 25, 2009 2:02 PM > To: Suman Chatterjee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Connection between mapserver and > postgresql is getting disrupted > > Suman Chatterjee wrote: >> Hi Andy, >> Thanks for your reply. But how can I read the postgres logs? When I am >> trying to open the files in pg_log folder it is saying "access is >> denied" >> Thanks >> Suman >> >> -----Original Message----- >> From: Andy Colson [mailto:andy at squeakycode.net] >> Sent: Friday, September 25, 2009 1:43 PM >> To: Suman Chatterjee >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Connection between mapserver and >> postgresql is getting disrupted >> >> Suman Chatterjee wrote: >>> Hi all, >>> >>> >>> Now my problem is: >>> >>> Sometimes the map fails to draw and it throws an error stating > that >>> the database server has refused the connection. >>> >>> >>> Thanks >>> >>> Suman >>> >> Is there anything in the postgres logs? >> >> -Andy >> > > Is postgres running on windows? > > I was worried about that. Sorry, dont think I can help. Windows permissions are the most painful, overly-complicated things I've ever seen. I'd say, you need more rights, can you login as admin? -Andy From schatterjee at addisontx.gov Fri Sep 25 12:15:24 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Fri, 25 Sep 2009 14:15:24 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Message-ID: <6924A68BEE67AA46A1E95CC0EB4F98D0027A15F6@sc-exchange.addisongov.org> Yes, I have the administrator rights and I have changed the owner of the folder also from postgres to myname. But still cannot open it. Suman -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Friday, September 25, 2009 2:09 PM To: Suman Chatterjee Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Suman Chatterjee wrote: > Yes, it is running on windows vista. > > Suman > > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Friday, September 25, 2009 2:02 PM > To: Suman Chatterjee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Connection between mapserver and > postgresql is getting disrupted > > Suman Chatterjee wrote: >> Hi Andy, >> Thanks for your reply. But how can I read the postgres logs? When I am >> trying to open the files in pg_log folder it is saying "access is >> denied" >> Thanks >> Suman >> >> -----Original Message----- >> From: Andy Colson [mailto:andy at squeakycode.net] >> Sent: Friday, September 25, 2009 1:43 PM >> To: Suman Chatterjee >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Connection between mapserver and >> postgresql is getting disrupted >> >> Suman Chatterjee wrote: >>> Hi all, >>> >>> >>> Now my problem is: >>> >>> Sometimes the map fails to draw and it throws an error stating > that >>> the database server has refused the connection. >>> >>> >>> Thanks >>> >>> Suman >>> >> Is there anything in the postgres logs? >> >> -Andy >> > > Is postgres running on windows? > > I was worried about that. Sorry, dont think I can help. Windows permissions are the most painful, overly-complicated things I've ever seen. I'd say, you need more rights, can you login as admin? -Andy ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* From woodbri at swoodbridge.com Fri Sep 25 19:58:55 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 25 Sep 2009 22:58:55 -0400 Subject: [mapserver-users] Re: MapServer dynamic thematicmap In-Reply-To: References: Message-ID: <4ABD836F.5030500@swoodbridge.com> jxRui, First, please subscribe to the mapserver-users list and keep the discussion there so others can learn from the discussion and so it gets archived. I would take a slightly different approach which I think is easier to implement. Create your mapfile LAYER with say 4-5 classes like: LAYER NAME "states" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=canada host=carto port=5432" DATA "the_geom from (select the_geom, gid, name, compute_style(pop, 'pop') as style from states) as foo using srid=4326 using unique gid" CLASSITEM "style" CLASS EXPRESSION "0" COLOR ... END CLASS EXPRESSION "1" COLOR ... END ... CLASS # default color if not caught above COLOR ... END END Then make you SQL classify the polygons in this classes. You could write some stored procedures that would help to do the classification. If you need to keep MIN, MAX, AVG, STD values for your Attributes, then you could write a trigger function that updates these values when records are updated. You could store these metadata values in a separate table. You should be able to change the data statement in mapscript with something like: layerObj.data = "the_geom from (select the_geom, gid, name, compute_style(pop, 'pop') as style from states) as foo using srid=4326 using unique gid"; Although I'm not sure if all layer attributes can be changed via mapscript. you would have to write the compute_style() function and you can pass in a column from your table like pop and for the second argument you might want to pass a value like 'pop' so in your stored procedure you can do something like: select colmin, colmax, colavg, colstd from state_metadata where col='pop'; to fetch the metadata values. Hope this helps, -Steve Woodbridge http://imaptools.com/ ??? wrote: > Steve W, > thanks a lot to you! > I am simply using PostgreSQL for several months.I know that in the > mapfile of MapServer,if we want divide this class(such as population of > U.S) into 4 types, then the max ,min value and value range of each sub > class must be hard coding clearly into mapfile if we want to draw > dynamic map,beacase mapserver must read the mapfile each time.In this > case,the dynamic thematic map via MapServer is easy to realize. > When i import the U.S state polygons into PostgreSQL DB, then i could > create one field naming such as population in the table,and the > attributes of this field is varying everyday.So the max and min value of > this attributes is varying correspondingly. > My ques is,(1)if the attributes of (population )field changed each > time,Should i change the mapfile subclass definition section? This maybe > a terrible dream!^_^ > (2)if not so,that is to say, i can make dynamic SQL including the > max,min and range value definition in php mapscript/php context,and > there is no need to write these max ,min value and value range of each > sub class into mapfile ? And the mapfile only including connection > parameters to DB,no need including the subclass definitio? > I found in a book that said,in Python context,we can define class of a > layer easyly,since the interface of MapServer to Python have already > been defined,but for PHP/Mapscript is hard to realize. Is this the case? > These ques trouble me for long time! > If you can give me several lines codes of PHP in order to "can change > the DATA statement > in php mapscript to select the appropriate SQL to render the map > thematically". > Best regards > jxRui > > > ??????????????: > >From: Stephen Woodbridge > >Reply-To: > >To: ??? , mapserver-users users at lists.osgeo.org> > >Subject: Re: [mapserver-users] Re: [OSGeo-Discuss] MapServer dynamic thematicmap > >Date:Fri, 25 Sep 2009 10:07:53 -0400 > > > >> jxRui wrote: > >>> Folks, > >>> I know that MapServer can draw dynamic thematic map(choropleth map) via > >>> cgi. I'd like to develope MapServer app via PHP MapScript to realize > >>> the dynamic thematic map. But i find that the PHP MapScript interface > >>> cannot do this. > >>> For instance, i have only one polygon layer about U.S states,and this > >>> layer has 50 fields in the dbf or in MySQL,the most important thing is > >>> that these attributes values varying everyday. When the user select one > >>> of the fields from the droplist component of the MapServer web app in > >>> Firefox or ie > >>> explorer,then the dynamic thematic map wil be drawn automaticly with the > >>> selected fields. > >>> What can i do this via PHP MapScript ? I need your help. Thank a lot to > >>> you first! > >>> Best regards > >>> jxRui > > > >I think the first question is where is the state polygon layer stored > >and how is it getting updated? > > > >I would recommend putting it in a PostgreSQL/PostGIS database because: > > > >1) it is easy to load a shapefile into the database > >2) it is easy to update the attributes asynchronously to the mapping > >without any issues > >3) postGIS is well supported and easy to use from mapserver > >4) it is the best way to do dynamic thematic maps > > > >Then in you mapfile you can setup the layer with the appropriate > >connection parameters for postGIS, and you can change the DATA statement > >in php mapscript to select the appropriate SQL to render the map > >thematically. > > > >-Steve W > > From jeremiahosullivan at gmail.com Sat Sep 26 03:50:05 2009 From: jeremiahosullivan at gmail.com (Jerry O'Sullivan) Date: Sat, 26 Sep 2009 11:50:05 +0100 Subject: [mapserver-users] Reproject local projection to EPSG:4326 Message-ID: <67fe0b0909260350o275e1171m8b3a064c00621c2@mail.gmail.com> Hi My raw data (vector & raster) is in a local coordinate system. I'm looking to overlay this data onto Google Maps using Open Layers and Ka-Map. Is it possible to get MapServer to reproject this data on the fly into EPSG:4326? Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Sat Sep 26 05:29:26 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sat, 26 Sep 2009 08:29:26 -0400 Subject: [mapserver-users] Reproject local projection to EPSG:4326 In-Reply-To: <67fe0b0909260350o275e1171m8b3a064c00621c2@mail.gmail.com> References: <67fe0b0909260350o275e1171m8b3a064c00621c2@mail.gmail.com> Message-ID: <20090926122926.GA9533@metacarta.com> On Sat, Sep 26, 2009 at 11:50:05AM +0100, Jerry O'Sullivan wrote: > Hi > > My raw data (vector & raster) is in a local coordinate system. I'm looking > to overlay this data onto Google Maps using Open Layers and Ka-Map. Is it > possible to get MapServer to reproject this data on the fly into EPSG:4326? Yes. And you'll want to use EPSG:900913. http://docs.openlayers.org/library/spherical_mercator.html -- Christopher Schmidt MetaCarta From temiz at deprem.gov.tr Sun Sep 27 03:46:05 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Sun, 27 Sep 2009 13:46:05 +0300 Subject: [mapserver-users] couldn't get value from raster map Message-ID: <20090927103604.M35321@deprem.gov.tr> hello I am using java mapscript and trying to get values from raster layer. But I can only get x,y values but not other values especially color values of the pixel I had clicked. here is the my code's fragment : int q = slplayer.queryByPoint(map0, qpt, mapscript.MS_MULTIPLE, 10.0 ); int numResults = slplayer.getNumResults(); if (numResults != 0) { for (int j = 0; j < numResults; j++) { resultCacheMemberObj resultMember = slplayer.getResult(j); slplayer.open(); shapeObj shape = new shapeObj(slplayer.getType() .swigValue()); int s = slplayer.getShape(shape, resultMember.getTileindex(), resultMember.getShapeindex()); System.out.println(" *** s "+s); -----> 0 if (shape != null) { System.out.println(" *** numResults "+numResults); ----> 2 int shpix = shape.getIndex(); System.out.println(" *** shpix "+shpix); ! -------> -1 System.out.println(" *** shape.getValue "+shape.getValue(j)); -----> only gives x,y values bot not RGB values } slplayer.close(); } here is the related part of map file : LAYER NAME "slp_cat" STATUS OFF TILEINDEX "/home/orkun/data/hsunucu/mapshar/rast_index.shp" TILEITEM "Location" TYPE RASTER TEMPLATE "/home/orkun/workspace2/pro1/WebContent/Raster_Query.html" PROCESSING "SCALE=1,9" #PROCESSING "SCALE_BUCKETS=9" CLASS NAME "0-5" EXPRESSION ([pixel] =1) STYLE COLOR 254 254 25 END END CLASS NAME "5-10" EXPRESSION ([pixel] =2) STYLE COLOR 249 177 20 END END CLASS NAME "10-15" EXPRESSION ([pixel] =3) STYLE COLOR 25 254 82 END END CLASS NAME "15-20" EXPRESSION ([pixel] =4) STYLE COLOR 25 254 225 END END CLASS NAME "20-25" EXPRESSION ([pixel] =5) STYLE COLOR 25 140 254 END END CLASS NAME "30-35" EXPRESSION ([pixel] =6) STYLE COLOR 53 25 254 END END CLASS NAME "35-45" EXPRESSION ([pixel] =7) STYLE COLOR 196 25 254 END END CLASS NAME "35-45" EXPRESSION ([pixel] =8) STYLE COLOR 254 25 169 END END CLASS NAME "45-90" EXPRESSION ([pixel] =9) STYLE COLOR 254 25 25 END END END ~~~~~~~~~~~~~~~~~ Could you possibly tell me where I am wrong ? kind regards -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From woodbri at swoodbridge.com Sun Sep 27 07:14:43 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 27 Sep 2009 10:14:43 -0400 Subject: [mapserver-users] Re: MapServer dynamic thematicmap In-Reply-To: References: Message-ID: <4ABF7353.1050204@swoodbridge.com> Correct, the idea behind writing a stored procedure is the you have many columns that you want to be able to classify and each column would have different ranges for the classification based on the MIN, MAX, AVG values. If so you could write a single function in pseudo-code like: classify_quartile(column, 'column_name') { select cmin, cmax, cavg into cmin, cmax, cavg from column_metadata where colname='column_name'; quartile := (cmax - cmin) / 4; return column/quartile; } or you could write multiple function with different classifiers that you could select from a drop down list. If all the classifiers return values like 1,2,3,4,... the you only need a single layer in the mapfile that maps those style values to colors. Or you can get a little fancier and you can have you classifier functions return the color directly and have mapserver use that. Look at the mapfile reference for specifying a color attribute column. -Steve ??? wrote: > Stephen Woodbridge, > Thanks a lot! > The mapfile i create for mapserver includings polygon LAYER of > population with 4 classes like: > > LAYER > NAME "MyPOP" > TYPE POLYGON > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=canada host=carto port=5432" > DATA "the_geom from (select the_geom, gid, name, compute_style(pop, & > apos;pop') as style from states) as foo using srid=4326 using > unique gid" > CLASSITEM "POP" > CLASS > EXPRESSION ([POP] <12000 ) > STYLE > COLOR 255 255 255 > END > END > > CLASS > NAME "12000 - 33990" > EXPRESSION (([POP] > 12000) && ([POP] <= 33990)) > STYLE > COLOR 223 184 230 > END > END > CLASS > NAME "33990 - 184253" > EXPRESSION (([POP] >= 33990.0001) && ([POP] <= 184253)) > STYLE > COLOR 199 141 235 > END > END > CLASS > NAME ">184253" > EXPRESSION ([POP] >= 184253.0001) > STYLE > COLOR 172 102 237 > END > END > END > > When mapserver starts to work ,it will read this mapfile firstly. If i > want to render dynamic thematic map , according to your suggestion, i > should be able to change the data statement in mapscript with something > like: > layerObj.data = "the_geom from (select the_geom, gid, name, > compute_style(pop, 'pop') as style from states) as foo using > srid=4326 > using unique gid"; > In this case,that is to say ,there is no need to write hard coding for > the four subclass into mapfile(maybe theses coding lines of four > subCLASS should be deleted),since i can write dynamic SQL in MapScript > context(layerObj.data,... etc). > > Can i draw following conclusions according to your suggestion: > 1.using some stored procedures and compute_style() function that would > help to do the classification. > 2.if i want to render dynamic thematic map, i can change the DATA > statement in php mapscript to select the appropriate SQL to render the > map thematically. > > Best Regards > Dr. Rui Jianxun > Owner of www.svgis.com > Lab of Urban Ecology and Environment Restore > Shanghai Normal University > 100 Guilin Road, Shanghai 200234, China > Email: gis at shnu.edu.cn ruijianxun at 126.com > > > > > ??????????????: > >From: Stephen Woodbridge > >Reply-To: > >To: ????, mapserver-users users at lists.osgeo.org> > >Subject: Re: MapServer dynamic thematicmap > >Date:Fri, 25 Sep 2009 22:58:55 -0400 > > > >jxRui, > > > >First, please subscribe to the mapserver-users list and keep the > >discussion there so others can learn from the discussion and so it gets > >archived. > > > >I would take a slightly different approach which I think is easier to > >implement. Create your mapfile LAYER with say 4-5 classes like: > > > >LAYER > > NAME "states" > > TYPE POLYGON > > STATUS DEFAULT > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=canada host=carto port=5432" > > DATA "the_geom from (select the_geom, gid, name, compute_style(pop, > >'pop') as style from states) as foo using srid=4326 using unique gid" > > CLASSITEM "style" > > CLASS > > EXPRESSION "0" > > COLOR ... > > END > > CLASS > > EXPRESSION "1" > > COLOR ... > > END > > ... > > CLASS # default color if not caught above > > COLOR ... > > END > >END > > > >Then make you SQL classify the polygons in this classes. You could write > >some stored procedures that would help to do the classification. If you > >need to keep MIN, MAX, AVG, STD values for your Attributes, then you > >could write a trigger function that updates these values when records > >are updated. You could store these metadata values in a separate table. > > > >You should be able to change the data statement in mapscript with > >something like: > > > >layerObj.data = "the_geom from (select the_geom, gid, name, > >compute_style(pop, 'pop') as style from states) as foo using srid=4326 > >using unique gid"; > > > >Although I'm not sure if all layer attributes can be changed via mapscript. > > > >you would have to write the compute_style() function and you can pass in > >a column from your table like pop and for the second argument you might > >want to pass a value like 'pop' so in your stored procedure you can do > >something like: > > > >select colmin, colmax, colavg, colstd from state_metadata where col='pop'; > > > >to fetch the metadata values. > > > >Hope this helps, > > -Steve Woodbridge > > http://imaptools.com/ > > > >???? wrote: > >> Steve W, > >> thanks a lot to you! > >> I am simply using PostgreSQL for several months.I know that in the > >> mapfile of MapServer,if we want divide this class(such as population of > >> U.S) into 4 types, then the max ,min value and value range of each sub > >> class must be hard coding clearly into mapfile if we want to draw > >> dynamic map,beacase mapserver must read the mapfile each time.In this > >> case,the dynamic thematic map via MapServer is easy to realize. > >> When i import the U.S state polygons into PostgreSQL DB, then i could > >> create one field naming such as population in the table,and the > >> attributes of this field is varying everyday.So the max and min value of > >> this attributes is varying correspondingly. > >> My ques is,(1)if the attributes of (population )field changed each > >> time,Should i change the mapfile subclass definition section? This maybe > >> a terrible dream!^_^ > >> (2)if not so,that is to say, i can make dynamic SQL including the > >> max,min and range value definition in php mapscript/php context,and > >> there is no need to write these max ,min value and value range of each > >> sub class into mapfile ? And the mapfile only including connection > >> parameters to DB,no need including the subclass definitio? > >> I found in a book that said,in Python context,we can define class of a > >> layer easyly,since the interface of MapServer to Python have already > >> been defined,but for PHP/Mapscript is hard to realize. Is this the case? > >> These ques trouble me for long time! > >> If you can give me several lines codes of PHP in order to "can change > >> the DATA statement > >> in php mapscript to select the appropriate SQL to render the map > >> thematically". > >> Best regards > >> jxRui > >> > >> > >> : > >> >From: Stephen Woodbridge > >> >Reply-To: > >> >To: ????? , mapserver-users >> users at lists.osgeo.org> > >> >Subject: Re: [mapserver-users] Re: [OSGeo-Discuss] MapServer dynamic thematicmap > >> >Date:Fri, 25 Sep 2009 10:07:53 -0400 > >> > > >> >> jxRui wrote: > >> >>> Folks, > >> >>> I know that MapServer can draw dynamic thematic map(choropleth map) via > >> >>> cgi. I'd like to develope MapServer app via PHP MapScript to realize > >> >>> the dynamic thematic map. But i find that the PHP MapScript interface > >> >>> cannot do this. > >> >>> For instance, i have only one polygon layer about U.S states,and this > >> >>> layer has 50 fields in the dbf or in MySQL,the most important thing is > >> >>> that these attributes values varying everyday. When the user select one > >> >>> of the fields from the droplist component of the MapServer web app in > >> >>> Firefox or ie > >> >>> explorer,then the dynamic thematic map wil be drawn automaticly with the > >> >>> selected fields. > >> >>> What can i do this via PHP MapScript ? I need your help. Thank a lot to > >> >>> you first! > >> >>> Best regards > >> >>> jxRui > >> > > >> >I think the first question is where is the state polygon layer stored > >> >and how is it getting updated? > >> > > >> >I would recommend putting it in a PostgreSQL/PostGIS database because: > >> > > >> >1) it is easy to load a shapefile into the database > >> >2) it is easy to update the attributes asynchronously to the mapping > >> >without any issues > >> >3) postGIS is well supported and easy to use from mapserver > >> >4) it is the best way to do dynamic thematic maps > >> > > >> >Then in you mapfile you can setup the layer with the appropriate > >> >connection parameters for postGIS, and you can change the DATA statement > >> >in php mapscript to select the appropriate SQL to render the map > >> >thematically. > >> > > >> >-Steve W > >> > > > > > > From pauljame at gmail.com Tue Sep 15 10:58:04 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 15 Sep 2009 14:58:04 -0300 Subject: [mapserver-users] Problem using getShape with MsSql2008 (Mapscript C#) In-Reply-To: <33fad6880908110522l5a006b58p595fdab47f8ca306@mail.gmail.com> References: <33fad6880908051248l41051eadxef73770d6943b949@mail.gmail.com> <33fad6880908060733s4980df12t39141c3d69edaf3@mail.gmail.com> <33fad6880908070639w59aff538qe5b43ee96e181dc@mail.gmail.com> <33fad6880908070738t699fa9ffg7c9ac4ef0614a7ee@mail.gmail.com> <33fad6880908070911w53f9e7c8l19978f11dc222992@mail.gmail.com> <33fad6880908110522l5a006b58p595fdab47f8ca306@mail.gmail.com> Message-ID: <33fad6880909151058s6d2142a6x89c3dd5a533dc8f3@mail.gmail.com> The last problem with getShape is solved and working fine.... But now I got other possible bug using MsSql2008/C# ... Code : MapObj.queryByPoint(_oGeo, mapscript.MS_MULTIPLE, -1) Thas is working fine with Postgis... But wth MsSql2008, got the following error : (using queryByRect all works fine) msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL statement: SELECT convert(varchar(max), oid),convert(varchar(max), anoreferencia),convert(varchar(max), uf),convert(varchar(max), rodovia),convert(varchar(max), codigopnv),convert(varchar(max), localiniciofim),convert(varchar(max), inicio),convert(varchar(max), fim),convert(varchar(max), extensao),convert(varchar(max), superficie),convert(varchar(max), listacoincidente),convert(varchar(max), estadualcoincidente),convert(varchar(max), superficieestadualcoincidente),convert(varchar(max), mp_082),convert(varchar(max), concessaoconvenio),the_geom.STAsBinary(),convert(varchar(20), oid) from viwgeo_test WHERE the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]: System.FormatException: 24305: The Polygon input is not valid because the ring does not have enough distinct points. Each ring of a polygon must contain at least three distinct points. System.FormatException: at Microsoft.SqlServer.Types.Validator.Execute(Transition transition) at Microsoft.SqlServer.Types.Validator.EndFigure() at Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type) at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.STGeom Paul On Tue, Aug 11, 2009 at 9:22 AM, Paul james wrote: > Thanks Tamas! :) > > Paul > > > On Mon, Aug 10, 2009 at 7:13 PM, Tamas Szekeres wrote: > >> Paul, >> >> I've just fixed this issue in the development version and in the latest >> stable branch (5-4). For more details please refer to the following ticket: >> http://trac.osgeo.org/mapserver/ticket/3082 >> >> Best regards, >> >> Tamas >> >> >> >> 2009/8/7 Paul james >> >>> The same behaviour occurs with other layers too ... >>> >>> >>> Argentina >>> >>> STGeometryType : Polygon >>> >>> STAsBinary: >>> >>> 0x0103000000010000003B020000503BE5D2EBCB4CC010FB3ECD25323EC078AFE5CCCCCC4CC0F0F50C3333333EC0E884D76855F54CC0000B66E3DD5D3FC0D06AC8B299194DC04828A299993940C0587B913B33134DC078C37CDDCC4C40C028D82B5244444DC020F1A43522C240C058EAA29388284DC0285ECF4F555541C0400A121F11914CC078987DBEBBBB41C080391BF4DD9D4CC0E047F27C771742C0D8A6BB4F55554CC020215DB0AA4A42C04879237766A64CC08091F8A199B942C058932B9677F74CC050BDD393882843C0585DC454336B4DC048EC7A02EF3E43C0086FFD0AEFDE4DC0901CCA68555543C068E8F2C0AA524EC0400859CFBB6B43C010FA2B7766C64EC08838A835228243C0080432B0AA2A4FC0F017B199997943C02814349677174FC018AA9F9388A843C0B0930E7766264FC060691177664644C0D069CFD7BB5B4FC048461677668644C0DC77D69D990950C0F888BF35228244C0C827E597884850C01895A0DDCC6C44C0C0B8D33F333350C008B29899991945C06005E539222250C03091C493882845C088E3147D770750C0108ECF35222245C0408AE11000E04FC0207A5EB0AA0A45C038B2CBB299D94FC0186EC993886845C09CCB38DFDD0D50C0E005B14F555545C08CE44BDFDD3D50C0E005B14F555545C044A2C73F331350C0E894E010008045C084E6975A445450C0F800B75FD9C045C0087A021F116150C0F800B75FD9C045C0F0F046FEEE6E50C0F800B75FD9C045C004FDA35A447450C0F800B75FD9C045C0684542DFDD7D50C0F800B75FD9C045C0DC4749DFDD8D50C0F800B75FD9C045C02C7FEE39229250C0F800B75FD9C045C0F86D85BEBBB350C0F800B75FD9C045C090844F7B66BE50C0F800B75FD9C045C0E87CC73F33C350C0F800B75FD9C045C03C6C95B8AACA50C0F800B75FD9C045C0BCFFFF7C77D750C0F800B75FD9C045C078E2EB3922E250C0F800B75FD9C045C08896C89D99E950C0F800B75FD9C045C07841547B66F650C0F800B75FD9C045C0A8C152DFDDFD50C0F800B75FD9C045C060B8985A440451C0F800B75FD9C045C06498565C551551C0F800B75FD9C045C0A89BB4B8AA1A51C0F800B75FD9C045C0AC777BBEBB1B51C0F800B75FD9C045C0040C3DDFDD1D51C0F800B75FD9C045C02057091F112151C0F800B75FD9C045C0A0A35C5C552551C0F800B75FD9C045C02C2F1F7D772751C0F800B75FD9C045C0908AA40C002851C0F800B75FD9C045C09412F997882851C0F800B75FD9C045C0E8EDD13F333351C0F800B75FD9C045C0A8656D7B663651C0F800B75FD9C045C0D4F9C59D993951C0F800B75FD9C045C03CDD9FB8AA3A51C0F800B75FD9C045C0F05CE397884851C0F800B75FD9C045C01405CC9D994951C0F800B75FD9C045C028EDEFFFFF4F51C0F800B75FD9C045C04438BC3F335351C0F800B75FD9C045C02C68E997885851C0F800B75FD9C045C0AC66A4DDCC6C51C0F800B75FD9C045C078921C7D777751C0F800B75FD9C045C01C060300008051C0F800B75FD9C045C02CD9F39788C851C0F800B75FD9C045C0A874060000E051C0F800B75FD9C045C02CA3AC5A44E451C0F800B75FD9C045C0783F161F11F151C0F800B75FD9C045C004CBD83F33F351C0F800B75FD9C045C00CB7485C55F551C05011111F119145C0083AEA97880852C0008A25B0AA4A45C0A076527B66F651C0883B295244E444C05CF449DFDDED51C0A845257D773744C01CE943DFDDDD51C0509A241F11B143C010B2C53F33C351C02097AD10006043C0F466F9FFFFBF51C0B066B94F551543C0BC1D041F11C151C060649E9999A942C02001DE3922C251C0E87429DBDD3D42C08048455C559551C090A1B59388E841C0D4DC067D779751C060E28F3B339341C0E075F697887851C0E852211F11F140C054314BFEEE7E51C0000D377766A640C074F81E9C889051C0C09F90E3DD3D40C090BFF23922A251C060C808B0AAAA3FC08048455C559551C0B05EE68288083FC0ACC50C1F118151C030CF776666663EC0605E9331227A51C0503AB6CCCCAC3DC0C44EC83F337351C060EE3C2233F33CC0ACB0E0EBDD4D51C0406D0CCDCC0C3CC09412F997882851C02024296666263BC038E0C43F331351C08032672D22E23AC0DCCEA45A442451C0B0A692DDCC4C3AC08C97FFFFFF1F51C06040716666E638C0508CF9FFFF0F51C090866766666638C08837605C55D550C000D4FD49440438C00029FCFFFFBF50C0F0F7A910000037C060147EBEBBCB50C0E0ACCB0511D136C06C0753FEEE8E50C0D0E1068388C835C0EC73E839228250C010D817B0AAEA35C0CCA4435C553550C03017732D222236C030AEBB9D991950C030C6437D77B736C07C0BFF1E110150C0D09120B0AA2A36C0A881B79388684FC080A79210000036C0A851151F11514FC0B02347A5BB3B36C080287902EFDE4EC030FE93CCCC0C37C000477DDDCC6C4EC0904F60F4DDDD37C0F81C257766064EC0D00E5027113138C0F8F2CC1000A04DC0B06A0B4A448438C09038FF4333334DC0B0225C9999F938C0C88F2F7766C64CC0A0512CE9EE6E39C0E0E33FAA99094DC0C0AEC9FFFF5F3AC048D093DDCC4C4DC0700EB70511513BC0E057F58D77B74CC01065D14944643BC078A0B13522224CC070E1377D77773BC0A846A19388C84BC0907C901000403BC0087D1C1F11514BC0D0507B2233333AC088DC7EE2B04B4BC0D0C57D52849739C03836773F35464BC040CE5A21C79639C05857CAFD47444BC0F0618A001A9939C0809D501DAB444BC03040BBDA199E39C080CFF1230C434BC010F351E2C7A039C050DF39DE01404BC0C0CA48D93D9D39C0987B96BDFA3A4BC0E06874669EA439C0E8D55203E9384BC020A18CDDB0A939C038C48601F6374BC0F0FFE31E2EB139C048600FE1EE364BC060745A84EFB139C0085C26DC0F364BC080B2C82539B039C0A8D8CCE061364BC0F02B092383A839C0C81663423E324BC0F02767211DA239C0A8DDAAFF57314BC0802680DF309939C050C419E15E2F4BC0507069C70C9839C048DECCC3972D4BC030EF3D594D9B39C02095DA612F2C4BC0F068521F669B39C0C8C28DFCFA294BC060ECDCDB669239C02855E121A9254BC0E0A5D662B88E39C0086CCFE1AF234BC0C02A4861A58E39C0A808C940F31F4BC0E0C58D63CD9839C050AED280091E4BC0B09A697CB59739C0A85455BC581E4BC0A0C30A62F79139C038E0C242751D4BC08001D2C0029039C02075A71F7F194BC0B04C373EE99439C0D89D99C2A0164BC0F071A59F8C9539C048D21A3C68164BC060D1E97E329239C0B8F3F6FB361A4BC0202F0DE09F8E39C0F8A328205F1A4BC0F09FE687668A39C0F8A30B6361184BC0000D2FBCAD8839C0D821323F8C144BC0D001627A6D8A39C0E83563FE60124BC04039289B1D8539C06064D460520E4BC020DF9A1C067F39C08092F5FBE10B4BC0D02FC61C058039C09827549D2B0C4BC0D000B1C1A48439C0A0ECFAFECD0F4BC0D0B86B5BB09039C0605A2123A00C4BC070168A78249E39C0D831313C840B4BC0A08AC9A4139D39C050591D7D770B4BC05067E742AD9539C0B8761DDC0F0A4BC0907E5ABAD68E39C098F5795C70064BC020B90D41649539C0183221232F054BC0B0AB73FA419539C088D3D6BBB0034BC07068459F1C9139C020CD1DFD4B024BC0F0CB1267609039C0B02398E2C7FE4AC0D02C3E88F29539C058C6FC3B30FC4AC0D0F3CCE68F9939C0785EE75B03FD4AC020C73B008B9C39C0F0D655A06BFB4AC0E03A077D059D39C0A0BFFC5E27FB4AC0907CB1FB3AA439C008B26A2040FA4AC0E053F57E88A539C0504FF6E2E0F84AC090EF8A7D90A139C0A86CF3C2F2F94AC040B6DA42E59F39C0187DCDE045F94AC060CE307A8A9C39C060D0787E6DF74AC070CBE5243E9F39C0887C921E30F54AC02046E9DBBC9D39C0683DE641D0F54AC0A04456C423A139C0D0CB2B9EECF44AC060D6DABAEFA039C0A004EFFCBFF44AC080E0565DC1A239C038B7A49EE9F14AC08066E625709F39C0A01F7EE080F24AC0A0E9D66378A439C0384BA76306F04AC04062063BE2A439C048D0E8A2CBF14AC0803BB00035A939C0085E781DFFEF4AC0D04B02D979A739C060AE9EE238EE4AC030496C63B2A839C00036331D57ED4AC020D781C076AC39C0C86AE21EDAED4AC0702ABEFD0DAE39C0D0A95102B8EB4AC0D006A4DD03B039C0C0A7BE41B4EC4AC0908B5E7EC3B039C030C5DB5D4AED4AC010586567EFB039C0E05DE5C2D6EC4AC060D20B3AB0B439C00890E2BE9CEF4AC0407469BF98B139C05807F6BB94EE4AC010FBBAF961B439C008797E616BF04AC0202884E732B539C048833E43C6ED4AC09073BBE523B939C0B8B4899FAAEE4AC05024FD3F86BE39C018DFDDFB8DEC4AC010DE2043A9BD39C090A38681CAEA4AC0908AFD1EDABF39C0D8369980B4EB4AC03099A86071C039C0B814F3606EEB4AC090D114FB91C239C0201FA0409FEC4AC020FA346212C239C078FAF85F91ED4AC09039753A1DC439C070AEA161BFEB4AC0C06BB48349C539C010E956BF44EA4AC0B04AF2C401C839C0006BD3DBD7EB4AC0F06933C364CA39C0F8D5902139E94AC0C05C1048C2CA39C0E0B09B7CEBE94AC0D091C9FCBFCE39C04817465CC7E84AC0703260E5B3D039C0B818E7813AEB4AC0D07A6EC3D2D039C0507CC122F7EA4AC0C0433E3E5BD339C0183D6401A2EC4AC0F00A84FA25D639C0C08BBF3FC2EA4AC08081C9E271D939C0C800C75F05EC4AC010C5F4218CDB39C050A753C076EA4AC010354A85CEDB39C08064FAE0EEEA4AC070F8FEDF65DE39C070937E6055E94AC040F8DCC30ADF39C040EAD00298EC4AC0C05265A86EE239C08850577FDAE84AC0D0D9C8E3A3E539C018F7AE62B8EA4AC0D017836116EA39C01875A57FBBE84AC03058BFE787E939C0E031FEDBF3E84AC08033CD8383ED39C068ED5F00A8EA4AC0403AE48172EB39C0E8D1EBBB77EA4AC0A02ADA4509EE39C01037C062D4EB4AC03081FA7DE4EE39C0E8C15F6264EB4AC0D074DFFA23F439C0007CCC3EE4E94AC030CC23656EF639C038EA7AA1F1EA4AC0009AEC7BB8F839C0B81B00E21FE84AC0307DCC81ADFA39C0589C6ADE8EE84AC060BE1E9D47FD39C0986A2A9E97E64AC000D2387826FC39C0B08292A1F1E64AC0F07DB1BFD1FE39C098705B1EC1E34AC00065802827023AC0A063AD7DC8E34AC030AEA49B6E053AC03088DEC0ABE14AC06017083928093AC080631A23A0E04AC0E07FBF6184083AC0301A5740BEE04AC080AB487B840A3AC030C79FDE1ADE4AC06011149FAE0A3AC0B0375A1EDDDC4AC0403BEBE2A8103AC04810C43E90DE4AC02065CFE3A3153AC098271D80D4DE4AC0F0FB8D7BD61D3AC03889A083BCDC4AC0A03074E1CF203AC02859C2FC86DB4AC0E0BCA86455203AC0E019F2BC8DD94AC0F09AAA65F9263AC0708B3942CDD64AC0E0C0E707042A3AC0A8EEFEC2F2D54AC07071D562F02C3AC0A077676132D34AC070F9BE3CBA313AC0404BE4A293D34AC0908AF4BB77343AC0404B36DD24D24AC0B074F1A129373AC0C81C205E82D34AC010217DB83A3C3AC080CD696731D24AC0B09CC676CD3E3AC090C015247DD24AC0200E00295C3F3AC0E04258AA6FD24AC0F0425780AD3F3AC05887AC9CA1D24AC0B07D5A389E3F3AC000CDFB2004D24AC08031EDDB66423AC048B8C05D85D24AC0100BC11D8B493AC098AF722217D64AC0C0C7A65A0B533AC0B0C962FED1D54AC0E0114F008B543AC0E0C226FE99D74AC070B28F5914563AC0589B1A8122D84AC010D6E61A9E5A3AC078FCD4A0F7D84AC0D01CA1A5D75A3AC030FFC39F36D84AC050827F00FC5B3AC0505DC04275D94AC050440FE1095D3AC038D433419CD94AC0606369F834633AC0503B571CB1DA4AC0406733232F633AC040167E5E0ED94AC030BBD3E2FF663AC008FC34A226DA4AC0C05EBFFE5E6A3AC068C07E1DFFD74AC0200E24E3A76D3AC0102BD95D11D84AC0A0EE0A276A713AC03067FDE2FCD94AC000BF233F00713AC0383B1A232FD94AC0D0F521FAED773AC0785F90FCFAD94AC060D83F7C7C763AC0F81554FD67DB4AC0E08EBE2477783AC0F894D4E061DA4AC070B719C11A7B3AC0A076FBFFC7D94AC080B1B8FC16793AC0E06608FFE9D84AC010D3B04482793AC0E055F2DEDFD84AC050E063A46C7D3AC000248FE3DDD94AC070958BDD767D3AC048A5551E88DA4AC020C5BAB704803AC018D5B661F7D94AC0F0E6FE6705823AC03060F0614BDD4AC0505DC3A6B2803AC0A09865FCDEDC4AC08039C29F70863AC0B04F9A7C96DB4AC0C07AFC3FA5863AC0E03A3F7D93DC4AC080C0DF662A883AC0A8EE6E6210DC4AC07032BED87B893AC0482A94DEC6DE4AC000CC8083858B3AC0F05C3D01A2DC4AC0200AB2DEC38D3AC0F8EB14C11BDE4AC0C00E6E04E3903AC050213542E9DB4AC0207774FA958E3AC0C09B850260DA4AC0308ECF21378F3AC010B0171E50DC4AC06042FADEE08F3AC01888BDDC98DC4AC0C0BBD6F8A1963AC0487362DD95DD4AC08018155914963AC0E82DEB7F48DD4AC0F050F95C179A3AC000C778FCFADD4AC0001E4A60C79B3AC0A0129E1D38DD4AC0E02DF681E49D3AC0D07A507DAFDD4AC06047650229A13AC0285D81A0BFDE4AC00046EBC62EA13AC05003169E97DE4AC0E0B1D71CAFA43AC0B827931DFFDF4AC05014C54082A23AC0D06905E011E14AC0103B569E06A43AC0C0660201DDDD4AC0B0431A0325A53AC0002E0BBCCCDC4AC0F0890E7B67A83AC090FBE35E60DC4AC0202175DAA9A53AC0989BB481E6DB4AC040563C1AA2AA3AC0B048703EE7DC4AC090594C21ACAA3AC01096F54388DD4AC030B3385872AD3AC020C4F6A293DB4AC02017C35FB1AE3AC058A934FE44DD4AC0102D791805B13AC090DBE23E00DF4AC030DD4B4415AE3AC010A9EDDFA0DD4AC0806E4FBC1FB33AC070DB6CA1D5DD4AC0D0721E1939B73AC0A820137EA9DF4AC030C6ED19FAB73AC01092A63F6DE04AC070AF5C01A1B53AC028BD06DFDFE04AC040417C1B0DB83AC010E50ABFF0DE4AC0601EAA97DEBA3AC0980623A2EEDF4AC090B5931E68BD3AC078E2EC402BDE4AC0E0DBCB26BFBD3AC090A95BE064DD4AC0100B7D8505BB3AC0582E031F66DB4AC0202CE6C3B4BF3AC0C8ADEE839DDC4AC0004BA5B73FC33AC01838C59F1ADF4AC0F0C0281C25C33AC020CEA9E045DD4AC060B4D4E1E9C53AC078F9162461D94AC01008A1C69FC43AC010A9D022A3DB4AC030D37DD8B7C73AC060D869C2A0DA4AC0E0F958A608CC3AC0C809986187D94AC0304AB15703CC3AC0485640A31FD94AC070470FC39DCF3AC0F8D63FFDD8DA4AC06065321BD7CF3AC03884E821FED74AC0A0CE333A1FD63AC02013B93BDCD84AC01055BA97A6D83AC06097B13E90D64AC050FF74BFD0D73AC0E097028256D44AC0F039665A63DC3AC028D74922FBD84AC01062BE4290DB3AC02888DA03E5D64AC0A05CA9046DDE3AC0E06608FFE9D84AC020CEBE05D9E23AC08834E42004D64AC050B5364161E43AC01831603FE1D64AC04059BA6455E83AC0202A00DC0FD64AC0300B9204A8E93AC0081D2F800CD94AC060CB263D46ED3AC0381D8BDFBFD54AC0A07BC20419F13AC0C8A205A2B5DA4AC080CF27A112EF3AC0D8585E21E5D94AC0E0F4D0258DF53AC040630B0116DB4AC0E0B7C760E3F63AC098093C02D4DC4AC0F023766535F53AC0A0913BBE2FDE4AC090D1ED3E55F93AC0F0EEB580B4DB4AC0A0C3273BE2FC3AC078CD6A5F08DF4AC01070E23C9BFD3AC0487362DD95DD4AC0B0CE55880E013BC03878A720B0DE4AC040B367C58D033BC0F0553080F0DF4AC080F757793C013BC0A8A6108272E14AC040BC5965A5013BC0387259E388DF4AC0200E583AC8073BC090BD54A31FE14AC06012EC61BE083BC008D2B73F89E14AC050736BA65E0B3BC0C8E1C7FD64E44AC0404764FFCA063BC0803203E335E34AC0A08AA857AD0C3BC060BD2DC1FFE04AC0506FAB59830F3BC048134D3E93E14AC0F0D1BB25C8103BC09800F221C5E24AC020B16EC6A3103BC0303C6F0244E54AC090DBDDF8A10A3BC050DF943E90E64AC030397DBF420A3BC0206E285FECE54AC050FFEA37130F3BC0C03EC2FD9CE24AC0807CD04082123BC0A8C13383DCE34AC0E0454660E6133BC0680096C211E64AC0C093A245EF103BC0B08292A1F1E64AC0B0E9A6DB68143BC030F2163D7EE54AC0F03FFD04FC163BC0004D418330E34AC06032DF230D1A3BC0C01DE5DCB4E54AC0B0B28EBF0A1C3BC058CFB080B4E74AC0F04D135B09193BC0A0B7B7409FE84AC0D03059DBC0193BC0D0ACBC9C2EE74AC060BB837B2D1C3BC068961F20EEE64AC000865F452B1F3BC0888C57A12CE84AC0F01E9BA1F1203BC000294B0263E94AC09083889F53203BC0B892E97D71E94AC020EA535BE9213BC0D046608192E84AC010FDFD82A4233BC0C82D1FFC36E64AC0A0766988D6223BC0784A96230FE64AC0E00DB65BCB243BC0C0BE05E2E7E94AC09092053E5D253BC040B849A4FCEA4AC070DFDF5C8A273BC0103CD8FBC5EA4AC0308486E4F32A3BC02057515ED6EE4AC030CC20FA0C203BC028861A40DBF04AC0D03C23C43E213BC0C8FE548314F24AC090945EC361293BC0B0D5F31CAEF34AC0204E53DBDC2C3BC0286689BF98F94AC090B3D1DAC3263BC0A8E4B85FCCFA4AC0A04D502766293BC098D06AE3F9FA4AC080A9CC1C03323BC0F0B8017F86014BC0005F9B984B323BC050810A9E97024BC01026808653363BC0303012FDF7024BC0500C7E5B76403BC040EB22DEE5064BC060B8E76778433BC05071EEE3A1094BC0F0E511F9A04B3BC068FCF07E320E4BC020CC21FA9A4D3BC000466B1FD6134BC020F6BAFEB24B3BC0F8503744C0134BC0B09D5C9B1A443BC0D0C7F9FDF1144BC0F09D663C10413BC070CBC17E32164BC0D034C3FA5C413BC060EDEE81C7174BC0406604187A443BC0F8A30B6361184BC0B0FB0A60AD4E3BC0E8750A04561A4BC0E03BFDA02F553BC0D86BC33EAC1B4BC0A0BB779A94623BC0D0B8107C7D214BC0E0630841F3653BC0B093343F54224BC0A042027A8C6A3BC0484EBDE106224BC000FB605E636F3BC0705B767D74244BC070F45DDF88723BC000313C5F082B4BC040BFF19DD1663BC01024C762B82A4BC040755E5EF1743BC058C6FEDBF32C4BC0907168205E773BC08877473E20324BC0202A44C45C6A3BC088274F01A2344BC0202F497FBC673BC0B8102F438E374BC0F063E0175F6C3BC058B48D020B3C4BC0A0887F264F6D3BC0E8D8DB02EC3B4BC0B0C0439EEB6F3BC0888FA50166384BC070FEF37A68773BC020B44963ED394BC0405B55834C7A3BC0208CECA2AF3C4BC0702FF23F157B3BC088DCA2438B404BC030A25662477B3BC040C1729E78424BC0C0CA2BE675803BC0082D7920EB434BC0B072CD5772813BC0000888A2B2474BC040843E5BB2763BC0A0C40F7E71494BC000D3666517743BC05002F8E3DA4A4BC0A0B0B0834A743BC05002325ED64E4BC0E01DB31FF0883BC028EBFC7F2B514BC0A0BE6CC2A18B3BC0E08323A2B5524BC0F0983464028A3BC008B34564E7534BC0105E4B4205833BC0D8C3515FCF554BC0C0F0EEA0F5803BC06883EF1BED564BC000CFFA428F843BC0109780DCF0554BC0A0F302BDE18E3BC0089CFEC3B3564BC09042B91B9A923BC0F0F5F9A17D5C4BC0B0E589081D903BC0A8B06D03215F4BC04049AD5FCB8F3BC0804DFEE3A1614BC080FD1FFD4C953BC010141C4015634BC08076C4218E953BC00896985CA8644BC0404D777879923BC060CD65DCF0654BC0C06E0DF94A883BC0D0B300BEF7674BC0902BE7FD9B873BC0C0F67D00196A4BC0602C22B9DE8E3BC0289C7A9C866C4BC030B5EB61F69E3BC080A10DA4E06D4BC04005E5C2D6A03BC060B86B0305724BC0B041571E4EA03BC0F817A37DE5734BC0F08F00289AA33BC088FA85614F734BC0B0E5E11CE7B23BC000731163B5734BC0908132081FBA3BC0B88615425D764BC0508CA30304BF3BC0E878013E07784BC0700CF43C9BC53BC028061E6492794BC0501C7DA4FAC63BC0C85E485DC17E4BC0402DAC5AEDC53BC0A03079FCC27F4BC0403FBC4067CA3BC0303E805C70824BC060F0B880B4CB3BC0D0525DBD19874BC060D5BB57ADC43BC06881B45C538A4BC0301C7F22A3C73BC0B09C01BF638A4BC0A0C808BB0BCC3BC030271CFF3E834BC0E07CE88217D53BC008C407C30E834BC090AB859F72D83BC0402012FD13844BC0D0B6E2C5FADA3BC01066F4DB9E864BC080AE60D906DA3BC0D02AAEC24A8B4BC0A05D695E63D73BC030DC6F41288F4BC0D0D796E7FBD93BC0B07E050247904BC01019A1FE25DD3BC0D8F9B33FDE8F4BC07088F15A26E33BC0C011F11E11914BC0309094D977E53BC000EA10A299954BC0803C2187A6DC3BC0B043C8E045994BC060EA93D85EDB3BC098D6579E5C9D4BC0C091F5FBA9E13BC0F06E865D4DA04BC0603032DAC7EA3BC0101A0E64AEA24BC00073D9E6A9EE3BC0E0A7875D31A74BC0B0E0E8FBE1EB3BC068F18EDF30A94BC04051AA656CEC3BC088EF22014DAA4BC060FF3024EDEE3BC05041BAC24AAB4BC0803DE4C62CF73BC0205DCC5C18B14BC0500186D87DFB3BC0D0B25500FDB04BC06086853D0AFF3BC0D05F26FE0CAF4BC06001A6A10D043CC0C0FCDFC3CFAF4BC050C8EE79E3083CC03074519E5CB54BC0F09BE97BD50E3CC030B41064E7B74BC0908896BE10163CC0101E5E21C9B84BC07051CB03AD183CC05845403D9ABA4BC06056E7592C193CC048C2F8E2FCBD4BC060E96264AB133CC0B83930438EBF4BC0F0AB56D93E143CC068CE5DDD95C14BC020CC1819AC1C3CC08801E59F52C54BC0305E1ABDC51F3CC0B85A11213DC74BC070E92B07B3293CC0B8C2672101CB4BC08058901F7F253CC068B2E6E3DACA4BC0508672A5F21E3CC0F88D83A2EACD4BC06018E464C41D3CC098303BDE72CF4BC07017DA1917223CC0282358E15ECF4BC00093C15E0B263CC088C0CE62F0D04BC000B1EE82172D3CC0A0D4E7612FD44BC0B00F93258F2F3CC090BD9D4275D94BC0C021897FBB383CC0682B8EBCE4DF4BC0F0A0D25ED33B3CC068771BE0D8E34BC040D1187E38403CC0984D380340E34BC0A0264104FE443CC0901D403E93DD4BC0606685402E493CC090A1818385D54BC09093D9A370553CC0A0A5606342D84BC030B0899B54643CC0C806932364D84BC020D994BAF2693CC0A08E6BFD9FD94BC05001ADFE256D3CC000D490205CDB4BC080164D22516C3CC0602E2F7C7DDD4BC06012887879623CC0A00D793DB5E04BC0A041149F595E3CC000FA2960C9E74BC030DD2503955D3CC098F022C4EBEC4BC08054C403E55A3CC0004727A2EEEF4BC0A0B3237AFB5B3CC0D00BA72171F34BC050327E3D42693CC0E0FA9380EDF04BC08065B89DB7753CC0C8DF6D00FDF04BC0708B7007937A3CC010EE0D0055FE4BC090A80F1B487F3CC038348D5E2A024CC02048CEBF41833CC0F8D9815D31034CC00067FADD568A3CC018EE2ABD52004CC090114BBA4A933CC060AB2ABEF7FF4BC0309ABCC29D973CC040C7B322BF004CC040123264CB9A3CC010D736FF3E074CC0D06DBF2406A13CC0A8421B9CF90F4CC0D0179100E1AF3CC0A0FAF2E07D174CC0407D6A05C0C43CC0E804D43C9D214CC0A0F7EB9F1AC73CC050FEDBDB82254CC060ECBE5D11CC3CC080D6884067264CC0207E35A54AD03CC000A81C601E264CC0F09EB677F0E33CC088A17DDF30294CC0B09C0ADA00EC3CC088B652A3732C4CC08019D044BDF03CC0382438226E304CC0E096E42688F23CC0F864C9C35E344CC0400131A86EFA3CC0385948800C354CC0B057E3423A003DC058AC05E0BC324CC040614343AA043DC0605D2ADF4F354CC040D49D872F133DC008C912A31F414CC0E0BFA83AFF163DC020BBFB1F43454CC060BF293AE61C3DC0B836329C15494CC0D077F6BBCC1C3DC0100B617D584B4CC03006FAC1DC1E3DC02852C01EBD4D4CC0B0120DE598283DC0D0CCA76071524CC0502CDA4272323DC0807657DC9B534CC0C0F01A1E6C393DC03806A7C1FB524CC020C25D38F33F3DC050EE869FC6534CC0C0605224ED463DC0900944A1F4594CC0E0C0CC7ADC5B3DC018DB641DC7614CC0908B36BDC55F3DC028F6386326634CC0F0C6D2409F643DC0D8E5261D8F634CC0E0ECD29C9E6B3DC0F066577E8A634CC000DDB57F836E3DC0708F92DEA9664CC08009ABBD16743DC078B783BC90684CC02072B226C17B3DC0D0323E9D2B704CC010E6CEC3CF833DC0181C5C80287A4CC0D0C8A44160953DC07852EC1F277C4CC0F09135F8349B3DC028A19DBFED7B4CC0002A35029BA33DC038C35D1DAB804CC0002BF457AAA73DC05070C79F1A834CC0D098065E82AF3DC0F8737620248D4CC0F02A1C9A41C03DC058B4F2A17D904CC0201D6421C9C43DC0E80BF7E3A1954CC070252E00E1C73DC090CFE69E209D4CC010ACBEFE5DC73DC098408B3CBAA54CC0B0632983F8D43DC0301D5A5DF8A94CC0E03C9F0019E23DC02068EA9B51A94CC0509D3CE6E8ED3DC0306ACA4202AA4CC050926B03CCF83DC080A8661DABAC4CC05033ECC397013EC0C869B7A04CB34CC050E4B9183D073EC030893944C0B74CC020F77D27BA0E3EC0788EEBDD75BA4CC0C033103A75193EC058A9B5FEB2BD4CC0B01CBFDEA61F3EC0784A34E17AC84CC04093EBC6BB2B3EC09031F54388D14CC080156403762D3EC010B3E26052D24CC0E0724ED845313EC0D0366D6342D04CC0103135DCBA2F3EC038450FA4E0CD4CC0E073608369303EC0503BE5D2EBCB4CC010FB3ECD25323EC0 >>> >>> >>> STAsText: >>> POLYGON ((-57.593134271554504 -30.195889308811331, -57.600000011588179 >>> -30.199999991096718, -57.91666899226567 -31.366666996395907, >>> -58.200003002033213 -32.450000003984826, -58.150000997577706 >>> -32.600001989288046, -58.533334990890864 -33.516668992555651, >>> -58.316667990253961 -34.666666008237655, -57.133335002716649 >>> -35.46666699535939, -57.233335984509722 -36.183333986569551, >>> -56.666665999056647 -36.583334012482965, -57.300001995392961 >>> -37.450000997897405, -57.93333699348176 -38.316668012989453, >>> -58.8375040015041 -38.491668996830924, -59.741670011279041 >>> -38.666668986022273, -60.64583598957762 -38.841669004891173, >>> -61.5500019993525 -39.016668994082522, -62.333333992406608 >>> -38.950000010940016, -62.183336997441359 -39.316667988740107, >>> -62.300001985662107 -40.550001986982124, -62.716670013690987 >>> -41.050001989246596, -64.150001010362246 -41.016669004939047, >>> -65.133336995873037 -40.8500020059675, -64.800003010520413 >>> -42.199999999578779, -64.533338998463933 -42.316668005924271, >>> -64.116668005370343 -42.266669012398893, -63.7500020123739 >>> -42.083334013110516, -63.700003003560084 -42.816668008188742, >>> -64.21666698976918 -42.666665994107234, -64.966667007555031 >>> -42.666665994107234, -64.300002999262745 -43.00000201192762, >>> -65.316671989765439 -43.50663372455341, -65.5166699909388 >>> -43.50663372455341, -65.7333369915757 -43.50663372455341, >>> -65.816672001023164 -43.50663372455341, -65.966666998594178 >>> -43.50663372455341, -66.21666700512236 -43.50663372455341, >>> -66.28333900728893 -43.50663372455341, -66.808333998014746 >>> -43.50663372455341, -66.975004985479472 -43.50663372455341, >>> -67.050002999126832 -43.50663372455341, -67.166669984741873 >>> -43.50663372455341, -67.366667985915171 -43.50663372455341, >>> -67.5333390048562 -43.50663372455341, -67.650000997435313 >>> -43.50663372455341, -67.850004989892 -43.50663372455341, -67.966667013947358 >>> -43.50663372455341, -68.0666719905289 -43.50663372455341, >>> -68.333335003438663 -43.50663372455341, -68.416670013785392 >>> -43.50663372455341, -68.43333398873682 -43.50663372455341, >>> -68.466666993728779 -43.50663372455341, -68.516669997331064 >>> -43.50663372455341, -68.583335009067468 -43.50663372455341, >>> -68.616668014958748 -43.50663372455341, -68.625003014263939 >>> -43.50663372455341, -68.633337014422352 -43.50663372455341, >>> -68.800003008851149 -43.50663372455341, -68.850005013306713 >>> -43.50663372455341, -68.900000995002586 -43.50663372455341, >>> -68.91666999446619 -43.50663372455341, -69.133336994203773 >>> -43.50663372455341, -69.150001000631448 -43.50663372455341, >>> -69.249999985030286 -43.50663372455341, -69.300002988632571 >>> -43.50663372455341, -69.383336999832579 -43.50663372455341, >>> -69.7000040154914 -43.50663372455341, -69.86666801252602 -43.50663372455341, >>> -70.0000000028162 -43.50663372455341, -71.1333370095569 -43.50663372455341, >>> -71.500000006012328 -43.50663372455341, -71.566672009078218 >>> -43.50663372455341, -71.7666700093522 -43.50663372455341, >>> -71.800003015243476 -43.50663372455341, -71.833334990511673 >>> -43.133335002263834, -72.133337000596043 -42.5833339865967, >>> -71.850004988222736 -41.783334989674643, -71.716667005749912 >>> -40.43333401031424, -71.466667000121049 -39.3833350113606, >>> -71.050002997457568 -38.75000198818293, -70.999999993855283 >>> -38.166665998008625, -71.016669992465665 -37.325000002231491, >>> -71.033338991929213 -36.4833330109048, -70.333334987315538 >>> -35.816667998969137, -70.366667992307441 -35.150000996833796, >>> -69.883337011989624 -33.883335009833729, -69.98333699553524 >>> -33.300002004509224, -70.258338003391884 -32.483334012620162, >>> -70.533339011248472 -31.666666986602991, -70.333334987315538 >>> -31.033332997553487, -70.0166700005272 -30.400000004053425, >>> -69.908337015070629 -29.674999994744496, -69.8000029998903 >>> -28.949998988986749, -69.216670007156324 -28.050000014814259, >>> -68.633337014422352 -27.149999985737054, -68.300002996694161 >>> -26.883334005064626, -68.566672001786571 -26.300000999740121, >>> -68.49999999962 -24.900000002526554, -68.2499999939912 -24.400000000262082, >>> -67.333335012399516 -24.016667007894284, -66.999999996423867 >>> -23.000000993248193, -67.183333991169548 -22.816665994859136, >>> -66.233337002833366 -21.783333005123325, -66.033339001660067 >>> -21.916666990109718, -64.833334985788667 -22.133334007833753, >>> -64.400000985414181 -22.716667012258938, -64.016669987742659 >>> -22.1666669921413, -62.816667999842423 -22.000000987819931, >>> -62.63333500424352 -22.233331994884509, -61.741668996009139 >>> -23.049999986773571, -60.8500019895273 -23.866668008340241, >>> -60.050001996156368 -24.191667992635132, -59.250002002785493 >>> -24.516667011058132, -58.40000200235329 -24.97499998568918, >>> -57.550002001021824 -25.433332989997893, -58.075001984783512 >>> -26.374999987353249, -58.600002000021561 -27.316665990058425, >>> -57.433336014553561 -27.391666997548839, -56.266668998462535 >>> -27.466667009489754, -55.566667989490554 -27.250000987315218, >>> -54.633335007582048 -26.199999003511778, -54.591335594123905 >>> -25.591862827020861, -54.548499997338183 -25.588975987119056, >>> -54.533447002219589 -25.598053010735327, -54.536472000468166 >>> -25.617582007136832, -54.523807995864445 -25.628049988753503, >>> -54.5000570089893 -25.614224987288935, -54.460776995160984 >>> -25.64304199544938, -54.444610991904312 -25.662855002244328, >>> -54.437195006183572 -25.692109995521548, -54.429165012843953 >>> -25.695060989459648, -54.422359007578109 -25.688372003076893, >>> -54.424862003347982 -25.658250989665191, -54.392525003798767 >>> -25.633256995853969, -54.38549800723132 -25.598401993548123, >>> -54.370082986432521 -25.593944991342426, -54.356193995507567 >>> -25.606648995991407, -54.345195991258379 -25.607027013415916, >>> -54.327972001284763 -25.571882001339304, -54.294224009538368 >>> -25.557501008419308, -54.278804994850418 -25.557210998648543, >>> -54.249610994492571 -25.596883985626732, -54.23466501509813 >>> -25.59261300638417, -54.237082997956634 -25.570181014659852, >>> -54.230141015199877 -25.562542010565721, -54.199192005888335 >>> -25.581684006214971, -54.176781010635466 -25.584176996127951, >>> -54.175055993172066 -25.571083004078332, -54.204802985746426 >>> -25.557127001971025, -54.20602800354385 -25.54062699680793, >>> -54.190472012218322 -25.533900987135894, -54.160529994467367 >>> -25.540733002593527, -54.143585012858068 -25.519983002968047, >>> -54.111888984400821 -25.496187007723279, -54.0928339909633 >>> -25.500078009019319, -54.0950810109054 -25.518138986314455, >>> -54.123473999520911 -25.565190995978639, -54.098637000356348 >>> -25.617744001114659, -54.089972995777941 -25.613580989078969, >>> -54.089584006624705 -25.584675008292209, -54.0786090034357 >>> -25.557963988393169, -54.050303992796387 -25.583561006403329, >>> -54.040501013954952 -25.583037999381929, -54.028830985923435 >>> -25.566842989392569, -54.017943992186929 -25.563970987404844, >>> -53.990475010191744 -25.585731997661071, -53.970221994805513 >>> -25.599852013623433, -53.976665008519319 -25.6114959855978, >>> -53.964221994317882 -25.61336499620927, -53.9621390089153 >>> -25.641525011855776, -53.9550819893812 -25.646614012617533, >>> -53.944362993496384 -25.631110998554107, -53.95272099386176 >>> -25.624591997524703, -53.947445011459592 -25.611487996020855, >>> -53.933028992644495 -25.62204199419233, -53.915530988241755 >>> -25.616163010074274, -53.920418012067614 -25.629452010213413, >>> -53.913471003899417 -25.628657988001919, -53.9121090094643 >>> -25.635763009748644, -53.8899420074726 -25.622804993391128, >>> -53.894558011611707 -25.642462005585571, -53.875194985090673 >>> -25.644077004488508, -53.889026988676562 -25.660965006852621, >>> -53.874972995541668 -25.654202998219091, -53.861110999566108 >>> -25.658971990525231, -53.854221010213223 -25.67368701143198, >>> -53.858219013743621 -25.67990098850936, -53.841553010821031 >>> -25.687558987184104, -53.8492510014471 -25.690482996065441, >>> -53.853831989583682 -25.691153013460337, -53.850303995128115 >>> -25.705814006696869, -53.871970997453957 -25.6937369949776, >>> -53.863914008265681 -25.704619987630451, -53.878277003053938 >>> -25.707807988896207, -53.857612996600949 -25.723204000725275, >>> -53.86458200668261 -25.744235991766175, -53.848083003364252 >>> -25.740863986515308, -53.834304991475733 -25.749422013187143, >>> -53.8414459941975 -25.751730004464832, -53.839305990878927 >>> -25.76003999002711, -53.848609998878828 -25.758093011792994, >>> -53.855998989650232 -25.766070989245748, -53.841777996011729 >>> -25.770652991817542, -53.830223004757613 -25.781276997712382, >>> -53.84252498458045 -25.790600013782694, -53.822056003304112 >>> -25.792027000422195, -53.827498985310513 -25.807616996012996, >>> -53.818583997940152 -25.815244995103455, -53.837723005142323 >>> -25.815715994331924, -53.835666985011471 -25.825611009789782, >>> -53.8486940135428 -25.8365170071001, -53.834053009537 -25.849394010730521, >>> -53.84391400544115 -25.857607004411932, -53.83174900135657 >>> -25.858620005242358, -53.83541500307274 -25.868741988896033, >>> -53.822917997173931 -25.87125801224488, -53.848389007577225 >>> -25.884501003968353, -53.81916801227004 -25.89703200963578, >>> -53.8337519983599 -25.91440400553239, -53.818222003736253 >>> -25.91222999974724, -53.819941996687476 -25.927788007352774, >>> -53.833251997794662 -25.919715994090666, -53.831778993746241 >>> -25.9298289926179, -53.84241899858 -25.933174012812003, -53.839000984913412 >>> -25.953674010805855, -53.827277994008909 -25.962621995200777, >>> -53.835498986260461 -25.9715650036469, -53.813472986271734 >>> -25.979210007118297, -53.816860010200514 -25.989373989110732, >>> -53.801502009116291 -25.984961999771258, -53.80424899724801 >>> -25.995388012726778, -53.779331011436796 -26.00841000685341, >>> -53.779555997526813 -26.021218993859463, -53.7630539976675 >>> -26.035770000911157, -53.754886997113317 -26.033269986393748, >>> -53.755806009798448 -26.041084008447342, -53.735194995895995 >>> -26.04172701110781, -53.725498003055122 -26.065077001981308, >>> -53.73877701352518 -26.084532011159467, -53.74085999892776 >>> -26.116553995288939, -53.724502995859837 -26.128172007433591, >>> -53.715056986710181 -26.126302996822119, -53.699638002599158 >>> -26.152242998267809, -53.678138998125064 -26.164124006348061, >>> -53.6714709992205 -26.175543000326286, -53.649974990388046 >>> -26.194248005508996, -53.652943002196935 -26.204951998903709, >>> -53.641750003348079 -26.215479012917683, -53.652416005782982 >>> -26.235271006154164, -53.642132689153186 -26.24532263134887, >>> -53.644443998929205 -26.247500002397032, -53.644032757850937 >>> -26.248741170219489, -53.645557007067225 -26.248507997601052, >>> -53.640751002263642 -26.259382005127463, -53.644695014096726 >>> -26.287278995160761, -53.67258101081751 -26.324391999929276, >>> -53.670470998989344 -26.330245990089566, -53.684386986662275 >>> -26.336248014051705, -53.688552988044364 -26.353974992138376, >>> -53.695057014462634 -26.354853011926764, -53.689166994763923 >>> -26.35931399453176, -53.698891014030437 -26.363431993701226, >>> -53.70008101492607 -26.387527013520753, -53.708529989808653 >>> -26.387438011216773, -53.695751010480762 -26.402342011158169, >>> -53.704304004546486 -26.415512010308476, -53.687472998514579 >>> -26.428343006422551, -53.688029986418883 -26.443026008767106, >>> -53.703029988986941 -26.441410013415407, -53.696751010711921 >>> -26.468474992075983, -53.7029720025011 -26.462836995684825, >>> -53.71411100965264 -26.470567986033416, -53.70611200695015 >>> -26.480876988199668, -53.701416013512471 -26.473007006732132, >>> -53.694640997984379 -26.474643986864123, -53.694331997230393 >>> -26.489938997634738, -53.7020840119294 -26.490094992235242, >>> -53.707279006785541 -26.500071986292028, -53.702861990235931 >>> -26.507894992572744, -53.728862993594134 -26.502726004311, >>> -53.72555499039413 -26.52515600673496, -53.715529990527443 >>> -26.525959014072896, -53.723251014589323 -26.531897000910703, >>> -53.719250015417231 -26.537045999941654, -53.74044401392581 >>> -26.545006007141637, -53.72369399543993 -26.553769987551391, >>> -53.735221991744709 -26.565964009160552, -53.718055988256879 >>> -26.556975987848205, -53.706054988134838 -26.559434998676977, >>> -53.721194993559152 -26.562025009249169, -53.723414986176238 >>> -26.588408996987482, -53.731136010238117 -26.586247985506361, >>> -53.728775014718678 -26.6019189938242, -53.73422199151355 >>> -26.608510988326088, -53.728275015052759 -26.616768000223487, >>> -53.731918014809366 -26.629532003141662, -53.740222991147959 >>> -26.629620010795406, -53.7390019996152 -26.643297007236356, >>> -53.749973008015729 -26.6348000031615, -53.758358004229763 >>> -26.640725990345402, -53.733307005093138 -26.645096010124405, >>> -53.724998002489883 -26.657828990029827, -53.72169099933592 >>> -26.647123006435436, -53.717972005069157 -26.666535987597172, >>> -53.725807003809109 -26.666688996448613, -53.730720992007377 >>> -26.677526010363351, -53.715443010798708 -26.682394013528324, >>> -53.728667998994467 -26.691484002670279, -53.742194996614785 >>> -26.680012005349624, -53.731472006840818 -26.699702996628275, >>> -53.733081987526816 -26.715714998182023, -53.747359999980574 >>> -26.718659992742857, -53.753334003766327 -26.709487996223686, >>> -53.756832006731486 -26.718950002513566, -53.741721992797579 >>> -26.729958991082071, -53.749470011808796 -26.739869986593078, >>> -53.735694995561914 -26.741197991152035, -53.729641003376969 >>> -26.730553000476959, -53.714053989938009 -26.748852008528161, >>> -53.723556987326049 -26.7626909998462, -53.743000003145596 >>> -26.762285003614068, -53.728694994843181 -26.773100008420784, >>> -53.698277007310878 -26.768062986673669, -53.71591601551529 >>> -26.780149012297613, -53.708030988390192 -26.797006985399889, >>> -53.699444007146269 -26.79692600324978, -53.696278005995339 >>> -26.811001006345975, -53.709746986552943 -26.811876010707579, >>> -53.687443007024228 -26.836413991592622, -53.69422098671771 >>> -26.8462920026696, -53.67627700492335 -26.843028989852712, >>> -53.658890010133973 -26.860891008336637, -53.695163999609861 >>> -26.857669993858565, -53.678863984780321 -26.868850985859012, >>> -53.694640997984379 -26.886123999675078, -53.672000991276093 >>> -26.89210898957873, -53.678749010056151 -26.907553000922462, >>> -53.6723589897922 -26.912719998984528, -53.695693991665451 >>> -26.926853010150239, -53.669918005873512 -26.941788003426723, >>> -53.708667996169936 -26.933878013820049, -53.702305003230947 >>> -26.959184993281156, -53.711609011230848 -26.964407013663617, >>> -53.725219992938207 -26.957846013396136, -53.735832003675796 >>> -26.973956997929747, -53.71644600757088 -26.987827012260482, >>> -53.742443015241349 -26.99064999130502, -53.731136010238117 >>> -27.00412799925715, -53.739749986431377 -27.013882005517416, >>> -53.749527000047124 -27.004829009987134, -53.761307008867618 >>> -27.006429991157574, -53.746364992785345 -27.03039898538384, >>> -53.758778015496432 -27.034155006537162, -53.762001003986427 >>> -27.044412995560663, -53.784332010840046 -27.026534997922909, >>> -53.775081993638196 -27.049519995353535, -53.757805011113987 >>> -27.060597996095851, -53.762306010851319 -27.065554006914624, >>> -53.771641009488292 -27.064999010109318, -53.791137985528962 >>> -27.04153399864623, -53.801276991550026 -27.040080993721119, >>> -53.796275992146775 -27.058886999962226, -53.770415992590188 >>> -27.072300005817397, -53.780167007705415 -27.077734009891969, >>> -53.79741699528023 -27.066151001159369, -53.80424899724801 >>> -27.07972500634213, -53.7929149972955 -27.089783012226633, >>> -53.774917990574977 -27.101763002387429, -53.794581996796751 >>> -27.109539005602244, -53.810196005185105 -27.097799007618903, >>> -53.817360009866434 -27.100599011683528, -53.806109993101586 >>> -27.110069007550351, -53.8041420130001 -27.12175401289096, >>> -53.813862006901275 -27.128687000628759, -53.823334013652129 >>> -27.12627598841533, -53.823775996255279 -27.132466991412116, >>> -53.816970989236893 -27.139228999146383, -53.798553004478492 >>> -27.136086011646171, -53.79733700598166 -27.143728000590158, >>> -53.827389004521592 -27.14595401416824, -53.835835014339409 >>> -27.154454998642393, -53.834166985114393 -27.167784006920726, >>> -53.865917005269011 -27.125198014266232, -53.881690991355129 >>> -27.129863985636632, -53.891251007558424 -27.161647997465991, >>> -53.903751009998246 -27.175245006406954, -53.949974004830722 >>> -27.151426006504664, -53.959361996917607 -27.161714989762572, >>> -53.960750987201379 -27.195359992948852, -54.011916995850584 >>> -27.196466005260845, -54.020251994256455 -27.212211996351527, >>> -54.023193010216687 -27.251805990479909, -54.053890006113306 >>> -27.263555997917479, -54.075253001620354 -27.295425001973797, >>> -54.110916011494567 -27.303146012545881, -54.154972007159813 >>> -27.295699997563247, -54.154305006990342 -27.2660309887994, >>> -54.1636350125915 -27.254153990796055, -54.173415989519413 >>> -27.255325005204952, -54.185775987304396 -27.267488003801418, >>> -54.190472012218322 -27.307332995110926, -54.205749993426991 >>> -27.33275800878971, -54.21619400541357 -27.385080007774036, >>> -54.261641987004282 -27.398243011997579, -54.268196011230771 >>> -27.416206002761669, -54.265835015711275 -27.435109995533821, >>> -54.28480499533805 -27.447401009023849, -54.336192993536315 >>> -27.401636001129418, -54.333752009617569 -27.45680799299339, >>> -54.351191996957539 -27.466280007838179, -54.39160898675533 >>> -27.415478006974922, -54.411194003724688 -27.405219989173133, >>> -54.434029005032642 -27.423326008112724, -54.469085997764239 >>> -27.42698898900619, -54.468139989230451 -27.437188998738463, >>> -54.440612989273234 -27.466437992638419, -54.45255700205621 >>> -27.477729996050812, -54.474109998227732 -27.480792996051093, >>> -54.504250006220047 -27.48155798544957, -54.519305997879655 >>> -27.501798997584729, -54.530613001983568 -27.50565098539181, >>> -54.560139004155644 -27.46365900303158, -54.573776014041186 >>> -27.453481996158189, -54.584805008028184 -27.454261999737923, >>> -54.615916990679239 -27.534913998822844, -54.634140013213539 >>> -27.545437003659231, -54.646168010083557 -27.539098990288892, >>> -54.655499013932115 -27.511798995399715, -54.670391001629184 >>> -27.503747995696131, -54.679110996198517 -27.517810999138419, >>> -54.671413004673127 -27.558131993504162, -54.677361010857624 >>> -27.572664005975241, -54.722584006358261 -27.562943013826668, >>> -54.74319498878441 -27.561696986967263, -54.762753009005792 >>> -27.583206005392185, -54.774086011610166 -27.584200010742734, >>> -54.78638799143306 -27.572165993811041, -54.796412992199066 >>> -27.5323939950747, -54.812247991888967 -27.529723996103314, >>> -54.828887998109622 -27.558085985987759, -54.847858009212644 >>> -27.620946998639909, -54.85841799417085 -27.628276997483454, >>> -54.890777995679628 -27.626191994002227, -54.905441002498208 >>> -27.639070987832326, -54.900860014361626 -27.698839001799286, >>> -54.903972991485716 -27.727036011057464, -54.924721012602674 >>> -27.746155002049193, -54.937721014708416 -27.771899995405363, >>> -54.949780001316242 -27.777262001556949, -54.990276012742072 >>> -27.773152987513868, -54.998138007330681 -27.79063801380039, >>> -55.0190539957224 -27.795723004485239, -55.055473013465985 >>> -27.7682699998453, -55.080669010293434 -27.779832988770238, >>> -55.081169009959353 -27.797053994793373, -55.025360001322383 >>> -27.832390004882541, -55.02388799552142 -27.845499010214155, >>> -55.0318600023752 -27.855388992166638, -55.051722997985166 >>> -27.85166700945274, -55.088219008486362 -27.841359997486165, >>> -55.118416003817742 -27.851500009848507, -55.127166989024204 >>> -27.863861002283613, -55.123969996336825 -27.887304004638679, >>> -55.133334987363469 -27.896360014696427, -55.168751009234256 >>> -27.861916013349855, -55.197445009026865 -27.856915985214414, >>> -55.229388993158125 -27.881500003293468, -55.25236100257996 >>> -27.917112004521528, -55.270946986089371 -27.932279995048702, >>> -55.30619401096169 -27.921416992525963, -55.321803993984588 >>> -27.923529008942978, -55.3304749889931 -27.933305990183158, >>> -55.338219014115225 -27.965526991579736, -55.383555984293935 >>> -27.982389004436584, -55.382720987172092 -27.996250004862645, >>> -55.367584007966457 -28.015832999256759, -55.373527988785554 >>> -28.034721012875082, -55.416888990185157 -28.057945007832984, >>> -55.43674898925417 -28.086193000556307, -55.443638010936525 >>> -28.096389996660434, -55.457832008726371 -28.098332995394571, >>> -55.484279986824333 -28.076833986423821, -55.496529005572881 >>> -28.079083999309603, -55.512386008075566 -28.112001007608455, >>> -55.541584002322509 -28.124111002862435, -55.556553014253439 >>> -28.162888000698729, -55.585971999801984 -28.146470997563029, >>> -55.584804999966593 -28.120889988384363, -55.608722986446026 >>> -28.116277986228283, -55.620692995930938 -28.133164993042953, >>> -55.620083015476041 -28.148610994586306, -55.632335997536813 >>> -28.176140006326932, -55.657695997427481 -28.185777996448167, >>> -55.69889099790737 -28.221610995273068, -55.749167985361794 >>> -28.233694006369603, -55.780056012545913 -28.250862008150989, >>> -55.775391008846043 -28.269500986009575, -55.731056004816423 >>> -28.285862000053726, -55.668137014671743 -28.333750000590555, >>> -55.689526006880669 -28.39191600905923, -55.690555998602179 >>> -28.413859998073463, -55.700195004957322 -28.426361005055981, >>> -55.713748999325617 -28.423113006420408, -55.730392001187965 >>> -28.384665997715615, -55.755531009777087 -28.36855501408138, >>> -55.810832996841782 -28.36555499720015, -55.850945012150248 >>> -28.355056987220905, -55.874470013788596 -28.359305986133791, >>> -55.9018899980216 -28.411166995343876, -55.882247993713236 >>> -28.459833009260819, -55.882720998429761 -28.478805985428551, >>> -55.986969000627255 -28.497193995783675, -56.016918009707695 >>> -28.512722003804924, -56.024944008258842 -28.540387986787209, >>> -56.002524991952839 -28.575359004332824, -55.999748011431393 >>> -28.592250987096293, -56.005832994253524 -28.604666006302296, >>> -56.056610013749491 -28.628999993072114, -56.1248049862964 >>> -28.687027011321163, -56.1835290132924 -28.768555010317186, >>> -56.262611011052115 -28.777750010594559, -56.293055994433075 >>> -28.797139987098831, -56.300026003661515 -28.813638997611747, >>> -56.297801984779653 -28.890387994847458, -56.321803985923054 >>> -28.921887996283374, -56.34727899111482 -28.940388012700623, >>> -56.378361012852508 -28.947390013511608, -56.409141991936792 >>> -28.978250991787036, -56.414444003416463 -29.000888996604488, >>> -56.396389010210157 -29.018223003339926, -56.416499992071067 >>> -29.074943996460433, -56.508777984783649 -29.089831987570392, >>> -56.541110990443713 -29.112887988273883, -56.570971989172392 >>> -29.11249899642263, -56.588637993225461 -29.12055599550348, >>> -56.60733398810072 -29.158582988444948, -56.644085008557909 >>> -29.197055986657062, -56.653193991381158 -29.224305993630651, >>> -56.648307997279005 -29.2498049954321, -56.654498997577889 >>> -29.277055997955131, -56.702778013440479 -29.358833003033283, >>> -56.76388900208093 -29.374111009422961, -56.7746089962132 >>> -29.393055011233571, -56.777804988854484 -29.420388986106332, >>> -56.777663986851508 -29.431694013500419, -56.802059003412865 >>> -29.453471998459918, -56.816917003931792 -29.483416002813215, >>> -56.876331000681262 -29.514888990414022, -56.954361004806 >>> -29.583500006418774, -56.969943991080925 -29.606277001455908, >>> -56.968193008391893 -29.6390839938922, -57.005222006590373 >>> -29.654942986594506, -57.02425000417918 -29.6855829969507, >>> -57.102665002668743 -29.751001006962667, -57.128834002979318 >>> -29.768694006864393, -57.169003005626848 -29.780776988283321, >>> -57.2275580050474 -29.778778001356898, -57.294745986933037 >>> -29.831916997532687, -57.327891987801536 -29.883194006802, >>> -57.322803010422149 -29.929335012243712, -57.328193997226094 >>> -29.971862996828634, -57.348972010732723 -30.006222005048869, >>> -57.400775994832259 -30.028276009925605, -57.435555008023925 >>> -30.057527988675361, -57.456722011583167 -30.099444989162066, >>> -57.482024992658523 -30.123639985712259, -57.566249990971244 >>> -30.170834000123477, -57.636970991824569 -30.177581989225928, >>> -57.643138991063211 -30.192471999313852, -57.6270260127327 >>> -30.186445010172122, -57.608417994934314 -30.189110003517158, >>> -57.593134271554504 -30.195889308811331)) >>> >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From teeca at sohu.com Wed Sep 23 07:38:28 2009 From: teeca at sohu.com (=?GB2312?B?y9G6/NPSytY=?=) Date: Wed, 23 Sep 2009 22:38:28 +0800 Subject: [mapserver-users] LABEL_NO_CLIP=ON not working for point type feature layers Message-ID: <4ABA32E4.5040402@sohu.com> Hi all. recently I try to output my map into tiled images, so far is O.K, Polyline Feature layer duplicate labels can be fixed using PROCESSING "LABEL_NO_CLIP=ON", but now I encounter point feature layer's labels problem: When I get my tile images output, the label will be clipped out at tile image's edge. The directive PROCESSING "LABEL_NO_CLIP=ON" is not working for point feature layers ,can anybody give some suggestions? the appearance of my clipped label is in the attachment.You can see the gray text(polyline feature label) is properly splitted on the two images, while red text(point feature label) is clipped. Snippet from my mapfile NAME "POI_01_CityDistName_P" TYPE point STATUS DEFAULT OPACITY 100 SIZEUNITS pixels LABELITEM "poiname" LABELCACHE on POSTLABELCACHE FALSE PROCESSING "LABEL_NO_CLIP=ON" TRANSFORM true CLASS NAME "Untitled class" LABEL ANGLE auto FONT "C_HEI" ENCODING "GB18030" TYPE truetype PRIORITY 1 SIZE 13 MAXSIZE 256 MINSIZE 4 COLOR 248 67 52 OUTLINECOLOR 255 251 240 BACKGROUNDSHADOWSIZE 1 1 POSITION uc ANTIALIAS FALSE FORCE FALSE PARTIALS TRUE END regards, teeca -------------- next part -------------- A non-text attachment was scrubbed... Name: clipped point label.gif Type: image/gif Size: 36012 bytes Desc: not available URL: From teeca at sohu.com Wed Sep 23 07:32:29 2009 From: teeca at sohu.com (=?UTF-8?B?5pCc54uQ5Y+z5omL?=) Date: Wed, 23 Sep 2009 22:32:29 +0800 Subject: [mapserver-users] LABEL_NO_CLIP=ON not working for point type feature layers In-Reply-To: <20090923114038.8FD0312A901D@lists.osgeo.org> References: <20090923114038.8FD0312A901D@lists.osgeo.org> Message-ID: <4ABA317D.5090006@sohu.com> Hi all. recently I try to output my map into tiled images, so far is O.K, Polyline Feature layer duplicate labels can be fixed using PROCESSING "LABEL_NO_CLIP=ON", but now I encounter point feature layer's labels problem: When I get my tile images output, the label will be clipped out at tile image's edge. The directive PROCESSING "LABEL_NO_CLIP=ON" is not working for point feature layers ,can anybody give some suggestions? the appearance of my clipped label is in the attachment.You can see the gray text(polyline feature label) is properly splitted on the two images, while red text(point feature label) is clipped. Snippet from my mapfile NAME "POI_01_CityDistName_P" TYPE point STATUS DEFAULT OPACITY 100 SIZEUNITS pixels LABELITEM "poiname" LABELCACHE on POSTLABELCACHE FALSE PROCESSING "LABEL_NO_CLIP=ON" TRANSFORM true CLASS NAME "Untitled class" LABEL ANGLE auto FONT "C_HEI" ENCODING "GB18030" TYPE truetype PRIORITY 1 SIZE 13 MAXSIZE 256 MINSIZE 4 COLOR 248 67 52 OUTLINECOLOR 255 251 240 BACKGROUNDSHADOWSIZE 1 1 POSITION uc ANTIALIAS FALSE FORCE FALSE PARTIALS TRUE END regards, teeca -------------- next part -------------- A non-text attachment was scrubbed... Name: clipped point label.gif Type: image/gif Size: 36012 bytes Desc: not available URL: From szekerest at gmail.com Sun Sep 27 14:10:04 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 27 Sep 2009 23:10:04 +0200 Subject: [mapserver-users] couldn't get value from raster map In-Reply-To: <20090927103604.M35321@deprem.gov.tr> References: <20090927103604.M35321@deprem.gov.tr> Message-ID: Hi, According to http://mapserver.org/input/raster.html#raster-query I suspect those values could be retrieved as the "red", "green" and "blue" attributes of the returned features. Best regards, Tamas 2009/9/27 Ahmet Temiz > hello > > I am using java mapscript and trying to get values from raster layer. > > But I can only get x,y values but not other values especially color values > of > the pixel I had clicked. > > here is the my code's fragment : > > int q = slplayer.queryByPoint(map0, qpt, mapscript.MS_MULTIPLE, 10.0 ); > int numResults = slplayer.getNumResults(); > > if (numResults != 0) { > for (int j = 0; j < numResults; j++) { > resultCacheMemberObj resultMember = slplayer.getResult(j); > slplayer.open(); > shapeObj shape = new shapeObj(slplayer.getType() > .swigValue()); > int s = slplayer.getShape(shape, > resultMember.getTileindex(), > resultMember.getShapeindex()); > > System.out.println(" *** s "+s); -----> 0 > > > if (shape != null) { > > System.out.println(" *** numResults "+numResults); ----> 2 > > int shpix = shape.getIndex(); > > System.out.println(" *** shpix "+shpix); ! -------> -1 > > System.out.println(" *** shape.getValue > "+shape.getValue(j)); -----> only > gives x,y values bot not RGB values > > } > slplayer.close(); > } > > here is the related part of map file : > > LAYER > NAME "slp_cat" > STATUS OFF > TILEINDEX "/home/orkun/data/hsunucu/mapshar/rast_index.shp" > TILEITEM "Location" > TYPE RASTER > TEMPLATE "/home/orkun/workspace2/pro1/WebContent/Raster_Query.html" > PROCESSING "SCALE=1,9" > #PROCESSING "SCALE_BUCKETS=9" > CLASS > NAME "0-5" > EXPRESSION ([pixel] =1) > STYLE > COLOR 254 254 25 > END > END > > CLASS > NAME "5-10" > EXPRESSION ([pixel] =2) > STYLE > COLOR 249 177 20 > END > END > CLASS > NAME "10-15" > EXPRESSION ([pixel] =3) > STYLE > COLOR 25 254 82 > END > END > > CLASS > NAME "15-20" > EXPRESSION ([pixel] =4) > STYLE > COLOR 25 254 225 > END > END > > CLASS > NAME "20-25" > EXPRESSION ([pixel] =5) > STYLE > COLOR 25 140 254 > END > END > > CLASS > NAME "30-35" > EXPRESSION ([pixel] =6) > STYLE > COLOR 53 25 254 > END > END > > CLASS > NAME "35-45" > EXPRESSION ([pixel] =7) > STYLE > COLOR 196 25 254 > END > END > > CLASS > NAME "35-45" > EXPRESSION ([pixel] =8) > STYLE > COLOR 254 25 169 > END > END > > CLASS > NAME "45-90" > EXPRESSION ([pixel] =9) > STYLE > COLOR 254 25 25 > END > END > > END > > ~~~~~~~~~~~~~~~~~ > > Could you possibly tell me where I am wrong ? > > kind regards > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > 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 warmerdam at pobox.com Sun Sep 27 14:24:57 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sun, 27 Sep 2009 17:24:57 -0400 Subject: [mapserver-users] couldn't get value from raster map In-Reply-To: References: <20090927103604.M35321@deprem.gov.tr> Message-ID: <4ABFD829.5020107@pobox.com> > 2009/9/27 Ahmet Temiz > > > hello > > I am using java mapscript and trying to get values from raster layer. > > But I can only get x,y values but not other values especially color > values of > the pixel I had clicked. > > here is the my code's fragment : > > int q = slplayer.queryByPoint(map0, qpt, mapscript.MS_MULTIPLE, 10.0 ); > int numResults = slplayer.getNumResults(); > > if (numResults != 0) { > for (int j = 0; j < numResults; j++) { > resultCacheMemberObj resultMember = ... > System.out.println(" *** shape.getValue > "+shape.getValue(j)); -----> only > gives x,y values bot not RGB values Ahmet, As I read this code, you are looking for field "j" of the shape, but j is actually the index into the resultset, not anything to do with fields. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From temiz at deprem.gov.tr Sun Sep 27 23:35:32 2009 From: temiz at deprem.gov.tr (orkun) Date: Mon, 28 Sep 2009 09:35:32 +0300 Subject: [mapserver-users] couldn't get value from raster map In-Reply-To: <4ABFD829.5020107@pobox.com> References: <20090927103604.M35321@deprem.gov.tr> <4ABFD829.5020107@pobox.com> Message-ID: <1254119732.5928.3.camel@orkun-desktop> Thank you So, How can I retrieve the other values ? especially class values such as 'NAME "0-5"' in map file regards On Sun, 2009-09-27 at 17:24 -0400, Frank Warmerdam wrote: > > 2009/9/27 Ahmet Temiz > > > > > hello > > > > I am using java mapscript and trying to get values from raster layer. > > > > But I can only get x,y values but not other values especially color > > values of > > the pixel I had clicked. > > > > here is the my code's fragment : > > > > int q = slplayer.queryByPoint(map0, qpt, mapscript.MS_MULTIPLE, 10.0 ); > > int numResults = slplayer.getNumResults(); > > > > if (numResults != 0) { > > for (int j = 0; j < numResults; j++) { > > resultCacheMemberObj resultMember = > ... > > System.out.println(" *** shape.getValue > > "+shape.getValue(j)); -----> only > > gives x,y values bot not RGB values > > Ahmet, > > As I read this code, you are looking for field "j" of the shape, but > j is actually the index into the resultset, not anything to do with fields. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs TURKEY -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From dgwalton at gmail.com Mon Sep 28 04:55:34 2009 From: dgwalton at gmail.com (Dan Walton) Date: Mon, 28 Sep 2009 04:55:34 -0700 (PDT) Subject: [mapserver-users] MapServer dynamic map creation - Is this possible? Message-ID: <1254138934774-3729010.post@n2.nabble.com> I am new to WMS, so bear with my ignorance please. I have a service that processes imagery and outputs large TIFF + World file images (5-40 MB), and some shapefiles. Currently these images have no pyramid or tiling. I would like to further make the images web map friendly and my thought is that WMS and MapServer is the way to go. We will likely be creating dozens or perhaps hundreds of these images per day. This needs to run on Windows alongside or within IIS. So I have a volley of questions for anyone who might have answers. Feel free to skip any: 1. Can MapServer even do this, that is, host several large images and allow new ones to be added on the fly via the api? 2. Can each image be a map layer or does each image need its own mapserver instance? 3. Does the OSGeo4W include utilities to tile and pyramid the images or do I have to arrange for that myself? Thanks, Dan Walton gisfiretools.com -- View this message in context: http://n2.nabble.com/MapServer-dynamic-map-creation-Is-this-possible-tp3729010p3729010.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adams at terrestris.de Mon Sep 28 05:03:46 2009 From: adams at terrestris.de (Till Adams) Date: Mon, 28 Sep 2009 14:03:46 +0200 Subject: [mapserver-users] MapServer dynamic map creation - Is this possible? In-Reply-To: <1254138934774-3729010.post@n2.nabble.com> References: <1254138934774-3729010.post@n2.nabble.com> Message-ID: <4AC0A622.50100@terrestris.de> Dan Walton schrieb: > I am new to WMS, so bear with my ignorance please. > > I have a service that processes imagery and outputs large TIFF + World file > images (5-40 MB), and some shapefiles. Currently these images have no > pyramid or tiling. I would like to further make the images web map friendly > and my thought is that WMS and MapServer is the way to go. We will likely be > creating dozens or perhaps hundreds of these images per day. This needs to > run on Windows alongside or within IIS. > > So I have a volley of questions for anyone who might have answers. Feel free > to skip any: > > 1. Can MapServer even do this, that is, host several large images and allow > new ones to be added on the fly via the api? > If there is a process, which generates the imags anyway, I think it's the easiest way to let this procedure write either a new layer to your mapfile or generate a new mapfile on it's own. This could be requested as WMS or sth. like that. > 2. Can each image be a map layer or does each image need its own mapserver > instance? > each image can be a layer on it's own > 3. Does the OSGeo4W include utilities to tile and pyramid the images or do I > have to arrange for that myself? > Yes, check for Gdal Tools and check also http://www.gdal.org/ Regards, ill > Thanks, > Dan Walton > gisfiretools.com > > > > > -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From bea at ixsea.com Mon Sep 28 05:43:44 2009 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Mon, 28 Sep 2009 14:43:44 +0200 Subject: [mapserver-users] MapServer dynamic map creation - Is thispossible? In-Reply-To: <4AC0A622.50100@terrestris.de> References: <1254138934774-3729010.post@n2.nabble.com> <4AC0A622.50100@terrestris.de> Message-ID: <311281E6B8E344CBB527500C22C56D92@ixsea.local> ----- Original Message ----- From: "Till Adams" To: "Dan Walton" Cc: Sent: Monday, September 28, 2009 2:03 PM Subject: Re: [mapserver-users] MapServer dynamic map creation - Is thispossible? > Dan Walton schrieb: >> I am new to WMS, so bear with my ignorance please. >> I have a service that processes imagery and outputs large TIFF + World file >> images (5-40 MB), and some shapefiles. Currently these images have no >> pyramid or tiling. I would like to further make the images web map friendly >> and my thought is that WMS and MapServer is the way to go. We will likely be >> creating dozens or perhaps hundreds of these images per day. This needs to >> run on Windows alongside or within IIS. >> So I have a volley of questions for anyone who might have answers. Feel free >> to skip any: >> >> 1. Can MapServer even do this, that is, host several large images and allow >> new ones to be added on the fly via the api? > If there is a process, which generates the imags anyway, I think it's the easiest way to let this procedure > write either a new layer to your mapfile or generate a new mapfile on it's own. This could be requested as WMS or sth. like that. > You can also have a Postgis database where you will only put the path to your files. Then in your map file, you set your layer as a database SQL request. The size of your files does not really matter as long as you have tiling and overviews. For example, I have used some 1 Gbyte TIFF files without any problem. It is also good to have the same projection system in the source images and in the request. MapServer on the fly reprojection is only "nearest-neighbour" so image quality could be very bad if CRS are different. For your shapefiles, you can also put them in a postgis database and make on-the-fly union / intersection ... using your layer definition. >> 2. Can each image be a map layer or does each image need its own mapserver >> instance? >> > each image can be a layer on it's own > >> 3. Does the OSGeo4W include utilities to tile and pyramid the images or do I >> have to arrange for that myself? >> > Yes, check for Gdal Tools and check also http://www.gdal.org/ > > Regards, ill > >> Thanks, >> Dan Walton >> gisfiretools.com >> >> >> >> >> > > > -- > ---------------------------------------------------------- > terrestris GmbH & Co. KG > Irmintrudisstrasse 17 > 53111 Bonn > Germany > > Till Adams > Gesch?ftsf?hrung > > Tel: +49 (0)228 / 962 899-52 > Fax: +49 (0)228 / 962 899-57 > adams at terrestris.de http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > --------------------------------------------------------- > > Komplement?rin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Beno?t Andrieu bea at ixsea.com benoit.andrieu at gmail.com From schatterjee at addisontx.gov Mon Sep 28 08:50:09 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Mon, 28 Sep 2009 10:50:09 -0500 Subject: [mapserver-users] Connection between mapserver and postgresql is getting disrupted Message-ID: <9E83042646CE62408E6F8E51AD566CBB118D1409@SCEXCHANGE.addisongov.org> Hi Andy, I could open the log file. The following error was written into it. FATAL: could not reattach to shared memory (Key=224, addr=025F0000): 487 Is there anything that can be done to solve the problem? Thanks Suman ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Mon Sep 28 08:58:20 2009 From: andy at squeakycode.net (Andy Colson) Date: Mon, 28 Sep 2009 10:58:20 -0500 Subject: [mapserver-users] Re: Connection between mapserver and postgresql is getting disrupted In-Reply-To: <9E83042646CE62408E6F8E51AD566CBB118D1409@SCEXCHANGE.addisongov.org> References: <9E83042646CE62408E6F8E51AD566CBB118D1409@SCEXCHANGE.addisongov.org> Message-ID: <4AC0DD1C.5020702@squeakycode.net> Suman Chatterjee wrote: > Hi Andy, > > I could open the log file. The following error was written into it. > > > > FATAL: could not reattach to shared memory (Key=224, addr=025F0000): 487 > > > > Is there anything that can be done to solve the problem? > > > > Thanks > > Suman Again, looks like a windows thing. I've never run pg on windows. I think that's a message you'd need to post to the postgres newsgroup and see what they say. (I'm already a user on the pg-general group, I'd be happy to post it if you wanted me to.) I dont recall, what version of pg is this. And can you post your uncommented postgres.conf settings. (They pg newsgroup will want to see all this. You can post it for them there, or post it here and I'll post it there.) If you're running an old version of pg on windows, the first thing they'll do is recommend you upgrade. Just a warning. -Andy From warmerdam at pobox.com Mon Sep 28 09:11:24 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 28 Sep 2009 12:11:24 -0400 Subject: [mapserver-users] MapServer dynamic map creation - Is this possible? In-Reply-To: <1254138934774-3729010.post@n2.nabble.com> References: <1254138934774-3729010.post@n2.nabble.com> Message-ID: <4AC0E02C.5080500@pobox.com> Dan Walton wrote: > I am new to WMS, so bear with my ignorance please. > > I have a service that processes imagery and outputs large TIFF + World file > images (5-40 MB), and some shapefiles. Currently these images have no Dan, Note that 5-40MB files are normally considered small in this domain. > pyramid or tiling. I would like to further make the images web map friendly > and my thought is that WMS and MapServer is the way to go. We will likely be > creating dozens or perhaps hundreds of these images per day. This needs to > run on Windows alongside or within IIS. > > So I have a volley of questions for anyone who might have answers. Feel free > to skip any: > > 1. Can MapServer even do this, that is, host several large images and allow > new ones to be added on the fly via the api? Yes, this is possible. One question is whether the images are intended to be treated as a mosaic or as distinct, individually addressable layers. If they are to be a mosaic, then you want to read up on tileindexes which allow you to treat a set of images as a single layer - a mosaic. Then your task boils down to creating a static mapfile, and dynamically adding files to the tileindex as they are created. If each is a distinctly addressable product then they should each either have an associated layer in a mapfile or you need a distinct map for each image. I will say it is not prudent to have hundreds of layers in a map - it becomes quite cumbersome, so I think it would be better to treat each image as a distinct WMS service with it's own mapfile (possibly generated on the fly from a database record). > 2. Can each image be a map layer or does each image need its own mapserver > instance? As above, either is possible. > 3. Does the OSGeo4W include utilities to tile and pyramid the images or do I > have to arrange for that myself? OSGeo4W's gdal package includes the required tools. In particular to take a TIFF image ("in.tif") and convert it to an optimized form with internal tiling and overviews ("out.tif") you would do something like: gdal_translate -co TILED=YES in.tif out.tif gdaladdo out.tif 2 4 8 16 32 64 OSGeo4W is setup primarily for Apache, so to use it with IIS there will be some manual fiddling you will need to do yourself. However, people do it, so it is doable. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From iratxe.lejarreta at axios.es Mon Sep 28 09:10:30 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Mon, 28 Sep 2009 18:10:30 +0200 Subject: [mapserver-users] response time Message-ID: <200909281810.31113.iratxe.lejarreta@axios.es> Hi, I have a map file with many complex layers (saved in Oracle Spatial) and when I run GetCapabilities request, the response time is too large because MapServer needs to calculate the bbox of all layers. Is it possible to speed up this process? because if my data are always the same, I don't need to calculate the bbox for each request... Thanks! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From DeDuikertjes at xs4all.nl Mon Sep 28 09:14:02 2009 From: DeDuikertjes at xs4all.nl (DeDuikertjes) Date: Mon, 28 Sep 2009 18:14:02 +0200 Subject: [mapserver-users] remote SLD problem In-Reply-To: <20090928160021.DF002E018D7@lists.osgeo.org> References: <20090928160021.DF002E018D7@lists.osgeo.org> Message-ID: <4AC0E0CA.7070109@xs4all.nl> Hello, this is my problem, please help mapserver is running ok, and this gives me a nice picture: http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326 Now, I'd like to use a SLD to do some styling. So I've made myself a nice SLD and I use the url: http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326&SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld ok, the SLD is at the specified location and I can view it with my browser. mapserver returns an error document with: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed to connect to 85.12.17.114: Permission denied) for http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld That puzzled me for a while, but then I tried (from the box where mapserver runs): su -c 'wget http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s /bin/sh nobody that returns: bestplan.sld: Permission denied So user nobody can't get to the SLD. I believe mapserver is running as nobody because I believe apache does. I think that's the problem. But then, how to solve this? Any help greatly appreciated ... MArco From jmckenna at gatewaygeomatics.com Mon Sep 28 09:23:27 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 28 Sep 2009 13:23:27 -0300 Subject: [mapserver-users] response time In-Reply-To: <200909281810.31113.iratxe.lejarreta@axios.es> References: <200909281810.31113.iratxe.lejarreta@axios.es> Message-ID: <4AC0E2FF.4010701@gatewaygeomatics.com> Iratxe Lejarreta wrote: > Hi, > I have a map file with many complex layers (saved in Oracle Spatial) and > when I run GetCapabilities request, the response time is too large > because MapServer needs to calculate the bbox of all layers. > Is it possible to speed up this process? because if my data are always > the same, I don't need to calculate the bbox for each request... > Thanks! > I think I hit this problem once before and resolved it by using the "wms_extent" metadata on the LAYER object...give that a try. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From dgwalton at gmail.com Mon Sep 28 09:27:13 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Mon, 28 Sep 2009 11:27:13 -0500 Subject: [mapserver-users] MapServer dynamic map creation - Is this possible? In-Reply-To: <4AC0E02C.5080500@pobox.com> References: <1254138934774-3729010.post@n2.nabble.com> <4AC0E02C.5080500@pobox.com> Message-ID: <8ab83e650909280927x41046821tdbe22aaf593c094d@mail.gmail.com> Frank, Thanks for your very concrete and helpful response! We're creating images that are chipped from infrared imagery using wildfire perimeter shapes. Thus each image will be an individual layer. I am aware that 40MB is small compared to world maps, but I wanted to know what the scalability of MapServer would be, and if, given that potentially hundreds of server instances per day may be created, the whole thing might grind to a halt. What kind of disk, CPU, memory, and bandwidth requirements would you expect such a service to require (back of the napkin calculation)? Thanks again, Dan On Mon, Sep 28, 2009 at 11:11 AM, Frank Warmerdam wrote: > Dan Walton wrote: > >> I am new to WMS, so bear with my ignorance please. >> I have a service that processes imagery and outputs large TIFF + World >> file >> images (5-40 MB), and some shapefiles. Currently these images have no >> > > Dan, > > Note that 5-40MB files are normally considered small in this domain. > > pyramid or tiling. I would like to further make the images web map >> friendly >> and my thought is that WMS and MapServer is the way to go. We will likely >> be >> creating dozens or perhaps hundreds of these images per day. This needs to >> run on Windows alongside or within IIS. >> So I have a volley of questions for anyone who might have answers. Feel >> free >> to skip any: >> >> 1. Can MapServer even do this, that is, host several large images and >> allow >> new ones to be added on the fly via the api? >> > > Yes, this is possible. One question is whether the images are intended > to be treated as a mosaic or as distinct, individually addressable layers. > > If they are to be a mosaic, then you want to read up on tileindexes which > allow you to treat a set of images as a single layer - a mosaic. Then your > task boils down to creating a static mapfile, and dynamically adding files > to > the tileindex as they are created. > > If each is a distinctly addressable product then they should each either > have an associated layer in a mapfile or you need a distinct map for each > image. > > I will say it is not prudent to have hundreds of layers in a map - it > becomes > quite cumbersome, so I think it would be better to treat each image as a > distinct WMS service with it's own mapfile (possibly generated on the fly > from a database record). > > 2. Can each image be a map layer or does each image need its own mapserver >> instance? >> > > As above, either is possible. > > 3. Does the OSGeo4W include utilities to tile and pyramid the images or do >> I >> have to arrange for that myself? >> > > OSGeo4W's gdal package includes the required tools. In particular to take > a TIFF image ("in.tif") and convert it to an optimized form with internal > tiling and overviews ("out.tif") you would do something like: > > gdal_translate -co TILED=YES in.tif out.tif > gdaladdo out.tif 2 4 8 16 32 64 > > OSGeo4W is setup primarily for Apache, so to use it with IIS there > will be some manual fiddling you will need to do yourself. However, > people do it, so it is doable. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bertrand at systella.fr Mon Sep 28 09:56:39 2009 From: joel.bertrand at systella.fr (BERTRAND Joel) Date: Mon, 28 Sep 2009 18:56:39 +0200 Subject: [mapserver-users] HTML legend Message-ID: <4AC0EAC7.3010808@systella.fr> Hello, I have some troubles with HTML legend. I want to sort this legend and I don't understand why I cannot sort it. In my map file, I have written : WEB IMAGEPATH "/var/www/maps/tmp/" IMAGEURL "/maps/tmp/" TEMPLATE "corps.html" METADATA LAYER_ORDER "100" END END ... LEGEND STATUS ON TEMPLATE "legende.html" END ... LAYER NAME "construction" CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=mapserver user=xxx password=yyy" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "the_geom from adminbndy5 using unique gid" STATUS ON TYPE POLYGON MAXSCALEDENOM 250000 CLASS NAME "Zone d'habitat dense" COLOR 244 125 90 END METADATA LAYER_ORDER "3" END END and the same metadata entries for all layers. My legend template is : [leg_layer_html order_metadata=layer_order opt_flag=0] [metadata name=layer_order] [/leg_layer_html] [leg_class_html]  [leg_class_name]
[/leg_class_html] With this template, I can see that all values written in metadata fields in map file are sent to legend template, but legend's labels are not sorted. Where is my mistake ? I don't find any help in mapserver documentation. Thanks in advance, JKB From Steve.Lime at dnr.state.mn.us Mon Sep 28 10:42:30 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 28 Sep 2009 12:42:30 -0500 Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <1253851467382-3710334.post@n2.nabble.com> References: <1253851467382-3710334.post@n2.nabble.com> Message-ID: <4AC0AF35.5157.008F.0@dnr.state.mn.us> When you set a size for a scalebar the width you provide is what you get back. The height is for the bar only. This was done so that scalebar images could retain the same image size and you could just swap img.src in a web app (assuming you're not mucking with font sizes). You'll likely have to experiment a bit with the width then to get it roughly the right size (e.g ask for 750). Steve >>> On 9/24/2009 at 11:04 PM, in message <1253851467382-3710334.post at n2.nabble.com>, PatB wrote: > Hi, > > I'm using the code below to request a scalebar from mapserver. My > understanding of the documentation is that the size parameter sets the size > of the scalebar itself not including the text, border, etc but that's not > what I'm getting back. The url below returns an image that is 600 x 153 > (I'm requesting 600 x 75) when it should be more like 750 x 153 to account > for the surrounding stuff. The height works as expected and the > units/distances look right, the width of the scalebar itself is the issue. > > This is for a print app, the output res is 300dpi so by setting the width to > 600 I was hoping to print a 2 inch wide scale bar with four 1/2" intervals. > This seems like it would be a common task but I've been digging though the > forum for hours without success. A little help? I'm using MS version 5.4.2 > > mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 > 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval > s+4+label+size+40+end > > and my map file goes something like: > > MAP > ... > UNITS meters > ... > SCALEBAR > STYLE 0 > IMAGECOLOR 255 255 255 > LABEL > TYPE TRUETYPE > FONT "tahoma" > SIZE 40 > COLOR 0 114 255 > END > SIZE 600 75 > COLOR 235 235 235 > BACKGROUNDCOLOR 0 114 255 > OUTLINECOLOR 0 0 0 > UNITS meters > INTERVALS 4 > STATUS on > TRANSPARENT on > END > ... > > Thanks - and yes, the map size is friggin huge. From Jim.Klassen at ci.stpaul.mn.us Mon Sep 28 11:39:11 2009 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Mon, 28 Sep 2009 13:39:11 -0500 Subject: [mapserver-users] response time Message-ID: <4AC0BC7F0200004F00014287@jeckle> Yes. If you set the wms_extent (or ows_extent) metadata for the layer, MapServer will use that instead of calculating the BBOX. Particularly in the case of Oracle Spatial layers, this makes a huge difference in response time. >>> Iratxe Lejarreta 09/28/09 11:20 AM >>> Hi, I have a map file with many complex layers (saved in Oracle Spatial) and when I run GetCapabilities request, the response time is too large because MapServer needs to calculate the bbox of all layers. Is it possible to speed up this process? because if my data are always the same, I don't need to calculate the bbox for each request... Thanks! -- Iratxe Lejarreta www.axios.es From no-reply at neogeo-online.net Mon Sep 28 11:39:42 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Mon, 28 Sep 2009 20:39:42 +0200 Subject: [mapserver-users] remote SLD problem In-Reply-To: <4AC0E0CA.7070109@xs4all.nl> References: <20090928160021.DF002E018D7@lists.osgeo.org> <4AC0E0CA.7070109@xs4all.nl> Message-ID: <1254163182.21053.0.camel@guillaume-desktop> Hi, Try to make your sld file readable by any user. Regards, Guillaume Le lundi 28 septembre 2009 ? 18:14 +0200, DeDuikertjes a ?crit : > Hello, > > this is my problem, please help > mapserver is running ok, and this gives me a nice picture: > http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326 > > Now, I'd like to use a SLD to do some styling. So I've made myself a > nice SLD and I use the url: > http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326&SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld > > ok, the SLD is at the specified location and I can view it with my browser. > mapserver returns an error document with: > > msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with > curl error code 7 (Failed to connect to 85.12.17.114: Permission denied) > for http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld > > That puzzled me for a while, but then I tried (from the box where > mapserver runs): > su -c 'wget > http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s > /bin/sh nobody > > that returns: > bestplan.sld: Permission denied > > So user nobody can't get to the SLD. I believe mapserver is running as > nobody because I believe apache does. > I think that's the problem. > > But then, how to solve this? > Any help greatly appreciated ... > > MArco > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From DeDuikertjes at xs4all.nl Mon Sep 28 11:43:31 2009 From: DeDuikertjes at xs4all.nl (DeDuikertjes) Date: Mon, 28 Sep 2009 20:43:31 +0200 Subject: [mapserver-users] remote SLD problem In-Reply-To: <1254163182.21053.0.camel@guillaume-desktop> References: <20090928160021.DF002E018D7@lists.osgeo.org> <4AC0E0CA.7070109@xs4all.nl> <1254163182.21053.0.camel@guillaume-desktop> Message-ID: <4AC103D3.9050907@xs4all.nl> Guillaume, Thank you, it is. By the way I found out that mapserv is actually running as apache apache can acces the SLD file (found out via: su -c 'wget -qO- http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s /bin/sh apache) So, I've not a single clue what's goin on. shot in the dark: SELINUX? MArco Guillaume Sueur schreef: > Hi, > > Try to make your sld file readable by any user. > > Regards, > > Guillaume > > Le lundi 28 septembre 2009 ? 18:14 +0200, DeDuikertjes a ?crit : > >> Hello, >> >> this is my problem, please help >> mapserver is running ok, and this gives me a nice picture: >> http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326 >> >> Now, I'd like to use a SLD to do some styling. So I've made myself a >> nice SLD and I use the url: >> http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326&SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld >> >> ok, the SLD is at the specified location and I can view it with my browser. >> mapserver returns an error document with: >> >> msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with >> curl error code 7 (Failed to connect to 85.12.17.114: Permission denied) >> for http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld >> >> That puzzled me for a while, but then I tried (from the box where >> mapserver runs): >> su -c 'wget >> http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s >> /bin/sh nobody >> >> that returns: >> bestplan.sld: Permission denied >> >> So user nobody can't get to the SLD. I believe mapserver is running as >> nobody because I believe apache does. >> I think that's the problem. >> >> But then, how to solve this? >> Any help greatly appreciated ... >> >> MArco >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > From DeDuikertjes at xs4all.nl Mon Sep 28 11:46:29 2009 From: DeDuikertjes at xs4all.nl (DeDuikertjes) Date: Mon, 28 Sep 2009 20:46:29 +0200 Subject: [mapserver-users] remote SLD problem [solved] In-Reply-To: <4AC103D3.9050907@xs4all.nl> References: <20090928160021.DF002E018D7@lists.osgeo.org> <4AC0E0CA.7070109@xs4all.nl> <1254163182.21053.0.camel@guillaume-desktop> <4AC103D3.9050907@xs4all.nl> Message-ID: <4AC10485.7050104@xs4all.nl> Dear list Shot in the dark was right on target. /usr/sbin/setsebool -P httpd_can_network_connect=1 fixed the problem (Centos 5.2) MArco DeDuikertjes schreef: > Guillaume, > > Thank you, > it is. > By the way I found out that mapserv is actually running as apache > apache can acces the SLD file > (found out via: su -c 'wget -qO- > http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s > /bin/sh apache) > > So, I've not a single clue what's goin on. > shot in the dark: SELINUX? > > MArco > > Guillaume Sueur schreef: >> Hi, >> >> Try to make your sld file readable by any user. >> >> Regards, >> >> Guillaume >> >> Le lundi 28 septembre 2009 ? 18:14 +0200, DeDuikertjes a ?crit : >> >>> Hello, >>> >>> this is my problem, please help >>> mapserver is running ok, and this gives me a nice picture: >>> http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326 >>> >>> >>> Now, I'd like to use a SLD to do some styling. So I've made myself a >>> nice SLD and I use the url: >>> http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326&SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld >>> >>> >>> ok, the SLD is at the specified location and I can view it with my >>> browser. >>> mapserver returns an error document with: >>> >>> msHTTPExecuteRequests(): HTTP request error. HTTP: request failed >>> with curl error code 7 (Failed to connect to 85.12.17.114: >>> Permission denied) for >>> http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld >>> >>> That puzzled me for a while, but then I tried (from the box where >>> mapserver runs): >>> su -c 'wget >>> http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s >>> /bin/sh nobody >>> >>> that returns: >>> bestplan.sld: Permission denied >>> >>> So user nobody can't get to the SLD. I believe mapserver is running >>> as nobody because I believe apache does. >>> I think that's the problem. >>> >>> But then, how to solve this? >>> Any help greatly appreciated ... >>> >>> MArco >>> >>> >>> >>> _______________________________________________ >>> 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 pbarnhart at gis-services.com Mon Sep 28 12:12:19 2009 From: pbarnhart at gis-services.com (PatB) Date: Mon, 28 Sep 2009 12:12:19 -0700 (PDT) Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <4AC0AF35.5157.008F.0@dnr.state.mn.us> References: <1253851467382-3710334.post@n2.nabble.com> <4AC0AF35.5157.008F.0@dnr.state.mn.us> Message-ID: <1254165139306-3731312.post@n2.nabble.com> The image size will vary because of the length of the last callout under the bar, right? 100000 km will stick out past the bar farther than 5000 m. I guess I could eyeball how much based on the font size, number of characters and ouput dpi but, well, bleach. Is there a better way? Plan B is to make my own scalebar but I'm not wild about that idea either. Engineers all over the world just cringed when I wrote 'eyeball'. Thanks. Steve Lime wrote: > > When you set a size for a scalebar the width you provide is what you get > back. The height is for > the bar only. This was done so that scalebar images could retain the same > image size and you > could just swap img.src in a web app (assuming you're not mucking with > font sizes). You'll likely > have to experiment a bit with the width then to get it roughly the right > size (e.g ask for 750). > > Steve > >>>> On 9/24/2009 at 11:04 PM, in message > <1253851467382-3710334.post at n2.nabble.com>, PatB > > wrote: > >> Hi, >> >> I'm using the code below to request a scalebar from mapserver. My >> understanding of the documentation is that the size parameter sets the >> size >> of the scalebar itself not including the text, border, etc but that's not >> what I'm getting back. The url below returns an image that is 600 x 153 >> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >> account >> for the surrounding stuff. The height works as expected and the >> units/distances look right, the width of the scalebar itself is the >> issue. >> >> This is for a print app, the output res is 300dpi so by setting the width >> to >> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >> intervals. >> This seems like it would be a common task but I've been digging though >> the >> forum for hours without success. A little help? I'm using MS version >> 5.4.2 >> >> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >> 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval >> s+4+label+size+40+end >> >> and my map file goes something like: >> >> MAP >> ... >> UNITS meters >> ... >> SCALEBAR >> STYLE 0 >> IMAGECOLOR 255 255 255 >> LABEL >> TYPE TRUETYPE >> FONT "tahoma" >> SIZE 40 >> COLOR 0 114 255 >> END >> SIZE 600 75 >> COLOR 235 235 235 >> BACKGROUNDCOLOR 0 114 255 >> OUTLINECOLOR 0 0 0 >> UNITS meters >> INTERVALS 4 >> STATUS on >> TRANSPARENT on >> END >> ... >> >> Thanks - and yes, the map size is friggin huge. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Scale-Bar-Size-Issue-tp3710334p3731312.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Mon Sep 28 13:43:23 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 28 Sep 2009 15:43:23 -0500 Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <1254165139306-3731312.post@n2.nabble.com> References: <1253851467382-3710334.post@n2.nabble.com> <4AC0AF35.5157.008F.0@dnr.state.mn.us> <1254165139306-3731312.post@n2.nabble.com> Message-ID: <4AC0D99A.5157.008F.0@dnr.state.mn.us> No, the image size is held constant and changes in the bar itself are made to accommodate for that restriction, at least that what we try to do. We know how much space we have for the bar and the various text elements and work backwards from that. You say, if the bar is so big the text is this, does it fit? If not then make the bar a touch shorter and re-compute things. Again, that was done to facilitate websites where just image elements change and not printing. I suppose one could hack the scalebar code to interpret the size to mean "the bar" and not the image, or at least have that as an option. I'll take a peek and get back to you (or feel free if you're so inclined). Probably easier to hack the source than make your own. Steve >>> On 9/28/2009 at 2:12 PM, in message <1254165139306-3731312.post at n2.nabble.com>, PatB wrote: > The image size will vary because of the length of the last callout under the > bar, right? 100000 km will stick out past the bar farther than 5000 m. I > guess I could eyeball how much based on the font size, number of characters > and ouput dpi but, well, bleach. Is there a better way? Plan B is to make > my own scalebar but I'm not wild about that idea either. > > Engineers all over the world just cringed when I wrote 'eyeball'. > > Thanks. > > > Steve Lime wrote: >> >> When you set a size for a scalebar the width you provide is what you get >> back. The height is for >> the bar only. This was done so that scalebar images could retain the same >> image size and you >> could just swap img.src in a web app (assuming you're not mucking with >> font sizes). You'll likely >> have to experiment a bit with the width then to get it roughly the right >> size (e.g ask for 750). >> >> Steve >> >>>>> On 9/24/2009 at 11:04 PM, in message >> <1253851467382-3710334.post at n2.nabble.com>, PatB >> >> wrote: >> >>> Hi, >>> >>> I'm using the code below to request a scalebar from mapserver. My >>> understanding of the documentation is that the size parameter sets the >>> size >>> of the scalebar itself not including the text, border, etc but that's not >>> what I'm getting back. The url below returns an image that is 600 x 153 >>> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >>> account >>> for the surrounding stuff. The height works as expected and the >>> units/distances look right, the width of the scalebar itself is the >>> issue. >>> >>> This is for a print app, the output res is 300dpi so by setting the width >>> to >>> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >>> intervals. >>> This seems like it would be a common task but I've been digging though >>> the >>> forum for hours without success. A little help? I'm using MS version >>> 5.4.2 >>> >>> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >>> > 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval > >>> s+4+label+size+40+end >>> >>> and my map file goes something like: >>> >>> MAP >>> ... >>> UNITS meters >>> ... >>> SCALEBAR >>> STYLE 0 >>> IMAGECOLOR 255 255 255 >>> LABEL >>> TYPE TRUETYPE >>> FONT "tahoma" >>> SIZE 40 >>> COLOR 0 114 255 >>> END >>> SIZE 600 75 >>> COLOR 235 235 235 >>> BACKGROUNDCOLOR 0 114 255 >>> OUTLINECOLOR 0 0 0 >>> UNITS meters >>> INTERVALS 4 >>> STATUS on >>> TRANSPARENT on >>> END >>> ... >>> >>> Thanks - and yes, the map size is friggin huge. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From manso001 at hotmail.com Mon Sep 28 17:50:04 2009 From: manso001 at hotmail.com (manuel sosa) Date: Tue, 29 Sep 2009 00:50:04 +0000 Subject: [mapserver-users] Help about a project to use MapServer Message-ID: Dear friends, It is a pleasure to greet you. I'm new to the world of geospatial science but I have some knowledge about it. My interest is to clarify some doubts about a project that I have to implement to a customer. The work schedule is as follows: It is required to implement a web server that has the WFS and WMS capability so users can connect with a client application (desktop) and allow them to use the mapping information will be available on that server . We have been researching products that we could use and there is a high degree of approval with MapServer, my questions are: - Developing a web server with mapserver, is required to design a server access page for handling maps or we can do it only with the client application? - What software recommended to implement the client application? - In the second stage we are planning to implement routing solutions and vehicle tracking, does MapServer have support for these solutions? I hope I can help. Thank you very much. _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From gis at shnu.edu.cn Mon Sep 28 18:09:02 2009 From: gis at shnu.edu.cn (Rui Jianxun) Date: Tue, 29 Sep 2009 09:09:02 +0800 Subject: [mapserver-users] want to be a member of mapserver-users@lists.osgeo.org Message-ID: i want to be a member of mapserver-users at lists.osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Sep 28 18:15:13 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Sep 2009 21:15:13 -0400 Subject: [mapserver-users] want to be a member of mapserver-users@lists.osgeo.org In-Reply-To: References: Message-ID: <4AC15FA1.6070400@swoodbridge.com> http://lists.osgeo.org/mailman/listinfo/mapserver-users Go to this link and subscribe to the list. -Steve W Rui Jianxun wrote: > i want to be a member of mapserver-users at lists.osgeo.org > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Sep 28 18:17:17 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Sep 2009 21:17:17 -0400 Subject: [mapserver-users] want to be a member of mapserver-users@lists.osgeo.org In-Reply-To: <4AC15FA1.6070400@swoodbridge.com> References: <4AC15FA1.6070400@swoodbridge.com> Message-ID: <4AC1601D.2050807@swoodbridge.com> Never mind, looks like you are already a list member. So you should be able to send email to mapserver-users at lists.osgeo.org and you should get a copy of all the posts. Welcome to the list! -Steve Stephen Woodbridge wrote: > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Go to this link and subscribe to the list. > > -Steve W > > Rui Jianxun wrote: >> i want to be a member of mapserver-users at lists.osgeo.org >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 pspencer at dmsolutions.ca Mon Sep 28 19:10:44 2009 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 28 Sep 2009 22:10:44 -0400 Subject: [mapserver-users] Help about a project to use MapServer In-Reply-To: References: Message-ID: On 2009-09-28, at 8:50 PM, manuel sosa wrote: > Dear friends, > It is a pleasure to greet you. I'm new to the world of geospatial > science but I have some knowledge about it. My interest is to > clarify some doubts about a project that I have to implement to a > customer. > The work schedule is as follows: It is required to implement a web > server that has the WFS and WMS capability so users can connect with > a client application (desktop) and allow them to use the mapping > information will be available on that server . > We have been researching products that we could use and there is a > high degree of approval with MapServer, my questions are: > - Developing a web server with mapserver, is required to design a > server access page for handling maps or we can do it only with the > client application? mapserver runs as a CGI, fast CGI or module process, it typically returns just a map image. There is no need for a separate server access page. Hopefully I have understood your question? > - What software recommended to implement the client application? Depending on your needs, there are several client libraries and environments that might be suitable in a desktop environment. QGIS (c based GIS application) and uDig (java/eclipse based UI) come to mind immediately as open source options. > - In the second stage we are planning to implement routing solutions > and vehicle tracking, does MapServer have support for these solutions? No, mapserver only produces a map image (or GML in the case of WFS) from your GIS data. pgRouting is an open source implementation of routing. > > > I hope I can help. > Thank you very much. > See all the ways you can stay connected to friends and family > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Cheers Paul __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From iratxe.lejarreta at axios.es Tue Sep 29 00:39:07 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 29 Sep 2009 09:39:07 +0200 Subject: [mapserver-users] response time In-Reply-To: <4AC0BC7F0200004F00014287@jeckle> References: <4AC0BC7F0200004F00014287@jeckle> Message-ID: <200909290939.07700.iratxe.lejarreta@axios.es> On Monday 28 September 2009 08:39:11 pm Jim Klassen wrote: > Yes. If you set the wms_extent (or ows_extent) metadata for the layer, > MapServer will use that instead of calculating the BBOX. > > Particularly in the case of Oracle Spatial layers, this makes a huge > difference in response time. > > >>> Iratxe Lejarreta 09/28/09 11:20 AM >>> > > Hi, > I have a map file with many complex layers (saved in Oracle Spatial) and > when I run GetCapabilities request, the response time is too large because > MapServer needs to calculate the bbox of all layers. > Is it possible to speed up this process? because if my data are always the > same, I don't need to calculate the bbox for each request... > Thanks! Ok, I'll try with the wfs_extent for the WFS service. Thanks! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From schatterjee at addisontx.gov Tue Sep 29 07:29:14 2009 From: schatterjee at addisontx.gov (Suman Chatterjee) Date: Tue, 29 Sep 2009 09:29:14 -0500 Subject: [mapserver-users] RE: Connection between mapserver and postgresql is getting disrupted In-Reply-To: <4AC0DD1C.5020702@squeakycode.net> Message-ID: <9E83042646CE62408E6F8E51AD566CBB118D140A@SCEXCHANGE.addisongov.org> Hi Andy, Thanks! As per your advice I am posting the details below here. You can then post it in proper place. PostGIS version - 1.3.6 Postgresql - 8.3 Postgresql.conf settings: # ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file consists of lines of the form: # # name = value # # (The "=" is optional.) Whitespace may be used. Comments are introduced with # "#" anywhere on a line. The complete list of parameter names and allowed # values can be found in the PostgreSQL documentation. # # The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. # # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, or use "pg_ctl reload". Some # parameters, which are marked below, require a server shutdown and restart to # take effect. # # Any parameter can also be given as a command-line option to the server, e.g., # "postgres -c log_connections=on". Some paramters can be changed at run time # with the "SET" SQL command. # # Memory units: kB = kilobytes MB = megabytes GB = gigabytes # Time units: ms = milliseconds s = seconds min = minutes h = hours d = days #------------------------------------------------------------------------------ # FILE LOCATIONS #------------------------------------------------------------------------------ # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. #data_directory = 'ConfigDir' # use data in another directory # (change requires restart) #hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file # (change requires restart) #ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file # (change requires restart) # If external_pid_file is not explicitly set, no extra PID file is written. #external_pid_file = '(none)' # write an extra PID file # (change requires restart) #------------------------------------------------------------------------------ # CONNECTIONS AND AUTHENTICATION #------------------------------------------------------------------------------ # - Connection Settings - listen_addresses = '*' # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart) max_connections = 100 # (change requires restart) # Note: Increasing max_connections costs ~400 bytes of shared memory per # connection slot, plus lock space (see max_locks_per_transaction). You might # also need to raise shared_buffers to support more connections. #superuser_reserved_connections = 3 # (change requires restart) #unix_socket_directory = '' # (change requires restart) #unix_socket_group = '' # (change requires restart) #unix_socket_permissions = 0777 # begin with 0 to use octal notation # (change requires restart) #bonjour_name = '' # defaults to the computer name # (change requires restart) # - Security and Authentication - #authentication_timeout = 1min # 1s-600s #ssl = off # (change requires restart) #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers # (change requires restart) #password_encryption = on #db_user_namespace = off # Kerberos and GSSAPI #krb_server_keyfile = '' # (change requires restart) #krb_srvname = 'postgres' # (change requires restart, Kerberos only) #krb_server_hostname = '' # empty string matches any keytab entry # (change requires restart, Kerberos only) #krb_caseins_users = off # (change requires restart) #krb_realm = '' # (change requires restart) # - TCP Keepalives - # see "man 7 tcp" for details #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds; # 0 selects the system default #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; # 0 selects the system default #tcp_keepalives_count = 0 # TCP_KEEPCNT; # 0 selects the system default #------------------------------------------------------------------------------ # RESOURCE USAGE (except WAL) #------------------------------------------------------------------------------ # - Memory - shared_buffers = 32MB # min 128kB or max_connections*16kB # (change requires restart) #temp_buffers = 8MB # min 800kB #max_prepared_transactions = 5 # can be 0 or more # (change requires restart) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory # per transaction slot, plus lock space (see max_locks_per_transaction). #work_mem = 1MB # min 64kB #maintenance_work_mem = 16MB # min 1MB #max_stack_depth = 2MB # min 100kB # - Free Space Map - max_fsm_pages = 204800 # min max_fsm_relations*16, 6 bytes each # (change requires restart) #max_fsm_relations = 1000 # min 100, ~70 bytes each # (change requires restart) # - Kernel Resource Usage - #max_files_per_process = 1000 # min 25 # (change requires restart) #shared_preload_libraries = '' # (change requires restart) # - Cost-Based Vacuum Delay - #vacuum_cost_delay = 0 # 0-1000 milliseconds #vacuum_cost_page_hit = 1 # 0-10000 credits #vacuum_cost_page_miss = 10 # 0-10000 credits #vacuum_cost_page_dirty = 20 # 0-10000 credits #vacuum_cost_limit = 200 # 1-10000 credits # - Background Writer - #bgwriter_delay = 200ms # 10-10000ms between rounds #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round #------------------------------------------------------------------------------ # WRITE AHEAD LOG #------------------------------------------------------------------------------ # - Settings - #fsync = on # turns forced synchronization on or off #synchronous_commit = on # immediate fsync at commit #wal_sync_method = fsync # the default is the first option # supported by the operating system: # open_datasync # fdatasync # fsync # fsync_writethrough # open_sync #full_page_writes = on # recover from partial page writes #wal_buffers = 64kB # min 32kB # (change requires restart) #wal_writer_delay = 200ms # 1-10000 milliseconds #commit_delay = 0 # range 0-100000, in microseconds #commit_siblings = 5 # range 1-1000 # - Checkpoints - #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each #checkpoint_timeout = 5min # range 30s-1h #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 #checkpoint_warning = 30s # 0 is off # - Archiving - #archive_mode = off # allows archiving to be done # (change requires restart) #archive_command = '' # command to use to archive a logfile segment #archive_timeout = 0 # force a logfile segment switch after this # time; 0 is off #------------------------------------------------------------------------------ # QUERY TUNING #------------------------------------------------------------------------------ # - Planner Method Configuration - #enable_bitmapscan = on #enable_hashagg = on #enable_hashjoin = on #enable_indexscan = on #enable_mergejoin = on #enable_nestloop = on #enable_seqscan = on #enable_sort = on #enable_tidscan = on # - Planner Cost Constants - #seq_page_cost = 1.0 # measured on an arbitrary scale #random_page_cost = 4.0 # same scale as above #cpu_tuple_cost = 0.01 # same scale as above #cpu_index_tuple_cost = 0.005 # same scale as above #cpu_operator_cost = 0.0025 # same scale as above #effective_cache_size = 128MB # - Genetic Query Optimizer - #geqo = on #geqo_threshold = 12 #geqo_effort = 5 # range 1-10 #geqo_pool_size = 0 # selects default based on effort #geqo_generations = 0 # selects default based on effort #geqo_selection_bias = 2.0 # range 1.5-2.0 # - Other Planner Options - #default_statistics_target = 10 # range 1-1000 #constraint_exclusion = off #from_collapse_limit = 8 #join_collapse_limit = 8 # 1 disables collapsing of explicit # JOIN clauses #------------------------------------------------------------------------------ # ERROR REPORTING AND LOGGING #------------------------------------------------------------------------------ # - Where to Log - log_destination = 'stderr' # Valid values are combinations of # stderr, csvlog, syslog and eventlog, # depending on platform. csvlog # requires logging_collector to be on. # This is used when logging to stderr: logging_collector = on # Enable capturing of stderr and csvlog # into log files. Required to be on for # csvlogs. # (change requires restart) # These are only used if logging_collector is on: #log_directory = 'pg_log' # directory where log files are written, # can be absolute or relative to PGDATA #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, # can include strftime() escapes #log_truncate_on_rotation = off # If on, an existing log file of the # same name as the new log file will be # truncated rather than appended to. # But such truncation only occurs on # time-driven rotation, not on restarts # or size-driven rotation. Default is # off, meaning append to existing files # in all cases. #log_rotation_age = 1d # Automatic rotation of logfiles will # happen after that time. 0 to disable. #log_rotation_size = 10MB # Automatic rotation of logfiles will # happen after that much log output. # 0 to disable. # These are relevant when logging to syslog: #syslog_facility = 'LOCAL0' #syslog_ident = 'postgres' # - When to Log - #client_min_messages = notice # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # log # notice # warning # error #log_min_messages = notice # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic #log_error_verbosity = default # terse, default, or verbose messages #log_min_error_statement = error # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic (effectively off) #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements # and their durations, > 0 logs only # statements running at least this time. #silent_mode = off # DO NOT USE without syslog or # logging_collector # (change requires restart) # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = off #log_checkpoints = off #log_connections = off #log_disconnections = off #log_duration = off #log_hostname = off log_line_prefix = '%%t ' # special values: # %u = user name # %d = database name # %r = remote host and port # %h = remote host # %p = process ID # %t = timestamp without milliseconds # %m = timestamp with milliseconds # %i = command tag # %c = session ID # %l = session line number # %s = session start timestamp # %v = virtual transaction ID # %x = transaction ID (0 if none) # %q = stop here in non-session # processes # %% = '%' # e.g. '<%u%%%d> ' #log_lock_waits = off # log lock waits >= deadlock_timeout #log_statement = 'none' # none, ddl, mod, all #log_temp_files = -1 # log temporary files equal or larger # than specified size; # -1 disables, 0 logs all temp files #log_timezone = unknown # actually, defaults to TZ environment # setting #------------------------------------------------------------------------------ # RUNTIME STATISTICS #------------------------------------------------------------------------------ # - Query/Index Statistics Collector - #track_activities = on #track_counts = on #update_process_title = on # - Statistics Monitoring - #log_parser_stats = off #log_planner_stats = off #log_executor_stats = off #log_statement_stats = off #------------------------------------------------------------------------------ # AUTOVACUUM PARAMETERS #------------------------------------------------------------------------------ #autovacuum = on # Enable autovacuum subprocess? 'on' # requires track_counts to also be on. #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and # their durations, > 0 logs only # actions running at least that time. #autovacuum_max_workers = 3 # max number of autovacuum subprocesses #autovacuum_naptime = 1min # time between autovacuum runs #autovacuum_vacuum_threshold = 50 # min number of row updates before # vacuum #autovacuum_analyze_threshold = 50 # min number of row updates before # analyze #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum # (change requires restart) #autovacuum_vacuum_cost_delay = 20 # default vacuum cost delay for # autovacuum, -1 means use # vacuum_cost_delay #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for # autovacuum, -1 means use # vacuum_cost_limit #------------------------------------------------------------------------------ # CLIENT CONNECTION DEFAULTS #------------------------------------------------------------------------------ # - Statement Behavior - #search_path = '"$user",public' # schema names #default_tablespace = '' # a tablespace name, '' uses the default #temp_tablespaces = '' # a list of tablespace names, '' uses # only default tablespace #check_function_bodies = on #default_transaction_isolation = 'read committed' #default_transaction_read_only = off #session_replication_role = 'origin' #statement_timeout = 0 # 0 is disabled #vacuum_freeze_min_age = 100000000 #xmlbinary = 'base64' #xmloption = 'content' # - Locale and Formatting - datestyle = 'iso, mdy' #timezone = unknown # actually, defaults to TZ environment # setting #timezone_abbreviations = 'Default' # Select the set of available time zone # abbreviations. Currently, there are # Default # Australia # India # You can create your own file in # share/timezonesets/. #extra_float_digits = 0 # min -15, max 2 #client_encoding = sql_ascii # actually, defaults to database # encoding # These settings are initialized by initdb, but they can be changed. lc_messages = 'English, United States' # locale for system error message # strings lc_monetary = 'English, United States' # locale for monetary formatting lc_numeric = 'English, United States' # locale for number formatting lc_time = 'English, United States' # locale for time formatting # default configuration for text search default_text_search_config = 'pg_catalog.simple' # - Other Defaults - #explain_pretty_print = on #dynamic_library_path = '$libdir' #local_preload_libraries = '' #------------------------------------------------------------------------------ # LOCK MANAGEMENT #------------------------------------------------------------------------------ #deadlock_timeout = 1s #max_locks_per_transaction = 64 # min 10 # (change requires restart) # Note: Each lock table slot uses ~270 bytes of shared memory, and there are # max_locks_per_transaction * (max_connections + max_prepared_transactions) # lock table slots. #------------------------------------------------------------------------------ # VERSION/PLATFORM COMPATIBILITY #------------------------------------------------------------------------------ # - Previous PostgreSQL Versions - #add_missing_from = off #array_nulls = on #backslash_quote = safe_encoding # on, off, or safe_encoding #default_with_oids = off #escape_string_warning = on #regex_flavor = advanced # advanced, extended, or basic #sql_inheritance = on #standard_conforming_strings = off #synchronize_seqscans = on # - Other Platforms and Clients - #transform_null_equals = off #------------------------------------------------------------------------------ # CUSTOMIZED OPTIONS #------------------------------------------------------------------------------ #custom_variable_classes = '' # list of custom variable class names Thanks, Suman -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Monday, September 28, 2009 10:58 AM To: Suman Chatterjee Cc: 'mapserver-users at lists.osgeo.org' Subject: Re: Connection between mapserver and postgresql is getting disrupted Suman Chatterjee wrote: > Hi Andy, > > I could open the log file. The following error was written into it. > > > > FATAL: could not reattach to shared memory (Key=224, addr=025F0000): 487 > > > > Is there anything that can be done to solve the problem? > > > > Thanks > > Suman Again, looks like a windows thing. I've never run pg on windows. I think that's a message you'd need to post to the postgres newsgroup and see what they say. (I'm already a user on the pg-general group, I'd be happy to post it if you wanted me to.) I dont recall, what version of pg is this. And can you post your uncommented postgres.conf settings. (They pg newsgroup will want to see all this. You can post it for them there, or post it here and I'll post it there.) If you're running an old version of pg on windows, the first thing they'll do is recommend you upgrade. Just a warning. -Andy ******************************************************************************************************************* This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. ******************************************************************************************************************* From jhevenor at rogers.com Tue Sep 29 07:35:00 2009 From: jhevenor at rogers.com (Josh Hevenor) Date: Tue, 29 Sep 2009 10:35:00 -0400 Subject: [mapserver-users] WMS in Google Earth Message-ID: <4AC21B14.2090007@rogers.com> I'm wondering if anyone has had success viewing their mapserver WMS services through Google Earth? I can manually enter a GetMap request and see the image but when I try to list my layers in the Refresh->WMS Parameters section I get an error message stating that "This MWS server has no layers which can be rendered by Google Earth" Are there any common trip-ups that others have experienced? I can post more details if required... josh From pbarnhart at gis-services.com Tue Sep 29 08:06:21 2009 From: pbarnhart at gis-services.com (PatB) Date: Tue, 29 Sep 2009 08:06:21 -0700 (PDT) Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <4AC0D99A.5157.008F.0@dnr.state.mn.us> References: <1253851467382-3710334.post@n2.nabble.com> <4AC0AF35.5157.008F.0@dnr.state.mn.us> <1254165139306-3731312.post@n2.nabble.com> <4AC0D99A.5157.008F.0@dnr.state.mn.us> Message-ID: <1254236781386-3736841.post@n2.nabble.com> Gotcha - I meant that the image size I'd need to calculate would change because of the text etc. I don't think changing the ms source code is an option for me, I'd prefer to go that route but don't have direct access to the produciton server. If, however, you come up with a patch please pass it along, maybe I can talk my boss into letting me use it :) It could also help someone else down the line, I can't be the only person that wants control of the interval size. So anyway, I know the output dpi and I know I want 1/2" intervals for english and 1 cm for metric so I may end up just making a one size fits all graphic and sticking text underneath it. Sucks though. Thanks for your help, Pat Steve Lime wrote: > > No, the image size is held constant and changes in the bar itself are made > to accommodate for > that restriction, at least that what we try to do. We know how much space > we have for the > bar and the various text elements and work backwards from that. You say, > if the bar is > so big the text is this, does it fit? If not then make the bar a touch > shorter and re-compute > things. Again, that was done to facilitate websites where just image > elements change and > not printing. > > I suppose one could hack the scalebar code to interpret the size to mean > "the bar" and not > the image, or at least have that as an option. I'll take a peek and get > back to you (or feel free > if you're so inclined). Probably easier to hack the source than make your > own. > > Steve > >>>> On 9/28/2009 at 2:12 PM, in message >>>> <1254165139306-3731312.post at n2.nabble.com>, > PatB wrote: > >> The image size will vary because of the length of the last callout under >> the >> bar, right? 100000 km will stick out past the bar farther than 5000 m. >> I >> guess I could eyeball how much based on the font size, number of >> characters >> and ouput dpi but, well, bleach. Is there a better way? Plan B is to >> make >> my own scalebar but I'm not wild about that idea either. >> >> Engineers all over the world just cringed when I wrote 'eyeball'. >> >> Thanks. >> >> >> Steve Lime wrote: >>> >>> When you set a size for a scalebar the width you provide is what you get >>> back. The height is for >>> the bar only. This was done so that scalebar images could retain the >>> same >>> image size and you >>> could just swap img.src in a web app (assuming you're not mucking with >>> font sizes). You'll likely >>> have to experiment a bit with the width then to get it roughly the right >>> size (e.g ask for 750). >>> >>> Steve >>> >>>>>> On 9/24/2009 at 11:04 PM, in message >>> <1253851467382-3710334.post at n2.nabble.com>, PatB >>> >>> wrote: >>> >>>> Hi, >>>> >>>> I'm using the code below to request a scalebar from mapserver. My >>>> understanding of the documentation is that the size parameter sets the >>>> size >>>> of the scalebar itself not including the text, border, etc but that's >>>> not >>>> what I'm getting back. The url below returns an image that is 600 x >>>> 153 >>>> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >>>> account >>>> for the surrounding stuff. The height works as expected and the >>>> units/distances look right, the width of the scalebar itself is the >>>> issue. >>>> >>>> This is for a print app, the output res is 300dpi so by setting the >>>> width >>>> to >>>> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >>>> intervals. >>>> This seems like it would be a common task but I've been digging though >>>> the >>>> forum for hours without success. A little help? I'm using MS version >>>> 5.4.2 >>>> >>>> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >>>> >> 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval >> >>>> s+4+label+size+40+end >>>> >>>> and my map file goes something like: >>>> >>>> MAP >>>> ... >>>> UNITS meters >>>> ... >>>> SCALEBAR >>>> STYLE 0 >>>> IMAGECOLOR 255 255 255 >>>> LABEL >>>> TYPE TRUETYPE >>>> FONT "tahoma" >>>> SIZE 40 >>>> COLOR 0 114 255 >>>> END >>>> SIZE 600 75 >>>> COLOR 235 235 235 >>>> BACKGROUNDCOLOR 0 114 255 >>>> OUTLINECOLOR 0 0 0 >>>> UNITS meters >>>> INTERVALS 4 >>>> STATUS on >>>> TRANSPARENT on >>>> END >>>> ... >>>> >>>> Thanks - and yes, the map size is friggin huge. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Scale-Bar-Size-Issue-tp3710334p3736841.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Sep 29 08:11:09 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Sep 2009 10:11:09 -0500 Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <1254236781386-3736841.post@n2.nabble.com> References: <1253851467382-3710334.post@n2.nabble.com> <4AC0AF35.5157.008F.0@dnr.state.mn.us> <1254165139306-3731312.post@n2.nabble.com> <4AC0D99A.5157.008F.0@dnr.state.mn.us> <1254236781386-3736841.post@n2.nabble.com> Message-ID: <4AC1DD3D.5157.008F.0@dnr.state.mn.us> I thought about this more last night and settled on using a negative width to imply bar width and a positive width to imply image width. Wouldn't affect the mapfile defs or anything like that and a relatively easy addition on my part. Steve >>> On 9/29/2009 at 10:06 AM, in message <1254236781386-3736841.post at n2.nabble.com>, PatB wrote: > Gotcha - I meant that the image size I'd need to calculate would change > because of the text etc. > > I don't think changing the ms source code is an option for me, I'd prefer to > go that route but don't have direct access to the produciton server. If, > however, you come up with a patch please pass it along, maybe I can talk my > boss into letting me use it :) It could also help someone else down the > line, I can't be the only person that wants control of the interval size. > > So anyway, I know the output dpi and I know I want 1/2" intervals for > english and 1 cm for metric so I may end up just making a one size fits all > graphic and sticking text underneath it. Sucks though. > > Thanks for your help, > Pat > > > Steve Lime wrote: >> >> No, the image size is held constant and changes in the bar itself are made >> to accommodate for >> that restriction, at least that what we try to do. We know how much space >> we have for the >> bar and the various text elements and work backwards from that. You say, >> if the bar is >> so big the text is this, does it fit? If not then make the bar a touch >> shorter and re-compute >> things. Again, that was done to facilitate websites where just image >> elements change and >> not printing. >> >> I suppose one could hack the scalebar code to interpret the size to mean >> "the bar" and not >> the image, or at least have that as an option. I'll take a peek and get >> back to you (or feel free >> if you're so inclined). Probably easier to hack the source than make your >> own. >> >> Steve >> >>>>> On 9/28/2009 at 2:12 PM, in message >>>>> <1254165139306-3731312.post at n2.nabble.com>, >> PatB wrote: >> >>> The image size will vary because of the length of the last callout under >>> the >>> bar, right? 100000 km will stick out past the bar farther than 5000 m. >>> I >>> guess I could eyeball how much based on the font size, number of >>> characters >>> and ouput dpi but, well, bleach. Is there a better way? Plan B is to >>> make >>> my own scalebar but I'm not wild about that idea either. >>> >>> Engineers all over the world just cringed when I wrote 'eyeball'. >>> >>> Thanks. >>> >>> >>> Steve Lime wrote: >>>> >>>> When you set a size for a scalebar the width you provide is what you get >>>> back. The height is for >>>> the bar only. This was done so that scalebar images could retain the >>>> same >>>> image size and you >>>> could just swap img.src in a web app (assuming you're not mucking with >>>> font sizes). You'll likely >>>> have to experiment a bit with the width then to get it roughly the right >>>> size (e.g ask for 750). >>>> >>>> Steve >>>> >>>>>>> On 9/24/2009 at 11:04 PM, in message >>>> <1253851467382-3710334.post at n2.nabble.com>, PatB >>>> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm using the code below to request a scalebar from mapserver. My >>>>> understanding of the documentation is that the size parameter sets the >>>>> size >>>>> of the scalebar itself not including the text, border, etc but that's >>>>> not >>>>> what I'm getting back. The url below returns an image that is 600 x >>>>> 153 >>>>> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >>>>> account >>>>> for the surrounding stuff. The height works as expected and the >>>>> units/distances look right, the width of the scalebar itself is the >>>>> issue. >>>>> >>>>> This is for a print app, the output res is 300dpi so by setting the >>>>> width >>>>> to >>>>> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >>>>> intervals. >>>>> This seems like it would be a common task but I've been digging though >>>>> the >>>>> forum for hours without success. A little help? I'm using MS version >>>>> 5.4.2 >>>>> >>>>> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >>>>> >>> > 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval > >>> >>>>> s+4+label+size+40+end >>>>> >>>>> and my map file goes something like: >>>>> >>>>> MAP >>>>> ... >>>>> UNITS meters >>>>> ... >>>>> SCALEBAR >>>>> STYLE 0 >>>>> IMAGECOLOR 255 255 255 >>>>> LABEL >>>>> TYPE TRUETYPE >>>>> FONT "tahoma" >>>>> SIZE 40 >>>>> COLOR 0 114 255 >>>>> END >>>>> SIZE 600 75 >>>>> COLOR 235 235 235 >>>>> BACKGROUNDCOLOR 0 114 255 >>>>> OUTLINECOLOR 0 0 0 >>>>> UNITS meters >>>>> INTERVALS 4 >>>>> STATUS on >>>>> TRANSPARENT on >>>>> END >>>>> ... >>>>> >>>>> Thanks - and yes, the map size is friggin huge. >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From mlinden at zeelandnet.nl Tue Sep 29 08:23:18 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 29 Sep 2009 17:23:18 +0200 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <4AC21B14.2090007@rogers.com> References: <4AC21B14.2090007@rogers.com> Message-ID: <4AC22666.1020800@zeelandnet.nl> Hello Josh, I have three succesfully hosted wms layers withing Google Earth. It probably has something to do with the image type not being supported or wms parameters missing. If you want me to help you can send me the metadata and the map section snippets of your mapfile. Josh Hevenor schreef: > I'm wondering if anyone has had success viewing their mapserver WMS > services through Google Earth? I can manually enter a GetMap request and > see the image but when I try to list my layers in the Refresh->WMS > Parameters section I get an error message stating that "This MWS server > has no layers which can be rendered by Google Earth" > > Are there any common trip-ups that others have experienced? I can post > more details if required... > > josh > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pbarnhart at gis-services.com Tue Sep 29 09:08:37 2009 From: pbarnhart at gis-services.com (PatB) Date: Tue, 29 Sep 2009 09:08:37 -0700 (PDT) Subject: [mapserver-users] Scale Bar Size Issue In-Reply-To: <4AC1DD3D.5157.008F.0@dnr.state.mn.us> References: <1253851467382-3710334.post@n2.nabble.com> <4AC0AF35.5157.008F.0@dnr.state.mn.us> <1254165139306-3731312.post@n2.nabble.com> <4AC0D99A.5157.008F.0@dnr.state.mn.us> <1254236781386-3736841.post@n2.nabble.com> <4AC1DD3D.5157.008F.0@dnr.state.mn.us> Message-ID: <1254240517425-3737234.post@n2.nabble.com> Sounds like a plan - the best of both worlds! Thanks, Pat Steve Lime wrote: > > I thought about this more last night and settled on using a negative width > to imply bar width > and a positive width to imply image width. Wouldn't affect the mapfile > defs or anything like that > and a relatively easy addition on my part. > > Steve > >>>> On 9/29/2009 at 10:06 AM, in message > <1254236781386-3736841.post at n2.nabble.com>, PatB > > wrote: > >> Gotcha - I meant that the image size I'd need to calculate would change >> because of the text etc. >> >> I don't think changing the ms source code is an option for me, I'd prefer >> to >> go that route but don't have direct access to the produciton server. If, >> however, you come up with a patch please pass it along, maybe I can talk >> my >> boss into letting me use it :) It could also help someone else down the >> line, I can't be the only person that wants control of the interval size. >> >> So anyway, I know the output dpi and I know I want 1/2" intervals for >> english and 1 cm for metric so I may end up just making a one size fits >> all >> graphic and sticking text underneath it. Sucks though. >> >> Thanks for your help, >> Pat >> >> >> Steve Lime wrote: >>> >>> No, the image size is held constant and changes in the bar itself are >>> made >>> to accommodate for >>> that restriction, at least that what we try to do. We know how much >>> space >>> we have for the >>> bar and the various text elements and work backwards from that. You say, >>> if the bar is >>> so big the text is this, does it fit? If not then make the bar a touch >>> shorter and re-compute >>> things. Again, that was done to facilitate websites where just image >>> elements change and >>> not printing. >>> >>> I suppose one could hack the scalebar code to interpret the size to mean >>> "the bar" and not >>> the image, or at least have that as an option. I'll take a peek and get >>> back to you (or feel free >>> if you're so inclined). Probably easier to hack the source than make >>> your >>> own. >>> >>> Steve >>> >>>>>> On 9/28/2009 at 2:12 PM, in message >>>>>> <1254165139306-3731312.post at n2.nabble.com>, >>> PatB wrote: >>> >>>> The image size will vary because of the length of the last callout >>>> under >>>> the >>>> bar, right? 100000 km will stick out past the bar farther than 5000 m. >>>> I >>>> guess I could eyeball how much based on the font size, number of >>>> characters >>>> and ouput dpi but, well, bleach. Is there a better way? Plan B is to >>>> make >>>> my own scalebar but I'm not wild about that idea either. >>>> >>>> Engineers all over the world just cringed when I wrote 'eyeball'. >>>> >>>> Thanks. >>>> >>>> >>>> Steve Lime wrote: >>>>> >>>>> When you set a size for a scalebar the width you provide is what you >>>>> get >>>>> back. The height is for >>>>> the bar only. This was done so that scalebar images could retain the >>>>> same >>>>> image size and you >>>>> could just swap img.src in a web app (assuming you're not mucking with >>>>> font sizes). You'll likely >>>>> have to experiment a bit with the width then to get it roughly the >>>>> right >>>>> size (e.g ask for 750). >>>>> >>>>> Steve >>>>> >>>>>>>> On 9/24/2009 at 11:04 PM, in message >>>>> <1253851467382-3710334.post at n2.nabble.com>, PatB >>>>> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm using the code below to request a scalebar from mapserver. My >>>>>> understanding of the documentation is that the size parameter sets >>>>>> the >>>>>> size >>>>>> of the scalebar itself not including the text, border, etc but that's >>>>>> not >>>>>> what I'm getting back. The url below returns an image that is 600 x >>>>>> 153 >>>>>> (I'm requesting 600 x 75) when it should be more like 750 x 153 to >>>>>> account >>>>>> for the surrounding stuff. The height works as expected and the >>>>>> units/distances look right, the width of the scalebar itself is the >>>>>> issue. >>>>>> >>>>>> This is for a print app, the output res is 300dpi so by setting the >>>>>> width >>>>>> to >>>>>> 600 I was hoping to print a 2 inch wide scale bar with four 1/2" >>>>>> intervals. >>>>>> This seems like it would be a common task but I've been digging >>>>>> though >>>>>> the >>>>>> forum for hours without success. A little help? I'm using MS >>>>>> version >>>>>> 5.4.2 >>>>>> >>>>>> mapserv.exe?MAP=C:/ms4w/tmp/maps/mp.map&mode=scalebar&mapext=-8798233+4184184+-8 >>>>>> >>>> >> 793280+4188502&mapsize=11700+10200&map.scalebar=units+feet+size+600+75+interval >> >>>> >>>>>> s+4+label+size+40+end >>>>>> >>>>>> and my map file goes something like: >>>>>> >>>>>> MAP >>>>>> ... >>>>>> UNITS meters >>>>>> ... >>>>>> SCALEBAR >>>>>> STYLE 0 >>>>>> IMAGECOLOR 255 255 255 >>>>>> LABEL >>>>>> TYPE TRUETYPE >>>>>> FONT "tahoma" >>>>>> SIZE 40 >>>>>> COLOR 0 114 255 >>>>>> END >>>>>> SIZE 600 75 >>>>>> COLOR 235 235 235 >>>>>> BACKGROUNDCOLOR 0 114 255 >>>>>> OUTLINECOLOR 0 0 0 >>>>>> UNITS meters >>>>>> INTERVALS 4 >>>>>> STATUS on >>>>>> TRANSPARENT on >>>>>> END >>>>>> ... >>>>>> >>>>>> Thanks - and yes, the map size is friggin huge. >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Scale-Bar-Size-Issue-tp3710334p3737234.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dgwalton at gmail.com Tue Sep 29 09:12:34 2009 From: dgwalton at gmail.com (Daniel Walton) Date: Tue, 29 Sep 2009 11:12:34 -0500 Subject: [mapserver-users] MapScript C# Code Samples Message-ID: <8ab83e650909290912we95ff51h43b6bac98f310754@mail.gmail.com> Sorry for the newbie question, but does anyone have any sample C# MapScript code they can share or point me to that would demonstrate : 1. Adding a new map (based on a unique string name) 2. Adding a raster layer to the map (tiled tiff with overviews, WGS-84 + world file, no reprojection needed) 3. Adding a shape layer to the map (ESRI shapefile) Thanks MapServer Community, Dan Walton dgwalton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhevenor at rogers.com Tue Sep 29 10:28:34 2009 From: jhevenor at rogers.com (Josh Hevenor) Date: Tue, 29 Sep 2009 13:28:34 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <4AC22666.1020800@zeelandnet.nl> References: <4AC21B14.2090007@rogers.com> <4AC22666.1020800@zeelandnet.nl> Message-ID: <4AC243C2.9010002@rogers.com> Thanks Milo (and Bob) Here is what I have as far as mapfile goes. This is from a dev machine not open to the public but I can supply a getCapabilities response as well. Looking at it like this I bet I can remove a bunch of the scalebar, querymap stuff.... MAP DEBUG OFF #set off for production purposes! NAME "COMPANY" STATUS ON EXTENT -146.4 52.161287067696 -93.6 97.7368329192244 #unprojected SIZE 684 561 #NB: overwritten in mapserverparam.js SHAPEPATH "D:\msMap_data\Export" SYMBOLSET "mapserverApp.symbols" FONTSET "mapserverApp.fonts" TRANSPARENT ON UNITS dd IMAGETYPE aggpng24 OUTPUTFORMAT NAME aggpng24 DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END ########################################################################################### # WEB INTERFACE (including WMS enabling metadata) WEB MAXSCALE 40000000 MINSCALE 100 IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" LOG "C:\Inetpub\wwwroot\tmp\log\MS_ERRORS.LOG" HEADER "header.html" FOOTER "templates/footer.html" TEMPLATE "index.html" ERROR "/wms/templates/error.html" EMPTY "/wms/templates/empty.html" METADATA WMS_ONLINERESOURCE 'http://ws7/wms/wms.php?' #WMS_SRS 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914' OWS_SRS 'EPSG:4326 EPSG:43204 EPSG:2580 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914' #WMS_ACCESSCONSTRAINTS 'none' #OWS_TITLE 'COMPANY Web GIS Portal' WMS_FEATURE_INFO_MIME_TYPE 'text/html' #WMS_ABSTRACT 'This Web Map Service broadcasts metadata about COMPANY Publications available for review and download.' # ### # Increment when new data is available # ### ows_updatesequence '1' # #### OWS_TITLE 'msMap WMS Service' OWS_ABSTRACT 'COMPANYs new online spatial tool for creating maps, querying, and downloading our large database of mineral occurrences, publications, exploration reports, and other references to geology and mineral exploration in the NWT.' OWS_KEYWORDLIST 'GEOLOGY,CHEMISTRY' OWS_FEES 'GRATUIT-FREE' OWS_ACCESSCONSTRAINTS 'NONE' OWS_CONTACTORGANIZATION 'NWT Business Office' OWS_SERVICE_ONLINERESOURCE 'http://ws7/wms/wms.php?' OWS_CONTACTPERSON 'co/ Librarian' OWS_CONTACTPOSITION 'Librarian' OWS_CONTACTVOICETELEPHONE '+01-555-555-5555' OWS_CONTACTFACSIMILETELEPHONE '+01-555-555-5555' ows_addresstype 'Mailing' ows_address 'Location Business Office' ows_address 'BOX 1500' ows_city 'Smallville' ows_stateorprovince 'Prov' ows_postcode 'X1X 1X1' ows_country 'Canada' ows_contactelectronicmailaddress 'COMPANY at email.com' OWS_hoursofservice '8:30-4:30 Local Time' ows_contactinstructions '' ows_role 'Librarian' END #METADATA END #WEB REFERENCE IMAGE "refmap2.jpg" EXTENT -146.4 52.161287067696 -93.6 97.7368329192244 SIZE 80 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 254 219 67 MINBOXSIZE 10 MAXBOXSIZE 120 MARKER "star" MARKERSIZE 10 END PROJECTION "init=EPSG:4326" END LEGEND STATUS ON #KEYSIZE 18 12 KEYSIZE 24 16 #IMAGECOLOR 235 250 235 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END POSITION UR TEMPLATE "legend.html" #doesn't really exist END SCALEBAR STATUS ON POSITION LR POSTLABELCACHE TRUE COLOR 0 0 0 OUTLINECOLOR 166 202 240 TRANSPARENT ON UNITS KILOMETERS INTERVALS 4 SIZE 200 6 STYLE 1 LABEL SIZE TINY COLOR 0 0 0 ANTIALIAS TRUE #OUTLINECOLOR 254 219 67 #SHADOWCOLOR 166 202 240 #SHADOWSIZE 3 3 END END QUERYMAP STATUS ON STYLE Hilite #shows selected features in highlight colour COLOR 254 219 67 # 0 0 255 END # # LAYER DEFINITIONS # LAYER NAME 'References' DATA '4326References' STATUS on DUMP true # VERY IMPORTANT atribute TYPE Polygon TRANSPARENCY 100 TOLERANCE 10 TOLERANCEUNITS pixels HEADER "templates\referencesheader.html" TEMPLATE "templates\references.html" METADATA OWS_SRS 'EPSG:4326' OWS_TITLE 'References' WMS_FEATURE_INFO_MIME_TYPE 'application/vnd.ogc.gml' gml_include_items "all" gml_exclude_items "geometry" wfs_featureid 'C_REFER_ID' ows_title 'References' END #METADATA PROJECTION 'init=EPSG:4326' END CLASSITEM 'CLASSCODE' CLASS NAME 'COMPANY Publications' EXPRESSION '4' STYLE #COLOR 150 180 250 OUTLINECOLOR 255 0 0 #WIDTH 1.5 END #STYLE END #CLASS CLASS NAME 'Industry Reports A' EXPRESSION '1' STYLE #COLOR 150 180 250 OUTLINECOLOR 0 0 0 #WIDTH 1.5 END #STYLE END #CLASS CLASS NAME 'Industry Reports B' EXPRESSION '21' STYLE #COLOR 150 180 250 OUTLINECOLOR 0 255 0 #WIDTH 1.5 END #STYLE END #CLASS CLASS NAME 'Misc References' EXPRESSION '0' STYLE #COLOR 150 180 250 OUTLINECOLOR 0 0 255 #WIDTH 1.5 END #STYLE END #CLASS END #LAYER END #End of Mapfile Milo van der Linden wrote: > Hello Josh, > > I have three succesfully hosted wms layers withing Google Earth. It > probably has something to do with the image type not being supported or > wms parameters missing. > > If you want me to help you can send me the metadata and the map section > snippets of your mapfile. > > Josh Hevenor schreef: > >> I'm wondering if anyone has had success viewing their mapserver WMS >> services through Google Earth? I can manually enter a GetMap request and >> see the image but when I try to list my layers in the Refresh->WMS >> Parameters section I get an error message stating that "This MWS server >> has no layers which can be rendered by Google Earth" >> >> Are there any common trip-ups that others have experienced? I can post >> more details if required... >> >> josh >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.5.409 / Virus Database: 270.13.114/2402 - Release Date: 09/29/09 05:54:00 >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Sep 29 12:24:16 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 29 Sep 2009 21:24:16 +0200 Subject: [mapserver-users] MapScript C# Code Samples In-Reply-To: <8ab83e650909290912we95ff51h43b6bac98f310754@mail.gmail.com> References: <8ab83e650909290912we95ff51h43b6bac98f310754@mail.gmail.com> Message-ID: 2009/9/29 Daniel Walton > > Sorry for the newbie question, but does anyone have any sample C# MapScript code they can share or point me to that would demonstrate : > > Adding a new map (based on a unique string name) mapObj map = new mapObj(mapfilename); > Adding a raster layer to the map (tiled tiff with overviews, WGS-84 + world file, no reprojection needed) layer = new layerObj(map); layer.connectiontype = MS_CONNECTION_TYPE.MS_RASTER; layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; layer.data = rasterfileName; layer.status = mapscript.MS_ON; > Adding a shape layer to the map (ESRI shapefile) > layer = new layerObj(map); layer.data= shapefileName; layer.connectiontype = MS_CONNECTION_TYPE.MS_SHAPEFILE; layer.status = mapscript.MS_ON; You may also configure the map in your mapfile (mapfilename), and then you only need to open the mapfile (see the first line of code above). For further examples see: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/csharp/examples/inline.cs http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/csharp/examples/drawmap.cs http://www.paolocorti.net/2006/07/01/mapscript-c-tutorial-programming-mapserver-in-the-asp-net-framework/ Best regards, Tamas From edmar.moretti at terra.com.br Tue Sep 29 18:55:21 2009 From: edmar.moretti at terra.com.br (Edmar Moretti) Date: Tue, 29 Sep 2009 22:55:21 -0300 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <4AC21B14.2090007@rogers.com> References: <4AC21B14.2090007@rogers.com> Message-ID: <4AC2BA89.9000701@terra.com.br> Here's an example that uses Mapserver to generate layers in google earth (i3geo software - http://mapas.mma.gov.br): http://mapas.mma.gov.br/i3geo/kml.php Use the link in the "network link" (link de rede) option. Josh Hevenor escreveu: > I'm wondering if anyone has had success viewing their mapserver WMS > services through Google Earth? I can manually enter a GetMap request and > see the image but when I try to list my layers in the Refresh->WMS > Parameters section I get an error message stating that "This MWS server > has no layers which can be rendered by Google Earth" > > Are there any common trip-ups that others have experienced? I can post > more details if required... > > josh > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > E-mail verificado pelo Terra Anti-Spam. > Para classificar esta mensagem como spam ou n??o spam, visite > http://ecp.terra.com.br/cgi-bin/reportspam.cgi?+_d=SCY1NDIyNDE3I3Blcm0hdGVycmEmMSwxMjU0MjM1MzYyLjU1NzEzNy4xNzc2Ny5nYW5hbm9xdWUudGVycmEuY29tLDM3NDk=TerraMail > Verifique periodicamente a pasta Spam para garantir que apenas mensagens > indesejadas sejam classificadas como Spam. > > Esta mensagem foi verificada pelo E-mail Protegido Terra. > Atualizado em 29/09/2009 > > > > -- Por favor, atualize sua lista de contatos com meu novo e-mail: edmar.moretti at terra.com.br Skype: edmar.moretti Blog: http://edmarmoretti.blogspot.com/ Ohloh: https://www.ohloh.net/accounts/edmarmoretti From mschulz at webgis.de Wed Sep 30 03:31:49 2009 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 30 Sep 2009 12:31:49 +0200 Subject: [mapserver-users] mapserver 5.6beta1: mindistance not working properly? Message-ID: Hi, thanks for the 5.6 beta1. I'm pretty curious about the new mapfile xml-format. I have a mapfile that uses MINDISTANCE in label objects, the maps and labels are generated fine with mapserver- 5.4, with mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into account. Can anyone confirm this behaviour? Cheers, Michael -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From sschantz at bfs.de Wed Sep 30 04:42:21 2009 From: sschantz at bfs.de (Stefan Schantz) Date: Wed, 30 Sep 2009 13:42:21 +0200 Subject: [mapserver-users] JOIN SHP and CSV Message-ID: <4AC3441D.2050808@BfS.de> Hello, although I 've read several informations (in this user list, mapserver documentation) about joining datas von a csv-file to a shp-file, I still get the error message "Content-type: application/vnd.ogc.se_xml msDBFJoinConnect(): Unable to access file. (../../../../daten/vektordaten/utm/studios/europa_sonnenstudio.csv)" I 've tried already several things like putting csv-file at the same place as the mapfile, chmod 777 , but I always got the same message. Any ideas? Thanks! My mapfile looks like: LAYER NAME "europa" TYPE POLYGON STATUS ON DUMP TRUE DATA "europa" JOIN NAME "tab" TABLE "../../../../daten/vektordaten/utm/studios/europa_sonnenstudio.csv" FROM "NAME" TO "NAME" TYPE ONE-TO-ONE END PROJECTION "init=epsg:4326" END METADATA WMS_SRS "EPSG:25832 EPSG:4326 EPSG:32632 EPSG:31466 EPSG:31467 EPSG:31468" WMS_TITLE "Sonnenstudio" WMS_ABSTRACT "blabla" END LABELITEM 'NAME' CLASS ... END # CLASS CLASS .. END # CLASS TEMPLATE "../templates/getFeature_sonnenstudio.html" .. The path to the data is "/daten/vektordaten/utm/studios/europa_sonnenstudio.csv" 303140 -rwxrwxrwx 1 ssh-m gdi 2229 Sep 30 11:27 europa_sonnenstudio.csv path to the mapfile is "/data/umn/abc/map/studio.map" The information of the csv-data is: ogrinfo europa_sonnenstudio.csv europa_sonnenstudio -summary INFO: Open of `europa_sonnenstudio.csv' using driver `CSV' successful. Layer name: europa_sonnenstudio Geometry: None Feature Count: 54 Layer SRS WKT: (unknown) ID: String (0.0) NAME: String (0.0) TEXT: String (0.0) DATUM: String (0.0) The information of the shp-data is: ogrinfo europa.shp europa -summary INFO: Open of `europa.shp' using driver `ESRI Shapefile' successful. Layer name: europa Geometry: Polygon Feature Count: 54 Extent: (-31.265747, 32.397476) - (69.070320, 81.857368) Layer SRS WKT: (unknown) NAME: String (40.0) Greetings from the Bavarian-Oktoberfest Stefan From rpinho_eng at yahoo.com.br Wed Sep 30 14:52:20 2009 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Wed, 30 Sep 2009 14:52:20 -0700 (PDT) Subject: [mapserver-users] GISVM Server Release Candidate 1 is publicly available Message-ID: <821162.41229.qm@web65715.mail.ac4.yahoo.com> GISVM ANNOUNCEMENT ? 2009.09.28: 1. RELEASE CANDIDATE 1 of ?GISVM SERVER? is now publicly available at: http://gisvm.com Full release details can be found at: http://gisvm.com/wiki/index.php?title=GISVM_Server_-_Release_Candidate_1_-_20090831 2. I?m also proud to announce that ?I?m speaking? at Sydney FOSS4G 2009 on behalf of the GISVM project: http://www.gisvm.com/blog/?p=133 3. GISVM Server download is now only available for a DISTRIBUTION FEE OF 10 EUROS!!! THIS IS MEANT TO HELP REDUCE MY PERSONAL COSTS FOR THE TRIP, HOTEL and EVENT REGISTRATION that are going to be up to 5.000 US Dollars! Remember - GISVM IS AN UNSPONSORED PROJECT!!! If you consider it a useful and worthy project, PLEASE CONTRIBUTE TOWARDS GISVM's PRESENCE AT FOSS4G 2009. THANK YOU!!! 4. GISVM Help Wiki is now available for documentation of GISVM: http://gisvm.com/wiki ********************************************************************** GISVM Server Release Candidate 1 - ANNOUNCEMENT DETAILS: ********************************************************************** GIS Virtual Machine Server is another product based on the GISVM new concept for Free Open Source Geospatial Software distribution. This GISVM Server edition is based on Ubuntu Server operating system and several free open source server softwares. Run this Virtual Machine on your computer and instantly get a personal GIS Server running in the background, just as if you had a new server computer on your local network, ready to use with your favorite GIS desktop application! On the Virtual Machine Server you will find several geospatial and location web services based on OGC Open Geospatial Standards, such as: WMS, WFS, WCS, WPS, etc. So, GISVM Server also offers an easy way into OGC Open Geospatial Standards and benefits from the power of real interoperability. The GISVM Server includes: - Ubuntu 9.04 Server Edition JeOS (Just enough OS) - LAMP Server bundle (Linux, Apache, MySQL and PHP) - Samba File Server - Tomcat Java Server - PostgreSQL database server - PostGIS (PostgreSQL spatial extension), ZigGIS and FDO ready! - Mapserver - Geoserver - Deegree - Geonetwork - Webmin (a web-based interface for GISVM Server administration) If you think this is a useful and interesting product, please help us to improve it with your participation on the testing forum board: http://gisvm.com/forum/index.php?board=6.0 Thank you for your time and collaboration! Best regards, Ricardo Pinho ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From sb.ray at hotmail.com Wed Sep 30 22:03:23 2009 From: sb.ray at hotmail.com (sunny74) Date: Wed, 30 Sep 2009 22:03:23 -0700 (PDT) Subject: [mapserver-users] SV: display feature name beside feature In-Reply-To: <3b603a170909231331g7a0453d7lfb5b948880438ff9@mail.gmail.com> References: <1253279766206-3668538.post@n2.nabble.com> <1253468954077-3681031.post@n2.nabble.com> <4AB6803A.9000406@lingner.eu> <1253536453758-3684929.post@n2.nabble.com> <4AB75D8A.5157.008F.0@dnr.state.mn.us> <1253681869217-3697539.post@n2.nabble.com> <2349CC72A0B01C4FAA4FFAE6C735E1DDE2931E@enerasrv01.Enera.local> <1253729585271-3701418.post@n2.nabble.com> <3b603a170909231331g7a0453d7lfb5b948880438ff9@mail.gmail.com> Message-ID: <1254373403555-3747061.post@n2.nabble.com> Hi, Thanks for your reply. Thanks to all of you for the support. Warm Regards, sunny. Mads Helgi Poulsen wrote: > > Read this: http://mapserver.org/mapfile/label.html > > and note the FORCE parameter. > > On Wed, Sep 23, 2009 at 7:13 PM, sunny74 wrote: > >> >> What are the label attributes that make this happen? >> What shud I do if I need to see all of the Labels at at single scale i.e >> zoomin level. >> >> Thanks a lot for your support. >> >> >> > -- > Mads Helgi > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-feature-name-beside-feature-tp3668538p3747061.html Sent from the Mapserver - User mailing list archive at Nabble.com.