From lucaa at rc.unesp.br Tue Oct 1 05:47:57 2002 From: lucaa at rc.unesp.br (Luciano Alejandro) Date: Tue, 01 Oct 2002 09:47:57 -0300 Subject: [mapserver-users] Zooming and changing layers Message-ID: <3D99997C.367F424A@rc.unesp.br> I?m a new user of mapserver and i?m trying to create a map with zoom and change of layers. I?ve followed the mapserver tutorial but i couldn?t understand how should be the template file and the main html file to execute this options (zoom and selection of layers). Can anyone help me or give a hint? Any helps will be welcome. Thanks. From tom at internetgids.be Tue Oct 1 07:27:18 2002 From: tom at internetgids.be (Tom Myny) Date: Tue, 1 Oct 2002 16:27:18 +0200 Subject: [mapserver-users] Compile problems Message-ID: <004801c26956$a57cf910$0100a8c0@cpi.local> Hi, When i try to compile mapserver1.6.1 with command rule: ./configure --with-php=../php-4.2.3 i got: cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o epplib.o mappdf.o ranlib libmap.a gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -I/usr/include shp2img.c -o shp2img.o cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status When i configure mapserver1.6.1 with command rule: ./configure --with-proj=/usr --with-wmsclient --with-libwww --with-gdal --enable-runpath --with-php=../php-4.2.3 --with-gd i got: cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/usr/src/mapserver-3.6.1/mapscript/php3' cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WMS -DUSE_GDAL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG -I/usr/src/mapserver-3.6.1 -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H -I/usr/include -I/usr/include -I/usr/include -I/usr/src/mapserver-3.6.1/../php-4.2.3 -I/usr/src/mapserver-3.6.1/../php-4.2.3/dl -I/usr/src/mapserver-3.6.1/../php-4.2.3/main -I/usr/src/mapserver-3.6.1/../php-4.2.3/Zend -I/usr/src/mapserver-3.6.1/../php-4.2.3/include -I/usr/src/mapserver-3.6.1/../php-4.2.3/TSRM -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/usr/src/mapserver-3.6.1/mapscript/php3' Please help :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Tue Oct 1 07:33:41 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 09:33:41 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F344@STL-EXBE-I03.corp.erac.com> You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off still show, but layers out of scale don't show. [leg_layer_html opt_flag=2] Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) In my experience, opt_flag=2 is the most intuitive. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Monday, September 30, 2002 5:06 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML Legend with Status Checking... Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, but there's no status of "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! From matthew.mcguire at metc.state.mn.us Tue Oct 1 07:42:05 2002 From: matthew.mcguire at metc.state.mn.us (Matthew McGuire) Date: Tue, 01 Oct 2002 09:42:05 -0500 Subject: [mapserver-users] Query Template Message-ID: Hi list, A basic question I think. How can you set the Query template to be dependent on the query itself? I'm picturing something like this: TEMPLATE "[ATTRIBUTE].html" Matt From nospam at cnrit.tamu.edu Tue Oct 1 08:58:30 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 01 Oct 2002 10:58:30 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... References: <4ACBA1414DD9EE418CC250E4AAA9035A16F344@STL-EXBE-I03.corp.erac.com> Message-ID: <3D99C626.8040702@cnrit.tamu.edu> Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: >You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >still show, but layers out of scale don't show. > >[leg_layer_html opt_flag=2] > > >Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : > >1: If set, show layer even if out of scale (default: hide layers out of >scale). > >2: If set, show layer even if status is OFF (default: hide layers with >STATUS OFF). > >4: If set, show layer even if type is QUERY (default: hide layers of TYPE >QUERY) > >8: If set, show layer even if type is ANNOTATION (default: hide layers of >TYPE ANNOTATION) > > >In my experience, opt_flag=2 is the most intuitive. > >-Dan > > > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Monday, September 30, 2002 5:06 PM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] HTML Legend with Status Checking... > > >Hello, > > I've seen how you can make legends using PHP Mapscript that check to >see whether a layer or class is in scale before displaying it in the >legend, but no mention of how to do this if I'm not using Mapscript. I >have sub-classed many of my layers so that symbols show up in different >sizes depending on how far zoomed in you are. In other words, I'm using >"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >in the legend and that's really annoying! I want ONLY the in-scale >symbol to show up in the legend as it does in the map...any tips on how >to do this without Mapscript? I see the "if" conditional statements in >the HTML Legend How-to, but there's no status of "SCALE" to check with >those statements... if I could put an if statement in my legend template >that checked whether or not a class or layer was in scale, then I'd be >in business...any way to do this? > >Thanks! > > From DMartin at erac.com Tue Oct 1 09:18:30 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 11:18:30 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B33@STL-EXBE-I03.corp.erac.com> Perhaps I misunderstood. By default (no opt_flag set) layers that are out of scale and layers that have a STATUS off will not show in an HTML legend. A legend exactly like this should do exactly what it sounds like you want: [leg_class_html] [leg_class_name] [/leg_class_html] I'm not sure why you are having trouble getting the default action. Perhaps you could provide your current legend. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Tuesday, October 01, 2002 10:59 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: >You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >still show, but layers out of scale don't show. > >[leg_layer_html opt_flag=2] > > >Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : > >1: If set, show layer even if out of scale (default: hide layers out of >scale). > >2: If set, show layer even if status is OFF (default: hide layers with >STATUS OFF). > >4: If set, show layer even if type is QUERY (default: hide layers of TYPE >QUERY) > >8: If set, show layer even if type is ANNOTATION (default: hide layers of >TYPE ANNOTATION) > > >In my experience, opt_flag=2 is the most intuitive. > >-Dan > > > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Monday, September 30, 2002 5:06 PM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] HTML Legend with Status Checking... > > >Hello, > > I've seen how you can make legends using PHP Mapscript that check to >see whether a layer or class is in scale before displaying it in the >legend, but no mention of how to do this if I'm not using Mapscript. I >have sub-classed many of my layers so that symbols show up in different >sizes depending on how far zoomed in you are. In other words, I'm using >"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >in the legend and that's really annoying! I want ONLY the in-scale >symbol to show up in the legend as it does in the map...any tips on how >to do this without Mapscript? I see the "if" conditional statements in >the HTML Legend How-to, but there's no status of "SCALE" to check with >those statements... if I could put an if statement in my legend template >that checked whether or not a class or layer was in scale, then I'd be >in business...any way to do this? > >Thanks! > > From nospam at cnrit.tamu.edu Tue Oct 1 09:33:21 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 01 Oct 2002 11:33:21 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... References: <4ACBA1414DD9EE418CC250E4AAA9035A192B33@STL-EXBE-I03.corp.erac.com> Message-ID: <3D99CE51.6000805@cnrit.tamu.edu> Gladly. Here is my legend code: [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html] [/leg_layer_html] [leg_class_html]   [leg_class_name] [/leg_class_html] However, it does not work as you say (and as the documentation on the web page says!). Layers that are "off" do not show up (that's as expected and what I want), that's fine, but layers that are out of SCALE DO show up, and that's not as expected and that's not as the documentation states and that's NOT what I want. For example, I have a layer called Ethiopia_Rivers...here's what it looks like: LAYER NAME "Ethiopia_Rivers" TYPE LINE STATUS off GROUP Ethiopia DATA "ethiopia_rivers" HEADER 'ethiopia_rivers.shp_header.html' CLASS MAXSCALE 8710165 Name 'Ethiopia Rivers' COLOR 102 204 255 TEMPLATE ethiopia_rivers.shp_query.html END # CLASS END # LAYER Now, when I'm viewing my map at full extent, my scale factor is 1: 20136789, therefore if I click on the Ethiopia_Rivers layer at that zoom level, nothing shows up in the map. This is the exact behavior that I would expect...I'm out of scale for that layer, so it doesn't show up in the map until I zoom in. The PROBLEM, however, is that the "Ethiopia Rivers" icon and label pop up in my legend...this is counter-intuitive, contrary to the documented behavior of Mapserver, and just flat-out frustrating! If the layer is not showing up in my map (because it's out of scale), then it should NOT be in my legend either. Grrrr!!! Pardon me for sounding bitter...I'm not lashing out at you, I'm very grateful for your help, I'm just frustrated at Mapserver. Thanks! Martin, Daniel wrote: >Perhaps I misunderstood. By default (no opt_flag set) layers that are out >of scale and layers that have a STATUS off will not show in an HTML legend. > > >A legend exactly like this should do exactly what it sounds like you want: > >[leg_class_html] > > > > > > [leg_class_name] > > >[/leg_class_html] > >I'm not sure why you are having trouble getting the default action. Perhaps >you could provide your current legend. > >-Dan > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Tuesday, October 01, 2002 10:59 AM >To: Martin, Daniel >Cc: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] HTML Legend with Status Checking... > > >Thank you, but this didn't change a thing. Actually, let me correct >that...it had a negative effect because now all my layers show up too, >even if they are not displayed in the map. I want only active layers to >show in the legend and I want only IN-SCALE class symbols to show up in >the legend, I don't want 4 symbols to show up in the legend for every >layer that I have which has scale-specific classes...I just don't guess >I can do that without converting everything over to Mapscript. X-( > >Any other ideas? > >Martin, Daniel wrote: > >>You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >>still show, but layers out of scale don't show. >> >>[leg_layer_html opt_flag=2] >> >> >>Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : >> >>1: If set, show layer even if out of scale (default: hide layers out of >>scale). >> >>2: If set, show layer even if status is OFF (default: hide layers with >>STATUS OFF). >> >>4: If set, show layer even if type is QUERY (default: hide layers of TYPE >>QUERY) >> >>8: If set, show layer even if type is ANNOTATION (default: hide layers of >>TYPE ANNOTATION) >> >> >>In my experience, opt_flag=2 is the most intuitive. >> >>-Dan >> >> >> >>-----Original Message----- >>From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >>Sent: Monday, September 30, 2002 5:06 PM >>To: mapserver-users at lists.gis.umn.edu >>Subject: [mapserver-users] HTML Legend with Status Checking... >> >> >>Hello, >> >> I've seen how you can make legends using PHP Mapscript that check to >>see whether a layer or class is in scale before displaying it in the >>legend, but no mention of how to do this if I'm not using Mapscript. I >>have sub-classed many of my layers so that symbols show up in different >>sizes depending on how far zoomed in you are. In other words, I'm using >>"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >>in the legend and that's really annoying! I want ONLY the in-scale >>symbol to show up in the legend as it does in the map...any tips on how >>to do this without Mapscript? I see the "if" conditional statements in >>the HTML Legend How-to, but there's no status of "SCALE" to check with >>those statements... if I could put an if statement in my legend template >>that checked whether or not a class or layer was in scale, then I'd be >>in business...any way to do this? >> >>Thanks! >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Tue Oct 1 09:37:21 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 11:37:21 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F347@STL-EXBE-I03.corp.erac.com> Try this. Take out the leg_group_html section, and the leg_layer_html section, leaving only the leg_class_html section. Take them out entirely - don't leave an empty set of tags. Then, let me know what happens. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Tuesday, October 01, 2002 11:33 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Gladly. Here is my legend code: [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html] [/leg_layer_html] [leg_class_html]   [leg_class_name] [/leg_class_html] However, it does not work as you say (and as the documentation on the web page says!). Layers that are "off" do not show up (that's as expected and what I want), that's fine, but layers that are out of SCALE DO show up, and that's not as expected and that's not as the documentation states and that's NOT what I want. For example, I have a layer called Ethiopia_Rivers...here's what it looks like: LAYER NAME "Ethiopia_Rivers" TYPE LINE STATUS off GROUP Ethiopia DATA "ethiopia_rivers" HEADER 'ethiopia_rivers.shp_header.html' CLASS MAXSCALE 8710165 Name 'Ethiopia Rivers' COLOR 102 204 255 TEMPLATE ethiopia_rivers.shp_query.html END # CLASS END # LAYER Now, when I'm viewing my map at full extent, my scale factor is 1: 20136789, therefore if I click on the Ethiopia_Rivers layer at that zoom level, nothing shows up in the map. This is the exact behavior that I would expect...I'm out of scale for that layer, so it doesn't show up in the map until I zoom in. The PROBLEM, however, is that the "Ethiopia Rivers" icon and label pop up in my legend...this is counter-intuitive, contrary to the documented behavior of Mapserver, and just flat-out frustrating! If the layer is not showing up in my map (because it's out of scale), then it should NOT be in my legend either. Grrrr!!! Pardon me for sounding bitter...I'm not lashing out at you, I'm very grateful for your help, I'm just frustrated at Mapserver. Thanks! Martin, Daniel wrote: Perhaps I misunderstood. By default (no opt_flag set) layers that are out of scale and layers that have a STATUS off will not show in an HTML legend. A legend exactly like this should do exactly what it sounds like you want: [leg_class_html] [leg_class_name] [/leg_class_html] I'm not sure why you are having trouble getting the default action. Perhaps you could provide your current legend. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 10:59 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.u mn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off still show, but layers out of scale don't show. [leg_layer_html opt_flag=2] Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) In my experience, opt_flag=2 is the most intuitive. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Mo nday, September 30, 2002 5:06 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML Legend with Status Checking... Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, but there's no status of "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Tue Oct 1 09:56:02 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 01 Oct 2002 11:56:02 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... References: <4ACBA1414DD9EE418CC250E4AAA9035A16F347@STL-EXBE-I03.corp.erac.com> Message-ID: <3D99D3A2.2030805@cnrit.tamu.edu> Same thing. Now I don't have group header bars seperating my layers, but all the layers still show up and when I click on a layer that has scale-specific classes, the symbols for all scales still show up. By the way, I'm on Mapserver 3.6.1 and here's the page to go to if you want to see what I'm talking about: http://cnrit.tamu.edu/maps/map_init.html Click on the very last button on that page (the one that says "FRAMES VERSION" on it). When the map shows up, expand the "Regional" folder on the left-hand side to display those layers. The one that I'm working on right now is called "Parima Survey Households". Click on that layer to load it into the map, then you'll see the various symbols I'm referring to show up in the legend. I represent the Parima households with red triangle symbols and I have different sized triangles depending on how far zoomed in you are so that they are small at a high scale and larger as you zoom in...but I don't want all versions of that symbol to show up in my legend all the time...just the one that's in scale. Thanks again! Martin, Daniel wrote: > Try this. Take out the leg_group_html section, and the leg_layer_html > section, leaving only the leg_class_html section. Take them out > entirely - don't leave an empty set of tags. Then, let me know what > happens. > > > > -Dan > > -----Original Message----- > From: Mike Smith [mailto:nospam at cnrit.tamu.edu] > Sent: Tuesday, October 01, 2002 11:33 AM > To: Martin, Daniel > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] HTML Legend with Status Checking... > > Gladly. Here is my legend code: > > [leg_group_html] > > [leg_group_name] > > [/leg_group_html] > > [leg_layer_html] > [/leg_layer_html] > > [leg_class_html] > >   > > > > > [leg_class_name] > > > [/leg_class_html] > > > However, it does not work as you say (and as the documentation on > the web page says!). Layers that are "off" do not show up (that's > as expected and what I want), that's fine, but layers that are out > of SCALE DO show up, and that's not as expected and that's not as > the documentation states and that's NOT what I want. For example, > I have a layer called Ethiopia_Rivers...here's what it looks like: > > LAYER > NAME "Ethiopia_Rivers" > TYPE LINE > STATUS off > GROUP Ethiopia > DATA "ethiopia_rivers" > HEADER 'ethiopia_rivers.shp_header.html' > CLASS > MAXSCALE 8710165 > Name 'Ethiopia Rivers' > COLOR 102 204 255 > TEMPLATE ethiopia_rivers.shp_query.html > END # CLASS > END # LAYER > > Now, when I'm viewing my map at full extent, my scale factor is 1: > 20136789, therefore if I click on the Ethiopia_Rivers layer at > that zoom level, nothing shows up in the map. This is the exact > behavior that I would expect...I'm out of scale for that layer, so > it doesn't show up in the map until I zoom in. The PROBLEM, > however, is that the "Ethiopia Rivers" icon and label pop up in my > legend...this is counter-intuitive, contrary to the documented > behavior of Mapserver, and just flat-out frustrating! If the > layer is not showing up in my map (because it's out of scale), > then it should NOT be in my legend either. Grrrr!!! Pardon me > for sounding bitter...I'm not lashing out at you, I'm very > grateful for your help, I'm just frustrated at Mapserver. > > Thanks! > > Martin, Daniel wrote: > >>Perhaps I misunderstood. By default (no opt_flag set) layers that are out >>of scale and layers that have a STATUS off will not show in an HTML legend. >> >> >>A legend exactly like this should do exactly what it sounds like you want: >> >>[leg_class_html] >> >> >> >> >> >> [leg_class_name] >> >> >>[/leg_class_html] >> >>I'm not sure why you are having trouble getting the default action. Perhaps >>you could provide your current legend. >> >>-Dan >> >>-----Original Message----- >>From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >>Sent: Tuesday, October 01, 2002 10:59 AM >>To: Martin, Daniel >>Cc: mapserver-users at li! >>sts.gis.u >>mn.edu >>Subject: Re: [mapserver-users] HTML Legend with Status Checking... >> >> >>Thank you, but this didn't change a thing. Actually, let me correct >>that...it had a negative effect because now all my layers show up too, >>even if they are not displayed in the map. I want only active layers to >>show in the legend and I want only IN-SCALE class symbols to show up in >>the legend, I don't want 4 symbols to show up in the legend for every >>layer that I have which has scale-specific classes...I just don't guess >>I can do that without converting everything over to Mapscript. X-( >> >>Any other ideas? >> >>Martin, Daniel wrote: >> >>>You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >>>still show, but layers out of scale don't show. >>> >>>[leg_layer_html opt_flag=2] >>> >>> >>>Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : >>> >>>1: If set, show layer even if out of scale (default: hide layers out of >>>scale). >>> >>>2: If set, show layer even if status is OFF (default: hide layers with >>>STATUS OFF). >>> >>>4: If set, show layer even if type is QUERY (default: hide layers of TYPE >>>QUERY) >>> >>>8: If set, show layer even if type is ANNOTATION (default: hide layers of >>>TYPE ANNOTATION) >>> >>> >>>In my experience, opt_flag=2 is the most intuitive. >>> >>>-Dan >>> >>> >>> >>>-----Original Message----- >>>From: Mike Smith [mailto:nospam at cnrit.tamu! >>>.edu] >>>Sent: Mo >>>nday, September 30, 2002 5:06 PM >>>To: mapserver-users at lists.gis.umn.edu >>>Subject: [mapserver-users] HTML Legend with Status Checking... >>> >>> >>>Hello, >>> >>> I've seen how you can make legends using PHP Mapscript that check to >>>see whether a layer or class is in scale before displaying it in the >>>legend, but no mention of how to do this if I'm not using Mapscript. I >>>have sub-classed many of my layers so that symbols show up in different >>>sizes depending on how far zoomed in you are. In other words, I'm using >>>"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >>>in the legend and that's really annoying! I want ONLY the in-scale >>>symbol to show up in the legend as it does in the map...any tips on how >>>to do this without Mapscript? I see the "if" conditional statements in >>>the HTML Legend How-to, but there's no status of "SCALE" to >>>check with >>>those statements... if I could put an if statement in my legend template >>>that checked whether or not a class or layer was in scale, then I'd be >>>in business...any way to do this? >>> >>>Thanks! >>> >>> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dblasby at refractions.net Tue Oct 1 10:11:49 2002 From: dblasby at refractions.net (david blasby) Date: Tue, 01 Oct 2002 10:11:49 -0700 Subject: [mapserver-users] DEBUG statement - lets actually do something about it! Message-ID: <3D99D755.8B8D8973@refractions.net> We've had a few discussion about having a mapfile-wide "DEBUG on/off" and LAYER-level "DEBUG on/off". I dont think much has actually come of this (did I miss something?). I think it would be very useful for, at least, the PostGIS layer to have it report the SQL statement it's executing and what kind of indexes its using. I'm sure other portions of mapserver would appreciate it too. Proposal ------------- Change the parser so it handles layers like: LAYER DEBUG on/off ... END DEBUG will default to "off". Add, to layerObj, a boolean debug flag: char debug; //boolean: false = no debug info, true = write debugging info to stderr It would be wise to add (also to map.h) a constant so new code is compatible with older version of layer: #DEFINE LAYERHASDEBUGFLAG Then in layer functions, one can do something like: #ifdef LAYERHASDEBUGFLAG if (layer->debug) { printf(stderr,"POSTGIS layer opening\n"); // report DATA statement // report CONNECTION information // execute an EXPLAIN command to get the query plan & report // execute EXPLAIN VERBOSE, parse and report more information about the query // query DB and report all the indexes on the appropriate tables // query pg_stats and ensure the DB statistical analysis is up-to-date // .... } #endif Alternatively, we could have DEBUG be off/on/full (0/1/128) to provide a bit more control over how much debugging is done. -------- I understand that this isn't necessarily the best way, but we've had this discussion a few times and we have almost nothing. At least this way we'll have something. And it shouldn't take very long (I'd do it myself, but I dont want to mess around with the parser). What say? dave From snchrstnglls at yahoo.com Tue Oct 1 10:16:01 2002 From: snchrstnglls at yahoo.com (Sean Gillies) Date: Tue, 1 Oct 2002 10:16:01 -0700 (PDT) Subject: [mapserver-users] Compile problems In-Reply-To: <004801c26956$a57cf910$0100a8c0@cpi.local> Message-ID: <20021001171601.60173.qmail@web21307.mail.yahoo.com> I'm not sure about all your errors, but I recognize two of them. You do not say so, but it looks to me like you might be trying to compile mapserver using gcc 3.x. I've never seen the errors you report when building with gcc 2.9.x. 1) Remove /usr/local/include from your INCLUDE_DIRS so that gcc doesn't complain about it. 2) The error undefined reference to `__gxx_personality_v0' tells you that you need to link shp2img using g++ rather than gcc because one of your libraries has C++ code. If you're not using gcc 3.x, please disregard my suggestions. Hope that this helps, Sean --- Tom Myny wrote: > Hi, > > When i try to compile mapserver1.6.1 with command > rule: > > ./configure --with-php=../php-4.2.3 > > i got: > [snipped errors] __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From tesimap at hotmail.com Tue Oct 1 10:24:52 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 01 Oct 2002 19:24:52 +0200 Subject: [mapserver-users] Font Error:msGetLabelSize() Message-ID: Hi all, I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I tested my project I have this error: msGetLabelSize(): TrueType Font error. Could not find/open font Before, I used your mapserver precompiled and my project worked correctly with truetype font. This is my fonts file (fonts.txt): arial arial.ttf timesbd timesbd.ttf In FONTSET I have setted the correct path: FONTSET "data/fonts.txt" Because I have copied fonts in this directory of my project. And this is an example of label in my layer: LABEL COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 PARTIALS FALSE BUFFER 3 END #LABEL Are there some errors? Any helps is appreciated. Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From Rich at greenwoodmap.com Tue Oct 1 10:45:47 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Tue, 01 Oct 2002 11:45:47 -0600 Subject: [mapserver-users] Query Template In-Reply-To: Message-ID: <5.1.0.14.0.20021001114309.00abecc0@mail.GreenwoodMap.com> >A basic question I think. How can you set the Query template to be >dependent on the query itself? > >I'm picturing something like this: TEMPLATE "[ATTRIBUTE].html" That should work. Also TEMPLATE "query_handler.php?attribute=[ATTRIBUTE]" should work if you want to pass it to a server-side script. But you can not use that for queries that might return more than one record (itemnquery) because you can only redirect once. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From woodbri at swoodbridge.com Tue Oct 1 10:49:36 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 1 Oct 2002 13:49:36 -0400 Subject: [mapserver-users] Font Error:msGetLabelSize() In-Reply-To: Message-ID: <3D99A7F0.902.48EBE0CE@localhost> Try making the paths absolute in the fonts.txt like arial /path/to/arial.ttf -Steve On 1 Oct 2002 at 19:24, Ivan Paoluzzi wrote: > > > Hi all, > I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I > tested my project I have this error: > > msGetLabelSize(): TrueType Font error. Could not find/open font > > Before, I used your mapserver precompiled and my project worked > correctly with truetype font. > > > This is my fonts file (fonts.txt): > arial arial.ttf > timesbd timesbd.ttf > > > In FONTSET I have setted the correct path: > FONTSET "data/fonts.txt" > Because I have copied fonts in this directory of my project. > > > And this is an example of label in my layer: > LABEL > COLOR 0 0 0 > FONT arial > TYPE TRUETYPE > SIZE 8 > ANTIALIAS TRUE > POSITION AUTO > ANGLE AUTO > MINFEATURESIZE 40 > MINDISTANCE 100 > PARTIALS FALSE > BUFFER 3 > END #LABEL > > Are there some errors? > Any helps is appreciated. > Ivan > > _________________________________________________________________ MSN > Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti > un account? http://www.hotmail.it > > From DMartin at erac.com Tue Oct 1 12:33:50 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 14:33:50 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B34@STL-EXBE-I03.corp.erac.com> Could you provide the map file definition for the Parima Survey Households layer? Thanks, Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Tuesday, October 01, 2002 11:56 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Same thing. Now I don't have group header bars seperating my layers, but all the layers still show up and when I click on a layer that has scale-specific classes, the symbols for all scales still show up. By the way, I'm on Mapserver 3.6.1 and here's the page to go to if you want to see what I'm talking about: http://cnrit.tamu.edu/maps/map_init.html Click on the very last button on that page (the one that says "FRAMES VERSION" on it). When the map shows up, expand the "Regional" folder on the left-hand side to display those layers. The one that I'm working on right now is called "Parima Survey Households". Click on that layer to load it into the map, then you'll see the various symbols I'm referring to show up in the legend. I represent the Parima households with red triangle symbols and I have different sized triangles depending on how far zoomed in you are so that they are small at a high scale and larger as you zoom in...but I don't want all versions of that symbol to show up in my legend all the time...just the one that's in scale. Thanks again! Martin, Daniel wrote: Try this. Take out the leg_group_html section, and the leg_layer_html section, leaving only the leg_class_html section. Take them out entirely - don't leave an empty set of tags. Then, let me know what happens. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 11:33 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Gladly. Here is my legend code: [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html] [/leg_layer_html] [leg_class_html]   [leg_class_name] [/leg_class_html] However, it does not work as you say (and as the documentation on the web page says!). Layers that are "off" do not show up (that's as expected and what I want), that's fine, but layers that are out of SCALE DO show up, and that's not as expected and that's not as the documentation states and that's NOT what I want. For example, I have a layer called Ethiopia_Rivers...here's what it looks like: LAYER NAME "Ethiopia_Rivers" TYPE LINE STATUS off GROUP Ethiopia DATA "ethiopia_rivers" HEADER 'ethiopia_rivers.shp_header.html' CLASS MAXSCALE 8710165 Name 'Ethiopia Rivers' COLOR 102 204 255 TEMPLATE ethiopia_rivers.shp_query.html END # CLASS END # LAYER Now, when I'm viewing my map at full extent, my scale factor is 1: 20136789, therefore if I click on the Ethiopia_Rivers layer at that zoom level, nothing shows up in the map. This is the exact behavior that I would expect...I'm out of scale for that layer, so it doesn't show up in the map until I zoom in. The PROBLEM, however, is that the "Ethiopia Rivers" icon and label pop up in my legend...this is counter-intuitive, contrary to the documented behavior of Mapserver, and just flat-out frustrating! If the layer is not showing up in my map (because it's out of scale), then it should NOT be in my legend either. Grrrr!!! Pardon me for sounding bitter...I'm not lashing out at you, I'm very grateful for your help, I'm just frustrated at Mapserver. Thanks! Martin, Daniel wrote: Perhaps I misunderstood. By default (no opt_flag set) layers that are out of scale and layers that have a STATUS off will not show in an HTML legend. A legend exactly like this should do exactly what it sounds like you want: [leg_class_html] [leg_class_name] [/leg_class_html] I'm not sure why you are having trouble getting the default action. Perhaps you could provide your current legend. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 10:59 AM To: Martin, Daniel Cc: mapserver-users at li! sts.gis.u mn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off still show, but layers out of scale don't show. [leg_layer_html opt_flag=2] Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) In my experience, opt_flag=2 is the most intuitive. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu! .edu] Sent: Mo nday, September 30, 2002 5:06 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML Legend with Status Checking... Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, but there's no status o f "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Tue Oct 1 12:42:56 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 01 Oct 2002 14:42:56 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... References: <4ACBA1414DD9EE418CC250E4AAA9035A192B34@STL-EXBE-I03.corp.erac.com> Message-ID: <3D99FAC0.30704@cnrit.tamu.edu> LAYER NAME Parima_Surveyhouseholds GROUP Region TYPE Point STATUS off DATA parima_surveyhouseholds HEADER 'parima_surveyhouseholds.shp_header.html' TEMPLATE parima_surveyhouseholds.shp_query.html CLASS MINSCALE 20136780 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 10068390 MAXSCALE 20136779 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 5034193 MAXSCALE 10068389 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 11 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 0 MAXSCALE 5034192 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 15 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER Martin, Daniel wrote: > Could you provide the map file definition for the Parima Survey > Households layer? > > > > Thanks, > > Dan > > -----Original Message----- > From: Mike Smith [mailto:nospam at cnrit.tamu.edu] > Sent: Tuesday, October 01, 2002 11:56 AM > To: Martin, Daniel > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] HTML Legend with Status Checking... > > Same thing. Now I don't have group header bars seperating my > layers, but all the layers still show up and when I click on a > layer that has scale-specific classes, the symbols for all scales > still show up. By the way, I'm on Mapserver 3.6.1 and here's the > page to go to if you want to see what I'm talking about: > > http://cnrit.tamu.edu/maps/map_init.html > > Click on the very last button on that page (the one that says > "FRAMES VERSION" on it). When the map shows up, expand the > "Regional" folder on the left-hand side to display those layers. > The one that I'm working on right now is called "Parima Survey > Households". Click on that layer to load it into the map, then > you'll see the various symbols I'm referring to show up in the > legend. I represent the Parima households with red triangle > symbols and I have different sized triangles depending on how far > zoomed in you are so that they are small at a high scale and > larger as you zoom in...but I don't want all versions of that > symbol to show up in my legend all the time...just the one that's > in scale. > > Thanks again! > > Martin, Daniel wrote: > >> Try this. Take out the leg_group_html section, and the >> leg_layer_html section, leaving only the leg_class_html section. >> Take them out entirely - don't leave an empty set of tags. Then, >> let me know what happens. >> >> >> >> -Dan >> >> -----Original Message----- >> From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] >> Sent: Tuesday, October 01, 2002 11:33 AM >> To: Martin, Daniel >> Cc: mapserver-users at lists.gis.umn.edu >> Subject: Re: [mapserver-users] HTML Legend with Status >> Checking... >> >> Gladly. Here is my legend code: >> >> [leg_group_html] >> >> > bgcolor=#cccccc>[leg_group_name] >> >> [/leg_group_html] >> >> [leg_layer_html] >> [/leg_layer_html] >> >> [leg_class_html] >> >>   >> >> > height=15> >> >> >> [leg_class_name] >> >> >> [/leg_class_html] >> >> >> However, it does not work as you say (and as the >> documentation on the web page says!). Layers that are "off" >> do not show up (that's as expected and what I want), that's >> fine, but layers that are out of SCALE DO show up, and that's >> not as expected and that's not as the documentation states >> and that's NOT what I want. For example, I have a layer >> called Ethiopia_Rivers...here's what it looks like: >> >> LAYER >> NAME "Ethiopia_Rivers" >> TYPE LINE >> STATUS off >> GROUP Ethiopia >> DATA "ethiopia_rivers" >> HEADER 'ethiopia_rivers.shp_header.html' >> CLASS >> MAXSCALE 8710165 >> Name 'Ethiopia Rivers' >> COLOR 102 204 255 >> TEMPLATE ethiopia_rivers.shp_query.html >> END # CLASS >> END # LAYER >> >> Now, when I'm viewing my map at full extent, my scale factor >> is 1: 20136789, therefore if I click on the Ethiopia_Rivers >> layer at that zoom level, nothing shows up in the map. This >> is the exact behavior that I would expect...I'm out of scale >> for that layer, so it doesn't show up in the map until I zoom >> in. The PROBLEM, however, is that the "Ethiopia Rivers" icon >> and label pop up in my legend...this is counter-intuitive, >> contrary to the documented behavior of Mapserver, and just >> flat-out frustrating! If the layer is not showing up in my >> map (because it's out of scale), then it should NOT be in my >> legend either. Grrrr!!! Pardon me for sounding bitter...I'm >> not lashing out at you, I'm very grateful for your help, I'm >> just frustrated at Mapserver. >> >> Thanks! >> >> Martin, Daniel wrote: >> >>>Perhaps I misunderstood. By default (no opt_flag set) layers that are out >>>of scale and layers that have a STATUS off will not show in an HTML legend. >>> >>> >>>A legend exactly like this should do exactly what it sounds like you want: >>> >>>[leg_class_html] >>> >>> >>> >>> >>> >>> [leg_class_name] >>> >>> >>>[/leg_class_html] >>> >>>I'm not sure why you are having trouble getting the default action. Perhaps >>>you could provide your current legend. >>> >>>-Dan >>> >>>-----Original Message----- >>>From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >>>Sent: Tuesday, October 01, 2002 10:59 AM >>>To: Martin, Daniel >>>Cc: mapserver-user! >>>s at li! >>> >>>sts.gis.u >>>mn.edu >>>Subject: Re: [mapserver-users] HTML Legend with Status Checking... >>> >>> >>>Thank you, but this didn't change a thing. Actually, let me correct >>>that...it had a negative effect because now all my layers show up too, >>>even if they are not displayed in the map. I want only active layers to >>>show in the legend and I want only IN-SCALE class symbols to show up in >>>the legend, I don't want 4 symbols to show up in the legend for every >>>layer that I have which has scale-specific classes...I just don't guess >>>I can do that without converting everything over to Mapscript. X-( >>> >>>Any other ideas? >>> >>>Martin, Daniel wrote: >>> >>>>You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >>>>still show, but layers out of scale don't show. >>>> >>>>[leg_layer_html opt_flag=2] >>>> >>>> >>>>Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : >>>> >>>>1: If set, show layer even if out of scale (default: hide layers out of >>>>scale). >>>> >>>>2: If set, show layer even if status is OFF (default: hide layers with >>>>STATUS OFF). >>>> >>>>4: If set, show layer even if type is QUERY (default: hide layers of TYPE >>>>QUERY) >>>> >>>>8: If set, show layer even if type is ANNOTATION (default: hide layers of >>>>TYPE ANNOTATION) >>>> >>>> >>>>In my experience, opt_flag=2 is the most intuitive. >>>> >>>>-Dan >>>> >>>> >>>> >>>>-----Original Message----- >>>>From: Mike Smith [mailto:nospam at cnrit.! >>>>tamu! >>>>.edu] >>>>Sent: Mo >>>>nday, September 30, 2002 5:06 PM >>>>To: mapserver-users at lists.gis.umn.edu >>>>Subject: [mapserver-users] HTML Legend with Status Checking... >>>> >>>> >>>>Hello, >>>> >>>> I've seen how you can make legends using PHP Mapscript that check to >>>>see whether a layer or class is in scale before displaying it in the >>>>legend, but no mention of how to do this if I'm not using Mapscript. I >>>>have sub-classed many of my layers so that symbols show up in different >>>>sizes depending on how far zoomed in you are. In other words, I'm using >>>>"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >>>>in the legend and that's really annoying! I want ONLY the in-scale >>>>symbol to show up in the legend as it does in the map...any tips on how >>>>to do this without Mapscript? I see the "if" conditional statements in >>>>the HTML Legend How-to, but! >>>> there's no status o >>>>f "SCALE" to >>>>check with >>>>those statements... if I could put an if statement in my legend template >>>>that checked whether or not a class or layer was in scale, then I'd be >>>>in business...any way to do this? >>>> >>>>Thanks! >>>> >>>> >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Tue Oct 1 13:27:28 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 15:27:28 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B35@STL-EXBE-I03.corp.erac.com> It's all clear now. Sorry for the misunderstanding. AFAIK, classes don't have a status you can access in the HTML legend like layers (unfortunately). What I know will work (because I do it all the time) is creating 4 separate layers each with 1 and only 1 class and moving your MINSCALE and MAXSCALE settings to the layer object. Give all the layers the same name (very important). This will perform exactly the same since you have no crossover of scale, and the HTML legend will perform as you expect it to. On a separate subject, you might be better off using scaleable symbols rather than your current solution. But, perhaps you have reasons for not using them. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Tuesday, October 01, 2002 2:43 PM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... LAYER NAME Parima_Surveyhouseholds GROUP Region TYPE Point STATUS off DATA parima_surveyhouseholds HEADER 'parima_surveyhouseholds.shp_header.html' TEMPLATE parima_surveyhouseholds.shp_query.html CLASS MINSCALE 20136780 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 10068390 MAXSCALE 20136779 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 5034193 MAXSCALE 10068389 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 11 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 0 MAXSCALE 5034192 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 15 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER Martin, Daniel wrote: Could you provide the map file definition for the Parima Survey Households layer? Thanks, Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 11:56 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Same thing. Now I don't have group header bars seperating my layers, but all the layers still show up and when I click on a layer that has scale-specific classes, the symbols for all scales still show up. By the way, I'm on Mapserver 3.6.1 and here's the page to go to if you want to see what I'm talking about: http://cnrit.tamu.edu/maps/map_init.html Click on the very last button on that page (the one that says "FRAMES VERSION" on it). When the map shows up, expand the "Regional" folder on the left-hand side to display those layers. The one that I'm working on right now is called "Parima Survey Households". Click on that layer to load it into the map, then you'll see the various symbols I'm referring to show up in the legend. I represent the Parima households with red triangle symbols and I have different sized triangles depending on how far zoomed in you are so that they are small at a high scale and larger as you zoom in...but I don't want all versions of that symbol to show up in my legend all the time...just the one that's in scale. Thanks again! Martin, Daniel wrote: Try this. Take out the leg_group_html section, and the leg_layer_html section, leaving only the leg_class_html section. Take them out entirely - don't leave an empty set of tags. Then, let me know what happens. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 11:33 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Gladly. Here is my legend code: [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html] [/leg_layer_html] [leg_class_html]   [leg_class_name] [/leg_class_html] However, it does not work as you say (and as the documentation on the web page says!). Layers that are "off" do not show up (that's as expected and what I want), that's fine, but layers that are out of SCALE DO show up, and that's not as expected and that's not as the documentation states and that's NOT what I want. For example, I have a layer called Ethiopia_Rivers...here's what it looks like: LAYER NAME "Ethiopia_Rivers" TYPE LINE STATUS off GROUP Ethiopia DATA "ethiopia_rivers" HEADER 'ethiopia_rivers.shp_header.html' CLASS MAXSCALE 8710165 Name 'Ethiopia Rivers' COLOR 102 204 255 TEMPLATE ethiopia_rivers.shp_query.html END # CLASS END # LAYER Now, when I'm viewing my map at full extent, my scale factor is 1: 20136789, therefore if I click on the Ethiopia_Rivers layer at that zoom level, nothing shows up in the map. This is the exact behavior that I would expect...I'm out of scale for that layer, so it doesn't show up in the map until I zoom in. The PROBLEM, however, is that the "Ethiopia Rivers" icon and label pop up in my legend...this is counter-intuitive, contrary to the documented behavior of Mapserver, and just flat-out frustrating! If the layer is not showing up in my map (because it's out of scale), then it should NOT be in my legend either. Grrrr!!! Pardon me for sounding bitter...I'm not lashing out at you, I'm very grateful for your help, I'm just frustrated at Mapserver. Thanks! Martin, Daniel wrote: Perhaps I misunderstood. By default (no opt_flag set) layers that are out of scale and layers that have a STATUS off will not show in an HTML legend. A legend exactly like this should do exactly what it sounds like you want: [leg_class_html] [leg_class_name] [/leg_class_html] I'm not sure why you are having trouble getting the default action. Perhaps you could provide your current legend. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 10:59 AM To: Martin, Daniel Cc: mapserver-user! s at li! sts.gis.u mn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off still show, but layers out of scale don't show. [leg_layer_html opt_flag=2] Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) In my experience, opt_flag=2 is the most intuitive. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.! tamu! .ed u] Sent: Mo nday, September 30, 2002 5:06 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML Legend with Status Checking... Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, but! there 's no status o f "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Tue Oct 1 13:39:34 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 01 Oct 2002 15:39:34 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... References: <4ACBA1414DD9EE418CC250E4AAA9035A192B35@STL-EXBE-I03.corp.erac.com> Message-ID: <3D9A0806.1090809@cnrit.tamu.edu> OK, I'll buy that. I'm disappointed to hear that, though, because my .map file is 3400 lines long and I've got 4 versions of it to alter each time I make a change because I provide users a java-applet based version of the page and a non-applet version, as well as large and small map variations...OUCH! This is going to be very tedious to implement, but I guess that's what I get paid for! :-) About the scaleable symbols...I'm not using them because I don't know what they are? I've got a symbols.sym file defined (that I took from the maplab tar archive) and it's got a bunch of symbols defined in it and I scale them with the "SIZE" keyword in my map file...is there something else I could do? What exactly is a "scaleable symbol"? Thanks very much for your help! Martin, Daniel wrote: > It's all clear now. Sorry for the misunderstanding. > > > > AFAIK, classes don't have a status you can access in the > HTML legend like layers (unfortunately). What I know will work > (because I do it all the time) is creating 4 separate layers each with > 1 and only 1 class and moving your MINSCALE and MAXSCALE settings to > the layer object. Give all the layers the same name (very important). > > > > This will perform exactly the same since you have no crossover of > scale, and the HTML legend will perform as you expect it to. > > > > On a separate subject, you might be better off using scaleable symbols > rather than your current solution. But, perhaps you have reasons for > not using them. > > > > -Dan > > > > -----Original Message----- > From: Mike Smith [mailto:nospam at cnrit.tamu.edu] > Sent: Tuesday, October 01, 2002 2:43 PM > To: Martin, Daniel > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] HTML Legend with Status Checking... > > LAYER > NAME Parima_Surveyhouseholds > GROUP Region > TYPE Point > STATUS off > DATA parima_surveyhouseholds > HEADER 'parima_surveyhouseholds.shp_header.html' > TEMPLATE parima_surveyhouseholds.shp_query.html > > CLASS > MINSCALE 20136780 > Name 'Parima Survey Households' > SYMBOL 'triangle' > SIZE 5 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END # CLASS > > CLASS > MINSCALE 10068390 > MAXSCALE 20136779 > Name 'Parima Survey Households' > SYMBOL 'triangle' > SIZE 8 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END # CLASS > > CLASS > MINSCALE 5034193 > MAXSCALE 10068389 > Name 'Parima Survey Households' > SYMBOL 'triangle' > SIZE 11 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END # CLASS > > CLASS > MINSCALE 0 > MAXSCALE 5034192 > Name 'Parima Survey Households' > SYMBOL 'triangle' > SIZE 15 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END # CLASS > > END # LAYER > > Martin, Daniel wrote: > >> Could you provide the map file definition for the Parima Survey >> Households layer? >> >> >> >> Thanks, >> >> Dan >> >> -----Original Message----- >> From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] >> Sent: Tuesday, October 01, 2002 11:56 AM >> To: Martin, Daniel >> Cc: mapserver-users at lists.gis.umn.edu >> Subject: Re: [mapserver-users] HTML Legend with Status >> Checking... >> >> Same thing. Now I don't have group header bars seperating my >> layers, but all the layers still show up and when I click on >> a layer that has scale-specific classes, the symbols for all >> scales still show up. By the way, I'm on Mapserver 3.6.1 and >> here's the page to go to if you want to see what I'm talking >> about: >> >> http://cnrit.tamu.edu/maps/map_init.html >> >> Click on the very last button on that page (the one that says >> "FRAMES VERSION" on it). When the map shows up, expand the >> "Regional" folder on the left-hand side to display those >> layers. The one that I'm working on right now is called >> "Parima Survey Households". Click on that layer to load it >> into the map, then you'll see the various symbols I'm >> referring to show up in the legend. I represent the Parima >> households with red triangle symbols and I have different >> sized triangles depending on how far zoomed in you are so >> that they are small at a high scale and larger as you zoom >> in...but I don't want all versions of that symbol to show up >> in my legend all the time...just the one that's in scale. >> >> Thanks again! >> >> Martin, Daniel wrote: >> >>> Try this. Take out the leg_group_html section, and the >>> leg_layer_html section, leaving only the leg_class_html >>> section. Take them out entirely - don't leave an empty set >>> of tags. Then, let me know what happens. >>> >>> >>> >>> -Dan >>> >>> -----Original Message----- >>> From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] >>> Sent: Tuesday, October 01, 2002 11:33 AM >>> To: Martin, Daniel >>> Cc: mapserver-users at lists.gis.umn.edu >>> Subject: Re: [mapserver-users] HTML Legend with Status >>> Checking... >>> >>> Gladly. Here is my legend code: >>> >>> [leg_group_html] >>> >>> >> bgcolor=#cccccc>[leg_group_name] >>> >>> [/leg_group_html] >>> >>> [leg_layer_html] >>> [/leg_layer_html] >>> >>> [leg_class_html] >>> >>>   >>> >>> >> width=15 height=15> >>> >>> >>> [leg_class_name] >>> >>> >>> [/leg_class_html] >>> >>> >>> However, it does not work as you say (and as the >>> documentation on the web page says!). Layers that are >>> "off" do not show up (that's as expected and what I >>> want), that's fine, but layers that are out of SCALE DO >>> show up, and that's not as expected and that's not as >>> the documentation states and that's NOT what I want. >>> For example, I have a layer called >>> Ethiopia_Rivers...here's what it looks like: >>> >>> LAYER >>> NAME "Ethiopia_Rivers" >>> TYPE LINE >>> STATUS off >>> GROUP Ethiopia >>> DATA "ethiopia_rivers" >>> HEADER 'ethiopia_rivers.shp_header.html' >>> CLASS >>> MAXSCALE 8710165 >>> Name 'Ethiopia Rivers' >>> COLOR 102 204 255 >>> TEMPLATE ethiopia_rivers.shp_query.html >>> END # CLASS >>> END # LAYER >>> >>> Now, when I'm viewing my map at full extent, my scale >>> factor is 1: 20136789, therefore if I click on the >>> Ethiopia_Rivers layer at that zoom level, nothing shows >>> up in the map. This is the exact behavior that I would >>> expect...I'm out of scale for that layer, so it doesn't >>> show up in the map until I zoom in. The PROBLEM, >>> however, is that the "Ethiopia Rivers" icon and label >>> pop up in my legend...this is counter-intuitive, >>> contrary to the documented behavior of Mapserver, and >>> just flat-out frustrating! If the layer is not showing >>> up in my map (because it's out of scale), then it should >>> NOT be in my legend either. Grrrr!!! Pardon me for >>> sounding bitter...I'm not lashing out at you, I'm very >>> grateful for your help, I'm just frustrated at Mapserver. >>> >>> Thanks! >>> >>> Martin, Daniel wrote: >>> >>>>Perhaps I misunderstood. By default (no opt_flag set) layers that are out >>>>of scale and layers that have a STATUS off will not show in an HTML legend. >>>> >>>> >>>>A legend exactly like this should do exactly what it sounds like you want: >>>> >>>>[leg_class_html] >>>> >>>> >>>> >>>> >>>> >>>> [leg_class_name] >>>> >>>> >>>>[/leg_class_html] >>>> >>>>I'm not sure why you are having trouble getting the default action. Perhaps >>>>you could provide your current legend. >>>> >>>>-Dan >>>> >>>>-----Original Message----- >>>>From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >>>>Sent: Tuesday, October 01, 2002 10:59 AM >>>>To: Martin, Daniel >>>>Cc: mapserver-! >>>>user! >>>> >>>>s at li! >>>> >>>>sts.gis.u >>>>mn.edu >>>>Subject: Re: [mapserver-users] HTML Legend with Status Checking... >>>> >>>> >>>>Thank you, but this didn't change a thing. Actually, let me correct >>>>that...it had a negative effect because now all my layers show up too, >>>>even if they are not displayed in the map. I want only active layers to >>>>show in the legend and I want only IN-SCALE class symbols to show up in >>>>the legend, I don't want 4 symbols to show up in the legend for every >>>>layer that I have which has scale-specific classes...I just don't guess >>>>I can do that without converting everything over to Mapscript. X-( >>>> >>>>Any other ideas? >>>> >>>>Martin, Daniel wrote: >>>> >>>>>You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off >>>>>still show, but layers out of scale don't show. >>>>> >>>>>[leg_layer_html opt_flag=2] >>>>> >>>>> >>>>>Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : >>>>> >>>>>1: If set, show layer even if out of scale (default: hide layers out of >>>>>scale). >>>>> >>>>>2: If set, show layer even if status is OFF (default: hide layers with >>>>>STATUS OFF). >>>>> >>>>>4: If set, show layer even if type is QUERY (default: hide layers of TYPE >>>>>QUERY) >>>>> >>>>>8: If set, show layer even if type is ANNOTATION (default: hide layers of >>>>>TYPE ANNOTATION) >>>>> >>>>> >>>>>In my experience, opt_flag=2 is the most intuitive. >>>>> >>>>>-Dan >>>>> >>>>> >>>>> >>>>>-----Original Message----- >>>>>From: Mike Smith [mailto:nospam at cn! >>>>>rit.! >>>>>tamu! >>>>>.ed >>>>>u] >>>>>Sent: Mo >>>>>nday, September 30, 2002 5:06 PM >>>>>To: mapserver-users at lists.gis.umn.edu >>>>>Subject: [mapserver-users] HTML Legend with Status Checking... >>>>> >>>>> >>>>>Hello, >>>>> >>>>> I've seen how you can make legends using PHP Mapscript that check to >>>>>see whether a layer or class is in scale before displaying it in the >>>>>legend, but no mention of how to do this if I'm not using Mapscript. I >>>>>have sub-classed many of my layers so that symbols show up in different >>>>>sizes depending on how far zoomed in you are. In other words, I'm using >>>>>"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up >>>>>in the legend and that's really annoying! I want ONLY the in-scale >>>>>symbol to show up in the legend as it does in the map...any tips on how >>>>>to do this without Mapscript? I see the "if" conditional statements in >>>>>the HTML Legend How-to, but! >>>>> there >>>>>'s no status o >>>>>f "SCALE" to >>>>>check with >>>>>those statements... if I could put an if statement in my legend template >>>>>that checked whether or not a class or layer was in scale, then I'd be >>>>>in business...any way to do this? >>>>> >>>>>Thanks! >>>>> >>>>> >>>> >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Tue Oct 1 13:53:43 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 1 Oct 2002 15:53:43 -0500 Subject: [mapserver-users] Scaleable symbols (WAS: HTML Legend with St atus Checking...) Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B36@STL-EXBE-I03.corp.erac.com> To be honest, I have very little experience with scaleable symbols...I just know MapServer has support for them. In the documentation, http://mapserver.gis.umn.edu/doc36/mapfile-reference.html see: SYMBOLSCALE under the LAYER object MINSCALE, MAXSCALE under the CLASS object Others can spread more light on scaleable symbols than I can, I'm sure. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Tuesday, October 01, 2002 3:40 PM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... OK, I'll buy that. I'm disappointed to hear that, though, because my .map file is 3400 lines long and I've got 4 versions of it to alter each time I make a change because I provide users a java-applet based version of the page and a non-applet version, as well as large and small map variations...OUCH! This is going to be very tedious to implement, but I guess that's what I get paid for! :-) About the scaleable symbols...I'm not using them because I don't know what they are? I've got a symbols.sym file defined (that I took from the maplab tar archive) and it's got a bunch of symbols defined in it and I scale them with the "SIZE" keyword in my map file...is there something else I could do? What exactly is a "scaleable symbol"? Thanks very much for your help! Martin, Daniel wrote: It's all clear now. Sorry for the misunderstanding. AFAIK, classes don't have a status you can access in the HTML legend like layers (unfortunately). What I know will work (because I do it all the time) is creating 4 separate layers each with 1 and only 1 class and moving your MINSCALE and MAXSCALE settings to the layer object. Give all the layers the same name (very important). This will perform exactly the same since you have no crossover of scale, and the HTML legend will perform as you expect it to. On a separate subject, you might be better off using scaleable symbols rather than your current solution. But, perhaps you have reasons for not using them. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 2:43 PM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... LAYER NAME Parima_Surveyhouseholds GROUP Region TYPE Point STATUS off DATA parima_surveyhouseholds HEADER 'parima_surveyhouseholds.shp_header.html' TEMPLATE parima_surveyhouseholds.shp_query.html CLASS MINSCALE 20136780 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 10068390 MAXSCALE 20136779 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 5034193 MAXSCALE 10068389 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 11 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS MINSCALE 0 MAXSCALE 5034192 Name 'Parima Survey Households' SYMBOL 'triangle' SIZE 15 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER Martin, Daniel wrote: Could you provide the map file definition for the Parima Survey Households layer? Thanks, Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 11:56 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Same thing. Now I don't have group header bars seperating my layers, but all the layers still show up and when I click on a layer that has scale-specific classes, the symbols for all scales still show up. By the way, I'm on Mapserver 3.6.1 and here's the page to go to if you want to see what I'm talking about: http://cnrit.tamu.edu/maps/map_init.html Click on the very last button on that page (the one that says "FRAMES VERSION" on it). When the map shows up, expand the "Regional" folder on the left-hand side to display those layers. The one that I'm working on right now is called "Parima Survey Households". Click on that layer to load it into the map, then you'll see the various symbols I'm referring to show up in the legend. I represent the Parima households with red triangle symbols and I have different sized triangles depending on how far zoomed in you are so that they are small at a high scale and larger as you zoom in...but I don't want all versions of that symbol to show up in my legend all the time...just the one that's in scale. Thanks again! Martin, Daniel wrote: Try this. Take out the leg_group_html section, and the leg_layer_html section, leaving only the leg_class_html section. Take them out entirely - don't leave an empty set of tags. Then, let me know what happens. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 11:33 AM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Gladly. Here is my legend code: [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html] [/leg_layer_html] [leg_class_html]   [leg_class_name] [/leg_class_html] However, it does not work as you say (and as the documentation on the web page says!). Layers that are "off" do not show up (that's as expected and what I want), that's fine, but layers that are out of SCALE DO show up, and that's not as expected and that's not as the documentation states and that's NOT what I want. For example, I have a layer called Ethiopia_Rivers...here's what it looks like: LAYER NAME "Ethiopia_Rivers" TYPE LINE STATUS off GROUP Ethiopia DATA "ethiopia_rivers" HEADER 'ethiopia_rivers.shp_header.html' CLASS MAXSCALE 8710165 Name 'Ethiopia Rivers' COLOR 102 204 255 TEMPLATE ethiopia_rivers.shp_query.html END # CLASS END # LAYER Now, when I'm viewing my map at full extent, my scale factor is 1: 20136789, therefore if I click on the Ethiopia_Rivers layer at that zoom level, nothing shows up in the map. This is the exact behavior that I would expect...I'm out of scale for that layer, so it doesn't show up in the map until I zoom in. The PROBLEM, however, is that the "Ethiopia Rivers" icon and label pop up in my legend...this is counter-intuitive, contrary to the documented behavior of Mapserver, and just flat-out frustrating! If the layer is not showing up in my map (because it's out of scale), then it should NOT be in my legend either. Grrrr!!! Pardon me for sounding bitter...I'm not lashing out at you, I'm very grateful for your help, I'm just frustrated at Mapserver. Thanks! Martin, Daniel wrote: Perhaps I misunderstood. By default (no opt_flag set) layers that are out of scale and layers that have a STATUS off will not show in an HTML legend. A legend exactly like this should do exactly what it sounds like you want: [leg_class_html] [leg_class_name] [/leg_class_html] I'm not sure why you are having trouble getting the default action. Perhaps you could provide your current legend. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] Sent: Tuesday, October 01, 2002 10:59 AM To: Martin, Daniel Cc: mapserver-! user! s at li! sts.gis.u mn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... Thank you, but this didn't change a thing. Actually, let me correct that...it had a negative effect because now all my layers show up too, even if they are not displayed in the map. I want only active layers to show in the legend and I want only IN-SCALE class symbols to show up in the legend, I don't want 4 symbols to show up in the legend for every layer that I have which has scale-specific classes...I just don't guess I can do that without converting everything over to Mapscript. X-( Any other ideas? Martin, Daniel wrote: You probably want a bit mask of 2 in your opt_flag. Layers with STATUS off still show, but layers out of scale don't show. [leg_layer_html opt_flag=2] Per http://mapserver.gis.umn.edu/doc36/html-legend-howto.html : 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) In my experience, opt_flag=2 is the most intuitive. -Dan -----Original Message----- From: Mike Smith [ mailto:nospam at cn! rit.! tam u! .ed u] Sent: Mo nday, September 30, 2002 5:06 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTML Legend with Status Checking... Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, b ut! there 's no status o f "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at libero.it Tue Oct 1 15:29:58 2002 From: armin.burger at libero.it (Armin Burger) Date: Tue, 1 Oct 2002 23:29:58 +0100 Subject: [mapserver-users] QuerybyPoint blues Message-ID: <200210012127.QAA16026@lists.gis.umn.edu> Tom, did you specify 'MS_MULTIPLE' or 'MS_SINGLE' in your queryByPoint definition? I don't know why, but for 'MS_SINGLE' I never get results. For 'MS_MULTIPLE' there are results returned, usually for a very large search area when I apply queryByPoint with '-1' as buffer. Using map units as buffer it works perfectly. I also used the gmap75 example as template. Armin > Does anyone have a simple example of a querybypoint using phpMapscript? > I've got the GMAP75 example, I've added a "TEMPLATE void" to the LAYER in > the ".MAP" file as suggested in a prior post. I've also added what I think > are the right "RESULT_FIELDS" metadata tags in the same layer level. > Using one layer with multiple classes from a real simple Tiger shape file. > Getting the infamous "MapServer Error in msQueryByPoint(): No matching > record(s) found" even though it should find it. > Any help is appreciated! > --------------------------------- > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! From woodbri at swoodbridge.com Tue Oct 1 17:09:54 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 1 Oct 2002 20:09:54 -0400 Subject: [mapserver-users] HTML Legend with Status Checking... In-Reply-To: <3D9A0806.1090809@cnrit.tamu.edu> Message-ID: <3D9A0112.1472.4A480D58@localhost> (I cc:'d this to maplab list) OK, I have been reading this thread with great interest and was wondering if you can summarize what you need to do to have multiple layers at different scales and only have the visible ones show up in your legend templates. I think this is an area that could use more documentation or at least user insights. The variables seem to be: group names layer names and scales class names and scales the option code in legend templates and maybe a few others that I missed. I have a mapfile that was working great in a modified version of gmap75 and in it all like layers have the same name and different scales and it works great, except it always shows all the layers. I move the mapfile into the new maplab application and a bunch of my layers vanished. I turns out the maplab generates urls like: ...&layer[]=highway&layer[]=highway&layer[]=highway&... because I use the same name on all the like layers. So I think I have it confused. So your insight into the layers, names, scales etc might help me figure this out. Thanks, -Steve W. From Antti.Roppola at brs.gov.au Tue Oct 1 17:28:14 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 2 Oct 2002 10:28:14 +1000 Subject: [mapserver-users] QuerybyPoint blues Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3F97C@ACTMAIL2> Hi Tom, I have got queries on polygons and lines working OK (but not points). Here are the relevant chunks of code. LAYER NAME "Roads" TYPE LINE STATUS OFF DATA roads CLASS NAME "Roads" COLOR 255 0 0 TEMPLATE "dummy" # doesn't exist END METADATA "DESCRIPTION" "DCW roads" ## The following are not the same as GMap "QUERY_FIELDS_ITEM" "FORMATION" "QUERY_FIELDS_DESC" "Road Formation Code" END END setXY($ClickMapX,$ClickMapY); @map->queryByPoint($pointQuery, MS_MULTIPLE, -1); $img = $map->drawQuery(); QueryResults($pointQuery, $map); ## This function is a hack from the same in Gmap } ?> The QueryResults function is as from GMap (I have not gotten around to writing my own and it works well enough), though I did add some debug stuff so I could see what it was doing. In the function, find the line; "$numResults = $oLayer->getNumResults(); and insert the following line after it: if ($debug) { printf("Debug: Layer: %s Results: %s
\n", $iLayer, $numResults); } If you set $debug at the start of the function, this will show you if the query is actually finding anything for each layer. Cheers, Antti From Antti.Roppola at brs.gov.au Tue Oct 1 17:31:09 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 2 Oct 2002 10:31:09 +1000 Subject: [mapserver-users] QuerybyPoint blues Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3F97D@ACTMAIL2> Hi all, I have also been having all sorts of difficulty getting queries from point layers. @$map->queryByPoint($pointQuery,MS_MULTIPLE, -1); So far I have tried several things without success: - Using the query point to create a queryByRect() that defintely encompasses the query object - Increasing TOLERANCE in the layer - Adding dummy TEMPLATES to classes and/or layers That it all works OK for line and polygon features suggests to me that I have the syntax right. It's only point layers that don't work and I don't see why/how they should behave differently. Cheers, Antti -----Original Message----- > Does anyone have a simple example of a querybypoint using phpMapscript? See my other post. The code works for lines and polygons. From armin.burger at libero.it Wed Oct 2 02:41:31 2002 From: armin.burger at libero.it (Armin Burger) Date: Wed, 2 Oct 2002 11:41:31 +0200 Subject: [mapserver-users] Query by attributes with PHP/MapScript Message-ID: <200210020947.g929lIY19406@efferd.nettz.com> Hi all, I would like to query shapefiles based on their attibutes using PHP/MapScript, like street='mainstreet' and city='newtown' and then get back all records, including for instance the bounding box of the shape. There is the function QueryByAttributes, but as I saw in the mail archives you have to set a filteritem and then a filter on the layer. That can only use one field as filteritem. I would need 2 or even more fields used in the query. I was thinking about using basic PHP functions for dBase. Unfortunately the dBase support of pure PHP seems to be very rudimentary and does not allow queries. There is the Pear DB module, but there is no documentation to what extent dBase files are supported. Can anybody who was succesful in this area give me hints how to achieve slightly complex attribute queries with PHP or PHP/MapScript? An optimal solution in my opinion would be a query interface in MapScript that mimics the SQL syntax. Though I don't have any idea how difficult this would be to implement. Armin From woodbri at swoodbridge.com Wed Oct 2 06:30:50 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 2 Oct 2002 09:30:50 -0400 Subject: [mapserver-users] Query by attributes with PHP/MapScript In-Reply-To: <200210020947.g929lIY19406@efferd.nettz.com> Message-ID: <3D9ABCCA.8654.4D2551A2@localhost> On 2 Oct 2002 at 11:41, Armin Burger wrote: > Hi all, > > I would like to query shapefiles based on their attibutes using > PHP/MapScript, like > > street='mainstreet' and city='newtown' > > and then get back all records, including for instance the bounding box > of the shape. This is basically a geocoding function. I ended up implementing this in C for the US Tiger data, because if you have a large dataset it could take a long time to query it and requires a lot of slow disk reads. As part of this I had to build indexes to make it fast as there are about 6500 files that might have to be scanned depending on the query!!! http://iMapTools.com/demos/?tab=1 > There is the function QueryByAttributes, but as I saw in the mail > archives you have to set a filteritem and then a filter on the layer. > That can only use one field as filteritem. I would need 2 or even more > fields used in the query. > > I was thinking about using basic PHP functions for dBase. > Unfortunately the dBase support of pure PHP seems to be very > rudimentary and does not allow queries. There is the Pear DB module, > but there is no documentation to what extent dBase files are > supported. > > Can anybody who was succesful in this area give me hints how to > achieve slightly complex attribute queries with PHP or PHP/MapScript? > > An optimal solution in my opinion would be a query interface in > MapScript that mimics the SQL syntax. Though I don't have any idea how > difficult this would be to implement. While there are some simple SQL parsers available on the web, the real problem becomes a) mapping the SQL actions into all the data sets that mapserver supports and b) performance of the queries. Things like shapefiles do not have indexes to make attribute queries fast, so you end up always doing full table scans, or you have to add generating indexes, but them you end up building a whole relational database on top of structures that are not nicely suited for them :( Why not load your attribute data into a MySQL or all your data into PostGIS and be done with it. then you can make you SQL queries and generate appropriate indexes, etc. If you use shapefiles then store the shapefile name and the index to the record along with the attribute info so you have a back pointer to the spatial data. I built the following placename geocoder using Perl to load the data into MySQL and PHP as the web UI with over 7 million place names: http://iMapTools.com/geocode.php Any way, using a database should work well from PHP or Perl and you can write a script to upload the data into the database. -Stephen Woodbridge http://iMapTools.com > Armin > > > From Bjarni.Pjetursson at tietoenator.com Wed Oct 2 07:07:32 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Wed, 2 Oct 2002 16:07:32 +0200 Subject: SV: [mapserver-users] Oracle spatial support Message-ID: <18E0CC75605BD411907800508B8BB8D00165F035@odin.enator.dk> Hi Fabio, at our company we have been using mapserver for some time to map fishing vessels at sea using Oracle Locator (Oracle Spatial light). Maybe you can use our mapserver compile: MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=ORACLESPATIAL INPUT=OGR INPUT=SHAPEFILE You should however be aware of some current limitations in the Oracle Spatial support: 1. You can only work on one column in your layer besides the spatial column. 2. You can not use the query-object feature. Get our exe-file from here: http://www.enator.dk/mapserv/mapserv361spatial.htm (this link will only be available for a short while) Regards Bjarni Thor Pjetursson TietoEnator Consulting A/S Denmark > -----Oprindelig meddelelse----- > Fra: Fabio Corsi [SMTP:f.corsi at pan.bio.uniroma1.it] > Sendt: 27. september 2002 22:50 > Til: mapserver-users at lists.gis.umn.edu > Emne: [mapserver-users] Oracle spatial support > > Hi, > I have been using Mapserver successfully for a few months using shape > files. Now I would like to mode my data into an Oracle server with SDO and > use Mapserver to browse the data. > The only version of Mapserver I could find with oraclespatial enabled is > the one at (and it is ver. 3.5). > > I was wondering whether there is precompiled win32 version of Mapserver > 3.6.1 with oraclespatial available. I would also appreciate directions to > examples, tutorials and/or documentation on how to use Mapserver with > Oracle Spatial. > > Many thanks, > Fabio > > ---------------------------------------------- > Fabio Corsi > > Istituto di Ecologia Applicata > Via L.Spallanzani, 32 > 00161 Roma, ITALIA > phone & fax +39 06 4403315 > f.corsi at pan.bio.uniroma1.it > f.corsi at ieaitaly.org From Chip.Hankley at gasai.com Wed Oct 2 07:17:41 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Wed, 2 Oct 2002 09:17:41 -0500 Subject: [mapserver-users] QuerybyPoint blues Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE31@postoffice.GASAI.Com> Guys... The query function that I use is below... the mapfile definition is quite simple... note the TEMPLATE line. LAYER NAME "ZIP" DATA "Vector\Rock_ZIP" TEMPLATE "ttt_query.html" #Important Line! STATUS OFF TYPE POINT CLASS COLOR 255 0 0 END END The variables being passed are: $map - the map object $coords - the coordinates (image coordinates) of the click $Last_Extent - the map extent (map coordinates) $lyr_name - the name of the layer in the mapfile There are several things to note about this function. 1) You don't have to specify RESULT FIELDS in the metadata. It returns everything from the dbase record. 2) One thing I found w/ querybypoint was that if I wanted to query a layer that was lower in the drawing order (i.e. it was on the bottom), I would often get the "no records returned" error... even when I was OBVIOUSLY clicking right on the object. What this function does is turn all of the layers that you are not querying off before doing the query then turns them back on at the end. The result is that I get much more consistent query results. The end user never sees the "on" and "off" of the layers... it just happens on either side of the query. Use the print_r function in PHP to examine the results of the function. The variable $result is a multi-dimensional array. The code now does MS_SINGLE, but it could just as easily do MS_MULTIPLE. You could also change this easily to do a querybypoint or rectangle, depending on what $coords look like when they are passed. Cheers! Chip Hankley function query_map($map, $coords, $Last_Extent, $lyr_name) { //First, loop through all the layers, making an associative // array of how they are currently set. We are going to then // turn all of the layers off. Later (a few lines down) we // will turn the query layer on. At the end of the function, // we will turn the ON layers back on. $onLayers = array(); foreach ($map->getAllLayerNames() as $a) { $Layer = $map->GetLayerByName($a); if ($Layer->status) { array_push($onLayers, $a); $Layer->set("status",0); } } //Get the Layer being queried $Layer = $map->GetLayerByName("$lyr_name"); $data_nm = $Layer->data; $data_pth = $map->shapepath; $shpPath = $data_pth . $data_nm; //Set the layers status ON (b/c it might not be...) $Layer->set("status", 1); //Convert Image Coords to Map Coords $rect_coords = explode(";", $coords); $ll_coord = explode(",", $rect_coords[0]); $ImgWidth = $map->width; $ImgHeight = $map->height; $x = (($ll_coord[0] / $ImgWidth) * ($Last_Extent[2] - $Last_Extent[0])) + $Last_Extent[0]; $y = $Last_Extent[3] - (($ll_coord[1] / $ImgHeight) * ($Last_Extent[3] - $Last_Extent[1])); $click_pt = ms_newPointObj(); $click_pt->setXY($x, $y); //Query the Map at the point clicked @$map->queryByPoint($click_pt, MS_SINGLE, -1); $count_results = $Layer->getNumResults(); if ($count_results > 0) { $Layer->open($map->shapepath); $result=array(); //create a dynamic layer in which to display the selectd record $qryLyr = ms_newLayerObj($map); $qryLyr->set("status", MS_ON); $qryLyr->set("name", "Temporary Query Layer"); $qryLyr->set("type", $Layer->type); $qryLyrClass = ms_newClassObj($qryLyr); $qryLyrClass->set("color", $map->addColor(255, 0 ,0)); //set the type and size if ($Layer->type==0) { //Point $qryLyrClass->set("symbol", 7); $qryLyrClass->set("size", 18); } elseif ($Layer->type==1) { //Line $qryLyrClass->set("symbol", 2); $qryLyrClass->set("size", 3); } elseif ($Layer->type==2) { //Polygon $qryLyrClass->set("symbol", 1); $qryLyrClass->set("size", 2); } //get the names of the fields in the shapefile if ($dbi = dbase_open($shpPath . ".dbf", 0)) { $db_fields = array_keys(dbase_get_record_with_names ($dbi, 1)); dbase_close($dbi); //the SHAPE field is returned as 'delelted', so use // a callback function to remove it. $db_fields = array_filter($db_fields, "ResultFieldFilter"); } for ($i=0; $i<= $count_results-1; $i++) { $oRes = $Layer->getResult($i); $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); $temp=array(); foreach($db_fields as $a) { $tRes = $oShape->values[$a]; if ($tRes == "") { $tRes = " "; } $temp[$a] = $tRes; } $result[$i] = $temp; unset ($temp); //Move the $oShape and $qryLyr variable to // global scope to be called before drawing // the map $GLOBALS["oShape"] = $oShape; $GLOBALS["qryLyr"] = $qryLyr; } } else $result = "No records returned"; //Turn the query layer off, then turn all of // the layers that were on, back on $Layer->set("status", 0); foreach ($onLayers as $a) { $Layer = $map->GetLayerByName($a); $Layer->set("status",1); } return $result; } //Callback function to remove the 'deleted' value that // is returned for the SHAPE field function ResultFieldFilter($var) { return($var <> 'deleted'); } From pkishor at GeoAnalytics.com Wed Oct 2 07:28:54 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 2 Oct 2002 09:28:54 -0500 Subject: [mapserver-users] Query by attributes with PHP/MapScript In-Reply-To: <200210020947.g929lIY19406@efferd.nettz.com> Message-ID: <47860291-D613-11D6-8739-0003936306C2@geoanalytics.com> On Wednesday, October 2, 2002, at 04:41 AM, Armin Burger wrote: > Hi all, > > I would like to query shapefiles based on their attibutes using > PHP/MapScript, like > > street='mainstreet' and city='newtown' > > and then get back all records, including for instance the bounding box > of the shape. > > There is the function QueryByAttributes, but as I saw in the mail > archives you have to set a filteritem and then a filter on the layer. > That can only use one field as filteritem. I would need 2 or even more > fields used in the query. > > I was thinking about using basic PHP functions for dBase. > Unfortunately the dBase support of pure PHP seems to be very > rudimentary > and does not allow queries. There is the Pear DB module, but there is > no > documentation to what extent dBase files are supported. hmmmm... does too. And it is not rudimentary at all... in fact, it is only limited by the limits of the dbase format (which is a pretty poor limit). Here is a dbase function that will query whatever you want -- //{{{ getDbfRowid($dbf, $field, $arVals). // Get dbf row_ids from a $dbf given an array of $arVals for a field $field // function getDbfRowid($dbf, $field, $arVals) { $db = dbase_open($dbf, 0); // open the dbase file $nr = dbase_numrecords($db); // get number of records $arResult = array(); // new array to hold row_ids for($i=1; $i <= $nr; $i++) { // loop from 1 to $nr $temp = dbase_get_record($db, $i); // assign fields to $ar_temp foreach($arVals as $val) { // loop thru all the $gis_keys if(chop($temp[2]) == "$val") { // create a hash of val and row_id $hsResult = array("val" => $val, "row_id" => $i); array_push($arResult, $hsResult); // now push the hash into the array } } } dbase_close($db); return $arResult; // return the array of hashes } //}}} This allows you to, for example, find the rows where field is "street" and the matches you are looking for are "mainstreet", "divisionstreet", "highstreet", etc. Use those row_ids as indexes for the shapefile to zoom to the relevant features. pk/ From tesimap at hotmail.com Wed Oct 2 07:30:24 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 02 Oct 2002 16:30:24 +0200 Subject: [mapserver-users] Font Error:msGetLabelSize() Message-ID: Hi, I have tried to insert the paths absolut but I have same error (msGetLabelSize()....). Now this is my font file: arial C:/windows/fonts/arial.ttf timesbd C:/windows/fonts/timesbd.ttf I have also tried with backslash (I know that it isn't correctly) and I haven't solved my problem. Other idea? Ivan >From: woodbri at swoodbridge.com >Reply-To: woodbri at swoodbridge.com >To: "Ivan Paoluzzi" , >mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Font Error:msGetLabelSize() >Date: Tue, 1 Oct 2002 13:49:36 -0400 > >Try making the paths absolute in the fonts.txt like > >arial /path/to/arial.ttf > >-Steve > >On 1 Oct 2002 at 19:24, Ivan Paoluzzi wrote: > > > > > > > Hi all, > > I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I > > tested my project I have this error: > > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > Before, I used your mapserver precompiled and my project worked > > correctly with truetype font. > > > > > > This is my fonts file (fonts.txt): > > arial arial.ttf > > timesbd timesbd.ttf > > > > > > In FONTSET I have setted the correct path: > > FONTSET "data/fonts.txt" > > Because I have copied fonts in this directory of my project. > > > > > > And this is an example of label in my layer: > > LABEL > > COLOR 0 0 0 > > FONT arial > > TYPE TRUETYPE > > SIZE 8 > > ANTIALIAS TRUE > > POSITION AUTO > > ANGLE AUTO > > MINFEATURESIZE 40 > > MINDISTANCE 100 > > PARTIALS FALSE > > BUFFER 3 > > END #LABEL > > > > Are there some errors? > > Any helps is appreciated. > > Ivan > > _________________________________________________________________ Specisci e ricevi le tue email Hotmail dal tuo cellulare con: http://mobile.msn.it From Chip.Hankley at gasai.com Wed Oct 2 07:30:38 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Wed, 2 Oct 2002 09:30:38 -0500 Subject: [mapserver-users] Query by attributes with PHP/MapScript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE32@postoffice.GASAI.Com> Armin, Here's how I do it. This is an example using a zipcode, and a layer called "ZIP." The key thing here is that a shapefiles records are base 1, whereas mapscript views them as base 0. So, if you wanted to retrieve the first record in your shapefile, you would refer to it as 'record 1' in dbase, and 'row 0' in mapscript. You're right, there is no SQL like syntax. Basically what we are doing here is VERY inefficient... we are looping through the records in the dbase doc 'til we get a match (also a logic problem in some cases... what if there are two matches?). One solution to this, if you want better performance, is to store your attribute data in a database (MySQL for instance), with one of the fields being row-id. You can then perform a real SQL query, return the row-id's, then use the ->getExtent() method in MapScript. If you don't care about performance, or your recordset is small, you could always rework the conditional statement in this function to: 1) Not break; on success 2) Query more than one field... Basically you'd just be writing a really complex conditional statement (mimicking SQL) that would be applied to each record. Another option, of course, if you have really large datasets and want to do heavy duty SQL queries is to use PostGIS. Chip Hankley ====================================== function zip_zoom($map, $zipcode) { $lyr = $map->getlayerbyname('ZIP'); $src = $lyr->data; $path = $map->shapepath; $shp_path = $path . $src; $db_path = $shp_path . ".dbf"; $nShpFile = ms_newShapefileObj($shp_path, -1); $zip_fail = 1; //open the dbase file for the shapefile if ($dbi = dbase_open($db_path, 0)) { $nr = dbase_numrecords ($dbi); $q_result = array(); $x = 0; for ($i=1; $i <= $nr; $i++) { $cur_row = dbase_get_record_with_names ($dbi, $i); if (trim($zipcode) == trim($cur_row[ZIP])) { $row_id = $i; $zip_fail = 0; break; } } } if ($zip_fail) echo ""; $row_id = $row_id - 1; $shapeExtObj = $nShpFile->getExtent($row_id); $minx = $shapeExtObj->minx; $miny = $shapeExtObj->miny; $maxx = $shapeExtObj->maxx; $maxy = $shapeExtObj->maxy; $border = 10000; $minx = $minx - $border; $miny = $miny - $border; $maxx = $maxx + $border; $maxy = $maxy + $border; $map->setExtent($minx, $miny, $maxx, $maxy); } From tom at internetgids.be Wed Oct 2 07:42:52 2002 From: tom at internetgids.be (Tom Myny) Date: Wed, 2 Oct 2002 16:42:52 +0200 Subject: [mapserver-users] Compile problems References: <20021001171601.60173.qmail@web21307.mail.yahoo.com> Message-ID: <000701c26a21$fce92cc0$0100a8c0@cpi.local> I'm using indeed gcc 3.2. Do you know how I can link shp2img using g++ ? (i'm not really a c++ man :) Greetings, Tom ----- Original Message ----- From: "Sean Gillies" To: "Tom Myny" ; Sent: Tuesday, October 01, 2002 7:16 PM Subject: Re: [mapserver-users] Compile problems > I'm not sure about all your errors, but I recognize > two of them. You do not say so, but it looks to me > like you might be trying to compile mapserver using > gcc 3.x. I've never seen the errors you report > when building with gcc 2.9.x. > > 1) Remove /usr/local/include from your INCLUDE_DIRS > so that gcc doesn't complain about it. > 2) The error > > undefined reference to `__gxx_personality_v0' > > tells you that you need to link shp2img using > g++ rather than gcc because one of your libraries > has C++ code. > > If you're not using gcc 3.x, please disregard my > suggestions. > > Hope that this helps, > Sean > > --- Tom Myny wrote: > > Hi, > > > > When i try to compile mapserver1.6.1 with command > > rule: > > > > ./configure --with-php=../php-4.2.3 > > > > i got: > > > [snipped errors] > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > From woodbri at swoodbridge.com Wed Oct 2 07:54:38 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 2 Oct 2002 10:54:38 -0400 Subject: [mapserver-users] Font Error:msGetLabelSize() In-Reply-To: Message-ID: <3D9AD06E.347.4D720861@localhost> Need to see the section of your mapfile that is having this problem. If you are using truetype fonts then the size must be a number not small,middle,large. -Steve On 2 Oct 2002 at 16:30, Ivan Paoluzzi wrote: > Hi, > I have tried to insert the paths absolut but I have same error > (msGetLabelSize()....). > Now this is my font file: > > arial C:/windows/fonts/arial.ttf > timesbd C:/windows/fonts/timesbd.ttf > > I have also tried with backslash (I know that it isn't correctly) and > I haven't solved my problem. Other idea? Ivan > > > >From: woodbri at swoodbridge.com > >Reply-To: woodbri at swoodbridge.com > >To: "Ivan Paoluzzi" , > >mapserver-users at lists.gis.umn.edu > >Subject: Re: [mapserver-users] Font Error:msGetLabelSize() > >Date: Tue, 1 Oct 2002 13:49:36 -0400 > > > >Try making the paths absolute in the fonts.txt like > > > >arial /path/to/arial.ttf > > > >-Steve > > > >On 1 Oct 2002 at 19:24, Ivan Paoluzzi wrote: > > > > > > > > > > > Hi all, > > > I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I > > > tested my project I have this error: > > > > > > msGetLabelSize(): TrueType Font error. Could not find/open > > > font > > > > > > Before, I used your mapserver precompiled and my project worked > > > correctly with truetype font. > > > > > > > > > This is my fonts file (fonts.txt): > > > arial arial.ttf > > > timesbd timesbd.ttf > > > > > > > > > In FONTSET I have setted the correct path: > > > FONTSET "data/fonts.txt" > > > Because I have copied fonts in this directory of my project. > > > > > > > > > And this is an example of label in my layer: > > > LABEL > > > COLOR 0 0 0 > > > FONT arial > > > TYPE TRUETYPE > > > SIZE 8 > > > ANTIALIAS TRUE > > > POSITION AUTO > > > ANGLE AUTO > > > MINFEATURESIZE 40 > > > MINDISTANCE 100 > > > PARTIALS FALSE > > > BUFFER 3 > > > END #LABEL > > > > > > Are there some errors? > > > Any helps is appreciated. > > > Ivan > > > > > > > > _________________________________________________________________ > Specisci e ricevi le tue email Hotmail dal tuo cellulare con: > http://mobile.msn.it > > From stephane.morel at vanoise.com Wed Oct 2 09:52:28 2002 From: stephane.morel at vanoise.com (=?us-ascii?Q?MOREL_Stephane?=) Date: Wed, 2 Oct 2002 17:52:28 +0100 Subject: [mapserver-users] How to project a shapefile ? Message-ID: <01C26A3C.79C179E0.stephane.morel@vanoise.com> Hi list I'm a newbie on Mapserver I use Mapserver 3.6.1 / Suse 7.2 MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I wrote a small php script to create a shapefile filled with datas retrieved from a relational database. Differents users can query the database and i would like to allow them to cartography their results through Mapserver. The datas in the database is in latlong projection and all the rest of my geographic database are in Lambert II etendu which is a french projection. I found in the archive a post from Claude Philipona about this french projection parameters. I've updated my epsg file with those parameters. The script works perfectly but I still have shapefiles in latlon projection how can I transform the created shapefile in the french projection ? In fact I don't know how to use projectionobj with Mapscript Any help will be appreciated TIA Stephane MOREL GIS manager www.vanoise.com From lfilak at medinaco.org Wed Oct 2 10:02:00 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 02 Oct 2002 13:02:00 -0400 Subject: [mapserver-users] Font Error:msGetLabelSize() Message-ID: <200210021648.g92Gm4817198@yogi.medinaco.net> This may not pertain directly to the immediate problem, however you may want to forego solving this issue and switch to Freetype 1. Even if you get this sorted out chances are you may have further problems using Freetype 2. I haven't seen anything in the list that indicates that Freetype 2 works reliably. Please correct me if I'm wrong. Lowell F. The following message was sent by "Ivan Paoluzzi" on Wed, 02 Oct 2002 16:30:24 +0200. > Hi, > I have tried to insert the paths absolut but I have same error > (msGetLabelSize()....). > Now this is my font file: > > arial C:/windows/fonts/arial.ttf > timesbd C:/windows/fonts/timesbd.ttf > > I have also tried with backslash (I know that it isn't correctly) and I > haven't solved my problem. > Other idea? > Ivan > > > >From: woodbri at swoodbridge.com > >Reply-To: woodbri at swoodbridge.com > >To: "Ivan Paoluzzi" , > >mapserver-users at lists.gis.umn.edu > >Subject: Re: [mapserver-users] Font Error:msGetLabelSize() > >Date: Tue, 1 Oct 2002 13:49:36 -0400 > > > >Try making the paths absolute in the fonts.txt like > > > >arial /path/to/arial.ttf > > > >-Steve > > > >On 1 Oct 2002 at 19:24, Ivan Paoluzzi wrote: > > > > > > > > > > > Hi all, > > > I have compiled mapserver 3.5 on Win XP with Freetype 2 but when I > > > tested my project I have this error: > > > > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > > > Before, I used your mapserver precompiled and my project worked > > > correctly with truetype font. > > > > > > > > > This is my fonts file (fonts.txt): > > > arial arial.ttf > > > timesbd timesbd.ttf > > > > > > > > > In FONTSET I have setted the correct path: > > > FONTSET "data/fonts.txt" > > > Because I have copied fonts in this directory of my project. > > > > > > > > > And this is an example of label in my layer: > > > LABEL > > > COLOR 0 0 0 > > > FONT arial > > > TYPE TRUETYPE > > > SIZE 8 > > > ANTIALIAS TRUE > > > POSITION AUTO > > > ANGLE AUTO > > > MINFEATURESIZE 40 > > > MINDISTANCE 100 > > > PARTIALS FALSE > > > BUFFER 3 > > > END #LABEL > > > > > > Are there some errors? > > > Any helps is appreciated. > > > Ivan > > > > > > > > _________________________________________________________________ > Specisci e ricevi le tue email Hotmail dal tuo cellulare con: > http://mobile.msn.it From snchrstnglls at yahoo.com Wed Oct 2 09:58:33 2002 From: snchrstnglls at yahoo.com (Sean Gillies) Date: Wed, 2 Oct 2002 09:58:33 -0700 (PDT) Subject: GCC 3.x Compilation (was Re: [mapserver-users] Compile problems) In-Reply-To: <000701c26a21$fce92cc0$0100a8c0@cpi.local> Message-ID: <20021002165833.20260.qmail@web21303.mail.yahoo.com> Tom, I'm new to gcc 3.x and only am introduced to it because the Mac OS X C/C++ compiler is based on gcc 3.1. If you can use gcc 2.9.x I would recommend it because compilation of mapserver and the requisite libs is difficult with gcc 3.x. The developers are not using gcc 3.x (as far as I can tell), so it's easier if you stay with them. I had a helluva time with GDAL until I realized that I had to explicitly link with g++, and I suspect that if any of your object files or libs have C++ code you'll have to link using g++. I suggest that you make a backup copy of your Mapserver Makefile. Open the Makefile and go to the lines where the Mapserver apps are compiled. There will be lines like these: $(CC) -o shp2img shp2img.o ... Replace $(CC) with $(CXX), and make sure that CXX is defined as c++ or g++ at some lesser line number in the Makefile (this should be true by default). Cheers! Sean --- Tom Myny wrote: > I'm using indeed gcc 3.2. > Do you know how I can link shp2img using g++ ? (i'm > not really a c++ man :) > > Greetings, > Tom __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From toni at giscampus.udg.es Wed Oct 2 09:59:49 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Wed, 2 Oct 2002 18:59:49 +0200 Subject: [mapserver-users] line layer does not appear References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> <1032546365.3d8b683d45688@webmail.lmi.net> <1032904638.3d90dfbead65b@webmail.lmi.net> <001801c26915$5ab423e0$0e2fce82@udg.es> Message-ID: <00ba01c26a35$1e8a0d50$0e2fce82@udg.es> hi everybody, I have a problem with a line layer. This is my .map file for the layer called carrers. The thing is that if I put # in front of FILTERITEM and FILTER the layer appears. Anyone know why??? LAYER NAME carrers TYPE LINE DATA carrers STATUS on FILTERITEM "Nom" FILTER "%name%" CLASS NAME "l_carrers" COLOR 0 255 0 TEMPLATE "carrers.html" END LABELITEM Nom HEADER "cap_carrers.html" FOOTER "peu_carrers.html" END Thanks a lot From DMartin at erac.com Wed Oct 2 10:10:40 2002 From: DMartin at erac.com (Martin, Daniel) Date: Wed, 2 Oct 2002 12:10:40 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B37@STL-EXBE-I03.corp.erac.com> > OK, I have been reading this thread with great interest and was > wondering if you can summarize what you need to do to have multiple > layers at different scales and only have the visible ones show up in > your legend templates. Here's my best shot: In MapServer we can have as many layers of the same name as we want. The benefit is that these same-named layers will turn on and off together. An HTML template will show each layer and class even if they have the same name, *assuming* they are all in scale. However, if these same named layers have scales that do not overlap, you should never see both in the legend. This gives you the effect of several layers acting as one, with MapServer automatically switching between them as you zoom in and out. As we found out in this thread, you MUST use MINSCALE and MAXSCALE in the LAYER object, not in the CLASS object, for it to work correctly in the HTML legend. This also hinges on your opt_flag in your [leg_layer_html] tag. If you use opt_flag=1 or a summation value of opt_flag that includes 1, then layers will show even when out of scale. When I say a summation value, as the HTML Legend HOWTO indicates, if you want an opt_flag of 1 and an opt_flag of 4, you set your opt_flag to 5. My favorite use of this is streets. I use this technique to create a street layer that, at high scale, uses a small single class highway layer. If you look at the entire US the streets load in seconds. When you zoom to a certain level MapServer switches to a very detailed street layer with many different classes that would be extremely slow to load at a higher scale. To the user this is seamless. One interesting addition I'll point out is that sometimes you may want to combine two layers into one even at the same scale, but only show one in the legend. You can accomplish this by using [leg_layer_html order_metadata=legend_order] and then setting the legend_order meta data to -1 in one of the two layers: METADATA legend_order "-1" END > I have a mapfile that was working great in a modified version of > gmap75 and in it all like layers have the same name and different > scales and it works great, except it always shows all the layers. In an HTML legend, this *should* only happen if you have an opt_flag=1 (or a summation value of opt_flag that includes 1). Perhaps this was the case? > I move the mapfile into the new maplab application and a bunch of my > layers vanished. Honestly, I've not used MapLab. When you say "vanished", do you mean from the map itself, or only from the legend? If you mean from the legend, perhaps the opt_flag is different in MapLab. Hope that helps a little, Dan Martin -----Original Message----- From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] Sent: Tuesday, October 01, 2002 7:10 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] HTML Legend with Status Checking... (I cc:'d this to maplab list) OK, I have been reading this thread with great interest and was wondering if you can summarize what you need to do to have multiple layers at different scales and only have the visible ones show up in your legend templates. I think this is an area that could use more documentation or at least user insights. The variables seem to be: group names layer names and scales class names and scales the option code in legend templates and maybe a few others that I missed. I have a mapfile that was working great in a modified version of gmap75 and in it all like layers have the same name and different scales and it works great, except it always shows all the layers. I move the mapfile into the new maplab application and a bunch of my layers vanished. I turns out the maplab generates urls like: ...&layer[]=highway&layer[]=highway&layer[]=highway&... because I use the same name on all the like layers. So I think I have it confused. So your insight into the layers, names, scales etc might help me figure this out. Thanks, -Steve W. From pkishor at GeoAnalytics.com Wed Oct 2 10:48:38 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 2 Oct 2002 12:48:38 -0500 Subject: [mapserver-users] line layer does not appear Message-ID: > -----Original Message----- > From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] > Sent: Wednesday, October 02, 2002 12:00 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] line layer does not appear > > > hi everybody, > > I have a problem with a line layer. > This is my .map file for the layer called carrers. > The thing is that if I put # in front of FILTERITEM and > FILTER the layer > appears. are you trying to say that ordinarily (that is, if you *don't* have a # in front of FILTERITEM and FILTER), the line layer "carrers" does not show? When you don't have the # in front of the FILTER* keywords, there is filtering going on. On those features from "carrers" will show up where the item "nom" matches whatever the value of %name% happens to be. Perhaps there is no match, hence nothing shows up. When you comment the filters out (by putting # in front of them), the layer shows up because it is not being put through the filter. Does this help? pk/ > Anyone know why??? > > > LAYER > NAME carrers > TYPE LINE > DATA carrers > STATUS on > FILTERITEM "Nom" > FILTER "%name%" > CLASS > NAME "l_carrers" > COLOR 0 255 0 > TEMPLATE "carrers.html" > END > LABELITEM Nom > HEADER "cap_carrers.html" > FOOTER "peu_carrers.html" > END > > > Thanks a lot > From armin.burger at libero.it Wed Oct 2 12:25:47 2002 From: armin.burger at libero.it (Armin Burger) Date: Wed, 2 Oct 2002 20:25:47 +0100 Subject: [mapserver-users] Query by attributes with PHP/MapScript Message-ID: <200210021823.NAA26292@lists.gis.umn.edu> Chip, Puneet, Stephen, thanks a lot for your help. I will try your examples. I agree with you that a real database would be best. Especially with something available like PostGIS what I appreciate very much. It's only that sometimes it's less feasible to store all data in a database. Shapefiles are easier to maintain, no database administrator required. I tried attribute queries on shapefiles with Mapserver CGI and a combination of filter and class definition using a dummy query layer. The speed was not too bad (2 sec for a shapefile with 60000 records on a reasonable fast PC). Armin From tesimap at hotmail.com Wed Oct 2 11:30:06 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 02 Oct 2002 20:30:06 +0200 Subject: [mapserver-users] Font Error:msGetLabelSize() Message-ID: Thanks all, I have solved my problem with font. But I have a new problem with label, ANGLE don't work properly. Labels isn't in parallel at line of my layer. Why? This is my layer: LAYER NAME assist TYPE LINE STATUS ON DATA assist TOLERANCE 8 LABELITEM nomevia LABELMAXSCALE 20000 CLASS NAME "Assi Stradali" TEMPLATE "assist.html" COLOR 0 0 100 LABEL COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 PARTIALS FALSE BUFFER 3 END #LABEL END # CLASS HEADER "assist_header.html" FOOTER "assist_footer.html" END # LAYER >From: Daniel Morissette >To: Ivan Paoluzzi >Subject: Re: [mapserver-users] Font Error:msGetLabelSize() >Date: Wed, 02 Oct 2002 11:00:21 -0400 > >Ivan Paoluzzi wrote: > > > > I have tried to insert the paths absolut but I have same error > > (msGetLabelSize()....). > > Now this is my font file: > > > > arial C:/windows/fonts/arial.ttf > > timesbd C:/windows/fonts/timesbd.ttf > > > > I have also tried with backslash (I know that it isn't correctly) and I > > haven't solved my problem. > > Other idea? > > >Did you try without the "C:" part? Just in case... > >arial /windows/fonts/arial.ttf >timesbd /windows/fonts/timesbd.ttf > >-- >------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From morissette at dmsolutions.ca Wed Oct 2 11:54:20 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 02 Oct 2002 14:54:20 -0400 Subject: [mapserver-users] Font Error:msGetLabelSize() References: Message-ID: <3D9B40DC.8E37FA3E@dmsolutions.ca> Ivan Paoluzzi wrote: > > Thanks all, > I have solved my problem with font. > But I have a new problem with label, ANGLE don't work properly. > Labels isn't in parallel at line of my layer. I never witnessed this myself, but there have been several reports of problems with Freetype2 and angles (in addition to relative paths not working)... so using freetype 1.3.1 is probably your best option. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From john.bennett at noetix.on.ca Wed Oct 2 12:19:30 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Wed, 2 Oct 2002 15:19:30 -0400 Subject: [mapserver-users] passing parameters to asp Message-ID: I have an ASP page that spawns a new browser window with MAPSERVER in it. http://dell810/cgi-bin/mapserv.exe?map=... After doing some zoom/roaming I would like to then pass the [imgext] back to the ASP page that originally spawned it. Does anyone know of an example of something like this that I can look at. Thanks John From Steve_Palmer at lpsg.com Wed Oct 2 12:25:30 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Wed, 2 Oct 2002 14:25:30 -0500 Subject: [mapserver-users] line layer does not appear Message-ID: <750F5C5447AF18408DC73220B98FEAF76569C1@lesexch02.lpsg.com> is it possible that the "Nom" field contains no records containing the value "name" ? -----Original Message----- From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] Sent: Wednesday, October 02, 2002 11:00 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] line layer does not appear hi everybody, I have a problem with a line layer. This is my .map file for the layer called carrers. The thing is that if I put # in front of FILTERITEM and FILTER the layer appears. Anyone know why??? LAYER NAME carrers TYPE LINE DATA carrers STATUS on FILTERITEM "Nom" FILTER "%name%" CLASS NAME "l_carrers" COLOR 0 255 0 TEMPLATE "carrers.html" END LABELITEM Nom HEADER "cap_carrers.html" FOOTER "peu_carrers.html" END Thanks a lot -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Wed Oct 2 13:34:30 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Wed, 02 Oct 2002 15:34:30 -0500 Subject: [mapserver-users] Cannot Query in Frames-type page... Message-ID: <3D9B5856.80601@cnrit.tamu.edu> Howdy Listers, it's me again..... I still cannot get any of the querying functions to work within a FRAMESET webpage. I've got my page working almost perfectly now except for the query feature. I've got Javascript built in to my various templates that display the individual frames as well as a large ".js" file that I import. I've got a very large (3400+ lines) MAP file and all this stuff is interacting, so to use the process of elimination and try to nail down my problem, I created a flat (non-Frames) version of my web page and used the exact same MAP and .js files to display that "flat" page and querying works just fine in that page, but the exact same code does not allow queries in my frames page...I've compared EVERYTHING and cannot find a difference. I know, however, that querying works in a frames web page, because I used http://www.agso.gov.au/map/#national as my example. There are two mapserver-based frames web pages there, and queries work just fine, in fact I copied the Javascript code from that page that pops up a separate query window to display query results and that popup query window works fine in my non-frames page. Has anybody built a Frames web page using Mapserver 3.6.1 before who can tell me what the key elements are that I should look at? I'm at my wits end and have to present this page in Washington D.C. to the Governmental Agency that paid me to build it NEXT WEEK! HELP!! Here's my page: http://cnrit.tamu.edu/maps/map_init.html (Click on the one that says "FRAMES VERSION") Also, here's the link to the "flat" page using all the same source code where querying works fine: http://cnrit.tamu.edu/maps/map3_init.html (Click on the button that says "Test Map of East Africa") Thanks again! From georef at tnet.cl Wed Oct 2 13:41:25 2002 From: georef at tnet.cl (Juanse) Date: Wed, 2 Oct 2002 16:41:25 -0400 Subject: [mapserver-users] Mapinfo 2 Postgres References: Message-ID: <002d01c26a54$137929e0$3200a8c0@referencia.cl> Hi every one is there any utility that allows to load mapinfo tables to postgres like shp2pgsql that do that for shape files? Juanse temuko-chile --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/02 From steve.lime at dnr.state.mn.us Wed Oct 2 13:47:05 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 02 Oct 2002 15:47:05 -0500 Subject: [mapserver-users] passing parameters to asp Message-ID: I think you should just need to use something like (in the new window): window.opener.document.formname.imgext.value = whatever; Steve >>> "John Bennett" 10/02/02 02:19PM >>> I have an ASP page that spawns a new browser window with MAPSERVER in it. http://dell810/cgi-bin/mapserv.exe?map=... After doing some zoom/roaming I would like to then pass the [imgext] back to the ASP page that originally spawned it. Does anyone know of an example of something like this that I can look at. Thanks John From morissette at dmsolutions.ca Wed Oct 2 14:15:51 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 02 Oct 2002 17:15:51 -0400 Subject: [mapserver-users] Mapinfo 2 Postgres References: <002d01c26a54$137929e0$3200a8c0@referencia.cl> Message-ID: <3D9B6207.BF527DF7@dmsolutions.ca> Juanse wrote: > > is there any utility that allows to load mapinfo tables to postgres like > shp2pgsql that do that for shape files? > You could use the 'ogr2ogr' utility, see the following postgis-users archive message: http://postgis.refractions.net/pipermail/postgis-users/2001-June/000042.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Timothy.Mackey at ga.gov.au Wed Oct 2 20:21:08 2002 From: Timothy.Mackey at ga.gov.au (Mackey Timothy) Date: Thu, 3 Oct 2002 13:21:08 +1000 Subject: [mapserver-users] RE: Mapserver Question... Message-ID: Hi Heath, I've looked at your application and have a suggestion: The first line of your form in the central frame is You therefore need to make sure that you reset this value in querycheck() document.mainmap.mode.value="nquery"; *before* you submit the form. As this is all in the one frame, it's not an issue of frames vs no frames, it's just a matter of getting the javascript working. regards, Tim Mackey Webmaster Geoscience Australia timothy.mackey at ga.gov.au http://www.ga.gov.au -----Original Message----- From: Clint Heath [mailto:heathcd at cnrit.tamu.edu] Sent: Thursday, 3 October 2002 12:03 To: wizard at auslig.gov.au Subject: Mapserver Question... Hello, I'm hoping that I can ask a question of Tim Mackey or any other Mapserver gurus you have there. I'm developing a web page using Frames and Mapserver just like you've got here on your site, but I'm having a problem with the query function working in a frames web page. I get no results. If I take my .map file and put it into a flat HTML page, I can query the layers just fine, but they don't return anything in my frames-based page. My question is, did you have to overcome any similar problems when you set up your page? Are there some key things I should know about how to get querying working in a frames/Mapserver page? I'm using Mapserver 3.6.1 and here's my URL if you care to look: http://cnrit.tamu.edu/maps/map_init.html Click on the very last button, the one that says "FRAMES VERSION" on it. Thank you in advance for any advice you can offer. Clint Heath Systems Analyst Texas A&M University From stephane.morel at vanoise.com Thu Oct 3 01:55:05 2002 From: stephane.morel at vanoise.com (=?us-ascii?Q?MOREL_Stephane?=) Date: Thu, 3 Oct 2002 09:55:05 +0100 Subject: [mapserver-users] How to project a shapefile ? Message-ID: <01C26AC2.F3DDBC30.stephane.morel@vanoise.com> Hi Thank for your help but it still doesn't work I have this error message : Fatal error: MapServer Error in msProcessProjection(): projection not named in .../../my php files I saw you load a dll called php_proj.dll. I don't if we need to do the same with Linux with something like dl('php_proj.so') Here is my code ..... $oLine->addXY($xmin, $ymin); $oldproj = ms_newprojectionobj("proj=latlong"); $newproj = ms_newprojectionobj("<27585>proj=lcc a=6378249.2 b=6356515.0 lat_0=46d48'0.0''N lon_0=2d20'14.025''E lat_1=45d53'56.108''N lat_2=47d41'45.652''N x_0=600000.0 y_0=2200000.0 towgs84=-168,-60,+320 units=m no_defs"); $oLine = $oLine->project($oldproj,$newproj); $oShp->add( $oLine ); ... if I omit <27585> in the $newproj variable, I get another error message : Fatal error: MapServer Error in msProcessProjection(): unknown projection id in Stephane MOREL GIS manager www.vanoise.com Hi This script creates shape file and reproject in to polyconic. U want to chane in French projection, change the values in $proj2 variable. Let me know if u have any quetions. Good luck, Anwar www.atsincorp.com 43) { $dd = 0 - $dd; } //echo $dnum," , ",$mnum," , ",$dsnum,"
"; return $dd; } # End of the function # Function to generate SHAPE Files function createShape( $x1, $y1, $a1, $b1, $scale, $programId, $pname ) { GLOBAL $shpFile,$dbfFile,$proj1,$proj2; $x = convert($x1); $y = convert($y1); $a = convert($a1); $b = convert($b1); $oShp = ms_newShapeObj(MS_SHP_POLYGON); $oLine = ms_newLineObj(); $opoint = ms_newPointObj(); $opoint->setXY($x , $y ); $opoint1 = ms_newPointObj(); $opoint1->setXY($a , $b ); $mmwidth = $scale * 228; $mwidth = $mmwidth / 1000; $swidth = $mwidth / 23.4; $dwidth = $swidth / 3600; $endx = $x ; $endy = $y ; $startx = $a ; $starty = $b ; $indy = $endy - $starty; $indx = $endx - $startx; echo $indx,' , ', $indy,' , '; if ($indy == 0) { $dy = ($dwidth / 2); $p1 = ms_newPointObj(); $p1->setXY( $endx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx, $endy-$dy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx, $starty-$dy ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx, $starty+$dy ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } elseif ($indx == 0) { $dx = ($dwidth / 2); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx+$dx, $endy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx+$dx, $starty ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx-$dx, $starty ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } else { $inz = $opoint->distanceToPoint( $opoint1 ); $dx = ($dwidth / 2) * ($indy / $inz); $dy = ($dwidth / 2) * ($indx / $inz); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx+$dx, $endy-$dy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx+$dx, $starty-$dy ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx-$dx, $starty+$dy ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } $oShp->add($oLine); $shpFile->addShape($oShp); dbase_add_record($dbfFile, array($programId, $pname )); } # End of Function generate SHAPE Files $shpFname = 'E:\Program Files\Apache Group\Apache\htdocs\php406\pams\flightline'; $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POLYGON); $dbfFile = dbase_create($shpFname.".dbf", array(array("PROG_ID","N",5,0),array("PROJ_NAME","C",10))); $proj1 = ms_newprojectionobj("proj=latlong,ellps=GRS80"); $proj2 = ms_newprojectionobj("proj=poly,ellps=GRS80,lat_0=40.925n,lon_0=77.75w"); createShape( "-076 17 34","40 03 59","-076 18 34","40 04 59",3000, 1, "PAMS"); echo "Shapes Created.
"; $shpFile->free(); echo "Shape File ($shpFname) closed.
"; dbase_close($dbfFile); echo "Dbase file closed.
"; ?> -----Original Message----- From: MOREL Stephane [mailto:stephane.morel at vanoise.com] Sent: Wednesday, October 02, 2002 12:52 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] How to project a shapefile ? Hi list I'm a newbie on Mapserver I use Mapserver 3.6.1 / Suse 7.2 MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I wrote a small php script to create a shapefile filled with datas retrieved from a relational database. Differents users can query the database and i would like to allow them to cartography their results through Mapserver. The datas in the database is in latlong projection and all the rest of my geographic database are in Lambert II etendu which is a french projection. I found in the archive a post from Claude Philipona about this french projection parameters. I've updated my epsg file with those parameters. The script works perfectly but I still have shapefiles in latlon projection how can I transform the created shapefile in the french projection ? In fact I don't know how to use projectionobj with Mapscript Any help will be appreciated TIA Stephane MOREL GIS manager www.vanoise.com From armin.burger at libero.it Thu Oct 3 01:33:00 2002 From: armin.burger at libero.it (Armin Burger) Date: Thu, 3 Oct 2002 10:33:00 +0200 Subject: [mapserver-users] Query by attributes with PHP/MapScript Message-ID: <200210030838.g938coY45178@efferd.nettz.com> After some trials I found out that MapScript supports multicolumn attribute queries via the 'setfilter()' method. The following worked fine $query = "(([AREA]>500000 AND [AREA]<=1000000) AND ([CODE]=311 OR [CODE]=312))"; $layer->setFilter($query); $layer->queryByAttributes(MS_MULTIPLE); Its's even possible to include regular expressions in the query string. Armin From EDUARDOPK at vcp.com.br Thu Oct 3 04:12:31 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Thu, 3 Oct 2002 08:12:31 -0300 Subject: [mapserver-users] digest list Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE836E@la02vcp.vcp.com.br> is there a way of subscribing to this list and receive only the digest of the day? tks Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From pyro-x at ixine.com Thu Oct 3 04:22:06 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Thu, 03 Oct 2002 13:22:06 +0200 Subject: [mapserver-users] Antialiased Lines in mapserver? Message-ID: <3D9C285E.6010107@ixine.com> Hi there! I'm developing a *streetmap* application using mapserver, and although i like the output i get, it still looks bad cause those jagged lines. Is there any way to have antialiased lines in mapserver?, i saw in some old posts that it was a GD matter, and that even in 2.0 versions it still doesn't support antialias. Does somebody know if there is another way to do antialiasing?. I tried to render a double sized image and then reduced it with ImageMagick but the results were awful. And finally, a question for developers, would it be possible to switch to ImageMagick for vector rendering?, that library render fine antialiased lines =), althought i dunno if it support everything mapserver needs. Many thanx -- David Monterroso Cabelo From FSiviero at smr.arpa.emr.it Thu Oct 3 04:17:06 2002 From: FSiviero at smr.arpa.emr.it (Siviero Francesco) Date: Thu, 3 Oct 2002 13:17:06 +0200 Subject: [mapserver-users] How do I make point bigger Message-ID: <8793AA46E84DD61191200000F875A0A6160A81@MOMENTANEA> Sorry to disturb, I'm a newbie in all this (MapServer, PHP, etc..), so my question could sound silly. I'm trying to make some point bigger, but I'm not able to find how to do it. Here's my map file: ########### NAME prova EXTENT 515783.84375 999005 801412 847791.875 SIZE 500 300 SHAPEPATH "C:/Inetpub/wwwroot/ProvaMAP/Shape/" LAYER # States NAME "Prova" DATA RER_provincie STATUS DEFAULT TYPE POLYGON CLASSITEM "PROV" CLASS NAME "BO" COLOR 255 255 255 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # States NAME "Punti" DATA staztot STATUS DEFAULT TYPE POINT CLASSITEM "CODICE" CLASS SIZE 100 # <-------------------- This doesn't seem to work. How do makes points bigger? COLOR 255 0 0 END # end of class object END # end of layer object END # end of map file ################ Thanks to anybody. Ciao From woodbri at swoodbridge.com Thu Oct 3 05:00:12 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 3 Oct 2002 08:00:12 -0400 Subject: [mapserver-users] How do I make point bigger In-Reply-To: <8793AA46E84DD61191200000F875A0A6160A81@MOMENTANEA> Message-ID: <3D9BF90C.9719.1F48A32@localhost> add SYMBOL 'circle' and make sure you have a symbol 'circle' defined in your symbols.sym file and you will get bigger points. -Steve W. On 3 Oct 2002 at 13:17, Siviero Francesco wrote: > Sorry to disturb, > I'm a newbie in all this (MapServer, PHP, etc..), so my question could > sound silly. I'm trying to make some point bigger, but I'm not able to > find how to do it. Here's my map file: > > ########### > NAME prova > EXTENT 515783.84375 999005 801412 847791.875 > SIZE 500 300 > SHAPEPATH "C:/Inetpub/wwwroot/ProvaMAP/Shape/" > > LAYER # States > NAME "Prova" > DATA RER_provincie > STATUS DEFAULT > TYPE POLYGON > CLASSITEM "PROV" > CLASS > NAME "BO" > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END # end of class object > END # end of layer object > > LAYER # States > NAME "Punti" > DATA staztot > STATUS DEFAULT > TYPE POINT > CLASSITEM "CODICE" > CLASS > SIZE 100 # <-------------------- This doesn't seem to work. How > do > makes points bigger? > COLOR 255 0 0 > END # end of class object > > END # end of layer object > > END # end of map file > ################ > > Thanks to anybody. > Ciao > From rholloway_1999 at yahoo.com Thu Oct 3 05:03:18 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 3 Oct 2002 05:03:18 -0700 (PDT) Subject: [mapserver-users] HTML Legend with Status Checking... In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B37@STL-EXBE-I03.corp.erac.com> Message-ID: <20021003120318.2102.qmail@web12508.mail.yahoo.com> Hi I've been following this thread with some interest as well as I encountered a similar problem. I'm fairly new to Mapserver so forgive me if this a stupid question but is there any reason that javascript can't be used to control the legend. For example, I have used the following code (thanks to suggestions from the users list): Although I haven't had a chance to do alot of testing this seems to work fine at controling the layers that appear in the legend based on scale. As I'm also new to javascript, I guess my real question is does the use of javascript slow down the performance of Mapserver or make my application less compatable for different browsers etc.? Cheers Rob --- "Martin, Daniel" wrote: > > OK, I have been reading this thread with great > interest and was > > wondering if you can summarize what you need to do > to have multiple > > layers at different scales and only have the > visible ones show up in > > your legend templates. > Here's my best shot: > In MapServer we can have as many layers of the same > name as we want. The > benefit is that these same-named layers will turn on > and off together. An > HTML template will show each layer and class even if > they have the same > name, *assuming* they are all in scale. > > However, if these same named layers have scales that > do not overlap, you > should never see both in the legend. This gives you > the effect of several > layers acting as one, with MapServer automatically > switching between them as > you zoom in and out. > > As we found out in this thread, you MUST use > MINSCALE and MAXSCALE in the > LAYER object, not in the CLASS object, for it to > work correctly in the HTML > legend. > > This also hinges on your opt_flag in your > [leg_layer_html] tag. If you use > opt_flag=1 or a summation value of opt_flag that > includes 1, then layers > will show even when out of scale. When I say a > summation value, as the HTML > Legend HOWTO indicates, if you want an opt_flag of 1 > and an opt_flag of 4, > you set your opt_flag to 5. > > My favorite use of this is streets. I use this > technique to create a street > layer that, at high scale, uses a small single class > highway layer. If you > look at the entire US the streets load in seconds. > When you zoom to a > certain level MapServer switches to a very detailed > street layer with many > different classes that would be extremely slow to > load at a higher scale. > To the user this is seamless. > > One interesting addition I'll point out is that > sometimes you may want to > combine two layers into one even at the same scale, > but only show one in the > legend. You can accomplish this by using > [leg_layer_html > order_metadata=legend_order] and then setting the > legend_order meta data to > -1 in one of the two layers: > > METADATA > legend_order "-1" > END > > > I have a mapfile that was working great in a > modified version of > > gmap75 and in it all like layers have the same > name and different > > scales and it works great, except it always shows > all the layers. > In an HTML legend, this *should* only happen if you > have an opt_flag=1 (or a > summation value of opt_flag that includes 1). > Perhaps this was the case? > > > I move the mapfile into the new maplab application > and a bunch of my > > layers vanished. > Honestly, I've not used MapLab. When you say > "vanished", do you mean from > the map itself, or only from the legend? If you > mean from the legend, > perhaps the opt_flag is different in MapLab. > > Hope that helps a little, > Dan Martin > > -----Original Message----- > From: woodbri at swoodbridge.com > [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, October 01, 2002 7:10 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] HTML Legend with > Status Checking... > > > (I cc:'d this to maplab list) > > > OK, I have been reading this thread with great > interest and was > wondering if you can summarize what you need to do > to have multiple > layers at different scales and only have the visible > ones show up in > your legend templates. I think this is an area that > could use more > documentation or at least user insights. > > The variables seem to be: > > group names > layer names and scales > class names and scales > the option code in legend templates > > and maybe a few others that I missed. > > I have a mapfile that was working great in a > modified version of > gmap75 and in it all like layers have the same name > and different > scales and it works great, except it always shows > all the layers. > > I move the mapfile into the new maplab application > and a bunch of my > layers vanished. I turns out the maplab generates > urls like: > > ...&layer[]=highway&layer[]=highway&layer[]=highway&... > because I use the same name on all the like layers. > So I think I have > it confused. > > So your insight into the layers, names, scales etc > might help me > figure this out. > > > Thanks, > -Steve W. __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From tom at internetgids.be Thu Oct 3 05:19:22 2002 From: tom at internetgids.be (Tom Myny) Date: Thu, 3 Oct 2002 14:19:22 +0200 Subject: [mapserver-users] Mapscript compile error Message-ID: <002b01c26ad7$1b589be0$0100a8c0@cpi.local> cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG -I/usr/src/mapserver-3.6.1 -I/usr/include -I/usr/src/mapserver-3.6.1/../php-4.2.3 -I/usr/src/mapserver-3.6.1/../php-4.2.3/dl -I/usr/src/mapserver-3.6.1/../php-4.2.3/main -I/usr/src/mapserver-3.6.1/../php-4.2.3/Zend -I/usr/src/mapserver-3.6.1/../php-4.2.3/include -I/usr/src/mapserver-3.6.1/../php-4.2.3/TSRM -o php_mapscript_util.o php_mapscript_util.c cc: cc: No such file or directory cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory php_mapscript_util.c: In function `_phpms_object_init': php_mapscript_util.c:681: warning: unused variable `tsrm_ls' make: *** [php_mapscript_util.o] Error 1 I'm using gcc 3.2 but i can't find the error. Help would be great ;) Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Oct 3 05:34:09 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 3 Oct 2002 08:34:09 -0400 Subject: [mapserver-users] Mapscript compile error In-Reply-To: <002b01c26ad7$1b589be0$0100a8c0@cpi.local> Message-ID: <3D9C0101.6411.213A1C4@localhost> Tom, this is a know bug. On some platforms the Makefile is generated wrong. Notice the "cc cc " in your first line below. remove the extra "cc" with and editor and it should work fine. -Steve W. http://iMapTools.com On 3 Oct 2002 at 14:19, Tom Myny wrote: > > cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL - > DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP - > DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG -I/usr/src/mapserver- > 3.6.1 -I/usr/include -I/usr/src/mapserver-3.6.1/../php- 4.2.3 > -I/usr/src/mapserver-3.6.1/../php-4.2.3/dl -I/usr/src/mapserver- > 3.6.1/../php-4.2.3/main -I/usr/src/mapserver-3.6.1/../php-4.2.3/Zend - > I/usr/src/mapserver-3.6.1/../php-4.2.3/include -I/usr/src/mapserver- > 3.6.1/../php-4.2.3/TSRM -o php_mapscript_util.o php_mapscript_util.c > cc: cc: No such file or directory cc1: warning: changing search order > for system directory "/usr/include" cc1: warning: as it has already > been specified as a non-system directory php_mapscript_util.c: In > function `_phpms_object_init': php_mapscript_util.c:681: warning: > unused variable `tsrm_ls' make: *** [php_mapscript_util.o] Error 1 I'm > using gcc 3.2 but i can't find the error. > > Help would be great ;) > > Tom From pkishor at GeoAnalytics.com Thu Oct 3 06:06:21 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 3 Oct 2002 08:06:21 -0500 Subject: [mapserver-users] line layer does not appear In-Reply-To: <000e01c26aa6$2157c1f0$0e2fce82@udg.es> Message-ID: On Thursday, October 3, 2002, at 01:28 AM, Toni Hern?ndez wrote: > Hi, > > Thanks for the reply. > Is that mean that I can not show a layer and allow the user to make a > query > filter (in some other window) at the same time? no, not at all... its just that it seems your current filter is not matching anything. If you ask the program to match against some item, and nothing matches, then nothing will show. make sure you've got the item name, values, etc., right. pk/ ps. please reply to the entire list, so others may also be able to help/benefit. thanks. > > ----- Original Message ----- > From: "Puneet Kishor" > To: "'Toni Hern?ndez'" ; > > Sent: Wednesday, October 02, 2002 7:48 PM > Subject: RE: [mapserver-users] line layer does not appear > > >> >> >>> -----Original Message----- >>> From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] >>> Sent: Wednesday, October 02, 2002 12:00 PM >>> To: mapserver-users at lists.gis.umn.edu >>> Subject: [mapserver-users] line layer does not appear >>> >>> >>> hi everybody, >>> >>> I have a problem with a line layer. >>> This is my .map file for the layer called carrers. >>> The thing is that if I put # in front of FILTERITEM and >>> FILTER the layer >>> appears. >> >> >> >> are you trying to say that ordinarily (that is, if you *don't* have a >> # in >> front of FILTERITEM and FILTER), the line layer "carrers" does not >> show? >> >> >> When you don't have the # in front of the FILTER* keywords, there is >> filtering going on. On those features from "carrers" will show up >> where > the >> item "nom" matches whatever the value of %name% happens to be. Perhaps > there >> is no match, hence nothing shows up. When you comment the filters out >> (by >> putting # in front of them), the layer shows up because it is not >> being > put >> through the filter. >> >> Does this help? >> >> pk/ >> >> >> >> >>> Anyone know why??? >>> >>> >>> LAYER >>> NAME carrers >>> TYPE LINE >>> DATA carrers >>> STATUS on >>> FILTERITEM "Nom" >>> FILTER "%name%" >>> CLASS >>> NAME "l_carrers" >>> COLOR 0 255 0 >>> TEMPLATE "carrers.html" >>> END >>> LABELITEM Nom >>> HEADER "cap_carrers.html" >>> FOOTER "peu_carrers.html" >>> END >>> >>> >>> Thanks a lot >>> From morissette at dmsolutions.ca Thu Oct 3 06:09:24 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 03 Oct 2002 09:09:24 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <3D9C285E.6010107@ixine.com> Message-ID: <3D9C4184.93A276F0@dmsolutions.ca> David Monterroso Cabello wrote: > > And finally, a question for developers, would it be possible to > switch to ImageMagick for vector rendering?, that library render fine > antialiased lines =), althought i dunno if it support everything > mapserver needs. > I had a quick look at the ImageMagick website and saw that they support a good set of vector rendering functions, so adding ImageMagick as a new (optional) output system would be possible in the new architecture developed in version 3.7. As usual, we just need someone with time to do this, or money to fund this work. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 3 06:12:02 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 03 Oct 2002 09:12:02 -0400 Subject: [mapserver-users] Mapscript compile error References: <3D9C0101.6411.213A1C4@localhost> Message-ID: <3D9C4222.A2A143FD@dmsolutions.ca> woodbri at swoodbridge.com wrote: > > Tom, this is a know bug. On some platforms the Makefile is generated > wrong. Notice the "cc cc " in your first line below. remove the extra > "cc" with and editor and it should work fine. > BTW, this is fixed (hopefully!) in the 3.6.3 branch in CVS and will be part of a future 3.6.3 release. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From woodbri at swoodbridge.com Thu Oct 3 06:26:10 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 3 Oct 2002 09:26:10 -0400 Subject: [mapserver-users] Status of new releases?? In-Reply-To: <3D9C4222.A2A143FD@dmsolutions.ca> Message-ID: <3D9C0D32.2814.2433E27@localhost> Daniel, Steve and developers, A while back you were going to look at when we might see the new releases. Did you come to any conclusions or set any target dates or time frames for 3.6.3 or 3.7.0? Inquiring minds want to know :) -Stephen Woodbridge On 3 Oct 2002 at 9:12, Daniel Morissette wrote: > BTW, this is fixed (hopefully!) in the 3.6.3 branch in CVS and will be > part of a future 3.6.3 release. and > I had a quick look at the ImageMagick website and saw that they > support a good set of vector rendering functions, so adding > ImageMagick as a new (optional) output system would be possible in the > new architecture developed in version 3.7. As usual, we just need > someone with time to do this, or money to fund this work. From morissette at dmsolutions.ca Thu Oct 3 06:36:58 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 03 Oct 2002 09:36:58 -0400 Subject: [mapserver-users] Re: Status of new releases?? References: <3D9C0D32.2814.2433E27@localhost> Message-ID: <3D9C47FA.618B3641@dmsolutions.ca> woodbri at swoodbridge.com wrote: > > A while back you were going to look at when we might see the new > releases. Did you come to any conclusions or set any target dates or > time frames for 3.6.3 or 3.7.0? > > Inquiring minds want to know :) > The 3.7 release plan is still being discussed on the mapserver-dev list: http://mapserver.gis.umn.edu/wilma/mapserver-dev/0210/msg00002.html About 3.6.3, I think we should release it in the next few days since it contains some good bug fixes... but this is just my idea, I haven't talked to Steve about this yet. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 3 06:55:22 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 03 Oct 2002 09:55:22 -0400 Subject: [mapserver-users] WMS 1.1.0 Capabilities References: Message-ID: <3D9C4C4A.C186C4ED@dmsolutions.ca> Hi Andrew, WMS 1.1.0 Capabilities have been supported since at least 3.6.0. However I see that you seem to be running 3.6.1 and it does not want to return 1.1.0 capabilities, I really don't understand why. I have been unable to reproduce this on our own servers with versions 3.6.0 and 3.6.2. Where did you get your mapserv.exe? Can you try replacing it with a more recent one from our download site? http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.2-win32-php4.2.2-libwww.zip Daniel > >>> Andrew Hallam 09/23/02 06:47PM >>> > Hi List, > > Can anyone confirm whether it is possible to get MapServer 3.6 or 3.7 > to > produce a WMS 1.1.0 capabilities statement? > > MapServer responds to a WMS 1.1.0 formatted GetMap request, but when I > try > a WMS 1.1.0 GetCapabilities request I get a WMS 1.0.0 capabilities > statement. > > The URL I am using is: > > > ON=1.1.0&SERVICE=WMS&REQUEST=GetCapabilities> > > Any ideas? TIA. > > Regards > Andrew Hallam > > Digital Earth Pty Ltd > http://www.digitalearth.com.au From nospam at cnrit.tamu.edu Thu Oct 3 07:31:55 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Thu, 03 Oct 2002 09:31:55 -0500 Subject: [mapserver-users] How do I make point bigger References: <8793AA46E84DD61191200000F875A0A6160A81@MOMENTANEA> Message-ID: <3D9C54DB.3050504@cnrit.tamu.edu> You need to define a symbol (like a "circle", perhaps) and use that symbol in your layer definition, then you can scale that symbol. For example, add this code to the top of your map file (just above the first layer): # # Start of symbol definitions # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END Then once you've defined that symbol, you can call it inside your layer like this: LAYER # States NAME "Punti" DATA staztot STATUS DEFAULT TYPE POINT CLASSITEM "CODICE" CLASS SYMBOL 'circle' SIZE 100 COLOR 255 0 0 END END Hope this helps. Siviero Francesco wrote: >Sorry to disturb, >I'm a newbie in all this (MapServer, PHP, etc..), so my question could sound >silly. >I'm trying to make some point bigger, but I'm not able to find how to do it. >Here's my map file: > >########### >NAME prova >EXTENT 515783.84375 999005 801412 847791.875 >SIZE 500 300 >SHAPEPATH "C:/Inetpub/wwwroot/ProvaMAP/Shape/" > >LAYER # States > NAME "Prova" > DATA RER_provincie > STATUS DEFAULT > TYPE POLYGON > CLASSITEM "PROV" > CLASS > NAME "BO" > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END # end of class object >END # end of layer object > >LAYER # States > NAME "Punti" > DATA staztot > STATUS DEFAULT > TYPE POINT > CLASSITEM "CODICE" > CLASS > SIZE 100 # <-------------------- This doesn't seem to work. How do >makes points bigger? > COLOR 255 0 0 > END # end of class object > >END # end of layer object > >END # end of map file >################ > >Thanks to anybody. >Ciao > > From lfilak at medinaco.org Thu Oct 3 07:56:22 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 03 Oct 2002 10:56:22 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? Message-ID: <200210031442.g93EgP829492@yogi.medinaco.net> While it's not antialiasing you could play with different colors and sizes for symbol & overlaysymbol which may help the lines to visually blur. Lowell F. The following message was sent by David Monterroso Cabello on Thu, 03 Oct 2002 13:22:06 +0200. > Hi there! > > I'm developing a *streetmap* application using mapserver, and > although i like the output i get, it still looks bad cause those jagged > lines. Is there any way to have antialiased lines in mapserver?, i saw > in some old posts that it was a GD matter, and that even in 2.0 versions > it still doesn't support antialias. Does somebody know if there is > another way to do antialiasing?. I tried to render a double sized image > and then reduced it with ImageMagick but the results were awful. > > And finally, a question for developers, would it be possible to > switch to ImageMagick for vector rendering?, that library render fine > antialiased lines =), althought i dunno if it support everything > mapserver needs. > > > Many thanx > > -- > David Monterroso Cabelo > > > > > > > > From pyro-x at ixine.com Thu Oct 3 07:52:04 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Thu, 03 Oct 2002 16:52:04 +0200 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <3D9C285E.6010107@ixine.com> <3D9C4184.93A276F0@dmsolutions.ca> Message-ID: <3D9C5994.4060707@ixine.com> Daniel Morissette wrote: >David Monterroso Cabello wrote: > > >> And finally, a question for developers, would it be possible to >>switch to ImageMagick for vector rendering?, that library render fine >>antialiased lines =), althought i dunno if it support everything >>mapserver needs. >> >> >> > >I had a quick look at the ImageMagick website and saw that they support >a good set of vector rendering functions, so adding ImageMagick as a new >(optional) output system would be possible in the new architecture >developed in version 3.7. As usual, we just need someone with time to >do this, or money to fund this work. > > Yes, i thought the same when i saw IM web, i dunno if it is very difficult but if finally there is no other way to do antialiasing and you think is posible i would like to try to implement it. Do you know about any doc or something i can read to understand the new output architecture?. Many thx From jhart at frw.uva.nl Thu Oct 3 08:03:34 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 03 Oct 2002 17:03:34 +0200 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <3D9C285E.6010107@ixine.com> <3D9C4184.93A276F0@dmsolutions.ca> Message-ID: <3D9C5C46.4020406@frw.uva.nl> Is there any documentation available on this new architecture and how to plug in new output formats ? Jan Hartmann > > I had a quick look at the ImageMagick website and saw that they support > a good set of vector rendering functions, so adding ImageMagick as a new > (optional) output system would be possible in the new architecture > developed in version 3.7. As usual, we just need someone with time to > do this, or money to fund this work. > From toni at giscampus.udg.es Thu Oct 3 08:06:57 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Thu, 3 Oct 2002 17:06:57 +0200 Subject: [mapserver-users] line layer does not appear References: Message-ID: <006301c26aee$84838e10$0e2fce82@udg.es> hi, the streets layer doesn't appear even when the query option (in the html form) es disabled. That's why I am confused. ----- Original Message ----- From: "Puneet Kishor" To: "Toni Hern?ndez" Cc: "Mapserver" Sent: Thursday, October 03, 2002 3:06 PM Subject: Re: [mapserver-users] line layer does not appear > > On Thursday, October 3, 2002, at 01:28 AM, Toni Hern?ndez wrote: > > > Hi, > > > > Thanks for the reply. > > Is that mean that I can not show a layer and allow the user to make a > > query > > filter (in some other window) at the same time? > > > no, not at all... its just that it seems your current filter is not > matching anything. If you ask the program to match against some item, > and nothing matches, then nothing will show. > > make sure you've got the item name, values, etc., right. > > pk/ > > > ps. please reply to the entire list, so others may also be able to > help/benefit. thanks. > > > > > > ----- Original Message ----- > > From: "Puneet Kishor" > > To: "'Toni Hern?ndez'" ; > > > > Sent: Wednesday, October 02, 2002 7:48 PM > > Subject: RE: [mapserver-users] line layer does not appear > > > > > >> > >> > >>> -----Original Message----- > >>> From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] > >>> Sent: Wednesday, October 02, 2002 12:00 PM > >>> To: mapserver-users at lists.gis.umn.edu > >>> Subject: [mapserver-users] line layer does not appear > >>> > >>> > >>> hi everybody, > >>> > >>> I have a problem with a line layer. > >>> This is my .map file for the layer called carrers. > >>> The thing is that if I put # in front of FILTERITEM and > >>> FILTER the layer > >>> appears. > >> > >> > >> > >> are you trying to say that ordinarily (that is, if you *don't* have a > >> # in > >> front of FILTERITEM and FILTER), the line layer "carrers" does not > >> show? > >> > >> > >> When you don't have the # in front of the FILTER* keywords, there is > >> filtering going on. On those features from "carrers" will show up > >> where > > the > >> item "nom" matches whatever the value of %name% happens to be. Perhaps > > there > >> is no match, hence nothing shows up. When you comment the filters out > >> (by > >> putting # in front of them), the layer shows up because it is not > >> being > > put > >> through the filter. > >> > >> Does this help? > >> > >> pk/ > >> > >> > >> > >> > >>> Anyone know why??? > >>> > >>> > >>> LAYER > >>> NAME carrers > >>> TYPE LINE > >>> DATA carrers > >>> STATUS on > >>> FILTERITEM "Nom" > >>> FILTER "%name%" > >>> CLASS > >>> NAME "l_carrers" > >>> COLOR 0 255 0 > >>> TEMPLATE "carrers.html" > >>> END > >>> LABELITEM Nom > >>> HEADER "cap_carrers.html" > >>> FOOTER "peu_carrers.html" > >>> END > >>> > >>> > >>> Thanks a lot > >>> From morissette at dmsolutions.ca Thu Oct 3 08:26:28 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 03 Oct 2002 11:26:28 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <3D9C285E.6010107@ixine.com> <3D9C4184.93A276F0@dmsolutions.ca> <3D9C5994.4060707@ixine.com> Message-ID: <3D9C61A4.74794EAC@dmsolutions.ca> David Monterroso Cabello wrote: > > Yes, i thought the same when i saw IM web, i dunno if it is very > difficult but if finally there is no other way to do antialiasing and > you think is posible i would like to try to implement it. Do you know > about any doc or something i can read to understand the new output > architecture?. > Jan Hartmann wrote: > > Is there any documentation available on this new architecture and how to > plug in new output formats ? > Unfortunately there is no formal docs available. I would suggest that you look at the way SWF or PDF outpout are implemented (mapswf.c, mapdraw.c, maputil.c, mapoutput.c) in 3.7 and then ask specific questions on the mapserver-dev list. Assefa is the one who made the changes for multiple vector output formats in 3.7 and should be able to answer your questions, but please use the list and not private Emails so that the answer are archived. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Thu Oct 3 09:21:12 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 3 Oct 2002 11:21:12 -0500 Subject: [mapserver-users] line layer does not appear Message-ID: Hi Toni, > the streets layer doesn't appear even when the query option > (in the html > form) es disabled. > That's why I am confused. this is different from what you said the last time. The last time you said... > > >>> I have a problem with a line layer. > > >>> This is my .map file for the layer called carrers. > > >>> The thing is that if I put # in front of FILTERITEM and > > >>> FILTER the layer > > >>> appears. which implied that the layer appeared when the FILTERs were turned off. In any case, start troubleshooting step by step. Forget about the filters.... comment them out.... just the plain old line layer. Does the layer appear? If not, check your path settings. Assuming other layers appear, use that as a guide to make sure all your path settings are correct. If the layer appears, check to see if you are FILTERing against the correct attribute, and using values that exist. Watch for capitalization, spaces, etc. pk/ > > > ----- Original Message ----- > From: "Puneet Kishor" > To: "Toni Hern?ndez" > Cc: "Mapserver" > Sent: Thursday, October 03, 2002 3:06 PM > Subject: Re: [mapserver-users] line layer does not appear > > > > > > On Thursday, October 3, 2002, at 01:28 AM, Toni Hern?ndez wrote: > > > > > Hi, > > > > > > Thanks for the reply. > > > Is that mean that I can not show a layer and allow the > user to make a > > > query > > > filter (in some other window) at the same time? > > > > > > no, not at all... its just that it seems your current filter is not > > matching anything. If you ask the program to match against > some item, > > and nothing matches, then nothing will show. > > > > make sure you've got the item name, values, etc., right. > > > > pk/ > > > > > > ps. please reply to the entire list, so others may also be able to > > help/benefit. thanks. > > > > > > > > > > ----- Original Message ----- > > > From: "Puneet Kishor" > > > To: "'Toni Hern?ndez'" ; > > > > > > Sent: Wednesday, October 02, 2002 7:48 PM > > > Subject: RE: [mapserver-users] line layer does not appear > > > > > > > > >> > > >> > > >>> -----Original Message----- > > >>> From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] > > >>> Sent: Wednesday, October 02, 2002 12:00 PM > > >>> To: mapserver-users at lists.gis.umn.edu > > >>> Subject: [mapserver-users] line layer does not appear > > >>> > > >>> > > >>> hi everybody, > > >>> > > >>> I have a problem with a line layer. > > >>> This is my .map file for the layer called carrers. > > >>> The thing is that if I put # in front of FILTERITEM and > > >>> FILTER the layer > > >>> appears. > > >> > > >> > > >> > > >> are you trying to say that ordinarily (that is, if you > *don't* have a > > >> # in > > >> front of FILTERITEM and FILTER), the line layer > "carrers" does not > > >> show? > > >> > > >> > > >> When you don't have the # in front of the FILTER* > keywords, there is > > >> filtering going on. On those features from "carrers" will show up > > >> where > > > the > > >> item "nom" matches whatever the value of %name% happens > to be. Perhaps > > > there > > >> is no match, hence nothing shows up. When you comment > the filters out > > >> (by > > >> putting # in front of them), the layer shows up because it is not > > >> being > > > put > > >> through the filter. > > >> > > >> Does this help? > > >> > > >> pk/ > > >> > > >> > > >> > > >> > > >>> Anyone know why??? > > >>> > > >>> > > >>> LAYER > > >>> NAME carrers > > >>> TYPE LINE > > >>> DATA carrers > > >>> STATUS on > > >>> FILTERITEM "Nom" > > >>> FILTER "%name%" > > >>> CLASS > > >>> NAME "l_carrers" > > >>> COLOR 0 255 0 > > >>> TEMPLATE "carrers.html" > > >>> END > > >>> LABELITEM Nom > > >>> HEADER "cap_carrers.html" > > >>> FOOTER "peu_carrers.html" > > >>> END > > >>> > > >>> > > >>> Thanks a lot > > >>> > From gabriel at ciasc.gov.br Thu Oct 3 09:33:47 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Thu, 3 Oct 2002 13:33:47 -0300 Subject: [mapserver-users] XML References: <8494IDVRJENI2VDAZUKGKIKPOJIROWU.3cfeaaf2@rogers> Message-ID: <12a401c26afa$a61138f0$12d713ac@ciasc.gov.br> Listers. I have some doubts on XML in this page JavaScriptMapServer http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?JavaScriptMapServer Could some one help me ? Thanks. Ferrari, Gabriel From DMartin at erac.com Thu Oct 3 10:21:29 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 3 Oct 2002 12:21:29 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B39@STL-EXBE-I03.corp.erac.com> The biggest problem is that your solution locks your client to a specific map. With a more generic client, you can use as many different map files with the same client as you'd like. A separation of presentation from content is generally a better solution in any web application, and definitely true with MapServer, IMHO. Perhaps it would be best if I share the HTML legend code I use. Excerpt from my client:
Legend
[legend]
____________ Now for the legend template: [leg_layer_html opt_flag=2 order_metadata=legend_order] [if name=layer_status oper=neq value=2] [/if] [/leg_layer_html] [leg_class_html opt_flag=2]   [leg_class_name] [/leg_class_html] ____________ Generic, but I think it accomplishes the same basic result, and should work with almost any map. -Dan -----Original Message----- From: Rob Holloway [mailto:rholloway_1999 at yahoo.com] Sent: Thursday, October 03, 2002 7:03 AM To: Martin, Daniel; 'woodbri at swoodbridge.com'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] HTML Legend with Status Checking... Hi I've been following this thread with some interest as well as I encountered a similar problem. I'm fairly new to Mapserver so forgive me if this a stupid question but is there any reason that javascript can't be used to control the legend. For example, I have used the following code (thanks to suggestions from the users list): Although I haven't had a chance to do alot of testing this seems to work fine at controling the layers that appear in the legend based on scale. As I'm also new to javascript, I guess my real question is does the use of javascript slow down the performance of Mapserver or make my application less compatable for different browsers etc.? Cheers Rob --- "Martin, Daniel" wrote: > > OK, I have been reading this thread with great > interest and was > > wondering if you can summarize what you need to do > to have multiple > > layers at different scales and only have the > visible ones show up in > > your legend templates. > Here's my best shot: > In MapServer we can have as many layers of the same > name as we want. The > benefit is that these same-named layers will turn on > and off together. An > HTML template will show each layer and class even if > they have the same > name, *assuming* they are all in scale. > > However, if these same named layers have scales that > do not overlap, you > should never see both in the legend. This gives you > the effect of several > layers acting as one, with MapServer automatically > switching between them as > you zoom in and out. > > As we found out in this thread, you MUST use > MINSCALE and MAXSCALE in the > LAYER object, not in the CLASS object, for it to > work correctly in the HTML > legend. > > This also hinges on your opt_flag in your > [leg_layer_html] tag. If you use > opt_flag=1 or a summation value of opt_flag that > includes 1, then layers > will show even when out of scale. When I say a > summation value, as the HTML > Legend HOWTO indicates, if you want an opt_flag of 1 > and an opt_flag of 4, > you set your opt_flag to 5. > > My favorite use of this is streets. I use this > technique to create a street > layer that, at high scale, uses a small single class > highway layer. If you > look at the entire US the streets load in seconds. > When you zoom to a > certain level MapServer switches to a very detailed > street layer with many > different classes that would be extremely slow to > load at a higher scale. > To the user this is seamless. > > One interesting addition I'll point out is that > sometimes you may want to > combine two layers into one even at the same scale, > but only show one in the > legend. You can accomplish this by using > [leg_layer_html > order_metadata=legend_order] and then setting the > legend_order meta data to > -1 in one of the two layers: > > METADATA > legend_order "-1" > END > > > I have a mapfile that was working great in a > modified version of > > gmap75 and in it all like layers have the same > name and different > > scales and it works great, except it always shows > all the layers. > In an HTML legend, this *should* only happen if you > have an opt_flag=1 (or a > summation value of opt_flag that includes 1). > Perhaps this was the case? > > > I move the mapfile into the new maplab application > and a bunch of my > > layers vanished. > Honestly, I've not used MapLab. When you say > "vanished", do you mean from > the map itself, or only from the legend? If you > mean from the legend, > perhaps the opt_flag is different in MapLab. > > Hope that helps a little, > Dan Martin > > -----Original Message----- > From: woodbri at swoodbridge.com > [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, October 01, 2002 7:10 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] HTML Legend with > Status Checking... > > > (I cc:'d this to maplab list) > > > OK, I have been reading this thread with great > interest and was > wondering if you can summarize what you need to do > to have multiple > layers at different scales and only have the visible > ones show up in > your legend templates. I think this is an area that > could use more > documentation or at least user insights. > > The variables seem to be: > > group names > layer names and scales > class names and scales > the option code in legend templates > > and maybe a few others that I missed. > > I have a mapfile that was working great in a > modified version of > gmap75 and in it all like layers have the same name > and different > scales and it works great, except it always shows > all the layers. > > I move the mapfile into the new maplab application > and a bunch of my > layers vanished. I turns out the maplab generates > urls like: > > ...&layer[]=highway&layer[]=highway&layer[]=highway&... > because I use the same name on all the like layers. > So I think I have > it confused. > > So your insight into the layers, names, scales etc > might help me > figure this out. > > > Thanks, > -Steve W. __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From imap at chesapeake.net Thu Oct 3 11:28:52 2002 From: imap at chesapeake.net (Chris Stuber) Date: Thu, 3 Oct 2002 14:28:52 -0400 (EDT) Subject: [mapserver-users] Antialiased Lines in mapserver? In-Reply-To: <3D9C285E.6010107@ixine.com> Message-ID: <20021003142437.O50531-100000@mail.chesapeake.net> The use of antialiased lines is a really good idea. I am not sure about the complexities of integrating ImageMagick but thats a really good suggestion IMHO. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. On Thu, 3 Oct 2002, David Monterroso Cabello wrote: > Hi there! > > I'm developing a *streetmap* application using mapserver, and > although i like the output i get, it still looks bad cause those jagged > lines. Is there any way to have antialiased lines in mapserver?, i saw > in some old posts that it was a GD matter, and that even in 2.0 versions > it still doesn't support antialias. Does somebody know if there is > another way to do antialiasing?. I tried to render a double sized image > and then reduced it with ImageMagick but the results were awful. > > And finally, a question for developers, would it be possible to > switch to ImageMagick for vector rendering?, that library render fine > antialiased lines =), althought i dunno if it support everything > mapserver needs. > > > Many thanx > > -- > David Monterroso Cabelo > > > > > > > > > From matthew.g.krusemark at co.multnomah.or.us Thu Oct 3 17:27:09 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Thu, 3 Oct 2002 17:27:09 -0700 Subject: [mapserver-users] loadLayer(): Unknown identifier. (ITEMQUERY):(39) Message-ID: <9D07D10FA5CAD21192620008C7B14D2903075CB6@ISDEXCH-1> Hi, I am getting an error message working with the mapserv test suite ItemQuery loadLayer(): Unknown identifier. (ITEMQUERY):(39) I may not be using proper syntax with 3.6.1 TIA, -matt From stephane.morel at vanoise.com Fri Oct 4 01:24:38 2002 From: stephane.morel at vanoise.com (=?us-ascii?Q?MOREL_Stephane?=) Date: Fri, 4 Oct 2002 09:24:38 +0100 Subject: [mapserver-users] How to project a shapefile ? Message-ID: <01C26B87.DD48D4D0.stephane.morel@vanoise.com> Thank you Anwar for your help but I don't use Win2000. A s I said in my first post, I use Linux Suse 7.2. There is no dll with this OS. When I want to use php_mapscript, I must use at the beginning of the file : dl ('php_mapscript.so'). this the same stuff as the dll you use except that dll can't be use with Linux Thank you one more time for your help Stephane Hi, I a using win 2000, php4.06, mapserver 3.6, apache and php mapscript 4.06 dlls. I dwonloaded all these from mapservers website. You can check you have the exact php_pmapscript.dll in your system. This is different to the mapserver executable. Good luck. Anwar -----Original Message----- From: MOREL Stephane [mailto:stephane.morel at vanoise.com] Sent: Thursday, October 03, 2002 4:55 AM To: 'Shaik Anwar Hussain'; 'mapserver-users at lists.gis.umn.edu' Subject: RE: [mapserver-users] How to project a shapefile ? Hi Thank for your help but it still doesn't work I have this error message : Fatal error: MapServer Error in msProcessProjection(): projection not named in .../../my php files I saw you load a dll called php_proj.dll. I don't if we need to do the same with Linux with something like dl('php_proj.so') Here is my code ..... $oLine->addXY($xmin, $ymin); $oldproj = ms_newprojectionobj("proj=latlong"); $newproj = ms_newprojectionobj("<27585>proj=lcc a=6378249.2 b=6356515.0 lat_0=46d48'0.0''N lon_0=2d20'14.025''E lat_1=45d53'56.108''N lat_2=47d41'45.652''N x_0=600000.0 y_0=2200000.0 towgs84=-168,-60,+320 units=m no_defs"); $oLine = $oLine->project($oldproj,$newproj); $oShp->add( $oLine ); ... if I omit <27585> in the $newproj variable, I get another error message : Fatal error: MapServer Error in msProcessProjection(): unknown projection id in Stephane MOREL GIS manager www.vanoise.com Hi This script creates shape file and reproject in to polyconic. U want to chane in French projection, change the values in $proj2 variable. Let me know if u have any quetions. Good luck, Anwar www.atsincorp.com 43) { $dd = 0 - $dd; } //echo $dnum," , ",$mnum," , ",$dsnum,"
"; return $dd; } # End of the function # Function to generate SHAPE Files function createShape( $x1, $y1, $a1, $b1, $scale, $programId, $pname ) { GLOBAL $shpFile,$dbfFile,$proj1,$proj2; $x = convert($x1); $y = convert($y1); $a = convert($a1); $b = convert($b1); $oShp = ms_newShapeObj(MS_SHP_POLYGON); $oLine = ms_newLineObj(); $opoint = ms_newPointObj(); $opoint->setXY($x , $y ); $opoint1 = ms_newPointObj(); $opoint1->setXY($a , $b ); $mmwidth = $scale * 228; $mwidth = $mmwidth / 1000; $swidth = $mwidth / 23.4; $dwidth = $swidth / 3600; $endx = $x ; $endy = $y ; $startx = $a ; $starty = $b ; $indy = $endy - $starty; $indx = $endx - $startx; echo $indx,' , ', $indy,' , '; if ($indy == 0) { $dy = ($dwidth / 2); $p1 = ms_newPointObj(); $p1->setXY( $endx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx, $endy-$dy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx, $starty-$dy ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx, $starty+$dy ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } elseif ($indx == 0) { $dx = ($dwidth / 2); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx+$dx, $endy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx+$dx, $starty ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx-$dx, $starty ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } else { $inz = $opoint->distanceToPoint( $opoint1 ); $dx = ($dwidth / 2) * ($indy / $inz); $dy = ($dwidth / 2) * ($indx / $inz); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); $p2 = ms_newPointObj(); $p2->setXY( $endx+$dx, $endy-$dy ); $p2=$p2->project($proj1, $proj2); $oLine->add($p2); $p3 = ms_newPointObj(); $p3->setXY( $startx+$dx, $starty-$dy ); $p3=$p3->project($proj1, $proj2); $oLine->add($p3); $p4 = ms_newPointObj(); $p4->setXY( $startx-$dx, $starty+$dy ); $p4=$p4->project($proj1, $proj2); $oLine->add($p4); $p1 = ms_newPointObj(); $p1->setXY( $endx-$dx, $endy+$dy ); $p1=$p1->project($proj1, $proj2); $oLine->add($p1); } $oShp->add($oLine); $shpFile->addShape($oShp); dbase_add_record($dbfFile, array($programId, $pname )); } # End of Function generate SHAPE Files $shpFname = 'E:\Program Files\Apache Group\Apache\htdocs\php406\pams\flightline'; $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POLYGON); $dbfFile = dbase_create($shpFname.".dbf", array(array("PROG_ID","N",5,0),array("PROJ_NAME","C",10))); $proj1 = ms_newprojectionobj("proj=latlong,ellps=GRS80"); $proj2 = ms_newprojectionobj("proj=poly,ellps=GRS80,lat_0=40.925n,lon_0=77.75w"); createShape( "-076 17 34","40 03 59","-076 18 34","40 04 59",3000, 1, "PAMS"); echo "Shapes Created.
"; $shpFile->free(); echo "Shape File ($shpFname) closed.
"; dbase_close($dbfFile); echo "Dbase file closed.
"; ?> -----Original Message----- From: MOREL Stephane [mailto:stephane.morel at vanoise.com] Sent: Wednesday, October 02, 2002 12:52 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] How to project a shapefile ? Hi list I'm a newbie on Mapserver I use Mapserver 3.6.1 / Suse 7.2 MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I wrote a small php script to create a shapefile filled with datas retrieved from a relational database. Differents users can query the database and i would like to allow them to cartography their results through Mapserver. The datas in the database is in latlong projection and all the rest of my geographic database are in Lambert II etendu which is a french projection. I found in the archive a post from Claude Philipona about this french projection parameters. I've updated my epsg file with those parameters. The script works perfectly but I still have shapefiles in latlon projection how can I transform the created shapefile in the french projection ? In fact I don't know how to use projectionobj with Mapscript Any help will be appreciated TIA Stephane MOREL GIS manager www.vanoise.com From toni at giscampus.udg.es Fri Oct 4 04:27:33 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Fri, 4 Oct 2002 13:27:33 +0200 Subject: [mapserver-users] TRUETYPE SUPPORT Message-ID: <00ba01c26b99$087fb270$0e2fce82@udg.es> hi everyone, Does anyone know if the last 3.6.1 version for windows has TRUETYPE support? I don't think so because I get the error "Requested font (arial) not found." If it doesn't where can I find one version with TRUTYPE support? Thanks for your time and knowledge -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at gasai.com Fri Oct 4 06:57:40 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Fri, 4 Oct 2002 08:57:40 -0500 Subject: [mapserver-users] QuerybyPoint blues Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE3D@postoffice.GASAI.Com> Dylan, > I'm confused how the template HTML file picks up the > necessary parameters, though. I understand how it > works in the CGI version, but can't seem to get it > working in PHP Mapscript. Would you mind giving me > a peek at your ttt_query.html file? There is no 'ttt_query.html' file. For some reason (that I don't understand... the folks at DMSG would have to address that) that line MUST be there for a query to work. The concept is really the same as w/ the rest of PHP MapScript applications - you're not "filling in a template" as you do with CGI MapServer... rather you are building content on the fly w/ PHP. MapScript simply returns data on the server side, for you to process (in this case, an array). > I'd also be interested in seeing how you call your query function in > your PHP app. Right now I'm calling it if the "Query" button is > checked. Everything seems to be working (i.e., print and print_r > statements show the correct values), but I can't seem to display the > results. > > Query > > // return query results, if Query radio button was checked > if($_POST['mode'] == 'query') { > query_map($map, $coords, $extent_to_set, 'water_bodies'); > } Well, what you have there *seems* to be going in the right direction, that's basically what I do to (although I'm responding to an event from ROSA... but that doesn't matter). Basically, you need to figure out why it's not working ;) First, rule out the obvious (is the function firing, are the coordinates being passed, what's coming out of the end, etc.). My hunch is that what's happening is that your $extent_to_set variable is screwing you up. That needs to be the extent that existed *when the user clicked the map* - not any new extent that might be generated. Otherwise your img_point to map_point conversion won't be working. Check this by capturing the value of the converted coordinates and looking at them. You should be able to do some backtracking and figure out whether or not it's doing the conversion correctly. HTH! Chip Hankley From Chip.Hankley at gasai.com Fri Oct 4 07:05:27 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Fri, 4 Oct 2002 09:05:27 -0500 Subject: [mapserver-users] PHP MapScript - Max Layers / Classes Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE3E@postoffice.GASAI.Com> Does anyone know if the maximum number of layers / classes issue (feature) that CGI MapServer has applies to PHP MapScript (I think it's like 50 / 300)? If so, how does it manifest? Does the mapfile just not load? Is an error generated? Or does everything generate up to the limit? I've got an app that is growing, and I think it may reach this level of data. Anyone have any experience with larger applications like this? I would like to NOT allow someone to turn on, say, 100 layers at a time, so the limit (if there is one) seems like a good idea. OTH, I may need to give access to more than 50 layers. I was thinking about moving to dynamically generated layers, using a database structure to store layer defs... but don't want to re-invent something someone else has done. Any ideas? Chip Hankley From teb at mallit.fr.umn.edu Fri Oct 4 07:02:23 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Fri, 4 Oct 2002 09:02:23 -0500 (CDT) Subject: [mapserver-users] [Q] Perl Mapscript. (FWD) Message-ID: <200210041402.g94E2NN26530@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Thu, 3 Oct 2002 21:04:41 -0500 (EST) From: Kyoung Jae Lim To: Subject: [Q] Perl Mapscript. MIME-Version: 1.0 X-Virus-Scanned-ECN: by AMaVIS version 11 (http://amavis.org/) Does any of you know how to compile perl mapscript ? I am using a mapserver 3.5 now. I only used GD lib and GDAL lib for my mapserver, then cd to mapscript/perl diectory. It seems 'perl Makefile.PL' generates Makefile properly. However, when I try to compile it, it gives me these error message. I have no idea how to fix the errors. -------------- "mapscript_wrap.c", line 416: warning: assignment type mismatch: pointer to function(pointer to struct perl_thread {pointer to struct interpreter {..} interp, pointer to pointer to struct sv {..} Tstack_sp, pointer to struct op {..} Top, pointer to pointe ...... ....... "mapscript_wrap.c", line 417: warning: assignment type mismatch: pointer to function(pointer to struct perl_thread {pointer to struct interpreter {..} interp, pointer to pointer to struct sv {..} Tstack_sp, pointer to struct op {..} Top, pointer to pointer to struct sv {..} Tcurpad, pointer to pointer to struct sv {..} Tstack_base, pointer to pointer to struct sv {..} Tstack_max, pointer to long Tscopestack, long Tscopestack_ix, long Tscopestack_max, pointer to union any {..} Tsavestack, long Tsavestack_ix, long Tsavestack_max, pointer to pointer to struct sv {..} Ttmps_stack, long Tt ... ... "./../../mapprimitive.h", line 24: syntax error before or at: / "./../../mapprimitive.h", line 26: cannot recover from previous errors cc: acomp failed for mapscript_wrap.c *** Error code 2 make: Fatal error: Command failed for target `mapscript_wrap.o' ------------- Do I have to modifiy 'Makefile' if I didn't compile mapserver with FreeType, TIFF, and EPPL7 ? Any help would be appreciated !! KJ ------------- End Forwarded Message ------------- From Rich at greenwoodmap.com Fri Oct 4 08:05:12 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Fri, 04 Oct 2002 09:05:12 -0600 Subject: [mapserver-users] TRUETYPE SUPPORT In-Reply-To: <00ba01c26b99$087fb270$0e2fce82@udg.es> Message-ID: <5.1.1.6.0.20021004085957.00a9ef70@mail.GreenwoodMap.com> At 01:27 PM 10/4/2002 +0200, you wrote: >hi everyone, > >Does anyone know if the last 3.6.1 version for windows has TRUETYPE support? >I don't think so because I get the error "Requested font (arial) not found." >If it doesn't where can I find one version with TRUTYPE support? I think it does. You can check by typing "mapserv -v" at the command prompt. If it says "SUPPORT+TTF" then it probably does have TrueType support. Have you defined a FONTSET and also defined arial within the FONTSET file? I put my fonts in the same directory as the FONTSET file. And font names are case sensitive. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kjlim at ecn.purdue.edu Fri Oct 4 08:25:22 2002 From: kjlim at ecn.purdue.edu (Kyoung Jae Lim) Date: Fri, 4 Oct 2002 10:25:22 -0500 (EST) Subject: [mapserver-users] [Q] Compile Perl MapScript Message-ID: Does any of you know how to compile perl mapscript ? I am using a mapserver 3.5 now. It seems 'perl Makefile.PL' generates Makefile properly. However, when I try to compile it, it gives me these error message. ----- errro message --------- "mapscript_wrap.c", line 416: warning: assignment type mismatch: pointer to function(pointer to struct perl_thread {pointer to struct interpreter {..} interp, pointer to pointer to struct sv {..} Tstack_sp, pointer to struct op {..} Top, pointer to pointe ...... ....... "mapscript_wrap.c", line 417: warning: assignment type mismatch: pointer to function(pointer to struct perl_thread {pointer to struct interpreter {..} interp, pointer to pointer to struct sv {..} Tstack_sp, pointer to struct op {..} Top, pointer to pointer to struct sv {..} Tcurpad, pointer to pointer to struct sv {..} Tstack_base, pointer to pointer to struct sv {..} Tstack_max, pointer to long Tscopestack, long Tscopestack_ix, long Tscopestack_max, pointer to union any {..} Tsavestack, long Tsavestack_ix, long Tsavestack_max, pointer to pointer to struct sv {..} Ttmps_stack, long Tt ... ... "./../../mapprimitive.h", line 24: syntax error before or at: / "./../../mapprimitive.h", line 26: cannot recover from previous errors cc: acomp failed for mapscript_wrap.c *** Error code 2 make: Fatal error: Command failed for target `mapscript_wrap.o' ------------- Do I have to modifiy 'Makefile' if I didn't compile mapserver with FreeType, TIFF, and EPPL7 ? Any help would be appreciated !! KJ From TMitchell at lignum.com Fri Oct 4 08:34:04 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 4 Oct 2002 08:34:04 -0700 Subject: [mapserver-users] TRUETYPE SUPPORT Message-ID: AFAIK - it works. You need to set a few things in your mapfile, can you send yours to me? Here's the items: FONTSET xxxxxx - near the top of the map file points to a text file that lists the font name and points it to a ttf file. I set mine like this: FONTSET "fontsets\fonts.txt" I'll attach my fonts.txt file for you. I also copy the ttf files into my fontsets folder.(See attached file: fonts.txt) In a label object set: TYPE TRUETYPE And then FONT xxxxxx - based on the first column in the fonts.txt file - i.e. arial I chunk of my map file looks like this LAYER ..... CLASS .... LABEL FONT arialbold TYPE truetype ANTIALIAS TRUE POSITION AUTO COLOR 255 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE SIZE 8 END END END Does that help you out? Toni Hern?ndez To: Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] TRUETYPE SUPPORT 10/04/2002 04:27 AM hi everyone, Does anyone know if the last 3.6.1 version for windows has TRUETYPE support? I don't think so because I get the error "Requested font (arial) not found. " If it doesn't where can I find one version with TRUTYPE support? Thanks for your time and knowledge -------------- next part -------------- A non-text attachment was scrubbed... Name: fonts.txt Type: application/octet-stream Size: 95 bytes Desc: not available URL: From toni at giscampus.udg.es Fri Oct 4 08:44:39 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Fri, 4 Oct 2002 17:44:39 +0200 Subject: [mapserver-users] TRUETYPE SUPPORT References: Message-ID: <003e01c26bbc$f30e0080$0e2fce82@udg.es> Hi, I solved it thanks to your advise I had to modify my font.list file. Now it just looks like this arial arial.tft. Thanks a milion From tesimap at hotmail.com Fri Oct 4 10:23:56 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 04 Oct 2002 19:23:56 +0200 Subject: [mapserver-users] Mapserver compile error Message-ID: Hi all, I want to compile MS 3.5 (on Win XP) with PHP 4.0.6 but I have this error message: cl /nologo /Zi -I ../gd-gif -I../tiff/libtiff -I../libjpeg/src -I../proj/src -I..\php-4.0.6\regex -DPHP_NO_ALIASES -I..\gdal/ogr/ogrsf_frmts -I..\gdal/ogr -I..\gdal/ogr/../port -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP - DNEED_STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DHAS_GD_TF -DUSE_GD_FT -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_LIBTTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_WMS /c mapbits.c /Fomapbits.obj mapbits.c map.h(41) : fatal error C1083: Cannot open include file: 'regex.h': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. This is the section of PHP in my mapserver makefile: #PHP_REGEX=..\php-3.0.14\regex PHP_REGEX=..\php-4.0.6\regex #PHP_REGEX=..\php-4.1.2\regex REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES Any idea? Regards Ivan _________________________________________________________________ MSN Foto ? il sistema pi? facile per condividere e stampare foto online: http://photos.msn.it From TMitchell at lignum.com Fri Oct 4 11:23:59 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 4 Oct 2002 11:23:59 -0700 Subject: [mapserver-users] re: FONT Error: msGetLabelSize() Message-ID: It looks like a few of us are running into the same problem using fonts this week, specifically using windows paths. I couldn't find an answer to the comments on: http://mapserver.gis.umn.edu/wilma/mapserver-users/0110/msg00050.html That basically tells us not to bother trying to use full windows paths to fonts, but only paths relative to the fontset file. He suggested that it was a GD limitation - can anyone confirm this is so? i.e. a fontset entry of: arial fontset/arial.ttf works fine when I put a copy of the ttf in the same folders as my fontset file. But: arial c:/winnt/fonts/arial.ttf (or any other folder or font name, for that matter) gives the infamous "TrueType Font error. Could not find/open font". TTF fonts work great otherwise, but to date I've been copying the fonts I want into my fontset folder for the mapserver app. Tyler From TMitchell at lignum.com Fri Oct 4 11:35:47 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 4 Oct 2002 11:35:47 -0700 Subject: [mapserver-users] Fontset generating perl script Message-ID: While we're on the topic of fontsets. I put a perl script up on the wiki at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FontSet This will create a fontset.txt file that lists an alias and the path name (relative or explicit) that you point the script to. It will catalogue all the ttf (or TTF) files in the specified folder. It works on windows and unix - see the notes on the page for more info. I hope I didn't recreate the wheel. Perhaps I should look at making it in c so it could be distributed with mapserver to aid new users. Syntax: perl make_fontset.pl Any feedback, comments or updates are welcome - do updates right on the wiki page. From pagurekd at agr.gc.ca Fri Oct 4 11:54:09 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Fri, 04 Oct 2002 14:54:09 -0400 Subject: [mapserver-users] WMS client, errors Message-ID: Hi everyone, one of my applications makes use of a WMS layer from an external source. The application has been stable for quite some time, but today something changed with a particular layer at the host of that WMS layer and my application had a WMS error appearing where the map should be, with my own transparent layers on top of this ugly error message! Is there any way Mapserver can test a WMS layer first to make sure it is getting a proper image back from the host? It would be nice to have some sort of test to ensure that users don't see ugly error messages from WMS. Any suggestions? Thanks, D. Pagurek From srollins at descinc.com Fri Oct 4 14:16:01 2002 From: srollins at descinc.com (Steve Rollins) Date: Fri, 4 Oct 2002 16:16:01 -0500 Subject: [mapserver-users] No variable resolution Message-ID: <007201c26beb$3e630ac0$0400a8c0@Steve> Trying to get the Itasca demo up and running but when I look at the html code in the demo.html file, all the variables are unresolved such as [img] [scalebar] etc. Should these be converted to something by mapserv.exe? I can run it from the address bar in my browser, for example http://localhost/scripts/mapserv.exe gives me the appropriate error, such as nothing to decode - query string not set. If I hit the "Refresh/Query" button I get "msLoadMap(): Unable to access file. Illegal mapfile name." With a url like this http://localhost/scripts/mapserv.exe?mode=browse&zoomsize=%5Bzoomsize... . Which would seem to tell me that it's finding the mapserv.exe okay. Any ideas? Thanks. Steve Rollins -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.g.krusemark at co.multnomah.or.us Fri Oct 4 15:55:23 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Fri, 4 Oct 2002 15:55:23 -0700 Subject: [mapserver-users] x,y perl mapscript to create shapefile Message-ID: <9D07D10FA5CAD21192620008C7B14D2903075CBC@ISDEXCH-1> Does anyone have an example of creating a point shapefile using Perl mapscript from x,y coords in a database? Kind regards,-matthew From jomejia at main-task.com Fri Oct 4 17:35:59 2002 From: jomejia at main-task.com (=?ISO-8859-1?Q?Jaime_Mej=EDa?=) Date: Fri, 04 Oct 2002 19:35:59 -0500 Subject: [mapserver-users] DATUM CONVERSIONS Message-ID: <3D9E33EF.4000702@main-task.com> hi list, I've got a base map in XY coordinates with datum bogota. In the map file, I've got the following projection definition: ----------------------------------------------------------------------------------------------------------- # Start of map file # NAME BOGOTA STATUS ON SIZE 600 600 SYMBOLSET "/usr/local/apache/htdocs/bog/symbols/symbol.sym" EXTENT 250000 20000 2110000 1880000 UNITS METERS SHAPEPATH "/usr/local/apache/htdocs/bog/data/" IMAGECOLOR 240 240 240 FONTSET "/usr/local/apache/htdocs/bog/fonts/fonts.txt" # View Projection definition PROJECTION "proj=tmerc" "ellps=intl" "k=0.9996" "x_0=1000000" "y_0=1000000" "lon_0=74d4.8550002'w" "lat_0=4d35.9428332'n" END ----------------------------------------------------------------------------------------------------------- And I want to display in the map a collection of points taken with a GPS and datum WGS84. How do I define the projection in the layer? If I take the points with GPS datum BOGOTA it appears where they should, but with WGS84 it appears +/- 500 mts displaced to the south-east I've got the projection in the layer defined this way: PROJECTION "proj=latlong" "ellps=WGS84" END The problem is that there is about 500.000 points, so it is impossible to take them again with datum BOGOTA. I used a Garmin GPS What should I do? Thanks in advance, -- Cordial Saludo, MAIN TASK Jaime Mej?a Molina www.main-task.com Tel?fono 2184608 DG 85 # 28-39 Bogot? D. C. From joe at otsys.com Fri Oct 4 19:16:33 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 4 Oct 2002 19:16:33 -0700 Subject: [mapserver-users] x,y perl mapscript to create shapefile In-Reply-To: <9D07D10FA5CAD21192620008C7B14D2903075CBC@ISDEXCH-1> References: <9D07D10FA5CAD21192620008C7B14D2903075CBC@ISDEXCH-1> Message-ID: <20021005021633.GA13792@otsys.com> Start with the following thread. You should get where you need to go. If you have any trouble drop another post... http://mapserver.gis.umn.edu/wilma/mapserver-users/0209/msg00425.html On Fri, Oct 04, 2002 at 03:55:23PM -0700, KRUSEMARK Matthew G wrote: > Does anyone have an example of creating a point shapefile using Perl > mapscript from x,y coords in a database? > > Kind regards,-matthew > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From gerry.creager at tamu.edu Fri Oct 4 19:56:01 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Fri, 04 Oct 2002 21:56:01 -0500 Subject: [mapserver-users] meteorology symbols? Message-ID: <3D9E54C1.30906@tamu.edu> Does anyone have a set of wind barb symbols, or know where I might find same? We're getting a site up where we're going to be displaying weather data, and we need to be able to display the symbology for the winds, if possible, to preserve the valuable real-estate of the display area. Thanks, Gerry Creager Texas A&M University From nhv at cape.com Fri Oct 4 20:16:14 2002 From: nhv at cape.com (Norman Vine) Date: Fri, 4 Oct 2002 23:16:14 -0400 Subject: [mapserver-users] meteorology symbols? References: <3D9E54C1.30906@tamu.edu> Message-ID: <0c8001c26c1d$90e9fba0$0100a8c0@sfdev3> Gerry Creager writes: > Does anyone have a set of wind barb symbols, or know where I might find > same? We're getting a site up where we're going to be displaying > weather data, and we need to be able to display the symbology for the > winds, if possible, to preserve the valuable real-estate of the display > area. Lots of font links here < look for ESRI weather symbols > http://cgm.cs.mcgill.ca/~luc/travel.html HTH Norman From andrewrcollins at yahoo.com Sun Oct 6 05:13:37 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Sun, 6 Oct 2002 05:13:37 -0700 (PDT) Subject: [mapserver-users] Java MapScript Win32 DLL Message-ID: <20021006121337.508.qmail@web14008.mail.yahoo.com> Steps taken: 1. Compiled MapServer with gcc using MinGW and MSYS. 2. Generated MapScript C and Java code with swig. 3. Produced dll with dlltool and gcc using MinGW and MSYS. I have had absolutely no luck using the dll. This is the first time that I've used MinGW, MSYS, dlltool, gcc and swig to produce a dll. I'm certain that I have missed some fundamental steps somewhere. Here is a listing of the files I've used, the commands I've executed and the changes to the 3.6.1 distribution that I've made to produce the "mapscript_java.dll" file: A batch file to download all the necessary files, makes use of "curl", but "wget" would probably work, too... == @echo off echo mapserver-3.6.1.tar.gz curl "http://mapserver.gis.umn.edu/dist/mapserver-3.6.1.tar.gz" --output "mapserver-3.6.1.tar.gz" echo swigwin-1.3.15.zip curl "http://telia.dl.sourceforge.net/sourceforge/swig/swigwin-1.3.15.zip" --output "swigwin-1.3.15.zip" echo MinGW-2.0.0-3.exe curl "http://telia.dl.sourceforge.net/sourceforge/mingw/MinGW-2.0.0-3.exe" --output "MinGW-2.0.0-3.exe" echo MSYS-1.0.8-2002.09.07-1.exe curl "http://telia.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.8-2002.09.07-1.exe" --output "MSYS-1.0.8-2002.09.07-1.exe" echo gdlib-1.8.4-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/gdlib-1.8.4-lib.zip" --output "gdlib-1.8.4-lib.zip" echo freetype-2.1.2-1-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/freetype-2.1.2-1-lib.zip" --output "freetype-2.1.2-1-lib.zip" echo libjpeg-6b-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/libjpeg-6b-lib.zip" --output "libjpeg-6b-lib.zip" echo libpng-1.2.4-1-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/libpng-1.2.4-1-lib.zip" --output "libpng-1.2.4-1-lib.zip" echo xpm-3.4k-1-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/xpm-3.4k-1-lib.zip" --output "xpm-3.4k-1-lib.zip" echo zlib-1.1.4-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/zlib-1.1.4-lib.zip" --output "zlib-1.1.4-lib.zip" echo regex-0.12-lib.zip curl "http://telia.dl.sourceforge.net/sourceforge/gnuwin32/regex-0.12-lib.zip" --output "regex-0.12-lib.zip" pause == 1. Install MinGW E:\win32app\MinGW 2. Install MSYS E:\win32app\MinGW\1.0 3. Unzip Swig E:\win32app\SWIG-1.3.15 4. Unzip MapServer E:\win32app\MinGW\1.0\bin\%USERPROFILE%\mapserver-3.6.1 5. Unzip required libraries gdlib-1.8.4-lib.zip freetype-2.1.2-1-lib.zip libjpeg-6b-lib.zip libpng-1.2.4-1-lib.zip xpm-3.4k-1-lib.zip zlib-1.1.4-lib.zip regex-0.12-lib.zip E:\win32app\MinGW\1.0\bin\%USERPROFILE%\mapserver-3.6.1\include E:\win32app\MinGW\1.0\bin\%USERPROFILE%\mapserver-3.6.1\lib E:\win32app\MinGW\1.0\bin\%USERPROFILE%\mapserver-3.6.1\manifest 6. Run MSYS == $ cd $ cd mapserver-3.6.1 $ mv lib/libgd.dll.a lib/libgd_dll.a $ mv mapogr.cpp mapogr.c $ vi configure Change two lines: GD_CHECKLIB=c to: GD_CHECKLIB=gd $ ./configure --with-jpeg=. --with-gd=. --with-freetype=. --with-zlib=. --with-png=. --without-pdf --without-tiff --without-eppl --without-wms --without-php $ vi Makefile Change line: mapogr.o: mapogr.cpp $(CXX) -c $(CFLAGS) mapogr.cpp -o mapogr.o to: #mapogr.o: mapogr.cpp # $(CC) -c $(CFLAGS) $< -o $@ $ make lib $ cd mapscript $ cd java $ cp ../mapscript.i . Use the following "Makefile" == # # SWIG Stuff # SWIG=/e/win32app/SWIG-1.3.15/swig # # Java Stuff # JAVAC=/e/win32app/j2sdk1.4.1/bin/javac JAR=/e/win32app/j2sdk1.4.1/bin/jar JAVA_INCLUDE=-I/e/win32app/j2sdk1.4.1/include -I/e/win32app/j2sdk1.4.1/include/win32 CC=gcc # # Set these to the values appropriate for your MapServer build- cut & paste from ../../perlvars # CCFLAGS=-DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_TTF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR LDFLAGS=-Wl,--dll -nostartfiles -L../.. -lmap -L../../lib -lgd -lgd_dll -lpng -lpng12_dll -lz -lz_dll -ljpeg -ljpeg_dll -lfreetype -lfreetype_dll -lttf -ltty_dll -lregex -lregex_dll # # --- You shouldn't have to edit anything else. --- # all: interface mapscript_dll mapscript_java mapscript_jar interface: mapscript.i $(SWIG) -I../.. -java -shadow -package edu.umn.gis.mapscript mapscript.i mapscript_dll: mapscript_wrap.c $(CC) -c $(CCFLAGS) $(JAVA_INCLUDE) -I../../ -I../../include/ mapscript_wrap.c dlltool --dllname mapscript_java.dll --output-exp mapscript_java.o --output-lib mapscript_java.lib --output-def mapscript_java.def mapscript_wrap.o $(CC) mapscript_wrap.o mapscript_java.o -o mapscript_java.dll $(LDFLAGS) mapscript_java:: $(JAVAC) -d . *.java mapscript_jar:: $(JAR) cf mapscript.jar edu clean: rm -rf *.c *.o *.def *.lib *.dll edu *.java *.jar == $ make == The resulting "mapscript_java.dll" doesn't work. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From nhv at cape.com Sun Oct 6 05:58:52 2002 From: nhv at cape.com (Norman Vine) Date: Sun, 6 Oct 2002 08:58:52 -0400 Subject: [mapserver-users] Java MapScript Win32 DLL References: <20021006121337.508.qmail@web14008.mail.yahoo.com> Message-ID: <00c601c26d38$1ffb1520$0100a8c0@sfdev3> Andrew Collins writes: > Steps taken: > > 1. Compiled MapServer with gcc using MinGW and MSYS. > > 2. Generated MapScript C and Java code with swig. Note I haven't tried building mapserver with MingW MSYS nor have I tried building Java mapscript but MingW and Cygwin act VERY much the same and the following reflects my experience building Python mapscript with Cygwin ==== at the top of the SWIG generated mapscript_wrap.c file you probably need to adjust the #define for DLL linkage to something like #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(_MSC_VER) || defined(__CYGWIN__) || defined( __MINGW32__) # if defined(STATIC_LINKED) # define SWIGEXPORT(a) a > > 3. Produced dll with dlltool and gcc using MinGW and MSYS. FYI - There is no need to use dlltool anymore as the latest MingW and Cygwin gcc can build a dll directly although the method you use looks OK Here are the command lines that build python mapscript for me with Cygwin the same techniques should work for MingW and java mapscript DLL < you will need to change these to reflect you are building the Java library and your local configuration etc. > gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -DPROJ=-DUSE_PROJ -DUSE _PROJ_API_H -DGD=-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DJPEG =-DUSE_JPEG -DIGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA -DOWS=-DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DEPPL=-DUSE_EPPL -DTIFF=-DUSE_TIFF -DGDAL=-DUSE _GDAL -DOGR=-DUSE_OGR -DPOSTGIS=-DUSE_POSTGIS -I../.. -I/usr/local/include - I/usr/local/include/python2.1 -c mapscript_wrap.c -o mapscript_wrap.o gcc -shared -Wl,--enable-auto-image-base mapscript_wrap.o ../../libmap.a /usr/local/lib/ogr.a -L../.. -L/lib -L/usr/local/lib -L/usr/local/lib/python 2.1/config -lmap -lgd -lfreetype -lproj -lgdal.1.1 -lpq -lwwwinit -lwwwapp - lwwwxml -lxmlparse -lxmltok -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwm ime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -lm -lpython2.1 -o _mapscript.dll !!! DO NOT DO THE FOLLOWING !!! > $ cd mapserver-3.6.1 > $ mv lib/libgd.dll.a lib/libgd_dll.a > $ mv mapogr.cpp mapogr.c HTH Norman From woodbri at swoodbridge.com Sun Oct 6 16:42:40 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sun, 6 Oct 2002 19:42:40 -0400 Subject: [mapserver-users] PHP MapScript - Max Layers / Classes In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABE3E@postoffice.GASAI.Com> Message-ID: <3DA09230.19082.13EA9055@localhost> Chip, The limits are hard coded array sizes in map.h, the default has been 50 layers. This is NOT the number of layers displayed, this is the maximum number of layers defined as in thoses in the mapfile plus any defined dynamically via CGI or mapscript. You database idea sound fine and would allow you to generate only the ones needed dynamically and limit the total if you want. Not sure what the failure mechanism is if you exceed the limit. -Steve W. On 4 Oct 2002 at 9:05, Hankley, Chip wrote: > Does anyone know if the maximum number of layers / classes issue > (feature) that CGI MapServer has applies to PHP MapScript (I think > it's like 50 / 300)? > > If so, how does it manifest? Does the mapfile just not load? Is an > error generated? Or does everything generate up to the limit? > > I've got an app that is growing, and I think it may reach this level > of data. Anyone have any experience with larger applications like > this? I would like to NOT allow someone to turn on, say, 100 layers at > a time, so the limit (if there is one) seems like a good idea. OTH, I > may need to give access to more than 50 layers. I was thinking about > moving to dynamically generated layers, using a database structure to > store layer defs... but don't want to re-invent something someone else > has done. > > Any ideas? > > Chip Hankley > From navarro_ver at gva.es Mon Oct 7 00:30:52 2002 From: navarro_ver at gva.es (=?iso-8859-1?Q?Ver=F3nica?= Navarro) Date: Mon, 07 Oct 2002 09:30:52 +0200 Subject: [mapserver-users] msLoadSymbolFile(): Unable to access file. Message-ID: <3DA1382C.895300FF@gva.es> Hi! I'm begin to use MapServer. I have install MapServer 3.6.1, precompiled binaries ms36gif_wms.zip with support form the following libraires: TIFF, JPEG, FreeType, Proj and GD. Well, i have down demo 'itasca 3.5', but i execute http://vnavarro/itasca/demo_init.html and i click on the intialize button the result is: "msLoadSymbolFile(): Unable to access file. (symbols/line.sym) why? any idea? Please help me. Thank you From pucher at atlas.gis.univie.ac.at Mon Oct 7 01:20:01 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 07 Oct 2002 10:20:01 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> Message-ID: <3DA143B1.1050301@atlas.gis.univie.ac.at> Hi Jan, I've changed the mappostgis.c file and compiled mapserver once again, so this works without any problems now. Maybe I should say some works to my DB set up: I have two tables in my DB: 'nut3' is a geometry table holding the polygon geometry of europ's NUTS 3 areas. Each polygon has a unique identifier called 'nurgcd' 'un3rt' is a normal table holding the unemployment rates of the NUTS areas, connected to 'nut3' via the 'nurgcd' key. The query you sent me worked more or less right away. my DATA entry in the mapfile now looks like this: DATA "the_geom from (select nut3.the_geom,un3rt.oid, case when un3rt.unit > 16 then 1 when un3rt.unit between 10 and 16 then 2 when un3rt.unit between 5 and 10 then 3 when un3rt.unit between 0 and 5 then 4 else 5 end as myclass from nut3,un3rt where nut3.nurgcd=un3rt.geo ) as foo" You can see that I had to include the oid into the query, otherwise it didn't work. The query works from a terminal and returns the geometry coloumn from my table nut3. Is it correct that it _only_ returns this coloumn. I thougt that the cases (as myclass) should also be in the result set, so that the mapfile can refer to it via the CLASSITEM tag? My classes are like: CLASSITEM "myclass" CLASS EXPRESSION "1" COLOR 255 0 0 END CLASS EXPRESSION "2" COLOR 250 100 100 END CLASS EXPRESSION "3" COLOR 250 200 200 END ... Still, the map I create with this mapfile is empty, i.e no polygons are coloured according to the resp. classes. It seems to me that the expressions in the various classes don't find matching patterns in the result set. I think it's only a small thing to change to make it work, but I can't find it. mfg alex Jan Hartmann wrote: > Alexander, > > You are right: MapServer opens a separate PostGIS connection for every > layer, so your approach is inefficient. You can do it much more > elegantly by using just one layer and putting all your filter > conditions into the DATA statement. You do this by creating a computed > PostGIS variable and giving it a name. This temporary variable can be > used as a CLASSITEM by MapServer. Note that this is a very powerful > way of creating classified maps, as you can make your computations as > complex as you want, with variables from all tables in your database. > > > DATA "the_geom from > (select nut3.the_geom, > case when un3rt.unit > 16 then 1 > when un3rt.unit > 10 and un3rt.unit < 16 then 2 > when un3rt.unit > 5 and un3rt.unit < 10 then 3 > when un3rt.unit > 0 and un3rt.unit < 5 then 4 > else 5 > end as myclass > from nut3,un3rt > where nut3.nurgcd=un3rt.geo > ) as foo" > > > CLASSITEM myclass > CLASS > EXPRESSION 1 > COLOR 255 0 0 > END > CLASS > EXPRESSION 2 > COLOR 250 100 100 > END > CLASS > EXPRESSION 3 > COLOR 250 200 200 > END > CLASS > EXPRESSION 4 > COLOR 250 220 220 > END > CLASS > EXPRESSION 5 > COLOR 210 210 210 > END > > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl > > > Alexander Pucher wrote: > >> Hi, >> >> this time I want to use the mapserv CGI simlpy to generate a >> choroplethe map for me, by sending a predefined mapfile to the >> mapserv executable and store the map in a tmp directory. >> >> I want to show 4 classes of unemployment, colored depending on values >> in a db-table. The unemployment table is linked to the geometry table >> on the fly using FILTER in the mapfile. >> >> To to so, I load the respective layer 4 times from PostGIS, and >> assign FILTERs to the them to select the relevant polygons. >> >> Everything works fine, the map is created, only that it takes about >> 25 sec. :-( >> >> I played around a bit and found out that the repeated CONNECTIONs >> causes the delay. >> >> Did I miss something in accessing layers fromPostGIS? With >> shapefiles, I would have used class expressions to "divide" the layer >> into classes, how can I do this without drawing the same layer over >> and over again when using PostGIS? AFAIK, I can't use the class >> expressions in this case, because I have to link two tables. >> >> I added the mapfile for corrections ;-) >> >> Regards, >> alex >> >> >> >> ... >> >> ############################ >> # Start of layer definitions >> ############################ >> >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> DATA "the_geom from nut3" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END >> CLASSITEM "nurgcd" >> CLASS >> NAME "No Data" >> COLOR 210 210 210 >> END >> >> END >> #------------------------------------------------------ >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> DATA "the_geom from nut3" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END >> FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 16" >> CLASSITEM "nurgcd" >> CLASS >> NAME "unempl. > 16%" >> COLOR 255 0 0 END >> END >> #------------------------------------------------------ >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> DATA "the_geom from nut3" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END >> FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 10 and un3rt.unit >> < 16" >> CLASSITEM "nurgcd" >> CLASS >> NAME "unempl. 10-16%" >> COLOR 250 100 100 END >> END >> #------------------------------------------------------ >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> DATA "the_geom from nut3" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END >> FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 5 and un3rt.unit >> < 10" >> CLASSITEM "nurgcd" >> CLASS >> NAME "unempl. 5-10%" >> COLOR 250 200 200 END >> END >> #------------------------------------------------------ >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> DATA "the_geom from nut3" >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END >> FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 0 and un3rt.unit < 5" >> CLASSITEM "nurgcd" >> CLASS >> NAME "unempl. <5%" >> COLOR 250 220 220 END >> END >> #------------------------------------------------------ >> LAYER >> NAME "nut3lin" >> STATUS ON >> DATA "the_geom from nut3_arc" >> #DESCRIPTION "nut3lin" >> TYPE LINE >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 boundaries lines" >> END >> CLASS >> #NAME "Nuts3 Gebiete" >> COLOR 0 0 0 >> END >> END >> END >> > > > > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From mike.elstermann at halle.de Mon Oct 7 03:17:27 2002 From: mike.elstermann at halle.de (Mike Elstermann) Date: Mon, 7 Oct 2002 12:17:27 +0200 Subject: No subject Message-ID: <001401c26dea$bcff0680$111b550a@nt.halle.de> unsubscribe mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From soreotsoga at libero.it Mon Oct 7 04:40:07 2002 From: soreotsoga at libero.it (soreotsoga at libero.it) Date: Mon, 7 Oct 2002 13:40:07 +0200 Subject: No subject Message-ID: hi everyone! i've got some problems using ITEMNQUERY with the 3.6 version i want to search a db field called Id, to find the record about an item with the same Id of a given one(es find the record with id= Isp7) it doesn't seem too difficult but, maybe simply 'cause it's my first time with Map Server, i haven't still managed. i called map server using the following lines
and defined the file .map. i used an example on the web to write the file .map but it is about an old version and it doesn't suit to my case. i think the problem is in the definition of the filter... what should i put in there? thanking everyone so kind to answer me eros agosto politecnico di torino From stephane.morel at vanoise.com Mon Oct 7 05:48:18 2002 From: stephane.morel at vanoise.com (=?us-ascii?Q?MOREL_Stephane?=) Date: Mon, 7 Oct 2002 13:48:18 +0100 Subject: [mapserver-users] How to project a shapefile ? Message-ID: <01C26E08.320D4780.stephane.morel@vanoise.com> Thank you Nicol I will try it stephane Hi Stephane, follow this link http://mapserver.gis.umn.edu/wilma/mapserver-users/0207/msg00395.html After the creation you have to include it like dl('proj.so'); Greetings Nicol Hermann MOREL Stephane schrieb am 04.10.2002, 10:24:38: > Thank you Anwar for your help > but I don't use Win2000. A s I said in my first post, I use Linux Suse 7.2. > There is no dll with this OS. When I want to use php_mapscript, I must use > at the beginning of the file : dl ('php_mapscript.so'). this the same stuff as the dll > you use except that dll can't be use with Linux > > Thank you one more time for your help > > Stephane > > Hi, > I a using win 2000, php4.06, mapserver 3.6, apache and php mapscript > 4.06 dlls. I dwonloaded all these from mapservers website. You can check > you have the exact php_pmapscript.dll in your system. This is different to > the mapserver executable. > > Good luck. > > Anwar > > > -----Original Message----- > From: MOREL Stephane [mailto:stephane.morel at vanoise.com] > Sent: Thursday, October 03, 2002 4:55 AM > To: 'Shaik Anwar Hussain'; 'mapserver-users at lists.gis.umn.edu' > Subject: RE: [mapserver-users] How to project a shapefile ? > > > Hi Thank for your help > but it still doesn't work > I have this error message : > Fatal error: MapServer Error in msProcessProjection(): projection not named > in .../../my php files > I saw you load a dll called php_proj.dll. I don't if we need to do the same > with Linux with something like dl('php_proj.so') > Here is my code > ..... > $oLine->addXY($xmin, $ymin); > $oldproj = ms_newprojectionobj("proj=latlong"); > $newproj = ms_newprojectionobj("proj=lcc a=6378249.2 b=6356515.0 > lat_0=46d48'0.0''N lon_0=2d20'14.025''E lat_1=45d53'56.108''N > lat_2=47d41'45.652''N x_0=600000.0 y_0=2200000.0 towgs84=-168,-60,+320 > units=m no_defs"); > $oLine = $oLine->project($oldproj,$newproj); > $oShp->add( $oLine ); > ... > > if I omit in the $newproj variable, I get another error message : > Fatal error: MapServer Error in msProcessProjection(): unknown projection > id in > > Stephane MOREL > GIS manager > www.vanoise.com > > Hi > > This script creates shape file and reproject in to polyconic. U want to > chane in French projection, change the values in $proj2 variable. > > Let me know if u have any quetions. > > Good luck, > > Anwar > www.atsincorp.com > > > > > -----Original Message----- > From: MOREL Stephane [mailto:stephane.morel at vanoise.com] > Sent: Wednesday, October 02, 2002 12:52 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] How to project a shapefile ? > > > Hi list > I'm a newbie on Mapserver > I use Mapserver 3.6.1 / Suse 7.2 > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > I wrote a small php script to create a shapefile filled with datas > retrieved from a relational database. > Differents users can query the database and i would like to allow them to > cartography their results through Mapserver. > The datas in the database is in latlong projection and all the rest of my > geographic database are in Lambert II etendu which is a french projection. > I found in the archive a post from Claude Philipona about this french > projection parameters. > I've updated my epsg file with those parameters. > The script works perfectly but I still have shapefiles in latlon projection > how can I transform the created shapefile in the french projection ? > In fact I don't know how to use projectionobj with Mapscript > > Any help will be appreciated > > TIA > > Stephane MOREL > GIS manager > www.vanoise.com From jhart at frw.uva.nl Mon Oct 7 05:29:34 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 07 Oct 2002 14:29:34 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> Message-ID: <3DA17E2E.4080809@frw.uva.nl> Hello Alex, Try the inner select from a terminal (select nut3. ...). This should give back records with three fields, so you can check whether your selection criteria are right. If I read the description of your data right I would say that the where-statement would have to be: where nut3.nurgcd = un3rt.nurgcd However, if your original line is right and you get back records for all classes with the interactive select, something is wrong with the MapServer interface. Try quoting the SQL case statements: case when ... then "1" Perhaps this solves it, although I thought you could pass number values unquoted. Jan Alexander Pucher wrote: > Hi Jan, > > I've changed the mappostgis.c file and compiled mapserver once again, so > this works without any problems now. > > Maybe I should say some works to my DB set up: > > I have two tables in my DB: > > 'nut3' is a geometry table holding the polygon geometry of europ's NUTS > 3 areas. Each polygon has a unique identifier called 'nurgcd' > 'un3rt' is a normal table holding the unemployment rates of the NUTS > areas, connected to 'nut3' via the 'nurgcd' key. > > The query you sent me worked more or less right away. > > my DATA entry in the mapfile now looks like this: > > DATA "the_geom from > (select nut3.the_geom,un3rt.oid, > case when un3rt.unit > 16 then 1 > when un3rt.unit between 10 and 16 then 2 > when un3rt.unit between 5 and 10 then 3 > when un3rt.unit between 0 and 5 then 4 > else 5 > end as myclass > from nut3,un3rt > where nut3.nurgcd=un3rt.geo > ) as foo" > > You can see that I had to include the oid into the query, otherwise it > didn't work. > > The query works from a terminal and returns the geometry coloumn from my > table nut3. Is it correct that it _only_ returns this coloumn. I thougt > that the cases (as myclass) should also be in the result set, so that > the mapfile can refer to it via the CLASSITEM tag? > > My classes are like: > > CLASSITEM "myclass" > > CLASS > EXPRESSION "1" > COLOR 255 0 0 > END > CLASS > EXPRESSION "2" > COLOR 250 100 100 > END > CLASS > EXPRESSION "3" > COLOR 250 200 200 > END > ... > > Still, the map I create with this mapfile is empty, i.e no polygons are > coloured according to the resp. classes. It seems to me that the > expressions in the various classes don't find matching patterns in the > result set. > > I think it's only a small thing to change to make it work, but I can't > find it. > > mfg > alex > From pucher at atlas.gis.univie.ac.at Mon Oct 7 05:47:30 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 07 Oct 2002 14:47:30 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> <3DA17878.1020507@frw.uva.nl> Message-ID: <3DA18262.90401@atlas.gis.univie.ac.at> Hi Jan, everytime I read one of your mails I think yes, yes, this must be it...but still no success ;-( Jan Hartmann wrote: > Hello Alex, > > Try the inner select from a terminal (select nut3. ...). This should > give back records with three fields, so you can check whether your > selection criteria are right. If I read the description of your data > right I would say that the where-statement would have to be: > > where nut3.nurgcd = un3rt.nurgcd Sorry my fault: the correct version _is_ where nut3.nurgcd = un3rt.geo so the line in the DATA statement is correct. The inner selecion works fine with three fields, the_geom, oid and myclass. Also the complete query works fine from a terminal, as I told already. > However, if your original line is right and you get back records for > all classes with the interactive select, something is wrong with the > MapServer interface. Try quoting the SQL case statements: > > case when ... then "1" Tried it out with no success. It' funny that when I remove all but the first class and comment out the EXPRESSION line like this, CLASS # EXPRESSION "1" COLOR 255 0 0 END it should draw all polygons in red, but still it doesn't. It seems to ignore the whole layer!! Is there something wrong with my EXPRESSIONs? I even tried it with 'one' instead of '1' and changed the regex to /one/ . Also tried '1' and ([myclass] = 1) Is there something stupid missing in my LAYERs section of the mapfile? Regards, alex ############################ # Start of layer definitions ############################ LAYER NAME "nut3" STATUS ON TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=xxxx password=xxxx dbname=xxxx host=localhost" DATA "the_geom from (select nut3.the_geom,nut3.oid,case when un3rt.unit > 16 then '1' when un3rt.unit between 10 and 16 then '2' when un3rt.unit between 5 and 10 then '3' when un3rt.unit between 0 and 5 then '4' else '5' end as myclass from nut3,un3rt where nut3.nurgcd=un3rt.geo) as foo" METADATA "DESCRIPTION" "NUTS3 Area polygons" END #METADATA CLASSITEM "myclass" CLASS EXPRESSION "1" COLOR 255 0 0 END CLASS EXPRESSION "2" COLOR 250 100 100 END CLASS EXPRESSION "3" COLOR 250 200 200 END CLASS EXPRESSION "4" COLOR 250 220 220 END CLASS EXPRESSION "5" COLOR 210 210 210 END END #LAYER LAYER NAME "nut3lin" STATUS ON DATA "the_geom from nut3_arc" #DESCRIPTION "nut3lin" TYPE LINE CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=mapserver dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 boundaries lines" END #MEATDATA CLASS #NAME "Nuts3 Gebiete" COLOR 0 0 0 END #CLASS END #LAYER END #MAP > > > Perhaps this solves it, although I thought you could pass number > values unquoted. > > Jan -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From soreotsoga at libero.it Mon Oct 7 05:50:17 2002 From: soreotsoga at libero.it (soreotsoga at libero.it) Date: Mon, 7 Oct 2002 14:50:17 +0200 Subject: [mapserver-users] =?iso-8859-1?Q?filter_in_Itemnquery?= Message-ID: hi everyone! i want to extract a record froma a database, knowing the Id. I'm using mapserver 3.6- how can i do it? i tried to use itemnquery, or itemquery but i wrong something... i do not know how mapserver works... i have to define a filter... but how have it to be? "Id"?"Id=.....???I can't write "ID=one specific value, 'cause it will be different next time thanks eros agosto politecnico di torino From jhart at frw.uva.nl Mon Oct 7 08:51:12 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 07 Oct 2002 17:51:12 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> <3DA17878.1020507@frw.uva.nl> <3DA18262.90401@atlas.gis.univie.ac.at> Message-ID: <3DA1AD70.8040604@frw.uva.nl> Your mapfile looks good and I double-checked my own mapfiles, so this is the right way. However, are you using MapServer CGI? In that case you have to set "STATUS DEFAULT" in the layer section; "STATUS ON" leaves the layer invisible. This really should be put somewhere in the docs with extra big capitals. -:) Jan Alexander Pucher wrote: > Hi Jan, > > everytime I read one of your mails I think yes, yes, this must be > it...but still no success ;-( > > Jan Hartmann wrote: > >> Hello Alex, >> >> Try the inner select from a terminal (select nut3. ...). This should >> give back records with three fields, so you can check whether your >> selection criteria are right. If I read the description of your data >> right I would say that the where-statement would have to be: >> >> where nut3.nurgcd = un3rt.nurgcd > > > Sorry my fault: the correct version _is_ where nut3.nurgcd = un3rt.geo > so the line in the DATA statement is correct. > The inner selecion works fine with three fields, the_geom, oid and > myclass. Also the complete query works fine from a terminal, as I told > already. > >> However, if your original line is right and you get back records for >> all classes with the interactive select, something is wrong with the >> MapServer interface. Try quoting the SQL case statements: >> >> case when ... then "1" > > > Tried it out with no success. It' funny that when I remove all but the > first class and comment out the EXPRESSION line like this, > > CLASS > # EXPRESSION "1" > COLOR 255 0 0 > END > > it should draw all polygons in red, but still it doesn't. It seems to > ignore the whole layer!! > > Is there something wrong with my EXPRESSIONs? I even tried it with 'one' > instead of '1' and changed the regex to /one/ . Also tried '1' and > ([myclass] = 1) > > Is there something stupid missing in my LAYERs section of the mapfile? > > Regards, > alex > > ############################ > # Start of layer definitions > ############################ > > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "user=xxxx password=xxxx dbname=xxxx host=localhost" > DATA "the_geom from (select nut3.the_geom,nut3.oid,case when > un3rt.unit > 16 then '1' when un3rt.unit between 10 and 16 then '2' when > un3rt.unit between 5 and 10 then '3' when un3rt.unit between 0 and 5 > then '4' else '5' end as myclass from nut3,un3rt where > nut3.nurgcd=un3rt.geo) as foo" > > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END #METADATA > CLASSITEM "myclass" > > CLASS > EXPRESSION "1" > COLOR 255 0 0 > END > CLASS > EXPRESSION "2" > COLOR 250 100 100 > END > CLASS > EXPRESSION "3" > COLOR 250 200 200 > END > CLASS > EXPRESSION "4" > COLOR 250 220 220 > END > CLASS > EXPRESSION "5" > COLOR 210 210 210 > END > END #LAYER > > > LAYER > NAME "nut3lin" > STATUS ON > DATA "the_geom from nut3_arc" > #DESCRIPTION "nut3lin" > TYPE LINE > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=mapserver dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 boundaries lines" > END #MEATDATA > CLASS > #NAME "Nuts3 Gebiete" > COLOR 0 0 0 > END #CLASS > END #LAYER > > END #MAP > >> >> >> Perhaps this solves it, although I thought you could pass number >> values unquoted. >> >> Jan > > > > From ARyan at co.linn.or.us Mon Oct 7 10:30:30 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Mon, 7 Oct 2002 10:30:30 -0700 Subject: [mapserver-users] filter in Itemnquery Message-ID: <614FCE5F14A6D41180C200010240D6A2143059@LINNMS> Hi. There are a number of ways to do this. I like to do something like this: //variables: theField = "NAME"; theValue = "JONES; //a piece of the string I pass to Mapserver SendString += "&mode=itemnquery&qlayer=SL&map_SL_filter=('[" + theField + "]' =~ /" + theValue + "/)&item=" + theField + "&value=//"; But there are other (probably better) ways to do this. Cheers, Adam Ryan -----Original Message----- From: soreotsoga at libero.it To: mapserver-users at lists.gis.umn.edu Sent: 10/7/02 5:50 AM Subject: [mapserver-users] filter in Itemnquery hi everyone! i want to extract a record froma a database, knowing the Id. I'm using mapserver 3.6- how can i do it? i tried to use itemnquery, or itemquery but i wrong something... i do not know how mapserver works... i have to define a filter... but how have it to be? "Id"?"Id=.....???I can't write "ID=one specific value, 'cause it will be different next time thanks eros agosto politecnico di torino From steve.lime at dnr.state.mn.us Mon Oct 7 11:23:07 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 13:23:07 -0500 Subject: [mapserver-users] Fwd: [Q] Perl Mapscript. Message-ID: An embedded message was scrubbed... From: Kyoung Jae Lim Subject: [Q] Perl Mapscript. Date: Thu, 3 Oct 2002 21:04:41 -0500 (EST) Size: 2813 URL: From Peter.Bruton at ccrs.nrcan.gc.ca Mon Oct 7 11:26:54 2002 From: Peter.Bruton at ccrs.nrcan.gc.ca (Peter.Bruton at ccrs.nrcan.gc.ca) Date: Mon, 7 Oct 2002 14:26:54 -0400 Subject: [mapserver-users] TRANSPARENCY Message-ID: <7CDD7B94357FD5119E800002A537C46EB0FDFD@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello; I am attempting to use the layer object's transparency property and have a few questions about its behavior. 1) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. The colour of the class in the map is affected by the transparency setting. However, the colour of that class in the legend is not affected (i.e.; it is still sold red - 255 0 0). Is this the proper behavior or have I missed something? I am using the HTML legend in my application. 2) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. I have added a label object to the class object. Since transparency is set at the layer level, I expected annotation to be affected. However, this is not the case. The annotation is still solid red (255 0 0). Is this the proper behavior or have I missed something? Thank-you in advance for any suggestions. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From steve.lime at dnr.state.mn.us Mon Oct 7 12:59:05 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 14:59:05 -0500 Subject: [mapserver-users] Antialiased Lines in mapserver? Message-ID: I'm sorta hoping that GD 2.0 will offer anti-aliasing. It's not that hard and there are numerous algorithms out there. Way back I actually looked into using ImageMagick instead of GD. However, the author of IM warned that in tests GD was approximately 6 times faster than IM. That's a hefty price to pay for smooth lines. In my opinion, it might be easier to update GD to do antialiasing than to use IM. The new arch is not well documented yet since a production version has not even been released yet. Basically it would consist of functions to draw shapeObj's a points, lines and polygons given MapServers symbolization scheme. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> David Monterroso Cabello 10/03/02 09:52AM >>> Daniel Morissette wrote: >David Monterroso Cabello wrote: > > >> And finally, a question for developers, would it be possible to >>switch to ImageMagick for vector rendering?, that library render fine >>antialiased lines =), althought i dunno if it support everything >>mapserver needs. >> >> >> > >I had a quick look at the ImageMagick website and saw that they support >a good set of vector rendering functions, so adding ImageMagick as a new >(optional) output system would be possible in the new architecture >developed in version 3.7. As usual, we just need someone with time to >do this, or money to fund this work. > > Yes, i thought the same when i saw IM web, i dunno if it is very difficult but if finally there is no other way to do antialiasing and you think is posible i would like to try to implement it. Do you know about any doc or something i can read to understand the new output architecture?. Many thx From nedjo at miningwatch.org Mon Oct 7 14:21:27 2002 From: nedjo at miningwatch.org (Nedjo Rogers) Date: Mon, 07 Oct 2002 14:21:27 -0700 Subject: [mapserver-users] generating single legend symbol Message-ID: I'm working on a modified version of the Landview DHTML viewer and want to get Mapserver to generate a single symbol (for one class of a layer). This can be done through a legend template, e.g., _____________ [leg_class_html visibility_flag=15] [/leg_class_html] _____________ which will produce a legend icon for each available class. But can it be done throuh a direct call on mapserv (or a utility program)? If so, what are the parameters? Thanks for any help, Nedjo Rogers _ _ _ _ _ _ _ _ _ _ _ Nedjo Rogers Communications Coordinator Environmental Mining Council of BC #201--607 Yates St. Victoria, BC Canada V8W 2A7 Phone: (250) 384-2686 Fax: (250) 384-2620 EMail: nedjo at miningwatch.org Website: http://emcbc.miningwatch.org From DMartin at erac.com Mon Oct 7 14:55:44 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 7 Oct 2002 16:55:44 -0500 Subject: [mapserver-users] TRANSPARENCY Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B3A@STL-EXBE-I03.corp.erac.com> I don't know what the proper behavior is supposed to be. But, I can simply confirm that you aren't missing anything. From my trials, this is the way MapServer works today. Transparency on a layer does not affect the label. I think it would be possible to have transparent text using a truetype symbol (not a label), but I honestly haven't tried it. At any rate, it isn't much help to you since a truetype symbol is not dynamic. To be honest, I feel in an ideal world that transparency would not be on the LAYER object. It would be both on the CLASS object and on the LABEL object. I may want one class within a LAYER to be transparent and not the others. For the same reason, I wouldn't like if a LAYER transparency forced the label to be transparent without option. Since I'm not as knowledgable as the MS developers, I can only assume there is a technical reason it is on the LAYER object. Even with the limitations, I must say that in playing around with transparent layers I have produced some of the most stunning maps I've seen on a web application. So, don't think for 1 second I am complaining. :) -Dan P.S. Is it just me, or did you ask the same question twice? -----Original Message----- From: Peter.Bruton at ccrs.nrcan.gc.ca [mailto:Peter.Bruton at ccrs.nrcan.gc.ca] Sent: Monday, October 07, 2002 1:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] TRANSPARENCY Hello; I am attempting to use the layer object's transparency property and have a few questions about its behavior. 1) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. The colour of the class in the map is affected by the transparency setting. However, the colour of that class in the legend is not affected (i.e.; it is still sold red - 255 0 0). Is this the proper behavior or have I missed something? I am using the HTML legend in my application. 2) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. I have added a label object to the class object. Since transparency is set at the layer level, I expected annotation to be affected. However, this is not the case. The annotation is still solid red (255 0 0). Is this the proper behavior or have I missed something? Thank-you in advance for any suggestions. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From steve.lime at dnr.state.mn.us Mon Oct 7 15:59:41 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 17:59:41 -0500 Subject: [mapserver-users] TRANSPARENCY Message-ID: Transparency is the way it is because of limitations within GD. GD does not allow for lines/fills/points to be drawn transparently. Rather you must create a second image, draw in it and then merge the images. This can get kind of expensive so it's done for a whole layer. Labels will only be transparent IF the are not drawn using the label cache. Personally I see very little use for transparent labels (but I can be convinced). I agree that more fine grained control is desireable, but we'll need to wait for the GD library to catch up to our needs. That said, I agree with Martin, the results ain't bad. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Martin, Daniel" 10/07/02 04:55PM >>> I don't know what the proper behavior is supposed to be. But, I can simply confirm that you aren't missing anything. From my trials, this is the way MapServer works today. Transparency on a layer does not affect the label. I think it would be possible to have transparent text using a truetype symbol (not a label), but I honestly haven't tried it. At any rate, it isn't much help to you since a truetype symbol is not dynamic. To be honest, I feel in an ideal world that transparency would not be on the LAYER object. It would be both on the CLASS object and on the LABEL object. I may want one class within a LAYER to be transparent and not the others. For the same reason, I wouldn't like if a LAYER transparency forced the label to be transparent without option. Since I'm not as knowledgable as the MS developers, I can only assume there is a technical reason it is on the LAYER object. Even with the limitations, I must say that in playing around with transparent layers I have produced some of the most stunning maps I've seen on a web application. So, don't think for 1 second I am complaining. :) -Dan P.S. Is it just me, or did you ask the same question twice? -----Original Message----- From: Peter.Bruton at ccrs.nrcan.gc.ca [mailto:Peter.Bruton at ccrs.nrcan.gc.ca] Sent: Monday, October 07, 2002 1:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] TRANSPARENCY Hello; I am attempting to use the layer object's transparency property and have a few questions about its behavior. 1) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. The colour of the class in the map is affected by the transparency setting. However, the colour of that class in the legend is not affected (i.e.; it is still sold red - 255 0 0). Is this the proper behavior or have I missed something? I am using the HTML legend in my application. 2) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. I have added a label object to the class object. Since transparency is set at the layer level, I expected annotation to be affected. However, this is not the case. The annotation is still solid red (255 0 0). Is this the proper behavior or have I missed something? Thank-you in advance for any suggestions. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From Simon.Kirkness at fisheries.nsw.gov.au Mon Oct 7 16:00:55 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Tue, 08 Oct 2002 09:00:55 +1000 Subject: [mapserver-users] Unsubscribe Message-ID: unsubscribe <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From steve.lime at dnr.state.mn.us Mon Oct 7 16:03:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 18:03:46 -0500 Subject: [mapserver-users] DEBUG statement - lets actually do something about it! Message-ID: I'll add this to the 3.7 development tree (tonite I hope). We can talk about it's use in future emails... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> david blasby 10/01/02 12:11PM >>> We've had a few discussion about having a mapfile-wide "DEBUG on/off" and LAYER-level "DEBUG on/off". I dont think much has actually come of this (did I miss something?). I think it would be very useful for, at least, the PostGIS layer to have it report the SQL statement it's executing and what kind of indexes its using. I'm sure other portions of mapserver would appreciate it too. Proposal ------------- Change the parser so it handles layers like: LAYER DEBUG on/off ... END DEBUG will default to "off". Add, to layerObj, a boolean debug flag: char debug; //boolean: false = no debug info, true = write debugging info to stderr It would be wise to add (also to map.h) a constant so new code is compatible with older version of layer: #DEFINE LAYERHASDEBUGFLAG Then in layer functions, one can do something like: #ifdef LAYERHASDEBUGFLAG if (layer->debug) { printf(stderr,"POSTGIS layer opening\n"); // report DATA statement // report CONNECTION information // execute an EXPLAIN command to get the query plan & report // execute EXPLAIN VERBOSE, parse and report more information about the query // query DB and report all the indexes on the appropriate tables // query pg_stats and ensure the DB statistical analysis is up-to-date // .... } #endif Alternatively, we could have DEBUG be off/on/full (0/1/128) to provide a bit more control over how much debugging is done. -------- I understand that this isn't necessarily the best way, but we've had this discussion a few times and we have almost nothing. At least this way we'll have something. And it shouldn't take very long (I'd do it myself, but I dont want to mess around with the parser). What say? dave From steve.lime at dnr.state.mn.us Mon Oct 7 16:07:53 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 18:07:53 -0500 Subject: [mapserver-users] Query Template Message-ID: You can't have a URL template be a regular template. It's either one or the other. If a URL template then it must be a fully qualified URL (ie. starts with http://) and the MapServer will redirect to (and not parse) that page. Presumably since you have HTML files named based on some attribure key then there's no need to parse the file and the above advice will work for you. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 10/01/02 12:45PM >>> >A basic question I think. How can you set the Query template to be >dependent on the query itself? > >I'm picturing something like this: TEMPLATE "[ATTRIBUTE].html" That should work. Also TEMPLATE "query_handler.php?attribute=[ATTRIBUTE]" should work if you want to pass it to a server-side script. But you can not use that for queries that might return more than one record (itemnquery) because you can only redirect once. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Mon Oct 7 16:08:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 07 Oct 2002 18:08:29 -0500 Subject: [mapserver-users] who mapserver-users Message-ID: who mapserver-users From woodbri at swoodbridge.com Mon Oct 7 16:44:15 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 7 Oct 2002 19:44:15 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? In-Reply-To: Message-ID: <3DA1E40F.19337.1911D061@localhost> On 7 Oct 2002 at 14:59, Steve Lime wrote: > I'm sorta hoping that GD 2.0 will offer anti-aliasing. It's not that > hard and there are numerous algorithms out there. Way back I actually > looked into using ImageMagick instead of GD. However, the author of IM > warned that in tests GD was approximately 6 times faster than IM. > That's a hefty price to pay for smooth lines. I think that this should be evaluated again in light of the fact that GD 2.0 will be using deeper image depth that will impact performance. Which raises another question in my mind. Would it make sense to or is it planned that the output routines will be installable or selectable at runtime (maybe via the map file) so for applications that need the performance but can live with GD 1.x image quality can get it, while other apps can get the features they need? Shouldn't it be possible to have output drivers for GD 1.x, GD 2.x, ImageMagick, Postscript, Flash, etc. Assuming that someone implements each of them. -Steve W. > In my opinion, it might be easier to update GD to do antialiasing than > to use IM. The new arch is not well documented yet since a production > version has not even been released yet. Basically it would consist of > functions to draw shapeObj's a points, lines and polygons given > MapServers symbolization scheme. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> David Monterroso Cabello 10/03/02 09:52AM >>> > Daniel Morissette wrote: > > >David Monterroso Cabello wrote: > > > > > >> And finally, a question for developers, would it be possible to > >>switch to ImageMagick for vector rendering?, that library render > fine > >>antialiased lines =), althought i dunno if it support everything > >>mapserver needs. > >> > >> > >> > > > >I had a quick look at the ImageMagick website and saw that they > support > >a good set of vector rendering functions, so adding ImageMagick as a > new > >(optional) output system would be possible in the new architecture > >developed in version 3.7. As usual, we just need someone with time > to > >do this, or money to fund this work. > > > > > > Yes, i thought the same when i saw IM web, i dunno if it is very > difficult but if finally there is no other way to do antialiasing and > > you think is posible i would like to try to implement it. Do you know > > about any doc or something i can read to understand the new output > architecture?. > > Many thx > > > From warmerdam at pobox.com Mon Oct 7 19:14:58 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 07 Oct 2002 22:14:58 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <3DA1E40F.19337.1911D061@localhost> Message-ID: <3DA23FA2.9070702@pobox.com> woodbri at swoodbridge.com wrote: > Which raises another question in my mind. > > Would it make sense to or is it planned that the output routines will > be installable or selectable at runtime (maybe via the map file) so > for applications that need the performance but can live with GD 1.x > image quality can get it, while other apps can get the features they > need? Steve, GD 1.x vs. GD 2.x cannot be selected at runtime as things are currently setup because there is one "gd" interface with a few compile time differences between 1.x and 2.x. > Shouldn't it be possible to have output drivers for GD 1.x, GD 2.x, > ImageMagick, Postscript, Flash, etc. Assuming that someone implements > each of them. It *is* possible to have GD, Flash, GDAL and potentially other output mechanisms all compiled in and selected at runtime. The IMAGETYPE directive directive selects which is used in a particular run. 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 joe at otsys.com Mon Oct 7 19:58:36 2002 From: joe at otsys.com (Joe Bussell) Date: Mon, 7 Oct 2002 19:58:36 -0700 Subject: [mapserver-users] Antialiased Lines in mapserver? In-Reply-To: <3DA1E40F.19337.1911D061@localhost> References: <3DA1E40F.19337.1911D061@localhost> Message-ID: <20021008025836.GB21503@otsys.com> It may be the case that there are enough of us who need a slim, light-weight GD that is capable of scaling its footprint and selection of algorithm based on the users needs. This may require a seperate development branch specific to our common needs. Steve's suggestion regarding updating GD to perform antialiasing adds weight to this choice. What is the level of cooperation between the developers of GD and the open GIS community? Are the folks at Boutell.Com responsive to development feedback? Has anyone considered basing a new development effort to create a light-weight, thread-safe image redering library based on the GD core which is specifically targeted to web apps? In any case I am for sacrificing alternative rendering formats and wiz-bang glitz for raw speed. I need to generate relatively useful results for a large data set fast. Speed is everything. I would like my preprocess which creates a set of rasters of the static data to make use of the best rendering possible. In that case speed is not as critical. For live content the situation is vastly different. Cordially, Joe Bussell On Time Systems www.TrafficDodger.com On Mon, Oct 07, 2002 at 07:44:15PM -0400, woodbri at swoodbridge.com wrote: > On 7 Oct 2002 at 14:59, Steve Lime wrote: > > > I'm sorta hoping that GD 2.0 will offer anti-aliasing. It's not that > > hard and there are numerous algorithms out there. Way back I actually > > looked into using ImageMagick instead of GD. However, the author of IM > > warned that in tests GD was approximately 6 times faster than IM. > > That's a hefty price to pay for smooth lines. > > I think that this should be evaluated again in light of the fact that > GD 2.0 will be using deeper image depth that will impact performance. > > Which raises another question in my mind. > > Would it make sense to or is it planned that the output routines will > be installable or selectable at runtime (maybe via the map file) so > for applications that need the performance but can live with GD 1.x > image quality can get it, while other apps can get the features they > need? > > Shouldn't it be possible to have output drivers for GD 1.x, GD 2.x, > ImageMagick, Postscript, Flash, etc. Assuming that someone implements > each of them. > > -Steve W. > > > In my opinion, it might be easier to update GD to do antialiasing than > > to use IM. The new arch is not well documented yet since a production > > version has not even been released yet. Basically it would consist of > > functions to draw shapeObj's a points, lines and polygons given > > MapServers symbolization scheme. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> David Monterroso Cabello 10/03/02 09:52AM >>> > > Daniel Morissette wrote: > > > > >David Monterroso Cabello wrote: > > > > > > > > >> And finally, a question for developers, would it be possible to > > >>switch to ImageMagick for vector rendering?, that library render > > fine > > >>antialiased lines =), althought i dunno if it support everything > > >>mapserver needs. > > >> > > >> > > >> > > > > > >I had a quick look at the ImageMagick website and saw that they > > support > > >a good set of vector rendering functions, so adding ImageMagick as a > > new > > >(optional) output system would be possible in the new architecture > > >developed in version 3.7. As usual, we just need someone with time > > to > > >do this, or money to fund this work. > > > > > > > > > > Yes, i thought the same when i saw IM web, i dunno if it is very > > difficult but if finally there is no other way to do antialiasing and > > > > you think is posible i would like to try to implement it. Do you know > > > > about any doc or something i can read to understand the new output > > architecture?. > > > > Many thx > > > > > > > > > -- From woodbri at swoodbridge.com Mon Oct 7 20:14:34 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 7 Oct 2002 23:14:34 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? In-Reply-To: <20021008025836.GB21503@otsys.com> References: <3DA1E40F.19337.1911D061@localhost> Message-ID: <3DA2155A.12459.19D235FA@localhost> It would also be very easy to modify the GD 1.x function calls to make them unique. Then it would be easy to have both. It also might make some sense to load the IMAGETYPE as a .so then you don't have to worry about library name space collisions. -Steve On 7 Oct 2002 at 19:58, Joe Bussell wrote: > It may be the case that there are enough of us who need a slim, > light-weight GD that is capable of scaling its footprint and selection > of algorithm based on the users needs. This may require a seperate > development branch specific to our common needs. Steve's suggestion > regarding updating GD to perform antialiasing adds weight to this > choice. > > What is the level of cooperation between the developers of GD and the > open GIS community? Are the folks at Boutell.Com responsive to > development feedback? Has anyone considered basing a new development > effort to create a light-weight, thread-safe image redering library > based on the GD core which is specifically targeted to web apps? > > In any case I am for sacrificing alternative rendering formats and > wiz-bang glitz for raw speed. I need to generate relatively useful > results for a large data set fast. Speed is everything. I would like > my preprocess which creates a set of rasters of the static data to > make use of the best rendering possible. In that case speed is not as > critical. For live content the situation is vastly different. > > Cordially, > > Joe Bussell > On Time Systems > www.TrafficDodger.com > > > On Mon, Oct 07, 2002 at 07:44:15PM -0400, woodbri at swoodbridge.com > wrote: > On 7 Oct 2002 at 14:59, Steve Lime wrote: > > > I'm sorta > hoping that GD 2.0 will offer anti-aliasing. It's not that > > hard > and there are numerous algorithms out there. Way back I actually > > > looked into using ImageMagick instead of GD. However, the author of IM > > > warned that in tests GD was approximately 6 times faster than IM. > > > That's a hefty price to pay for smooth lines. > > I think that > this should be evaluated again in light of the fact that > GD 2.0 will > be using deeper image depth that will impact performance. > > Which > raises another question in my mind. > > Would it make sense to or is > it planned that the output routines will > be installable or > selectable at runtime (maybe via the map file) so > for applications > that need the performance but can live with GD 1.x > image quality can > get it, while other apps can get the features they > need? > > > Shouldn't it be possible to have output drivers for GD 1.x, GD 2.x, > > ImageMagick, Postscript, Flash, etc. Assuming that someone implements > > each of them. > > -Steve W. > > > In my opinion, it might be easier > to update GD to do antialiasing than > > to use IM. The new arch is > not well documented yet since a production > > version has not even > been released yet. Basically it would consist of > > functions to draw > shapeObj's a points, lines and polygons given > > MapServers > symbolization scheme. > > > > Steve > > > > Stephen Lime > > Data & > Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> David Monterroso > Cabello 10/03/02 09:52AM >>> > > Daniel Morissette > wrote: > > > > >David Monterroso Cabello wrote: > > > > > > > > >> > And finally, a question for developers, would it be possible to > > > >>switch to ImageMagick for vector rendering?, that library render > > > fine > > >>antialiased lines =), althought i dunno if it support > everything > > >>mapserver needs. > > >> > > >> > > >> > > > > > >I > had a quick look at the ImageMagick website and saw that they > > > support > > >a good set of vector rendering functions, so adding > ImageMagick as a > > new > > >(optional) output system would be > possible in the new architecture > > >developed in version 3.7. As > usual, we just need someone with time > > to > > >do this, or money to > fund this work. > > > > > > > > > > Yes, i thought the same when > i saw IM web, i dunno if it is very > > difficult but if finally there > is no other way to do antialiasing and > > > > you think is posible i > would like to try to implement it. Do you know > > > > about any doc > or something i can read to understand the new output > > > architecture?. > > > > Many thx > > > > > > > > > > > -- > > From jithesh at flashmail.com Mon Oct 7 21:18:16 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Mon, 7 Oct 2002 21:18:16 -0700 Subject: [mapserver-users] thanks Message-ID: <3da25c88.2e.0@flashmail.com> Hi All, Thanks for all the answers to my question... Special thanks to Paul Spencer and Scott I want to add flash support to my mapserver. Where can I download the MS VC++ makefile for compiling ming under Win system. Can anybody send me the link? Regards Jithesh Joseph MapTell _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From silke at intevation.de Tue Oct 8 00:08:07 2002 From: silke at intevation.de (Silke Reimer) Date: Tue, 8 Oct 2002 09:08:07 +0200 Subject: [mapserver-users] Pixel size for distance tool in Rosa applet Message-ID: <20021008070807.GB11834@intevation.de> Hello, since the pixel size is a relevant information for the distance tool in the Rosa applet I adapted the MapServer code so that I could use the pixel size with a [cellsize] tag. Therefor I just had to add 2 lines in maptemplate.c and I thought that this could be useful to be integrated in the mapserver code (at least for 3.7). Greetings, Silke Here is the patch: --------------------- diff -ur mapserver-3.6.2.orig/maptemplate.c mapserver-3.6.2/maptemplate.c --- mapserver-3.6.2.orig/maptemplate.c Mon Aug 12 08:48:30 2002 +++ mapserver-3.6.2/maptemplate.c Mon Aug 12 08:53:50 2002 @@ -1963,6 +1963,8 @@ sprintf(repstr, "%f", msObj->Map->scale); outstr = gsub(outstr, "[scale]", repstr); + sprintf(repstr, "%f", msObj->Map->cellsize); + outstr = gsub(outstr, "[cellsize]", repstr); sprintf(repstr, "%.1f %.1f", (msObj->Map->width-1)/2.0, (msObj->Map->height-1)/2.0); outstr = gsub(outstr, "[center]", repstr); ------------------------------------ -- Silke Reimer Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Peter.Bruton at ccrs.nrcan.gc.ca Tue Oct 8 05:47:09 2002 From: Peter.Bruton at ccrs.nrcan.gc.ca (Peter.Bruton at ccrs.nrcan.gc.ca) Date: Tue, 8 Oct 2002 08:47:09 -0400 Subject: [mapserver-users] TRANSPARENCY Message-ID: <7CDD7B94357FD5119E800002A537C46EB0FDFF@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello again; Thank-you for your reply about the labelcache setting to create transparent annotation. Is there a way to have the transparency property affect the appearance of the class in legend symbol? That is, have the class colour of 255 0 0 affected by a transparency of 20 in the HTML legend. In my experiments the legend symbol is not affected by transparency. Thank-you in advance for any suggestions. Peter Bruton -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, October 07, 2002 7:00 PM To: Peter.Bruton at ccrs.nrcan.gc.ca; DMartin at erac.com; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] TRANSPARENCY Transparency is the way it is because of limitations within GD. GD does not allow for lines/fills/points to be drawn transparently. Rather you must create a second image, draw in it and then merge the images. This can get kind of expensive so it's done for a whole layer. Labels will only be transparent IF the are not drawn using the label cache. Personally I see very little use for transparent labels (but I can be convinced). I agree that more fine grained control is desireable, but we'll need to wait for the GD library to catch up to our needs. That said, I agree with Martin, the results ain't bad. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Martin, Daniel" 10/07/02 04:55PM >>> I don't know what the proper behavior is supposed to be. But, I can simply confirm that you aren't missing anything. From my trials, this is the way MapServer works today. Transparency on a layer does not affect the label. I think it would be possible to have transparent text using a truetype symbol (not a label), but I honestly haven't tried it. At any rate, it isn't much help to you since a truetype symbol is not dynamic. To be honest, I feel in an ideal world that transparency would not be on the LAYER object. It would be both on the CLASS object and on the LABEL object. I may want one class within a LAYER to be transparent and not the others. For the same reason, I wouldn't like if a LAYER transparency forced the label to be transparent without option. Since I'm not as knowledgable as the MS developers, I can only assume there is a technical reason it is on the LAYER object. Even with the limitations, I must say that in playing around with transparent layers I have produced some of the most stunning maps I've seen on a web application. So, don't think for 1 second I am complaining. :) -Dan P.S. Is it just me, or did you ask the same question twice? -----Original Message----- From: Peter.Bruton at ccrs.nrcan.gc.ca [mailto:Peter.Bruton at ccrs.nrcan.gc.ca] Sent: Monday, October 07, 2002 1:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] TRANSPARENCY Hello; I am attempting to use the layer object's transparency property and have a few questions about its behavior. 1) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. The colour of the class in the map is affected by the transparency setting. However, the colour of that class in the legend is not affected (i.e.; it is still sold red - 255 0 0). Is this the proper behavior or have I missed something? I am using the HTML legend in my application. 2) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. I have added a label object to the class object. Since transparency is set at the layer level, I expected annotation to be affected. However, this is not the case. The annotation is still solid red (255 0 0). Is this the proper behavior or have I missed something? Thank-you in advance for any suggestions. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From morissette at dmsolutions.ca Tue Oct 8 07:10:50 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 08 Oct 2002 10:10:50 -0400 Subject: [mapserver-users] Pixel size for distance tool in Rosa applet References: <20021008070807.GB11834@intevation.de> Message-ID: <3DA2E76A.FA80B2BB@dmsolutions.ca> Silke Reimer wrote: > > since the pixel size is a relevant information for the distance tool in the > Rosa applet I adapted the MapServer code so that I could use the pixel size > with a [cellsize] tag. Therefor I just had to add 2 lines in maptemplate.c > and I thought that this could be useful to be integrated in the mapserver > code (at least for 3.7). > I've applied this change to MapServer 3.7 JF Doyon: Can you please update your 3.7 mapfile reference with this new parameter? Thanks Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Oct 8 07:15:30 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 08 Oct 2002 10:15:30 -0400 Subject: [mapserver-users] TRANSPARENCY References: <7CDD7B94357FD5119E800002A537C46EB0FDFF@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3DA2E882.8317CC9F@dmsolutions.ca> Peter.Bruton at ccrs.nrcan.gc.ca wrote: > > Is there a way to have the transparency property affect the appearance of > the class in legend symbol? That is, have the class colour of 255 0 0 > affected by a transparency of 20 in the HTML legend. In my experiments the > legend symbol is not affected by transparency. > As it is now the legend symbol doesn't take transparency into account, so it produces a small image with an opaque color. But anyway since there is nothing behind the legend symbol, what should we see through it? For sure it's not possible to set variable transparency on a GIF image to see only 20% of the background... maybe that would be possible with PNG if by setting the alpha value, but I'm not even sure if any/all browsers would support this properly. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From david.armstrong at ntlworld.com Tue Oct 8 06:25:17 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 8 Oct 2002 14:25:17 +0100 Subject: [mapserver-users] install on redhat 8 ??? Message-ID: <000901c26ece$270802f0$727ba8c0@davidpc> has anyone on the list been unlucky ? having to install mapserver & mapscript on the new dist redhat 8 ? Dave From morissette at dmsolutions.ca Tue Oct 8 08:18:25 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 08 Oct 2002 11:18:25 -0400 Subject: [mapserver-users] install on redhat 8 ??? References: <000901c26ece$270802f0$727ba8c0@davidpc> Message-ID: <3DA2F741.CFA7DA23@dmsolutions.ca> David Armstrong wrote: > > has anyone on the list been unlucky ? > having to install mapserver & mapscript on the new dist redhat 8 ? > We haven't tried it yet, but I wouldn't expect too many problems except issues related to GCC 3.x if you try to include OGR support in your build. If you do try it then please let us know how it went. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Oct 8 09:19:12 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Oct 2002 11:19:12 -0500 Subject: [mapserver-users] TRANSPARENCY Message-ID: It's not done at the moment. Please file this as a bug and we'll see if that can be fixed for the 3.7 release... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 10/08/02 07:47AM >>> Hello again; Thank-you for your reply about the labelcache setting to create transparent annotation. Is there a way to have the transparency property affect the appearance of the class in legend symbol? That is, have the class colour of 255 0 0 affected by a transparency of 20 in the HTML legend. In my experiments the legend symbol is not affected by transparency. Thank-you in advance for any suggestions. Peter Bruton -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, October 07, 2002 7:00 PM To: Peter.Bruton at ccrs.nrcan.gc.ca; DMartin at erac.com; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] TRANSPARENCY Transparency is the way it is because of limitations within GD. GD does not allow for lines/fills/points to be drawn transparently. Rather you must create a second image, draw in it and then merge the images. This can get kind of expensive so it's done for a whole layer. Labels will only be transparent IF the are not drawn using the label cache. Personally I see very little use for transparent labels (but I can be convinced). I agree that more fine grained control is desireable, but we'll need to wait for the GD library to catch up to our needs. That said, I agree with Martin, the results ain't bad. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Martin, Daniel" 10/07/02 04:55PM >>> I don't know what the proper behavior is supposed to be. But, I can simply confirm that you aren't missing anything. From my trials, this is the way MapServer works today. Transparency on a layer does not affect the label. I think it would be possible to have transparent text using a truetype symbol (not a label), but I honestly haven't tried it. At any rate, it isn't much help to you since a truetype symbol is not dynamic. To be honest, I feel in an ideal world that transparency would not be on the LAYER object. It would be both on the CLASS object and on the LABEL object. I may want one class within a LAYER to be transparent and not the others. For the same reason, I wouldn't like if a LAYER transparency forced the label to be transparent without option. Since I'm not as knowledgable as the MS developers, I can only assume there is a technical reason it is on the LAYER object. Even with the limitations, I must say that in playing around with transparent layers I have produced some of the most stunning maps I've seen on a web application. So, don't think for 1 second I am complaining. :) -Dan P.S. Is it just me, or did you ask the same question twice? -----Original Message----- From: Peter.Bruton at ccrs.nrcan.gc.ca [mailto:Peter.Bruton at ccrs.nrcan.gc.ca] Sent: Monday, October 07, 2002 1:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] TRANSPARENCY Hello; I am attempting to use the layer object's transparency property and have a few questions about its behavior. 1) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. The colour of the class in the map is affected by the transparency setting. However, the colour of that class in the legend is not affected (i.e.; it is still sold red - 255 0 0). Is this the proper behavior or have I missed something? I am using the HTML legend in my application. 2) I have a layer with 1 class. The colour assigned to the class is 255 0 0. Transparency is set to 20. I have added a label object to the class object. Since transparency is set at the layer level, I expected annotation to be affected. However, this is not the case. The annotation is still solid red (255 0 0). Is this the proper behavior or have I missed something? Thank-you in advance for any suggestions. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From steve.lime at dnr.state.mn.us Tue Oct 8 09:24:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Oct 2002 11:24:46 -0500 Subject: [mapserver-users] Antialiased Lines in mapserver? Message-ID: A seperate IM interface could be added (maybe) but we'd have to think about that. At the moment each output type (i.e. GIF/JPEG/TIFF/SWF) is tied to a specific driver and both ImageMagick and GD can output the same stuff. Steve >>> Frank Warmerdam 10/07/02 09:14PM >>> woodbri at swoodbridge.com wrote: > Which raises another question in my mind. > > Would it make sense to or is it planned that the output routines will > be installable or selectable at runtime (maybe via the map file) so > for applications that need the performance but can live with GD 1.x > image quality can get it, while other apps can get the features they > need? Steve, GD 1.x vs. GD 2.x cannot be selected at runtime as things are currently setup because there is one "gd" interface with a few compile time differences between 1.x and 2.x. > Shouldn't it be possible to have output drivers for GD 1.x, GD 2.x, > ImageMagick, Postscript, Flash, etc. Assuming that someone implements > each of them. It *is* possible to have GD, Flash, GDAL and potentially other output mechanisms all compiled in and selected at runtime. The IMAGETYPE directive directive selects which is used in a particular run. 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 andrewrcollins at yahoo.com Tue Oct 8 09:53:35 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Tue, 8 Oct 2002 09:53:35 -0700 (PDT) Subject: [mapserver-users] Java MapScript Win32 DLL In-Reply-To: <00c601c26d38$1ffb1520$0100a8c0@sfdev3> Message-ID: <20021008165335.47257.qmail@web14006.mail.yahoo.com> Norman Thanks for the FYI on gcc's ability to make dll's directly. However I continue to be stuck with problems. > ==== > at the top of the SWIG generated mapscript_wrap.c file > you probably need to adjust the #define for DLL linkage to > something like > > #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) > # if defined(_MSC_VER) || defined(__CYGWIN__) || defined( __MINGW32__) > # if defined(STATIC_LINKED) > # define SWIGEXPORT(a) a I didn't see any of this in any file I've been dealing with so far. What are these changes supposed to do? > Here are the command lines that build python mapscript for me with Cygwin > the same techniques should work for MingW and java mapscript DLL > < you will need to change these to reflect you are building the Java > library and your local configuration etc. > > > gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -DPROJ=-DUSE_PROJ -DUSE > _PROJ_API_H -DGD=-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DJPEG > =-DUSE_JPEG -DIGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA -DOWS=-DUSE_WMS_SVR > -DUSE_WMS_LYR -DUSE_WFS_SVR -DEPPL=-DUSE_EPPL -DTIFF=-DUSE_TIFF -DGDAL=-DUSE > _GDAL -DOGR=-DUSE_OGR -DPOSTGIS=-DUSE_POSTGIS -I../.. -I/usr/local/include - > I/usr/local/include/python2.1 -c mapscript_wrap.c -o mapscript_wrap.o The above step is straight forward--I have not had any problems here. (That I know of.) > gcc -shared -Wl,--enable-auto-image-base mapscript_wrap.o ../../libmap.a > /usr/local/lib/ogr.a -L../.. -L/lib -L/usr/local/lib -L/usr/local/lib/python > 2.1/config -lmap -lgd -lfreetype -lproj -lgdal.1.1 -lpq -lwwwinit -lwwwapp - > lwwwxml -lxmlparse -lxmltok -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwm > ime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux > -lwwwtrans -lwwwcore -lwwwutils -lmd5 -lm -lpython2.1 -o _mapscript.dll This step always spits out linker-related warnings and errors: Info: resolving _gdFontTiny by linking to __imp__gdFontTiny (auto-import) Info: resolving _gdFontSmall by linking to __imp__gdFontSmall (auto-import) Info: resolving _gdFontMediumBold by linking to __imp__gdFontMediumBold (auto-import) Info: resolving _gdFontLarge by linking to __imp__gdFontLarge (auto-import) Info: resolving _gdFontGiant by linking to __imp__gdFontGiant (auto-import) ../../libmap.a(mapogr.o)(.eh_frame+0x11):mapogr.cpp: undefined reference to `__gxx_personality_v0' fu000001.o(.idata$3+0xc): undefined reference to `libgd_dll_a_iname' fu000003.o(.idata$3+0xc): undefined reference to `libgd_dll_a_iname' fu000005.o(.idata$3+0xc): undefined reference to `libgd_dll_a_iname' fu000007.o(.idata$3+0xc): undefined reference to `libgd_dll_a_iname' fu000009.o(.idata$3+0xc): undefined reference to `libgd_dll_a_iname' nmth000000.o(.idata$4+0x0): undefined reference to `_nm__gdFontTiny' nmth000002.o(.idata$4+0x0): undefined reference to `_nm__gdFontSmall' nmth000004.o(.idata$4+0x0): undefined reference to `_nm__gdFontMediumBold' nmth000006.o(.idata$4+0x0): undefined reference to `_nm__gdFontLarge' nmth000008.o(.idata$4+0x0): undefined reference to `_nm__gdFontGiant' make: *** [mapscript_so] Error 1 The above problems with "mapogr.cpp" and "libgd_dll_a_inam" are the reason I did the following which you state I should not do... > !!! DO NOT DO THE FOLLOWING !!! > > > $ cd mapserver-3.6.1 > > $ mv lib/libgd.dll.a lib/libgd_dll.a > > $ mv mapogr.cpp mapogr.c I understand the entirety of this process in-theory, but in-practice this whole experience has been nothing short of damn frustrating. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From warmerdam at pobox.com Tue Oct 8 10:16:06 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 08 Oct 2002 13:16:06 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? References: Message-ID: <3DA312D6.5020500@pobox.com> Steve Lime wrote: > A seperate IM interface could be added (maybe) but we'd have to think > about that. At the moment each output type (i.e. GIF/JPEG/TIFF/SWF) is > tied to a specific driver and both ImageMagick and GD can output the > same stuff. Steve, Note that in MapServer 3.7 it is possible to have different drivers producing the same output format. The argument to the IMAGETYPE keyword in the map file is not the symbolic name from the OUTPUTFORMAT declaration. So right now in 3.7 you could have the following: OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" IMAGEMODE RGBA TRANSPARENT ON END OUTPUTFORMAT NAME png8 DRIVER "GD/PNG" IMAGEMODE PC256 TRANSPARENT ON END OUTPUTFORMAT NAME png_gdal_8 DRIVER "GDAL/PNG" IMAGEMODE PC256 END And then select amoung them with the IMAGETYPE of either "png24", "png8" or "png_gdal_8". If ImageMagick was another output driver the same mechanism could be used to select the driver to use to produce a given file. 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 tesimap at hotmail.com Tue Oct 8 12:21:34 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 08 Oct 2002 21:21:34 +0200 Subject: [mapserver-users] Compiling PHP/Mapscript Message-ID: Hi all, I'm compiling Mapserver 3.5 on Win XP with PHP-4.0.6 but I have these error messages: Creating library mapserv.lib and object mapserv.exp mapserv.obj : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regcomp mapserv.obj : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regexec mapserv.obj : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _regexec mapserv.exe : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. This is the PHP section in my makefile: #REGEX_OBJ=../regex/regex.obj #REGEX_INC=-I../regex PHP_REGEX=..\php-4.0.6\regex REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC I have compiled correctly (with MSVC project workspace file) regex in PHP. Any idea? Regards Ivan _________________________________________________________________ MSN Foto ? il sistema pi? facile per condividere e stampare foto online: http://photos.msn.it From steve.lime at dnr.state.mn.us Tue Oct 8 13:00:14 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Oct 2002 15:00:14 -0500 Subject: [mapserver-users] Announcing 3.6.3 Message-ID: Greetings folks: The MapServer development team is pleased to announce the release of version 3.6.3. It contains a a number of bug fixes and if possible users are encouraged to upgrade now. The new version is available at the usual place on the MapServer website. Pre-compiled binary versions are available for download at: http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.2-libwww.zip http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww.zip Enjoy- Steve A summary of changes from HISTORY.TXT: Version 3.6.3 (2002-10-07) -------------------------- - Fixed problem with numeric labels with OGR's STYLEITEM AUTO (bug 185) - PHP MapScript: fixed set() method on all object types for parameters of type float and string. The param value was not forced to the right type and this could lead to unexpected values being set or crashes. - Fixed bug 174 - improperly terminated string buffer in msWMSException() - Fixed problem with 'gcc undef' appearing in the mapscript/php3/Makefile on FreeBSD. Also added --enable-internal-ld-detect configure switch to force use of an internal configure macro to detect ld command and args in case the default doesn't work (this is for mapscript/php3/Makefile only) - Fixed potential crash with WMS GML query output (missing msInitSHape() in msGMLWriteQuery()) - Fixed Windows-specific problem where WMS capabilities were always returned as 1.0.0 even if 1.1.0 was requested Version 3.6.2 (2002-07-08) -------------------------- - Added msTokenizeMap() in MapScript (and via 'mapserv -t test.map') - Added map->setFontSet() - Fixed Windows-specific problem with PHP MapScript ms_newMapObj("") called with empty filename. - Fixed problem with double 'gcc' appearing in mapscript/php3/Makefile on some systems. From zak-ms at aiya.dhs.org Tue Oct 8 13:31:55 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Tue, 8 Oct 2002 16:31:55 -0400 Subject: [mapserver-users] Antialiased Lines in mapserver? In-Reply-To: <3D9C285E.6010107@ixine.com> Message-ID: On Thursday, Oct 3, 2002, at 07:22 America/Montreal, David Monterroso Cabello wrote: > Hi there! > > I'm developing a *streetmap* application using mapserver, and > although i like the output i get, it still looks bad cause those > jagged lines. Is there any way to have antialiased lines in > mapserver?, i saw in some old posts that it was a GD matter, and that > even in 2.0 versions it still doesn't support antialias. Does somebody > know if there is another way to do antialiasing?. I tried to render a > double sized image and then reduced it with ImageMagick but the > results were awful. > And finally, a question for developers, would it be possible to > switch to ImageMagick for vector rendering?, that library render fine > antialiased lines =), althought i dunno if it support everything > mapserver needs. This might not be what you had in mind, but preliminary PDF support has recently been added to version 3.7. Since it writes vector data as vectors, anti-aliasing is left up to the viewer. Adobe Acrobat Reader has an option to do it, for instance. If you use something like ghostscript or Illustrator, you could save to a raster format with antialiasing. If you don't want to use a dev version, you can do the same thing with the mapserver 3.6 PDF support (try the shp2pdf utility). zj From steve.lime at dnr.state.mn.us Tue Oct 8 13:36:45 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 08 Oct 2002 15:36:45 -0500 Subject: [mapserver-users] DEBUG statement - lets actually do something about it! Message-ID: David: I added a debug parameter to layer, class and map objects. It's in 3.7 now. We should take this discussion to the developer list to decide how to implement it though. Using the msDebug function instead of fprintf is one idea Dan had. Steve >>> david blasby 10/01/02 12:11PM >>> We've had a few discussion about having a mapfile-wide "DEBUG on/off" and LAYER-level "DEBUG on/off". I dont think much has actually come of this (did I miss something?). I think it would be very useful for, at least, the PostGIS layer to have it report the SQL statement it's executing and what kind of indexes its using. I'm sure other portions of mapserver would appreciate it too. Proposal ------------- Change the parser so it handles layers like: LAYER DEBUG on/off ... END DEBUG will default to "off". Add, to layerObj, a boolean debug flag: char debug; //boolean: false = no debug info, true = write debugging info to stderr It would be wise to add (also to map.h) a constant so new code is compatible with older version of layer: #DEFINE LAYERHASDEBUGFLAG Then in layer functions, one can do something like: #ifdef LAYERHASDEBUGFLAG if (layer->debug) { printf(stderr,"POSTGIS layer opening\n"); // report DATA statement // report CONNECTION information // execute an EXPLAIN command to get the query plan & report // execute EXPLAIN VERBOSE, parse and report more information about the query // query DB and report all the indexes on the appropriate tables // query pg_stats and ensure the DB statistical analysis is up-to-date // .... } #endif Alternatively, we could have DEBUG be off/on/full (0/1/128) to provide a bit more control over how much debugging is done. -------- I understand that this isn't necessarily the best way, but we've had this discussion a few times and we have almost nothing. At least this way we'll have something. And it shouldn't take very long (I'd do it myself, but I dont want to mess around with the parser). What say? dave From armin.burger at libero.it Tue Oct 8 14:59:53 2002 From: armin.burger at libero.it (Armin Burger) Date: Tue, 8 Oct 2002 22:59:53 +0100 Subject: [mapserver-users] Real dynamic legends Message-ID: <200210082157.QAA10161@lists.gis.umn.edu> Hello everybody, I was thinking about the possibility to have 'real' dynamic legends. That is, legends that show only the items (of active layers) that are visible in the current map extent. For complex layers definitions with plenty of classes one loses a bit the overview if all classes are always drawn in the legend even if only 10 % or so of them are visible in the map. Real dynamic legends could make it much easier to identify the map contents via legend. One possibility I see for such legends could be using MapScript with 'queryByRect' on all active layers and the current map extent. The results are written in an array with unique result values for the classitem. Then one had to compare these results with the class definitions of the layer and draw the legend icons. One restriction of this approach I found is that it seems not to be possible to get class expressions via MapScript. A question to the PHP MapScript developers: Would it be possible to add this possibility to MapScript? Assumed one had this expression it can be a bit difficult to match results found via the query with class definitions. There are quite a lot of different class definitions possible. And at the end, the speed of such a query will decrease very much if a lot of features are visible in the map (it could be much faster, however, using PostGIS instead of shapefiles and a 'select distinct' query). Therefore a question to the MapServer developers: Is it conceivable to implement such a dynamic legend function directly in the main MapServer functionality? Reading shapefiles and map file with complex class definitions and rendering a map will take only very few seconds even for relatively large datasets. So I think producing lists of affected layer classes in a similar step or even simultaneous should be also quite fast. Maybe I'm wrong... Regarding MapScript functionality I'm thinking of a function like $map->drawDynLegend() that instead of an image returns a multiple array of active layers with a sub-array of affected classes (classes in the current extent) for each layer. One could then use these classes and draw the legend icons for them. Any ideas? Armin -- Armin Burger Via della fiera, 7 - I-39050 Cornaiano BZ - Italia _ From joe at otsys.com Tue Oct 8 15:59:19 2002 From: joe at otsys.com (Joe Bussell) Date: Tue, 8 Oct 2002 15:59:19 -0700 Subject: [mapserver-users] Announcing 3.6.3 In-Reply-To: References: Message-ID: <20021008225919.GG4938@otsys.com> What are the dependencies for PERL mapscript? Seems this all worked before... .../mapserver-3.6.3/mapscript/perl$ make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/mnt/data/td/mapserver-3.6.3 -I/usr/include -I/home/joe/gdal/port -I/home/joe/gdal/core -I/home/joe/gdal/ogr -I/home/joe/gdal/ogr/ogrsf_frmts -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.8.0/CORE" -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL mapscript_wrap.c mapscript_wrap.c: In function `_swig_create_magic': mapscript_wrap.c:416: warning: assignment from incompatible pointer type mapscript_wrap.c:417: warning: assignment from incompatible pointer type mapscript_wrap.c: At top level: mapscript_wrap.c:16349: conflicting types for `boot_mapscript' mapscript_wrap.c:431: previous declaration of `boot_mapscript' make: *** [mapscript_wrap.o] Error 1 On Tue, Oct 08, 2002 at 03:00:14PM -0500, Steve Lime wrote: > Greetings folks: The MapServer development team is pleased to announce > the release of version 3.6.3. It contains a a number of bug fixes and if > possible users are encouraged to upgrade now. The new version is > available at the usual place on the MapServer website. > > Pre-compiled binary versions are available for download at: > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.2-libwww.zip > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww.zip > > Enjoy- Steve > > A summary of changes from HISTORY.TXT: > > Version 3.6.3 (2002-10-07) > -------------------------- > > - Fixed problem with numeric labels with OGR's STYLEITEM AUTO (bug > 185) > > - PHP MapScript: fixed set() method on all object types for parameters > of type float and string. The param value was not forced to the > right > type and this could lead to unexpected values being set or crashes. > > - Fixed bug 174 - improperly terminated string buffer in > msWMSException() > > - Fixed problem with 'gcc undef' appearing in the > mapscript/php3/Makefile > on FreeBSD. Also added --enable-internal-ld-detect configure switch > to > force use of an internal configure macro to detect ld command and > args > in case the default doesn't work (this is for mapscript/php3/Makefile > only) > > - Fixed potential crash with WMS GML query output (missing > msInitSHape() in > msGMLWriteQuery()) > > - Fixed Windows-specific problem where WMS capabilities were always > returned > as 1.0.0 even if 1.1.0 was requested > > Version 3.6.2 (2002-07-08) > -------------------------- > > - Added msTokenizeMap() in MapScript (and via 'mapserv -t test.map') > > - Added map->setFontSet() > > - Fixed Windows-specific problem with PHP MapScript ms_newMapObj("") > called with empty filename. > > - Fixed problem with double 'gcc' appearing in mapscript/php3/Makefile > on > some systems. > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From matthew.g.krusemark at co.multnomah.or.us Tue Oct 8 17:00:56 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Tue, 8 Oct 2002 17:00:56 -0700 Subject: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) found. Message-ID: <9D07D10FA5CAD21192620008C7B14D29049A921A@ISDEXCH-1> Hello, I am having trouble with ItemQuery in 3.6. My error message is: msQueryByAttributes(): Search returned no results. No matching record(s) found. I have the qlayer set as such: ... But may be making mistakes on the syntax of the FILTER and FILTERITEM params, I checked the docs and tried a few things, however, nothing successful yet. Piece of mapfile: LAYER NAME county DATA county STATUS DEFAULT TYPE POLYGON FILTERITEM cty_name FILTER "%cty_name%" CLASS NAME county COLOR 212 212 212 OUTLINECOLOR 0 0 0 TEMPLATE case1_template.html END END Thanks in advance for any assistance on this, kind regards,-matthew From steveb at bundaberg.qld.gov.au Tue Oct 8 17:24:30 2002 From: steveb at bundaberg.qld.gov.au (Steven Bowden) Date: 09 Oct 2002 10:24:30 +1000 Subject: [mapserver-users] 3.6.3 Compile problems/errors Message-ID: <1034123071.11048.32.camel@homer.bundabergcity.qld.gov.au> Hi List, I just tried to upgrade to 3.6.3 and received the following error when I tried to access my application: Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in /var/www/html/blis/blis.phpm on line 217 Fatal error: Failed writing image to 1034121816212081.png in /var/www/html/blis/blis.phpm on line 217 The relevant code from my php mapscript is $image=$map->draw(); $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]); The mapserver configuration options that I used to compile this version were exactly the same as the ones that I used to compile 3.6.2 which works without any problem. Here are the options that I used: ./configure --with-proj --with-wmsclient --with-libwww --with-gdal --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd --with-postgis --with-freetype=/usr/include --enable-force-freetype1 I am running mapserver on RedHat 7.3 and using php 4.1.2. Anyone got any hints on what the problem could be? I think it is something to do with the php_mapscript.so because I reverted back to the php_mapscript.so compiled with 3.6.2 and the mapserv 3.6.3 cgi and it doesn't produce the error. Regards Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at biosci.cbs.umn.edu Tue Oct 8 17:31:36 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 08 Oct 2002 19:31:36 -0500 Subject: [mapserver-users] Announcing 3.6.3 In-Reply-To: References: Message-ID: <1034123496.11681.8.camel@arceuthobium.ecology.umn.edu> I've also updated the win32 binaries in the mapserver web site: http://mapserver.gis.umn.edu/win32binaries.html As always,there's no support for php on these binaries. You'll have to get the aforementioned binaries at DM Solutions' if you need the php support. -Perry On Tue, 2002-10-08 at 15:00, Steve Lime wrote: > Greetings folks: The MapServer development team is pleased to announce > the release of version 3.6.3. It contains a a number of bug fixes and if > possible users are encouraged to upgrade now. The new version is > available at the usual place on the MapServer website. > > Pre-compiled binary versions are available for download at: > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.2-libwww.zip > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww.zip > > Enjoy- Steve > > A summary of changes from HISTORY.TXT: > > Version 3.6.3 (2002-10-07) > -------------------------- > > - Fixed problem with numeric labels with OGR's STYLEITEM AUTO (bug > 185) > > - PHP MapScript: fixed set() method on all object types for parameters > of type float and string. The param value was not forced to the > right > type and this could lead to unexpected values being set or crashes. > > - Fixed bug 174 - improperly terminated string buffer in > msWMSException() > > - Fixed problem with 'gcc undef' appearing in the > mapscript/php3/Makefile > on FreeBSD. Also added --enable-internal-ld-detect configure switch > to > force use of an internal configure macro to detect ld command and > args > in case the default doesn't work (this is for mapscript/php3/Makefile > only) > > - Fixed potential crash with WMS GML query output (missing > msInitSHape() in > msGMLWriteQuery()) > > - Fixed Windows-specific problem where WMS capabilities were always > returned > as 1.0.0 even if 1.1.0 was requested > > Version 3.6.2 (2002-07-08) > -------------------------- > > - Added msTokenizeMap() in MapScript (and via 'mapserv -t test.map') > > - Added map->setFontSet() > > - Fixed Windows-specific problem with PHP MapScript ms_newMapObj("") > called with empty filename. > > - Fixed problem with double 'gcc' appearing in mapscript/php3/Makefile > on > some systems. > From yeong888 at giga.net.tw Tue Oct 8 18:54:58 2002 From: yeong888 at giga.net.tw (yeong888 at giga.net.tw) Date: Wed, 09 Oct 2002 09:54:58 +0800 (CST) Subject: [mapserver-users] Can show non gometry data when using PostGIS Message-ID: <1034128498.3da38c72615da@webmail2.giga.net.tw> Hi everybody: I install the MapServer for my GIS mapping. My data store in PostgreSQL with PostGIS. The geometry data show correct, but I don't know how to show the non geometry data(ex: text, numeric data) in the database. Could anyone tell me how to do it? Thank you From jithesh at flashmail.com Tue Oct 8 21:42:47 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Tue, 8 Oct 2002 21:42:47 -0700 Subject: [mapserver-users] Message-id: <3da3b3c7.1a3.0@flashmail.com> Message-ID: <200210090436.XAA12807@lists.gis.umn.edu> Hi Steve, Itried to get the new Mapserver-php module at http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww .zip I couldn't find it there. Is their any problem with the link? Thanks!! I got it from http://www2.dmsolutions.ca/webtools/dl/mapserver-3.6.3-win32-php4.2.3-libww w.zip Regards Jithesh Joseph MapTell INDIA _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From pucher at atlas.gis.univie.ac.at Tue Oct 8 23:26:12 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 09 Oct 2002 08:26:12 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> <3DA17878.1020507@frw.uva.nl> <3DA18262.90401@atlas.gis.univie.ac.at> <3DA1AD70.8040604@frw.uva.nl> Message-ID: <3DA3CC04.4040108@atlas.gis.univie.ac.at> I think the problem is in the use of the EXPRESSION with a PostGIS layer. In the documentation I found a line, saying that CLASSITEM is not used in a PostGIS layer. One has to use the field name in the EXPRESSION tag!! I presume it means the DB filed name of the query result set ?!? So instead of using CLASSITEM "myclass" CLASS EXPRESSION "1" COLOR 255 0 0 END I might to do something like #CLASSITEM "myclass" CLASS EXPRESSION "myclass = 1" COLOR 255 0 0 END ...but still no correct result. I'm not sure if I use the EXPRESSION is correct in this sense. Has anybody already used CLASSES with EXPRESSIONs in combination with PostGIS and can tell me the right syntax? Best regards, alex Jan Hartmann wrote: > Your mapfile looks good and I double-checked my own mapfiles, so this > is the right way. However, are you using MapServer CGI? In that case > you have to set "STATUS DEFAULT" in the layer section; "STATUS ON" > leaves the layer invisible. This really should be put somewhere in the > docs with extra big capitals. -:) > > Jan > > Alexander Pucher wrote: > >> Hi Jan, >> >> everytime I read one of your mails I think yes, yes, this must be >> it...but still no success ;-( >> >> Jan Hartmann wrote: >> >>> Hello Alex, >>> >>> Try the inner select from a terminal (select nut3. ...). This should >>> give back records with three fields, so you can check whether your >>> selection criteria are right. If I read the description of your data >>> right I would say that the where-statement would have to be: >>> >>> where nut3.nurgcd = un3rt.nurgcd >> >> >> >> Sorry my fault: the correct version _is_ where nut3.nurgcd = >> un3rt.geo so the line in the DATA statement is correct. >> The inner selecion works fine with three fields, the_geom, oid and >> myclass. Also the complete query works fine from a terminal, as I >> told already. >> >>> However, if your original line is right and you get back records for >>> all classes with the interactive select, something is wrong with >>> the MapServer interface. Try quoting the SQL case statements: >>> >>> case when ... then "1" >> >> >> >> Tried it out with no success. It' funny that when I remove all but >> the first class and comment out the EXPRESSION line like this, >> >> CLASS >> # EXPRESSION "1" >> COLOR 255 0 0 >> END >> >> it should draw all polygons in red, but still it doesn't. It seems to >> ignore the whole layer!! >> >> Is there something wrong with my EXPRESSIONs? I even tried it with >> 'one' instead of '1' and changed the regex to /one/ . Also tried '1' >> and ([myclass] = 1) >> >> Is there something stupid missing in my LAYERs section of the mapfile? >> >> Regards, >> alex >> >> ############################ >> # Start of layer definitions >> ############################ >> >> LAYER >> NAME "nut3" >> STATUS ON >> TYPE POLYGON >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=xxxx password=xxxx dbname=xxxx host=localhost" >> DATA "the_geom from (select nut3.the_geom,nut3.oid,case when >> un3rt.unit > 16 then '1' when un3rt.unit between 10 and 16 then '2' >> when un3rt.unit between 5 and 10 then '3' when un3rt.unit between 0 >> and 5 then '4' else '5' end as myclass from nut3,un3rt where >> nut3.nurgcd=un3rt.geo) as foo" >> >> METADATA >> "DESCRIPTION" "NUTS3 Area polygons" >> END #METADATA >> CLASSITEM "myclass" >> >> CLASS >> EXPRESSION "1" >> COLOR 255 0 0 >> END >> CLASS >> EXPRESSION "2" >> COLOR 250 100 100 >> END >> CLASS >> EXPRESSION "3" >> COLOR 250 200 200 >> END >> CLASS >> EXPRESSION "4" >> COLOR 250 220 220 >> END >> CLASS >> EXPRESSION "5" >> COLOR 210 210 210 >> END >> END #LAYER >> >> >> LAYER >> NAME "nut3lin" >> STATUS ON >> DATA "the_geom from nut3_arc" >> #DESCRIPTION "nut3lin" >> TYPE LINE >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=pucher password=mapserver dbname=geodb >> host=localhost" >> METADATA >> "DESCRIPTION" "NUTS3 boundaries lines" >> END #MEATDATA >> CLASS >> #NAME "Nuts3 Gebiete" >> COLOR 0 0 0 >> END #CLASS >> END #LAYER >> >> END #MAP >> >>> >>> >>> Perhaps this solves it, although I thought you could pass number >>> values unquoted. >>> >>> Jan >> >> >> >> >> > > > > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From jhart at frw.uva.nl Wed Oct 9 02:44:31 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Wed, 09 Oct 2002 11:44:31 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> <3DA17878.1020507@frw.uva.nl> <3DA18262.90401@atlas.gis.univie.ac.at> <3DA1AD70.8040604@frw.uva.nl> <3DA3CC04.4040108@atlas.gis.univie.ac.at> Message-ID: <3DA3FA7F.7040205@frw.uva.nl> Alexander Pucher wrote: > I think the problem is in the use of the EXPRESSION with a PostGIS > layer. In the documentation I found a line, saying that CLASSITEM is not > used in a PostGIS layer. One has to use the field name in the EXPRESSION > tag!! > Where did you read that??? Anyway, it's not true. My test-mapfile (a small world file with the continents) runs as follows: LAYER NAME CONTINENTS CONNECTIONTYPE POSTGIS CONNECTION "user=xxx dbname=world password=xxx host=xxx" DATA "the_geom from (select map.the_geom,map.oid,map.continent, case when map.continent='Europe' then 1 when map.continent='Africa' then 2 else 3 end as cnt from continents as map) as foo" TYPE POLYGON CLASSITEM cnt CLASS NAME "Asia: black" EXPRESSION ('[continent]' = 'Asia') COLOR 0 0 0 OUTLINECOLOR 0 0 0 END CLASS NAME "Europe: red" EXPRESSION "1" # EXPRESSION /1/ # OK # EXPRESSION 1 # Doesn't work COLOR 255 0 0 OUTLINECOLOR 0 0 0 END CLASS NAME "Africa: magenta" EXPRESSION "2" COLOR 255 0 255 OUTLINECOLOR 0 0 0 END CLASS NAME "Rest of the World: yellow" EXPRESSION ([cnt] = 3) # EXPRESSION ("[cnt]" = "3") # OK COLOR 255 255 0 OUTLINECOLOR 0 0 0 END STATUS DEFAULT END To be noted: 1) You can use both an EXPRESSION from a CLASSITEM and a logical EXPRESSION. 2) You can use both an original variable and a computed one, provided you have named them in the subselect. 3) In literal EXPRESSIONS numeric variables have to be quoted or constructed as regex. 4) In logical EXPRESSIONS you can use numeric variables as numeric or as strings. Cheers, Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From pucher at atlas.gis.univie.ac.at Wed Oct 9 03:00:55 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 09 Oct 2002 12:00:55 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> <3D988901.6060706@frw.uva.nl> <3DA143B1.1050301@atlas.gis.univie.ac.at> <3DA17878.1020507@frw.uva.nl> <3DA18262.90401@atlas.gis.univie.ac.at> <3DA1AD70.8040604@frw.uva.nl> <3DA3CC04.4040108@atlas.gis.univie.ac.at> <3DA3FA7F.7040205@frw.uva.nl> Message-ID: <3DA3FE57.7030001@atlas.gis.univie.ac.at> Hallo Jan, Jan Hartmann wrote: > Alexander Pucher wrote: > >> I think the problem is in the use of the EXPRESSION with a PostGIS >> layer. In the documentation I found a line, saying that CLASSITEM is >> not used in a PostGIS layer. One has to use the field name in the >> EXPRESSION tag!! >> > > Where did you read that??? Anyway, it's not true. On page 64 of the 'UMN MapServer Handbuch und Referenz', published by MapMedia and mentioned several times on this group, the chapter on PostGIS says : "...folgen wieder die einzelnen Klassen zur Definition der Darstellung. Falls Sie an dieser Stelle EXPRESSIONs benutzen mo"chten, beachten Sie bitte, dass Sie hier Feldnamen explizit angeben mu"ssen, da es kein CLASSITEM in einem PostGIS-Layer gibt." Please excuse if I misinterpreted this. > [...] Thanks for the file, I think my problem sits deaper. I will check my whole MapServer Installation once again and see what I can do. Maybe I try the Nightly Build. > To be noted: > > 1) You can use both an EXPRESSION from a CLASSITEM and a logical > EXPRESSION. > 2) You can use both an original variable and a computed one, provided > you have named them in the subselect. > 3) In literal EXPRESSIONS numeric variables have to be quoted or > constructed as regex. > 4) In logical EXPRESSIONS you can use numeric variables as numeric or > as strings. Thanks for that! Regards, alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From Grit.Schuster at uni-vechta.de Wed Oct 9 06:00:29 2002 From: Grit.Schuster at uni-vechta.de (Schuster) Date: Wed, 09 Oct 2002 15:00:29 +0200 Subject: [mapserver-users] To: mapserver-users@lists.gis.umn.edu Message-ID: <20021009130029.58F1CD3C013@s04.kiz.uni-vechta.de> Hello everybody, I have installed the mapserver-3.6.2 on windows 2000. After that I tried to compile the python mapscript with msvc++, but without success :( Has anybody allready expierence with python mapscript installation on windows and can give me some hints. Or does anybody know of a setup.py for windows? Thanks in advance, Grit -- From Grit.Schuster at uni-vechta.de Wed Oct 9 06:59:49 2002 From: Grit.Schuster at uni-vechta.de (Schuster) Date: Wed, 09 Oct 2002 15:59:49 +0200 Subject: [mapserver-users] python mapscript installation on windows Message-ID: <20021009135949.1FE99D3C013@s04.kiz.uni-vechta.de> Hello everybody, I have installed the mapserver-3.6.2 on windows 2000. After that I tried to compile the python mapscript with msvc++, but without success :( Has anybody allready expierence with python mapscript installation on windows and can give me some hints. Or does anybody know of a setup.py for windows? Thanks in advance, Grit -- From hunt at zedxinc.com Wed Oct 9 07:48:10 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Wed, 9 Oct 2002 10:48:10 -0400 Subject: [mapserver-users] 3.6.3 Run error Message-ID: <003901c26fa2$e36f1c10$1805000a@helicity> I compiled mapscript 3.6.3 for perl. When I run my script I get Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so' for module mapscript: /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: undefined symbol: pj_free at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. Does anyone know what this means? Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Oct 9 08:25:32 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 09 Oct 2002 11:25:32 -0400 Subject: [mapserver-users] Announcing 3.6.3 References: Message-ID: <3DA44A6C.FF110E5F@dmsolutions.ca> OOppss... a little correction. It seems that the URLs that I had given to Steve for the win32 binaries on our download site were not valid. The correct URLs should be: http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.3-win32-php4.2.2-libwww.zip http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.3-win32-php4.2.3-libwww.zip Sorry about that! Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Oct 9 09:05:19 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 09 Oct 2002 12:05:19 -0400 Subject: [mapserver-users] 3.6.3 Compile problems/errors References: <1034123071.11048.32.camel@homer.bundabergcity.qld.gov.au> Message-ID: <3DA453BF.CC51B2CE@dmsolutions.ca> Nothing has changed between 3.6.2 and 3.6.3 that would explain this. I see that the path to the temporary png file in the error message is not absolute which means that MapScript is trying to write the temp png file to the current working directory. So perhaps you get this error because the working directory of your script (var/www/html/blis/ ?) is read-only. I would suggest that you make sure that your IMAGEPATH is set in your mapfile and uses an absolute path to the location of your temporary images directory and that this directory is writable by the web user. Daniel > Steven Bowden wrote: > > Hi List, > I just tried to upgrade to 3.6.3 and received the following error when > I tried to access my application: > > Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in > /var/www/html/blis/blis.phpm on line 217 > > Fatal error: Failed writing image to 1034121816212081.png in > /var/www/html/blis/blis.phpm on line 217 > > The relevant code from my php mapscript is > $image=$map->draw(); > $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]); > > The mapserver configuration options that I used to compile this > version were exactly the same as the ones that I used to compile 3.6.2 > which works without any problem. Here are the options that I used: > ./configure --with-proj --with-wmsclient --with-libwww --with-gdal > --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd > --with-postgis --with-freetype=/usr/include --enable-force-freetype1 > > I am running mapserver on RedHat 7.3 and using php 4.1.2. > Anyone got any hints on what the problem could be? > I think it is something to do with the php_mapscript.so because I > reverted back to the php_mapscript.so compiled with 3.6.2 and the > mapserv 3.6.3 cgi and it doesn't produce the error. > > Regards > Steve From flafone at GEO.WVU.edu Wed Oct 9 13:26:11 2002 From: flafone at GEO.WVU.edu (LaFone, Frank) Date: Wed, 9 Oct 2002 16:26:11 -0400 Subject: [mapserver-users] Installation Problem Message-ID: Hi, I downloaded 3.6 months ago, installed it on one system, and got it running smooth as glass. I developed a project using php mapscript that works wonderful on one machine running Windows 2000, Apache, and Php (4.X I believe). Now I'm trying to get the same project loaded on a laptop for demo purposes (where I won't have an Internet connection). When I try to run my mapping project, I get the error where it says it can't load the php_mapscript.dll. I have that file located in Apache's root document dir, the PHP directory, and in the project directory. Does anyone know where it would naturally look for this dll? Or more generally, can someone give me any hints why I can't get this darn thing working? That'll teach me to wait 2 days before a presentation to test the system.. Thanks in advance, Frank LaFone From nacional at biosci.cbs.umn.edu Wed Oct 9 13:40:12 2002 From: nacional at biosci.cbs.umn.edu (Pericles Nacionales) Date: Wed, 9 Oct 2002 15:40:12 -0500 (CDT) Subject: [mapserver-users] Installation Problem In-Reply-To: Message-ID: Try putting it in the same directory as libphp.dll (or is it php.dll?). This is usually in Apache 1.3's "libexec" directory. If it still doesn't work, put it in your system directory. I have to run now but if I recall correctly there's a documentation for compiling and installing php/mapscript somewhere in the MapServer web site (or maybe DM Solutions'). Good luck! -Perry On Wed, 9 Oct 2002, LaFone, Frank wrote: > Hi, I downloaded 3.6 months ago, installed it on one system, and got it > running smooth as glass. I developed a project using php mapscript that > works wonderful on one machine running Windows 2000, Apache, and Php (4.X I > believe). > > Now I'm trying to get the same project loaded on a laptop for demo purposes > (where I won't have an Internet connection). When I try to run my mapping > project, I get the error where it says it can't load the php_mapscript.dll. > I have that file located in Apache's root document dir, the PHP directory, > and in the project directory. Does anyone know where it would naturally > look for this dll? Or more generally, can someone give me any hints why I > can't get this darn thing working? > > That'll teach me to wait 2 days before a presentation to test the system.. > > Thanks in advance, > > Frank LaFone > From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Oct 9 14:00:05 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 9 Oct 2002 17:00:05 -0400 Subject: [mapserver-users] Problem compiling PHP Mapscript 3.6.3 Message-ID: <7CDD7B94357FD5119E800002A537C46E2303AE@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm getting a rather odd behavior when compiling mapserver and PHP mapscript 3.6.3 ... My MapServer binary is version 3.6.3: [root at grumbler mapserver-3.6.3]# ./mapserv -v MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [root at grumbler mapserver-3.6.3]# But my php_mapscript.so is 3.6.1 !!!: [root at grumbler mapserver-3.6.3]# cd mapscript/php3/ [root at grumbler php3]# grep 3.6.1 php_mapscript.so Binary file php_mapscript.so matches [root at grumbler php3]# grep 3.6.3 php_mapscript.so [root at grumbler php3]# The funny thing is I did the exact same ocmpile on an almost identical server, and everything went fine (They both say 3.6.3) ... I'm think php_mapscript might be reverting to an older version due to some dependency or something ... can that be? One is PHP 4.2.1 the other is 4.2.2 for instance, and there might be some minor differences in other library versions ... Any help with this would be much appreciated! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canada Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From morissette at dmsolutions.ca Wed Oct 9 14:05:39 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 09 Oct 2002 17:05:39 -0400 Subject: [mapserver-users] Problem compiling PHP Mapscript 3.6.3 References: <7CDD7B94357FD5119E800002A537C46E2303AE@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3DA49A23.CC78B617@dmsolutions.ca> JF, Sounds like you may have done 'make install' in a previous build, and php_mapscript.so is linking against your old libmap.a that has been installed in /usr/local/lib/libmap.a The fix is to delete /usr/local/lib/libmap.a and /usr/local/include/mapserver-3.5/map.h and to avoid 'make install' with MapServer in the future. Daniel Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote: > > Hello, > > I'm getting a rather odd behavior when compiling mapserver and PHP mapscript > 3.6.3 ... > > My MapServer binary is version 3.6.3: > > [root at grumbler mapserver-3.6.3]# ./mapserv -v > MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > [root at grumbler mapserver-3.6.3]# > > But my php_mapscript.so is 3.6.1 !!!: > > [root at grumbler mapserver-3.6.3]# cd mapscript/php3/ > [root at grumbler php3]# grep 3.6.1 php_mapscript.so > Binary file php_mapscript.so matches > [root at grumbler php3]# grep 3.6.3 php_mapscript.so > [root at grumbler php3]# > > The funny thing is I did the exact same ocmpile on an almost identical > server, and everything went fine (They both say 3.6.3) ... > > I'm think php_mapscript might be reverting to an older version due to some > dependency or something ... can that be? One is PHP 4.2.1 the other is 4.2.2 > for instance, and there might be some minor differences in other library > versions ... > > Any help with this would be much appreciated! > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canada Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 From morissette at dmsolutions.ca Wed Oct 9 14:12:12 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 09 Oct 2002 17:12:12 -0400 Subject: [mapserver-users] Installation Problem References: Message-ID: <3DA49BAC.DF698874@dmsolutions.ca> PHP looks for php_mapscript.dll in the directory defined by 'extension_dir' in the php.ini. So I would suggest that you open your php.ini (should be in C:\windows or C:\windows\system), look for the value of extension_dir ... and place php_mapscript.dll in that directory. You can also find that information using phpinfo(). Create a small phpinfo.php file on your server with the following line in it, and look for the value of extension_dir in the outpout: If extension_dir is set to "./" in your php.ini then you need to set it to the absolute path where all your PHP extension DLLs are located. Assuming that you installed PHP under C:\PHP4 then you probably have a C:\PHP4\extensions or equivalent with a bunch of php_*.dll files in it. Use the path to this directory as extension_dir and place php_mapscript.dll in that directory. Daniel "LaFone, Frank" wrote: > > Hi, I downloaded 3.6 months ago, installed it on one system, and got it > running smooth as glass. I developed a project using php mapscript that > works wonderful on one machine running Windows 2000, Apache, and Php (4.X I > believe). > > Now I'm trying to get the same project loaded on a laptop for demo purposes > (where I won't have an Internet connection). When I try to run my mapping > project, I get the error where it says it can't load the php_mapscript.dll. > I have that file located in Apache's root document dir, the PHP directory, > and in the project directory. Does anyone know where it would naturally > look for this dll? Or more generally, can someone give me any hints why I > can't get this darn thing working? > > That'll teach me to wait 2 days before a presentation to test the system.. > > Thanks in advance, > > Frank LaFone From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Oct 9 14:24:42 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 9 Oct 2002 17:24:42 -0400 Subject: [mapserver-users] Problem compiling PHP Mapscript 3.6.3 Message-ID: <7CDD7B94357FD5119E800002A537C46E2303AF@s5-ccr-r1.ccrs.nrcan.gc.ca> Ah! Well it wasn't from a make install, but I did have my libmap.a in /usr/local/lib ... Took it out, now all is fine. Thanks, J.F. -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Wednesday, October 09, 2002 5:06 PM To: Jean-Francois.Doyon at ccrs.nrcan.gc.ca Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Problem compiling PHP Mapscript 3.6.3 JF, Sounds like you may have done 'make install' in a previous build, and php_mapscript.so is linking against your old libmap.a that has been installed in /usr/local/lib/libmap.a The fix is to delete /usr/local/lib/libmap.a and /usr/local/include/mapserver-3.5/map.h and to avoid 'make install' with MapServer in the future. Daniel Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote: > > Hello, > > I'm getting a rather odd behavior when compiling mapserver and PHP mapscript > 3.6.3 ... > > My MapServer binary is version 3.6.3: > > [root at grumbler mapserver-3.6.3]# ./mapserv -v > MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > [root at grumbler mapserver-3.6.3]# > > But my php_mapscript.so is 3.6.1 !!!: > > [root at grumbler mapserver-3.6.3]# cd mapscript/php3/ > [root at grumbler php3]# grep 3.6.1 php_mapscript.so > Binary file php_mapscript.so matches > [root at grumbler php3]# grep 3.6.3 php_mapscript.so > [root at grumbler php3]# > > The funny thing is I did the exact same ocmpile on an almost identical > server, and everything went fine (They both say 3.6.3) ... > > I'm think php_mapscript might be reverting to an older version due to some > dependency or something ... can that be? One is PHP 4.2.1 the other is 4.2.2 > for instance, and there might be some minor differences in other library > versions ... > > Any help with this would be much appreciated! > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canada Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 From matthew.g.krusemark at co.multnomah.or.us Wed Oct 9 14:32:07 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Wed, 9 Oct 2002 14:32:07 -0700 Subject: [mapserver-users] FILTER and FILTERITEM parameters in Map file Message-ID: <9D07D10FA5CAD21192620008C7B14D29049A9225@ISDEXCH-1> Hi, Thanks to many folks for trying to help me out with my FILTER and FILTERITEM params in my mapfile with 3.6. So I tried to trouble-shoot with the suggestions folks provided. I am in a windows environment and I'm wondering if my params with the 3.5 test suite are not working because of that or because I have errored on syntax, not sure. My map file, html query and html template files are below if anyone wants to take one more look or test in their windows environment. My error message: msQueryByAttributes(): Search returned no results. No matching record(s) found. My URL string for 3.3 cgi exe is the following and works just fine (but this uses the QUERY param in the map file, no FILTERITEM or FILTER params): http://gisshare/cgi-bin/mapserv33.exe?map=D%3A%5CInetpub%5Cwwwroot%5Cgis share_web%5Cmapserver_demo36%5Citasca%5Ccase1.map&mode=itemquery&item=cty_na me&value=Anoka My URL string for 3.6 cgi exe is the following (same but with qlayer in the cgi and FILTERITEM and FILTER in map file) but does not work: http://gisshare/cgi-bin/mapserv.exe?map=D%3A%5CInetpub%5Cwwwroot%5Cgissh are_web%5Cmapserver_demo36%5Citasca%5Ccase1.map&mode=itemquery&qlayer=county &item=cty_name&value=Anoka ****** MAPFILE BELOW *********** MAP NAME test SHAPEPATH "D:\Inetpub\wwwroot\gisshare_web\mapserver_demo36\itasca\data" SIZE 300 300 EXTENT 74000 4775000 798000 5499000 QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME county DATA county STATUS DEFAULT TYPE POLYGON FILTERITEM cty_name FILTER "%cty_name%" # FILTER "name != 'Anoka'" CLASS COLOR 212 212 212 OUTLINECOLOR 0 0 0 TEMPLATE case1_template.html END END # 3.3 stuff below #LAYER # NAME county # DATA county # STATUS DEFAULT # TYPE POLYGON # QUERY # TEMPLATE case1_template.html # END #END END ******** HTML with Query below ********** ItemQuery Example Case 1: Simple ItemQuery Pick one: ********** HTML Template below ************ ItemQuery Example Case 1: Simple ItemQuery

Dump of attributes from that county:

Name: [CTY_NAME]
ID Number: [COUN]
Abbreviation Code: [CTY_ABBR]
Kind regards,-matthew From steve.lime at dnr.state.mn.us Wed Oct 9 15:56:01 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 09 Oct 2002 17:56:01 -0500 Subject: [mapserver-users] Real dynamic legends Message-ID: > Hello everybody, Hi Armin: > I was thinking about the possibility to have 'real' dynamic legends. That is, > legends that show only the items (of active layers) that are visible in the > current map extent. For complex layers definitions with plenty of classes one > loses a bit the overview if all classes are always drawn in the legend even > if only 10 % or so of them are visible in the map. Real dynamic legends could > make it much easier to identify the map contents via legend. Yup, I agree. > One possibility I see for such legends could be using MapScript with > 'queryByRect' on all active layers and the current map extent. The results > are written in an array with unique result values for the classitem. Then one > had to compare these results with the class definitions of the layer and draw > the legend icons. Seems like a lot of work when the information needed for this is already available as a map is drawn. > One restriction of this approach I found is that it seems not to be possible > to get class expressions via MapScript. A question to the PHP MapScript > developers: Would it be possible to add this possibility to MapScript? I'm not sure what you mean by "get class expressions". I believe the perl/python version has a classify method that will allow a shape to be evaluated for a given layer. I'll have to check though. > Assumed one had this expression it can be a bit difficult to match results > found via the query with class definitions. There are quite a lot of > different class definitions possible. And at the end, the speed of such a > query will decrease very much if a lot of features are visible in the map (it > could be much faster, however, using PostGIS instead of shapefiles and a > 'select distinct' query). > Therefore a question to the MapServer developers: Is it conceivable to > implement such a dynamic legend function directly in the main MapServer > functionality? It's possible. We would just need to add a bit of book keeping to the map file structure (i.e. like keeping a count of drawn features by class). This might make the mapfile structures less thread safe though.... > Reading shapefiles and map file with complex class definitions and rendering > a map will take only very few seconds even for relatively large datasets. So > I think producing lists of affected layer classes in a similar step or even > simultaneous should be also quite fast. Maybe I'm wrong... > Regarding MapScript functionality I'm thinking of a function like > $map->drawDynLegend() that instead of an image returns a multiple array of > active layers with a sub-array of affected classes (classes in the current > extent) for each layer. One could then use these classes and draw the legend > icons for them. I would propose extending the legend object by adding a "type" parameter. > Any ideas? > Armin Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From gisweb at lmi.net Wed Oct 9 18:32:24 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Wed, 9 Oct 2002 18:32:24 -0700 Subject: [mapserver-users] sudden inability to find non-missing libttf.so.4.0 In-Reply-To: References: Message-ID: <1034213544.3da4d8a8ed336@webmail.lmi.net> List: Mapserver 3.5 installed successfully on a FreeBSD platform and was merrily pumping out beautiful interactive web maps. Until yesterday. For no apparent reason, mapserv now reports that it "Can't find shared library 'libttf.so.4.0'." Apache's error_log reports the following: > tail -5 error_log ld.so failed: Can't find shared library "libttf.so.4.0" [Wed Oct 9 18:07:09 2002] [error] [client 32.102.91.129] Premature end of scrip t headers: /usr/home/gisweb/www/cgi-bin/mapserv And yet, the libttf.so.4.0 library is alive and well exactly where mapserv expects to find it, as evidenced by the following ldd output and subsequent ls - l check of the directory location. (The same is true of all other libraries listed by ldd.) > ldd mapserv mapserv: -lm.2 => /usr/lib/libm.so.2.0 (0x2007a000) -lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000) -lz.2 => /usr/lib/libz.so.2.0 (0x200ad000) -ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000) -lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000) -lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000) -ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000) -lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000) -lc.3 => /usr/lib/libc.so.3.1 (0x2018c000) > ls -l /usr/home/gisweb/local/lib total 1396 -rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h -rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h -rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a -rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a -rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la -rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0 And so, dear reader, comes the big question--why does the formerly triumphant mapserv no longer find the libraries that were once so beloved? Could a change to other libraries in the /usr/lib or /usr/local/lib directories have shifted the tenuous alliances between formerly complimentary open-source products? Flashes of brillance welcomed with open arms. Jonathan W. Lowe www.giswebsite.com From gisweb at lmi.net Wed Oct 9 19:12:44 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Wed, 9 Oct 2002 19:12:44 -0700 Subject: [mapserver-users] Sudden failure to find libttf.so.4.0 Message-ID: <1034215964.3da4e21c8c08c@webmail.lmi.net> Mighty List: Successful install of mapserver version 3.6.1 on our FreeBSD platform put smiles on all faces. Performance and cartographic quality were magnificent. The build consisted of the following options: > /usr/home/gisweb/www/cgi-bin/mapserv -v MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORT S=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Smiles vanished, however, when mapserver suddenly ceased working yesterday. The apache error_log reports the following: > tail -3 /usr/home/gisweb/www/logs/error_log ld.so failed: Can't find shared library "libttf.so.4.0" [Wed Oct 9 18:53:58 2002] [error] [client 32.102.91.129] Premature end of scrip t headers: /usr/home/gisweb/www/cgi-bin/mapserv And yet, gentle reader, the supposedly missing libttf.so.4.0 library remains where it has always been, exactly where mapserv expects to find it (as illustrated by the output of ldd and confirmed by the output of ls -l). > ldd /usr/home/gisweb/www/cgi-bin/mapserv /usr/home/gisweb/www/cgi-bin/mapserv: -lm.2 => /usr/lib/libm.so.2.0 (0x2007a000) -lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000) -lz.2 => /usr/lib/libz.so.2.0 (0x200ad000) -ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000) -lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000) -lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000) -ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000) -lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000) -lc.3 => /usr/lib/libc.so.3.1 (0x2018c000) > ls -l /usr/home/gisweb/local/lib total 1396 -rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h -rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h -rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a -rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a -rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la -rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0 Who can explain this unusual twist of fate and restore mapserv to its original triumphant glory? Don't hesitate, gentle reader; speak up! Let the bells of freedom ring! Ever hopefull, Jonathan W. Lowe www.giswebsite.com From pkishor at GeoAnalytics.com Wed Oct 9 21:46:04 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 9 Oct 2002 23:46:04 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 Message-ID: <2F4000BA-DC0B-11D6-8656-0003936306C2@geoanalytics.com> while make-ing, the program ends with the following -- ranlib libmap.a ranlib: file: libmap.a(mapthread.o) has no symbols gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj -ljpeg -lm -o shp2img ld: Undefined symbols: ___gxx_personality_v0 make: *** [shp2img] Error 1 Then, make install tells me that it cp -f libmap.a /usr/local/lib/ cp -f map.h /usr/local/include/mapserver-3.5/ strange, that mapserver-3.5/ above. Needless to say, there is no map.h under /usr/local/include but there is one under my mapserver-src directory where I build everything. So, not knowing any better, I cp map.h to /usr/local/include where all other .h files live. Then I try to build perl/mapscript but, perl Makefile.pl quits with perl Makefile.PL Unable to open perlvars, have you built the MapServer yet? at Makefile.PL line 4. My guess is that the initial make itself failed when shp2img croaked. I went through the Makefile and it seems logical that process didn't complete at all. What is going on? Many thanks, Puneet. From steveb at bundaberg.qld.gov.au Wed Oct 9 16:16:40 2002 From: steveb at bundaberg.qld.gov.au (Steven Bowden) Date: 10 Oct 2002 09:16:40 +1000 Subject: [mapserver-users] 3.6.3 Compile problems/errors In-Reply-To: <3DA453BF.CC51B2CE@dmsolutions.ca> References: <1034123071.11048.32.camel@homer.bundabergcity.qld.gov.au> <3DA453BF.CC51B2CE@dmsolutions.ca> Message-ID: <1034205400.25435.17.camel@homer.bundabergcity.qld.gov.au> Daniel, I have got IMAGEPATH and IMAGETMP set in the map file. Here is the extract from my map file WEB LOG /var/www/html/blis/blis.log IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" METADATA WMS_TITLE "BLIS" WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information System)." WMS_ACCESSCONSTRAINTS none END END I changed the working path (/var/www/html/blis) to writable and it then saved the tmp images to this directory even though IMAGEPATH was was set to /var/www/html/tmp/ in the map file. Any thoughts? Steve On Thu, 2002-10-10 at 02:05, Daniel Morissette wrote: Nothing has changed between 3.6.2 and 3.6.3 that would explain this. I see that the path to the temporary png file in the error message is not absolute which means that MapScript is trying to write the temp png file to the current working directory. So perhaps you get this error because the working directory of your script (var/www/html/blis/ ?) is read-only. I would suggest that you make sure that your IMAGEPATH is set in your mapfile and uses an absolute path to the location of your temporary images directory and that this directory is writable by the web user. Daniel > Steven Bowden wrote: > > Hi List, > I just tried to upgrade to 3.6.3 and received the following error when > I tried to access my application: > > Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in > /var/www/html/blis/blis.phpm on line 217 > > Fatal error: Failed writing image to 1034121816212081.png in > /var/www/html/blis/blis.phpm on line 217 > > The relevant code from my php mapscript is > $image=$map->draw(); > $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]); > > The mapserver configuration options that I used to compile this > version were exactly the same as the ones that I used to compile 3.6.2 > which works without any problem. Here are the options that I used: > ./configure --with-proj --with-wmsclient --with-libwww --with-gdal > --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd > --with-postgis --with-freetype=/usr/include --enable-force-freetype1 > > I am running mapserver on RedHat 7.3 and using php 4.1.2. > Anyone got any hints on what the problem could be? > I think it is something to do with the php_mapscript.so because I > reverted back to the php_mapscript.so compiled with 3.6.2 and the > mapserv 3.6.3 cgi and it doesn't produce the error. > > Regards > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From navarro_ver at gva.es Thu Oct 10 01:00:31 2002 From: navarro_ver at gva.es (=?iso-8859-1?Q?Ver=F3nica?= Navarro) Date: Thu, 10 Oct 2002 10:00:31 +0200 Subject: [mapserver-users] beginner Message-ID: <3DA5339F.842DC460@gva.es> Hi! I'm begin to use MapServer. I have install MapServer 3.6.1, precompiled binaries ms36gif_wms.zip with support form the following libraires: TIFF, JPEG, FreeType, Proj and GD. Well, i have down demo 'itasca 3.5'. I have see a simple example, to create a MapServer generated graphic with one data layer (http://128.101.73.80/projects/tutorial/example1.html). When i make this example don't execute, don't show image. The reference is: why? An the other hand, would can someone explain how to begin a application? itasca 3.5 generated a directory structure that i don't understand. symbols directory (file .sym and images)?? several CVS directory, what for?? ... Please help me. Thanks all Ver?nica From armin.burger at libero.it Thu Oct 10 01:18:43 2002 From: armin.burger at libero.it (Armin Burger) Date: Thu, 10 Oct 2002 10:18:43 +0200 Subject: [mapserver-users] Real dynamic legends Message-ID: <200210100824.g9A8OJw41672@efferd.nettz.com> Steve, thanks for the reply. >> Hello everybody, > Hi Armin: /.../ >> One restriction of this approach I found is that it seems not >> to be possibleto get class expressions via MapScript. A >> question to the PHP MapScript developers: Would it be possible >> to add this possibility to MapScript? > I'm not sure what you mean by "get class expressions". I believe > the perl/python version has a classify method that will allow a > shape to be evaluated for a given layer. I'll have to check though. # When trying to find a way to implement dynamic legends via queryByRect I stumbled over the missing possibility in PHP/MapScript to retrieve class expressions via '$classObj->expression'. It seems to be one of the few members of a layer class that cannot be read via MapScript. /.../ >> Therefore a question to the MapServer developers: Is it >> conceivable to implement such a dynamic legend function >> directly in the main MapServer functionality? > It's possible. We would just need to add a bit of book keeping > to the map file structure (i.e. like keeping a count of drawn > features by class). This might make the mapfile structures less > thread safe though.... /.../ >> Regarding MapScript functionality I'm thinking of a function >> like $map->drawDynLegend() that instead of an image returns a >> multiple array of active layers with a sub-array of affected >> classes (classes in the current extent) for each layer. One >> could then use these classes and draw the legend icons for >> them. > I would propose extending the legend object by adding a "type" > parameter. # I don't have an idea how map file classes are processed via the rendering. So I don't know the efforts to keep track of already processed layers and classes and give them out finally. Maybe it's easier to write directly a legend instead of producing lists. For the cgi version I assume this the best solution. With MapScript one has the possibility to create very flexible and nice legends via the layer classes and producing single legend icons and mixing them with HTML text. Therefore a perfect solution for me would be some kind of list or array of layers and classes as an output of a dynamic legend function. I think that probabaly updating dynamic legends would be done anyway via an 'update' button in the user interface and not automatically for every zoom/pan action. > Steve Armin From james at danisat.net Thu Oct 10 05:30:12 2002 From: james at danisat.net (James Anderson) Date: Thu, 10 Oct 2002 14:30:12 +0200 Subject: [mapserver-users] Problem with rasters and world files Message-ID: <012801c27058$d1fd0c10$0b220a0a@beast> Hi, I am a Mapserver newbie. Please Help !! I am trying to display a raster image of Harare. The raster file name is Harare.tif It is 8bit uncompressed. 13258x14646 pixels. I have made a world file called Harare.wld They are in the C:\Rasters directory The world file looks like this: 13258 0.0000000000 0.0000000000 -14646 30.873957 -17.680917 The top left corner of the image is at 30.873957 X and -17.680917 Y I have made a map file Harare.map that looks like this: NAME EX1 EXTENT -18.170 -35.000 54.531 38.020 SIZE 400 400 SHAPEPATH "C:\Rasters" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END IMAGECOLOR 18 23 89 LAYER NAME "Harare" DATA "Harare.tif" TYPE RASTER STATUS ON END END # end of map file And an html file default.html that looks like this: Harare Map

Now I am not sure what I am doing wrong. The mapserver outputs a dark blue image, same color as the imagecolor statement in the mapfile. This means that the mapserver is working and that my file permissions are ok. I am running under WinXP with IIS5.1 You can see my image at http://www.thebeastie.net/map3/ I think that either the extent in the mapfile is wrong or I have the world file wrong. I am not sure which. The example of how to make world files is not very clear. Can anyone help ? Thanks, James. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2951 bytes Desc: not available URL: From tom at internetgids.be Thu Oct 10 05:43:12 2002 From: tom at internetgids.be (Tom Myny) Date: Thu, 10 Oct 2002 14:43:12 +0200 Subject: [mapserver-users] Request feature mapscript, Selecting a Class by Name References: <200210100824.g9A8OJw41672@efferd.nettz.com> Message-ID: <001001c2705a$a01d0860$0100a8c0@cpi.local> Hi Mapserver users, Is it possible to select a class by name in a Layer. Something like getClassbyname ? I use the feature getlayerbyname to select a Layer but for Classes i must use an integer :/ Can this feature be enabled in mapscript ? My mapfile: layer classitem "ID_" data "poi" name "poi" status off MAXSCALE 10000 type point # 1 query #none class status off expression /1227/ symbol 'symbols/images/nmbs.gif' end class status off expression /998/ symbol 'symbols/images/998.gif' end class status off expression /999/ symbol 'symbols/images/999.gif' My code (for now): $symLayer = $gpoMap->getlayerbyname(poi); $symLayer->set("status", 1); $symobjclass = $symLayer->getClass('1'); $symobjclass->set("status", 1); $symobjclass = $symLayer->getClass('2'); $symobjclass->set("status", 1); Hope that this will be a new feature, Kind Regards, Tom From soreotsoga at libero.it Thu Oct 10 07:13:42 2002 From: soreotsoga at libero.it (soreotsoga at libero.it) Date: Thu, 10 Oct 2002 16:13:42 +0200 Subject: No subject Message-ID: hi everyone! i'm sorry but i have always new problems and so here am i, sending my "message in a bottle" i have problems with querymaps i make a query i get the database record of the selected feature. starting from here i make an itemquey with a value of a field of the record gained before. everything works allright except the querymaps, that aren't shown. where can be the problem? i visited the mapserver test suite web page and i followed what shown there, in case 4: in the file.map i put QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END and in the footer file i put
haven't i set something? if anyone has got any idea... thanks eros agosto politecnico di torino From pkishor at GeoAnalytics.com Thu Oct 10 07:36:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 09:36:30 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: <2F4000BA-DC0B-11D6-8656-0003936306C2@geoanalytics.com> Message-ID: as a follow-up, I found the following in the archives -- http://mapserver.gis.umn.edu/wilma/mapserver-users/0210/msg00011.html by Sean Gillies... > I'm not sure about all your errors, but I recognize > two of them. You do not say so, but it looks to me > like you might be trying to compile mapserver using > gcc 3.x. I've never seen the errors you report > when building with gcc 2.9.x. > > 1) Remove /usr/local/include from your INCLUDE_DIRS > so that gcc doesn't complain about it. > 2) The error > > undefined reference to `__gxx_personality_v0' > > tells you that you need to link shp2img using > g++ rather than gcc because one of your libraries > has C++ code. > > If you're not using gcc 3.x, please disregard my > suggestions. looking at my errors below, this seems to be a similar problem. I _am_ using gcc 3.1. I have no way of reverting back to an earlier gcc version. Is this a known problem? Is there a workaround? Thanks. pk/ On Wednesday, October 9, 2002, at 11:46 PM, Puneet Kishor wrote: > while make-ing, the program ends with the following -- > > > > ranlib libmap.a > ranlib: file: libmap.a(mapthread.o) has no symbols > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.c -o shp2img.o > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg > -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj > -ljpeg -lm -o shp2img > ld: Undefined symbols: > ___gxx_personality_v0 > make: *** [shp2img] Error 1 > > > > > > Then, make install tells me that it > > > > > > cp -f libmap.a /usr/local/lib/ > cp -f map.h /usr/local/include/mapserver-3.5/ > > > > > > strange, that mapserver-3.5/ above. Needless to say, there is no map.h > under /usr/local/include but there is one under my mapserver-src > directory where I build everything. So, not knowing any better, I cp > map.h to /usr/local/include where all other .h files live. Then I try > to build perl/mapscript but, perl Makefile.pl quits with > > > > > > perl Makefile.PL > Unable to open perlvars, have you built the MapServer yet? at > Makefile.PL line 4. > > > > > My guess is that the initial make itself failed when shp2img croaked. > I went through the Makefile and it seems logical that process didn't > complete at all. What is going on? > > Many thanks, > > Puneet. From morissette at dmsolutions.ca Thu Oct 10 07:42:02 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 10:42:02 -0400 Subject: [mapserver-users] Sudden failure to find libttf.so.4.0 References: <1034215964.3da4e21c8c08c@webmail.lmi.net> Message-ID: <3DA591BA.F4F38633@dmsolutions.ca> I can't explain why this happened (only your system admin could), but it is very likely that something changed on the server and /usr/home/gisweb/local/lib/ is no longer part of the runtime library path of the user running the web server. On Linux, you could edit /etc/ld.so.conf and add this path, and then run /sbin/ldconfig to rescan the library path. You could also use the following in your Apache httpd.conf: SetEnv LD_LIBRARY_PATH /usr/home/gisweb/local/lib PassEnv LD_LIBRARY_PATH (make sure you include any other required path in LD_LIBRARY_PATH as well) Daniel gisweb at lmi.net wrote: > > Mighty List: > > Successful install of mapserver version 3.6.1 on our FreeBSD platform put smiles > on all faces. Performance and cartographic quality were magnificent. The build > consisted of the following options: > > > /usr/home/gisweb/www/cgi-bin/mapserv -v > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORT > S=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Smiles vanished, however, when mapserver suddenly ceased working yesterday. The > apache error_log reports the following: > > > tail -3 /usr/home/gisweb/www/logs/error_log > ld.so failed: Can't find shared library "libttf.so.4.0" > [Wed Oct 9 18:53:58 2002] [error] [client 32.102.91.129] Premature end of scrip > t headers: /usr/home/gisweb/www/cgi-bin/mapserv > > And yet, gentle reader, the supposedly missing libttf.so.4.0 library remains > where it has always been, exactly where mapserv expects to find it (as > illustrated by the output of ldd and confirmed by the output of ls -l). > > > ldd /usr/home/gisweb/www/cgi-bin/mapserv > /usr/home/gisweb/www/cgi-bin/mapserv: > -lm.2 => /usr/lib/libm.so.2.0 (0x2007a000) > -lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000) > -lz.2 => /usr/lib/libz.so.2.0 (0x200ad000) > -ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000) > -lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000) > -lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000) > -ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000) > -lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000) > -lc.3 => /usr/lib/libc.so.3.1 (0x2018c000) > > > ls -l /usr/home/gisweb/local/lib > total 1396 > -rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h > -rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h > -rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a > -rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a > -rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la > -rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0 > > Who can explain this unusual twist of fate and restore mapserv to its original > triumphant glory? > > Don't hesitate, gentle reader; speak up! Let the bells of freedom ring! > > Ever hopefull, > > Jonathan W. Lowe > www.giswebsite.com From zak-ms at aiya.dhs.org Thu Oct 10 07:45:57 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Thu, 10 Oct 2002 10:45:57 -0400 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: <2F4000BA-DC0B-11D6-8656-0003936306C2@geoanalytics.com> Message-ID: With OS X 10.2, the default compiler is now gcc 3.1 which has some trouble with mapserver. The easiest way to get around the problem is to use the built in gcc_select script. As root, gcc_select 2 will switch to the old compiler, which is still available. You can switch back by issuing gcc_select 3. zj On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor wrote: > while make-ing, the program ends with the following -- > > > > ranlib libmap.a > ranlib: file: libmap.a(mapthread.o) has no symbols > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.c -o shp2img.o > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg > -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj > -ljpeg -lm -o shp2img > ld: Undefined symbols: > ___gxx_personality_v0 > make: *** [shp2img] Error 1 From morissette at dmsolutions.ca Thu Oct 10 07:47:42 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 10:47:42 -0400 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 References: Message-ID: <3DA5930E.577A9B5E@dmsolutions.ca> Puneet Kishor wrote: > > by Sean Gillies... > > > 2) The error > > > > undefined reference to `__gxx_personality_v0' > > > > tells you that you need to link shp2img using > > g++ rather than gcc because one of your libraries > > has C++ code. > > > > If you're not using gcc 3.x, please disregard my > > suggestions. > > looking at my errors below, this seems to be a similar problem. I _am_ > using gcc 3.1. I have no way of reverting back to an earlier gcc > version. Is this a known problem? Is there a workaround? > Known problem? Yes, you're not the first one to run into this. Workaround? Unfortunately there is no fix for this yet in the mapserver distribution. Did you try Sean's suggestion? It would involve editing the Makefile to use 'g++' instead of $(CC) as the name of the command to use for the mapserv: target. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 10 08:04:38 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 11:04:38 -0400 Subject: [mapserver-users] Real dynamic legends References: <200210100824.g9A8OJw41672@efferd.nettz.com> Message-ID: <3DA59706.A8605940@dmsolutions.ca> Armin Burger wrote: > > # When trying to find a way to implement dynamic legends via > queryByRect I stumbled over the missing possibility in > PHP/MapScript to retrieve class expressions via > '$classObj->expression'. It seems to be one of the few members > of a layer class that cannot be read via MapScript. > You're correct, there is no way to retrieve the class expression in PHP MapScript. It's been on the wish-list for a little while already, maybe we can make it happen for 3.7 if we have time: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=80 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 10 08:10:52 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 11:10:52 -0400 Subject: [mapserver-users] Request feature mapscript, Selecting a Class by Name References: <200210100824.g9A8OJw41672@efferd.nettz.com> <001001c2705a$a01d0860$0100a8c0@cpi.local> Message-ID: <3DA5987C.1D931C47@dmsolutions.ca> Tom Myny wrote: > > Hi Mapserver users, > > Is it possible to select a class by name in a Layer. Something like > getClassbyname ? > I use the feature getlayerbyname to select a Layer but for Classes i must > use an integer :/ > Can this feature be enabled in mapscript ? > I filed this in the MapServer bugzilla... if you're lucky it may happen in 3.7 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=209 In the meantime you can write your own little PHP function that loops through the layers and compares the $class->name value to locate the layer you're looking for. But if you use this a lot then it can become a waste of resources because each call to $layer->getClass() creates a new instance of PHP classObj wrapper, etc. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 10 08:17:36 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 11:17:36 -0400 Subject: [mapserver-users] 3.6.3 Compile problems/errors References: <1034123071.11048.32.camel@homer.bundabergcity.qld.gov.au> <3DA453BF.CC51B2CE@dmsolutions.ca> <1034205400.25435.17.camel@homer.bundabergcity.qld.gov.au> Message-ID: <3DA59A10.E2D5E038@dmsolutions.ca> > Steven Bowden wrote: > > Daniel, > I have got IMAGEPATH and IMAGETMP set in the map file. Here is the > extract from my map file > WEB > LOG /var/www/html/blis/blis.log > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > WMS_TITLE "BLIS" > WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information > System)." > WMS_ACCESSCONSTRAINTS none > END > END > > I changed the working path (/var/www/html/blis) to writable and it > then saved the tmp images to this directory even though IMAGEPATH was > was set to /var/www/html/tmp/ in the map file. > > Any thoughts? > Steve > This is very odd. Can you check that you don't have a second IMAGEPATH further down in your mapfile? Also, try printing the value of $map->web->imagepath immediately after the call to ms_newMapObj() to find out if it reads the right value. Then print this value again just before the call to SaveWebImage() ... if the value is empty before saveWebImage() then it must be your script that changed the value somewhere. If the value is still valid then it is likely a bug in MapScript and the best way to troubleshoot this for us would be to get a small sample app with scripts and data that reproduces this. But since nobody else ran into that, it seems unlikely to be a bug and I would check for a problem in the mapfile or PHP script first. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From marichalperez at yahoo.es Thu Oct 10 08:19:58 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Thu, 10 Oct 2002 16:19:58 +0100 Subject: [mapserver-users] TIFF support Message-ID: Hi all: As far as I know, in order to having TIFF support in an application, one must compile MapSever with TIFF library. I've got yet installed libtiff in my Linux system. When I execute "configure" I can read: checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. But when I include a raster layer in my application I always obtain the message: Warning: MapServer Error in drawTIFF(): TIFF support is not available. What's the matter?. Have to be GD compiled against TIFF?. But GD have not TIFF support, haven't? Thanks in advance, Manuel Marichal P?rez _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From pkishor at GeoAnalytics.com Thu Oct 10 08:24:52 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 10:24:52 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: <3DA5930E.577A9B5E@dmsolutions.ca> Message-ID: <6C06C34C-DC64-11D6-8656-0003936306C2@geoanalytics.com> On Thursday, October 10, 2002, at 09:47 AM, Daniel Morissette wrote: > Puneet Kishor wrote: >> >> by Sean Gillies... >> >>> 2) The error >>> >>> undefined reference to `__gxx_personality_v0' >>> >>> tells you that you need to link shp2img using >>> g++ rather than gcc because one of your libraries >>> has C++ code. >>> >>> If you're not using gcc 3.x, please disregard my >>> suggestions. >> >> looking at my errors below, this seems to be a similar problem. I _am_ >> using gcc 3.1. I have no way of reverting back to an earlier gcc >> version. Is this a known problem? Is there a workaround? >> > > Known problem? Yes, you're not the first one to run into this. > > Workaround? Unfortunately there is no fix for this yet in the > mapserver > distribution. Did you try Sean's suggestion? It would involve editing > the Makefile to use 'g++' instead of $(CC) as the name of the command > to > use for the mapserv: target. > ok, in the Makefile, around line 130, I made the following change # # Pick a compiler, etc. Flex and bison are only required if you need to modify the mapserver lexer (maplexer.l) or expression parser (mapparser.y). # CC= g++ but that caused even more errors right at the begining. So, I tried the following -- CXX= g++ CC= gcc That fared a bit better in that it basically replicated what was happening earlier. Error at shp2img. Is there someother place that I had to change the Makefile? Thanks. From matthew.g.krusemark at co.multnomah.or.us Thu Oct 10 08:32:51 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Thu, 10 Oct 2002 08:32:51 -0700 Subject: [mapserver-users] msQueryByAttributes(): Search returned no r esults. No matching re cord(s) found. Message-ID: <9D07D10FA5CAD21192620008C7B14D29049A9229@ISDEXCH-1> Just wanted to send a big thanks to Robert Stanton, Anwar Hussain, Gunter Rieth, Perry Nacionales and Steve Lime for helping me understand the FILTER and FILTERITEM params in 3.6. Kind regards,-matthew -----Original Message----- From: Robert Stanton [mailto:geosys at iafrica.com] Sent: Thursday, October 10, 2002 2:51 AM To: KRUSEMARK Matthew G Subject: Re: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) found. Hi Matthew In your 'FILTER "%cty_name%" ' statement I believe you are passing the dbf column name to mapserver where you should be passing the value in a field in that column. In my map file I have: FILTERITEM "cty_name" FILTER "%value%" and I then pass the %value% to mapserver either by: in the html file, or: &item=cty_name&value=actual_value_in_the_required_field in a url, or select the value from a option select list in the html file, using name="value" All this had me fooled for a long time until I understood the 'item/value' parameter passing. I hope this helps. Regards Robert Stanton Durban South Africa ----- Original Message ----- From: "KRUSEMARK Matthew G" To: Sent: Wednesday, October 09, 2002 2:00 AM Subject: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) found. > Hello, > > I am having trouble with ItemQuery in 3.6. My error message is: > > msQueryByAttributes(): Search returned no results. No matching > record(s) found. > > I have the qlayer set as such: > > value="D:\Inetpub\wwwroot\gisshare_web\mapserver_demo36\itasca\case1.m > ap"> > > > > > ... But may be making mistakes on the syntax of the FILTER and > FILTERITEM params, I checked the docs and tried a few things, however, > nothing successful yet. Piece of mapfile: > > LAYER > NAME county > DATA county > STATUS DEFAULT > TYPE POLYGON > FILTERITEM cty_name > FILTER "%cty_name%" > CLASS > NAME county > COLOR 212 212 212 > OUTLINECOLOR 0 0 0 > TEMPLATE case1_template.html > END > END > > Thanks in advance for any assistance on this, kind regards,-matthew > From pkishor at GeoAnalytics.com Thu Oct 10 08:38:32 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 10:38:32 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: Message-ID: <5517E39A-DC66-11D6-8656-0003936306C2@geoanalytics.com> On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: > With OS X 10.2, the default compiler is now gcc 3.1 which has some > trouble with mapserver. The easiest way to get around the problem is > to use the built in gcc_select script. As root, gcc_select 2 will > switch to the old compiler, which is still available. You can switch > back by issuing gcc_select 3. > Thanks Zak. Peachy. It all works now. On a related note, do you know where the problem lies? Is it in Apple's implementation of gcc? Is this a mapserver-specific problem? or have you encountered it while building other programs? I only encountered these problems while building mapserver. Everything else built fine using gcc3.1. Thanks. > > On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor > wrote: > >> while make-ing, the program ends with the following -- >> >> >> >> ranlib libmap.a >> ranlib: file: libmap.a(mapthread.o) has no symbols >> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >> shp2img.c -o shp2img.o >> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >> shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg >> -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj >> -ljpeg -lm -o shp2img >> ld: Undefined symbols: >> ___gxx_personality_v0 >> make: *** [shp2img] Error 1 From morissette at dmsolutions.ca Thu Oct 10 08:43:04 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 11:43:04 -0400 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 References: <6C06C34C-DC64-11D6-8656-0003936306C2@geoanalytics.com> Message-ID: <3DA5A008.9BF42C8@dmsolutions.ca> Puneet Kishor wrote: > > but that caused even more errors right at the begining. So, I tried the > following -- > > CXX= g++ > CC= gcc > > That fared a bit better in that it basically replicated what was > happening earlier. Error at shp2img. Is there someother place that I > had to change the Makefile? > Yes, around line 220, replace $(CC) with your newly created $(CXX) variable, or directly with 'g++': mapserv: mapserv.h libmap.a ... $(CXX) $(CFLAGS) mapserv.o .... You may have to do the same for every executable in that part of the Makefile (shp2img, etc.), or if you don't need the other executables and need only 'mapserv' then call the Makefile with: make mapserv I will fix the 3.6 and 3.7 Makefile to use an LD variable which is really what it should use and will make this easier to handle in the future. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From stepan.kafka at centrum.cz Thu Oct 10 08:56:24 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 10 Oct 2002 17:56:24 +0200 Subject: [mapserver-users] Problem with rasters and world files In-Reply-To: <012801c27058$d1fd0c10$0b220a0a@beast> Message-ID: <000601c27075$95ddf0b0$7e3c2fc3@HSGIS> Hi James, you MUST specify the pixel size not number of pixels at the 1. and 4. row of your wld file. Stepan Kafka Help Service Remote Sensing tel: +420-327514118 mailto:kafka at email.cz http://www.bnhelp.cz -----Puvodn? zpr?va----- Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele James Anderson Odesl?no: 10. r?jna 2002 14:30 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] Problem with rasters and world files Hi, I am a Mapserver newbie. Please Help !! I am trying to display a raster image of Harare. The raster file name is Harare.tif It is 8bit uncompressed. 13258x14646 pixels. I have made a world file called Harare.wld They are in the C:\Rasters directory The world file looks like this: 13258 0.0000000000 0.0000000000 -14646 30.873957 -17.680917 The top left corner of the image is at 30.873957 X and -17.680917 Y I have made a map file Harare.map that looks like this: NAME EX1 EXTENT -18.170 -35.000 54.531 38.020 SIZE 400 400 SHAPEPATH "C:\Rasters" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END IMAGECOLOR 18 23 89 LAYER NAME "Harare" DATA "Harare.tif" TYPE RASTER STATUS ON END END # end of map file And an html file default.html that looks like this: Harare Map < /p> Now I am not sure what I am doing wrong. The mapserver outputs a dark blue image, same color as the imagecolor statement in the mapfile. This means that the mapserver is working and that my file permissions are ok. I am running under WinXP with IIS5.1 You can see my image at http://www.thebeastie.net/map3/ I think that either the extent in the mapfile is wrong or I have the world file wrong. I am not sure which. The example of how to make world files is not very clear. Can anyone help ? Thanks, James. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at frii.com Thu Oct 10 08:51:43 2002 From: sgillies at frii.com (Sean Gillies) Date: Thu, 10 Oct 2002 09:51:43 -0600 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 References: <2F4000BA-DC0B-11D6-8656-0003936306C2@geoanalytics.com> Message-ID: <3DA5A20F.5080502@frii.com> Puneet, About a week ago I replied to a question like this. Search on my name and perhaps on gcc 3.x as well. The '__gxx_personality_v0' symbol is in libstdc++. Why you need it is unknown to me since you don't appear to be using GDAL (has c++). You should either link with -lstdc++ or use g++ as your linker instead of gcc. cheers, Sean Puneet Kishor wrote: > while make-ing, the program ends with the following -- > > > > ranlib libmap.a > ranlib: file: libmap.a(mapthread.o) has no symbols > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.c -o shp2img.o > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include > shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -L/usr/local/lib > -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj -ljpeg > -lm -o shp2img > ld: Undefined symbols: > ___gxx_personality_v0 > make: *** [shp2img] Error 1 > > > > > > Then, make install tells me that it > > > > > > cp -f libmap.a /usr/local/lib/ > cp -f map.h /usr/local/include/mapserver-3.5/ > > > > > > strange, that mapserver-3.5/ above. Needless to say, there is no map.h > under /usr/local/include but there is one under my mapserver-src > directory where I build everything. So, not knowing any better, I cp > map.h to /usr/local/include where all other .h files live. Then I try to > build perl/mapscript but, perl Makefile.pl quits with > > > > > > perl Makefile.PL > Unable to open perlvars, have you built the MapServer yet? at > Makefile.PL line 4. > > > > > My guess is that the initial make itself failed when shp2img croaked. I > went through the Makefile and it seems logical that process didn't > complete at all. What is going on? > > Many thanks, > > Puneet. > > From ycnyon at pd.jaring.my Wed Oct 9 20:36:22 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Thu, 10 Oct 2002 11:36:22 +0800 Subject: [mapserver-users] RE: QuerybyAttributes examples Message-ID: <00bc01c27011$55d4ce80$6ecbfea9@gis> I have a massive business directory in MySQL database. Using PHP, dynamic queries can be made. What i want to implement is for the user to click "View Map" button on the results and zoom to the location of the business. Currently, i have MS-PHP running doing the zoom/pan stuff. Looking at the documentation, QuerybyAttributes seems to be the method to use. In Mysql, I can add a column to store the record-id which can be passed to MS-PHP. Not too sure how to go about it. Can someone share their code snippets on this function. TIA Nyon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at frii.com Thu Oct 10 08:57:35 2002 From: sgillies at frii.com (Sean Gillies) Date: Thu, 10 Oct 2002 09:57:35 -0600 Subject: [mapserver-users] Problem with rasters and world files References: <012801c27058$d1fd0c10$0b220a0a@beast> Message-ID: <3DA5A36F.8090305@frii.com> James, You've simply confused 'pixel size' with 'image size'. Instead of '13258' in your first line you should have the number of degrees per pixel such as '0.0002777'. Sean James Anderson wrote: > Hi, > > I am a Mapserver newbie. Please Help !! > > I am trying to display a raster image of Harare. The raster file name > is Harare.tif It is 8bit uncompressed. 13258x14646 pixels. I have > made a world file called Harare.wld They are in the C:\Rasters directory > The world file looks like this: > > 13258 > 0.0000000000 > 0.0000000000 > -14646 > 30.873957 > -17.680917 > > The top left corner of the image is at 30.873957 X and -17.680917 Y > I have made a map file Harare.map that looks like this: > > NAME EX1 > EXTENT -18.170 -35.000 54.531 38.020 > SIZE 400 400 > SHAPEPATH "C:\Rasters" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > IMAGECOLOR 18 23 89 > > LAYER > NAME "Harare" > DATA "Harare.tif" > TYPE RASTER > STATUS ON > END > > END # end of map file > > And an html file default.html that looks like this: > > > > > Harare Map > > > src="/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\map3\Harare.map&mode=map">

> > > > > Now I am not sure what I am doing wrong. The mapserver outputs a dark > blue image, same color as the imagecolor statement in the mapfile. This > means that the mapserver is working and that my file permissions are > ok. I am running under WinXP with IIS5.1 You can see my image at > http://www.thebeastie.net/map3/ > I think that either the extent in the mapfile is wrong or I have the > world file wrong. I am not sure which. The example of how to make > world files is not very clear. > > Can anyone help ? > > Thanks, > > James. > > From pkishor at GeoAnalytics.com Thu Oct 10 09:06:49 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 11:06:49 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: Message-ID: <486DDEC4-DC6A-11D6-8656-0003936306C2@geoanalytics.com> Hmmm... now that the compile worked, I get the following in my Apache error log -- dyld: perl Undefined symbols: _gdFontGiant _gdFontLarge _gdFontMediumBold _gdFontSmall _gdFontTiny _gdImageArc _gdImageColorAllocate _gdImageColorTransparent _gdImageCopy _gdImageCopyMerge _gdImageCopyResized _gdImageCreate _gdImageCreateFromJpeg _gdImageCreateFromPng _gdImageDestroy _gdImageFillToBorder _gdImageFilledPolygon _gdImageFilledRectangle _gdImageInterlace _gdImageJpeg _gdImageJpegPtr _gdImageLine _gdImagePng _gdImagePngPtr _gdImagePolygon _gdImageRectangle _gdImageSetBrush _gdImageSetPixel _gdImageSetStyle _gdImageSetTile _gdImageString _gdImageStringFT _gdImageWBMP _gdImageWBMPPtr [Thu Oct 10 11:00:46 2002] [error] [client 127.0.0.1] Premature end of script headers: /Users/pkishor/Sites/bims/index.pl Have you noticed this as well? (assuming you are running OS X 10.2). Btw, do you recommend using gcc 2.x for building perl mapscript as well, or that doesn't matter? I reverted back to gcc 3.1 and then built perl mapscript. Worked fine, really quick, no errors. But, now the above in my error_log. I am using perl 5.6.0, stock Apple perl that came with the OS. Tia, PUneet. On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: > With OS X 10.2, the default compiler is now gcc 3.1 which has some > trouble with mapserver. The easiest way to get around the problem is > to use the built in gcc_select script. As root, gcc_select 2 will > switch to the old compiler, which is still available. You can switch > back by issuing gcc_select 3. > > zj > > On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor > wrote: > >> while make-ing, the program ends with the following -- >> >> >> >> ranlib libmap.a >> ranlib: file: libmap.a(mapthread.o) has no symbols >> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >> shp2img.c -o shp2img.o >> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >> shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg >> -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz -lproj >> -ljpeg -lm -o shp2img >> ld: Undefined symbols: >> ___gxx_personality_v0 >> make: *** [shp2img] Error 1 From zak-ms at aiya.dhs.org Thu Oct 10 09:24:35 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Thu, 10 Oct 2002 12:24:35 -0400 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: <5517E39A-DC66-11D6-8656-0003936306C2@geoanalytics.com> Message-ID: I'm not sure what the problem with gcc 3 is - I think there are problems with it and mapserver on other platforms too. There is a good page on OS X porting issues at http://fink.sourceforge.net/doc/porting/index.php though they don't mention that specifically. The loadable modules stuff they discuss does shed some light on building php mapscript. If you manage to get it to compile with gcc 3, let me know as I'm still working on an OS X build how-to for mapserver. zj On Thursday, Oct 10, 2002, at 11:38 America/Montreal, Puneet Kishor wrote: > > On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: > >> With OS X 10.2, the default compiler is now gcc 3.1 which has some >> trouble with mapserver. The easiest way to get around the problem is >> to use the built in gcc_select script. As root, gcc_select 2 will >> switch to the old compiler, which is still available. You can switch >> back by issuing gcc_select 3. >> > > > Thanks Zak. Peachy. It all works now. On a related note, do you know > where the problem lies? Is it in Apple's implementation of gcc? Is > this a mapserver-specific problem? or have you encountered it while > building other programs? I only encountered these problems while > building mapserver. Everything else built fine using gcc3.1. > > Thanks. > > > >> >> On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor >> wrote: >> >>> while make-ing, the program ends with the following -- >>> >>> >>> >>> ranlib libmap.a >>> ranlib: file: libmap.a(mapthread.o) has no symbols >>> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >>> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >>> shp2img.c -o shp2img.o >>> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >>> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >>> shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg >>> -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz >>> -lproj -ljpeg -lm -o shp2img >>> ld: Undefined symbols: >>> ___gxx_personality_v0 >>> make: *** [shp2img] Error 1 > From pkishor at GeoAnalytics.com Thu Oct 10 09:45:43 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 11:45:43 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: Message-ID: dunno if you got my most recent message. Seems like I spoke too soon. I am now getting a load of gd related errors in my Apache log. (you should soon get that message... the mapserver listserver is kinda slow). Wrt, OS X build how-to, please consider updating/adding to http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS that would consolidate all the work. Many thanks. Puneet. On Thursday, October 10, 2002, at 11:24 AM, Zak James wrote: > I'm not sure what the problem with gcc 3 is - I think there are > problems with it and mapserver on other platforms too. There is a good > page on OS X porting issues at > http://fink.sourceforge.net/doc/porting/index.php > though they don't mention that specifically. The loadable modules > stuff they discuss does shed some light on building php mapscript. > > If you manage to get it to compile with gcc 3, let me know as I'm > still working on an OS X build how-to for mapserver. > > zj > > On Thursday, Oct 10, 2002, at 11:38 America/Montreal, Puneet Kishor > wrote: > >> >> On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: >> >>> With OS X 10.2, the default compiler is now gcc 3.1 which has some >>> trouble with mapserver. The easiest way to get around the problem is >>> to use the built in gcc_select script. As root, gcc_select 2 will >>> switch to the old compiler, which is still available. You can switch >>> back by issuing gcc_select 3. >>> >> >> >> Thanks Zak. Peachy. It all works now. On a related note, do you know >> where the problem lies? Is it in Apple's implementation of gcc? Is >> this a mapserver-specific problem? or have you encountered it while >> building other programs? I only encountered these problems while >> building mapserver. Everything else built fine using gcc3.1. >> >> Thanks. >> >> >> >>> >>> On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor >>> wrote: >>> >>>> while make-ing, the program ends with the following -- >>>> >>>> >>>> >>>> ranlib libmap.a >>>> ranlib: file: libmap.a(mapthread.o) has no symbols >>>> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >>>> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >>>> shp2img.c -o shp2img.o >>>> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG >>>> -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/include >>>> shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg >>>> -L/usr/local/lib -lpng -lz -ljpeg -L/usr/local/lib -lpng -lz >>>> -lproj -ljpeg -lm -o shp2img >>>> ld: Undefined symbols: >>>> ___gxx_personality_v0 >>>> make: *** [shp2img] Error 1 >> From bfischer at mpls.houstoneng.com Thu Oct 10 09:51:02 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 10 Oct 2002 11:51:02 -0500 Subject: [mapserver-users] Mapplet Message-ID: <8879CCE0F0187742B7302A93A8B87B09253D30@mpls.houstoneng.com> The problem is your temp image directory probably is located somewhere else on your server. Try putting the whole URL to the temp image. Ex.) Or this should work also Hope this helps, Brian -----Original Message----- From: Till Adams [mailto:adams at terrestris.de] Sent: Sunday, November 10, 2002 10:50 AM To: mapserverlist Subject: [mapserver-users] Mapplet Dear listers! I'm trying to run the JS Mapplet in my application (- I know it worked before I got this new machine). The problem: I'm sure the mapplet and mapserver is working properly, because the tmp-image files are written and there is no error message for the javascript -- and: I can drag a zoombox and my overview map shows exact the cut-out I've choosen. Only the map isn't displayed ... Mapserver doesn't find and display the temp-image, as it does without the mapplet. I'm sure the fault is somewhere around the as said in the "mapplet.HowTo" definition. Here is my state-of-the-art: I tried almost everything I can imagine - maybe I just can't see something obvious - any help would be appreciated!! -- thanks in advance!! Cheers, Till -- -- -- terrestris jetzt online! www.terrestris.de -- -- -- ----- Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Meckenheimer Allee 166 * 53115 Bonn Tel.: 0228 73 9647 * Fax.: 0228 73 6538 info at terrestris.de * www.terrestris.de From dpadron at lareserva.com Thu Oct 10 09:54:07 2002 From: dpadron at lareserva.com (Diego Jos=?ISO-8859-1?Q?=E9_Padr=F3?=n) Date: Thu, 10 Oct 2002 10:54:07 -0600 Subject: [mapserver-users] query raster Message-ID: <200210101054.AA126091582@lareserva.com> Greetings Somebody can indicate to me since to make a consultation to layer in format to raster, for example grid generated from Arc View. Thank you very much by the aid _____________________________ Pura Vida! www.lareserva.com From pkishor at GeoAnalytics.com Thu Oct 10 09:53:14 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 11:53:14 -0500 Subject: [mapserver-users] RE: QuerybyAttributes examples In-Reply-To: <00bc01c27011$55d4ce80$6ecbfea9@gis> Message-ID: On Wednesday, October 9, 2002, at 10:36 PM, YC Nyon wrote: > I have a massive business directory in MySQL database.?Using > PHP,?dynamic queries can be made. What i want to implement is for > the?user to click "View Map" button on the results and zoom to the > location of the business. Currently, i have MS-PHP running doing the > zoom/pan?stuff. > ? > Looking at the documentation, QuerybyAttributes seems to be the method > to use. In Mysql, I can add a column to store the record-id which can > be passed to MS-PHP.?Not too sure how to go about it. Can someone > share their code snippets on this function. > dunno about QueryByAttributes, but the general approach using the above idea would be like so... 1. create a table in MySQL called shpdbf (call it whatever, this is just an example). 2. import the shapfile.dbf into the new table (make sure you don't import the first row, because that contains the field names). 3. create a column called "shprowid" in table "shpdbf". 4. update "shprowid" to the actual row_id. keep in mind, shape indexes are base 1. MySQL records retrieved in an array are base 0. As long as you remember that, there will be no confusion. Now, when you query the business directory, you can retrieve the corresponding "shprowid" from the "shpdbf" table in MySQL. That value is the index of the feature you want to zoom to. No more querying teh shapefile.dbf at all. Everything is super fast. The only problem. If you update the shapefile (geometrically speaking), its indexes go out of whack. So, you would have to re-sync the MySQL table "shpdbf" with the shapefile.dbf. All that said, that is, I hope, what you were asking. ;-) From pcarrasco at iver.es Thu Oct 10 10:29:34 2002 From: pcarrasco at iver.es (Pedro Carrasco) Date: Thu, 10 Oct 2002 19:29:34 +0200 Subject: [mapserver-users] maxscale in php Message-ID: <012c01c27082$99b831c0$0f00a8c0@iver.es> Hi all, I'm defined my map file with maxscale set in some layers, but in some cases I want to set the maxscale manually in php, I try to do layer->set('maxscale','500000'); But it does nothing. how could I set the maxscale with php?? Thanks in advance. Regards. -- "Quedarse en lo conocido por miedo a lo desconocido es lo mismo que mantenerse con vida pero no vivir" From flafone at GEO.WVU.edu Thu Oct 10 10:40:22 2002 From: flafone at GEO.WVU.edu (LaFone, Frank) Date: Thu, 10 Oct 2002 13:40:22 -0400 Subject: [mapserver-users] Installation Problem Message-ID: Ok, I've tried this track with no luck. I downloaded PHP4.2.3 from php.net and edited the php.ini file to point extentions to a directory called extentions in the php dir. Then I placed the php_mapscript.dll file in the extetions directory. It's still telling me it's unable to load C:/php/extentions/php_mapscript.dll The thing that puzzles me about it is that I have it working just fine on one machine, but can't seem to get the application installed on a different machine. Any ideas where I can turn next? -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Wednesday, October 09, 2002 5:12 PM To: LaFone, Frank Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Installation Problem PHP looks for php_mapscript.dll in the directory defined by 'extension_dir' in the php.ini. So I would suggest that you open your php.ini (should be in C:\windows or C:\windows\system), look for the value of extension_dir ... and place php_mapscript.dll in that directory. You can also find that information using phpinfo(). Create a small phpinfo.php file on your server with the following line in it, and look for the value of extension_dir in the outpout: If extension_dir is set to "./" in your php.ini then you need to set it to the absolute path where all your PHP extension DLLs are located. Assuming that you installed PHP under C:\PHP4 then you probably have a C:\PHP4\extensions or equivalent with a bunch of php_*.dll files in it. Use the path to this directory as extension_dir and place php_mapscript.dll in that directory. Daniel "LaFone, Frank" wrote: > > Hi, I downloaded 3.6 months ago, installed it on one system, and got it > running smooth as glass. I developed a project using php mapscript that > works wonderful on one machine running Windows 2000, Apache, and Php (4.X I > believe). > > Now I'm trying to get the same project loaded on a laptop for demo purposes > (where I won't have an Internet connection). When I try to run my mapping > project, I get the error where it says it can't load the php_mapscript.dll. > I have that file located in Apache's root document dir, the PHP directory, > and in the project directory. Does anyone know where it would naturally > look for this dll? Or more generally, can someone give me any hints why I > can't get this darn thing working? > > That'll teach me to wait 2 days before a presentation to test the system.. > > Thanks in advance, > > Frank LaFone From morissette at dmsolutions.ca Thu Oct 10 10:55:57 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 13:55:57 -0400 Subject: [mapserver-users] Installation Problem References: Message-ID: <3DA5BF2D.13715EF8@dmsolutions.ca> "LaFone, Frank" wrote: > > Ok, I've tried this track with no luck. I downloaded PHP4.2.3 from php.net > and edited the php.ini file to point extentions to a directory called > extentions in the php dir. Then I placed the php_mapscript.dll file in the > extetions directory. It's still telling me it's unable to load > C:/php/extentions/php_mapscript.dll > > The thing that puzzles me about it is that I have it working just fine on > one machine, but can't seem to get the application installed on a different > machine. Any ideas where I can turn next? > We're progressing. At least now we're sure that it's looking for the DLL in the right location. The next possible problem could be that you are missing some support DLLs like libwww or others. You need to use DEPENDS.EXE to check for missing DLL dependencies, see: http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00394.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 10 11:20:27 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 14:20:27 -0400 Subject: [mapserver-users] maxscale in php References: <012c01c27082$99b831c0$0f00a8c0@iver.es> Message-ID: <3DA5C4EB.4885856C@dmsolutions.ca> Pedro Carrasco wrote: > > I'm defined my map file with maxscale set in some layers, but in some cases > I want to set the maxscale manually in php, I try to do > layer->set('maxscale','500000'); > But it does nothing. > > how could I set the maxscale with php?? > Are you running the latest 3.6.3 release? There was a bug (fixed in 3.6.3) where passing a numeric value as a string like you did would give unpredictable results. You can either upgrade to 3.6.3 or try changing your code to: $layer->set('maxscale', doubleval('500000')); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Oct 10 11:26:27 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 10 Oct 2002 14:26:27 -0400 Subject: [mapserver-users] query raster References: <200210101054.AA126091582@lareserva.com> Message-ID: <3DA5C653.F8A2DCFE@dmsolutions.ca> Diego Jos? Padr?n wrote: > > Somebody can indicate to me since to make a consultation to layer > in format to raster, for example grid generated from Arc View. > Raster quesries are not supported in the current verisons. But you're not the first one to ask for this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=199 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Chip.Hankley at gasai.com Thu Oct 10 11:57:40 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Thu, 10 Oct 2002 13:57:40 -0500 Subject: [mapserver-users] RE: QuerybyAttributes examples Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE6E@postoffice.GASAI.Com> ...following up on Puneet's suggestions, the way to do the 'zoom to selected' follows: remember the issue of base 1 and base 0 row ids... ------------------------- $shapeExtObj = $nShpFile->getExtent($row_id); $minx = $shapeExtObj->minx; $miny = $shapeExtObj->miny; $maxx = $shapeExtObj->maxx; $maxy = $shapeExtObj->maxy; //make the extent to zoom to // a buffer of some value around // the extent of the selected // objects. $border = 10000; $minx = $minx - $border; $miny = $miny - $border; $maxx = $maxx + $border; $maxy = $maxy + $border; $map->setExtent($minx, $miny, $maxx, $maxy); ------------------------- Note that if you returned multiple records, you would want to modify the first part of this so that you would loop through the returned records, determining the extent of each, and coming up with a summary extent that was inclusive of all the records. Chip -----Original Message----- From: YC Nyon [mailto:ycnyon at pd.jaring.my] Sent: Wednesday, October 09, 2002 10:36 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] RE: QuerybyAttributes examples I have a massive business directory in MySQL database. Using PHP, dynamic queries can be made. What i want to implement is for the user to click "View Map" button on the results and zoom to the location of the business. Currently, i have MS-PHP running doing the zoom/pan stuff. Looking at the documentation, QuerybyAttributes seems to be the method to use. In Mysql, I can add a column to store the record-id which can be passed to MS-PHP. Not too sure how to go about it. Can someone share their code snippets on this function. TIA Nyon From sgillies at frii.com Thu Oct 10 12:24:37 2002 From: sgillies at frii.com (Sean Gillies) Date: Thu, 10 Oct 2002 13:24:37 -0600 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 References: Message-ID: <3DA5D3F5.9040903@frii.com> I've built it on OS X 10.2 with the Mac compiler derived from gcc 3.1. I'll try to contribute to the Wiki docs later this afternoon. Sean Zak James wrote: > I'm not sure what the problem with gcc 3 is - I think there are problems > with it and mapserver on other platforms too. There is a good page on OS > X porting issues at > http://fink.sourceforge.net/doc/porting/index.php > though they don't mention that specifically. The loadable modules stuff > they discuss does shed some light on building php mapscript. > > If you manage to get it to compile with gcc 3, let me know as I'm still > working on an OS X build how-to for mapserver. > > zj From steve.lime at dnr.state.mn.us Thu Oct 10 12:33:53 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Oct 2002 14:33:53 -0500 Subject: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) foun Message-ID: Wait until 3.7 when things change (for the better). Admittedly attribute queries suck in 3.5/6 because part of the process is in the map file and part in the HTML. They are very powerfull, but tricky to use. In 3.7 that changes and uses a simpler model. You'll specify the mode, qlayer, qitem (optional) and a qstring (i.e. a MapServer expression) all from the HTML page. No filters (although that's still the mechanism used internally) to deal with. Just build the expression in the HTML page and submit it, period. This does away with the confusion in how a filter is used when you're not querying that layer. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> KRUSEMARK Matthew G 10/10/02 10:32AM >>> Just wanted to send a big thanks to Robert Stanton, Anwar Hussain, Gunter Rieth, Perry Nacionales and Steve Lime for helping me understand the FILTER and FILTERITEM params in 3.6. Kind regards,-matthew -----Original Message----- From: Robert Stanton [mailto:geosys at iafrica.com] Sent: Thursday, October 10, 2002 2:51 AM To: KRUSEMARK Matthew G Subject: Re: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) found. Hi Matthew In your 'FILTER "%cty_name%" ' statement I believe you are passing the dbf column name to mapserver where you should be passing the value in a field in that column. In my map file I have: FILTERITEM "cty_name" FILTER "%value%" and I then pass the %value% to mapserver either by: in the html file, or: &item=cty_name&value=actual_value_in_the_required_field in a url, or select the value from a option select list in the html file, using name="value" All this had me fooled for a long time until I understood the 'item/value' parameter passing. I hope this helps. Regards Robert Stanton Durban South Africa ----- Original Message ----- From: "KRUSEMARK Matthew G" To: Sent: Wednesday, October 09, 2002 2:00 AM Subject: [mapserver-users] msQueryByAttributes(): Search returned no results. No matching re cord(s) found. > Hello, > > I am having trouble with ItemQuery in 3.6. My error message is: > > msQueryByAttributes(): Search returned no results. No matching > record(s) found. > > I have the qlayer set as such: > > value="D:\Inetpub\wwwroot\gisshare_web\mapserver_demo36\itasca\case1.m > ap"> > > > > > ... But may be making mistakes on the syntax of the FILTER and > FILTERITEM params, I checked the docs and tried a few things, however, > nothing successful yet. Piece of mapfile: > > LAYER > NAME county > DATA county > STATUS DEFAULT > TYPE POLYGON > FILTERITEM cty_name > FILTER "%cty_name%" > CLASS > NAME county > COLOR 212 212 212 > OUTLINECOLOR 0 0 0 > TEMPLATE case1_template.html > END > END > > Thanks in advance for any assistance on this, kind regards,-matthew > From Chip.Hankley at gasai.com Thu Oct 10 13:06:18 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Thu, 10 Oct 2002 15:06:18 -0500 Subject: [mapserver-users] Installation Problem Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE6F@postoffice.GASAI.Com> Frank... you most likely are running into a permissions problem. Look carefully at the permissions that are set on the working box. The default web user needs to have read access to the PHP directory. If you are REALLY desperate, just give the web user FULL CONTROL on everything in the laptop... this, of course, would be ridiculous in a live environment... but that shouldn't matter for your presentation purposes. -----Original Message----- From: LaFone, Frank [mailto:flafone at GEO.WVU.edu] Sent: Thursday, October 10, 2002 12:40 PM To: 'Daniel Morissette'; LaFone, Frank Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Installation Problem Ok, I've tried this track with no luck. I downloaded PHP4.2.3 from php.net and edited the php.ini file to point extentions to a directory called extentions in the php dir. Then I placed the php_mapscript.dll file in the extetions directory. It's still telling me it's unable to load C:/php/extentions/php_mapscript.dll The thing that puzzles me about it is that I have it working just fine on one machine, but can't seem to get the application installed on a different machine. Any ideas where I can turn next? -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Wednesday, October 09, 2002 5:12 PM To: LaFone, Frank Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Installation Problem PHP looks for php_mapscript.dll in the directory defined by 'extension_dir' in the php.ini. So I would suggest that you open your php.ini (should be in C:\windows or C:\windows\system), look for the value of extension_dir ... and place php_mapscript.dll in that directory. You can also find that information using phpinfo(). Create a small phpinfo.php file on your server with the following line in it, and look for the value of extension_dir in the outpout: If extension_dir is set to "./" in your php.ini then you need to set it to the absolute path where all your PHP extension DLLs are located. Assuming that you installed PHP under C:\PHP4 then you probably have a C:\PHP4\extensions or equivalent with a bunch of php_*.dll files in it. Use the path to this directory as extension_dir and place php_mapscript.dll in that directory. Daniel "LaFone, Frank" wrote: > > Hi, I downloaded 3.6 months ago, installed it on one system, and got it > running smooth as glass. I developed a project using php mapscript that > works wonderful on one machine running Windows 2000, Apache, and Php (4.X I > believe). > > Now I'm trying to get the same project loaded on a laptop for demo purposes > (where I won't have an Internet connection). When I try to run my mapping > project, I get the error where it says it can't load the php_mapscript.dll. > I have that file located in Apache's root document dir, the PHP directory, > and in the project directory. Does anyone know where it would naturally > look for this dll? Or more generally, can someone give me any hints why I > can't get this darn thing working? > > That'll teach me to wait 2 days before a presentation to test the system.. > > Thanks in advance, > > Frank LaFone From joe at otsys.com Thu Oct 10 13:36:28 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 10 Oct 2002 13:36:28 -0700 Subject: [mapserver-users] truetype symbols Message-ID: <20021010203628.GB28612@otsys.com> Greetings Listers and Lurkers, I have just made a first attempt to apply a truetype symbol with no success. I have data for airport locations in a group of shapefiles tied together with a tileIndex. Presently I use a user defined circle symbol declared as type ELIPSE. I downloaded a ttf font set that included an airplane image as one of the characters. I believed form the documentation site that I could use this symbol in my mapfile as an R-value for the SYMBOL object in a CLASS object. I defined my symbol in my mapfile as such: SYMBOL NAME "airportIcon" TYPE TRUETYPE FONT transport FILLED true ANTIALIAS true CHARACTER "e" END In my fontlist file I declare transport to point to the path of the font that I downloaded. I verified that the font was available by writing a label with it (looked weird, but it did what I wanted). I attempted to make use of the defined symbol in the following mapfile snippet: LAYER NAME pointsOfInterrest GROUP defaultLayer TYPE POINT TILEINDEX td_pi.shp # DATA usa06037______pi STATUS ON LABELITEM "NAME" CLASSITEM "FEATTYP" MAXSCALE 150000 ... snip ... CLASS # airport EXPRESSION ( ( [FEATTYP] = 7383 ) ) NAME "Airport" BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 20 SYMBOL "airportIcon" LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE TRUE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION lr SIZE 6 TYPE TRUETYPE END END ... snip ... END The feature does not appear, nor does its label. If I replace "airportIcon" with "circle" I get the results that we currently display. Any ideas on how to get ttf symbols to work? - Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From steve.lime at dnr.state.mn.us Thu Oct 10 14:31:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 10 Oct 2002 16:31:30 -0500 Subject: [mapserver-users] truetype symbols Message-ID: First thing to check is the font itself. Does it have a UNICODE character mapping? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Joe Bussell 10/10/02 03:36PM >>> Greetings Listers and Lurkers, I have just made a first attempt to apply a truetype symbol with no success. I have data for airport locations in a group of shapefiles tied together with a tileIndex. Presently I use a user defined circle symbol declared as type ELIPSE. I downloaded a ttf font set that included an airplane image as one of the characters. I believed form the documentation site that I could use this symbol in my mapfile as an R-value for the SYMBOL object in a CLASS object. I defined my symbol in my mapfile as such: SYMBOL NAME "airportIcon" TYPE TRUETYPE FONT transport FILLED true ANTIALIAS true CHARACTER "e" END In my fontlist file I declare transport to point to the path of the font that I downloaded. I verified that the font was available by writing a label with it (looked weird, but it did what I wanted). I attempted to make use of the defined symbol in the following mapfile snippet: LAYER NAME pointsOfInterrest GROUP defaultLayer TYPE POINT TILEINDEX td_pi.shp # DATA usa06037______pi STATUS ON LABELITEM "NAME" CLASSITEM "FEATTYP" MAXSCALE 150000 ... snip ... CLASS # airport EXPRESSION ( ( [FEATTYP] = 7383 ) ) NAME "Airport" BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 20 SYMBOL "airportIcon" LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE TRUE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION lr SIZE 6 TYPE TRUETYPE END END ... snip ... END The feature does not appear, nor does its label. If I replace "airportIcon" with "circle" I get the results that we currently display. Any ideas on how to get ttf symbols to work? - Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From zak-ms at aiya.dhs.org Thu Oct 10 14:36:47 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Thu, 10 Oct 2002 17:36:47 -0400 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 In-Reply-To: Message-ID: <6113C652-DC98-11D6-BBC1-003065AB2508@aiya.dhs.org> Make sure that your gd and mapserver were built by the same compiler/linker as the linking process has changed somewhat. Are you sure that the right versions are being used by the webserver? I expected to have to recompile all the supporting libraries but they seem to work ok since I had stuck with the old 2.x compiler for mapserver 3.6.3. Thanks for the tip on the wiki. zj On Thursday, Oct 10, 2002, at 12:45 America/Montreal, Puneet Kishor wrote: > dunno if you got my most recent message. Seems like I spoke too soon. > I am now getting a load of gd related errors in my Apache log. (you > should soon get that message... the mapserver listserver is kinda > slow). > > Wrt, OS X build how-to, please consider updating/adding to > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS > > that would consolidate all the work. > > Many thanks. > > Puneet. > > On Thursday, October 10, 2002, at 11:24 AM, Zak James wrote: > >> I'm not sure what the problem with gcc 3 is - I think there are >> problems with it and mapserver on other platforms too. There is a >> good page on OS X porting issues at >> http://fink.sourceforge.net/doc/porting/index.php >> though they don't mention that specifically. The loadable modules >> stuff they discuss does shed some light on building php mapscript. >> >> If you manage to get it to compile with gcc 3, let me know as I'm >> still working on an OS X build how-to for mapserver. >> >> zj >> >> On Thursday, Oct 10, 2002, at 11:38 America/Montreal, Puneet Kishor >> wrote: >> >>> >>> On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: >>> >>>> With OS X 10.2, the default compiler is now gcc 3.1 which has some >>>> trouble with mapserver. The easiest way to get around the problem >>>> is to use the built in gcc_select script. As root, gcc_select 2 >>>> will switch to the old compiler, which is still available. You can >>>> switch back by issuing gcc_select 3. >>>> >>> >>> >>> Thanks Zak. Peachy. It all works now. On a related note, do you know >>> where the problem lies? Is it in Apple's implementation of gcc? Is >>> this a mapserver-specific problem? or have you encountered it while >>> building other programs? I only encountered these problems while >>> building mapserver. Everything else built fine using gcc3.1. >>> >>> Thanks. >>> >>> >>> >>>> >>>> On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor >>>> wrote: >>>> >>>>> while make-ing, the program ends with the following -- >>>>> >>>>> >>>>> >>>>> ranlib libmap.a >>>>> ranlib: file: libmap.a(mapthread.o) has no symbols >>>>> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG >>>>> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >>>>> -I/usr/local/include shp2img.c -o shp2img.o >>>>> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG >>>>> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >>>>> -I/usr/local/include shp2img.o -L. -lmap -lgd >>>>> -L/usr/local/lib -lgd -ljpeg -L/usr/local/lib -lpng -lz -ljpeg >>>>> -L/usr/local/lib -lpng -lz -lproj -ljpeg -lm -o shp2img >>>>> ld: Undefined symbols: >>>>> ___gxx_personality_v0 >>>>> make: *** [shp2img] Error 1 >>> > From pkishor at GeoAnalytics.com Thu Oct 10 14:49:58 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 10 Oct 2002 16:49:58 -0500 Subject: [mapserver-users] error building mapserver 3.6.3 on OS X 10.2 Message-ID: ok, so let me get this straight. You are suggesting that I should use the same compiler for everything connected with mapserver, no? Of course, I didn't do that. Here's what I did. with gcc 3.1 libjpeg, libpng, gd, proj4 with gcc 2.x mapserver with gcc 3.1 perl/mapscript shucks. now I've gotto go back, clean up the attic, and redo the who dang thing. thanks for the tip. But what about perl itself. I mean, my Perl is what came with OS X 10.2, and I am sure that was built with gcc 3.1. And same thing with most every other piece of software (such as Apache). Hopefully that won't matter. You think? pk/ > -----Original Message----- > From: Zak James [mailto:zak-ms at aiya.dhs.org] > Sent: Thursday, October 10, 2002 4:37 PM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] error building mapserver 3.6.3 on OS X > 10.2 > > > Make sure that your gd and mapserver were built by the same > compiler/linker as the linking process has changed somewhat. Are you > sure that the right versions are being used by the webserver? I > expected to have to recompile all the supporting libraries but they > seem to work ok since I had stuck with the old 2.x compiler for > mapserver 3.6.3. > > Thanks for the tip on the wiki. > > zj > > On Thursday, Oct 10, 2002, at 12:45 America/Montreal, Puneet Kishor > wrote: > > > dunno if you got my most recent message. Seems like I spoke > too soon. > > I am now getting a load of gd related errors in my Apache log. (you > > should soon get that message... the mapserver listserver is kinda > > slow). > > > > Wrt, OS X build how-to, please consider updating/adding to > > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS > > > > that would consolidate all the work. > > > > Many thanks. > > > > Puneet. > > > > On Thursday, October 10, 2002, at 11:24 AM, Zak James wrote: > > > >> I'm not sure what the problem with gcc 3 is - I think there are > >> problems with it and mapserver on other platforms too. There is a > >> good page on OS X porting issues at > >> http://fink.sourceforge.net/doc/porting/index.php > >> though they don't mention that specifically. The loadable modules > >> stuff they discuss does shed some light on building php mapscript. > >> > >> If you manage to get it to compile with gcc 3, let me know as I'm > >> still working on an OS X build how-to for mapserver. > >> > >> zj > >> > >> On Thursday, Oct 10, 2002, at 11:38 America/Montreal, > Puneet Kishor > >> wrote: > >> > >>> > >>> On Thursday, October 10, 2002, at 09:45 AM, Zak James wrote: > >>> > >>>> With OS X 10.2, the default compiler is now gcc 3.1 > which has some > >>>> trouble with mapserver. The easiest way to get around > the problem > >>>> is to use the built in gcc_select script. As root, gcc_select 2 > >>>> will switch to the old compiler, which is still > available. You can > >>>> switch back by issuing gcc_select 3. > >>>> > >>> > >>> > >>> Thanks Zak. Peachy. It all works now. On a related note, > do you know > >>> where the problem lies? Is it in Apple's implementation > of gcc? Is > >>> this a mapserver-specific problem? or have you > encountered it while > >>> building other programs? I only encountered these problems while > >>> building mapserver. Everything else built fine using gcc3.1. > >>> > >>> Thanks. > >>> > >>> > >>> > >>>> > >>>> On Thursday, Oct 10, 2002, at 00:46 America/Montreal, > Puneet Kishor > >>>> wrote: > >>>> > >>>>> while make-ing, the program ends with the following -- > >>>>> > >>>>> > >>>>> > >>>>> ranlib libmap.a > >>>>> ranlib: file: libmap.a(mapthread.o) has no symbols > >>>>> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > >>>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG > >>>>> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > >>>>> -I/usr/local/include shp2img.c -o shp2img.o > >>>>> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > >>>>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_JPEG -DUSE_GD_PNG > >>>>> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > >>>>> -I/usr/local/include shp2img.o -L. -lmap -lgd > >>>>> -L/usr/local/lib -lgd -ljpeg -L/usr/local/lib -lpng > -lz -ljpeg > >>>>> -L/usr/local/lib -lpng -lz -lproj -ljpeg -lm > -o shp2img > >>>>> ld: Undefined symbols: > >>>>> ___gxx_personality_v0 > >>>>> make: *** [shp2img] Error 1 > >>> > > > From tesimap at hotmail.com Thu Oct 10 15:14:51 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 11 Oct 2002 00:14:51 +0200 Subject: [mapserver-users] JOIN problem Message-ID: Hi all, I have a problem with JOIN. This is my layer: LAYER NAME civici_sed TYPE POINT STATUS ON DATA civici_sed CLASSITEM civico CLASS NAME "Numeri Civici" COLOR 255 255 0 TEMPLATE "civici.html" JOIN NAME civicijoin TABLE pop.dbf FROM civico #field of civici_sed.dbf TO key #field of pop.dbf TYPE MULTIPLE TEMPLATE "civicijoin.html" END END HEADER "civici_header.html" FOOTER "civici_footer.html" END I see values of all fields of "civici_sed.dbf" but i don't see values of "key". This is my html files: CIVICIJOIN.HTML: [key][codvia][civico][subciv] CIVICI.HTML: [codvia][civico][subciv] CIVICI_HEADER.HTML: CIVICI_FOOTER.HTML:
[KEY][CODVIA][CIVICO][SUBCIV]

And I call my layer "civici_sed" in an other file, so: I have any errors? Any helps would be appreciated. Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From S.Kolomeitz at toowoomba.qld.gov.au Thu Oct 10 15:34:25 2002 From: S.Kolomeitz at toowoomba.qld.gov.au (Shaun Kolomeitz) Date: Fri, 11 Oct 2002 08:34:25 +1000 Subject: [mapserver-users] Dynamic web maps using MS Access Message-ID: Dear mapserver-users, I have a mate who is interested in using mapserver to display a dynamic (regularly updated) Access database. We are only talking up to about 10 000 records so I thought he could do something like - 1. Get Access to regularly write the tabular info out to a text file (either as records are updated or at regular intervals) 2. Get a cron job to translate the text file to a shapefile and index it 3. My guess is that mapserver would then read the new data provided it wasn't already involved in reading the file/indexes. My concern is that using this approach there is a potential for file contention/locking to stuff things up. Is there a simpler approach that someone else can think of for using dynamic data from Access to display using mapserver ? (and yes I already asked whether he could drop Access and do it all in mapserver - no go unfortunately). I've searched the archives but there are no examples / suggestions for dynamic mapping from MS Access (personally I'd rather use MySQL or POSTGIS). TIA, Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Phone: 07 4688 6863 Mail to:S.Kolomeitz at toowoomba.qld.gov.au ----------------------------------------------------------- This email message (and any accompanying file attachments) may contain confidential or privileged information and is intended for the sole use of the addressee(s) named above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Toowoomba City Council immediately and destroy any copies of the original message. Any unauthorised review, use, alteration, disclosure or distribution of this email (including any attachments) by an unintended recipient is prohibited. While all care is taken, Council cannot guarantee that this email message (and any accompanying file attachments) are free of viruses. The Council accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature or which represents the personal view of the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisweb at lmi.net Thu Oct 10 15:43:31 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Thu, 10 Oct 2002 15:43:31 -0700 Subject: [mapserver-users] Sudden failure to find libttf.so.4.0 In-Reply-To: <3DA591BA.F4F38633@dmsolutions.ca> References: <1034215964.3da4e21c8c08c@webmail.lmi.net> <3DA591BA.F4F38633@dmsolutions.ca> Message-ID: <1034289811.3da6029340365@webmail.lmi.net> Thanks, Daniel, this makes sense. The confusing thing is, how did I make mapserv work initially? I've never had root access to the system or the Apache httpd.conf (or any other conf) file. I built the mapserv program referencing a mixture of already-installed system-level libraries such as proj4 as well as locally built libraries such as gd and libttf. None of these steps touched the httpd.conf file, so, why does modifying it now fix the LD_LIBRARY_PATH problem? (I've contacted the sys-admin people at the hosting service, so this question is pure curiosity--please ignore if not interested in responding.) Thanks again, Jonathan W. Lowe www.giswebsite.com Quoting Daniel Morissette : > I can't explain why this happened (only your system admin could), but it > is very likely that something changed on the server and > /usr/home/gisweb/local/lib/ is no longer part of the runtime library > path of the user running the web server. > > On Linux, you could edit /etc/ld.so.conf and add this path, and then run > /sbin/ldconfig to rescan the library path. > > You could also use the following in your Apache httpd.conf: > SetEnv LD_LIBRARY_PATH /usr/home/gisweb/local/lib > PassEnv LD_LIBRARY_PATH > > (make sure you include any other required path in LD_LIBRARY_PATH as > well) > > Daniel > > > gisweb at lmi.net wrote: > > > > Mighty List: > > > > Successful install of mapserver version 3.6.1 on our FreeBSD platform put > smiles > > on all faces. Performance and cartographic quality were magnificent. The > build > > consisted of the following options: > > > > > /usr/home/gisweb/www/cgi-bin/mapserv -v > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORT > > S=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=SHAPEFILE > > > > Smiles vanished, however, when mapserver suddenly ceased working yesterday. > The > > apache error_log reports the following: > > > > > tail -3 /usr/home/gisweb/www/logs/error_log > > ld.so failed: Can't find shared library "libttf.so.4.0" > > [Wed Oct 9 18:53:58 2002] [error] [client 32.102.91.129] Premature end of > scrip > > t headers: /usr/home/gisweb/www/cgi-bin/mapserv > > > > And yet, gentle reader, the supposedly missing libttf.so.4.0 library > remains > > where it has always been, exactly where mapserv expects to find it (as > > illustrated by the output of ldd and confirmed by the output of ls -l). > > > > > ldd /usr/home/gisweb/www/cgi-bin/mapserv > > /usr/home/gisweb/www/cgi-bin/mapserv: > > -lm.2 => /usr/lib/libm.so.2.0 (0x2007a000) > > -lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000) > > -lz.2 => /usr/lib/libz.so.2.0 (0x200ad000) > > -ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000) > > -lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000) > > -lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000) > > -ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000) > > -lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000) > > -lc.3 => /usr/lib/libc.so.3.1 (0x2018c000) > > > > > ls -l /usr/home/gisweb/local/lib > > total 1396 > > -rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h > > -rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h > > -rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a > > -rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a > > -rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la > > -rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0 > > > > Who can explain this unusual twist of fate and restore mapserv to its > original > > triumphant glory? > > > > Don't hesitate, gentle reader; speak up! Let the bells of freedom ring! > > > > Ever hopefull, > > > > Jonathan W. Lowe > > www.giswebsite.com > > From rjames57 at yahoo.com Thu Oct 10 15:55:26 2002 From: rjames57 at yahoo.com (randy james) Date: Thu, 10 Oct 2002 15:55:26 -0700 (PDT) Subject: [mapserver-users] Dynamic web maps using MS Access In-Reply-To: Message-ID: <20021010225526.86210.qmail@web12502.mail.yahoo.com> I do not know if this is a help, but i use MSaccess and ODBC to connect to a postgresql database. Cheers --- Shaun Kolomeitz wrote: > Dear mapserver-users, > > I have a mate who is interested in using mapserver > to display a dynamic > (regularly updated) Access database. > > We are only talking up to about 10 000 records so I > thought he could do > something like - > 1. Get Access to regularly write the tabular info > out to a text file > (either as records are updated or at regular > intervals) > 2. Get a cron job to translate the text file to a > shapefile and index it > 3. My guess is that mapserver would then read the > new data provided it > wasn't already involved in reading the file/indexes. > My concern is that using this approach there is a > potential for file > contention/locking to stuff things up. > > Is there a simpler approach that someone else can > think of for using > dynamic data from Access to display using mapserver > ? > (and yes I already asked whether he could drop > Access and do it all in > mapserver - no go unfortunately). > > I've searched the archives but there are no examples > / suggestions for > dynamic mapping from MS Access (personally I'd > rather use MySQL or > POSTGIS). > > TIA, > Shaun Kolomeitz > > eBusiness Manager, Toowoomba City Council > Phone: 07 4688 6863 > Mail to:S.Kolomeitz at toowoomba.qld.gov.au > ----------------------------------------------------------- > This email message (and any accompanying file > attachments) may contain > confidential or privileged information and is > intended for the sole use of > the addressee(s) named above. If you are not the > intended recipient, or > the person responsible for delivering this message > to the intended > recipient, please notify Toowoomba City Council > immediately and destroy > any copies of the original message. Any > unauthorised review, use, > alteration, disclosure or distribution of this email > (including any > attachments) by an unintended recipient is > prohibited. While all care is > taken, Council cannot guarantee that this email > message (and any > accompanying file attachments) are free of viruses. > The Council accepts > no responsibility for the content of any email which > is sent by an > employee which is of a personal nature or which > represents the personal > view of the sender. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From gisweb at lmi.net Thu Oct 10 15:57:02 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Thu, 10 Oct 2002 15:57:02 -0700 Subject: [mapserver-users] Sudden failure to find libttf.so.4.0 In-Reply-To: <3DA591BA.F4F38633@dmsolutions.ca> References: <1034215964.3da4e21c8c08c@webmail.lmi.net> <3DA591BA.F4F38633@dmsolutions.ca> Message-ID: <1034290621.3da605be05849@webmail.lmi.net> List: Daniel's suggestion to add the SetEnv LD_LIBRARY_PATH /my/local/lib (shown below) was successful. Mapserv is back in service! Thanks, Daniel! Regards, Jonathan W. Lowe www.giswebsite.com Quoting Daniel Morissette : > I can't explain why this happened (only your system admin could), but it > is very likely that something changed on the server and > /usr/home/gisweb/local/lib/ is no longer part of the runtime library > path of the user running the web server. > > On Linux, you could edit /etc/ld.so.conf and add this path, and then run > /sbin/ldconfig to rescan the library path. > > You could also use the following in your Apache httpd.conf: > SetEnv LD_LIBRARY_PATH /usr/home/gisweb/local/lib > PassEnv LD_LIBRARY_PATH > > (make sure you include any other required path in LD_LIBRARY_PATH as > well) > > Daniel > > > gisweb at lmi.net wrote: > > > > Mighty List: > > > > Successful install of mapserver version 3.6.1 on our FreeBSD platform put > smiles > > on all faces. Performance and cartographic quality were magnificent. The > build > > consisted of the following options: > > > > > /usr/home/gisweb/www/cgi-bin/mapserv -v > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORT > > S=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=SHAPEFILE > > > > Smiles vanished, however, when mapserver suddenly ceased working yesterday. > The > > apache error_log reports the following: > > > > > tail -3 /usr/home/gisweb/www/logs/error_log > > ld.so failed: Can't find shared library "libttf.so.4.0" > > [Wed Oct 9 18:53:58 2002] [error] [client 32.102.91.129] Premature end of > scrip > > t headers: /usr/home/gisweb/www/cgi-bin/mapserv > > > > And yet, gentle reader, the supposedly missing libttf.so.4.0 library > remains > > where it has always been, exactly where mapserv expects to find it (as > > illustrated by the output of ldd and confirmed by the output of ls -l). > > > > > ldd /usr/home/gisweb/www/cgi-bin/mapserv > > /usr/home/gisweb/www/cgi-bin/mapserv: > > -lm.2 => /usr/lib/libm.so.2.0 (0x2007a000) > > -lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000) > > -lz.2 => /usr/lib/libz.so.2.0 (0x200ad000) > > -ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000) > > -lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000) > > -lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000) > > -ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000) > > -lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000) > > -lc.3 => /usr/lib/libc.so.3.1 (0x2018c000) > > > > > ls -l /usr/home/gisweb/local/lib > > total 1396 > > -rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h > > -rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h > > -rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a > > -rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a > > -rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la > > -rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0 > > > > Who can explain this unusual twist of fate and restore mapserv to its > original > > triumphant glory? > > > > Don't hesitate, gentle reader; speak up! Let the bells of freedom ring! > > > > Ever hopefull, > > > > Jonathan W. Lowe > > www.giswebsite.com > > From joe at otsys.com Thu Oct 10 16:49:46 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 10 Oct 2002 16:49:46 -0700 Subject: [mapserver-users] truetype symbols In-Reply-To: References: Message-ID: <20021010234946.GC28612@otsys.com> The font file I am attempting to use is one that ESRI released some time ago. Specifically it is ESRITransportationMunicipal.ttf. I believe that it is UNICODE mapped. I tried the constant character 'e' as well as CHARACTER "e". When I load the font file into gfontview I can see that the airplane image that I am hoping to use is encoded as 'e'. Have I gone wrong somewhere? Cordially, Joe Bussell On Time Systems www.TrafficDodger.com On Thu, Oct 10, 2002 at 04:31:30PM -0500, Steve Lime wrote: > First thing to check is the font itself. Does it have a UNICODE > character mapping? > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Joe Bussell 10/10/02 03:36PM >>> > Greetings Listers and Lurkers, > I have just made a first attempt to apply a truetype symbol with > no > success. I have data for airport locations in a group of shapefiles > tied together with a tileIndex. Presently I use a user defined circle > symbol declared as type ELIPSE. I downloaded a ttf font set that > included an airplane image as one of the characters. I believed form > the documentation site that I could use this symbol in my mapfile as > an > R-value for the SYMBOL object in a CLASS object. > > I defined my symbol in my mapfile as such: > > SYMBOL > NAME "airportIcon" > TYPE TRUETYPE > FONT transport > FILLED true > ANTIALIAS true > CHARACTER "e" > END > > In my fontlist file I declare transport to point to the path of the > font > that I downloaded. I verified that the font was available by writing > a > label with it (looked weird, but it did what I wanted). I attempted to > > make use of the defined symbol in the following mapfile snippet: > > LAYER > NAME pointsOfInterrest > GROUP defaultLayer > TYPE POINT > TILEINDEX td_pi.shp # DATA usa06037______pi > STATUS ON > LABELITEM "NAME" > CLASSITEM "FEATTYP" > MAXSCALE 150000 > ... snip ... > CLASS > # airport > EXPRESSION ( ( [FEATTYP] = 7383 ) ) > NAME "Airport" > BACKGROUNDCOLOR 255 255 255 > COLOR 0 0 0 > OUTLINECOLOR 255 0 0 > SIZE 20 > SYMBOL "airportIcon" > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS TRUE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > ... snip ... > END > > The feature does not appear, nor does its label. If I replace > "airportIcon" with "circle" I get the results that we currently > display. > Any ideas on how to get ttf symbols to work? > - > > Cordially, > > Joe Bussell > On Time Systems > www.TrafficDodger.com > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From steveb at bundaberg.qld.gov.au Thu Oct 10 18:29:17 2002 From: steveb at bundaberg.qld.gov.au (Steven Bowden) Date: 11 Oct 2002 11:29:17 +1000 Subject: [mapserver-users] 3.6.3 Compile problems/errors In-Reply-To: <3DA59A10.E2D5E038@dmsolutions.ca> References: <1034123071.11048.32.camel@homer.bundabergcity.qld.gov.au> <3DA453BF.CC51B2CE@dmsolutions.ca> <1034205400.25435.17.camel@homer.bundabergcity.qld.gov.au> <3DA59A10.E2D5E038@dmsolutions.ca> Message-ID: <1034299757.16193.6.camel@homer.bundabergcity.qld.gov.au> Thanks for you help Daniel. I found the problem was the same as what Jean-Francois was having, the libmap.a file being in /usr/local/lib. I deleted the file, recompiled and everything is now sweet. Thanks again Steve On Fri, 2002-10-11 at 01:17, Daniel Morissette wrote: > Steven Bowden wrote: > > Daniel, > I have got IMAGEPATH and IMAGETMP set in the map file. Here is the > extract from my map file > WEB > LOG /var/www/html/blis/blis.log > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > WMS_TITLE "BLIS" > WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information > System)." > WMS_ACCESSCONSTRAINTS none > END > END > > I changed the working path (/var/www/html/blis) to writable and it > then saved the tmp images to this directory even though IMAGEPATH was > was set to /var/www/html/tmp/ in the map file. > > Any thoughts? > Steve > This is very odd. Can you check that you don't have a second IMAGEPATH further down in your mapfile? Also, try printing the value of $map->web->imagepath immediately after the call to ms_newMapObj() to find out if it reads the right value. Then print this value again just before the call to SaveWebImage() ... if the value is empty before saveWebImage() then it must be your script that changed the value somewhere. If the value is still valid then it is likely a bug in MapScript and the best way to troubleshoot this for us would be to get a small sample app with scripts and data that reproduces this. But since nobody else ran into that, it seems unlikely to be a bug and I would check for a problem in the mapfile or PHP script first. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rich at greenwoodmap.com Thu Oct 10 18:40:40 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Thu, 10 Oct 2002 19:40:40 -0600 Subject: [mapserver-users] JOIN problem In-Reply-To: Message-ID: <5.1.0.14.0.20021010193843.00a74ff8@mail.greenwoodmap.com> Join is not supported in mapserver 3.5 or 3.6, but it will be back in 3.7. If you really need join, then you should use 3.3, which is a very solid release, wait a bit for 3.7. Rich At 12:14 AM 10/11/2002 +0200, you wrote: >Hi all, >I have a problem with JOIN. >This is my layer: > >LAYER > NAME civici_sed > TYPE POINT > STATUS ON > DATA civici_sed > CLASSITEM civico > CLASS > NAME "Numeri Civici" > COLOR 255 255 0 > TEMPLATE "civici.html" > JOIN > NAME civicijoin > TABLE pop.dbf > FROM civico #field of civici_sed.dbf > TO key #field of pop.dbf > TYPE MULTIPLE > TEMPLATE "civicijoin.html" > END > END > HEADER "civici_header.html" > FOOTER "civici_footer.html" >END > > >I see values of all fields of "civici_sed.dbf" but i don't see values of >"key". > > >This is my html files: > >CIVICIJOIN.HTML: >[key][codvia][civico][subciv] > >CIVICI.HTML: >[codvia][civico][subciv] > >CIVICI_HEADER.HTML: > >bgcolor=#CCCCCC> > >CIVICI_FOOTER.HTML: >
[KEY][CODVIA][CIVICO][SUBCIV]

> >And I call my layer "civici_sed" in an other file, so: > > > >I have any errors? >Any helps would be appreciated. >Ivan > > > >_________________________________________________________________ >MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti >un account? http://www.hotmail.it > Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From joe at otsys.com Thu Oct 10 21:06:31 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 10 Oct 2002 21:06:31 -0700 Subject: [mapserver-users] Announcing 3.6.3 -- PERL 5.8 In-Reply-To: <20021008225919.GG4938@otsys.com> References: <20021008225919.GG4938@otsys.com> Message-ID: <20021011040631.GA6424@otsys.com> So, the world of computing is still a moving target. With the latest rev of PERL comes changes to the C++ interface. If you hope to compile mapscript under PERL 5.8 you must make a hand hack to the generated SWIG code in mapscript_wrap.c Specifically, the macro XS(boot_mapscript) must be declared if the PERL object is not declared. In my world line 431 which reads SWIGEXPORT(void) boot_mapscript(CV* cv); should be replaced with XS(boot_mapscript); Maybe I need to update my SWIG, I will look into this. For anyone else who is using PERL5.8 under Debian Linux I hope this circumvents any headaches you may encounter. Cordially, Joe Bussell On Time Systems www.trafficdodger.com PS: Dan Keith caught this one, I'm just passing on the info... On Tue, Oct 08, 2002 at 03:59:19PM -0700, Joe Bussell wrote: > What are the dependencies for PERL mapscript? Seems this all worked > before... > > > .../mapserver-3.6.3/mapscript/perl$ make > cp mapscript.pm blib/lib/mapscript.pm > cc -c -I/mnt/data/td/mapserver-3.6.3 -I/usr/include -I/home/joe/gdal/port -I/home/joe/gdal/core -I/home/joe/gdal/ogr -I/home/joe/gdal/ogr/ogrsf_frmts -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.8.0/CORE" -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL mapscript_wrap.c > mapscript_wrap.c: In function `_swig_create_magic': > mapscript_wrap.c:416: warning: assignment from incompatible pointer type > mapscript_wrap.c:417: warning: assignment from incompatible pointer type > mapscript_wrap.c: At top level: > mapscript_wrap.c:16349: conflicting types for `boot_mapscript' > mapscript_wrap.c:431: previous declaration of `boot_mapscript' > make: *** [mapscript_wrap.o] Error 1 > > > > > > > > > > > > On Tue, Oct 08, 2002 at 03:00:14PM -0500, Steve Lime wrote: > > Greetings folks: The MapServer development team is pleased to announce > > the release of version 3.6.3. It contains a a number of bug fixes and if > > possible users are encouraged to upgrade now. The new version is > > available at the usual place on the MapServer website. > > > > Pre-compiled binary versions are available for download at: > > > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.2-libwww.zip > > > > http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww.zip > > > > Enjoy- Steve > > > > A summary of changes from HISTORY.TXT: > > > > Version 3.6.3 (2002-10-07) > > -------------------------- > > > > - Fixed problem with numeric labels with OGR's STYLEITEM AUTO (bug > > 185) > > > > - PHP MapScript: fixed set() method on all object types for parameters > > of type float and string. The param value was not forced to the > > right > > type and this could lead to unexpected values being set or crashes. > > > > - Fixed bug 174 - improperly terminated string buffer in > > msWMSException() > > > > - Fixed problem with 'gcc undef' appearing in the > > mapscript/php3/Makefile > > on FreeBSD. Also added --enable-internal-ld-detect configure switch > > to > > force use of an internal configure macro to detect ld command and > > args > > in case the default doesn't work (this is for mapscript/php3/Makefile > > only) > > > > - Fixed potential crash with WMS GML query output (missing > > msInitSHape() in > > msGMLWriteQuery()) > > > > - Fixed Windows-specific problem where WMS capabilities were always > > returned > > as 1.0.0 even if 1.1.0 was requested > > > > Version 3.6.2 (2002-07-08) > > -------------------------- > > > > - Added msTokenizeMap() in MapScript (and via 'mapserv -t test.map') > > > > - Added map->setFontSet() > > > > - Fixed Windows-specific problem with PHP MapScript ms_newMapObj("") > > called with empty filename. > > > > - Fixed problem with double 'gcc' appearing in mapscript/php3/Makefile > > on > > some systems. > > > > www.TrafficDodger.com From pradeepkumar at infotech.stph.net Thu Oct 10 22:28:54 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Fri, 11 Oct 2002 10:58:54 +0530 Subject: [mapserver-users] unsubscribe Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From stepan.kafka at centrum.cz Fri Oct 11 01:04:39 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 11 Oct 2002 10:04:39 +0200 Subject: [mapserver-users] Dynamic web maps using MS Access In-Reply-To: Message-ID: <000d01c270fc$d9013640$7e3c2fc3@HSGIS> Hi Shaun, there is not direct support for MS Access data in MS as I know. But you may use mapscript to build application showing your data on the map. We use this approach for points of interest stored in MySQL database at this site: http://www.kutnahora.info. You can find also Perl example at MapServer test suite http://maps.dnr.state.mn.us/mapserver_demos/tests/ - see live earthquake mapping. Stepan Kafka Help Service Remote Sensing tel: +420-327514118 mailto:kafka at email.cz http://www.bnhelp.cz -----Puvodn? zpr?va----- Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Shaun Kolomeitz Odesl?no: 11. r?jna 2002 0:34 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] Dynamic web maps using MS Access Dear mapserver-users, I have a mate who is interested in using mapserver to display a dynamic (regularly updated) Access database. We are only talking up to about 10 000 records so I thought he could do something like - 1. Get Access to regularly write the tabular info out to a text file (either as records are updated or at regular intervals) 2. Get a cron job to translate the text file to a shapefile and index it 3. My guess is that mapserver would then read the new data provided it wasn't already involved in reading the file/indexes. My concern is that using this approach there is a potential for file contention/locking to stuff things up. Is there a simpler approach that someone else can think of for using dynamic data from Access to display using mapserver ? (and yes I already asked whether he could drop Access and do it all in mapserver - no go unfortunately). I've searched the archives but there are no examples / suggestions for dynamic mapping from MS Access (personally I'd rather use MySQL or POSTGIS). TIA, Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Phone: 07 4688 6863 Mail to:S.Kolomeitz at toowoomba.qld.gov.au ----------------------------------------------------------- This email message (and any accompanying file attachments) may contain confidential or privileged information and is intended for the sole use of the addressee(s) named above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Toowoomba City Council immediately and destroy any copies of the original message. Any unauthorised review, use, alteration, disclosure or distribution of this email (including any attachments) by an unintended recipient is prohibited. While all care is taken, Council cannot guarantee that this email message (and any accompanying file attachments) are free of viruses. The Council accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature or which represents the personal view of the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From babak.tehrani at geosysnet.de Fri Oct 11 02:03:36 2002 From: babak.tehrani at geosysnet.de (Babak Toloue Tehrani) Date: 11 Oct 2002 11:03:36 +0200 Subject: [mapserver-users] make: *** [shp2img] Fehler 1 Message-ID: <1034327016.2954.22.camel@eisbaer> Hello, I am trying to compile Mapserver 3.6.3 on a Redhat 8 Linux. The Makefile builds without complaint. When I run 'make' I get the following errors. .... gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include shp2img.c -o shp2img.o cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [shp2img] Fehler 1 Thanks for help, Babak From hrz at geodata.soton.ac.uk Fri Oct 11 02:04:30 2002 From: hrz at geodata.soton.ac.uk (Homme Zwaagstra) Date: Fri, 11 Oct 2002 10:04:30 +0100 (BST) Subject: [mapserver-users] Dynamic web maps using MS Access In-Reply-To: <20021010225526.86210.qmail@web12502.mail.yahoo.com> from "randy james" at Oct 10, 2002 03:55:26 PM Message-ID: <200210110904.g9B94Uu31341@betsy.geodata.soton.ac.uk> > > I do not know if this is a help, but i use MSaccess > and ODBC to connect to a postgresql database. > We use this method as well to good effect; a pretty seamless and transparent integration between Access and Postgres can be created. See http://odbc.postgresql.org for the psqlODBC driver. With a little VB, Perl, whatever you can make the process of synchronising the Access and Postgres databases a 1 click (or automatic) job. If security is an issue you can use an SSH client in conjunction with port forwarding to create an encrypted connection as psqlODBC does not yet support SSH. Check out the excellent PuTTY SSH client from http://www.chiark.greenend.org.uk/~sgtatham/putty/ (specifically the plink executable) if interested. > Cheers > > --- Shaun Kolomeitz > wrote: > > Dear mapserver-users, > > > > I have a mate who is interested in using mapserver > > to display a dynamic > > (regularly updated) Access database. > > > > We are only talking up to about 10 000 records so I > > thought he could do > > something like - > > 1. Get Access to regularly write the tabular info > > out to a text file > > (either as records are updated or at regular > > intervals) > > 2. Get a cron job to translate the text file to a > > shapefile and index it > > 3. My guess is that mapserver would then read the > > new data provided it > > wasn't already involved in reading the file/indexes. > > My concern is that using this approach there is a > > potential for file > > contention/locking to stuff things up. > > > > Is there a simpler approach that someone else can > > think of for using > > dynamic data from Access to display using mapserver > > ? > > (and yes I already asked whether he could drop > > Access and do it all in > > mapserver - no go unfortunately). > > > > I've searched the archives but there are no examples > > / suggestions for > > dynamic mapping from MS Access (personally I'd > > rather use MySQL or > > POSTGIS). > > > > TIA, > > Shaun Kolomeitz > > > > eBusiness Manager, Toowoomba City Council > > Phone: 07 4688 6863 > > Mail to:S.Kolomeitz at toowoomba.qld.gov.au From pyro-x at ixine.com Fri Oct 11 03:46:49 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Fri, 11 Oct 2002 12:46:49 +0200 Subject: [mapserver-users] Antialiased Lines in mapserver? References: Message-ID: <3DA6AC19.8060700@ixine.com> Zak James wrote: > > On Thursday, Oct 3, 2002, at 07:22 America/Montreal, David Monterroso > Cabello wrote: > >> Hi there! >> >> I'm developing a *streetmap* application using mapserver, and >> although i like the output i get, it still looks bad cause those >> jagged lines. Is there any way to have antialiased lines in >> mapserver?, i saw in some old posts that it was a GD matter, and that >> even in 2.0 versions it still doesn't support antialias. Does >> somebody know if there is another way to do antialiasing?. I tried to >> render a double sized image and then reduced it with ImageMagick but >> the results were awful. >> And finally, a question for developers, would it be possible to >> switch to ImageMagick for vector rendering?, that library render fine >> antialiased lines =), althought i dunno if it support everything >> mapserver needs. > > > This might not be what you had in mind, but preliminary PDF support > has recently been added to version 3.7. Since it writes vector data as > vectors, anti-aliasing is left up to the viewer. Adobe Acrobat Reader > has an option to do it, for instance. If you use something like > ghostscript or Illustrator, you could save to a raster format with > antialiasing. Yes, i know about it. I haven't tried it yet, but the mapserver output will be displayed in a html interface so i can only use the classic raster formats (gif,png & jpg). But i will look at it, cause it would be great for saving a map on the hard disk and then read it offline. > > If you don't want to use a dev version, you can do the same thing with > the mapserver 3.6 PDF support (try the shp2pdf utility). Greets David Monterroso Cabello From pyro-x at ixine.com Fri Oct 11 04:20:39 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Fri, 11 Oct 2002 13:20:39 +0200 Subject: [mapserver-users] Antialiased Lines in mapserver? References: <200210031442.g93EgP829492@yogi.medinaco.net> Message-ID: <3DA6B407.5030004@ixine.com> Lowell Filak wrote: >While it's not antialiasing you could play with different colors and sizes for symbol & overlaysymbol which may help the lines to visually blur. >Lowell F. > > Ummm let see if i understood your suggestion. You say i would get something that looks better rendering a shapefile with a color and then rendering the same shapefile just a little bigger over the first one with some transparency?. Can you send me an example or something you made using this trick that make the map looks better?. Many thanx Greets -- David Monterroso Cabello From Bjarni.Pjetursson at tietoenator.com Fri Oct 11 04:34:42 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Fri, 11 Oct 2002 13:34:42 +0200 Subject: [mapserver-users] Data source question Message-ID: <18E0CC75605BD411907800508B8BB8D00165F047@odin.enator.dk> Hi all, hope this question is okay, allthough not entirely about MapServer: I'm looking for a world map with just the essential features (main roads and larger cities). Can anyone recommend, where to find this data (free or commercial)? I've allready tried: http://www.directionsmag.com/datacenter and http://www.gisdatadepot.com Regards Bjarni Thor Pjetursson From Grit.Schuster at uni-vechta.de Fri Oct 11 04:36:16 2002 From: Grit.Schuster at uni-vechta.de (Schuster) Date: Fri, 11 Oct 2002 13:36:16 +0200 Subject: [mapserver-users] PythonMapscript Installation under Windows Message-ID: <20021011113617.1C2F2D3C013@s04.kiz.uni-vechta.de> Hi everybody, I tried to compile pythonMapscript (MS 3.6.2) under Windows 2000 with Python 2.1.3, SWIG 1.3.15 and MSVC7 compiler, using Norman Vine's setup.py script. I tried to modified it to reflect windows requirements concerning directories and libraries. When I run the setup, there is a problem when building the MapScriptc extension. I get the following error (translated from german): mapscript_wrap.obj: error LNK2001: unresolved external Symbol initMapscriptc build\temp.win32-2.1\Release\MapScriptc.lib: fatal error LNK 1120: 1 unresolved external references LINK : fatal error LNK1141: build export file error error: command 'link.exe failed with exit status 1141 Has anybody had simliar problems or gathered experience building the mapscript extension for python under windows? I attach below the modified setup script in case someone wants to take a look at it. TIA, Grit ------------------------ setup.py: #! /usr/bin/env python # Distutils setup for UMN Mapserver mapscript v.3.5 # Norman Vine 11/10/2001 # On cygwin this will require my Distutils mods available @ # http://www.vso.cape.com/~nhv/files/python/mydistutils.txt # Should work as is on 'Unix' like systems # needs testing on Windows compilers other then Cygwin # To Install # build mapserver # Copy this file to $MAPSERVER_SRC / mapscript / python # invoke as ./setup.py install # should work on any python version with Distutils __revision__ = "$Id: mapscript_setup.py,v 1.5 2001/11/10 15:22:02 nhv Exp $" from distutils.core import setup, Extension from distutils.spawn import spawn from distutils.dir_util import mkpath from distutils.file_util import copy_file from distutils.sysconfig import parse_makefile import os,sys from os import path noisy=1 swig_cmd = ["d:\ms\swig-1.3.15\swig", "-python", "-shadow", "-module", "MapScript", "-o", "./mapscript_wrap.c", "../mapscript.i" ] try: spawn(swig_cmd, verbose=noisy) except: print "\nSwig Error" raise sys.exit() # make package directory and package __init__ script mkpath("mapscript") init_file=open(path.join("mapscript","__init__.py"),"w") init_file.write("from MapScript import *\n") init_file.close() copy_file("MapScript.py", path.join("mapscript","MapScript.py"), verbose=noisy) # change to reflect the gd version you are using gd_dir="gd-1.8.4" ms_dir=path.join("D:\ms\mapserver-3.6.2") local_dir="D:\ms" freetype="freetype\lib" png_dir="lpng124" proj="proj\src" tiff="tiff-v3.5.7\libtiff" oracle_inc="d:\oracle\ora81\oci\include" oracle_lib="d:\oracle\ora81\oci\lib\msvc" regex_dir="regex-0.12" setup (# Distribution meta-data name = "pyMapScript", version = "3.6", description = "pre release", author = "Steve Lime", author_email = "steve.lime at dnr.state.mn.us", url = "http://mapserver.gis.umn.edu/", # Description of the modules and packages in the distribution packages = ['mapscript'], ext_modules = [Extension('MapScriptc', ['mapscript_wrap.c'], define_macros=[('TIFF_STATIC',),('JPEG_STATIC',),('ZLIB_STATIC',), ('IGNORE_MISSING_DATA',),('USE_EPPL',),('USE_PROJ',),('USE_PROJ_API_H',), ('USE_WMS',),('USE_WMS_LYR',),('USE_TIFF',),('USE_JPEG',),('USE_GD_PNG',),('USE_ G D_GIF',),('USE_GD_JPEG',), ('USE_GD_WBMP',),('USE_GDAL',),('USE_ORACLESPATIAL',)], include_dirs=[ms_dir, path.join(local_dir,gd_dir), path.join(local_dir,freetype), path.join(local_dir,tiff), path.join(local_dir,oracle_inc), path.join(local_dir,proj), path.join(local_dir,regex_dir)], library_dirs=[ms_dir, path.join(local_dir,gd_dir), path.join(local_dir,freetype), path.join(local_dir,tiff), path.join(local_dir,oracle_lib), path.join(local_dir,proj), path.join(local_dir,png_dir)], extra_objects=[path.join(ms_dir,'mapserver.lib'), path.join(local_dir,'gdal\ogr\ogrsf_frmts\ogrsf_frmts.lib'), path.join(local_dir,'gdal\gdal.lib'), path.join(local_dir,'gdal\ogr\ogr.lib'), path.join(local_dir,'gdal\port\cpl.lib')], # libraries=['gd','gdft','freetype','ttf','proj','pq','png','z'],), libraries=['gd','freetype','libpng','proj','zlib','oci'],), ] ) -- From dlowther at ou.edu Fri Oct 11 04:33:41 2002 From: dlowther at ou.edu (Lowther, David W) Date: Fri, 11 Oct 2002 06:33:41 -0500 Subject: [mapserver-users] JPG Raster Problems Message-ID: I am trying to use JPG images as raster layers and get the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 I have the image as a TIF also (same coordinates / projection / etc...) and it works ok. I have looked through the archives and it seems like this problem may be a result of not having something right with GDAL, but thats just a best guess. Any ideas or help would be much appreciated. Dave Lowther From marichalperez at yahoo.es Fri Oct 11 04:49:07 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Fri, 11 Oct 2002 12:49:07 +0100 Subject: [mapserver-users] Filling with symbol in Linux Message-ID: Hi. I've got a simple symbol file in my application: Symbol Name 'horiz' Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END If I want a layer to be fill with this symbol, then I do: LAYER NAME "gc" DATA gc_isla STATUS ON TYPE POLYGON CLASS NAME "Gran Canaria" SYMBOL 1 <---- Here the symbol COLOR 231 199 87 OUTLINECOLOR 150 150 150 END END Ok, it works in Windows. But when I put my application in Red Hat Linux, MapServer seems to be unable to render this layer. The layer appears then completely white. No error message is displayed. What's the matter?. The layers are rendered right with solid colors, but not with patterns via a symbol file. Why?. Help me please!! :( Manuel Marichal P?rez marichalperez at yahoo.es _______________________________________________________________ Copa del Mundo de la FIFA 2002 El ?nico lugar de Internet con v?deos de los 64 partidos. ?Ap?ntante ya! en http://fifaworldcup.yahoo.com/fc/es/ From nhv at cape.com Fri Oct 11 05:35:19 2002 From: nhv at cape.com (Norman Vine) Date: Fri, 11 Oct 2002 08:35:19 -0400 Subject: [mapserver-users] PythonMapscript Installation under Windows References: <20021011113617.1C2F2D3C013@s04.kiz.uni-vechta.de> Message-ID: <01ee01c27122$a9601bb0$4f3dba8c@sfdev3> Schuster writes: > > I tried to compile pythonMapscript (MS 3.6.2) under Windows 2000 with Python > > 2.1.3, SWIG 1.3.15 and MSVC7 compiler, using Norman Vine's setup.py script. > I tried to modified it to reflect windows requirements concerning directories > and > > libraries. > When I run the setup, there is a problem when building the MapScriptc > extension. > I get the following error (translated from german): > > mapscript_wrap.obj: error LNK2001: unresolved external Symbol initMapscriptc > build\temp.win32-2.1\Release\MapScriptc.lib: fatal error LNK 1120: 1 unresolved Try changing your setup.py lines ## from ## # make package directory and package __init__ script mkpath("mapscript") init_file=open(path.join("mapscript","__init__.py"),"w") init_file.write("from MapScript import *\n") init_file.close() ## to ## # make package directory and package __init__ script mkpath("mapscript") init_file=open(path.join("mapscript","__init__.py"),"w") init_file.write("from _mapscript import *\n") init_file.close() ## AND from ## # Description of the modules and packages in the distribution packages = ['mapscript'], ext_modules = [Extension('MapScriptc', ['mapscript_wrap.c'], ## to ## # Description of the modules and packages in the distribution packages = ['mapscript'], ext_modules = [ Extension('_mapscript', ['mapscript_wrap.c'], This is due to naming conventions change recent swig distributions Please let us know if this works ! Norman From rich at greenwoodmap.com Fri Oct 11 05:59:37 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Fri, 11 Oct 2002 06:59:37 -0600 Subject: [mapserver-users] truetype symbols In-Reply-To: <20021010234946.GC28612@otsys.com> References: Message-ID: <5.1.0.14.0.20021011065805.00a79570@mail.greenwoodmap.com> At 04:49 PM 10/10/2002 -0700, you wrote: >The font file I am attempting to use is one that ESRI released some time >ago. Specifically it is ESRITransportationMunicipal.ttf. I believe >that it is UNICODE mapped. I tried the constant character 'e' as well >as CHARACTER "e". When I load the font file into gfontview I can >see that the airplane image that I am hoping to use is encoded as 'e' Don't define the symbol in the map file, define it in the symbol file (just move the definition from the map file to the symbol file). Rich >. > >Have I gone wrong somewhere? > >Cordially, > >Joe Bussell >On Time Systems >www.TrafficDodger.com > >On Thu, Oct 10, 2002 at 04:31:30PM -0500, Steve Lime wrote: > > First thing to check is the font itself. Does it have a UNICODE > > character mapping? > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Joe Bussell 10/10/02 03:36PM >>> > > Greetings Listers and Lurkers, > > I have just made a first attempt to apply a truetype symbol with > > no > > success. I have data for airport locations in a group of shapefiles > > tied together with a tileIndex. Presently I use a user defined circle > > symbol declared as type ELIPSE. I downloaded a ttf font set that > > included an airplane image as one of the characters. I believed form > > the documentation site that I could use this symbol in my mapfile as > > an > > R-value for the SYMBOL object in a CLASS object. > > > > I defined my symbol in my mapfile as such: > > > > SYMBOL > > NAME "airportIcon" > > TYPE TRUETYPE > > FONT transport > > FILLED true > > ANTIALIAS true > > CHARACTER "e" > > END > > > > In my fontlist file I declare transport to point to the path of the > > font > > that I downloaded. I verified that the font was available by writing > > a > > label with it (looked weird, but it did what I wanted). I attempted to > > > > make use of the defined symbol in the following mapfile snippet: > > > > LAYER > > NAME pointsOfInterrest > > GROUP defaultLayer > > TYPE POINT > > TILEINDEX td_pi.shp # DATA usa06037______pi > > STATUS ON > > LABELITEM "NAME" > > CLASSITEM "FEATTYP" > > MAXSCALE 150000 > > ... snip ... > > CLASS > > # airport > > EXPRESSION ( ( [FEATTYP] = 7383 ) ) > > NAME "Airport" > > BACKGROUNDCOLOR 255 255 255 > > COLOR 0 0 0 > > OUTLINECOLOR 255 0 0 > > SIZE 20 > > SYMBOL "airportIcon" > > LABEL > > ANGLE AUTO > > ANTIALIAS TRUE > > BUFFER 2 > > COLOR 0 0 0 > > WRAP " " > > FONT Arial > > FORCE TRUE > > MAXSIZE 256 > > MINDISTANCE 10 > > MINSIZE 4 > > OFFSET 0 0 > > PARTIALS TRUE > > POSITION lr > > SIZE 6 > > TYPE TRUETYPE > > END > > END > > ... snip ... > > END > > > > The feature does not appear, nor does its label. If I replace > > "airportIcon" with "circle" I get the results that we currently > > display. > > Any ideas on how to get ttf symbols to work? > > - > > > > Cordially, > > > > Joe Bussell > > On Time Systems > > www.TrafficDodger.com > > > > > >-- > >Cordially, > >Joe Bussell >On Time Systems >www.TrafficDodger.com Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From lfilak at medinaco.org Fri Oct 11 06:02:18 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 11 Oct 2002 09:02:18 -0400 Subject: [mapserver-users] Dynamic web maps using MS Access Message-ID: <200210111302.g9BD26832324@yogi.medinaco.net> Allowing for the other suggestions, if you still prefer going the ascii file route there happens to be an article in the October SysAdmin dealing with Access, Filemaker, & Excel -> MySQL, Postgres. All the code can be downloaded directly at: http://www.sysadminmag.com/code/ -> 2002 -> October Lowell F. The following message was sent by "Shaun Kolomeitz" on Fri, 11 Oct 2002 08:34:25 +1000. > Dear mapserver-users, > > I have a mate who is interested in using mapserver to display a dynamic > (regularly updated) Access database. > > We are only talking up to about 10 000 records so I thought he could do > something like - > 1. Get Access to regularly write the tabular info out to a text file > (either as records are updated or at regular intervals) > 2. Get a cron job to translate the text file to a shapefile and index it > 3. My guess is that mapserver would then read the new data provided it > wasn't already involved in reading the file/indexes. > My concern is that using this approach there is a potential for file > contention/locking to stuff things up. > > Is there a simpler approach that someone else can think of for using > dynamic data from Access to display using mapserver ? > (and yes I already asked whether he could drop Access and do it all in > mapserver - no go unfortunately). > > I've searched the archives but there are no examples / suggestions for > dynamic mapping from MS Access (personally I'd rather use MySQL or > POSTGIS). > > TIA, > Shaun Kolomeitz > > eBusiness Manager, Toowoomba City Council > Phone: 07 4688 6863 > Mail to:S.Kolomeitz at toowoomba.qld.gov.au > ----------------------------------------------------------- > This email message (and any accompanying file attachments) may contain > confidential or privileged information and is intended for the sole use of > the addressee(s) named above. If you are not the intended recipient, or > the person responsible for delivering this message to the intended > recipient, please notify Toowoomba City Council immediately and destroy > any copies of the original message. Any unauthorised review, use, > alteration, disclosure or distribution of this email (including any > attachments) by an unintended recipient is prohibited. While all care is > taken, Council cannot guarantee that this email message (and any > accompanying file attachments) are free of viruses. The Council accepts > no responsibility for the content of any email which is sent by an > employee which is of a personal nature or which represents the personal > view of the sender. From pkishor at GeoAnalytics.com Fri Oct 11 06:46:25 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 11 Oct 2002 08:46:25 -0500 Subject: [mapserver-users] make: *** [shp2img] Fehler 1 In-Reply-To: <1034327016.2954.22.camel@eisbaer> Message-ID: this is an issue with gcc 3.1 compiler. seems like you got that on rh8. to the developers -- not knowing anything about this, one of the best qualities of mapserver thus far was that it had no platform-specific code... pure ansi c thus far (again, I might be wrong in this, so feel free to disabuse me of that notion). it seems with 3.6.3 onward, mapserver has become compiler dependent. this throws a bunch of us off. first it was just us macos x guys. Now it seems rh8 also has the same problem is there a way to avoid this? to not introduce things in the base install that get tripped by compilers? many thanks. On Friday, October 11, 2002, at 04:03 AM, Babak Toloue Tehrani wrote: > Hello, > > I am trying to compile Mapserver 3.6.3 on a Redhat 8 Linux. > > The Makefile builds without complaint. > When I run 'make' I get the following errors. > > .... > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include shp2img.c -o shp2img.o > cc1: warning: changing search order for system directory "/usr/include" > cc1: warning: as it has already been specified as a non-system > directory > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd > -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz > -ljpeg -lm -o shp2img > ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to > `__gxx_personality_v0' > collect2: ld returned 1 exit status > make: *** [shp2img] Fehler 1 > > Thanks for help, > > Babak From morissette at dmsolutions.ca Fri Oct 11 07:36:57 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 11 Oct 2002 10:36:57 -0400 Subject: [mapserver-users] [Fwd: A Question] Message-ID: <3DA6E209.E9CF5DAB@dmsolutions.ca> -------------- next part -------------- An embedded message was scrubbed... From: "ajimenez at ecosconsult.com.br" Subject: A Question Date: Fri, 11 Oct 2002 11:36:52 -0300 Size: 2409 URL: From mschulz at webgis.de Fri Oct 11 07:48:38 2002 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 11 Oct 2002 16:48:38 +0200 Subject: [mapserver-users] PythonMapscript Installation under Windows References: <20021011113617.1C2F2D3C013@s04.kiz.uni-vechta.de> <01ee01c27122$a9601bb0$4f3dba8c@sfdev3> Message-ID: <3DA6E4C6.35803620@webgis.de> Hi Norman, Dear List, thanks to your hints, it seems we finally succeeded in buidling python mapscript on w2000 with python 2.1.3, swig 1.3.15, msvc7. We had to make one more change to the setup.py (changing the name of the module from "MapScript" to "mapscript"). Then another error came up: the function "snprintf" (in mapscript.i) is obviously not existing for msvc, we used "vsnprintf" instead. Now the linker kept complaining about multiple defined symbols, using /NODEFAULTLIB to no avail. So we added /FORCE and it worked - well, not nice, but who cares? We haven't done any testing. But import mapscript and mapscript.MS_VERSION work - we'll dig deeper next week. Thanks for your help. I have attached the last setup.py that worked for us under windows 2000. Cheers, Michael Norman Vine schrieb: > Try changing your setup.py lines > > ## from ## > > # make package directory and package __init__ script > mkpath("mapscript") > init_file=open(path.join("mapscript","__init__.py"),"w") > init_file.write("from MapScript import *\n") > init_file.close() > > ## to ## > > # make package directory and package __init__ script > mkpath("mapscript") > init_file=open(path.join("mapscript","__init__.py"),"w") > init_file.write("from _mapscript import *\n") > init_file.close() > > ## AND from ## > > # Description of the modules and packages in the distribution > packages = ['mapscript'], > ext_modules = > [Extension('MapScriptc', ['mapscript_wrap.c'], > > ## to ## > > # Description of the modules and packages in the distribution > packages = ['mapscript'], > ext_modules = [ > Extension('_mapscript', ['mapscript_wrap.c'], > > This is due to naming conventions change recent swig distributions > > Please let us know if this works ! > > Norman setup.py: --------------------------------------------------------------- #! /usr/bin/env python # Distutils setup for UMN Mapserver mapscript v.3.5 # Norman Vine 11/10/2001 # On cygwin this will require my Distutils mods available @ # http://www.vso.cape.com/~nhv/files/python/mydistutils.txt # Should work as is on 'Unix' like systems # needs testing on Windows compilers other then Cygwin # To Install # build mapserver # Copy this file to $MAPSERVER_SRC / mapscript / python # invoke as ./setup.py install # should work on any python version with Distutils __revision__ = "$Id: mapscript_setup.py,v 1.5 2001/11/10 15:22:02 nhv Exp $" from distutils.core import setup, Extension from distutils.spawn import spawn from distutils.dir_util import mkpath from distutils.file_util import copy_file from distutils.sysconfig import parse_makefile import os,sys from os import path noisy=1 swig_cmd = ["d:\ms\swig-1.3.15\swig", "-python", "-shadow", "-D__WIN32__", "-module", "mapscript", "-o", "./mapscript_wrap.c", "../mapscript.i" ] try: spawn(swig_cmd, verbose=noisy) except: print "\nSwig Error" raise sys.exit() # make package directory and package __init__ script mkpath("mapscript") init_file=open(path.join("mapscript","__init__.py"),"w") init_file.write("from _mapscript import *\n") init_file.close() copy_file("MapScript.py", path.join("mapscript","MapScript.py"), verbose=noisy) # change to reflect the gd version you are using gd_dir="gd-1.8.4" ms_dir=path.join("D:\ms\mapserver-3.6.2") local_dir="D:\ms" freetype="freetype\lib" png_dir="lpng124" proj="proj\src" tiff="tiff-v3.5.7\libtiff" oracle_inc="d:\oracle\ora81\oci\include" oracle_lib="d:\oracle\ora81\oci\lib\msvc" regex_dir="regex-0.12" jpeg="jpeg-6b" setup (# Distribution meta-data name = "pyMapScript", version = "3.6", description = "pre release", author = "Steve Lime", author_email = "steve.lime at dnr.state.mn.us", url = "http://mapserver.gis.umn.edu/", # Description of the modules and packages in the distribution packages = ['mapscript'], ext_modules = [Extension('_mapscript', ['mapscript_wrap.c'], extra_link_args=['/NODEFAULTLIB:libcd','/FORCE'], define_macros=[('TIFF_STATIC',),('JPEG_STATIC',),('ZLIB_STATIC',), ('IGNORE_MISSING_DATA',),('USE_EPPL',),('USE_PROJ',),('USE_PROJ_API_H',), ('USE_WMS',),('USE_WMS_LYR',),('USE_TIFF',),('USE_JPEG',),('USE_GD_PNG',),('USE_GD_GIF',),('USE_GD_JPEG',), ('USE_GD_WBMP',),('USE_GDAL',),('USE_ORACLESPATIAL',)], include_dirs=[ms_dir, path.join(local_dir,gd_dir), path.join(local_dir,freetype), path.join(local_dir,tiff), path.join(local_dir,oracle_inc), path.join(local_dir,proj), path.join(local_dir,jpeg), path.join(local_dir,regex_dir)], library_dirs=[ms_dir, path.join(local_dir,gd_dir), path.join(local_dir,freetype), path.join(local_dir,tiff), path.join(local_dir,oracle_lib), path.join(local_dir,proj), path.join(local_dir,jpeg), path.join(local_dir,png_dir)], extra_objects=[path.join(ms_dir,'mapserver.lib'), path.join(local_dir,'gdal\ogr\ogrsf_frmts\ogrsf_frmts.lib'), path.join(local_dir,'gdal\gdal.lib'), path.join(local_dir,'gdal\ogr\ogr.lib'), path.join(local_dir,'gdal\port\cpl.lib')], libraries=['gd','freetype','libpng','libjpeg','proj','zlib','oci'],), ] ) ---------------------------------------------------------------------- -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From lfilak at medinaco.org Fri Oct 11 07:54:36 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 11 Oct 2002 10:54:36 -0400 Subject: [mapserver-users] Real dynamic legends Message-ID: <200210111454.g9BEsM801322@yogi.medinaco.net> This may have already been cleared up, but I think the intent of "get class expressions" was a $calssObj->getExpression similar to $classObj->setExpression. Currently, tracking a class expression is possible but all the book keeping needs to be done in the mapscript app to track what the current expression is. However MS must already have book keeping in place internally so the correct expression is used when a draw function is called.? Lowell F. The following message was sent by "Steve Lime" on Wed, 09 Oct 2002 17:56:01 -0500. > > Hello everybody, > > Hi Armin: > > > I was thinking about the possibility to have 'real' dynamic legends. > That is, > > legends that show only the items (of active layers) that are visible > in the > > current map extent. For complex layers definitions with plenty of > classes one > > loses a bit the overview if all classes are always drawn in the legend > even > > if only 10 % or so of them are visible in the map. Real dynamic > legends could > > make it much easier to identify the map contents via legend. > > Yup, I agree. > > > One possibility I see for such legends could be using MapScript with > > 'queryByRect' on all active layers and the current map extent. The > results > > are written in an array with unique result values for the classitem. > Then one > > had to compare these results with the class definitions of the layer > and draw > > the legend icons. > > Seems like a lot of work when the information needed for this is already > available as a map is drawn. > > > One restriction of this approach I found is that it seems not to be > possible > > to get class expressions via MapScript. A question to the PHP > MapScript > > developers: Would it be possible to add this possibility to MapScript? > > I'm not sure what you mean by "get class expressions". I believe the > perl/python version has a classify method that will allow a shape to be > evaluated for a given layer. I'll have to check though. > > > Assumed one had this expression it can be a bit difficult to match > results > > found via the query with class definitions. There are quite a lot of > > different class definitions possible. And at the end, the speed of > such a > > query will decrease very much if a lot of features are visible in the > map (it > > could be much faster, however, using PostGIS instead of shapefiles and > a > > 'select distinct' query). > > > > Therefore a question to the MapServer developers: Is it conceivable to > > implement such a dynamic legend function directly in the main > MapServer > > functionality? > > It's possible. We would just need to add a bit of book keeping to the > map file structure (i.e. like keeping a count of drawn features by > class). This might make the mapfile structures less thread safe > though.... > > > Reading shapefiles and map file with complex class definitions and > rendering > > a map will take only very few seconds even for relatively large > datasets. So > > I think producing lists of affected layer classes in a similar step or > even > > simultaneous should be also quite fast. Maybe I'm wrong... > > > Regarding MapScript functionality I'm thinking of a function like > > $map->drawDynLegend() that instead of an image returns a multiple > array of > > active layers with a sub-array of affected classes (classes in the > current > > extent) for each layer. One could then use these classes and draw the > legend > > icons for them. > > I would propose extending the legend object by adding a "type" > parameter. > > > Any ideas? > > > Armin > > Steve > > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From joe at otsys.com Fri Oct 11 07:52:19 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 11 Oct 2002 07:52:19 -0700 Subject: [mapserver-users] truetype symbols In-Reply-To: <5.1.0.14.0.20021011065805.00a79570@mail.greenwoodmap.com> References: <5.1.0.14.0.20021011065805.00a79570@mail.greenwoodmap.com> Message-ID: <20021011145219.GA20312@otsys.com> Why would this be any different than placing the declaration in the mapfile where all my other symbols are declared? On Fri, Oct 11, 2002 at 06:59:37AM -0600, Richard Greenwood wrote: > At 04:49 PM 10/10/2002 -0700, you wrote: > >The font file I am attempting to use is one that ESRI released some time > >ago. Specifically it is ESRITransportationMunicipal.ttf. I believe > >that it is UNICODE mapped. I tried the constant character 'e' as well > >as CHARACTER "e". When I load the font file into gfontview I can > >see that the airplane image that I am hoping to use is encoded as 'e' > > Don't define the symbol in the map file, define it in the symbol file (just > move the definition from the map file to the symbol file). > > Rich > > >. > > > >Have I gone wrong somewhere? > > > >Cordially, > > > >Joe Bussell > >On Time Systems > >www.TrafficDodger.com > > > >On Thu, Oct 10, 2002 at 04:31:30PM -0500, Steve Lime wrote: > >> First thing to check is the font itself. Does it have a UNICODE > >> character mapping? > >> > >> Steve > >> > >> Stephen Lime > >> Data & Applications Manager > >> > >> Minnesota DNR > >> 500 Lafayette Road > >> St. Paul, MN 55155 > >> 651-297-2937 > >> > >> >>> Joe Bussell 10/10/02 03:36PM >>> > >> Greetings Listers and Lurkers, > >> I have just made a first attempt to apply a truetype symbol with > >> no > >> success. I have data for airport locations in a group of shapefiles > >> tied together with a tileIndex. Presently I use a user defined circle > >> symbol declared as type ELIPSE. I downloaded a ttf font set that > >> included an airplane image as one of the characters. I believed form > >> the documentation site that I could use this symbol in my mapfile as > >> an > >> R-value for the SYMBOL object in a CLASS object. > >> > >> I defined my symbol in my mapfile as such: > >> > >> SYMBOL > >> NAME "airportIcon" > >> TYPE TRUETYPE > >> FONT transport > >> FILLED true > >> ANTIALIAS true > >> CHARACTER "e" > >> END > >> > >> In my fontlist file I declare transport to point to the path of the > >> font > >> that I downloaded. I verified that the font was available by writing > >> a > >> label with it (looked weird, but it did what I wanted). I attempted to > >> > >> make use of the defined symbol in the following mapfile snippet: > >> > >> LAYER > >> NAME pointsOfInterrest > >> GROUP defaultLayer > >> TYPE POINT > >> TILEINDEX td_pi.shp # DATA usa06037______pi > >> STATUS ON > >> LABELITEM "NAME" > >> CLASSITEM "FEATTYP" > >> MAXSCALE 150000 > >> ... snip ... > >> CLASS > >> # airport > >> EXPRESSION ( ( [FEATTYP] = 7383 ) ) > >> NAME "Airport" > >> BACKGROUNDCOLOR 255 255 255 > >> COLOR 0 0 0 > >> OUTLINECOLOR 255 0 0 > >> SIZE 20 > >> SYMBOL "airportIcon" > >> LABEL > >> ANGLE AUTO > >> ANTIALIAS TRUE > >> BUFFER 2 > >> COLOR 0 0 0 > >> WRAP " " > >> FONT Arial > >> FORCE TRUE > >> MAXSIZE 256 > >> MINDISTANCE 10 > >> MINSIZE 4 > >> OFFSET 0 0 > >> PARTIALS TRUE > >> POSITION lr > >> SIZE 6 > >> TYPE TRUETYPE > >> END > >> END > >> ... snip ... > >> END > >> > >> The feature does not appear, nor does its label. If I replace > >> "airportIcon" with "circle" I get the results that we currently > >> display. > >> Any ideas on how to get ttf symbols to work? > >> - > >> > >> Cordially, > >> > >> Joe Bussell > >> On Time Systems > >> www.TrafficDodger.com > >> > >> > > > >-- > > > >Cordially, > > > >Joe Bussell > >On Time Systems > >www.TrafficDodger.com > > Richard W. Greenwood, PLS > (307) 733-0203 > Rich at GreenwoodMap.com > www.GreenwoodMap.com > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From nhv at cape.com Fri Oct 11 07:59:30 2002 From: nhv at cape.com (Norman Vine) Date: Fri, 11 Oct 2002 10:59:30 -0400 Subject: [mapserver-users] PythonMapscript Installation under Windows References: <20021011113617.1C2F2D3C013@s04.kiz.uni-vechta.de> <01ee01c27122$a9601bb0$4f3dba8c@sfdev3> <3DA6E4C6.35803620@webgis.de> Message-ID: <035901c27136$d0989b30$4f3dba8c@sfdev3> Michael Schulz writes: > > thanks to your hints, it seems we finally succeeded in buidling python > mapscript on w2000 with python 2.1.3, swig 1.3.15, msvc7. We had to make > one more change to the setup.py (changing the name of the module from > "MapScript" to "mapscript"). > Then another error came up: the function "snprintf" (in mapscript.i) is > obviously not existing for msvc, we used "vsnprintf" instead. Try adding this to the top of mapscript.i #ifdef _MSC_VER # define snprintf _snprintf #endif and then rerun setup.py Cheers Norman From j.macgill at geography.leeds.ac.uk Fri Oct 11 07:53:54 2002 From: j.macgill at geography.leeds.ac.uk (James Macgill) Date: Fri, 11 Oct 2002 15:53:54 +0100 Subject: [mapserver-users] using ascii grids directly Message-ID: <5.1.1.6.0.20021011151943.020269d0@geog.leeds.ac.uk> Hi all Can anyone tell me if it is possible to use an ESRI ascii grid file directly within mapserver? I have gdal setup and it has ascii grid support, but I can't seem to get mapserver to serve an .asc file. Can any one give me some pointers, or just as helpful, tell me its impossible. Cheers James -- James Macgill Center for Computational Geography http://www.ccg.leeds.ac.uk Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) http://www.geotools.org a client side java mapping toolkit. From TMitchell at lignum.com Fri Oct 11 08:19:43 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 11 Oct 2002 08:19:43 -0700 Subject: [mapserver-users] Dynamic web maps using MS Access Message-ID: You may be able to have perl, php or some sort of MapServer mapscript to take advantage of these tools: http://freshmeat.net/projects/mdbtools/?topic_id=66%2C67 which allow you to read MDB files and data from unix. I haven't tried them out too much, but I could see how you might be able to interface it with a map. Tyler "Shaun Kolomeitz" cc: Sent by: Fax to: owner-mapserver-users at lists. Subject: [mapserver-users] Dynamic web maps using MS Access gis.umn.edu 10/10/2002 03:34 PM Dear mapserver-users, I have a mate who is interested in using mapserver to display a dynamic (regularly updated) Access database. We are only talking up to about 10 000 records so I thought he could do something like - 1. Get Access to regularly write the tabular info out to a text file (either as records are updated or at regular intervals) 2. Get a cron job to translate the text file to a shapefile and index it 3. My guess is that mapserver would then read the new data provided it wasn't already involved in reading the file/indexes. My concern is that using this approach there is a potential for file contention/locking to stuff things up. Is there a simpler approach that someone else can think of for using dynamic data from Access to display using mapserver ? (and yes I already asked whether he could drop Access and do it all in mapserver - no go unfortunately). I've searched the archives but there are no examples / suggestions for dynamic mapping from MS Access (personally I'd rather use MySQL or POSTGIS). TIA, Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Phone: 07 4688 6863 Mail to:S.Kolomeitz at toowoomba.qld.gov.au ----------------------------------------------------------- This email message (and any accompanying file attachments) may contain confidential or privileged information and is intended for the sole use of the addressee(s) named above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Toowoomba City Council immediately and destroy any copies of the original message. Any unauthorised review, use, alteration, disclosure or distribution of this email (including any attachments) by an unintended recipient is prohibited. While all care is taken, Council cannot guarantee that this email message (and any accompanying file attachments) are free of viruses. The Council accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature or which represents the personal view of the sender. From lfilak at medinaco.org Fri Oct 11 08:22:32 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 11 Oct 2002 11:22:32 -0400 Subject: [mapserver-users] 3.6.3 Run error Message-ID: <200210111522.g9BFMK801734@yogi.medinaco.net> Possibly MS was compiled with proj.4 support but the proj.4 libraries are not accessible during runtime. Including the install directory for proj.4 in /etc/ld.so.conf (& running ldconfig) or LD_LIBRARY_PATH should fix it. Lowell F. The following message was sent by "Aaron D. Hunt" on Wed, 9 Oct 2002 10:48:10 -0400. > I compiled mapscript 3.6.3 for perl. When I run my script I get > > Can't load > '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so' > for module mapscript: > /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: > undefined symbol: pj_free at > /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. > > Does anyone know what this means? > > Aaron D. Hunt > From vatsavai at cs.umn.edu Sat Oct 19 11:55:35 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 19 Oct 2002 13:55:35 -0500 (CDT) Subject: [mapserver-users] greetings! Message-ID: <200210191855.NAA28515@pluto.cs.umn.edu> Hello Mapserver-users list members, First welecome back to the lists which is down for more than a week due to some security problems. Both web site and mailing lists are back into business starting now. Rest of the services will be up soon. We are taking every possible effort at the university that this kind of outage will not happen in future. More details will be anounced soon. Thanks again for bearing with us. Raju ---- From vatsavai at cs.umn.edu Sat Oct 19 12:00:05 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 19 Oct 2002 14:00:05 -0500 (CDT) Subject: [mapserver-users] test Message-ID: <200210191900.OAA28521@pluto.cs.umn.edu> Test message, please ignore .. Raju From vatsavai at cs.umn.edu Sat Oct 19 14:25:26 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 19 Oct 2002 16:25:26 -0500 (CDT) Subject: [mapserver-users] welcome! Message-ID: Hello Mapserver-users list members, First welecome back to the lists which is down for more than a week due to some security problems. Both web site and mailing lists are back into business starting now. Rest of the services will be up soon. We are taking every possible effort at the university that this kind of outage will not happen in future. More details will be anounced soon. Thanks again for bearing with us. Raju ---- From georef at tnet.cl Sat Oct 19 17:00:36 2002 From: georef at tnet.cl (Juanse) Date: Sat, 19 Oct 2002 21:00:36 -0300 Subject: [mapserver-users] Can Load .TAB into PostGis Message-ID: <005801c277cb$b7ae11e0$c800a8c0@referencia.cl> I have this Mapinfo table that want to load to PostGis using OGR with no success using ogr2ogr for doing a mapinfo to postgis, i end up with the data but nothing on the wkb_geometry column. if doing ogr2ogr from mapinfo to shape i get a nicelooking table in arcview then ogr2ogr shape to postgis nothing of geography if shp2pgsql shape to postgis the wkbgeometry is named the_geom and the type of feature is Multipolygon and mapserver fails cause multipolygon does not exist as data type. This is a big setback for the proyect since is not one table but most of them as i check!!! Any ideas. Juanse temuko-chile --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.401 / Virus Database: 226 - Release Date: 09/10/02 -------------- next part -------------- An HTML attachment was scrubbed... URL: From georef at tnet.cl Sat Oct 19 16:45:46 2002 From: georef at tnet.cl (Juanse) Date: Sat, 19 Oct 2002 20:45:46 -0300 Subject: [mapserver-users] welcome! References: Message-ID: <004d01c277c9$abc5e440$c800a8c0@referencia.cl> eco from temuko chile WELCOME! welcome! lcome! me! e! ! . ----- Original Message ----- From: Ranga Raju Vatsavai To: Sent: Saturday, October 19, 2002 6:25 PM Subject: [mapserver-users] welcome! > > Hello Mapserver-users list members, > > First welecome back to the lists which is down for more than a week due to > some security problems. Both web site and mailing lists are back into > business starting now. Rest of the services will be up soon. We are taking > every possible effort at the university that this kind of outage will not > happen in future. More details will be anounced soon. > > Thanks again for bearing with us. > > Raju > ---- > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.401 / Virus Database: 226 - Release Date: 09/10/02 From zi at manufacture.co.yu Sat Oct 19 22:17:09 2002 From: zi at manufacture.co.yu (Igor Marinovic) Date: Sun, 20 Oct 2002 07:17:09 +0200 Subject: [mapserver-users] true type symbols ... Message-ID: <20021020071709.A21710@zigor> Hi, I'm glad that the list is alive again. I have the following problem: I would like to make lines of layer to look like this: ------- n/n --------------- n/n --------------- n/n ----- My first idea was to make two symbols, one dashed: SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE STYLE 20 10 END END and the other, overlay symbol: SYMBOL NAME "textover" TYPE TRUETYPE FONT verdana FILLED false ANTIALIAS true CHARACTER "n/n" STYLE 1 23 END END with appropriate style. After testing, it looks like that truetype symbol is not listening the STYLE parameter: the part of the layer is looking like this: http://www.manufacture.co.yu/3.6-line.png and with textover symbol it looks like this on 3.6.1 version of the mapserver: http://www.manufacture.co.yu/3.6.png i tried the development version also, and the result was different! http://www.manufacture.co.yu/3.7.png (the colors are due to OUTLINECOLOR 0 0 0 COLOR 182 182 182 and the size is: SYMBOL "textover" SIZE 20 ) questions: - it this will be the normal behavior of truetype symbols in 3.7? - is there is a chance to include the style parameter to the truetype symbol? - i read something about offset parameter of the truetype symbols for the 3.7 version, how things are going with this? regards, and greetings from north of yugoslavia, Igor From pramsey at refractions.net Sun Oct 20 10:00:08 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Sun, 20 Oct 2002 10:00:08 -0700 Subject: [mapserver-users] Can Load .TAB into PostGis References: <005801c277cb$b7ae11e0$c800a8c0@referencia.cl> Message-ID: <3DB2E118.BE714182@refractions.net> > Juanse wrote: > > using ogr2ogr for doing a mapinfo to postgis, i end up with the data > but nothing on the wkb_geometry column. Frank might not have worked on the OGR postgis data source in a while. > if shp2pgsql shape to postgis the wkbgeometry is named the_geom and > the type of feature is Multipolygon and mapserver fails cause > multipolygon does not exist as data type. Sounds like you got it mostly done using this path (TAB -(OGR)-> Shape -(shp2pgsql)-> PostGIS). Check your table to see if the geometries are actually there, then start debugging the mapserver problem. It is not a data conversion problem, and mapserver can definately render multipolygon geometries, I guarantee it. From stepan.kafka at centrum.cz Sun Oct 20 22:58:06 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Mon, 21 Oct 2002 07:58:06 +0200 Subject: [mapserver-users] true type symbols ... In-Reply-To: <20021020071709.A21710@zigor> Message-ID: <000201c278c6$d34027d0$7e3c2fc3@HSGIS> You can use GAP parameter in the symbol definition to set a distance beetwen symbols. Stepan Kafka Help Service Remote Sensing tel: +420-327514118 mailto:kafka at email.cz http://www.bnhelp.cz > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Igor > Marinovic > Odesl?no: 20. ??jna 2002 7:17 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] true type symbols ... > > > Hi, > > I'm glad that the list is alive again. > > I have the following problem: I would like to make lines of layer to > look like this: > ------- n/n --------------- n/n --------------- n/n ----- > > My first idea was to make two symbols, one dashed: > SYMBOL > NAME 'dashed' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > STYLE 20 10 END > END > > and the other, overlay symbol: > SYMBOL > NAME "textover" > TYPE TRUETYPE > FONT verdana > FILLED false > ANTIALIAS true > CHARACTER "n/n" > STYLE 1 23 END > END > > with appropriate style. > > After testing, it looks like that truetype symbol is not listening > the STYLE parameter: > > the part of the layer is looking like this: > http://www.manufacture.co.yu/3.6-line.png > and with textover symbol it looks like this on 3.6.1 version of the > mapserver: > http://www.manufacture.co.yu/3.6.png > i tried the development version also, and the result was different! > http://www.manufacture.co.yu/3.7.png > (the colors are due to > OUTLINECOLOR 0 0 0 > COLOR 182 182 182 > and the size is: > SYMBOL "textover" > SIZE 20 > ) > > questions: > - it this will be the normal behavior of truetype symbols in 3.7? > - is there is a chance to include the style parameter to the > truetype symbol? > - i read something about offset parameter of the truetype symbols for the > 3.7 version, how things are going with this? > > regards, and greetings from north of yugoslavia, > > Igor > > From consultants at broadstreet.com.au Sun Oct 20 23:30:44 2002 From: consultants at broadstreet.com.au (Angus Cameron) Date: Mon, 21 Oct 2002 16:30:44 +1000 Subject: [mapserver-users] Compiled FreeBSD package or linux RPM Message-ID: <3DB39F14.CAA03746@broadstreet.com.au> I would like to use MapServer, but my ISP says they don't have time to pull the libraries together and compile it. Does anybody out there have a complied package or linux RPM for 4.7-STABLE in FreeBSD or Linux on a Sun/Cobalt Raq550? Many thanks Angus -- Angus Cameron Email: consultants at broadstreet.com.au From toni at giscampus.udg.es Mon Oct 21 00:33:53 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Mon, 21 Oct 2002 09:33:53 +0200 Subject: [mapserver-users] how to show query results as the same pricipal mapserver's image Message-ID: <001601c278d4$354290f0$0e2fce82@udg.es> hi everyone, I am learning how to manage mapserv but there is still something that resists me. Every time I make a query a new template html (static) file opens. That means I can not either query (again) this new HTML file or add new layer to this image. I have seen some mapserver applications that allow to do that. The user can query (for example a itemquery) and the query result appears on the same menu mapserver file. Is it possible or I misunderstood something. Thanks for your time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marichalperez at yahoo.es Mon Oct 21 00:59:49 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 21 Oct 2002 08:59:49 +0100 Subject: [mapserver-users] Problem with symbols Message-ID: Hi, all. I'm having some troubles with the filling of a layer when I use PHPMapScript. My symbol file is this: Symbol Name 'horiz' Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END Ok, when I want to fill a layer with this symbol, for example: LAYER NAME "the_name" DATA "the_data" STATUS ON TYPE POLYGON CLASS NAME "the_class_name" SYMBOL 1 <--- the symbol with the layer is filled COLOR 231 199 87 OUTLINECOLOR 150 150 150 END When I use CGI programming mode (i.e: without MapScript) the filling works. However, if I use PHPMapScript, the layer is filled but appears always black. ??. Anyone can help me?. Thanks, Manuel Marichal P?rez marichalperez at yahoo.es _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From dpadron at lareserva.com Mon Oct 21 01:06:44 2002 From: dpadron at lareserva.com (Diego Padr=?ISO-8859-1?Q?=F3?=n Paredes) Date: Mon, 21 Oct 2002 02:06:44 -0600 Subject: [mapserver-users] Connect Data base in Mysql Message-ID: <200210210206.AA199295556@lareserva.com> Hello As to connect phpmapscript to a data base in MySql. Exists some syntax for it? The layers are in format shp. I use mysql in Windows XP. Thank you very much _____________________________ Pura Vida! www.lareserva.com From toni at giscampus.udg.es Tue Oct 15 04:02:42 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Tue, 15 Oct 2002 13:02:42 +0200 Subject: [mapserver-users] how to show query results as the same pricipal mapserver's image Message-ID: <008001c2743a$62b35400$0e2fce82@udg.es> hi everyone, I am learning how to manage mapserv but there is still something that resists me. Every time I make a query a new template html (static) file opens. That means I can not either query (again) this new HTML file or add new layer to this image. I have seen some mapserver applications that allow to do that. The user can query (for example a itemquery) and the query result appears on the same menu mapserver file. Is it possible or I misunderstood something. Thanks for your time -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at tamu.edu Mon Oct 21 04:45:59 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Mon, 21 Oct 2002 06:45:59 -0500 Subject: [mapserver-users] Meteorological implementations? Message-ID: <3DB3E8F7.1050602@tamu.edu> Has anyone been using Mapserver for meteorological implementations, especially display of weather stations and their data? Could you please reply directly to gerry.creager at tamu.edu with URLs and any comments pro- or con? Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet, Academy for Advanced Telecommunications Texas A&M University, College Station, TX Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.5301 Page: 979.228.0173 From dlowther at ou.edu Mon Oct 21 04:53:48 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 21 Oct 2002 06:53:48 -0500 Subject: [mapserver-users] JPG Raster Problems Message-ID: I am trying to use JPG images as raster layers and get the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 I have the image as a TIF also (same coordinates / projection / etc...) and it works ok. I have looked through the archives and it seems like this problem may be a result of not having something right with GDAL, but thats just a best guess. Since I sent this message on 10/11 I came across something about mapserver only supporting 8 bit images. Is this the problem? Any ideas or help would be much appreciated. Dave Lowther From Horst.Duester at bd.so.ch Mon Oct 21 06:18:20 2002 From: Horst.Duester at bd.so.ch (=?iso-8859-1?Q?D=FCster_Horst?=) Date: Mon, 21 Oct 2002 14:18:20 +0100 Subject: [mapserver-users] Postgis Connection Error Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFC7D@srsofaioi4546.ktso.ch> Hi, I try to use a subselection in the DATA block to retrieve data from PostGIS with the following map-file snip: .... LAYER CONNECTIONTYPE POSTGIS CONNECTION 'PG Connection' DATA "wkb_geometry from ( select * from liegen where archive=0 ) as result" TYPE POLYGON ... MapServer 3.6.2 responses with the following error message: msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE mycursor BINARY CURSOR FOR SELECT Nummer::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID::t ext from ( select * from liegen where archive=0 ) as result WHERE wkb_geometry && setSRID('BOX3D(604311.575758 229285,604974.424242 229815)'::BOX3D, find_srid('','liegenden','wkb_geometry') ) Some discussions dealed with this method an it should work. Perhaps there was discussed a solution but the mail archive does'n work. Any hint???? Best regards Dr. Horst D?ster Leiter Abteilung SO!GIS Koordination R?tihof CH-4500 Solothurn Tel.: 032 627 25 32 Fax: 032 627 22 14 horst.duester at bd.so.ch www.sogis.so.ch From Horst.Duester at bd.so.ch Mon Oct 21 06:59:32 2002 From: Horst.Duester at bd.so.ch (=?iso-8859-1?Q?D=FCster_Horst?=) Date: Mon, 21 Oct 2002 14:59:32 +0100 Subject: [mapserver-users] Postgis Connection Error Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFC7E@srsofaioi4546.ktso.ch> Hi, I try to use a subselection in the DATA block to retrieve data from PostGIS with the following map-file snip: .... LAYER CONNECTIONTYPE POSTGIS CONNECTION 'PG Connection' DATA "wkb_geometry from ( select * from liegen where archive=0 ) as result" TYPE POLYGON ... MapServer 3.6.2 responses with the following error message: msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE mycursor BINARY CURSOR FOR SELECT Nummer::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID::t ext from ( select * from liegen where archive=0 ) as result WHERE wkb_geometry && setSRID('BOX3D(604311.575758 229285,604974.424242 229815)'::BOX3D, find_srid('','liegenden','wkb_geometry') ) Some discussions dealed with this method an it should work. Perhaps there was discussed a solution but the mail archive does'n work. Any hint???? Best regards Dr. Horst D?ster Leiter Abteilung SO!GIS Koordination R?tihof CH-4500 Solothurn Tel.: 032 627 25 32 Fax: 032 627 22 14 horst.duester at bd.so.ch www.sogis.so.ch From warmerdam at pobox.com Mon Oct 21 05:57:47 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 21 Oct 2002 08:57:47 -0400 Subject: [mapserver-users] JPG Raster Problems References: Message-ID: <3DB3F9CB.6050908@pobox.com> Lowther, David W wrote: > I am trying to use JPG images as raster layers and get the following error: > > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: > > JPEG parameter struct mismatch: library thinks size is 432, caller expects > 464 > > I have the image as a TIF also (same coordinates / projection / etc...) and > it works ok. I have looked through the archives and it seems like this > problem may be a result of not having something right with GDAL, but thats > just a best guess. > > Since I sent this message on 10/11 I came across something about mapserver > only supporting 8 bit images. Is this the problem? > > Any ideas or help would be much appreciated. Dave, The problem not 8 vs. 16 or 32bit images, but that your libjpeg was built with different definitions for key structures than the code that is calling libjpeg (either MapServer directly, or GDAL depending on how things are built). I presume you are working on Windows, is that right? I ran into a similar problem in libtiff's use of libjpeg, and ended up having to declare something like this after including something that pulled in rpcndr.h, and before jpeglib.h. /* The windows RPCNDR.H file defines boolean, but defines it with the wrong size. So we declare HAVE_BOOLEAN so that the jpeg include file won't try to typedef boolean, but #define it to override the rpcndr.h definition. http://bugzilla.remotesensing.org/show_bug.cgi?id=188 */ #if defined(__RPCNDR_H__) #define HAVE_BOOLEAN #define boolean unsigned int #endif #include "jpeglib.h" #include "jerror.h" If your libjpeg is being used directly from MapServer, perhaps you need to do this in mapraster.c in the USE_JPEG block. If you find the solution to your problem I would also encourage you to submit the issue and fix into bugzilla so it can be applied to the core. 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 pucher at atlas.gis.univie.ac.at Mon Oct 21 06:20:37 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 21 Oct 2002 15:20:37 +0200 Subject: [mapserver-users] multiple mapserv executables Message-ID: <3DB3FF25.5060709@atlas.gis.univie.ac.at> hi, how do i run multiple mapserver executables on one machine? e.g.: /cgi-bin/mapserv_34 /cgi-bin/mapserv_362 OK, I could do it via the URL http://anyserver.com/cgi-bin/mapserv**?................ and address the relevant executable, but how can I do it with PHPMapscript? Regards, alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From rmurray at NRCan.gc.ca Mon Oct 21 07:05:19 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Mon, 21 Oct 2002 10:05:19 -0400 Subject: [mapserver-users] Zoom to extents - NOT Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C518D6@s0-ott-x10.nrn.nrcan.gc.ca> I am very new to MapServer and would appreciate any words of encouragement you may provide before I am prematurely old. I have a button on my HTML form called "zoomtoextents". There are seperate buttons allowing the user to zoom in or zoom out to explore the image. The theory was that at some point they may wish to see the entire map again, so they should be able to do so by a single click of a button. The code I wrote was: function zoomall() { document.forms[0].imgext.value = "[allext]" ; document.forms[0].submit(); } where "[allext]" is a constant that holds the bounding latitude/longitude values of the map area (the value comes from a database and is set before the mapserv.exe is called). Problem: No matter how much (or little) the image is zoomed, clicking "zoomtoextents" returns an image at exactly half the maximum scale. For example, when one of my sample maps loads for the first time, its extents ([allext]) are the bounding lat/long as described above and the scale is 1 to 500000. If I zoom in by any amount then click "zoomtoextents" I get a map at 1 to 250000. Go Figure? <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Murray, Ross.vcf Type: application/octet-stream Size: 399 bytes Desc: not available URL: From jeffb at erlandsen.com Mon Oct 21 07:30:43 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Mon, 21 Oct 2002 07:30:43 -0700 Subject: [mapserver-users] Problem with PHP MapScript Message-ID: Sure glad to see the list back! With it down as long as it was, it makes you realize what a great resource this is. I'm having trouble with getting PHPMapScript running. When I try to run the Gmap demo for PHPMapScript, I get the following error... Warning: MapServer Error in msGetLabelSize(): Could not find/open font in /alpha/mapserver/gmap/htdocs/gmap75.php3 on line 548 Fatal error: Call to a member function on a non-object in /alpha/mapserver/gmap/htdocs/gmap75.php3 on line 549 On reviewing the output from 'make', there is a warning when gcc tries to compile maplabel.c which reads: maplabel.c: In function 'msInitFontSet': maplabel.c:120: warning: control reaches end of non-void function maplabel.c: In function 'msFreeFontSet': maplabel.c:131: warning: control reaches end of non-void function I'm running RedHat Linux 7.2 and have Freetype2 installed. I'm not sure how to fix this. Any help or suggestions would be much appreciated. Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From jhart at frw.uva.nl Mon Oct 21 08:21:45 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 21 Oct 2002 17:21:45 +0200 Subject: [mapserver-users] Postgis Connection Error References: <5B025B1F39D6D4119F5700508BEEEC662DFC7D@srsofaioi4546.ktso.ch> Message-ID: <3DB41B89.7060803@frw.uva.nl> Hello Horst, In a subselect, you have to add explicitly the OID field (select oid,* from ...). OID is an invisible field in every table that is used by the PostGIS connector. It is not automatically included when you specify * in a select clause. Perhaps the use of subselects could be added to the regular documentation? It's really a great feature of the MapServer-PostGIS interface, but it's not especially intuitive to use. Cheers, Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl D?ster Horst wrote: > Hi, > > I try to use a subselection in the DATA block to retrieve data from PostGIS > with the following map-file snip: > > .... > LAYER > CONNECTIONTYPE POSTGIS > CONNECTION 'PG Connection' > DATA "wkb_geometry from ( select * from liegen where archive=0 ) as > result" > TYPE POLYGON > ... > > > MapServer 3.6.2 responses with the following error message: > msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS > DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE > mycursor BINARY CURSOR FOR SELECT > Nummer::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID::t > ext from ( select * from liegen where archive=0 ) as result WHERE > wkb_geometry && setSRID('BOX3D(604311.575758 229285,604974.424242 > 229815)'::BOX3D, find_srid('','liegenden','wkb_geometry') ) > > Some discussions dealed with this method an it should work. Perhaps there > was discussed a solution but the mail archive does'n work. > Any hint???? > > Best regards > > Dr. Horst D?ster > Leiter > Abteilung SO!GIS Koordination > R?tihof > CH-4500 Solothurn > > Tel.: 032 627 25 32 > Fax: 032 627 22 14 > > horst.duester at bd.so.ch > www.sogis.so.ch > > > > > From sgillies at frii.com Mon Oct 21 08:36:24 2002 From: sgillies at frii.com (Sean Gillies) Date: Mon, 21 Oct 2002 09:36:24 -0600 Subject: [mapserver-users] Meteorological implementations? In-Reply-To: <3DB3E8F7.1050602@tamu.edu> References: <3DB3E8F7.1050602@tamu.edu> Message-ID: <3DB41EF8.7060207@frii.com> Gerry, I'm not using Mapserver for any wx stuff, but I know the software well and I've seen tons of weather maps. Mapserver by itself is not going to be a good tool for displaying station data. If you had isopleths, fronts, troughs, etc. as vectors, and maybe even radar echos as rasters, Mapserver would be great for rendering these. You'd need some extra functionality for station data unless you could come up with a creative hack like turning station plots into shapes in a shapefile. If I were doing it, I'd use Mapserver or mapscript to make a base map, and then merge it with custom station data imagery created using the Python Imaging Library or Python or Perl script interfaces to the GD library. cheers, Sean Gerry Creager N5JXS wrote: > Has anyone been using Mapserver for meteorological implementations, > especially display of weather stations and their data? > > Could you please reply directly to gerry.creager at tamu.edu with URLs and > any comments pro- or con? > > Thanks, > Gerry From Steve_Palmer at lpsg.com Mon Oct 21 08:42:41 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Mon, 21 Oct 2002 10:42:41 -0500 Subject: [mapserver-users] Zoom to extents - NOT Message-ID: <750F5C5447AF18408DC73220B98FEAF78667BB@lesexch02.lpsg.com> A guess - your zoom variable is set to 2 or your zoomdir is set to 1 with a zoomsize of 2 As part of your zoomall function you need to "handle" this (e.g., set zoom = 0 or zoomdir = 0) -----Original Message----- From: Murray, Ross [mailto:rmurray at NRCan.gc.ca] Sent: Monday, October 21, 2002 8:05 AM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Zoom to extents - NOT I am very new to MapServer and would appreciate any words of encouragement you may provide before I am prematurely old. I have a button on my HTML form called "zoomtoextents". There are seperate buttons allowing the user to zoom in or zoom out to explore the image. The theory was that at some point they may wish to see the entire map again, so they should be able to do so by a single click of a button. The code I wrote was: function zoomall() { document.forms[0].imgext.value = "[allext]" ; document.forms[0].submit(); } where "[allext]" is a constant that holds the bounding latitude/longitude values of the map area (the value comes from a database and is set before the mapserv.exe is called). Problem: No matter how much (or little) the image is zoomed, clicking "zoomtoextents" returns an image at exactly half the maximum scale. For example, when one of my sample maps loads for the first time, its extents ([allext]) are the bounding lat/long as described above and the scale is 1 to 500000. If I zoom in by any amount then click "zoomtoextents" I get a map at 1 to 250000. Go Figure? <> -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Mon Oct 21 09:52:56 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 21 Oct 2002 11:52:56 -0500 Subject: [mapserver-users] Zoom to extents - NOT Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F37F@STL-EXBE-I03.corp.erac.com> Any chance your zoomsize for the form in question is set to 2? If so, set it to 1 in the zoomall() function. document.forms[0].zoomsize.value = "1" -Dan > -----Original Message----- > From: Murray, Ross [mailto:rmurray at NRCan.gc.ca] > Sent: Monday, October 21, 2002 9:05 AM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Zoom to extents - NOT > > > I am very new to MapServer and would appreciate any words of > encouragement > you may provide before I am prematurely old. > > I have a button on my HTML form called "zoomtoextents". There > are seperate > buttons allowing the user to zoom in or zoom out to explore > the image. The > theory was that at some point they may wish to see the entire > map again, so > they should be able to do so by a single click of a button. > The code I wrote > was: > > function zoomall() { > document.forms[0].imgext.value = "[allext]" ; > document.forms[0].submit(); > } > > where "[allext]" is a constant that holds the bounding > latitude/longitude > values of the map area (the value comes from a database and > is set before > the mapserv.exe is called). > > Problem: > No matter how much (or little) the image is zoomed, clicking > "zoomtoextents" returns an image at exactly half the maximum > scale. For > example, when one of my sample maps loads for the first time, > its extents > ([allext]) are the bounding lat/long as described above and > the scale is 1 > to 500000. If I zoom in by any amount then click > "zoomtoextents" I get a map > at 1 to 250000. > > Go Figure? > > > <> > From dpadron at lareserva.com Mon Oct 21 10:15:03 2002 From: dpadron at lareserva.com (Diego Padr=?ISO-8859-1?Q?=F3?=n Paredes) Date: Mon, 21 Oct 2002 11:15:03 -0600 Subject: [mapserver-users] Error Call to a member function Message-ID: <200210211115.AA159253120@lareserva.com> PHP Fatal error: Call to a member function on a non-object in C:\msapps\htdocs\common\picker\shape_file_attr.php on line 129 east error is generated in use the TileItem in Maplab (2.0-dev) What is error _____________________________ Pura Vida! www.lareserva.com From morissette at dmsolutions.ca Mon Oct 21 11:52:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 21 Oct 2002 14:52:05 -0400 Subject: [mapserver-users] Problem with PHP MapScript References: Message-ID: <3DB44CD5.B6F1D1F2@dmsolutions.ca> We should fix the compile warnings, but they shouldn't be related to your problem. I suspect that the problem is caused by freetype2 (it doesn't like relative .ttf paths). Try putting absolute font paths for the ttf files listed in your fontlist file. Daniel Jeff Berry wrote: > > Sure glad to see the list back! With it down as long as it was, it makes > you realize what a great resource this is. > > I'm having trouble with getting PHPMapScript running. When I try to run the > Gmap demo for PHPMapScript, I get the following > error... > > Warning: MapServer Error in msGetLabelSize(): Could not find/open font in > /alpha/mapserver/gmap/htdocs/gmap75.php3 on line 548 > > Fatal error: Call to a member function on a non-object in > /alpha/mapserver/gmap/htdocs/gmap75.php3 on line 549 > > On reviewing the output from 'make', there is a warning when gcc tries to > compile maplabel.c which reads: > > maplabel.c: In function 'msInitFontSet': > maplabel.c:120: warning: control reaches end of non-void function > maplabel.c: In function 'msFreeFontSet': > maplabel.c:131: warning: control reaches end of non-void function > > I'm running RedHat Linux 7.2 and have Freetype2 installed. I'm not sure how > to fix this. Any help or suggestions would be much appreciated. > > Jeff Berry > Erlandsen & Associates > P.O. Box 2029 > Chelan, WA 98816 > (509) 682-4189 > jeffb at erlandsen.com From DMartin at erac.com Mon Oct 21 13:19:57 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 21 Oct 2002 15:19:57 -0500 Subject: [mapserver-users] MapServer listserv - slow relay? Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B45@STL-EXBE-I03.corp.erac.com> When I send a message to this list, I don't see my message relayed back to me usually for about 2 hours. Looking at some of the "Sent" times on some of the messages, I'm beginning to wonder that maybe this happens to everyone. That could be a matter of time zones, but I don't think so. Perhaps it's only slow returning a message to the original sender? I doubt it, because often people answer the same question I previously answered that hasn't been relayed back to me. Or perhaps the entire list is moderated? I could imagine that, since I never get spam from this list. Or perhaps it's just plain slow? Can anyone shed any light? Let me know if I am I alone in experiencing delays - it could be something wrong on my end. -Dan Martin From dlowther at ou.edu Mon Oct 21 13:37:53 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 21 Oct 2002 15:37:53 -0500 Subject: [mapserver-users] Template for No Records? Message-ID: Is there any way to display something other than: msQueryByPoint(): Search returned no results. No matching record(s) found. when your query doesnt match records? Can I use an different HTML file? Thanks, Dave Lowther From morissette at dmsolutions.ca Mon Oct 21 14:19:26 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 21 Oct 2002 17:19:26 -0400 Subject: [mapserver-users] [Fwd: Help connect phpmapscript to Mysql Data Base] Message-ID: <3DB46F5E.D58CD0DB@dmsolutions.ca> -------------- next part -------------- An embedded message was scrubbed... From: =?iso-8859-1?Q?Diego_Jos=E9_Padr=F3n?= Subject: Help connect phpmapscript to Mysql Data Base Date: Mon, 21 Oct 2002 14:31:54 +0200 Size: 2929 URL: From morissette at dmsolutions.ca Mon Oct 21 14:30:28 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 21 Oct 2002 17:30:28 -0400 Subject: [mapserver-users] multiple mapserv executables References: <3DB3FF25.5060709@atlas.gis.univie.ac.at> Message-ID: <3DB471F4.9DF5ED75@dmsolutions.ca> Alexander Pucher wrote: > > how do i run multiple mapserver executables on one machine? > > e.g.: > > /cgi-bin/mapserv_34 > /cgi-bin/mapserv_362 > > OK, I could do it via the URL > http://anyserver.com/cgi-bin/mapserv**?................ and address the > relevant executable, > > but how can I do it with PHPMapscript? We do it by having multiple instances of php_mapscript.so in the PHP extension_dir called: php_mapscript_34.so php_mapscript_362.so And then your application code loads the copy of mapscript that it wants to use, e.g. dl("php_mapscript_34.so"); Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From georef at tnet.cl Mon Oct 21 16:00:31 2002 From: georef at tnet.cl (Juanse) Date: Mon, 21 Oct 2002 20:00:31 -0300 Subject: [mapserver-users] select and paint one polygon Message-ID: <021c01c27955$abd46640$c800a8c0@referencia.cl> Sorry but how i do with in a mapfile to select only one polygon from a polygon table (ie.one record) and then color that select polygon to a given color? Juanse temuko-chile --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.401 / Virus Database: 226 - Release Date: 10/10/02 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vatsavai at cs.umn.edu Mon Oct 21 16:47:15 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Mon, 21 Oct 2002 18:47:15 -0500 (CDT) Subject: [mapserver-users] MapServer listserv - slow relay? In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B46@STL-EXBE-I03.corp.erac.com> Message-ID: <200210212347.SAA01731@pluto.cs.umn.edu> Hello Mapserver-ers, Main problem is defunct users - just today I got 500 bounced mails. For each of the defunct user server tries several times per day and for several days before giving up and in the mean time doing additional work like sending bouncers to me and filling logs. I periodically purge these users but you guys can imagine going through 100s of mails and finding defunct users. I have to investigate a better way of doing this (if any of you have any suggestions please send mail to me at vrraju at gis.umn.edu - so we can avoid traffic on ms-users) but till then please bear with me. I have to bring back some more services on this server before looking into performance issues. Thanks Raju ---- [ Charset ISO-8859-1 unsupported, converting... ] > Actually, I had the same problems before and after the server went down. > It's not a big deal - but sometimes it can be hard or even confusing to > interact with people over the list. > > Interesting enough, I received a reply from one person within 15 minutes on > the same message that took 1:50 to get to you. It seems to take vastly > different times to distribute the same message to the many recipients. > > Thanks for your reply, > -Dan > > > > -----Original Message----- > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > Sent: Monday, October 21, 2002 5:17 PM > > To: Martin, Daniel > > Cc: Ranga Raju Vatsavai > > Subject: Re: [mapserver-users] MapServer listserv - slow relay? > > > > > > Hi Daniel, > > > > > > Same happens to me. > > > > I received your message exactly 1 hour 50 minutes after you > > sent it. I > > used to receive them faster before the server went down last week... > > maybe something to do with the new config? > > > > Daniel > > > > > > "Martin, Daniel" wrote: > > > > > > When I send a message to this list, I don't see my message > > relayed back to > > > me usually for about 2 hours. Looking at some of the > > "Sent" times on some > > > of the messages, I'm beginning to wonder that maybe this happens to > > > everyone. That could be a matter of time zones, but I > > don't think so. > > > > > > Perhaps it's only slow returning a message to the original > > sender? I doubt > > > it, because often people answer the same question I > > previously answered that > > > hasn't been relayed back to me. Or perhaps the entire list > > is moderated? I > > > could imagine that, since I never get spam from this list. > > Or perhaps it's > > > just plain slow? > > > > > > Can anyone shed any light? Let me know if I am I alone in > > experiencing > > > delays - it could be something wrong on my end. > > > > > > -Dan Martin > > > From yeong888 at giga.net.tw Mon Oct 21 17:58:36 2002 From: yeong888 at giga.net.tw (yeong888 at giga.net.tw) Date: Tue, 22 Oct 2002 08:58:36 +0800 (CST) Subject: [mapserver-users] How to query the non geometry data in POSTGIS? Message-ID: <1035248316.3db4a2bca842d@webmail2.giga.net.tw> Dear all: I am sorry to bother everyone. I have been tried the MapServer+PostGIS many times, but I can't find the soultion to resolve question following: How to query the non geometry data in PostGIS+PostgreSQL? Is there anyone can tell how to handle this problem? Thank you From pucher at atlas.gis.univie.ac.at Mon Oct 21 23:39:19 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Tue, 22 Oct 2002 08:39:19 +0200 Subject: [mapserver-users] multiple mapserv executables References: <3DB3FF25.5060709@atlas.gis.univie.ac.at> <3DB471F4.9DF5ED75@dmsolutions.ca> Message-ID: <3DB4F297.9090401@atlas.gis.univie.ac.at> OK, clear to me. No problem to call different php_mapscript.so's. Do I understand the point, that I do not have to call different mapserv executables, only the php_mapscript.so's? So a single mapserv version 3.6.2 executable could also serve version 3.4 applications if I call dl("php_mapscript_34.so"); in the respective files? Maybe I was somewhat imprecise in my first mail, but I don't want to call mapserv via an URL, but with the 'imageObj draw()' PHP/MapScript function. Regards, alex Daniel Morissette wrote: >Alexander Pucher wrote: > > >>how do i run multiple mapserver executables on one machine? >> >>e.g.: >> >>/cgi-bin/mapserv_34 >>/cgi-bin/mapserv_362 >> >>OK, I could do it via the URL >>http://anyserver.com/cgi-bin/mapserv**?................ and address the >>relevant executable, >> >>but how can I do it with PHPMapscript? >> >> > > > >We do it by having multiple instances of php_mapscript.so in the PHP >extension_dir called: > > php_mapscript_34.so > php_mapscript_362.so > >And then your application code loads the copy of mapscript that it wants >to use, e.g. > dl("php_mapscript_34.so"); > >Daniel > > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From MJHatcher at space.qinetiq.com Tue Oct 22 01:00:29 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Tue, 22 Oct 2002 09:00:29 +0100 Subject: [mapserver-users] Template for No Records? Message-ID: Hi Dave, I asked this question a little while ago, and received very helpful answers, so it is now my turn to share the knowledge! That's the good thing about these subscriber lists. Anyway, in your map file, you need to add EMPTY and ERROR tags to the web section. EMPTY should include a URL to display if the query returns no results. ERROR should include a URL to be forwarded to if an error occurs. Unfortunately, these URLs are simply forwarded to and are not treated as templates, so you can't include the usual template tags, but it's still possible to make things look much better than the old error messages. Matt. -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: 21 October 2002 21:38 To: Mapserver-Users (E-mail) Subject: [mapserver-users] Template for No Records? Is there any way to display something other than: msQueryByPoint(): Search returned no results. No matching record(s) found. when your query doesnt match records? Can I use an different HTML file? Thanks, Dave Lowther ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at khi2.fr Tue Oct 22 01:57:21 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Tue, 22 Oct 2002 10:57:21 +0200 Subject: [mapserver-users] ShapeObj delete References: <3DCE8E3F.1060708@terrestris.de> Message-ID: <3DB512F1.2010301@khi2.fr> Hi folks, I'm wondering about the possibility of deleting a ShapeObj from a shapeFileObj with Mapscript. It is possible to add one, but if one wants to delete it afterwards, it doesn't seem to be any method for it. At least I didn't find any. Is it possible ? Thanks --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From jhart at frw.uva.nl Tue Oct 22 04:25:31 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Tue, 22 Oct 2002 13:25:31 +0200 Subject: AW: [mapserver-users] Postgis Connection Error References: <5B025B1F39D6D4119F5700508BEEEC662DFC81@srsofaioi4546.ktso.ch> Message-ID: <3DB535AB.5080002@frw.uva.nl> (I cross-posted this to the PostGIS user's list. Perhaps this discussion could be continued there) D?ster Horst wrote: > Hello Jan > > After the first enthusiasm some problems appeared. The main problem > is, it isn't possible to define two different layers with > subselections in the same map file. Do you have any experience with > this phenomenon?? Perhaps it is a bug in the MapServer-Postgis > interface?? > First, I couldn't detect any problem in using more than one PostGIS layer in a single Mapfile, with or without subselects. Something seems to be wrong with the definition of one of your layers. However, there is a potential problem with subselects on non-projected data (i.e. with SRID = -1). To test this out I used the following three tables: continents: the continents with projection latlon (SRID 4326) continents2: the same, but unprojected (SRID -1) population: population for 1950, 1975 and 2000 DATA statements: the_geom from (select oid,* from continents) as foo : OK the_geom from (select OID,* from continents) as foo : OK the_geom from (select oid,* from continents2) as foo : OK the_geom from (select c.oid,c.the_geom, pop.y2000 from continents as c,population as pop where c.id = pop.id) as foo : OK the_geom from (select c2.oid,c2.the_geom, pop.y2000 from continents2 as c2,population as pop where c2.id = pop.id) as foo : OK the_geom from (select c.oid,c.the_geom, pop.y2000 from continents as c,population as pop where c.id = pop.id) as foo using SRID=4326 : OK the_geom from (select c2.oid,c2.the_geom, pop.y2000 from continents2 as c2,population as pop where c2.id = pop.id) as foo using SRID=4326 : Crashes As you can see: - oid can be spelled upper- or lowercase - simple queries work on projected and unprojected maps - subqueries also work with projected and unprojected maps as long as you don't specify the SRID explicitly - unprojected maps can't be used in a subquery which specifies the SRID This seems logical to me: it doesn't make sense to try to reproject non-projected data. Dave Blasby's postings on this subject always specify "using SRID" and this makes sense to me too, although it doesn't seem obligatory. Personally I always put my data into some world projection, even when this is difficult (e.g. hand-digitized field maps, raster data or CAD/CAM sources). Hope this helps you further. Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From timi at spicergroup.com Tue Oct 22 04:44:22 2002 From: timi at spicergroup.com (Inman, Tim A.) Date: Tue, 22 Oct 2002 07:44:22 -0400 Subject: [mapserver-users] MR Sid Raster Images Message-ID: <7A08E8036BBBAA4FBD9071B169EDC9B6E78742@mailserver01.spicergroup.com> Is there any support for these files with mapserver and any add-on? Thanks From lfilak at medinaco.org Tue Oct 22 04:56:22 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Tue, 22 Oct 2002 07:56:22 -0400 Subject: [mapserver-users] ShapeObj delete Message-ID: <200210221155.g9MBtlX06867@yogi.medinaco.net> One way to do it is to open the existing shapefile and create a holder for the particular type of shape. Then loop through each shape and copy them to a new shapefile. To delete a shape just skip writing the deleted shape to the new shapefile. Then replace the old file with the new. HTH Lowell F. The following message was sent by Guillaume SUEUR on Tue, 22 Oct 2002 10:57:21 +0200. > Hi folks, > I'm wondering about the possibility of deleting a ShapeObj from a > shapeFileObj with Mapscript. It is possible to add one, but if one wants > to delete it afterwards, it doesn't seem to be any method for it. At > least I didn't find any. > Is it possible ? > > Thanks > --------------------------- > Guillaume SUEUR > Ing?nieur d?veloppement SIG > GEOSIGNAL > 25bis Avenue Marcel Dassault > 31505 TOULOUSE CEDEX 5 > ---------------------------- From woodbri at swoodbridge.com Tue Oct 22 05:08:41 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 22 Oct 2002 08:08:41 -0400 Subject: [mapserver-users] Re: How to merge the segments of a long street In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A52E@pltnpo1.c-cor.com> Message-ID: <3DB50789.21743.63D3DBAC@localhost> On 21 Oct 2002 at 21:33, Zhang, William wrote: > Steve > > I remember you answered similar question on the mapserver mailing > list. But the mailing list server are down these days. Could you > kindly give me some hint again? The question is: with tiger data, a > long street may be divided into many small segments. The street label > will not show until one segment is longer enough to fit the label. > What should I do to merge those segments so that the label of the long > street will show at high zoom level? No, the street label will show is there is room to show it without it colliding with other labels. This is by design. You can limit the number of labels by using MINDISTANCE which will prevent the same label from being placed on the map if it is already on the map and within distance from another. This will declutter your map and allow other labels to be placed on it. You don't need to change your data, just your map file. This is much easier :) -Steve > Thank you for your help. > > > William Zhang > > Software Engineer > C-Cor.net > 5673 Gibraltar Dr., Suite 100 > Pleasanton, CA 94588 > Phone: (925) 251-3019 > Fax: (925) 467-0600 > E-Mail: wzhang at c-cor.net > From guillaume.sueur at khi2.fr Tue Oct 22 05:28:59 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Tue, 22 Oct 2002 14:28:59 +0200 Subject: [mapserver-users] ShapeObj delete References: <200210221155.g9MBtlX06867@yogi.medinaco.net> Message-ID: <3DB5448B.1000304@khi2.fr> Yes, it's an idea, but I was just hoping something more "clean" was existing... Thx Lowell Filak wrote: > One way to do it is to open the existing shapefile and create a holder for the particular type of shape. Then loop through each shape and copy them to a new shapefile. To delete a shape just skip writing the deleted shape to the new shapefile. Then replace the old file with the new. > HTH > Lowell F. > > The following message was sent by Guillaume SUEUR on Tue, 22 Oct 2002 10:57:21 +0200. > > >>Hi folks, >>I'm wondering about the possibility of deleting a ShapeObj from a >>shapeFileObj with Mapscript. It is possible to add one, but if one wants >>to delete it afterwards, it doesn't seem to be any method for it. At >>least I didn't find any. >>Is it possible ? >> >>Thanks >>--------------------------- >>Guillaume SUEUR >>Ing?nieur d?veloppement SIG >>GEOSIGNAL >>25bis Avenue Marcel Dassault >>31505 TOULOUSE CEDEX 5 >>---------------------------- > > > -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From dlowther at ou.edu Tue Oct 22 06:39:11 2002 From: dlowther at ou.edu (Lowther, David W) Date: Tue, 22 Oct 2002 08:39:11 -0500 Subject: [mapserver-users] Mapserver sites using PostGIS Message-ID: Hi All, I've just about got all the kinks worked out of our first Mapserver application. I did the first run using all shapefiles and am about to switch at least a large part of the application over to PostGIS. Anybody got any sites out there using multiple PostGIS layers that would care to share a URL? David Lowther Software Engineer GEO Information Systems dlowther at ou.edu (405) 325-3131 http://www.geo.ou.edu From morissette at dmsolutions.ca Tue Oct 22 06:42:38 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 22 Oct 2002 09:42:38 -0400 Subject: [mapserver-users] multiple mapserv executables References: <3DB3FF25.5060709@atlas.gis.univie.ac.at> <3DB471F4.9DF5ED75@dmsolutions.ca> <3DB4F297.9090401@atlas.gis.univie.ac.at> Message-ID: <3DB555CE.74EB3D0@dmsolutions.ca> Alexander Pucher wrote: > > OK, clear to me. No problem to call different php_mapscript.so's. Do I > understand the point, that I do not have to call different mapserv > executables, only the php_mapscript.so's? So a single mapserv version > 3.6.2 executable could also serve version 3.4 applications if I call > dl("php_mapscript_34.so"); in the respective files? > Actually, php_mapscript.so is a _replacement_ for mapserv ... you need one or the other, but you do not need both. MapScript (PHP, Perl, ...) is just a different interface to the same core mapping functionalities that were used to build the mapserv CGI. > Maybe I was somewhat imprecise in my first mail, but I don't want to > call mapserv via an URL, but with the 'imageObj draw()' PHP/MapScript > function. > The $map->draw() function in MapScript comes with everything it needs to render a map to PNG/GIF/JPEG and has no dependency on the mapserv CGI. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pagurekd at agr.gc.ca Tue Oct 22 06:57:29 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Tue, 22 Oct 2002 09:57:29 -0400 Subject: [mapserver-users] Problem querying SDE layer Message-ID: I have an application that is displaying, zooming etc and SDE layer and that's all working fine, but whenever I try to query I'm getting: Content-type: text/html msSDELayerGetShape(): SDE error. SE_stream_fetch(): Shape or row not found. (-22) Can anyone suggest what might be wrong? Is querying an SDE layer with Mapserver different in some way from querying anything else (shapefile)? Below is my mapfile and template file (test.html) Thanks, D. Pagurek # # Start of map file # NAME META SIZE 500 434 EXTENT -2647393 5656194 2892379 10462762 UNITS METERS IMAGECOLOR 255 255 255 # Start of web interface definition # WEB TEMPLATE 'meta.html' IMAGEPATH '/usr/www/httpd/htdocs/mapdata/tmp/' IMAGEURL '/mapdata/tmp/' END # # Start of legend # LEGEND STATUS ON OUTLINECOLOR 0 0 0 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 0 END END #LEGEND # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 100 4 COLOR 153 153 153 UNITS meters INTERVALS 3 END #SCALEBAR # # Start of layer definitions LAYER NAME surveys TYPE polygon STATUS DEFAULT CONNECTIONTYPE sde CONNECTION "myserver.gis.agr.ca,esri_sde,ORACLE,meta,mapper" DATA "SURVEYINDEX,shape" TEMPLATE "test.html" CLASSITEM 'STATUS' CLASS EXPRESSION 'NOT SURVEYED' NAME 'Not Surveyed' COLOR 153 153 153 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION 'NOT DIGITAL' NAME 'Not Digital' COLOR 153 0 51 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION 'NOT ONLINE' NAME 'Not Online' COLOR 255 0 0 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION 'INCOMPLETE' NAME 'Incomplete' COLOR 255 255 0 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION 'COMPLETE' NAME 'Complete' COLOR 51 255 0 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION 'WATER' NAME 'Water' COLOR 0 0 255 OUTLINECOLOR 0 0 0 END TOLERANCEUNITS METERS TOLERANCE 3 END # LAYER END # MAPFILE My template file isn't coming up at all, instead I get the above error message. But here's what it looks like: SEARCH WINDOW: [imgext]
QUERY POINT: ([img.x], [img.y]) image coordinates or ([mapx], [mapy]) map coordinates

INDEX_ID=[INDEX_ID]
STATUS=[STATUS]
From tom_price at yahoo.com Tue Oct 22 08:27:03 2002 From: tom_price at yahoo.com (Tom Price) Date: Tue, 22 Oct 2002 08:27:03 -0700 (PDT) Subject: [mapserver-users] Goto state for a projected shape file Message-ID: <20021022152703.46119.qmail@web13804.mail.yahoo.com> I'm a newbie to PHP Mapscript and I'm trying to implement a "goto state" feature which would maximize any US state to the dimensions of the image. In in earlier post, it was suggested that I spin through the shape file to determine the min/max extents. I did that including saving the dimensions on a database. That works fine but some of the states are distorted enough to require projection and, once projected, I find that these extents are no longer valid. What am I missing? TIA Tom Price $shapef = ms_newShapefileObj($mapdata.$baseshape,-1); $minx=$miny=+1E30; $maxx=$maxy=-1E30; for ($i=0;$i<$shapef->numshapes;$i++) { $extent = $shapef->getExtent($i); $minx=min($minx,$extent->minx); $miny=min($miny,$extent->miny); $maxx=max($maxx,$extent->maxx); $maxy=max($maxy,$extent->maxy); } $map->setextent($minx,$miny,$maxx,$maxy); __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From tom_price at yahoo.com Tue Oct 22 11:50:31 2002 From: tom_price at yahoo.com (Tom Price) Date: Tue, 22 Oct 2002 11:50:31 -0700 (PDT) Subject: [mapserver-users] Goto state for a projected shape file In-Reply-To: <200210221416.AA553189448@cshore.com> Message-ID: <20021022185031.69080.qmail@web13808.mail.yahoo.com> I'm new to this and trying to keep things as simple as possible. But without projection, the maps are distorted enough that they are objectionable. These are Tiger files and some of the Census documentation suggests that Albers Equal-Area Conic might be adequate. So, hopefully, just one. But, certainly the parameters to the projection would need to differ. It's still not clear how I would proceed with this conversion. Is it done with the ms_newprojectionobj method on the shapefile object? Thanks for your help! Tom --- TCHaddad wrote: > > you need to convert your unprojected extents into projected values in > your database and then use these projected values in your goto > feature. > > are you using different projections for every state? > > ---------- Original Message ---------------------------------- > From: Tom Price > Date: Tue, 22 Oct 2002 08:27:03 -0700 (PDT) > > >I'm a newbie to PHP Mapscript and I'm trying to implement a "goto > >state" feature which would maximize any US state to the dimensions > of > >the image. In in earlier post, it was suggested that I spin through > the > >shape file to determine the min/max extents. I did that including > >saving the dimensions on a database. That works fine but some of the > >states are distorted enough to require projection and, once > projected, > >I find that these extents are no longer valid. > > > >What am I missing? > > > >TIA > > > >Tom Price > > > > $shapef = ms_newShapefileObj($mapdata.$baseshape,-1); > > $minx=$miny=+1E30; > > $maxx=$maxy=-1E30; > > for ($i=0;$i<$shapef->numshapes;$i++) { > > $extent = $shapef->getExtent($i); > > $minx=min($minx,$extent->minx); > > $miny=min($miny,$extent->miny); > > $maxx=max($maxx,$extent->maxx); > > $maxy=max($maxy,$extent->maxy); > > } > > $map->setextent($minx,$miny,$maxx,$maxy); > > > > > > > >__________________________________________________ > >Do you Yahoo!? > >Y! Web Hosting - Let the expert host your web site > >http://webhosting.yahoo.com/ > > __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From tom_price at yahoo.com Tue Oct 22 13:08:52 2002 From: tom_price at yahoo.com (Tom Price) Date: Tue, 22 Oct 2002 13:08:52 -0700 (PDT) Subject: [mapserver-users] Goto state for a projected shape file In-Reply-To: <200210221524.AA744292420@cshore.com> Message-ID: <20021022200852.4918.qmail@web13804.mail.yahoo.com> I'm working with the county boundary files for all states and possessions and county subdivisions for New England states. That's a total of 62 shape files. As a general rule, one state is featured and portions of adjacent states are shown if needed. So, a state may need to appear slightly different depending upon whether it is featured or not. And, only one or two shape files would be in use at any given time. These are the ones from Census and are apparently unprojected. I understand the efficiency concerns with on-the-fly projection but I'm still not clear how to proceed. Can this be accomplished outside of ArcView? Thanks for your help. Tom --- TCHaddad wrote: > > the next question is : are you reprojecting all your files in advance > (outside of mapserver), or are you reprojecting each on the fly when > they are requested by users (the latter sounds slow, but i don't know > how many files you have). > > if you are doing the first then you should reproject the lot and then > extract the extents in the same manner as you did when the files were > unprojected. > > i've never implemented the latter, but folks with better mapscript > skills should be able to help. > > how many shapefiles are you talking about (1 for every state?). > > ---------- Original Message ---------------------------------- > From: Tom Price > Date: Tue, 22 Oct 2002 11:50:31 -0700 (PDT) > > >I'm new to this and trying to keep things as simple as possible. But > >without projection, the maps are distorted enough that they are > >objectionable. > > > >These are Tiger files and some of the Census documentation suggests > >that Albers Equal-Area Conic might be adequate. So, hopefully, just > >one. But, certainly the parameters to the projection would need to > >differ. > > > >It's still not clear how I would proceed with this conversion. Is it > >done with the ms_newprojectionobj method on the shapefile object? > > > >Thanks for your help! > > > >Tom > > > > > >--- TCHaddad wrote: > >> > >> you need to convert your unprojected extents into projected values > in > >> your database and then use these projected values in your goto > >> feature. > >> > >> are you using different projections for every state? > >> > >> ---------- Original Message ---------------------------------- > >> From: Tom Price > >> Date: Tue, 22 Oct 2002 08:27:03 -0700 (PDT) > >> > >> >I'm a newbie to PHP Mapscript and I'm trying to implement a "goto > >> >state" feature which would maximize any US state to the > dimensions > >> of > >> >the image. In in earlier post, it was suggested that I spin > through > >> the > >> >shape file to determine the min/max extents. I did that including > >> >saving the dimensions on a database. That works fine but some of > the > >> >states are distorted enough to require projection and, once > >> projected, > >> >I find that these extents are no longer valid. > >> > > >> >What am I missing? > >> > > >> >TIA > >> > > >> >Tom Price > >> > > >> > $shapef = ms_newShapefileObj($mapdata.$baseshape,-1); > >> > $minx=$miny=+1E30; > >> > $maxx=$maxy=-1E30; > >> > for ($i=0;$i<$shapef->numshapes;$i++) { > >> > $extent = $shapef->getExtent($i); > >> > $minx=min($minx,$extent->minx); > >> > $miny=min($miny,$extent->miny); > >> > $maxx=max($maxx,$extent->maxx); > >> > $maxy=max($maxy,$extent->maxy); > >> > } > >> > $map->setextent($minx,$miny,$maxx,$maxy); > >> > > >> > > >> > > >> >__________________________________________________ > >> >Do you Yahoo!? > >> >Y! Web Hosting - Let the expert host your web site > >> >http://webhosting.yahoo.com/ > >> > > > > > > >__________________________________________________ > >Do you Yahoo!? > >Y! Web Hosting - Let the expert host your web site > >http://webhosting.yahoo.com/ > > __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From Chip.Hankley at gasai.com Tue Oct 22 13:03:31 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Tue, 22 Oct 2002 15:03:31 -0500 Subject: [mapserver-users] Goto state for a projected shape file Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABEBF@postoffice.GASAI.Com> Tom... haven't done that yet, but my hunch is that you are setting a projection, but not recalculating the extents you have to the new projection. You should be able to do this using PROJ. Chip -----Original Message----- From: Tom Price [mailto:tom_price at yahoo.com] Sent: Tuesday, October 22, 2002 10:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Goto state for a projected shape file I'm a newbie to PHP Mapscript and I'm trying to implement a "goto state" feature which would maximize any US state to the dimensions of the image. In in earlier post, it was suggested that I spin through the shape file to determine the min/max extents. I did that including saving the dimensions on a database. That works fine but some of the states are distorted enough to require projection and, once projected, I find that these extents are no longer valid. What am I missing? TIA Tom Price $shapef = ms_newShapefileObj($mapdata.$baseshape,-1); $minx=$miny=+1E30; $maxx=$maxy=-1E30; for ($i=0;$i<$shapef->numshapes;$i++) { $extent = $shapef->getExtent($i); $minx=min($minx,$extent->minx); $miny=min($miny,$extent->miny); $maxx=max($maxx,$extent->maxx); $maxy=max($maxy,$extent->maxy); } $map->setextent($minx,$miny,$maxx,$maxy); __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From steve.lime at dnr.state.mn.us Tue Oct 22 13:15:02 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 22 Oct 2002 15:15:02 -0500 Subject: [mapserver-users] ShapeObj delete Message-ID: I think that's what you have to do. Shapefiles are not designed for editing/deleting, but for fast retrieval. You could cache your edits somehow so you only have to process the file once but I think you have to produce a second (perhaps temporary) file... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Guillaume SUEUR 10/22/02 07:28AM >>> Yes, it's an idea, but I was just hoping something more "clean" was existing... Thx Lowell Filak wrote: > One way to do it is to open the existing shapefile and create a holder for the particular type of shape. Then loop through each shape and copy them to a new shapefile. To delete a shape just skip writing the deleted shape to the new shapefile. Then replace the old file with the new. > HTH > Lowell F. > > The following message was sent by Guillaume SUEUR on Tue, 22 Oct 2002 10:57:21 +0200. > > >>Hi folks, >>I'm wondering about the possibility of deleting a ShapeObj from a >>shapeFileObj with Mapscript. It is possible to add one, but if one wants >>to delete it afterwards, it doesn't seem to be any method for it. At >>least I didn't find any. >>Is it possible ? >> >>Thanks >>--------------------------- >>Guillaume SUEUR >>Ing?nieur d?veloppement SIG >>GEOSIGNAL >>25bis Avenue Marcel Dassault >>31505 TOULOUSE CEDEX 5 >>---------------------------- > > > -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From steve.lime at dnr.state.mn.us Tue Oct 22 13:19:57 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 22 Oct 2002 15:19:57 -0500 Subject: [mapserver-users] Meteorological implementations? Message-ID: Describe what you guys mean by station data? MapServer may just be a piece of the puzzle. TrueType lines where added specifically with meteorological data in mind. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sean Gillies 10/21/02 10:36AM >>> Gerry, I'm not using Mapserver for any wx stuff, but I know the software well and I've seen tons of weather maps. Mapserver by itself is not going to be a good tool for displaying station data. If you had isopleths, fronts, troughs, etc. as vectors, and maybe even radar echos as rasters, Mapserver would be great for rendering these. You'd need some extra functionality for station data unless you could come up with a creative hack like turning station plots into shapes in a shapefile. If I were doing it, I'd use Mapserver or mapscript to make a base map, and then merge it with custom station data imagery created using the Python Imaging Library or Python or Perl script interfaces to the GD library. cheers, Sean Gerry Creager N5JXS wrote: > Has anyone been using Mapserver for meteorological implementations, > especially display of weather stations and their data? > > Could you please reply directly to gerry.creager at tamu.edu with URLs and > any comments pro- or con? > > Thanks, > Gerry From steve at sierraclubbc.org Tue Oct 22 13:33:30 2002 From: steve at sierraclubbc.org (Steve Young) Date: Tue, 22 Oct 2002 13:33:30 -0700 Subject: [mapserver-users] webuser text display Message-ID: Hi, I'm having problems displaying inline text using mapserver 3.6. I can get symbol to draw, but can't get text added. Has anyone else run into this problem? I'm new to mapserver so I could be tripping up on the obvious. It seems straightforward so it's all the more puzzling that I can't get it working. TIA, Steve >From the help page: "It is also possible to define inline features using this mechanism. This is the only case where you can add on to the map file. You can edit/change layer parameters but you cannot create a new layer. With inline features you have to first create a feature and then build upon it, however, the layer the feature belongs to must exist. Here's a snippet from a GET request that adds a feature to a webuser layer: ...&map_webuser_feature=new&map_webuser_feature_points=12345.6789+12345.6789 +map_webuser_feature_text=My+House!&..." _____________________ Steve Young GIS Technician E steve at sierraclubbc.org T 250 386 5255 F 250 386 4453 Sierra Club of BC 576 Johnson St Victoria B.C. V8W 1M3 CANADA www.sierraclub.ca/bc From sgillies at frii.com Tue Oct 22 13:50:17 2002 From: sgillies at frii.com (Sean Gillies) Date: Tue, 22 Oct 2002 14:50:17 -0600 Subject: [mapserver-users] Meteorological implementations? In-Reply-To: References: Message-ID: <3DB5BA09.5040307@frii.com> Steve, This link has a good explanation: http://weather.unisys.com/surface/details.html Gerry is talking about what UNISYS calls a surface data plot. I'm not promoting UNISYS, just came up first in a Google search. S. Steve Lime wrote: > Describe what you guys mean by station data? MapServer may just > be a piece of the puzzle. TrueType lines where added specifically with > meteorological data in mind. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From gerry.creager at tamu.edu Tue Oct 22 14:06:56 2002 From: gerry.creager at tamu.edu (Gerry Creager) Date: Tue, 22 Oct 2002 16:06:56 -0500 Subject: [mapserver-users] Meteorological implementations? References: Message-ID: <3DB5BDF0.7020402@tamu.edu> I believe this to be the case. Specifically, what I'v envisioned is a mapserver baselayer and core functionality as a mapservice, with weather station sites overlaid thereon, as queriable objects. I'd like to find a way to update the station data as new data rolls in (temperature, dew point, barometric pressure) as well as setting a wind barb character and rotating same to reflect the direction Specifically, what we're doing is creating the demo site for a "Mesonet" or a statewide, dense network of weather stations reporting conditions in near real time. (Sean, look at www.mesonet.org for a well established example.) We're working under some time constraints that are some where between ambitious and unrealistic to get an initial site up. That's why I decided to solicit some input here rather than trying to reinvent the wheel. Thanks! gerry Steve Lime wrote: > Describe what you guys mean by station data? MapServer may just > be a piece of the puzzle. TrueType lines where added specifically with > meteorological data in mind. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>>>Sean Gillies 10/21/02 10:36AM >>> >>> > Gerry, > > I'm not using Mapserver for any wx stuff, but I know > the software well and I've seen tons of weather maps. > > Mapserver by itself is not going to be a good tool > for displaying station data. If you had isopleths, > fronts, troughs, etc. as vectors, and maybe even > radar echos as rasters, Mapserver would be > great for rendering these. You'd need some extra > functionality for station data unless you could > come up with a creative hack like turning station > plots into shapes in a shapefile. > > If I were doing it, I'd use Mapserver or mapscript > to make a base map, and then merge it with custom > station data imagery created using the Python Imaging > Library or Python or Perl script interfaces to the > GD library. > > cheers, > Sean > > Gerry Creager N5JXS wrote: > > >>Has anyone been using Mapserver for meteorological implementations, >>especially display of weather stations and their data? >> >>Could you please reply directly to gerry.creager at tamu.edu with URLs > > and > >>any comments pro- or con? >> >>Thanks, >>Gerry > > -- -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.4301 Pager: 979.228.0173 From Steve_Palmer at lpsg.com Tue Oct 22 14:13:45 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Tue, 22 Oct 2002 16:13:45 -0500 Subject: [mapserver-users] webuser text display Message-ID: <750F5C5447AF18408DC73220B98FEAF7866889@lesexch02.lpsg.com> Here is one that works for me for an inline point.... Get request snippet... ...&map_address_feature=new&map_address_feature_points=513139.0325+911004.25 67&map_address_feature_text=129+MAIN+ST&... ... and corresponding feature layer... ####### Start Layer LAYER NAME address STATUS DEFAULT TYPE POINT FEATURE POINTS END END CLASS SYMBOL 'symbols/house.gif' LABEL TYPE BITMAP BACKGROUNDCOLOR 255 255 176 BACKGROUNDSHADOWCOLOR 0 0 0 SIZE TINY BUFFER 1 COLOR 0 0 0 POSITION UR END END END ####### End Layer Note that if you're trying to "logo's" or such things you specify image coordinates and set the layer's transform property to "OFF" (Default is "ON") -----Original Message----- From: Steve Young [mailto:steve at sierraclubbc.org] Sent: Tuesday, October 22, 2002 2:34 PM To: mapserver-users at lists.gis.umn.edu Cc: Nedjo Rogers Subject: [mapserver-users] webuser text display Hi, I'm having problems displaying inline text using mapserver 3.6. I can get symbol to draw, but can't get text added. Has anyone else run into this problem? I'm new to mapserver so I could be tripping up on the obvious. It seems straightforward so it's all the more puzzling that I can't get it working. TIA, Steve >From the help page: "It is also possible to define inline features using this mechanism. This is the only case where you can add on to the map file. You can edit/change layer parameters but you cannot create a new layer. With inline features you have to first create a feature and then build upon it, however, the layer the feature belongs to must exist. Here's a snippet from a GET request that adds a feature to a webuser layer: ...&map_webuser_feature=new&map_webuser_feature_points=12345.6789+12345.6789 +map_webuser_feature_text=My+House!&..." _____________________ Steve Young GIS Technician E steve at sierraclubbc.org T 250 386 5255 F 250 386 4453 Sierra Club of BC 576 Johnson St Victoria B.C. V8W 1M3 CANADA www.sierraclub.ca/bc -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewrcollins at yahoo.com Tue Oct 22 14:22:24 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Tue, 22 Oct 2002 14:22:24 -0700 (PDT) Subject: [mapserver-users] Announcing 3.6.3 [for Java] Message-ID: <20021022212224.58376.qmail@web14004.mail.yahoo.com> Included below are the three files necessary to create an implementation of MapScript for Java (on Windows, without any extra library support--a barebones compilation) with the most recent version of MapServer (3.6.3). I used MinGW, MSYS, GnuWin32 and Swig 1.3.15. MinGW: Minimalist GNU For Windows http://www.mingw.org/ MSYS http://www.mingw.org/msys.shtml GnuWin32 http://gnuwin32.sourceforge.net/ Swig http://www.swig.org/ The required libraries must be downloaded and unzipped in the main MapServer distribution directory. You may download pre-compiled versions from the GnuWin32 project pages: freetype-2.1.2-1-lib.zip freetype-2.1.2-bin.zip gdlib-1.8.4-1-bin.zip gdlib-1.8.4-lib.zip libjpeg-6b-bin.zip libjpeg-6b-lib.zip libpng-1.2.4-1-bin.zip libpng-1.2.4-1-lib.zip libttf-1.4-bin.zip libttf-1.4-lib.zip regex-0.12-bin.zip regex-0.12-lib.zip xpm-3.4k-1-bin.zip xpm-3.4k-1-lib.zip zlib-1.1.4-bin.zip zlib-1.1.4-lib.zip The included files go in the mapscript/java directory. Could these three files be added to the distribution? I am currently working on a Java-style facade for the implementation classes generated here. == Makefile == mapscript.i == MapScriptTest.java == Makefile #/* File : Makefile */ # # SWIG # SWIG=/e/win32app/SWIG-1.3.15/swig # # Java # JAVAC=/e/win32app/j2sdk1.4.1/bin/javac JAVA=/e/win32app/j2sdk1.4.1/bin/java JAR=/e/win32app/j2sdk1.4.1/bin/jar JAVA_INCLUDE=-I/e/win32app/j2sdk1.4.1/include -I/e/win32app/j2sdk1.4.1/include/win32 # # CC # CC=gcc # # # CCFLAGS=-g -O2 -Wall -Wstrict-prototypes MAPSCRIPT_FLAGS=-DIGNORE_MISSING_DATA -DUSE_JPEG -DUSE_GD_TTF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR INCLUDES=-I../../ -I../../include/ $(JAVA_INCLUDE) LDFLAGS=-L../.. -L../../lib -ljpeg_static -ljpeg -ljpeg_static -lttf -lpng -lz -lfreetype -lm -lregex # # # all: interface dll java test interface: mapscript.i $(SWIG) -I../.. -java -package edu.umn.gis.mapscript.imp mapscript.i dll: mapscript_wrap.c $(CC) $(CCFLAGS) $(MAPSCRIPT_FLAGS) $(INCLUDES) -c mapscript_wrap.c $(CC) $(CCFLAGS) -shared mapscript_wrap.o ../../libmap.a ../../lib/libregex.a ../../lib/libgd.a ../../lib/libXpm.a ../../lib/libfreetype.a ../../lib/libjpeg_static.a ../../bin/libjpeg.dll ../../lib/libjpeg.a ../../lib/libjpeg_static.a ../../bin/libjpeg.dll ../../lib/libpng.a ../../lib/libttf.a ../../lib/libz.a $(LDFLAGS) -Wl,--add-stdcall-alias -o mapscript_java.dll java:: $(JAVAC) -d . DBFInfo.java MapScript.java MapScriptJNI.java SWIGTYPE_p_FILE.java SWIGTYPE_p_gdImagePtr.java SWIGTYPE_p_int.java SWIGTYPE_p_joinObj.java SWIGTYPE_p_p_char.java SWIGTYPE_p_paletteObj.java SWIGTYPE_p_void.java classObj.java colorObj.java imageObj.java itemObj.java labelCacheMemberObj.java labelCacheObj.java labelObj.java layerObj.java legendObj.java lineObj.java mapObj.java markerCacheMemberObj.java pointObj.java projectionObj.java queryMapObj.java rectObj.java referenceMapObj.java resultCacheMemberObj.java resultCacheObj.java scalebarObj.java shapeObj.java shapefileObj.java styleObj.java webObj.java $(JAR) cf mapscript_imp.jar edu test:: $(JAVAC) -classpath mapscript_imp.jar MapScriptTest.java $(JAVA) -classpath "mapscript_imp.jar;." MapScriptTest clean: rm -rf edu mapscript_imp.jar *.class mapscript_wrap.o mapscript.o mapscript_java.dll mapscript_wrap.c mapscript.java mapscriptJNI.java DBFInfo.java SWIGTYPE_p_FILE.java SWIGTYPE_p_gdImagePtr.java SWIGTYPE_p_int.java SWIGTYPE_p_joinObj.java SWIGTYPE_p_p_char.java SWIGTYPE_p_paletteObj.java SWIGTYPE_p_void.java classObj.java colorObj.java imageObj.java itemObj.java labelCacheMemberObj.java labelCacheObj.java labelObj.java layerObj.java legendObj.java lineObj.java mapObj.java markerCacheMemberObj.java pointObj.java projectionObj.java queryMapObj.java rectObj.java referenceMapObj.java resultCacheMemberObj.java resultCacheObj.java scalebarObj.java shapeObj.java shapefileObj.java styleObj.java webObj.java == mapscript.i // // mapscript.i: SWIG interface file for MapServer scripting extension called MapScript. // // language specific initialization #ifdef SWIGTCL8 %module Mapscript %{ /* static global copy of Tcl interp */ static Tcl_Interp *SWIG_TCL_INTERP; %} %init %{ #ifdef USE_TCL_STUBS if (Tcl_InitStubs(interp, "8.1", 0) == NULL) { return TCL_ERROR; } /* save Tcl interp pointer to be used in getImageToVar() */ SWIG_TCL_INTERP = interp; #endif %} #endif // Java specific initialization #ifdef SWIGJAVA %module MapScript #endif %module mapscript %{ #include "../../map.h" #include "../../maptemplate.h" %} %include typemaps.i %include constraints.i %rename (_class) class; // Java specific initialization #ifdef SWIGJAVA %typemap(javacode) SWIGTYPE %{ public boolean equals(Object obj) { boolean equal = false; if (obj instanceof $javaclassname) { equal = ((($javaclassname) obj).swigCPtr == this.swigCPtr); } return equal; } %} #endif // grab mapserver declarations to wrap %include "../../mapprimitive.h" %include "../../mapshape.h" %include "../../mapproject.h" %include "../../map.h" // %include "../../maperror.h" %apply Pointer NONNULL { mapObj *map }; %apply Pointer NONNULL { layerObj *layer }; #ifdef SWIGPYTHON // For Python, errors reported via the ms_error structure are translated // into RuntimeError exceptions. (Chris Chamberlin ) %{ static void _raise_ms_exception(void) { char errbuf[256]; snprintf(errbuf, 255, "%s: %s %s\n", ms_error.routine, msGetErrorString(ms_error.code), ms_error.message); _SWIG_exception(SWIG_RuntimeError, errbuf); } #define raise_ms_exception() { _raise_ms_exception(); return NULL; } %} %except { $function if ( (ms_error.code != MS_NOERR) && (ms_error.code != -1) ) raise_ms_exception(); } #endif // SWIGPYTHON // // class extensions for mapObj // %extend mapObj { mapObj(char *filename) { mapObj *map; if(filename && strlen(filename)) return msLoadMap(filename, NULL); else { /* create an empty map, no layers etc... */ map = (mapObj *)malloc(sizeof(mapObj)); if(!map) { msSetError(MS_MEMERR, NULL, "msLoadMap()"); return NULL; } initMap(map); return map; } } ~mapObj() { msFreeMap(self); } layerObj *getLayer(int i) { if(i >= 0 && i < self->numlayers) return &(self->layers[i]); /* returns an EXISTING layer */ else return NULL; } layerObj *getLayerByName(char *name) { int i; i = msGetLayerIndex(self, name); if(i != -1) return &(self->layers[i]); /* returns an EXISTING layer */ else return NULL; } int addColor(int r, int g, int b) { return msAddColor(self, r, g, b); } int getSymbolByName(char *name) { return msGetSymbolIndex(&self->symbolset, name); } void prepareQuery() { int status; status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scale); if(status != MS_SUCCESS) self->scale = -1; // degenerate extents ok here } imageObj *prepareImage() { int status; imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; if(self->width == -1 || self->height == -1) { msSetError(MS_MISCERR, "Image dimensions not specified.", "prepareImage()"); return NULL; } image->bytes = gdImageCreate(self->width, self->height); if(!image->bytes) { msSetError(MS_GDERR, "Unable to initialize image.", "prepareImage()"); return NULL; } image->width = self->width; image->height = self->height; image->imagepath = image->imageurl = NULL; if(msLoadPalette(image->bytes, &(self->palette), self->imagecolor) == -1) return NULL; self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height); status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scale); if(status != MS_SUCCESS) return NULL; return image; } imageObj *draw() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawQuery() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawQueryMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawLegend() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawLegend(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawScalebar() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawScalebar(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawReferenceMap() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawReferenceMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } int embedScalebar(imageObj *image) { return msEmbedScalebar(self, image->bytes); } int embedLegend(imageObj *image) { return msEmbedLegend(self, image->bytes); } int drawLabelCache(imageObj *image) { return msDrawLabelCache(image->bytes, self); } int getImageToVar(imageObj *image, char *varname) { // set a scripting language variable by name with image data int size = 0; unsigned char *imgbytes; // Tcl implementation to define needed variables, initialization #ifdef SWIGTCL8 Tcl_Obj *imgobj; int flags = TCL_LEAVE_ERR_MSG; /* no other initialization needed */ #endif // Perl implementation to define needed variables, initialization #ifdef SWIGPERL #endif // Python implementation to define needed variables, initialization #ifdef SWIGPYTHON #endif // generic code to get imgbytes, size switch (self->imagetype) { case(MS_GIF): #ifdef USE_GD_GIF /* GD /w gif doesn't have gdImageGifPtr() */ msSetError(MS_MISCERR, "GIF output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_PNG): #ifdef USE_GD_PNG imgbytes = gdImagePngPtr(image->bytes, &size); #else msSetError(MS_MISCERR, "PNG output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_JPEG): #ifdef USE_GD_JPEG imgbytes = gdImageJpegPtr(image->bytes, &size, self->imagequality); #else msSetError(MS_MISCERR, "JPEG output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_WBMP): #ifdef USE_GD_WBMP imgbytes = gdImageWBMPPtr(image->bytes, &size, 1); #else msSetError(MS_MISCERR, "WBMP output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; default: msSetError(MS_MISCERR, "Unknown output image type.", "getImageToVar()"); return(MS_FAILURE); } // Tcl implementation to set variable #ifdef SWIGTCL8 imgobj = Tcl_NewByteArrayObj(imgbytes, size); Tcl_IncrRefCount(imgobj); Tcl_SetVar2Ex(SWIG_TCL_INTERP, varname, (char *)NULL, imgobj, flags); Tcl_DecrRefCount(imgobj); gdFree(imgbytes); return MS_SUCCESS; #endif // Perl implementation to set variable #ifdef SWIGPERL #endif // Python implementation to set variable #ifdef SWIGPYTHON #endif // return failure for unsupported swig languages msSetError(MS_MISCERR, "Unsupported scripting language.", "getImageToVar()"); return MS_FAILURE; } labelCacheMemberObj *nextLabel() { static int i=0; if(ilabelcache.numlabels) return &(self->labelcache.labels[i++]); else return NULL; } int queryByPoint(pointObj *point, int mode, double buffer) { return msQueryByPoint(self, -1, mode, *point, buffer); } int queryByRect(rectObj rect) { return msQueryByRect(self, -1, rect); } int queryByFeatures(int slayer) { return msQueryByFeatures(self, -1, slayer); } int queryByShape(shapeObj *shape) { return msQueryByShape(self, -1, shape); } //int setWKTProjection(char *string) { // return msLoadWKTProjectionString(string, &(self->projection)); //} %new char *getProjection() { return msGetProjectionString(&(self->projection)); } int setProjection(char *string) { return msLoadProjectionString(&(self->projection), string); } int save(char *filename) { return msSaveMap(self, filename); } int saveQuery(char *filename) { return msSaveQuery(self, filename); } int saveQueryAsGML(char *filename) { return msGMLWriteQuery(self, filename); } char *getMetaData(char *name) { return(msLookupHashTable(self->web.metadata, name)); } int setMetaData(char *name, char *value) { if (!self->web.metadata) self->web.metadata = msCreateHashTable(); if (msInsertHashTable(self->web.metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } int setSymbolSet(char *szFileName) { msFreeSymbolSet(&self->symbolset); msInitSymbolSet(&self->symbolset); // Set symbolset filename self->symbolset.filename = strdup(szFileName); // Symbolset shares same fontset as main mapfile self->symbolset.fontset = &(self->fontset); return msLoadSymbolSet(&self->symbolset); } int mapObj_getNumSymbols() { return self->symbolset.numsymbols; } int setFontSet(char *szFileName) { msFreeFontSet(&(self->fontset)); msInitFontSet(&(self->fontset)); // Set fontset filename self->fontset.filename = strdup(szFileName); return msLoadFontSet(&(self->fontset)); } int moveLayerup(int layerindex) { return msMoveLayerUp(self, layerindex); } int moveLayerdown(int layerindex) { return msMoveLayerDown(self, layerindex); } int *getLayersdrawingOrder() { return self->layerorder; } int setLayersdrawingOrder(int *panIndexes) { return msSetLayersdrawingOrder(self, panIndexes); } char *processTemplate(int bGenerateImages, char **names, char **values, int numentries) { return msProcessTemplate(self, bGenerateImages, names, values, numentries); } char *processLegendTemplate(char **names, char **values, int numentries) { return msProcessLegendTemplate(self, names, values, numentries); } char *processQueryTemplate(char **names, char **values, int numentries) { return msProcessQueryTemplate(self, names, values, numentries); } }; // // class extensions for layerObj, always within the context of a map // %extend layerObj { layerObj(mapObj *map) { if(map->numlayers == MS_MAXLAYERS) // no room return(NULL); if(initLayer(&(map->layers[map->numlayers])) == -1) return(NULL); map->layers[map->numlayers].index = map->numlayers; map->layerorder[map->numlayers] = map->numlayers; map->numlayers++; return &(map->layers[map->numlayers-1]); } ~layerObj() { return; // map deconstructor takes care of it } int open(char *path) { int status; status = msLayerOpen(self, path); if (status == MS_SUCCESS) { return msLayerGetItems(self); } return status; } void close() { msLayerClose(self); } int getShape(shapeObj *shape, int tileindex, int shapeindex) { return msLayerGetShape(self, shape, tileindex, shapeindex); } resultCacheMemberObj *getResult(int i) { if(!self->resultcache) return NULL; if(i >= 0 && i < self->resultcache->numresults) return &self->resultcache->results[i]; else return NULL; } classObj *getClass(int i) { // returns an EXISTING class if(i >= 0 && i < self->numclasses) return &(self->class[i]); else return NULL; } char *getItem(int i) { // returns an EXISTING item if(i >= 0 && i < self->numitems) return (self->items[i]); else return NULL; } int draw(mapObj *map, imageObj *image) { return msDrawLayer(map, self, image->bytes); } int drawQuery(mapObj *map, imageObj *image) { return msDrawLayer(map, self, image->bytes); } int queryByAttributes(mapObj *map, int mode) { return msQueryByAttributes(map, self->index, mode); } int queryByPoint(mapObj *map, pointObj *point, int mode, double buffer) { return msQueryByPoint(map, self->index, mode, *point, buffer); } int queryByRect(mapObj *map, rectObj rect) { return msQueryByRect(map, self->index, rect); } int queryByFeatures(mapObj *map, int slayer) { return msQueryByFeatures(map, self->index, slayer); } int queryByShape(mapObj *map, shapeObj *shape) { return msQueryByShape(map, self->index, shape); } int setFilter(char *string) { return loadExpressionString(&self->filter, string); } //int setWKTProjection(char *string) { // return msLoadWKTProjectionString(string, &(self->projection)); //} %new char *getProjection() { return msGetProjectionString(&(self->projection)); } int setProjection(char *string) { return msLoadProjectionString(&(self->projection), string); } int addFeature(shapeObj *shape) { self->connectiontype = MS_INLINE; // set explicitly if(insertFeatureList(&(self->features), shape) == NULL) return -1; else return 0; } char *getMetaData(char *name) { return(msLookupHashTable(self->metadata, name)); } int setMetaData(char *name, char *value) { if (!self->metadata) self->metadata = msCreateHashTable(); if (msInsertHashTable(self->metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } // No longer a memory leak, at least with swig 1.3.11. Swig makes a copy // of the returned string and then free's it. %new char *getWMSFeatureInfoURL(mapObj *map, int click_x, int click_y, int feature_count, char *info_format) { return(msWMSGetFeatureInfoURL(map, self, click_x, click_y, feature_count, info_format)); } }; // // class extensions for classObj, always within the context of a layer // %extend classObj { classObj(layerObj *layer) { if(layer->numclasses == MS_MAXCLASSES) // no room return NULL; if(initClass(&(layer->class[layer->numclasses])) == -1) return NULL; layer->class[layer->numclasses].type = layer->type; layer->numclasses++; return &(layer->class[layer->numclasses-1]); } ~classObj() { return; // do nothing, map deconstrutor takes care of it all } int setExpression(char *string) { return loadExpressionString(&self->expression, string); } int setText(layerObj *layer, char *string) { return loadExpressionString(&self->text, string); } char *getMetaData(char *name) { return(msLookupHashTable(self->metadata, name)); } int setMetaData(char *name, char *value) { if (!self->metadata) self->metadata = msCreateHashTable(); if (msInsertHashTable(self->metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } int drawLegendIcon(mapObj *map, layerObj *layer, int width, int height, imageObj *dstImage, int dstX, int dstY) { return msDrawLegendIcon(map, layer, self, width, height, dstImage->bytes, dstX, dstY); } imageObj *createLegendIcon(mapObj *map, layerObj *layer, int width, int height) { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msCreateLegendIcon(map, layer, self, width, height); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } }; // // class extensions for pointObj, useful many places // %extend pointObj { pointObj() { return (pointObj *)malloc(sizeof(pointObj)); } ~pointObj() { free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectPoint(in, out, self); } int draw(mapObj *map, layerObj *layer, imageObj *image, int classindex, char *text) { return msDrawPoint(map, layer, self, image->bytes, classindex, text); } double distanceToPoint(pointObj *point) { return msDistanceBetweenPoints(self, point); } double distanceToLine(pointObj *a, pointObj *b) { return msDistanceFromPointToLine(self, a, b); } double distanceToShape(shapeObj *shape) { switch(shape->type) { case(MS_SHAPE_POINT): return msDistanceFromPointToMultipoint(self, &(shape->line[0])); case(MS_SHAPE_LINE): return msDistanceFromPointToPolyline(self, shape); case(MS_SHAPE_POLYGON): return msDistanceFromPointToPolygon(self, shape); } return -1; } }; // // class extensions for lineObj (eg. a line or group of points), useful many places // %extend lineObj { lineObj() { lineObj *line; line = (lineObj *)malloc(sizeof(lineObj)); if(!line) return(NULL); line->numpoints=0; line->point=NULL; return line; } ~lineObj() { free(self->point); free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectLine(in, out, self); } pointObj *get(int i) { if(i<0 || i>=self->numpoints) return NULL; else return &(self->point[i]); } int add(pointObj *p) { if(self->numpoints == 0) { /* new */ self->point = (pointObj *)malloc(sizeof(pointObj)); if(!self->point) return -1; } else { /* extend array */ self->point = (pointObj *)realloc(self->point, sizeof(pointObj)*(self->numpoints+1)); if(!self->point) return -1; } self->point[self->numpoints].x = p->x; self->point[self->numpoints].y = p->y; self->numpoints++; return 0; } }; // // class extensions for shapeObj // %extend shapeObj { shapeObj(int type) { shapeObj *shape; shape = (shapeObj *)malloc(sizeof(shapeObj)); if(!shape) return NULL; msInitShape(shape); if(type >= 0) shape->type = type; return shape; } ~shapeObj() { msFreeShape(self); free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectShape(in, out, self); } lineObj *get(int i) { if(i<0 || i>=self->numlines) return NULL; else return &(self->line[i]); } int add(lineObj *line) { return msAddLine(self, line); } int draw(mapObj *map, layerObj *layer, imageObj *image) { return msDrawShape(map, layer, self, image->bytes, MS_TRUE); } void setBounds() { int i, j; self->bounds.minx = self->bounds.maxx = self->line[0].point[0].x; self->bounds.miny = self->bounds.maxy = self->line[0].point[0].y; for( i=0; inumlines; i++ ) { for( j=0; jline[i].numpoints; j++ ) { self->bounds.minx = MS_MIN(self->bounds.minx, self->line[i].point[j].x); self->bounds.maxx = MS_MAX(self->bounds.maxx, self->line[i].point[j].x); self->bounds.miny = MS_MIN(self->bounds.miny, self->line[i].point[j].y); self->bounds.maxy = MS_MAX(self->bounds.maxy, self->line[i].point[j].y); } } return; } int copy(shapeObj *dest) { return(msCopyShape(self, dest)); } char *getValue(int i) { // returns an EXISTING value if(i >= 0 && i < self->numvalues) return (self->values[i]); else return NULL; } int contains(pointObj *point) { if(self->type == MS_SHAPE_POLYGON) return msIntersectPointPolygon(point, self); return -1; } int intersects(shapeObj *shape) { switch(self->type) { case(MS_SHAPE_LINE): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylines(self, shape); case(MS_SHAPE_POLYGON): return msIntersectPolylinePolygon(self, shape); } break; case(MS_SHAPE_POLYGON): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylinePolygon(shape, self); case(MS_SHAPE_POLYGON): return msIntersectPolygons(self, shape); } break; } return -1; } }; // // class extensions for rectObj // %extend rectObj { rectObj() { rectObj *rect; rect = (rectObj *)calloc(1, sizeof(rectObj)); if(!rect) return(NULL); return(rect); } ~rectObj() { free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectRect(in, out, self); } double fit(int width, int height) { return msAdjustExtent(self, width, height); } int draw(mapObj *map, layerObj *layer, imageObj *image, int classindex, char *text) { shapeObj shape; msInitShape(&shape); msRectToPolygon(*self, &shape); shape.classindex = classindex; shape.text = strdup(text); msDrawShape(map, layer, &shape, image->bytes, MS_TRUE); msFreeShape(&shape); return 0; } }; // // class extensions for shapefileObj // %extend shapefileObj { shapefileObj(char *filename, int type) { shapefileObj *shapefile; int status; shapefile = (shapefileObj *)malloc(sizeof(shapefileObj)); if(!shapefile) return NULL; if(type == -1) status = msSHPOpenFile(shapefile, "rb", NULL, filename); else if(type == -2) status = msSHPOpenFile(shapefile, "rb+", NULL, filename); else status = msSHPCreateFile(shapefile, filename, type); if(status == -1) { msSHPCloseFile(shapefile); free(shapefile); return NULL; } return(shapefile); } ~shapefileObj() { msSHPCloseFile(self); free(self); } int get(int i, shapeObj *shape) { if(i<0 || i>=self->numshapes) return -1; msFreeShape(shape); /* frees all lines and points before re-filling */ msSHPReadShape(self->hSHP, i, shape); return 0; } int getPoint(int i, pointObj *point) { if(i<0 || i>=self->numshapes) return -1; msSHPReadPoint(self->hSHP, i, point); return 0; } int getTransformed(mapObj *map, int i, shapeObj *shape) { if(i<0 || i>=self->numshapes) return -1; msFreeShape(shape); /* frees all lines and points before re-filling */ msSHPReadShape(self->hSHP, i, shape); msTransformShape(shape, map->extent, map->cellsize); return 0; } void getExtent(int i, rectObj *rect) { msSHPReadBounds(self->hSHP, i, rect); } int add(shapeObj *shape) { return msSHPWriteShape(self->hSHP, shape); } int addPoint(pointObj *point) { return msSHPWritePoint(self->hSHP, point); } }; // // class extensions for imageObj // %extend imageObj { imageObj(int width, int height) { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = gdImageCreate(width, height); image->width = width; image->height = height; image->imagepath = image->imageurl = NULL; return(image); } ~imageObj() { gdImageDestroy(self->bytes); free(self->imagepath); free(self->imageurl); free(self); } void free() { gdImageDestroy(self->bytes); free(self->imagepath); free(self->imageurl); free(self); } void saveImage(char *filename, int type, int transparent, int interlace, int quality) { msSaveImage(self->bytes, filename, type, transparent, interlace, quality); } }; // // class extensions for projectionObj // %extend projectionObj { projectionObj(char *string) { int status; projectionObj *proj=NULL; proj = (projectionObj *)malloc(sizeof(projectionObj)); if(!proj) return NULL; msInitProjection(proj); status = msLoadProjectionString(proj, string); if(status == -1) { msFreeProjection(proj); free(proj); return NULL; } return proj; } ~projectionObj() { msFreeProjection(self); free(self); } }; // // class extensions for labelCacheObj - TP mods // %extend labelCacheObj { void freeCache() { int i; for (i = 0; i < self->numlabels; i++) { free(self->labels[i].string); msFreeShape(self->labels[i].poly); } self->numlabels = 0; for (i = 0; i < self->nummarkers; i++) { msFreeShape(self->markers[i].poly); } self->nummarkers = 0; } }; // // class extensions for DBFInfo - TP mods // %extend DBFInfo { char *getFieldName(int iField) { static char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pszFieldName; } int getFieldWidth(int iField) { char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pnWidth; } int getFieldDecimals(int iField) { char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pnDecimals; } int getFieldType(int iField) { return msDBFGetFieldInfo(self, iField, NULL, NULL, NULL); } }; == MapScriptTest.java /* File : main.java */ import edu.umn.gis.mapscript.imp.*; public class MapScriptTest { static { try { System.loadLibrary("mapscript_java"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n"); System.exit(1); } } public static void main(String argv[]) { System.out.println("MapScript.MS_SHAPEFILE_POINT=[" + MapScript.MS_SHAPEFILE_POINT + "]"); System.out.println("MapScript.MS_SHAPEFILE_ARC=[" + MapScript.MS_SHAPEFILE_ARC + "]"); System.out.println("MapScript.MS_SHAPEFILE_POLYGON=[" + MapScript.MS_SHAPEFILE_POLYGON + "]"); System.out.println("MapScript.MS_SHAPEFILE_MULTIPOINT=[" + MapScript.MS_SHAPEFILE_MULTIPOINT + "]"); System.out.println("MapScript.MS_SHP_POINTM=[" + MapScript.MS_SHP_POINTM + "]"); System.out.println("MapScript.MS_SHP_ARCM=[" + MapScript.MS_SHP_ARCM + "]"); System.out.println("MapScript.MS_SHP_POLYGONM=[" + MapScript.MS_SHP_POLYGONM + "]"); System.out.println("MapScript.MS_SHP_MULTIPOINTM=[" + MapScript.MS_SHP_MULTIPOINTM + "]"); System.out.println("MapScript.FTString=[" + MapScript.FTString + "]"); System.out.println("MapScript.FTInteger=[" + MapScript.FTInteger + "]"); System.out.println("MapScript.FTDouble=[" + MapScript.FTDouble + "]"); System.out.println("MapScript.FTInvalid=[" + MapScript.FTInvalid + "]"); System.out.println("MapScript.MS_VERSION=[" + MapScript.MS_VERSION + "]"); System.out.println("MapScript.MS_TRUE=[" + MapScript.MS_TRUE + "]"); System.out.println("MapScript.MS_FALSE=[" + MapScript.MS_FALSE + "]"); System.out.println("MapScript.MS_ON=[" + MapScript.MS_ON + "]"); System.out.println("MapScript.MS_OFF=[" + MapScript.MS_OFF + "]"); System.out.println("MapScript.MS_DEFAULT=[" + MapScript.MS_DEFAULT + "]"); System.out.println("MapScript.MS_EMBED=[" + MapScript.MS_EMBED + "]"); System.out.println("MapScript.MS_DELETE=[" + MapScript.MS_DELETE + "]"); System.out.println("MapScript.MS_YES=[" + MapScript.MS_YES + "]"); System.out.println("MapScript.MS_NO=[" + MapScript.MS_NO + "]"); System.out.println("MapScript.MS_SINGLE=[" + MapScript.MS_SINGLE + "]"); System.out.println("MapScript.MS_MULTIPLE=[" + MapScript.MS_MULTIPLE + "]"); System.out.println("MapScript.MS_FILE_MAP=[" + MapScript.MS_FILE_MAP + "]"); System.out.println("MapScript.MS_FILE_SYMBOL=[" + MapScript.MS_FILE_SYMBOL + "]"); System.out.println("MapScript.MS_INCHES=[" + MapScript.MS_INCHES + "]"); System.out.println("MapScript.MS_FEET=[" + MapScript.MS_FEET + "]"); System.out.println("MapScript.MS_MILES=[" + MapScript.MS_MILES + "]"); System.out.println("MapScript.MS_METERS=[" + MapScript.MS_METERS + "]"); System.out.println("MapScript.MS_KILOMETERS=[" + MapScript.MS_KILOMETERS + "]"); System.out.println("MapScript.MS_DD=[" + MapScript.MS_DD + "]"); System.out.println("MapScript.MS_PIXELS=[" + MapScript.MS_PIXELS + "]"); System.out.println("MapScript.MS_SHAPE_POINT=[" + MapScript.MS_SHAPE_POINT + "]"); System.out.println("MapScript.MS_SHAPE_LINE=[" + MapScript.MS_SHAPE_LINE + "]"); System.out.println("MapScript.MS_SHAPE_POLYGON=[" + MapScript.MS_SHAPE_POLYGON + "]"); System.out.println("MapScript.MS_SHAPE_NULL=[" + MapScript.MS_SHAPE_NULL + "]"); System.out.println("MapScript.MS_LAYER_POINT=[" + MapScript.MS_LAYER_POINT + "]"); System.out.println("MapScript.MS_LAYER_LINE=[" + MapScript.MS_LAYER_LINE + "]"); System.out.println("MapScript.MS_LAYER_POLYGON=[" + MapScript.MS_LAYER_POLYGON + "]"); System.out.println("MapScript.MS_LAYER_RASTER=[" + MapScript.MS_LAYER_RASTER + "]"); System.out.println("MapScript.MS_LAYER_ANNOTATION=[" + MapScript.MS_LAYER_ANNOTATION + "]"); System.out.println("MapScript.MS_LAYER_QUERY=[" + MapScript.MS_LAYER_QUERY + "]"); System.out.println("MapScript.MS_LAYER_CIRCLE=[" + MapScript.MS_LAYER_CIRCLE + "]"); System.out.println("MapScript.MS_TRUETYPE=[" + MapScript.MS_TRUETYPE + "]"); System.out.println("MapScript.MS_BITMAP=[" + MapScript.MS_BITMAP + "]"); System.out.println("MapScript.MS_UL=[" + MapScript.MS_UL + "]"); System.out.println("MapScript.MS_LR=[" + MapScript.MS_LR + "]"); System.out.println("MapScript.MS_UR=[" + MapScript.MS_UR + "]"); System.out.println("MapScript.MS_LL=[" + MapScript.MS_LL + "]"); System.out.println("MapScript.MS_CR=[" + MapScript.MS_CR + "]"); System.out.println("MapScript.MS_CL=[" + MapScript.MS_CL + "]"); System.out.println("MapScript.MS_UC=[" + MapScript.MS_UC + "]"); System.out.println("MapScript.MS_LC=[" + MapScript.MS_LC + "]"); System.out.println("MapScript.MS_CC=[" + MapScript.MS_CC + "]"); System.out.println("MapScript.MS_AUTO=[" + MapScript.MS_AUTO + "]"); System.out.println("MapScript.MS_XY=[" + MapScript.MS_XY + "]"); System.out.println("MapScript.MS_TINY=[" + MapScript.MS_TINY + "]"); System.out.println("MapScript.MS_SMALL=[" + MapScript.MS_SMALL + "]"); System.out.println("MapScript.MS_MEDIUM=[" + MapScript.MS_MEDIUM + "]"); System.out.println("MapScript.MS_LARGE=[" + MapScript.MS_LARGE + "]"); System.out.println("MapScript.MS_GIANT=[" + MapScript.MS_GIANT + "]"); System.out.println("MapScript.MS_NORMAL=[" + MapScript.MS_NORMAL + "]"); System.out.println("MapScript.MS_HILITE=[" + MapScript.MS_HILITE + "]"); System.out.println("MapScript.MS_SELECTED=[" + MapScript.MS_SELECTED + "]"); System.out.println("MapScript.MS_INLINE=[" + MapScript.MS_INLINE + "]"); System.out.println("MapScript.MS_SHAPEFILE=[" + MapScript.MS_SHAPEFILE + "]"); System.out.println("MapScript.MS_TILED_SHAPEFILE=[" + MapScript.MS_TILED_SHAPEFILE + "]"); System.out.println("MapScript.MS_SDE=[" + MapScript.MS_SDE + "]"); System.out.println("MapScript.MS_OGR=[" + MapScript.MS_OGR + "]"); System.out.println("MapScript.MS_UNUSED_1=[" + MapScript.MS_UNUSED_1 + "]"); System.out.println("MapScript.MS_POSTGIS=[" + MapScript.MS_POSTGIS + "]"); System.out.println("MapScript.MS_WMS=[" + MapScript.MS_WMS + "]"); System.out.println("MapScript.MS_ORACLESPATIAL=[" + MapScript.MS_ORACLESPATIAL + "]"); System.out.println("MapScript.MS_GIF=[" + MapScript.MS_GIF + "]"); System.out.println("MapScript.MS_PNG=[" + MapScript.MS_PNG + "]"); System.out.println("MapScript.MS_JPEG=[" + MapScript.MS_JPEG + "]"); System.out.println("MapScript.MS_WBMP=[" + MapScript.MS_WBMP + "]"); System.out.println("MapScript.MS_GML=[" + MapScript.MS_GML + "]"); System.out.println("MapScript.MS_CJC_NONE=[" + MapScript.MS_CJC_NONE + "]"); System.out.println("MapScript.MS_CJC_BEVEL=[" + MapScript.MS_CJC_BEVEL + "]"); System.out.println("MapScript.MS_CJC_BUTT=[" + MapScript.MS_CJC_BUTT + "]"); System.out.println("MapScript.MS_CJC_MITER=[" + MapScript.MS_CJC_MITER + "]"); System.out.println("MapScript.MS_CJC_ROUND=[" + MapScript.MS_CJC_ROUND + "]"); System.out.println("MapScript.MS_CJC_SQUARE=[" + MapScript.MS_CJC_SQUARE + "]"); System.out.println("MapScript.MS_CJC_TRIANGLE=[" + MapScript.MS_CJC_TRIANGLE + "]"); System.out.println("MapScript.MS_SUCCESS=[" + MapScript.MS_SUCCESS + "]"); System.out.println("MapScript.MS_FAILURE=[" + MapScript.MS_FAILURE + "]"); System.out.println("MapScript.MS_DONE=[" + MapScript.MS_DONE + "]"); } } ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From gerald80 at eudoramail.com Wed Oct 23 00:47:21 2002 From: gerald80 at eudoramail.com (gerald villacarlos) Date: Wed, 23 Oct 2002 00:47:21 -0700 Subject: [mapserver-users] creating shapefile Message-ID: hello list i successfully make a simple web application on GIS from the GMAP demo, i have found out a particular fuction in mapscript creating point shapefile using the createpoint function. now my question is. is there a function in mapscript for createline shapefile or createpoly or something like that... thank you for your help..... -gerald --- Gerald Villacarlos Systems Administrator/DB Programmer GEOPLAN Cebu Foundation, Inc. GIS Center c/o DOST-7 M Cuenco Ave., Cebu City +639176475540 gerald_v at yahoo.com http://www.geocities.com/gerald_v Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com From gerald at cvis.net.ph Tue Oct 22 15:01:45 2002 From: gerald at cvis.net.ph (gerald) Date: Wed, 23 Oct 2002 06:01:45 +0800 Subject: [mapserver-users] creating shapefile Message-ID: <016501c27a16$9ce64100$0264a8c0@geoplan.cvis.net.ph> hello list i successfully make a simple web application on GIS, i have found out a particular fuction in mapscript creating point shapefile using the createpoint function. now my question is. is there a function in mapscript for createline shapefile or createpoly or something like that... thank you for your help..... -gerald ------------------------------------------------------------ Gerald Villacarlos Systems Administrator/DB Programmer GEOPLAN Cebu Foundation, Inc. GIS Center c/o DOST-7 M Cuenco Ave., Banilad Cebu City, Philippines, 6000 +639176475540, 231-6209 gerald at cvis.net.ph http://geoplan.cvis.net.ph ---------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at gdv.com Wed Oct 23 03:07:40 2002 From: wesp at gdv.com (Oliver Wesp) Date: Wed, 23 Oct 2002 12:07:40 +0200 Subject: AW: [mapserver-users] Problem querying SDE layer In-Reply-To: Message-ID: <000701c27a7c$05593160$1501a8c0@else> Hi Debbie, all I can say, is that querying an SDE layer is not different from querying anything else. I have query and itemquery requests working on SDE-Layers. But I had a hell of a time getting it done. SDE-Support is declared as alpha on the Website. Not without any reason. What mapserver-release do you use? We recently made some changes to the sourcecode regarding SDE-Support and afaik the changes will be reflected in 3.7. But I can send you our mapsde.c. I don't know if it solves your problem, but you can give it a shot. A least it solves some problems you will be facing as soon as you get the query-modes working. And here's another adice when working with SDE: don't panic. greetings Oliver > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] Im Auftrag > von Debbie Pagurek > Gesendet: Dienstag, 22. Oktober 2002 15:57 > An: mapserver-users at lists.gis.umn.edu > Betreff: [mapserver-users] Problem querying SDE layer > > > I have an application that is displaying, zooming etc and SDE > layer and that's all working fine, but whenever I try to > query I'm getting: > > Content-type: text/html msSDELayerGetShape(): SDE error. > SE_stream_fetch(): Shape or row not found. (-22) > > Can anyone suggest what might be wrong? Is querying an SDE > layer with Mapserver different in some way from querying > anything else (shapefile)? > > Below is my mapfile and template file (test.html) > > Thanks, > D. Pagurek > > # > # Start of map file > # > NAME META > SIZE 500 434 > EXTENT -2647393 5656194 2892379 10462762 > UNITS METERS > > IMAGECOLOR 255 255 255 > > # Start of web interface definition > # > WEB > TEMPLATE 'meta.html' > IMAGEPATH '/usr/www/httpd/htdocs/mapdata/tmp/' > IMAGEURL '/mapdata/tmp/' > END > > # > # Start of legend > # > LEGEND > STATUS ON > OUTLINECOLOR 0 0 0 > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE SMALL > COLOR 0 0 0 > END > END #LEGEND > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 0 0 > SIZE tiny > END #LABEL > STYLE 1 > SIZE 100 4 > COLOR 153 153 153 > UNITS meters > INTERVALS 3 > END #SCALEBAR > > # > # Start of layer definitions > LAYER > NAME surveys > TYPE polygon > STATUS DEFAULT > CONNECTIONTYPE sde > CONNECTION "myserver.gis.agr.ca,esri_sde,ORACLE,meta,mapper" > DATA "SURVEYINDEX,shape" > TEMPLATE "test.html" > CLASSITEM 'STATUS' > CLASS > EXPRESSION 'NOT SURVEYED' > NAME 'Not Surveyed' > COLOR 153 153 153 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION 'NOT DIGITAL' > NAME 'Not Digital' > COLOR 153 0 51 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION 'NOT ONLINE' > NAME 'Not Online' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION 'INCOMPLETE' > NAME 'Incomplete' > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION 'COMPLETE' > NAME 'Complete' > COLOR 51 255 0 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION 'WATER' > NAME 'Water' > COLOR 0 0 255 > OUTLINECOLOR 0 0 0 > END > TOLERANCEUNITS METERS > TOLERANCE 3 > > END # LAYER > > END # MAPFILE > > > > My template file isn't coming up at all, instead I get the > above error message. But here's what it looks like: > > > > SEARCH WINDOW: [imgext]
> QUERY POINT: ([img.x], [img.y]) image coordinates or > ([mapx], [mapy]) map coordinates

> > INDEX_ID=[INDEX_ID]
> STATUS=[STATUS]
> > > > > > > > > > From dpadron at lareserva.com Wed Oct 23 03:15:02 2002 From: dpadron at lareserva.com (Diego Padr=?ISO-8859-1?Q?=F3?=n Paredes) Date: Wed, 23 Oct 2002 04:15:02 -0600 Subject: [mapserver-users] Help Connect php-mapscript to data base in MySql Message-ID: <200210230415.AA26149524@lareserva.com> Greetings Somebody can help me in as to connect php-mapscript to a data base in MySql. Transferi DBF to Mysql but profit not to already do coneccion. The source of data this in format SHP. Thank for the possible help. excuses by ingles _____________________________ Pura Vida! www.lareserva.com From yeong888 at giga.net.tw Wed Oct 23 06:26:33 2002 From: yeong888 at giga.net.tw (yeong888 at giga.net.tw) Date: Wed, 23 Oct 2002 21:26:33 +0800 (CST) Subject: [mapserver-users] How to query the non geometry data in POSTGIS? Message-ID: <1035379593.3db6a38919b55@webmail2.giga.net.tw> Dear all: I am sorry to bother everyone. I have been tried the MapServer+PostGIS many times, but I can't find the soultion to resolve question following: How to query the non geometry data in PostGIS+PostgreSQL? Is there anyone can tell how to handle this problem? Thank you From pagurekd at agr.gc.ca Wed Oct 23 08:14:32 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Wed, 23 Oct 2002 11:14:32 -0400 Subject: [mapserver-users] I have a question about the GMapPix2Geo function (listed below). Message-ID: I have a question about the GMapPix2Geo function (listed below). I have a map of the world showing in lat long. The below function only seems to work if I am zoomed IN really far and it doesn't work if I am at the full extent of the map (minx=-180, maxx=180, miny=-90, maxy=90) Can anyone comment on this? I wanted to build a mouseover function that will show the coordinates of the mouse position in the windows status bar. Thanks, D. Pagurek /************************************************************************/ /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin,dfGeoMax, $nInversePix) */ /* Utility function to convert a pixel position to geocoded position. */ /* */ /* The parameter $nInversePix could be set to 1 for Y pixel coordinates where the UL > LR. Else set to 0. */ /************************************************************************/ function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { // $nPixPos : pixel position (X or Y) // $dfPixMin, $dfPixMax : Pixel minimum and maximum (X or Y) of your map on the screen (should be 0 to xxx) // $dfGeoMin, $dfGeoMax : Geographic coordinate min max (X or Y) of your map on the screen $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } From vatsavai at cs.umn.edu Wed Oct 23 09:18:55 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 23 Oct 2002 11:18:55 -0500 (CDT) Subject: [mapserver-users] cvs access Message-ID: <200210231618.LAA03298@pluto.cs.umn.edu> Hello Mapserver(ers) CVS is back to its full functionality with same username/passwd acess. However you have to update the path from /data/cvsroot to /data2/cvsroot. Here is the updataed env varialble looks like: :pserver:cvs at mapserver.gis.umn.edu:/data2/cvsroot Let Steve know if you have any problems accessing any of the following repositories: mapserver mapserver_demos mapserver_docs Thanks Raju ----- From vramos at icnet.com.ve Wed Oct 23 09:33:04 2002 From: vramos at icnet.com.ve (Virgilio Ramos) Date: 23 Oct 2002 12:33:04 -0400 Subject: [mapserver-users] List Archives error Message-ID: <1035390802.3741.35.camel@ptm3vrr> Hi list and Raju FYI. I am trying to use the list archives(mapserver-users), but it reports an error (500). -- Virgilio Ramos GeoCAD C.A. www.geocad.com.ve From vatsavai at cs.umn.edu Wed Oct 23 09:38:40 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 23 Oct 2002 11:38:40 -0500 (CDT) Subject: [mapserver-users] lists performance Message-ID: <200210231638.LAA03307@pluto.cs.umn.edu> Hello All Thanks to all users who responded to 'bonced mail problem' which degrades the performance. We are using Majordomo software and it do have a program to manage bounced mails (semi automatically). One of the parameters it requires is the mailing address of the user. Well that is the problem! to get address from bounced mail (about 500 messages/per day). My guess is roughly we have 35-50 defunct users out 600 subscribed users. Some of user problems are temporary and some are fatal. So if I can identify these users (need some easy way of doing it - any help from you guys is apriciated) then I can use bounce utility to manage these users separately (which will grately improve delivery times). I am providing some sample bounced messages to help you give useful suggestions: Note I am removing users-id and instead using xxxx and yyyy's (to maintain privacy). 1. ----- The following addresses had permanent fatal errors ----- (reason: 552 recipient storage full, try again later) ----- Transcript of session follows ----- ... while talking to yyyy.yyyy.outblaze.com.: >>> DATA <<< 552 recipient storage full, try again later 554 5.0.0 Service unavailable <<< 503 RCPT first (#5.5.1) 2. Your message was not delivered to the following recipients: xxxxx at yyyy.com: User unknown [ Part 2: "Delivery Status" ] Reporting-MTA: dns;cpmx.mail.yyyy.com 3. The original message was received at Sat, 19 Oct 2002 18:45:35 -0500 (CDT) from localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- xxxx at netsitemail.com.br (reason: 550 : User unknown) xxxx at joelhq.com (reason: 550 Host unknown) xxxx at mediaone.net (reason: 550 : User unknown) xxxx at marn.gob.sv (reason: 550 5.1.1 ... User unknown) xxxx at telus.net (reason: 550 Invalid recipient: ) xxxx.xxxx at tietoenator.com (reason: 550 Host unknown) xxxx at starss.net 4. and several other types of errors ... So I need help in identifying these users without opening my mailbox and reading these mails to get email addresses. Please let me know if you guys are aware of any tools/scripts that can do this job. Thanks Raju ---- From bfraser at geoanalytic.com Wed Oct 23 10:23:18 2002 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 23 Oct 2002 11:23:18 -0600 Subject: [mapserver-users] How to query the non geometry data in POSTGIS? References: <1035379593.3db6a38919b55@webmail2.giga.net.tw> Message-ID: <047201c27ab8$e11228b0$020002c0@SHARK> It depends on your requirement. 1. If you want to allow end-user queries of non-geometric tables stored in POSTGIS (which means they're just plain old PostgreSQL tables), then MapServer or MapScript can't do it (at least not that I know of). Use server-side scripting such as Perl, PHP, etc. 2. If you want to simply put a restriction on the geometric data returned based on attibute values, add a where-clause to the layer's DATA definition in the map file. This can get fairly sophisticated in MapServer 3.7 as you can use sub-SELECT statements to perform joins between the geometric table and other non-geometric tables. Here's a snippet from David Blasby's message of Sept 30: DATA "the_geom from (SELECT the_geom, nut3.nurgcd as nurgcd, un3rt.unit as unit,gid FROM nut3) as foo using unique gid using SRID=6543" 3. If you want to allow end-user queries of geometric tables based on attribute values, I think the answer is MapScript. I would like to find out how to do it using just the CGI interface, but I think it is beyond MapServer's capabilies. How about enhancing MapServer to allow the passing of a where-clause for a layer via http? Brent Fraser ----- Original Message ----- From: To: Sent: Wednesday, October 23, 2002 7:26 AM Subject: [mapserver-users] How to query the non geometry data in POSTGIS? > Dear all: > I am sorry to bother everyone. I have been tried the MapServer+PostGIS > many times, but I can't find the soultion to resolve question following: > How to query the non geometry data in PostGIS+PostgreSQL? > Is there anyone can tell how to handle this problem? > > Thank you > From steve.lime at dnr.state.mn.us Wed Oct 23 11:08:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 23 Oct 2002 13:08:16 -0500 Subject: [mapserver-users] Meteorological implementations? Message-ID: You might be able to do that MapServer, depends on how sophisticated the labeling needs to be. Version 3.7 lets you offset features so you could define complex presentations around a station point using multiple layers. As long as data could be stored in shapefiles or another supported format you'd be ok. You could also do something like: http://thoreau.dnr.state.mn.us/weather/map.html Where detailed station data is presented when the mouse moves over a station, while displaying more general data in the map itself. In this case we store station data in XML files but could easily access a version of the data that is stored in a relational database. Just thinking out loud... Steve >>> Gerry Creager 10/22/02 04:06PM >>> I believe this to be the case. Specifically, what I'v envisioned is a mapserver baselayer and core functionality as a mapservice, with weather station sites overlaid thereon, as queriable objects. I'd like to find a way to update the station data as new data rolls in (temperature, dew point, barometric pressure) as well as setting a wind barb character and rotating same to reflect the direction Specifically, what we're doing is creating the demo site for a "Mesonet" or a statewide, dense network of weather stations reporting conditions in near real time. (Sean, look at www.mesonet.org for a well established example.) We're working under some time constraints that are some where between ambitious and unrealistic to get an initial site up. That's why I decided to solicit some input here rather than trying to reinvent the wheel. Thanks! gerry Steve Lime wrote: > Describe what you guys mean by station data? MapServer may just > be a piece of the puzzle. TrueType lines where added specifically with > meteorological data in mind. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>>>Sean Gillies 10/21/02 10:36AM >>> >>> > Gerry, > > I'm not using Mapserver for any wx stuff, but I know > the software well and I've seen tons of weather maps. > > Mapserver by itself is not going to be a good tool > for displaying station data. If you had isopleths, > fronts, troughs, etc. as vectors, and maybe even > radar echos as rasters, Mapserver would be > great for rendering these. You'd need some extra > functionality for station data unless you could > come up with a creative hack like turning station > plots into shapes in a shapefile. > > If I were doing it, I'd use Mapserver or mapscript > to make a base map, and then merge it with custom > station data imagery created using the Python Imaging > Library or Python or Perl script interfaces to the > GD library. > > cheers, > Sean > > Gerry Creager N5JXS wrote: > > >>Has anyone been using Mapserver for meteorological implementations, >>especially display of weather stations and their data? >> >>Could you please reply directly to gerry.creager at tamu.edu with URLs > > and > >>any comments pro- or con? >> >>Thanks, >>Gerry > > -- -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.4301 Pager: 979.228.0173 From assefa at dmsolutions.ca Wed Oct 23 11:12:53 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 23 Oct 2002 14:12:53 -0400 Subject: [mapserver-users] I have a question about the GMapPix2Geo function (listedbelow). References: Message-ID: <3DB6E6A5.DA3C718@dmsolutions.ca> Do you have any values for which the function fails ? PS : this function has been used in the GMap demo for some time now. I do not think that there is a problem with it but ... Later Debbie Pagurek wrote: > I have a question about the GMapPix2Geo function (listed below). > I have a map of the world showing in lat long. The below function only seems to work if I am zoomed IN really far and it doesn't work if I am at the full extent of the map (minx=-180, maxx=180, miny=-90, maxy=90) > > Can anyone comment on this? I wanted to build a mouseover function that will show the coordinates of the mouse position in the windows status bar. > > Thanks, > D. Pagurek > > /************************************************************************/ > /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin,dfGeoMax, $nInversePix) */ > /* Utility function to convert a pixel position to geocoded position. */ > /* */ > /* The parameter $nInversePix could be set to 1 for Y pixel coordinates where the UL > LR. Else set to 0. */ > /************************************************************************/ > function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) > { > // $nPixPos : pixel position (X or Y) > // $dfPixMin, $dfPixMax : Pixel minimum and maximum (X or Y) of your map on the screen (should be 0 to xxx) > // $dfGeoMin, $dfGeoMax : Geographic coordinate min max (X or Y) of your map on the screen > > $dfWidthGeo = $dfGeoMax - $dfGeoMin; > $dfWidthPix = $dfPixMax - $dfPixMin; > > > $dfPixToGeo = $dfWidthGeo / $dfWidthPix; > > if (!$nInversePix) > $dfDeltaPix = $nPixPos - $dfPixMin; > else > $dfDeltaPix = $dfPixMax - $nPixPos; > > $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; > > $dfPosGeo = $dfGeoMin + $dfDeltaGeo; > > return ($dfPosGeo); > } -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bfraser at geoanalytic.com Wed Oct 23 11:22:28 2002 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 23 Oct 2002 12:22:28 -0600 Subject: Fw: [mapserver-users] How to query the non geometry data in POSTGIS? Message-ID: <083901c27ac1$24e0bc20$020002c0@SHARK> Well, I should read the MapServer doc before making requests. There alreadly exists a CGI mechanism for changing a map file variable from a web page. See the bottom of: http://mapserver.gis.umn.edu/doc36/cgi-reference.html This will solve my problem of allow end-user queries on-the-fly; I'll have some JavaScript create a new DATA string with a where-clause based on user specified attribute values. Brent Fraser ----- Original Message ----- From: "Brent Fraser" To: ; Sent: Wednesday, October 23, 2002 11:23 AM Subject: Re: [mapserver-users] How to query the non geometry data in POSTGIS? > It depends on your requirement. > > 1. If you want to allow end-user queries of non-geometric tables stored in > POSTGIS (which means they're just plain old PostgreSQL tables), then > MapServer or MapScript can't do it (at least not that I know of). Use > server-side scripting such as Perl, PHP, etc. > > > 2. If you want to simply put a restriction on the geometric data returned > based on attibute values, add a where-clause to the layer's DATA definition > in the map file. This can get fairly sophisticated in MapServer 3.7 as you > can use sub-SELECT statements to perform joins between the geometric table > and other non-geometric tables. Here's a snippet from David Blasby's > message of Sept 30: > > DATA "the_geom from (SELECT the_geom, nut3.nurgcd as nurgcd, un3rt.unit > as > unit,gid FROM nut3) as foo using unique gid using SRID=6543" > > > 3. If you want to allow end-user queries of geometric tables based on > attribute values, I think the answer is MapScript. I would like to find out > how to do it using just the CGI interface, but I think it is beyond > MapServer's capabilies. > > How about enhancing MapServer to allow the passing of a where-clause for a > layer via http? > > Brent Fraser > > ----- Original Message ----- > From: > To: > Sent: Wednesday, October 23, 2002 7:26 AM > Subject: [mapserver-users] How to query the non geometry data in POSTGIS? > > > > Dear all: > > I am sorry to bother everyone. I have been tried the MapServer+PostGIS > > many times, but I can't find the soultion to resolve question following: > > How to query the non geometry data in PostGIS+PostgreSQL? > > Is there anyone can tell how to handle this problem? > > > > Thank you > > > From pkishor at GeoAnalytics.com Wed Oct 23 12:03:08 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 23 Oct 2002 14:03:08 -0500 Subject: [mapserver-users] I have a question about the GMapPix2Geo fun ction (listed below). Message-ID: well, the function is doing its best to map pixels (cartesian space) to whatever the actual geographic coords might be... would work best if they were also cartesian. lat long is its own beast. Zoom in sufficiently and it behaves (converges toward) like a cartesian space. Same thing if you are near the equator. Travel away from the equator, or zoom out, and you are suddenly trying to map curved "orange peels" onto the flat surface of the monitor. huh! I mean, hth! ;-) > -----Original Message----- > From: Debbie Pagurek [mailto:pagurekd at agr.gc.ca] > Sent: Wednesday, October 23, 2002 10:15 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] I have a question about the GMapPix2Geo > function (listed below). > > > I have a question about the GMapPix2Geo function (listed below). > I have a map of the world showing in lat long. The below > function only seems to work if I am zoomed IN really far and > it doesn't work if I am at the full extent of the map > (minx=-180, maxx=180, miny=-90, maxy=90) > > Can anyone comment on this? I wanted to build a mouseover > function that will show the coordinates of the mouse position > in the windows status bar. > > Thanks, > D. Pagurek > > > /************************************************************* > ***********/ > /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, > $dfGeoMin,dfGeoMax, $nInversePix) */ > /* Utility function to convert a pixel position to > geocoded position. > */ > /* > */ > /* The parameter $nInversePix could be set to 1 for Y > pixel coordinates where the UL > LR. Else set to 0. > */ > /************************************************************* > ***********/ > function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, > $dfGeoMin, $dfGeoMax, $nInversePix) > { > // $nPixPos : pixel position (X or Y) > // $dfPixMin, $dfPixMax : Pixel minimum and maximum (X or > Y) of your map on the screen (should be 0 to xxx) > // $dfGeoMin, $dfGeoMax : Geographic coordinate min max (X > or Y) of your map on the screen > > $dfWidthGeo = $dfGeoMax - $dfGeoMin; > $dfWidthPix = $dfPixMax - $dfPixMin; > > > $dfPixToGeo = $dfWidthGeo / $dfWidthPix; > > if (!$nInversePix) > $dfDeltaPix = $nPixPos - $dfPixMin; > else > $dfDeltaPix = $dfPixMax - $nPixPos; > > $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; > > > $dfPosGeo = $dfGeoMin + $dfDeltaGeo; > > return ($dfPosGeo); > } > > > From otesta at s6.coopenet.com.ar Wed Oct 23 12:01:57 2002 From: otesta at s6.coopenet.com.ar (Oscar Testa) Date: Wed, 23 Oct 2002 16:01:57 -0300 Subject: [mapserver-users] PHP-Mapscript problem Message-ID: <200210231901.g9NJ1vq17000@backbone.s6.coopenet.com.ar> Hello, I'm Oscar Testa. I'm working with Mapserver 3.6.3 in win2k system (not in cygwin mode). I trying to use PHP-Mapscript 3.6.3, but when i try to open a .map with only one layer in a postgis database appear an error, that couldnt open that map file. I suppose (after reading more bibliography in Internet) that the problem is PHP-Mapscript is not compiled with the option --postgis. Can somebody help me in find a mapscript.dll with that option??? Thanks a lot Oscar P.D.: version of postgreSQL 7.2.3, and version of Postgis 0.7.3 Both runing in cygwin mode in a win2k machine. From gabriel at ciasc.gov.br Wed Oct 23 13:07:35 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 23 Oct 2002 17:07:35 -0300 Subject: [mapserver-users] mouse over map (FWD) References: <200202011751.LAA15126@mallit.fr.umn.edu> Message-ID: <029301c27acf$d439ec60$12d713ac@ciasc.gov.br> This was a good example on weather use of MS. Today, I could not find this URL. Anyone could help me. ----- Original Message ----- From: "teb" To: Cc: Sent: Friday, February 01, 2002 2:51 PM Subject: [mapserver-users] mouse over map (FWD) > > ------------- Begin Forwarded Message ------------- > > From: "Stender, Amy ERDC-CRREL-NH" > To: mapserver-info at lists.gis.umn.edu > Subject: mouse over map > Date: Fri, 1 Feb 2002 10:15:35 -0500 > MIME-Version: 1.0 > > I was looking at the DNR weather map: > > http://www.dnr.state.mn.us/weather/map.html > > and I was wondering if anyone could help me try something like that for my > map. I'd like the user to be able to mouse over a point and have an > "alt"-like box appear next to the mouse. But my map isn't static, so I can > necessarily say: when mouse is that this pixel by this pixel, popUp. > > Is this something I'll have to alter in the mapplet? > > Thanks in advance, > Amy > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > > > ------------- End Forwarded Message ------------- > From uffe at routeware.dk Wed Oct 23 14:44:15 2002 From: uffe at routeware.dk (Uffe Kousgaard) Date: Wed, 23 Oct 2002 23:44:15 +0200 Subject: [mapserver-users] Anyone doing mapserver projects on contract? Message-ID: <00b501c27add$5501d620$6501a8c0@dual866> I'm new to this list and is looking for someone to do a mapserver project for me. If you are interested, just drop me a private e-mail. If I get a couple of reply's, I will create a detailed description of the project, write to the list again and ask for qoutes. Kind regards Uffe Kousgaard www.routeware.dk From tesimap at hotmail.com Wed Oct 23 15:34:44 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 24 Oct 2002 00:34:44 +0200 Subject: [mapserver-users] RASTER problem Message-ID: Hi all, I have a problem to show raster images in my project. This is my layer: LAYER NAME photo DATA "185160w.tif" TYPE RASTER MAXSCALE 50000 STATUS ON END LAYER NAME photo1 DATA "185120w.tif" TYPE RASTER MAXSCALE 50000 STATUS ON END The first layer showed correctly, but the second didn't show. Why? Another question, if I'll solve this problem: In legend, now I have a radiobox for each images but I want a only radiobox for both. So, when I choose it I'll see both images. Is it possible? How do I do? Any helps would be appreciated... Ivan _________________________________________________________________ Vuoi ricevere fantastiche offerte promozionali via email? http://www.msn.it/msnservizi/so/ From steve.lime at dnr.state.mn.us Wed Oct 23 15:37:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 23 Oct 2002 17:37:30 -0500 Subject: [mapserver-users] mouse over map (FWD) Message-ID: Oops. It should be http://thoreau.dnr.state.mn.us/weather/map.html Steve >>> "gabriel" 10/23/02 03:07PM >>> This was a good example on weather use of MS. Today, I could not find this URL. Anyone could help me. ----- Original Message ----- From: "teb" To: Cc: Sent: Friday, February 01, 2002 2:51 PM Subject: [mapserver-users] mouse over map (FWD) > > ------------- Begin Forwarded Message ------------- > > From: "Stender, Amy ERDC-CRREL-NH" > To: mapserver-info at lists.gis.umn.edu > Subject: mouse over map > Date: Fri, 1 Feb 2002 10:15:35 -0500 > MIME-Version: 1.0 > > I was looking at the DNR weather map: > > http://www.dnr.state.mn.us/weather/map.html > > and I was wondering if anyone could help me try something like that for my > map. I'd like the user to be able to mouse over a point and have an > "alt"-like box appear next to the mouse. But my map isn't static, so I can > necessarily say: when mouse is that this pixel by this pixel, popUp. > > Is this something I'll have to alter in the mapplet? > > Thanks in advance, > Amy > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > > > ------------- End Forwarded Message ------------- > From tesimap at hotmail.com Wed Oct 23 16:02:54 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 24 Oct 2002 01:02:54 +0200 Subject: [mapserver-users] GMAP error Message-ID: Hi all, I have tried Gmap demo and I think that's made well. I have tried to change your map file with mine. But I have an error with RECENTER function when the map is draw with extension setted in map file. Instead of remain in center, it has moved toward the lower part, so I see half map. I have seen the source code and I have done tests, for me the problem is parameter: $oGeorefMaxExt Could anyone help me? Regards Ivan PS: Sorry for my english... _________________________________________________________________ MSN Foto: condividi, ritocca e stampa le tue foto online http://photos.msn.it From vatsavai at cs.umn.edu Wed Oct 23 17:56:12 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 23 Oct 2002 19:56:12 -0500 (CDT) Subject: [mapserver-users] bugzilla is up! Message-ID: <200210240056.TAA03830@pluto.cs.umn.edu> Hello Mapserver(ers), Alas Bugzilla is up! One upgrade led to another and it took quite a while to setup Bugzilla. Let me know if any of you face any problem with new setup. Next pending stuff is mail archival search facility - which will be ready soon. Thanks Raju ---- From rich at greenwoodmap.com Wed Oct 23 19:15:20 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Wed, 23 Oct 2002 20:15:20 -0600 Subject: [mapserver-users] virus problem Message-ID: <5.1.0.14.0.20021023195834.00a7c338@mail.greenwoodmap.com> A few mapserver-users have received a virus-infected email from voischev at greenwoodmap.com. I don't know exactly what's going on, but apparently a mapserver-users computer has been infected, and is sending these emails out with the subject line "Simple Question" and a DOS executable attachment which propagates the virus. I am the owner of the greenwoodmap.com domain name, but the emails are not coming from any of my computers, (all 4 of them) and there is no "voischev" at greenwoodmap.com. I have no idea where the emails are coming from and I am pretty frustrated because it makes me look like a dork. If you get an email from "voischev at greenwoodmap.com" please delete it and its associated attachment. If you know more about viruses than I do, and can offer me any advice as to how to track down the culprit, please tell me. Sorry to waste your time and bandwidth with this problem. Rich Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From woodbri at swoodbridge.com Wed Oct 23 19:36:15 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 23 Oct 2002 22:36:15 -0400 Subject: [mapserver-users] bugzilla is up! In-Reply-To: <200210240056.TAA03830@pluto.cs.umn.edu> Message-ID: <3DB7245F.13871.6C147974@localhost> Raju, I would like to acknowledge the wonderful job you are doing get everything back on line. I know what a nightmare it can be to deal with recovering systems after its been hacked or just died with major disk failures. Many thanks for all your effort to keep us running on a normal day to day basis and especially for your efforts to recover and rebuild the systems that we all use and rely upon. Best regards, -Stephen Woodbridge On 23 Oct 2002 at 19:56, Ranga Raju Vatsavai wrote: > Hello Mapserver(ers), > > Alas Bugzilla is up! One upgrade led to another and it took quite a > while to setup Bugzilla. Let me know if any of you face any problem > with new setup. Next pending stuff is mail archival search facility - > which will be ready soon. > > Thanks > Raju > ---- > From guillaume.sueur at khi2.fr Wed Oct 23 23:44:17 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Thu, 24 Oct 2002 08:44:17 +0200 Subject: [mapserver-users] I have a question about the GMapPix2Geo function (listedbelow). References: <3DB6E6A5.DA3C718@dmsolutions.ca> Message-ID: <3DB796C1.6020708@khi2.fr> Can't it be a problem with the equator ? I mean, the function needs to know if Y are positives or negatives so if you ask for an extent which includes the equator aree, how can it deals with to kinds of Y ? Guillaume Yewondwossen Assefa wrote: > Do you have any values for which the function fails ? > > PS : this function has been used in the GMap demo for some time now. I do not think that there is a problem with it but ... > > Later > > Debbie Pagurek wrote: > > >>I have a question about the GMapPix2Geo function (listed below). >>I have a map of the world showing in lat long. The below function only seems to work if I am zoomed IN really far and it doesn't work if I am at the full extent of the map (minx=-180, maxx=180, miny=-90, maxy=90) >> >>Can anyone comment on this? I wanted to build a mouseover function that will show the coordinates of the mouse position in the windows status bar. >> >>Thanks, >>D. Pagurek >> >>/************************************************************************/ >>/*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin,dfGeoMax, $nInversePix) */ >>/* Utility function to convert a pixel position to geocoded position. */ >>/* */ >>/* The parameter $nInversePix could be set to 1 for Y pixel coordinates where the UL > LR. Else set to 0. */ >>/************************************************************************/ >>function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) >>{ >> // $nPixPos : pixel position (X or Y) >> // $dfPixMin, $dfPixMax : Pixel minimum and maximum (X or Y) of your map on the screen (should be 0 to xxx) >> // $dfGeoMin, $dfGeoMax : Geographic coordinate min max (X or Y) of your map on the screen >> >> $dfWidthGeo = $dfGeoMax - $dfGeoMin; >> $dfWidthPix = $dfPixMax - $dfPixMin; >> >> >> $dfPixToGeo = $dfWidthGeo / $dfWidthPix; >> >> if (!$nInversePix) >> $dfDeltaPix = $nPixPos - $dfPixMin; >> else >> $dfDeltaPix = $dfPixMax - $nPixPos; >> >> $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; >> >> $dfPosGeo = $dfGeoMin + $dfDeltaGeo; >> >> return ($dfPosGeo); >>} > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > > -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From frank.koormann at intevation.de Thu Oct 24 02:27:25 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 24 Oct 2002 11:27:25 +0200 Subject: [mapserver-users] Template for No Records? In-Reply-To: References: Message-ID: <20021024092724.GA15886@intevation.de> Matthew, David, all, * Matthew Hatcher [021022 10:16]: > > Unfortunately, these URLs are simply forwarded to and are not treated as > templates, so you can't include the usual template tags, but it's still > possible to make things look much better than the old error messages. > I'd once implemented an enhancement for mapserver version 3.5, introducing a EMPTY_TEMPLATE tag for the mapfile. This does what you are asking for. You may find the attached patch usefull although it is an untested port from the 3.5 to 3.6 series. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) -------------- next part -------------- diff -uNr mapserver-3.6.3.orig/map.h mapserver-3.6.3/map.h --- mapserver-3.6.3.orig/map.h Tue Oct 8 05:50:17 2002 +++ mapserver-3.6.3/map.h Thu Oct 24 11:14:37 2002 @@ -326,6 +326,8 @@ char *header, *footer; char *empty, *error; /* error handling */ + char *empty_template; /* show error message with a template */ + rectObj extent; /* clipping extent */ double minscale, maxscale; char *mintemplate, *maxtemplate; diff -uNr mapserver-3.6.3.orig/mapfile.c mapserver-3.6.3/mapfile.c --- mapserver-3.6.3.orig/mapfile.c Fri Oct 4 23:44:19 2002 +++ mapserver-3.6.3/mapfile.c Thu Oct 24 11:14:37 2002 @@ -2788,7 +2788,7 @@ web->extent.minx = web->extent.miny = web->extent.maxx = web->extent.maxy = -1.0; web->template = NULL; web->header = web->footer = NULL; - web->error = web->empty = NULL; + web->error = web->empty = web->empty_template = NULL; web->mintemplate = web->maxtemplate = NULL; web->minscale = web->maxscale = -1; web->log = NULL; @@ -2804,6 +2804,7 @@ msFree(web->footer); msFree(web->error); msFree(web->empty); + msFree(web->empty_template); msFree(web->maxtemplate); msFree(web->mintemplate); msFree(web->log); @@ -2816,6 +2817,8 @@ { fprintf(stream, " WEB\n"); if(web->empty) fprintf(stream, " EMPTY \"%s\"\n", web->empty); + if(web->empty_template) fprintf(stream, " EMPTY_TEMPLATE \"%s\"\n", + web->empty); if(web->error) fprintf(stream, " ERROR \"%s\"\n", web->error); if(web->footer) fprintf(stream, " FOOTER \"%s\"\n", web->footer); if(web->header) fprintf(stream, " HEADER \"%s\"\n", web->header); @@ -2838,6 +2841,9 @@ case(EMPTY): if((web->empty = getString()) == NULL) return(-1); break; + case(EMPTY_TEMPLATE): + if((web->empty_template = getString()) == NULL) return(-1); + break; case(EOF): msSetError(MS_EOFERR, NULL, "loadWeb()"); return(-1); @@ -2901,6 +2907,10 @@ case(EMPTY): msFree(web->empty); web->empty = strdup(value); + break; + case(EMPTY_TEMPLATE): + if(web->empty_template) msFree(web->empty); + web->empty_template = strdup(value); break; case(ERROR): msFree(web->error); diff -uNr mapserver-3.6.3.orig/mapfile.h mapserver-3.6.3/mapfile.h --- mapserver-3.6.3.orig/mapfile.h Mon Apr 29 20:04:21 2002 +++ mapserver-3.6.3/mapfile.h Thu Oct 24 11:14:37 2002 @@ -158,4 +158,6 @@ #define MINBOXSIZE 1133 #define MAXBOXSIZE 1134 +#define EMPTY_TEMPLATE 1140 + #endif /* MAPFILE_H */ diff -uNr mapserver-3.6.3.orig/maplexer.l mapserver-3.6.3/maplexer.l --- mapserver-3.6.3.orig/maplexer.l Wed Sep 18 17:14:17 2002 +++ mapserver-3.6.3/maplexer.l Thu Oct 24 11:14:37 2002 @@ -111,6 +111,7 @@ data { return(DATA); } dump { return(DUMP); } empty { return(EMPTY); } +empty_template { return(EMPTY_TEMPLATE); } end { return(END); } error { return(ERROR); } expression { return(EXPRESSION); } diff -uNr mapserver-3.6.3.orig/mapserv.c mapserver-3.6.3/mapserv.c --- mapserver-3.6.3.orig/mapserv.c Thu Jun 27 21:10:39 2002 +++ mapserver-3.6.3/mapserv.c Thu Oct 24 11:17:57 2002 @@ -83,8 +83,17 @@ exit(0); } - if((ms_error->code == MS_NOTFOUND) && (msObj->Map->web.empty)) { - msRedirect(msObj->Map->web.empty); + if((ms_error.code == MS_NOTFOUND) + && (Map->web.empty || Map->web.empty_template)) { + if (Map->web.empty_template) { + /* set to mode to something other than QUERY so that writeError + * is not called recursively. */ + Mode = BROWSE; + printf("Content-type: text/html%c%c", 10, 10); + returnPage(Map->web.empty_template, BROWSE); + } else { + redirect(Map->web.empty); + } } else { if(msObj->Map->web.error) { msRedirect(msObj->Map->web.error); From bjoern at lih.rwth-aachen.de Thu Oct 24 02:26:37 2002 From: bjoern at lih.rwth-aachen.de (bjoern at lih.rwth-aachen.de) Date: Thu, 24 Oct 2002 11:26:37 +0200 Subject: [mapserver-users] scroll out of map-extent Message-ID: <3c133290.32903c13@post.rwth-aachen.de> Hi all, what can I do to force mapserver just to show what's within the mapextent? The problem is that the user may scroll out of the map. I use mapserver 3.62 and rosa-applet Just setting the extent doesn't solve the problem -here is the map section of my map file. MAP STATUS ON EXTENT -180 -90 180 90 SIZE 600 350 SHAPEPATH "data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS DD INTERLACE ON IMAGETYPE GIF IMAGEQUALITY 75 Any ideas or examples? Thanks in advance Bj?rn From uffe at routeware.dk Thu Oct 24 02:36:44 2002 From: uffe at routeware.dk (Uffe Kousgaard) Date: Thu, 24 Oct 2002 11:36:44 +0200 Subject: [mapserver-users] Anyone doing mapserver projects on contract? References: <00b501c27add$5501d620$6501a8c0@dual866> Message-ID: <018801c27b40$de1867e0$6501a8c0@dual866> Thanks to all, I have already had several replys. I'll come back with a project description soon e-mailed directly to the list. ----- Original Message ----- From: "Uffe Kousgaard" To: Sent: Wednesday, October 23, 2002 11:44 PM Subject: [mapserver-users] Anyone doing mapserver projects on contract? > I'm new to this list and is looking for someone to do a mapserver > project for me. If you are interested, just drop me a private e-mail. > > If I get a couple of reply's, I will create a detailed description of > the project, write to the list again and ask for qoutes. > > Kind regards > > Uffe Kousgaard > www.routeware.dk From jacobi at dfki.de Thu Oct 24 03:07:04 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Thu, 24 Oct 2002 12:07:04 +0200 Subject: [mapserver-users] Identifying ogbjects! Message-ID: <3DB7C647.F50C11FE@dfki.de> Hello, can any body tell me whether it is possible to identify a certain object like a town on a map while crossing over it with the mouse? And if it is possible, how does it work? Has it to be defined in the shapefiles or has it something to do with my templatefile? Hope to hear from you mapservers! Thanks and cheers, Sven From rholloway_1999 at yahoo.com Thu Oct 24 06:12:10 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 24 Oct 2002 06:12:10 -0700 (PDT) Subject: [mapserver-users] width of line features Message-ID: <20021024131210.38564.qmail@web12506.mail.yahoo.com> Hi Is it possible to control the width of line features (i.e. to make them thicker). I realize this is probably a simple issue but as the archives seem to still be down I have no resort but to turn to the users list. Thanks all! Rob Holloway __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From rholloway_1999 at yahoo.com Thu Oct 24 06:21:47 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 24 Oct 2002 06:21:47 -0700 (PDT) Subject: [mapserver-users] mapplet bug?? Message-ID: <20021024132147.76714.qmail@web12504.mail.yahoo.com> Hi I'm having a small problem with the mapplet extention (zoom & query to box applet) that I only just discovered. It seems that if you draw a box for a query, then return to the map page and redraw the map without zooming in or out (in my case the map automatically redraws when a layer is turned on or off) the map zooms to the extent of the box. I have no idea how to fix this so any ideas would be greatly appreciated. My application still needs some work but here's the link if it helps. http://198.165.68.203/ocean/newocean_init.html Thanks! Rob Holloway __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From AScalise at geovue.com Thu Oct 24 07:43:22 2002 From: AScalise at geovue.com (Armando Scalise) Date: Thu, 24 Oct 2002 10:43:22 -0400 Subject: [mapserver-users] Symbols. In-Reply-To: <3DB7C647.F50C11FE@dfki.de> Message-ID: Hi. How shpould symbols size be defined in MS? Vector type symbols appear as little tiny dots in my map. How can I change their display size? Here is my symbol defintion: Symbol Name 'triangle' Type VECTOR Filled true Points 0 1 .5 0 1 1 0 1 END END And this is the the layer definition: LAYER # Centers -------------------------------------------------------------------- ----------------------Centers NAME Centers TYPE point DATA "c:\MapServerData\Testing\centers2" STATUS ON CLASSITEM 'name' CLASS NAME "Centers" COLOR 0 0 0 SYMBOL "triangle" END END Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Sven Jacobi Sent: Thursday, October 24, 2002 6:07 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Identifying ogbjects! Hello, can any body tell me whether it is possible to identify a certain object like a town on a map while crossing over it with the mouse? And if it is possible, how does it work? Has it to be defined in the shapefiles or has it something to do with my templatefile? Hope to hear from you mapservers! Thanks and cheers, Sven From pagurekd at agr.gc.ca Thu Oct 24 07:28:13 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Thu, 24 Oct 2002 10:28:13 -0400 Subject: [mapserver-users] scroll out of map-extent Message-ID: I think you need to use the MINSCALE and MAXSCALE options of the WEB object. D. Pagurek >>> 10/24/02 05:26AM >>> Hi all, what can I do to force mapserver just to show what's within the mapextent? The problem is that the user may scroll out of the map. I use mapserver 3.62 and rosa-applet Just setting the extent doesn't solve the problem -here is the map section of my map file. MAP STATUS ON EXTENT -180 -90 180 90 SIZE 600 350 SHAPEPATH "data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS DD INTERLACE ON IMAGETYPE GIF IMAGEQUALITY 75 Any ideas or examples? Thanks in advance Bj?rn From John.Arthur at T-Mobile.com Thu Oct 24 08:18:51 2002 From: John.Arthur at T-Mobile.com (Arthur, John) Date: Thu, 24 Oct 2002 08:18:51 -0700 Subject: [mapserver-users] mouse over map (FWD) Message-ID: <987E5CD7052ED51198F400508BA252795720BB@vamerrifms01.mail.voicestream.com> Check out http://localis.org. It is done in dhtml/phpmapscript. I don't recall seeing this mentioned in the list... strange. The project is in French, but the readme is in English. -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Wednesday, October 23, 2002 6:38 PM To: gabriel at ciasc.gov.br; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] mouse over map (FWD) Oops. It should be http://thoreau.dnr.state.mn.us/weather/map.html Steve >>> "gabriel" 10/23/02 03:07PM >>> This was a good example on weather use of MS. Today, I could not find this URL. Anyone could help me. ----- Original Message ----- From: "teb" To: Cc: Sent: Friday, February 01, 2002 2:51 PM Subject: [mapserver-users] mouse over map (FWD) > > ------------- Begin Forwarded Message ------------- > > From: "Stender, Amy ERDC-CRREL-NH" > To: mapserver-info at lists.gis.umn.edu > Subject: mouse over map > Date: Fri, 1 Feb 2002 10:15:35 -0500 > MIME-Version: 1.0 > > I was looking at the DNR weather map: > > http://www.dnr.state.mn.us/weather/map.html > > and I was wondering if anyone could help me try something like that for my > map. I'd like the user to be able to mouse over a point and have an > "alt"-like box appear next to the mouse. But my map isn't static, so I can > necessarily say: when mouse is that this pixel by this pixel, popUp. > > Is this something I'll have to alter in the mapplet? > > Thanks in advance, > Amy > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > > > ------------- End Forwarded Message ------------- > From steve.lime at dnr.state.mn.us Thu Oct 24 08:44:33 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 24 Oct 2002 10:44:33 -0500 Subject: [mapserver-users] width of line features Message-ID: You need to use a brush. Create a symbol like: SYMBOL TYPE ELLIPSE NAME 'circle' FILLED TRUE POINTS 1 1 END END and refer to it in your CLASS, like so: CLASS .... SYMBOL 'circle' SIZE 3 END Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Rob Holloway 10/24/02 08:12AM >>> Hi Is it possible to control the width of line features (i.e. to make them thicker). I realize this is probably a simple issue but as the archives seem to still be down I have no resort but to turn to the users list. Thanks all! Rob Holloway __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From steve.lime at dnr.state.mn.us Thu Oct 24 08:46:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 24 Oct 2002 10:46:30 -0500 Subject: [mapserver-users] scroll out of map-extent Message-ID: There's no way to do it automatically unless you're using mapscript. This is a planned feature of 3.7. You'll be able to define a limiting extent in your web object... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 10/24/02 04:26AM >>> Hi all, what can I do to force mapserver just to show what's within the mapextent? The problem is that the user may scroll out of the map. I use mapserver 3.62 and rosa-applet Just setting the extent doesn't solve the problem -here is the map section of my map file. MAP STATUS ON EXTENT -180 -90 180 90 SIZE 600 350 SHAPEPATH "data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS DD INTERLACE ON IMAGETYPE GIF IMAGEQUALITY 75 Any ideas or examples? Thanks in advance Bj?rn From lfilak at medinaco.org Thu Oct 24 09:04:57 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 24 Oct 2002 12:04:57 -0400 Subject: [mapserver-users] width of line features Message-ID: <200210241604.g9OG4IX04580@yogi.medinaco.net> You can specify SIZE in the CLASS definition. HTH Lowell F. The following message was sent by Rob Holloway on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). > Hi > > Is it possible to control the width of line features > (i.e. to make them thicker). I realize this is > probably a simple issue but as the archives seem to > still be down I have no resort but to turn to the > users list. Thanks all! > > Rob Holloway > > __________________________________________________ > Do you Yahoo!? > Y! Web Hosting - Let the expert host your web site > http://webhosting.yahoo.com/ From vatsavai at cs.umn.edu Thu Oct 24 09:17:28 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Thu, 24 Oct 2002 11:17:28 -0500 (CDT) Subject: [mapserver-users] list performance Message-ID: <200210241617.LAA04767@pluto.cs.umn.edu> Hello All, I have unsubscribed about 40 users from the mapserver-users malining list based on bounced mails. These address have some problem with their mailing servers or accounts. Some of these problems could be temporary. *** So please let me know (vrraju at gis.umn.edu) if any of you got stopped getting mail from mapserver-users starting this afternoon. I will resubscribe them. *** Our mailing list growed from handfull of users to more than 600 subscirbers today. The software we are using (Majordomo) worked really well all these years. But it don't have good functionality to manage bounced mails. Once things get settled I will investigate alternative solutions to improve this process. I would like to thank Morissette, Martin, Norman, Woodbridge and others who helped and shared their knowledge on this topic. Thanks Raju ---- PS: Its about 11:15am, see when do the last person (me) gets this mail. From tesimap at hotmail.com Thu Oct 24 09:33:32 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 24 Oct 2002 18:33:32 +0200 Subject: [mapserver-users] Two questions Message-ID: Hi all, I have 2 questions: I) I want to have two scalebar in my mapserver project, first in meters and second in feet. But I succeed to draw it only one. How do I do to have both? This in my scalebar (in meters) declaration: SCALEBAR SIZE 150 5 STATUS ON STYLE 1 IMAGECOLOR 255 255 255 COLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS METERS INTERVALS 3 LABEL COLOR 0 0 0 SIZE TINY END END #scalebar II) They have told me, in mailing list, that isn't possible to do a JOIN with Mapserver 3.5; is it real? In effects my JOIN doesn't give no result. They heve also told me that i have to 3.3 version to do a JOIN. Is there another method to do it? This is my layer: LAYER NAME civici_sed TYPE POINT STATUS ON DATA civici_sed CLASSITEM civico CLASS NAME "Numeri Civici" COLOR 255 255 0 TEMPLATE "civici.html" JOIN NAME civicijoin TABLE pop.dbf FROM civico #field of civici_sed.dbf TO key #field of pop.dbf TYPE MULTIPLE TEMPLATE "civicijoin.html" END END HEADER "civici_header.html" FOOTER "civici_footer.html" END It shows fields of "civici_sed.dbf" but doesn't show the field "key" (a field of "pop.dbf"). Ivan _________________________________________________________________ MSN Extra Storage! Hotmail all'ennesima potenza. Provalo! http://www.msn.it/msnservizi/es/ From Steve_Palmer at lpsg.com Thu Oct 24 10:11:04 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Thu, 24 Oct 2002 12:11:04 -0500 Subject: [mapserver-users] Two questions Message-ID: <750F5C5447AF18408DC73220B98FEAF7866951@lesexch02.lpsg.com> Re: two scale bars The following works for me in my map template

-----Original Message----- From: Ivan Paoluzzi [mailto:tesimap at hotmail.com] Sent: Thursday, October 24, 2002 10:34 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Two questions Hi all, I have 2 questions: I) I want to have two scalebar in my mapserver project, first in meters and second in feet. But I succeed to draw it only one. How do I do to have both? This in my scalebar (in meters) declaration: SCALEBAR SIZE 150 5 STATUS ON STYLE 1 IMAGECOLOR 255 255 255 COLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS METERS INTERVALS 3 LABEL COLOR 0 0 0 SIZE TINY END END #scalebar II) They have told me, in mailing list, that isn't possible to do a JOIN with Mapserver 3.5; is it real? In effects my JOIN doesn't give no result. They heve also told me that i have to 3.3 version to do a JOIN. Is there another method to do it? This is my layer: LAYER NAME civici_sed TYPE POINT STATUS ON DATA civici_sed CLASSITEM civico CLASS NAME "Numeri Civici" COLOR 255 255 0 TEMPLATE "civici.html" JOIN NAME civicijoin TABLE pop.dbf FROM civico #field of civici_sed.dbf TO key #field of pop.dbf TYPE MULTIPLE TEMPLATE "civicijoin.html" END END HEADER "civici_header.html" FOOTER "civici_footer.html" END It shows fields of "civici_sed.dbf" but doesn't show the field "key" (a field of "pop.dbf"). Ivan _________________________________________________________________ MSN Extra Storage! Hotmail all'ennesima potenza. Provalo! http://www.msn.it/msnservizi/es/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Thu Oct 24 11:31:35 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 24 Oct 2002 13:31:35 -0500 Subject: [mapserver-users] Symbols. Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F38C@STL-EXBE-I03.corp.erac.com> Size is defined in the class using the symbol. Although there are multiple ways to do this, the basic way is: CLASS NAME "City" EXPRESSION /A1[1-4]/ COLOR 255 255 0 SYMBOL 'star' SIZE 5 END -Dan > -----Original Message----- > From: Armando Scalise [mailto:AScalise at geovue.com] > Sent: Thursday, October 24, 2002 9:43 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Symbols. > > > > Hi. > > How shpould symbols size be defined in MS? Vector type > symbols appear as > little tiny dots in my map. How can I change their display size? > > Here is my symbol defintion: > > Symbol > Name 'triangle' > Type VECTOR > Filled true > Points > 0 1 > .5 0 > 1 1 > 0 1 > END > END > > > And this is the the layer definition: > > LAYER # > Centers > -------------------------------------------------------------------- > ----------------------Centers > NAME Centers > TYPE point > DATA "c:\MapServerData\Testing\centers2" > STATUS ON > CLASSITEM 'name' > CLASS > NAME "Centers" > COLOR 0 0 0 > SYMBOL "triangle" > END > END > > > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com > > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of > Sven Jacobi > Sent: Thursday, October 24, 2002 6:07 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Identifying ogbjects! > > > Hello, > > can any body tell me whether it is possible to identify a > certain object > > like a town on a map while crossing over it with the mouse? > > And if it is possible, how does it work? Has it to be defined in > the shapefiles or has it something to do with my templatefile? > > Hope to hear from you mapservers! > > Thanks and cheers, > > Sven > > From DMartin at erac.com Thu Oct 24 11:29:12 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 24 Oct 2002 13:29:12 -0500 Subject: [mapserver-users] width of line features Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F38B@STL-EXBE-I03.corp.erac.com> Size is only half the answer. You need to use a circle symbol to be able to give the class a size. For example: CLASS NAME "Interstate Highway - Unseperated" COLOR 255 0 0 SYMBOL 'circle' SIZE 5 END It didn't make sense to me at first either, but try it. I promise the circle will turn into a thick line. -Dan > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: Thursday, October 24, 2002 11:05 AM > To: Rob Holloway; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] width of line features > > > You can specify SIZE in the CLASS definition. > HTH > Lowell F. > > The following message was sent by Rob Holloway > on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). > > > Hi > > > > Is it possible to control the width of line features > > (i.e. to make them thicker). I realize this is > > probably a simple issue but as the archives seem to > > still be down I have no resort but to turn to the > > users list. Thanks all! > > > > Rob Holloway > > > > __________________________________________________ > > Do you Yahoo!? > > Y! Web Hosting - Let the expert host your web site > > http://webhosting.yahoo.com/ > From matthew.g.krusemark at co.multnomah.or.us Thu Oct 24 12:00:34 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Thu, 24 Oct 2002 12:00:34 -0700 Subject: [mapserver-users] 3.6 ECW image support Message-ID: <9D07D10FA5CAD21192620008C7B14D29049A9286@ISDEXCH-1> Hello, Does anyone know if there is a mapserver 3.6.x win32 binary available with ECW image support? Kind regards,-matthew ______________________________________ Matthew Krusemark Geographic Information Systems Multnomah County, Oregon USA http://www.co.multnomah.or.us/gis (503)988-3749 x29110 From otesta at s6.coopenet.com.ar Thu Oct 24 12:35:38 2002 From: otesta at s6.coopenet.com.ar (Oscar Testa) Date: Thu, 24 Oct 2002 16:35:38 -0300 Subject: [mapserver-users] PHP-Mapscript Message-ID: <200210241935.g9OJZct24256@backbone.s6.coopenet.com.ar> Where can i found a php-mapscript module for win2k compiled with support to postgis databases?? Oscar Testa From DMartin at erac.com Thu Oct 24 12:59:50 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 24 Oct 2002 14:59:50 -0500 Subject: [mapserver-users] scroll out of map-extent Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B4C@STL-EXBE-I03.corp.erac.com> As Steve says, I don't think you can do this server side. But, since you are using Rosa, I think you could do this client side. Using JavaScript, you can validate "yourForm.imgxy" against [mapext] before you submit it, and alter it if it is outside the bounds. Something like this might work: myImgxy = yourForm.imgxy; imgxySplit = myImgxy.split(' '); mapext = '[mapext]'; mapextSplit = mapext.split(' '); if (imgxySplit[0] < mapextSplit[0]) { longOffSet = mapextSplit[0] - imgxySplit[0]; imgxySplit[0] = mapextSplit[0]; imgxySplit[2] = imgxySplit[2] - longOffSet; } .... Repeat for the other three edges, and recombine. This is straight out of my head, so your mileage may vary. I've never tried to do it myself. If the code doesn't make sense, let me know and I'll try to clarify. -Dan > -----Original Message----- > From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Thursday, October 24, 2002 10:47 AM > To: bjoern at lih.rwth-aachen.de; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] scroll out of map-extent > > > There's no way to do it automatically unless you're using mapscript. > This is a planned feature of 3.7. You'll be able to define a limiting > extent in your web object... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 10/24/02 04:26AM >>> > Hi all, > what can I do to force mapserver just to show what's within the > mapextent? > The problem is that the user may scroll out of the map. > > I use mapserver 3.62 and rosa-applet > > Just setting the extent doesn't solve the problem > -here is the map section of my map file. > > MAP > STATUS ON > EXTENT -180 -90 180 90 > SIZE 600 350 > SHAPEPATH "data" > SYMBOLSET "./etc/symbols.sym" > FONTSET "./etc/fonts.txt" > IMAGECOLOR 255 255 255 > TRANSPARENT OFF > UNITS DD > INTERLACE ON > IMAGETYPE GIF > IMAGEQUALITY 75 > > Any ideas or examples? > > Thanks in advance > Bj?rn > > > > > From assefa at dmsolutions.ca Thu Oct 24 13:16:45 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 24 Oct 2002 16:16:45 -0400 Subject: [mapserver-users] 3.6 ECW image support References: <9D07D10FA5CAD21192620008C7B14D29049A9286@ISDEXCH-1> Message-ID: <3DB8552D.7AA1270C@dmsolutions.ca> Hi There, There are some binaries on our download site compiled for mapserver3.6.2 : http://www2.dmsolutions.ca/webtools/dl/mapserver-3.6.2-dev-win32-php4.1.2-libwww-ecw.zip http://www2.dmsolutions.ca/webtools/dl/mapserver-3.6.2-dev-win32-php4.2.1-libwww-ecw.zip Later, KRUSEMARK Matthew G wrote: > Hello, > > Does anyone know if there is a mapserver 3.6.x win32 binary available with > ECW image support? > > Kind regards,-matthew > > ______________________________________ > Matthew Krusemark > Geographic Information Systems > Multnomah County, Oregon USA > http://www.co.multnomah.or.us/gis > (503)988-3749 x29110 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ed at topozone.com Thu Oct 24 13:45:38 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 24 Oct 2002 16:45:38 -0400 Subject: [mapserver-users] WMS Server mystery with SRS=EPSG:4326 Message-ID: <13858AA1A74F30419F319ACB66A9D12201947C@mercator.topozone.com> Folks - I'm puzzled. I'm trying to set up a simple small-scale index map of North America as a WMS service. The map file is attached at the end. There's only one layer and one projection advertised (EPSG:4326 - i.e. lat/long WGS84). If I send a "defective" WMS request to: http://www.geozone.com/GeographyNetwork/drgbase.asp?Request=GetMap&Version=1.1.0 I'll get a map image with the default projection and extent. But if I correctly specify the required SRS and BBox parameters: http://www.geozone.com/GeographyNetwork/drgbase.asp?Request=GetMap&Version=1.1.0&BBox=-180,10,-60,80&SRS=EPSG:4326 the MapServer request just hangs, even though I'm requesting the SAME SRS and BBox that are being used as the defaults in the first URL! I feel like I'm overlooking the obvious, but I'm stuck on this one - ideas would be welcome. Thanks! The symptom shows up in 3.6.1 and 3.7 builds. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 NAME DRG UNITS DD IMAGECOLOR 0 0 0 RESOLUTION 250 SIZE 400 400 EXTENT -180 10 -60 80 WEB METADATA "wms_title" "TopoZone" "wms_onlineresource" "http://www.geozone.com/GeographyNetwork/drgbase.asp?" "wms_srs" "EPSG:4326" "wms_extent" "-180 10 -60 80" "wms_resx" "1" "wms_resy" "1" END END ### Basemap ### Layer Name Basemap Group DRG Type Polygon Status Default Minscale 251000 Maxscale 1000000000 Class Color 0 64 0 Outlinecolor 128 128 128 End Data "S:/NIMA/countries" Projection "init=EPSG:4326" End Metadata "wms_group_title" "NIMA" "wms_title" "Basemap" "wms_srs" "EPSG:4326" "wms_extent" "-180 10 -60 80" End End END From cthomas at rand.org Thu Oct 24 13:50:04 2002 From: cthomas at rand.org (Thomas, Cord) Date: Thu, 24 Oct 2002 13:50:04 -0700 Subject: [mapserver-users] width of line features Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4E62@smmail2.rand.org> On that issue - can someone, steve, someone, explain the reasoning for that - also, please put this in the docs - as an example maybe with an explanation - very useful information. -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Thursday, October 24, 2002 11:29 AM To: Rob Holloway; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] width of line features Size is only half the answer. You need to use a circle symbol to be able to give the class a size. For example: CLASS NAME "Interstate Highway - Unseperated" COLOR 255 0 0 SYMBOL 'circle' SIZE 5 END It didn't make sense to me at first either, but try it. I promise the circle will turn into a thick line. -Dan > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: Thursday, October 24, 2002 11:05 AM > To: Rob Holloway; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] width of line features > > > You can specify SIZE in the CLASS definition. > HTH > Lowell F. > > The following message was sent by Rob Holloway > on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). > > > Hi > > > > Is it possible to control the width of line features > > (i.e. to make them thicker). I realize this is > > probably a simple issue but as the archives seem to > > still be down I have no resort but to turn to the > > users list. Thanks all! > > > > Rob Holloway > > > > __________________________________________________ > > Do you Yahoo!? > > Y! Web Hosting - Let the expert host your web site > > http://webhosting.yahoo.com/ > From uffe at routeware.dk Thu Oct 24 14:45:36 2002 From: uffe at routeware.dk (Uffe Kousgaard) Date: Thu, 24 Oct 2002 23:45:36 +0200 Subject: [mapserver-users] MapServer project References: <13858AA1A74F30419F319ACB66A9D12201947C@mercator.topozone.com> Message-ID: <022001c27ba6$b0043ad0$6501a8c0@dual866> To those, who have shown interest in the project, I wrote about yesterday. Please find the project description here: www.routeware.dk/mapserverproject.html Any questions are answered tomorrow, since it is getting close to midnight here :-) Regards Uffe Kousgaard From DMartin at erac.com Thu Oct 24 16:09:47 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 24 Oct 2002 18:09:47 -0500 Subject: [mapserver-users] width of line features Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F395@STL-EXBE-I03.corp.erac.com> If this goes in the docs, I would suggest a highly related answer to the often asked question "How do I outline these lines?" come right after it: CLASS NAME "Streets" COLOR 0 0 0 SYMBOL 'circle' SIZE 4 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 244 0 0 OVERLAYSIZE 2 END -Dan > -----Original Message----- > From: Thomas, Cord [mailto:cthomas at rand.org] > Sent: Thursday, October 24, 2002 3:50 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: RE: [mapserver-users] width of line features > > > On that issue - can someone, steve, someone, explain the > reasoning for that > - also, please put this in the docs - as an example maybe with an > explanation - very useful information. > > -----Original Message----- > From: Martin, Daniel [mailto:DMartin at erac.com] > Sent: Thursday, October 24, 2002 11:29 AM > To: Rob Holloway; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] width of line features > > > Size is only half the answer. You need to use a circle > symbol to be able to > give the class a size. For example: > > CLASS > NAME "Interstate Highway - Unseperated" > COLOR 255 0 0 > SYMBOL 'circle' > SIZE 5 > END > > It didn't make sense to me at first either, but try it. I promise the > circle will turn into a thick line. > > -Dan > > > > -----Original Message----- > > From: Lowell Filak [mailto:lfilak at medinaco.org] > > Sent: Thursday, October 24, 2002 11:05 AM > > To: Rob Holloway; mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] width of line features > > > > > > You can specify SIZE in the CLASS definition. > > HTH > > Lowell F. > > > > The following message was sent by Rob Holloway > > on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). > > > > > Hi > > > > > > Is it possible to control the width of line features > > > (i.e. to make them thicker). I realize this is > > > probably a simple issue but as the archives seem to > > > still be down I have no resort but to turn to the > > > users list. Thanks all! > > > > > > Rob Holloway > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Y! Web Hosting - Let the expert host your web site > > > http://webhosting.yahoo.com/ > > > From drew at Zhrodague.net Thu Oct 24 16:05:37 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Thu, 24 Oct 2002 19:05:37 -0400 (EDT) Subject: [mapserver-users] width of line features In-Reply-To: <200210241604.g9OG4IX04580@yogi.medinaco.net> Message-ID: > You can specify SIZE in the CLASS definition. > HTH > Lowell F. > > The following message was sent by Rob Holloway on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). Is there any way to specify an absolute size in feet, or meters as the width of lines? From woodbri at swoodbridge.com Thu Oct 24 17:42:08 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 24 Oct 2002 20:42:08 -0400 Subject: [mapserver-users] width of line features In-Reply-To: References: <200210241604.g9OG4IX04580@yogi.medinaco.net> Message-ID: <3DB85B20.31452.70D2560B@localhost> Yes. In the LAYER object you can specify SIZEUNITS as pixel|feet|inches|kilometers|meters|miles, default is pixels. HTH, -Steve W On 24 Oct 2002 at 19:05, Drew from Zhrodague wrote: > > You can specify SIZE in the CLASS definition. > > HTH > > Lowell F. > > > > The following message was sent by Rob Holloway > > on Thu, 24 Oct 2002 06:12:10 -0700 (PDT). > > Is there any way to specify an absolute size in feet, or meters as > the width of lines? > > From evilc at evilc.com Thu Oct 24 18:37:19 2002 From: evilc at evilc.com (evilC) Date: Fri, 25 Oct 2002 02:37:19 +0100 Subject: [mapserver-users] joining message In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B4C@STL-EXBE-I03.corp.erac.com> Message-ID: <000a01c27bc7$0ec0a610$7b2bcfd9@Frink> Hi, I just joined this list. My name is Clive Galway and I run the London And Regional Dirtboarding Association (www.lard-ass.com) - a non-profit club for Mountain Boarders (Think snowboard with wheels) in London, UK and the surrounding counties. I am using MapServer to make a BASIC map of London listing places where there are trails to ride etc. I have a big raster ( 6000x6000 ish at the moment but it may end up bigger) as the background as I could not lay my hands on free vector data showing London roads, parks etc. If anyone knows where I could get this data free, please let me know ! I plan on using that as a background image, and then make a shapefile from scratch for clickable hotspots which will simply link to a web page that contains info on that location. At the moment I am having to try and find software that will let me create this shapefile, but I have yet to find anything free or cheap. Maybe a solution is going to be to use a plugin or something that will let me "draw" hotspots on top of my bitmap. Again, if anyone knows of anything that will let me do this, please drop me a line. So far, I have botched the demo to include my raster as a background, stripped out all the other layers except for the cities, and positioned the raster in the same area as the cities (woo ! London in Minnesota ! ) the result is here : http://prx.upnorth.uk.com/ms/demo_init.html though it may not stay for that long, but I am away this weeked riding in a competition so it should be up for a bit. I presume these coordinates represent somewhere in the US, on a scale that is worldwide ? One of the places we board as it happens is in Greenwich park in the UK, the location of the dateline. Is that gonna be 0 on one of the scales or is it some US-Centric coordinates system ? I doubt that I will be using coordinates in the final version to be honest, as real world coordinates are unimportant to the system. I will just map everything to 0,0 I would imagine... Anyway, getting back to the point, if anyone knows of plugins etc that I am likely to want to use, please let me know. Ideally I would like something that changes the interface a little (Something where you can drag a box to zoom in or right click to zoom out, with left clicking activating hotspots would be lovely). I haven't quite got around to sussing out how the hot spots on the map are going to be done, so if anyone could give me any pointers to that, it would be lovely. Thanks for your time Clive "evilC" Galway From evilc at evilc.com Thu Oct 24 18:41:11 2002 From: evilc at evilc.com (evilC) Date: Fri, 25 Oct 2002 02:41:11 +0100 Subject: [mapserver-users] Hello In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A16F38C@STL-EXBE-I03.corp.erac.com> Message-ID: <000b01c27bc7$98e7ed80$7b2bcfd9@Frink> Hi, I just joined this list. I sent this once before, but my hotmail was playing up. Apologies if I have spammed people with two copies. My name is Clive Galway and I run the London And Regional Dirtboarding Association (www.lard-ass.com) - a non-profit club for Mountain Boarders (Think snowboard with wheels) in London, UK and the surrounding counties. I am using MapServer to make a BASIC map of London listing places where there are trails to ride etc. I have a big raster ( 6000x6000 ish at the moment but it may end up bigger) as the background as I could not lay my hands on free vector data showing London roads, parks etc. If anyone knows where I could get this data free, please let me know ! I plan on using that as a background image, and then make a shapefile from scratch for clickable hotspots which will simply link to a web page that contains info on that location. At the moment I am having to try and find software that will let me create this shapefile, but I have yet to find anything free or cheap. Maybe a solution is going to be to use a plugin or something that will let me "draw" hotspots on top of my bitmap. Again, if anyone knows of anything that will let me do this, please drop me a line. So far, I have botched the demo to include my raster as a background, stripped out all the other layers except for the cities, and positioned the raster in the same area as the cities (woo ! London in Minnesota ! ) the result is here : http://prx.upnorth.uk.com/ms/demo_init.html though it may not stay for that long, but I am away this weeked riding in a competition so it should be up for a bit. I presume these coordinates represent somewhere in the US, on a scale that is worldwide ? One of the places we board as it happens is in Greenwich park in the UK, the location of the dateline. Is that gonna be 0 on one of the scales or is it some US-Centric coordinates system ? I doubt that I will be using coordinates in the final version to be honest, as real world coordinates are unimportant to the system. I will just map everything to 0,0 I would imagine... Anyway, getting back to the point, if anyone knows of plugins etc that I am likely to want to use, please let me know. Ideally I would like something that changes the interface a little (Something where you can drag a box to zoom in or right click to zoom out, with left clicking activating hotspots would be lovely). I haven't quite got around to sussing out how the hot spots on the map are going to be done, so if anyone could give me any pointers to that, it would be lovely. Thanks for your time Clive "evilC" Galway From cisty at svf.stuba.sk Fri Oct 25 02:35:51 2002 From: cisty at svf.stuba.sk (Milan Cisty) Date: Fri, 25 Oct 2002 11:35:51 +0200 Subject: [mapserver-users] Visual Basic Message-ID: <002801c27c09$e8a3e440$e616af93@svf.stuba.sk> I want to ask if MapServer skripting is possible (in Windows) through Visual Basic, thanks Milan -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewrcollins at yahoo.com Fri Oct 25 02:46:35 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Fri, 25 Oct 2002 02:46:35 -0700 (PDT) Subject: [mapserver-users] saveImage() problem Message-ID: <20021025094635.44703.qmail@web14008.mail.yahoo.com> Each I compiled MapServer 3.6.3 into a DLL (for use in Java via JNI) but whenever I try to call saveImage() I only get zero-length files. I am calling saveImage(ptr,"filename",MS_PNG,0,0,95). In addition to saving only a zero-length file the routine seems to take *forever* to finish closing the resulting empty file. Any suggestions on where I've gone wrong would be greatly appreciated. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From pradeepkumar at infotech.stph.net Fri Oct 25 04:05:56 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Fri, 25 Oct 2002 16:35:56 +0530 Subject: [mapserver-users] MapServer Dll Message-ID: Hello Mapserver Users I would like to compile Mapserver in to a dll using MS VC compiler, can any one please help me how to do it , I would also be very grateful if any once can guide me with tips to achieve this task. Regards Pradeep -------------- next part -------------- An HTML attachment was scrubbed... URL: From drew at Zhrodague.net Fri Oct 25 07:25:07 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Fri, 25 Oct 2002 10:25:07 -0400 (EDT) Subject: [mapserver-users] width of line features In-Reply-To: <3DB85B20.31452.70D2560B@localhost> Message-ID: > Yes. In the LAYER object you can specify SIZEUNITS as > pixel|feet|inches|kilometers|meters|miles, default is pixels. Nice. Thanks much! -- drew at zhrodague.net http://www.WiFiMaps.com From steve.lime at dnr.state.mn.us Fri Oct 25 09:06:58 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 25 Oct 2002 11:06:58 -0500 Subject: [mapserver-users] Fwd: mapserver-3.6.3 on Red Hat 8.0 Message-ID: An embedded message was scrubbed... From: orkun Subject: mapserver-3.6.3 on Red Hat 8.0 Date: Fri, 25 Oct 2002 15:28:26 +0300 Size: 2894 URL: From toni at giscampus.udg.es Fri Oct 25 09:24:22 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Fri, 25 Oct 2002 18:24:22 +0200 Subject: [mapserver-users] query layer References: <3DE212FB.4010103@terrestris.de> Message-ID: <002a01c27c42$fa377760$0e2fce82@udg.es> Hi, I am developing a mapserver application for my citi (girona, spain). I would like to display the street layer by default but I would like also to permit the user a query by street name. The thing is that if I delete de filter attribute in the map file I see (by default) the street layer but then I can not make a query. Furthermore If I put the filter line in the map file then the street layer does not appear (I think because no street matches the filter). Is there anyway to solve this? Maybe I am forgeting some field in the form. This is my map file for the street (in spain carrerer) layer. LAYER NAME carrers TYPE LINE DATA carrers STATUS on FILTERITEM "NOM" FILTER "%name%" LABELMAXSCALE 2600 # LABELMINSCALE LABELITEM "NOM" CLASS NAME "l_carrers" COLOR 0 255 0 TEMPLATE "carrers.html" LABEL SIZE 10 TYPE TRUETYPE COLOR 0 0 0 SHADOWCOLOR 255 255 230 SHADOWSIZE 0 2 FONT arial ANTIALIAS TRUE ANGLE AUTO POSITION CC BUFFER 10 MINDISTANCE 20 END END LABELITEM Nom HEADER "cap_carrers.html" FOOTER "peu_carrers.html" END Thanks for your knowlege From woodbri at swoodbridge.com Fri Oct 25 10:10:25 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 25 Oct 2002 13:10:25 -0400 Subject: [mapserver-users] (Fwd) Forum Archivs and other questions Message-ID: <3DB942C1.9578.745B2059@localhost> ------- Forwarded message follows ------- Send reply to: From: "Armando Scalise" To: Subject: Forum Archivs and other questions Date sent: Fri, 25 Oct 2002 11:10:39 -0400 Where can I get the archive of this forum? The one at http://mapserver.gis.umn.edu/wilma/mapserver-users/00xx/ seems to be outdated. Also, could somebody please email me a piece of a template so I can figure out howw exactly I sould output query results? (I could not get a list of the query tempalte in the tutorial). Also, I want to thank all those who have replied to my questions on SYmbols. I am grreatly impressed at the level of responsiveness of people in this Community. Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com ------- End of forwarded message ------- From steve.lime at dnr.state.mn.us Fri Oct 25 10:33:19 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 25 Oct 2002 12:33:19 -0500 Subject: [mapserver-users] mouse over map (FWD) Message-ID: Hi Thomas: I've attached a simpler version of this stuff that was used to actually do the weather version. In this case a perl script is used to build XML files that are then read by an XML enabled version of the mapplet. The XML files boil down to something like an image map and the applet interprets that image map for mouse overs... You can see this application in action at http://thoreau.dnr.state.mn.us/cgi-bin/mapdoqs.pl. You have to zoom in a bit to see the DOQs and then look for little red dots to mouse over. That data is from the USGS GNIS database. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Thomas, Cord" 10/23/02 06:00PM >>> Is source available for this maplet? Does dnr publish its source? -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Wednesday, October 23, 2002 3:38 PM To: gabriel at ciasc.gov.br; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] mouse over map (FWD) Oops. It should be http://thoreau.dnr.state.mn.us/weather/map.html Steve >>> "gabriel" 10/23/02 03:07PM >>> This was a good example on weather use of MS. Today, I could not find this URL. Anyone could help me. ----- Original Message ----- From: "teb" To: Cc: Sent: Friday, February 01, 2002 2:51 PM Subject: [mapserver-users] mouse over map (FWD) > > ------------- Begin Forwarded Message ------------- > > From: "Stender, Amy ERDC-CRREL-NH" > To: mapserver-info at lists.gis.umn.edu > Subject: mouse over map > Date: Fri, 1 Feb 2002 10:15:35 -0500 > MIME-Version: 1.0 > > I was looking at the DNR weather map: > > http://www.dnr.state.mn.us/weather/map.html > > and I was wondering if anyone could help me try something like that for my > map. I'd like the user to be able to mouse over a point and have an > "alt"-like box appear next to the mouse. But my map isn't static, so I can > necessarily say: when mouse is that this pixel by this pixel, popUp. > > Is this something I'll have to alter in the mapplet? > > Thanks in advance, > Amy > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > > > ------------- End Forwarded Message ------------- > -------------- next part -------------- A non-text attachment was scrubbed... Name: mapdoqs.pl Type: application/octet-stream Size: 7086 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapplet_xml.java Type: application/octet-stream Size: 20688 bytes Desc: not available URL: From tesimap at hotmail.com Fri Oct 25 10:37:55 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 25 Oct 2002 19:37:55 +0200 Subject: [mapserver-users] RASTER problem Message-ID: Tanya, this images are both 8-bit, uncompressed and have the same projection. Ivan >From: "TCHaddad" >Reply-To: >To: "Ivan Paoluzzi" >Subject: Re: [mapserver-users] RASTER problem >Date: Wed, 23 Oct 2002 20:56:46 -0400 > >Ivan, > >I can answer your second question: > >to use 1 radio button for both images add GROUP to each LAYER definition. >Give the same GROUP name to both images, and use the GROUP instead of NAME >on your radio button (GROUP will override NAME). > >example: > > >LAYER > >NAME photo > >GROUP My_Photos > >DATA "185160w.tif" > >TYPE RASTER > >MAXSCALE 50000 > >STATUS ON > >END > > > >LAYER > >NAME photo1 > >GROUP My_Photos > >DATA "185120w.tif" > >TYPE RASTER > >MAXSCALE 50000 > >STATUS ON > >END > > > >For your first question: are both images 8-bit, uncompressed, and same >projection? I don't know the answer.. > >Tanya > > > >---------- Original Message ---------------------------------- >From: "Ivan Paoluzzi" >Date: Thu, 24 Oct 2002 00:34:44 +0200 > > >Hi all, > >I have a problem to show raster images in my project. > > > >This is my layer: > > > >LAYER > >NAME photo > >DATA "185160w.tif" > >TYPE RASTER > >MAXSCALE 50000 > >STATUS ON > >END > > > >LAYER > >NAME photo1 > >DATA "185120w.tif" > >TYPE RASTER > >MAXSCALE 50000 > >STATUS ON > >END > > > > > >The first layer showed correctly, but the second didn't show. Why? > > > >Another question, if I'll solve this problem: > >In legend, now I have a radiobox for each images but I want a only >radiobox > >for both. > >So, when I choose it I'll see both images. > >Is it possible? How do I do? > > > >Any helps would be appreciated... > >Ivan > > > > > >_________________________________________________________________ > >Vuoi ricevere fantastiche offerte promozionali via email? > >http://www.msn.it/msnservizi/so/ > > > > _________________________________________________________________ Comunica in un ?altra dimensione con MSN Extra Storage! http://www.msn.it/msnservizi/es/ From keon at nacse.org Fri Oct 25 12:16:26 2002 From: keon at nacse.org (Dylan Keon) Date: Fri, 25 Oct 2002 12:16:26 -0700 Subject: [mapserver-users] differences in color of rendered point Message-ID: <3DB9988A.6010402@nacse.org> Hi all, I'm using PHP Mapscript to query a point layer and render a new (red-colored) point on top of the queried point. It works ok if I define the highlighted point as a layer in the mapfile, and then call it from the PHP script. However, I'm getting strange results if I define the point in PHP Mapscript instead of in the mapfile. The point is rendered just fine, but the colors only appear in gray. For example: $queryClass->set("color", $map->addColor(255,0,0)); This produces a gray point, when it should be red. If I use 0,0,0 I get a black point, but anything else results in a 127,127,127 gray. Even if I use something like 134,187,2 the rendered point is still 127,127,127. Any ideas? I can just use the mapfile-defined point, but I'd like to figure out what's going wrong with the Mapscript method. Thanks. Dylan -------------------- Using PHP 4.1.2 as a CGI, with php_mapscript.so built from the 3.6.1 release. Rendered images are all PNG. # mapserv -v MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From otesta at s6.coopenet.com.ar Fri Oct 25 12:31:00 2002 From: otesta at s6.coopenet.com.ar (Oscar Testa) Date: Fri, 25 Oct 2002 16:31:00 -0300 Subject: [mapserver-users] Mapserver - Postgis Message-ID: <200210251931.g9PJV0Q28065@backbone.s6.coopenet.com.ar> Hello!!, I'm working with Mapserver. But now, we want view postgis layers in Mapserver. PostgreSQL (7.2.3) and Postgis (0.7.3) are runing in cygwin mode (tested with SQLs executed in psql) Where can i found examples using Mapserver/Postgis? What version of Mapserver (win32) is needed to view postgis layers?? Regards Oscar From jeff at propertykey.com Fri Oct 25 13:19:48 2002 From: jeff at propertykey.com (Jeff Hoffmann) Date: Fri, 25 Oct 2002 15:19:48 -0500 Subject: [mapserver-users] Java MapScript Samples? Message-ID: <3DB9A764.4030108@propertykey.com> I've just started poking around with MapServer (version 3.6.3) & I've gotten to a point where I'd like to get into working with the MapScript interfaces. I'm really interested in the Java interface, but I have been able to find little, if any, documentation on it. I'm using the Perl/PHP docs to work my way through it & translating for the most part, but it'd be nice if there was a real-world example or some additional documents dealing only with Java. I'd like to end up using it with Apache/Tomcat, so anything that deals with that specifically would be especially appreciated. -- Jeff Hoffmann PropertyKey.com From TMitchell at lignum.com Fri Oct 25 13:49:05 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 25 Oct 2002 13:49:05 -0700 Subject: [mapserver-users] Increased Image depth support Message-ID: Since mailing list search is down, I thought I'd ask publically about increased image depth support. Can anyone provide me a update (or a bugzilla bug#) on how/when >8 bit support will be available? I notice that there has been some work on GD lately - that's the main holdup isn't it? Tyler From warmerdam at pobox.com Fri Oct 25 15:28:54 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 25 Oct 2002 18:28:54 -0400 Subject: [mapserver-users] Increased Image depth support References: Message-ID: <3DB9C5A6.6050207@pobox.com> Tyler Mitchell wrote: > Since mailing list search is down, I thought I'd ask publically about > increased image depth support. > Can anyone provide me a update (or a bugzilla bug#) on how/when >8 bit > support will be available? I notice that there has been some work on GD > lately - that's the main holdup isn't it? Tyler, The CVS version of MapServer should include full 24bit and also "raw data" image support. The 24bit support requires GD 2.0. The short explanation of how to use it is to add the following sort of statement to your map file, and then set IMAGETYPE to a matching name. eg. IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" IMAGEMODE RGB TRANSPARENT ON END The MapServer 3.7 reference document describes the OUTPUTFORMAT clause here: http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat With this support enabled, 24bit image files (ie JPEG, TIFF, PNG, etc) read through the GDAL raster layer driver will be carried through as 24bit. Also more than 256 vector colors can be used and still get exact colors. Let me know if you encounter problems. 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 drew at Zhrodague.net Sat Oct 26 11:15:41 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Sat, 26 Oct 2002 14:15:41 -0400 (EDT) Subject: [mapserver-users] width of line features In-Reply-To: <3DB85B20.31452.70D2560B@localhost> Message-ID: > Yes. In the LAYER object you can specify SIZEUNITS as > pixel|feet|inches|kilometers|meters|miles, default is pixels. Hm, what am I doing wrong here? Also, the legend wigs-out when I set the size larger, I'd like to quell that if possible, or reset some absolute values. Can you make suggestions? layer name "secondaryroadstile" type line status default tileindex "secondaryroadstile" tileitem "LOCATION" maxscale 200000 sizeunits feet labelmaxscale 25000 class color 204 204 153 size 30 TEXT ([FENAME] [FETYPE]) label color 122 137 103 size 12 position auto position auto TYPE TRUETYPE ANGLE AUTO FONT zurichlight mindistance 200 angle auto end end end Also, this is for http://www.WiFiMaps.com, you can check-out the app, we've sorta made a PHPNuke module for mapserver, and included a few other things, like searching and stats. We're so extremely impressed with Mapserver, and can't say enough nice things about it. I have the mapfile docs printed on large-format paper on the wall in my livingroom (48x36). Wonderfulness, yay, and kudos! From gerry.creager at tamu.edu Sat Oct 26 18:18:17 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Sat, 26 Oct 2002 20:18:17 -0500 Subject: [mapserver-users] Meteorological implementations? References: Message-ID: <3DBB3ED9.2030409@tamu.edu> Steve, et al, This is very much in line with what I've been thinking. Thanks for the pointer. I've been without e-mail for the last 5 days (hardware failures on campus plus travel) and I'm leaving again for the Internet2 meeting. I'll be reviewing this and probably asking more questions over the next week... At least I know I'll be connected... Thanks again! gerry Steve Lime wrote: > You might be able to do that MapServer, depends on how sophisticated the > labeling needs to be. Version 3.7 lets you offset features so you could > define complex presentations around a station point using multiple > layers. As long as data could be stored in shapefiles or another > supported format you'd be ok. > > You could also do something like: > > http://thoreau.dnr.state.mn.us/weather/map.html > > Where detailed station data is presented when the mouse moves over a > station, while displaying more general data in the map itself. In this > case we store station data in XML files but could easily access a > version of the data that is stored in a relational database. > > Just thinking out loud... > > Steve > > >>>>Gerry Creager 10/22/02 04:06PM >>> >>> > I believe this to be the case. Specifically, what I'v envisioned is a > > mapserver baselayer and core functionality as a mapservice, with > weather > station sites overlaid thereon, as queriable objects. I'd like to find > > a way to update the station data as new data rolls in (temperature, dew > > point, barometric pressure) as well as setting a wind barb character > and > rotating same to reflect the direction > > Specifically, what we're doing is creating the demo site for a > "Mesonet" > or a statewide, dense network of weather stations reporting conditions > > in near real time. (Sean, look at www.mesonet.org for a well > established example.) > > We're working under some time constraints that are some where between > ambitious and unrealistic to get an initial site up. That's why I > decided to solicit some input here rather than trying to reinvent the > wheel. > > Thanks! > gerry > > Steve Lime wrote: > >>Describe what you guys mean by station data? MapServer may just >>be a piece of the puzzle. TrueType lines where added specifically > > with > >>meteorological data in mind. >> >>Steve >> >>Stephen Lime >>Data & Applications Manager >> >>Minnesota DNR >>500 Lafayette Road >>St. Paul, MN 55155 >>651-297-2937 >> >> >> >>>>>Sean Gillies 10/21/02 10:36AM >>> >>>> >>Gerry, >> >>I'm not using Mapserver for any wx stuff, but I know >>the software well and I've seen tons of weather maps. >> >>Mapserver by itself is not going to be a good tool >>for displaying station data. If you had isopleths, >>fronts, troughs, etc. as vectors, and maybe even >>radar echos as rasters, Mapserver would be >>great for rendering these. You'd need some extra >>functionality for station data unless you could >>come up with a creative hack like turning station >>plots into shapes in a shapefile. >> >>If I were doing it, I'd use Mapserver or mapscript >>to make a base map, and then merge it with custom >>station data imagery created using the Python Imaging >>Library or Python or Perl script interfaces to the >>GD library. >> >>cheers, >>Sean >> >>Gerry Creager N5JXS wrote: >> >> >> >>>Has anyone been using Mapserver for meteorological implementations, >>>especially display of weather stations and their data? >>> >>>Could you please reply directly to gerry.creager at tamu.edu with URLs >> >>and >> >> >>>any comments pro- or con? >>> >>>Thanks, >>>Gerry >> >> > > -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering, Academy for Advanced Telecommunications Texas A&M University, College Station, TX Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.5301 Page: 979.228.0173 -or- gcreager at my2way.com From rich at greenwoodmap.com Sun Oct 27 16:38:03 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Sun, 27 Oct 2002 17:38:03 -0700 Subject: [mapserver-users] compile error Message-ID: <5.1.0.14.0.20021027171825.00a70840@mail.greenwoodmap.com> I have "upgraded" from Mandrake 8.1 to 9.0, but I can't seem to get mapserver to compile. I keep getting an "undefined reference to `__gxx_personality_v0'" error. Any suggestions? Rich Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com -------------- next part -------------- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.406 / Virus Database: 229 - Release Date: 10/21/2002 From consultants at broadstreet.com.au Sun Oct 27 23:22:35 2002 From: consultants at broadstreet.com.au (Angus Cameron) Date: Mon, 28 Oct 2002 18:22:35 +1100 Subject: [mapserver-users] Installation problem - zero byte output file Message-ID: <3DBCE5BB.2090900@broadstreet.com.au> I have compiled and installed Mapserver 3.6.3 on a FreeBSD machine (with a few hiccups, but in the end with apparent success). When I access cgi-bin/mapserv directly, it gives all the right messages, and when I purposely feed it a bad mapfile, it reports the appropriate errors. However, when I give a good test file, it reports no error messages, but will only produce a zero length image file (tested with png and jpeg). Has anyone had this problem (which I assume is a problem in my compilation) and does anybody know how to fix it? Many thanks, Angus -- Angus Cameron Broad Street Consultants Email: consultants at broadstreet.com.au From pich at spektra.de Sun Oct 27 23:30:04 2002 From: pich at spektra.de (Thomas Pich) Date: Mon, 28 Oct 2002 08:30:04 +0100 Subject: [mapserver-users] unsubscribe Message-ID: <91531C2EF097D94ABD7C10E7E914D3C0179D53@victoria.spektra.de> From bon at ivv-aachen.de Mon Oct 28 02:12:45 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Mon, 28 Oct 2002 11:12:45 +0100 Subject: [mapserver-users] Hilite lines AND points at the same time Message-ID: <000001c27e6a$8fd3f0e0$1a01a8c0@ivvaachen.de> I would like to hilite a number of lines AND a number of points at the same time. The points should be labled with tree different symbols. Is it possible to start an itemnquery over a line layer AND three itemnquerys over a point layer and display the results at the same time on the map? Nicole From andrewrcollins at yahoo.com Mon Oct 28 04:39:11 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Mon, 28 Oct 2002 04:39:11 -0800 (PST) Subject: [mapserver-users] Palette Errors with 3.6.3 Message-ID: <20021028123911.15211.qmail@web14008.mail.yahoo.com> First: I have a mapfile with 76 layers (only a few have status=on at any given time) and for some layers render the COLOR and OUTLINECOLORs that are for another layer. Why does this happen, and how can I fix it? Also: I have a good DLL + JNI + JavaBean wrapper for MapServer in Java. If you're interested contact me--and help me out with my palette problems. :) Thanks! ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From c.sandor at emla.hu Mon Oct 28 05:12:16 2002 From: c.sandor at emla.hu (Sandor Csaba) Date: Mon, 28 Oct 2002 14:12:16 +0100 Subject: [mapserver-users] GDAL compilation error Message-ID: <5.1.0.14.0.20021028140118.00c22a78@192.168.1.7> Hi, I am trying to install mapserver with gdal support on a Solaris box (virtual server, no root privileges). GDAL itself successfully compiles, but mapserver configure script gives the following: ... checking if GDAL support requested... yes, user supplied gdal-config ./configure: /home/emla/lib/gdal: cannot execute ./configure: /home/emla/lib/gdal: cannot execute ... What is it trying to execute at this point? My command line look like this: ./configure --with-gd=/home/emla/lib/gd --with-freetype=/home/emla/lib/freetype1/lib/.libs --with-jpeg=/home/emla/lib/jpeg --with-png=/home/emla/lib/libpng --with-zlib=/home/emla/lib/zlib --with-tiff=/home/emla/lib/tiff --with-gdal=/home/emla/lib/gdal I had no problem compiling mapserver without the gdal option. I gave gdal configure --without-python having no root access. Any idea? Csaba - {Kornyezeti Management es Jog Egyesulet {Environmental Management and Law Association {www.emla.hu {1076 Budapest {Garay u. 29-31 {Hungary {Tel/fax: 36-1-3228462, 36-1-3529925 {Mobil: 06-20-949-1447 From warmerdam at pobox.com Mon Oct 28 05:46:06 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 28 Oct 2002 08:46:06 -0500 Subject: [mapserver-users] GDAL compilation error References: <5.1.0.14.0.20021028140118.00c22a78@192.168.1.7> Message-ID: <3DBD3F9E.9080206@pobox.com> Sandor Csaba wrote: > Hi, > > I am trying to install mapserver with gdal support on a Solaris box > (virtual server, no root privileges). GDAL itself successfully compiles, > but mapserver configure script gives the following: > ... > checking if GDAL support requested... yes, user supplied gdal-config > ./configure: /home/emla/lib/gdal: cannot execute > ./configure: /home/emla/lib/gdal: cannot execute > ... > > What is it trying to execute at this point? Sandor, It is trying to execute the path you gave as if it were the gdal-config script. Is /home/emla/lib/gdal a build directory, or an install directory? If you installed GDAL you should be able to find a bin/gdal-config script in the install tree. Use that as the argument to --with-gdal. If you didn't install GDAL then give /home/emla/lib/gdal/apps/gdal-config as the argument to the --with-gdal option. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pkishor at GeoAnalytics.com Mon Oct 28 05:54:57 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 28 Oct 2002 07:54:57 -0600 Subject: [mapserver-users] compile error In-Reply-To: <5.1.0.14.0.20021027171825.00a70840@mail.greenwoodmap.com> Message-ID: You sure you are using gcc 2.x? ms has problems with gcc 3.x (or, should I say, gcc 3.x has problems with ms). puneet/ On Sunday, October 27, 2002, at 06:38 PM, Richard Greenwood wrote: > I have "upgraded" from Mandrake 8.1 to 9.0, but I can't seem to get > mapserver to compile. I keep getting an "undefined reference to > `__gxx_personality_v0'" error. > > Any suggestions? > > Rich > > > Richard W. Greenwood, PLS > (307) 733-0203 > Rich at GreenwoodMap.com > www.GreenwoodMap.com > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.406 / Virus Database: 229 - Release Date: 10/21/2002 From guillaume.sueur at khi2.fr Mon Oct 28 06:11:34 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Mon, 28 Oct 2002 15:11:34 +0100 Subject: [mapserver-users] Rosa and Mozilla Message-ID: <3DBD4596.3090404@khi2.fr> Hi folks, I have problem using rosa applet and Mozilla. When I use the new function setImageUrl, Mozilla freezes. Have you ever experienced this ? Thanks -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From vatsavai at cs.umn.edu Mon Oct 28 08:08:28 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Mon, 28 Oct 2002 10:08:28 -0600 (CST) Subject: [mapserver-users] update Message-ID: <200210281608.KAA09705@pluto.cs.umn.edu> Hello All, MapServer web and all other services are back to normal. All software is upgraded to newest versions. List archives with search capability is also functioning as usual. I have updated gallery page based on users requests. Let me know if I miss any or if someone wants to add a link to their mapserver applications from our gallery page. Things that we are currently working on: MDP - we have a new member in our group who is going to take over MDP staring this week. TerraSIP - all applications/tutorials etc., will be back by this weekend. If any of you come across any dead/missing links or problems - send mail to vrraju at gis.umn.edu. Thanks Raju ---- From scarr at progbits.com Mon Oct 28 08:33:37 2002 From: scarr at progbits.com (Scott Carr) Date: Mon, 28 Oct 2002 10:33:37 -0600 Subject: [mapserver-users] update In-Reply-To: <200210281608.KAA09705@pluto.cs.umn.edu> References: <200210281608.KAA09705@pluto.cs.umn.edu> Message-ID: <1035822817.3dbd66e1b98d1@progbits.com> Thanks to all that have helped bring this back up and running. I would like to offer my services if I can be of help. I am not sure how much time I have available, but I would like to help where I can. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting Ranga Raju Vatsavai : > Hello All, > > MapServer web and all other services are back to normal. All software is > upgraded to newest versions. List archives with search capability is also > functioning as usual. I have updated gallery page based on users requests. > Let me know if I miss any or if someone wants to add a link to their > mapserver > applications from our gallery page. > > Things that we are currently working on: > MDP - we have a new member in our group who is going to take over MDP > staring this week. > TerraSIP - all applications/tutorials etc., will be back by this weekend. > > If any of you come across any dead/missing links or problems - send mail > to vrraju at gis.umn.edu. > > Thanks > Raju > ---- > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From Chip.Hankley at gasai.com Mon Oct 28 10:54:07 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Mon, 28 Oct 2002 12:54:07 -0600 Subject: [mapserver-users] Rosa and Mozilla Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABECF@postoffice.GASAI.Com> YES! I thought I was going crazy! I'm getting the same problem with Netscape 7 and Mozilla... I think the key here is the Java Plug-in version: Java(TM) Plug-in: Version 1.4.1_01 Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\hankleydw Proxy Configuration: Browser Proxy Configuration This function works fine in IE when using the MS VM, but if I switch over to the one above (the latest Sun JRE), it does exactly what you're saying... it hangs the browser. Interestingly, the image DOES get created, it's just not loading it. To demo the problem, go to: http://www.gasai.com/gisapps/world/worldview.html and try to zoom in. My hunch is that if you're using an older JRE, it'll work fine, but with a newer one, it'll bomb. I'd be interested to know if this is a windows only phenomenon. Chip From rmurray at NRCan.gc.ca Mon Oct 28 11:13:52 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Mon, 28 Oct 2002 14:13:52 -0500 Subject: [mapserver-users] SDE connect but not > once Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C518E7@s0-ott-x10.nrn.nrcan.gc.ca> I am connecting to an SDE coverage for spatial data. When initialised, the map showing all extents loads correctly into the mapplet (although it is significantly slower than a shapefile). Then I can do what I wish (zoom, query, pan, print); BUT ONLY ONCE. For example, I choose a map I want from a drop-down list and, presto, there is the whole map in the applet. Then I zoom in to an area; poof, there is the area. Then I attempt to query a polygon in the area and I get: msSDELayerOpen(): SDE error. SE_connection_create(): Network I/O error. (-10) >From this point the only thing that works is to go to a different map or quit. That next map will load correctly and I can pan or query or zoom, but I can't pan and query or query and zoom or whatever. Same error every time. Any thoughts? <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Murray, Ross.vcf Type: application/octet-stream Size: 399 bytes Desc: not available URL: From dholeman1 at cox.net Mon Oct 28 12:22:39 2002 From: dholeman1 at cox.net (Don Holeman) Date: Mon, 28 Oct 2002 15:22:39 -0500 Subject: [mapserver-users] Rosa and Mozilla References: <3DFF131E4E6D2D4198CDD758F35A5353010ABECF@postoffice.GASAI.Com> Message-ID: <007801c27ebf$c3c7cde0$97f90044@ri.cox.net> Using the latest greatest IE 6.0.2600.0000CO with Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805 the demo stalled on the third or fourth drilldown request generating a java.io.IOException: www.gasai.com:80//tmp/103583542529481.png as viewed with my java console. Here is the code it showed in its entirety, hope it helps: 1st -1 Try as PNG init start : Development Version 2001-09-11 SetImageURL /tmp/103583521226121.png 1st -1 Try as PNG SetImageURL /tmp/103583522129361.png 1st -1 Try as PNG SetImageURL /tmp/103583541828841.png 1st -1 Try as PNG SetImageURL /tmp/103583542529481.png 1st -1 Try as PNG java.io.IOException: www.gasai.com:80//tmp/103583542529481.png ----- Original Message ----- From: "Hankley, Chip" To: "'Guillaume SUEUR'" ; "Liste MapServer" ; Sent: Monday, October 28, 2002 1:54 PM Subject: RE: [mapserver-users] Rosa and Mozilla YES! I thought I was going crazy! I'm getting the same problem with Netscape 7 and Mozilla... I think the key here is the Java Plug-in version: Java(TM) Plug-in: Version 1.4.1_01 Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\hankleydw Proxy Configuration: Browser Proxy Configuration This function works fine in IE when using the MS VM, but if I switch over to the one above (the latest Sun JRE), it does exactly what you're saying... it hangs the browser. Interestingly, the image DOES get created, it's just not loading it. To demo the problem, go to: http://www.gasai.com/gisapps/world/worldview.html and try to zoom in. My hunch is that if you're using an older JRE, it'll work fine, but with a newer one, it'll bomb. I'd be interested to know if this is a windows only phenomenon. Chip --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/02 From hunt at zedxinc.com Mon Oct 28 12:37:25 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Mon, 28 Oct 2002 15:37:25 -0500 Subject: [mapserver-users] runtime error Message-ID: <007701c27ec1$d2fab9b0$1805000a@zedxinc.com> I have tried to configure mapserver with proj. When I do this I get Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' - libproj.so.0: cannot open shared object file: No such file or directory in /home/httpd/html/login.php on line 3 I have installed proj 4.4.5 and can use it from the command line. Does anyone have any ideas. Aaron D. Hunt Technical Manager ZedX Inc. Voice: 814-357-8490 Fax: 814-357-8499 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at ou.edu Mon Oct 28 12:46:07 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 28 Oct 2002 14:46:07 -0600 Subject: [mapserver-users] update Message-ID: Yes - thanks you very much. Your hard work is much appreciated. Dave Lowther -----Original Message----- From: Scott Carr [mailto:scarr at progbits.com] Sent: Monday, October 28, 2002 10:34 AM To: Ranga Raju Vatsavai Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] update Thanks to all that have helped bring this back up and running. I would like to offer my services if I can be of help. I am not sure how much time I have available, but I would like to help where I can. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting Ranga Raju Vatsavai : > Hello All, > > MapServer web and all other services are back to normal. All software is > upgraded to newest versions. List archives with search capability is also > functioning as usual. I have updated gallery page based on users requests. > Let me know if I miss any or if someone wants to add a link to their > mapserver > applications from our gallery page. > > Things that we are currently working on: > MDP - we have a new member in our group who is going to take over MDP > staring this week. > TerraSIP - all applications/tutorials etc., will be back by this weekend. > > If any of you come across any dead/missing links or problems - send mail > to vrraju at gis.umn.edu. > > Thanks > Raju > ---- > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From dlowther at ou.edu Mon Oct 28 12:56:06 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 28 Oct 2002 14:56:06 -0600 Subject: [mapserver-users] map_layer_filter Message-ID: Howdy List, I'm trying to pass in a setting for map_layer_filter from a form. It looks something like this:

The layer comes from PostGIS and everything works fine when set the filter in the mapfile. I get an error that looks like this: msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from (select oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) My best guess is that this has something to do with the quotation marks coming from the form. Does anybody have any ideas on this one? Thanks for your help. David Lowther From morissette at dmsolutions.ca Mon Oct 28 14:09:18 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 28 Oct 2002 17:09:18 -0500 Subject: [mapserver-users] runtime error References: <007701c27ec1$d2fab9b0$1805000a@zedxinc.com> Message-ID: <3DBDB58E.27975098@dmsolutions.ca> > "Aaron D. Hunt" wrote: > > I have tried to configure mapserver with proj. When I do this I get > > Warning: Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' > - libproj.so.0: cannot open shared object file: No such file or > directory in /home/httpd/html/login.php on line 3 > > I have installed proj 4.4.5 and can use it from the command line. > > Does anyone have any ideas. > You are probably running Linux? You need to add /usr/local/lib to your system's runtime library path: - Add /usr/local/lib to /etc/ld.so.conf - run /sbin/ldconfig as root to rescan the libpath Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From AScalise at geovue.com Mon Oct 28 14:48:04 2002 From: AScalise at geovue.com (Armando Scalise) Date: Mon, 28 Oct 2002 17:48:04 -0500 Subject: [mapserver-users] Indexing Shape files In-Reply-To: <200210281608.KAA09705@pluto.cs.umn.edu> Message-ID: I am getting a hard time trying to index shape files using TILE4MS, and using the TILEINDEX line in the map file. I get an error message saying: " msOpenSHPFile(): Unable to access file. (filenamexxx/filenamexxx) " The strange thing is that filenamexxx is the name of the shp file I am indexing, and for some reason, is taking that as the directory name too (????) My Data Line and TILEINDEX lines look like this: DATA "usa/MA/filenamexxx" TILEINDEX "filenamexxx" I do not get an error if I remove the TILEINDEX line, so I am sure that the problem is there If I try to index a number of files in a txt file, it seems to be taking the name of the first file in the list and using it as a directory name for all the remainging files to be indexed. Any hints will be greatly apprciated Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From pkishor at GeoAnalytics.com Mon Oct 28 16:12:20 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 28 Oct 2002 18:12:20 -0600 Subject: [mapserver-users] Can't load .... mapscript.so for module mapscript Message-ID: I upgraded a whole bunch of stuff on my aging RH 7.2 server. So, I re-installed mapserver 3.6.3. Followed the directions on the wiki. Everything (seemed to have) went fine. Except, everything is now fubar. First, the symptoms... mapserver doesn't work at all. With perl mapscript application I get the following -- Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so' for module mapscript: /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: undefined symbol: TIFFIsByteSwapped at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mapscript.pm line 7 Just doing a `mapserv -v` gives a ./mapserv: error while loading shared libraries: libproj.so.0: cannot open share d object file: No such file or directory My guess is that the older libraries are messing around with the ones from the more recent install. Is it worthwhile tracking everything down that I installed with mapserver, deleting it, and then reinstalling? (will take a long time, so I want to make sure). I am using Apache 2.0.39. Are there any special tricks required? I am using PHP 4.1.2 which seems to be the recommended version. Should I bump it up further? Many tia. Puneet. From pradeepkumar at infotech.stph.net Mon Oct 28 20:40:27 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Tue, 29 Oct 2002 10:10:27 +0530 Subject: [mapserver-users] MapServer DLL In-Reply-To: <20021028123911.15211.qmail@web14008.mail.yahoo.com> Message-ID: Hello Collins, Thank you very much for your offer to help me out, I am sorry I have not really worked on the MapServer in such a depth so as to help you on your palette problem, I have just discovered mapserver and its implications. I am assigned a task of finding of an alternative technology to MapServer exe so that the Memory Alloc problems associated with the CGI exe of MapServer is over come, Hence my Endeavor to find out if any one has Invented this wheel before. Can you please mail me the details of your DLL ( any guidelines how to create one?), and I wish to know what the "DLL + JNI + JavaBean wrapper" intends to do, or rather its advantages. Thanks Pradeep Lead Software Engineer InfoTech Enterprises Ltd Plot 11 Cyberabad Hyderabad-AP India. url: www.infotechsw.com mailto: pradeepkumar at infotech.stph.net -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Andrew Collins Sent: Monday, October 28, 2002 6:09 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Palette Errors with 3.6.3 First: I have a mapfile with 76 layers (only a few have status=on at any given time) and for some layers render the COLOR and OUTLINECOLORs that are for another layer. Why does this happen, and how can I fix it? Also: I have a good DLL + JNI + JavaBean wrapper for MapServer in Java. If you're interested contact me--and help me out with my palette problems. :) Thanks! ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From guillaume.sueur at khi2.fr Tue Oct 29 00:57:10 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Tue, 29 Oct 2002 09:57:10 +0100 Subject: [rosa-users] RE: [mapserver-users] Rosa and Mozilla References: <3DFF131E4E6D2D4198CDD758F35A5353010ABED2@postoffice.GASAI.Com> <3DBDA839.9D5F21C3@dmsolutions.ca> Message-ID: <3DBE4D66.5090604@khi2.fr> I'm not a java specialist, but as I read in the code, the setImageUrl only sends the new url to the loadMap function. This function rebuilds the toolbar and makes various stuffs, including a loadImage() function. Couldn't the setImageURL call directly the loadImage() function to refresh only the image ? Guillaume Daniel Morissette wrote: > "Hankley, Chip" wrote: > >>That's pretty interesting. In all the cases, the images ARE being created - >>I looked in the TMP directory and "103583542529481.png" (the image that it >>choked on) was there. So, my hunch is that something is happening in the >>Applet. >> >>I know next to nothing about Java, so, I have no clue as to how to debug. >>I've had a number of respondents now saying essentially the same thing... >>but they're all windows users. Be curious to see if the same thing happens >>on Linux or a Mac. >> >>Chip > > > > Just a quick note to let you know that we're taking note of the problem, > but we have no clue what could be causing it and don't really have time > to look into this for a little while. So if someone with some Java > knowledge is able to figure a fix then we'll gladly include it in the > master version. > > Thanks > > Daniel > -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From Bjarni.Pjetursson at tietoenator.com Tue Oct 29 01:33:35 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 29 Oct 2002 10:33:35 +0100 Subject: SV: [mapserver-users] map_layer_filter Message-ID: <18E0CC75605BD411907800508B8BB8D00165F074@odin.enator.dk> Try quoting your field with both single-plings and double-plings like this Regards Bjarni Thor Pjetursson > -----Oprindelig meddelelse----- > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > Sendt: 28. oktober 2002 21:56 > Til: Mapserver-Users (E-mail) > Emne: [mapserver-users] map_layer_filter > > Howdy List, > > I'm trying to pass in a setting for map_layer_filter from a form. It looks > something like this: > >
name="Master"> > > > >
> > The layer comes from PostGIS and everything works fine when set the filter > in the mapfile. I get an error that looks like this: > > msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS > DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE > mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > (select > oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( > 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 > 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) > > My best guess is that this has something to do with the quotation marks > coming from the form. Does anybody have any ideas on this one? > > Thanks for your help. > > David Lowther From c.sandor at emla.hu Tue Oct 29 02:31:17 2002 From: c.sandor at emla.hu (Sandor Csaba) Date: Tue, 29 Oct 2002 11:31:17 +0100 Subject: [mapserver-users] GDAL compilation error In-Reply-To: <3DBD3F9E.9080206@pobox.com> References: <5.1.0.14.0.20021028140118.00c22a78@192.168.1.7> Message-ID: <5.1.0.14.0.20021029112042.020f3cf0@192.168.1.7> Hi, The second option is true, I did not "install" gdal. I gave configure --with-gdal=/home/emla/lib/gdal/apps/gdal-config After this configure runs ok, but when I try to make it it says at target shp2img: ... gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/home/emla/lib/gd -I/home/emla/lib/jpeg -I/home/emla/lib/gdal/port -I/home/emla/lib/gdal/core -I/home/emla/lib/gdal/ogr -I/home/emla/lib/gdal/ogr/ogrsf_frmts shp2img.o -L. -lmap -L/home/emla/lib/gd -lgd -L/home/emla/lib/jpeg -ljpeg -L/home/emla/lib/freetype1/lib/.libs -lttf -L/home/emla/lib/libpng -lpng -L/home/emla/lib/zlib -lz -L/home/emla/lib/jpeg -ljpeg -L/home/emla/lib/freetype1/lib/.libs -lttf -L/home/emla/lib/libpng -lpng -L/home/emla/lib/zlib -lz -L/home/emla/lib/jpeg -ljpeg /home/emla/lib/gdal/ogr/ogrsf_frmts/ogrsf_frmts.a /home/emla/lib/gdal/gdal.a /home/emla/lib/gdal/ogr/ogr.a /home/emla/lib/gdal/gdal.a /home/emla/lib/gdal/port/cpl.a -lz -lm -ldl -L/usr/local/lib -lm -lm -o shp2img *** Error code 1 make: Fatal error: Command failed for target `shp2img' ... I suspect this is the first executable it tries to build... ?? Csaba >Sandor, > >It is trying to execute the path you gave as if it were the gdal-config >script. Is /home/emla/lib/gdal a build directory, or an install directory? >If you installed GDAL you should be able to find a bin/gdal-config script >in the install tree. Use that as the argument to --with-gdal. If you didn't >install GDAL then give /home/emla/lib/gdal/apps/gdal-config as the argument >to the --with-gdal option. > >Good luck, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent > - {Kornyezeti Management es Jog Egyesulet {Environmental Management and Law Association {www.emla.hu {1076 Budapest {Garay u. 29-31 {Hungary {Tel/fax: 36-1-3228462, 36-1-3529925 {Mobil: 06-20-949-1447 From lfilak at medinaco.org Tue Oct 29 05:09:53 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Tue, 29 Oct 2002 08:09:53 -0500 Subject: [mapserver-users] Can't load .... mapscript.so for module mapscript Message-ID: <200210291309.g9TD96X02793@yogi.medinaco.net> Did you already make sure that the path to libproj.so.0 is known by apache, ie. /sbin/ldconfig -v? Lowell F. The following message was sent by Puneet Kishor on Mon, 28 Oct 2002 18:12:20 -0600. > I upgraded a whole bunch of stuff on my aging RH 7.2 server. So, I > re-installed mapserver 3.6.3. Followed the directions on the wiki. > Everything (seemed to have) went fine. Except, everything is now fubar. > > First, the symptoms... mapserver doesn't work at all. With perl mapscript > application I get the following -- > > Can't load > '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so' for > module mapscript: > /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: > undefined symbol: TIFFIsByteSwapped at > /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. > at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mapscript.pm line 7 > > > Just doing a `mapserv -v` gives a > > ./mapserv: error while loading shared libraries: libproj.so.0: cannot open > share > d object file: No such file or directory > > My guess is that the older libraries are messing around with the ones from > the more recent install. > > Is it worthwhile tracking everything down that I installed with mapserver, > deleting it, and then reinstalling? (will take a long time, so I want to > make sure). > > I am using Apache 2.0.39. Are there any special tricks required? > > I am using PHP 4.1.2 which seems to be the recommended version. Should I > bump it up further? > > Many tia. > > Puneet. From dlowther at ou.edu Tue Oct 29 06:29:54 2002 From: dlowther at ou.edu (Lowther, David W) Date: Tue, 29 Oct 2002 08:29:54 -0600 Subject: [mapserver-users] map_layer_filter Message-ID: Bjarni, I'm not sure how to do this with a more complex filter like: "pnum in ('3400-00-001-001-0-001-00','3400-00-001-001-0-002-00')" What would you set the value of map_layername_filter to for the above filter? It seems from some further investigation that there are several characters that will cause the filter to be truncated ',(,_ Are there others? Is there any way around this? Thanks for your help, Dave -----Original Message----- From: Bjarni Pjetursson [mailto:Bjarni.Pjetursson at tietoenator.com] Sent: Tuesday, October 29, 2002 3:34 AM To: 'Lowther, David W' Cc: mapserver-users at lists.gis.umn.edu Subject: SV: [mapserver-users] map_layer_filter Try quoting your field with both single-plings and double-plings like this Regards Bjarni Thor Pjetursson > -----Oprindelig meddelelse----- > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > Sendt: 28. oktober 2002 21:56 > Til: Mapserver-Users (E-mail) > Emne: [mapserver-users] map_layer_filter > > Howdy List, > > I'm trying to pass in a setting for map_layer_filter from a form. It looks > something like this: > >
name="Master"> > > > >
> > The layer comes from PostGIS and everything works fine when set the filter > in the mapfile. I get an error that looks like this: > > msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS > DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE > mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > (select > oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( > 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 > 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) > > My best guess is that this has something to do with the quotation marks > coming from the form. Does anybody have any ideas on this one? > > Thanks for your help. > > David Lowther From Bjarni.Pjetursson at tietoenator.com Tue Oct 29 06:55:46 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 29 Oct 2002 15:55:46 +0100 Subject: SV: [mapserver-users] map_layer_filter Message-ID: <18E0CC75605BD411907800508B8BB8D00165F076@odin.enator.dk> Hi Dave, In this case, you'll have to use javascript to quote your string correctly: function onPageLoad() { if (document.mapserv.map_layername_filter.value.substring(0,1) != "\"") { document.mapserv.map_layername_filter.value = '"' + document.mapserv.map_layername_filter.value + '"'; } Place this function in the head of your template and call it with an onLoad trigger in the body-tag. This will place your string in double-plings IF it not already is. (Not pretty - but it works.) Regards Bjarni Thor Pjetursson > -----Oprindelig meddelelse----- > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > Sendt: 29. oktober 2002 15:30 > Til: Bjarni Pjetursson; Lowther, David W > Cc: mapserver-users at lists.gis.umn.edu > Emne: RE: [mapserver-users] map_layer_filter > > Bjarni, > > I'm not sure how to do this with a more complex filter like: > > "pnum in ('3400-00-001-001-0-001-00','3400-00-001-001-0-002-00')" > > What would you set the value of map_layername_filter to for the above > filter? > > It seems from some further investigation that there are several characters > that will cause the filter to be truncated ',(,_ > Are there others? > Is there any way around this? > > Thanks for your help, > > Dave > > -----Original Message----- > From: Bjarni Pjetursson [mailto:Bjarni.Pjetursson at tietoenator.com] > Sent: Tuesday, October 29, 2002 3:34 AM > To: 'Lowther, David W' > Cc: mapserver-users at lists.gis.umn.edu > Subject: SV: [mapserver-users] map_layer_filter > > > Try quoting your field with both single-plings and double-plings like this > > Regards > Bjarni Thor Pjetursson > > > -----Oprindelig meddelelse----- > > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > > Sendt: 28. oktober 2002 21:56 > > Til: Mapserver-Users (E-mail) > > Emne: [mapserver-users] map_layer_filter > > > > Howdy List, > > > > I'm trying to pass in a setting for map_layer_filter from a form. It > looks > > something like this: > > > >
target=map > > name="Master"> > > > > > > > >
> > > > The layer comes from PostGIS and everything works fine when set the > filter > > in the mapfile. I get an error that looks like this: > > > > msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing > POSTGIS > > DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE > > mycursor BINARY CURSOR FOR SELECT > > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > > (select > > oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( > > 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 > > 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) > > > > My best guess is that this has something to do with the quotation marks > > coming from the form. Does anybody have any ideas on this one? > > > > Thanks for your help. > > > > David Lowther From dlowther at ou.edu Tue Oct 29 06:58:11 2002 From: dlowther at ou.edu (Lowther, David W) Date: Tue, 29 Oct 2002 08:58:11 -0600 Subject: [mapserver-users] Bug? map_layer_filter Message-ID: Bjarni, I have tried a couple more things. 1) works fine. 2) fails with error: msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from (select oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) Aren't 1 and 2 essentially doing the same thing? Do you think this is a bug? Dave -----Original Message----- From: Bjarni Pjetursson [mailto:Bjarni.Pjetursson at tietoenator.com] Sent: Tuesday, October 29, 2002 8:56 AM To: 'Lowther, David W' Cc: mapserver-users at lists.gis.umn.edu Subject: SV: [mapserver-users] map_layer_filter Hi Dave, In this case, you'll have to use javascript to quote your string correctly: function onPageLoad() { if (document.mapserv.map_layername_filter.value.substring(0,1) != "\"") { document.mapserv.map_layername_filter.value = '"' + document.mapserv.map_layername_filter.value + '"'; } Place this function in the head of your template and call it with an onLoad trigger in the body-tag. This will place your string in double-plings IF it not already is. (Not pretty - but it works.) Regards Bjarni Thor Pjetursson > -----Oprindelig meddelelse----- > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > Sendt: 29. oktober 2002 15:30 > Til: Bjarni Pjetursson; Lowther, David W > Cc: mapserver-users at lists.gis.umn.edu > Emne: RE: [mapserver-users] map_layer_filter > > Bjarni, > > I'm not sure how to do this with a more complex filter like: > > "pnum in ('3400-00-001-001-0-001-00','3400-00-001-001-0-002-00')" > > What would you set the value of map_layername_filter to for the above > filter? > > It seems from some further investigation that there are several characters > that will cause the filter to be truncated ',(,_ > Are there others? > Is there any way around this? > > Thanks for your help, > > Dave > > -----Original Message----- > From: Bjarni Pjetursson [mailto:Bjarni.Pjetursson at tietoenator.com] > Sent: Tuesday, October 29, 2002 3:34 AM > To: 'Lowther, David W' > Cc: mapserver-users at lists.gis.umn.edu > Subject: SV: [mapserver-users] map_layer_filter > > > Try quoting your field with both single-plings and double-plings like this > > Regards > Bjarni Thor Pjetursson > > > -----Oprindelig meddelelse----- > > Fra: Lowther, David W [SMTP:dlowther at ou.edu] > > Sendt: 28. oktober 2002 21:56 > > Til: Mapserver-Users (E-mail) > > Emne: [mapserver-users] map_layer_filter > > > > Howdy List, > > > > I'm trying to pass in a setting for map_layer_filter from a form. It > looks > > something like this: > > > >
target=map > > name="Master"> > > > > > > > >
> > > > The layer comes from PostGIS and everything works fine when set the > filter > > in the mapfile. I get an error that looks like this: > > > > msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing > POSTGIS > > DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE > > mycursor BINARY CURSOR FOR SELECT > > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > > (select > > oid,* from a047parcel) as foo WHERE (pnum in ) and (the_geom && setSRID( > > 'BOX3D(-98.1769012540527 36.1434604724575,-97.4028596973514 > > 36.6100900285963)'::BOX3D,find_srid('','a047parcel','the_geom') )) > > > > My best guess is that this has something to do with the quotation marks > > coming from the form. Does anybody have any ideas on this one? > > > > Thanks for your help. > > > > David Lowther From vincenzo.patruno at istat.it Tue Oct 29 08:11:56 2002 From: vincenzo.patruno at istat.it (Vincenzo Patruno) Date: Tue, 29 Oct 2002 16:11:56 -0000 Subject: [mapserver-users] PHP mapscript compiling Message-ID: <02da01c27f65$e7bdb830$492d120a@istat.it> Hi! I've trouble compiling Mapscript (Mapserver-3.6.3) with PHP on my IBM-AIX system. I launch the command ./configure --with-php=../php-4.2.3 --with-gd and then I execute the command "make". The system compiles mapserver without any problem. The problem (I think) is when the system goes to compile mapscript. Suddenly the system stops with the following error: ... cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/usr/lpp/apachessl/sorgenti/mapserver-3.6.3/mapscript/php3' cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -D_ALL_SOURC E -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -I. -I.. -O2 -Wall -DCOMPIL E_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP - DUSE_GD_FT -DUSE_JPEG -I/usr/lpp/apachessl/sorgenti/mapserver-3.6.3 -I /usr/local/include -I/usr/lpp/apachessl/sorgenti/php-4.2.3 -I/usr/lpp/apachess l/sorgenti/php-4.2.3/dl -I/usr/lpp/apachessl/sorgenti/php-4.2.3/main -I/usr/lpp/ apachessl/sorgenti/php-4.2.3/Zend -I/usr/lpp/apachessl/sorgenti/php-4.2.3/includ e -I/usr/lpp/apachessl/sorgenti/php-4.2.3/TSRM -c -o php_mapscript_util.o php_m apscript_util.c make[1]: cc: Command not found make[1]: *** [php_mapscript_util.o] Error 127 make[1]: Leaving directory `/usr/lpp/apachessl/sorgenti/mapserver-3.6.3/mapscrip t/php3' But I don't have cc installed on my system (I use gcc). So, I've opened the Makefile under mapscript/php3 and I've modified the first part of the file CC = cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -D_ ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -I. -I.. LD = ld -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noen try -lc -bE:perl.exp CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 RUNPATHS= changing cc with gcc. Also in this case the system stops showing the following error: ld -bhalt:4 -bM:SRE -bI:/perl.exp -bE:.exp -b noentry -lc -bE:perl.exp -o php_ma pscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o -L/usr/lpp/apache ssl/sorgenti/mapserver-3.6.3 -lmap -ltiff -ljpeg -L/lib -lttf -lpng -lz -lgd -L/usr/local/lib -lgd -ljpeg -L/lib -lttf -lpng -lz -ljpeg -lm ld: 0706-003 Cannot find or read import file: /perl.exp ld:accessx(): A file or directory in the path name does not exist. ld: 0706-004 Cannot find or read export file: .exp ld:accessx(): A file or directory in the path name does not exist. ld: 0706-004 Cannot find or read export file: perl.exp ld:accessx(): A file or directory in the path name does not exist. make: *** [php_mapscript.so] Error 255 ....... And I don't know what's the rule of Perl .... ----------------------- Then I changed strategy! I installed the nightly version, and in this case I compiled everything without any problem. The problem is that the system don't create the file php_mapscript.so. Also in this case I opened the Makefile under mapscript/php3 and this is the first part of the file CC = gcc LD = /bin/true CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 RUNPATHS= -L/usr/local/lib -L/lib -L/usr/lpp/apachessl/sorgenti/mapserver_dev Any suggestion? Thanks in advance Vincenzo From tpcolson at nexussoft.com Tue Oct 29 08:24:58 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 29 Oct 2002 11:24:58 -0500 Subject: [mapserver-users] newbie: Need help compiling Message-ID: <8A13872FF821F4488B4A629647DC0C7102C99F@mailman.nexussoft.com> I've download and "default "installed: GD PROJ4 LIBWWW LIBTIFF LIBGEOTIFF LIBJPEG OGR GDAL and then Mapserver 3.6.3 Here's what happens: [root at ids mapserver-3.6.3]# ./configure --with-proj --with-ogr --with-gdal --with-wmsclient loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from system libs. checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... no configure: error: GD is required but was not found... use --with-gd=DIR to specify its location. [root at ids mapserver-3.6.3]# So I try: [root at ids mapserver-3.6.3]# ./configure --with-proj --with-ogr --with-wmsclient --with-gd=/usr/include --with-gdal loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from -L/usr/include -lgd checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageGif in -lc... no checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from /usr/include. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... (cached) no libpdf not found... PDF support not included. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. checking whether we should include thread safe support... thread safe support disabled. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... checking for gdal-config... (cached) /usr/local/bin/gdal-config checking for OGRRegisterAll in -lgdal.1.1... (cached) no configure: warning: OGR not found in system libs... use --with-ogr=DIR. checking if GDAL support requested... yes checking if PostGIS support requested... no checking if OracleSpatial support requested... no checking whether we should include WMS support... OGC WMS compatibility enabled (-DUSE_WMS). checking whether we should include WMS Client Connections support... checking for libwww-config... (cached) /usr/local/bin/libwww-config found libwww version 5.4.0 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for potential conflict between system regex and rxposix... checking for regexec in -lrx... (cached) no Compiling with -DIGNORE_MISSING_DATA. checking whether we should enable debug features... checking for PHP/MapScript module options... PHP/MapScript module not configured. creating ./config.status creating Makefile [root at ids mapserver-3.6.3]# Looks like it worked, right? Check this out: make gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap -L/usr/include -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img ./libmap.a(mapraster.o): In function `drawGDAL': mapraster.o(.text+0x4c8): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x4d7): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0x4ee): undefined reference to `GDALGetGeoTransform' mapraster.o(.text+0x504): undefined reference to `GDALGetDescription' mapraster.o(.text+0x50c): undefined reference to `GDALReadWorldFile' mapraster.o(.text+0x82d): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x891): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x902): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0x965): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0xb2f): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xb5c): undefined reference to `GDALGetRasterCount' mapraster.o(.text+0xb76): undefined reference to `GDALGetRasterColorTable' mapraster.o(.text+0xb9c): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xbae): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xbc0): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xbf8): undefined reference to `GDALGetRasterCount' mapraster.o(.text+0xc0d): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xc2e): undefined reference to `GDALGetRasterColorInterpretation' mapraster.o(.text+0xc4e): undefined reference to `GDALGetRasterColorTable' mapraster.o(.text+0xc64): undefined reference to `GDALCloneColorTable' mapraster.o(.text+0xc84): undefined reference to `GDALCreateColorTable' mapraster.o(.text+0xcc4): undefined reference to `GDALSetColorEntry' mapraster.o(.text+0xd3e): undefined reference to `GDALGetColorEntryAsRGB' mapraster.o(.text+0xdb0): undefined reference to `GDALGetColorEntryCount' mapraster.o(.text+0xdec): undefined reference to `GDALGetColorEntryAsRGB' mapraster.o(.text+0xe48): undefined reference to `GDALGetColorEntryCount' mapraster.o(.text+0xece): undefined reference to `GDALRasterIO' mapraster.o(.text+0xfcc): undefined reference to `GDALRasterIO' mapraster.o(.text+0x1029): undefined reference to `GDALRasterIO' mapraster.o(.text+0x1089): undefined reference to `GDALRasterIO' mapraster.o(.text+0x1209): undefined reference to `GDALDestroyColorTable' ./libmap.a(mapraster.o): In function `msDrawRasterLayer': mapraster.o(.text+0x4407): undefined reference to `GDALAllRegister' mapraster.o(.text+0x440f): undefined reference to `CPLQuietErrorHandler' mapraster.o(.text+0x4414): undefined reference to `CPLPushErrorHandler' mapraster.o(.text+0x4431): undefined reference to `GDALOpen' mapraster.o(.text+0x4470): undefined reference to `GDALGetProjectionRef' mapraster.o(.text+0x44b7): undefined reference to `GDALGetGeoTransform' mapraster.o(.text+0x44d0): undefined reference to `GDALReadWorldFile' mapraster.o(.text+0x4585): undefined reference to `GDALClose' ./libmap.a(mapogr.o): In function `msLoadWKTProjectionString': mapogr.o(.text+0x13): undefined reference to `OGRSpatialReference::OGRSpatialReference(char const *)' mapogr.o(.text+0x22): undefined reference to `OGRSpatialReference::importFromWkt(char **)' mapogr.o(.text+0x46): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x5f): undefined reference to `OGRSpatialReference::IsLocal(void) const' mapogr.o(.text+0x71): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x8c): undefined reference to `OGRSpatialReference::exportToProj4(char **) const' mapogr.o(.text+0xc6): undefined reference to `VSIFree' mapogr.o(.text+0xd4): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x105): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x11f): undefined reference to `VSIFree' mapogr.o(.text+0x12a): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x142): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' ./libmap.a(mapogr.o): In function `msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionObj *)': mapogr.o(.text+0x202): undefined reference to `OGRSpatialReference::IsLocal(void) const' mapogr.o(.text+0x221): undefined reference to `OGRSpatialReference::exportToProj4(char **) const' mapogr.o(.text+0x25b): undefined reference to `VSIFree' mapogr.o(.text+0x297): undefined reference to `VSIFree' ./libmap.a(mapogr.o): In function `msOGCWKT2ProjectionObj': mapogr.o(.text+0x2b6): undefined reference to `OGRSpatialReference::OGRSpatialReference(char const *)' mapogr.o(.text+0x2c5): undefined reference to `OGRSpatialReference::importFromWkt(char **)' mapogr.o(.text+0x2e9): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x30d): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' mapogr.o(.text+0x322): undefined reference to `OGRSpatialReference::~OGRSpatialReference(void)' ./libmap.a(mapresample.o): In function `msResampleGDALToMap': mapresample.o(.text+0xb2c): undefined reference to `GDALGetGeoTransform' mapresample.o(.text+0xb3e): undefined reference to `GDALGetDescription' mapresample.o(.text+0xb54): undefined reference to `GDALGetDescription' mapresample.o(.text+0xb5c): undefined reference to `GDALReadWorldFile' mapresample.o(.text+0xb6a): undefined reference to `GDALGetRasterXSize' mapresample.o(.text+0xb75): undefined reference to `GDALGetRasterYSize' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 [root at ids mapserver-3.6.3]# So what didn't I install correctly? From morissette at dmsolutions.ca Tue Oct 29 08:45:09 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 29 Oct 2002 11:45:09 -0500 Subject: [mapserver-users] PHP mapscript compiling References: <02da01c27f65$e7bdb830$492d120a@istat.it> Message-ID: <3DBEBB15.6456B16E@dmsolutions.ca> Vincenzo Patruno wrote: > > Then I changed strategy! > > I installed the nightly version, and in this case I compiled everything without any problem. > The problem is that the system don't create the file php_mapscript.so. > > Also in this case I opened the Makefile under mapscript/php3 and this is the first part of the file > > CC = gcc > LD = /bin/true > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > RUNPATHS= -L/usr/local/lib -L/lib -L/usr/lpp/apachessl/sorgenti/mapserver_dev > > Any suggestion? > > Thanks in advance > Vincenzo I committed a new configure script to the 3.7-dev CVS. Can you please try it and see if it works better? If you're not setup with CVS then you can download http://www2.dmsolutions.ca/tmp/mapserver-configure-37dev-20021029.tar.gz Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Chip.Hankley at gasai.com Tue Oct 29 08:58:44 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Tue, 29 Oct 2002 10:58:44 -0600 Subject: [mapserver-users] Indexing Shape files Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABEE1@postoffice.GASAI.Com> Armando - When you're using a TILEINDEX, you don't need a DATA line... the TILEINDEX line IS the data line. Here's an example - LAYER NAME "LANDCOVER" MAXSCALE 500000 MAXSCALE 500000 STATUS OFF TILEINDEX "Raster\lc_tile" TILEITEM "Location" TYPE RASTER OFFSITE 0 END In this case, TILEINDEX is the path (relative to the mapfile's SHAPEPATH) to the indexing shapefile, and TILEITEM is the field name in the index shapefile that points to the individual tile data sources (in this case images). HTH. Chip From steve.lime at dnr.state.mn.us Tue Oct 29 10:09:10 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Oct 2002 12:09:10 -0600 Subject: [mapserver-users] SDE connect but not > once Message-ID: Might there be something going on with the SDE side of things? MapServer creates (and then closes) a connection for each SDE layer. If for some reason SDE itself isn't dropping the connections that could result in all sorts of problems. I recall seeing this here several years ago but not recently. I'm not an SDE admin but I thought there was a tool to look at incoming connections and that might help in diagnosing this problem. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Murray, Ross" 10/28/02 01:13PM >>> I am connecting to an SDE coverage for spatial data. When initialised, the map showing all extents loads correctly into the mapplet (although it is significantly slower than a shapefile). Then I can do what I wish (zoom, query, pan, print); BUT ONLY ONCE. For example, I choose a map I want from a drop-down list and, presto, there is the whole map in the applet. Then I zoom in to an area; poof, there is the area. Then I attempt to query a polygon in the area and I get: msSDELayerOpen(): SDE error. SE_connection_create(): Network I/O error. (-10) >From this point the only thing that works is to go to a different map or quit. That next map will load correctly and I can pan or query or zoom, but I can't pan and query or query and zoom or whatever. Same error every time. Any thoughts? <> From steve.lime at dnr.state.mn.us Tue Oct 29 10:16:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Oct 2002 12:16:32 -0600 Subject: [mapserver-users] width of line features Message-ID: You need to define a scaleable symbol (like a circle) to use as a brush. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Drew from Zhrodague 10/26/02 01:15PM >>> > Yes. In the LAYER object you can specify SIZEUNITS as > pixel|feet|inches|kilometers|meters|miles, default is pixels. Hm, what am I doing wrong here? Also, the legend wigs-out when I set the size larger, I'd like to quell that if possible, or reset some absolute values. Can you make suggestions? layer name "secondaryroadstile" type line status default tileindex "secondaryroadstile" tileitem "LOCATION" maxscale 200000 sizeunits feet labelmaxscale 25000 class color 204 204 153 size 30 TEXT ([FENAME] [FETYPE]) label color 122 137 103 size 12 position auto position auto TYPE TRUETYPE ANGLE AUTO FONT zurichlight mindistance 200 angle auto end end end Also, this is for http://www.WiFiMaps.com, you can check-out the app, we've sorta made a PHPNuke module for mapserver, and included a few other things, like searching and stats. We're so extremely impressed with Mapserver, and can't say enough nice things about it. I have the mapfile docs printed on large-format paper on the wall in my livingroom (48x36). Wonderfulness, yay, and kudos! From AScalise at geovue.com Tue Oct 29 10:51:59 2002 From: AScalise at geovue.com (Armando Scalise) Date: Tue, 29 Oct 2002 13:51:59 -0500 Subject: [mapserver-users] CGI Error Message-ID: I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From tpcolson at nexussoft.com Tue Oct 29 10:57:33 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 29 Oct 2002 13:57:33 -0500 Subject: [mapserver-users] Newbie: Need more help Message-ID: <8A13872FF821F4488B4A629647DC0C71023F56@mailman.nexussoft.com> Is there anything that has to be done with the DEFAULT install of apache on a DEFAULT intall of RH 7.3 to make the demo work? i've edited the demo.ini, etc...till my keyboard broke and still can't make it work. CGI works...that's it. Thanks. From keon at nacse.org Tue Oct 29 11:16:41 2002 From: keon at nacse.org (Dylan Keon) Date: Tue, 29 Oct 2002 11:16:41 -0800 Subject: [mapserver-users] SDE connect but not > once In-Reply-To: References: Message-ID: <3DBEDE99.9040805@nacse.org> I think Steve's right that it's something on the SDE side. How many connections does your ESRI license allow? It's possible that the connections you're opening are not being closed, resulting in the SE_CONNECTION_CREATE error when you try to open a new connection (although an SE_CONNECTIONS_EXCEEDED (-7) error would seem more likely in that case). One thing to check is the TCPKEEPALIVE parameter in the giomgr.defs file. If you set this to TRUE, hanging connections will be killed after a certain amount of time (2 hours, I think...it follows the system TCPKEEPALIVE setting). But you might have to do some deeper digging to find out why SDE connections aren't closing right at the time MapServer closes them, if that's actually what's happening. As far as monitoring connections (on Unix), use something like "sdemon -o info -I stats" at the command line. Not sure of the syntax on Windows, but it's probably the same. There are also commercial tools that will monitor connections, among other things (FME, SDA, etc). HTH, Dylan -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ Steve Lime wrote: > Might there be something going on with the SDE side of things? MapServer > creates (and then closes) a connection for each SDE layer. If for some > reason SDE itself isn't dropping the connections that could result in > all sorts of problems. I recall seeing this here several years ago but > not recently. I'm not an SDE admin but I thought there was a tool to > look at incoming connections and that might help in diagnosing this > problem. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > > >>>"Murray, Ross" 10/28/02 01:13PM >>> > > I am connecting to an SDE coverage for spatial data. When initialised, > the > map showing all extents loads correctly into the mapplet (although it > is > significantly slower than a shapefile). Then I can do what I wish > (zoom, > query, pan, print); BUT ONLY ONCE. For example, I choose a map I want > from a > drop-down list and, presto, there is the whole map in the applet. Then > I > zoom in to an area; poof, there is the area. Then I attempt to query a > polygon in the area and I get: > > msSDELayerOpen(): SDE error. SE_connection_create(): Network > I/O > error. (-10) > > >From this point the only thing that works is to go to a different map > or > quit. That next map will load correctly and I can pan or query or zoom, > but > I can't pan and query or query and zoom or whatever. Same error every > time. > > Any thoughts? > > > <> From Steve_Palmer at lpsg.com Tue Oct 29 11:21:10 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Tue, 29 Oct 2002 13:21:10 -0600 Subject: [mapserver-users] CGI Error Message-ID: <750F5C5447AF18408DC73220B98FEAF7866AC9@lesexch02.lpsg.com> Install the Win32 libraries on your new machine -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 11:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Oct 29 11:25:36 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Oct 2002 13:25:36 -0600 Subject: [mapserver-users] Indexing Shape files Message-ID: As an aside, actually sometimes you might use the DATA line. MapServer tiles can be used to store: 1) tiles with totally unique files names or 2) tiles with identical shapefile names but different directories In the latter case you might store just the directory name in TILEITEM and the shapefile name in DATA. The two then get merged to create a full file name. This allows you to get away with a single TILEITEM for multiple layers which can be a big deal with datasets like GDT roads... Steve >>> "Hankley, Chip" 10/29/02 10:58AM >>> Armando - When you're using a TILEINDEX, you don't need a DATA line... the TILEINDEX line IS the data line. Here's an example - LAYER NAME "LANDCOVER" MAXSCALE 500000 MAXSCALE 500000 STATUS OFF TILEINDEX "Raster\lc_tile" TILEITEM "Location" TYPE RASTER OFFSITE 0 END In this case, TILEINDEX is the path (relative to the mapfile's SHAPEPATH) to the indexing shapefile, and TILEITEM is the field name in the index shapefile that points to the individual tile data sources (in this case images). HTH. Chip From pkishor at GeoAnalytics.com Tue Oct 29 11:30:41 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 29 Oct 2002 13:30:41 -0600 Subject: [mapserver-users] Can't load .... mapscript.so for module map script Message-ID: Gentlemen, Thanks for your advice. Not running ldconfig was the problem (all these multiple operating systems are driving me crazy... I am new at Linux). For the benefit of others who may scan this in search for answers. If installing on Linux (maybe true for other OSs as well, but not for MacOS X) -- first edit /etc/ld.so.conf and add /usr/local/lib, then run /sbin/ldconfig after make install-ing every library. Further info on ldconfig is available at http://www.oreillynet.com/linux/cmd/l/ldconfig.html (thanks Norman). In short, ldconfig is a System administration command. It examines the libraries in the given directories, /etc/ld.so.conf, /usr/lib, and /lib; updates links and caches where necessary. Usually is run in startup files or after the installation of new shared libraries. .. > Did you already make sure that the path to libproj.so.0 is > known by apache, ie. /sbin/ldconfig -v? > Lowell F. > > The following message was sent by Puneet Kishor > on Mon, 28 Oct 2002 18:12:20 -0600. > > > I upgraded a whole bunch of stuff on my aging RH 7.2 server. So, I > > re-installed mapserver 3.6.3. Followed the directions on the wiki. > > Everything (seemed to have) went fine. Except, everything > is now fubar. > > > > First, the symptoms... mapserver doesn't work at all. With > perl mapscript > > application I get the following -- > > > > Can't load > > > '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/maps > cript.so' for > > module mapscript: > > > /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: > > undefined symbol: TIFFIsByteSwapped at > > /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. > > at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mapscript.pm line 7 > > > > > > Just doing a `mapserv -v` gives a > > > > ./mapserv: error while loading shared libraries: > libproj.so.0: cannot open > > share > > d object file: No such file or directory > > > > My guess is that the older libraries are messing around > with the ones from > > the more recent install. > > > > Is it worthwhile tracking everything down that I installed > with mapserver, > > deleting it, and then reinstalling? (will take a long time, > so I want to > > make sure). > > > > I am using Apache 2.0.39. Are there any special tricks required? > > > > I am using PHP 4.1.2 which seems to be the recommended > version. Should I > > bump it up further? > > > > Many tia. > > > > Puneet. > From cthomas at rand.org Tue Oct 29 11:39:34 2002 From: cthomas at rand.org (Thomas, Cord) Date: Tue, 29 Oct 2002 11:39:34 -0800 Subject: [mapserver-users] CGI Error Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4EA6@smmail2.rand.org> Armando I have asked on this list before about CGI headers too. Though, i am working on Linux/Resin combination - I have a similar HTTP header problem. My problem is that i believe the mapserver is replying with a content-type of text, not html - which screws up a mozilla browser. Any way we can get a debug of the http header? Cord -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 10:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From paul at tei.or.th Tue Oct 29 12:29:07 2002 From: paul at tei.or.th (Paul Hastings) Date: Wed, 30 Oct 2002 03:29:07 +0700 Subject: [mapserver-users] SDE connect but not > once References: <3DBEDE99.9040805@nacse.org> Message-ID: <003d01c27f89$d587d050$13729acb@tei.or.th> this might help, free sde monitor (windows): http://arcscripts.esri.com/details.asp?dbid=10273 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2545 From jvanulde at NRCan.gc.ca Tue Oct 29 12:24:44 2002 From: jvanulde at NRCan.gc.ca (Van Ulden, Joost) Date: Tue, 29 Oct 2002 15:24:44 -0500 Subject: [mapserver-users] WMS Client? Message-ID: <8AE17DD6AA4FD51191CD0002A5511681074BA4@s5-van1-r1.nrn.nrcan.gc.ca> Hello all, I have some questions about the WMS Client capabilities of MapServer. Is it possible to create a map from both local and remote files. It was my understanding that this was possible however I have been unsuccessful. I get the following error when trying to load a remote layer: msDrawRasterLayer(): Unable to access file. chdir() Does anyone have a sample mapfile that does this? Any suggestions? Thank you in advance. ================================= Joost van Ulden Programmer/Analyst Geological Survey of Canada, Pacific Division 101-605 Robson Street Vancouver, BC V6B 5J3 ph 604.666.7525 fax 604.666.1124 msn jvanulde at nrcan.gc.ca ================================= "Anyone who has lost track of time when using a computer knows the propensity to dream, the urge to make dreams come true and the tendency to miss lunch." - Tim Berners-Lee From DMartin at erac.com Tue Oct 29 12:43:01 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 29 Oct 2002 14:43:01 -0600 Subject: [mapserver-users] CGI Error Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B55@STL-EXBE-I03.corp.erac.com> Every time I have had this error, it is usually due to libraries being out of sync with the executable. Sometimes it can be the wrong set of libraries (libwww_dll.zip instead of ms35_libs.zip). Most of the time though, your libraries are out of date. If you installed the libraries with Mapserver 3.5 and later upgrade to 3.6 but don't download the new set of libraries, you will get the error you mention. If that's not it, let me know and I'll cover some other possibilities. -Dan > -----Original Message----- > From: Armando Scalise [mailto:AScalise at geovue.com] > Sent: Tuesday, October 29, 2002 12:52 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] CGI Error > > > I am trying to install MS in a new machine, and I am getting > the following > error: > > CGI Error. > The specified CGI application misbehaved by not returning a > complete set of > HTTP headers. > > Is this an error related to MS? or th IIS? Any hints as to > where I should > look at??? > > Cheers > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com > > From steve.lime at dnr.state.mn.us Tue Oct 29 12:53:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 29 Oct 2002 14:53:16 -0600 Subject: [mapserver-users] CGI Error Message-ID: You could use a perl script and the lwp module to get output (headers and all) from MapServer. You could also write a wrapper script in whatever language that sets the appropriate environment variables for mapserv and the executes it. In checking the source code MapServer always sets output mime type to "text/html". Only in the WMS feature info output is "text/plain" used (appropriately). There may be a source code problem but at first glance I don't see it. I'd need example headers to debug it. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Thomas, Cord" 10/29/02 01:39PM >>> Armando I have asked on this list before about CGI headers too. Though, i am working on Linux/Resin combination - I have a similar HTTP header problem. My problem is that i believe the mapserver is replying with a content-type of text, not html - which screws up a mozilla browser. Any way we can get a debug of the http header? Cord -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 10:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From dlowther at ou.edu Tue Oct 29 13:25:44 2002 From: dlowther at ou.edu (Lowther, David W) Date: Tue, 29 Oct 2002 15:25:44 -0600 Subject: [mapserver-users] CGI Error Message-ID: This may be a kludge but if you go run the mapserv.exe it will pop up a window that tells you what it is looking for that it can't find. Then you can go register the dll. Dave -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 12:52 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From DMartin at erac.com Tue Oct 29 13:30:04 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 29 Oct 2002 15:30:04 -0600 Subject: [mapserver-users] CGI Error Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3AB@STL-EXBE-I03.corp.erac.com> I'm not familiar with Resin, but I have also had this same, seemingly random problem with headers. Only, I was on IIS. The browser ends up showing the entire text of the web page (similar to an HTML encode) instead of a rendered web page. This is indeed due to malformed headers. But I never was able to narrow down the cause. Luckily for me, it went away after an upgrade. However, it is extremely important to note the difference between invalid data being sent from the CGI executable to the web server (as is Armando's problem) from invalid headers being sent from the server to the client browser (which is the problem you are having). In Armando's case, nothing is being returned to IIS by the CGI application called. IIS always returns this "header" error message when it gets nothing back. IIS simply fails to mention the whole story which is it got nothing back, including headers. Usually this error should say "Hey, your CGI application blew up." Unfortunately, the error you mention is still a mystery to me. -Dan > -----Original Message----- > From: Thomas, Cord [mailto:cthomas at rand.org] > Sent: Tuesday, October 29, 2002 1:40 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] CGI Error > > > Armando > > I have asked on this list before about CGI headers too. > > Though, i am working on Linux/Resin combination - I have a > similar HTTP > header problem. My problem is that i believe the mapserver > is replying with > a content-type of text, not html - which screws up a mozilla browser. > > Any way we can get a debug of the http header? > > Cord > > -----Original Message----- > From: Armando Scalise [mailto:AScalise at geovue.com] > Sent: Tuesday, October 29, 2002 10:52 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] CGI Error > > > I am trying to install MS in a new machine, and I am getting > the following > error: > > CGI Error. > The specified CGI application misbehaved by not returning a > complete set of > HTTP headers. > > Is this an error related to MS? or th IIS? Any hints as to > where I should > look at??? > > Cheers > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com > From bwragg at mappingandbeyond.com Tue Oct 29 13:37:08 2002 From: bwragg at mappingandbeyond.com (Benjamin Wragg) Date: Wed, 30 Oct 2002 08:07:08 +1030 Subject: [mapserver-users] Raster Data and Memory Message-ID: <000001c27f93$5c02e990$0101a8c0@mapping12> Hi guys, I was wondering how MapServer handles raster data. I've seen the large list of image formats that are supported, but what does MapServer do with the images when it loads them up? Does it try and fit the whole image into memory? If this is the case, what happens if say the image is 2GB and I have 512MB of memory, will it continue to try and load the file into memory, causing (on windows) the swap file to be used, or will it just not load the file into memory and call the file from the disk when needed? Thanks, Benjamin Wragg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at gasai.com Tue Oct 29 13:40:40 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Tue, 29 Oct 2002 15:40:40 -0600 Subject: [mapserver-users] CGI Error Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABEE7@postoffice.GASAI.Com> That's pretty much a catch-all error that is generated when something basic doesn't work with the CGI application. First off, make sure that you're pointing at the right file when you're launching the exe. Also, review all the permissions... i.e. make sure that the I_USR account has read and execute access to the scripts (or cgi-bin) directory. chip -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 12:52 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From warmerdam at pobox.com Wed Oct 30 14:04:28 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 30 Oct 2002 17:04:28 -0500 Subject: [mapserver-users] Raster Data and Memory References: <000001c27f93$5c02e990$0101a8c0@mapping12> Message-ID: <3DC0576C.4040708@pobox.com> Benjamin Wragg wrote: > Hi guys, > > I was wondering how MapServer handles raster data. I've seen the large > list of image formats that are supported, but what does MapServer do > with the images when it loads them up? Does it try and fit the whole > image into memory? If this is the case, what happens if say the image > is 2GB and I have 512MB of memory, will it continue to try and load > the file into memory, causing (on windows) the swap file to be used, > or will it just not load the file into memory and call the file from > the disk when needed? > > Thanks, > > Benjamin Wragg > Benjamin, What happens depends on a number of factors, mostly on what format driver is being used. The built-in PNG, and GIF drivers load the whole source image into memory. The built-in JPEG and TIFF drivers scan through the image a line or strip at a time collecting the data required for the display. The GDAL driver passes control down to it's internal drivers to handling loading the desired subsampled region. Some of these drivers can do so quite efficiently ... for instance from TIFF view overviews built. At worst most will scan the whole image to pick out the portions needed without having to load the whole thing. In short, be aware of the format and the characteristics of the driver you are using for large images. Generally if you want to handle a large image I would suggest storing it in GeoTIFF with overviews pre-built. Other approaches (tiling and separate layers for different resolutions) can also be appropriate. The RASTER HOWTO should address some of the performance issues. 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 wesp at gdv.com Tue Oct 29 13:51:11 2002 From: wesp at gdv.com (Name) Date: 29 Oct 2002 21:51:11 -0000 Subject: [mapserver-users] CGI Error In-Reply-To: <> References: <> Message-ID: <20021029215111.19662.qmail@www10.your-server.de> did you remember to put the dlls (libwww_dll.zip) into your system32- Directory? On Tue, 29 Oct 2002 13:51:59 -0500, "Armando Scalise" wrote : > I am trying to install MS in a new machine, and I am getting the following > error: > > CGI Error. > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. > > Is this an error related to MS? or th IIS? Any hints as to where I should > look at??? > > Cheers > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com > > > > > From cthomas at rand.org Tue Oct 29 13:52:39 2002 From: cthomas at rand.org (Thomas, Cord) Date: Tue, 29 Oct 2002 13:52:39 -0800 Subject: [mapserver-users] CGI Error Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4EAA@smmail2.rand.org> Steve I saw the source too, but not being familiar with CGI dynamics, i am not sure where to look for the cause. DAn Martin has helped a bit, but i am still without an answer. Two questions - 1 - i noted that the setting "Content-type" is not the same case as many of the content-type statements i have seen in other sources. i wonder if this might be a problem? i do not know if the standards are specific on this. 2 - is there a diagram explaining what happens/what the path of execution is for mapserv binary. i understand the .map file is a template/configuration for the mapserver, but, being new to the cgi process, i am not sure the path of execution - which would help me debug this problem: client request -> web server -> cgi process -> process request -> web server -> client in that path - how does the .map file fit in with say the remaining html files? Cord -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, October 29, 2002 12:53 PM To: mapserver-users at lists.gis.umn.edu; cthomas at rand.org Subject: RE: [mapserver-users] CGI Error You could use a perl script and the lwp module to get output (headers and all) from MapServer. You could also write a wrapper script in whatever language that sets the appropriate environment variables for mapserv and the executes it. In checking the source code MapServer always sets output mime type to "text/html". Only in the WMS feature info output is "text/plain" used (appropriately). There may be a source code problem but at first glance I don't see it. I'd need example headers to debug it. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Thomas, Cord" 10/29/02 01:39PM >>> Armando I have asked on this list before about CGI headers too. Though, i am working on Linux/Resin combination - I have a similar HTTP header problem. My problem is that i believe the mapserver is replying with a content-type of text, not html - which screws up a mozilla browser. Any way we can get a debug of the http header? Cord -----Original Message----- From: Armando Scalise [mailto:AScalise at geovue.com] Sent: Tuesday, October 29, 2002 10:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] CGI Error I am trying to install MS in a new machine, and I am getting the following error: CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers. Is this an error related to MS? or th IIS? Any hints as to where I should look at??? Cheers Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From AScalise at geovue.com Tue Oct 29 14:17:19 2002 From: AScalise at geovue.com (Armando Scalise) Date: Tue, 29 Oct 2002 17:17:19 -0500 Subject: [mapserver-users] Indexing Shape files In-Reply-To: Message-ID: Hi Steve. Thanks for your help. We are still experimenting with this feature. We do, indeed, want to create a single Tile file for hanlding GDT data. We can see that one single file provides a lot of advantages from a manteinance and administrative standpoint. However, are there any performance trade-offs in having a very large Tile file for the whole US, as compared to inidividual tile fiels for each state? Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Steve Lime Sent: Tuesday, October 29, 2002 2:26 PM To: Chip.Hankley at GASAI.Com; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Indexing Shape files As an aside, actually sometimes you might use the DATA line. MapServer tiles can be used to store: 1) tiles with totally unique files names or 2) tiles with identical shapefile names but different directories In the latter case you might store just the directory name in TILEITEM and the shapefile name in DATA. The two then get merged to create a full file name. This allows you to get away with a single TILEITEM for multiple layers which can be a big deal with datasets like GDT roads... Steve >>> "Hankley, Chip" 10/29/02 10:58AM >>> Armando - When you're using a TILEINDEX, you don't need a DATA line... the TILEINDEX line IS the data line. Here's an example - LAYER NAME "LANDCOVER" MAXSCALE 500000 MAXSCALE 500000 STATUS OFF TILEINDEX "Raster\lc_tile" TILEITEM "Location" TYPE RASTER OFFSITE 0 END In this case, TILEINDEX is the path (relative to the mapfile's SHAPEPATH) to the indexing shapefile, and TILEITEM is the field name in the index shapefile that points to the individual tile data sources (in this case images). HTH. Chip From tpcolson at nexussoft.com Tue Oct 29 15:31:46 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 29 Oct 2002 18:31:46 -0500 Subject: [mapserver-users] Newbie: Convert GIF to PNG Message-ID: <8A13872FF821F4488B4A629647DC0C71023F59@mailman.nexussoft.com> How to do this for the "demo" data? Word on the street is that If I send this request, someone will send me the converted images? Thanks From DMartin at erac.com Tue Oct 29 15:36:11 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 29 Oct 2002 17:36:11 -0600 Subject: [mapserver-users] CGI Error Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3AF@STL-EXBE-I03.corp.erac.com> Cord, When I had the problem, it was entirely random and nearly impossible to reproduce. But it sounds like your problem is constant. Does your problem happen every call to the CGI? -Dan > -----Original Message----- > From: Thomas, Cord [mailto:cthomas at rand.org] > Sent: Tuesday, October 29, 2002 3:53 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] CGI Error > > > Steve > > I saw the source too, but not being familiar with CGI > dynamics, i am not > sure where to look for the cause. DAn Martin has helped a > bit, but i am > still without an answer. > > Two questions - > 1 - i noted that the setting "Content-type" is not the same > case as many of > the content-type statements i have seen in other sources. i > wonder if this > might be a problem? i do not know if the standards are > specific on this. > 2 - is there a diagram explaining what happens/what the path > of execution > is for mapserv binary. i understand the .map file is a > template/configuration for the mapserver, but, being new to > the cgi process, > i am not sure the path of execution - which would help me debug this > problem: > client request -> web server -> cgi process -> process > request -> web > server -> client > > in that path - how does the .map file fit in with say the > remaining html > files? > > Cord > > -----Original Message----- > From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Tuesday, October 29, 2002 12:53 PM > To: mapserver-users at lists.gis.umn.edu; cthomas at rand.org > Subject: RE: [mapserver-users] CGI Error > > > You could use a perl script and the lwp module to get output (headers > and all) from MapServer. You could also write a wrapper script in > whatever language that sets the appropriate environment variables for > mapserv and the executes it. > > In checking the source code MapServer always sets output mime type to > "text/html". Only in the WMS feature info output is "text/plain" used > (appropriately). There may be a source code problem but at > first glance > I don't see it. I'd need example headers to debug it. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Thomas, Cord" 10/29/02 01:39PM >>> > Armando > > I have asked on this list before about CGI headers too. > > Though, i am working on Linux/Resin combination - I have a similar > HTTP > header problem. My problem is that i believe the mapserver > is replying > with > a content-type of text, not html - which screws up a mozilla browser. > > Any way we can get a debug of the http header? > > Cord > > -----Original Message----- > From: Armando Scalise [mailto:AScalise at geovue.com] > Sent: Tuesday, October 29, 2002 10:52 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] CGI Error > > > I am trying to install MS in a new machine, and I am getting the > following > error: > > CGI Error. > The specified CGI application misbehaved by not returning a complete > set of > HTTP headers. > > Is this an error related to MS? or th IIS? Any hints as to where I > should > look at??? > > Cheers > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com > From pkishor at GeoAnalytics.com Tue Oct 29 15:36:13 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 29 Oct 2002 17:36:13 -0600 Subject: [mapserver-users] getAllLayerNames not working Message-ID: folks, I upgraded a sweetly working ms 3.5 to ms 3.6.3 and now things are not working very well. One symptom is that getAllLayerNames() returns nothing at all. In fact, so much so, everything quits but without any error messages! The html output simply gets trunctated... nothing more is generated past that function. Other, previously happy methods such as returning the extent simply return 0. My feeling is that maybe my php_mapscript.so is corrupt (or funky in some other way). However, simple calls like $mapObj->name return the name just fine. $mapObj->shapepath returned nothing at all (of course, it is set) Is there a place I can look for errors? I turned error logging on in php.ini, and even set an error log filename, but nothing is generated. Is there a way I can determine that I have a kosher version of php_mapscript.so? Is there is something obvious that I am overlooking? I compiled 3.6.3 against php 4.1.2 (as a cgi) running on Apache 2.0.43. Perl/mapscript is working fine, and php by itself is working fine. tia, pk. From woodbri at swoodbridge.com Tue Oct 29 17:19:32 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 29 Oct 2002 20:19:32 -0500 Subject: [mapserver-users] Installing php on RH 7.3 Message-ID: <3DBEED54.29617.245763C@localhost> Hi all, I need some help on this guys. I am trying to install Mapserver on RH 7.3 and while I can get the mapserver build and install, I can not get PHP to work as a CGI so I can run mapscript. I have built it as a CGI and installed it in the cgi-bin directory and configured httpd.conf to run .php and .phtml files via /cgi- bin/php, but when I try to run any php file I get the following error: Parse error: parse error, unexpected T_STRING in /var/www/cgi-bin/php on line 4397 So it looks like php is trying to load /var/www/cgi-bin/php as the text file to parse and execute. On RH 7.3, I have uninstalled the PHP rpms, I have manually built apache and installed it over the rpm version, I have commented out all php related lines in the apache config so I only have: AddType php-script .php .phtml AddHandler php-script /cgi-bin/php and restarted apache and I continue to get the same error above! I could really use some help on this. Thanks, -Steve W. From Antti.Roppola at brs.gov.au Tue Oct 29 17:29:43 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 30 Oct 2002 12:29:43 +1100 Subject: [mapserver-users] PHP/Mapscript - globally manipulating layer status? Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FA6E@ACTMAIL2> Hello all, When rendering a key, I want to consider map layers on a case-by-case basis so I can insert text between key elements. However, before I can do this I need to set every layer in the map to "off" before I can switched them on individually: for($n=0; $n<$num_layers; $n++) { $layer=$map->getLayer($n); $layer->set("status",0); } Instead of all this looping, is it possible to globally switch the status of every layer? Say: $map->set("layer[]->status",0); Or even better, apply the same operation to an arbitrary set: map->set("layer[$selected_layers]->status",1); Cheers, Antti From woodbri at swoodbridge.com Tue Oct 29 19:03:34 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 29 Oct 2002 22:03:34 -0500 Subject: [mapserver-users] Installing php on RH 7.3 In-Reply-To: <1035946662.17597.136.camel@smp.training4linux.com> References: <3DBEED54.29617.245763C@localhost> Message-ID: <3DBF05B6.16926.2A4B4E9@localhost> Jonathon, Thanks, good suggestion, but that is not the problem. I get the same line number if I am trying to run a 3 line script or a 100 line script. and if I manually run it like /var/www/cgi-bin/php -f /var/www/html/info.php it runs just fine without any errors. The error is because apache is asking php to interpret the /var/www/cgi-bin/php executable and not the php script. The original apache had php installed as a module, but I'm pretty sure that I have disabled that by commenting out everything in the /etc/httpd/conf/httpd.conf file but the two line I want for cgi But I have obviously run into a bug, config problem, or more likely I just brain dead! You are right on that the missing semicolon will cause that under normal conditions, but .... I don't think that is my case. I wish it was so easy. The problem with being able to help most people with their problems is that when I run into one it's usually a real doozy! -Stephen On 30 Oct 2002 at 13:57, Jonathon Coombes wrote: > On Wed, 2002-10-30 at 12:19, woodbri at swoodbridge.com wrote: > > Hi all, > > > > I need some help on this guys. I am trying to install Mapserver on > > RH 7.3 and while I can get the mapserver build and install, I can > > not get PHP to work as a CGI so I can run mapscript. > > > > I have built it as a CGI and installed it in the cgi-bin directory > > and configured httpd.conf to run .php and .phtml files via /cgi- > > bin/php, but when I try to run any php file I get the following > > error: > > > > Parse error: parse error, unexpected T_STRING in > > /var/www/cgi-bin/php on line 4397 > > Hi Steve, > > The most common cause I have seen for this error is that you have left > out a semi-colon to close the line, or some similar syntax error. > > Regards, > Jonathon > > From woodbri at swoodbridge.com Tue Oct 29 19:10:28 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 29 Oct 2002 22:10:28 -0500 Subject: [mapserver-users] Installing php on RH 7.3 In-Reply-To: <3DBF4564.2080500@nacse.org> Message-ID: <3DBF0754.12484.2AB0904@localhost> Dylan, Thanks, I type this configuration also, but I have multiple extension on the AddType line. I will try putting them on separate lines in the morning when I have access to the server again. -Stephen On 29 Oct 2002 at 18:35, Dylan Keon wrote: > Steve, > > Here are the relevant lines from my httpd.conf. Different than yours, > so you might give them a try. Note that I have the AddHandler line > commented out in my httpd.conf, and have NO "AddType php-script" lines > configured. > > AddType application/x-httpd-php .php > AddType application/x-httpd-php .php3 > AddType application/x-httpd-php .phtml > AddType application/x-httpd-php-source .phps > > Action application/x-httpd-php /cgi-bin/php > > HTH, > --Dylan > > > > > woodbri at swoodbridge.com wrote: > > Hi all, > > > > I need some help on this guys. I am trying to install Mapserver on > > RH 7.3 and while I can get the mapserver build and install, I can > > not get PHP to work as a CGI so I can run mapscript. > > > > I have built it as a CGI and installed it in the cgi-bin directory > > and configured httpd.conf to run .php and .phtml files via /cgi- > > bin/php, but when I try to run any php file I get the following > > error: > > > > Parse error: parse error, unexpected T_STRING in > > /var/www/cgi-bin/php on line 4397 > > > > So it looks like php is trying to load /var/www/cgi-bin/php as the > > text file to parse and execute. > > > > On RH 7.3, I have uninstalled the PHP rpms, I have manually built > > apache and installed it over the rpm version, I have commented out > > all php related lines in the apache config so I only have: > > > > AddType php-script .php .phtml > > AddHandler php-script /cgi-bin/php > > > > and restarted apache and I continue to get the same error above! > > > > I could really use some help on this. > > > > Thanks, > > -Steve W. > > From ian at geography.leeds.ac.uk Wed Oct 30 02:26:26 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Wed, 30 Oct 2002 10:26:26 +0000 Subject: [mapserver-users] WMS Client? In-Reply-To: <8AE17DD6AA4FD51191CD0002A5511681074BA4@s5-van1-r1.nrn.nrca n.gc.ca> Message-ID: <5.1.0.14.0.20021030102430.030e52b8@geog.leeds.ac.uk> At 08:24 PM 29/10/2002, Van Ulden, Joost wrote: >Hello all, > >I have some questions about the WMS Client capabilities of MapServer. Is it >possible to create a map from both local and remote files. It was my >understanding that this was possible however I have been unsuccessful. I >get the following error when trying to load a remote layer: >msDrawRasterLayer(): Unable to access file. chdir() > >Does anyone have a sample mapfile that does this? Any suggestions? Here's how we do it. # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4269" END WEB IMAGEPATH /home/karl/ccgweb/Web/tmp/ # LOG /home/karl/ccgweb/Web/ian/wms.log METADATA "wms_title" "CCG demo WMS" "wms_onloneresource" "http://www.ccg.leeds.ac.uk/cgi-bin/wms?" "wms_srs" "EPSG:4269 EPSG:4326 EPSG:27700" END END ## ## Start of layer definitions ## # LAYER NAME demis METADATA "wms_title" "Demis" "wms_srs" "EPSG:4326" "wms_boundingbox" "epsg:4326 -180 -90 180 90" "wms_latlonboundingbox" "-180 -90 180 90" wms_extent "-180 -90 180 90" "wms_opaque" "true" "wms_abstract" "Simple basemap from Demis (http://www2.demis.nl)." "wms_connectiontimeout" "5000" END TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://www2.demis.nl/mapserver/request.asp?WMTVER=1.0.0&LAYERS=Countries,Topography,Hillshading,Coastlines,Rivers,Streams,Waterbodies&STYLES=&FORMAT=png&BGCOLOR=0xFFFFFF&EXCEPTIONS=INIMAGE" END LAYER NAME NIMA_color METADATA "wms_title" "color:NIMA-DTED0" "wms_srs" "EPSG:4269" "wms_boundingbox" "epsg:4269 -180 -90 180 90" "wms_latlonboundingbox" "-180 -90 180 90" wms_extent "-180 -90 180 90" "wms_abstract" "Simple basemap from cubewerx (http://www.cubewerx.com/)." "wms_opaque" "true" END TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://www.cubewerx.com/demo/cubeserv/cubeserv.cgi?request=map&WMTVER=1.0.0&LAYERS=color:NIMA-DTED0&STYLES=&FORMAT=PNG&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=INIMAGE" END LAYER NAME etopo5 METADATA "wms_title" "Elevation/Bathymetry" "wms_srs" "EPSG:4269" "wms_boundingbox" "epsg:4269 -180 -90 180 90" "wms_latlonboundingbox" "-180 -90 180 90" wms_extent "-180 -90 180 90" "wms_opaque" "true" "wms_abstract" "Etopo5 foundation from cubwerx (http://usl.cubewerx.com)." END TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://usl.cubewerx.com/gfst/cubeserv/cubeserv.cgi?request=map&WMTVER=1.0.0&LAYERS=ETOPO5:Foundation&STYLES=&FORMAT=PNG&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=INIMAGE" END LAYER name world data world.png type raster status off projection "init=epsg:4326" END METADATA wms_title world wms_extent "-180 -90 180 90" END END >Thank you in advance. > >================================= >Joost van Ulden >Programmer/Analyst >Geological Survey of Canada, Pacific Division >101-605 Robson Street >Vancouver, BC V6B 5J3 >ph 604.666.7525 >fax 604.666.1124 >msn jvanulde at nrcan.gc.ca >================================= >"Anyone who has lost track of time when using a computer knows the >propensity to dream, the urge to make dreams come true and the tendency to >miss lunch." - Tim Berners-Lee Ian Turton, Director, Centre for Computational Geography, University of Leeds, Leeds, LS2 9JT http://www.geog.leeds.ac.uk/people/i.turton http://www.ccg.leeds.ac.uk http://www.geotools.org +44 (0) 113 343 3392 fax: +44 (0) 113 343 3308 From tpcolson at nexussoft.com Wed Oct 30 04:23:57 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Wed, 30 Oct 2002 07:23:57 -0500 Subject: [mapserver-users] Gif to PNG Message-ID: <8A13872FF821F4488B4A629647DC0C71023F5B@mailman.nexussoft.com> How to do this for the "demo" data? Word on the street is that If I send this request, someone will send me the converted images? Thanks From jimmy at deefa.com Wed Oct 30 04:39:20 2002 From: jimmy at deefa.com (James Healy) Date: 30 Oct 2002 23:39:20 +1100 Subject: [mapserver-users] Caching Message-ID: <1035981562.303.6.camel@jimmy> This is probably a little silly, but i thought i vaguly remember hearing something about it... Does mapserver perform any sort of caching on commonly requested queries? ie. same extents, same features + layers on, etc etc. Processing time can add up, and it would be cool if it did. Otherwise... do others have a manual system in place to cache common maps? what is it? thanks! James -- ****************************************************** "Before you criticise someone, you should walk a mile in their shoes. That way, when you criticise them, you're a mile away and you have their shoes. " work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ****************************************************** From morissette at dmsolutions.ca Wed Oct 30 06:46:19 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 Oct 2002 09:46:19 -0500 Subject: [mapserver-users] PHP/Mapscript - globally manipulating layer status? References: <4D6E6CCBC9CED61192720060B06B3DD7C3FA6E@ACTMAIL2> Message-ID: <3DBFF0BB.BC4E3C49@dmsolutions.ca> The loop on all layers is the only way to switch the status of all layers. There is no other trick available at the moment. Daniel Antti.Roppola at brs.gov.au wrote: > > Hello all, > > When rendering a key, I want to consider map layers > on a case-by-case basis so I can insert text between > key elements. > > However, before I can do this I need to set every layer > in the map to "off" before I can switched them on individually: > > for($n=0; $n<$num_layers; $n++) { > $layer=$map->getLayer($n); > $layer->set("status",0); > } > > Instead of all this looping, is it possible to globally switch > the status of every layer? Say: > > $map->set("layer[]->status",0); > > Or even better, apply the same operation to an arbitrary set: > > map->set("layer[$selected_layers]->status",1); > > Cheers, > > Antti From pkishor at geoanalytics.com Wed Oct 30 07:29:23 2002 From: pkishor at geoanalytics.com (Puneet Kishor) Date: Wed, 30 Oct 2002 09:29:23 -0600 Subject: [mapserver-users] php_mapscript 363 not working properly (was Re: getAllLayerNames not working) In-Reply-To: Message-ID: <5E37B346-EC1C-11D6-824E-0003936306C2@geoanalytics.com> I haven't yet recd. any suggestions on this, but have further info that might help some gooroo diagnose this for me. It gets curiouser and curiouser... If I do $mapObj->numlayers I get the correct answer (11 in this case). If I do $layerObj = $mapObj->getLayer(0) and then I do $layerObj->name I get the correct name (parcels in this case). However, $mapObj->getLayer(1) or any number thereafter just does not work. Nothing is returned. Keep in mind, nothing has changed in the project, the mapfile, the scripts, etc. All I have done is compiled the new php_mapscript (version 3.6.3). Could anyone please suggest what steps I could undertake to debug this. Many thanks in advance. Puneet. On Tuesday, October 29, 2002, at 05:36 PM, Puneet Kishor wrote: > folks, > > I upgraded a sweetly working ms 3.5 to ms 3.6.3 and now things are not > working very well. One symptom is that getAllLayerNames() returns > nothing at all. In fact, so much so, everything quits but without any > error messages! The html output simply gets trunctated... nothing more > is generated past that function. Other, previously happy methods such > as > returning the extent simply return 0. > > My feeling is that maybe my php_mapscript.so is corrupt (or funky in > some other way). However, simple calls like $mapObj->name return the > name just fine. $mapObj->shapepath returned nothing at all (of course, > it is set) > > Is there a place I can look for errors? I turned error logging on in > php.ini, and even set an error log filename, but nothing is generated. > Is there a way I can determine that I have a kosher version of > php_mapscript.so? > > Is there is something obvious that I am overlooking? I compiled 3.6.3 > against php 4.1.2 (as a cgi) running on Apache 2.0.43. Perl/mapscript > is > working fine, and php by itself is working fine. > > tia, > > pk. From krbaker at metacarta.com Wed Oct 30 07:43:42 2002 From: krbaker at metacarta.com (Keith Baker) Date: 30 Oct 2002 10:43:42 -0500 Subject: [mapserver-users] Big Maps Message-ID: <1035992623.16947.23.camel@mosor.internal.metacarta.com> Hi, I was wondering if people could point me in the direction of optimizing mapserver for large datasets. I am looking at doing the entire world in as much detail as I can find online. I am trying to decide between postgres, large shapefiles, and what seems to be a tiling index form the mapserver docs. I can A) Build Huge shapefiles and let mapserver deal (which it seems to do ok!) B) Build small tiles and build a postgress DB to feed mapserver C) Build small tiles and build this TILEINDEX Full filename for the index or tile definition for this layer. Similar to an ArcInfo library index, this shapefile contains polygon features for each tile. The item that contains the location of the tiled data is given using the TILEITEM parameter. If the DATA parameter contains a value then it is added to the end of the location. If DATA is empty then the location should contain the entire filename. What speed trade-offs will I see? Is there a Large-Map Howto somewhere? All I could find in the examples were small data sets compared to what I'm looking at... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From keon at nacse.org Wed Oct 30 07:42:22 2002 From: keon at nacse.org (Dylan Keon) Date: Wed, 30 Oct 2002 07:42:22 -0800 Subject: [mapserver-users] Gif to PNG References: <8A13872FF821F4488B4A629647DC0C71023F5B@mailman.nexussoft.com> Message-ID: <3DBFFDDE.6020603@nacse.org> Use the gif2png utility (www.tuxedo.org/~esr/gif2png). Might already be on your system if you're using Linux or another *nix flavor. Not sure if it will work on Windows. If not, check out Irfanview (www.irfanview.com) which is an awesome freeware image editing program that will do batch conversion. Thomas P. Colson wrote: > How to do this for the "demo" data? Word on the street is that If I send this request, someone will send me the converted images? > > Thanks > From AScalise at geovue.com Wed Oct 30 08:00:06 2002 From: AScalise at geovue.com (Armando Scalise) Date: Wed, 30 Oct 2002 11:00:06 -0500 Subject: [mapserver-users] Shp Indexes In-Reply-To: Message-ID: I have added and index file to one of my layers (a streets file for MA) but I do not see any perfomance gain I created the index using the sphtree.exe utility. Do I need to set any property in my .map file for the index to be used? Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From tpcolson at nexussoft.com Wed Oct 30 08:17:53 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Wed, 30 Oct 2002 11:17:53 -0500 Subject: [mapserver-users] Gif to PNG Message-ID: <8A13872FF821F4488B4A629647DC0C71023F5E@mailman.nexussoft.com> Thank you all for your help. At least I got SOMETHING working. Now on to PHP and WMS. -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, October 30, 2002 10:42 AM To: mapserver-users at lists.gis.umn.edu Cc: Thomas P. Colson Subject: Re: [mapserver-users] Gif to PNG Use the gif2png utility (www.tuxedo.org/~esr/gif2png). Might already be on your system if you're using Linux or another *nix flavor. Not sure if it will work on Windows. If not, check out Irfanview (www.irfanview.com) which is an awesome freeware image editing program that will do batch conversion. Thomas P. Colson wrote: > How to do this for the "demo" data? Word on the street is that If I send this request, someone will send me the converted images? > > Thanks > From jef.mony at free.fr Wed Oct 30 08:45:52 2002 From: jef.mony at free.fr (jef.mony at free.fr) Date: Wed, 30 Oct 2002 17:45:52 +0100 Subject: [mapserver-users] outline thickness Message-ID: <3DC01AD0.29087.122F422@localhost> Hi everybody, Is it possible to chose the thickness of the outline for a polygone layer ? In this case how ? Thanks. From hi-ono at mn.xdsl.ne.jp Wed Oct 30 09:43:51 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Thu, 31 Oct 2002 02:43:51 +0900 Subject: [mapserver-users] Can't load .... mapscript.so for module mapscript References: Message-ID: <001101c2803b$e8fe2230$650202c0@vip> Hello. I've seen some topics for Flash support by MapsERVER 3.7 in this mailing list. Is there any FLASH output example using this CVS version? Best Regards. From lfilak at medinaco.org Wed Oct 30 09:59:14 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 30 Oct 2002 12:59:14 -0500 Subject: [mapserver-users] Caching Message-ID: <200210301758.g9UHwOX20003@yogi.medinaco.net> FWIW: We currently do parcel mapping & when a specific parcel is queried we cache all of the image and report data for that parcel-id in files named after the id, ie. tmp/image/03817A11007.png & tmp/report/01317A11007.txt. Any later requests for the same data receive the cached copy instead of starting a new request. We have toyed with naming zoom-in/out requests using some combination of upper x,y & scale so they can be cached also but have not implemented it. Lowell F. The following message was sent by James Healy on 30 Oct 2002 23:39:20 +1100. > This is probably a little silly, but i thought i vaguly remember hearing > something about it... > > Does mapserver perform any sort of caching on commonly requested > queries? ie. same extents, same features + layers on, etc etc. > Processing time can add up, and it would be cool if it did. > > Otherwise... do others have a manual system in place to cache common > maps? what is it? > > thanks! > > James > -- > ****************************************************** > "Before you criticise someone, you should walk a mile in their shoes. > That way, when you criticise them, you're a mile away and you have their > shoes. " > > work: worker at aycs.org.au / personal: jimmy at deefa.com > msn: jimmy at deefa.com / ICQ: 6370237 > web: www.deefa.com > ****************************************************** From daniel.berstein at dmapas.com Wed Oct 30 11:04:59 2002 From: daniel.berstein at dmapas.com (Daniel Berstein) Date: Wed, 30 Oct 2002 16:04:59 -0300 Subject: [mapserver-users] MapServer/MapScript neophite querstion Message-ID: <01C2802E.1A117D80.daniel.berstein@dmapas.com> Hi, I'm brand new to MapServer. I got MapServer up and running with SHP files in less than 15 minutes. Now I need a way to integrate information from a MySQL database, which has "Lat", "Lon", "Text" and "Angle" columns. Can someone please share a PHP Mapscript code snippet that dynamically creates a layer, and populates the map image with rows from the above table (insertion point at "Lat"/"Lon" with text "Text" at angle "Angle"). I would optimize the query for elements that fit into the current extent. Example: while ($row = mysql_fetch_object($result)) { } $image = $map->draw(); $image_url = $image->saveWebImage(MS_PNG,1,1,0); ?> TIA. Regards, Daniel Berstein Z. Jefe de Proyectos, dmapas.com Eduardo Hyatt 583, Providencia, Santiago CHILE *(56) (2) 222 22 60 From pkishor at GeoAnalytics.com Wed Oct 30 11:17:06 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 30 Oct 2002 13:17:06 -0600 Subject: [mapserver-users] msGetErrorObj (was RE: getAllLayerNames not working) Message-ID: ok... now I am getting somewhere. I get the following in my apache log. [Wed Oct 30 13:26:33 2002] [error] [client 192.168.1.35] /usr/local/apache2/cgi- bin/php: relocation error: /usr/local/lib/php/extensions/php_mapscript.so: undef ined symbol: msGetErrorObj anyone anyidea? thanks. > -----Original Message----- > From: Puneet Kishor > Sent: Tuesday, October 29, 2002 5:36 PM > To: mapserver-users at lists.gis.umn.edu > Subject: getAllLayerNames not working > > > folks, > > I upgraded a sweetly working ms 3.5 to ms 3.6.3 and now > things are not working very well. One symptom is that > getAllLayerNames() returns nothing at all. In fact, so much > so, everything quits but without any error messages! The html > output simply gets trunctated... nothing more is generated > past that function. Other, previously happy methods such as > returning the extent simply return 0. > > My feeling is that maybe my php_mapscript.so is corrupt (or > funky in some other way). However, simple calls like > $mapObj->name return the name just fine. $mapObj->shapepath > returned nothing at all (of course, it is set) > > Is there a place I can look for errors? I turned error > logging on in php.ini, and even set an error log filename, > but nothing is generated. Is there a way I can determine that > I have a kosher version of php_mapscript.so? > > Is there is something obvious that I am overlooking? I > compiled 3.6.3 against php 4.1.2 (as a cgi) running on Apache > 2.0.43. Perl/mapscript is working fine, and php by itself is > working fine. > > tia, > > pk. > From Michael.Soracco at noaa.gov Wed Oct 30 12:17:16 2002 From: Michael.Soracco at noaa.gov (Michael Soracco) Date: Wed, 30 Oct 2002 15:17:16 -0500 Subject: [mapserver-users] Defining Classes/Labels for contours Message-ID: <3DC03E4C.DC0F0A4@noaa.gov> I've checked the archives and didn't see anything on what I need to do. It's probably straightforward, but I haven't been able to figure it out... I have a Polyline shapefile where each polyline has a classified value (i.e. Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to draw the contours in different colors but have only succeeded in creating a Legend Class for each level. Is it possible to have graduated colors for the lines within the same Layer Object? LAYER NAME BATHY TYPE LINE STATUS OFF DATA bathy CLASSITEM "Contour" MAXSCALE 500000 CLASS NAME "0 - 5" EXPRESSION "(Contour >= 0 AND Contour <=5)" COLOR 200 0 0 END CLASS NAME "5 - 10" EXPRESSION "(Contour > 5 AND Contour <=10)" COLOR 0 200 0 END END Thanks in advance for the help. -- //// Michael Soracco SES, Inc. for NOAA/NESDIS at NOAA Science Center (WWB) 5200 Auth Road, Room 607 Camp Springs, MD 20746 Voice: 301.763.8142 x117 FAX: 301.763.8131 Michael.Soracco at noaa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpcolson at nexussoft.com Wed Oct 30 12:17:08 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Wed, 30 Oct 2002 15:17:08 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x Message-ID: <8A13872FF821F4488B4A629647DC0C71023F60@mailman.nexussoft.com> I see there's this handy little guied for getting mapserver running with PHP on RH 6x, http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html From tpcolson at nexussoft.com Wed Oct 30 12:18:32 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Wed, 30 Oct 2002 15:18:32 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x Message-ID: <8A13872FF821F4488B4A629647DC0C71023F61@mailman.nexussoft.com> I see there's this handy little guied for getting mapserver running with PHP on RH 6x, http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html Is there a similar guide out there for RH 7x? (7.3, specifically). Has anyone gotten Mapserver to compile/run on RH 7.3? If so, what libs did you have to install, in what order, etc? Thanks. Tom Colson From steve.lime at dnr.state.mn.us Wed Oct 30 12:22:05 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 30 Oct 2002 14:22:05 -0600 Subject: [mapserver-users] Shp Indexes Message-ID: Indexes are used automatically. What are you looking at though? Indexes only have a positive effect if you're looking at a portion of the shapefile. Steve >>> "Armando Scalise" 10/30/02 10:00AM >>> I have added and index file to one of my layers (a streets file for MA) but I do not see any perfomance gain I created the index using the sphtree.exe utility. Do I need to set any property in my .map file for the index to be used? Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From steve.lime at dnr.state.mn.us Wed Oct 30 12:23:07 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 30 Oct 2002 14:23:07 -0600 Subject: [mapserver-users] Gif to PNG Message-ID: The demo distributed via the website has both PNG and GIF versions of all graphics, or at least I thought it did. Steve >>> Dylan Keon 10/30/02 09:42AM >>> Use the gif2png utility (www.tuxedo.org/~esr/gif2png). Might already be on your system if you're using Linux or another *nix flavor. Not sure if it will work on Windows. If not, check out Irfanview (www.irfanview.com) which is an awesome freeware image editing program that will do batch conversion. Thomas P. Colson wrote: > How to do this for the "demo" data? Word on the street is that If I send this request, someone will send me the converted images? > > Thanks > From steve.lime at dnr.state.mn.us Wed Oct 30 12:25:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 30 Oct 2002 14:25:50 -0600 Subject: [mapserver-users] outline thickness Message-ID: The following should give you a red fill with a 3 pixel wide black outline. SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER ... CLASS COLOR 255 0 0 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYOUTLINESYMBOL 'circle' OVERLAYOUTLINESIZE 3 END END >>> 10/30/02 10:45AM >>> Hi everybody, Is it possible to chose the thickness of the outline for a polygone layer ? In this case how ? Thanks. From morissette at dmsolutions.ca Wed Oct 30 12:38:37 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 Oct 2002 15:38:37 -0500 Subject: [mapserver-users] msGetErrorObj (was RE: getAllLayerNames not working) References: Message-ID: <3DC0434D.FD5EE240@dmsolutions.ca> Puneet Kishor wrote: > > anyone anyidea? > See if you have an old /usr/local/lib/libmap.a, and if you do then delete it and rebuild php_mapscript.so -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From DMartin at erac.com Wed Oct 30 12:48:57 2002 From: DMartin at erac.com (Martin, Daniel) Date: Wed, 30 Oct 2002 14:48:57 -0600 Subject: [mapserver-users] outline thickness Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3B3@STL-EXBE-I03.corp.erac.com> The same as a thick line, you use circle symbols. CLASS SYMBOL 'circle' OUTLINECOLOR 0 0 0 SIZE 3 END > -----Original Message----- > From: jef.mony at free.fr [mailto:jef.mony at free.fr] > Sent: Wednesday, October 30, 2002 10:46 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] outline thickness > > > Hi everybody, > > Is it possible to chose the thickness of the outline for a > polygone layer ? > In this case how ? > > Thanks. > From tesimap at hotmail.com Wed Oct 30 13:14:44 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 30 Oct 2002 22:14:44 +0100 Subject: [mapserver-users] displaying layers Message-ID: Hi all, I have this two layer with raster images. LAYER NAME foto DATA "185160w.tif" TYPE RASTER MAXSCALE 50000 STATUS OFF END LAYER NAME foto1 DATA "185120w.tif" TYPE RASTER MAXSCALE 50000 STATUS OFF END I use PHP/Mapscript an this is the section where I set STATUS if it's choose with radio button in PHTML file. $outLayer = $outMap->getlayerbyname(foto); if ($HTTP_FORM_VARS["foto"]) $outLayer->set("status", 1); else $outLayer->set("status", 0); $outLayer = $outMap->getlayerbyname(foto1); if ($HTTP_FORM_VARS["foto1"]) $outLayer->set("status", 1); else $outLayer->set("status", 0); And this is function taht return if layer is choose or not with radio button in a PHTML file. function GetStatus($szLayerName) { GLOBAL $outMap; $outLayer = $outMap->getlayerbyname($LayerName); $nStatus = $outLayer->status; return ($nStatus); } This method is very similar that used in Gmap demo. So I have a radio button for each layer, but I want an only for each. I can use GROUP in map file and GetLayersIndexByGroup, but I have a problem. Any suggestion? Ivan _________________________________________________________________ Comunica in un ?altra dimensione con MSN Extra Storage! http://www.msn.it/msnservizi/es/ From pkishor at GeoAnalytics.com Wed Oct 30 13:20:01 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 30 Oct 2002 15:20:01 -0600 Subject: [mapserver-users] php_mapscript 363 not working properly (was Re: getAllLayerNames not working) Message-ID: Thanks Gentlemen, That was it. You saved me from wasting another full day. There was a libmap.a under /usr/local/lib. Deleting it, and rebuilding mapserver did the trick. My graticule to you. Puneet. > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Subject: Re: [mapserver-users] php_mapscript 363 not working properly > (was Re: getAllLayerNames not working) > > > > Puneet, > > I had this problem very early in my mapserver experience and > if I remember correctly, the issue was a build problem. Maybe > you did a make install on the last version and have a > libmap.a in /usr/lib or /usr/local/lib if so delete it and > NEVER DO make install of Mapserver! Then rebuild mapserver > and mapscript can copy the files appropriately. > > -Steve W. > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: Re: [mapserver-users] msGetErrorObj (was RE: getAllLayerNames > not working) > > > Puneet Kishor wrote: > > > > anyone anyidea? > > > > See if you have an old /usr/local/lib/libmap.a, and if you do then > delete it and rebuild php_mapscript.so > Puneet Kishor wrote: > > > > I haven't yet recd. any suggestions on this, but have > further info that > > might help some gooroo diagnose this for me. It gets curiouser and > > curiouser... > > > > If I do $mapObj->numlayers I get the correct answer (11 in > this case). > > If I do $layerObj = $mapObj->getLayer(0) and then > > I do $layerObj->name I get the correct name (parcels in > this case). > > However, $mapObj->getLayer(1) or any number thereafter just > does not > > work. Nothing is returned. > > > > Keep in mind, nothing has changed in the project, the mapfile, the > > scripts, etc. All I have done is compiled the new php_mapscript > > (version 3.6.3). > > > > Could anyone please suggest what steps I could undertake to > debug this. > > > > Many thanks in advance. > > > > Puneet. > > > > On Tuesday, October 29, 2002, at 05:36 PM, Puneet Kishor wrote: > > > > > folks, > > > > > > I upgraded a sweetly working ms 3.5 to ms 3.6.3 and now > things are not > > > working very well. One symptom is that getAllLayerNames() returns > > > nothing at all. In fact, so much so, everything quits but > without any > > > error messages! The html output simply gets trunctated... > nothing more > > > is generated past that function. Other, previously happy > methods such > > > as > > > returning the extent simply return 0. > > > > > > My feeling is that maybe my php_mapscript.so is corrupt > (or funky in > > > some other way). However, simple calls like $mapObj->name > return the > > > name just fine. $mapObj->shapepath returned nothing at > all (of course, > > > it is set) > > > > > > Is there a place I can look for errors? I turned error > logging on in > > > php.ini, and even set an error log filename, but nothing > is generated. > > > Is there a way I can determine that I have a kosher version of > > > php_mapscript.so? > > > > > > Is there is something obvious that I am overlooking? I > compiled 3.6.3 > > > against php 4.1.2 (as a cgi) running on Apache 2.0.43. > Perl/mapscript > > > is > > > working fine, and php by itself is working fine. > > > > > > tia, > > > > > > pk. > From spencer at dmsolutions.ca Wed Oct 30 13:24:10 2002 From: spencer at dmsolutions.ca (Paul Spencer) Date: Wed, 30 Oct 2002 16:24:10 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x References: <8A13872FF821F4488B4A629647DC0C71023F61@mailman.nexussoft.com> Message-ID: <3DC04DFA.2010306@dmsolutions.ca> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 contains these instructions, I updated them for RH7.3 (the title is misleading, sorry) some time ago. Cheers, Paul Thomas P. Colson wrote: > > > I see there's this handy little guied for getting mapserver running with PHP on RH 6x, > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html > http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html > > > Is there a similar guide out there for RH 7x? (7.3, specifically). Has anyone gotten Mapserver to compile/run on RH 7.3? If so, what libs did you have to install, in what order, etc? Thanks. > > > > Tom Colson > > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From morissette at dmsolutions.ca Wed Oct 30 14:04:28 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 Oct 2002 17:04:28 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x References: <8A13872FF821F4488B4A629647DC0C71023F61@mailman.nexussoft.com> Message-ID: <3DC0576C.75105E83@dmsolutions.ca> There are some instructions for RedHat 7.2 in the MapServer Wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 They're not completely up to date, but should help you get started. Daniel "Thomas P. Colson" wrote: > > I see there's this handy little guied for getting mapserver running with PHP on RH 6x, > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html > http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html > > Is there a similar guide out there for RH 7x? (7.3, specifically). Has anyone gotten Mapserver to compile/run on RH 7.3? If so, what libs did you have to install, in what order, etc? Thanks. > > Tom Colson From morissette at dmsolutions.ca Wed Oct 30 14:19:21 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 30 Oct 2002 17:19:21 -0500 Subject: [mapserver-users] WMS Client? References: <8AE17DD6AA4FD51191CD0002A5511681074BA4@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <3DC05AE9.E5FDF996@dmsolutions.ca> "Van Ulden, Joost" wrote: > > I have some questions about the WMS Client capabilities of MapServer. Is it > possible to create a map from both local and remote files. It was my > understanding that this was possible however I have been unsuccessful. I > get the following error when trying to load a remote layer: > msDrawRasterLayer(): Unable to access file. chdir() > It is definitely possible to combine local data and WMS layers in a single mapfile. We do that a lot. About the error you get, the only reason I can see that would explain it would be if your mapfile contained an empty SHAPEPATH value, e.g.: SHAPEPATH "" If that's the case, then you should either set SHAPEPATH to a valid value or not set it at all. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pkishor at GeoAnalytics.com Wed Oct 30 14:59:23 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 30 Oct 2002 16:59:23 -0600 Subject: [mapserver-users] mapserver example application Message-ID: Friends, I have a mapserver/php/mapscript/mysql application available to the list for public viewing consumption at http://209.83.8.226/p/php/index.php please log in as 'public' using the password 'public' (no quotes, of course). Please note, the application was done for a client who have graciously allowed me to show the application to the mapserver list. Some data have been obfuscated. (I have tried to obfuscate the client's name from the application as well, however, I might have missed some places (I'm not good at this stuff)... so, if you discover their identity...) Please respect their privacy by not sending them any questions in this regard. Direct them to me instead. The server is an aging computer, so it may be down on occassion. I will try to keep it going as much as I can. The application works only with IE (on Win or Mac) because of heavy use of dhtml. I would like to enhance the app to work with Mozilla, but that will be in time. The code for the application is very complicated and messy, but if there is interest I will be happy to share specific snippets reformatted for general consumption. Just let me know. Please send your comments, gripes, bug reports, feedback to me. Your feedback would be very welcome and appreciated. Many thanks, Puneet. ========== Things to note... You will a tabbed interface with three tabs. The default tab will be "Map". If you search, the results will be shown in the "Search Results" tab which will become default (however, you won't be able to search because you don't know what to search for... you can try a few address searches). The search box is designed to take names, tax ids, or street addresses, and uses my acme regexp mechanism to automagically figure out what you want to search for... anyway... try a few addresses (once you zoom in you should be able to see street names). The legend and the layer controls are shown in the "Legends" tab. There is an option to save a map you are viewing, and you can later retrieve the map. There is also an option to build a map for printing purpose. From pkishor at GeoAnalytics.com Wed Oct 30 15:03:45 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 30 Oct 2002 17:03:45 -0600 Subject: [mapserver-users] Defining Classes/Labels for contours Message-ID: there is no mechanism for creating graduated colors for a feature based on class ranges. What you have done is correct. If you don't want the legends to be created, just take out the NAME line from within the CLASS definitions. Hth. Pk/ -----Original Message----- From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] Sent: Wednesday, October 30, 2002 2:17 PM To: mapserver Subject: [mapserver-users] Defining Classes/Labels for contours I've checked the archives and didn't see anything on what I need to do. It's probably straightforward, but I haven't been able to figure it out... I have a Polyline shapefile where each polyline has a classified value (i.e. Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to draw the contours in different colors but have only succeeded in creating a Legend Class for each level. Is it possible to have graduated colors for the lines within the same Layer Object? LAYER NAME BATHY TYPE LINE STATUS OFF DATA bathy CLASSITEM "Contour" MAXSCALE 500000 CLASS NAME "0 - 5" EXPRESSION "(Contour >= 0 AND Contour <=5)" COLOR 200 0 0 END CLASS NAME "5 - 10" EXPRESSION "(Contour > 5 AND Contour <=10)" COLOR 0 200 0 END END Thanks in advance for the help. -- //// Michael Soracco SES, Inc. for NOAA/NESDIS at NOAA Science Center (WWB) 5200 Auth Road, Room 607 Camp Springs, MD 20746 Voice: 301.763.8142 x117 FAX: 301.763.8131 Michael.Soracco at noaa.gov From Antti.Roppola at brs.gov.au Wed Oct 30 21:04:05 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 31 Oct 2002 16:04:05 +1100 Subject: [mapserver-users] An example Mapserver application Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FA7F@ACTMAIL2> Hello all, We are in the process of putting the finishing touches on our first Mapserver application using MS 3.6 and PHP/Mapscript, but it's looking respectable enough to post a URL to the list: http://data.brs.gov.au/mapserv/plant/index.phtml Notable features include: - Extensive use of PHP - PDF map generation - All map specific elements are generated from the map file - Database integration - Some quite large rasters that wouldn't work without GDAL - Quite nice integration of spatial content into non-GIS parts of the site - Debian based - Vanilla HTML should work on most browsers The important snippets of of code for generating the UI and PDFs should be in the mailing list archives. See the Wiki for my instructions on installing PHP/Mapscript on a Debian box. Enjoy, Antti From vincenzo.patruno at istat.it Thu Oct 31 03:07:14 2002 From: vincenzo.patruno at istat.it (Vincenzo Patruno) Date: Thu, 31 Oct 2002 11:07:14 -0000 Subject: [mapserver-users] PHP mapscript compiling References: <02da01c27f65$e7bdb830$492d120a@istat.it> <3DBEBB15.6456B16E@dmsolutions.ca> Message-ID: <001e01c280cd$ab9e1430$492d120a@istat.it> I've tried to compile again mapserver/mapscript using your configure script (mapserver-configure-37-dev-20021029) but the result is the same. This is the new header of Makefile under mapscript/php3 CC = gcc LD = /bin/true CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 RUNPATHS= ... Could you suggest me what should be the right configuration? Thanks again for any suggestion Vincenzo ----- Original Message ----- From: "Daniel Morissette" To: "Vincenzo Patruno" Cc: Sent: Tuesday, October 29, 2002 4:45 PM Subject: Re: [mapserver-users] PHP mapscript compiling > Vincenzo Patruno wrote: > > > > Then I changed strategy! > > > > I installed the nightly version, and in this case I compiled everything without any problem. > > The problem is that the system doesn't create the file php_mapscript.so. > > > > Also in this case I opened the Makefile under mapscript/php3 and this is the first part of the file > > > > CC = gcc > > LD = /bin/true > > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > > RUNPATHS= -L/usr/local/lib -L/lib -L/usr/lpp/apachessl/sorgenti/mapserver_dev > > > > Any suggestion? > > > > Thanks in advance > > Vincenzo > > > I committed a new configure script to the 3.7-dev CVS. Can you please > try it and see if it works better? > > If you're not setup with CVS then you can download > http://www2.dmsolutions.ca/tmp/mapserver-configure-37dev-20021029.tar.gz > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ From tpcolson at nexussoft.com Thu Oct 31 03:46:57 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Thu, 31 Oct 2002 06:46:57 -0500 Subject: [mapserver-users] An example Mapserver application Message-ID: <8A13872FF821F4488B4A629647DC0C71023F62@mailman.nexussoft.com> What platform/version/libraries are you using? -----Original Message----- From: Antti.Roppola at brs.gov.au [mailto:Antti.Roppola at brs.gov.au] Sent: Thursday, October 31, 2002 12:04 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] An example Mapserver application Hello all, We are in the process of putting the finishing touches on our first Mapserver application using MS 3.6 and PHP/Mapscript, but it's looking respectable enough to post a URL to the list: http://data.brs.gov.au/mapserv/plant/index.phtml Notable features include: - Extensive use of PHP - PDF map generation - All map specific elements are generated from the map file - Database integration - Some quite large rasters that wouldn't work without GDAL - Quite nice integration of spatial content into non-GIS parts of the site - Debian based - Vanilla HTML should work on most browsers The important snippets of of code for generating the UI and PDFs should be in the mailing list archives. See the Wiki for my instructions on installing PHP/Mapscript on a Debian box. Enjoy, Antti From pkishor at GeoAnalytics.com Thu Oct 31 06:31:08 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 31 Oct 2002 08:31:08 -0600 Subject: [mapserver-users] Defining Classes/Labels for contours Message-ID: No, you don't need to create a new shapefile. As I said, the logic of what you are doing is correct... there must be something wrong with your expressions... make sure the field name (Contour) is correct, make it caps (I think selection might be case-sensitive...) you might have to enclose it in square brackets/and or quotes... I am talking from the top of my head... checks the docs or the wiki. There are specific examples. Your logic is correct. Most likely your expression is wrong. Puneet. PS. Please reply to the entire list so others may help|behelped. Thanks. > -----Original Message----- > From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] > Sent: Thursday, October 31, 2002 7:13 AM > To: Puneet Kishor > Subject: Re: [mapserver-users] Defining Classes/Labels for contours > > > Although there is no mechanism for creating graduated colors, > should I be able > to display the "0-5" contour line as RED and the "5-10" as > GREEN ? The code > below results in NO contours being displayed, but just Legend > entries. Is this > what you mean by no mechanism? I.e. I need to create new > shapefiles for each > contour value. > > thanks. > > Puneet Kishor wrote: > > > there is no mechanism for creating graduated colors for a > feature based on > > class ranges. What you have done is correct. > > > > If you don't want the legends to be created, just take out > the NAME line > > from within the CLASS definitions. > > > > Hth. > > > > Pk/ > > > > -----Original Message----- > > From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] > > Sent: Wednesday, October 30, 2002 2:17 PM > > To: mapserver > > Subject: [mapserver-users] Defining Classes/Labels for contours > > > > I've checked the archives and didn't see anything on what I > need to do. > > It's probably straightforward, but I haven't been able to > figure it out... > > I have a Polyline shapefile where each polyline has a > classified value (i.e. > > Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to draw the > > contours in different colors but have only succeeded in > creating a Legend > > Class for each level. Is it possible to have graduated > colors for the lines > > within the same Layer Object? > > LAYER > > NAME BATHY > > TYPE LINE > > STATUS OFF > > DATA bathy > > CLASSITEM "Contour" > > MAXSCALE 500000 > > CLASS > > NAME "0 - 5" > > EXPRESSION "(Contour >= 0 AND Contour <=5)" > > COLOR 200 0 0 > > END > > CLASS > > NAME "5 - 10" > > EXPRESSION "(Contour > 5 AND Contour <=10)" > > COLOR 0 200 0 > > END > > END > > > > Thanks in advance for the help. > > -- > > //// > > Michael Soracco > > SES, Inc. for NOAA/NESDIS > > at NOAA Science Center (WWB) > > 5200 Auth Road, Room 607 > > Camp Springs, MD 20746 > > Voice: 301.763.8142 x117 > > FAX: 301.763.8131 > > Michael.Soracco at noaa.gov > > > > -- > //// > Michael Soracco > SES, Inc. for NOAA/NESDIS > at NOAA Science Center (WWB) > 5200 Auth Road, Room 607 > Camp Springs, MD 20746 > Voice: 301.763.8142 x117 > FAX: 301.763.8131 > Michael.Soracco at noaa.gov > > From morissette at dmsolutions.ca Thu Oct 31 06:57:23 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 31 Oct 2002 09:57:23 -0500 Subject: [mapserver-users] PHP mapscript compiling References: <02da01c27f65$e7bdb830$492d120a@istat.it> <3DBEBB15.6456B16E@dmsolutions.ca> <001e01c280cd$ab9e1430$492d120a@istat.it> Message-ID: <3DC144D3.38EE6A1B@dmsolutions.ca> Vincenzo Patruno wrote: > > I've tried to compile again mapserver/mapscript using your configure script (mapserver-configure-37-dev-20021029) but the result is > the same. > > This is the new header of Makefile under mapscript/php3 > > CC = gcc > LD = /bin/true > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > RUNPATHS= > > ... Could you suggest me what should be the right configuration? > Unfortunately I don't have access to an AIX system to test this... so I'm just guessing. One of the following may work on other systems, but they should have been tried already by the configure script so there must be something missing in them: LD= gcc -shared LD= ld -shared LD= ld -G Looking at the PHP configure (php-4.2.3/aclocal.m4), it seems that the AIX command to build shared libraries is a bit different from other systems, something in the following style: '$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ... so you'll either have to experiment with the linker, or perhaps try to get a recent copy of the GNU ld (newer than 2.9.1 since there were apparently problems before) installed on your system and make sure it is found by configure in your path before the system ld. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From tpcolson at nexussoft.com Thu Oct 31 07:56:40 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Thu, 31 Oct 2002 10:56:40 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x Message-ID: <8A13872FF821F4488B4A629647DC0C71023F66@mailman.nexussoft.com> Thanks for the link! Unfortunatly, I went ahead and did a fresh install of 7.3 before I read it...and got to the part about the manual php install. Finally managed to get the demo working, sans gif, using png instead. So....do I just re-install PHP, (Version 4.1.2 came with 7.3) or what levers do I need to pull to make mapscript work? Thanks. -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Wednesday, October 30, 2002 5:04 PM To: Thomas P. Colson Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x There are some instructions for RedHat 7.2 in the MapServer Wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 They're not completely up to date, but should help you get started. Daniel "Thomas P. Colson" wrote: > > I see there's this handy little guied for getting mapserver running with PHP on RH 6x, > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html > http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html > > Is there a similar guide out there for RH 7x? (7.3, specifically). Has anyone gotten Mapserver to compile/run on RH 7.3? If so, what libs did you have to install, in what order, etc? Thanks. > > Tom Colson From DMcGaughey at mail.ci.lubbock.tx.us Thu Oct 31 08:02:46 2002 From: DMcGaughey at mail.ci.lubbock.tx.us (David McGaughey) Date: Thu, 31 Oct 2002 10:02:46 -0600 Subject: [mapserver-users] Mapplet question Message-ID: Greetings! Sorry to always be a miner on this list, but I've a question about the mapplet. I put it on a page and all I get for the image is a grey box: http://maps.ci.lubbock.tx.us/test1.html Any ideas why I can't get the map to show-up? David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com From Michael.Soracco at noaa.gov Thu Oct 31 08:25:21 2002 From: Michael.Soracco at noaa.gov (Michael Soracco) Date: Thu, 31 Oct 2002 11:25:21 -0500 Subject: [mapserver-users] Defining Classes/Labels for contours References: Message-ID: <3DC15971.7636E877@noaa.gov> Yup, it was the syntax. For the archive's sake, it should look like: EXPRESSION ( ( [CONTOUR] >= 0 ) AND ( [CONTOUR] <5) ) Thanks again. -m Puneet Kishor wrote: > No, you don't need to create a new shapefile. As I said, the logic of what > you are doing is correct... there must be something wrong with your > expressions... make sure the field name (Contour) is correct, make it caps > (I think selection might be case-sensitive...) you might have to enclose it > in square brackets/and or quotes... I am talking from the top of my head... > checks the docs or the wiki. There are specific examples. > > Your logic is correct. Most likely your expression is wrong. > > Puneet. > > PS. Please reply to the entire list so others may help|behelped. Thanks. > > > -----Original Message----- > > From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] > > Sent: Thursday, October 31, 2002 7:13 AM > > To: Puneet Kishor > > Subject: Re: [mapserver-users] Defining Classes/Labels for contours > > > > > > Although there is no mechanism for creating graduated colors, > > should I be able > > to display the "0-5" contour line as RED and the "5-10" as > > GREEN ? The code > > below results in NO contours being displayed, but just Legend > > entries. Is this > > what you mean by no mechanism? I.e. I need to create new > > shapefiles for each > > contour value. > > > > thanks. > > > > Puneet Kishor wrote: > > > > > there is no mechanism for creating graduated colors for a > > feature based on > > > class ranges. What you have done is correct. > > > > > > If you don't want the legends to be created, just take out > > the NAME line > > > from within the CLASS definitions. > > > > > > Hth. > > > > > > Pk/ > > > > > > -----Original Message----- > > > From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] > > > Sent: Wednesday, October 30, 2002 2:17 PM > > > To: mapserver > > > Subject: [mapserver-users] Defining Classes/Labels for contours > > > > > > I've checked the archives and didn't see anything on what I > > need to do. > > > It's probably straightforward, but I haven't been able to > > figure it out... > > > I have a Polyline shapefile where each polyline has a > > classified value (i.e. > > > Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to draw the > > > contours in different colors but have only succeeded in > > creating a Legend > > > Class for each level. Is it possible to have graduated > > colors for the lines > > > within the same Layer Object? > > > LAYER > > > NAME BATHY > > > TYPE LINE > > > STATUS OFF > > > DATA bathy > > > CLASSITEM "Contour" > > > MAXSCALE 500000 > > > CLASS > > > NAME "0 - 5" > > > EXPRESSION "(Contour >= 0 AND Contour <=5)" > > > COLOR 200 0 0 > > > END > > > CLASS > > > NAME "5 - 10" > > > EXPRESSION "(Contour > 5 AND Contour <=10)" > > > COLOR 0 200 0 > > > END > > > END -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Thu Oct 31 09:03:36 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 31 Oct 2002 12:03:36 -0500 Subject: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x References: <8A13872FF821F4488B4A629647DC0C71023F66@mailman.nexussoft.com> Message-ID: <3DC16268.EB83AC70@dmsolutions.ca> "Thomas P. Colson" wrote: > > So....do I just re-install PHP, (Version 4.1.2 came with 7.3) or what levers do I need to pull to make mapscript work? > Yes you should build a new PHP, and install it as a CGI exactly as described in the Wiki. You can use PHP 4.2.3 instead of 4.1.2 though... it works very well. The Wiki is just a bit out of date on the latest PHP version. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From cthomas at rand.org Thu Oct 31 09:11:45 2002 From: cthomas at rand.org (Thomas, Cord) Date: Thu, 31 Oct 2002 09:11:45 -0800 Subject: [mapserver-users] Mapplet question Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4EBE@smmail2.rand.org> Does not look gray to me - what browser are you using - you sure you have a vm on that machine? I am using Windoz and IE6 to view map of parcels... Cord -----Original Message----- From: David McGaughey [mailto:DMcGaughey at mail.ci.lubbock.tx.us] Sent: Thursday, October 31, 2002 8:03 AM To: < Subject: [mapserver-users] Mapplet question Greetings! Sorry to always be a miner on this list, but I've a question about the mapplet. I put it on a page and all I get for the image is a grey box: http://maps.ci.lubbock.tx.us/test1.html Any ideas why I can't get the map to show-up? David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com From rholloway_1999 at yahoo.com Thu Oct 31 09:30:16 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 31 Oct 2002 09:30:16 -0800 (PST) Subject: [mapserver-users] html legend options/customizing Message-ID: <20021031173016.91569.qmail@web12505.mail.yahoo.com> Hi Is it possible to have a different legend layout depending on the number of classes in a layer? For example, I wanted to put the legend icon next to the checkbox for single class layers but underneath the checkbox for layers with a number of classes. I tried using some javascript but it didn't work. Is there a method to count the number of classes in layers? Any other suggestions or advice? Thanks Rob Holloway __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ From Steve_Palmer at lpsg.com Thu Oct 31 09:39:47 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Thu, 31 Oct 2002 11:39:47 -0600 Subject: [mapserver-users] Mapplet question Message-ID: <750F5C5447AF18408DC73220B98FEAF7866B9B@lesexch02.lpsg.com> Looks fine to me with Win version of IE6, SP1 Except I can't get it to zoom -----Original Message----- From: David McGaughey [mailto:DMcGaughey at mail.ci.lubbock.tx.us] Sent: Thursday, October 31, 2002 9:03 AM To: < Subject: [mapserver-users] Mapplet question Greetings! Sorry to always be a miner on this list, but I've a question about the mapplet. I put it on a page and all I get for the image is a grey box: http://maps.ci.lubbock.tx.us/test1.html Any ideas why I can't get the map to show-up? David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Thu Oct 31 09:43:49 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 31 Oct 2002 11:43:49 -0600 Subject: [mapserver-users] Mapplet question Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3B7@STL-EXBE-I03.corp.erac.com> Mapplet cannot handle PNG files, since Java doesn't have native support. You either must output GIF or switch to the new PNG enabled version of Rosa. -Dan Martin > -----Original Message----- > From: David McGaughey [mailto:DMcGaughey at mail.ci.lubbock.tx.us] > Sent: Thursday, October 31, 2002 10:03 AM > To: < > Subject: [mapserver-users] Mapplet question > > > > Greetings! > > Sorry to always be a miner on this list, but I've a question about the > mapplet. I put it on a page and all I get for the image is a > grey box: > > http://maps.ci.lubbock.tx.us/test1.html > > Any ideas why I can't get the map to show-up? > > > > David McGaughey > City of Lubbock, Texas > Personal Web: http://mcgoy.plumbearcat.com > From steve.lime at dnr.state.mn.us Thu Oct 31 09:49:59 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 31 Oct 2002 11:49:59 -0600 Subject: [mapserver-users] Mapplet question Message-ID: The problem is that java doesn't handle png files natively. So you have two options: - use GIF for MapServer output - hack the mapplet to use the SixLegs PNG library I have a new version of the mapplet called jBox that does the same thing as the mapplet but just has standard naming for public methods. There is also a DHMTL version of the same code called dbox. Anyway I did hack a version of jBox.java to support png and you can get it at: http://maps.dnr.state.mn.us/java/ There have also been other users that have done the same thing to mapplet (it's really quite simple to do) but I'm not sure where you can download it. You might post that question specifically to the list. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David McGaughey" 10/31/02 10:02AM >>> Greetings! Sorry to always be a miner on this list, but I've a question about the mapplet. I put it on a page and all I get for the image is a grey box: http://maps.ci.lubbock.tx.us/test1.html Any ideas why I can't get the map to show-up? David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com From nedjo at miningwatch.org Thu Oct 31 09:55:27 2002 From: nedjo at miningwatch.org (Nedjo Rogers) Date: Thu, 31 Oct 2002 09:55:27 -0800 Subject: [mapserver-users] An example Mapserver application In-Reply-To: <4D6E6CCBC9CED61192720060B06B3DD7C3FA7F@ACTMAIL2> Message-ID: Nice work. I particularly like the php-generated pdf map. Is this code available? > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of > Antti.Roppola at brs.gov.au > Sent: October 30, 2002 9:04 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] An example Mapserver application > > > Hello all, > > We are in the process of putting the finishing touches on our first > Mapserver application using MS 3.6 and PHP/Mapscript, but it's > looking respectable enough to post a URL to the list: > > http://data.brs.gov.au/mapserv/plant/index.phtml > > Notable features include: > - Extensive use of PHP > - PDF map generation > - All map specific elements are generated from the map file > - Database integration > - Some quite large rasters that wouldn't work without GDAL > - Quite nice integration of spatial content into non-GIS > parts of the site > - Debian based > - Vanilla HTML should work on most browsers > > The important snippets of of code for generating the UI and PDFs > should be in > the mailing list archives. See the Wiki for my instructions on > installing PHP/Mapscript > on a Debian box. > > Enjoy, > > Antti > > > > > From tpcolson at nexussoft.com Thu Oct 31 10:04:26 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Thu, 31 Oct 2002 13:04:26 -0500 Subject: [mapserver-users] RE: PHP/MapScript compile errors Message-ID: <8A13872FF821F4488B4A629647DC0C71023F67@mailman.nexussoft.com> When doing a make of 3.6.0 w/ php 4.2.3, I get the following... Any ideas as to what could be causing this? php_mapscript_util.o php_mapscript_util.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/home/src/mapserver-3.6.0/mapscript/php3' -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Thursday, October 31, 2002 12:04 PM To: Thomas P. Colson Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] PHP/MapScript compile and install on RedHat 7.x "Thomas P. Colson" wrote: > > So....do I just re-install PHP, (Version 4.1.2 came with 7.3) or what levers do I need to pull to make mapscript work? > Yes you should build a new PHP, and install it as a CGI exactly as described in the Wiki. You can use PHP 4.2.3 instead of 4.1.2 though... it works very well. The Wiki is just a bit out of date on the latest PHP version. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From DMcGaughey at mail.ci.lubbock.tx.us Thu Oct 31 11:11:07 2002 From: DMcGaughey at mail.ci.lubbock.tx.us (David McGaughey) Date: Thu, 31 Oct 2002 13:11:07 -0600 Subject: [mapserver-users] Mapplet question Message-ID: Yes! jBox works. Thank you! And thanks to everyone else who helped. Showed Lubbock's mapserver site to folks over at Texas Tech University yesterday. They'll be putting up a mapserver site in the future for TTU. Once GIS folks see a mapserver site - they are hooked. . . David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com >>> "Steve Lime" 10/31/02 11:49AM >>> The problem is that java doesn't handle png files natively. So you have two options: - use GIF for MapServer output - hack the mapplet to use the SixLegs PNG library I have a new version of the mapplet called jBox that does the same thing as the mapplet but just has standard naming for public methods. There is also a DHMTL version of the same code called dbox. Anyway I did hack a version of jBox.java to support png and you can get it at: http://maps.dnr.state.mn.us/java/ There have also been other users that have done the same thing to mapplet (it's really quite simple to do) but I'm not sure where you can download it. You might post that question specifically to the list. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David McGaughey" 10/31/02 10:02AM >>> Greetings! Sorry to always be a miner on this list, but I've a question about the mapplet. I put it on a page and all I get for the image is a grey box: http://maps.ci.lubbock.tx.us/test1.html Any ideas why I can't get the map to show-up? David McGaughey City of Lubbock, Texas Personal Web: http://mcgoy.plumbearcat.com From morissette at dmsolutions.ca Thu Oct 31 11:08:45 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 31 Oct 2002 14:08:45 -0500 Subject: [mapserver-users] RE: PHP/MapScript compile errors References: <8A13872FF821F4488B4A629647DC0C71023F67@mailman.nexussoft.com> Message-ID: <3DC17FBD.3BA6016@dmsolutions.ca> "Thomas P. Colson" wrote: > > When doing a make of 3.6.0 w/ php 4.2.3, I get the following... > > Any ideas as to what could be causing this? > > php_mapscript_util.o php_mapscript_util.c > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory `/home/src/mapserver-3.6.0/mapscript/php3' > Yes, it was a problem with the configure script in 3.6.0 ... this is fixed in the latest 3.6.3 release. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From tpcolson at nexussoft.com Thu Oct 31 11:52:51 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Thu, 31 Oct 2002 14:52:51 -0500 Subject: [mapserver-users] Gif Output errors Message-ID: <8A13872FF821F4488B4A629647DC0C71023F68@mailman.nexussoft.com> Even when I'm not using GIF output! Compiled/installed everything WITHOUT GIF support, using MAPLAB, everything is either JPEG or PNG, and when previewing map in browser I still get Warning: MapServer Error in msSaveImage(): GIF output is not available. in /var/www/html/maplab-2.0rc3/htdocs/mapedit/preview.php(444) : eval()'d code on line 1 Fatal error: Failed writing image to ./tmp1036097241302771.gif in /var/www/html/maplab-2.0rc3/htdocs/mapedit/preview.php(444) : eval()'d code on line 1 From pkishor at GeoAnalytics.com Thu Oct 31 12:14:52 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 31 Oct 2002 14:14:52 -0600 Subject: [mapserver-users] Mapplet question Message-ID: Dunno... shows up fine for me using IE on Win. perhaps letting us know what browser/OS you are using would help. Scriptable java applets don't work well in all the browsers/OS. pk/ > -----Original Message----- > From: David McGaughey [mailto:DMcGaughey at mail.ci.lubbock.tx.us] > Sent: Thursday, October 31, 2002 10:03 AM > To: < > Subject: [mapserver-users] Mapplet question > > > > Greetings! > > Sorry to always be a miner on this list, but I've a question about the > mapplet. I put it on a page and all I get for the image is a > grey box: > > http://maps.ci.lubbock.tx.us/test1.html > > Any ideas why I can't get the map to show-up? > > > > David McGaughey > City of Lubbock, Texas > Personal Web: http://mcgoy.plumbearcat.com >