From rchavez at perseus.tufts.edu Fri Feb 4 06:38:38 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 4 Feb 2000 09:38:38 -0500 (EST) Subject: mapscript and logical expressions Message-ID: Greetings, I've just gotten around to trying the new logical expressions in classes and I'm having trouble getting results. Utimately I want to use logical expresssions with ranges of numbers, but I tried these simple examples with string, regex, and logical expressions just to test the various expression options (using mapscript from the latest release 3.3.006): NAME Contours TYPE LINE STATUS OFF #mapscript handles status change DATA contourlines1 MAXSCALE 4000000 CLASSITEM "Zv2" CLASS NAME "Contour lines" #EXPRESSION "914" works, returns contours at this elevation #EXPRESSION /^914/ works, returns contours beginning with string 914 #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing ... I've tried a couple variations of the logical expression, but still no luck. Does anyone have any ideas? Thanks, Rob Chavez Perseus Project rchavez at perseus.tufts.edu From Banister at BANISTER.COM Fri Feb 4 07:28:34 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Fri, 4 Feb 2000 08:28:34 -0700 Subject: mapscript and logical expressions Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0316A4@banister4.conen.net> I solved this by using some convoluted regular expressions. i.e. Results between 1000 and 1999 [1][0-9][0-9][0-9] I posted some more detailed examples to the list a few months ago if you want to dig through the archives. (I was working at Space Imaging at the time so they are from tbanister at spaceimaging.com) Trevor -----Original Message----- From: Robert Chavez [mailto:rchavez at perseus.tufts.edu] Sent: Friday, February 04, 2000 7:39 AM To: mapserver-users at lists.gis.umn.edu Subject: mapscript and logical expressions Greetings, I've just gotten around to trying the new logical expressions in classes and I'm having trouble getting results. Utimately I want to use logical expresssions with ranges of numbers, but I tried these simple examples with string, regex, and logical expressions just to test the various expression options (using mapscript from the latest release 3.3.006): NAME Contours TYPE LINE STATUS OFF #mapscript handles status change DATA contourlines1 MAXSCALE 4000000 CLASSITEM "Zv2" CLASS NAME "Contour lines" #EXPRESSION "914" works, returns contours at this elevation #EXPRESSION /^914/ works, returns contours beginning with string 914 #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing ... I've tried a couple variations of the logical expression, but still no luck. Does anyone have any ideas? Thanks, Rob Chavez Perseus Project rchavez at perseus.tufts.edu From steve.lime at dnr.state.mn.us Fri Feb 4 09:27:54 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Feb 2000 11:27:54 -0600 Subject: mapscript and logical expressions Message-ID: The replacements for logical expressions are case sensitive just like when using mapserver templates. Most shapefiles use all caps for item names so try [ZV2] instead of [Zv2]. Note, as of 3.3.006 you can't change class EXPRESSION or TEXT values from within mapscript. Still figuring out the most robust way to distinguish between expression types without firing up the lexer. Also note that CLASSITEM is unused with logical expressions at present. Curiously, how common are multiple item logical expressions in user's plans? By only allowing a single item logical expressions would speed up a bit. Any thought? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Chavez 02/04/00 08:38AM >>> Greetings, I've just gotten around to trying the new logical expressions in classes and I'm having trouble getting results. Utimately I want to use logical expresssions with ranges of numbers, but I tried these simple examples with string, regex, and logical expressions just to test the various expression options (using mapscript from the latest release 3.3.006): NAME Contours TYPE LINE STATUS OFF #mapscript handles status change DATA contourlines1 MAXSCALE 4000000 CLASSITEM "Zv2" CLASS NAME "Contour lines" #EXPRESSION "914" works, returns contours at this elevation #EXPRESSION /^914/ works, returns contours beginning with string 914 #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing ... I've tried a couple variations of the logical expression, but still no luck. Does anyone have any ideas? Thanks, Rob Chavez Perseus Project rchavez at perseus.tufts.edu From Banister at BANISTER.COM Fri Feb 4 09:46:10 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Fri, 4 Feb 2000 10:46:10 -0700 Subject: mapscript and logical expressions Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0316A6@banister4.conen.net> Having multiple expression items would keep me from having to define multiple layers as a work around, and there are some expressions that wouldn't lend themselves to the multiple layer workaround (cites > Y people and < X square miles) I'd use it. Trevor Banister President Banister Consulting and Online Services Banister at Banister.com -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, February 04, 2000 10:28 AM To: rchavez at perseus.tufts.edu Cc: mapserver-users at lists.gis.umn.edu Subject: Re: mapscript and logical expressions The replacements for logical expressions are case sensitive just like when using mapserver templates. Most shapefiles use all caps for item names so try [ZV2] instead of [Zv2]. Note, as of 3.3.006 you can't change class EXPRESSION or TEXT values from within mapscript. Still figuring out the most robust way to distinguish between expression types without firing up the lexer. Also note that CLASSITEM is unused with logical expressions at present. Curiously, how common are multiple item logical expressions in user's plans? By only allowing a single item logical expressions would speed up a bit. Any thought? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Chavez 02/04/00 08:38AM >>> Greetings, I've just gotten around to trying the new logical expressions in classes and I'm having trouble getting results. Utimately I want to use logical expresssions with ranges of numbers, but I tried these simple examples with string, regex, and logical expressions just to test the various expression options (using mapscript from the latest release 3.3.006): NAME Contours TYPE LINE STATUS OFF #mapscript handles status change DATA contourlines1 MAXSCALE 4000000 CLASSITEM "Zv2" CLASS NAME "Contour lines" #EXPRESSION "914" works, returns contours at this elevation #EXPRESSION /^914/ works, returns contours beginning with string 914 #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing ... I've tried a couple variations of the logical expression, but still no luck. Does anyone have any ideas? Thanks, Rob Chavez Perseus Project rchavez at perseus.tufts.edu From rchavez at perseus.tufts.edu Fri Feb 4 10:37:03 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 04 Feb 2000 13:37:03 -0500 Subject: mapscript and logical expressions References: Message-ID: <389B1C4F.567E53ED@perseus.tufts.edu> That did it. Thanks. I'm going to fool around with between 5 and 8 logical expressions in a particular layer, just to see what happens to performance. I don't plan on using that many, but I will have 2 or 3 per layer. Rob Chavez Perseus Project Stephen Lime wrote: > The replacements for logical expressions are case sensitive just like when using > mapserver templates. Most shapefiles use all caps for item names so try [ZV2] instead > of [Zv2]. Note, as of 3.3.006 you can't change class EXPRESSION or TEXT values from > within mapscript. Still figuring out the most robust way to distinguish between expression > types without firing up the lexer. > > Also note that CLASSITEM is unused with logical expressions at present. Curiously, how > common are multiple item logical expressions in user's plans? By only allowing a single > item logical expressions would speed up a bit. Any thought? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Robert Chavez 02/04/00 08:38AM >>> > > Greetings, > > I've just gotten around to trying the new logical expressions in classes > and I'm having trouble getting results. Utimately I want to use logical > expresssions with ranges of numbers, but I tried these simple examples > with string, regex, and logical expressions just to test the various > expression options (using mapscript from the latest release 3.3.006): > > > NAME Contours > TYPE LINE > STATUS OFF #mapscript handles status change > DATA contourlines1 > MAXSCALE 4000000 > CLASSITEM "Zv2" > CLASS > NAME "Contour lines" > #EXPRESSION "914" works, returns contours at this elevation > #EXPRESSION /^914/ works, returns contours beginning with string 914 > #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing > ... > > > I've tried a couple variations of the logical expression, but still no > luck. Does anyone have any ideas? > > Thanks, > > Rob Chavez > Perseus Project > rchavez at perseus.tufts.edu From pcameron at Soils.Umn.EDU Fri Feb 4 11:45:26 2000 From: pcameron at Soils.Umn.EDU (Paul Cameron) Date: Fri, 4 Feb 2000 13:45:26 -0600 (CST) Subject: expression problem Message-ID: Hello, This should be a simple one, I'm finally upgrading one of my old mapserv apps to 3.3 and ran into this problem and was hoping to get some help. Here's the layer in the map file: LAYER NAME soils TYPE polygon STATUS on DATA soils CLASSITEM soil_type CLASS EXPRESSION "BeD3|BdC2|BeE3|BdD2|BdB|BdC|BdD|BdF|BdE2" COLOR 125 175 75 END END The expression line used to match all the polygons that hit one the ids listed above but its not working now. I can take it down to one id, EXPRESSION "BeD3", and it works fine. I'm sure I'm just missing some syntax somewhere but I can't find it anywhere in the documentation. Thanks, paul From imap at chesapeake.net Fri Feb 4 12:30:44 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 04 Feb 2000 15:30:44 -0500 Subject: expression problem References: Message-ID: <389B36F4.22E0D582@chesapeake.net> In MapServ3.3, Regular Expression notation changed from double-quotes " " to slashes / / like the should be. -Chris Paul Cameron wrote: > > Hello, > > This should be a simple one, I'm finally upgrading one of my old mapserv > apps to 3.3 and ran into this problem and was hoping to get some help. > > Here's the layer in the map file: > > LAYER > NAME soils > TYPE polygon > STATUS on > DATA soils > CLASSITEM soil_type > CLASS > EXPRESSION "BeD3|BdC2|BeE3|BdD2|BdB|BdC|BdD|BdF|BdE2" > COLOR 125 175 75 > END > END > > The expression line used to match all the polygons that hit one the ids > listed above but its not working now. I can take it down to one id, > EXPRESSION "BeD3", and it works fine. I'm sure I'm just missing some > syntax somewhere but I can't find it anywhere in the documentation. > > Thanks, > paul -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From marin at here.is Fri Feb 4 13:12:35 2000 From: marin at here.is (Ma) Date: Fri, 04 Feb 2000 21:12:35 +0000 Subject: How-to scalable symbols and text Message-ID: <389B40C2.C3666A9@here.is> How to scale symbols and text in 3.3.006. I did this in 3.3b but now there is something different. Here is part of the map file: ############################### # --- roads ------- LAYER NAME roads TYPE LINE STATUS OFF DATA roads TOLERANCE 0 SYMBOLSCALE 1000000 CLASSITEM RoadType CLASS NAME "Primary road" EXPRESSION "Pr" COLOR 255 000 00 SYMBOL 2 # this is the symbol from the distribution 3.3.006 MAXSIZE 5 MINSIZE 1 END END ########### Any ideas? -- Ma From steve.lime at dnr.state.mn.us Fri Feb 4 14:03:14 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Feb 2000 16:03:14 -0600 Subject: How-to scalable symbols and text Message-ID: Hi: Works the same as before. Problem is the symbol you're tring to scale. Line symbols of type STYLED are not scalable. You have to use type ELLIPSE symbols. Here's an example of an filled ellipse symbol radius 1,1 (i.e. a circle). This is scalable and results in circular of varying sizes. Symbol Type ELLIPSE Filled Points 1 1 END END With 3.3 you can define styles within any symbol type and therefore can get scaled, complex symbols as well. Your millage may vary. Type STYLED symbols use a single pixel width lines only. Symbols are admittedly hard to work with, but you can do some wild things with them as they're pretty flexible. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 02/04/00 03:12PM >>> How to scale symbols and text in 3.3.006. I did this in 3.3b but now there is something different. Here is part of the map file: ############################### # --- roads ------- LAYER NAME roads TYPE LINE STATUS OFF DATA roads TOLERANCE 0 SYMBOLSCALE 1000000 CLASSITEM RoadType CLASS NAME "Primary road" EXPRESSION "Pr" COLOR 255 000 00 SYMBOL 2 # this is the symbol from the distribution 3.3.006 MAXSIZE 5 MINSIZE 1 END END ########### Any ideas? -- Ma From steve.lime at dnr.state.mn.us Fri Feb 4 15:14:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 04 Feb 2000 17:14:41 -0600 Subject: mapserver & gps use Message-ID: How do you mean "add"? It's possible to allow users to use GPS coordinates to quide map creation (i.e. get me a map centered at ....). Users can also add markers to maps (with the right syntax) for a given point. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 02/04/00 05:10PM >>> Forgive me if this has been covered , as a newcomer to mapserver i wish to add gps positioning to mapserver has anyone already done this , or is code already available . regards David Armstrong UK david.armstrong at dtn.ntl.com From marin at here.is Fri Feb 4 16:30:06 2000 From: marin at here.is (Ma) Date: Sat, 05 Feb 2000 00:30:06 +0000 Subject: How-to scalable symbols and text References: Message-ID: <389B6F0B.17AFD869@here.is> In the line.sym file which comes with 3.3.006 there is no ellipse type symbols. Can you send me ellipse type line symbol(s) for 3.3.006? I send here the line.sym I had before and and the line.sym from 3.3.006 now. Why doesn't work with the first line.sym file with 3.3.006? ######## ### the line.sym file from 3.3b #### LineSet # 1 Symbol Type STYLED Style 0 0 0 1 END # Style END # 2 Symbol Type STYLED Style 0 -1 0 0 0 1 END # Style END # 3 Symbol Type STYLED Style 3 0 END # Style END # 4 Symbol Type STYLED Style 6 0 END # Style END # 5 Symbol Type STYLED Style 3 0 3 1 END # Style END # 6 Symbol Type STYLED Style 6 0 6 1 END # Style END # 7 Symbol Type STYLED Style 3 -1 3 0 3 1 END # Style END # 8 Symbol Type STYLED Style 6 -1 6 0 6 1 END # Style END # 9 Symbol Type STYLED Style 0 -1 0 1 END # Style END # 10 Symbol Type STYLED Style 4 -1 4 1 END # Style END # 11 Symbol Type STYLED Style 0 -1 4 0 0 1 END # Style END # 12 Symbol Type STYLED Style 0 -1 8 0 0 1 END # Style END # 13 Symbol Type ELLIPSE Filled transparent 0 POINTS 1 1 END END END # LineSet ########################### ## the line.sym from 3.3.006 LINESET Symbol Type STYLED Style 0 0 0 1 0 0 END END Symbol Type STYLED Style -1 0 0 0 0 0 1 0 0 END END Symbol Type STYLED Style 0 3 3 END END Symbol Type STYLED Style 0 6 6 END END Symbol Type STYLED Style 0 3 3 1 3 3 END END Symbol Type STYLED Style 0 6 6 1 6 6 END END Symbol Type STYLED Style -1 3 3 0 3 3 1 3 3 END END Symbol Type STYLED Style -1 6 6 0 6 6 1 6 6 END END Symbol Type STYLED Style -1 0 0 1 0 0 END END Symbol Type STYLED Style -1 6 6 1 6 6 END END Symbol Type STYLED Style -1 0 0 0 6 6 1 0 0 END END Symbol Type Styled Style -1 0 0 0 12 12 1 0 0 END END Symbol Type STYLED Style -1 1 7 0 0 0 1 1 7 END END Symbol Type STYLED Style -1 1 5 0 1 5 0 1 2 1 1 5 END END END # LineSet -- Ma Stephen Lime wrote: > Hi: Works the same as before. Problem is the symbol you're tring to scale. Line symbols > of type STYLED are not scalable. You have to use type ELLIPSE symbols. Here's an > example of an filled ellipse symbol radius 1,1 (i.e. a circle). This is scalable and results in > circular of varying sizes. > > Symbol > Type ELLIPSE > Filled > Points > 1 1 > END > END > > With 3.3 you can define styles within any symbol type and therefore can get scaled, complex > symbols as well. Your millage may vary. Type STYLED symbols use a single pixel width lines > only. Symbols are admittedly hard to work with, but you can do some wild things with them as > they're pretty flexible. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Ma 02/04/00 03:12PM >>> > How to scale symbols and text in 3.3.006. I did this in 3.3b but now > there is something different. > Here is part of the map file: > > ############################### > # --- roads ------- > > LAYER > NAME roads > TYPE LINE > STATUS OFF > DATA roads > TOLERANCE 0 > SYMBOLSCALE 1000000 > > CLASSITEM RoadType > CLASS > NAME "Primary road" > EXPRESSION "Pr" > COLOR 255 000 00 > SYMBOL 2 # this is the symbol from the distribution 3.3.006 > MAXSIZE 5 > MINSIZE 1 > END > END > > ########### > > Any ideas? > > -- > Ma From peter.jacobs at vs42.nl Tue Feb 8 09:47:23 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Tue, 8 Feb 2000 18:47:23 +0100 Subject: How to use the querymap Message-ID: I have an Annotation Layer with streetlabels. I want to be able to enter a textform, compare it with the values in the DBF file and create a map with the street in the center of the new map. Regards, Peter Jacobs ------------------------ Student at Delft University of Technology Delft, the Netherlands email: p.h.m.jacobs at student.tudelft.nl From peter.jacobs at vs42.nl Tue Feb 8 14:14:11 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Tue, 8 Feb 2000 23:14:11 +0100 Subject: FW: How to use the querymap Message-ID: Hello, I figured out how to use the item/value itemquery with mapserver. I still have one question. The shpminx and shpminy coordinates of the query locate the Annotation point of the streets in my city. Does anyone know how to create a new URL to the mapserver telling it to pan the existing map to this point. I tried x=[shpminx], mapext=[shpext] (but because it is only a point I get an error), center_x=[shpminx], etc.) I don't seem to be able to use the cooridnates for the creation of a new map Regards, Peter Jacobs From kenboss at dilbert.dnr.state.mn.us Tue Feb 8 14:43:38 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 8 Feb 2000 16:43:38 -0600 (CST) Subject: FW: How to use the querymap Message-ID: <200002082243.QAA14026@philbert.dnr.state.mn.us> I think you can do it with something like: TEMPLATE "/cgi-bin/mapserv?map=path/to/street.map&scale=50000&mapxy=[shpmid]" --Ken > From: "Peter H.M. Jacobs" > To: > Subject: FW: How to use the querymap > Date: Tue, 8 Feb 2000 23:14:11 +0100 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > Importance: Normal > > Hello, > > I figured out how to use the item/value itemquery with mapserver. I still > have one question. The shpminx and shpminy coordinates of the query locate > the Annotation point of the streets in my city. > Does anyone know how to create a new URL to the mapserver telling it to pan > the existing map to this point. > I tried x=[shpminx], mapext=[shpext] (but because it is only a point I get > an error), center_x=[shpminx], etc.) > I don't seem to be able to use the cooridnates for the creation of a new map > > Regards, > > Peter Jacobs > From stephen.power at ea.gov.au Tue Feb 8 17:22:16 2000 From: stephen.power at ea.gov.au (Stephen Power) Date: Wed, 09 Feb 2000 12:22:16 +1100 Subject: Loading of MS_3.3.006 Message-ID: I am having trouble getting the ms_3.3.006 to load in the cgi-bin dir. I have downloaded the tar.z and reset all the required variables in the makefile. NB: there was no ini file in the download. The sysem complies without error and seems to locate all the required addition such as Freetype 1.2, GD 1.2 etc. but when I transfer the mapserv to the cgi-bin directory (tere is no mapserv.inin created) and try to link to it, I get the Server Problem error. We have had mapserver 3.2 installed on the system and it works fine. I have been thrhough the make files for this version and everything is the same except for the regex in the new version. It doesn't appear to be there. The regex directory isn't in the new version either, although the installation instruction say it should be. Is this a problem and if so how can I get the regex stuff. This is the first time I have installed this application. Can anyone assist Regards Steve Power From pnaciona at gis.umn.edu Tue Feb 8 19:29:32 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 8 Feb 2000 21:29:32 -0600 Subject: Loading of MS_3.3.006 In-Reply-To: Message-ID: Steve, Some of the parameters that you used to specify on the mapserv.ini have been incorporated into the map file. I would recommend that you specify the full path to your symbols and font sets (on the mapfile). Also, when defining the WEB object, use the keywords IMAGEPATH and IMAGEURL... These keywords should be in the map file documentation on the mapserver web site. Here's an example map file: NAME EX1 SHADESET "/usr/projects/demo/symbols/shade.sym" MARKERSET "/usr/projects/demo/symbols/marker.sym" LINESET "/usr/projects/demo/symbols/line.sym" FONTSET "/usr/projects/demo/fonts/fonts.list" STATUS ON SIZE 600 600 UNITS METERS SHAPEPATH "/usr/projects/demo/data" IMAGECOLOR ... (stuff deleted) WEB HEADER query/query_head.html TEMPLATE paths.html FOOTER query/query_foot.html MINSCALE 1000 MAXSCALE 24000000 IMAGEPATH "/usr/projects/tmp/" IMAGEURL "/tmp/" END ---(other stuff follows) END If mapserv compiled properly on your machine, you most likely only need to make the changes on your map files. I hope this helps. Perry Nacionales pnaciona at gis.umn.edu > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of Stephen Power > Sent: Tuesday, February 08, 2000 7:22 PM > To: < > Subject: Loading of MS_3.3.006 > > > I am having trouble getting the ms_3.3.006 to load in the cgi-bin dir. > > I have downloaded the tar.z and reset all the required variables in the > makefile. > > NB: there was no ini file in the download. > > The sysem complies without error and seems to locate all the required > addition such as Freetype 1.2, GD 1.2 etc. but when I transfer the > mapserv to the cgi-bin directory (tere is no mapserv.inin created) and > try to link to it, I get the Server Problem error. > > We have had mapserver 3.2 installed on the system and it works fine. I > have been thrhough the make files for this version and everything is the > same except for the regex in the new version. It doesn't appear to be > there. > The regex directory isn't in the new version either, although the > installation instruction say it should be. > > Is this a problem and if so how can I get the regex stuff. > > This is the first time I have installed this application. > Can anyone assist > > Regards > > Steve Power > From sl57k at cc.usu.edu Tue Feb 8 22:02:50 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Tue, 08 Feb 2000 23:02:50 -0700 Subject: Logical Expressions... Message-ID: <38A1030A.BEE27E11@cc.usu.edu> Hey, has anybody been able to get the logical expression stuff to work properly? I am trying to do the folowing: ([LEVEL2] eq 'WATER') It works as a regex, or a string exp, but not as a logical exp. The cases are correct (ie: the entries in the dbf are all in caps), as are the names. When I use this query, the whole layer dissapears. Any ideas? I'd like to be able to use: ([LEVEL2] eq 'WATER' and [PERIMITER] > 5000), or something similar. Incidentally, ([LUCODE] < 15) works, but (16 > [LUCODE] < 1) does not. Thanks in advance, Jason Maestri Utah Water Research Laboratory Utah State University From steve.lime at dnr.state.mn.us Wed Feb 9 08:14:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 Feb 2000 10:14:10 -0600 Subject: Logical Expressions... Message-ID: You might have to quote the [LEVEL2] in the first example. I'm pretty sure that strings must be quoted in logical expressions. Try: ('[LEVEL2]' eq 'WATER') The (16 > [LUCODE] < 1) expression is malformed. Think SQL where clauses. Instead try (([LUCODE] < 16) and ([LUCODE] > 1)) or something similar. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jason Maestri 02/09/00 12:02AM >>> Hey, has anybody been able to get the logical expression stuff to work properly? I am trying to do the folowing: ([LEVEL2] eq 'WATER') It works as a regex, or a string exp, but not as a logical exp. The cases are correct (ie: the entries in the dbf are all in caps), as are the names. When I use this query, the whole layer dissapears. Any ideas? I'd like to be able to use: ([LEVEL2] eq 'WATER' and [PERIMITER] > 5000), or something similar. Incidentally, ([LUCODE] < 15) works, but (16 > [LUCODE] < 1) does not. Thanks in advance, Jason Maestri Utah Water Research Laboratory Utah State University From chetturv at sdhu.moh.gov.on.ca Wed Feb 9 08:28:25 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Wed, 9 Feb 2000 11:28:25 -0500 Subject: Trouble running demo Message-ID: Hello all, I am trying to run the MapServer demo on NT with Apache and AOLserver. After spending many frustrating days, I think I am doing something wrong with the demo.map file. I am a web/database developer but not a GIS expert so I am still coming to grips with the software. Here is the error I get: getInteger(): Incorrect data type. (END):(8) If someone can point me in the right direction I would be grateful. This software is great stuff. My demo.map follows. Thanks, Vinod ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET /AOLserver/servers/server1/pages/ms_demo/symbols/shade.sym MARKERSET /AOLserver/servers/server1/pages/ms_demo/symbols/marker.sym LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 UNITS METERS SHAPEPATH "/AOLserver/servers/server1/pages/ms_demo/data" IMAGECOLOR 255 255 255 #LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER /AOLserver/servers/server1/pages/ms_demo/demo_header.html TEMPLATE /AOLserver/servers/server1/pages/ms_demo/demo.html MINSCALE 1000 MAXSCALE 1550000 END # # Start of reference map # REFERENCE IMAGE /AOLserver/servers/server1/pages/ms_demo/graphics/reference_base.gif EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 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 county TYPE POLYGON STATUS DEFAULT DATA /AOLserver/servers/server1/pages/ms_demo/data/county CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 248 248 95 END END LAYER NAME landsat TYPE RASTER STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/landsat.tif OFFSITE 0 END LAYER NAME lakes TYPE POLYGON STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/lakes TOLERANCE 3 CLASSITEM usclass CLASS NAME "Water & Rivers" EXPRESSION "421" COLOR 49 117 185 BACKGROUNDCOLOR 32 201 201 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "^-" COLOR 255 0 0 OUTLINECOLOR 0 0 0 END QUERYITEM usclass QUERY EXPRESSION "421" TEMPLATE /AOLserver/servers/server1/pages/ms_demo/lakes.html JOIN NAME lakejoin TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf FROM islake # item names are case insensitive TO "type" # must be quoted as TYPE is a mapserver keyword END END QUERY EXPRESSION "^-" TEMPLATE /AOLserver/servers/server1/pages/ms_demo/land.html JOIN NAME lakejoin TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf FROM islake # item names are case insensitive TO "type" # must be quoted as TYPE is a mapserver keyword END END END # Layer LAYER NAME streams TYPE LINE STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/streams TOLERANCE 5 CLASS NAME "Streams" COLOR 49 117 185 END QUERY TEMPLATE /AOLserver/servers/server1/pages/ms_demo/streams.html END END # Layer LAYER NAME secondary_roads TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/secondary MAXSCALE 50000 SYMBOLSCALE 24000 CLASS NAME "Secondary Roads" COLOR 212 212 212 SYMBOL 13 SIZE 2 MAXSIZE 4 END END # Layer LAYER NAME primary_roads TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/primary SYMBOLSCALE 24000 CLASS NAME "Primary Roads" COLOR 128 128 128 SYMBOL 13 SIZE 3 MAXSIZE 5 END END # Layer LAYER NAME runways TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/runways CLASS COLOR 30 94 30 NAME "Airport Runways" END END # Layer LAYER NAME railroad TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/railroad CLASS COLOR 151 151 151 SYMBOL 4 NAME "Railways" END END # Layer LAYER NAME cities TYPE ANNOTATION STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/cities TOLERANCE 10 LABELITEM "name" CLASS SIZE 8 COLOR 255 0 0 SYMBOL 6 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE BITMAP #JUSTIFY CENTER SIZE GIANT POSITION AUTO WRAP " " END # Label END # Class QUERY TEMPLATE /AOLserver/servers/server1/pages/ms_demo/cities.html END # Query END # Layer END # Map File From steve.lime at dnr.state.mn.us Wed Feb 9 08:54:24 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 09 Feb 2000 10:54:24 -0600 Subject: Trouble running demo Message-ID: The problem is related to format changes made to line symbols. A "corrected" version of line.sym is found in the mapserver distribution in the symbols directory. Swap that version with the one referenced in the demo.map and that error should go away. I've attached that file just in case you don't have it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vinod Chettur 02/09/00 10:28AM >>> Hello all, I am trying to run the MapServer demo on NT with Apache and AOLserver. After spending many frustrating days, I think I am doing something wrong with the demo.map file. I am a web/database developer but not a GIS expert so I am still coming to grips with the software. Here is the error I get: getInteger(): Incorrect data type. (END):(8) If someone can point me in the right direction I would be grateful. This software is great stuff. My demo.map follows. Thanks, Vinod ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET /AOLserver/servers/server1/pages/ms_demo/symbols/shade.sym MARKERSET /AOLserver/servers/server1/pages/ms_demo/symbols/marker.sym LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 UNITS METERS SHAPEPATH "/AOLserver/servers/server1/pages/ms_demo/data" IMAGECOLOR 255 255 255 #LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER /AOLserver/servers/server1/pages/ms_demo/demo_header.html TEMPLATE /AOLserver/servers/server1/pages/ms_demo/demo.html MINSCALE 1000 MAXSCALE 1550000 END # # Start of reference map # REFERENCE IMAGE /AOLserver/servers/server1/pages/ms_demo/graphics/reference_base.gif EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 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 county TYPE POLYGON STATUS DEFAULT DATA /AOLserver/servers/server1/pages/ms_demo/data/county CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 248 248 95 END END LAYER NAME landsat TYPE RASTER STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/landsat.tif OFFSITE 0 END LAYER NAME lakes TYPE POLYGON STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/lakes TOLERANCE 3 CLASSITEM usclass CLASS NAME "Water & Rivers" EXPRESSION "421" COLOR 49 117 185 BACKGROUNDCOLOR 32 201 201 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "^-" COLOR 255 0 0 OUTLINECOLOR 0 0 0 END QUERYITEM usclass QUERY EXPRESSION "421" TEMPLATE /AOLserver/servers/server1/pages/ms_demo/lakes.html JOIN NAME lakejoin TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf FROM islake # item names are case insensitive TO "type" # must be quoted as TYPE is a mapserver keyword END END QUERY EXPRESSION "^-" TEMPLATE /AOLserver/servers/server1/pages/ms_demo/land.html JOIN NAME lakejoin TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf FROM islake # item names are case insensitive TO "type" # must be quoted as TYPE is a mapserver keyword END END END # Layer LAYER NAME streams TYPE LINE STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/streams TOLERANCE 5 CLASS NAME "Streams" COLOR 49 117 185 END QUERY TEMPLATE /AOLserver/servers/server1/pages/ms_demo/streams.html END END # Layer LAYER NAME secondary_roads TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/secondary MAXSCALE 50000 SYMBOLSCALE 24000 CLASS NAME "Secondary Roads" COLOR 212 212 212 SYMBOL 13 SIZE 2 MAXSIZE 4 END END # Layer LAYER NAME primary_roads TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/primary SYMBOLSCALE 24000 CLASS NAME "Primary Roads" COLOR 128 128 128 SYMBOL 13 SIZE 3 MAXSIZE 5 END END # Layer LAYER NAME runways TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/runways CLASS COLOR 30 94 30 NAME "Airport Runways" END END # Layer LAYER NAME railroad TYPE LINE STATUS OFF DATA /AOLserver/servers/server1/pages/ms_demo/data/railroad CLASS COLOR 151 151 151 SYMBOL 4 NAME "Railways" END END # Layer LAYER NAME cities TYPE ANNOTATION STATUS ON DATA /AOLserver/servers/server1/pages/ms_demo/data/cities TOLERANCE 10 LABELITEM "name" CLASS SIZE 8 COLOR 255 0 0 SYMBOL 6 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE BITMAP #JUSTIFY CENTER SIZE GIANT POSITION AUTO WRAP " " END # Label END # Class QUERY TEMPLATE /AOLserver/servers/server1/pages/ms_demo/cities.html END # Query END # Layer END # Map File -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: line.sym URL: From danmo at videotron.ca Wed Feb 9 08:48:01 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 09 Feb 2000 11:48:01 -0500 Subject: Trouble running demo References: Message-ID: <38A19A41.610F5583@videotron.ca> Vinod Chettur wrote: > > Hello all, > > I am trying to run the MapServer demo on NT with Apache and AOLserver. After > spending many frustrating days, I think I am doing something wrong with the > demo.map file. I am a web/database developer but not a GIS expert so I am > still coming to grips with the software. Here is the error I get: > getInteger(): Incorrect data type. (END):(8) > If someone can point me in the right direction I would be grateful. This > software is great stuff. My demo.map follows. > Thanks, Vinod > I ran into the same thing. The workaround for me was to comment out the following line in the .map file: > LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym I'm not sure what the cause is, probably a change in the line symbol file format??? I didn't look into it further because I didn't need line.sym anyways. 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. From anguy at geoanalytic.com Wed Feb 9 09:10:11 2000 From: anguy at geoanalytic.com (An Tay Nguy) Date: Wed, 9 Feb 2000 10:10:11 -0700 Subject: Trouble running demo Message-ID: <005201bf7320$864304b0$3a0002c0@dell> Hi Vinod, Try updating your symbols file with these. Cheers! -----Original Message----- From: Vinod Chettur To: mapserver-users at lists.gis.umn.edu Date: Wednesday, February 09, 2000 9:50 AM Subject: RE: Trouble running demo >Hello all, > >I am trying to run the MapServer demo on NT with Apache and AOLserver. After >spending many frustrating days, I think I am doing something wrong with the >demo.map file. I am a web/database developer but not a GIS expert so I am >still coming to grips with the software. Here is the error I get: >getInteger(): Incorrect data type. (END):(8) >If someone can point me in the right direction I would be grateful. This >software is great stuff. My demo.map follows. >Thanks, Vinod >--------------------------------------------------------------------------- - >--------------------------------------------------------------------------- - >---------------------- >--------------------------------------------------------------------------- - >--------------------------------------------------------------------------- - >---------------------- > ># ># Start of map file ># >NAME DEMO >STATUS ON >SIZE 600 600 >SHADESET /AOLserver/servers/server1/pages/ms_demo/symbols/shade.sym >MARKERSET /AOLserver/servers/server1/pages/ms_demo/symbols/marker.sym >LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym >EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 >UNITS METERS >SHAPEPATH "/AOLserver/servers/server1/pages/ms_demo/data" >IMAGECOLOR 255 255 255 > >#LABELOVERLAP FALSE > ># ># Start of web interface definition ># >WEB > HEADER /AOLserver/servers/server1/pages/ms_demo/demo_header.html > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/demo.html > MINSCALE 1000 > MAXSCALE 1550000 >END > ># ># Start of reference map ># >REFERENCE > IMAGE /AOLserver/servers/server1/pages/ms_demo/graphics/reference_base.gif > EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > 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 county > TYPE POLYGON > STATUS DEFAULT > DATA /AOLserver/servers/server1/pages/ms_demo/data/county > CLASS > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 248 248 95 > END >END > >LAYER > NAME landsat > TYPE RASTER > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/landsat.tif > OFFSITE 0 >END > >LAYER > NAME lakes > TYPE POLYGON > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/lakes > TOLERANCE 3 > > CLASSITEM usclass > CLASS > NAME "Water & Rivers" > EXPRESSION "421" > COLOR 49 117 185 > BACKGROUNDCOLOR 32 201 201 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "^-" > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > > QUERYITEM usclass > QUERY > EXPRESSION "421" > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/lakes.html > JOIN > NAME lakejoin > TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf > FROM islake # item names are case insensitive > TO "type" # must be quoted as TYPE is a mapserver keyword > END > > END > QUERY > EXPRESSION "^-" > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/land.html > JOIN > NAME lakejoin > TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf > FROM islake # item names are case insensitive > TO "type" # must be quoted as TYPE is a mapserver keyword > END > END >END # Layer > >LAYER > NAME streams > TYPE LINE > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/streams > TOLERANCE 5 > > CLASS > NAME "Streams" > COLOR 49 117 185 > END > > QUERY > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/streams.html > END >END # Layer > >LAYER > NAME secondary_roads > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/secondary > MAXSCALE 50000 > SYMBOLSCALE 24000 > CLASS > NAME "Secondary Roads" > COLOR 212 212 212 > SYMBOL 13 > SIZE 2 > MAXSIZE 4 > END >END # Layer > >LAYER > NAME primary_roads > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/primary > SYMBOLSCALE 24000 > > CLASS > NAME "Primary Roads" > COLOR 128 128 128 > SYMBOL 13 > SIZE 3 > MAXSIZE 5 > END >END # Layer > >LAYER > NAME runways > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/runways > > CLASS > COLOR 30 94 30 > NAME "Airport Runways" > END >END # Layer > >LAYER > NAME railroad > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/railroad > CLASS > COLOR 151 151 151 > SYMBOL 4 > NAME "Railways" > END >END # Layer > >LAYER > NAME cities > TYPE ANNOTATION > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/cities > TOLERANCE 10 > > LABELITEM "name" > > CLASS > SIZE 8 > COLOR 255 0 0 > SYMBOL 6 > LABEL > BACKGROUNDCOLOR 200 255 255 > COLOR 30 94 94 > TYPE BITMAP > #JUSTIFY CENTER > SIZE GIANT > POSITION AUTO > WRAP " " > END # Label > END # Class > > QUERY > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/cities.html > END # Query >END # Layer > >END # Map File -------------- next part -------------- A non-text attachment was scrubbed... Name: symbols.zip Type: application/x-zip-compressed Size: 14442 bytes Desc: not available URL: From chetturv at sdhu.moh.gov.on.ca Wed Feb 9 10:55:51 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Wed, 9 Feb 2000 13:55:51 -0500 Subject: Trouble running demo Message-ID: Fantastic! Thanks a lot. It worked. Vinod > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, February 09, 2000 11:54 AM > To: mapserver-users at lists.gis.umn.edu; chetturv at sdhu.moh.gov.on.ca > Subject: RE: Trouble running demo > > The problem is related to format changes made to line symbols. A > "corrected" > version of line.sym is found in the mapserver distribution in the symbols > directory. > Swap that version with the one referenced in the demo.map and that error > should > go away. I've attached that file just in case you don't have it. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Vinod Chettur 02/09/00 10:28AM >>> > Hello all, > > I am trying to run the MapServer demo on NT with Apache and AOLserver. > After > spending many frustrating days, I think I am doing something wrong with > the > demo.map file. I am a web/database developer but not a GIS expert so I am > still coming to grips with the software. Here is the error I get: > getInteger(): Incorrect data type. (END):(8) > If someone can point me in the right direction I would be grateful. This > software is great stuff. My demo.map follows. > Thanks, Vinod > -------------------------------------------------------------------------- > -- > -------------------------------------------------------------------------- > -- > ---------------------- > -------------------------------------------------------------------------- > -- > -------------------------------------------------------------------------- > -- > ---------------------- > > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > SHADESET /AOLserver/servers/server1/pages/ms_demo/symbols/shade.sym > MARKERSET /AOLserver/servers/server1/pages/ms_demo/symbols/marker.sym > LINESET /AOLserver/servers/server1/pages/ms_demo/symbols/line.sym > EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > UNITS METERS > SHAPEPATH "/AOLserver/servers/server1/pages/ms_demo/data" > IMAGECOLOR 255 255 255 > > #LABELOVERLAP FALSE > > # > # Start of web interface definition > # > WEB > HEADER /AOLserver/servers/server1/pages/ms_demo/demo_header.html > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/demo.html > MINSCALE 1000 > MAXSCALE 1550000 > END > > # > # Start of reference map > # > REFERENCE > IMAGE > /AOLserver/servers/server1/pages/ms_demo/graphics/reference_base.gif > EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > 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 county > TYPE POLYGON > STATUS DEFAULT > DATA /AOLserver/servers/server1/pages/ms_demo/data/county > CLASS > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 248 248 95 > END > END > > LAYER > NAME landsat > TYPE RASTER > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/landsat.tif > OFFSITE 0 > END > > LAYER > NAME lakes > TYPE POLYGON > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/lakes > TOLERANCE 3 > > CLASSITEM usclass > CLASS > NAME "Water & Rivers" > EXPRESSION "421" > COLOR 49 117 185 > BACKGROUNDCOLOR 32 201 201 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "^-" > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > > QUERYITEM usclass > QUERY > EXPRESSION "421" > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/lakes.html > JOIN > NAME lakejoin > TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf > FROM islake # item names are case insensitive > TO "type" # must be quoted as TYPE is a mapserver keyword > END > > END > QUERY > EXPRESSION "^-" > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/land.html > JOIN > NAME lakejoin > TABLE /AOLserver/servers/server1/pages/ms_demo/data/lakejoin.dbf > FROM islake # item names are case insensitive > TO "type" # must be quoted as TYPE is a mapserver keyword > END > END > END # Layer > > LAYER > NAME streams > TYPE LINE > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/streams > TOLERANCE 5 > > CLASS > NAME "Streams" > COLOR 49 117 185 > END > > QUERY > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/streams.html > END > END # Layer > > LAYER > NAME secondary_roads > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/secondary > MAXSCALE 50000 > SYMBOLSCALE 24000 > CLASS > NAME "Secondary Roads" > COLOR 212 212 212 > SYMBOL 13 > SIZE 2 > MAXSIZE 4 > END > END # Layer > > LAYER > NAME primary_roads > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/primary > SYMBOLSCALE 24000 > > CLASS > NAME "Primary Roads" > COLOR 128 128 128 > SYMBOL 13 > SIZE 3 > MAXSIZE 5 > END > END # Layer > > LAYER > NAME runways > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/runways > > CLASS > COLOR 30 94 30 > NAME "Airport Runways" > END > END # Layer > > LAYER > NAME railroad > TYPE LINE > STATUS OFF > DATA /AOLserver/servers/server1/pages/ms_demo/data/railroad > CLASS > COLOR 151 151 151 > SYMBOL 4 > NAME "Railways" > END > END # Layer > > LAYER > NAME cities > TYPE ANNOTATION > STATUS ON > DATA /AOLserver/servers/server1/pages/ms_demo/data/cities > TOLERANCE 10 > > LABELITEM "name" > > CLASS > SIZE 8 > COLOR 255 0 0 > SYMBOL 6 > LABEL > BACKGROUNDCOLOR 200 255 255 > COLOR 30 94 94 > TYPE BITMAP > #JUSTIFY CENTER > SIZE GIANT > POSITION AUTO > WRAP " " > END # Label > END # Class > > QUERY > TEMPLATE /AOLserver/servers/server1/pages/ms_demo/cities.html > END # Query > END # Layer > > END # Map File << File: line.sym >> From marin at here.is Wed Feb 9 16:36:56 2000 From: marin at here.is (Ma) Date: Thu, 10 Feb 2000 00:36:56 +0000 Subject: MapServer Sites Message-ID: <38A20826.62B2B6CA@here.is> Dear All, I would like to take a look what the other users do with MapServer in the web. Do you have some URLs? -- Ma From mdh20 at humboldt.edu Wed Feb 9 17:05:38 2000 From: mdh20 at humboldt.edu (Michael Hass) Date: Wed, 9 Feb 2000 17:05:38 -0800 (PST) Subject: MapServer Sites In-Reply-To: <38A20826.62B2B6CA@here.is> Message-ID: We've got a "workman" version of both java and nonjava style running at http://pixel.cnrs.humboldt.edu/krfrtf/ They are both using 3.2 with 3.3.xxx coming soon. I would be really interested to see some sites that are applying the types of query discussions that have been on the list lately. Also if looking at my map files would be helpful, let me know. Mike Hass On Thu, 10 Feb 2000, Ma wrote: > Dear All, > > I would like to take a look what the other users do with MapServer in > the web. > Do you have some URLs? > > -- > Ma > > > > > From imap at chesapeake.net Wed Feb 9 23:16:42 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 10 Feb 2000 02:16:42 -0500 Subject: MapServer Sites References: <38A20826.62B2B6CA@here.is> Message-ID: <38A265DA.C74CC18C@chesapeake.net> I have a demo version of the AccuWeather FirstWarn MapServer at http://imap.chesapeake.net/firstwarn/firstwarn.html The weather data is near realtime (5 minute intervals) The controls for "saved views" and "animation" have been stripped off on this version. In the next few days, I will to try to set up something that demonstrates the animation on this web version (very cool). It is also using a flawed version of Tiger/Line '97... but still it works okay for my purposes. If you zoom way in, you will see street labels, etc. The fonts and markers are larger than normal mainly because the "real" app is setup to display on NTSC (TV). The app uses the java mapimage.newmap() is a little slow. That is the main complaint. Regards, Chris Ma wrote: > > Dear All, > > I would like to take a look what the other users do with MapServer in > the web. > Do you have some URLs? > > -- > Ma -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From steve.lime at dnr.state.mn.us Thu Feb 10 09:46:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 10 Feb 2000 11:46:36 -0600 Subject: MapServer Sites Message-ID: Here's my full list... http://www.dnr.state.mn.us/compass http://www.dnr.state.mn.us/lakefind http://www.dnr.state.mn.us/gamefind/deer/map.html http://www.dnr.state.mn.us/fish_and_wildlife/trout_fishing/se_trout_init.html http://deli.dnr.state.mn.us/ http://www.dnr.state.mn.us/information_center/resources/ A couple of DRG viewer examples... http://www.dnr.state.mn.us/cgi-bin/mapserv3.3?map=/usr/local/www/docs/mapping/quads/view.map&layer=quads100k&buffer=5080&mode=nquery&mapxy=566130.70385+5240714.89808 http://www.dnr.state.mn.us/mapping/tomo/maps.html?566130.70385,5240714.89808 A small 3.3 demo suite is at: http://arachnid.dnr.state.mn.us/ms_test I've got other stuff running in other agencies and hopefully those users will chime in here too. Be sure to check out DNR Resource Assessment for lots of apps: http://www.ra.dnr.state.mn.us/ Steve <<< Ma 2/ 9 6:32p >>> Dear All, I would like to take a look what the other users do with MapServer in the web. Do you have some URLs? -- Ma From joel at crrel.usace.army.mil Thu Feb 10 10:16:30 2000 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Thu, 10 Feb 2000 13:16:30 -0500 Subject: tile problem: loadLayer(): Unknown identifier. (INDEX) Message-ID: hi! i think i'm missing something on tiling maps. i've got a state index cover, and tiger road files for each state, and this simple template: NAME road_tile STATUS ON SIZE 600 600 EXTENT -82 31 -81 32 UNITS DD IMAGECOLOR 100 100 150 TILE "/s7/tiger/road/" WEB IMAGEPATH "/home/httpd/html/tmp/" IMAGEURL "/tmp/" TEMPLATE "z.html" END LAYER NAME "road" INDEX "/s7/tiger/road/road_index" # DATA "/s7/tiger/road/ga" TYPE line STATUS DEFAULT CLASS SYMBOL 0 COLOR 248 248 248 END END Mapserver returns the error: loadLayer(): Unknown identifier. (INDEX) with this template. i've got the same problem with 3.3.002 and 3.3.006. any suggestions would be greatly appreciated! thanks mapserver rocks! joel ------- replay of instructions for using tiles ----- i think i've followed these clear instructions: * From: "bfraser" > * Date: Tue, 12 Oct 1999 08:40:49 -0600 * References: <380263A6.B00A5039 at randomlogic.com > * Sender: owner-mapserver-users at lists.gis.umn.edu Paul, As long as you don't want to query the data in the tiles, you can use the tiling feature in MapServer. 1. Create a shapefile containing the outlines of the counties 2. Create a column in the shapefile with the name of LOCATION 3. For each county outline shape in the shapefile, enter the filename of the county shapefile in the LOCATION column (leave off the .shp ) 4. Edit the "map" file. Add an entry for TILE at the top. This contains the path to the directory containing county files. It is prepended to the name in the LOCATION column to build the full path to the shapefiles. Add a LAYER entry with an INDEX entry. The index is the name of the shapefile you created in step 1. A couple of notes about tiles: 1. The tile index shapefile and the "data" shapefiles must be in the same coordinate system. 2. Mapserver will not query data in tiled files. Brent ---------------------------- Joel Schlagel (603) 646-4387 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3160 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Thu Feb 10 10:45:48 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 10 Feb 2000 12:45:48 -0600 Subject: 3.3.007 is released... Message-ID: Greetings: A few more bugs have been tracked down and fixed. This version introduces the ability to embed scalebars and legends directly within maps. This is also the first version of MapScript to expose the MapServer query functions. So, from perl you can query one or more layers by point, area or feature. Item/value queries are best handled with the various XBase modules available to scripting languages and are not supported as part of MapScript. I will update the online docs this evening... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From teb at mallit.fr.umn.edu Thu Feb 10 11:59:40 2000 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Thu, 10 Feb 2000 13:59:40 -0600 (CST) Subject: MapServer Sites Message-ID: <200002101959.NAA19191@mallit.fr.umn.edu> We'd be very happy to add people's application URLs to the MapServer Gallery page. We only want to do this with permission though. If you have an URL you're willing to share, send the URL and a couple sentence (or so) description to accompany the URL to and we'll do it. Tom From ender at titan.lab.csuchico.edu Thu Feb 10 08:57:55 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Thu, 10 Feb 2000 16:57:55 +0000 (/etc/localtime) Subject: mapserver sites Message-ID: I've got a site where I use a mix of pre-rendered views along with the mapserver interface. I'm working on getting funding to expand it to include javascript interfaces as well as building a SQL database to drive it (it uses flatfile databases now). http://www.gic.csuchico.edu/compendium -Aaron From sl57k at cc.usu.edu Thu Feb 10 21:27:56 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Thu, 10 Feb 2000 22:27:56 -0700 Subject: MapServer Sites References: <38A20826.62B2B6CA@here.is> Message-ID: <38A39DDC.1B15B174@cc.usu.edu> Ma, Here is a link to one of the applications that we are developing. We have only put about 50 man hours into it, so it is still pretty rough... (we will be adding some modeling interfaces to it, as well as some hydrological simulations) Riparia: Ma wrote: > Dear All, > > I would like to take a look what the other users do with MapServer in > the web. > Do you have some URLs? > > -- > Ma -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsvpss at eng.chula.ac.th Fri Feb 11 01:00:15 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Fri, 11 Feb 2000 16:00:15 +0700 Subject: MapServer Sites Message-ID: <38A3CF9F.5034E6D1@eng.chula.ac.th> Greeting... colleagues at NuMap/Thailand and i are implementing a traffic report system too. Pls take a look at : http://mapserver.ocmlt.or.th Don'r worry about text, it's Thai language. Thanks Steve and co. Rgds, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From fsvpss at eng.chula.ac.th Fri Feb 11 03:15:56 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Fri, 11 Feb 2000 18:15:56 +0700 Subject: Another mapserver site Message-ID: <38A3EF6C.F25F3EDC@eng.chula.ac.th> Dear all, sorry for wrong tippo. the correct one is http://mapserver.ocmlt.go.th/ Sorry for inconvenience. Rgds, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From bfischer at usgs.gov Fri Feb 11 09:15:01 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Fri, 11 Feb 2000 11:15:01 -0600 Subject: Question about fonts? Message-ID: I am very new to the mapserver and am starting to play around with things. I ran into a problem with the fonts. I am using the NT version of Mapserver running under Windows NT IIS. This is the error I get from the mapserv.exe: msGetLabelSize(): TrueType Font error. Requested font (arial) not found I figure I don't have the fonts set or put where they need to be. Here is the map file I am using. NAME MAJOR_BASINS EXTENT 74000 4775000 798000 5500000 SIZE 400 400 UNITS meters WEB TEMPLATE major_watershed.htm END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 ANTIALIAS END END SCALEBAR STATUS ON INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES LABEL COLOR 0 0 0 SIZE small END END REFERENCE STATUS ON IMAGE reference_major.gif SIZE 150 150 EXTENT 125105 4785412 788393 5488749 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LAYER NAME "major_basins" DATA major_basins STATUS DEFAULT TYPE POLYGON CLASS NAME "Major Basin Delineations" OUTLINECOLOR 0 0 0 COLOR 250 175 25 END END LAYER NAME "county" DATA ctybdln2 STATUS DEFAULT TYPE LINE CLASS NAME "County Boundaries" COLOR 128 128 128 END END END Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From pnaciona at gis.umn.edu Fri Feb 11 12:59:28 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 11 Feb 2000 14:59:28 -0600 Subject: Question about fonts? References: Message-ID: <00ae01bf74d2$e2e6bd70$9a496580@gis.umn.edu> Brian, I'm working on implementing Steve Lime's tutorial on Windows NT. You can access it from http://128.101.73.154/projects/tutorial Your map file looks like it needs more stuff before it works... (specify the font set, symbol sets, Image and data paths). Steve's tutorial goes through examples of simple map and template files. Hope this helps. -Perry Pericles S. Nacionales Research Assistant Department of Forest Resources University of Minnesota pnaciona at gis.umn.edu (612) 625 5765 ----- Original Message ----- From: To: Sent: Friday, February 11, 2000 11:15 AM Subject: Question about fonts? > I am very new to the mapserver and am starting to play around with things. > I ran into a problem with the fonts. I am using the NT version of > Mapserver running under Windows NT IIS. This is the error I get from the > mapserv.exe: > > msGetLabelSize(): TrueType Font error. Requested font (arial) not found > > I figure I don't have the fonts set or put where they need to be. Here is > the map file I am using. > > NAME MAJOR_BASINS > EXTENT 74000 4775000 798000 5500000 > SIZE 400 400 > UNITS meters > > WEB > TEMPLATE major_watershed.htm > END > > LEGEND > STATUS ON > LABEL > TYPE TRUETYPE > FONT arial > COLOR 0 0 0 > SIZE 12 > ANTIALIAS > END > END > > SCALEBAR > STATUS ON > INTERVALS 4 > SIZE 200 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > LABEL > COLOR 0 0 0 > SIZE small > END > END > > REFERENCE > STATUS ON > IMAGE reference_major.gif > SIZE 150 150 > EXTENT 125105 4785412 788393 5488749 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > LAYER > NAME "major_basins" > DATA major_basins > STATUS DEFAULT > TYPE POLYGON > CLASS > NAME "Major Basin Delineations" > OUTLINECOLOR 0 0 0 > COLOR 250 175 25 > END > END > > LAYER > NAME "county" > DATA ctybdln2 > STATUS DEFAULT > TYPE LINE > CLASS > NAME "County Boundaries" > COLOR 128 128 128 > END > END > END > > Thanks, > > Brian Fischer > bfischer at usgs.gov > USGS WRD > 2280 Woodale Dr. > Mounds View, MN > (612) 783-3133 > > From peter.jacobs at vs42.nl Fri Feb 11 17:21:08 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Sat, 12 Feb 2000 02:21:08 +0100 Subject: how to point out a query Message-ID: Hello, I have the following question. I use a annotation layer with the labels of the streets of a city. When I query this layer a new map is drawn with te selected street centered in the middle. Can I change the color of the selected label or perhaps even draw a little picture (like a flag) on top op the selected label Thanks for helping me out, Peter Jacobs From peter.jacobs at vs42.nl Sun Feb 13 06:35:04 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Sun, 13 Feb 2000 15:35:04 +0100 Subject: problem with class expression Message-ID: Hello, I'm having trouble with a class expression. This is the case LAYER NAME Layer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS DEFAULT DATA Layer18Text MAXSCALE 12000 LABELITEM "TEXTSTRING" LABELANGLEITEM "TEXT_ANGLE" LABELSIZEITEM "TEXT_SIZE" CLASSITEM "TEXTSTRING" CLASS NAME SELECTED !! EXPRESSION ([TEXTSTRING] eq [value]) #value is a cgi-variable from MySQL It doesn't work !! SYMBOL 0 COLOR 0 0 0 LABEL ANTIALIAS COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 20 POSITION UR END END CLASS NAME NOTSELECTED EXPRESSION /./ #the rest ... END END If I try for example 'Markt' instead of [value] where I know that there is a street Markt the expression is still not correct. I tried to use the feature but this failed as well FEATURE POINTS [shpmid] CLASS SELECTED TEXT "TEXTSTRING] END Is there anyone who can help me Regards, Peter From steve.lime at dnr.state.mn.us Sun Feb 13 20:41:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 13 Feb 2000 22:41:18 -0600 Subject: problem with class expression Message-ID: Peter: What you're trying to do (in both examples) is not possible. That's not to say that there isn't another way to do it. So, exactly what are you trying to do? Steve <<< "Peter H.M. Jacobs" 2/13 8:33a >>> Hello, I'm having trouble with a class expression. This is the case LAYER NAME Layer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS DEFAULT DATA Layer18Text MAXSCALE 12000 LABELITEM "TEXTSTRING" LABELANGLEITEM "TEXT_ANGLE" LABELSIZEITEM "TEXT_SIZE" CLASSITEM "TEXTSTRING" CLASS NAME SELECTED !! EXPRESSION ([TEXTSTRING] eq [value]) #value is a cgi-variable from MySQL It doesn't work !! SYMBOL 0 COLOR 0 0 0 LABEL ANTIALIAS COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 20 POSITION UR END END CLASS NAME NOTSELECTED EXPRESSION /./ #the rest ... END END If I try for example 'Markt' instead of [value] where I know that there is a street Markt the expression is still not correct. I tried to use the feature but this failed as well FEATURE POINTS [shpmid] CLASS SELECTED TEXT "TEXTSTRING] END Is there anyone who can help me Regards, Peter From peter.jacobs at vs42.nl Sun Feb 13 22:58:30 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Mon, 14 Feb 2000 07:58:30 +0100 Subject: problem with class expression Message-ID: Hello Stephen, This is the case: A user enters the name of a streetin a textbox. I query the street in the following layer with an item/value itemquery and send the result back to mapserv to create a map with the street in te center of the new map. Finally I want to mark that street. I thought to do this with these two layers. LAYER NAME QueryLayer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS QUERYONLY DATA Layer18Text QUERYITEM "TEXTSTRING" QUERY TEMPLATE "http://../?map=/sites/../delft.map&mode=browse&scale=3000&mapxy=[shpmid]&va lue=[value]" END END LAYER NAME Layer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS DEFAULT DATA Layer18Text MAXSCALE 12000 LABELITEM "TEXTSTRING" LABELANGLEITEM "TEXT_ANGLE" LABELSIZEITEM "TEXT_SIZE" CLASSITEM "TEXTSTRING" CLASS NAME SELECTED EXPRESSION ([TEXTSTRING] eq [value]) SYMBOL 0 COLOR 0 0 0 LABEL ANTIALIAS COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 20 POSITION UR END END CLASS NAME NOTSELECTED EXPRESSION /./ #the rest ... END END Regards, Peter From mapadm at polsl.gliwice.pl Mon Feb 14 01:08:04 2000 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Mon, 14 Feb 2000 10:08:04 +0100 Subject: font without Unicode mapping Message-ID: <200002140904.KAA07038@zeus.polsl.gliwice.pl> I know it is not right forum, but is there anything I can do with the font which doesn't have Unicode mapping and it symbols don't show on the map ? While in other Windows applications this font(s) works ok. Grzegorz From steve.lime at dnr.state.mn.us Mon Feb 14 05:58:42 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 14 Feb 2000 07:58:42 -0600 Subject: font without Unicode mapping Message-ID: Which version you using? The character mapping is handled via the gdtf library. That lib is now seemingly maintained by the GD folks. 3.2 was my own unicode stuff which was really limited, 3.3 supports a couple of other mappings based on the GD version. I haven't gone through and reconsiled the versions in a while so maybe there is new code on the GD side. So try this: - try newest MapServer - try a test with newest GD If it seems to be supported with the latest GD let me know and I'll fix things. If not, then you'd have to write the code for the mapping. See the gdtf/gdttf.c for details. Steve <<< "Grzegorz Myrda" 2/14 3:07a >>> I know it is not right forum, but is there anything I can do with the font which doesn't have Unicode mapping and it symbols don't show on the map ? While in other Windows applications this font(s) works ok. Grzegorz From rchavez at perseus.tufts.edu Mon Feb 14 06:26:25 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Mon, 14 Feb 2000 09:26:25 -0500 (EST) Subject: Yet another mapserver site Message-ID: More examples... I've got a site going that uses mapscript. It's an atlas of the the ancient Greek and Roman world that I've been working on for our project web site. psyche.perseus.tufts.edu/cgi-bin/patlas16.pl I'd be happy to share the perl code with anyone who is interested. One warning, we are (slowly) moving to a better server and I expect transfer the atlas to the new iron within 2 - 4 weeks. This link may not work after that time. I'll supply a more permanet URL when the move is complete. Rob Chavez Perseus Project From mapadm at polsl.gliwice.pl Mon Feb 14 06:35:06 2000 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Mon, 14 Feb 2000 15:35:06 +0100 Subject: font without Unicode mapping In-Reply-To: Message-ID: <200002141432.PAA00976@zeus.polsl.gliwice.pl> I still use 3.2. I'll try with last 3.3 and GD... Thanks, Grzegorz From: "Stephen Lime" > Which version you using? The character mapping is handled via the gdtf library. That lib is now seemingly maintained by the GD folks. 3.2 was my own unicode stuff which was really limited, 3.3 supports a couple of other mappings based on the GD version. I haven't gone through and reconsiled > the versions in a while so maybe there is new code > on the GD side. So try this: > > - try newest MapServer > - try a test with newest GD > > If it seems to be supported with the latest GD let me know and I'll fix things. If not, then you'd have to write the code for the mapping. See the gdtf/gdttf.c for details. > > Steve > > <<< "Grzegorz Myrda" 2/14 3:07a >>> > I know it is not right forum, but is there anything I can do with the > font which doesn't have Unicode mapping and it symbols don't > show on the map ? > While in other Windows applications this font(s) works ok. > > Grzegorz > From steve.lime at dnr.state.mn.us Mon Feb 14 19:14:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 14 Feb 2000 21:14:06 -0600 Subject: Fwd: Use of created GIF as Lines, Points and Fill Message-ID: Forwarded Mail received from: "Stephen Power" -------------- next part -------------- An embedded message was scrubbed... From: "Stephen Power" Subject: Use of created GIF as Lines, Points and Fill Date: Tue, 15 Feb 2000 10:34:51 +1100 Size: 1417 URL: From teb at mallit.fr.umn.edu Tue Feb 15 08:26:11 2000 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Tue, 15 Feb 2000 10:26:11 -0600 (CST) Subject: archives Message-ID: <200002151626.KAA24342@mallit.fr.umn.edu> There is a new interface to the mailing list archives at . It is also linked from the MapServer Support page. There are still a couple issues to rresolve but we thought it best to make the search capability available now. Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at forestry.umn.edu From rchavez at perseus.tufts.edu Wed Feb 16 14:18:28 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 16 Feb 2000 17:18:28 -0500 (EST) Subject: Tif an wld file problems Message-ID: Greetings, I started fooling around with displaying tifs using mapscript and I'm having a problem rendering a tif image layer. I've run the demo package and displayed the landsat tif with mapserver just fine, so I know mapserver/script compiled with the tif libraries. The tif originally had a .tfw file so I changed the extension to .wld (it looks like this, units are in meters) 1.32301253030703 0.00000000000000 0.00000000000000 -1.16784976858186 531694.70377556235000 181396.49239035073000 After the script runs I get a blank .gif file as a result, no rendering of the tif in site. This leads me to believe there's an extent problem somewhere but I'm not sure where. The image should fit within the extents of the map file (see map file below), I should be getting something even if at a very small scale. I thought .tfw files were structurally identical with .wld files, or have I missed something? MAP NAME test SIZE 500 500 EXTENT 520118.780 175873.500 534426.880 184948.500 UNITS METERS SHAPEPATH "data" LAYER NAME stpauls TYPE RASTER STATUS ON DATA stpauls.tif END END Regards, Robert Chavez Perseus Project rchavez at perseus.tufts.edu From ddnebert at usgs.gov Wed Feb 16 14:47:38 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Wed, 16 Feb 2000 17:47:38 -0500 Subject: Tif an wld file problems References: Message-ID: <38AB290A.88A36849@usgs.gov> It is possible that you have a 24-bit TIFF file. It will only render if it is 8-bit, or so I experienced a few months back. Try again by saving the TIF as 8-bit and see what happens. Doug. Robert Chavez wrote: > > Greetings, > > I started fooling around with displaying tifs using mapscript and I'm > having a problem rendering a tif image layer. I've run the demo package > and displayed the landsat tif with mapserver just fine, so I know > mapserver/script compiled with the tif libraries. > > The tif originally had a .tfw file so I changed the extension to > .wld (it looks like this, units are in meters) > > 1.32301253030703 > 0.00000000000000 > 0.00000000000000 > -1.16784976858186 > 531694.70377556235000 > 181396.49239035073000 > > After the script runs I get a blank .gif file as a result, no rendering of > the tif in site. This leads me to believe there's an extent problem > somewhere but I'm not sure where. The image should fit within the extents > of the map file (see map file below), I should be getting something even > if at a very small scale. I thought .tfw files were structurally identical > with .wld files, or have I missed something? > > MAP > NAME test > SIZE 500 500 > EXTENT 520118.780 175873.500 534426.880 184948.500 > UNITS METERS > SHAPEPATH "data" > > LAYER > NAME stpauls > TYPE RASTER > STATUS ON > DATA stpauls.tif > END > END > > Regards, > > Robert Chavez > Perseus Project > rchavez at perseus.tufts.edu -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html From Robin.Ellis at dnr.qld.gov.au Wed Feb 16 15:42:40 2000 From: Robin.Ellis at dnr.qld.gov.au (Ellis Robin (Bundaberg)) Date: Thu, 17 Feb 2000 09:42:40 +1000 Subject: map files Message-ID: Can somebody please post an example of a map file for 3.3 that demonstrates the use of different line symbols for different layers and perhaps different symbols for annotatio layers? Thanks. Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au From rchavez at perseus.tufts.edu Thu Feb 17 04:43:05 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Thu, 17 Feb 2000 07:43:05 -0500 (EST) Subject: Tif an wld file problems In-Reply-To: <38AB290A.88A36849@usgs.gov> Message-ID: That was the problem. I saved it as an uncompressed 8-bit and it works jut fine. Thanks for the tip! Rob On Wed, 16 Feb 2000, Doug Nebert wrote: > It is possible that you have a 24-bit TIFF file. It will only > render if it is 8-bit, or so I experienced a few months back. > Try again by saving the TIF as 8-bit and see what happens. > > Doug. > > Robert Chavez wrote: > > > > Greetings, > > > > I started fooling around with displaying tifs using mapscript and I'm > > having a problem rendering a tif image layer. I've run the demo package > > and displayed the landsat tif with mapserver just fine, so I know > > mapserver/script compiled with the tif libraries. > > > > The tif originally had a .tfw file so I changed the extension to > > .wld (it looks like this, units are in meters) > > > > 1.32301253030703 > > 0.00000000000000 > > 0.00000000000000 > > -1.16784976858186 > > 531694.70377556235000 > > 181396.49239035073000 > > > > After the script runs I get a blank .gif file as a result, no rendering of > > the tif in site. This leads me to believe there's an extent problem > > somewhere but I'm not sure where. The image should fit within the extents > > of the map file (see map file below), I should be getting something even > > if at a very small scale. I thought .tfw files were structurally identical > > with .wld files, or have I missed something? > > > > MAP > > NAME test > > SIZE 500 500 > > EXTENT 520118.780 175873.500 534426.880 184948.500 > > UNITS METERS > > SHAPEPATH "data" > > > > LAYER > > NAME stpauls > > TYPE RASTER > > STATUS ON > > DATA stpauls.tif > > END > > END > > > > Regards, > > > > Robert Chavez > > Perseus Project > > rchavez at perseus.tufts.edu > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > From ddnebert at usgs.gov Thu Feb 17 06:02:34 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Thu, 17 Feb 2000 09:02:34 -0500 Subject: Tif an wld file problems References: Message-ID: <38ABFF7A.D7F440AA@usgs.gov> You can even save it as an LZW compressed TIFF (if you have licensed software) and it will work fine, too. I have a 56MB TIFF I am working with and after compression it is 8MB with no noticeable performance hit. The TIFF indexing seems very efficient in the mapserv. Doug. Robert Chavez wrote: > > That was the problem. I saved it as an uncompressed 8-bit and it works jut > fine. Thanks for the tip! > > Rob > > On Wed, 16 Feb 2000, Doug Nebert wrote: > > > It is possible that you have a 24-bit TIFF file. It will only > > render if it is 8-bit, or so I experienced a few months back. > > Try again by saving the TIF as 8-bit and see what happens. > > > > Doug. > > > > Robert Chavez wrote: > > > > > > Greetings, > > > > > > I started fooling around with displaying tifs using mapscript and I'm > > > having a problem rendering a tif image layer. I've run the demo package > > > and displayed the landsat tif with mapserver just fine, so I know > > > mapserver/script compiled with the tif libraries. > > > > > > The tif originally had a .tfw file so I changed the extension to > > > .wld (it looks like this, units are in meters) > > > > > > 1.32301253030703 > > > 0.00000000000000 > > > 0.00000000000000 > > > -1.16784976858186 > > > 531694.70377556235000 > > > 181396.49239035073000 > > > > > > After the script runs I get a blank .gif file as a result, no rendering of > > > the tif in site. This leads me to believe there's an extent problem > > > somewhere but I'm not sure where. The image should fit within the extents > > > of the map file (see map file below), I should be getting something even > > > if at a very small scale. I thought .tfw files were structurally identical > > > with .wld files, or have I missed something? > > > > > > MAP > > > NAME test > > > SIZE 500 500 > > > EXTENT 520118.780 175873.500 534426.880 184948.500 > > > UNITS METERS > > > SHAPEPATH "data" > > > > > > LAYER > > > NAME stpauls > > > TYPE RASTER > > > STATUS ON > > > DATA stpauls.tif > > > END > > > END > > > > > > Regards, > > > > > > Robert Chavez > > > Perseus Project > > > rchavez at perseus.tufts.edu > > > > -- > > Douglas D. Nebert > > Clearinghouse Coordinator > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html From rchavez at perseus.tufts.edu Thu Feb 17 06:12:36 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Thu, 17 Feb 2000 09:12:36 -0500 (EST) Subject: Tif an wld file problems In-Reply-To: <38ABFF7A.D7F440AA@usgs.gov> Message-ID: I tried saving with LZW compression using PaintShop Pro but got the same result as before. It would be nice as my TIFFs are between 100 and 300MB. I'll give it another try. Rob On Thu, 17 Feb 2000, Doug Nebert wrote: > You can even save it as an LZW compressed TIFF (if you have > licensed software) and it will work fine, too. I have a 56MB > TIFF I am working with and after compression it is 8MB with > no noticeable performance hit. The TIFF indexing seems very > efficient in the mapserv. > > Doug. > > Robert Chavez wrote: > > > > That was the problem. I saved it as an uncompressed 8-bit and it works jut > > fine. Thanks for the tip! > > > > Rob > > > > On Wed, 16 Feb 2000, Doug Nebert wrote: > > > > > It is possible that you have a 24-bit TIFF file. It will only > > > render if it is 8-bit, or so I experienced a few months back. > > > Try again by saving the TIF as 8-bit and see what happens. > > > > > > Doug. > > > > > > Robert Chavez wrote: > > > > > > > > Greetings, > > > > > > > > I started fooling around with displaying tifs using mapscript and I'm > > > > having a problem rendering a tif image layer. I've run the demo package > > > > and displayed the landsat tif with mapserver just fine, so I know > > > > mapserver/script compiled with the tif libraries. > > > > > > > > The tif originally had a .tfw file so I changed the extension to > > > > .wld (it looks like this, units are in meters) > > > > > > > > 1.32301253030703 > > > > 0.00000000000000 > > > > 0.00000000000000 > > > > -1.16784976858186 > > > > 531694.70377556235000 > > > > 181396.49239035073000 > > > > > > > > After the script runs I get a blank .gif file as a result, no rendering of > > > > the tif in site. This leads me to believe there's an extent problem > > > > somewhere but I'm not sure where. The image should fit within the extents > > > > of the map file (see map file below), I should be getting something even > > > > if at a very small scale. I thought .tfw files were structurally identical > > > > with .wld files, or have I missed something? > > > > > > > > MAP > > > > NAME test > > > > SIZE 500 500 > > > > EXTENT 520118.780 175873.500 534426.880 184948.500 > > > > UNITS METERS > > > > SHAPEPATH "data" > > > > > > > > LAYER > > > > NAME stpauls > > > > TYPE RASTER > > > > STATUS ON > > > > DATA stpauls.tif > > > > END > > > > END > > > > > > > > Regards, > > > > > > > > Robert Chavez > > > > Perseus Project > > > > rchavez at perseus.tufts.edu > > > > > > -- > > > Douglas D. Nebert > > > Clearinghouse Coordinator > > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > > > > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > From Banister at BANISTER.COM Thu Feb 17 07:23:48 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Thu, 17 Feb 2000 08:23:48 -0700 Subject: Tif an wld file problems Message-ID: <51BFCC79A3CCD311A2DD0800362C8E031726@banister4.conen.net> Pack-Bits tiffs (i.e. DRGs) seem to work fine too if you want medium compression without LZW patent issues. Trevor Banister President Banister Consulting and Online Services Banister at Banister.com -----Original Message----- From: Robert Chavez [mailto:rchavez at perseus.tufts.edu] Sent: Thursday, February 17, 2000 7:13 AM To: Doug Nebert Cc: Mapserver Users Subject: Re: Tif an wld file problems I tried saving with LZW compression using PaintShop Pro but got the same result as before. It would be nice as my TIFFs are between 100 and 300MB. I'll give it another try. Rob On Thu, 17 Feb 2000, Doug Nebert wrote: > You can even save it as an LZW compressed TIFF (if you have > licensed software) and it will work fine, too. I have a 56MB > TIFF I am working with and after compression it is 8MB with > no noticeable performance hit. The TIFF indexing seems very > efficient in the mapserv. > > Doug. > > Robert Chavez wrote: > > > > That was the problem. I saved it as an uncompressed 8-bit and it works jut > > fine. Thanks for the tip! > > > > Rob > > > > On Wed, 16 Feb 2000, Doug Nebert wrote: > > > > > It is possible that you have a 24-bit TIFF file. It will only > > > render if it is 8-bit, or so I experienced a few months back. > > > Try again by saving the TIF as 8-bit and see what happens. > > > > > > Doug. > > > > > > Robert Chavez wrote: > > > > > > > > Greetings, > > > > > > > > I started fooling around with displaying tifs using mapscript and I'm > > > > having a problem rendering a tif image layer. I've run the demo package > > > > and displayed the landsat tif with mapserver just fine, so I know > > > > mapserver/script compiled with the tif libraries. > > > > > > > > The tif originally had a .tfw file so I changed the extension to > > > > .wld (it looks like this, units are in meters) > > > > > > > > 1.32301253030703 > > > > 0.00000000000000 > > > > 0.00000000000000 > > > > -1.16784976858186 > > > > 531694.70377556235000 > > > > 181396.49239035073000 > > > > > > > > After the script runs I get a blank .gif file as a result, no rendering of > > > > the tif in site. This leads me to believe there's an extent problem > > > > somewhere but I'm not sure where. The image should fit within the extents > > > > of the map file (see map file below), I should be getting something even > > > > if at a very small scale. I thought .tfw files were structurally identical > > > > with .wld files, or have I missed something? > > > > > > > > MAP > > > > NAME test > > > > SIZE 500 500 > > > > EXTENT 520118.780 175873.500 534426.880 184948.500 > > > > UNITS METERS > > > > SHAPEPATH "data" > > > > > > > > LAYER > > > > NAME stpauls > > > > TYPE RASTER > > > > STATUS ON > > > > DATA stpauls.tif > > > > END > > > > END > > > > > > > > Regards, > > > > > > > > Robert Chavez > > > > Perseus Project > > > > rchavez at perseus.tufts.edu > > > > > > -- > > > Douglas D. Nebert > > > Clearinghouse Coordinator > > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > > > > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > From erich at museum.state.il.us Thu Feb 17 03:20:35 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Thu, 17 Feb 2000 11:20:35 +0000 (/etc/localtime) Subject: AML for initial mapfile creation Message-ID: Hi, I've hacked together a rough AML that will produce an initial mapfile based on a series of coverages given by the user. It also converts the arcinfo coverages to shapefiles and does very rough html init and template files. I didn't see any references to routines like this in the archives, so I went ahead. Partially, I just wanted to have something to offer before I asked for help (see my next message). The aml is available at: http://museum.state.il.us/research/GISlab/mkmapserver.aml There's lots to do with this, assuming that it has any use at all. Oh yes, I've only run it on ARC Version 7.2.1 Patch 1 on solaris, and Mapserver 3.3.007 on SUSE 6.1 linux, and only two testings so far at that... Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From peter.jacobs at vs42.nl Thu Feb 17 09:38:29 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Thu, 17 Feb 2000 18:38:29 +0100 Subject: converting/ making shapefiles Message-ID: Hello, has anyone heard of a tool to convert shapefiles into comma separated value files and visa versa Regards Peter Jacobs From bowenj at peligroso.gaiaenv.com Thu Feb 17 09:57:16 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Thu, 17 Feb 2000 10:57:16 -0700 Subject: converting/ making shapefiles References: Message-ID: <38AC367C.BF5AF364@gaiaenv.com> Peter, If you have ArcView, ArcView can read CSV files as event themes (points). You can then 'Convert to shapefile' inside ArcView. Obviously if you have a lot of these, a little avenue script would be of use. Going from Shape to CSV can be done with a little script as well. Grab the XY locations and write them to a csv. Since the shapefile format is available, you might be better off writing some C or VB or ?? to achieve what you are after. Perhaps someone has already done this? Lines and polys become more complex and would require more coding. Although, you could easily read in the vertices as points (event theme) and then write a small script to convert to a line. A standard CSV would not work well for polys; indeed, you may want to explore another text format (e.g., generate files or E00 format). Cheers, Jim "Peter H.M. Jacobs" wrote: > > Hello, > > has anyone heard of a tool to convert shapefiles into comma separated value > files and visa versa > > Regards > > Peter Jacobs From marin at here.is Thu Feb 17 09:53:03 2000 From: marin at here.is (Ma) Date: Thu, 17 Feb 2000 17:53:03 +0000 Subject: converting/ making shapefiles References: Message-ID: <38AC357F.665E4F8D@here.is> You can try FShape at http://www.jshape.com -- Ma "Peter H.M. Jacobs" wrote: > Hello, > > has anyone heard of a tool to convert shapefiles into comma separated value > files and visa versa > > Regards > > Peter Jacobs From erich at museum.state.il.us Thu Feb 17 03:51:46 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Thu, 17 Feb 2000 11:51:46 +0000 (/etc/localtime) Subject: A couple of newbie questions Message-ID: Hi, Last weekend I finally got my own Mapserver application to work, at least to allow zooming and panning. I'm confused on quering and other things, still. First: One of my layers (areas where archaeological surveys have been done) has internal polygons which are actually unsurveyed. Within the dbf file the value of SURVEY_ID for these is 0, all "real" polygons have a numeric code relating to a document number describing the survey. Could someone show me a mapfile snippet that will only display polygons with SURVEY_ID > 0? One of the other layers is the locations of reported archaeological sites, digitized as polygons. My users will want to be able to click on a site and get the information associated. The information is in a separate dbf file that can be linked to the coverage by a index number. What is the combination of mapfile information and html code that will make it possible for a user to click on a polygon, and get a listing of the associated record? I hope these are simple... Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From jwagner at usf.Uni-Osnabrueck.DE Thu Feb 17 09:56:59 2000 From: jwagner at usf.Uni-Osnabrueck.DE (Jan-Oliver Wagner) Date: Thu, 17 Feb 2000 18:56:59 +0100 Subject: converting/ making shapefiles In-Reply-To: ; from peter.jacobs@vs42.nl on Thu, Feb 17, 2000 at 06:38:29PM +0100 References: Message-ID: <20000217185659.A18378@cheops.usf.Uni-Osnabrueck.DE> On Thu, Feb 17, 2000 at 06:38:29PM +0100, Peter H.M. Jacobs wrote: > has anyone heard of a tool to convert shapefiles into comma separated value > files and visa versa As imple solution is gen2shp, http://www.usf.uos.de/~jwagner/gen2shp/gen2shp.html and for other (bigger) tools see http://freegis.org Cheers Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ Institute of Environmental Systems Research http://www.usf.uos.de/ From kenboss at dilbert.dnr.state.mn.us Thu Feb 17 10:05:25 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 17 Feb 2000 12:05:25 -0600 (CST) Subject: converting/ making shapefiles Message-ID: <200002171805.MAA07433@philbert.dnr.state.mn.us> There is readily available C code just waiting to be hacked to suit your purposes in your mapserver distribution. Have a look in the "shapelib" subdirectory - shpdump.c and dbfdump.c can be used together to go from shape to CSV, while shpcreate.c and dbfcreate.c can be employed in the other direction. --Ken > Peter, > > Since the shapefile format is available, you might be better off writing > some C or VB or ?? to achieve what you are after. Perhaps someone has > already done this? > > > Cheers, > Jim > > "Peter H.M. Jacobs" wrote: > > > > Hello, > > > > has anyone heard of a tool to convert shapefiles into comma separated value > > files and visa versa > > > > Regards > > > > Peter Jacobs From kenboss at dilbert.dnr.state.mn.us Thu Feb 17 11:59:40 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 17 Feb 2000 13:59:40 -0600 (CST) Subject: A couple of newbie questions Message-ID: <200002171959.NAA08038@philbert.dnr.state.mn.us> Erich-- Of course, in your mapfile you've got a web template definition with at least this much defined: WEB TEMPLATE surveys.html END Your surveys.html file drives your current pan/zoom interface through an html form. In the simplest case, you need a button on the form that allows the user to specify whether they're just moving around on the map or trying to query a feature. The variable the button controls is "mode". When they're navigating the map, mode is set to "browse" (the default mode), and when they're querying features, mode is set to "query". The rest is handled in your map file. To display and query both surveyed areas and the "holes" inside of them, you might have a layer like this in your mapfile: LAYER NAME sites STATUS default DATA /data/archaeology/sites TYPE polygon CLASSITEM "survey_id" CLASS NAME "Real Survey Sites" EXPRESSION ([survey_id] > 0) SYMBOL 1 COLOR 32 201 32 END CLASS NAME "Doughnut Holes" EXPRESSION "0" SYMBOL 2 COLOR 201 32 32 END QUERYITEM "survey_id" QUERY EXPRESSION ([survey_id] > 0) template survey_detail.html END QUERY EXPRESSION "0" template not_surveyed.html END END # Layer To display and query only surveyed areas, just remove a few lines from the above layer so that you end up with this: LAYER NAME sites STATUS default DATA /data/archaeology/sites TYPE polygon CLASS NAME "Real Survey Sites" EXPRESSION ([survey_id] > 0) SYMBOL 1 COLOR 32 201 32 END QUERY EXPRESSION ([survey_id] > 0) template survey_detail.html END END # Layer Note that I am a mapserver 3.2 user, and the expressions above are based on my reading of the online docs, not personal experience. In the "old way of doing things", I would've used a regular expression like: EXPRESSION "^[1-9]$|^[1-9][0-9]$" to mean "any number from 1 to 99". This is still a valid way to do things if you choose. Your query template files will be full of regular html, except for where you need to swap in attributes from the shape that the user clicked on, where you'll have [THIS_ATTRIBUTE_NAME] and [THAT_ATTRIBUTE_NAME]. Hope this at least helps to get you started... --Ken > Hi, > Last weekend I finally got my own Mapserver application to work, at > least to allow zooming and panning. I'm confused on quering and other > things, still. > > First: > One of my layers (areas where archaeological surveys have been done) has > internal polygons which are actually unsurveyed. Within the dbf file the > value of SURVEY_ID for these is 0, all "real" polygons have a numeric code > relating to a document number describing the survey. > > Could someone show me a mapfile snippet that will only display polygons > with SURVEY_ID > 0? > > One of the other layers is the locations of reported archaeological sites, > digitized as polygons. My users will want to be able to click on a site > and get the information associated. The information is in a separate dbf > file that can be linked to the coverage by a index number. > > What is the combination of mapfile information and html code that will > make it possible for a user to click on a polygon, and get a listing of > the associated record? > > I hope these are simple... > > Erich > > --------------------------------------------------------------------- > Erich Schroeder Phone: (217)785-0033 > Curator, Information Technologies FAX: (217)785-2857 > Illinois State Museum GIS Lab Internet: erich at museum.state.il.us > http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html > --------------------------------------------------------------------- > From steve.lime at dnr.state.mn.us Thu Feb 17 16:58:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 17 Feb 2000 18:58:57 -0600 Subject: Tif an wld file problems Message-ID: LZW is supported, so is packbits. Paintshop Pro must write ugly tiffs. There is a tiffinfo program that is part of libtiff that is real usefull for checking tiff type. I'd use ImageMagick for just about any image manipulation. Steve <<< Robert Chavez 2/17 8:12a >>> I tried saving with LZW compression using PaintShop Pro but got the same result as before. It would be nice as my TIFFs are between 100 and 300MB. I'll give it another try. Rob On Thu, 17 Feb 2000, Doug Nebert wrote: > You can even save it as an LZW compressed TIFF (if you have > licensed software) and it will work fine, too. I have a 56MB > TIFF I am working with and after compression it is 8MB with > no noticeable performance hit. The TIFF indexing seems very > efficient in the mapserv. > > Doug. > > Robert Chavez wrote: > > > > That was the problem. I saved it as an uncompressed 8-bit and it works jut > > fine. Thanks for the tip! > > > > Rob > > > > On Wed, 16 Feb 2000, Doug Nebert wrote: > > > > > It is possible that you have a 24-bit TIFF file. It will only > > > render if it is 8-bit, or so I experienced a few months back. > > > Try again by saving the TIF as 8-bit and see what happens. > > > > > > Doug. > > > > > > Robert Chavez wrote: > > > > > > > > Greetings, > > > > > > > > I started fooling around with displaying tifs using mapscript and I'm > > > > having a problem rendering a tif image layer. I've run the demo package > > > > and displayed the landsat tif with mapserver just fine, so I know > > > > mapserver/script compiled with the tif libraries. > > > > > > > > The tif originally had a .tfw file so I changed the extension to > > > > .wld (it looks like this, units are in meters) > > > > > > > > 1.32301253030703 > > > > 0.00000000000000 > > > > 0.00000000000000 > > > > -1.16784976858186 > > > > 531694.70377556235000 > > > > 181396.49239035073000 > > > > > > > > After the script runs I get a blank .gif file as a result, no rendering of > > > > the tif in site. This leads me to believe there's an extent problem > > > > somewhere but I'm not sure where. The image should fit within the extents > > > > of the map file (see map file below), I should be getting something even > > > > if at a very small scale. I thought .tfw files were structurally identical > > > > with .wld files, or have I missed something? > > > > > > > > MAP > > > > NAME test > > > > SIZE 500 500 > > > > EXTENT 520118.780 175873.500 534426.880 184948.500 > > > > UNITS METERS > > > > SHAPEPATH "data" > > > > > > > > LAYER > > > > NAME stpauls > > > > TYPE RASTER > > > > STATUS ON > > > > DATA stpauls.tif > > > > END > > > > END > > > > > > > > Regards, > > > > > > > > Robert Chavez > > > > Perseus Project > > > > rchavez at perseus.tufts.edu > > > > > > -- > > > Douglas D. Nebert > > > Clearinghouse Coordinator > > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > > > > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html > From steve.lime at dnr.state.mn.us Thu Feb 17 17:01:43 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 17 Feb 2000 19:01:43 -0600 Subject: converting/ making shapefiles Message-ID: Use mapscript. With it you can read/write just about anything. Use the perl xbase modules for .dbf file access. Works great. Steve <<< "Peter H.M. Jacobs" 2/17 11:35a >>> Hello, has anyone heard of a tool to convert shapefiles into comma separated value files and visa versa Regards Peter Jacobs From sl57k at cc.usu.edu Thu Feb 17 17:19:41 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Thu, 17 Feb 2000 18:19:41 -0700 Subject: map files References: Message-ID: <38AC9E2C.DA2E5F80@cc.usu.edu> Rob, Using gif files as icons for point layers is very simple. I will go over it in a little detail, because there are some concerns which, if you know about them upfront, will make things a lot easier. For this reason, I am also posting this back up to the mapserver-users list so that it'll be in the archive... Okay, so here goes: 1.) The marker.sym file: o Entires must be in the form: Symbol Type PIXMAP Image /var/www/eastCanyon_data/icons/camera.gif END (Notice that quotation marks are not nesecary for the path.) o The path of your icons does _not_ need to be below the www root, as it is here, but you may choose to put it there... 2.) GIF files (like the one that mapserver creates) have only 256 palette entries. o This means that there can only be 256 discrete colors in your gif file. Any colors used exclusively in your marker gif should be kept to a minimum, as those colors have a low priority when generating the final image, and may not come out looking the way you had planned. (Correct me if I am wrong, Steve, but if there aren't enough colors left in the palette, mapserver will use the closest ones already existing in the palette to draw your marker image, which in some cases, is not very close...). 3.) Mapserver allows for transparencies in marker images. We had to do 2 things to flag a color transparent in our gifs. (Probably didn't need to be this dificult, but I guess it doesn't hurt to be thorough): o Choose a color from the palette that is not used. Make this color the first entry in the palette. (This will become the color that will be transparent.) o When saving your image (or at other appropriate time) flag that color as the transparent one. Our software, when doing this, would flag our image as a GIF-89 (or whatever the designation for a transparent gif is), but not move the appropriate color to the 1st place in the palette. That is why we were doing it manualy in the previous step. 4.) Remember: Keep your colors to a minumum! 5.) Sit back, and pray that it worked, the first time. Well, there you have it. My dissertation on using gifs as point markers in a map file. I hope this doesn't confuse or overwhelm you (or bore you :-) ) more than it helps you, these are just some things that took some playing with at first, so I thought I'd pass them on to you. Hope it helps! Good luck, Jason "Ellis Robin (Bundaberg)" wrote: > Thanks Jason. I worked out my line problems yesterday. I'd be keen to see > the process of using GIFs as symbols for your point layers. I do recall an > email about once previously, but perhaps your guidance and/or examples would > be more helpful. > > Rob. > > > ---------- > > From: Jason Maestri[SMTP:sl57k at cc.usu.edu] > > Sent: Friday, 18 February 2000 7:39 > > To: Ellis Robin (Bundaberg) > > Subject: Re: map files > > > > > > Ellis, > > Yes, you do have to edit your .sym files. I can send ours to you as > > well if > > you'd like them... They are pretty straightforward, however. > > > > --Jason > > > > "Ellis Robin (Bundaberg)" wrote: > > > > > Thanks. I assume that you then have to alter your line.sym and > > marker.sym > > > files? > > > > > > > ---------- > > > > From: Jason Maestri[SMTP:sl57k at cc.usu.edu] > > > > Sent: Thursday, 17 February 2000 10:46 > > > > To: Ellis Robin (Bundaberg) > > > > Subject: Re: map files > > > > > > > > Ellis, > > > > Okay, here is a copy of our mapfile. It contains a couple of > > examples > > > > of > > > > different layers and symbols. The url to the map is: > > > > > > http://lhotse.cee.usu.edu/cgi-bin/mapserv?map=%2Fvar%2Fwww%2FeastCanyon%2F > > > > > > eastCanyon.map&layer=states&layer=counties&layer=wsboundary&layer=relief&l > > > > ayer=streams&layer=pointsources&layer=photos&zoomsize=2&zoomdir=0 > > > > > > > > > > > > > > > > Good luck... > > > > > > > > --Jason Maestri > > > > > > > > > > > > > > > > > > > > # > > > > # > > > > # Start of map file > > > > # > > > > # > > > > NAME DEMO > > > > STATUS ON > > > > SIZE 400 400 > > > > SHADESET symbols/shade.sym > > > > MARKERSET symbols/marker.sym > > > > LINESET symbols/line.sym > > > > #EXTENT -508446.377270 4402355.715299 840927.894068 5751729.986637 > > > > #EXTENT 363212.232272 4429247.460481 531884.016189 4597919.244398 > > > > EXTENT 428353.254082 4494335.640256 470521.200062 4536503.586232 > > > > UNITS METERS > > > > SHAPEPATH "/var/www/eastCanyon_data" > > > > IMAGECOLOR 255 255 255 > > > > > > > > #LABELOVERLAP FALSE > > > > > > > > # > > > > # Start of web interface definition > > > > # > > > > WEB > > > > HEADER eastCanyon_header.html > > > > TEMPLATE eastCanyon.html > > > > MINSCALE 10 > > > > MAXSCALE 25500000 > > > > # log /tmp/eastCanyon.log > > > > > > > > END > > > > > > > > # > > > > # Start of reference map > > > > # > > > > REFERENCE > > > > IMAGE graphics/reference_base.gif > > > > EXTENT 377686.0 4492844.0 463131 4536363 > > > > 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 states > > > > TYPE POLYGON > > > > STATUS DEFAULT > > > > DATA states/states > > > > CLASS > > > > NAME "States" > > > > SYMBOL 0 > > > > OUTLINECOLOR 0 0 0 > > > > COLOR 255 255 204 > > > > # > > > > #Use 107 99 123 for the basin boundary > > > > # > > > > END > > > > END > > > > > > > > LAYER > > > > NAME wsboundary > > > > TYPE POLYGON > > > > STATUS DEFAULT > > > > DATA wsboundary/basin > > > > CLASS > > > > NAME "Watershed Boundary" > > > > SYMBOL 0 > > > > #COLOR -1 -1 -1 > > > > OUTLINECOLOR 107 99 123 > > > > COLOR 214 214 231 > > > > #COLOR 207 199 223 > > > > END > > > > END > > > > > > > > LAYER > > > > NAME landusegif > > > > TYPE RASTER > > > > STATUS ON > > > > DATA landuse/landuse.gif > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME relief > > > > TYPE RASTER > > > > STATUS ON > > > > DATA relief/basin.gif > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME emptyLayer > > > > TYPE RASTER > > > > STATUS ON > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME quad > > > > TYPE RASTER > > > > STATUS ON > > > > DATA quads/pq1119.tif > > > > OFFSITE 0 > > > > END > > > > > > > > LAYER > > > > NAME landuse > > > > TYPE POLYGON > > > > STATUS ON > > > > DATA landuse/eclanduse > > > > #DATA landuse/basinslanduse > > > > TOLERANCE 5 > > > > > > > > CLASSITEM "LUCODE" > > > > > > > > CLASS > > > > NAME "Water" > > > > EXPRESSION "1" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Spruce-Fir" > > > > EXPRESSION "2" > > > > COLOR 60 180 60 > > > > END > > > > > > > > CLASS > > > > NAME "Ponderosa Pine" > > > > EXPRESSION "3" > > > > COLOR 20 160 20 > > > > END > > > > > > > > CLASS > > > > NAME "Lodgepole" > > > > EXPRESSION "4" > > > > COLOR 49 200 10 > > > > END > > > > > > > > CLASS > > > > NAME "Mountain Fir" > > > > EXPRESSION "5" > > > > COLOR 49 180 185 > > > > END > > > > > > > > CLASS > > > > NAME "Juniper" > > > > EXPRESSION "6" > > > > COLOR 120 100 40 > > > > END > > > > > > > > CLASS > > > > NAME "Pinyon" > > > > EXPRESSION "7" > > > > COLOR 0 200 185 > > > > END > > > > > > > > CLASS > > > > NAME "Pinyon-Juniper" > > > > EXPRESSION "8" > > > > COLOR 120 120 120 > > > > END > > > > > > > > CLASS > > > > NAME "Mountain Mahogany" > > > > EXPRESSION "9" > > > > COLOR 128 250 130 > > > > END > > > > > > > > CLASS > > > > NAME "Aspen" > > > > EXPRESSION "10" > > > > COLOR 60 180 10 > > > > END > > > > > > > > CLASS > > > > NAME "Oak" > > > > EXPRESSION "11" > > > > COLOR 00 190 0 > > > > END > > > > > > > > CLASS > > > > NAME "Maple" > > > > EXPRESSION "12" > > > > COLOR 250 250 0 > > > > END > > > > > > > > CLASS > > > > NAME "Mountain Shrub" > > > > EXPRESSION "13" > > > > COLOR 0 199 145 > > > > END > > > > > > > > CLASS > > > > NAME "Sagebrush" > > > > EXPRESSION "14" > > > > COLOR 20 150 10 > > > > END > > > > > > > > CLASS > > > > NAME "Sagebrush/Perennial Grass" > > > > EXPRESSION "15" > > > > COLOR 60 255 45 > > > > END > > > > > > > > CLASS > > > > NAME "Grassland" > > > > EXPRESSION "16" > > > > COLOR 180 250 100 > > > > END > > > > > > > > CLASS > > > > NAME "Alpine" > > > > EXPRESSION "17" > > > > COLOR 20 160 250 > > > > END > > > > > > > > CLASS > > > > NAME "Dry Meadow" > > > > EXPRESSION "18" > > > > COLOR 200 200 35 > > > > END > > > > > > > > CLASS > > > > NAME "Wet Meadow" > > > > EXPRESSION "19" > > > > COLOR 20 199 100 > > > > END > > > > > > > > CLASS > > > > NAME "Barren" > > > > EXPRESSION "20" > > > > COLOR 200 200 200 > > > > END > > > > > > > > CLASS > > > > NAME "Lodgepole/Aspen" > > > > EXPRESSION "150 250 100" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Ponderosa Pine/Mountain Shrub" > > > > EXPRESSION "22" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Spruce-Fir/Mountain Shrub" > > > > EXPRESSION "23" > > > > COLOR 200 160 20 > > > > END > > > > > > > > CLASS > > > > NAME "Mountain Fir/Mountian Shrub" > > > > EXPRESSION "24" > > > > COLOR 250 160 0 > > > > END > > > > > > > > CLASS > > > > NAME "Aspen/Conifer" > > > > EXPRESSION "25" > > > > COLOR 250 250 9 > > > > END > > > > > > > > CLASS > > > > NAME "Mountain Riparian" > > > > EXPRESSION "26" > > > > COLOR 150 150 50 > > > > END > > > > > > > > CLASS > > > > NAME "Lowland Riparian" > > > > EXPRESSION "27" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Agriculture" > > > > EXPRESSION "30" > > > > COLOR 0 255 0 > > > > END > > > > > > > > CLASS > > > > NAME "Urban" > > > > EXPRESSION "31" > > > > COLOR 50 50 50 > > > > END > > > > > > > > CLASS > > > > NAME "Salt Desert Scrub" > > > > EXPRESSION "32" > > > > COLOR 120 180 120 > > > > END > > > > > > > > CLASS > > > > NAME "Desert Grassland" > > > > EXPRESSION "33" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Blackbrush" > > > > EXPRESSION "34" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Creosote-Bursage" > > > > EXPRESSION "35" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Greasewood" > > > > EXPRESSION "36" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Pickleweed Barrens" > > > > EXPRESSION "37" > > > > COLOR 49 49 185 > > > > END > > > > > > > > CLASS > > > > NAME "Wetland" > > > > EXPRESSION "38" > > > > COLOR 49 49 185 > > > > END > > > > > > > > QUERY > > > > TEMPLATE query_templates/landuse.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME streams > > > > TYPE LINE > > > > STATUS DEFAULT > > > > #DATA reachfiles/rf3sub > > > > DATA reachfiles/basinsrf3 > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > SYMBOL 1 > > > > SIZE 3 > > > > NAME "Streams" > > > > COLOR 0 0 185 > > > > END > > > > > > > > # QUERY > > > > # TEMPLATE query_templates/streams.html > > > > # END > > > > END # Layer > > > > > > > > LAYER > > > > NAME pointsources > > > > TYPE POINT > > > > STATUS DEFAULT > > > > DATA pointsources/basinssources > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > SYMBOL 2 > > > > SIZE 6 > > > > NAME "Pointsources" > > > > COLOR 254 0 0 > > > > END > > > > > > > > QUERY > > > > TEMPLATE query_templates/pointsources.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME photos > > > > TYPE POINT > > > > STATUS DEFAULT > > > > DATA media/photos/photos > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > SYMBOL 1 > > > > SIZE 8 > > > > NAME "Photos" > > > > COLOR 254 0 254 > > > > END > > > > > > > > QUERY > > > > TEMPLATE query_templates/photos.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME flow > > > > TYPE POINT > > > > STATUS DEFAULT > > > > DATA flow/flow > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > SYMBOL 3 > > > > SIZE 8 > > > > NAME "Daily Stream Flow Data" > > > > COLOR 254 0 254 > > > > END > > > > > > > > QUERY > > > > TEMPLATE query_templates/flow.html > > > > END > > > > END # Layer > > > > > > > > LAYER > > > > NAME counties > > > > TYPE LINE > > > > STATUS DEFAULT > > > > DATA counties/counties > > > > TOLERANCE 5 > > > > > > > > CLASS > > > > NAME "Counties" > > > > COLOR 0 0 0 > > > > END > > > > > > > > # QUERY > > > > # TEMPLATE query_templates/counties.html > > > > # END > > > > END # Layer > > > > > > > > END # Map File > > > > > > From sl57k at cc.usu.edu Thu Feb 17 17:29:45 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Thu, 17 Feb 2000 18:29:45 -0700 Subject: Query Question... References: Message-ID: <38ACA089.A6B2BB19@cc.usu.edu> Okay, here goes... I am sending this message back out to the mapserver-users list for all to see. It has been a thread between Steve and I the past couple of days... You all can read down the page to see the details, but mostly we were talking about writing a perl/Tk or ARC/View front end to edit the map files. I have been toying with the idea here, and my boss likes it, he just has yet to approve the resources to do it. Is anybody already doing something like this? I saw that Erich Schroeder wrote a neat little AML script to do something like this. I was thinking of writing an aveneue or perl/Tk script which would prompt you for things like filenames and directories (and extents in the case of the perl scripts, unless I got really fancy), and then go ahead and build the mapfiles. They would have graphical front ends so as to be easy to use. Anyway feel free to send input. --Jason Stephen Lime wrote: > Did you see the AML tool today. Hot topic. Yes, a save method would write the whole thing. Again you might post to the list to get a sense for interest. I think it'd be pretty high. > > Steve > > <<< Jason Maestri 2/17 3:34p >>> > Steve, > That sounds good. I'll talk to my boss about whether or not we can > get the time to do it. I'll also see about the arcView extension. > That'd be really handy. As for the mapObj save method, will that write > out an entire map file? > > --Jason > > Stephen Lime wrote: > > > Sure I'd be interested in any productivity tools. There are a couple of other users interested in something similar only they're working from with in ArcView. There are a number of similarities however. Perhaps a message to the group about this would be worthwhile? No sense in having 10 versions of this if a single app will work. I like the perl/tk method cause is doesn't need arcview. > > > > Also, I am writing a mapObj save method/function for MapScript. You could use tk/tcl and a tk/tcl version of MapScript (post to the list, I know this is being done) to build the mapObj from scratch then call the save method to write a valid script. You'd also want to be able to load a existing file and modify it. That MapScript function alrady exists. The writer would be nice for you NOT to have to implement because then you wouldn't have to worry about changes or anything > > in the file syntax. > > > > Steve > > > > <<< Jason Maestri 2/15 11:53p >>> > > Thanks Steve! I sure appreciate your help... > > > > By the way, > > We have been toying with the idea of setting up a perl/Tk front end to > > building the map files. If we actually do get approval to spend the time to build > > it, would you be interested in adding it to the distribution? > > > > --Jason > > > > Stephen Lime wrote: > > > > > Hi Jason: Nope, not currently. Makes sense to me > > > though so i'll add it to the to do list from 3.3.008 which should be out soon. > > > > > > Steve > > > > > > <<< Jason Maestri 2/15 7:42p >>> > > > Hey All, > > > Is there a way mapserver query can return the number of the shape(s) > > > that has been selected (i.e.: it's position in the shapefile)? I'd like > > > to dynamically edit records in the .dbf file based on a query. Most of > > > the shapefile databases we have don't have a field that can be used as a > > > primary key, so I need to know the index (record number) of the shape > > > that I am working with. > > > > > > Thanks, > > > Jason > > > > > > From erich at museum.state.il.us Thu Feb 17 13:37:45 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Thu, 17 Feb 2000 21:37:45 +0000 (/etc/localtime) Subject: Query Question... In-Reply-To: <38ACA089.A6B2BB19@cc.usu.edu> Message-ID: Hi, I think that it would be reasonable to have a number of tools to build a mapfile. Perl/TK would be great, particularly for applications where they already work in shapefiles. One thing that I was wondering about, is it possible to parse out an ArcView project file to produce an initial mapfile? That would, at least, have the proper (reversed) order of the layers, the thematic divisions within the layers, color choices(?), and joins. Is there, perhaps, something within the layout view that could be used? In my case I'll probably get back to the AML version because we always work with the native A/I coverages, and don't do too much in ArcView except for publishing for the users. I think that the AML route would be much helped by using form menus allowing for more flexibility, perhaps storing information in a temporary info file which then can be used to dump the final mapfile draft. It was about 2 years ago that I first tried mapserver. At that time I was looking for a method to replace the old arcplot==>postscript==>ghostscript==>netpbm method that I had used before. Although at that time I got the mapserver demo to work (I think version 2.1) I couldn't get my own data to work and so opted for Jshape instead. But I still have a large application that I need to redo as it has been offline since we put in our firewall, and now I think that I can manage it. Thanks everyone for their help, and I'll post a summary to my newbie questions soon. Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Thu Feb 17 20:28:01 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 17 Feb 2000 22:28:01 -0600 Subject: converting/ making shapefiles Message-ID: Actually there isn't. Current 3.3 removed the shapelib directory. This was done be cause my needs were diverging from the more recent shapelib distribution. I now maintain my own hacked version of Frank's code. The utils Ken mentions are still available with the new shapelib and are improved in some cases. Visit Franks shapelib homepage for the most recent version which is great for shapefile work. Again, try mapscript. I added shapefile read/write methods for just this purpose. I can provide sample code if anyone is interested... Steve <<< kenboss 2/17 12:08p >>> There is readily available C code just waiting to be hacked to suit your purposes in your mapserver distribution. Have a look in the "shapelib" subdirectory - shpdump.c and dbfdump.c can be used together to go from shape to CSV, while shpcreate.c and dbfcreate.c can be employed in the other direction. --Ken > Peter, > > Since the shapefile format is available, you might be better off writing > some C or VB or ?? to achieve what you are after. Perhaps someone has > already done this? > > > Cheers, > Jim > > "Peter H.M. Jacobs" wrote: > > > > Hello, > > > > has anyone heard of a tool to convert shapefiles into comma separated value > > files and visa versa > > > > Regards > > > > Peter Jacobs From erich at museum.state.il.us Thu Feb 17 14:56:43 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Thu, 17 Feb 2000 22:56:43 +0000 (/etc/localtime) Subject: A couple of newbie questions (SUMMARY) Message-ID: Many thanks to Ken and Jason. My mapfile snippets for the two questions I had look like: LAYER NAME survey TYPE POLYGON STATUS DEFAULT DATA iasplot/sangamon/survey CLASS NAME "Survey Areas" EXPRESSION ([SURVEY_ID] > 0) SYMBOL 1 COLOR 32 201 32 OUTLINECOLOR 0 0 0 END END #survey layer and LAYER NAME site TYPE POLYGON STATUS DEFAULT DATA iasplot/sangamon/cty CLASS SYMBOL 0 COLOR 255 30 2 OUTLINECOLOR 0 0 0 END QUERYITEM "INDEX" QUERY EXPRESSION ([INDEX] > 0) template site_detail.html JOIN table "iasplot/sangamon/iasdata.dbf" from "INDEX" to "INDEX" END # join END # query END Works like a dream. Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- ---------- Forwarded message ---------- Date: Thu, 17 Feb 2000 11:51:46 +0000 (/etc/localtime) From: Erich Schroeder To: mapserver-users at lists.gis.umn.edu Subject: A couple of newbie questions Hi, Last weekend I finally got my own Mapserver application to work, at least to allow zooming and panning. I'm confused on quering and other things, still. First: One of my layers (areas where archaeological surveys have been done) has internal polygons which are actually unsurveyed. Within the dbf file the value of SURVEY_ID for these is 0, all "real" polygons have a numeric code relating to a document number describing the survey. Could someone show me a mapfile snippet that will only display polygons with SURVEY_ID > 0? One of the other layers is the locations of reported archaeological sites, digitized as polygons. My users will want to be able to click on a site and get the information associated. The information is in a separate dbf file that can be linked to the coverage by a index number. What is the combination of mapfile information and html code that will make it possible for a user to click on a polygon, and get a listing of the associated record? I hope these are simple... Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From peter.jacobs at vs42.nl Fri Feb 18 07:24:56 2000 From: peter.jacobs at vs42.nl (Peter Jacobs) Date: Fri, 18 Feb 2000 16:24:56 +0100 Subject: Class Expression and Feature Message-ID: <38AD6448.6B5C14B9@vs42.nl> Hello Stephen and others, in reaction of the email I recieved from Stephen about how to put a label on a street, I followed his advise on using the inline feature. It doesn't seem to work tough. Does anyone know what I did wrong Regards, Peter Layer Name Streets TYPE annotation CLASS SYMBOL 0 EXPRESSION ('[TEXTSTRING]' ne 'mark') ... END CLASS SYMBOL 4 SIZE 20 EXPRESSION ('[TEXTSTRING]' eq 'mark') ... END END Layer NAME StreetQuery TYPE ANNOTATION STAUS QUERYONLY QUERYITEM "TEXTSTRING" QUERY TEMPLATE "../cgi-bin/mapserv?...&map_Streets_feature=new&map_Streets_points=[shpmidx]+[shpmidy]&map_Streets_feature_class=mark" END END From bfischer at usgs.gov Fri Feb 18 08:28:40 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Fri, 18 Feb 2000 10:28:40 -0600 Subject: Complex query on Shapefiles attributes Message-ID: Hello Everyone, I have a question regarding a query on a shapefile's attributes. Here is what I am trying to do. I have an image where the user can click on a polygon and retrieve it's attributes. This part I have working and understand. Now I would like to take the value three of the attributes from the polygon that the user selected and use it in a expression. Here is an example of the logic: The user selected a polygon, from this I can get the polygon's attributes called num1, num2, and num3. I want to use the values of num1, num2, and num3 to put into a query or class expression like ([num1] >= [num2] and [num1] <= [num3]). From this I would get a number of selected polygons to return to the user in a map with all the polygons highlighted. I am working with only the polygon features within one shapefile. Can this be done with mapserv or do I need to look at doing this in Javascript or some other language? I would also like to comment on the discussion of development tools for Mapserver. For myself an Avenue/ArcView extension would be useful. Any suggestions would be apprecieted, Thanks. Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From peter.jacobs at vs42.nl Fri Feb 18 08:57:32 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Fri, 18 Feb 2000 17:57:32 +0100 Subject: Complex query on Shapefiles attributes In-Reply-To: Message-ID: Hello Brian, what you want is to my opinion exactly the same question as I posed a couple of days ago. The only difference is that I want to highlite just one street and you want to highlite several polygons. This makes it a bit more difficult. My question and answer were the following: This is the case: A user enters the name of a streetin a textbox. I query the street in the following layer with an item/value itemquery and send the result back to mapserv to create a map with the street in te center of the new map. Finally I want to mark that street. I thought to do this with these two layers. LAYER NAME QueryLayer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS QUERYONLY DATA Layer18Text QUERYITEM "TEXTSTRING" QUERY TEMPLATE "http://../?map=/sites/../delft.map&mode=browse&scale=3000&mapxy=[shpmid]&va lue=[value]" END END LAYER NAME Layer18Text # Straatnamen doorlopende wegen TYPE ANNOTATION STATUS DEFAULT DATA Layer18Text MAXSCALE 12000 LABELITEM "TEXTSTRING" LABELANGLEITEM "TEXT_ANGLE" LABELSIZEITEM "TEXT_SIZE" CLASSITEM "TEXTSTRING" CLASS NAME SELECTED EXPRESSION ([TEXTSTRING] eq [value]) SYMBOL 0 COLOR 0 0 0 LABEL ANTIALIAS COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 20 POSITION UR END END CLASS NAME NOTSELECTED EXPRESSION /./ #the rest ... END END This was the reaction I recieved from Stephen. Peter and all... At issue here is making queries persistant. An interesting problem. The current version allows you to tackle the problem 2 ways: 1) save the item and value as hidden variables and use mode=itemquery with a query map This works but is difficult to use. It actually pretty easy but is not well documented and lightly tested. 2. use the [shpmidx] and [shpmidy] to define an inline feature in the query object TEMPLATE url for the 1st (item/value). Then save that feature (and text if necessary) using hidden vars in the main pan/zoom template. To do this your template after the item/value query would contain something like this: ...map_streetmarker_feature_points=[shpmidx]+[shpmidy]&map_streetmarker_feat ure_text=some text that is escaped... This assumes you have a layer called "streetmarker" at the end of your mapfile (so it'll be drawn and labeled for sure). Again, this method works and I do have examples where a point is added to the map in this manner. Problem is that it is really hard to use with more than one feature. You can use javascript but it ain't easy. In Peters case I believe this is the best method. It ain't perfect. Know, before everyone goes "well, that sucks" I believe I have a solution to this problem, at least in part. Version 3.3.008 will allow you to save/load query results so they can be made persistant. For example, in Peters case the itemvalue query could be saved and the name of the saved query could be passed to the map generation call for the mapserver. Instead of simply drawing the map normally, the def for querymap would be used and the matching road might show up in yellow. It's still in development but it looks promising. --- Because you, Brian, want to create a map with several spots highlited, I think you have to use the querymap. I found some help about the use of the querymap in one of the articles posted by Ken Boss (december 1999) I'm sorry I can't give you the solution, but perhaps this will help Regards, Peter From RAldridge at linuxstart.com Fri Feb 18 12:44:47 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Fri, 18 Feb 2000 12:44:47 -0800 Subject: Expression help Message-ID: <200002182044.MAA08282@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From RAldridge at linuxstart.com Fri Feb 18 13:16:52 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Fri, 18 Feb 2000 13:16:52 -0800 Subject: Expression help Message-ID: <200002182116.NAA12131@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From sl57k at cc.usu.edu Fri Feb 18 13:32:07 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Fri, 18 Feb 2000 14:32:07 -0700 Subject: Expression help References: <200002182044.MAA08282@ns1.filetron.com> Message-ID: <38ADBA57.C2161E1@cc.usu.edu> Hmm.. Why don't you try: CLASS NAME "0 - 9" EXPRESSION (([AGE2000] >= 0) && ([AGE2000] < 10)) SYMBOL 0 OUTLINECOLOR 0 COLOR 50 255 50 END --Jason Maestri RAldridge wrote: > Hello list, > > I'm needing help writing expressions to classify forest stands by age. My shapefile includes a data item named "AGE2000" which is a numeric item representing the age fo the stand. How do I need to set up classes if I want to represent the data in 10-year age classes. Values of "AGE2000" range from 0 to 74. Right now I have: > > LAYER > NAME standage > TYPE polygon > STATUS off > DATA stand110 > CLASSITEM "AGE2000" > CLASS > NAME "0 - 9" > EXPRESSION "???" > SYMBOL 0 > OUTLINECOLOR 0 > COLOR 50 255 50 > END > CLASS > NAME "10 - 19" > EXPRESSION "???" From david.fawcett at moea.state.mn.us Fri Feb 18 13:23:57 2000 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Fri, 18 Feb 2000 15:23:57 -0600 Subject: Expression help Message-ID: <3E2112BBDA46D311824C00805F9FE4FF40B2D7@pca-ex03.pca.state.mn.us> The easiest way would be to pre-class them (1 - 8) in ArcView, Access, or some other database program. I can't help you with the regular expressions, but if you search the archives at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users you should be able to find some examples. David. David Fawcett Minnesota Office of Environmental Assistance > ---------- > From: RAldridge[SMTP:RAldridge at linuxstart.com] > Sent: Friday, February 18, 2000 2:44 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Expression help > > Hello list, > > I'm needing help writing expressions to classify forest stands by age. My shapefile includes a data item named "AGE2000" which is a numeric item representing the age fo the stand. How do I need to set up classes if I want to represent the data in 10-year age classes. Values of "AGE2000" range from 0 to 74. Right now I have: > > LAYER > NAME standage > TYPE polygon > STATUS off > DATA stand110 > CLASSITEM "AGE2000" > CLASS > NAME "0 - 9" > EXPRESSION "???" > SYMBOL 0 > OUTLINECOLOR 0 > COLOR 50 255 50 > END > CLASS > NAME "10 - 19" > EXPRESSION "???" > From RAldridge at linuxstart.com Fri Feb 18 14:05:53 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Fri, 18 Feb 2000 14:05:53 -0800 Subject: Expression help Message-ID: <200002182205.OAA17513@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From imap at chesapeake.net Sat Feb 19 21:03:16 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sun, 20 Feb 2000 00:03:16 -0500 Subject: Problem with PROJ support in mapscript Message-ID: <38AF7594.8FE246A3@chesapeake.net> I have build a version of mapserv3.3_007 with PROJ4 support and trying to make mapscript have the same options, so I edited mapscript Makefile.PL to include the PROJ4 lib and includes, but when I try to "make" it, I get this error: In file included from ../../mapproject.h:7, from ../../mapshape.h:6, from ../../map.h:23, from mapscript_wrap.c:443: /home/cstuber/PROJ.4/src/projects.h:43: conflicting types for `UV' /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:841: previous declaration of `UV' make: *** [mapscript_wrap.o] Error 1 Seems that both PROJ4 and PERL both declare the variable "UV" which are distinctly different. I hate to hack up either, but may have to in order to get the mapscript to compile. Any ideas or suggestions from the usergroup? -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From bfraser at geoanalytic.com Sun Feb 20 17:23:19 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 20 Feb 2000 18:23:19 -0700 Subject: Problem with PROJ support in mapscript References: <38AF7594.8FE246A3@chesapeake.net> Message-ID: <006301bf7c0a$3cee9890$e9604318@cgno1.ab.wave.home.com> I ran into that problem when compiling under Windows. I changed the PROJ4 source from UV to ptUV. I need to contact Frank W. about integrating the change into the "official" PROJ4 source... Brent ----- Original Message ----- From: To: Sent: Saturday, February 19, 2000 10:03 PM Subject: Problem with PROJ support in mapscript > > > I have build a version of mapserv3.3_007 with PROJ4 support and > trying to make mapscript have the same options, so I edited > mapscript Makefile.PL to include the PROJ4 lib and includes, > but when I try to "make" it, I get this error: > > In file included from ../../mapproject.h:7, > from ../../mapshape.h:6, > from ../../map.h:23, > from mapscript_wrap.c:443: > /home/cstuber/PROJ.4/src/projects.h:43: conflicting types for `UV' > /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:841: previous declaration of > `UV' > make: *** [mapscript_wrap.o] Error 1 > > Seems that both PROJ4 and PERL both declare the variable "UV" > which are distinctly different. I hate to hack up either, but > may have to in order to get the mapscript to compile. Any ideas > or suggestions from the usergroup? > > > -- > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. From imap at chesapeake.net Sun Feb 20 19:04:21 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sun, 20 Feb 2000 22:04:21 -0500 Subject: Problem with PROJ support in mapscript References: <38AF7594.8FE246A3@chesapeake.net> <006301bf7c0a$3cee9890$e9604318@cgno1.ab.wave.home.com> Message-ID: <38B0AB35.85F0AA91@chesapeake.net> Brent, Gerald Evenden is the author and keeper of PROJ4. I am re-addressing the email directly to him. Gerald, We (mapserver-users group) are writing concerning PROJ4.3. The variable or structure "UV" has a conflict with PERL (in perl.h) and Brent Fraser mentioned a conflict with something in Windows. We'd like to propose a change to the "official" PROJ4 source to rename "UV" to something more unique. (see notes below) Also (unrelated PROJ4 issue), while compiling PROJ4.3 on a SGI Challenge XL with the SGI compiler, I get an internal compiler error in biveval.c in the following function: UV /* general entry point selecting evaluation mode */ biveval(UV in, Tseries *T) { return (T->power ? bpseval(in, T) : bcheval(in, T)); } I had to change to the following: UV /* general entry point selecting evaluation mode */ biveval(UV in, Tseries *T) { if (T->power) { return bpseval(in, T); } else { return bcheval(in, T); } } This has something to do with the SGI C compiler... I had to make the change when compiling on the big machines and the workstations that I am using. I've compiled PROJ on many different machine and have never seen that choke with any other compiler. Not critical, but something for you to note. Regards, Chris Stuber Brent Fraser wrote: > > I ran into that problem when compiling under Windows. > I changed the PROJ4 source from UV to ptUV. I need > to contact Frank W. about integrating the change into > the "official" PROJ4 source... > > Brent > > ----- Original Message ----- > From: > To: > Sent: Saturday, February 19, 2000 10:03 PM > Subject: Problem with PROJ support in mapscript > > > > > > > I have build a version of mapserv3.3_007 with PROJ4 support and > > trying to make mapscript have the same options, so I edited > > mapscript Makefile.PL to include the PROJ4 lib and includes, > > but when I try to "make" it, I get this error: > > > > In file included from ../../mapproject.h:7, > > from ../../mapshape.h:6, > > from ../../map.h:23, > > from mapscript_wrap.c:443: > > /home/cstuber/PROJ.4/src/projects.h:43: conflicting types for `UV' > > /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:841: previous declaration of > > `UV' > > make: *** [mapscript_wrap.o] Error 1 > > > > Seems that both PROJ4 and PERL both declare the variable "UV" > > which are distinctly different. I hate to hack up either, but > > may have to in order to get the mapscript to compile. Any ideas > > or suggestions from the usergroup? > > > > -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From imap at chesapeake.net Mon Feb 21 01:35:15 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 21 Feb 2000 04:35:15 -0500 Subject: 3.3.007 featurequery problem References: Message-ID: <38B106D3.76E02A9E@chesapeake.net> Steve/List, Beginning with 3.3.007, I am having a problem with FEATUREQUERY returning 0 results from a selection layer. Is anyone else using 3.3.007 with mode=FEATUREQUERY with a slayer? If so, please check. I went back to 3.3.006 and all is well with that version. -Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From teb at mallit.fr.umn.edu Mon Feb 21 14:52:55 2000 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Mon, 21 Feb 2000 16:52:55 -0600 (CST) Subject: submission of utilities Message-ID: <200002212252.QAA00275@mallit.fr.umn.edu> We are now accepting utilities that are of general interest to MapServer application developers for publishing in our "Utility Archive" available through the MapServer Support page . The listserv will not forward messages larger than 40k so this is the only way to get large contributions out to the list. We will notify the list as submissions are made. Thanks to Ross Searle for the first submission posted. Thanks, TOm From steve.lime at dnr.state.mn.us Tue Feb 22 08:19:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 10:19:25 -0600 Subject: 3.3.007 featurequery problem Message-ID: 3.3.007 was the first version to expose queries to mapscript. Consequently I had to make a few changes to the various query functions, relatively minor but it looks like I screwed one up. Most likely a typo. Will fix. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 02/21/00 03:35AM >>> Steve/List, Beginning with 3.3.007, I am having a problem with FEATUREQUERY returning 0 results from a selection layer. Is anyone else using 3.3.007 with mode=FEATUREQUERY with a slayer? If so, please check. I went back to 3.3.006 and all is well with that version. -Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From steve.lime at dnr.state.mn.us Tue Feb 22 09:35:59 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 11:35:59 -0600 Subject: Class Expression and Feature Message-ID: Hi Peter the problem looks to be in the the way you've got the expressions set up in the Streets layer. Logical expressions only apply (for now) to shapefile layers. The column names in brackets apply only to shapefile attribute tables. (I like the idea of a general logical expression which i'll add in 3.3.008) So in this case you have to use string expressions and/or regular expressions. Try this. Layer Name Streets TYPE annotation CLASS SYMBOL 0 EXPRESSION "mark" # matches only the string 'mark' ... END CLASS SYMBOL 4 SIZE 20 EXPRESSION /./ # regex that matches anything else ... END END Note that expressions CAN overlap. Membership is determined by the first match encountered. So even though 'mark' matches the last class it will always be caught by the first class. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peter Jacobs 02/18/00 09:24AM >>> Hello Stephen and others, in reaction of the email I recieved from Stephen about how to put a label on a street, I followed his advise on using the inline feature. It doesn't seem to work tough. Does anyone know what I did wrong Regards, Peter Layer Name Streets TYPE annotation CLASS SYMBOL 0 EXPRESSION ('[TEXTSTRING]' ne 'mark') ... END CLASS SYMBOL 4 SIZE 20 EXPRESSION ('[TEXTSTRING]' eq 'mark') ... END END Layer NAME StreetQuery TYPE ANNOTATION STAUS QUERYONLY QUERYITEM "TEXTSTRING" QUERY TEMPLATE "../cgi-bin/mapserv?...&map_Streets_feature=new&map_Streets_points=[shpmidx]+[shpmidy]&map_Streets_feature_class=mark" END END From bfischer at usgs.gov Tue Feb 22 09:30:06 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 22 Feb 2000 11:30:06 -0600 Subject: No subject Message-ID: Mapserver users, I ran into a problem when I use the itemnquery on a shapefile attributes. The value of the attribute in a shapefile is Mississippi River (Brainerd). The itemnquery works on all the values that do not have a perenthesis. Do I have to put a special charcter in HTML file to identify the perenthesis? The other solution would be to edit the shapefile's attributes. Here is the HTML code: Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From steve.lime at dnr.state.mn.us Tue Feb 22 10:55:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 12:55:34 -0600 Subject: No subject Message-ID: Remember that at present what you are actually sending to the mapserver is a regular expression. I've not yet changed mapserver to allow string and logical expression queries via itemquery. That being said, ()'s are special characters in a regex and therefore need to be escaped to work properly. Try this snippet of code (it should work): Note the escaped ()'s (i.e. the backslash). The same treatment is necessary with all regex special characters. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 02/22/00 11:30AM >>> Mapserver users, I ran into a problem when I use the itemnquery on a shapefile attributes. The value of the attribute in a shapefile is Mississippi River (Brainerd). The itemnquery works on all the values that do not have a perenthesis. Do I have to put a special charcter in HTML file to identify the perenthesis? The other solution would be to edit the shapefile's attributes. Here is the HTML code: Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From erich at museum.state.il.us Tue Feb 22 05:16:33 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Tue, 22 Feb 2000 13:16:33 +0000 (/etc/localtime) Subject: One to many joins Message-ID: Hi, I have a 3.0007 mapfile set up with point layer of zipcode centroids, joined to a dbf file with museums. In some cases there are several museums in the same zip code, and I want a query to list all the records that match with the zip. Right now it only brings up one record. My layer section looks like: LAYER NAME zips TYPE POINT STATUS ON DATA zips CLASS SYMBOL 3 COLOR 0 0 255 NAME "IAM Museums" EXPRESSION ([MUSEUM] > 0) END # class QUERYITEM "ZIPCODE" QUERY EXPRESSION ([MUSEUM] > 0) template museum_detail.html JOIN template museum_detail.html name "museumdetail" type multiple table "museums.dbf" from "ZIPCODE" to "ZIP" END # join END # query END What have I misunderstood? Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Feb 22 11:45:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 13:45:00 -0600 Subject: One to many joins Message-ID: Your template for the join is the same as the template for the whole query. This is not correct. Your query template should contain [museumdetail] by itself on a line. This tells the mapserver to expand that line using the join template. The join template then contains the formatting for a single joined record and it is repeated for every matching result in the 1-to-many join. You can also have a join header and footer template to further control the output. The header and footer are only displayed if the join succeeds. In a case when you're positive the join will always work you could do something like: [museumdetail]
NameLocation
Where the template for the join called museumdetail looks like: [NAME][LOCATION Questions? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Erich Schroeder 02/22/00 07:16AM >>> Hi, I have a 3.0007 mapfile set up with point layer of zipcode centroids, joined to a dbf file with museums. In some cases there are several museums in the same zip code, and I want a query to list all the records that match with the zip. Right now it only brings up one record. My layer section looks like: LAYER NAME zips TYPE POINT STATUS ON DATA zips CLASS SYMBOL 3 COLOR 0 0 255 NAME "IAM Museums" EXPRESSION ([MUSEUM] > 0) END # class QUERYITEM "ZIPCODE" QUERY EXPRESSION ([MUSEUM] > 0) template museum_detail.html JOIN template museum_detail.html name "museumdetail" type multiple table "museums.dbf" from "ZIPCODE" to "ZIP" END # join END # query END What have I misunderstood? Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From bosshogg at bitstream.net Tue Feb 22 12:03:23 2000 From: bosshogg at bitstream.net (Morgan Covill) Date: Tue, 22 Feb 2000 14:03:23 -0600 Subject: web object Message-ID: <3.0.32.20000222140315.009d3130@bitstream.net> Hi, I have started to play with the mapserv demo and would like to be able make a template that uses frames and have the image template in a seperate frame from the legend/submit form. Any suggestions ? Thanks in advance Morgan From erich at museum.state.il.us Tue Feb 22 06:40:55 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Tue, 22 Feb 2000 14:40:55 +0000 (/etc/localtime) Subject: One to many joins In-Reply-To: Message-ID: Steve, That worked just fine. The layer snippet now looks like: LAYER NAME zips TYPE POINT STATUS ON DATA zips CLASS SYMBOL 3 COLOR 0 0 255 NAME "IAM Museums" EXPRESSION ([MUSEUM] > 0) END # class QUERYITEM "ZIPCODE" QUERY EXPRESSION ([MUSEUM] > 0) template museums.html JOIN template museum_detail.html name "museumdetail" type multiple table "museums.dbf" from "ZIPCODE" to "ZIP" END # join END # query END Thanks for the prompt answer. Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html --------------------------------------------------------------------- From sl57k at cc.usu.edu Tue Feb 22 14:54:53 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Tue, 22 Feb 2000 15:54:53 -0700 Subject: String Lengths... Message-ID: <38B313BD.3A20E727@cc.usu.edu> Howdy, Just a quick question... What is the maximum string length that Mapserver allows? I specifically need the lengths of: o filenames o expressions o names (of objects such as layers and classes). Thanks, Jason From steve.lime at dnr.state.mn.us Tue Feb 22 14:53:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 16:53:00 -0600 Subject: String Lengths... Message-ID: All are allocated dynamically. There are some OS specific limits on filename length. The lex input buffer is 4k so no single map file line can be longer than that. Item names (classitem, labelitem etc...) are bound by the xbase spec for column names which I think is 16 chars but I may be wrong. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jason Maestri 02/22/00 04:54PM >>> Howdy, Just a quick question... What is the maximum string length that Mapserver allows? I specifically need the lengths of: o filenames o expressions o names (of objects such as layers and classes). Thanks, Jason From steve.lime at dnr.state.mn.us Tue Feb 22 20:34:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 22:34:18 -0600 Subject: Complex query on Shapefiles attributes Message-ID: Hi Brian: You'll be able to do this with 3.3.008 if I understand it right. Your using 1 polygon to set the bounds for another query correct? If that's the case then your example query is missing the value(s) from all the other polygons that need to be evaluated against your base expression. Anyway with 3.3 you can dynamically change class expressions on-the-fly. Only problem is that it's busted since I added the logical expression support. It's fixed in 3.3.008 though. So your app should be a piece of cake in a few days. Steve <<< 2/18 10:28a >>> Hello Everyone, I have a question regarding a query on a shapefile's attributes. Here is what I am trying to do. I have an image where the user can click on a polygon and retrieve it's attributes. This part I have working and understand. Now I would like to take the value three of the attributes from the polygon that the user selected and use it in a expression. Here is an example of the logic: The user selected a polygon, from this I can get the polygon's attributes called num1, num2, and num3. I want to use the values of num1, num2, and num3 to put into a query or class expression like ([num1] >= [num2] and [num1] <= [num3]). From this I would get a number of selected polygons to return to the user in a map with all the polygons highlighted. I am working with only the polygon features within one shapefile. Can this be done with mapserv or do I need to look at doing this in Javascript or some other language? I would also like to comment on the discussion of development tools for Mapserver. For myself an Avenue/ArcView extension would be useful. Any suggestions would be apprecieted, Thanks. Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From steve.lime at dnr.state.mn.us Tue Feb 22 20:46:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 22 Feb 2000 22:46:10 -0600 Subject: web object Message-ID: Lots of ways to do it. Your legend/controls frame would not be a template, but rather a static page. Since it never reloads there is no need for substitutions. The webObj template would be pretty simple too, just the map, scalebar or whatever. The big trick is getting information about the newly created map (eg. it's extent) back to the controls frame. You'll need some simle javascript to do that. You can have the map template hold a hidden form var that is used by the controls frame to set a form var on its page at submit time. Or the map template could contain the js necessary to update the for var on the controls page itself. There may be a way to do it without javascript by having the first mapserver call generate a page with a frameset in it which in turn calls the mapserver to generate each of the frame components but I'm not sure it's worth the effort. If your using the other supporting images (i.e. scalebar, legend and reference map) in the controls frame than you may have to do it this way. Steve <<< Morgan Covill 2/22 1:48p >>> Hi, I have started to play with the mapserv demo and would like to be able make a template that uses frames and have the image template in a seperate frame from the legend/submit form. Any suggestions ? Thanks in advance Morgan From sl57k at cc.usu.edu Wed Feb 23 12:28:05 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Wed, 23 Feb 2000 13:28:05 -0700 Subject: Querymap Object... Message-ID: <38B442D5.6836BDAD@cc.usu.edu> Hey guys, I am still plunking away at the design document for a graphical mapfile editor. I have, however, not been able to find a list of the available options for the querymap object. The provided documentation is very sparse here. Can anybody tell me what options there are? Thanks, Jason Maestri From danmo at videotron.ca Wed Feb 23 13:28:03 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 23 Feb 2000 16:28:03 -0500 Subject: MapServer and geocoding Message-ID: <38B450E3.36EB0FE5@videotron.ca> MapServer users, Has anyone ever used the MapServer for an application that needed to do geocoding (address matching) on the fly. I don't think that MapServer has any direct support for geocoding, does it? Does anyone have recommendations for a library or package (OpenSource or commercial) that would complement well MapServer and allow an application to do geocoding on the fly (ideally something that runs on Solaris). 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 peter.jacobs at vs42.nl Wed Feb 23 16:36:12 2000 From: peter.jacobs at vs42.nl (Peter H.M. Jacobs) Date: Thu, 24 Feb 2000 01:36:12 +0100 Subject: what do the x-pixel size and y-pixel size mean in the file landstat.wdf Message-ID: Hello, I'm convinced that this is realy a stupid question, but can anyone explain to me what the x-pixel size and y pixel size mean in the file landstat.wdf It says 30 #x pixel size 0000.000 #rotation x-as 0000.000 #rotation y-as -30 #y pixel size 44364345.3453 # left upper corner 23424.23234 # right upper corner Regads Peter From Banister at BANISTER.COM Wed Feb 23 16:47:56 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Wed, 23 Feb 2000 17:47:56 -0700 Subject: what do the x-pixel size and y-pixel size mean in the file la ndstat.wdf Message-ID: <51BFCC79A3CCD311A2DD0800362C8E031764@banister4.conen.net> These look like UTM coords, so I think that means that each pixel is 30 meters in size? Trevor -----Original Message----- From: Peter H.M. Jacobs [mailto:peter.jacobs at vs42.nl] Sent: Wednesday, February 23, 2000 5:36 PM To: Mapserver-Users Subject: what do the x-pixel size and y-pixel size mean in the file landstat.wdf Hello, I'm convinced that this is realy a stupid question, but can anyone explain to me what the x-pixel size and y pixel size mean in the file landstat.wdf It says 30 #x pixel size 0000.000 #rotation x-as 0000.000 #rotation y-as -30 #y pixel size 44364345.3453 # left upper corner 23424.23234 # right upper corner Regads Peter From marin at here.is Wed Feb 23 17:04:11 2000 From: marin at here.is (Ma) Date: Thu, 24 Feb 2000 01:04:11 +0000 Subject: what do the x-pixel size and y-pixel size mean in the file landstat.wdf References: Message-ID: <38B48389.9E115A33@here.is> The answer: http://www.esri.com/usersupport/support/faq/arcview/01general/404_750.html -- Ma "Peter H.M. Jacobs" wrote: > Hello, > > I'm convinced that this is realy a stupid question, but can anyone explain > to me what the x-pixel size and y pixel size mean in the file landstat.wdf > > It says > > 30 #x pixel size > 0000.000 #rotation x-as > 0000.000 #rotation y-as > -30 #y pixel size > 44364345.3453 # left upper corner > 23424.23234 # right upper corner > > Regads > > Peter From steve.lime at dnr.state.mn.us Wed Feb 23 20:41:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 23 Feb 2000 22:41:18 -0600 Subject: MapServer and geocoding Message-ID: Nope, no geocoder. It's as much a data problem as a software problem. It probably isn't that hard to write one if you really understand the process. However, you need a decent set of databases to match against and that ain't cheap. About the only freebie dataset I know of is Tiger. others on the list can speak to its suitability. If you can kick out a coordinate then the app can be integrated with mapserver. A OpenSource geocoder based on free data would be very cool indeed. Steve <<< Daniel Morissette 2/23 3:56p >>> MapServer users, Has anyone ever used the MapServer for an application that needed to do geocoding (address matching) on the fly. I don't think that MapServer has any direct support for geocoding, does it? Does anyone have recommendations for a library or package (OpenSource or commercial) that would complement well MapServer and allow an application to do geocoding on the fly (ideally something that runs on Solaris). 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 imap at chesapeake.net Wed Feb 23 22:55:02 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 24 Feb 2000 01:55:02 -0500 Subject: MapServer and geocoding References: Message-ID: <38B4D5C6.20046A2D@chesapeake.net> Daniel, I see a .ca domain. Are you looking for a Canadian or US geocoder? TIGER data is US only. I'll comment on the suitability issue of that data. The newer Tiger '98 data (and also '97 data) are poorly coded for mapping purposes. The feature classifications CFCC that you would use to distinguish Interstates, US Hwy and State Hwy. etc are miscoded in many instances. I work for the people who produce the data and I can't even get them to acknowlege the problem, but it does exist. Their use of the data is limited to black and white paper maps, single width, so they really dont see the problem. It *IS* however or pretty good quality for geocoding purposes. The '98 version is much improved in the address range department, but there are still alot of missing ranges. Expect to get a 80% hit ratio. It is very good in urban areas, and worst in rural areas. To improve the hit ratio, you need to supplement the tiger vector data with the USPS ZIP4 and TIGER/ZIP+4 datasets to derive an interpolation that is slightly less accurate, but very close to being exact. Here is the real issue... If you preserve all of the Tiger attributes in Shapefile format, you will end up with a *huge* dataset. Expect to occupy about 25GB with all of the data that you will need for mapping and geocoding with Tiger Shapefiles (all layers). If you add the USPS ZIP4 and TIGER/ZIP4 datasets, that eats up another 5-6GB, and that puts you in the 30GB range. You may be able to reduce this slightly, if you whack out some of the .DBF attribute data. The commercial geocoders (MapInfo MapMarker for example), they somehow crunch all of that data onto 2 cdroms which is great, but the software costs you $9000 annually to run (and it is WinNT). My company sells a geocoder which uses a binary version of Tiger that is 5.6GB for the entire US. Still big data, but that data isnt suitable for use with mapserv. We actually have our own map engine that uses that same data format. This software is however, significantly cheaper, cost is $995 for the geocoder and the Tiger Binary data is $175/region or $1500 for the entire US (there are 10 region/cdroms total). Also, it will run on any unix platforms + WinNT. If you *really* wanted a geocoder that uses ESRI shapefiles, I am confident that I could build one of those in about a week at a cost of $3000. I'd propose the deliverable to you would be the Tiger '98 dataset (you choose the layers you want) suitable for mapping and geocoding purposes, a unix/solaris version of the geocoding engine. I'd retain the rights to the source code, but grant your company an unlimited use license of the finished product. That would NOT include the USPS ZIP+4 stuff. I think there are some licensing/resell issues with that data. If you are interested in having me port this, just fax me a purchase order and I'll get busy. Just in case you are wondering.. Our current geocoder is a command line program that generates expanded or terse/brief output. The engine is modelled after the Etak Eagle Geocoder client for compatibility reasons input is: address|city|state|zip The city AND state *OR* Zip is required. If one or the other is missing, it will still resolve. See the sample output as follows: [cstuber at imap /geocoder1.2]$ geocoder Enter address as: street|city|state|zip (^D quits) -->5390 Sea Isle Rd|Memphis|TN| Std. Primary House Number: <5390> Std. Matching Street Name: Std. Suffix Type: *** Match Count <1> Match Type <1> Match DB Match Addr <5390 SEA ISLE ROAD> Match City Match State Match Zip <38119> Match St FIPS <47> Match Cty FIPS <157> Match Lat <35.09421> Match Lon <-89.88207> The terse (line) mode (input line is 5390 Sea Isle|||38119) [cstuber at imap /geocoder1.2]$ geocoder -l MatCnt|MatType|MatDB|MatAddr|MatCity|MatState|MatZip|MatSFIPS|MatCFIPS|MatLat|MatLon|Pop|Elev| 5390 Sea Isle|||38119 1|1|T|5390 SEA ISLE ROAD|MEMPHIS|TN|38119|47|157|35.09421|-89.88207||| Redirection of both input/output is supported, so you can geocode in batch mode. One side note about porting this to use Shapefiles... If you data were Shapefiles were pre-projected, your returned lat/lon would be in the projected map coordinates. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. PO Box 741 Owings, MD 20736 w 410-257-3187 f 410-257-1978 Stephen Lime wrote: > > Nope, no geocoder. It's as much a data problem as a software problem. It probably isn't that hard to write one if you really understand the process. However, you need a decent set of databases to match against and that ain't cheap. About the only freebie dataset I know of is Tiger. others on the list can speak to its suitability. > > If you can kick out a coordinate then the app can be integrated with mapserver. A OpenSource geocoder based on free data would be very cool indeed. > > Steve > > <<< Daniel Morissette 2/23 3:56p >>> > MapServer users, > > Has anyone ever used the MapServer for an application that needed to do > geocoding (address matching) on the fly. I don't think that MapServer > has any direct support for geocoding, does it? > > Does anyone have recommendations for a library or package (OpenSource or > commercial) that would complement well MapServer and allow an > application to do geocoding on the fly (ideally something that runs on > Solaris). > > 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. -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From steve.lime at dnr.state.mn.us Thu Feb 24 07:12:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 24 Feb 2000 09:12:51 -0600 Subject: Fwd: Find Helps Message-ID: If anyone is interested in helping this guy... -------------- next part -------------- An embedded message was scrubbed... From: "Rappa" Subject: Find Helps Date: Tue, 23 Feb 1999 22:07:03 +0800 Size: 2854 URL: From pnaciona at gis.umn.edu Thu Feb 24 11:37:08 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 24 Feb 2000 13:37:08 -0600 Subject: Find Helps References: <20000224142638.4402.qmail@hotmail.com> Message-ID: <004701bf7efe$89f21580$9a496580@gis.umn.edu> Hi, Eric Let's see... If you really want to work on Windows NT you probably should think about compiling MapServer for yourself. That said, there is a compiled binary available from the the MapServer site. This is probably what you would want to do initially. I assume you know about web servers already. If not, then you need to install a web server on your computer--a couple of free ones: Microsoft IIS (free to use) and Apache.org's Apache server (free to use and modify code). You'll need to copy the MapServer executable to your web server's cgi-bin directory. From there you can start using MapServer. Now, you also would want to download the symbol files and put it somewhere--doesn't have to be a web accesible directory. Now my suggestion would be to download the MapServer demo and get it to work on your server. If you would like to see the demo running on Windows NT, check http://128.101.73.80/mapserv/demo_init.html. You can also look at http://128.101.73.154/projects/tutorial to get started on MapServer--this site is also running on Windows NT. It works fairly well except for the last example (prblems with the java applet). Well this should keep you busy for a while. If you have more questions send it to the mapserver-users list. One final thing, MapServer on NT hasn't really been rigorously tested and isn't considered to be as stable as the ports on UNIX systems. Hopefully, it will work just fine for what you want to do. Good luck! -Perry N. Pericles S. Nacionales Research Assistant Department of Forest Resources University of Minnesota pnaciona at gis.umn.edu (612) 625 5765 ----- Original Message ----- From: Rappa To: steve.lime at dnr.state.mn.us Sent: Tuesday, February 23, 1999 8:07 AM Subject: Find Helps Hi Steve, Nice to meet you! I am a new user of mapserver, I come from Hong Kong, studing GIS and I am a final year student. I want to make a network model and put it in the web. I saw mapserver can free for develop web map, that great. But I have a big problem, that I have no more experience in programming. Actually I really want to make a web map for my project. I using arcview 3.2, and network anaylst for my gis system. Also the server I prefer WinNT4.0 than the Unix. Now I looking someone can carry me to make a web map server. I will appreciate more, if anyone can help. Thanks a lot, Eric Tang -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnaciona at gis.umn.edu Thu Feb 24 11:55:20 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 24 Feb 2000 13:55:20 -0600 Subject: Find Helps References: <20000224142638.4402.qmail@hotmail.com> <004701bf7efe$89f21580$9a496580@gis.umn.edu> Message-ID: <001e01bf7f01$14bd2c20$9a496580@gis.umn.edu> Eric and other NT MapServer users out there: You can download the MapServer demo for NT from http://128.101.73.80/ms_demo/ms_demo.zip. I decided not to attach it to this mail as it is fairly sizable (1.7 MB). -Perry Nacionales ----- Original Message ----- From: Pericles S. Nacionales To: mapserver-users at lists ; Rappa Sent: Thursday, February 24, 2000 1:37 PM Subject: Re: Find Helps Hi, Eric Let's see... If you really want to work on Windows NT you probably should think about compiling MapServer for yourself. That said, there is a compiled binary available from the the MapServer site. This is probably what you would want to do initially. I assume you know about web servers already. If not, then you need to install a web server on your computer--a couple of free ones: Microsoft IIS (free to use) and Apache.org's Apache server (free to use and modify code). You'll need to copy the MapServer executable to your web server's cgi-bin directory. From there you can start using MapServer. Now, you also would want to download the symbol files and put it somewhere--doesn't have to be a web accesible directory. Now my suggestion would be to download the MapServer demo and get it to work on your server. If you would like to see the demo running on Windows NT, check http://128.101.73.80/mapserv/demo_init.html. You can also look at http://128.101.73.154/projects/tutorial to get started on MapServer--this site is also running on Windows NT. It works fairly well except for the last example (prblems with the java applet). Well this should keep you busy for a while. If you have more questions send it to the mapserver-users list. One final thing, MapServer on NT hasn't really been rigorously tested and isn't considered to be as stable as the ports on UNIX systems. Hopefully, it will work just fine for what you want to do. Good luck! -Perry N. Pericles S. Nacionales Research Assistant Department of Forest Resources University of Minnesota pnaciona at gis.umn.edu (612) 625 5765 ----- Original Message ----- From: Rappa To: steve.lime at dnr.state.mn.us Sent: Tuesday, February 23, 1999 8:07 AM Subject: Find Helps Hi Steve, Nice to meet you! I am a new user of mapserver, I come from Hong Kong, studing GIS and I am a final year student. I want to make a network model and put it in the web. I saw mapserver can free for develop web map, that great. But I have a big problem, that I have no more experience in programming. Actually I really want to make a web map for my project. I using arcview 3.2, and network anaylst for my gis system. Also the server I prefer WinNT4.0 than the Unix. Now I looking someone can carry me to make a web map server. I will appreciate more, if anyone can help. Thanks a lot, Eric Tang From danmo at videotron.ca Thu Feb 24 13:15:01 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 24 Feb 2000 16:15:01 -0500 Subject: MapServer and geocoding References: <38B450E3.36EB0FE5@videotron.ca> Message-ID: <38B59F55.ED578829@videotron.ca> Daniel Morissette wrote: > > MapServer users, > > Has anyone ever used the MapServer for an application that needed to do > geocoding (address matching) on the fly. I don't think that MapServer > has any direct support for geocoding, does it? > > Does anyone have recommendations for a library or package (OpenSource or > commercial) that would complement well MapServer and allow an > application to do geocoding on the fly (ideally something that runs on > Solaris). > Thanks to everyone who replied to my question about geocoding and MapServer. We need to work with Canadian data, so the US solutions can't be applied directly to our case. However for those who might be interested, we found a package that might be interesting for Canadian users: http://www.desktopmapping.com/GeoPinpoint.html Also, it is not excluded that we might one day develop something and provide it as a freely available package. Of course, there would still be an issue with access to the data (for Canada) though. Thanks again! -- ------------------------------------------------------------ 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 pcedfeldt at crrel.usace.army.mil Fri Feb 25 06:02:27 2000 From: pcedfeldt at crrel.usace.army.mil (Paul Cedfeldt) Date: Fri, 25 Feb 2000 09:02:27 -0500 Subject: join - memo fields Message-ID: <38B68B73.EE24F777@crrel.usace.army.mil> Hi All, I haven't had any luck getting memo fields from a joined dbf to display. Does the join object support memo fields? Thanks. -Paul From steve.lime at dnr.state.mn.us Fri Feb 25 06:14:24 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 25 Feb 2000 08:14:24 -0600 Subject: join - memo fields Message-ID: Nope, the shapelib xbase library doesn't support memo fields. Neither does the shapefile spec. Memo fields are a FoxPro thing and not strictly xbase. steve. <<< Paul Cedfeldt 2/25 8:03a >>> Hi All, I haven't had any luck getting memo fields from a joined dbf to display. Does the join object support memo fields? Thanks. -Paul From RAldridge at linuxstart.com Mon Feb 28 09:01:13 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Mon, 28 Feb 2000 09:01:13 -0800 Subject: Problems using tiled data Message-ID: <200002281701.JAA21155@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From joel at free.crrel.usace.army.mil Mon Feb 28 09:17:57 2000 From: joel at free.crrel.usace.army.mil (Joel Schlagel) Date: Mon, 28 Feb 2000 12:17:57 -0500 (EST) Subject: Problems using tiled data In-Reply-To: <200002281701.JAA21155@ns1.filetron.com> Message-ID: The key word is TILEINDEX, rather than TILE joel On Mon, 28 Feb 2000, RAldridge wrote: > I need help setting up my map file to use tiled data from an NFS source. My shapefiles are stored on NT in an NFS shared folder. The folder is mapped as "/gdata" on my linux box. The folder contains two subfolders; "County_Data" and "Statewide_Data." I can map individual shapefiles in my .map file fine. There is a shapefile containing the outlines of the counties at "/gdata/Statewide_Data/counties.shp" which has a field called LOCATION. The "/gdata/County_Data" folder contains a folder for each county. Each county's folder contains shapefiles for several data layers. My .map file contains the following, but I get "loadLayer(): Unknown identifier. (INDEX):(99)" when I try to use it. Any help would be appreciated. > > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 350 500 > SHADESET symbols/shade.sym > MARKERSET symbols/marker.sym > LINESET symbols/line.sym > EXTENT -93.00 29.00 -86.00 36.00 > #EXTENT 254189.000000 1117801.000000 292781.000000 1151833.000000 > UNITS DD > TILE "/gdata/Statewide_Data/" > SHAPEPATH "/gdata/Statewide_Data" > IMAGECOLOR 255 255 255 > From bfischer at usgs.gov Mon Feb 28 14:30:02 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Mon, 28 Feb 2000 16:30:02 -0600 Subject: No subject Message-ID: Hi Everyone, Does anyone have a compiled version of the sym2img utility for NT? If so, could you possibly email it to me. I do not have a compiler for the NT. Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From danmo at videotron.ca Mon Feb 28 15:04:18 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 28 Feb 2000 18:04:18 -0500 Subject: sym2img.exe References: Message-ID: <38BAFEF2.9547636F@videotron.ca> bfischer at usgs.gov wrote: > > Hi Everyone, > > Does anyone have a compiled version of the sym2img utility for NT? If > so, could you possibly email it to me. I do not have a compiler for the > NT. > Brian, You can download a copy of sym2img.exe from: http://owt.tzo.com/tmp/sym2img.exe And for others who might be interested, I also made availabe a copy of all the MapServer executables (version 3.3.006) at the URL: http://owt.tzo.com/tmp/ms_3.3.006_win32.zip Note that these executrables have not been tested much, and the mapserv.exe in there does not include any optional component (no PROJ.4, no TIFF, etc...), only basic shapefile and gif support. I could build a newer version (V3.3.008) if anyone needs it. 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 Mon Feb 28 15:06:23 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 28 Feb 2000 18:06:23 -0500 Subject: sym2img.exe References: <38BAFEF2.9547636F@videotron.ca> Message-ID: <38BAFF6F.15D2D692@videotron.ca> Daniel Morissette wrote: > > I could build a newer version (V3.3.008) if anyone needs it. > OOPppss... I guess I should have written Version 3.3.007 since 3.3.008 is not out yet! ;-) -- ------------------------------------------------------------ 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 marcjacquin at yahoo.com Mon Feb 28 23:54:27 2000 From: marcjacquin at yahoo.com (Marc JACQUIN) Date: Tue, 29 Feb 2000 01:54:27 -0600 Subject: Polygon topology and map file generation Message-ID: <000801bf828a$3373fb80$ca00000a@pcpmj> Hi MapServer guys, I am enjoying MapServer (3.2) using it at C/C++ function level. For going further on, I am looking for algorithms (serious) for building polygons (Arcview style) from Polylines and/or Polygons sets. My searches on the web did not return anything reliable. I know the basics but it's a pain in ... What I do is pure CGI in C/C++ using map file to GIF (PNG soon maybe) functions to generate the map. It is flexible ! So, for improving, I would like to know if someone has a set of functions or a library for generating map files (not parsing !). I am thinking about doing it but if someone did it before ... Then something positive : some of you may not know the GD has been ported in Perl and Tcl. See http://www.oreilly.com/openbook/cgi/ch06_03.html and follow Utilities and Applications link. Things are running (Grrreat !) with Steve's stuff on NT but not in the standard configuration of MapServer. I added the Tiff lib and plan to use Proj4 soon. May help on NT ! Marc __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From steve.lime at dnr.state.mn.us Tue Feb 29 12:16:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 29 Feb 2000 14:16:20 -0600 Subject: Web Server Error Message-ID: Did you experience this with 3.3.006? Me thinks 3.3.007 has a memory problem although I thought it was only associated with certain types of queries. Does the image to included in the template get created before the sucker hangs/crashes. It's got to be something stupid with template processing, query or otherwise. I'd back up to 3.3.006 until 3.3.008 is out later this week. I doubt it's anything you've done as much as I love to shift the blame. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Corey A Sundahl 02/29/00 01:52PM >>> Hello all. I've dug through the mailing list archives but I haven't seen anyone experience this rather unique problem. The problem is that when I try to generate my template using shapefiles and passing the mode parameter of 'browse' via my html file I get a server error when I use the correct extents. However, if I change the extents so that they are obviously incorrect, I get the infamous white image but an otherwise good template. Now, if I use the correct extents and pass the mode parameter 'map' I can generate the map just fine but not my template. Furthermore, I ran the shp2img utility and everything ran just fine - .gif is as it should be. I'm using all the updated .sym files that come with 3.3007 and the updated .map file with tailored paths and extents. Any hints at to why I'm getting a server error would be very much appreciated. Oh, I almost forgot -- When mapserver is run via the command line I get a segmentation fault after about 45 seconds of churning. I've kept all names under 20 characters and I'm using actual, not relative paths to all directories. All this is running on Solaris and all other web applications are running as normal without a hitch. Any ideas? Thanks,\ Corey