From jacquin at geosys-inc.com Sun Sep 3 22:58:09 2000 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Mon, 4 Sep 2000 00:58:09 -0500 Subject: Various Message-ID: <000701c01635$1a76b980$5e23a0d8@pcpmj> Hi folks, For marketing issues I was wondering how many web sites currently use MapServer technology. Steve, do you have an idea ? 500, 1000, 10000 ? I am stuck around NT, I made an ATL library and I feel about giving it for free if my boss agrees (I think he does, I have to check first), anyone interested ? Major issues are that Mapserver is designed for CGI (one shot) and I had to make some changes in the initialization processes. It's really easy to use with VB or VBA (you have to adapt to your customer favorite OS and language). Mainly it does in VB : Dim map as new MSMap Dim legend as new MSLegend map.sizecols = 500 map.sizerows = 500 map.addLayer ... map.legend = mylegend map.savefile mygif.gif and respects the mapfile specs (some items still have to be added) with ATL/COM capabilities It's only an alpha version. I can't promise it for free now, only if some are really interested. First question is the main one. PS : it takes time to figure out if you can add something interesting to such a product (Mapserver of course) Marc From dbailey at pop.dn.net Tue Sep 5 02:05:47 2000 From: dbailey at pop.dn.net (Duane Bailey) Date: Tue, 05 Sep 2000 05:05:47 -0400 Subject: Is the Mailing List Archive broken? Message-ID: <39B4B76B.CF727866@pop.dn.net> The mailing list archive stops with only 2 messages in August, and none for September. Is the archive no longer being updated? From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Sep 5 08:40:39 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 5 Sep 2000 11:40:39 -0400 Subject: php3-mapscript and symbology Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C161@s5-ccr-r1> Everyone, Allright, I got the TTF Symbology going, turns out the .ttf file I was using had some problems with the encoding in it ... I had to switch it to Windows Unicode from Windows Symbol, abd boum, everything fell into place ! Took me long enough to figure that out though ! Now for some more advanced questions : Can I have multiple symbols for one point ? I have a city let's say, but I want 3 symbols around it ... Can this be done ? How do I create dynamic symbols ? I would like to create circles that contain a number, only this number will vary (Number of hits from a search, I'm mapping search results here). I vaguely recall seeing talk about this on the list, but I can't find anything about it anymore :) And can I use a TTF symbol to do this ? Or do I have to create independent symbols for each possiblity ? Thanks ! J.F. > ---------- > From: Doyon, > Jean-Francois[SMTP:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] > Sent: Thursday, August 31, 2000 4:43 PM > To: mapserver-users at lists.gis.umn.edu > Subject: php3-mapscript and TTF Symbology > > Hello AGAIN :) > > Allright, got the projection stuff going great, thanks again :) > > Now I'm trying to get TTF Symbology working, and am running > into some problems. > > I'm using a file called "geosymb.ttf", no idea where it came from. > > Then I define in marker.sym > > Symbol > Name 'capital' > Type TrueType > Filled > Antialias > Character "e" > END > > But nothing shows up ! Ever ! Even stranger, sometimes ALL my TTF stuff > disappears off the chart (All city names and their symbols, which are > vectors, I'm just > trying to change the symbol on ONE city). In some instances, it seems that > everything > within a certain radius (the bigger the symbol size, the more disappears) > of > the said city > disappears ! Things also seem to behave differently depending on > extent/zoom > level. > Basically, the minute I try to put a TTF symbol in there things go bezerk. > > The Text (Labelling) is TTF, and that's been working fine all along. > > I even tried using my arial.ttf file (Which I use for labeling) to do > symbols, but ... same thing. > > This is the TOP layer BTW, (i.e. the last one to be added) if that makes a > difference. > > Oh , an dI've of course tried a variety of "Character" ... Also, when > windows says a character > is "Alt+0168", how do I use that with a symbol file ??? > > Anybody have any problems with this ? Any idea what I'm doing wrong ? > > Maybe I'll go try it with the Perl version if I have some time tomorrow > ... > > Thanks again, and again, and again ... > > > From steve.lime at dnr.state.mn.us Tue Sep 5 10:11:14 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 05 Sep 2000 12:11:14 -0500 Subject: php3-mapscript and symbology Message-ID: Ok, here are some ideas: - multiple symbols: I recently added the ability to overlay 2 symbols to the CVS version although useful for building more complex symbols it's not what you want. In your case you need to draw the layer mutiple times positioning the labels accordingly. Note I said labels. Symbols are always centered on the label point and labels can have varied positions. I am adding symbol offset control but it's not quite ready. - dynamic symbols: What you describe is what I use annotation for. For example, in labeling road shields I use a base symbol (GIF image) and drop text over the top. Same can be done in your case. Use an annotation layer with a circle symbol. You'll have to experiment to find the symbol and font sizes that look good together. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 09/05/00 10:40AM >>> Everyone, Allright, I got the TTF Symbology going, turns out the .ttf file I was using had some problems with the encoding in it ... I had to switch it to Windows Unicode from Windows Symbol, abd boum, everything fell into place ! Took me long enough to figure that out though ! Now for some more advanced questions : Can I have multiple symbols for one point ? I have a city let's say, but I want 3 symbols around it ... Can this be done ? How do I create dynamic symbols ? I would like to create circles that contain a number, only this number will vary (Number of hits from a search, I'm mapping search results here). I vaguely recall seeing talk about this on the list, but I can't find anything about it anymore :) And can I use a TTF symbol to do this ? Or do I have to create independent symbols for each possiblity ? Thanks ! J.F. > ---------- > From: Doyon, > Jean-Francois[SMTP:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] > Sent: Thursday, August 31, 2000 4:43 PM > To: mapserver-users at lists.gis.umn.edu > Subject: php3-mapscript and TTF Symbology > > Hello AGAIN :) > > Allright, got the projection stuff going great, thanks again :) > > Now I'm trying to get TTF Symbology working, and am running > into some problems. > > I'm using a file called "geosymb.ttf", no idea where it came from. > > Then I define in marker.sym > > Symbol > Name 'capital' > Type TrueType > Filled > Antialias > Character "e" > END > > But nothing shows up ! Ever ! Even stranger, sometimes ALL my TTF stuff > disappears off the chart (All city names and their symbols, which are > vectors, I'm just > trying to change the symbol on ONE city). In some instances, it seems that > everything > within a certain radius (the bigger the symbol size, the more disappears) > of > the said city > disappears ! Things also seem to behave differently depending on > extent/zoom > level. > Basically, the minute I try to put a TTF symbol in there things go bezerk. > > The Text (Labelling) is TTF, and that's been working fine all along. > > I even tried using my arial.ttf file (Which I use for labeling) to do > symbols, but ... same thing. > > This is the TOP layer BTW, (i.e. the last one to be added) if that makes a > difference. > > Oh , an dI've of course tried a variety of "Character" ... Also, when > windows says a character > is "Alt+0168", how do I use that with a symbol file ??? > > Anybody have any problems with this ? Any idea what I'm doing wrong ? > > Maybe I'll go try it with the Perl version if I have some time tomorrow > ... > > Thanks again, and again, and again ... > > > From tgaffney at co.tillamook.or.us Tue Sep 5 13:08:03 2000 From: tgaffney at co.tillamook.or.us (Teresa Gaffney) Date: Tue, 5 Sep 2000 13:08:03 -0700 Subject: freetype compiling trouble Message-ID: <000001c01774$ffab1060$a04368aa@tgaffney.co.tillamook.or.us> Hello all! I am trying to install the mapserver here in Tillamook Oregon. Haveing difficulty compiling the Freetype code. Is there a special trick to compile? Everything else compiled smooth. Thank you, Teri Teresa Gaffney GIS Coordinator Tillamook County 201 Laurel Ave Tillamook, OR 97141 http://gisweb.co.tillamook.or.us Office: Tillamook Coastal Watershed Resource Center 6385 Tillamook Ave Bay City, OR 97107 http://www.tbcc.cc.or.us/~tcwrc (503) 377-4000 Fax (503) 377-4010 tgaffney at co.tillamook.or.us -------------- next part -------------- A non-text attachment was scrubbed... Name: Teresa Gaffney.vcf Type: application/octet-stream Size: 831 bytes Desc: not available URL: From johnh at erin.gov.au Tue Sep 5 15:16:56 2000 From: johnh at erin.gov.au (John Hockaday) Date: Wed, 6 Sep 2000 09:16:56 +1100 (EST) Subject: php3-mapscript and symbology Message-ID: <200009052216.JAA29216@eos.erin.gov.au> Hi, I have the same situation but a little bit different. I want to draw the symbol according to an attribute value and make the colour decided by another attribute value in the shapefile table. This is similar in that it is a dynamic symbology and dynamic colouring. I see from Steve's comments that I could have an annotation layer for each symbol but how do I determine the colour according to an attribute value? Can someone supply an excerpt from a .map file or do I need some code to do the dynamic stuff? Johnh > Date: Tue, 05 Sep 2000 12:11:14 -0500 > From: "Stephen Lime" > Ok, here are some ideas: > > - multiple symbols: I recently added the ability to overlay 2 symbols to the CVS version although > useful for building more complex symbols it's not what you want. In your case you need to draw > the layer mutiple times positioning the labels accordingly. Note I said labels. Symbols are always > centered on the label point and labels can have varied positions. I am adding symbol offset control > but it's not quite ready. > > - dynamic symbols: What you describe is what I use annotation for. For example, in labeling road > shields I use a base symbol (GIF image) and drop text over the top. Same can be done in your > case. Use an annotation layer with a circle symbol. You'll have to experiment to find the symbol > and font sizes that look good together. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 09/05/00 10:40AM >>> > Everyone, > > Allright, I got the TTF Symbology going, turns out the .ttf file I was using > had some > problems with the encoding in it ... I had to switch it to Windows Unicode > from > Windows Symbol, abd boum, everything fell into place ! Took me long enough > to > figure that out though ! > > Now for some more advanced questions : > > Can I have multiple symbols for one point ? I have a city let's say, but I > want > 3 symbols around it ... Can this be done ? > > How do I create dynamic symbols ? I would like to create circles that > contain > a number, only this number will vary (Number of hits from a search, I'm > mapping > search results here). I vaguely recall seeing talk about this on the list, > but I > can't find anything about it anymore :) And can I use a TTF symbol to do > this ? > Or do I have to create independent symbols for each possiblity ? > > Thanks ! > J.F. > > > > ---------- > > From: Doyon, > > Jean-Francois[SMTP:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] > > Sent: Thursday, August 31, 2000 4:43 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: php3-mapscript and TTF Symbology > > > > Hello AGAIN :) > > > > Allright, got the projection stuff going great, thanks again :) > > > > Now I'm trying to get TTF Symbology working, and am running > > into some problems. > > > > I'm using a file called "geosymb.ttf", no idea where it came from. > > > > Then I define in marker.sym > > > > Symbol > > Name 'capital' > > Type TrueType > > Filled > > Antialias > > Character "e" > > END > > > > But nothing shows up ! Ever ! Even stranger, sometimes ALL my TTF stuff > > disappears off the chart (All city names and their symbols, which are > > vectors, I'm just > > trying to change the symbol on ONE city). In some instances, it seems that > > everything > > within a certain radius (the bigger the symbol size, the more disappears) > > of > > the said city > > disappears ! Things also seem to behave differently depending on > > extent/zoom > > level. > > Basically, the minute I try to put a TTF symbol in there things go bezerk. > > > > The Text (Labelling) is TTF, and that's been working fine all along. > > > > I even tried using my arial.ttf file (Which I use for labeling) to do > > symbols, but ... same thing. > > > > This is the TOP layer BTW, (i.e. the last one to be added) if that makes a > > difference. > > > > Oh , an dI've of course tried a variety of "Character" ... Also, when > > windows says a character > > is "Alt+0168", how do I use that with a symbol file ??? > > > > Anybody have any problems with this ? Any idea what I'm doing wrong ? > > > > Maybe I'll go try it with the Perl version if I have some time tomorrow > > ... > > > > Thanks again, and again, and again ... > > > > > > > From tgaffney at co.tillamook.or.us Tue Sep 5 15:49:50 2000 From: tgaffney at co.tillamook.or.us (Teresa Gaffney) Date: Tue, 5 Sep 2000 15:49:50 -0700 Subject: freetype compiling trouble - more details Message-ID: <001001c0178b$99838440$a04368aa@tgaffney.co.tillamook.or.us> Oops sorry forgot - I am running Windows NT 4.0 with Service Pack 5. Thanks, Teri From steve.lime at dnr.state.mn.us Tue Sep 5 15:58:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 05 Sep 2000 17:58:13 -0500 Subject: php3-mapscript and symbology Message-ID: MapServer CGI can't do this, not without some work. If you're talking relatively few combinations you could use logical expressions i.e. ([ITEM1] == 1 and [ITEM2] == 2). But with lots of options that could get tedious. MapScript could be of use if things got really complex to set this up on the fly. If you be more specific I might have other ideas. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Hockaday 09/05/00 05:16PM >>> Hi, I have the same situation but a little bit different. I want to draw the symbol according to an attribute value and make the colour decided by another attribute value in the shapefile table. This is similar in that it is a dynamic symbology and dynamic colouring. I see from Steve's comments that I could have an annotation layer for each symbol but how do I determine the colour according to an attribute value? Can someone supply an excerpt from a .map file or do I need some code to do the dynamic stuff? Johnh > Date: Tue, 05 Sep 2000 12:11:14 -0500 > From: "Stephen Lime" > Ok, here are some ideas: > > - multiple symbols: I recently added the ability to overlay 2 symbols to the CVS version although > useful for building more complex symbols it's not what you want. In your case you need to draw > the layer mutiple times positioning the labels accordingly. Note I said labels. Symbols are always > centered on the label point and labels can have varied positions. I am adding symbol offset control > but it's not quite ready. > > - dynamic symbols: What you describe is what I use annotation for. For example, in labeling road > shields I use a base symbol (GIF image) and drop text over the top. Same can be done in your > case. Use an annotation layer with a circle symbol. You'll have to experiment to find the symbol > and font sizes that look good together. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 09/05/00 10:40AM >>> > Everyone, > > Allright, I got the TTF Symbology going, turns out the .ttf file I was using > had some > problems with the encoding in it ... I had to switch it to Windows Unicode > from > Windows Symbol, abd boum, everything fell into place ! Took me long enough > to > figure that out though ! > > Now for some more advanced questions : > > Can I have multiple symbols for one point ? I have a city let's say, but I > want > 3 symbols around it ... Can this be done ? > > How do I create dynamic symbols ? I would like to create circles that > contain > a number, only this number will vary (Number of hits from a search, I'm > mapping > search results here). I vaguely recall seeing talk about this on the list, > but I > can't find anything about it anymore :) And can I use a TTF symbol to do > this ? > Or do I have to create independent symbols for each possiblity ? > > Thanks ! > J.F. > > > > ---------- > > From: Doyon, > > Jean-Francois[SMTP:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] > > Sent: Thursday, August 31, 2000 4:43 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: php3-mapscript and TTF Symbology > > > > Hello AGAIN :) > > > > Allright, got the projection stuff going great, thanks again :) > > > > Now I'm trying to get TTF Symbology working, and am running > > into some problems. > > > > I'm using a file called "geosymb.ttf", no idea where it came from. > > > > Then I define in marker.sym > > > > Symbol > > Name 'capital' > > Type TrueType > > Filled > > Antialias > > Character "e" > > END > > > > But nothing shows up ! Ever ! Even stranger, sometimes ALL my TTF stuff > > disappears off the chart (All city names and their symbols, which are > > vectors, I'm just > > trying to change the symbol on ONE city). In some instances, it seems that > > everything > > within a certain radius (the bigger the symbol size, the more disappears) > > of > > the said city > > disappears ! Things also seem to behave differently depending on > > extent/zoom > > level. > > Basically, the minute I try to put a TTF symbol in there things go bezerk. > > > > The Text (Labelling) is TTF, and that's been working fine all along. > > > > I even tried using my arial.ttf file (Which I use for labeling) to do > > symbols, but ... same thing. > > > > This is the TOP layer BTW, (i.e. the last one to be added) if that makes a > > difference. > > > > Oh , an dI've of course tried a variety of "Character" ... Also, when > > windows says a character > > is "Alt+0168", how do I use that with a symbol file ??? > > > > Anybody have any problems with this ? Any idea what I'm doing wrong ? > > > > Maybe I'll go try it with the Perl version if I have some time tomorrow > > ... > > > > Thanks again, and again, and again ... > > > > > > > From danmo at videotron.ca Tue Sep 5 17:41:59 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 05 Sep 2000 20:41:59 -0400 Subject: freetype compiling trouble - more details References: <001001c0178b$99838440$a04368aa@tgaffney.co.tillamook.or.us> Message-ID: <39B592D7.45D5776D@videotron.ca> Teresa Gaffney wrote: > > Oops sorry forgot - I am running Windows NT 4.0 with Service Pack 5. > Did you try using the Visual Studio Workspace that comes in Freetype's lib/arch/win32 sub-directory? -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bfraser at geoanalytic.com Tue Sep 5 16:36:58 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 5 Sep 2000 17:36:58 -0600 Subject: freetype compiling trouble - more details References: <001001c0178b$99838440$a04368aa@tgaffney.co.tillamook.or.us> Message-ID: <000f01c01792$3008a1b0$45634318@cgno1.ab.wave.home.com> My VC++ project for FreeType v1.2 references the "extend" directory as an additional include dir, but that's about it. What kind of problems are you having? Have you tried the makefile included in freetype\lib\arch\win32 ? Brent Fraser bfraser at geoanalytic.com ----- Original Message ----- From: "Teresa Gaffney" To: Sent: Tuesday, September 05, 2000 4:49 PM Subject: freetype compiling trouble - more details > Oops sorry forgot - I am running Windows NT 4.0 with Service Pack 5. > > Thanks, > Teri From seano at metavera.com Wed Sep 6 11:55:58 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 6 Sep 2000 14:55:58 -0400 Subject: queryUsingPoint problems Message-ID: <007101c01834$17db2de0$0582a8c0@karkalis.com> Hello: I'm having some problems with queryUsingPoint. The 'numresults' and 'numquerylayers' members of the returned qryResultObj seem to be undefined. My print statements in the code below show no values. Is my syntax incorrect? Thanks very much in advance. Sean. #!perl use mapscript; # getShapesNear( map_file, x_coord, y_coord, layer_number, max_shapes ) sub getShapesNear { my @shapes; my $point = new pointObj(); my $qryResult; my $mapfile = new mapObj($_[0]); $point->{x} = $_[1]; $point->{y} = $_[2]; my $layerNum = $_[3]; my $numShapes = $_[4]; $qryResult = $mapfile->queryUsingPoint($point, MS_MULTIPLE, -1); $j = 0; print "Number of shapes on all layers: $qryResult->{numresults}\n"; print "Number of layers searched: $qryResult->{numquerylayers}\n"; for (my $i=0; $i<$qryResult->{numresults}; $i++) { my $shpResult = $qryResult->next(); if ($layerNum == $shpResult->{layer}) { @shapes[$j++] = $shpResult->{shape}; } } $qryResult->{free}; return @shapes; } @closeStops = getShapesNear( 'mapfile.map', 923072.8083, 523859.9862, 2, 0 ); print "RecNum: @closeStops[0]\n"; exit; From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Sep 8 11:13:35 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 8 Sep 2000 14:13:35 -0400 Subject: queryUsingPoint problems Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C168@s5-ccr-r1> Hello, I too seem to be having problems ... using the PHP/Mapscript, the querying methods don't seem to be returning an object (queryResultObj, I would expect) ... I don't get any errors from the query method ( $layername->queryusingpoint($point,MS_SINGLE,-1) ) either ... $point IS a pointObj with X and Y in the projection cooridnate system (i.e. not in pixels). And so far, whether I query the map or the layer, the result is allways "0" (the number zero). The docs say the method queryUsingPoint should return void, is that right ? Seems to me it should return a queryResultObj ... I'm stumped ... Anybody ? J.F. > ---------- > From: Sean O'Hagan[SMTP:seano at metavera.com] > Reply To: Sean O'Hagan > Sent: Wednesday, September 06, 2000 2:55 PM > To: MapServer List > Subject: queryUsingPoint problems > > Hello: > > I'm having some problems with queryUsingPoint. The 'numresults' and > 'numquerylayers' members of the returned qryResultObj seem to be > undefined. > My print statements in the code below show no values. Is my syntax > incorrect? Thanks very much in advance. > > Sean. > > > #!perl > use mapscript; > > # getShapesNear( map_file, x_coord, y_coord, layer_number, max_shapes ) > sub getShapesNear { > > my @shapes; > my $point = new pointObj(); > my $qryResult; > my $mapfile = new mapObj($_[0]); > $point->{x} = $_[1]; > $point->{y} = $_[2]; > my $layerNum = $_[3]; > my $numShapes = $_[4]; > > $qryResult = $mapfile->queryUsingPoint($point, MS_MULTIPLE, -1); > $j = 0; > > print "Number of shapes on all layers: $qryResult->{numresults}\n"; > print "Number of layers searched: $qryResult->{numquerylayers}\n"; > > for (my $i=0; $i<$qryResult->{numresults}; $i++) { > my $shpResult = $qryResult->next(); > if ($layerNum == $shpResult->{layer}) { > @shapes[$j++] = $shpResult->{shape}; > } > } > $qryResult->{free}; > return @shapes; > } > @closeStops = getShapesNear( 'mapfile.map', 923072.8083, 523859.9862, 2, > 0 ); > print "RecNum: @closeStops[0]\n"; > exit; > > From danmo at videotron.ca Fri Sep 8 12:40:16 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 08 Sep 2000 15:40:16 -0400 Subject: queryUsingPoint problems References: <2951561DB3DDD0118FEC00805FFE98050380C168@s5-ccr-r1> Message-ID: <39B940A0.8D44C71E@videotron.ca> Hi, I have used the $map->queryUsingPoint() for quite a while and I know it works for sure. However, for a layer to be queryable, its status must be ON or QUERYONLY, and it must have a QUERYITEM and at least one QUERY object, otherwise it appears to be ignored in the query: LAYER ... QUERYITEM "anyfield" QUERY EXPRESION /./ TEMPLATE "ttt" END END BTW, there is a mistake in the PHP documentation, I'll fix it. The method does indeed return a queryResultObj, and the pointObj (query location) should be specified in georeferenced map coordinates, not pixels. I hope that helps, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. "Doyon, Jean-Francois" wrote: > > Hello, > > I too seem to be having problems ... using the PHP/Mapscript, the querying > methods > don't seem to be returning an object (queryResultObj, I would expect) ... I > don't get any > errors from the query method ( > $layername->queryusingpoint($point,MS_SINGLE,-1) ) > either ... $point IS a pointObj with X and Y in the projection cooridnate > system (i.e. not > in pixels). > > And so far, whether I query the map or the layer, the result is allways "0" > (the number zero). > > The docs say the method queryUsingPoint should return void, is that right ? > Seems to me > it should return a queryResultObj ... > > I'm stumped ... Anybody ? > > J.F. > > > ---------- > > From: Sean O'Hagan[SMTP:seano at metavera.com] > > Reply To: Sean O'Hagan > > Sent: Wednesday, September 06, 2000 2:55 PM > > To: MapServer List > > Subject: queryUsingPoint problems > > > > Hello: > > > > I'm having some problems with queryUsingPoint. The 'numresults' and > > 'numquerylayers' members of the returned qryResultObj seem to be > > undefined. > > My print statements in the code below show no values. Is my syntax > > incorrect? Thanks very much in advance. > > > > Sean. > > > > > > #!perl > > use mapscript; > > > > # getShapesNear( map_file, x_coord, y_coord, layer_number, max_shapes ) > > sub getShapesNear { > > > > my @shapes; > > my $point = new pointObj(); > > my $qryResult; > > my $mapfile = new mapObj($_[0]); > > $point->{x} = $_[1]; > > $point->{y} = $_[2]; > > my $layerNum = $_[3]; > > my $numShapes = $_[4]; > > > > $qryResult = $mapfile->queryUsingPoint($point, MS_MULTIPLE, -1); > > $j = 0; > > > > print "Number of shapes on all layers: $qryResult->{numresults}\n"; > > print "Number of layers searched: $qryResult->{numquerylayers}\n"; > > > > for (my $i=0; $i<$qryResult->{numresults}; $i++) { > > my $shpResult = $qryResult->next(); > > if ($layerNum == $shpResult->{layer}) { > > @shapes[$j++] = $shpResult->{shape}; > > } > > } > > $qryResult->{free}; > > return @shapes; > > } > > @closeStops = getShapesNear( 'mapfile.map', 923072.8083, 523859.9862, 2, > > 0 ); > > print "RecNum: @closeStops[0]\n"; > > exit; > > > > From steve.lime at dnr.state.mn.us Fri Sep 8 13:05:54 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 08 Sep 2000 15:05:54 -0500 Subject: queryUsingPoint problems Message-ID: To clarify, the layer must have STATUS ON, DEFAULT or QUERYONLY and yes must have a single QUERY object defined. The following will work (QUERYITEM is not required) QUERY TEMPLATE "foo" END That's it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 09/08/00 02:40PM >>> Hi, I have used the $map->queryUsingPoint() for quite a while and I know it works for sure. However, for a layer to be queryable, its status must be ON or QUERYONLY, and it must have a QUERYITEM and at least one QUERY object, otherwise it appears to be ignored in the query: LAYER ... QUERYITEM "anyfield" QUERY EXPRESION /./ TEMPLATE "ttt" END END BTW, there is a mistake in the PHP documentation, I'll fix it. The method does indeed return a queryResultObj, and the pointObj (query location) should be specified in georeferenced map coordinates, not pixels. I hope that helps, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. "Doyon, Jean-Francois" wrote: > > Hello, > > I too seem to be having problems ... using the PHP/Mapscript, the querying > methods > don't seem to be returning an object (queryResultObj, I would expect) ... I > don't get any > errors from the query method ( > $layername->queryusingpoint($point,MS_SINGLE,-1) ) > either ... $point IS a pointObj with X and Y in the projection cooridnate > system (i.e. not > in pixels). > > And so far, whether I query the map or the layer, the result is allways "0" > (the number zero). > > The docs say the method queryUsingPoint should return void, is that right ? > Seems to me > it should return a queryResultObj ... > > I'm stumped ... Anybody ? > > J.F. > > > ---------- > > From: Sean O'Hagan[SMTP:seano at metavera.com] > > Reply To: Sean O'Hagan > > Sent: Wednesday, September 06, 2000 2:55 PM > > To: MapServer List > > Subject: queryUsingPoint problems > > > > Hello: > > > > I'm having some problems with queryUsingPoint. The 'numresults' and > > 'numquerylayers' members of the returned qryResultObj seem to be > > undefined. > > My print statements in the code below show no values. Is my syntax > > incorrect? Thanks very much in advance. > > > > Sean. > > > > > > #!perl > > use mapscript; > > > > # getShapesNear( map_file, x_coord, y_coord, layer_number, max_shapes ) > > sub getShapesNear { > > > > my @shapes; > > my $point = new pointObj(); > > my $qryResult; > > my $mapfile = new mapObj($_[0]); > > $point->{x} = $_[1]; > > $point->{y} = $_[2]; > > my $layerNum = $_[3]; > > my $numShapes = $_[4]; > > > > $qryResult = $mapfile->queryUsingPoint($point, MS_MULTIPLE, -1); > > $j = 0; > > > > print "Number of shapes on all layers: $qryResult->{numresults}\n"; > > print "Number of layers searched: $qryResult->{numquerylayers}\n"; > > > > for (my $i=0; $i<$qryResult->{numresults}; $i++) { > > my $shpResult = $qryResult->next(); > > if ($layerNum == $shpResult->{layer}) { > > @shapes[$j++] = $shpResult->{shape}; > > } > > } > > $qryResult->{free}; > > return @shapes; > > } > > @closeStops = getShapesNear( 'mapfile.map', 923072.8083, 523859.9862, 2, > > 0 ); > > print "RecNum: @closeStops[0]\n"; > > exit; > > > > From danmo at videotron.ca Fri Sep 8 13:32:12 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 08 Sep 2000 16:32:12 -0400 Subject: How to mark object on a map using PHP/MapScript ?? References: <3958FDE9.448936BB@gilan.uar.net> Message-ID: <39B94CCC.C77A9C6F@videotron.ca> kibez wrote: > > Unfortunately the given code does not work!!! > > .......................... > $img = $gpoMap->draw(); > > $point[0]=3396429; > $point[1]=6490035; > > $oMarkPoint = ms_newpointobj(); > $oMarkPoint->setxy($point[0], $point[1]); > > $oLayerAddress = $gpoMap->getlayerbyname("address_point"); > $oMarkPoint->draw($gpoMap, $oLayerAddress, $img, "", "!!!!!!!!!!"); > > Fatal error: Call to unsupported or undefined > function draw() in map.php3 on line 675 > ................................... Sorry for the late reply! The pointObj and rectObj draw() methods were implemented but were not properly registered. I fixed this, and that should be part of the next MapServer release. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lfilak at yahoo.com Mon Sep 11 06:33:53 2000 From: lfilak at yahoo.com (Lowell Filak) Date: Mon, 11 Sep 2000 06:33:53 -0700 (PDT) Subject: FreeGIS Message-ID: <20000911133353.9415.qmail@web4303.mail.yahoo.com> FYI: Just in case it hasn't been posted yet - the new FreeGIS CD is available from http://freegis.org/order.en.html and contains MapServer 3.3.011 amongst other programs. __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Sep 11 09:10:29 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 11 Sep 2000 12:10:29 -0400 Subject: shape->line() ? Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F24@s5-ccr-r1> Hello, Why is this not working ? $querypoint = ms_newpointobj(); $querypoint->setXY($centerx,$centery); $queryres = $reslay->queryusingpoint($querypoint,MS_SINGLE,-1); $shapendx = $queryres->next(); $shpfile = ms_newshapefileobj("/home/mapdata/common/shapefiles/tmp/".$shpname,-1); $shpres = $shpfile->getshape($shapendx); $lineres = $shpres->line(0); $pointres = $lineres->point(0); header("Location: details.php3?lat=$pointres->x&long=$pointres->y&reclist=$reclist"); I'm getting : Fatal error: Call to unsupported or undefined function line() in /home/httpd/html/ccatlas/search/map.php3 on line 224 I checked the code (php_mapscript.c) and the function does seem to be there ... and $shpres IS an Object. What am I missing ? J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Friday, September 08, 2000 4:32 PM > To: kibez > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: How to mark object on a map using PHP/MapScript ?? > > kibez wrote: > > > > Unfortunately the given code does not work!!! > > > > .......................... > > $img = $gpoMap->draw(); > > > > $point[0]=3396429; > > $point[1]=6490035; > > > > $oMarkPoint = ms_newpointobj(); > > $oMarkPoint->setxy($point[0], $point[1]); > > > > $oLayerAddress = $gpoMap->getlayerbyname("address_point"); > > $oMarkPoint->draw($gpoMap, $oLayerAddress, $img, "", "!!!!!!!!!!"); > > > > Fatal error: Call to unsupported or undefined > > function draw() in map.php3 on line 675 > > ................................... > > > Sorry for the late reply! > > The pointObj and rectObj draw() methods were implemented but were not > properly registered. I fixed this, and that should be part of the next > MapServer release. > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From danmo at videotron.ca Mon Sep 11 09:57:24 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 11 Sep 2000 12:57:24 -0400 Subject: shape->line() ? References: <2951561DB3DDD0118FEC00805FFE980504941F24@s5-ccr-r1> Message-ID: <39BD0EF4.22F513D8@videotron.ca> "Doyon, Jean-Francois" wrote: > > I'm getting : > > Fatal error: Call to unsupported or undefined function line() in > /home/httpd/html/ccatlas/search/map.php3 on line 224 > > I checked the code (php_mapscript.c) and the function does seem to be there > ... and $shpres IS an Object. > > What am I missing ? > You're missing the latest version of the code ;-) The function was there but was registered as being called "point" (Copy/Paste error!), so accessing $shpres->point(0) should do what you want with the version of the PHP MapScript that you have. I've fixed it last week at the same time as a couple of other problems... unfortunetely there is some areas of MapScript that we have implemented wrappers for but haven't used yet, and you've found one! The version that's currently in CVS is pretty stable (it behaves well for me at least!), so you could probably update if you want. This would also give you the setProjection() function that you needed. Unfortunately the nightly build on the UMN web site seems to date from the end of July. Did you intentionnally stop it, Steve? Later, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Sep 11 13:25:50 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 11 Sep 2000 16:25:50 -0400 Subject: ShapeResultObj->shape ? Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F25@s5-ccr-r1> Ahhhh ok :) Could you post the necessary bit of code to change ? I'd rather keep a stable version, since my app should go into production soon. but I also want to make sure the code is compatible forward, so I'd like to change that "point" to a "line" as it should be :) And now, I'm having another problem, this time with the getshape() funtion ... It seems to allways return the SAME shape (The first one), regardless of th eindex value I give it ! Here's the code affected : $queryres = $reslay->queryusingpoint($querypoint,MS_SINGLE,-1); $shapendx = $queryres->next(); $ndx = $shapendx->shape; echo $ndx."
"; $shpfile = ms_newshapefileobj("/home/mapdata/common/shapefiles/tmp/".$shpname,-1); $shpres = $shpfile->getshape($ndx); $lineres = $shpres->point(0); <- Note the current workaround :) $pointres = $lineres->point(0); echo $pointres->y."
"; echo $pointres->x."
"; The $ndx value is set correctly, but the getshape function and the rest of the code allways return the same shape ! I even tried harcoding an index value in there instead of $ndx, but same deal ... (As mentionned the FIRST shape) The shape value of the ShapeResultObj is the INDEX of the shape , right ? This and other values for the object should probably be better described in the docs ... Or is the value returned something else ? Thanks, J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Monday, September 11, 2000 12:57 PM > To: Doyon, Jean-Francois > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: shape->line() ? > > "Doyon, Jean-Francois" wrote: > > > > I'm getting : > > > > Fatal error: Call to unsupported or undefined function line() in > > /home/httpd/html/ccatlas/search/map.php3 on line 224 > > > > I checked the code (php_mapscript.c) and the function does seem to be > there > > ... and $shpres IS an Object. > > > > What am I missing ? > > > > You're missing the latest version of the code ;-) > > The function was there but was registered as being called "point" > (Copy/Paste error!), so accessing $shpres->point(0) should do what you > want with the version of the PHP MapScript that you have. I've fixed it > last week at the same time as a couple of other problems... > unfortunetely there is some areas of MapScript that we have implemented > wrappers for but haven't used yet, and you've found one! > > The version that's currently in CVS is pretty stable (it behaves well > for me at least!), so you could probably update if you want. This would > also give you the setProjection() function that you needed. > > Unfortunately the nightly build on the UMN web site seems to date from > the end of July. Did you intentionnally stop it, Steve? > > Later, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From danmo at videotron.ca Mon Sep 11 15:10:26 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 11 Sep 2000 18:10:26 -0400 Subject: ShapeResultObj->shape ? References: <2951561DB3DDD0118FEC00805FFE980504941F25@s5-ccr-r1> Message-ID: <39BD5852.49755F8F@videotron.ca> "Doyon, Jean-Francois" wrote: > > Could you post the necessary bit of code to change ? I'd rather keep a > stable version, since my app should go into production soon. > but I also want to make sure the code is compatible forward, so I'd like to > change that "point" to a "line" as it should be :) > In _phpms_build_shape_object(), change the line: add_method(return_value, "point", php3_ms_shape_line); to: add_method(return_value, "line", php3_ms_shape_line); (I'm assuming you're using version 3.3.011... this line is gone elsewhere in the latest version because we added PHP4 support.) > And now, I'm having another problem, this time with the getshape() funtion > ... > > It seems to allways return the SAME shape (The first one), regardless of th > eindex value I give it ! > You're really not lucky! This one has been fixed 1 or 2 days after the 3.3.011 release! :) It's the index passed to getshape() that was converted to double internally... anyways, to fix this in your copy, go in php3_ms_shapefile_getshape() and look for the line: convert_to_double(pIndex); and change it to: convert_to_long(pIndex); You're definitely good at finding these things... we should get you to do a QA pass on the module before the next release! :) -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ 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 Sep 12 09:04:27 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 12 Sep 2000 11:04:27 -0500 Subject: shape->line() ? Message-ID: When the machine was re-done a few components (swig, bison, flex) weren't re-installed. Since the CVS has been seeing a bunch of change recently I haven't worried about it. You can still download directly from CVS. I'll restore the nightly build when 3.3.012 is release at the end of the week. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 09/11/00 11:57AM >>> "Doyon, Jean-Francois" wrote: > > I'm getting : > > Fatal error: Call to unsupported or undefined function line() in > /home/httpd/html/ccatlas/search/map.php3 on line 224 > > I checked the code (php_mapscript.c) and the function does seem to be there > ... and $shpres IS an Object. > > What am I missing ? > You're missing the latest version of the code ;-) The function was there but was registered as being called "point" (Copy/Paste error!), so accessing $shpres->point(0) should do what you want with the version of the PHP MapScript that you have. I've fixed it last week at the same time as a couple of other problems... unfortunetely there is some areas of MapScript that we have implemented wrappers for but haven't used yet, and you've found one! The version that's currently in CVS is pretty stable (it behaves well for me at least!), so you could probably update if you want. This would also give you the setProjection() function that you needed. Unfortunately the nightly build on the UMN web site seems to date from the end of July. Did you intentionnally stop it, Steve? Later, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From seano at metavera.com Tue Sep 12 12:04:54 2000 From: seano at metavera.com (Sean O'Hagan) Date: Tue, 12 Sep 2000 15:04:54 -0400 Subject: queryUsingPoint Message-ID: <017401c01cec$561d8a50$0582a8c0@karkalis.com> Thanks to DM and SL for their help on my previous problem. My query did indeed result in one shape close to my specified point. However, I'm now unable to get a multiple result set when I specify either MS_MULTIPLE or $mapscript::MS_MULTIPLE in the call to queryUsingPoint(). Only "1" makes it work. How do I get the constants to be recognized? My perl file is set up as such: #!perl use mapscript; sub myFunctionThatCallsQueryUsingPoint { ... ... } retval = myFunctionThatCallsQueryUsingPoint( arg0, arg1, ... ); ... Thanks alot, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From cnielsen at co.tillamook.or.us Tue Sep 12 12:38:30 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Tue, 12 Sep 2000 12:38:30 -0700 Subject: problem with demo Message-ID: <000301c01cf1$073eb4e0$a14368aa@co.tillamook.or.us> I'm running the demo on NT server IIS I'm getting the following error loadScalebar(): Unknown identifier. (TRANSPARENT):(85) From seano at metavera.com Tue Sep 12 12:40:55 2000 From: seano at metavera.com (Sean O'Hagan) Date: Tue, 12 Sep 2000 15:40:55 -0400 Subject: queryUsingPoint returning incorrect record number?? Message-ID: <017c01c01cf1$5e379190$0582a8c0@karkalis.com> Hello yet again :-) I thought I'd verify that the set of points returned to me with queryUsingPoint matched what I obtained visually using ArcExplorer. The point sets returned by both MapScript and ArcExplorer were: MScr ArcE 2797 2798 2799 2800 2801 2802 2802 2803 2803 2804 2804 2805 2806 2807 2807 2808 2809 2810 2811 2824 I thought perhaps there was a pattern, ie. mapscript was returning the "correct record number minus one". In fact this is what happens when I restrict the tolerance to only produce one point; instead of the correct 2804, I'm getting 2803. However, the last value of the table on the ArcE side blows that theory out of the water. Here's some code snippets: Part of Map File: LAYER NAME mylayer TYPE point TOLERANCEUNITS meters TOLERANCE 100 #this generates one point, set to 1000 generates the ten points shown above STATUS default DATA file_name CLASS SYMBOL 8 SIZE 8 COLOR 255 100 0 END QUERY TEMPLATE dummy END END My call to qUP: $qryResult = $mapfile->queryUsingPoint($point, 1, -1); for (my $i=0; $i < $qryResult->{numresults}; $i++) { my $shpResult = $qryResult->next(); $shapesref->[$i] = $shpResult->{shape}; } Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From steve.lime at dnr.state.mn.us Tue Sep 12 19:34:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 12 Sep 2000 21:34:41 -0500 Subject: queryUsingPoint returning incorrect record number?? Message-ID: Hi: MapServer/MapScript shape indexes start at 0 so that explains the "off by one" problem. The shape index is intended as a key to the xbase and shapes themselves and nothing more. As for that last point, don't know, could be lots of explanations. MapServer/MapScript use a circular buffer, that is, each candidate features distance from the search point is computed and compared to the search tolerance. I certainly wouldn't expect 9 to match and one not to. Usually you see an all or nothing pattern. ArcExplorer could be wrong too, the MapScript id for the last point makes more sense given the previous 9. Care to share the shapefile and script? Steve >>> "Sean O'Hagan" 09/12/00 15:13 PM >>> Hello yet again :-) I thought I'd verify that the set of points returned to me with queryUsingPoint matched what I obtained visually using ArcExplorer. The point sets returned by both MapScript and ArcExplorer were: MScr ArcE 2797 2798 2799 2800 2801 2802 2802 2803 2803 2804 2804 2805 2806 2807 2807 2808 2809 2810 2811 2824 I thought perhaps there was a pattern, ie. mapscript was returning the "correct record number minus one". In fact this is what happens when I restrict the tolerance to only produce one point; instead of the correct 2804, I'm getting 2803. However, the last value of the table on the ArcE side blows that theory out of the water. Here's some code snippets: Part of Map File: LAYER NAME mylayer TYPE point TOLERANCEUNITS meters TOLERANCE 100 #this generates one point, set to 1000 generates the ten points shown above STATUS default DATA file_name CLASS SYMBOL 8 SIZE 8 COLOR 255 100 0 END QUERY TEMPLATE dummy END END My call to qUP: $qryResult = $mapfile->queryUsingPoint($point, 1, -1); for (my $i=0; $i < $qryResult->{numresults}; $i++) { my $shpResult = $qryResult->next(); $shapesref->[$i] = $shpResult->{shape}; } Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From ricmar at pro.via-rs.com.br Wed Sep 13 07:00:06 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Wed, 13 Sep 2000 11:00:06 -0300 Subject: Demo problem Message-ID: <39BF8865.F78954EB@pro.via-rs.com.br> I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I've been trying to make the demo work. I am having trouble with the display of .gif images. They are generated but don?t come up in the screen "Mapserver Demo Interface". When I try to "View Image" in the browser ( Netscape 4.7) the answer is "Not found - The request URL /tmp/DEMO968850649797.gif was not found on this server." I've included the following below: * the forms section of demo_init.html file * demo.map file Many thanks for help Ricardo ------------------------------------ forms section, demo_init.html --------------------------------- ------------------------------------ demo.map ------------------------------------------------------ # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET "/home/httpd/html/ms_demo/symbols/shade.sym" MARKERSET "/home/httpd/html/ms_demo/symbols/marker.sym" LINESET "/home/httpd/html/ms_demo/symbols/line.sym" EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "/home/httpd/html/ms_demo/data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 1 SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" QUERY TEMPLATE "lakespy2.html" END TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" QUERY TEMPLATE "dlgstln2.html" END TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'county_highway_shield' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END # Map File ----------------------------------------------- Ricardo Wagner Martins Procergs BRAZIL email : ricmar at pro.via-rs.com.br ---------------------------------------------- From lrn at zeppo.geosurv.gov.nf.ca Wed Sep 13 07:19:40 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Wed, 13 Sep 2000 11:49:40 -0230 Subject: polygon size and tilemaps Message-ID: <001001c01d8d$a7b9f4b0$0a188bc0@geosurv.gov.nf.ca> Question 1 http://gis.geosurv.gov.nf.ca/mrights/mapdisplay/mapdisplaylab.html (it only works any sense on IE5.0) I have set up mapserver on NT4.0 (DM Solutions compile) using tilemaps to index 1:250 000 map layers. I do not have all layers for all 1:250 000 map sheets and I did not want to have index maps for all 12 layers so I created one index tilemap and used the fields in the .dbf file to list the location of the map layers. When a map layer was not present I left the .dbf field empty but mapserver gives me an error that msOpenSHPFile(): Unable to Access file. () Is there any way around this error? I guess I can fool mapserver but putting in a empty shapefile. Question 1 Several layers on my map are polygons of water bodies and forest area and some of these polygons are quite large with many holes in them. i.e. ocean with thousands of islands, One map sheet has 5000 lakes which are holes in the land polygon. Mapserver seems a little erratic when it comes to filling these polygons with color. It works some times and not others, I am assuming it depends on the current clip window. Is there a limit to a polygon size, points, pieces? Zoom in to the center of the land area on the above URL. Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From cnielsen at co.tillamook.or.us Wed Sep 13 09:01:45 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Wed, 13 Sep 2000 09:01:45 -0700 Subject: mapserver 3.3.011 Message-ID: <000101c01d9b$ea63f690$a14368aa@co.tillamook.or.us> Could someone send me a copy of the mapserver 3.3.011 binary for win32. thanks, Chad Nielsen From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Sep 13 09:01:43 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 13 Sep 2000 12:01:43 -0400 Subject: Strange behavior .... Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F28@s5-ccr-r1> Hello ! Well, things are oging pretty well, but now I've run accross a strange behavior I was hoping someone could explain ... When I map my search results (using php-mapscript as allways), I create atemporary shapefile. This shapefile use geographical coordinates, whereas the rest of the data used to generate the map uses a different projection (lcc to be exact). Now for some reason, results don't seem to show up in the far north (Nunavut) ! Actually, they do show up, but only once I zoom in ! Now, I am *NOT* doing anything to that layer that might do this, the layer is "ON" by default, and that's it. All the Other symbols show up. Actually results in Iqualuit show, but not other smaller Nunavut communities ... Until I zoom in. I'm wondering why this might be, and how to fix it ... I'm guessing the projection conversion might have something to do with it ? But that's out of my area of expertise ... Any ideas ? Thanks, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From assefa1 at yahoo.com Wed Sep 13 09:53:11 2000 From: assefa1 at yahoo.com (Assefa Yewondwossen) Date: Wed, 13 Sep 2000 09:53:11 -0700 (PDT) Subject: mapserver 3.3.011 Message-ID: <20000913165311.3717.qmail@web1302.mail.yahoo.com> There is one available at : http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip Bye --- Chad Nielsen wrote: > Could someone send me a copy of the mapserver > 3.3.011 binary for win32. > thanks, > Chad Nielsen __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From cnielsen at co.tillamook.or.us Wed Sep 13 11:03:03 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Wed, 13 Sep 2000 11:03:03 -0700 Subject: No subject Message-ID: <000301c01dac$dc2f1f30$a14368aa@co.tillamook.or.us> Hi, I just installed the binaries from the dmsolutions site http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip I'm getting the following error: msSaveImage(): Unable to access file. (/usr/local/apache/htdocs/tmp/DEMO968867345301.gif) I'm trying to run the demo with mapserver 3.3.011 on NT Server IIS. Looks like its set up for Apache??? Is there any way to reset the path or do I need a different binary for IIS? Chad Nielsen, GIS Analyst Tillamook County Performance Partnership Tillamook Coastal Watershed Resource Center From danmo at videotron.ca Wed Sep 13 11:49:42 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 13 Sep 2000 14:49:42 -0400 Subject: Strange behavior .... References: <2951561DB3DDD0118FEC00805FFE980504941F28@s5-ccr-r1> Message-ID: <39BFCC46.ACF2C3AD@videotron.ca> JF, We have an application that does something similar to yours: we display a layer of points in LAT/LON on top of a base map in LCC and we noticed the same thing as you. We haven't investigated the problem yet, though... Steve, are you aware of any PROJ.4 limitations that could explain that behavior? It seems to be that LAT/LON points located north of a specific latitude are lost. And the latitude at which points starts to disappear changes depending on the scale of the map: as you zoom in, the line where points start to disappear moves north. Any idea? Daniel "Doyon, Jean-Francois" wrote: > > Hello ! > > Well, things are oging pretty well, but now I've run accross a strange > behavior > I was hoping someone could explain ... > > When I map my search results (using php-mapscript as allways), I create > atemporary shapefile. > This shapefile use geographical coordinates, whereas the rest of the data > used to generate the > map uses a different projection (lcc to be exact). > > Now for some reason, results don't seem to show up in the far north > (Nunavut) ! > Actually, they do show up, but only once I zoom in ! Now, I am *NOT* doing > anything to that layer > that might do this, the layer is "ON" by default, and that's it. All the > Other symbols show up. > Actually results in Iqualuit show, but not other smaller Nunavut communities > ... Until I zoom in. > > I'm wondering why this might be, and how to fix it ... I'm guessing the > projection conversion might > have something to do with it ? But that's out of my area of expertise ... > > Any ideas ? > > Thanks, > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Sep 13 11:48:54 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 13 Sep 2000 14:48:54 -0400 Subject: Strange behavior .... Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F29@s5-ccr-r1> Dan, Yeah, that sounds about right ... Although you're probably using our data :) Could the data itself be the problem ? J.F. > ---------- > From: Daniel Morissette[SMTP:danmo at videotron.ca] > Sent: Wednesday, September 13, 2000 2:49 PM > To: Doyon, Jean-Francois > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: Re: Strange behavior .... > > JF, > > We have an application that does something similar to yours: we display > a layer of points in LAT/LON on top of a base map in LCC and we noticed > the same thing as you. We haven't investigated the problem yet, > though... > > Steve, are you aware of any PROJ.4 limitations that could explain that > behavior? It seems to be that LAT/LON points located north of a > specific latitude are lost. And the latitude at which points starts to > disappear changes depending on the scale of the map: as you zoom in, the > line where points start to disappear moves north. > > Any idea? > > Daniel > > "Doyon, Jean-Francois" wrote: > > > > Hello ! > > > > Well, things are oging pretty well, but now I've run accross a strange > > behavior > > I was hoping someone could explain ... > > > > When I map my search results (using php-mapscript as allways), I create > > atemporary shapefile. > > This shapefile use geographical coordinates, whereas the rest of the > data > > used to generate the > > map uses a different projection (lcc to be exact). > > > > Now for some reason, results don't seem to show up in the far north > > (Nunavut) ! > > Actually, they do show up, but only once I zoom in ! Now, I am *NOT* > doing > > anything to that layer > > that might do this, the layer is "ON" by default, and that's it. All the > > Other symbols show up. > > Actually results in Iqualuit show, but not other smaller Nunavut > communities > > ... Until I zoom in. > > > > I'm wondering why this might be, and how to fix it ... I'm guessing the > > projection conversion might > > have something to do with it ? But that's out of my area of expertise > ... > > > > Any ideas ? > > > > Thanks, > > > > Jean-Francois Doyon > > Internet Service Development and Systems Support > > GeoAccess Division > > Natural Resources Canada > > (613) 992-4902 > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From chetturv at sdhu.moh.gov.on.ca Wed Sep 13 11:51:51 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Wed, 13 Sep 2000 14:51:51 -0400 Subject: Follow-up question to integrating attribute data from relational databases with Map Server Message-ID: Hello everyone, Thanks to Stephen Lime and Daniel Morisette for outlining a strategy for integrating attribute data from RDBMS SQL queries. I have now followed these suggestions and am able to generate temporary .shp, .shx and.dbf files. I am using using a third party utility to do the conversion of database result sets to .dbf format under NT with Visual Basic. However, all I get is a big white square with MapServer. URL link is fine and extent settings seem to be okay. Tried using the sortshp utility to order by a field but it did not help. When I tried to query the shape file in ArcExplorer 1.1, I got an invalid array index message. Any thoughts on how I can try to debug the problem. Thanks, Vinod Chettur Senior Systems Consultant, NHIP (705) 669-1999 From danmo at videotron.ca Wed Sep 13 12:06:12 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 13 Sep 2000 15:06:12 -0400 Subject: No subject References: <000301c01dac$dc2f1f30$a14368aa@co.tillamook.or.us> Message-ID: <39BFD024.C898A84E@videotron.ca> Chad Nielsen wrote: > > I'm getting the following error: > > msSaveImage(): Unable to access file. > (/usr/local/apache/htdocs/tmp/DEMO968867345301.gif) > > I'm trying to run the demo with mapserver 3.3.011 on NT Server IIS. Looks > like its set up for Apache??? It looks to me like you need to edit the IMAGEPATH and IMAGEURL values in the .map file: IMAGEPATH = file path to the temp directory on disk IMAGEURL = corresponding URL on the web server -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Wed Sep 13 12:07:28 2000 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 13 Sep 2000 14:07:28 -0500 (CDT) Subject: FWD: Scaling gray-levels in mapraster.c Message-ID: <200009131907.OAA05089@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 13 Sep 2000 14:58:10 -0400 (EDT) From: Richard White To: mapserver-info at lists.gis.umn.edu Subject: Scaling gray-levels in mapraster.c All the drawXXX() functions in mapraster.c, when creating grey-level color tables, appear to rescale the values to run from 0 to 16*17 = 272. Can you tell me the reason why? The question has arisen while I'm trying to write a drawBSQ() function to incorporate support for aerial-photo type raster imagery into Mapserver, with the images in binary band-sequential (BSQ) format. Incidentally, since we want tiling, and the Arc/Info shape files aren't really intended to work with raster images, I've defined a simple raster tile specification file (giving filename, size, and extent of each tile file) which I access via a reinterpretation of "tileindex" and "tileitem" in the map file Layer object. Dick White ======================================================================== Richard A. White EMS Environment Institute The Pennsylvania State University 2217 Earth-Engineering Sciences Bldg. University Park, PA 16802-6813 Tel. (814) 863-9540 ======================================================================== ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Wed Sep 13 11:49:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 13 Sep 2000 13:49:32 -0500 Subject: Demo problem Message-ID: I'm assuming issues with your temporary directory, does it exist? >>> Ricardo Wagner Martins 09/13/00 09:00AM >>> I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I've been trying to make the demo work. I am having trouble with the display of .gif images. They are generated but don t come up in the screen "Mapserver Demo Interface". When I try to "View Image" in the browser ( Netscape 4.7) the answer is "Not found - The request URL /tmp/DEMO968850649797.gif was not found on this server." I've included the following below: * the forms section of demo_init.html file * demo.map file Many thanks for help Ricardo ------------------------------------ forms section, demo_init.html --------------------------------- ------------------------------------ demo.map ------------------------------------------------------ # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET "/home/httpd/html/ms_demo/symbols/shade.sym" MARKERSET "/home/httpd/html/ms_demo/symbols/marker.sym" LINESET "/home/httpd/html/ms_demo/symbols/line.sym" EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "/home/httpd/html/ms_demo/data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 1 SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" QUERY TEMPLATE "lakespy2.html" END TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" QUERY TEMPLATE "dlgstln2.html" END TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'county_highway_shield' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END # Map File ----------------------------------------------- Ricardo Wagner Martins Procergs BRAZIL email : ricmar at pro.via-rs.com.br ---------------------------------------------- From steve.lime at dnr.state.mn.us Wed Sep 13 12:02:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 13 Sep 2000 14:02:51 -0500 Subject: polygon size and tilemaps Message-ID: > Question 1 >http://gis.geosurv.gov.nf.ca/mrights/mapdisplay/mapdisplaylab.html (it only >works any sense on IE5.0) >I have set up mapserver on NT4.0 (DM Solutions compile) using tilemaps to >index 1:250 000 map layers. I do not have all layers for all 1:250 000 map >sheets and I did not want to have index maps for all 12 layers so I created >one index tilemap and used the fields in the .dbf file to list the location >of the map layers. When a map layer was not present I left the .dbf field >empty but mapserver gives me an error that >msOpenSHPFile(): Unable to Access file. () >Is there any way around this error? I guess I can fool mapserver but putting >in a empty shapefile. There is a compile time option called "IGNORE_MISSING_DATA" that can be enabled before compiling. Other than that empty shapefiles are the only option. >Question 2 >Several layers on my map are polygons of water bodies and forest area and >some of these polygons are quite large with many holes in them. i.e. ocean >with thousands of islands, One map sheet has 5000 lakes which are holes in >the land polygon. Mapserver seems a little erratic when it comes to filling >these polygons with color. It works some times and not others, I am assuming >it depends on the current clip window. Is there a limit to a polygon size, >points, pieces? I've not run into limitations, but then again I may not have the most complex examples. If you could share the sheet in question I could try using it here where memory is not an issue. In general each shape is considered independantly so memory usage is pretty low even with huge polygons. There are no hard limits to polygon parameters. >Zoom in to the center of the land area on the above URL. Can't get it to work under MSIE 5.5 so... >Larry Nolan >St. John's, Newfoundland, Canada >voice (709) 729-2168 >email lrn at zeppo.geosurv.gov.nf.ca Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Wed Sep 13 12:08:31 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 13 Sep 2000 14:08:31 -0500 Subject: Strange behavior .... Message-ID: I'm not a projection expert. One could certainly test PROJ behavior at extremes outside the mapserver using the utlities included in the PROJ distribution. Could also be some data precision/rounding issues at extremes. All cordinates in MapServer are doubles. Could also be limitations in the base projection, or at least how it's implemented in proj? The base data appears to draw ok though, correct? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 09/13/00 01:49PM >>> JF, We have an application that does something similar to yours: we display a layer of points in LAT/LON on top of a base map in LCC and we noticed the same thing as you. We haven't investigated the problem yet, though... Steve, are you aware of any PROJ.4 limitations that could explain that behavior? It seems to be that LAT/LON points located north of a specific latitude are lost. And the latitude at which points starts to disappear changes depending on the scale of the map: as you zoom in, the line where points start to disappear moves north. Any idea? Daniel "Doyon, Jean-Francois" wrote: > > Hello ! > > Well, things are oging pretty well, but now I've run accross a strange > behavior > I was hoping someone could explain ... > > When I map my search results (using php-mapscript as allways), I create > atemporary shapefile. > This shapefile use geographical coordinates, whereas the rest of the data > used to generate the > map uses a different projection (lcc to be exact). > > Now for some reason, results don't seem to show up in the far north > (Nunavut) ! > Actually, they do show up, but only once I zoom in ! Now, I am *NOT* doing > anything to that layer > that might do this, the layer is "ON" by default, and that's it. All the > Other symbols show up. > Actually results in Iqualuit show, but not other smaller Nunavut communities > ... Until I zoom in. > > I'm wondering why this might be, and how to fix it ... I'm guessing the > projection conversion might > have something to do with it ? But that's out of my area of expertise ... > > Any ideas ? > > Thanks, > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Sep 13 12:38:03 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 13 Sep 2000 15:38:03 -0400 Subject: Strange behavior .... Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F2B@s5-ccr-r1> Oh yeah, the base layers all show up the just fine (the ones in lcc). That's a good idea, I'll try a few things with the ocmmand line version of proj see what happens, although I'm even less of a projection specialist than any of you, since I'm actually an IT guy at heart :) J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, September 13, 2000 3:08 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; danmo at videotron.ca > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: Strange behavior .... > > I'm not a projection expert. One could certainly test PROJ behavior at > extremes outside the mapserver using the utlities included in the PROJ > distribution. Could also be some data precision/rounding issues at > extremes. All cordinates in MapServer are doubles. Could also be > limitations in the base projection, or at least how it's implemented in > proj? The base data appears to draw ok though, correct? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Daniel Morissette 09/13/00 01:49PM >>> > JF, > > We have an application that does something similar to yours: we display > a layer of points in LAT/LON on top of a base map in LCC and we noticed > the same thing as you. We haven't investigated the problem yet, > though... > > Steve, are you aware of any PROJ.4 limitations that could explain that > behavior? It seems to be that LAT/LON points located north of a > specific latitude are lost. And the latitude at which points starts to > disappear changes depending on the scale of the map: as you zoom in, the > line where points start to disappear moves north. > > Any idea? > > Daniel > > "Doyon, Jean-Francois" wrote: > > > > Hello ! > > > > Well, things are oging pretty well, but now I've run accross a strange > > behavior > > I was hoping someone could explain ... > > > > When I map my search results (using php-mapscript as allways), I create > > atemporary shapefile. > > This shapefile use geographical coordinates, whereas the rest of the > data > > used to generate the > > map uses a different projection (lcc to be exact). > > > > Now for some reason, results don't seem to show up in the far north > > (Nunavut) ! > > Actually, they do show up, but only once I zoom in ! Now, I am *NOT* > doing > > anything to that layer > > that might do this, the layer is "ON" by default, and that's it. All the > > Other symbols show up. > > Actually results in Iqualuit show, but not other smaller Nunavut > communities > > ... Until I zoom in. > > > > I'm wondering why this might be, and how to fix it ... I'm guessing the > > projection conversion might > > have something to do with it ? But that's out of my area of expertise > ... > > > > Any ideas ? > > > > Thanks, > > > > Jean-Francois Doyon > > Internet Service Development and Systems Support > > GeoAccess Division > > Natural Resources Canada > > (613) 992-4902 > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From ricmar at pro.via-rs.com.br Wed Sep 13 12:58:06 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Wed, 13 Sep 2000 16:58:06 -0300 Subject: Demo problem References: Message-ID: <39BFDC4E.3ED79185@pro.via-rs.com.br> Yes, in part. I notice that the address placed in IMAGEPATH must be the same that I use in Apache directory home , that is, "/home/httpd/html/" so the unique alteration that I made was: IMAGEPATH "/home/httpd/html/tmp/" and works fine. Of course the tmp directory must exist. Thanks again. Ricardo Stephen Lime wrote: > I'm assuming issues with your temporary directory, does it exist? > > >>> Ricardo Wagner Martins 09/13/00 09:00AM >>> > I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I've > been trying to make the demo work. I am having trouble with the display > of .gif images. They are generated but don t come up in the screen > "Mapserver Demo Interface". When I try to "View Image" in the browser ( > Netscape 4.7) the answer is "Not found - The request URL > /tmp/DEMO968850649797.gif was not found on this server." > > I've included the following below: > * the forms section of demo_init.html file > * demo.map file > > Many thanks for help > > Ricardo > > ------------------------------------ forms section, demo_init.html > --------------------------------- > value="/home/httpd/html/ms_demo/demo.map"> > > > > > ------------------------------------ demo.map > ------------------------------------------------------ > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > SHADESET "/home/httpd/html/ms_demo/symbols/shade.sym" > MARKERSET "/home/httpd/html/ms_demo/symbols/marker.sym" > LINESET "/home/httpd/html/ms_demo/symbols/line.sym" > EXTENT 388107.634400379 5203120.88405952 500896.339019834 > 5310243.30613897 > UNITS METERS > SHAPEPATH "/home/httpd/html/ms_demo/data" > IMAGECOLOR 255 255 255 > > # > # Projection definition, consult the PROJ.4 documentation for parameter > discussion > # > #PROJECTION > # "proj=utm" > # "ellps=GRS80" > # "zone=15" > # "north" > # "no_defs" > #END > > # > # Start of web interface definition > # > WEB > IMAGEPATH "/usr/local/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > # LOG "demo.log" > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of reference map > # > REFERENCE > IMAGE graphics/reference.gif > EXTENT 393234.393701263 5205405.16440722 495769.579718949 > 5307959.02579127 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 255 255 > SIZE tiny > END > STYLE 1 > SIZE 50 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of layer definitions > # > > LAYER > NAME county > TYPE POLYGON > STATUS DEFAULT > DATA ctybdpy2 > > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Itasca' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other county in the state > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > END > > LAYER > NAME cities > TYPE POLYGON > DATA mcd90py2 > STATUS ON > CLASSITEM city_name > CLASS > NAME "Cities & Towns" > EXPRESSION /./ > COLOR 255 225 90 > END > END > > LAYER > NAME townships > TYPE POLYLINE > DATA twprgpy3 > STATUS ON > CLASS > SYMBOL 1 > SIZE 2 > NAME 'Townships' > COLOR 181 181 145 > END > END > > LAYER > NAME lakes > TYPE POLYGON > STATUS ON > DATA lakespy2 > > CLASS > NAME 'Lakes & Rivers' > COLOR 49 117 185 > END > > HEADER "lakespy2_header.html" > FOOTER "lakespy2_footer.html" > QUERY > TEMPLATE "lakespy2.html" > END > > TOLERANCE 3 > END # lakes > > LAYER > NAME streams > TYPE LINE > STATUS ON > DATA dlgstln2 > > CLASS > NAME "Streams" > COLOR 49 117 185 > END > > HEADER "dlgstln2_header.html" > FOOTER "dlgstln2_footer.html" > QUERY > TEMPLATE "dlgstln2.html" > END > > TOLERANCE 5 > END # streams > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE LINE > CLASS > COLOR 0 0 0 > END > END # county roads > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE ANNOTATION > LABELITEM "road_name" > CLASS > COLOR 255 255 255 > SYMBOL 'county_highway_shield' > LABEL > MINFEATURESIZE 40 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > END # county road annotation > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE LINE > CLASS > NAME "Roads" > COLOR 0 0 0 > END > END # highways > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE ANNOTATION > LABELITEM "road_num" > CLASSITEM "road_class" > CLASS > EXPRESSION "3" > COLOR 0 0 0 # dummy color > SYMBOL 'state_highway_shield' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "2" > COLOR 0 0 0 # dummy color > SYMBOL 'us_highway_shield' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "1" > COLOR 0 0 0 # dummy color > SYMBOL 'interstate_shield' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > END # highway annotation > > LAYER > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS ON > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > COLOR -1 -1 -1 > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END > END > > END # Map File > > ----------------------------------------------- > Ricardo Wagner Martins > Procergs > BRAZIL > email : ricmar at pro.via-rs.com.br > ---------------------------------------------- From steve.lime at dnr.state.mn.us Wed Sep 13 13:48:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 13 Sep 2000 15:48:55 -0500 Subject: Scaling gray-levels in mapraster.c Message-ID: Pete, thanks for the clarification. Support for GD-1.8, and hence PNG/JPEG is due out later this week if I can clear up a few other issues that have popped up this afternoon. However, GD is still limited to paletted images so there is little reason to change much yet. No word on a full-blown new version of GD with 24-bit output. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Pete Olson 09/13/00 03:27PM >>> Four bit images run from 0-15 and are scaled into an 8:8:8 color space by multiplying by 17 giving black at 0:0:0 and white at 255:255:255. There is no 16. The reasons are as Steve notes, to conserve colors for other uses and limitations of the eye. Some experts claim between 5 & 6 bit accuracy in the eye. I have found that the USGS 1 meter doq data doesn't benefit much, if at all, by using more bits. I have seen other data that does benefit more from an additional bit or two, notably some of the satellite weather imagery, and also some more recent air photo data. The 256 color limitation was based on GIF file format and typical display color resolution; perhaps neither are a constraint anymore (Steve... Is PNG implemented? 24 bit?) and better greyscale resolution should be added. Pete Olson Minnesota Land Management Information Center Stephen Lime wrote: > > I'm not sure about the upper 272 limit, but I know the rationale behind the > resampling to 4-bit data has to do with the number of greyscale values > the human eye can distinguish, which is 16. I've been working with a > bunch of DOQ images and haven't noticed any degredation of output > images due to the bining. It also saves valuable colors for annotation and > feature rendering. I'm hoping the actual author of the TIFF code might > have a bit more insight. > > I can understand the use of BSQ images, but not your tiling implementation. > MapServer already supports image tiliing, can you explain what you're up > to? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Richard White 09/13/00 01:58PM >>> > All the drawXXX() functions in mapraster.c, when creating grey-level > color tables, appear to rescale the values to run from 0 to 16*17 = > 272. Can you tell me the reason why? > > The question has arisen while I'm trying to write a drawBSQ() function > to incorporate support for aerial-photo type raster imagery into > Mapserver, with the images in binary band-sequential (BSQ) format. > Incidentally, since we want tiling, and the Arc/Info shape files aren't > really intended to work with raster images, I've defined a simple raster > tile specification file (giving filename, size, and extent of each tile > file) which I access via a reinterpretation of "tileindex" and > "tileitem" in the map file Layer object. > > Dick White > > ======================================================================== > Richard A. White > EMS Environment Institute > The Pennsylvania State University > 2217 Earth-Engineering Sciences Bldg. > University Park, PA 16802-6813 > > Tel. (814) 863-9540 > ======================================================================== From seano at metavera.com Wed Sep 13 15:41:54 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 13 Sep 2000 18:41:54 -0400 Subject: LDFLAGS Message-ID: <02be01c01dd3$d125bc30$0582a8c0@karkalis.com> Hello: Could someone point me in the right direction to find out what LDFLAGS does? The best I can determine sofar is that it passes flags to lex(1). However, I've also read that the LDFLAGS macro can be redefined. While compiling mapscript 3.3.011 with PHP3 we got a message saying that to enable PHP extensions we have to add -Wl to the LDFLAGS line of the makefile. Any tips? Thanks very much, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From seano at metavera.com Wed Sep 13 15:51:59 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 13 Sep 2000 18:51:59 -0400 Subject: LDFLAGS Message-ID: <02c601c01dd5$39ae07c0$0582a8c0@karkalis.com> Of course I meant "ld" and not "lex"... :-) ... Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From danmo at videotron.ca Wed Sep 13 17:36:52 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 13 Sep 2000 20:36:52 -0400 Subject: LDFLAGS References: <02be01c01dd3$d125bc30$0582a8c0@karkalis.com> Message-ID: <39C01DA4.820C81CF@videotron.ca> Sean O'Hagan wrote: > > Hello: > > Could someone point me in the right direction to find out what LDFLAGS does? > The best I can determine sofar is that it passes flags to lex(1). However, > I've also read that the LDFLAGS macro can be redefined. > > While compiling mapscript 3.3.011 with PHP3 we got a message saying that to > enable PHP extensions we have to add -Wl to the LDFLAGS line of the > makefile. > This warning message applies to you only if you are using PHP as a CGI (not as an Apache module) but you may get it all the time. It usually gives you a flag to add to the PHP CGI link command to allow the use of shared libraries in your PHP executable. It comes from a test that I borrowed from a compilation script that came with php-3.0.14 for dl() modules, so my explanation is based on my understanding of it and I may not be 100% right. On a Linux system, for instance, it tells you that you need to add "-rdynamic" to the LDFLAGS in the main PHP makefile and then recompile your PHP CGI executable. If you tried to use PHP as a CGI with a PHP executable not compiled with "-rdynamic" then you would get errors when you call 'dl("php_mapscript.so");' because your executable is not able to support loading of shared libraries. I've been told that on *BSD systems, the value to add to LDFLAGS is "-export-dynamic" ... I don't know about the other OS's, but "-Wl" does not seem to make much sense. I hope that helps, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Ross.Searle at dnr.qld.gov.au Wed Sep 13 21:43:30 2000 From: Ross.Searle at dnr.qld.gov.au (Ross.Searle at dnr.qld.gov.au) Date: Thu, 14 Sep 2000 14:43:30 +1000 Subject: Savequery - Queryfile Message-ID: Steve or anyone else who knows, Do you have any example sites that use the save query functionality. If not, is there any chance of getting a bit of an explanation of how this functions. Thanks Ross ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From lyndon.zimmermann at adelaide.edu.au Wed Sep 13 23:23:04 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 14 Sep 2000 15:53:04 +0930 Subject: Mapserver use in Australia Message-ID: <39C06EC8.2A09C0AF@adelaide.edu.au> Greetings, BRS in Canberra suggested Mapserver for the "Biomass Energy Atlas for Australia" project we're jointly undertaking. We are to develop a server side web delivered and CD delivered version, and I'm hoping this can be one and the same. I'm trying to assess its suitability, extent of use, and preferred scripting language(s). Who is using it downunder? Please provide URLs of projects. How suitable is it for development of free distribution browsers? Oz and Non-Oz responses would be appreciated for this one. Regards, Lyndon Zimmermann -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Sep 14 13:15:09 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 14 Sep 2000 16:15:09 -0400 Subject: Symbols Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F35@s5-ccr-r1> Hello ! Well, I'm looking at them, but I just don't get it. I mean the symbol definitions, and how they work. Right now I'm worried with lines. I need to create lines for International Boundaries, Provicial/Territorial Boundaries and for the Greenland Dividing Line. I know what they're suppose to look like, but I'm really not sure how to transform that into a bunch of numbers ! Could some explain exactly how this works ? I would need something like : -- - -- (International) -- - - -- (Provincial/Territorial) -- -- -- (Dividing Line) Also exactly how would TrueType lines work ? Maybe I could create a font ... Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From cameron at socialchange.net.au Thu Sep 14 15:22:54 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 15 Sep 2000 09:22:54 +1100 Subject: Mapserver use in Australia References: <39C06EC8.2A09C0AF@adelaide.edu.au> Message-ID: <39C14FBE.A51175C6@socialchange.net.au> Hello Lyndon, There are a number of people using mapserv in Australia. In particular, people using mapserv to serve maps to middleware which mixes layers of maps from different locations and then resubmits it to the web as a gif. See http://webmap.socialchange.net.au for a link to a few examples. So yes, I consider mapserv suitable for what you are describing. Feel free to call and discuss further if you like. Details below. Lyndon Zimmermann wrote: > > Greetings, > > BRS in Canberra suggested Mapserver for the "Biomass Energy Atlas for > Australia" project we're jointly undertaking. We are to develop a server > side web delivered and CD delivered version, and I'm hoping this can be > one and the same. I'm trying to assess its suitability, extent of use, > and preferred scripting language(s). > > Who is using it downunder? Please provide URLs of projects. > > How suitable is it for development of free distribution browsers? Oz > and Non-Oz responses would be appreciated for this one. > > Regards, > > Lyndon Zimmermann > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > Biomass Energy Atlas for Australia Co-ordinator > University of Adelaide Agronomy and Farming Systems > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://online.socialchange.net.au From Robin.Ellis at dnr.qld.gov.au Thu Sep 14 16:03:21 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Fri, 15 Sep 2000 09:03:21 +1000 Subject: fonts & legends Message-ID: Does anybody know of a simple way to define different fonts to be used for labels in a legend? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From johnh at erin.gov.au Thu Sep 14 16:08:57 2000 From: johnh at erin.gov.au (John Hockaday) Date: Fri, 15 Sep 2000 10:08:57 +1100 (EST) Subject: Mapserver use in Australia Message-ID: <200009142308.KAA08151@eos.erin.gov.au> Hi Lyndon, We have used Mapserv as one of the backends for the Australian Atlas (AA). You can see it working at the Queenland node, http://acaweb.dpi.qld.gov.au/atlas/atlaspage.html . You could also try the Department of Natural Resources at URL: http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/maps/mapdisplay.html This one uses an applet that is sometimes a bit flaky on Netscape browsers. There are two reasons why we use Mapserv it as a backend and not the full front end: 1. We have designed the AA so that it can use Mapserv or Spatial Database Engine API as the backend (At the time mapserv didn't connect to SDE but now it does). This meant that we had to have code that could be translated to both GIS servers. We also wanted the front end to look the same no matter what GIS server was being used. 2. (The main reason.) We wanted to allow the users to change the colours and order of the layers as well as choose which layers they wanted to query. To do this we created a temporary XML file that in turn dynamically created a .map file for each user. The problem with using this method is that we don't use all the funtionality of the mapserv software as we were limited with the SDE API. We couldn't allow funtionality in one and not the other. I have been looking at MapXtreme, ArcIMS and Mapserv for our National River Health Database. It appears to me that Mapserv is much easier to configure the front end HTML interface, because it uses a template, as well as the layers that are displayed, because of the .map files. It is fast for a cgi-bin script. (I think that java servlets may be quicker after the initial download but maybe that can be in the future of Mapserv.) I have also found that this list is more helpful than the software support for the other two products. I get responses within two working days and solutions within a week. Others seem to get answers within a day or so. (I seem to ask questions that need a lot of thinking.) ;-) The only limitation that I can see with Mapserv is that the web users can't change the colours and symbols of the layers. This can be easily overcome by dynamically generating the .map files (as we do with the AA) or maybe using the PERL package, mapscript. (Hopefully someone who knows about mapsrcipt can answer this.) As for your CD product, I can't answer that but I do know that you can call indivudual c scripts that allow you to get an image, shp2imag, and query the information, (I can't remember what this one is called.). You may have problems with the "C" code working on different platforms and operating systems. Maybe someone else can answer that question. In summary I would suggest that Mapserv is a excellent product that is constantly being improved. It allows single and multiple feature querying, layers to switch on and off at different scales, annotation, true type fonts, symbology, different line types and many options for displaying the map. I would thoroughly suggest that you have a good look at this product for WWW-GIS mapping. I've been in that game since 1994 and I think that this is very good. Johnh > Date: Thu, 14 Sep 2000 15:53:04 +0930 > From: Lyndon Zimmermann > Greetings, > > BRS in Canberra suggested Mapserver for the "Biomass Energy Atlas for > Australia" project we're jointly undertaking. We are to develop a server > side web delivered and CD delivered version, and I'm hoping this can be > one and the same. I'm trying to assess its suitability, extent of use, > and preferred scripting language(s). > > Who is using it downunder? Please provide URLs of projects. > > How suitable is it for development of free distribution browsers? Oz > and Non-Oz responses would be appreciated for this one. > > Regards, > > Lyndon Zimmermann > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > Biomass Energy Atlas for Australia Co-ordinator > University of Adelaide Agronomy and Farming Systems > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html > > > From nwerneck at yahoo.com.br Fri Sep 15 06:12:57 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Fri, 15 Sep 2000 10:12:57 -0300 Subject: TIFF Message-ID: <200009151315.IAA09853@lists.gis.umn.edu> How do I configure my mapserver (orr whoever I have to configure) to export TIFF or JPEG images? -- Nicolau _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From steve.lime at dnr.state.mn.us Fri Sep 15 09:03:11 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 15 Sep 2000 11:03:11 -0500 Subject: TIFF Message-ID: It can't do tiff or jpeg output only GIF or PNG depending on version. Actually JPEG output is forthcoming with 3.3.012 which is due out on Monday. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/15/00 08:12AM >>> How do I configure my mapserver (orr whoever I have to configure) to export TIFF or JPEG images? -- Nicolau _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From b-8 at gmx.de Fri Sep 15 15:19:23 2000 From: b-8 at gmx.de (b-8 at gmx.de) Date: Sat, 16 Sep 2000 00:19:23 +0200 (MEST) Subject: query Message-ID: <29002.969056363@www14.gmx.net> Hi, is it possible to do a query of the type '[attribute] < 47' ? I'm using itemquery for a string search in my app, but know I need to search for that kind of stuff ... thanks in advance Michael -- Sent through GMX FreeMail - http://www.gmx.net From seano at metavera.com Sat Sep 16 14:49:18 2000 From: seano at metavera.com (Sean O'Hagan) Date: Sat, 16 Sep 2000 17:49:18 -0400 Subject: symbol files and PIXMAP causing GD_ERROR Message-ID: <042801c02027$f6e7e5a0$0582a8c0@karkalis.com> Hello list: We recently migrated our mapping server from NT to FreeBSD. Mapserver and mapscript are working fine so far except for additions I had made to the symbol files. These additions had been working for a while on the NT system, but I had to remove them to get mapserver to work on FreeBSD. I'm sure it's something fairly simple, but I've tried almost every configuration in the symbol file to no avail. These are the nefarious lines (as soon as they're removed, everything works again): from marker.sym: ... Symbol Name 'mvmarker' Type PIXMAP Image 'mvmarker.gif' # (I've tried with no quotes, double quotes, ./mvmarker.gif) Transparent 1 # (I've tried commenting this out) END ... and this is my very simple test file: use mapscript; $map = new mapObj('./test.map'); print "Error: $mapscript::ms_error->{code}\n"; exit; I get error code 8, ie. GD_ERROR. Thanks for your help, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From berend.veldkamp at aris.nl Mon Sep 18 07:47:34 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Mon, 18 Sep 2000 16:47:34 +0200 Subject: Annotate streets Message-ID: <39C62B06.103CF918@aris.nl> Hi, Has anyone succeeded in annotating streets? I mean, put labels on a map that follow the general direction of the street. I know I can use angleitem, and calculate an angle in advance, but this won't work for complex streets that are only partially on the map. Can it be done with mapscript? Thanks, Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From steve.lime at dnr.state.mn.us Mon Sep 18 08:06:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 18 Sep 2000 10:06:02 -0500 Subject: Annotate streets Message-ID: Depends what you mean by success. Do you have examples of where the current algorithmn breaks down? Street annotation is based on what's visible, so if on a portion of a street is on the map the only that portion is used to place labels and compute angles. Not sure what else would make sense. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Berend Veldkamp 09/18/00 09:47AM >>> Hi, Has anyone succeeded in annotating streets? I mean, put labels on a map that follow the general direction of the street. I know I can use angleitem, and calculate an angle in advance, but this won't work for complex streets that are only partially on the map. Can it be done with mapscript? Thanks, Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From steve.lime at dnr.state.mn.us Mon Sep 18 08:07:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 18 Sep 2000 10:07:47 -0500 Subject: query Message-ID: Nope. Item queries only support regex matches. I have no desire to write an SQL parser so I've left that to other systems like the perl Xbase module and others. You can link these types of queries and mapping using mapscript. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/15/00 05:19PM >>> Hi, is it possible to do a query of the type '[attribute] < 47' ? I'm using itemquery for a string search in my app, but know I need to search for that kind of stuff ... thanks in advance Michael -- Sent through GMX FreeMail - http://www.gmx.net From Niels at nieuwland.nl Tue Sep 19 04:06:42 2000 From: Niels at nieuwland.nl (Niels van Dijk) Date: Tue, 19 Sep 2000 13:06:42 +0200 Subject: Creating objects on the fly from the database Message-ID: <4.3.2.7.0.20000919130556.00aef590@192.168.216.254> Hi All, I'm a newbie with the Mapserver, so I'm sorry if i'm asking things allready discussed, but I couldn't find anything about this in the Archives. - I want to add data from a database containing geographical coordinates and some label dynamically to the map, to create so called event themes. Can this be done? - I'd like to be able to use the coordinates of the map to dynamically create point on the map and add these to a database. thanks in advance Niels van Dijk From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Sep 19 06:54:52 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 19 Sep 2000 09:54:52 -0400 Subject: Creating objects on the fly from the database Message-ID: <2951561DB3DDD0118FEC00805FFE980504941F3F@s5-ccr-r1> You sure can. Just use mapscript (For perl or PHP), to create a temporary shapefile that will be used as a layer in the end product. You would use for instance perl to interface with the database, and use the appropriate mapscript functions to put this data into a temporary shapefile. You then define the layer as needed, using the said shapefile as the data source. If you need to, you can use the PROJ.4 support to do on-the-fly projection conversion if say your DB dataset returns geographical coordinates, but your base layers are ins some other projection (Which they most likely would be). Hope this helps ! J.F. > ---------- > From: Niels van Dijk[SMTP:Niels at nieuwland.nl] > Sent: Tuesday, September 19, 2000 7:06 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Creating objects on the fly from the database > > Hi All, > I'm a newbie with the Mapserver, so I'm sorry if i'm asking things > allready > discussed, but I couldn't find anything about this in the Archives. > - I want to add data from a database containing geographical coordinates > and some label dynamically to the map, to create so called event themes. > Can this be done? > - I'd like to be able to use the coordinates of the map to dynamically > create point on the map and add these to a database. > > thanks in advance > Niels van Dijk > From b-8 at gmx.de Tue Sep 19 14:58:01 2000 From: b-8 at gmx.de (b-8 at gmx.de) Date: Tue, 19 Sep 2000 23:58:01 +0200 (MEST) Subject: query - solution References: Message-ID: <2589.969400681@www9.gmx.net> okay, I was playing around a bit and found a possible way to go. I now have a form containing the query I want to use in a field like that , which overwrites the existing query-expression in my mapfile for the layer called 'lakes'. Then I do a spatial query (nquery) with to do the query for the currently shown map ... To query all the features on the map, I just have to set the value of "imgext" and "imgbox" to "", so I get the whole list (in my case) The whole appl can be seen at http://resac.gis.umn.edu/lakebrowser Regards Michael > Nope. Item queries only support regex matches. I have no desire to write > an > SQL parser so I've left that to other systems like the perl Xbase > module and > others. You can link these types of queries and mapping using > mapscript. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 09/15/00 05:19PM >>> > Hi, > > is it possible to do a query of the type '[attribute] < 47' ? > I'm using itemquery for a string search in my app, but know > I need to search for that kind of stuff ... > > thanks in advance > Michael > > -- > Sent through GMX FreeMail - http://www.gmx.net > > -- Sent through GMX FreeMail - http://www.gmx.net From Robin.Ellis at dnr.qld.gov.au Tue Sep 19 15:55:56 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Wed, 20 Sep 2000 08:55:56 +1000 Subject: itemnquery not returning all results Message-ID: I'm having difficulty getting Mapserver to return all matching records from a shapefile when using 'itemnquery'. I use the following code to run the process: //seqbbggis002/cgi-bin/ms_3.3.003?&map=/data4/WWW/projects/burnett/mgr/qdrag .map&mode=itemnquery&item=geol&value=^Clc$&qlayer=ardsoilsinfo Often i'll get only a small subset of the intended records returned, or (more distressingly) no matching records found for some valid values. I can simulate the same types of queries on the shapefiles in Arcview and have no difficulties, so I'm assuming I have a mapserver problem and not a shapefile error. Can anybody shed some light on what I might be doing wrong? We're using version 3.3003 Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From Jonathon.Root at agso.gov.au Tue Sep 19 16:47:40 2000 From: Jonathon.Root at agso.gov.au (Jonathon.Root at agso.gov.au) Date: Wed, 20 Sep 2000 10:47:40 +1100 Subject: Image processing and mapserver Message-ID: <52113C81E9ACD31182D40060B0570D9B11F239@agsomail1.agso.gov.au> Mapserverers; At AGSO we've been playing around with integrating some image processing capability with mapserver (see for eg http://www.agso.gov.au/map/pilbara/), adding simple sun angle, palette, enhancement options - is anybody else doing this sort of thing, or interested? We don't want to reinvent the wheel if someone has a solution already. We're also thinking of integrating some satellite image processing options (see for eg http://www.agso.gov.au/marine/uci/imagery/ - links to application in the lower half of the page) Regards, Jonathon Root Australian Geological Survey Organisation From Robin.Ellis at dnr.qld.gov.au Tue Sep 19 18:34:40 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Wed, 20 Sep 2000 11:34:40 +1000 Subject: itemnquery not returning all results Message-ID: Sorry to bother you all, I had a map extent problem. Rob > -----Original Message----- > From: Ellis Robin (Bundaberg) > Sent: Wednesday, 20 September 2000 8:56 > To: MapSever Users (E-mail) > Subject: itemnquery not returning all results > > I'm having difficulty getting Mapserver to return all matching records > from a shapefile when using 'itemnquery'. I use the following code to run > the process: > > //seqbbggis002/cgi-bin/ms_3.3.003?&map=/data4/WWW/projects/burnett/mgr/qdr > ag.map&mode=itemnquery&item=geol&value=^Clc$&qlayer=ardsoilsinfo > > Often i'll get only a small subset of the intended records returned, or > (more distressingly) no matching records found for some valid values. > > I can simulate the same types of queries on the shapefiles in Arcview and > have no difficulties, so I'm assuming I have a mapserver problem and not a > shapefile error. > > Can anybody shed some light on what I might be doing wrong? > > We're using version 3.3003 > > Thanks > > Rob > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4131 5771 > fax: 07 4131 5823 > Robin.Ellis at dnr.qld.gov.au > ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From vatsavai at cs.umn.edu Wed Sep 20 07:21:07 2000 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 20 Sep 2000 09:21:07 -0500 (CDT) Subject: Image processing and mapserver In-Reply-To: <52113C81E9ACD31182D40060B0570D9B11F239@agsomail1.agso.gov.au> from "Jonathon.Root@agso.gov.au" at "Sep 20, 2000 10:47:40 am" Message-ID: <200009201421.JAA01002@plato.cs.umn.edu> [Charset iso-8859-1 unsupported, filtering to ASCII...] > Mapserverers; > > At AGSO we've been playing around with integrating some image processing > capability with mapserver (see for eg http://www.agso.gov.au/map/pilbara/), > adding simple sun angle, palette, enhancement options - is anybody else > doing this sort of thing, or interested? We don't want to reinvent the wheel > if someone has a solution already. We're also thinking of integrating some > satellite image processing options (see for eg > http://www.agso.gov.au/marine/uci/imagery/ - links to application in the > lower half of the page) > > Regards, > > Jonathon Root > Australian Geological Survey Organisation > Hi Jonathon Good to know about your interst in integrating image processing functionality into mapserver. We are also doing similar kind of work. We have developed a generic binary image (BIP/BIL/BSQ) access library and a geospatial analysis module that go along with mapserver. Our intrest is to define a generic frame work where in users/developers can easily add more application specific fuctionality into mapserver. You can have a look at http://terrasip.gis.umn.edu/projects/egis/avhrr/ to get an idea of new raster GIS capabilities in mapserver. Any suggestions are welcome. Thanks Raju ----- http://terrasip.gis.umun.edu/ University of Minnesota. From danmo at videotron.ca Wed Sep 20 12:30:16 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 20 Sep 2000 15:30:16 -0400 Subject: MapScript and JSP's Message-ID: <39C91048.6BBFC113@videotron.ca> Hi, Just wondering if anyone has tried to use SWIG to generate a Java version of MapScript... and built any kind of application using it. If so, then I would be interested in some feedback on stability, performance, ease of use, supported platforms, etc. Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lyndon.zimmermann at adelaide.edu.au Wed Sep 20 18:50:43 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 21 Sep 2000 11:20:43 +0930 Subject: MapServer standalone References: <39C91048.6BBFC113@videotron.ca> Message-ID: <39C96973.F28AD942@adelaide.edu.au> Greetings again, I'm evaluating a variety of internet mapserver applications for use in the Biomass Energy Atlas of Australia project. UMN MapServer is one we're considering. We have a requirement for a standalone operation option - lots of our client group are "off the information superhighway" through remoteness and high telecommunications costs. I would like to deliver a product consistent with the internet delivered version (also saves duplicate development). Any clues as to how feasible this is? Regards, Lyndon Z -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html From syurman at mindspring.com Wed Sep 20 19:45:30 2000 From: syurman at mindspring.com (Sara Yurman) Date: Wed, 20 Sep 2000 22:45:30 -0400 Subject: MapServer standalone References: <39C91048.6BBFC113@videotron.ca> <39C96973.F28AD942@adelaide.edu.au> Message-ID: <39C97649.C76EEC8A@mindspring.com> Hi Lyndon, This should work fine. Give them Apache, and run it as a localhost. We've done this for both Windows and *nix platforms with great success. We work specifically with Apache because it is simple to set up for these situations and demands a minimum of resources. We even had one box running it with 16 MB of RAM (text only, but it ran great!). Hope that helps, Sara Lyndon Zimmermann wrote: > > Greetings again, > > I'm evaluating a variety of internet mapserver applications for use in the > Biomass Energy Atlas of Australia project. UMN MapServer is one we're > considering. We have a requirement for a standalone operation option - > lots of our client group are "off the information superhighway" through > remoteness and high telecommunications costs. I would like to deliver a > product consistent with the internet delivered version (also saves > duplicate development). > > Any clues as to how feasible this is? > > Regards, > > Lyndon Z > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > Biomass Energy Atlas for Australia Co-ordinator > University of Adelaide Agronomy and Farming Systems > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: text/x-vcard Size: 326 bytes Desc: Card for Sara Yurman URL: From christian at gottschling.net Thu Sep 21 22:59:19 2000 From: christian at gottschling.net (Christian) Date: Fri, 22 Sep 2000 07:59:19 +0200 Subject: Labeling dynamically, Support in germany? Message-ID: <4.3.2.7.0.20000922075713.00afc340@ferklin> Hello, I have a mapscript/php running now and we want to label a map dynamically with some "bars" created on the fly out of a database. Has somebody already done some experiments with this? Is here somebody that could provide us with commercial/professional service within Germany? Many thanks, Christian -- christian From frank.koormann at intevation.de Fri Sep 22 03:02:01 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 22 Sep 2000 12:02:01 +0200 Subject: Labeling dynamically, Support in germany? In-Reply-To: <4.3.2.7.0.20000922075713.00afc340@ferklin>; from christian@gottschling.net on Fri, Sep 22, 2000 at 07:59:19AM +0200 References: <4.3.2.7.0.20000922075713.00afc340@ferklin> Message-ID: <20000922120201.A12853@cheops.usf.Uni-Osnabrueck.DE> * Christian (christian at gottschling.net) [000922 09:29]: > Hello, > I have a mapscript/php running now and we want to label a map dynamically > with some "bars" created on the fly out of a database. Has somebody already > done some experiments with this? > > Is here somebody that could provide us with commercial/professional service > within Germany? > Yes, the Intevation GmbH can provide professionel service for the MapServer in Germany: Intevation is the maintainer of the FreeGIS project (http://freegis.org), which aims to analyse and link all Free GIS Software. We also provide a CD with the highlights preconfigured for Linux. The MapServer is on the CD. I published recently an article about the MapServer in the german LinuxMagazin (09/2000 pp. 99), which can be read online: http://www.linux-community.de/News/story?storyid=135 Do not hesitate to contact me by e-mail. Kind regards, Frank Koormann -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From danmo at videotron.ca Fri Sep 22 07:19:56 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 22 Sep 2000 10:19:56 -0400 Subject: Labeling dynamically, Support in germany? References: <4.3.2.7.0.20000922075713.00afc340@ferklin> Message-ID: <39CB6A8C.9E218BF2@videotron.ca> Christian wrote: > > Hello, > I have a mapscript/php running now and we want to label a map dynamically > with some "bars" created on the fly out of a database. Has somebody already > done some experiments with this? > Christian, I'm assuming that you want to draw vertical bars as a symbol at point locations, with a bar height defined by an attribute from the database, right? If that's what you want to do, then I don't think there is an automated way to do it in MapServer. However, with MapScript, you can dynamically create shapes and draw them on top of your map. In this case you would use the rectObj's draw() method. You would also have to add a layer to your map with the classes that you want to use to draw your bars. After calling $map->draw(), you would use PHP to retrieve the points from your database, and for each point: - calculate the location and size of the bar: (x1,y1)-(x2,y2) - create a rectObj and call its draw method: $rect = ms_new_Rect(); $rect->setExtent($x1, $y1, $x2, $y2); $rect->draw($map, $layer, $img, "class_name", ""); Now, this may not work with older versions of PHP MapScript as there was an unitialized variable in the rect->draw() method that I just fixed. The version 3.3.012 that will be released in the next days should be fine though. > Is here somebody that could provide us with commercial/professional service > within Germany? > We (DM Solutions Group, http://www.dmsolutions.on.ca/) do that kind of things (and more!)... developing/supporting Open Source stuff is fun, but we also have to pay the bills! :) We would probably not go on site in Germany (even though I would not mind going :), but with the wonders of the Internet, it does not really matter where we all are... mostly for web development. We have clients all over Canada and we don't travel on site all the time! Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From danmo at videotron.ca Fri Sep 22 07:47:05 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 22 Sep 2000 10:47:05 -0400 Subject: Labeling dynamically, Support in germany? References: <4.3.2.7.0.20000922075713.00afc340@ferklin> <20000922120201.A12853@cheops.usf.Uni-Osnabrueck.DE> Message-ID: <39CB70E9.7016DF76@videotron.ca> Frank Koormann wrote: > > I published recently an article about the MapServer in the > german LinuxMagazin (09/2000 pp. 99), which can be read online: > http://www.linux-community.de/News/story?storyid=135 > Is there an English version somewhere by any chance? :) -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From frank.koormann at intevation.de Fri Sep 22 08:28:54 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 22 Sep 2000 17:28:54 +0200 Subject: Labeling dynamically, Support in germany? In-Reply-To: <39CB70E9.7016DF76@videotron.ca>; from danmo@videotron.ca on Fri, Sep 22, 2000 at 10:47:05AM -0400 References: <4.3.2.7.0.20000922075713.00afc340@ferklin> <20000922120201.A12853@cheops.usf.Uni-Osnabrueck.DE> <39CB70E9.7016DF76@videotron.ca> Message-ID: <20000922172854.A18846@cheops.usf.Uni-Osnabrueck.DE> Hi Daniel: * Daniel Morissette (danmo at videotron.ca) [000922 16:44]: > Frank Koormann wrote: > > > > I published recently an article about the MapServer in the > > german LinuxMagazin (09/2000 pp. 99), which can be read online: > > http://www.linux-community.de/News/story?storyid=135 > > > > Is there an English version somewhere by any chance? :) > Well, if I had the time ... OK, now serious: At this time only one of the online translators (listed at http://www.babelfish.org) can serve you with an English version. I had a quick test with altavista a few minutes ago and uhmm, it is readable :). But we plan to write brief first-step-in "tutorials" for the packages which are on the FreeGIS CD so sometime in the future a proofread translation will be available. A brief abstract: The article is in the community section of the magazine, so it is written for programmers, to draw their attention on the relatively new field of online mapping and just to try out the mapserver (Although I got some response from people saying the MapServer supply their needs perfectly :). Only the basic features of the MapServer and the major keys of the map file are described by an example based on the ms33 demo. Mapscript etc. are mentioned by an outlook. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From bertha_bonita at yahoo.com Sat Sep 23 15:08:24 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Sat, 23 Sep 2000 15:08:24 -0700 (PDT) Subject: Display Query Results Message-ID: <20000923220824.25916.qmail@web4205.mail.yahoo.com> Hello List: in My file.map i have this: LAYER NAME basalt TYPE POINT STATUS ON Data/home/basalt TOLERANCE 20 CLASS NAME "basalt" SIZE 4 COLOR 0 255 0 SYMBOL 4 END QUERY TEMPALTE basalt.html END END when i run mapserver, i obtain certain points on a layer, but when i want obtain information about one specific point, give me a error.. msQueryUsingPoint():Search returned no result. No matching record(s) found. but in others points, of the same layer, i reallly can obtain information, that''s works good!, i don't understand what's appening..!!!... in fact, i changed the TOLERANCE, but not is the solution. somebody can give an advice please??.. Thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From kafka at email.cz Mon Sep 25 04:20:10 2000 From: kafka at email.cz (Stepan Kafka) Date: Mon, 25 Sep 2000 13:20:10 +0200 Subject: adding points to shapefile In-Reply-To: <000701bffcd9$eddd0150$c238b2d0@bob> Message-ID: <000301c026e2$90d8de10$fb01a8c0@gis2.oku-kh.cz> Can anybody help me? I am trying to add points to existing shapefile via PHP mapscript module: When I create a new shapefile with $myFile = ms_newShapeFileObj( $myFileName, MS_SHP_POINT); and then add point, everything is OK, but when I reopen this shapefile with $myFile = ms_newShapeFileObj( $myFileName, -1); and try to add a new point the same way, nothing adds here. Where is the mistake, please? Thank you Stepan Kafka -------------- next part -------------- An HTML attachment was scrubbed... URL: From danmo at videotron.ca Mon Sep 25 06:42:10 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 25 Sep 2000 09:42:10 -0400 Subject: adding points to shapefile References: <000301c026e2$90d8de10$fb01a8c0@gis2.oku-kh.cz> Message-ID: <39CF5632.3D4240FF@videotron.ca> > Stepan Kafka wrote: > > and then add point, everything is OK, but when I reopen this shapefile > with > > $myFile = ms_newShapeFileObj( $myFileName, -1); > > and try to add a new point the same way, nothing adds here. Where is > the mistake, please? > Stepan, The current implementation of MapScript does not allow update of existing files. You can only open an existing file for read access, or create a new (empty) one for write. Steve: Is there anything in MapServer itself that would break if we added update access (append only, not random update) as a 3rd option? I haven't tried it, but from the shapelib point of view, it would probably be as simple as using the "rb+" access string in the call to SHPOpen(). -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From shawatw at Princeton.EDU Mon Sep 25 09:48:38 2000 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Mon, 25 Sep 2000 12:48:38 -0400 Subject: ms_3_3_011-win32 Message-ID: <3.0.32.20000925124836.01354758@imap.princeton.edu> I am trying to install mapserver on my NT machine and have downloaded the ms_3_3_001-win32. Is there anyone who have installed mapserver on NT successfully and willing to and willing to share how they did that? Many thanks in advance. -Wangyal From lyndon.zimmermann at adelaide.edu.au Mon Sep 25 16:37:52 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Tue, 26 Sep 2000 09:07:52 +0930 Subject: ms_3_3_011-win32 References: <3.0.32.20000925124836.01354758@imap.princeton.edu> Message-ID: <39CFE1D0.2C1352E0@adelaide.edu.au> Wangyal, I'm about to try, so please tell me how you go. What server software are you using? For the group, what proportion of MapServer users are using it under an open GIS configuration versus custodial datasets only? Lyndon Z Tsering Wangyal Shawa wrote: > I am trying to install mapserver on my NT machine and have downloaded the > ms_3_3_001-win32. > > Is there anyone who have installed mapserver on NT successfully and willing > to and willing to share how they did that? > > Many thanks in advance. > > -Wangyal -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html From marin at here.is Mon Sep 25 18:49:13 2000 From: marin at here.is (Ma) Date: Tue, 26 Sep 2000 01:49:13 +0000 Subject: ms_3_3_011-win32 References: <3.0.32.20000925124836.01354758@imap.princeton.edu> <39CFE1D0.2C1352E0@adelaide.edu.au> Message-ID: <39D00098.4498FB13@here.is> > > I'm about to try, so please tell me how you go. What server software are you > using? OmniHTTPd with WinNT and Win95. It works great! > > For the group, what proportion of MapServer users are using it under an open > GIS configuration versus custodial datasets only? Apache with RH Linux and Solaris. It rocks! --- Ma From johnh at erin.gov.au Mon Sep 25 19:52:53 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 26 Sep 2000 13:52:53 +1100 (EST) Subject: Mapserv and SDE Message-ID: <200009260252.NAA05966@eos.erin.gov.au> Hi, This is probably just for Steve Lime but I'll send it to this list just in case someone else knows the answers. I using MapServer Version 3.3.011 compiled for "-FreeType -TIFF -EPPL7 -JPEG -SDE" using Solaris 2.7. I have been able to build up the map file, template and query templates with wonderful results. I have found the development of interfaces very easy with the templates and map files. The examples at URL: http://arachnid.dnr.state.mn.us/ms_test/index.html are an absolute necessity. I have some lacking functionality with the SDE layers which I believe will be fixed soon? They are: 1. I can't perform annotation with the SDE layers. An error message is produced telling me that that is not yet available. 2. When I produce a QUERYMAP the SDE layers are not drawn. 3. Layers with multiple, complicated polygons sometimes seem to have the polygons cut off. (I'm not sure if other people are aware of this.) I was also wondering if there was an ERRORTEMPLATE, or something like that, in the map file that allows me to produce a more friendly HTML message if a user doesn't select a querable point during a query. Mapserv currently returns an "msQueryUsingPoint(): Search returned no results. No matching record(s) found." error. I would like it to report something like, "Please go back to the map interface and click on a point ... etc.". It already has HEADER and FOOTER in the LAYER object as well as a TEMPLATE in the QUERY object so an ERRORTEMPLATE would compliment the functionality. I would also like to make the thickness of the OUTLINECOLOR element of the reference box, in the REFERENCE object, a little thicker so that it can be more easily seen when the area of interest is very small on the reference map. I would probably have to edit the C code to do this myself so I was wondering if someone could give me some line numbers or keywords to search for so that I can make these changes. Unless, hope hope hope, someone has already made these changes? Thanks in advance for all your help. Johnh From johnh at erin.gov.au Mon Sep 25 22:17:30 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 26 Sep 2000 16:17:30 +1100 (EST) Subject: Mapserv and SDE Message-ID: <200009260517.QAA06186@eos.erin.gov.au> Thanks Ma, I will implement this as soon as I can. I felt sure that there was a way but I couldn't find it in the documentation. I guess it is hard to document everything in such a powerful and dynamic software as mapserv. That's why I find the Test Suite so valuable. Johnh > Date: Tue, 26 Sep 2000 03:53:03 +0000 > From: Ma > Hi John, > > John Hockaday wrote: > > > > > I was also wondering if there was an ERRORTEMPLATE, or something like > > that, in the map file that allows me to produce a more friendly HTML > > message if a user doesn't select a querable point during a query. > > Mapserv currently returns an > > > > "msQueryUsingPoint(): Search returned no results. No matching > > record(s) found." > > > > error. I would like it to report something like, "Please go back to > > the map interface and click on a point ... etc.". It already has > > HEADER and FOOTER in the LAYER object as well as a TEMPLATE in the > > QUERY object so an ERRORTEMPLATE would compliment the functionality. > > > > WEB > # for no results: > EMPTY "/mygis/query-no-results.html" > # for general errors: > ERROR "/mygis/error.html" > .... > END > > > for the template: > Click here to go back > > --- > Ma > From lyndon.zimmermann at adelaide.edu.au Tue Sep 26 00:19:58 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Tue, 26 Sep 2000 16:49:58 +0930 Subject: ms_3_3_011-win32 References: <3.0.32.20000925124836.01354758@imap.princeton.edu> Message-ID: <39D04E1E.7F0ABEC4@adelaide.edu.au> Wangyal and others, I looked at compiling the package under NT, but I only have access to Borland C++ Builder and did not feel like trying to port the MapServer installation across from a the Microsoft VC++ instructions provided. I've been through that trying to compile a FORTRAN package using a non-recommended compiler! A colleague suggested using the Cygwin gcc compiler, available from http://www.cygwin.com. I'm under way installing, but don't know whether it will work. I'm hoping I won't have to repeat the learning exercise when I try to install to a Linux machine sometime later. Regards, Lyndon Z Tsering Wangyal Shawa wrote: > I am trying to install mapserver on my NT machine and have downloaded the > ms_3_3_001-win32. > > Is there anyone who have installed mapserver on NT successfully and willing > to and willing to share how they did that? > > Many thanks in advance. > > -Wangyal -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy_atlas.html From lrn at zeppo.geosurv.gov.nf.ca Tue Sep 26 04:50:39 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Tue, 26 Sep 2000 09:20:39 -0230 Subject: Mapserv and SDE Message-ID: <002201c027b0$0099a310$0a188bc0@geosurv.gov.nf.ca> John, I am currently trying to track down (with steven's guidence) a problem very similar to your item 3 only in my case the cut off or not drawn polygons occurr when tilemaps are used. >3. Layers with multiple, complicated polygons sometimes seem to > have the polygons cut off. (I'm not sure if other people are > aware of this.) Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From danmo at videotron.ca Tue Sep 26 05:23:19 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 26 Sep 2000 08:23:19 -0400 Subject: ms_3_3_011-win32 References: <3.0.32.20000925124836.01354758@imap.princeton.edu> <39D04E1E.7F0ABEC4@adelaide.edu.au> Message-ID: <39D09537.5FA3214E@videotron.ca> Lyndon Zimmermann wrote: > > I looked at compiling the package under NT, but I only have access to Borland > C++ Builder and did not feel like trying to port the MapServer installation > across from a the Microsoft VC++ instructions provided. Lyndon, Have you tried using the makefile.vc with Borland? The MapServer code itself (not talking about the optional modules such as Freetype, etc.) is very clean C code that should compile with most compilers without too many problems. So the main problem may be to use the makefile.vc with Borland. I am not familiar with Borland C++ Builder, but it should have some way to deal with makefiles... and surprisingly enough, Microsoft's makefiles are not that different from the Unix ones (for once Microsoft didn't reinvent the wheel!), so I would expect that it should not be hard to adapt the makefile.vc to work with Borland. Of course Cygwin may not be a bad solution but I can't tell since I haven't used it myself. However I would hate to think that by providing only MSVC++ makefiles we have encouraged the Micro$oft Monopoly... it was really not the intention, and I would be happy to help supporting Borland if I had access to it. Just my 0.02$ (CDN$ :) -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Brian.Fischer at co.sherburne.mn.us Tue Sep 26 06:19:00 2000 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Tue, 26 Sep 2000 08:19:00 -0500 Subject: Mapserv and SDE Message-ID: I like John's suggestion for making an option to make the outline of the area of interest for the reference map thicker. When developing my application I thought this would be a nice option. Sometimes it is hard to see the outline. Brian >>> John Hockaday 09/25/00 09:52PM >>> Hi, This is probably just for Steve Lime but I'll send it to this list just in case someone else knows the answers. I using MapServer Version 3.3.011 compiled for "-FreeType -TIFF -EPPL7 -JPEG -SDE" using Solaris 2.7. I have been able to build up the map file, template and query templates with wonderful results. I have found the development of interfaces very easy with the templates and map files. The examples at URL: http://arachnid.dnr.state.mn.us/ms_test/index.html are an absolute necessity. I have some lacking functionality with the SDE layers which I believe will be fixed soon? They are: 1. I can't perform annotation with the SDE layers. An error message is produced telling me that that is not yet available. 2. When I produce a QUERYMAP the SDE layers are not drawn. 3. Layers with multiple, complicated polygons sometimes seem to have the polygons cut off. (I'm not sure if other people are aware of this.) I was also wondering if there was an ERRORTEMPLATE, or something like that, in the map file that allows me to produce a more friendly HTML message if a user doesn't select a querable point during a query. Mapserv currently returns an "msQueryUsingPoint(): Search returned no results. No matching record(s) found." error. I would like it to report something like, "Please go back to the map interface and click on a point ... etc.". It already has HEADER and FOOTER in the LAYER object as well as a TEMPLATE in the QUERY object so an ERRORTEMPLATE would compliment the functionality. I would also like to make the thickness of the OUTLINECOLOR element of the reference box, in the REFERENCE object, a little thicker so that it can be more easily seen when the area of interest is very small on the reference map. I would probably have to edit the C code to do this myself so I was wondering if someone could give me some line numbers or keywords to search for so that I can make these changes. Unless, hope hope hope, someone has already made these changes? Thanks in advance for all your help. Johnh From bertha_bonita at yahoo.com Tue Sep 26 12:13:18 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Tue, 26 Sep 2000 12:13:18 -0700 (PDT) Subject: Display query results Message-ID: <20000926191318.766.qmail@web4207.mail.yahoo.com> Hi list when i run mapserver, i obtain certain points on a layer, but when i want obtain information about one specific point, give me a error.. msQueryUsingPoint():Search returned no result. No matching record(s) found. but in others points, of the same layer, i reallly can obtain information, that''s works good!, i don't understand what's appening..!!!... in fact, i changed the TOLERANCE, but not is the solution.Neither is the EXTENT, because the point that i have is in northwest of Mexico. Other question, i had this path.! SHAPEPATH "/home/httpd/html/geologia/prueba" and all worked well, but, i changed the files of directory, and done the changes correctly, but i can't display the layers ..!! say me can't found them!. I don't understand, only change the directories name, then return at the same name, but neither works!.. somebody can give an advice please??.. Thanks! this is my file.map # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 #size in pixels of the image SHADESET /home/httpd/html/geologia/symbols/shade.sym MARKERSET /home/httpd/html/geologia/symbols/marker.sym LINESET /home/httpd/html/geologia/symbols/line.sym EXTENT -118.5 12.25 -85.44 33 UNITS DD #Decimal Degrees # de donde va a jalar los datos, shx,shp,dbf SHAPEPATH "/home/httpd/html/geologia/prueba" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER /home/httpd/html/geologia/geo_header.html TEMPLATE /home/httpd/html/geologia/geo.html MINSCALE 100000 MAXSCALE 10000000 IMAGEPATH "/home/httpd/html/geologia/tmp/" IMAGEURL "http://pc-simac.cicese.mx/geologia/tmp/" END # # Start of reference map # REFERENCE IMAGE /home/httpd/html/geologia/graphics/Mex_Ref.gif EXTENT -118.5 12.25 -85.44 33 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 5 STATUS ON END # # Start of layer definitions # LAYER NAME MexicoMdt2 TYPE RASTER STATUS ON DATA /home/httpd/html/geologia/graphics/MexicoMDT2.tif # OFFSITE 0 END LAYER NAME states TYPE POLYGON STATUS ON DATA states TOLERANCE 5 CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 248 248 95 END QUERY TEMPLATE states.html END END LAYER NAME roads TYPE POLYLINE STATUS ON #DEFAULT DATA roads CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 0 0 END END LAYER NAME drainage TYPE LINE STATUS ON #DEFAULT DATA drainage CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 0 255 END END LAYER NAME adamellite TYPE POINT #ANNOTATION STATUS ON DATA /home/httpd/html/geologia/geocronos/adamellite CLASS SIZE 5 COLOR 45 0 0 SYMBOL 4 LABEL BACKGROUNDCOLOR 0 0 255 COLOR 30 94 94 TYPE BITMAP #JUSTIFY CENTER SIZE GIANT POSITION AUTO WRAP " " END # Label END #class END #layer LAYER NAME basalt TYPE POINT #ANNOTATION STATUS ON DATA /home/httpd/html/geologia/geocronos/Basalt/basalt TOLERANCE 20 CLASS NAME "basalt" SIZE 8 COLOR 0 255 0 SYMBOL 4 END #class QUERY TEMPLATE basalt.html END END #layer basalt LAYER NAME granodiorite TYPE POINT #ANNOTATION STATUS ON DATA /home/httpd/html/geologia/geocronos/Basalt/granodiorite TOLERANCE 20 CLASS NAME "granodiorite" SIZE 8 COLOR 255 0 0 SYMBOL 4 END #class QUERY TEMPLATE granodiorite.html END END #layer granodiorite LAYER NAME cities TYPE ANNOTATION STATUS ON DATA cities TOLERANCE 10 LABELITEM "name" CLASS SIZE 8 COLOR 0 0 255 SYMBOL 6 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 # color del texto FONT COMIC_SANS TYPE BITMAP SIZE GIANT POSITION AUTO WRAP " " END # Label END # Class QUERY TEMPLATE cities.html END # Query END # Layer END # Map File ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From ricmar at pro.via-rs.com.br Tue Sep 26 13:11:23 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Tue, 26 Sep 2000 17:11:23 -0300 Subject: Projection - geographic Message-ID: <39D102EB.22760909@pro.via-rs.com.br> Hi all, I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I have a .shp file in Lat/Lon coordinates and I've been trying to make it work without success. Here follow the steps I performed: 1) I compiled the Mapserv with the Proj4 option successfully. 2) I tried to run my mapfile and an error ocurred. 3) I tried to run the sample with this Mapserv as a test and the same error ocurred again: Internal Server Error "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log." I didn?t find the "server error log" to see "more information". I have to say that with the original Mapserv ( without Proj4 option) I had no problems with the demo, but with my mapfile. The .gif image ( layer ) don't come up. My questions are: 1) Can I work with Mapserv without Proj4 option or I must use the statement PROJECTION and in consequence the Mapserv with Proj4 option ? I red that if all data is in the same system then you don?t need the Proj4 library at all. 2) Is the position of statement PROJECTION correct ? Thanks in advance for any help. Ricardo Wagner Martins PROCERGS Brazil -------------------------- Here is my mapfile: # # Start of map file - created Mon Sep 25 16:02:15 2000 # NAME corsan STATUS ON SIZE 550 370 SHADESET "/home/httpd/html/ms_corsan/symbols/shade.sym" MARKERSET "/home/httpd/html/ms_corsan/symbols/marker.sym" LINESET "/home/httpd/html/ms_corsan/symbols/line.sym" EXTENT -58.041 -34.084 -49.293 -26.746 UNITS METERS SHAPEPATH "/home/httpd/html/ms_corsan/data" IMAGECOLOR 255 255 255 # # Projection definition, consult the PROJ.4 documentation for parameter # PROJECTION "proj=utm" "ellps=GRS80" "zone=15" "north" "no_defs" END # # Start of web interface definition # WEB IMAGEPATH "/home/httpd/html/tmp/" IMAGEURL "/tmp/" HEADER corsan_header.html TEMPLATE corsan.html FOOTER corsan_footer.html MINSCALE 1000 MAXSCALE 1550000 END #WEB # # Start of reference map # REFERENCE SIZE 150 160 IMAGE graphics/reference.gif EXTENT -57.644 -33.751 -49.691 -27.080 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END #LABEL SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 INTERVALS 10 STATUS ON END #SCALEBAR # # Start of layer definitions # LAYER NAME rscorsan.shp PROJECTION "geographic" END TYPE Polygon STATUS on HEADER 'rscorsan.shp_header.html' QUERY TEMPLATE rscorsan.shp_query.html END # QUERY CLASS Name "rscorsan.shp" COLOR 41 214 169 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER END # MAPFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Sep 26 14:45:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 26 Sep 2000 16:45:06 -0500 Subject: polygons not always filling Message-ID: For whatever reason I didn't recieve this message from the list, thanks to Larry for forwarding it. Items 1 and 2 should be fixed in the next release. That release date is dragging out cause of all the changes that have been trickling in recently. Soon, though, very soon. The large polygon issue is another matter. You report and another I've recieved lead me to believe there may be a memory leak someplace. Anyone got Purify or the equivalent? I've not been able to reproduce it here though. Any data that can be shared in order to re-create the problem would be appreciated. As for error templates, these already exist. The parameter names are ERROR and EMPTY. I just added them to the mapfile documentation, see the web object section. On the reference stuff, I haven't touched this. The best option would be to add a thickness parameter. Although easy to do there are 5 files that would need changing: map.h mapfile.h mapfile.c mapraster.c (in the CVS this is where the msDrawReference... lives) maplexer.l I'll add this if I've got time before the next release. If you want real control you need to move to using a second mapfile (i.e. mapserver interface) for reference maps. That way you can use a box at some scales and a point (eg. star) at others. That's what I've been doing more and more recently. Works nice. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Hockaday 09/25/00 09:52PM >>> Hi, This is probably just for Steve Lime but I'll send it to this list just in case someone else knows the answers. I using MapServer Version 3.3.011 compiled for "-FreeType -TIFF -EPPL7 -JPEG -SDE" using Solaris 2.7. I have been able to build up the map file, template and query templates with wonderful results. I have found the development of interfaces very easy with the templates and map files. The examples at URL: http://arachnid.dnr.state.mn.us/ms_test/index.html are an absolute necessity. I have some lacking functionality with the SDE layers which I believe will be fixed soon? They are: 1. I can't perform annotation with the SDE layers. An error message is produced telling me that that is not yet available. 2. When I produce a QUERYMAP the SDE layers are not drawn. 3. Layers with multiple, complicated polygons sometimes seem to have the polygons cut off. (I'm not sure if other people are aware of this.) I was also wondering if there was an ERRORTEMPLATE, or something like that, in the map file that allows me to produce a more friendly HTML message if a user doesn't select a querable point during a query. Mapserv currently returns an "msQueryUsingPoint(): Search returned no results. No matching record(s) found." error. I would like it to report something like, "Please go back to the map interface and click on a point ... etc.". It already has HEADER and FOOTER in the LAYER object as well as a TEMPLATE in the QUERY object so an ERRORTEMPLATE would compliment the functionality. I would also like to make the thickness of the OUTLINECOLOR element of the reference box, in the REFERENCE object, a little thicker so that it can be more easily seen when the area of interest is very small on the reference map. I would probably have to edit the C code to do this myself so I was wondering if someone could give me some line numbers or keywords to search for so that I can make these changes. Unless, hope hope hope, someone has already made these changes? Thanks in advance for all your help. Johnh >>>>>>>>>>>>>>>>>>>>>>>>>> From danmo at videotron.ca Tue Sep 26 19:59:08 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 26 Sep 2000 22:59:08 -0400 Subject: Projection - geographic References: <39D102EB.22760909@pro.via-rs.com.br> Message-ID: <39D1627C.E28EFA9B@videotron.ca> Ricardo, I am not familiar with Mandrake Linux specifically, but this looks very much like a runtime library path problem. The same thing happens on RedHat Linux when we install the PROJ.4 RPM distributed on remotesensing.org. See FAQ #8 in: http://www2.dmsolutions.on.ca/mapserver/php_mapscript/php_mapscript_faq.html BTW, on RedHat, the "server error log" is in /var/log/httpd/error_log. It must be in a similar location on Mandrake I would think. Good Luck! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Ricardo Wagner Martins wrote: > > Hi all, > > I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I > have a .shp file in Lat/Lon coordinates and I've been trying to make > it work without success. Here follow the steps I performed: > > 1) I compiled the Mapserv with the Proj4 option successfully. > 2) I tried to run my mapfile and an error ocurred. > 3) I tried to run the sample with this Mapserv as a test and the same > error ocurred again: > > Internal Server Error > "The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, root at localhost and inform > them of the time the error occurred, and anything you might have done > that may have caused the error. > More information about this error may be available in the server error > log." > > I didn?t find the "server error log" to see "more information". > I have to say that with the original Mapserv ( without Proj4 option) I > had no problems with the demo, but with my mapfile. The .gif image ( > layer ) don't come up. > > My questions are: > 1) Can I work with Mapserv without Proj4 option or I must use the > statement PROJECTION and in consequence the Mapserv with Proj4 option > ? I red that if all data is in the same system then you don?t need the > Proj4 library at all. > > 2) Is the position of statement PROJECTION correct ? > > Thanks in advance for any help. > > > Ricardo Wagner Martins > PROCERGS > Brazil > > -------------------------- > Here is my mapfile: > > # > # Start of map file - created Mon Sep 25 16:02:15 2000 > # > NAME corsan > STATUS ON > SIZE 550 370 > SHADESET "/home/httpd/html/ms_corsan/symbols/shade.sym" > MARKERSET "/home/httpd/html/ms_corsan/symbols/marker.sym" > LINESET "/home/httpd/html/ms_corsan/symbols/line.sym" > EXTENT -58.041 -34.084 -49.293 -26.746 > UNITS METERS > SHAPEPATH "/home/httpd/html/ms_corsan/data" > IMAGECOLOR 255 255 255 > > # > # Projection definition, consult the PROJ.4 documentation for > parameter > # > PROJECTION > "proj=utm" > "ellps=GRS80" > "zone=15" > "north" > "no_defs" > END > > # > # Start of web interface definition > # > WEB > IMAGEPATH "/home/httpd/html/tmp/" > IMAGEURL "/tmp/" > > HEADER corsan_header.html > TEMPLATE corsan.html > FOOTER corsan_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > END #WEB > # > # Start of reference map > # > REFERENCE > SIZE 150 160 > IMAGE graphics/reference.gif > EXTENT -57.644 -33.751 -49.691 -27.080 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END #REFERENCE > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > POSITION UR > END > STATUS ON > END #LEGEND > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END #LABEL > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > INTERVALS 10 > STATUS ON > END #SCALEBAR > # > # Start of layer definitions > # > LAYER > NAME rscorsan.shp > PROJECTION > "geographic" > END > TYPE Polygon > STATUS on > HEADER 'rscorsan.shp_header.html' > > QUERY > TEMPLATE rscorsan.shp_query.html > END # QUERY > > CLASS > Name "rscorsan.shp" > COLOR 41 214 169 > OUTLINECOLOR 0 0 0 > END # CLASS > > END # LAYER > > END # MAPFILE From nhv at cape.com Tue Sep 26 21:42:11 2000 From: nhv at cape.com (Norman Vine) Date: Wed, 27 Sep 2000 00:42:11 -0400 Subject: FW: ms_3_3_011-win32 Message-ID: <000001c0283d$524bf680$2937ba8c@nhv> Daniel Morissette writes: Thanks for letting me know that. I'll keep a note of and will try to fix it if I don't receive a diff from you before. BTW, your message didn't make it to the list, but some people might be interested in some of the info that you gave in there. Ooops... OK I hope this makes it :-) Norman Vine wrote: > > Daniel Morissette writes: > > > >Of course Cygwin may not be a bad solution but I can't tell since I > >haven't used it myself. However I would hate to think that by providing > >only MSVC++ makefiles we have encouraged the Micro$oft Monopoly... it > >was really not the intention, > > He He :-)) > > Actually the recent changes for NT support did break the > mapserver source on Cygwin. > > Nothing major but a minor irritant none the less > > These mostly come from using _WIN32 to detect > a windows platform > > Cygwin #defines _WIN32 also > hence I needed to do things such as > > #if defined( _WIN32 ) && !defined(unix) > #include > #include > #include > #endif > #else > #include > #endif > > to work around this > > IMHO > One is better off when porting things to MSVC to be specific > #ifdef _MSC_VER > > then _WIN32 can be used to determine if the compiler supports > the WIN32 API and not compiler 'quirks' and non ANSI header files > > FWIW MS_VERSION "3.3.010" compiled on Cygwin out of the box > and doing a few fixes such as above 3.3.011 compiles also > > These should be obvious to one trying to compile with Cygwin > > > If and when I get a few hours I will try to get the CVS sources compiled > on Cygwin so that I can submit a diff to get Cygwin support back into the > main distribution. > > Norman Vine -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From SullivanJ at nima.mil Wed Sep 27 06:06:55 2000 From: SullivanJ at nima.mil (Sullivan, James R. ) Date: Wed, 27 Sep 2000 09:06:55 -0400 Subject: Mapserv and SDE Message-ID: I am running Mapserv with the SDE option and had initial problems getting everything built, but now works fine. Steve tells me that Version 3.3.0011 does not yet support annotation or query. You can however use the EXPRESSION function within the class object to limit your retrievals. Mapserv/SDE will automatically do a geographic query based on the current extent displayed in your mapserv window. Steve promises additional functionality soon. I have been experimenting with Mapscript/Perl CGI to find some work arounds. Have no results due to lack of time. If anyone has done some Mapscript work with SDE please let us know. Jim Sullivan -----Original Message----- From: Brian Fischer [SMTP:Brian.Fischer at co.sherburne.mn.us] Sent: Tuesday, September 26, 2000 9:19 AM To: johnh at erin.gov.au; mapserver-users at lists.gis.umn.edu Subject: Re: Mapserv and SDE I like John's suggestion for making an option to make the outline of the area of interest for the reference map thicker. When developing my application I thought this would be a nice option. Sometimes it is hard to see the outline. Brian >>> John Hockaday 09/25/00 09:52PM >>> Hi, This is probably just for Steve Lime but I'll send it to this list just in case someone else knows the answers. I using MapServer Version 3.3.011 compiled for "-FreeType -TIFF -EPPL7 -JPEG -SDE" using Solaris 2.7. I have been able to build up the map file, template and query templates with wonderful results. I have found the development of interfaces very easy with the templates and map files. The examples at URL: http://arachnid.dnr.state.mn.us/ms_test/index.html are an absolute necessity. I have some lacking functionality with the SDE layers which I believe will be fixed soon? They are: 1. I can't perform annotation with the SDE layers. An error message is produced telling me that that is not yet available. 2. When I produce a QUERYMAP the SDE layers are not drawn. 3. Layers with multiple, complicated polygons sometimes seem to have the polygons cut off. (I'm not sure if other people are aware of this.) I was also wondering if there was an ERRORTEMPLATE, or something like that, in the map file that allows me to produce a more friendly HTML message if a user doesn't select a querable point during a query. Mapserv currently returns an "msQueryUsingPoint(): Search returned no results. No matching record(s) found." error. I would like it to report something like, "Please go back to the map interface and click on a point ... etc.". It already has HEADER and FOOTER in the LAYER object as well as a TEMPLATE in the QUERY object so an ERRORTEMPLATE would compliment the functionality. I would also like to make the thickness of the OUTLINECOLOR element of the reference box, in the REFERENCE object, a little thicker so that it can be more easily seen when the area of interest is very small on the reference map. I would probably have to edit the C code to do this myself so I was wondering if someone could give me some line numbers or keywords to search for so that I can make these changes. Unless, hope hope hope, someone has already made these changes? Thanks in advance for all your help. Johnh From ricmar at pro.via-rs.com.br Wed Sep 27 07:29:30 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Wed, 27 Sep 2000 11:29:30 -0300 Subject: [Fwd: Projection - geographic] Message-ID: <39D2044A.527E5735@pro.via-rs.com.br> -------------- next part -------------- An embedded message was scrubbed... From: Ricardo Wagner Martins Subject: Re: Projection - geographic Date: Wed, 27 Sep 2000 11:23:58 -0300 Size: 5453 URL: From shawatw at Princeton.EDU Wed Sep 27 07:43:57 2000 From: shawatw at Princeton.EDU (Tsering W Shawa) Date: Wed, 27 Sep 2000 10:43:57 -0400 (EDT) Subject: mapserver demo in NT server Message-ID: <200009271443.KAA28003@mailserver.Princeton.EDU> I have downloaded a mapserver demo file from http://128.101.73.80/ms_demo/and unzipped all the file in c:\inetpub\wwwroot\ms_demo\ folder. After that, I edited demo_init.html file by adding my server path at action command
. I also edited action command path at demo.html by adding this http://gisserver.princeton.edu/cgi-bin/mapserv.exe/. When I open demo_init.html file it does not work. It gives me this error message "loadReferenceMap(): General error message. No image size defined for the reference map." What is the problem? Any help will be appreciate. I do have mapserv.exe in cgi-bin. I downloaded the mapserver win32 version (ms_3_3_011-win32). Thanks. -Wangyal From danmo at videotron.ca Wed Sep 27 08:46:28 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 27 Sep 2000 11:46:28 -0400 Subject: MapServer and Borland C++ References: <3.0.32.20000925124836.01354758@imap.princeton.edu> <39D04E1E.7F0ABEC4@adelaide.edu.au> <39D09537.5FA3214E@videotron.ca> Message-ID: <39D21654.74B800C0@videotron.ca> Hi, Back to the question of whether MapServer can be compiled with the Borland compiler: I withdraw what I wrote in my previoyus message... it's probably not that simple. I got the Borland C++ 5.5 command-line compiler (available as freeware from the Borland web site in case anyone is interested!) and did a couple of quick tests. Adapting the makefiles was not too bad, but I stopped when I started getting errors in the project.h (PROJ.4) header file. Which implies that there would also be work required in some of the modules that MapServer uses before we can compile MapServer itself with Borland. Since it's not a trivial task, I think I'll give up for now. However, I'm wondering if there is enough interest to justify supporting the Borland compiler??? -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Daniel Morissette wrote: > > Lyndon Zimmermann wrote: > > > > I looked at compiling the package under NT, but I only have access to Borland > > C++ Builder and did not feel like trying to port the MapServer installation > > across from a the Microsoft VC++ instructions provided. > > Lyndon, > > Have you tried using the makefile.vc with Borland? The MapServer code > itself (not talking about the optional modules such as Freetype, etc.) > is very clean C code that should compile with most compilers without too > many problems. > > So the main problem may be to use the makefile.vc with Borland. I am > not familiar with Borland C++ Builder, but it should have some way to > deal with makefiles... and surprisingly enough, Microsoft's makefiles > are not that different from the Unix ones (for once Microsoft didn't > reinvent the wheel!), so I would expect that it should not be hard to > adapt the makefile.vc to work with Borland. > > Of course Cygwin may not be a bad solution but I can't tell since I > haven't used it myself. However I would hate to think that by providing > only MSVC++ makefiles we have encouraged the Micro$oft Monopoly... it > was really not the intention, and I would be happy to help supporting > Borland if I had access to it. > > Just my 0.02$ (CDN$ :) > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From danmo at videotron.ca Wed Sep 27 08:56:59 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 27 Sep 2000 11:56:59 -0400 Subject: mapserver demo in NT server References: <200009271443.KAA28003@mailserver.Princeton.EDU> Message-ID: <39D218CB.F50067BA@videotron.ca> Try adding the following line in the REFERENCE object in your .map file: SIZE 80 100 that's the size of the reference.gif that is used as a base for the demo's reference map. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Tsering W Shawa wrote: > > I have downloaded a mapserver demo file from > http://128.101.73.80/ms_demo/and unzipped all the file in > c:\inetpub\wwwroot\ms_demo\ folder. After that, I edited demo_init.html > file by adding my server path at action command action="http://gisserver.princeton.edu/cgi-bin/mapserv.exe">. I also edited > action command path at demo.html by adding this > http://gisserver.princeton.edu/cgi-bin/mapserv.exe/. When I open > demo_init.html file it does not work. It gives me this error message > "loadReferenceMap(): General error message. No image size defined for the > reference map." What is the problem? Any help will be appreciate. I do have > mapserv.exe in cgi-bin. I downloaded the mapserver win32 version > (ms_3_3_011-win32). > > Thanks. > -Wangyal From shawatw at Princeton.EDU Wed Sep 27 09:39:59 2000 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Wed, 27 Sep 2000 12:39:59 -0400 Subject: mapserver demo in NT server works Message-ID: <3.0.32.20000927123959.0135f178@imap.princeton.edu> Thanks Daniel Morissette and Pericles S. Nacionales for giving me the right answer. To make the mapserver demo for NT work, you need to add SIZE 80 100 line in the REFERENCE object in your demo.map file. Whoever has put the NT mapserver demo file on the Internet, would mind adding the above words in the REFERENCE object so that demo mapserver will work without any problem. thanks. -Wangyal From rchavez at perseus.tufts.edu Wed Sep 27 10:32:41 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 27 Sep 2000 13:32:41 -0400 (EDT) Subject: Mapserver and OS X In-Reply-To: <39D218CB.F50067BA@videotron.ca> Message-ID: Here's a way out question. My office mates are salivating over Apple's OS X and were wondering what it would take to get mapserver to run on the unix side of OS X. Has anyone tried this yet? I'm not a Mac person so I haven't been keeping up with the OS X PR. I seem to remember hearing that it's built around the FreeBSD kernal. If this is true, such a port might be possible. Rob Chavez Perseus Project From shawatw at Princeton.EDU Wed Sep 27 14:43:06 2000 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Wed, 27 Sep 2000 17:43:06 -0400 Subject: georeferencing the gif image Message-ID: <3.0.32.20000927174306.0135f178@imap.princeton.edu> Now that I managed to run demo version of Mapserver. I am trying to create mapserver with my own data set. I want to know, what is the best way to create a georeference gif image file for backgroup (reference) map. This is what I did: I open a map in ArcView and saved that map in a jpg format before I saved the file I collected a general georeference info from the map. After the image was saved in jpg I open that image in photoshop and saved again in gif format. I used this gif image as reference image and used georeference info that I collected the original map (before I saved it as jpg image) on REFERENCE EXTENT. But this is not working. I can not overlay any thing on the map once I open it in the mapserver. What is the problem and how to fix it. I try to use tif map with georeference info as reference map but it did not worked. Thank you advance for your help. -Wangyal From steve.lime at dnr.state.mn.us Wed Sep 27 15:26:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 27 Sep 2000 17:26:10 -0500 Subject: georeferencing the gif image Message-ID: I generally use the mapserver standalone utility "shp2img" to create a base image. That is, I use a stripped down map file to build an image of say, state boundaries (noting the extent used to create it). Then I pull that image into photoshop and make it look pretty there. You can scale the image, but can't crop it without screwing up the extent you saved initially. Then, with the image done you can create the REFERENCE object in your main map file with EXTENT equal to the value noted above. As far as I know there is no easy way to get the bbox for an image exported from ArcView. If someone knows otherwise please let the list know. Steve >>> Tsering Wangyal Shawa 09/27/00 16:44 PM >>> Now that I managed to run demo version of Mapserver. I am trying to create mapserver with my own data set. I want to know, what is the best way to create a georeference gif image file for backgroup (reference) map. This is what I did: I open a map in ArcView and saved that map in a jpg format before I saved the file I collected a general georeference info from the map. After the image was saved in jpg I open that image in photoshop and saved again in gif format. I used this gif image as reference image and used georeference info that I collected the original map (before I saved it as jpg image) on REFERENCE EXTENT. But this is not working. I can not overlay any thing on the map once I open it in the mapserver. What is the problem and how to fix it. I try to use tif map with georeference info as reference map but it did not worked. Thank you advance for your help. -Wangyal From bowenj at peligroso.gaiaenv.com Wed Sep 27 15:38:38 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Wed, 27 Sep 2000 16:38:38 -0600 Subject: georeferencing the gif image References: Message-ID: <39D276EE.CD6D2A7@gaiaenv.com> According to our Avenue guru, try this: To return the extent of what is visible in the active view (i.e., the bbox of what is exported): msgbox.report (av.getactivedoc.getdisplay.returnvisextent.asstring, "") (Not sure if this is what you are looking for...) > As far as I know there is no easy way to get the bbox for an image exported from ArcView. If someone knows otherwise please let the list know. > > Steve From pnaciona at gis.umn.edu Wed Sep 27 16:36:24 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 27 Sep 2000 18:36:24 -0500 Subject: georeferencing the gif image References: <3.0.32.20000927174306.0135f178@imap.princeton.edu> Message-ID: <010601c028db$c04af2a0$9a496580@gis.umn.edu> Wangyal, In ArcView, you can get the extent of a reference map by clicking on "View", then "Properties". Once you're in the "View Properties" window, select the "Area of Interest" button--this will give you another window. From the new window, select "Display" from the "Set AOI to:" drop-down box--this will give you the extent of the currently displayed view. The EXTENT values go "LEFT BOTTOM RIGHT TOP" You can then export the current display (view) as either WMF or JPEG, then resize and save as GIF (or PNG) to be used as reference map. Good luck! -Perry N. ----- Original Message ----- From: "Tsering Wangyal Shawa" To: "MAPSERVER" Sent: Wednesday, September 27, 2000 4:43 PM Subject: georeferencing the gif image > Now that I managed to run demo version of Mapserver. I am trying to create > mapserver with my own data set. I want to know, what is the best way to > create a georeference gif image file for backgroup (reference) map. > > This is what I did: I open a map in ArcView and saved that map in a jpg > format before I saved the file I collected a general georeference info from > the map. After the image was saved in jpg I open that image in photoshop > and saved again in gif format. I used this gif image as reference image and > used georeference info that I collected the original map (before I saved > it as jpg image) on REFERENCE EXTENT. But this is not working. I can not > overlay any thing on the map once I open it in the mapserver. What is the > problem and how to fix it. > > I try to use tif map with georeference info as reference map but it did not > worked. > > Thank you advance for your help. > > -Wangyal > From pnaciona at gis.umn.edu Wed Sep 27 16:52:26 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 27 Sep 2000 18:52:26 -0500 Subject: georeferencing the gif image References: <3.0.32.20000927174306.0135f178@imap.princeton.edu> <010601c028db$c04af2a0$9a496580@gis.umn.edu> Message-ID: <016001c028dd$fd90e9b0$9a496580@gis.umn.edu> Folks, Another tip: I usually export in WMF format then resize in Adobe Illustrator (other vector drawing programs should work). The graphic produced in WMF format is vector and scales nicely to a smaller size. If you export in JPEG format, you probably should first scale ArcView's View window to the size you want. Then export and get the extent. This way, you won't have to resize the raster graphic and just need to convert to GIF (or PNG). -Perry N. ----- Original Message ----- From: "Pericles S. Nacionales" To: "MAPSERVER" ; "Tsering Wangyal Shawa" Sent: Wednesday, September 27, 2000 6:36 PM Subject: Re: georeferencing the gif image > Wangyal, > > In ArcView, you can get the extent of a reference map by clicking on "View", > then "Properties". Once you're in the "View Properties" window, select the > "Area of Interest" button--this will give you another window. From the new > window, select "Display" from the "Set AOI to:" drop-down box--this will > give you the extent of the currently displayed view. The EXTENT values go > "LEFT BOTTOM RIGHT TOP" > > You can then export the current display (view) as either WMF or JPEG, then > resize and save as GIF (or PNG) to be used as reference map. > > Good luck! > -Perry N. From m_anderson14 at hotmail.com Wed Sep 27 16:57:45 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Wed, 27 Sep 2000 23:57:45 GMT Subject: georeferencing the gif image Message-ID: I had a script that reports the coordinates, so I put it in an extension. The extension is called "Bounding Box". It will add a button with a box to the end of the button bar. Click it and it will pop up the coordinates for the current view extent in a message box. You can copy the coordinates from the message box and paste them into your map file. I have had .avx files get corrupted by email, so I zipped it. Hope it is useful to someone. Mike >From: "Stephen Lime" >To: , >Subject: Re: georeferencing the gif image >Date: Wed, 27 Sep 2000 17:26:10 -0500 > >I generally use the mapserver standalone utility "shp2img" to create a base >image. That is, I use a stripped down map file to build an image of say, >state boundaries (noting the extent used to create it). Then I pull that >image into photoshop and make it look pretty there. You can scale the >image, but can't crop it without screwing up the extent you saved >initially. Then, with the image done you can create the REFERENCE object in >your main map file with EXTENT equal to the value noted above. > >As far as I know there is no easy way to get the bbox for an image exported >from ArcView. If someone knows otherwise please let the list know. > >Steve > > > >>> Tsering Wangyal Shawa 09/27/00 16:44 PM >>> >Now that I managed to run demo version of Mapserver. I am trying to create >mapserver with my own data set. I want to know, what is the best way to >create a georeference gif image file for backgroup (reference) map. > >This is what I did: I open a map in ArcView and saved that map in a jpg >format before I saved the file I collected a general georeference info from >the map. After the image was saved in jpg I open that image in photoshop >and saved again in gif format. I used this gif image as reference image and >used georeference info that I collected the original map (before I saved >it as jpg image) on REFERENCE EXTENT. But this is not working. I can not >overlay any thing on the map once I open it in the mapserver. What is the >problem and how to fix it. > >I try to use tif map with georeference info as reference map but it did not >worked. > >Thank you advance for your help. > >-Wangyal > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -------------- next part -------------- A non-text attachment was scrubbed... Name: bbox.zip Type: application/x-zip-compressed Size: 812 bytes Desc: not available URL: From marin at here.is Wed Sep 27 17:23:52 2000 From: marin at here.is (Ma) Date: Thu, 28 Sep 2000 00:23:52 +0000 Subject: georeferencing the gif image References: <3.0.32.20000927174306.0135f178@imap.princeton.edu> <010601c028db$c04af2a0$9a496580@gis.umn.edu> <016001c028dd$fd90e9b0$9a496580@gis.umn.edu> Message-ID: <39D28F97.4167CC98@here.is> the best way is to use mapserver standalone if you even have ArcView. JPEG format is not appropriate to present vector graphics. If you don't have Adobe xxx you can use GIMP. It is free and it has Windows port. --- Ma From lyndon.zimmermann at adelaide.edu.au Wed Sep 27 17:52:03 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 28 Sep 2000 10:22:03 +0930 Subject: MapServer and Borland C++ References: <3.0.32.20000925124836.01354758@imap.princeton.edu> <39D04E1E.7F0ABEC4@adelaide.edu.au> <39D09537.5FA3214E@videotron.ca> <39D21654.74B800C0@videotron.ca> Message-ID: <39D29633.E40C296F@adelaide.edu.au> Daniel, The desire and necessity for UNIX users to compile from source to suit their particular machine can be accepted as a given, and I presume they all have compilers with their operating system, making them effectively free. Windows users typically don't get the source code and don't compile their applications before use. A Windows compiler is relatively big bucks (I think MS VC/C++ is in the order of A$600 full price) and high complexity - so much for "Open Source". I suppose I would ask those doing development of Windows compilation to use a free compiler rather than an expensive one, or forget about the instructions, Makefiles etc and just distribute the Windows executable. PS, I do plan to repeat this exercise under Linux, but I'm currently locked into delivering on NT. Regards, Lyndon Z Daniel Morissette wrote: > Hi, > > Back to the question of whether MapServer can be compiled with the > Borland compiler: I withdraw what I wrote in my previoyus message... > it's probably not that simple. > > I got the Borland C++ 5.5 command-line compiler (available as freeware > from the Borland web site in case anyone is interested!) and did a > couple of quick tests. Adapting the makefiles was not too bad, but I > stopped when I started getting errors in the project.h (PROJ.4) header > file. Which implies that there would also be work required in some of > the modules that MapServer uses before we can compile MapServer itself > with Borland. > > Since it's not a trivial task, I think I'll give up for now. However, > I'm wondering if there is enough interest to justify supporting the > Borland compiler??? > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Adelaide Uni Bioenergy Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html From steve.lime at dnr.state.mn.us Wed Sep 27 22:09:28 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 28 Sep 2000 00:09:28 -0500 Subject: MapServer and Borland C++ Message-ID: This speaks to the problems with Windows and the reliance on canned apps, hope nothing goes wrong where source would come in handy. There don't seem to be any decent free Windows compilers outside of the pain involved with cygwin and gcc. BTW VC++ is $99 US. It makes no sense to me to support compilers other than VC++ since what most Windows users really want is a binary distribution. It's amazing that a prime server platform is such a pain to support. What is really needed is an InstallShield version of MapServer. Actually a couple (i.e. w or w/o proj, gd versions etc) would be best. I think this is a role the University could possibly fill, any volunteers? Should be possible to set up an environment where the Windows distribution is kept in sync with the CVS. Sure would be worth the effort and would greatly add to MapServer credibility. Steve >>> Lyndon Zimmermann 09/27/00 19:50 PM >>> Daniel, The desire and necessity for UNIX users to compile from source to suit their particular machine can be accepted as a given, and I presume they all have compilers with their operating system, making them effectively free. Windows users typically don't get the source code and don't compile their applications before use. A Windows compiler is relatively big bucks (I think MS VC/C++ is in the order of A$600 full price) and high complexity - so much for "Open Source". I suppose I would ask those doing development of Windows compilation to use a free compiler rather than an expensive one, or forget about the instructions, Makefiles etc and just distribute the Windows executable. PS, I do plan to repeat this exercise under Linux, but I'm currently locked into delivering on NT. Regards, Lyndon Z Daniel Morissette wrote: > Hi, > > Back to the question of whether MapServer can be compiled with the > Borland compiler: I withdraw what I wrote in my previoyus message... > it's probably not that simple. > > I got the Borland C++ 5.5 command-line compiler (available as freeware > from the Borland web site in case anyone is interested!) and did a > couple of quick tests. Adapting the makefiles was not too bad, but I > stopped when I started getting errors in the project.h (PROJ.4) header > file. Which implies that there would also be work required in some of > the modules that MapServer uses before we can compile MapServer itself > with Borland. > > Since it's not a trivial task, I think I'll give up for now. However, > I'm wondering if there is enough interest to justify supporting the > Borland compiler??? > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Adelaide Uni Bioenergy Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html From lyndon.zimmermann at adelaide.edu.au Wed Sep 27 23:28:39 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 28 Sep 2000 15:58:39 +0930 Subject: MapServer and Borland C++ References: Message-ID: <39D2E517.DB0E722B@adelaide.edu.au> What would be REALLY nice would be the full Apache/MapServer/Perl or PHP/script development environment install. I'd also like to be able to distribute an Apache/MapServer version, with limited datasets, to users "off the Information Superhighway". MSVC++ is $175 academic price at Adelaide Uni. Lyndon Z Stephen Lime wrote: > > This speaks to the problems with Windows and the reliance on canned apps, hope nothing goes wrong where source would come in handy. There don't seem to be any decent free Windows compilers outside of the pain involved with cygwin and gcc. BTW VC++ is $99 US. It makes no sense to me to support compilers other than VC++ since what most Windows users really want is a binary distribution. It's amazing that a prime server platform is such a pain to support. > > What is really needed is an InstallShield version of MapServer. Actually a couple (i.e. w or w/o proj, gd versions etc) would be best. I think this is a role the University could possibly fill, any volunteers? Should be possible to set up an environment where the Windows distribution is kept in sync with the CVS. Sure would be worth the effort and would greatly add to MapServer credibility. > > Steve > -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Adelaide Uni Bioenergy Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html From warawit at thaimapguide.com Thu Sep 28 03:02:00 2000 From: warawit at thaimapguide.com (Warawit) Date: Thu, 28 Sep 2000 17:02:00 +0700 Subject: Font Encoding Message-ID: <002d01c02933$2575c540$5a689bcb@thaimapguide.com> I setup Map server on NT success,but have some question about truetype font ,I use thai text on map and I use Truetype font of window that support thai font (window-874),but it not match all character .How to solve this problem,Edit Font file or recompile mapserver ? Thank, Warawit Viboonpattama ------------------------------------------ wit.v at usa.net warawit at thaimapguide.com http://www.propertymedia.com http://www.thaimapguide.com ICQ : 939294 Thaimapguide Co., Ltd. 123/727-728 Moo 10, Navamin Rd. Klongkum, Buengkum, Bangkok Thailand 10230 Tel: +662-948-5801-4 Fax: +662-519-5027 MyMap at: http://www.thaimapguide.com/mymap.asp?key=5695 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricmar at pro.via-rs.com.br Thu Sep 28 07:15:06 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Thu, 28 Sep 2000 11:15:06 -0300 Subject: Mapfile Message-ID: <39D3526A.77930FB9@pro.via-rs.com.br> Hi folks, I am having trouble getting mapserv display the layer .gif image. The only thing I got was an empty white square. My .shp file is in Lat/Long coordinates and it is very simple. All the rest is working fine. I'm including all my stuff attached in a .zip file. I built it like the demo to be easier to understand. Any help would be very appreciated. Thank you very much. Ricardo Martins Procergs Brazil -------------- next part -------------- A non-text attachment was scrubbed... Name: Ponet.zip Type: application/x-compressed Size: 46342 bytes Desc: not available URL: From dmcilhag at magma.ca Thu Sep 28 07:56:00 2000 From: dmcilhag at magma.ca (Dave McIlhagga) Date: Thu, 28 Sep 2000 10:56:00 -0400 Subject: MapServer and Borland C++ References: Message-ID: <39D35C00.8C11B637@magma.ca> Steve, Stephen Lime wrote: > > This speaks to the problems with Windows and the reliance on canned apps, hope nothing goes wrong where source would come in handy. There don't seem to be any decent free Windows compilers outside of the pain involved with cygwin and gcc. BTW VC++ is $99 US. It makes no sense to me to support compilers other than VC++ since what most Windows users really want is a binary distribution. It's amazing that a prime server platform is such a pain to support. > > What is really needed is an InstallShield version of MapServer. Actually a couple (i.e. w or w/o proj, gd versions etc) would be best. I think this is a role the University could possibly fill, any volunteers? Should be possible to set up an environment where the Windows distribution is kept in sync with the CVS. Sure would be worth the effort and would greatly add to MapServer credibility. > > Steve > We are currently putting forward a proposal that will include the development of an InstallShield version of MapServer. The time frame for this will likely be spring/summer of 2001. As part of the contract, all source code would be returned to the MapServer community. Given that we receive approval, we'll certainly be in touch to take into consideration the overall needs of the MapServer product over and above the specific project we would be working on. We will know if we have approval on this by mid-December and I will let you and the list know if it's a go. It's a great product Steve, our clients have been thrilled by what can be accomplished with it. I'm looking forward to announcing public releases of a couple of our applications in the very near future. Keep up the good work!! Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.on.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.on.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From andreag at geoplan.ufl.edu Thu Sep 28 08:03:51 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Thu, 28 Sep 2000 11:03:51 -0400 Subject: georeferencing the image Message-ID: <39D35DD7.8565E51E@geoplan.ufl.edu> I had to add one more way to create the final image: After much experimenting with how to get the best (in terms of small file sizes and accurate colors) this is what I came up with: As to the georeferencing part I do what Michael Anderson does by getting the spatial extent through an AV extension: mine is a little different but does the same thing - gives you the spatial extent of the active theme. (record that to use in the mapserver map file for extent) Then for exporting the picture and "touching it up" I use a combination of ImageMagic and Gimp (both free and stable :)). I've found that neither of the 2 (ImageMagic and Gimp) can do everything you want best but the two together can. ImageMagic will allow to you to take really good screencaptures and it only records the colors actually used in the image. However, the image it creates is huge. Then you take that image into Gimp and do a few steps to get rid of whatever the image overhead that ImageMagic stuck into it and your file is very very small (in file size). Actually , I often use a third utility gif2png (also free and really well-written) to turn it into a png and the file gets even smaller. For more details follow these steps (attached) and you will watch the image file size go down by a factor of about 30 times from start to finish! ------------------------------------------------------------------------ -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshots.txt Type: application/octet-stream Size: 2262 bytes Desc: not available URL: From ddorranc at azurix.com Thu Sep 28 10:34:32 2000 From: ddorranc at azurix.com (ddorranc at azurix.com) Date: Thu, 28 Sep 2000 12:34:32 -0500 Subject: Soliciting Proposals to Build On-Line GIS Message-ID: <86256968.00608C04.00@aztxhou1nml01.azurix.com> I have an on-line database which needs simple GIS to plot the results of queries. If you are interested in providing a proposal, let me know. Some background is as follows: We are operating a web based query system that runs on Microsoft IIS 5.0 (Win2K) and Active Server Pages. The data store for the site is a MS SQL 7.0 database communicating with the web site via odbc and ole db. The database contains about 10,000 records geoferenced using decimal latitude and longitude. All locations are in the 50 United States. A query session flows as follows: 1) A chemical is selected 2) A state or group of states is selected 3) The query is run and returns a table with the concentrations of that chemical in soil at various sites within the selected states. A typical query returns less than 50 records. My hope is to "on-the-fly" generate a map depicting the results of a query with is zoomed to the selected State(s) with the sites depicted as dots (with the site number posted) and with the dot colors grading from green through yellow to red as concentrations increase. To help users locate themselves, I will want some basic cultural layers such as major roads, rivers, cities etc. - such as that which comes packaged with ARCVIEW. Thanks Dave Dorrance Houston, TX From kafka at email.cz Thu Sep 28 23:33:45 2000 From: kafka at email.cz (Stepan Kafka) Date: Fri, 29 Sep 2000 08:33:45 +0200 Subject: Font Encoding In-Reply-To: <002d01c02933$2575c540$5a689bcb@thaimapguide.com> Message-ID: <001501c029df$37c6b8b0$fb01a8c0@gis2.oku-kh.cz> I had the same problems with it and only way how to get the right font displaying was convert them to UNICODE. I had simply ArcView AVENUE script to do it. I can send it to you but it is prepared only for czech character set. You would optimize it for your natural charset. Maybe someone has better solution. Stepan Kafka -----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 Warawit Odesl?no: 28. z??? 2000 12:02 Komu: mapserver-users at lists.gis.umn.edu P?edm?t: Font Encoding I setup Map server on NT success,but have some question about truetype font ,I use thai text on map and I use Truetype font of window that support thai font (window-874),but it not match all character .How to solve this problem,Edit Font file or recompile mapserver ? Thank, Warawit Viboonpattama ------------------------------------------ wit.v at usa.net warawit at thaimapguide.com http://www.propertymedia.com http://www.thaimapguide.com ICQ : 939294 Thaimapguide Co., Ltd. 123/727-728 Moo 10, Navamin Rd. Klongkum, Buengkum, Bangkok Thailand 10230 Tel: +662-948-5801-4 Fax: +662-519-5027 MyMap at: http://www.thaimapguide.com/mymap.asp?key=5695 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.wilson at rohoel.at Fri Sep 29 04:01:16 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Fri, 29 Sep 2000 13:01:16 +0200 Subject: Point locations in image coordinates? Message-ID: I am investigating adding some imagemap type functionality (?DHTML) to my mapserver application. From looking at old posts to this list, I can see that it is possible to easily get label locations in image coordinates from the label cache. However, I want only to plot symbols with no labels. Do I still need to caclulate the (point) image coordinate values manually, or has an easier way been discovered? Does position "CC" plot the label directly on top of the symbol? If so, then this would give the correct location for the point in image coordinates. Might it be possible to have a "dummy" layer to plot the labels at an extremely small size, so that they all plot (?), thus ensuring they are all have coordinates available in the labelcache? Or, is it safer/better to just do a manual calculation using image size, map extents and real world point coordinates? Thanks in advance for any advice, Mark From yeewen at petromap.com Fri Sep 29 10:29:48 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Fri, 29 Sep 2000 11:29:48 -0600 Subject: Displaying annotation layer Message-ID: Hi, I'm new to mapserver. I'm trying to create a layer that will display annotation. I have label.shp label.shx and label.dbf files. label.shp contains point objects, and label.dbf has a "TEXT" field that stores the text and ID that allows me to identify the text objects. I tried doing something like this in my map file: LAYER NAME label DATA label TYPE ANNOTATION LABELITEM "TEXT" CLASSITEM "ID" CLASS EXPRESSION "1" # object ID=1 will have black text COLOR 0 0 0 END END I thought this will display the text...but it doesn't. All I need is to display the annotation at the coordinates specified in label.shp (a point object file) Can someone please help? Thanks in advance. -- Yee Wen -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Sat Sep 30 20:16:08 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sat, 30 Sep 2000 22:16:08 -0500 Subject: Nightly builds... Message-ID: Greetings: The nightly builds are up and running again. Sorry for the delays. The CVS version is now really pretty stable so I restarted the nightly builds this evening. 3.3.012 is just around the corner. Regards - Steve