From syurman at spatialfocus.com Mon Oct 2 07:07:16 2000 From: syurman at spatialfocus.com (Sara Yurman) Date: Mon, 02 Oct 2000 10:07:16 -0400 Subject: Displaying annotation layer References: Message-ID: <39D89694.5AB4CB2E@spatialfocus.com> Hi Yee Wen, You want to tell the class object to generate a label. Try it this way: LAYER NAME label DATA label TYPE ANNOTATION LABELITEM "TEXT" CLASSITEM "ID" CLASS LABEL EXPRESSION "1" # object ID=1 will have black text COLOR 0 0 0 END END END Hope that helps, Sara > Yeewen Sat wrote: > > Hi, > I'm new to mapserver. > > I'm trying to create a layer that will display annotation. > I have label.shp label.shx and label.dbf files. label.shp contains > point objects, and label.dbf has a "TEXT" field that stores the text > and ID that allows me to identify the text objects. I tried doing > something like this in my map file: > > > LAYER > NAME label > DATA label > TYPE ANNOTATION > LABELITEM "TEXT" > CLASSITEM "ID" > CLASS > EXPRESSION "1" # object ID=1 will have black text > COLOR 0 0 0 > END > END > > I thought this will display the text...but it doesn't. All I need is > to display the annotation at the coordinates specified in label.shp (a > point object file) > > Can someone please help? > > Thanks in advance. > > -- > Yee Wen > > -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: text/x-vcard Size: 326 bytes Desc: Card for Sara Yurman URL: From yeewen at petromap.com Tue Oct 3 08:51:33 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Tue, 3 Oct 2000 09:51:33 -0600 Subject: scaling labels Message-ID: Hi, I can't seemed to be able to scale labels up and down as the map zoom in and out. It always remains the same as initial size. When I load the mapfile, it doesn't returns any error, so I assume that font is installed correctly. I thought that all it requires is to set LABEL's TYPE to TRUETYPE, and specifying MINSIZE and MAXSIZE....am I missing something? This is what my mapfile look like: ... LAYER NAME label TYPE ANNOTATION STATUS DEFAULT DATA label CLASSITEM "ID" LABELITEM "TEXT" CLASS EXPRESSION "1" LABEL COLOR 0 0 0 POSITION AUTO TYPE TRUETYPE FONT arial SIZE 8 MAXSIZE 20 MINSIZE 4 END END END ... Thanks. -- Yee Wen -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.wilson at rohoel.at Wed Oct 4 00:31:36 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Wed, 4 Oct 2000 09:31:36 +0200 Subject: Point locations in image coordinates? Message-ID: Thanks - option 2 looks the way to go for me. However, I may have run ahead of myself. My application is similar to the earthquake mapscript example, in that my point data come from a text file (not a shape file). I have two questions: 1) Record numbers are currently appearing in my map symbols, but the map background is showing through the text. I assume this is because the colour of the text is the same as the map background (white) and I have transparency switched on??? Where can I set the colour of this text? (which it seems is not actually a "label" since it does not respond to setting label colour, and the text which is plotted this way is not available in the label cache). I can't seem to change it no matter what I set. This question is more for my understanding, rather than actual need. 2) In order to plot blank text (" ") as an annotation layer, I think my mapscript will need altering to deal with features. Correct? Here are the code segments from my mapfile, and mapscript which currently deal with plotting the symbols as a point layer. It is analogous to the quakes example. How do I set the x and y coordinates for text annotations within mapscript, and what method do I use to draw them? (Code segments follow) Thanks, Mark Extract from mapfile: -------------------------------------------------- LAYER TYPE POINT NAME destinations STATUS OFF SYMBOLSCALE 50000000 CLASS SYMBOL 4 SIZE 30 OUTLINECOLOR 255 0 0 COLOR 255 0 0 # LABEL # COLOR 0 255 255 # SIZE 12 # MINSIZE 12 # MAXSIZE 12 # BACKGROUNDCOLOR 0 0 0 # POSITION AUTO # END END ------------------------- Extract from mapscript file: ------------------------- $lName = "destinations"; $i = 1; $layer = $map->getLayerByName($lName) or die("Unable to getLayerByName($lName)"); $class = $layer->getClass(0); foreach $record (@raw_data) { chop($record); ($xcoord,$ycoord,$class_num)=split(/\s+/,$record); $class->{size} = 16; $class->{maxsize} = $class->{minsize} = $class->{size}; $point = new pointObj(); # Do I still need this for positioning the annotation text? $point->{x} = $xcoord; # Is this still the way to set the x and y of the annotation? $point->{y} = $ycoord; # print("

record=$record, x=$xcoord, y=$ycoord, $class_num

"); $point->draw($map, $layer, $img, undef, " "); # Is this the method for drawing the annotation feature? $i++; } $layer->draw($map, $img); ------------------------- "Stephen Lime" on 02.10.2000 18:40:02 To: Mark H Wilson/RAG/AT at RAG cc: Subject: Re: Point locations in image coordinates? Hi Mark: Several ways to do this (assuming you're using mapscript). 1) calc image coords for symbols plotted To do this you'd need to draw that layer indepently by doing an extent based query and then process those points by directly accessing the shapefile. The extent would simply be the map extent. Then cache each point in image coordinates. The equations to this are straight forward. 2) use the labelcache, one way You can draw the points as annotation layer with blank text (i.e. TEXT " "). That way you can pull them out of the labelcache as described elsewhere. I think you can use the FORCE label parameter to make sure they get drawn. 3) use the labelcache, another way Draw the points as a point layer with blank text. Points with text are handled like annotation layers so that collision with point markers is removed. Markers can collide, but not text with the markers. This is essentially the same as 2) but marker locations are held in a different place in the labelcache structure. I'll have to look at the source to figure out how to access it via perl. Bottom line is it can be done. Questions? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/29/00 06:01AM >>> I am investigating adding some imagemap type functionality (?DHTML) to my mapserver application. From looking at old posts to this list, I can see that it is possible to easily get label locations in image coordinates from the label cache. However, I want only to plot symbols with no labels. Do I still need to caclulate the (point) image coordinate values manually, or has an easier way been discovered? Does position "CC" plot the label directly on top of the symbol? If so, then this would give the correct location for the point in image coordinates. Might it be possible to have a "dummy" layer to plot the labels at an extremely small size, so that they all plot (?), thus ensuring they are all have coordinates available in the labelcache? Or, is it safer/better to just do a manual calculation using image size, map extents and real world point coordinates? Thanks in advance for any advice, Mark From ricmar at pro.via-rs.com.br Wed Oct 4 09:43:59 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Wed, 04 Oct 2000 13:43:59 -0300 Subject: dynamic query Message-ID: <39DB5E4E.D31E6091@pro.via-rs.com.br> Hi all, How can I do a dynamic statement in a CLASS-object in the map-file? There seem to be only static values possible in use with EXPRESSION like this one: LAYER NAME cities # the CGI-relation ... CLASSITEM 'population' #something like this CLASS EXPRESSION ([POPULATION] > 10000) .... COLOR #e.g. red END CLASS EXPRESSION ([POPULATION > 50000) ... COLOR # e.g. dark red END END I wanted to use dynamic (CGI-input) values instead of fixed values. How can I do it here or is this just the wrong way to solve a problem of dynamic input? Any help is welcome and appreciated. Ricardo Martins PROCERGS BRAZIL -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Oct 4 09:57:22 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 04 Oct 2000 11:57:22 -0500 Subject: dynamic query Message-ID: You can change most mapserver parameters, including class expressions on the fly using form variables. Syntax is terse you most likely you'd have to use some javascript to format things. So for example to change a class you'd use syntax like: map_cities_class_0_expression=new expression where - map_cities_class_0_expression = form variable most like build with help of javascript - new expression = expression that conforms to mapserver requirements for mapfiles The alternative is to use mapscript. One nice alternative would allow CGI substitutions in addition to attribute substitutions. In that case you might have a CGI var called 'pop1' and then could write an expression like ([population] > [pop1]) where one comes from the attribute table, the other from the user. I like that and will look into it, perhaps for 3.3.012. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ricardo Wagner Martins 10/04/00 11:43AM >>> Hi all, How can I do a dynamic statement in a CLASS-object in the map-file? There seem to be only static values possible in use with EXPRESSION like this one: LAYER NAME cities # the CGI-relation ... CLASSITEM 'population' #something like this CLASS EXPRESSION ([POPULATION] > 10000) .... COLOR #e.g. red END CLASS EXPRESSION ([POPULATION > 50000) ... COLOR # e.g. dark red END END I wanted to use dynamic (CGI-input) values instead of fixed values. How can I do it here or is this just the wrong way to solve a problem of dynamic input? Any help is welcome and appreciated. Ricardo Martins PROCERGS BRAZIL From andreag at geoplan.ufl.edu Wed Oct 4 13:21:33 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 4 Oct 2000 16:21:33 -0400 (EDT) Subject: tiling imagery Message-ID: <200010042021.e94KLaM05405@cosmos.geoplan.ufl.edu> Hi, I am looking for a way to have the user select spatial extents to display our satellite imagery and aerial photos. I saw the "Index" option for the Layer object in the map file but can't seem to figure out how to use it. Basically I have shapefiles that show the extents of each image and there's an item in the .dbf that says which image the extent corresponds to. Are any of you doing something similar and could offer suggestions? Thanks, Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ From steve.lime at dnr.state.mn.us Wed Oct 4 13:48:37 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 04 Oct 2000 15:48:37 -0500 Subject: tiling imagery Message-ID: We use tiles all the time for imagery. Currently we have doqs and drgs for the entire online with that sort of a setup. Here's an example layer def. LAYER NAME doq_images GROUP doq03im4 STATUS OFF TYPE RASTER OFFSITE 255 TILEINDEX shapefiles/q024ipy4w TILEITEM "doq_loc" MAXSCALE 100000 END # doqs (3 meter) The tileindex contains image outlines and the tileitem contains the fullpath to the corresponding image. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 10/04/00 03:21PM >>> Hi, I am looking for a way to have the user select spatial extents to display our satellite imagery and aerial photos. I saw the "Index" option for the Layer object in the map file but can't seem to figure out how to use it. Basically I have shapefiles that show the extents of each image and there's an item in the .dbf that says which image the extent corresponds to. Are any of you doing something similar and could offer suggestions? Thanks, Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ From michael.kleih at jrc.it Thu Oct 5 00:53:44 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Thu, 05 Oct 2000 08:53:44 +0100 Subject: dynamic query References: <39DB5E4E.D31E6091@pro.via-rs.com.br> Message-ID: <39DC3388.8204E54A@jrc.it> Ricardo Wagner Martins wrote: > Hi all, > > How can I do a dynamic statement in a CLASS-object > in the map-file? > There seem to be only static values possible in use > with EXPRESSION like this one: > > LAYER > NAME cities # the CGI-relation > > ... > > CLASSITEM 'population' #something like this > > CLASS > EXPRESSION ([POPULATION] > 10000) > .... > COLOR #e.g. red > END > > CLASS > EXPRESSION ([POPULATION > 50000) > ... > COLOR # e.g. dark red > END > END > > I wanted to use dynamic (CGI-input) values > instead of fixed values. How can I do it > here or is this just the wrong way to solve > a problem of dynamic input? Any help is > welcome and appreciated. > You could use the PERL-mapscript language. (see http://mapserver.gis.umn.edu/mapscript.html, you need to work on classObj) This allows you to modified all parameters defined in your .map-file. Otherwise, you also could change your .map-file with every access to your web-page. Michael From michael.kleih at jrc.it Thu Oct 5 01:34:23 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Thu, 05 Oct 2000 09:34:23 +0100 Subject: querying attributes in mapserver Message-ID: <39DC3D0F.4D9026A0@jrc.it> Hello, I made a lot of attempts in querying the attributes of a shapefile using mapscript, but always failed. For example in the following example I tried to print out the number of results I should get with my query. The mapfile 'countries_onec.map' that I use has the following content: NAME DEMO STATUS ON SIZE 600 600 EXTENT -5 34.66 20 60.83 UNITS DD SHAPEPATH "data" IMAGECOLOR 80 204 255 TRANSPARENT OFF LAYER NAME country TYPE POLYGON STATUS ON DATA country TOLERANCE 3 CLASSITEM Color_map CLASS EXPRESSION ([COLOR_MAP]<9) COLOR 0 174 66 BACKGROUNDCOLOR 0 204 255 OUTLINECOLOR 0 0 0 END END END The mapscript script in PERL has the following content: #!/usr/bin/perl use mapscript; use GD; $map = new mapObj('countries_onec.map') or die('Unable to open mapfile.'); $img = $map->draw() or die('Unable to draw map'); mapscript::msSaveImage($img, "out.gif", false, false); $lay = $map->getLayer(0); $rect = new rectObj(); $rect ->{minx}=197; $rect ->{miny}=297; $rect ->{maxx}=203; $rect ->{maxy}=303; $qeur= $lay->queryUsingRect($map,$rect); print $qeur->numresults; This should print me the number of results of the query, but instead I get the message: Can't call method "numresults" on an undefined value at ./scripttst.pl Can somebody help? It would really be nice! Michael -- __________________________________ Michael Kleih Centro Comune di Ricerca-JRC Commissione Europea Via Fermi 1 TP 270 Tel. 0039/0332785039 __________________________________ From bill at secureshopper.com Sat Oct 7 11:54:07 2000 From: bill at secureshopper.com (Bill Stephenson) Date: Sat, 07 Oct 2000 13:54:07 -0500 Subject: remove In-Reply-To: Message-ID: remove From nhv at cape.com Sat Oct 7 21:19:34 2000 From: nhv at cape.com (Norman Vine) Date: Sun, 8 Oct 2000 00:19:34 -0400 Subject: MapServer and Cygwin In-Reply-To: <39D21654.74B800C0@videotron.ca> Message-ID: <000501c030de$fccc6320$c037ba8c@nhv> Hi All Attached find minor fixes for compiling Mapserver with the latest Cygwin release (V1.1.4). This patch was made against todays CVS files You will probably need the gnu regex module ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz Cheers Norman Vine -------------- next part -------------- A non-text attachment was scrubbed... Name: cygwin.diffs Type: application/octet-stream Size: 1622 bytes Desc: not available URL: From teb at mallit.fr.umn.edu Sun Oct 8 08:42:04 2000 From: teb at mallit.fr.umn.edu (teb) Date: Sun, 8 Oct 2000 10:42:04 -0500 (CDT) Subject: FWD: using an URL for TEMPLATE Message-ID: <200010081542.KAA18015@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 4 Oct 2000 09:44:01 -0600 (MDT) From: Daniel Mallett To: mapserver-info at lists.gis.umn.edu Subject: using an URL for TEMPLATE MIME-Version: 1.0 Hi, in my MAP file i'm trying to tell MapServer to go to an URL instead of using an actual HTML template page. in the web object i have: WEB TEMPLATE "http://www.test.com/test?img=[img]" Also, in the LAYER object i have QUERY TEMPLATE "http://www.test.com/test?img=[img] END In both cases the URL will load no problem, but the attribute [img] won't be substituted. The browser will be sent to "http://www.test.com/test?img=[img]" when what i want it to do is send me to something like "http://www.test.com/test?img=1234567890.gif". The only workaround i have so far is to use an actual template.html with a tag which for many reasons is not a great solution. Thanks for any help you can offer! ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Sun Oct 8 08:43:48 2000 From: teb at mallit.fr.umn.edu (teb) Date: Sun, 8 Oct 2000 10:43:48 -0500 (CDT) Subject: FWD: newbie Message-ID: <200010081543.KAA18024@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Glenn Steenrod" To: Subject: newbie Date: Wed, 4 Oct 2000 21:36:18 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit I'm just getting started. I downloaded a USGS SDTS dataset for a grid near Columbus, Ohio. I've read the doc about the mapfile but I don't understand how or if SDTS data gets rendered into a map by Mapserver. Thanks, Glenn Steenrod ------------- End Forwarded Message ------------- From herbert at siliconcreation.com Sun Oct 8 20:10:53 2000 From: herbert at siliconcreation.com (Herbert Kwong) Date: Mon, 09 Oct 2000 11:10:53 +0800 Subject: MapServer with FastCGI Message-ID: <39E1373D.63F6ED41@siliconcreation.com> Hi, After trying MapServer for some time, I found it very impressive. In order to make it work even faster and lessen the performance impact to the webserver, I tried to use FastCGI instead. After I changed the makefile and the MapServer source accordingly, it seemed to work, the map loaded and can zoom in/out or pan when I clicked on it. However, the FastCGI program quits itself in the second click. Am I missing something? Had anyone successfully use FastCGI on MapServer? Thanks. Regards, Herbert Kwong Silicon Creation Ltd. herbert at siliconcreation.com -- ******************* Internet Email Confidentiality Footer ******************* Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of Silicon Creation Ltd. shall be understood as neither given nor endorsed by it. From Anthony.Kalma at Planning.wa.gov.au Sun Oct 8 22:10:12 2000 From: Anthony.Kalma at Planning.wa.gov.au (Kalma, Anthony) Date: Mon, 9 Oct 2000 13:10:12 +0800 Subject: Graphs/Charts Message-ID: I appreciate this is a forum for web mapping, but I wonder if anyone on the list has come across any "open" graphing tools for web development? I'm thinking of bar charts and pie charts in particular. Tony Kalma Project Manager - GIS Directions Ministry for Planning, Western Australia Ph: +8 9264 7730 Fax: +8 9264 7766 Email:anthony.kalma at planning.wa.gov.au From imap at chesapeake.net Sun Oct 8 22:40:34 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 09 Oct 2000 01:40:34 -0400 Subject: Graphs/Charts References: Message-ID: <39E15A52.10596405@chesapeake.net> Anthony, In issue #18 "The Perl Journal", there is a decent article about a package called GDGraph3D which is very cool. I know perl modules GD::Graph and it's extension GD::Graph3D can do charts (if you do perl). you can find that stuff at http://search.cpan.org Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 "Kalma, Anthony" wrote: > > I appreciate this is a forum for web mapping, but I wonder if anyone on the > list has come across any "open" graphing tools for web development? I'm > thinking of bar charts and pie charts in particular. > > Tony Kalma > Project Manager - GIS Directions > Ministry for Planning, Western Australia > Ph: +8 9264 7730 > Fax: +8 9264 7766 > Email:anthony.kalma at planning.wa.gov.au From mark.wilson at rohoel.at Mon Oct 9 07:11:32 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 9 Oct 2000 16:11:32 +0200 Subject: Annotations in Mapscript Message-ID: I'm still having problems working out how to display an annotation layer with mapscript. I need to place annotations (from a database) at multiple points on the map. The mapscript functionality is similar to that which is done by mapfile excerpt below, except that several points and text need to be handled (and of course I need it to be in mapscript so that it can be dynamic). Any mapscript examples available anywhere? LAYER NAME test TYPE ANNOTATION STATUS ON TRANSFORM FALSE CLASS TEXT "Test comment for plotting" LABEL COLOR 0 0 0 OUTLINECOLOR 225 225 225 END END FEATURE POINTS 5 270 END END END Thanks in advance, Mark From steve.lime at dnr.state.mn.us Mon Oct 9 08:09:29 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 09 Oct 2000 10:09:29 -0500 Subject: querying attributes in mapserver Message-ID: You must create a query object for all layers you intend to query. I realize you generally won't actually use that object much, if at all, in mapscript, but the query routines rely on it's presence to determine wether or not a layer is queryable. This will likely change at somepoint but for now just add: QUERY TEMPLATE dummy END to your layer def and then retry it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Kleih 10/05/00 03:34AM >>> Hello, I made a lot of attempts in querying the attributes of a shapefile using mapscript, but always failed. For example in the following example I tried to print out the number of results I should get with my query. The mapfile 'countries_onec.map' that I use has the following content: NAME DEMO STATUS ON SIZE 600 600 EXTENT -5 34.66 20 60.83 UNITS DD SHAPEPATH "data" IMAGECOLOR 80 204 255 TRANSPARENT OFF LAYER NAME country TYPE POLYGON STATUS ON DATA country TOLERANCE 3 CLASSITEM Color_map CLASS EXPRESSION ([COLOR_MAP]<9) COLOR 0 174 66 BACKGROUNDCOLOR 0 204 255 OUTLINECOLOR 0 0 0 END END END The mapscript script in PERL has the following content: #!/usr/bin/perl use mapscript; use GD; $map = new mapObj('countries_onec.map') or die('Unable to open mapfile.'); $img = $map->draw() or die('Unable to draw map'); mapscript::msSaveImage($img, "out.gif", false, false); $lay = $map->getLayer(0); $rect = new rectObj(); $rect ->{minx}=197; $rect ->{miny}=297; $rect ->{maxx}=203; $rect ->{maxy}=303; $qeur= $lay->queryUsingRect($map,$rect); print $qeur->numresults; This should print me the number of results of the query, but instead I get the message: Can't call method "numresults" on an undefined value at ./scripttst.pl Can somebody help? It would really be nice! Michael -- __________________________________ Michael Kleih Centro Comune di Ricerca-JRC Commissione Europea Via Fermi 1 TP 270 Tel. 0039/0332785039 __________________________________ From morissette at dmsolutions.on.ca Tue Oct 10 05:19:13 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 10 Oct 2000 08:19:13 -0400 Subject: Annotations in Mapscript References: Message-ID: <39E30941.856E6FE9@dmsolutions.on.ca> mark.wilson at rohoel.at wrote: > > I'm still having problems working out how to display an annotation layer with > mapscript. > > I need to place annotations (from a database) at multiple points on the map. The > mapscript functionality is similar to that which is done by mapfile excerpt > below, except that several points and text need to be handled (and of course I > need it to be in mapscript so that it can be dynamic). Any mapscript examples > available anywhere? > Mark, I don't think there is any formal example available in source form, but the following message from the list will give you some hints on an approach that works very well: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0009/msg00059.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.on.ca Tue Oct 10 05:33:03 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 10 Oct 2000 08:33:03 -0400 Subject: Graphs/Charts References: Message-ID: <39E30C7F.C4F80495@dmsolutions.on.ca> "Kalma, Anthony" wrote: > > I appreciate this is a forum for web mapping, but I wonder if anyone on the > list has come across any "open" graphing tools for web development? I'm > thinking of bar charts and pie charts in particular. > Tony, Have a look at OWTChart: http://pages.infinit.net/danmo/owt/owtchart.html It's a CGI built on top of an open source chart library called GDChart (after doing some reorganization in GDChart) to generate virtually any type of chart from parameters passed in the URL. OWTChart does not yet give access to all the possibilities of the underlying GDChart, but new features are added as we need them. I am planning to do some more work on OWTChart in the next few weeks, and as part of that will package a clean source code distribution, etc. In the meantime, you can always download a snapshot of the OWT source and hopefully typing 'make' in the main directory will work on your system: http://pages.infinit.net/danmo/owt/owt-20000324.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Oct 10 16:27:59 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 10 Oct 2000 18:27:59 -0500 Subject: MapServer Map File DTD, binary mapfiles Message-ID: Awhile back I saw someone post a DTD for map file stored using XML. Is that still around somewhere? Also, any programmers out there know the best way to store/process mapfiles in binary? I'm wondering if flex can use fread to nab chars regardless of how the data is stored. In that case a ascii->binary converter could be run on polished mapfiles for speed reasons. Other ideas? Steve From imap at chesapeake.net Tue Oct 10 19:30:36 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 10 Oct 2000 22:30:36 -0400 Subject: MapServer Map File DTD, binary mapfiles References: Message-ID: <39E3D0CC.85B9643B@chesapeake.net> Steve, I think this is what you are looking for... Doug sent something (see bottom on this message) http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0005/msg00063.html No idea about the binary stuff. -Chris Stephen Lime wrote: > > Awhile back I saw someone post a DTD for map file stored using XML. Is that still around somewhere? > > Also, any programmers out there know the best way to store/process mapfiles in binary? I'm wondering if flex can use fread to nab chars regardless of how the data is stored. In that case a ascii->binary converter could be run on polished mapfiles for speed reasons. Other ideas? > > Steve From imap at chesapeake.net Tue Oct 10 20:34:41 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 10 Oct 2000 23:34:41 -0400 Subject: PDA version of MapServer Message-ID: <39E3DFD1.22359186@chesapeake.net> TO: MAPSERVER List I am curious to know if anyone is doing anything with mapserver generating images for the PalmPilot or WinCE. I am hoping to find time to do something soon if there is some interest, please contact me. The wireless market seems to be really moving right along ;) Another area of interest is data compression. These shapefile datasets (Tiger/GDT/DMTI) are overly massive. I have found a company who will build a proprietary format and API for reading compressed indexes and map data, but it has 2 major problems (1) It will be expensive to develop and deploy and (2) It is proprietary. I am hoping that some developer types might be interested in building and testing new apps for ASPs and end-users. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)257-3187 From mi.ro at iol.it Wed Oct 11 03:41:30 2000 From: mi.ro at iol.it (Roberto Micarelli) Date: Wed, 11 Oct 2000 12:41:30 +0200 Subject: PDA version of MapServer References: <39E3DFD1.22359186@chesapeake.net> Message-ID: <39E443DA.D61EB3BA@iol.it> imap at chesapeake.net wrote: > > TO: MAPSERVER List > > I am curious to know if anyone is doing anything with mapserver > generating images for the PalmPilot or WinCE. I am hoping to > find time to do something soon if there is some interest, please > contact me. The wireless market seems to be really moving right > along ;) > > Another area of interest is data compression. These shapefile > datasets (Tiger/GDT/DMTI) are overly massive. I have found a > company who will build a proprietary format and API for reading > compressed indexes and map data, but it has 2 major problems > (1) It will be expensive to develop and deploy and (2) It is > proprietary. > > I am hoping that some developer types might be interested in > building and testing new apps for ASPs and end-users. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions Inc > (410)257-3187 I'm working on a my project very similar to what you mention. I'm doing some efforts to join together the best from GRASS and Mapserver. There is the lack of a network analyzer and I've developed a module for that. I'm going to release it for GRASS, it's enought flexible to support Mapserver too. Also I've worked on 'high end' navigation map data, and I've designed/developed a way to use PostgreSQL to store topology and to automatically generate graphs for navigation. There is commercial software already available (ie. Oracle, Arc/Info,...), but my idea is to let free-source based systems do the same. One secondary aim would also be to corba/com-wrap the system, and let it live into larger application servers. I'm alone and so far in Itay I've failed to find people available to join me in the development - Italy is a BUY country :( One Mapserver limit I found, is the lack of an abstraction to access map data in a format other than shape file. I was two days navigating the source and finding 'SHP' calls spread everywhere. There's SDE interface but - at least with my version - no query support. For me would be useful to let Mapserver interface an abstract db layer (both for geometry and topology). My idea for now, is to develop a network library, that can be integrated both in Mapserver and GRASS. As like as Proj.4 or Shapelib have gone. Regards. Roberto From morissette at dmsolutions.on.ca Wed Oct 11 05:46:19 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 11 Oct 2000 08:46:19 -0400 Subject: PDA version of MapServer References: <39E3DFD1.22359186@chesapeake.net> <39E443DA.D61EB3BA@iol.it> Message-ID: <39E4611B.7DD4467E@dmsolutions.on.ca> Roberto Micarelli wrote: > > One Mapserver limit I found, is the lack of an abstraction to access > map data in a format other than shape file. > I was two days navigating the source and finding 'SHP' calls > spread everywhere. > There's SDE interface but - at least with my version - no query support. Roberto, We have recently added in MapServer support for the OGR library to access vector data. OGR (http://gdal.velocet.ca/projects/opengis/) is a generic interface to access vector data inspired by the OGC Simple Feature Specification, and there are currently Open Source drivers in OGR to access MapInfo TAB and MIF, Shapefiles, NTF, SDTS, Tiger, S-57 and OGDI. As new formats are developed into OGR, they will automatically be available in MapServer. The OGR support will be part of the next release, but like the SDE support it still lacks query capability. This should be adressed by Steve after the next release and then I will update the OGR link the same way. Regards, Daniel P.S. If anyone is interested in downloading the OGR source, please do not use the link at http://gdal.velocet.ca/projects/opengis/ since it is obsolete. Instead go to http://www.remotesensing.org/gdal/ and download and compile the complete GDAL library source code which includes OGR. The MapServer configure script will fetch the appropriate OGR components from the GDAL source tree. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From kafka at email.cz Wed Oct 11 06:45:34 2000 From: kafka at email.cz (Stepan Kafka) Date: Wed, 11 Oct 2000 15:45:34 +0200 Subject: shadeset problems Message-ID: <001601c03389$87c16af0$fb01a8c0@gis2.oku-kh.cz> Hi all! I am trying the new version of mapserver - beta 3.012 (nightly) on RedHat Linux 6.2. Everything goes well but mapserver does not recognize the keywors SHADESET, MARKERSET, LINESET in the map file. There is the error message: msLoadMap(): Unknown identifier. (SHADESET):(9) What is wrong? New syntax? Can anybody tell me? Thank you Stepan Kafka From peep.krusberg at ekk.ee Wed Oct 11 06:56:07 2000 From: peep.krusberg at ekk.ee (Peep Krusberg) Date: Wed, 11 Oct 2000 15:56:07 +0200 Subject: PDA version of MapServer Message-ID: <39E47177.1A565C35@ekk.ee> > I am curious to know if anyone is doing anything with mapserver > generating images for the PalmPilot or WinCE. I am hoping to > find time to do something soon if there is some interest, please > contact me. The wireless market seems to be really moving right > along ;) > > Another area of interest is data compression. These shapefile > datasets (Tiger/GDT/DMTI) are overly massive. I have found a > company who will build a proprietary format and API for reading > compressed indexes and map data, but it has 2 major problems > (1) It will be expensive to develop and deploy and (2) It is > proprietary. > Hello! - WAP (www.wapforum.org) standard includes 'compression' of tags (WML and binary XML - WBXML) as well as special raster data format (.wbmp, some converters etc www.gelon.net/dev/). - there are standards like JBIG and very soon JPEG2000 (www.jpeg.org). Regards, Peep -- Peep Krusberg Projektijuht / Project Manager, MSc AS Eesti Kaardikeskus / Estonian Map Centre, Ltd. Mustamae tee 33, 10616 Tallinn, Estonia Tel: +(372) 6529 976; Fax: +(372) 6542 108 E-mail: peepk at ekk.ee From steve.lime at dnr.state.mn.us Wed Oct 11 07:47:54 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Oct 2000 09:47:54 -0500 Subject: shadeset problems Message-ID: The new version uses a unified symbol file format which means you can store all symbols in one file. This allows for inline definitions (i.e. within a mapfile) of symbols and more straight forward mapscript access. Anyway here's what's needed to switch: 1) SHADESET, MARKERSET, LINESET are gone and replaced by SYMBOLSET 2) the keywords SHADESET, MARKERSET, LINESET need to be removed from symbol files, and so should the last END keyword 3) you can "cat" them all together That should do it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Stepan Kafka" 10/11/00 08:45AM >>> Hi all! I am trying the new version of mapserver - beta 3.012 (nightly) on RedHat Linux 6.2. Everything goes well but mapserver does not recognize the keywors SHADESET, MARKERSET, LINESET in the map file. There is the error message: msLoadMap(): Unknown identifier. (SHADESET):(9) What is wrong? New syntax? Can anybody tell me? Thank you Stepan Kafka From Brian.Fischer at co.sherburne.mn.us Wed Oct 11 08:09:12 2000 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Wed, 11 Oct 2000 10:09:12 -0500 Subject: Buffering a parcel to produce a list of owners Message-ID: Has anyone developed an application with mapserver, that will allow a user to select a parcel (polygon), then mapserver or some other software would buffer that parcel by a distance specified by the user? Then mapsever would have to use that buffered parcel to select all the parcels that intersect the buffer to produce a list of parcels. We are running mapserver on NT with Microsoft IIS 4.0. I am just curious if anyone has developed a similar application with mapserver? Thanks, Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 From mark.wilson at rohoel.at Thu Oct 12 00:19:02 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Thu, 12 Oct 2000 09:19:02 +0200 Subject: PDA version of MapServer Message-ID: Another resource you may find useful is KShape (GIS on Palm using SUN's K virtual machine) and WShape (GIS on Palm using Waba virtual machine). Both use shape file formats, so at least your data does not have to be converted, even if you were to develop separate applications for each environment. I understand the software is free, but I couldn't find any specific licence provisions. More details at http://www.jshape.com/index0.html Regards, Mark imap at chesapeake.net on 11.10.2000 05:34:41 To: mapserver-users at lists.gis.umn.edu cc: (bcc: Mark H Wilson/RAG/AT) Subject: PDA version of MapServer TO: MAPSERVER List I am curious to know if anyone is doing anything with mapserver generating images for the PalmPilot or WinCE. I am hoping to find time to do something soon if there is some interest, please contact me. The wireless market seems to be really moving right along ;) Another area of interest is data compression. These shapefile datasets (Tiger/GDT/DMTI) are overly massive. I have found a company who will build a proprietary format and API for reading compressed indexes and map data, but it has 2 major problems (1) It will be expensive to develop and deploy and (2) It is proprietary. I am hoping that some developer types might be interested in building and testing new apps for ASPs and end-users. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)257-3187 From peter.jacobs at javel.nl Thu Oct 12 07:50:26 2000 From: peter.jacobs at javel.nl (peter.jacobs at javel.nl) Date: Thu, 12 Oct 2000 16:50:26 +0200 Subject: php3 and Point Query Message-ID: Hello, though I have read most of the previous mesages I'am not able to get a point query working. Can someone help me? ----------------------------------------------- ERROR message : Points : 84463.618126601 447332.90091818 Warning: Using scalar variable $result as an array or object in test.php on line 225 Result ----------------------------------------------- Layer in Mapfile LAYER NAME cyclomedia TYPE POINT STATUS ON DATA cyclomedia TOLERANCE 10 QUERYITEM "naam" QUERY TEMPLATE "ttt" END CLASS COLOR 255 130 140 TEXT "" SYMBOL 'camera' END END ----------------------------------------------- PHP Statement $point=ms_newPointObj(); $input_coord=CreateDoubleArray($input_coord); //makes an array out of a comma separated string $input_coord[1]=$map->height-$input_coord[1]; //tranform horizontally $extent=$map->extent; //calculate the georef extent of the point $input_coord[0]=($input_coord[0]/$map->width) *($extent->maxx-$extent->minx)+$extent->minx; $input_coord[1]=($input_coord[1]/$map->height) *($extent->maxy-$extent->miny)+$extent->miny; $point->setXY($input_coord[0],$input_coord[1]); echo("Points : $point->x $point->y"); //check works fine $layer=$map->getLayerByName('cyclomedia'); $result =$layer->queryusingpoint($point,MS_SINGLE,-1); echo("Result :$result->numresults"); //error! $shapendx = $queryres->next(); From morissette at dmsolutions.on.ca Thu Oct 12 08:54:03 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Thu, 12 Oct 2000 11:54:03 -0400 Subject: php3 and Point Query References: Message-ID: <39E5DE9B.B9CF5F2F@dmsolutions.on.ca> peter.jacobs at javel.nl wrote: > > Hello, > though I have read most of the previous mesages I'am not able to get a > point query working. Can someone help me? > ----------------------------------------------- > ERROR message : > Points : 84463.618126601 447332.90091818 > Warning: Using scalar variable $result as an array or object in test.php on > line 225 This PHP error means that $result is not a valid queryResultObj. The MapScript documentation should say that if nothing was found at query location then queryUsingpoint() returns 0. So your code should check for that case: $result =$layer->queryusingpoint($point,MS_SINGLE,-1); if ( ! $result ) { echo "Nothing found at click location"; } else { echo("Result :$result->numresults"); //error! $shapendx = $queryres->next(); ... } -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From aborruso at spaziogis.it Mon Oct 16 06:37:16 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 16 Oct 2000 15:37:16 +0200 Subject: Install PHP MapScript-How to? Message-ID: Dear all, I would like to know how to install php mapsricpt functions. I have seen http://www2.dmsolutions.on.ca/mapserver/php_mapscript/, but I have not found the answer to my question. Where do I must put dll file? Do I must change something in php.ini file? Please make me know, Andrea From aborruso at spaziogis.it Mon Oct 16 07:19:14 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 16 Oct 2000 16:19:14 +0200 Subject: An old question!! Message-ID: Dear all, I would like to view in a map, by itemquery, for example only that city (a point theme) that I have selected by an html form. I'm able to do it by querymap and mapext=shape but the point appears to me il the left corner of the map. I know that it's an old problem and I have just received some ansers (for example using buffer), but I have had no result. I'm attaching my shapefile my template file for the query result and my map file. I'm actually point to this template by this example syntax: http://../mapserv?map=query.map&mode=itemquery&item=NUM&value=001. I would like to see only my selected city in the middle of the generated map. Thank you, Andrea (See attached file: usgs5.map)(See attached file: samplesutm.shx)(See attached file: samplesutm.sbn)(See attached file: samplesutm.sbx)(See attached file: samplesutm.shp)(See attached file: samplesutm.dbf)(See attached file: usgs5.htm) -------------- next part -------------- A non-text attachment was scrubbed... Name: usgs5.map Type: application/octet-stream Size: 793 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: samplesutm.shx Type: application/octet-stream Size: 1316 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: samplesutm.sbn Type: application/octet-stream Size: 2476 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: samplesutm.sbx Type: application/octet-stream Size: 372 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: samplesutm.shp Type: application/octet-stream Size: 4356 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: samplesutm.dbf Type: application/x-lotus-approach Size: 29658 bytes Desc: Lotus Approach URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.on.ca Mon Oct 16 07:26:37 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Mon, 16 Oct 2000 10:26:37 -0400 Subject: Install PHP MapScript-How to? References: Message-ID: <39EB101D.AA836EB5@dmsolutions.on.ca> aborruso at spaziogis.it wrote: > > Dear all, > I would like to know how to install php mapsricpt functions. I have seen > http://www2.dmsolutions.on.ca/mapserver/php_mapscript/, but I have not > found the answer to my question. Where do I must put dll file? Do I must > change something in php.ini file? > Please make me know, > The php_mapscript.dll file should be placed in PHP's 'extension_dir' directory with all the other php*.dll. This directory is set in the php3.ini file when you install PHP. That's all you need to do to add the DLL to your PHP installation once PHP is installed. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From aborruso at spaziogis.it Tue Oct 17 07:23:23 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Tue, 17 Oct 2000 16:23:23 +0200 Subject: Problem with netscape preview release 3!! Message-ID: Dear all, when I query the map http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=/terrasipProjects/tutorial/example5.map&layer=state_parks&layer=counties&layer=lakes I have this message: msQueryUsingPoint(): Search returned no results. No matching record(s) found. I would not like that the new netscape will give us some problems. Make me know something Andrea From rchavez at perseus.tufts.edu Tue Oct 17 08:10:33 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Tue, 17 Oct 2000 11:10:33 -0400 (EDT) Subject: problems creating a new layerObj Message-ID: Greetings, I'm having some problems creating a new layer for my mapfile using mapscript. I'm trying to create a separate labeled layer for each object selected by a user from a menu in my map interface, in this case the objects are buildings. I've narrowed the problem down to the way I'm constructing the new layer -- I seems to be doing something wrong here. I wrote a dummy mapfile for this layer with all the same parameters to make sure the expression and data were OK and the layer drew just fine. But, trying to build it from the script doesn't work at all. Here's the Perl code, most of the field values are generated elswhere in the script so I'll fill in a sample here. #build the layer $layer = new layerObj($map); $layer->{name} = $newlayername; #$new layername = leis0 $layer->{type} = $mapscript::MS_POLYGON; $layer->{status} = $mapscript::MS_ON; $layer->{data} = $dataname; #$dataname = blg_leis $layer->{classitem} = $itemname; #$itemname = "NAME" $class = new classObj($layer); $class->setExpression($the_expression); #$the_expression = "Buckingham Palace" $class->{symbol} = 0; $class->{color} = $map->addColor(255,204,0); #draw it $layer->draw($map, $img); #go on and add more static layers then call &mapscript::msSaveImage($img, $image_path . $image_id, 1,1); Any advice would be greatly appreciated. Thanks, Rob Chavez Programmer The Perseus Project rchavez at perseus.tufts.edu From warmerda at home.com Tue Oct 17 19:26:14 2000 From: warmerda at home.com (Frank Warmerdam) Date: Tue, 17 Oct 2000 21:26:14 -0500 Subject: Open Source Vector Database Message-ID: <39ED0A46.EF5E690@home.com> Folks, I see a substantial need in the "free GIS software community" for a reasonably sophisticated vector datastore that can be shared between a variety of products. In particular it should support efficient spatial and attribute queries and be easily accessable from a variety of software environments. I am envisioning a RDBMS datastore, with PostgreSQL as one (of hopefully several) host databases, with geometry and attributes store in the database. The advantages are: o Databases are accessable from many environments (via ODBC, direct C interfaces, JDBC in Java, etc). o Databases generally include highly optimized attribute queries. o Databases are "the way things are going" with much commercial GIS (we see this with SDE, MapInfo`s heavy movement to Oracle, and so on). Further, I would like to see the database utilize OpenGIS standards, perhaps holding the geometry data in OGC Well Known Binary, and keeping projections information in auxilary tables in OGC Well Known Text format. I would like to invite individuals interested in the concept of an Open Source Vector Database (OSVecDB) to visit: http://gdal.velocet.ca/projects/osvecdb/index.html and join the newly formed mailing list to discuss the possibility. Mail to: majordomo at remotesensing.org Put the following in the body of your message: subscribe osvecdb I am particularly interested in getting at least one representative of any project that might like to integrate with such a database, and also any one with experience with geospatial databases to join. I think the time is ripe for open standards and open source to come together to foster interoperability of geospatial data! Best regards, --------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerda at home.com light and sound - activate the windows | http://members.home.com/warmerda and watch the world go round - Rush | Geospatial Programmer for Rent From imap at chesapeake.net Tue Oct 17 23:21:53 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Wed, 18 Oct 2000 02:21:53 -0400 Subject: building mapserver w/o shared gd Message-ID: <39ED4181.D160B123@chesapeake.net> I've been grappling with the problem for a long time... I am trying to build mapserver with a static linkage to gd-1.2 (libgd.a). On the more recent versions of redhat linux, there exists a libgd.so (shared lib) in /usr/lib and the compiler *always* links to the shared lib in the gcc standard list of directories before those paths defined by -L. The one thing that I know that works.. is deleteing the gd headers and lib from the standard directories (/usr/include and /usr/lib)... but that isnt a nice thing to do to someone elses machine, especially if they are using it. I have tried the gcc linker -static with no luck. Does anyone know of a work around for this problem? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)357-3187 From michael.kleih at jrc.it Wed Oct 18 03:09:31 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Wed, 18 Oct 2000 11:09:31 +0100 Subject: Open Source Vector Database References: <39ED0A46.EF5E690@home.com> Message-ID: <39ED76DB.61ED2A91@jrc.it> Hello Frank and others, I am working on a project that wants to improve the sharing of geographic data and give the users the possibility to combine data coming from different sources in a online-JAVA-Tool. The tool uses the new WMT OpenGIS standard. Try it out: http://opengis.jrc.it Choose a geographic area, eventually you also might zoom in. After you have done so, click on "create map for the selected area". Two new windows will appear. In the window called "List of layers" click on the folder and drag several databases to the right (MSIExplorer: use the ">>" button). While doing so you can also select a representation style from a pull down menue. When you have select all layers you are interested in click on "Put selected layers in list". In the "Map Tool Window" click on "UPDATE MAP".The requested map will be created retrieving layer by layer. Once the map is ready you have several options: you can pan left/right/up/down, you can zoom in/zoom out, you can resize the map, you can delete layers, you can change the order of layer (with the "/\" and "V" buttons), you can add new layers. It is also possible to print the map. Since java does not allow printing from an applet, when clicking on the "PRINT" botton the map is recreated in a new browser window. Another functionality of the applet is the possibility to query the attributes of a layer: Simply click on a layer on the right and then somewhere on the map. A new window will appear with the attributes. Try the same selecting other layers of your map. Everybody is welcome to participate to the system! To do so, go to http://soda.jrc.it Once you are registered, the system allows you to upload your geographic data, which can be a georeferenced GIF-image, an ArcView Shapefile or a link to an existing OpenGIS WMT compatible database. Note that the projection has to be lat/lon-grid (cylindrical equidistant) to be compatible with the other geographic resources. Once uploaded the data to SoDa your data will be automatically OpenGIS WMT compatibel and also it will appear as one of the available databases in http://opengis.jrc.it. The databases are classifed by category. A registered user can also create new categories ("folders"). The SoDa system uses the Mapserver Software to interface the geographic data to the web. Thanks to the hint of Stephen Lime it now also supports querying attributes. Michael -- __________________________________ Michael Kleih Centro Comune di Ricerca-JRC Commissione Europea Via Fermi 1 TP 270 Tel. 0039/0332785039 __________________________________ From rchavez at perseus.tufts.edu Wed Oct 18 06:39:24 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 18 Oct 2000 09:39:24 -0400 (EDT) Subject: Vector Data and SVG In-Reply-To: <39ED0A46.EF5E690@home.com> Message-ID: Greetings, I've been reading a lot about the Scalable Vector Graphics format SVG, most recently in a decent article: Vector-based Web Cartography: Enabler SVG http://www.carto.net/papers/svg/index_e.html Is it worth thinking about coming up with a way for mapserver/script to work with SVG? The above article has some good mapping examples. I haven't wrapped my brain around the problem yet, so I don't really know what kinds of issues this would involve for mapserver and I have more questions than answers: Is it worth thinking about? Would any benefit be derived from using SVG in a web-based GIS environment like mapserver? Where does SVG stand in terms of OpenGIS standards? Just some thoughts. Does anyone have any insights on SVG that they might want to share? Rob Chavez Programmer Perseus Project From bowenj at peligroso.gaiaenv.com Wed Oct 18 07:02:29 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Wed, 18 Oct 2000 08:02:29 -0600 Subject: Vector Data and SVG References: Message-ID: <39EDAD75.87B4167D@gaiaenv.com> We have been discussing this issue in shop for some time and feel there *is* a need to consider vector formats in web-based mapping solutions. SVG is one format we have begun looking into and looks somewhat promising. Inherently, it seems like it could mesh well with MapServer (obviously some significant re-write would be required). Comments Steve? One of the major drivers toward a vector-based solution from our perspective is our clients' requests to print scalable maps (e.g., rip a 36x60 plot on their in-house plotter). My $0.02 (CAD)... Robert Chavez wrote: > > Greetings, > > I've been reading a lot about the Scalable Vector Graphics format SVG, > most recently in a decent article: Vector-based Web Cartography: Enabler > SVG > > http://www.carto.net/papers/svg/index_e.html > > Is it worth thinking about coming up with a way for mapserver/script to > work with SVG? The above article has some good mapping examples. > > I haven't wrapped my brain around the problem yet, so I don't really know > what kinds of issues this would involve for mapserver and I have more > questions than answers: Is it worth thinking about? Would any benefit be > derived from using SVG in a web-based GIS environment like mapserver? > Where does SVG stand in terms of OpenGIS standards? > > Just some thoughts. Does anyone have any insights on SVG that they might > want to share? > > Rob Chavez > Programmer > Perseus Project From morissette at dmsolutions.on.ca Wed Oct 18 07:02:16 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 18 Oct 2000 10:02:16 -0400 Subject: building mapserver w/o shared gd References: <39ED4181.D160B123@chesapeake.net> Message-ID: <39EDAD68.2FC19915@dmsolutions.on.ca> Chris, One thing that you could do to solve at least the _linking_ problem is to edit the Makefile after you've run configure to set: GD_LIB = /path/to/my/gd-1.2/libgd.a Now, I'm not sure about the headers... if you're lucky then the -I/path/to/my/gd-1.2 that should already be set in the Makefile should be enough to force using the GD 1.2 headers. If not then I'm not sure what to suggest forthe headers. Good Luck! Daniel imap at chesapeake.net wrote: > > I've been grappling with the problem for a long time... > I am trying to build mapserver with a static linkage to > gd-1.2 (libgd.a). On the more recent versions of redhat > linux, there exists a libgd.so (shared lib) in /usr/lib > and the compiler *always* links to the shared lib in the > gcc standard list of directories before those paths defined > by -L. > > The one thing that I know that works.. is deleteing the > gd headers and lib from the standard directories (/usr/include > and /usr/lib)... but that isnt a nice thing to do to someone > elses machine, especially if they are using it. I have tried > the gcc linker -static with no luck. Does anyone know of a > work around for this problem? > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions Inc > (410)357-3187 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Brian.Fischer at co.sherburne.mn.us Wed Oct 18 08:22:44 2000 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Wed, 18 Oct 2000 10:22:44 -0500 Subject: Java applet won't load Message-ID: Mapserver Users, I am trying to use a java applet in a mapserver application. Here is the HTML code: The problem is the web browser says "load: class mapimage not found". Where is the web browser looking for the mapimage.class file? I have the mapimage.class and mapimage.java in a directory on my webserver called java. (wwwroot/java/). I am using Microsoft IIS 4.0. I am not for sure if this is the write place to put the java code. Can anyone help? Thanks, Brian From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Oct 18 08:54:48 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 18 Oct 2000 11:54:48 -0400 Subject: Vector Data and SVG Message-ID: <2951561DB3DDD0118FEC00805FFE980504942015@s5-ccr-r1> Hello, Coincidence ? We've started looking at this ourselves too ! There are a variety of vector formats out there that could be used to implement vector-based web mapping technologies. SVG is one ... we were also looking at flash (since the swf standard is now open, and there are librairies out there for it, and the plug-in is so common), and VML, and if you REALLY want to potentially do some cool stuff, VRML (For true spatial representation of data). The main advantage is that we move CPU intensive work (rendering) from the server to the client. Also, as someone mentionned, it can make printing a lot easier. A couple of issues that came up is the fact that in some cases the vector data is sent "as-is" and that may cause concern for copyright holders. It also requires a lot more bandwith. Given the recent topics brought up here, it seems that the demand is there for more varied input and ouput streams from the mapserver. OGR should provide a nice way top abstract the "input" side of things (Obtaining data, whether it be from shapefiles, OSVecDB, SDE, or anything else). Maybe creating a modular type of interface for mapserver output would be usefull. This might allow for a variety of both raster and vector output, from gif's to SVG. "Plug-ins" or "modules" could then be developped when new formats or standards come out ! One company in spain has been doing interesting work with vector-based web mapping, using open standards : http://www.imapper.com I personally would most definitely enjoy seeing mapserver support OSVecDB, since not only is perfomrmance an issue here, but also the fact that managing very many data sets and layers can be very cumbersome, and having a centralized RDBMS centric data storage solution that is open source would be MOST interesting. SDE is obviously an option, but doesn't run on Linux, and I don't think there are SDE client libraires for Linux as well, are there ? (To compile Mapserver with SDE support on Linux ?) My 2 cents. Now I'm gonna go join the OSVecDB mailing list :) J.F. > ---------- > From: Jim T. Bowen (GAIA Consultants > Inc.)[SMTP:bowenj at peligroso.gaiaenv.com] > Sent: Wednesday, October 18, 2000 10:02 AM > To: Robert Chavez > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: Vector Data and SVG > > We have been discussing this issue in shop for some time and feel there > *is* a need to consider vector formats in web-based mapping solutions. > SVG is one format we have begun looking into and looks somewhat > promising. Inherently, it seems like it could mesh well with MapServer > (obviously some significant re-write would be required). Comments > Steve? > > One of the major drivers toward a vector-based solution from our > perspective is our clients' requests to print scalable maps (e.g., rip a > 36x60 plot on their in-house plotter). > > My $0.02 (CAD)... > > > Robert Chavez wrote: > > > > Greetings, > > > > I've been reading a lot about the Scalable Vector Graphics format SVG, > > most recently in a decent article: Vector-based Web Cartography: > Enabler > > SVG > > > > http://www.carto.net/papers/svg/index_e.html > > > > Is it worth thinking about coming up with a way for mapserver/script to > > work with SVG? The above article has some good mapping examples. > > > > I haven't wrapped my brain around the problem yet, so I don't really > know > > what kinds of issues this would involve for mapserver and I have more > > questions than answers: Is it worth thinking about? Would any benefit > be > > derived from using SVG in a web-based GIS environment like mapserver? > > Where does SVG stand in terms of OpenGIS standards? > > > > Just some thoughts. Does anyone have any insights on SVG that they > might > > want to share? > > > > Rob Chavez > > Programmer > > Perseus Project > From morissette at dmsolutions.on.ca Wed Oct 18 10:22:23 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 18 Oct 2000 13:22:23 -0400 Subject: Vector Data and SVG References: <2951561DB3DDD0118FEC00805FFE980504942015@s5-ccr-r1> Message-ID: <39EDDC4F.4C1CF490@dmsolutions.on.ca> "Doyon, Jean-Francois" wrote: > > Maybe creating a modular type of interface for mapserver output would be > usefull. > This might allow for a variety of both raster and vector output, from gif's > to SVG. > "Plug-ins" or "modules" could then be developped when new formats or > standards > come out ! > I like the idea of extending MapServer to support multiple types of output... the idea of generating Flash output has been running at the back of my head for quite a while now. I've also given a quick look at SVG and the Flash (SWF) SDK in the last months but never got much further than doing some reading and downloading of the SDK. I'm sure we could build very cool and interactive web applications using Flash but I haven't explored those possibilities yet, surprising given the fact that our graphic designer has been bugging me about that for months! :) I agree with what you suggest completely JF: if MapServer is to be extended to support output to something else than GD, then it should be done through an abstraction layer that allows easy development of new output formats, something like OGR, but targetted at output. I haven't done any research on that front, but there may already be some libs that do exactly that. Does anyone know such an open source lib? If not, then maybe that an extension to GD to support vector-based output could be an idea... there are so many apps that already use GD and would benefit from vector output as well that it might be worth exploring that area. (I'm just thinking loud here!) Anyways... my own 0.02$ (+ GST) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Brian.Fischer at co.sherburne.mn.us Wed Oct 18 10:26:29 2000 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Wed, 18 Oct 2000 12:26:29 -0500 Subject: Java applet won't load Message-ID: Sorry for the question, I should of tried this first. It turns out the .class file I was using got corrupted in a transfer. I just downloaded the file again and now the applet works fine. Brian >>> "Brian Fischer" 10/18/00 10:22AM >>> Mapserver Users, I am trying to use a java applet in a mapserver application. Here is the HTML code: The problem is the web browser says "load: class mapimage not found". Where is the web browser looking for the mapimage.class file? I have the mapimage.class and mapimage.java in a directory on my webserver called java. (wwwroot/java/). I am using Microsoft IIS 4.0. I am not for sure if this is the write place to put the java code. Can anyone help? Thanks, Brian From steve.lime at dnr.state.mn.us Wed Oct 18 10:36:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 18 Oct 2000 12:36:20 -0500 Subject: Vector Data and SVG Message-ID: I've looked for years for alternatives to GD especially in the vector world and have come up empty. There aren't even any decent raster libs out there. There are some interesting possibilities though. PDFLIB is a freebie (for non-commercial use I think) PDF creation library. I've been using it with MapScript with some success, but only for final printable product delivery. I know there are some folks in Germany using MapScript to produce SVG data. Extending MapServer wouldn't be that hard. GD is isolated in just a few places, actually a whopping 4 functions. I wouldn't want to extend GD, rather I'd start over. I wrote a 24-bit version of GD years ago but never actually integrated it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 10/18/00 12:22PM >>> "Doyon, Jean-Francois" wrote: > > Maybe creating a modular type of interface for mapserver output would be > usefull. > This might allow for a variety of both raster and vector output, from gif's > to SVG. > "Plug-ins" or "modules" could then be developped when new formats or > standards > come out ! > I like the idea of extending MapServer to support multiple types of output... the idea of generating Flash output has been running at the back of my head for quite a while now. I've also given a quick look at SVG and the Flash (SWF) SDK in the last months but never got much further than doing some reading and downloading of the SDK. I'm sure we could build very cool and interactive web applications using Flash but I haven't explored those possibilities yet, surprising given the fact that our graphic designer has been bugging me about that for months! :) I agree with what you suggest completely JF: if MapServer is to be extended to support output to something else than GD, then it should be done through an abstraction layer that allows easy development of new output formats, something like OGR, but targetted at output. I haven't done any research on that front, but there may already be some libs that do exactly that. Does anyone know such an open source lib? If not, then maybe that an extension to GD to support vector-based output could be an idea... there are so many apps that already use GD and would benefit from vector output as well that it might be worth exploring that area. (I'm just thinking loud here!) Anyways... my own 0.02$ (+ GST) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed Oct 18 10:43:58 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 18 Oct 2000 12:43:58 -0500 Subject: building mapserver w/o shared gd Message-ID: Did you try "-B static -lgd -B dynamic" or something like that? These are linker options on Sun's ld. Must be something like that elsewhere. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 10/18/00 01:21AM >>> I've been grappling with the problem for a long time... I am trying to build mapserver with a static linkage to gd-1.2 (libgd.a). On the more recent versions of redhat linux, there exists a libgd.so (shared lib) in /usr/lib and the compiler *always* links to the shared lib in the gcc standard list of directories before those paths defined by -L. The one thing that I know that works.. is deleteing the gd headers and lib from the standard directories (/usr/include and /usr/lib)... but that isnt a nice thing to do to someone elses machine, especially if they are using it. I have tried the gcc linker -static with no luck. Does anyone know of a work around for this problem? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)357-3187 From steve.lime at dnr.state.mn.us Wed Oct 18 11:16:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 18 Oct 2000 13:16:13 -0500 Subject: Vector Data and SVG Message-ID: Check out: http://www.ionicsoft.com/ionic/spec/MapStyleSheetExtensionFunctionsv0.12_files/Map%20Style%20Sheet%20Extension%20Functionsv0.12.html Might be best to have mapserver just kick out GML and leave the conversion to SVG to something else. Interesting reading at any rate. Certainly needs to be an XSL component/addon to describe the shape/sde/ogr transformation to SVG. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Chavez 10/18/00 08:39AM >>> Greetings, I've been reading a lot about the Scalable Vector Graphics format SVG, most recently in a decent article: Vector-based Web Cartography: Enabler SVG http://www.carto.net/papers/svg/index_e.html Is it worth thinking about coming up with a way for mapserver/script to work with SVG? The above article has some good mapping examples. I haven't wrapped my brain around the problem yet, so I don't really know what kinds of issues this would involve for mapserver and I have more questions than answers: Is it worth thinking about? Would any benefit be derived from using SVG in a web-based GIS environment like mapserver? Where does SVG stand in terms of OpenGIS standards? Just some thoughts. Does anyone have any insights on SVG that they might want to share? Rob Chavez Programmer Perseus Project From seano at metavera.com Wed Oct 18 14:07:53 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 18 Oct 2000 17:07:53 -0400 Subject: "new shapefileObj" causing bizarre errors Message-ID: <001b01c03947$7b9e3140$0582a8c0@metavera.com> Hello List: First, here is the troublesome call: $shapefile = new shapefileObj('/path/to/my/first/dataset/DATA1',-1); I get the following warnings: perl in free(): warning: modified (chunk-) pointer. perl in free(): warning: junk pointer, too high to make sense. perl in free(): warning: modified (chunk-) pointer. perl in free(): warning: modified (chunk-) pointer. perl in free(): warning: modified (chunk-) pointer. The DATA1 file is about 10.3MB in size. I have a second file DATA2 of 10.8MB which works fine. If I add an "or die('unable to ...')" to the end of the line, I get a perl core dump. Any ideas? THanks, Sean. Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From seano at metavera.com Wed Oct 18 14:22:31 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 18 Oct 2000 17:22:31 -0400 Subject: more: "new shapefileObj" causes bizarre errors Message-ID: <002701c03949$86b8d5b0$0582a8c0@metavera.com> Hello again: I thought I'd try to delve a bit deeper by invoking the perl debugger (first time!). The following messages appeared only: perl in free(): warning: modified (chunk-) pointer. Signal SEGV: Illegal seek Abort trap (core dumped) Hope this helps you help me. :-) Sean. Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From Matt.Wilkie at gov.yk.ca Wed Oct 18 15:33:33 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 18 Oct 2000 15:33:33 -0700 Subject: newbie installation Message-ID: <6DD7370C9452D31192A10008C75D075306D7DC01@raptor.gov.yk.ca> Hi, I've installed Mapserver 3.3.011 (I think successfully) on a DEC Alpha running Tru64 v5. I'm having trouble with getting ms_demo to work and can't find any docs for setting it up. Thanks in advance for your assistance; Please bear with me - I'm not a developer though I consider myself a power user for most things computing. Mapserver configure string: CC=gcc ./configure --with-proj configure found proj,ttf and gd ok but couldn't find libjpeg even though that is installed (/usr/local/lib/libjpeg.a) No errors on make though there were warnings (the log is available). Pointing at http://host/cgi-bin/mapserv yields: No query information to decode. QUERY_STRING is set, but empty. as the Installation guide (http://mapserver.gis.umn.edu/install.html) said it should. I untarred ms_demo.tar.gz to /var/www/htdocs/ms_demo, The only change I made to ms_demo/demo.map: IMAGEPATH "/var/www/htdocs/tmp/" (htdocs/tmp exists) LOG "/var/www/logs/ms_demo.log" (which doesn't seem to log anything) Pointing a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button yields: msLoadMap(): Unable to access file. (/ms_demo/demo.map) Apache doesn't log this error though I do get a bunch of "File does not exist" if I load demo.html: [Wed Oct 18 14:55:21 2000] [error] [client 199.247.173.70] \ File does not exist:/var/www/htdocs/ms_demo/[ref] Mailing list archive messages seem to indicate the 'unable to access file' message is a problem with paths or permissions. Unfortunately there was no elaboration on just what constitutes the correct permissions. The path is correct and the permissions are the same as other pages on my site which are accessible: drwxr-xr-x 2 apache nobody 8192 Oct 18 12:21 data -rwxr-xr-x 1 apache nobody 2353 Oct 18 12:21 demo.html -rwxr-xr-x 1 apache nobody 4299 Oct 18 15:00 demo.map The tmp directory is group & user writable: drwxrwxr-x 2 apache nobody 8192 Oct 18 12:27 tmp So, can anybody tell me (or provide docs which will) what I'm doing wrong? thanks in advance and will sum, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -- System Specs -- Digital UNIX V5.0 (Rev. 910); Fri May 12 13:28:30 PDT 2000 Digital UNIX V5.0 Worksystem Software (Rev. 910) System Type: AlphaServer 4000 5/300 2MB DEC4100 Number of CPUs: 1 Type: EV5 (21164) Speed: 299 Mhz Cache: 2.0 MB Memory size: 128 MB Web: Apache 1.3.12 Scripting: PHP 3.0.16, perl 5.6.0 Mapserver 3.3.011 From EricFrost at HRandAssociates.com Thu Oct 19 07:50:07 2000 From: EricFrost at HRandAssociates.com (Eric Frost (HRA)) Date: Thu, 19 Oct 2000 09:50:07 -0500 Subject: favorite linux Message-ID: <003501c039db$dff4b030$0d85e5d8@DELL600301> MapServer List: Is there are preferred or anyone have a favorite Linux for running mapserver? err, I just down- loaded the iso for Mandrake (says 100% compatible with Red Hat)... I assume that will work? Oh--is there an archive of this list? Thanks! Eric From frank.koormann at intevation.de Thu Oct 19 09:13:37 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 19 Oct 2000 18:13:37 +0200 Subject: newbie installation In-Reply-To: <6DD7370C9452D31192A10008C75D075306D7DC01@raptor.gov.yk.ca>; from Matt.Wilkie@gov.yk.ca on Wed, Oct 18, 2000 at 03:33:33PM -0700 References: <6DD7370C9452D31192A10008C75D075306D7DC01@raptor.gov.yk.ca> Message-ID: <20001019181337.A3094@cheops.usf.Uni-Osnabrueck.DE> Hi Matt, All, * Matt.Wilkie (Matt.Wilkie at gov.yk.ca) [001019 01:01]: > Hi, > [...] > > I untarred ms_demo.tar.gz to /var/www/htdocs/ms_demo, > The only change I made to ms_demo/demo.map: > IMAGEPATH "/var/www/htdocs/tmp/" > (htdocs/tmp exists) > LOG "/var/www/logs/ms_demo.log" > (which doesn't seem to log anything) You also have to change the SHAPEPATH (to something absolute) and the IMAGEURL tags. > > Pointing a browser at http://host/ms_demo/demo_init.html > and slapping the 'initialize' button yields: > msLoadMap(): Unable to access file. (/ms_demo/demo.map) The path to the demo.map must be absolute, i.e. /var/www/htdocs/ms_demo/demo.map in your case > Apache doesn't log this error though I do get a bunch of > "File does not exist" if I load demo.html: > [Wed Oct 18 14:55:21 2000] [error] [client 199.247.173.70] \ > File does not exist:/var/www/htdocs/ms_demo/[ref] You can not load the demo.html directly since it is a template file. Hope this helps. Kind regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 236 bytes Desc: not available URL: From syurman at spatialfocus.com Thu Oct 19 10:05:07 2000 From: syurman at spatialfocus.com (Sara Yurman) Date: Thu, 19 Oct 2000 13:05:07 -0400 Subject: favorite linux References: <003501c039db$dff4b030$0d85e5d8@DELL600301> Message-ID: <39EF29C3.DD4126E8@spatialfocus.com> Hi Eric, I'm running mapserver on both RedHat and Debian. Mapserver just works -- doesn't seem to care about the distro and doesn't require much in the way of resources, either. Find the incredibly valuable archive at: http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users Sara "Eric Frost (HRA)" wrote: > > MapServer List: > > Is there are preferred or anyone have a favorite > Linux for running mapserver? err, I just down- > loaded the iso for Mandrake (says 100% > compatible with Red Hat)... I assume that will > work? > > Oh--is there an archive of this list? > > Thanks! > > Eric -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: text/x-vcard Size: 326 bytes Desc: Card for Sara Yurman URL: From bjohnson at jecinc.on.ca Thu Oct 19 10:28:45 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Thu, 19 Oct 2000 13:28:45 -0400 Subject: Need ms_demo setup help Message-ID: <000001c039f2$09fcb880$1400a8c0@pentium75> Could someone give me some info on how to set-up ms_demo (eg. dirs and permissions). I've been having trouble. I've installed the files to /ms_demo and put a copy of demo_init.html into my apache/htdocs directory. I've also edited the demo_init.html to point to /ms_demo/demo.map But when I hit "Initialize" I get msLoadMap(): Premature End-of-File. Undefined symbol. From seano at metavera.com Thu Oct 19 11:37:29 2000 From: seano at metavera.com (Sean O'Hagan) Date: Thu, 19 Oct 2000 14:37:29 -0400 Subject: bug/solved: "new shapefileObj" causing bizarre errors Message-ID: <007d01c039fb$a30b86b0$0582a8c0@metavera.com> Well, my partner solved the problem. Here is the naughty line followed by the "corrected" line: $shapefile = new shapefileObj("path/path/path/NAME",-1); $shapefile = new shapefileObj("path/path/path/name",-1); Apparently, upper case causes some problems in the instantiating of a shapefile object. Environment: FreeBSD w/ Mapserver 3.3.11 Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From seano at metavera.com Thu Oct 19 11:57:08 2000 From: seano at metavera.com (Sean O'Hagan) Date: Thu, 19 Oct 2000 14:57:08 -0400 Subject: more/solved: "new shapefileObj" causing bizarre errors Message-ID: <008301c039fe$61b6cbe0$0582a8c0@metavera.com> Sorry, my posting was incomplete. To clarify, the original shapefile name was NAME.SHP When renamed to name.shp the errors went away. I believe the problem is just in the extension, as another file that works is called NAme.shp Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com Fallback email: smohagan at yahoo.com From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Oct 19 12:11:52 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 19 Oct 2000 15:11:52 -0400 Subject: Perl/Mapscript and mod_perl ? Message-ID: <2951561DB3DDD0118FEC00805FFE980504942028@s5-ccr-r1> Goodday ! I've been quiet lately, so I came up with a new question :) I was wondering if anybody has had experience running Perl/Mapscript programs using mod_perl through the Apache::Registry module ? My main concern is that I vaguely remember hearing about some people having detected memory leaks and so on, presumably from the mapserver module itself. This might be a concern since I will be putting the program under HEAVY load. I plan on implementing under Apache 1.3.14, mod_perl 1.24_01 and Perl 5.6 ... If anybody has any experience with a similar setup, I'd love to hear about them ! Thanks, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From Matt.Wilkie at gov.yk.ca Thu Oct 19 12:32:02 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 19 Oct 2000 12:32:02 -0700 Subject: Need ms_demo setup help Message-ID: <6DD7370C9452D31192A10008C75D075306D7E08A@raptor.gov.yk.ca> Hi Brian, I've just finished dealing with this myself, a longer more detailed explanation is coming shortly. In the meantime, in demo.map comment out the MARKERSET line and disable any layer which has a SYMBOL reference. (Starting with LAYER and stopping at END # LAYER) cheers, -matt > -----Original Message----- > From: Brian Johnson [mailto:bjohnson at jecinc.on.ca] > Sent: Thursday, October 19, 2000 10:29 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Need ms_demo setup help > > > Could someone give me some info on how to set-up ms_demo (eg. dirs and > permissions). I've been having trouble. > > > I've installed the files to /ms_demo and put a copy of > demo_init.html into > my apache/htdocs directory. > > I've also edited the demo_init.html to point to /ms_demo/demo.map > > > > But when I hit "Initialize" I get > > msLoadMap(): Premature End-of-File. Undefined symbol. > From Matt.Wilkie at gov.yk.ca Thu Oct 19 13:08:36 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 19 Oct 2000 13:08:36 -0700 Subject: SUM: newbie installation Message-ID: <6DD7370C9452D31192A10008C75D075306D7E0D1@raptor.gov.yk.ca> I encountered problems installing and running the ms_demo. My original scream for help can be found at the bottom. After a bunch of bumbling around in the dark some light was shed on the subject by Danial Morrissete and Frank Koormann. Many thanks. Full text of the whole exchange is available on request. -==- Problem#1: Pointing a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button yields: msLoadMap(): Unable to access file. (ms_demo/demo.map) Edit demo_init.html so the demo.map path is absolute, i.e. /var/www/htdocs/ms_demo/demo.map After making the above adjustments you may see: loadSymbol(): GD library error. Comment out the MARKERSET line (put a '#' at the beginning of the line) and any LAYER block which holds a SYMBOL reference (comment out every line between LAYER and END # LAYER). After carrying out the previous modifications I was faced with: msDrawLegend(): Memory allocation error. Error allocating heights array. And the response is to disable the LEGEND section, which leads to Problem #4: msDrawReferenceMap(): GD library error. Unable to initialize image. which is bypassed by disabling the REFERENCE section. And now I finally have a working Demo interface, sans a couple pieces. But at least the map Zoom, Pan and Query works. Attached is the .map file which finally produces results. -=< Possible Cause >=- A version of GD is being used which doesn't support GIF and all the "GD library error" you get would be because mapserver tries to load some GIF file that came with the demo and fails: - loadSymbol(): GD library error. -> Would be that your symbol file contained a ref. to a GIF image - msDrawReferenceMap(): GD library error. -> Would be because the base reference map with the demo is also a GIF image I did initally try a higher version (1.8) of GD but I couldn't get it to compile on my system. Therefore I just used the GD which is distributed with mapserver, which is supposed to v1.2. and the directory name says gd1.2. Maybe there is some mixup in the code though. -=< The Original Plea >=- Hi, I've installed Mapserver 3.3.011 (I think successfully) on a DEC Alpha running Tru64 v5. I'm having trouble with getting ms_demo to work and can't find any docs for setting it up. Thanks in advance for your assistance; Please bear with me - I'm not a developer though I consider myself a power user for most things computing. Mapserver configure string: CC=gcc ./configure --with-proj configure found proj,ttf and gd ok but couldn't find libjpeg even though that is installed (/usr/local/lib/libjpeg.a) No errors on make though there were warnings (the log is available). Pointing at http://host/cgi-bin/mapserv yields: No query information to decode. QUERY_STRING is set, but empty. as the Installation guide (http://mapserver.gis.umn.edu/install.html) said it should. I untarred ms_demo.tar.gz to /var/www/htdocs/ms_demo, The only change I made to ms_demo/demo.map: IMAGEPATH "/var/www/htdocs/tmp/" (htdocs/tmp exists) LOG "/var/www/logs/ms_demo.log" (which doesn't seem to log anything) Pointing a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button yields: msLoadMap(): Unable to access file. (/ms_demo/demo.map) Apache doesn't log this error though I do get a bunch of "File does not exist" if I load demo.html: [Wed Oct 18 14:55:21 2000] [error] [client 199.247.173.70] \ File does not exist:/var/www/htdocs/ms_demo/[ref] Mailing list archive messages seem to indicate the 'unable to access file' message is a problem with paths or permissions. Unfortunately there was no elaboration on just what constitutes the correct permissions. The path is correct and the permissions are the same as other pages on my site which are accessible: drwxr-xr-x 2 apache nobody 8192 Oct 18 12:21 data -rwxr-xr-x 1 apache nobody 2353 Oct 18 12:21 demo.html -rwxr-xr-x 1 apache nobody 4299 Oct 18 15:00 demo.map The tmp directory is group & user writable: drwxrwxr-x 2 apache nobody 8192 Oct 18 12:27 tmp So, can anybody tell me (or provide docs which will) what I'm doing wrong? thanks in advance and will sum, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -- System Specs -- Digital UNIX V5.0 (Rev. 910); Fri May 12 13:28:30 PDT 2000 Digital UNIX V5.0 Worksystem Software (Rev. 910) System Type: AlphaServer 4000 5/300 2MB DEC4100 Number of CPUs: 1 Type: EV5 (21164) Speed: 299 Mhz Cache: 2.0 MB Memory size: 128 MB Web: Apache 1.3.12 Scripting: PHP 3.0.16, perl 5.6.0 Mapserver 3.3.011 -------------- next part -------------- A non-text attachment was scrubbed... Name: demo.map Type: application/octet-stream Size: 4349 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Thu Oct 19 13:46:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 19 Oct 2000 15:46:36 -0500 Subject: Perl/Mapscript and mod_perl ? Message-ID: It's not a mapserver issue per se. Apparently there are issues with SWIG generated code that make unusable with mod_perl. I haven't checked the SWIG site to see if this has been fixed or not. There was a patch. Issues all have to do with perl internals, nasty stuff. In spite of this I've run simple mapscript stuff under mod_perl without incident using Apache::PerlRun. Note that the map file object is NOT reentrant. It's structures are modified during the course of a draw. Nay need a mapObj copy function to use under Apache::Registry if the SWIG problems can be overcome. Steve >>> "Doyon, Jean-Francois" 10/19/00 14:15 PM >>> Goodday ! I've been quiet lately, so I came up with a new question :) I was wondering if anybody has had experience running Perl/Mapscript programs using mod_perl through the Apache::Registry module ? My main concern is that I vaguely remember hearing about some people having detected memory leaks and so on, presumably from the mapserver module itself. This might be a concern since I will be putting the program under HEAVY load. I plan on implementing under Apache 1.3.14, mod_perl 1.24_01 and Perl 5.6 ... If anybody has any experience with a similar setup, I'd love to hear about them ! Thanks, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Oct 19 14:20:24 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 19 Oct 2000 17:20:24 -0400 Subject: Perl/Mapscript and mod_perl ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050494202A@s5-ccr-r1> Hmmmm OK, well I'm looking around the SWIG site and not seeing anything, and there are no patches it seems. Maybe th eproblem was fixed in the current release ? Do you use the latest release ? Apache::PerlRun huh ? OK , I'll go take a look at that one ... As for the reentrancy thing, I haven't heard that word in a LONG time :) Any chance you could explain what that might mean to me ? I'm gonna give it a try anyways, just to see ... Thanks as allways ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, October 19, 2000 4:46 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: Re: Perl/Mapscript and mod_perl ? > > It's not a mapserver issue per se. Apparently there are issues with SWIG > generated code that make unusable with mod_perl. I haven't checked the > SWIG site to see if this has been fixed or not. There was a patch. Issues > all have to do with perl internals, nasty stuff. > > In spite of this I've run simple mapscript stuff under mod_perl without > incident using Apache::PerlRun. > > Note that the map file object is NOT reentrant. It's structures are > modified during the course of a draw. Nay need a mapObj copy function to > use under Apache::Registry if the SWIG problems can be overcome. > > Steve > > >>> "Doyon, Jean-Francois" 10/19/00 > 14:15 PM >>> > Goodday ! > > I've been quiet lately, so I came up with a new question :) > > I was wondering if anybody has had experience running Perl/Mapscript > programs > using mod_perl through the Apache::Registry module ? > > My main concern is that I vaguely remember hearing about some people > having > detected > memory leaks and so on, presumably from the mapserver module itself. > This might be a concern since I will be putting the program under HEAVY > load. > > I plan on implementing under Apache 1.3.14, mod_perl 1.24_01 and Perl 5.6 > ... > > If anybody has any experience with a similar setup, I'd love to hear about > them ! > > Thanks, > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > From bjohnson at jecinc.on.ca Fri Oct 20 06:44:19 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Fri, 20 Oct 2000 09:44:19 -0400 Subject: newbie installation In-Reply-To: <6DD7370C9452D31192A10008C75D075306D7E0D1@raptor.gov.yk.ca> Message-ID: <001d01c03a9c$02f9ac00$1200a8c0@Pentium166> I had the same problem after using the default ./configure. My solution to date (after your previous email to me): Edit demo_init.html so the demo.map path is absolute, in my case /ms_demo/demo.map After making the above adjustments I saw: msLoadMap(): Premature End-of-File. Undefined symbol. So at your suggestion, I commented out the MARKERSET line (put a '#' at the beginning of the line) and any LAYER block that held a SYMBOL reference TO A FILE (eg SYMBOL 'us_highway_shield') which is actually a GIF file under the ms_demo/symbols/images directory (comment out every line between LAYER and END # LAYER). Then it worked (without GIF symbols though) I didn't get any of the GD errors that you mentioned and I didn't download or install any special GD files. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Matt.Wilkie Sent: Thursday, October 19, 2000 4:09 PM To: mapserver-users at lists.gis.umn.edu Subject: SUM: newbie installation I encountered problems installing and running the ms_demo. My original scream for help can be found at the bottom. After a bunch of bumbling around in the dark some light was shed on the subject by Danial Morrissete and Frank Koormann. Many thanks. Full text of the whole exchange is available on request. -==- Problem#1: Pointing a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button yields: msLoadMap(): Unable to access file. (ms_demo/demo.map) Edit demo_init.html so the demo.map path is absolute, i.e. /var/www/htdocs/ms_demo/demo.map After making the above adjustments you may see: loadSymbol(): GD library error. Comment out the MARKERSET line (put a '#' at the beginning of the line) and any LAYER block which holds a SYMBOL reference (comment out every line between LAYER and END # LAYER). After carrying out the previous modifications I was faced with: msDrawLegend(): Memory allocation error. Error allocating heights array. And the response is to disable the LEGEND section, which leads to Problem #4: msDrawReferenceMap(): GD library error. Unable to initialize image. which is bypassed by disabling the REFERENCE section. And now I finally have a working Demo interface, sans a couple pieces. But at least the map Zoom, Pan and Query works. Attached is the .map file which finally produces results. -=< Possible Cause >=- A version of GD is being used which doesn't support GIF and all the "GD library error" you get would be because mapserver tries to load some GIF file that came with the demo and fails: - loadSymbol(): GD library error. -> Would be that your symbol file contained a ref. to a GIF image - msDrawReferenceMap(): GD library error. -> Would be because the base reference map with the demo is also a GIF image I did initally try a higher version (1.8) of GD but I couldn't get it to compile on my system. Therefore I just used the GD which is distributed with mapserver, which is supposed to v1.2. and the directory name says gd1.2. Maybe there is some mixup in the code though. -=< The Original Plea >=- Hi, I've installed Mapserver 3.3.011 (I think successfully) on a DEC Alpha running Tru64 v5. I'm having trouble with getting ms_demo to work and can't find any docs for setting it up. Thanks in advance for your assistance; Please bear with me - I'm not a developer though I consider myself a power user for most things computing. Mapserver configure string: CC=gcc ./configure --with-proj configure found proj,ttf and gd ok but couldn't find libjpeg even though that is installed (/usr/local/lib/libjpeg.a) No errors on make though there were warnings (the log is available). Pointing at http://host/cgi-bin/mapserv yields: No query information to decode. QUERY_STRING is set, but empty. as the Installation guide (http://mapserver.gis.umn.edu/install.html) said it should. I untarred ms_demo.tar.gz to /var/www/htdocs/ms_demo, The only change I made to ms_demo/demo.map: IMAGEPATH "/var/www/htdocs/tmp/" (htdocs/tmp exists) LOG "/var/www/logs/ms_demo.log" (which doesn't seem to log anything) Pointing a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button yields: msLoadMap(): Unable to access file. (/ms_demo/demo.map) Apache doesn't log this error though I do get a bunch of "File does not exist" if I load demo.html: [Wed Oct 18 14:55:21 2000] [error] [client 199.247.173.70] \ File does not exist:/var/www/htdocs/ms_demo/[ref] Mailing list archive messages seem to indicate the 'unable to access file' message is a problem with paths or permissions. Unfortunately there was no elaboration on just what constitutes the correct permissions. The path is correct and the permissions are the same as other pages on my site which are accessible: drwxr-xr-x 2 apache nobody 8192 Oct 18 12:21 data -rwxr-xr-x 1 apache nobody 2353 Oct 18 12:21 demo.html -rwxr-xr-x 1 apache nobody 4299 Oct 18 15:00 demo.map The tmp directory is group & user writable: drwxrwxr-x 2 apache nobody 8192 Oct 18 12:27 tmp So, can anybody tell me (or provide docs which will) what I'm doing wrong? thanks in advance and will sum, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -- System Specs -- Digital UNIX V5.0 (Rev. 910); Fri May 12 13:28:30 PDT 2000 Digital UNIX V5.0 Worksystem Software (Rev. 910) System Type: AlphaServer 4000 5/300 2MB DEC4100 Number of CPUs: 1 Type: EV5 (21164) Speed: 299 Mhz Cache: 2.0 MB Memory size: 128 MB Web: Apache 1.3.12 Scripting: PHP 3.0.16, perl 5.6.0 Mapserver 3.3.011 From EricFrost at HRandAssociates.com Fri Oct 20 07:54:34 2000 From: EricFrost at HRandAssociates.com (Eric Frost (HRA)) Date: Fri, 20 Oct 2000 09:54:34 -0500 Subject: preferred OS's Message-ID: <008001c03aa5$a9273df0$0d85e5d8@DELL600301> Thanks to all who responded: Michael K, Stephen L, Andrea G., David F. (sorry I have been switching between computers and may have forgotton a few people) my question was: > Is there are preferred or anyone have a favorite > Linux for running mapserver? err, I just down- > loaded the iso for Mandrake (says 100% > compatible with Red Hat)... I assume that will > work? Concensus was All Linuxes work great, mentioned were Debian and Red Hat, Stephen L. noted that I should be aware what what version GD I am compiling with.. Also received a pointer that it "works fine with FreeBSD !" (no one suggested windows) Also: > Oh--is there an archive of this list? http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users. Apparently there are some posts from August, 2030... should be enlightening. From rchavez at perseus.tufts.edu Fri Oct 20 07:57:54 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 20 Oct 2000 10:57:54 -0400 (EDT) Subject: mapscript setExpression problems Message-ID: Howdy folks, I'm having some trouble changing an expression in a layer using setExpression. All this should do is highlight the polygon whose NAME attribute matches "Bankside Gallery" but when the map draws I get a blank layer, no highlighting. Spelling and capitalization are correct and the original expression in the layer renders correctly, so I must be doing something wrong with setExpression. Can anyone shed a little light? I'm using version 3.3.011. Here's my snippet of code: $layer = $map->getLayerByName(leis); $class = $layer->getClass(0); $class->setExpression("\"Bankside Gallery\""); $layer->draw($map, $img); and mapfile layer: LAYER NAME leis TYPE POLYGON STATUS DEFAULT DATA blg_leis CLASSITEM "NAME" CLASS EXPRESSION "Buckingham Palace" COLOR 255 204 0 END END Thanks, Rob Chavez Perseus Project From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Oct 20 09:32:59 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 20 Oct 2000 12:32:59 -0400 Subject: mapscript setExpression problems Message-ID: <2951561DB3DDD0118FEC00805FFE980504942031@s5-ccr-r1> Humm, well my first thought would be about those escaped double-quotes ... do you really need them ? Wouldn't just $class->setExpression("Bankside Gallery"); work ? Of course if the double quotes are IN the DBF, that could be weird ... J.F. > ---------- > From: Robert Chavez[SMTP:rchavez at perseus.tufts.edu] > Sent: Friday, October 20, 2000 10:57 AM > To: mapserver-users at lists.gis.umn.edu > Subject: mapscript setExpression problems > > > Howdy folks, > > I'm having some trouble changing an expression in a layer using > setExpression. All this should do is highlight the polygon whose NAME > attribute matches "Bankside Gallery" but when the map draws I get a blank > layer, no highlighting. > > Spelling and capitalization are correct and the original expression in the > layer renders correctly, so I must be doing something wrong with > setExpression. Can anyone shed a little light? I'm using version > 3.3.011. > > Here's my snippet of code: > > $layer = $map->getLayerByName(leis); > $class = $layer->getClass(0); > $class->setExpression("\"Bankside Gallery\""); > $layer->draw($map, $img); > > and mapfile layer: > LAYER > NAME leis > TYPE POLYGON > STATUS DEFAULT > DATA blg_leis > CLASSITEM "NAME" > CLASS > EXPRESSION "Buckingham Palace" > COLOR 255 204 0 > END > END > > Thanks, > Rob Chavez > Perseus Project > From rchavez at perseus.tufts.edu Fri Oct 20 09:49:52 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 20 Oct 2000 12:49:52 -0400 (EDT) Subject: mapscript setExpression problems In-Reply-To: <2951561DB3DDD0118FEC00805FFE980504942031@s5-ccr-r1> Message-ID: Hi J.F., I thought of that too, but no dice. I also thought of leaving them out, but then I get the usage error: Usage: classObj_setExpression(self,string); at IncPerl/mapscript.pm line 694. I may need to hunt down the function in the C code. Thanks, Rob On Fri, 20 Oct 2000, Doyon, Jean-Francois wrote: > Humm, well my first thought would be about those escaped double-quotes ... > do you really need them ? > > Wouldn't just $class->setExpression("Bankside Gallery"); > > work ? Of course if the double quotes are IN the DBF, that could be weird > ... > > J.F. > > > ---------- > > From: Robert Chavez[SMTP:rchavez at perseus.tufts.edu] > > Sent: Friday, October 20, 2000 10:57 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: mapscript setExpression problems > > > > > > Howdy folks, > > > > I'm having some trouble changing an expression in a layer using > > setExpression. All this should do is highlight the polygon whose NAME > > attribute matches "Bankside Gallery" but when the map draws I get a blank > > layer, no highlighting. > > > > Spelling and capitalization are correct and the original expression in the > > layer renders correctly, so I must be doing something wrong with > > setExpression. Can anyone shed a little light? I'm using version > > 3.3.011. > > > > Here's my snippet of code: > > > > $layer = $map->getLayerByName(leis); > > $class = $layer->getClass(0); > > $class->setExpression("\"Bankside Gallery\""); > > $layer->draw($map, $img); > > > > and mapfile layer: > > LAYER > > NAME leis > > TYPE POLYGON > > STATUS DEFAULT > > DATA blg_leis > > CLASSITEM "NAME" > > CLASS > > EXPRESSION "Buckingham Palace" > > COLOR 255 204 0 > > END > > END > > > > Thanks, > > Rob Chavez > > Perseus Project > > > From rchavez at perseus.tufts.edu Fri Oct 20 11:51:20 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 20 Oct 2000 14:51:20 -0400 (EDT) Subject: Solution: mapscript setExpression problems In-Reply-To: <2951561DB3DDD0118FEC00805FFE980504942031@s5-ccr-r1> Message-ID: I figured it out. There's nothing wrong with the setExpression function I was using. The problem is (it seems) that when you reset an expression in a class after the map file is read in you can no longer use the other attributes of that class -- in effect, you are redefining the class. As a result, I couldn't use the color codes I had written into the map file for that class -- the layer drew, but it just appeared blank. Once I also redefined the color the layer was rendered according to the expression. So originally I had this bit of code (which didn't work): $layer = $map->getLayerByName(leis); $class = $layer->getClass(0); $class->setExpression("\"Bankside Gallery\""); $layer->draw($map, $img); and I changed it to this (which worked): $layer = $map->getLayerByName('leis'); $class = $layer->getClass(0); $class->setExpression("Bankside Gallery"); $class->{'color'} = $color; $layer->draw($map, $img); where $color is defined using addColor() prior to running prepareImage(). I probably should have picked up on that earlier. For what it's worth. Rob Chavez Perseus Project On Fri, 20 Oct 2000, Doyon, Jean-Francois wrote: > Humm, well my first thought would be about those escaped double-quotes ... > do you really need them ? > > Wouldn't just $class->setExpression("Bankside Gallery"); > > work ? Of course if the double quotes are IN the DBF, that could be weird > ... > > J.F. > > > ---------- > > From: Robert Chavez[SMTP:rchavez at perseus.tufts.edu] > > Sent: Friday, October 20, 2000 10:57 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: mapscript setExpression problems > > > > > > Howdy folks, > > > > I'm having some trouble changing an expression in a layer using > > setExpression. All this should do is highlight the polygon whose NAME > > attribute matches "Bankside Gallery" but when the map draws I get a blank > > layer, no highlighting. > > > > Spelling and capitalization are correct and the original expression in the > > layer renders correctly, so I must be doing something wrong with > > setExpression. Can anyone shed a little light? I'm using version > > 3.3.011. > > > > Here's my snippet of code: > > > > $layer = $map->getLayerByName(leis); > > $class = $layer->getClass(0); > > $class->setExpression("\"Bankside Gallery\""); > > $layer->draw($map, $img); > > > > and mapfile layer: > > LAYER > > NAME leis > > TYPE POLYGON > > STATUS DEFAULT > > DATA blg_leis > > CLASSITEM "NAME" > > CLASS > > EXPRESSION "Buckingham Palace" > > COLOR 255 204 0 > > END > > END > > > > Thanks, > > Rob Chavez > > Perseus Project > > > From Matt.Wilkie at gov.yk.ca Fri Oct 20 11:53:13 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 20 Oct 2000 11:53:13 -0700 Subject: debugging? Message-ID: <6DD7370C9452D31192A10008C75D075306D7E5D5@raptor.gov.yk.ca> Is there some method to make debugging a little easier? I'm trying to build my own .map files now and I'm getting errors like "loadString(): Incorrect data type. (105):(3)" but I don't know how to find out *which* command in the .map file is passing the wrong data type. thanks, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From steve.lime at dnr.state.mn.us Fri Oct 20 12:42:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 20 Oct 2000 14:42:12 -0500 Subject: Call for volunteers! Message-ID: Go ahead and blame the U. Eductation is a role I think they can fill better than anyone. It's even hard for me to write ample documentation because I'm too close to the code and often gloss over important details. I think your suggestions are an excellent idea. I've certainly got enough demo stuff to work from with the "main" demo and more importantly the test suite. So is there anyone out there willin to take this on? Other projects have successfully implemented this so I see no reason the MapServer can't given it's install base is more than 200 sites now. I think a demo and doc CVS site that parallels the dev site would be great and I'll certainly get that going. If your interested, please let me know! Thanks! Steve >>> Daniel Morissette 10/20/00 00:24 AM >>> Steve, The attached message shows a problem that is unfortunately too common with new MapServer users: lots of people that try using MapServer for the first time run into problems with obsolete demo files (or lack of troubleshooting help, or FAQ, or ???). A few of them send a question to the list, but too many probably go away just because they can't get the demo running. The same happened to me when I first tried MapServer... I had to fix up the demo that I downloaded before I could get a map... took me only a few minutes because I'm used to reverse-engineering... but the average GIS person will just give up and download/try another package. This message is not to blame you or UMN... I am in the same situation with the PHP stuff (the GMap PHP demo on our FTP site is not in sync with the software: it dates from May!). I would like to suggest something, but before sending a message out on the list I wanted to get youropinion. Since we (as developers) are already too busy with implementing stuff and fixing bugs, and writing demos and tutorials is not a very good use of our time, I would like to suggest that we build a team of 2 or 3 power users to be responsible for the maintenance/testing of demos and tutorials on various platforms. We would inform these individuals of new features as we implement them and they would regularily update their copy of MapServer from the CVS source (every week or so), test the new features by updating the "official" demos and write new demos/tutorials/documentation showing the new features if necessary. When a MapServer release happens, they would be responsible of releasing a new set of demos in sync with the software. The biggest problem is probably to find someone to take the lead of that team since we've all got enough on our plate already. Hopefully if we send a note to the list someone will volounteer. What do you think? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jonathancandy at hotmail.com Fri Oct 20 13:03:56 2000 From: jonathancandy at hotmail.com (Jonathan Candy) Date: Fri, 20 Oct 2000 13:03:56 PDT Subject: ITEMQUERY problem Message-ID: I recently started using MapServer and am really impressed by the functionality - an incredible job by Stephen Lime and others. I am using MapServer Version 3.3.011 under NT with IIS 4.0 I am working through the basics, can display,zoom,pan, have solved most problems looking the the doc and user mail archives but have run into trouble with ITEMQUERY. My query returns the correct field value, but not an image. I have not solved the problem using the doc. and user mail archives so I hope someone can point out my (simple) error. I have two files: query3.map and query3.html I enter: http://142.232.148.68/scripts/mapserv.exe?map=c:\inetpub\wwwroot\bcit\query3.map&mode=map and I get my map image correctly I enter: http://142.232.148.68/scripts/mapserv.exe?map=c:\inetpub\wwwroot\bcit\query3.map&mode=itemquery&item=code&value=SW5 and I get the Query text result correctly (so the query does work) but no map images. Here is the query3.map file (I have made a simplified version for testing) ***************** NAME QUERY3 EXTENT 499767 5454803 499928 5455434 SIZE 200 300 SHAPEPATH "d:\arcwork\bcitdata\" WEB IMAGEPATH "c:\inetpub\wwwroot\bcit\images\" IMAGEURL "/bcit/images/" END LAYER NAME "bcitsw" DATA sw STATUS DEFAULT TYPE POLYGON CLASSITEM Code CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 END QUERY TEMPLATE "c:\inetpub\wwwroot\bcit\query3.html" END END END ************************* Here is the query3.html file (as simple as possible) Query Result: Building Name: [CODE]
Type: [TYPE]
Images should appear below:

**************************** So when I enter the command http://142.232.148.68/scripts/mapserv.exe?map=c:\inetpub\wwwroot\bcit\query3.map&mode=itemquery&item=code&value=SW5 I get the query result but no images: (My sw.dbf file does have a record with field code=SW5 and type=JON so the query works) *********************** Query Result: Building Name: SW5 Type: JON Images should appear below: X X *********************** Here is the source of the HTML result file: Query Result: Building Name: SW5
Type: JON
Images should appear below:

************************************************* The QUERY3972060490443.gif is not placed in the /bcit/images directory. However, tThe directory does get a .GIF file when I use the mode=map command. All answers really appreciated. regards, Jonathan Candy BCIT GIS Department e-mail: jcandy at bcit.ca Tel: 604-432-8378. www.gis.bcit.ca _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From Matt.Wilkie at gov.yk.ca Fri Oct 20 13:36:44 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 20 Oct 2000 13:36:44 -0700 Subject: Solved: RE: debugging? Message-ID: <6DD7370C9452D31192A10008C75D075306D7E6B5@raptor.gov.yk.ca> > Is there some method to make debugging a little easier? > > I'm trying to build my own .map files now and I'm getting > errors like "loadString(): Incorrect data type. (105):(3)" > but I don't know how to find out *which* command in the > .map file is passing the wrong data type. I figured it out. The last set of brackets contain the line# (starting at 0) (3) # line 3 the previous brackets contain the value mapserv choked on: (105) # the line in the mapfile was: NAME 105d11 So mapserver parsed "NAME 105d11" as an integer when a string was expected. The solution is to make sure you quote values when you need them interpreted as characters instead of numbers. NAME "105d11" cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From pnaciona at gis.umn.edu Fri Oct 20 14:16:14 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 20 Oct 2000 14:16:14 -0700 Subject: Call for volunteers! In-Reply-To: Message-ID: Steve and list, I'll have this done over the weekend. I'm also working on providing NT binaries, updated weekly. This will all be accessible from the main MapServer site. -Perry N. On Fri, 20 Oct 2000, Stephen Lime wrote: > Go ahead and blame the U. Eductation is a role I think they can fill better than anyone. It's even hard for me to write ample documentation because I'm too close to the code and often gloss over important details. I think your suggestions are an excellent idea. > > I've certainly got enough demo stuff to work from with the "main" demo and more importantly the test suite. So is there anyone out there willin to take this on? Other projects have successfully implemented this so I see no reason the MapServer can't given it's install base is more than 200 sites now. I think a demo and doc CVS site that parallels the dev site would be great and I'll certainly get that going. > > If your interested, please let me know! Thanks! > > Steve > From pnaciona at gis.umn.edu Fri Oct 20 14:28:29 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 20 Oct 2000 14:28:29 -0700 Subject: Call for volunteers! In-Reply-To: Message-ID: > I'll have this done over the weekend. I'm also working on providing NT I meant to say I'll have the demo documentation done over the weekend. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Sun Oct 22 12:01:27 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Sun, 22 Oct 2000 15:01:27 -0400 Subject: Call for volunteers! Message-ID: <2951561DB3DDD0118FEC00805FFE98050494203A@s5-ccr-r1> Dan, Stephen, and the list, I'm all for it, and would gladly contribute whatever little time I can find to helping with such a project. Putting in a place a seperate documentation project for the app would be VERY usefull, as would a proper demo project. This would undoubtedly contribute to the growth of the usage of Mapserver and be a generally great way to further opensource. Not to mention it would obviously make for better documentation and demo's. I'm getting a pretty well rounded experience these days with Mapserver, from the CGI version to the mapscript implementations, so I guess I'd qualify myself as a "power user" :) J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Friday, October 20, 2000 3:42 PM > To: morissette at dmsolutions.on.ca > Cc: mapserver-users at lists.gis.umn.edu > Subject: Call for volunteers! > > Go ahead and blame the U. Eductation is a role I think they can fill > better than anyone. It's even hard for me to write ample documentation > because I'm too close to the code and often gloss over important details. > I think your suggestions are an excellent idea. > > I've certainly got enough demo stuff to work from with the "main" demo and > more importantly the test suite. So is there anyone out there willin to > take this on? Other projects have successfully implemented this so I see > no reason the MapServer can't given it's install base is more than 200 > sites now. I think a demo and doc CVS site that parallels the dev site > would be great and I'll certainly get that going. > > If your interested, please let me know! Thanks! > > Steve > > >>> Daniel Morissette 10/20/00 00:24 AM >>> > Steve, > > The attached message shows a problem that is unfortunately too common > with new MapServer users: lots of people that try using MapServer for > the first time run into problems with obsolete demo files (or lack of > troubleshooting help, or FAQ, or ???). A few of them send a question to > the list, but too many probably go away just because they can't get the > demo running. > > The same happened to me when I first tried MapServer... I had to fix up > the demo that I downloaded before I could get a map... took me only a > few minutes because I'm used to reverse-engineering... but the average > GIS person will just give up and download/try another package. > > This message is not to blame you or UMN... I am in the same situation > with the PHP stuff (the GMap PHP demo on our FTP site is not in sync > with the software: it dates from May!). I would like to suggest > something, but before sending a message out on the list I wanted to get > youropinion. > > Since we (as developers) are already too busy with implementing stuff > and fixing bugs, and writing demos and tutorials is not a very good use > of our time, I would like to suggest that we build a team of 2 or 3 > power users to be responsible for the maintenance/testing of demos and > tutorials on various platforms. > > We would inform these individuals of new features as we implement them > and they would regularily update their copy of MapServer from the CVS > source (every week or so), test the new features by updating the > "official" demos and write new demos/tutorials/documentation showing the > new features if necessary. > > When a MapServer release happens, they would be responsible of releasing > a new set of demos in sync with the software. > > The biggest problem is probably to find someone to take the lead of that > team since we've all got enough on our plate already. Hopefully if we > send a note to the list someone will volounteer. > > What do you think? > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.on.ca > http://www.dmsolutions.on.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From Tim.Mackey at agso.gov.au Sun Oct 22 14:47:34 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Mon, 23 Oct 2000 08:47:34 +1100 Subject: debugging? Message-ID: <52113C81E9ACD31182D40060B0570D9B1769CB@agsomail1.agso.gov.au> Matt, try looking on (or near) line number 105. Tim Mackey Web Applications Developer email: tim.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 Australian Geological Survey Organisation (Geoscience Australia) ABN: 80 091 799 039 http://www.agso.gov.au/ -----Original Message----- From: Matt.Wilkie [mailto:Matt.Wilkie at gov.yk.ca] Sent: Saturday, 21 October 2000 5:53 To: mapserver-users at lists.gis.umn.edu Subject: debugging? Is there some method to make debugging a little easier? I'm trying to build my own .map files now and I'm getting errors like "loadString(): Incorrect data type. (105):(3)" but I don't know how to find out *which* command in the .map file is passing the wrong data type. thanks, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From Tim.Mackey at agso.gov.au Sun Oct 22 14:48:24 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Mon, 23 Oct 2000 08:48:24 +1100 Subject: Recall: debugging? Message-ID: <52113C81E9ACD31182D40060B0570D9B1769CC@agsomail1.agso.gov.au> Mackey, Timothy - Min would like to recall the message, "debugging?". From pnaciona at gis.umn.edu Sun Oct 22 22:28:26 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 23 Oct 2000 00:28:26 -0500 Subject: mapserver demo docs Message-ID: <005a01c03cb2$11d45ff0$9a496580@gis.umn.edu> Folks, Here's a draft of the MapServer demo installation doc. I didn't spend much time working on it so I'd appreciate your suggestions/comments in making this better. Thanks. Perry N. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyndon.zimmermann at adelaide.edu.au Sun Oct 22 23:47:30 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Mon, 23 Oct 2000 16:17:30 +0930 Subject: MapServer file locations Message-ID: <39F3DF02.C2DEC63E@adelaide.edu.au> Greetings, We decided to run with RedHat Linux 7.0 for the MapServer and have that going in a dual boot NT/Linux mode. I've tried installing MapServer from the http://www2.dmsolutions.on.ca/mapserver/dl/ binaries website but am not sure of file locations. The dmsolutions site has no instructions and the README.CONFIGURE file doesn't specify locations. Web root is /var/www/html so I've put the demo in /var/www/html/ms_demo. I think this is right, and it's accessible to the browser. I put the entire mapserv subdirectory in /var/www/cgi-bin, so the path to the mapserv binary is /var/www/cgi-bin/mapserv/mapserv. I don't think this is right (demo.html has

, and I presume this "mapserv" is the binary) but haven't found any doco telling me the correct locations. Perhaps the bulk goes into /usr/local/mapserv and the mapserv binary goes in /var/www/cgi-bin/ on it's lonesome. The demo.map listing includes IMAGEPATH "/usr/local/apache/htdocs/tmp/" and the doco says this was previously set in the mapserv.ini file. I couldn't find a mapserv.ini file and suspect I may have to set the IMAGEPATH directory referred to up in the Apache server configuration file. There was reference to a whole lot of other files - fonts, PROJ.4, TIFF etc. I don't know where they go and not particularly concerned at this stage. Any assistance would be appreciated. Regards, Lyndon Z -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) Biomass Energy Atlas for Australia Co-ordinator University of Adelaide Agronomy and Farming Systems Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Adelaide Uni Bioenergy Website: http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html From aborruso at spaziogis.it Mon Oct 23 01:16:41 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 23 Oct 2000 10:16:41 +0200 Subject: Rif: mapserver demo docs Message-ID: Dear Perry, I'm using cgi version of mapserver on windows nt, and I believe that it's better to configure the map files in different way (I have seen for example http://128.101.73.80/projects/tutorial/example4_map.html). Instead of using SHAPEPATH "e:\projects\tutorial\data" FONTSET "e:\projects\fonts\fonts.list" I'm using SHAPEPATH "../shp/" FONTSET ../symbols/font/fonts.list In this manner I can use relative paths (relative to the map file path) that are better than absolute paths (for example when you must move mapserever application frome one server to another). What do you think about? Andrea "Pericles S. Nacionales" Per: Inviato da: Cc: owner-mapserver-users at lists.g Oggetto: mapserver demo docs is.umn.edu 23/10/2000 07.28 Folks, Here's a draft of the MapServer demo installation doc. I didn't spend much time working on it so I'd appreciate your suggestions/comments in making this better. Thanks. Perry N. (See attached file: demo_readme.html) -------------- next part -------------- An HTML attachment was scrubbed... URL: From imap at chesapeake.net Mon Oct 23 01:29:55 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 23 Oct 2000 04:29:55 -0400 Subject: MapServer file locations References: <39F3DF02.C2DEC63E@adelaide.edu.au> Message-ID: <39F3F703.D621E230@chesapeake.net> Lyndon, I set up this demo on a RedHat 7 system last week... My layout is a little different, but I put the HTML stuff and data in /home/httpd/ms_demo and the lone "mapserv" file in my cgi-bin. mapserv.ini is long gone, so you should *not* see that anyplace. I edited the HTML template (demo_init.html references to action= and map= to point to the right places) Make sure that you can run CGI scripts, etc from your Apache cgi-bin area. The mapfile parameter for IMAGEPATH needs to somewhere in Apache's document root and needs to have "write" permissions for the webserver httpd user. Perry posted some demo documentation a couple of hours ago. This should be a good exercise for checking the docs for accuracy. I'd recommend following it to the letter, and see where you end up. Remember to check your httpd error_log to catch debug clues. -Chris Lyndon Zimmermann wrote: > > Greetings, > > We decided to run with RedHat Linux 7.0 for the MapServer and have that > going in a dual boot NT/Linux mode. I've tried installing MapServer > from the http://www2.dmsolutions.on.ca/mapserver/dl/ binaries website > but am not sure of file locations. > > The dmsolutions site has no instructions and the README.CONFIGURE file > doesn't specify locations. > > Web root is /var/www/html so I've put the demo in > /var/www/html/ms_demo. I think this is right, and it's accessible to > the browser. > > I put the entire mapserv subdirectory in /var/www/cgi-bin, so the path > to the mapserv binary is /var/www/cgi-bin/mapserv/mapserv. I don't > think this is right > (demo.html has , and I > presume this "mapserv" is the binary) but haven't found any doco telling > me the correct locations. Perhaps the bulk goes into /usr/local/mapserv > and the mapserv binary goes in /var/www/cgi-bin/ on it's lonesome. > > The demo.map listing includes IMAGEPATH "/usr/local/apache/htdocs/tmp/" > and the doco says this was previously set in the mapserv.ini file. I > couldn't find a mapserv.ini file and suspect I may have to set the > IMAGEPATH directory referred to up in the Apache server configuration > file. > > There was reference to a whole lot of other files - fonts, PROJ.4, TIFF > etc. I don't know where they go and not particularly concerned at this > stage. > > Any assistance would be appreciated. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > Biomass Energy Atlas for Australia Co-ordinator > University of Adelaide Agronomy and Farming Systems > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > > Adelaide Uni Bioenergy Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html > Biomass Energy Atlas Website: > http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html From steve.lime at dnr.state.mn.us Mon Oct 23 08:06:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Oct 2000 10:06:09 -0500 Subject: Fwd: Re: Vector Data and SVG Message-ID: An embedded message was scrubbed... From: John Hockaday Subject: Re: Vector Data and SVG Date: Mon, 23 Oct 2000 15:07:44 +1100 (EST) Size: 3284 URL: From jonathancandy at hotmail.com Mon Oct 23 09:14:37 2000 From: jonathancandy at hotmail.com (Jonathan Candy) Date: Mon, 23 Oct 2000 09:14:37 PDT Subject: No subject Message-ID: QUERYMAP STATUS ON STYLE HILITE #STYLE SELECTED COLOR 255 0 255 END _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From jonathancandy at hotmail.com Mon Oct 23 09:19:59 2000 From: jonathancandy at hotmail.com (Jonathan Candy) Date: Mon, 23 Oct 2000 09:19:59 PDT Subject: ITEMQUERY: a new mapserver user's simple problem and solution Message-ID: I am sending this to the list in case other new Mapserver users make the same error. I wanted to select features via an attribute query. I was only getting the query text results, but no image. I had ommited the QUERYMAP section from my map file. An example section would be: QUERYMAP STATUS ON STYLE HILITE #STYLE SELECTED COLOR 255 0 255 END Thks to 'Ma' for quickly pointing out this simple error. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From Matt.Wilkie at gov.yk.ca Mon Oct 23 10:27:30 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Mon, 23 Oct 2000 10:27:30 -0700 Subject: Tip: a debugging init.html file Message-ID: <6DD7370C9452D31192A10008C75D075306E541E3@raptor.gov.yk.ca> Hi All, I've just cobbled together an alternate map_init.html file which makes it easier to play with changes and test .map files. It's based on the ms_demo dataset. Basically the idea is change all the "hidden" inputs to text or list inputs so you can type all the variables straight into the web page. It shortens the 'edit html, save, refresh, submit' cycle. Ideally it would be expanded to include all of the mapserv functions which can be passed on the command line. I think it or something like it would be a good addition to the demo dataset. cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnaciona at gis.umn.edu Mon Oct 23 14:45:07 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 23 Oct 2000 16:45:07 -0500 Subject: Demo installation guide Message-ID: <012801c03d3a$82f92f20$9a496580@gis.umn.edu> Folks, The MapServer demo installation guide is now available at http://mapserver.gis.umn.edu/demo_readme.html. It is also accessible from the documentation page of the MapServer web site. Thanks to all of you who gave comments and suggestions. Thanks especially to Matt Wilkie who provided additional text on error messages and debugging. -Perry N. From johnh at erin.gov.au Mon Oct 23 14:35:35 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 24 Oct 2000 08:35:35 +1100 (EST) Subject: Vector Data and SVG Message-ID: <200010232135.IAA02054@eos.erin.gov.au> Hi, We have considered going to this type of format for quite a while but we haven't done so far the following reasons: 1. It usually needs a plugin and in some places it is against business rules to allow the download of plugins. This would mean that several heavy government users of our products would not be able to use mapserv. 2. Some people do not have the latest browsers and therefore would not be able to see the application. (Similarly this is why I have limited even javascript as some people use old browsers that can't interpret it satisfactorily.) For these reasons I would hope that mapserv is still maintained with GIF format. With the option of other formats such as, SVG etc. Why haven't we all gone to PNG instead of GIF? I think that it is because nearly all browsers can see GIF and not all can see PNG. I think that this is a similar argument for not going to SVG. I'm not trying to prevent developments in new methodologies but I would like to make sure that the old formats are maintained. Johnh > > >>> Robert Chavez 10/18/00 08:39AM >>> > > Greetings, > > I've been reading a lot about the Scalable Vector Graphics format SVG, > most recently in a decent article: Vector-based Web Cartography: Enabler > SVG > > http://www.carto.net/papers/svg/index_e.html > > Is it worth thinking about coming up with a way for mapserver/script to > work with SVG? The above article has some good mapping examples. > > I haven't wrapped my brain around the problem yet, so I don't really know > what kinds of issues this would involve for mapserver and I have more > questions than answers: Is it worth thinking about? Would any benefit be > derived from using SVG in a web-based GIS environment like mapserver? > Where does SVG stand in terms of OpenGIS standards? > > Just some thoughts. Does anyone have any insights on SVG that they might > want to share? > > Rob Chavez > Programmer > Perseus Project > > From nwerneck at yahoo.com.br Mon Oct 23 15:28:37 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Mon, 23 Oct 2000 20:28:37 -0200 Subject: more newbie questions In-Reply-To: <005a01c03cb2$11d45ff0$9a496580@gis.umn.edu> Message-ID: <200010232231.RAA12008@lists.gis.umn.edu> Ok, hi... Can I make something like reading the colors of the regions on my shapefile frrom the DBF file? like object expression /./ RGB ??? thnx! __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From steve.lime at dnr.state.mn.us Mon Oct 23 15:42:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Oct 2000 17:42:44 -0500 Subject: more newbie questions Message-ID: Nope, can't pull color. You can pull annotation, textsize and textangle, that's it. Steve >>> 10/23/00 05:28PM >>> Ok, hi... Can I make something like reading the colors of the regions on my shapefile frrom the DBF file? like object expression /./ RGB ??? thnx! __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From lyndon.zimmermann at adelaide.edu.au Mon Oct 23 21:49:55 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Tue, 24 Oct 2000 14:19:55 +0930 Subject: MapServer installation References: Message-ID: <39F514F3.D6FC7F84@adelaide.edu.au> Greetings all, I've downloaded the MapServer, PROJ-4, gd1.8.3 and freetype Source, run ./configure and make on the latter three then MapServer and copied the mapserv binary to my web root, /var/www/cgi-bin. I now get "loadSymbol(): GD library error" when I try to run Initialise in the MapServer demo. Does this ring a bell with anyone? Lyndon Zimmermann From jacquin at geosys-inc.com Mon Oct 23 22:38:19 2000 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Tue, 24 Oct 2000 00:38:19 -0500 Subject: Call for volunteers! In-Reply-To: Message-ID: Hi folks, This is a very interesting problem in terms of Software Engineering. How to maintain a software shared by a lot of people ? From what I know, only the documentation is not up to date. But, when you have to adapt MapServer to your own environment, how to keep tracks of your own changes and integrate them into the original source code ? How to follow the version evolutions ? >From my point of view I had to make some changes in the 3.something code to make it re-entrant and I have not found time since I talk to Steve a couple of weeks ago to identify and give him the updates. Promised, I will. But can most of MapServer users spend more time than they do on debugging, updating and give Steve the feedback ? How to organize, validate and keep track of the changes ? I guess that Frank Warmerdam could help us. He is now leading the remotesensing.org projects and OSIM is a good example. They surely faced the same problems. And let's give Steve the rest he deserves, we should create a Board Committee deciding and validating (and managing) the updates (software,version,documentation). In the meantime, do we have a 'Powered by MapServer' logo ? Finally, most of the people around the Geoweb are starting to compare their product to MapServer, or trying to compete with ... Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime Sent: Friday, October 20, 2000 2:42 PM To: morissette at dmsolutions.on.ca Cc: mapserver-users at lists.gis.umn.edu Subject: Call for volunteers! Go ahead and blame the U. Eductation is a role I think they can fill better than anyone. It's even hard for me to write ample documentation because I'm too close to the code and often gloss over important details. I think your suggestions are an excellent idea. I've certainly got enough demo stuff to work from with the "main" demo and more importantly the test suite. So is there anyone out there willin to take this on? Other projects have successfully implemented this so I see no reason the MapServer can't given it's install base is more than 200 sites now. I think a demo and doc CVS site that parallels the dev site would be great and I'll certainly get that going. If your interested, please let me know! Thanks! Steve >>> Daniel Morissette 10/20/00 00:24 AM >>> Steve, The attached message shows a problem that is unfortunately too common with new MapServer users: lots of people that try using MapServer for the first time run into problems with obsolete demo files (or lack of troubleshooting help, or FAQ, or ???). A few of them send a question to the list, but too many probably go away just because they can't get the demo running. The same happened to me when I first tried MapServer... I had to fix up the demo that I downloaded before I could get a map... took me only a few minutes because I'm used to reverse-engineering... but the average GIS person will just give up and download/try another package. This message is not to blame you or UMN... I am in the same situation with the PHP stuff (the GMap PHP demo on our FTP site is not in sync with the software: it dates from May!). I would like to suggest something, but before sending a message out on the list I wanted to get youropinion. Since we (as developers) are already too busy with implementing stuff and fixing bugs, and writing demos and tutorials is not a very good use of our time, I would like to suggest that we build a team of 2 or 3 power users to be responsible for the maintenance/testing of demos and tutorials on various platforms. We would inform these individuals of new features as we implement them and they would regularily update their copy of MapServer from the CVS source (every week or so), test the new features by updating the "official" demos and write new demos/tutorials/documentation showing the new features if necessary. When a MapServer release happens, they would be responsible of releasing a new set of demos in sync with the software. The biggest problem is probably to find someone to take the lead of that team since we've all got enough on our plate already. Hopefully if we send a note to the list someone will volounteer. What do you think? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Oct 23 22:54:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 24 Oct 2000 00:54:25 -0500 Subject: MapServer installation Message-ID: Yup. GD 1.8.3 is not fully supported in 3.3.011 but is in 3.3.012. That's not really causing the error just more of a heads up. To fix the error change any references to GIF images (i.e. the reference image) to point to a PNG equivalent. BTW For just getting started I'd recommend just using GD 1.2 and GIFs. No demo mods needed then. Steve >>> Lyndon Zimmermann 10/23/00 23:48 PM >>> Greetings all, I've downloaded the MapServer, PROJ-4, gd1.8.3 and freetype Source, run ./configure and make on the latter three then MapServer and copied the mapserv binary to my web root, /var/www/cgi-bin. I now get "loadSymbol(): GD library error" when I try to run Initialise in the MapServer demo. Does this ring a bell with anyone? Lyndon Zimmermann From imap at chesapeake.net Tue Oct 24 00:11:12 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 24 Oct 2000 03:11:12 -0400 Subject: SourceForge this beast (Re: call for volunteers) References: Message-ID: <39F53610.D9D3339A@chesapeake.net> All very good points. Along these lines, I would like to mention that http://sourceforge.net is totally impressive and they seem to have solved alot of the open source development problems. They service over 10000 projects... Their blurb: SourceForge is a free service to Open Source developers offering easy access to the best in CVS, mailing lists, bug tracking, message boards/forums, task management, site hosting, permanent file archival, full backups, and total web-based administration. With all due respect for the UMN for their facilitation of the project, SourceForge seems to be well suited for the task and they seem to have this thing "canned" to the point where it doesnt make sense to "wing it" if there is something better that will allow us to collaborate *better* with less effort. Over the last 3-4 minor revs of software, I have forgotten some of the subtle changes of syntax in mapfiles, symbol files, etc. making an upgrade problematic. I dont think these changes are actually documented anywhere (except in Steve's head ;) At the very least, much needed is a change log that describes the changes between the versions for our own sanity ;) Definitely needed, a formal way to track bugs, test, and grow the application. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)257-3187 Marc Jacquin wrote: > > Hi folks, > > This is a very interesting problem in terms of Software Engineering. How to > maintain a software shared by a lot of people ? From what I know, only the > documentation is not up to date. But, when you have to adapt MapServer to > your own environment, how to keep tracks of your own changes and integrate > them into the original source code ? How to follow the version evolutions ? > > >From my point of view I had to make some changes in the 3.something code to > make it re-entrant and I have not found time since I talk to Steve a couple > of weeks ago to identify and give him the updates. Promised, I will. > > But can most of MapServer users spend more time than they do on debugging, > updating and give Steve the feedback ? How to organize, validate and keep > track of the changes ? > > I guess that Frank Warmerdam could help us. He is now leading the > remotesensing.org projects and OSIM is a good example. They surely faced the > same problems. > > And let's give Steve the rest he deserves, we should create a Board > Committee deciding and validating (and managing) the updates > (software,version,documentation). > > In the meantime, do we have a 'Powered by MapServer' logo ? > > Finally, most of the people around the Geoweb are starting to compare their > product to MapServer, or trying to compete with ... > > Marc > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > Lime > Sent: Friday, October 20, 2000 2:42 PM > To: morissette at dmsolutions.on.ca > Cc: mapserver-users at lists.gis.umn.edu > Subject: Call for volunteers! > > Go ahead and blame the U. Eductation is a role I think they can fill better > than anyone. It's even hard for me to write ample documentation because I'm > too close to the code and often gloss over important details. I think your > suggestions are an excellent idea. > > I've certainly got enough demo stuff to work from with the "main" demo and > more importantly the test suite. So is there anyone out there willin to take > this on? Other projects have successfully implemented this so I see no > reason the MapServer can't given it's install base is more than 200 sites > now. I think a demo and doc CVS site that parallels the dev site would be > great and I'll certainly get that going. > > If your interested, please let me know! Thanks! > > Steve > > >>> Daniel Morissette 10/20/00 00:24 AM >>> > Steve, > > The attached message shows a problem that is unfortunately too common > with new MapServer users: lots of people that try using MapServer for > the first time run into problems with obsolete demo files (or lack of > troubleshooting help, or FAQ, or ???). A few of them send a question to > the list, but too many probably go away just because they can't get the > demo running. > > The same happened to me when I first tried MapServer... I had to fix up > the demo that I downloaded before I could get a map... took me only a > few minutes because I'm used to reverse-engineering... but the average > GIS person will just give up and download/try another package. > > This message is not to blame you or UMN... I am in the same situation > with the PHP stuff (the GMap PHP demo on our FTP site is not in sync > with the software: it dates from May!). I would like to suggest > something, but before sending a message out on the list I wanted to get > youropinion. > > Since we (as developers) are already too busy with implementing stuff > and fixing bugs, and writing demos and tutorials is not a very good use > of our time, I would like to suggest that we build a team of 2 or 3 > power users to be responsible for the maintenance/testing of demos and > tutorials on various platforms. > > We would inform these individuals of new features as we implement them > and they would regularily update their copy of MapServer from the CVS > source (every week or so), test the new features by updating the > "official" demos and write new demos/tutorials/documentation showing the > new features if necessary. > > When a MapServer release happens, they would be responsible of releasing > a new set of demos in sync with the software. > > The biggest problem is probably to find someone to take the lead of that > team since we've all got enough on our plate already. Hopefully if we > send a note to the list someone will volounteer. > > What do you think? > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.on.ca > http://www.dmsolutions.on.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From jan at intevation.de Tue Oct 24 01:14:12 2000 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 24 Oct 2000 10:14:12 +0200 Subject: SourceForge this beast (Re: call for volunteers) In-Reply-To: <39F53610.D9D3339A@chesapeake.net>; from imap@chesapeake.net on Tue, Oct 24, 2000 at 03:11:12AM -0400 References: <39F53610.D9D3339A@chesapeake.net> Message-ID: <20001024101412.A1868@abnoba.intevation.de> Hi Chris, On Tue, Oct 24, 2000 at 03:11:12AM -0400, imap at chesapeake.net wrote: > Along these lines, I would like to mention > that http://sourceforge.net is totally impressive and they seem to have > solved alot of the open source development problems. They service over > 10000 projects... Their blurb: SourceForge owns real impressive hardware. They have perfectly tuned available tools for the management of software development. Still I am not sure whether it is a good idea to centralize Free Software projects in one place. SourceForge is going to be the primary target if someone wants to act against Free Software in one way or another. E.g. a denial-of-service attack would be really awful. Besides, I have the feeling that the every day work sometimes is close to a denial-of-service attack. This is not to say SourceForge is evil. It just can get problematic. However, it is possible to use some of the management tools hosted at SourceForge. Cheers Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From ricmar at pro.via-rs.com.br Tue Oct 24 06:09:11 2000 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Tue, 24 Oct 2000 11:09:11 -0200 Subject: query points Message-ID: <39F589F6.28057DB@pro.via-rs.com.br> Hello everybody, just like in the demo example I used the query statement for a class of POLYGONES which worked well. But when I tried to use POINTS, there seems to be a problem. I have a shapefile (with dbf) which includes names of cities. Even the labeling in the map works, also the error message when I try to query a city which is not in the tolerance range. But if it is inside the range mapserver doesn't stop and there is a zombie process using a lot of cpu recourses. Maybe it is not common to query points (so it doesn't work), but I would like to have a small map (as result image) which shows the area around the city. Could it be that it shouldn't work with points, did I do something wrong or is it a bug? Thanks in advance for your help. Ricardo Martins PROCERGS - Brazil From morissette at dmsolutions.on.ca Tue Oct 24 08:20:18 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 24 Oct 2000 11:20:18 -0400 Subject: SourceForge this beast (Re: call for volunteers) References: <39F53610.D9D3339A@chesapeake.net> <20001024101412.A1868@abnoba.intevation.de> Message-ID: <39F5A8B2.24CF5530@dmsolutions.on.ca> Hi, (the Devil's Advocate speaking here...) imap at chesapeake.net wrote: > > All very good points. Along these lines, I would like to mention > that http://sourceforge.net is totally impressive and they seem to have > solved alot of the open source development problems. They service over > 10000 projects... Their blurb: > I'm not sure if SourceForge is really going to be the _magic_ solution to everything. And I'm even worried that moving to SourceForge could bring new problems... I've been thinking of taking some other Open Source project that I work on to Source Forge but one reason why I haven't done it yet is because several times I tried to access their servers and they were either awfully slow or completely unaccessible (like this morning). We already have a CVS server at UMN for the project that works very well... it's reliable and access is fast anytime from anywhere... I would hate to have to wait 5 or 10 minutes or try 5 times everytime I have to commit some changes to CVS. I'm not arguing against the SourceForge idea... I think it's great... but unfortunately its too great success may be what makes it a bad choice for now. However, there are a couple of ideas that have been raised in this thread that would help a lot and we should consider them seriously: - Bug tracking system - Change log - Demo/documentation project Maybe we could give SourceForge a try (mainly for the bug tracking system), but please don't move the current (reliable) CVS server and mailing list over there until we are sure that SourceForge can be reliable. Marc Jacquin wrote: > > And let's give Steve the rest he deserves, we should create a Board > Committee deciding and validating (and managing) the updates > (software,version,documentation). > I guess you're referring to the fact that MapServer development has been mostly led by UMN until now? Are you suggesting that decisions on the future of MapServer should be moved to a commitee? I would be happy to participate in it, but would a committe really help things? I mean Steve seems very open to suggestions and MapServer (like any project) needs someone to make the final decision about new features being added or not to the core and how it should be done... otherwise the software could end up being a mess. The fact that Steve and UMN lead the MapServer development does not prevent anyone from making contributions today. For instance, we have contributed the PHP module and more recently I have added support for reading multiple vector formats through the OGR library (but like SDE, it still lacks query support). I just had to make sure with Steve that my changes would be consistent with the overall MapServer architecture (taking current and future plans into account). I guess I'm not really concerned by who makes the decision as long as we make sure that they're consistent. But I'm wondering if more people would really make contributions just because there is a committee in place. After all, there is nothing that prevents anyone from contributing extensions (and bug fixes) today. BTW, Thanks to Pericles for the demo documentation... it's great! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From andreag at geoplan.ufl.edu Tue Oct 24 08:25:01 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Tue, 24 Oct 2000 11:25:01 -0400 (EDT) Subject: SourceForge Message-ID: <200010241525.e9OFP3M08173@cosmos.geoplan.ufl.edu> I would agree that SourceForge would be good to go with. I was going to suggest this earlier but didn't get around to it. When I told some of my friends who are also into open source software about MapServer, they asked why it isn't on SourceForge. The advantage of going with them is that it would attract more developers to work on it which can only help us. Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ From warmerda at home.com Tue Oct 24 09:48:51 2000 From: warmerda at home.com (Frank Warmerdam) Date: Tue, 24 Oct 2000 11:48:51 -0500 Subject: Call for volunteers! References: Message-ID: <39F5BD73.F4BFF95@home.com> Marc Jacquin wrote: > I guess that Frank Warmerdam could help us. He is now leading the > remotesensing.org projects and OSIM is a good example. They surely faced the > same problems. Marc, I am leading a few projects on remotesensing.org (geotiff, gdal, proj.4), but not OSSIM though I do contribute to that. I would say that a partial or complete move to a more public location like sourceforge might be wise for MapServer. In particular, I think MapServer would benefit from a public bug tracking system. It could be that this is all that is maintained elsewhere for the time being. BTW, the OpenEV project is on SourceForge, and performance at sourceforge has sometimes been so painfully slow as to make me give up. > And let's give Steve the rest he deserves, we should create a Board > Committee deciding and validating (and managing) the updates > (software,version,documentation). Well, I don't know that Steve needs a committee, but it does seem prudent to open things up enough that a few other trusted folks can provide fixes, and improvements to the code, and documentation. I think the proposal for volunteers to update the documentation would be an excellent step to pursue for now (and perhaps setting up a bug system somewhere). PS. If you are interested in moving some stuff elsewhere, I would be happy to volunteer remotesensing.org. Perhaps you would just like to take advantage of the bugzilla setup there for now, and perhaps more later? Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerda at home.com light and sound - activate the windows | http://members.home.com/warmerda and watch the world go round - Rush | Geospatial Programmer for Rent From Matt.Wilkie at gov.yk.ca Tue Oct 24 09:01:46 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 24 Oct 2000 09:01:46 -0700 Subject: Demo installation guide Message-ID: <6DD7370C9452D31192A10008C75D075306E54759@raptor.gov.yk.ca> > The MapServer demo installation guide is now available at > http://mapserver.gis.umn.edu/demo_readme.html. It is also > accessible from the documentation page of the MapServer web > site. Thanks to all of you who gave comments and suggestions. > Thanks especially to Matt Wilkie who provided additional text > on error messages and debugging. I'd just like to add I wrote the error message/debugging section but can't really be said to be the author. It was Daniel Morrisette who figured out the "GD no .GIF" problem, Frank Koorman who let me know you can't load demo.html because it's a template, and Stephen Lime who confirmed how to extract the line number from the error message. I felt I had to add a qualifier, because seeing all those words I wrote "in print" there makes it sound like I understand more than I do. I'm just bumbling along in the dark and keeping notes. :-) cheers, -matt From Matt.Wilkie at gov.yk.ca Tue Oct 24 09:21:56 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 24 Oct 2000 09:21:56 -0700 Subject: SourceForge this beast (Re: call for volunteers) Message-ID: <6DD7370C9452D31192A10008C75D075306E547A9@raptor.gov.yk.ca> > All very good points. Along these lines, I would like to mention > that http://sourceforge.net is totally impressive and they > seem to have solved alot of the open source development problems. SourceForge is indeed impressive and I think the service they render to the community is extremely valuable. There should be more of them - and that's my worry, there is only one. It seems like everybody and their dog is moving their project to SF. If something should happen to SF and it goes down... Maybe the benefits they bring to the table outweigh spectres of disaster. I just caution against wholesale complete adoption. -matt From bertha_bonita at yahoo.com Tue Oct 24 10:52:24 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Tue, 24 Oct 2000 10:52:24 -0700 (PDT) Subject: Mapserver Test suite: i have an error Message-ID: <20001024175224.20583.qmail@web4201.mail.yahoo.com> Hello list! i am doing the exercices at http://arachnid.dnr.state.mn.us/ms_test/itemquery/test.html the case I and case II worked correctly.. but in the Case 3: Simple ItemQuery With QueryMap didn't work it.! and send an error: msQueryUsingItem():Search returned no results. No matching record(s) found i do not was wrong!!!!!!... this my map file. #CASE III NAME casoIII SHAPEPATH "/home/httpd/html/geoejercicios/shapefiles/" SIZE 300 300 EXTENT -1480000 1036000 1576000 1068000 WEB IMAGEPATH "/home/httpd/html/geoejercicios/tmp/" IMAGEURL "http://pc-simac.cicese.mx/geoejercicios/tmp/" HEADER HeaderQueryMap.html FOOTER FooterQueryMap.html END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME statesccl DATA statesccl STATUS DEFAULT TYPE POLYGON CLASS COLOR 212 212 212 OUTLINECOLOR 0 0 0 END QUERY TEMPLATE ShowDataStates.html END END #layer END #mapfile i'm waiting for a soon answer or suggestion. thanks!. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From dennis at avenza.com Tue Oct 24 13:30:49 2000 From: dennis at avenza.com (Dennis Christopher) Date: Tue, 24 Oct 2000 16:30:49 -0400 Subject: query map object Message-ID: <39F5F174.C8AE3EB2@avenza.com> I thought an addition of a query map object to a working demo map would be straightforward, but mapserver doesn't like my .map file once I add this: # highlight selected area in red: QUERYMAP # STATUS ON COLOR 255 0 0 STYLE HILITE END The layer is as follows: LAYER NAME park DESCRIPTION "Parks" TYPE POLYGON STATUS OFF DATA park CLASS NAME "Parks" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END # For now, we use HEADER to hold the list of fields to display in query results HEADER "Name_e Year_est Area_KmSq" TOLERANCE 5 QUERYITEM "Name_e" QUERY EXPRESSION /./ TEMPLATE "ttt" END END # Layer It seems that a QUERYITEM and a QUERY are logically connected, since the QUERYITEM names the dbf attribute that the EXPRESSION field is supposed to range over. How is the QUERYMAP connected to both/ or either? What do I have to do to add this block to my layer? Dennis Christopher -- Dennis Christopher (dennis at avenza.com) Product Development Manager Avenza Software, Inc. From Matt.Wilkie at gov.yk.ca Tue Oct 24 13:55:30 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 24 Oct 2000 13:55:30 -0700 Subject: syntax highlight .map files Message-ID: <6DD7370C9452D31192A10008C75D075306E54A5F@raptor.gov.yk.ca> For anybody who uses the TextPad text editor, attached is a simple syntax definition file for .MAP files. If anybody has bothered to do the same for Vim please forward to me. txs. enjoy, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_syn.zip Type: application/octet-stream Size: 2841 bytes Desc: not available URL: From cnielsen at co.tillamook.or.us Tue Oct 24 16:03:06 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Tue, 24 Oct 2000 16:03:06 -0700 Subject: DATA path problems Message-ID: <000401c03e0e$92311b90$a14368aa@co.tillamook.or.us> I'm trying to put our shape files into theme category folders, i.e. /library/hydro/shapes/hydro /library/transportation/shapes/roads etc. Trying to keep things organized on the webserver. The problem is I can only declare one shapepath. I tried setting the full path name at each DATA control, i.e. DATA 'e:\gisweb/library/hydro/shapes/hydro' - Doesn't like the colon. if I go DATA /library/hydro/shapes/hydro it can't find the data. only works if I put all the shapes in one directory and declare it with SHAPEPATH and only use the data file name, i.e. DATA hydro Is this the only way to do it? Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ From marin at here.is Tue Oct 24 17:41:04 2000 From: marin at here.is (Ma) Date: Wed, 25 Oct 2000 00:41:04 +0000 Subject: DATA path problems References: <000401c03e0e$92311b90$a14368aa@co.tillamook.or.us> Message-ID: <39F62C1E.FA949196@here.is> No. If you have: SHAPEPATH "c:\mygis\data\" #but your data is c:\mygis\data\blah\myshape DATA "c:\mygis/data\blah\myshape" or DATA "c:\mygis\data\blah\myshape" or DATA "blah\myshape" work perfect for MS Windows version of MapServer. --- Ma Chad Nielsen wrote: > I'm trying to put our shape files into theme category folders, i.e. > > /library/hydro/shapes/hydro > /library/transportation/shapes/roads > etc. > > Trying to keep things organized on the webserver. The problem is I can only > declare one shapepath. > I tried setting the full path name at each DATA control, i.e. > DATA 'e:\gisweb/library/hydro/shapes/hydro' - Doesn't like the colon. > if I go > DATA /library/hydro/shapes/hydro it can't find the data. > > only works if I put all the shapes in one directory and declare it with > SHAPEPATH > and only use the data file name, i.e. DATA hydro > > Is this the only way to do it? > > Chad M. Nielsen, GIS Programmer/Analyst > Tillamook County Performance Partnership (TCPP) > Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm > TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ From Robin.Ellis at dnr.qld.gov.au Tue Oct 24 17:20:47 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Wed, 25 Oct 2000 10:20:47 +1000 Subject: scale, class & itemquery Message-ID: Has anybody experienced difficulties with zooming into an area based on an ITEMQUERY with mapext=shapes when one of the layers that will form the returned image has a MAXSCALE set and there are numerous CLASSES defined for this layer? I realise this sounds absurd, but my situation is this: I am able to zoom to a shire based on a shire name selected from a menu. Along with the queried Shire layer, I can also return a number of other layers like property boundaries etc. These extra layers are exhibited normally depending on wehther or not the MAXSCALE poroperty is set. However I have one layer (showing ecosystem areas) that normally has about 10 classes set for shading purposes and a MAXSCALE set. This layer operates normally when using the standard zoom and pan functions, however when I try to zoom to a shire area using ITEMQUERY, this layer causes the operation to fail. I can get around this in 2 ways, niether of which is desireable. Firstyly, I can remove my MAXSCALE propetry. That's ok, but this is a large data set and I don't want it exhibited when viewed from 'too far out'. Secondly, I can remove the NAME property from all of my CLASSes. This, of course, leaves with no Legend produced for the classes of this layer!! (I can actually leave up to 2 NAMEs in my classes, any more and I get trouble). I'd be keen to hear if anybody else has experience this type of problem, and even keener to hear about a possible solution. We're using version 3.3.011 on a UNIX server. Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From pnaciona at gis.umn.edu Tue Oct 24 22:42:04 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 25 Oct 2000 00:42:04 -0500 Subject: MapServer installation In-Reply-To: Message-ID: Folks, The error message "loadSymbol(): GD library error" refers to a symbolset error. If you look at the marker.sym file, you'll notice it calls for GIF images. This needs to be replaced with PNG images when using GD 1.8.3 or some other version besides 1.2. This is precisely what Steve Lime was talking about in the previous post. I'll share a new GD_1.8.3-enabled demo after I get off my plant taxonomy lab later this afternoon. Looks like it's time to update the demo guide again... damn! -Perry -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Stephen Lime Sent: Tuesday, 24 October, 2000 12:54 AM To: lyndon.zimmermann at adelaide.edu.au; mapserver-users at lists Subject: Re: MapServer installation Yup. GD 1.8.3 is not fully supported in 3.3.011 but is in 3.3.012. That's not really causing the error just more of a heads up. To fix the error change any references to GIF images (i.e. the reference image) to point to a PNG equivalent. BTW For just getting started I'd recommend just using GD 1.2 and GIFs. No demo mods needed then. Steve >>> Lyndon Zimmermann 10/23/00 23:48 PM >>> Greetings all, I've downloaded the MapServer, PROJ-4, gd1.8.3 and freetype Source, run ./configure and make on the latter three then MapServer and copied the mapserv binary to my web root, /var/www/cgi-bin. I now get "loadSymbol(): GD library error" when I try to run Initialise in the MapServer demo. Does this ring a bell with anyone? Lyndon Zimmermann From marin at here.is Wed Oct 25 01:58:01 2000 From: marin at here.is (Ma) Date: Wed, 25 Oct 2000 08:58:01 +0000 Subject: MapServer installation References: Message-ID: <39F6A098.A807F3EB@here.is> "Pericles S. Nacionales" wrote: > > Looks like it's time to update the demo guide again... damn! "In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away." - from RFC1925 (ftp://ftp.ripe.net/rfc/rfc1925.txt) --- Ma From RAldridge at linuxstart.com Wed Oct 25 06:43:08 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 25 Oct 2000 09:43:08 -0400 Subject: Strange lines when zoomed in Message-ID: <200010251343.e9PDh8910774@tbird.iworld.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From david.fawcett at moea.state.mn.us Wed Oct 25 07:06:48 2000 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Wed, 25 Oct 2000 09:06:48 -0500 Subject: Mapserver on Win32 - CGI Error Message-ID: I am in the process of installing the Win32 port of Mapserver on my home machine so I can work on some of my existing apps there. I installed the 3.011 .exe from DM Solutions, changed all of the paths and URLs in my app, and fired it up. The result that I get is a CGI error. It tells me something to the effect that Mapserv has "misbehaved" and not returned a full set of http headers. I can get a direct quote if it would help, but I am now at work. It also gives me a pop-up window with error code text, "stack dump......". Any of you with Mapserver Win32 experience have any ideas what could be causing this? It is running on Win98, on MS Personal Web Server. Not a particularly robust platform, I know, but I thought that I had seen a post from someone who had successfully run Mapserver on a similar platform. Thanks, David David Fawcett MN Office of Environmental Assistance From steve.lime at dnr.state.mn.us Wed Oct 25 07:21:28 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Oct 2000 09:21:28 -0500 Subject: Strange lines when zoomed in Message-ID: Sounds like your drawing line data as polyline data. Polygons and polylines have the same starting and ending point according to the shapefile spec. MapServer expects that as well. The CVS version contains an error trap for this but for now you just have to switch TYPE POLYLINE to TYPE LINE. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 10/25/00 08:43AM >>> I was wondering if anyone else had this problem, or, better yet, had solved this problem. I have a couple of small shapefiles (roads.shp & contours.shp) that aren't drawing properly when zoomed in tight. The contours.shp contains ~1500 polylines and the roads.shp contains 8 polylines (coverage area is a single section). Both shapefiles look good when zoomed out (e.g. 1:24000), but when I zoom in (to e.g. 1:5000), I get stray, straight lines shooting off of endpoints. The stray lines appear to be random in their direction, but always seem to be beginning at existing endpoints. Any ideas? Thanks, Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From spclark at nbnet.nb.ca Wed Oct 25 07:38:11 2000 From: spclark at nbnet.nb.ca (Stephen Clark) Date: Wed, 25 Oct 2000 11:38:11 -0300 Subject: mapscript + perl how to Message-ID: <019301c03e91$4282eaf0$1300a8c0@giszero> Hi all, Does anyone have a perl / mapscript how to for a novice user. I ran the demo map and am now prepared to jump into mapscript. Stephen Clark Geomatics Specialist Tantramar Planning From steve.lime at dnr.state.mn.us Wed Oct 25 08:28:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Oct 2000 10:28:50 -0500 Subject: State of MapServer... Message-ID: Man, lots of traffic on the list these days and all good conversation. I'm all in favor of getting more people involved in actual code development, but now is not the right time. Perhaps with MapServer 4- which is on the horizon. As always I/we or whatever will solicit input from the user community. The mailing list numbers 230+ so clearly something is being done right. SourceForge - Unless the University can't or won't house the project I see no reason to move. Being one of 10,000 projects doesn't sound appealing. A fast, robust CVS server is key and the UMN can provide that. Certainly other tools could/should be employed for bug tracking and I'll encourage the UMN to get one running. Bugzilla seems to be pretty good. Other suggestions are of course welcome. A running change log is part of CVS. The biggest need I see is more detailed examples and documentation. Functionality is such that most users aren't pushing the software. I think the primary reason is that most just aren't aware of possiblities (or my current docs suck). That was the reason for the original call for volunteers. What I propose is to move the documentation and demo portions of the main mapserver site into CVS with sub-groups of MapServer users responsible for updates and additions. With the main demo and the test suite there is enough to start from, same goes for the docs. It's important to not have only those doing coding involved. Often I'm so tied to the code I can't anticipate issues that those using it can. That's why Perry's demo instructions are far better than I could write. The University is setting up 2 new mailing lists to direct documentation and demo development: mapserver-demo and mapserver-docs. When those are ready I'll make another call for participation. I really like Perry's demo "howto" and would like to see a bunch of these written (i.e. howto add the mapplet applet, howto use projections and so on). Works for RedHad anyway. What do folks think? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Oct 25 08:38:11 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 25 Oct 2000 11:38:11 -0400 Subject: Strange lines when zoomed in Message-ID: <2951561DB3DDD0118FEC00805FFE98050494205A@s5-ccr-r1> Yup, I've seen that just change the type from POLYLINE to LINE and that problem will go away. I'm not sure the logic behind that though, since I had the same problem with rivers doing that, even though they ARE polylines, I have to set them as LINES to avoid it. J.F. > ---------- > From: RAldridge[SMTP:RAldridge at linuxstart.com] > Sent: Wednesday, October 25, 2000 9:43 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Strange lines when zoomed in > > I was wondering if anyone else had this problem, or, better yet, had > solved this problem. I have a couple of small shapefiles (roads.shp & > contours.shp) that aren't drawing properly when zoomed in tight. The > contours.shp contains ~1500 polylines and the roads.shp contains 8 > polylines (coverage area is a single section). Both shapefiles look good > when zoomed out (e.g. 1:24000), but when I zoom in (to e.g. 1:5000), I get > stray, straight lines shooting off of endpoints. The stray lines appear > to be random in their direction, but always seem to be beginning at > existing endpoints. > > Any ideas? > > Thanks, > > Robert Aldridge > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > From spclark at nbnet.nb.ca Wed Oct 25 09:11:22 2000 From: spclark at nbnet.nb.ca (Stephen Clark) Date: Wed, 25 Oct 2000 13:11:22 -0300 Subject: Mapserver on Win32 - CGI Error References: Message-ID: <001f01c03e9e$38b62570$1300a8c0@giszero> It might be helpful if you tried apache instread of the microsoft server. If you're interested I could send you my setup using Apache ... Stephen Clark Geomatics Specialist Tantramar Planning ----- Original Message ----- From: "Fawcett, David" To: Sent: Wednesday, October 25, 2000 11:06 AM Subject: Mapserver on Win32 - CGI Error > I am in the process of installing the Win32 port of Mapserver on my home machine so I can work on some of my existing apps there. I installed the 3.011 .exe from DM Solutions, changed all of the paths and URLs in my app, and fired it up. > > The result that I get is a CGI error. It tells me something to the effect that Mapserv has "misbehaved" and not returned a full set of http headers. I can get a direct quote if it would help, but I am now at work. It also gives me a pop-up window with error code text, "stack dump......". > > Any of you with Mapserver Win32 experience have any ideas what could be causing this? > > It is running on Win98, on MS Personal Web Server. Not a particularly robust platform, I know, but I thought that I had seen a post from someone who had successfully run Mapserver on a similar platform. > > Thanks, > > David > > David Fawcett > MN Office of Environmental Assistance > > From steve.lime at dnr.state.mn.us Wed Oct 25 09:20:01 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Oct 2000 11:20:01 -0500 Subject: Strange lines when zoomed in Message-ID: The *only* way to get that artifact is by drawing line shapefiles as polygon/polyline layers. There are no polyline shapefiles. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 10/25/00 10:38AM >>> Yup, I've seen that just change the type from POLYLINE to LINE and that problem will go away. I'm not sure the logic behind that though, since I had the same problem with rivers doing that, even though they ARE polylines, I have to set them as LINES to avoid it. J.F. > ---------- > From: RAldridge[SMTP:RAldridge at linuxstart.com] > Sent: Wednesday, October 25, 2000 9:43 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Strange lines when zoomed in > > I was wondering if anyone else had this problem, or, better yet, had > solved this problem. I have a couple of small shapefiles (roads.shp & > contours.shp) that aren't drawing properly when zoomed in tight. The > contours.shp contains ~1500 polylines and the roads.shp contains 8 > polylines (coverage area is a single section). Both shapefiles look good > when zoomed out (e.g. 1:24000), but when I zoom in (to e.g. 1:5000), I get > stray, straight lines shooting off of endpoints. The stray lines appear > to be random in their direction, but always seem to be beginning at > existing endpoints. > > Any ideas? > > Thanks, > > Robert Aldridge > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Oct 25 09:50:13 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 25 Oct 2000 12:50:13 -0400 Subject: mapscript + perl how to Message-ID: <2951561DB3DDD0118FEC00805FFE98050494205C@s5-ccr-r1> The Mapserver site has a perl mapscript reference, it is mostly complete :) Check it out ! J.F. > ---------- > From: Stephen Clark[SMTP:spclark at nbnet.nb.ca] > Sent: Wednesday, October 25, 2000 10:38 AM > To: mapserver-users at lists.gis.umn.edu > Subject: mapscript + perl how to > > Hi all, > > Does anyone have a perl / mapscript how to for a novice user. > I ran the demo map and am now prepared to jump into mapscript. > > > Stephen Clark > Geomatics Specialist > Tantramar Planning > > From mochaexpress at yahoo.com Wed Oct 25 09:52:56 2000 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Wed, 25 Oct 2000 09:52:56 -0700 (PDT) Subject: State of MapServer... Message-ID: <20001025165256.12670.qmail@web2304.mail.yahoo.com> may i suggest DocBook for the manual. Then you can dump it out in different formats: html, ps, text, what ever. More information regarding how to work with shape files and conversion utilities. Atleast have references to where you can find them. Port Mapscript/PHP module to work with PHP4. Definitely have a better demo site to show off all the great features. SourceForge is very SLOW at times. If they UoMN can and is willing to donate some server space, all the better. Ever try dl-ing from SourceForge? I usually go for coffee breaks when DL from SourceForge. --- Stephen Lime wrote: > Man, lots of traffic on the list these days and all > good conversation. I'm all in favor of > getting more people involved in actual code > development, but now is not the right time. > Perhaps with MapServer 4- which is on the horizon. > As always I/we or whatever will > solicit input from the user community. The mailing > list numbers 230+ so clearly something > is being done right. > > SourceForge - Unless the University can't or won't > house the project I see no reason > to move. Being one of 10,000 projects doesn't sound > appealing. A fast, robust CVS > server is key and the UMN can provide that. > Certainly other tools could/should be > employed for bug tracking and I'll encourage the UMN > to get one running. Bugzilla seems > to be pretty good. Other suggestions are of course > welcome. A running change log is part > of CVS. > > The biggest need I see is more detailed examples and > documentation. Functionality is such > that most users aren't pushing the software. I think > the primary reason is that most just aren't > aware of possiblities (or my current docs suck). > That was the reason for the original call for > volunteers. What I propose is to move the > documentation and demo portions of the main > mapserver site into CVS with sub-groups of MapServer > users responsible for updates and > additions. With the main demo and the test suite > there is enough to start from, same goes > for the docs. It's important to not have only those > doing coding involved. Often I'm so tied > to the code I can't anticipate issues that those > using it can. That's why Perry's demo instructions > are far better than I could write. The University is > setting up 2 new mailing lists to direct > documentation > and demo development: mapserver-demo and > mapserver-docs. When those are ready I'll make > another call for participation. > > I really like Perry's demo "howto" and would like to > see a bunch of these written (i.e. howto add > the mapplet applet, howto use projections and so > on). Works for RedHad anyway. > > What do folks think? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Oct 25 09:54:29 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 25 Oct 2000 12:54:29 -0400 Subject: Strange lines when zoomed in Message-ID: <2951561DB3DDD0118FEC00805FFE98050494205D@s5-ccr-r1> Hummm, well when I read the Shapefile Technical Description, it is clearly stated that one shapefile holds ONE type of shape, and Shape number 3 is "PolyLine", and I have shapefiles that are made up of such shapes. This is how I came about the problem, since my shapefile was holding shapes of type 3, I set the TYPE to POLYLINE, but had problems until I set it back to LINE. Works either way, but it just seems somewhat ... wrong ? :) J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, October 25, 2000 12:20 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; 'RAldridge'; > mapserver-users at lists.gis.umn.edu > Subject: RE: Strange lines when zoomed in > > The *only* way to get that artifact is by drawing line shapefiles as > polygon/polyline layers. > There are no polyline shapefiles. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 10/25/00 > 10:38AM >>> > Yup, I've seen that just change the type from POLYLINE to LINE and that > problem will go away. > > I'm not sure the logic behind that though, since I had the same problem > with > rivers doing that, even though > they ARE polylines, I have to set them as LINES to avoid it. > > J.F. > > > ---------- > > From: RAldridge[SMTP:RAldridge at linuxstart.com] > > Sent: Wednesday, October 25, 2000 9:43 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Strange lines when zoomed in > > > > I was wondering if anyone else had this problem, or, better yet, had > > solved this problem. I have a couple of small shapefiles (roads.shp & > > contours.shp) that aren't drawing properly when zoomed in tight. The > > contours.shp contains ~1500 polylines and the roads.shp contains 8 > > polylines (coverage area is a single section). Both shapefiles look > good > > when zoomed out (e.g. 1:24000), but when I zoom in (to e.g. 1:5000), I > get > > stray, straight lines shooting off of endpoints. The stray lines appear > > to be random in their direction, but always seem to be beginning at > > existing endpoints. > > > > Any ideas? > > > > Thanks, > > > > Robert Aldridge > > ---------------------- > > Do you do Linux? :) > > Get your FREE @linuxstart.com email address at: > http://www.linuxstart.com > > > From morissette at dmsolutions.on.ca Wed Oct 25 10:49:29 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 25 Oct 2000 13:49:29 -0400 Subject: State of MapServer... References: Message-ID: <39F71D29.82AB00DE@dmsolutions.on.ca> Stephen Lime wrote: > > SourceForge - Unless the University can't or won't house the project I see no reason > to move. Being one of 10,000 projects doesn't sound appealing. A fast, robust CVS > server is key and the UMN can provide that. Certainly other tools could/should be > employed for bug tracking and I'll encourage the UMN to get one running. Bugzilla seems > to be pretty good. Other suggestions are of course welcome. A running change log is part > of CVS. > Steve, By running change log, are you talking about the CVS log messages on each file? While this is useful for developers to figure what changes have been done to specific source files to help in figuring some new bug, or whatever, I don't think it is of much help to users. I think what users really need is a "CHANGELOG.TXT" file in which the changes and bug fixes for each release are listed with a brief description of their impact on existing applications. This way, someone that was running 3.3.009 and upgrades to 3.3.012 can find in there the complete list of changes that have happened between the 2 versions and can more easily upgrade their existing 3.3.009 applications to work with 3.3.012. You find such a file in lots of software packages (Open Source or not) and I find them very useful when it's time to decide if I should upgrade or not. If you want I can create a CHANGELOG.TXT with the changes I know about since the last version and check it in... you could then review it and add whatever I may have forgotten. And then it will just be a matter of keeping it up to date. Later, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.on.ca Wed Oct 25 10:53:49 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 25 Oct 2000 13:53:49 -0400 Subject: State of MapServer... References: <20001025165256.12670.qmail@web2304.mail.yahoo.com> Message-ID: <39F71E2D.E62D337F@dmsolutions.on.ca> Caffeinate The World wrote: > > Port Mapscript/PHP module to work with PHP4. PHP4 is now supported. It's part of the CVS or nightly builds. I know a couple of users have used it succesfully. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Matt.Wilkie at gov.yk.ca Wed Oct 25 11:45:48 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 25 Oct 2000 11:45:48 -0700 Subject: mapscript + perl how to Message-ID: <6DD7370C9452D31192A10008C75D075306F4D9AE@raptor.gov.yk.ca> > > Does anyone have a perl / mapscript how to for a novice user. > > I ran the demo map and am now prepared to jump into mapscript. ... > The Mapserver site has a perl mapscript reference, it is > mostly complete :) the link is http://mapserver.gis.umn.edu/mapscript.html From mochaexpress at yahoo.com Wed Oct 25 12:16:36 2000 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Wed, 25 Oct 2000 12:16:36 -0700 (PDT) Subject: State of MapServer... Message-ID: <20001025191636.26505.qmail@web2305.mail.yahoo.com> --- Daniel Morissette wrote: > Caffeinate The World wrote: > > > > Port Mapscript/PHP module to work with PHP4. > > PHP4 is now supported. It's part of the CVS or > nightly builds. I know > a couple of users have used it succesfully. thanks i just saw that on your web site as well. i've been away for sometime. glad to see the progress. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From nhv at cape.com Wed Oct 25 12:35:29 2000 From: nhv at cape.com (Norman Vine) Date: Wed, 25 Oct 2000 15:35:29 -0400 Subject: State of MapServer... In-Reply-To: Message-ID: <000701c03eba$c19cece0$d136ba8c@nhv> Stephen Lime writes: >The mailing list numbers 230+ so clearly something >is being done right. :-)) >A fast, robust CVS server is key and the UMN can provide that. >Certainly other tools could/should be employed for bug tracking >and I'll encourage the UMN to get one running. Bugzilla seems >to be pretty good. Other suggestions are of course welcome. A >running change log is part of CVS. I find this an invaluable addition for keeping track of what is going on inside of a CVS managed project http://www.sslug.dk/cvs2html/ Cheers Norman From teb at mallit.fr.umn.edu Wed Oct 25 12:41:32 2000 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 25 Oct 2000 14:41:32 -0500 (CDT) Subject: FWD: newbie question Message-ID: <200010251941.OAA27151@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Sebastiaan Raaphorst" To: Subject: newbie question Date: Wed, 25 Oct 2000 12:39:18 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Hi, I got the mapserver running on NT, see http://routenet.info.nl/nederland/ which shows the major road network of the Netherlands. In a MS SQL server i have vehicle positions which are updated every minute, i would like to put them on the map. The vehicle positions are stored in a simple table containing vehicle_id, lat, lon, speed, status and timestmap. Any suggestions on how to ad this 'layer' to the map ? Thanks Sebastiaan ____________________________________________ Sebastiaan Raaphorst Info Nederland Sint Antoniesbreestraat 16 1011HB Amsterdam http://www.info.nl T +31 20 5309100 F +31 20 5309101 M +31 6 51312562 ------------- End Forwarded Message ------------- From bjohnson at jecinc.on.ca Wed Oct 25 14:06:04 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Wed, 25 Oct 2000 17:06:04 -0400 Subject: Cached query image on demo query page In-Reply-To: <20001025165256.12670.qmail@web2304.mail.yahoo.com> Message-ID: <000501c03ec7$673f7580$1200a8c0@Pentium166> My version of ms_demo doesn't show the cached query properly when you query an object. I went into demo_footer.html and corrected the path to the tmp directory but it still didn't work. The CGI refernece doesn't list the size variable so I took that out too, but that didn't work either. From morissette at dmsolutions.on.ca Wed Oct 25 14:50:53 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 25 Oct 2000 17:50:53 -0400 Subject: FWD: newbie question References: <200010251941.OAA27151@mallit.fr.umn.edu> Message-ID: <39F755BD.1C3E4D8@dmsolutions.on.ca> > ------------- Begin Forwarded Message ------------- > > From: "Sebastiaan Raaphorst" > > I got the mapserver running on NT, see http://routenet.info.nl/nederland/ > which shows the major road network of the Netherlands. In a MS SQL server i > have vehicle positions which are updated every minute, i would like to put > them on the map. The vehicle positions are stored in a simple table > containing vehicle_id, lat, lon, speed, status and timestmap. Any > suggestions on how to ad this 'layer' to the map ? > I don't think you can do that directly with the mapserv CGI without some kind of scripting on the server. So one way could be to use MapScript in a PHP environment (or maybe Perl???, not sure since you're on Windows???) to access your table through ODBC and create a temporary shapefile with your locations. Then you add the temporary shapefile to your .map file and draw the map. If you have only a few locations to map then you may not even need to create a temporary shapefile... just creating pointObj features in MapScript and drawing them should be good enough. Unfortunately there is no sample application showing how to do that, but that would be a good candidate for a new MapScript demo since this kind of question comes back often. Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From johnh at erin.gov.au Wed Oct 25 15:41:26 2000 From: johnh at erin.gov.au (John Hockaday) Date: Thu, 26 Oct 2000 09:41:26 +1100 (EST) Subject: State of MapServer... Message-ID: <200010252241.JAA04643@eos.erin.gov.au> Hi, I am very pleased with this list. I have noticed that there are many people who seem to understand how the system works and respond to the questions. I, on the other hand, am one who usually asks the questions, or if I know the answer someone else has beaten me to send the answer to the list. When I was setting up my mapserv I found the mapserv test suite ( http://arachnid.dnr.state.mn.us/ms_test/index.html ) to be very useful. I used the simple example templates, map files and query template files to work out more complicated files of my own. I was so impressed with this method I am going to adopt it for my own application/maintenance online documentation and link to the relevant parts of the mapserv documentation. May I suggest that other sites do this and the mapserv documentation link to these sites? For example, It would be great if there was a link to an applet example, mapscript example Java servlet example (if there is one) etc. Someone must have tested these parts of the system as indicated by those knowledgeable people on the list and maybe these test sites could be used as examples. Although documentation is essential I personally find examples a must to help me through development. It also seems that there are questions that are very similar and it would appear that the documentation may be lacking in this area. If the talented people, whom I presume will volunteer for the documentation task as they know what it all means, could note this and update the relevant areas as it happens on the list. I know that documentation is hard to keep up with and I just thought that this might be a good start. Other areas of improvement would be in the details. Each item seems to be covered in the documentation but a little more explanation would be nice. For instance, "MAXSCALE", "MINSCALE" etc. mention the maximum and minimum scale at which the layers are switched off and on, but how is the scale calculated? I thought it would be pixels/mapunits or visa versa but this didn't seem to compute. I did work around the problem by fiddling with numbers until the layers switched on and off at what seemed appropriate to me. I know this doesn't answer Steve's question, but I thought that I would just send in my "two bobs" worth. (I think that that is "two quarters" or "two cents" worth in the USA.) ;-) Johnh From rchavez at perseus.tufts.edu Wed Oct 25 16:36:32 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 25 Oct 2000 19:36:32 -0400 (EDT) Subject: State of MapServer... In-Reply-To: Message-ID: Steve et al. I'd be happy to help out with detailed examples and documentation for Perl mapscripting. I've put mapscript through it's paces and have picked some useful scripting pointers along the way (with lot's of help from people on this list!). In addition to better examples and doc, maybe a mapscript Perl/PHP FAQ would be a good idea, especially for the most common new user questions. I have to agree with Steve on the CVS issue. SourceForge is a great idea, but since Mapserver is in such a dynamic state right now I think the speed of the UMN connection is a great boon for those of you on the bleeding edge. Especially since UMN has a good history of supporting Steve's work. I think Daniel suggested writing a revision history text file and keeping that under CVS as well -- this would be a valuable addition to the doc. Best Wishes, Robert Chavez Perseus Project http://www.perseus.tufts.edu On Wed, 25 Oct 2000, Stephen Lime wrote: > Man, lots of traffic on the list these days and all good conversation. I'm all in favor of > getting more people involved in actual code development, but now is not the right time. > Perhaps with MapServer 4- which is on the horizon. As always I/we or whatever will > solicit input from the user community. The mailing list numbers 230+ so clearly something > is being done right. > > SourceForge - Unless the University can't or won't house the project I see no reason > to move. Being one of 10,000 projects doesn't sound appealing. A fast, robust CVS > server is key and the UMN can provide that. Certainly other tools could/should be > employed for bug tracking and I'll encourage the UMN to get one running. Bugzilla seems > to be pretty good. Other suggestions are of course welcome. A running change log is part > of CVS. > > The biggest need I see is more detailed examples and documentation. Functionality is such > that most users aren't pushing the software. I think the primary reason is that most just aren't > aware of possiblities (or my current docs suck). That was the reason for the original call for > volunteers. What I propose is to move the documentation and demo portions of the main > mapserver site into CVS with sub-groups of MapServer users responsible for updates and > additions. With the main demo and the test suite there is enough to start from, same goes > for the docs. It's important to not have only those doing coding involved. Often I'm so tied > to the code I can't anticipate issues that those using it can. That's why Perry's demo instructions > are far better than I could write. The University is setting up 2 new mailing lists to direct documentation > and demo development: mapserver-demo and mapserver-docs. When those are ready I'll make > another call for participation. > > I really like Perry's demo "howto" and would like to see a bunch of these written (i.e. howto add > the mapplet applet, howto use projections and so on). Works for RedHad anyway. > > What do folks think? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > From rob at socialchange.net.au Wed Oct 25 16:46:18 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 26 Oct 2000 09:46:18 +1000 Subject: State of MapServer... References: <200010252241.JAA04643@eos.erin.gov.au> Message-ID: <39F770C9.222AFD3D@socialchange.net.au> Social Change Online will shortly be providing online resources and examples for using MapServer within the context of a distributed (OpenGIS) standards based approach - as per the "Spatial Data Infrastructure" architecture. Thanks to all the people who have put in their time to make this a possibility! Rob Atkinson John Hockaday wrote: > Hi, > > I am very pleased with this list. I have noticed that there are many > people who seem to understand how the system works and respond to the > questions. I, on the other hand, am one who usually asks the > questions, or if I know the answer someone else has beaten me to send > the answer to the list. > > When I was setting up my mapserv I found the mapserv test suite ( > http://arachnid.dnr.state.mn.us/ms_test/index.html ) to be very > useful. I used the simple example templates, map files and query > template files to work out more complicated files of my own. I was so > impressed with this method I am going to adopt it for my own > application/maintenance online documentation and link to the relevant > parts of the mapserv documentation. May I suggest that other sites do > this and the mapserv documentation link to these sites? For example, > It would be great if there was a link to an applet example, mapscript > example Java servlet example (if there is one) etc. Someone must have > tested these parts of the system as indicated by those knowledgeable > people on the list and maybe these test sites could be used as > examples. Although documentation is essential I personally find > examples a must to help me through development. > > It also seems that there are questions that are very similar and it > would appear that the documentation may be lacking in this area. If > the talented people, whom I presume will volunteer for the > documentation task as they know what it all means, could note this and > update the relevant areas as it happens on the list. I know that > documentation is hard to keep up with and I just thought that this > might be a good start. > > Other areas of improvement would be in the details. Each item seems to > be covered in the documentation but a little more explanation would be > nice. For instance, "MAXSCALE", "MINSCALE" etc. mention the maximum > and minimum scale at which the layers are switched off and on, but how > is the scale calculated? I thought it would be pixels/mapunits or visa > versa but this didn't seem to compute. I did work around the problem > by fiddling with numbers until the layers switched on and off at what > seemed appropriate to me. > > I know this doesn't answer Steve's question, but I thought that I would > just send in my "two bobs" worth. (I think that that is "two quarters" > or "two cents" worth in the USA.) ;-) > > Johnh > -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 336 bytes Desc: Card for Rob Atkinson URL: From bertha_bonita at yahoo.com Wed Oct 25 17:31:18 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 25 Oct 2000 17:31:18 -0700 (PDT) Subject: Mapserver Test suite: One Question.. Message-ID: <20001026003118.5381.qmail@web4205.mail.yahoo.com> Hello list.! i'm doing the test in: http://arachnid.dnr.state.mn.us/ms_test/itemquery/test.html and i resolved my problem with the images.. but i have a dude.. in the Case 3: Simple ItemQuery With QueryMap specifically in which part of the files are created the two images?.. where can i found others tests for learn more about mapserver..?? thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From bjohnson at jecinc.on.ca Wed Oct 25 08:36:00 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Wed, 25 Oct 2000 11:36:00 -0400 Subject: GIF Help In-Reply-To: <20001025111035.A19785@godel.yi.org> Message-ID: <000501c03e99$6bd34460$1200a8c0@Pentium166> And now for another topic ... I'm trying to customize demo.html to display some plain old .gif files, but I can't get it to work - it displays the picture placeholder and the alternate text. I've copied the .gif files into a bunch of diffent directories to see if that made a difference - but no luck. My demo_init.html is in /var/lib/apache/htdocs which refers to /ms_demo/demo.html The mapserver part works fine, I just can't get it to display the .gif files I've also tried changing the .gif file properties and adding an absolute path in the demo.html - no luck Anyone have any luck with this? From spclark at nbnet.nb.ca Thu Oct 26 06:23:01 2000 From: spclark at nbnet.nb.ca (Stephen Clark) Date: Thu, 26 Oct 2000 10:23:01 -0300 Subject: dxf, shp file support ... Message-ID: <001801c03f4f$ded04010$1300a8c0@giszero> I have an interesting question. Is anyone using the DXF file format with mapserver to import/ export files to shp format. I have some data in a proprietary GIS format and would like to use it with mapserver. I can export it to DXF but not SHP. Is there a utility that someone has written that will convert DXF files to SHP line files? The other option would be to write a direct hack from my GIS file format to SHP. Any thoughts on this will be appreciated. Stephen Clark Geomatics Specialist Tantramar Planning From bfraser at geoanalytic.com Thu Oct 26 07:43:43 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 26 Oct 2000 08:43:43 -0600 Subject: dxf, shp file support ... References: <001801c03f4f$ded04010$1300a8c0@giszero> Message-ID: <008101c03f5b$23c4fca0$390002c0@servo> If you have ArcView you can use it's CAD extension to load the DXF files and then save them as shapefiles. Depending on the content and complexity of the DXF files, this may be sufficient. If you've got a lot of text annotation in the DXF file you would like to preserve, you may want to want to use some of the Avenue code available on the ESRI site to create a shapefile of annotation. If you don't have ArcView, you may need to purchase a translator (although I've heard that BlueMarble's free Geographic Explorer does translations), or write some software. Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Stephen Clark" To: Sent: Thursday, October 26, 2000 7:23 AM Subject: dxf, shp file support ... > I have an interesting question. > > Is anyone using the DXF file format with mapserver to import/ export files to shp format. I have some data in a proprietary GIS format and would like to use it with mapserver. I can export it to DXF but not SHP. Is there a utility that someone has written that will convert DXF files to SHP line files? > > The other option would be to write a direct hack from my GIS file format to SHP. > > Any thoughts on this will be appreciated. > > > > Stephen Clark > Geomatics Specialist > Tantramar Planning > > > From bjohnson at jecinc.on.ca Thu Oct 26 08:16:05 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Thu, 26 Oct 2000 11:16:05 -0400 Subject: GIF Help In-Reply-To: Message-ID: <001d01c03f5f$d3b6f600$1200a8c0@Pentium166> The strange thing is that if I load demo.html directly, it finds my .gif files - but if I get at demo.html through demo_init.html it can't find my .gif files. I've tried both absolute and relative paths but still no luck -----Original Message----- From: Brian Fischer [mailto:Brian.Fischer at co.sherburne.mn.us] Sent: Thursday, October 26, 2000 9:22 AM To: bjohnson at jecinc.on.ca Subject: Re: GIF Help Brian, Take a look at the source for the images. Mapserver looks for the images relative to where the map file is. I usually have to have my img src="../images/.gif or something like that. Just make sure the actual location the web page is looking for the image is the same place you have it on the hard drive. Just a thought at what might be wrong. Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 >>> "Brian Johnson" 10/25/00 10:36AM >>> And now for another topic ... I'm trying to customize demo.html to display some plain old .gif files, but I can't get it to work - it displays the picture placeholder and the alternate text. I've copied the .gif files into a bunch of diffent directories to see if that made a difference - but no luck. My demo_init.html is in /var/lib/apache/htdocs which refers to /ms_demo/demo.html The mapserver part works fine, I just can't get it to display the .gif files I've also tried changing the .gif file properties and adding an absolute path in the demo.html - no luck Anyone have any luck with this? From steve.lime at dnr.state.mn.us Thu Oct 26 15:04:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Oct 2000 17:04:46 -0500 Subject: State of MapServer... Message-ID: For more information on DocBook, checkout: http://oasis.oasis-open.org/docbook/ Looks pretty cool! Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Caffeinate The World 10/25/00 11:52AM >>> may i suggest DocBook for the manual. Then you can dump it out in different formats: html, ps, text, what ever. More information regarding how to work with shape files and conversion utilities. Atleast have references to where you can find them. Port Mapscript/PHP module to work with PHP4. Definitely have a better demo site to show off all the great features. SourceForge is very SLOW at times. If they UoMN can and is willing to donate some server space, all the better. Ever try dl-ing from SourceForge? I usually go for coffee breaks when DL from SourceForge. --- Stephen Lime wrote: > Man, lots of traffic on the list these days and all > good conversation. I'm all in favor of > getting more people involved in actual code > development, but now is not the right time. > Perhaps with MapServer 4- which is on the horizon. > As always I/we or whatever will > solicit input from the user community. The mailing > list numbers 230+ so clearly something > is being done right. > > SourceForge - Unless the University can't or won't > house the project I see no reason > to move. Being one of 10,000 projects doesn't sound > appealing. A fast, robust CVS > server is key and the UMN can provide that. > Certainly other tools could/should be > employed for bug tracking and I'll encourage the UMN > to get one running. Bugzilla seems > to be pretty good. Other suggestions are of course > welcome. A running change log is part > of CVS. > > The biggest need I see is more detailed examples and > documentation. Functionality is such > that most users aren't pushing the software. I think > the primary reason is that most just aren't > aware of possiblities (or my current docs suck). > That was the reason for the original call for > volunteers. What I propose is to move the > documentation and demo portions of the main > mapserver site into CVS with sub-groups of MapServer > users responsible for updates and > additions. With the main demo and the test suite > there is enough to start from, same goes > for the docs. It's important to not have only those > doing coding involved. Often I'm so tied > to the code I can't anticipate issues that those > using it can. That's why Perry's demo instructions > are far better than I could write. The University is > setting up 2 new mailing lists to direct > documentation > and demo development: mapserver-demo and > mapserver-docs. When those are ready I'll make > another call for participation. > > I really like Perry's demo "howto" and would like to > see a bunch of these written (i.e. howto add > the mapplet applet, howto use projections and so > on). Works for RedHad anyway. > > What do folks think? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From steve.lime at dnr.state.mn.us Thu Oct 26 15:02:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Oct 2000 17:02:44 -0500 Subject: State of MapServer... Message-ID: I'm very fond of the test suite. I actually created it with the notion of IT becoming the primary demo. Big demos are fine for ideas but often they get too complex to see what's really happening. For example, here's a nifty application: http://maps.dnr.state.mn.us:8080/landview/ Lot's of intersting stuff but not exactly where you want to start. So, I'd like to see the test_suite serve as a basis for a demo suite. Steve On the scale thing. Here's the equation: map_distance = (map_width-1)/(MS_PPI*inches_per_unit); ground_distance = extent_maxx - extent_minx; scale = ground_distance/map_distance; where MS_PPI = number of pixels per inch for a computer monitor = 72; inches_per_unit = number of inches per map unit (i.e. UNITS ...) Other values are what you'd expect. Since MapServer computes things so that cellsize is square you can use either dimension, x or y, to calculate scale. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Hockaday 10/25/00 05:41PM >>> Hi, I am very pleased with this list. I have noticed that there are many people who seem to understand how the system works and respond to the questions. I, on the other hand, am one who usually asks the questions, or if I know the answer someone else has beaten me to send the answer to the list. When I was setting up my mapserv I found the mapserv test suite ( http://arachnid.dnr.state.mn.us/ms_test/index.html ) to be very useful. I used the simple example templates, map files and query template files to work out more complicated files of my own. I was so impressed with this method I am going to adopt it for my own application/maintenance online documentation and link to the relevant parts of the mapserv documentation. May I suggest that other sites do this and the mapserv documentation link to these sites? For example, It would be great if there was a link to an applet example, mapscript example Java servlet example (if there is one) etc. Someone must have tested these parts of the system as indicated by those knowledgeable people on the list and maybe these test sites could be used as examples. Although documentation is essential I personally find examples a must to help me through development. It also seems that there are questions that are very similar and it would appear that the documentation may be lacking in this area. If the talented people, whom I presume will volunteer for the documentation task as they know what it all means, could note this and update the relevant areas as it happens on the list. I know that documentation is hard to keep up with and I just thought that this might be a good start. Other areas of improvement would be in the details. Each item seems to be covered in the documentation but a little more explanation would be nice. For instance, "MAXSCALE", "MINSCALE" etc. mention the maximum and minimum scale at which the layers are switched off and on, but how is the scale calculated? I thought it would be pixels/mapunits or visa versa but this didn't seem to compute. I did work around the problem by fiddling with numbers until the layers switched on and off at what seemed appropriate to me. I know this doesn't answer Steve's question, but I thought that I would just send in my "two bobs" worth. (I think that that is "two quarters" or "two cents" worth in the USA.) ;-) Johnh From marin at here.is Thu Oct 26 17:06:10 2000 From: marin at here.is (Ma) Date: Fri, 27 Oct 2000 00:06:10 +0000 Subject: dxf, shp file support ... References: <001801c03f4f$ded04010$1300a8c0@giszero> Message-ID: <39F8C6F0.406453A5@here.is> try Geographic Explorer from http://www.bluemarblegeo.com/products.asp?id=5 Input Map File Types - Extensions AutoCAD DXF (release 14 or earlier) - .dxf AutoCAD DWG (release 14 or earlier) - .dwg Blue Marble Layer - .bml ESRI Shape - .shp, .shx MapInfo Import - .mif, .mid MapInfo Table - .tab MicroStation DGN - .dgn Output Map File Types - Extensions AutoCAD DXF (release 14 or earlier) - .dxf AutoCAD DWG (release 14 or earlier) - .dwg Blue Marble Layer - .bml ESRI Shape - .shp, .shx MapInfo Import - .mif, .mid MapInfo Table - .tab --- Ma Stephen Clark wrote: > I have an interesting question. > > Is anyone using the DXF file format with mapserver to import/ export files to shp format. I have some data in a proprietary GIS format and would like to use it with mapserver. I can export it to DXF but not SHP. Is there a utility that someone has written that will convert DXF files to SHP line files? > > The other option would be to write a direct hack from my GIS file format to SHP. > > Any thoughts on this will be appreciated. > > Stephen Clark > Geomatics Specialist > Tantramar Planning From rchavez at perseus.tufts.edu Thu Oct 26 17:11:25 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Thu, 26 Oct 2000 20:11:25 -0400 (EDT) Subject: State of MapServer... In-Reply-To: Message-ID: I'd say, as long as the manual is SGML or XML based (and DocBook is), then go for it! Rob Chavez Perseus Project On Thu, 26 Oct 2000, Stephen Lime wrote: > For more information on DocBook, checkout: > > http://oasis.oasis-open.org/docbook/ > > Looks pretty cool! > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Caffeinate The World 10/25/00 11:52AM >>> > may i suggest DocBook for the manual. Then you can > dump it out in different formats: html, ps, text, what > ever. > > More information regarding how to work with shape > files and conversion utilities. Atleast have > references to where you can find them. > > Port Mapscript/PHP module to work with PHP4. > Definitely have a better demo site to show off all the > great features. SourceForge is very SLOW at times. If > they UoMN can and is willing to donate some server > space, all the better. Ever try dl-ing from > SourceForge? I usually go for coffee breaks when DL > from SourceForge. > > > --- Stephen Lime wrote: > > Man, lots of traffic on the list these days and all > > good conversation. I'm all in favor of > > getting more people involved in actual code > > development, but now is not the right time. > > Perhaps with MapServer 4- which is on the horizon. > > As always I/we or whatever will > > solicit input from the user community. The mailing > > list numbers 230+ so clearly something > > is being done right. > > > > SourceForge - Unless the University can't or won't > > house the project I see no reason > > to move. Being one of 10,000 projects doesn't sound > > appealing. A fast, robust CVS > > server is key and the UMN can provide that. > > Certainly other tools could/should be > > employed for bug tracking and I'll encourage the UMN > > to get one running. Bugzilla seems > > to be pretty good. Other suggestions are of course > > welcome. A running change log is part > > of CVS. > > > > The biggest need I see is more detailed examples and > > documentation. Functionality is such > > that most users aren't pushing the software. I think > > the primary reason is that most just aren't > > aware of possiblities (or my current docs suck). > > That was the reason for the original call for > > volunteers. What I propose is to move the > > documentation and demo portions of the main > > mapserver site into CVS with sub-groups of MapServer > > users responsible for updates and > > additions. With the main demo and the test suite > > there is enough to start from, same goes > > for the docs. It's important to not have only those > > doing coding involved. Often I'm so tied > > to the code I can't anticipate issues that those > > using it can. That's why Perry's demo instructions > > are far better than I could write. The University is > > setting up 2 new mailing lists to direct > > documentation > > and demo development: mapserver-demo and > > mapserver-docs. When those are ready I'll make > > another call for participation. > > > > I really like Perry's demo "howto" and would like to > > see a bunch of these written (i.e. howto add > > the mapplet applet, howto use projections and so > > on). Works for RedHad anyway. > > > > What do folks think? > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.yahoo.com/ > From lyndon.zimmermann at adelaide.edu.au Thu Oct 26 20:53:25 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Fri, 27 Oct 2000 13:23:25 +0930 Subject: Setting up References: Message-ID: <39F8FC35.F3862B27@adelaide.edu.au> Greetings all, Well I'm making progress on getting MapServer and some examples going. My UNIX skills are limited (I'm doing this under RedHat 7.0) and finally discovered the trick in running the configure and install, ie gunzip and untar, configure and make as user, then "make install" as root. None of the doco seems to mention these little tricks. I still can't get the MapServer Demo to work however. I just get "loadSymbol(): GD library error" on initialise. I'm still using gd1.2 and the reference.gif is still a gif. I'm not sure whether I'm supposed to, but I copied the examples 1 to 4 across to my server and managed to get examples 1 and 2 working (hooray!). Examples 3 and 4 are a little more troublesome. After working out how to start them, I got "loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font support" for both. I thought I'd installed Freetype-1.3.1 (though I can't find any .ttf files anywhere) When I rem'd out FONT in their respective .map files I got "getSymbol(): Incorrect symbol. (12):(19) ". I'm documenting the process and file structure and will make them available when I have an operating system (or sooner if requested). Any advice on my current difficulties would be appreciated. Lyndon Zimmermann Adelaide, Australia From imap at chesapeake.net Thu Oct 26 23:33:27 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 27 Oct 2000 02:33:27 -0400 Subject: Setting up References: <39F8FC35.F3862B27@adelaide.edu.au> Message-ID: <39F921B7.A7FBA481@chesapeake.net> Lyndon, Boy I fought with RedHat 7 for a day or 2 trying to get things working with 3 different version of GD on that machine... It is difficult to make it find the correct one. I can tell you are going thru the same malfunction with your install. On RedHat 7, you will more than likely find a GD1.8.3 shared library in /usr/local/lib and the header files in /usr/local/include, which I can tell from the error message you are getting... is being linked into your build. It would help to know which version of mapserver you are running.. In your Makefile, look for the line CFLAGS= make sure that $(GD_INC) comes *before* any other $(*_INC) and when that puppy compiles, make sure the includes and lib specification for gd-1.2 come before anything that resembles /usr/local/ The same is true for custom version of freetype. I think the latest version in the CVS addresses this problem. Someone on the list sent me a great big clue.... and that was to use -v when compiling to see what the compiler is doing. I personally dont leave *anything* to default while configuring mapserver... other folks may have luck doing that, but I will assure you that is purely by accident. Furthermore, I dont allow my builds to link to shared libs. I dont like to type so typically, I will edit a little shell script that looks something like: #!/bin/bash cd mapserver ./configure --without-eppl --without-sde --without-tiff --without-jpeg --with-proj=/u sr/local --with-ttf=/usr/local --with-gd=../gd-1.2 make clean ; make cd mapscript/perl perl Makefile.PL make make install This compiles mapserv + builds and installs mapscript. The big trick to compiling mapserver is to KNOW what the hell is being build and where your libraries are, and where they are shared or static. Note that (on Linux) if you build a package with shared and static libraries, it will pick up the shared libraries first (the .so libraries) and then to static libs (.a) I have got some draft documentation on compiling the supporting packages that I can contribute if someone can tell me where to upload... Can we do a CVS thing for docs? There are a bunch of small issues that are rarely discussed (ie. swig, freetype, proj that may or may not apply) untarring, configure and make I have covered in my docs. I am going to take a shot a docbook as time permits... right now it is just HTML. As for .ttf fonts, you snag them from your WIndows machine (if you do windows)... A few .ttfs reside in the ms_demo fonts directory... You will need at a minimum, the 'fonts' and 'symbols' directory to make you application work. It appears that is where the bulk of your problems are. You should take another hard look at Perry's ms_demo application so you dont miss the trivial. That URL is http://mapserver.gis.umn.edu/demo_readme.html (Perry, please hyperlink this to the ms_demo section of the main docs) Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions Inc (410)257-3187 Lyndon Zimmermann wrote: > > Greetings all, > > Well I'm making progress on getting MapServer and some examples going. > My UNIX skills are limited (I'm doing this under RedHat 7.0) and finally > discovered the trick in running the configure and install, ie gunzip > and untar, configure and make as user, then "make install" as root. > None of the doco seems to mention these little tricks. > > I still can't get the MapServer Demo to work however. I just get > "loadSymbol(): GD library error" on initialise. I'm still using gd1.2 > and the reference.gif is still a gif. > > I'm not sure whether I'm supposed to, but I copied the examples 1 to 4 > across to my server and managed to get examples 1 and 2 working > (hooray!). Examples 3 and 4 are a little more troublesome. After > working out how to start them, I got "loadlabel(): Unknown identifier. > Keyword FONT is not valid without TrueType font support" for both. I > thought I'd installed Freetype-1.3.1 (though I can't find any .ttf files > anywhere) When I rem'd out FONT in their respective .map files I got > "getSymbol(): Incorrect symbol. (12):(19) ". > > I'm documenting the process and file structure and will make them > available when I have an operating system (or sooner if requested). > > Any advice on my current difficulties would be appreciated. > > Lyndon Zimmermann > Adelaide, Australia From lyndon.zimmermann at adelaide.edu.au Fri Oct 27 00:57:59 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Fri, 27 Oct 2000 17:27:59 +0930 Subject: Setting up References: <39F8FC35.F3862B27@adelaide.edu.au> <39F921B7.A7FBA481@chesapeake.net> Message-ID: <39F93587.A3C4D3C9@adelaide.edu.au> Chris: I'll work through your suggestions, thanks. Anyone: I struck a strange feature. I was trying to understand the extent object in the .map file so I reduced the minimum values on Example 2 (a static shapefile), and the map zoomed out. Fine. I changed them back, clicked reload on Netscape, and it didn't zoom back in. If I'm not achieving an effective refresh then debugging is going to be tricky. Any comments? Lyndon Z imap at chesapeake.net wrote: > > Lyndon, > > Boy I fought with RedHat 7 for a day or 2 trying to get things > working with 3 different version of GD on that machine... It is > difficult to make it find the correct one. I can tell you are > going thru the same malfunction with your install. From bjohnson at jecinc.on.ca Fri Oct 27 05:49:08 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Fri, 27 Oct 2000 08:49:08 -0400 Subject: GIF Help In-Reply-To: <001d01c03f5f$d3b6f600$1200a8c0@Pentium166> Message-ID: <000501c04014$503d6ba0$1200a8c0@Pentium166> I have the ms_demo working except for the map showing the cached query on the query page. On the main page that shows the map, the zoom factor, zoom in, zoom out, pan, pick list for layers, etc. I would like to add an image at the top of the page. My understanding is that I would edit demo.html to do this. If I add JEC Logo within the body section, I can't get it to show the image even if a use an absolute path I can't even get it to show a background image with I've tried putting the .gif files into the ms_demo directory (where the .map file is), my apache/htdocs directory, apache/cgi-bin directory, and even apache/htdocs/tmp directory If I load the demo.html file directly into my browser, it shows the gif images but doesn't run mapserver. If I run demo_init.html which then triggers mapserver to use demo.html - it doesn't show the gif images - but it does show the map -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, October 26, 2000 5:51 PM To: bjohnson at jecinc.on.ca Subject: RE: GIF Help Ok, let's look at this again. Are you refering to images in a mapserver template, images for symbols or images as part of a map? Do you have anything network accessible where I can look quickly? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Brian Johnson" 10/26/00 10:16AM >>> The strange thing is that if I load demo.html directly, it finds my .gif files - but if I get at demo.html through demo_init.html it can't find my .gif files. I've tried both absolute and relative paths but still no luck -----Original Message----- From: Brian Fischer [mailto:Brian.Fischer at co.sherburne.mn.us] Sent: Thursday, October 26, 2000 9:22 AM To: bjohnson at jecinc.on.ca Subject: Re: GIF Help Brian, Take a look at the source for the images. Mapserver looks for the images relative to where the map file is. I usually have to have my img src="../images/.gif or something like that. Just make sure the actual location the web page is looking for the image is the same place you have it on the hard drive. Just a thought at what might be wrong. Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 >>> "Brian Johnson" 10/25/00 10:36AM >>> And now for another topic ... I'm trying to customize demo.html to display some plain old .gif files, but I can't get it to work - it displays the picture placeholder and the alternate text. I've copied the .gif files into a bunch of diffent directories to see if that made a difference - but no luck. My demo_init.html is in /var/lib/apache/htdocs which refers to /ms_demo/demo.html The mapserver part works fine, I just can't get it to display the .gif files I've also tried changing the .gif file properties and adding an absolute path in the demo.html - no luck Anyone have any luck with this? From SDunning at nephrology.org Fri Oct 27 09:15:36 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 27 Oct 2000 11:15:36 -0500 Subject: msSaveImage(): Message-ID: To anyone, I am trying to get MapServer up an running on our NT server. The software has been installed and seems to be responding appropriately. Although we are planning on testing the demo, I already have a working site available to me that I am more familiar with. So I copied the necessary files and folders into a directory on our server and have attempted to modify the path names, etc. accordingly. In doing so, when I key in this URL: http://www2.usrds.org/cgi-bin/mapserv.exe?map=mapserver/hsa.map I come across this error message: msSaveImage(): Unable to access file. (map_root\tmp\hsa9726620031190.gif) If I look in the "tmp\" folder, the gif is not there, so I'm not sure if I have the path wrong or if the file doesn't get created, or what. The file structure is as follows: e:\inetpub\usrds\ cgi-bin\mapserver.exe mapserver\ data\ graphics\ java\ map_root\ tmp\ hsa.map hsa.html Is there something basic I'm just not seeing? Any insight would be greatly appreciated! Thanks, Stephan PS. Here's a sample of the code from my mapfile: MAP NAME "hsa" EXTENT -1700000 3000000 3100000 5500000 SIZE 550 400 SHAPEPATH "data" UNITS meters IMAGECOLOR 230 220 190 WEB IMAGEPATH "map_root\tmp\" IMAGEURL "/mapserver/map_root/tmp/" TEMPLATE hsa.html END LAYER NAME prevrate DATA "hsaprev2" STATUS OFF TYPE POLYGON DESCRIPTION "1998 Prevalent Population (As a % of Total Population)" CLASSITEM "Qprev" CLASS EXPRESSION "5" OUTLINECOLOR 0 0 0 COLOR 0 0 185 NAME "0.1222 +" END From SDunning at nephrology.org Fri Oct 27 09:34:30 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 27 Oct 2000 11:34:30 -0500 Subject: msSaveImage() Message-ID: Please ignore the prior call for help. We determined that the error was due to the lack of write/delete privileges on the "tmp/" folder. Thanks, Stephan From steve.lime at dnr.state.mn.us Fri Oct 27 10:07:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Oct 2000 12:07:20 -0500 Subject: Setting up Message-ID: Did you try a "shift-refresh"? That will force netscape to refresh it. Changes in the map file are not known to the webserver so that's often needed. Using a "post" for forms will also always result in a refresh. That said, "get" is more useful for debugging since you can see what's being sent. Once communication is working and you're just tuning display of the map with the mapfile I use "post" forms. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Lyndon Zimmermann 10/27/00 02:57AM >>> Chris: I'll work through your suggestions, thanks. Anyone: I struck a strange feature. I was trying to understand the extent object in the .map file so I reduced the minimum values on Example 2 (a static shapefile), and the map zoomed out. Fine. I changed them back, clicked reload on Netscape, and it didn't zoom back in. If I'm not achieving an effective refresh then debugging is going to be tricky. Any comments? Lyndon Z imap at chesapeake.net wrote: > > Lyndon, > > Boy I fought with RedHat 7 for a day or 2 trying to get things > working with 3 different version of GD on that machine... It is > difficult to make it find the correct one. I can tell you are > going thru the same malfunction with your install. From Matt.Wilkie at gov.yk.ca Fri Oct 27 10:56:08 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 27 Oct 2000 10:56:08 -0700 Subject: Mapserver <=> ArcIMS comparison Message-ID: <6DD7370C9452D31192A10008C75D075306F4E31B@raptor.gov.yk.ca> Does anybody here have experience with both Mapserver and ArcIMS? Do you have any comments you'd like to share? What do you think of them? Which is better? etc. thanks, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From andreag at geoplan.ufl.edu Fri Oct 27 11:33:43 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Fri, 27 Oct 2000 14:33:43 -0400 (EDT) Subject: Mapserver <=> ArcIMS comparison Message-ID: <200010271833.e9RIXlM10792@cosmos.geoplan.ufl.edu> We have tried both of them here, as well as JShape. We found ArcIMS to be way too slow and in general very undependable. It appears to be still very buggy. Also, there isn't a good "support network" for ArcIMS like there is for Mapserver. Andrea > > Does anybody here have experience with both Mapserver and ArcIMS? > Do you have any comments you'd like to share? What do you think of > them? Which is better? etc. > > thanks, > > -matt @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ From dennis at avenza.com Fri Oct 27 13:01:45 2000 From: dennis at avenza.com (Dennis Christopher) Date: Fri, 27 Oct 2000 16:01:45 -0400 Subject: test suite instructions Message-ID: <39F9DF22.2463471F@avenza.com> Are there any instructions for using the test suites at: http://arachnid.dnr.state.mn.us/ms_test/index.html? e.g. dynamic queries? Anything that explains where to get the underlying data/or model your own data with it? what are you supposed to replace "WEB TEMPLATE test.html END": with? etc. Dennis Christopher -- Dennis Christopher (dennis at avenza.com) Product Development Manager Avenza Software, Inc. From SDunning at nephrology.org Fri Oct 27 13:15:30 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 27 Oct 2000 15:15:30 -0500 Subject: Mapserver <=> ArcIMS <=> MapXtreme, A similar question... Message-ID: >Does anybody here have experience with both Mapserver and ArcIMS? >Do you have any comments you'd like to share? What do you think of >them? Which is better? etc. Along the same lines... Here's a link to the National Cancer Institute's Interactive Mapping site (powered by MapXtreme): http://map4.mapaccess.net/cgi-bin/hsrun/nci/NCI/MapXtreme.htx;start=CheckPas sword This is a good example of the functionality I'd like to acheive with our site. Much of it I have already accomplished or at least feel I can figure out how. But, the things I'm uncertain on are: * * A SQL Query window allowing advanced queries to be run against our MSSQL Server DB, and then creating a temporary mapfile to display the results "on the fly" It sounds like this may be possible using perl, but I'm not positive. Maybe javascript, java, VB, etc. could accomplish these things? * Choosing the number of categories/ranges for a choropleth map * Gradient color choices for a choropleth map/legend * Range breakout options (i.e. Equal Interval, Quantiles, Natural Breaks, etc.) I may not need to accomplish these task in the immediate future, but knowing that they are possible is my goal at this point. Thank you for any input!! Stephan From morissette at dmsolutions.on.ca Fri Oct 27 13:15:48 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Fri, 27 Oct 2000 16:15:48 -0400 Subject: MapServer logo (was: Call for volunteers!) References: Message-ID: <39F9E274.8B324657@dmsolutions.on.ca> Marc Jacquin wrote: > > In the meantime, do we have a 'Powered by MapServer' logo ? > It would be cool to have an official one for sure. There have been interesting discussions but no decision yet as far as I know. We had proposed a logo which has been used in a few sites but 2 problems were raised: it used too many colors (could not embed it in a map slide), and it could not be easily scaled (to make T-Shirts for instance). Fred, our graphics designer has come up with a simpler design of that same logo that addresses these problems: http://www2.dmsolutions.on.ca/mapserver/logo/ If others have idea then perhaps then could send them too and we could have a decision taken in the near future. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From marin at here.is Fri Oct 27 16:27:18 2000 From: marin at here.is (Ma) Date: Fri, 27 Oct 2000 23:27:18 +0000 Subject: MapServer logo (was: Call for volunteers!) References: <39F9E274.8B324657@dmsolutions.on.ca> Message-ID: <39FA0F54.A6A24F34@here.is> If we could have a logo with other continents also not only with America ... I can understand you but somehow it is not global ... There are MapServer users in Europe, Australia, Asia, probably Africa, etc... and it's too ESRI like design also... --- Ma Daniel Morissette wrote: > Marc Jacquin wrote: > > > > In the meantime, do we have a 'Powered by MapServer' logo ? > > > > It would be cool to have an official one for sure. > > There have been interesting discussions but no decision yet as far as I > know. We had proposed a logo which has been used in a few sites but 2 > problems were raised: it used too many colors (could not embed it in a > map slide), and it could not be easily scaled (to make T-Shirts for > instance). Fred, our graphics designer has come up with a simpler > design of that same logo that addresses these problems: > > http://www2.dmsolutions.on.ca/mapserver/logo/ > > If others have idea then perhaps then could send them too and we could > have a decision taken in the near future. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.on.ca > http://www.dmsolutions.on.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From timcera at earthlink.net Fri Oct 27 20:12:30 2000 From: timcera at earthlink.net (Tim Cera) Date: Fri, 27 Oct 2000 22:12:30 -0500 Subject: Deleting files in IMAGEPATH and misc. ? Message-ID: <39FA441E.7AE3217E@earthlink.net> I have setup a small MapServer driven site for a client's internal web. Everything is working fine, I just have a few questions. I was wondering if MapServer deletes any files out of IMAGEPATH? It doesn't seem that it does so I setup a cron job to delete files older than two days. What is the best way to handle this? Do I have to worry? Is there any planned support for Mr Sid format from LizardTech ( http://lizardtech.com/ ). The license issues might kill this idea, but the license seem to be more lenient to people developing viewers. They make their money on the compression side of things. Python has become my favorite language, and though I don't have any current plans for MapScript, I was wondering when Python would be supported. Much thanks for truly wonderful software. take care tim cera timcera at earthlink.net http://home.earthlink.net/~timcera From steve.lime at dnr.state.mn.us Fri Oct 27 21:13:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Oct 2000 23:13:57 -0500 Subject: MapServer logo (was: Call for volunteers!) Message-ID: I liked it but saw the ESRI similarity. The my continent vs yours issue doesn't bother me. Heck, go with Pangia if that makes everyone happy. I'd have gone with Minnesota myself. ;-) Thank Fred for his efforts, it's real close. Besides the ESRI comment I was worried a bit about display at small sizes. It'd be nice to embed it in maps. Might need a mapserver ttf. Steve >>> Ma 10/27/00 18:24 PM >>> If we could have a logo with other continents also not only with America ... I can understand you but somehow it is not global ... There are MapServer users in Europe, Australia, Asia, probably Africa, etc... and it's too ESRI like design also... --- Ma Daniel Morissette wrote: > Marc Jacquin wrote: > > > > In the meantime, do we have a 'Powered by MapServer' logo ? > > > > It would be cool to have an official one for sure. > > There have been interesting discussions but no decision yet as far as I > know. We had proposed a logo which has been used in a few sites but 2 > problems were raised: it used too many colors (could not embed it in a > map slide), and it could not be easily scaled (to make T-Shirts for > instance). Fred, our graphics designer has come up with a simpler > design of that same logo that addresses these problems: > > http://www2.dmsolutions.on.ca/mapserver/logo/ > > If others have idea then perhaps then could send them too and we could > have a decision taken in the near future. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.on.ca > http://www.dmsolutions.on.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do toay, because if > you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Fri Oct 27 21:19:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Oct 2000 23:19:32 -0500 Subject: Deleting files in IMAGEPATH and misc. ? Message-ID: 1) a cron job to purge files is a good idea, mapserver will not take care of this itself 2) i've looked at MrSID but their APIs (last I checked) where not availible widely and there where some developer license issues. since nobody has asked for it i haven't pursued. actually I was kinda hoping gdal might support it. 3) mapscript already supports python. building it is not quite as easy as with perl but can and has been done on several platforms. norman? Steve >>> Tim Cera 10/27/00 21:08 PM >>> I have setup a small MapServer driven site for a client's internal web. Everything is working fine, I just have a few questions. I was wondering if MapServer deletes any files out of IMAGEPATH? It doesn't seem that it does so I setup a cron job to delete files older than two days. What is the best way to handle this? Do I have to worry? Is there any planned support for Mr Sid format from LizardTech ( http://lizardtech.com/ ). The license issues might kill this idea, but the license seem to be more lenient to people developing viewers. They make their money on the compression side of things. Python has become my favorite language, and though I don't have any current plans for MapScript, I was wondering when Python would be supported. Much thanks for truly wonderful software. take care tim cera timcera at earthlink.net http://home.earthlink.net/~timcera From nicklo at siliconcreation.com Sat Oct 28 00:55:39 2000 From: nicklo at siliconcreation.com (Nicholas Lo) Date: Sat, 28 Oct 2000 15:55:39 +0800 Subject: FastCGI & SIGSEGV Message-ID: <000a01c040b4$7743d900$d2fc52cb@siliconcreation.com> Hi everyone, Recently, I've been experimenting converting MapServer 3.3.011 to FastCGI hoping to boost its performance. I'm using FastCGI 2.2.8 and have the Apache set up. I have tried other FastCGI programs and they just worked fine. However, when I converted the mapserv.c using the code below, I have encountered some problems that I dont know how to solve. Using the code below, I can start mapserv without any problem. However, after one or two requests (i.e. zooming in/out, panning, etc), the mapserv terminate itself suddenly and I got the 'segmentation fault' error. On my gdb, it says 'program received SIGSEGV ... and terminated' and something related to malloc.c as well. It took me one whole week and still couldnt figure out why. I just wonder if anyone can kindly give me some directions. Thanks!!! int main(int argc, char *argv[]) { int i,j; char buffer[1024]; if (FCGX_IsCGI()) { close(STDIN_FILENO); close(STDOUT_FILENO); close(STDERR_FILENO); FCGX_OpenSocket(":8999", 100); } while(FCGI_Accept() >= 0) { ... return(0); } /* End main routine */ Regards, Nicholas Lo -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicklo at siliconcreation.com Sat Oct 28 05:05:32 2000 From: nicklo at siliconcreation.com (Nicholas Lo) Date: Sat, 28 Oct 2000 20:05:32 +0800 Subject: FastCGI & SIGSEGV Message-ID: <000b01c040d7$5f66e8e0$d2fc52cb@siliconcreation.com> Hi everyone, Recently, I've been experimenting converting MapServer 3.3.011 to FastCGI hoping to boost its performance. I'm using FastCGI 2.2.8 and have the Apache set up. I have tried other FastCGI programs and they just worked fine. However, when I converted the mapserv.c using the code below, I have encountered some problems that I dont know how to solve. Using the code below, I can start mapserv without any problem. However, after one or two requests (i.e. zooming in/out, panning, etc), the mapserv terminate itself suddenly and I got the 'segmentation fault' error. On my gdb, it says 'program received SIGSEGV ... and terminated' and something related to malloc.c as well. It took me one whole week and still couldnt figure out why. I just wonder if anyone can kindly give me some directions. Thanks!!! int main(int argc, char *argv[]) { int i,j; char buffer[1024]; if (FCGX_IsCGI()) { close(STDIN_FILENO); close(STDOUT_FILENO); close(STDERR_FILENO); FCGX_OpenSocket(":8999", 100); } while(FCGI_Accept() >= 0) { ... return(0); } /* End main routine */ Regards, Nicholas Lo Nicholas Lo Technical Director Silicon Creation Limited 18/F, Tower II MetroPlaza Kwai Fong, NT Hong Kong Tel : 7111 9350 Fax : 2610 2225 From pcameron at gis.umn.edu Sat Oct 28 10:20:27 2000 From: pcameron at gis.umn.edu (Paul Cameron) Date: Sat, 28 Oct 2000 12:20:27 -0500 Subject: Mapserver <=> ArcIMS <=> MapXtreme, A similar question... In-Reply-To: Message-ID: Hello, I have something like this running on a soil survey application. Its quite old now and I've been trying to find some time to port it to mapscript where it will be easier to update the application. I create a popup window that is the interface to the database. This form calls a perl script that queries the database and writes a temp mapfile using the returned results from the database. Its worked extremely well so far. The url is http://gis.umn.edu/soils paul On Fri, 27 Oct 2000, Stephan Dunning wrote: > But, the things I'm uncertain on are: > * > * A SQL Query window allowing advanced queries to be run against our > MSSQL Server DB, and then creating a temporary mapfile to display the > results "on the fly" > It sounds like this may be possible using perl, but I'm not > positive. Maybe javascript, java, VB, etc. could accomplish these things? > > Stephan > From nwerneck at yahoo.com.br Sun Oct 29 02:13:21 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Sun, 29 Oct 2000 08:13:21 -0200 Subject: a cute mapserver site Message-ID: <200010291016.EAA02820@lists.gis.umn.edu> Hi. I'm administratting a mapserver site here in Brazil. It's from an institute that supports the tourism in a region cut by the the ancient "royal road". It's quite away from being finnished, but I tought it would be interestting to show it to you. It happens that i've used mapserver in a (surprisingly) uncommon way. Most of the mapserver sites i've seen out there display only point or line information, over some 2 or 3 regions with different meanings. It happens that I wanted to colour each one of the sub- regions (the nuclei (is this right? :) if not, it's at least beautifull ) ) with different colours. I've sent a message here asking about how to read the color number from the database. Well, here is why! I had to define the colour of each one of the nuclei (plus two other regions) on my .map file, and that's not nice! I've done an AWK program that helped me with it, but it's really unconvenient. I'm not that a programmer yet to try to implement this feature by my own, so it stays here as a suggestion... Well, take a look at the site, because thet map is getting really cute! :) -- Nicolau Werneck __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From nwerneck at yahoo.com.br Sun Oct 29 02:35:42 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Sun, 29 Oct 2000 08:35:42 -0200 Subject: the .map file language Message-ID: <200010291038.EAA02853@lists.gis.umn.edu> Hi... Isn't that .map file language just too "vertical"?? A line per attribute of each object makes it a "low-density" language. You need a lot of lines to pass little information. Wouldn't it be nice to have some HTML-like language... Dig it (do you still say this? :) ): if i'm not mistaken, you can't have two label items per class, so, maybe we can make that in a different way... maybe some lisp-- like language (LAYER name="cities" data="cities" type="point"> (CLASS expression="/myxtplikz/" maxscale="5" minscale="20" size=5 symbol=3 (LABEL type="truetype" font="new-gotic" size="5")) (CLASS expression="/lex luther/" maxscale="5" minscale="20" size=3 symbol=2 (LABEL type="truetype" font="new-gotic" size="4"))) Even better isn't it??? Of course, you still can take advantage from the old-fashined way. Maybe puttting the attributes in different lines make it easier to locate the ones we're configuring some time. ... (CLASS expression="/myxtplikz/" maxscale="5" minscale="20" symbol=3 size=5 (LABEL type="truetype" font="new-gotic" size="5")) well, I'm done for the moment... :) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From imap at chesapeake.net Sun Oct 29 06:54:42 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sun, 29 Oct 2000 09:54:42 -0500 Subject: a cute mapserver site References: <200010291016.EAA02820@lists.gis.umn.edu> Message-ID: <39FC3A32.94A3E13B@chesapeake.net> Post the URL. > Well, take a look at the site, because thet map is getting really > cute! :) > > -- Nicolau Werneck > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com From steve.lime at dnr.state.mn.us Sun Oct 29 07:42:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 29 Oct 2000 09:42:32 -0600 Subject: the .map file language Message-ID: It's the same thing. Map files are NOT line but rather token based so: LAYER NAME "mylayer" MINSCALE "240000"... END Is perfectly valid. It's a matter of personal preference. Since I liked the line-based display and wrote the original demos that's probably why that has held on. A move to XML for input is planned but it's "heavy" too. The best reason I see for the XML move is the validation that comes along a mapfile DTD. Steve >>> 10/29/00 04:36 AM >>> Hi... Isn't that .map file language just too "vertical"?? A line per attribute of each object makes it a "low-density" language. You need a lot of lines to pass little information. Wouldn't it be nice to have some HTML-like language... Dig it (do you still say this? :) ): if i'm not mistaken, you can't have two label items per class, so, maybe we can make that in a different way... maybe some lisp-- like language (LAYER name="cities" data="cities" type="point"> (CLASS expression="/myxtplikz/" maxscale="5" minscale="20" size=5 symbol=3 (LABEL type="truetype" font="new-gotic" size="5")) (CLASS expression="/lex luther/" maxscale="5" minscale="20" size=3 symbol=2 (LABEL type="truetype" font="new-gotic" size="4"))) Even better isn't it??? Of course, you still can take advantage from the old-fashined way. Mybe puttting the attributes in different lines make it easier to locate the ones we're configuring some time. ... (CLASS expression="/myxtplikz/" maxscale="5" minscale="20" symbol=3 size=5 (LABEL type="truetype" font="new-gotic" size="5")) well, I'm done for the moment... :) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From aborruso at spaziogis.it Sun Oct 29 08:02:52 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Sun, 29 Oct 2000 17:02:52 +0100 Subject: Your "click" corresponds to .... ??? Message-ID: Dear all, is it possible to intercept "Your "click" corresponds to ..." message? I would like to view it in italian, and if is it possible in a more funny html page. Thank you, Andrea From steve.lime at dnr.state.mn.us Sun Oct 29 08:07:26 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 29 Oct 2000 10:07:26 -0600 Subject: Your "click" corresponds to .... ??? Message-ID: You can always use a normal template (i.e. mode=browse) setup with no map, scalebar etc generated and then just use the [mapx] [mapy] substitutions to do it. Set status to off for all those components. MapServer will still go through it's calculations. You could also edit the source (mapserv.c)... Steve >>> 10/29/00 10:00 AM >>> Dear all, is it possible to intercept "Your "click" corresponds to ..." message? I would like to view it in italian, and if is it possible in a more funny html page. Thank you, Andrea From johnh at erin.gov.au Sun Oct 29 14:55:43 2000 From: johnh at erin.gov.au (John Hockaday) Date: Mon, 30 Oct 2000 09:55:43 +1100 (EST) Subject: Mapserver <=> ArcIMS comparison Message-ID: <200010292255.JAA07225@eos.erin.gov.au> Matt, I have tried ArcIMS, Mapserv, and MapXtreme. It took me longer to set up ArcIMS and Mapxtreme than mapserv on a Solaris 2.6 UNIX platform. (They may be easier on Windows NT.) This is because of the documentation, lack of source code, prerequisite software and different presentation methods. The support for mapserv is much better, through this list, than the forums for ArcIMS and MapXtreme. (In some most cases I received no answers from the proprietary software forum sites.) The documentation for mapserv is very good though sometimes it is incomplete as it doesn't quite keep up with the newest version. I think that the proposed "documentation committee" may fix that a bit. The documentation for ArcIMS and MapXtreme is OK but if there is a application problem there seems to be no way of tracking it down via the documentation. Both ArcIMS and MapXtreme use Java Servlets. This should make them faster to keep track of the sessions and the thread footprint should be small though I didn't get far enough with these two to test this theory. Mapserv uses CGI though I believe that it can be incorporated into Java Servlets. I would be very interested to see this demonstrated somewhere as theoretically it should be faster and less resource hungry than Common Gateway Interface (CGI) protocol. I found that mapserv is very easy to set up an interface. I just developed my HTML form to what I wanted the page to look like. I then added the CGI post call to mapserv and inserted the mapserv "objects" such as [map], [img], [mapwidth], [mapheight], [zoom__select], [ref], [legend], [scalebar] etc. at the appropriate spots in the HTML form. I then built the .map file for the interface and it works fine. The major problem was converting from the map objects documentation to my layer requrements. This was a problem because of the many options in the map file, the mass of documentation and my trying to get my head around things. (This is my comprehension and not the documentation's fault.) With ArcIMS and MapXtreme there are some GUI's that allow development of the interface and equivalent to map files. If you want to do something different to the options in the GUI's you will be hard pressed to do it. There is some documentation for the ArcIMS XML files. There seems to be no other documentation. MapXtreme doesn't handle Shapfiles very well. It took over five minutes to display a Shapfile and only 18 seconds to display the same information in MapInfo format. (The message here is convert everything to MapInfo files.) I have not delved into mapscript as I find mapserv meets my requirements. Someone else will have to comment on that. I would like to know if there are any companies in Australia who would contract out to develop mapserv interfaces. This seems to be a priority with our organisation even though we have the skills internally. (Maybe outsourcing is about to happen.) Conclusion: =========== - Mapserv is easier to setup, maintain, and develop. - Mapserv has better support and documentation. - I can't comment on the speed comparisions though theoretically ArcIMS and MapXtreme should be faster. I hope that this helps. Johnh > From: "Matt.Wilkie" > To: mapserver-users at lists.gis.umn.edu > Subject: Mapserver <=> ArcIMS comparison > Date: Fri, 27 Oct 2000 10:56:08 -0700 > MIME-Version: 1.0 > > Does anybody here have experience with both Mapserver and ArcIMS? > Do you have any comments you'd like to share? What do you think of > them? Which is better? etc. > > thanks, > > -matt > ======================================== > Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS > http://renres.gov.yk.ca/pubs/rrgis/ From johnh at erin.gov.au Sun Oct 29 15:13:37 2000 From: johnh at erin.gov.au (John Hockaday) Date: Mon, 30 Oct 2000 10:13:37 +1100 (EST) Subject: the .map file language Message-ID: <200010292313.KAA07265@eos.erin.gov.au> > Date: Sun, 29 Oct 2000 09:42:32 -0600 > From: "Stephen Lime" > > .... A move to XML for input is planned but it's "heavy" too. The > best reason I see for the XML move is the validation that comes along a > mapfile DTD. I would say that the best reason to move to XML would be to make mapserv compatable with the OpenGIS Document Type Definition, once it is finalised and adopted by the general community. Johnh From Robin.Ellis at dnr.qld.gov.au Sun Oct 29 16:36:06 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Mon, 30 Oct 2000 10:36:06 +1000 Subject: maxscale & classes Message-ID: Does anybody know why I can't utilise a maxscale with a tiled layer that has multiple class names? I've included the layer definition from my mapfile below. The functions properly if I have it in the exact format below (you'll notice that most of the class names have been nullified by the #). However, if I try to include any more of the class names by removing the # the whole system will not load properly.I seem to be limited to only including 2 class names per layer that has a maxscale attribute included. Alternatively, I can remove the maxscale attribute to allow all class names to be included, but this is not an acceptable solution for this system. We're using a Java based application on a Unix platform. The layer definition is: LAYER NAME res TYPE POLYGON STATUS on MAXSCALE 250000 TOLERANCE 0 TILEINDEX /data4/WWW/projects/vegmgt/qdemo/coverages/se_shires TILEITEM retile CLASSITEM vm_stat_id CLASS EXPRESSION '1' NAME "Dominant Endangered Remnant" COLOR 202 0 220 OUTLINECOLOR 202 0 220 END # CLASS CLASS EXPRESSION '2' NAME "Sub-dominant Endangered Remnant" COLOR 247 165 255 OUTLINECOLOR 247 165 255 END # CLASS CLASS EXPRESSION '3' # NAME "Dominant Of Concern Remnant" COLOR 255 191 0 OUTLINECOLOR 255 191 0 END # CLASS CLASS EXPRESSION '4' # NAME "Sub-dominant Of Concern Remnant" COLOR 220 206 0 OUTLINECOLOR 220 206 0 END # CLASS CLASS EXPRESSION '5' # NAME "Not Of Concern Remnant" COLOR 146 174 47 OUTLINECOLOR 146 174 47 END # CLASS CLASS EXPRESSION '6' # NAME "Plantation forest" COLOR 247 247 222 OUTLINECOLOR 247 247 222 END # CLASS CLASS EXPRESSION '7' # regrowth COLOR 255 255 255 OUTLINECOLOR 255 255 255 END # CLASS CLASS EXPRESSION '8' # clear COLOR 255 255 255 OUTLINECOLOR 255 255 255 END # CLASS CLASS EXPRESSION '9' # NAME "Dam or water" COLOR 135 164 254 OUTLINECOLOR 135 164 254 END # CLASS CLASS EXPRESSION '10' # mine COLOR 255 255 255 OUTLINECOLOR 255 255 255 END # CLASS CLASS EXPRESSION '11' # no data # NAME "No data" COLOR 200 100 100 OUTLINECOLOR 135 164 254 END # CLASS END # layer Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From marin at here.is Sun Oct 29 17:34:03 2000 From: marin at here.is (Ma) Date: Mon, 30 Oct 2000 01:34:03 +0000 Subject: MapServer <=> Autodesk MapGuide <=> JShape Message-ID: <39FCD009.44C1D940@here.is> Does anybody here have experience with MapServer and Autodesk MapGuide and JShape? Do you have any comments you'd like to share? What do you think of them? Which is better? :> --- Ma From lyndon.zimmermann at adelaide.edu.au Sun Oct 29 18:39:20 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Mon, 30 Oct 2000 13:09:20 +1030 Subject: Setting up References: Message-ID: <39FCDF58.5D078BAE@adelaide.edu.au> Steve, yes, shift-refresh did the trick. Thanks. Lyndon Z Stephen Lime wrote: > > Did you try a "shift-refresh"? That will force netscape to refresh it. Changes in the map > file are not known to the webserver so that's often needed. Using a "post" for forms will > also always result in a refresh. That said, "get" is more useful for debugging since you > can see what's being sent. Once communication is working and you're just tuning display > of the map with the mapfile I use "post" forms. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Lyndon Zimmermann 10/27/00 02:57AM >>> > Chris: I'll work through your suggestions, thanks. > > Anyone: I struck a strange feature. I was trying to understand the > extent object in the .map file so I reduced the minimum values on > Example 2 (a static shapefile), and the map zoomed out. Fine. I changed > them back, clicked reload on Netscape, and it didn't zoom back in. If > I'm not achieving an effective refresh then debugging is going to be > tricky. Any comments? > > Lyndon Z > > From michael.kleih at jrc.it Mon Oct 30 01:35:53 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Mon, 30 Oct 2000 09:35:53 +0000 Subject: Mapserver <=> ArcIMS comparison References: <6DD7370C9452D31192A10008C75D075306F4E31B@raptor.gov.yk.ca> Message-ID: <39FD40F9.AB730D2B@jrc.it> "Matt.Wilkie" wrote: > Does anybody here have experience with both Mapserver and ArcIMS? > Do you have any comments you'd like to share? What do you think of > them? Which is better? etc. > > I am working since a while with mapserver, but some time ago we also connected a ArcIMS server to our system. The experience I made was that -mapserver is much faster than ArcIMS -mapserver is more reliable. Often it happend that the requests sent to ArcIMS were not processed correctly. -we had big trouble sending the output of ArcIMS through a proxy, which is needed to access its images from a JAVA-applet. -it is difficult to use ArcIMS, because you need very specific server software. My collegues working on it told me, that more or less it works only with the Netscape Server, but not with Apache. Michael -- __________________________________ Michael Kleih Centro Comune di Ricerca-JRC Commissione Europea Via Fermi 1 TP 270 Tel. 0039/0332785039 __________________________________ From mark.wilson at rohoel.at Mon Oct 30 01:23:55 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 30 Oct 2000 10:23:55 +0100 Subject: MapServer <=> Autodesk MapGuide <=> JShape Message-ID: > Does anybody here have experience with MapServer and Autodesk MapGuide > and JShape? > Do you have any comments you'd like to share? What do you think of them? > Which is better? :> I've "played" with both JShape and Mapserver. Here are some observations that I found were notable, and that might have some influence on your preferences: 1) Licencing. Mapserver has written licence conditions. Although JShape is promoted as freeware, there isn't any formal licencing conditions in existence that I'm aware of. 2) Platform Being Java based has pros and cons... A disadvantage is that you are subject to different Java engine implementations on different platforms. For example, I wanted to make use of Javascript - JShape communication, but this does not work in current Mac environments (with any browser). Also I noted big differences in speed of the graphics refreshing on different platforms. An advantage is that the use of the JShape applet is not reliant on a webserver, so in theory you could distribute it on CD, for example, together with relevant data. 3) Scripting Language I found the JScript language surprisingly flexible, and I found I could code most of the (limited) functionality that I wanted. However, that said, mapscript gives you all the flexibility you would ever need. But the downside is that mapscript is not nearly so user friendly (at least for those without much programming experience). 4) Interface Philosophy This is largely down to personal preferences (yours and/or the users of your application). JShape being Java based means that potentially you have to wait for the applets to download, and then the data as well. However, after the initial wait, the user experience is quite satisfying as you can zoom, pan, and query in "real time". Mapserver is quicker to load initially but of course requires a refresh from the webserver for every action (whether it be zoom, pan, or query). 5) Customisation The Mapserver interface is of course completely customisable in HTML.. Similarly, with JShape you can customise an interface with HTML, as long as you use the Javascript - JShape applet communication functionality. Even without an HTML based interface, the JShape window by itself is quite customisable. You can force the map to occupy the whole window, or switch to the default display which has buttons (with up to 5 customisable ones), legend, command line, and text output area. Scripts can be attached to the buttons. Any added button scripts also appear in a dropdown menu which can be accessed in full screen mode. 6) Compatibility Since they both take shapefiles as their source data, you don't need to convert any data. One approach would be to make some of the simpler application functionality available in JShape, and let your users decide which way they want to explore the data. (But of course that approach has the price of duplicated effort - a luxury that may not be affordable??) 7) Support and Documentation There is not much support available for JShape. I posted a couple of questions to JShape software, but never got a reply. As far as I'm aware, there is no mailing list like there is for MapServer. This forum works quite well for getting answers to support issues. Documentation for JShape is very good, in my view. There are lots of "walkthrough" tutorials, each one introducing the new user to one or two new features. 8) Future Direction MapServer is still being developed. Earlier in the year JShape Software was advertising the JShape application for sale. Although you can still download the latest version, whether there will be any further (freeware) versions remains to be seen. Overall, I am impressed with the stability and functionality of JShape. It accomplishes a lot for its size and is not too difficult to install and use for developing applications. With extensions and API's, some of which cost extra, more functionality, or interfaces to databases could be added. For me, MapServer has better support, seems more powerful and flexible "out of the box", but has a correspondingly steeper learning curve. Hope that helps, Mark From morissette at dmsolutions.on.ca Mon Oct 30 08:18:14 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Mon, 30 Oct 2000 11:18:14 -0500 Subject: MapServer logo (was: Call for volunteers!) References: Message-ID: <39FD9F46.10A74B9E@dmsolutions.on.ca> Steve and Ma, We were also concerned about the ESRI similarity (unfortunately, there are not that many ways to represent the globe into an icon) and the fact that the globe was showing America (We even thought about making a down-under version especially for our Aussie friends... showing the other side of the globe and with the support of the globe (the base) at the top! :) Hopefully we'll receive more suggestions... If anyone has ideas, even if you don't have the tools or the artistic skills to draw it yourself, just send a description of your idea to the list and perhaps someone else can draw a prototype. BTW Steve, I like the suggestion of a MapServer TTF font with the logo... it could also contain a set of common map symbols, e.g. camping site, picnic table, etc... Daniel Stephen Lime wrote: > > I liked it but saw the ESRI similarity. The my continent vs yours issue doesn't bother me. Heck, go with Pangia if that makes everyone happy. I'd have gone with Minnesota myself. ;-) Thank Fred for his efforts, it's real close. > > Besides the ESRI comment I was worried a bit about display at small sizes. It'd be nice to embed it in maps. Might need a mapserver ttf. > > Steve > > >>> Ma 10/27/00 18:24 PM >>> > If we could have a logo with other continents also not only with America > ... I can understand you but somehow it is not global ... There are > MapServer users in Europe, Australia, Asia, probably Africa, etc... and > it's too ESRI like design also... > > --- > Ma > > Daniel Morissette wrote: > > > Marc Jacquin wrote: > > > > > > In the meantime, do we have a 'Powered by MapServer' logo ? > > > > > > > It would be cool to have an official one for sure. > > > > There have been interesting discussions but no decision yet as far as I > > know. We had proposed a logo which has been used in a few sites but 2 > > problems were raised: it used too many colors (could not embed it in a > > map slide), and it could not be easily scaled (to make T-Shirts for > > instance). Fred, our graphics designer has come up with a simpler > > design of that same logo that addresses these problems: > > > > http://www2.dmsolutions.on.ca/mapserver/logo/ > > > > If others have idea then perhaps then could send them too and we could > > have a decision taken in the near future. > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.on.ca > > http://www.dmsolutions.on.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do toay, because if > > you enjoy it today you can do it again tomorrow. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Mon Oct 30 13:22:28 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 30 Oct 2000 15:22:28 -0600 (CST) Subject: FWD: Mapserver-SDE Message-ID: <200010302122.PAA29514@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 30 Oct 2000 22:24:25 +0100 From: Gjermund Hanssen X-Accept-Language: en,pdf MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Mapserver-SDE Content-Transfer-Encoding: 7bit I'm doing some testing on Mapserver and SDE. I have read the documentation and have tried out the examples on my companies own datasets. It works fine ! But,when i try to classify inside on attribute(making more than one expression in the map-file) item in the same SDE-layer i'm retriving error messages. However it works if i'm defining one layer per. expression in the map-file, but this involves more than one connection to the underlaying RDBMS and might be time and licens-consuming ? My company have bought ArcIms, but haven't started to use it fully,yet. I'm however fascinated by this OpenSource stuff, and therefore interested in doing some comparising on MapServer and ArcIms against SDE. Gjermund ------------- End Forwarded Message ------------- From johnh at erin.gov.au Mon Oct 30 14:21:14 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 31 Oct 2000 09:21:14 +1100 (EST) Subject: Mapserver <=> ArcIMS comparison Message-ID: <200010302221.JAA08170@eos.erin.gov.au> Hi, > Date: Mon, 30 Oct 2000 09:35:53 +0000 > From: Michael Kleih > ... > -it is difficult to use ArcIMS, because you need very specific > server software. My collegues working on it told me, that more > or less it works only with the Netscape Server, but not with Apache. > We have ArcIMS running on Apache 1.3.12 using Jserv1.1.2. It was difficult to get going but it did work. Johnh From johnh at erin.gov.au Mon Oct 30 14:39:13 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 31 Oct 2000 09:39:13 +1100 (EST) Subject: Any Australian contracting companies using mapserv Message-ID: <200010302239.JAA08185@eos.erin.gov.au> Hi, It is our business policy to be able to get short term contractors in to develop our interfaces if we don't have the resources to develop them ourselves. At the moment we don't have any contracts available but if I am to continue using mapserv as a GIS-WWW interface then I need to know if there are some Australian contracting companines out there who can do the work. If there aren't any contractors who can develop in mapserv then I won't be able to continue using it and I will probably have to go to ArcIMS or MapXtreme. This is unfortunate as my investigations have shown that mapserv seems easier to use than the other two. Thanks in advance for any replies. Johnh From lyndon.zimmermann at adelaide.edu.au Mon Oct 30 14:54:07 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Tue, 31 Oct 2000 09:24:07 +1030 Subject: MapServer icons References: <39FD9F46.10A74B9E@dmsolutions.on.ca> Message-ID: <39FDFC0F.9356CF01@adelaide.edu.au> Greetings, There was mention of developing mapping icons. One set available is the Greenmap system, see http://www.greenmap.com/ for details. It's predominantly for community information maps. Lyndon Z Adelaide From cnielsen at co.tillamook.or.us Mon Oct 30 15:08:40 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Mon, 30 Oct 2000 15:08:40 -0800 Subject: tutorial example 1 Message-ID: <000901c042c6$576c7f60$a14368aa@co.tillamook.or.us> For some reason I am unable to implement the first tutorial example. I've set everything up just like in the example but for some reason the image is not being displayed. I'm using the latest version of Mapserver on an NT Server. I've tried everything I could think of with the pathnames, quotes, different data, etc. Below is a copy of the mapfile and html tag I'm using. If anyone could give me some feedback on it I would appreciated it very much. Many thanks, Chad Nielsen MAPSERVER EXAMPLE #1: root: e:\gisweb\ = http://gisweb.co.tillamook.or.us/ cgi folder: e:\gisweb\cgi-bin\ = /cgi-bin/ project folder: e:\gisweb\webmap\tutorials\ = /webmap/tutorials/ data layer: e:\gisweb\library\hydrography\shapes\hydro.shp = /library/hydrography/shapes/hydro *** Here's my mapfile: *** # Mapserver Tutorial 1 NAME EX1 EXTENT 7283578.700 505176.159 7495434.300 804253.028 SIZE 300 300 SHAPEPATH "/library/hydrography/shapes" LAYER NAME "Hydrography" DATA hydro STATUS DEFAULT TYPE LINE CLASS COLOR 250 175 25 END # end of class object END # end of layer object END # end of map file ***Here's the image tag used to display the map*** Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ From steve.lime at dnr.state.mn.us Mon Oct 30 15:05:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 30 Oct 2000 17:05:36 -0600 Subject: MapServer Logo (was Re: MapServer icons) Message-ID: You know I noticed a globe icon in the Greenmap collection and really like it. No continents etc but it's clearly identifiable as a globe. Perhaps we could use it? It certainly is not ESRIlike at all and is very clean and will scale nicely. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Lyndon Zimmermann 10/30/00 04:54PM >>> Greetings, There was mention of developing mapping icons. One set available is the Greenmap system, see http://www.greenmap.com/ for details. It's predominantly for community information maps. Lyndon Z Adelaide From nwerneck at yahoo.com.br Mon Oct 30 15:40:37 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Mon, 30 Oct 2000 21:40:37 -0200 Subject: a cute mapserver site II In-Reply-To: <200010291016.EAA02820@lists.gis.umn.edu> Message-ID: <200010302343.RAA12064@lists.gis.umn.edu> > Well, take a look at the site, because thet map is getting really > cute! :) I can't believe I forgot tho say the URL :D http://ils.io.inf.br/ier_map/index.html (I think just the plain "ier_map/" doesn't work) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nhv at cape.com Mon Oct 30 16:30:24 2000 From: nhv at cape.com (Norman Vine) Date: Mon, 30 Oct 2000 19:30:24 -0500 Subject: FW: MapServer logo (was: Call for volunteers!) Message-ID: <000701c042d1$e40b0760$7837ba8c@nhv> Daniel Morissette writes: > >Hopefully we'll receive more suggestions... If anyone has ideas, even >if you don't have the tools or the artistic skills to draw it yourself, >just send a description of your idea to the list and perhaps someone >else can draw a prototype. > Might I suggest that instead of a globe, we use a global projection of the Earth. some possibilities o Siusoidal o Mollweide o Robinson o Eckert o Goode Homolosine o McBryde-Thomas o Boggs The proj library documentation has good drawings of these and others Cheers Norman Vine From pnaciona at gis.umn.edu Mon Oct 30 16:30:46 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 30 Oct 2000 18:30:46 -0600 Subject: tutorial example 1 References: <000901c042c6$576c7f60$a14368aa@co.tillamook.or.us> Message-ID: <016601c042d1$cfe62b20$9a496580@gis.umn.edu> Try making your SHAPEPATH an absolute path and (or) switch the slashes. Here's an example: SHAPEPATH "e:\gisweb\library\hydrography\shapes" Also try using instead of The tutorial might need some updating to work with the current version of MapServer. I'll update it as soon as I find time. Good luck! -Perry N. ----- Original Message ----- From: "Chad Nielsen" To: "Mapserver Info" Sent: Monday, October 30, 2000 5:08 PM Subject: tutorial example 1 > For some reason I am unable to implement the first tutorial example. I've > set everything up just like in the example but for some reason the image is > not being displayed. I'm using the latest version of Mapserver on an NT > Server. I've tried everything I could think of with the pathnames, quotes, > different data, etc. Below is a copy of the mapfile and html tag I'm using. > If anyone could give me some feedback on it I would appreciated it very > much. > > Many thanks, > Chad Nielsen > > MAPSERVER EXAMPLE #1: > > root: e:\gisweb\ = http://gisweb.co.tillamook.or.us/ > cgi folder: e:\gisweb\cgi-bin\ = /cgi-bin/ > project folder: e:\gisweb\webmap\tutorials\ = /webmap/tutorials/ > data layer: e:\gisweb\library\hydrography\shapes\hydro.shp = > /library/hydrography/shapes/hydro > > *** Here's my mapfile: *** > > # Mapserver Tutorial 1 > > NAME EX1 > EXTENT 7283578.700 505176.159 7495434.300 804253.028 > SIZE 300 300 > SHAPEPATH "/library/hydrography/shapes" > > LAYER > NAME "Hydrography" > DATA hydro > STATUS DEFAULT > TYPE LINE > > CLASS > COLOR 250 175 25 > END # end of class object > > END # end of layer object > > END # end of map file > > ***Here's the image tag used to display the map*** > > src="/cgi-bin/mapserv?map=/webmap/tutorials/example1.map&&;mode=map"> > > > > > Chad M. Nielsen, GIS Programmer/Analyst > Tillamook County Performance Partnership (TCPP) > Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm > TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ > > From rob at socialchange.net.au Mon Oct 30 16:37:36 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Tue, 31 Oct 2000 11:37:36 +1100 Subject: Any Australian contracting companies using mapserv References: <200010302239.JAA08185@eos.erin.gov.au> Message-ID: <39FE1450.A6021959@socialchange.net.au> Hi John As you will know, Social Change Online is a standards-oriented web development company experienced with mapserv. There may well be others with an interest in our capabilities and approach. We tend to build interfaces by wrapping a range of technologies in a standard protocol (the OpenGIS Web Map Server specification) where possible and build interfaces which are thus portable across many map serving technologies, and even more importantly allow simultaneous use of many map servers from different sites. The critical adjunct to this capability is our current R&D effort with the OGC on "service catalogs" - ie formal ways of describing the availability of map layers. I suppose we are focusing on the next generation of "Spatial Data Infrastructure". Our interface technology is not map-centric - but we have a Java Beans library that allows us to embed such distributed mapping applications into JSP pages. The viewer could be a static image or an applet within this. We can implement mapserv only interfaces under contract as well if required to meet short term needs, or we can take mapserv interfaces and rebuild them to allow access to other data sources at run-time. more information is available at http://webmap.socialchange.net.au A plethora of new sites using a range of mapping technologies is due for release and will shortly be visible from here. I will make a formal announcement to the mapserv list of those that use mapserv. Regards Rob Atkinson John Hockaday wrote: > Hi, > > It is our business policy to be able to get short term contractors in > to develop our interfaces if we don't have the resources to develop > them ourselves. At the moment we don't have any contracts available > but if I am to continue using mapserv as a GIS-WWW interface then I > need to know if there are some Australian contracting companines out > there who can do the work. If there aren't any contractors who can > develop in mapserv then I won't be able to continue using it and I will > probably have to go to ArcIMS or MapXtreme. > > This is unfortunate as my investigations have shown that mapserv seems > easier to use than the other two. > > Thanks in advance for any replies. > > Johnh -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 211 bytes Desc: Card for Rob Atkinson URL: From marin at here.is Mon Oct 30 16:47:55 2000 From: marin at here.is (Ma) Date: Tue, 31 Oct 2000 00:47:55 +0000 Subject: tutorial example 1 References: <000901c042c6$576c7f60$a14368aa@co.tillamook.or.us> Message-ID: <39FE16B9.D61E29FD@here.is> if your data are in e:\gisweb\library\hydrography\shapes\ for Win ver. of MapServer the correct SHAPEPATH can be: SHAPEPATH "library/hydrography/shapes" or SHAPEPATH "library\hydrography\shapes" or SHAPEPATH "e:\gisweb\library\hydrography\shapes" --- Ma Chad Nielsen wrote: > For some reason I am unable to implement the first tutorial example. I've > set everything up just like in the example but for some reason the image is > not being displayed. I'm using the latest version of Mapserver on an NT > Server. I've tried everything I could think of with the pathnames, quotes, > different data, etc. Below is a copy of the mapfile and html tag I'm using. > If anyone could give me some feedback on it I would appreciated it very > much. > > Many thanks, > Chad Nielsen > > MAPSERVER EXAMPLE #1: > > root: e:\gisweb\ = http://gisweb.co.tillamook.or.us/ > cgi folder: e:\gisweb\cgi-bin\ = /cgi-bin/ > project folder: e:\gisweb\webmap\tutorials\ = /webmap/tutorials/ > data layer: e:\gisweb\library\hydrography\shapes\hydro.shp = > /library/hydrography/shapes/hydro > > *** Here's my mapfile: *** > > # Mapserver Tutorial 1 > > NAME EX1 > EXTENT 7283578.700 505176.159 7495434.300 804253.028 > SIZE 300 300 > SHAPEPATH "/library/hydrography/shapes" > > LAYER > NAME "Hydrography" > DATA hydro > STATUS DEFAULT > TYPE LINE > > CLASS > COLOR 250 175 25 > END # end of class object > > END # end of layer object > > END # end of map file > > ***Here's the image tag used to display the map*** > > src="/cgi-bin/mapserv?map=/webmap/tutorials/example1.map&&;mode=map"> > > Chad M. Nielsen, GIS Programmer/Analyst > Tillamook County Performance Partnership (TCPP) > Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm > TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ From nwerneck at yahoo.com.br Tue Oct 31 00:03:07 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Tue, 31 Oct 2000 06:03:07 -0200 Subject: MapServer logo In-Reply-To: <000701c042d1$e40b0760$7837ba8c@nhv> Message-ID: <200010310805.CAA14093@lists.gis.umn.edu> > Might I suggest that instead of a globe, > we use a global projection of the Earth. > o Siusoidal ... Maybe we could take some polar projection, and bend the latitudes, so that the concentric circles look like the polygons of a sipder web! :) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mochaexpress at yahoo.com Tue Oct 31 00:32:35 2000 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Tue, 31 Oct 2000 00:32:35 -0800 (PST) Subject: MapServer Logo (was Re: MapServer icons) Message-ID: <20001031083235.19869.qmail@web2301.mail.yahoo.com> i have one that also used a globe type design. it also has an embedded "M". see if you like it. http://www.minnesota.com/~tom/mapserver/logo/mapserver-outline-flat-white-globe.gif --- Stephen Lime wrote: > You know I noticed a globe icon in the Greenmap > collection and really like it. No > continents etc but it's clearly identifiable as a > globe. Perhaps we could use it? It certainly > is not ESRIlike at all and is very clean and will > scale nicely. > > Steve > > > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Lyndon Zimmermann > 10/30/00 04:54PM > >>> > Greetings, > > There was mention of developing mapping icons. One > set available is the > Greenmap system, see http://www.greenmap.com/ for > details. It's > predominantly for community information maps. > > Lyndon Z > Adelaide > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From mochaexpress at yahoo.com Tue Oct 31 01:05:32 2000 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Tue, 31 Oct 2000 01:05:32 -0800 (PST) Subject: LDFLAGS Message-ID: <20001031090532.8984.qmail@web2305.mail.yahoo.com> on my alpha, under ELF, you'd need to do -Wl,-R/run/time/path -L/link/time/path --- Daniel Morissette wrote: > Sean O'Hagan wrote: > > > > Hello: > > > > Could someone point me in the right direction to > find out what LDFLAGS does? > > The best I can determine sofar is that it passes > flags to lex(1). However, > > I've also read that the LDFLAGS macro can be > redefined. > > > > While compiling mapscript 3.3.011 with PHP3 we got > a message saying that to > > enable PHP extensions we have to add -Wl to the > LDFLAGS line of the > > makefile. > > > > This warning message applies to you only if you are > using PHP as a CGI > (not as an Apache module) but you may get it all the > time. It usually > gives you a flag to add to the PHP CGI link command > to allow the use of > shared libraries in your PHP executable. > > It comes from a test that I borrowed from a > compilation script that came > with php-3.0.14 for dl() modules, so my explanation > is based on my > understanding of it and I may not be 100% right. > > On a Linux system, for instance, it tells you that > you need to add > "-rdynamic" to the LDFLAGS in the main PHP makefile > and then recompile > your PHP CGI executable. If you tried to use PHP as > a CGI with a PHP > executable not compiled with "-rdynamic" then you > would get errors when > you call 'dl("php_mapscript.so");' because your > executable is not able > to support loading of shared libraries. > > I've been told that on *BSD systems, the value to > add to LDFLAGS is > "-export-dynamic" ... I don't know about the other > OS's, but "-Wl" does > not seem to make much sense. > > I hope that helps, > -- > ------------------------------------------------------------ > Daniel Morissette > danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, > because if > you enjoy it today you can do it again > tomorrow. > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From dennis at avenza.com Tue Oct 31 04:55:50 2000 From: dennis at avenza.com (Dennis Christopher) Date: Tue, 31 Oct 2000 08:55:50 -0400 Subject: redraw acc. to query Message-ID: <39FEC154.9C585BA2@avenza.com> (I posted this question once before, but haven't got an answer.) I don't beleive it involves anything difficult. Can anyone give me an outline of how to do this? I want to have the current map redrawn according to a query result, with the areas selected by the query drawn in some specified highlight color, and the non-selected areas drawn as normal. For the user front end for this, ie a way to construct the query, I'll need to access all of the attribute names and values for a given layer. Dennis Christopher -- Dennis Christopher (dennis at avenza.com) Product Development Manager Avenza Software, Inc. From SDunning at nephrology.org Tue Oct 31 06:10:26 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Tue, 31 Oct 2000 08:10:26 -0600 Subject: Mapserver <=> ArcIMS <=> MapXtreme, A similar question... Message-ID: Sorry. The earlier URL was a dud... http://map4.mapaccess.net/NCI/Intro.htm Paul, Thank you for your response. -----Original Message----- From: Stephan Dunning [mailto:SDunning at nephrology.org] Sent: Friday, October 27, 2000 3:16 PM To: Mapserver (E-mail) Subject: Mapserver <=> ArcIMS <=> MapXtreme, A similar question... >Does anybody here have experience with both Mapserver and ArcIMS? >Do you have any comments you'd like to share? What do you think of >them? Which is better? etc. Along the same lines... Here's a link to the National Cancer Institute's Interactive Mapping site (powered by MapXtreme): http://map4.mapaccess.net/cgi-bin/hsrun/nci/NCI/MapXtreme.htx;start=CheckPas sword This is a good example of the functionality I'd like to acheive with our site. Much of it I have already accomplished or at least feel I can figure out how. But, the things I'm uncertain on are: * * A SQL Query window allowing advanced queries to be run against our MSSQL Server DB, and then creating a temporary mapfile to display the results "on the fly" It sounds like this may be possible using perl, but I'm not positive. Maybe javascript, java, VB, etc. could accomplish these things? * Choosing the number of categories/ranges for a choropleth map * Gradient color choices for a choropleth map/legend * Range breakout options (i.e. Equal Interval, Quantiles, Natural Breaks, etc.) I may not need to accomplish these task in the immediate future, but knowing that they are possible is my goal at this point. Thank you for any input!! Stephan From ddnebert at fgdc.gov Tue Oct 31 06:56:06 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 31 Oct 2000 09:56:06 -0500 Subject: Another GIF Message-ID: <39FEDD86.E441A957@fgdc.gov> How bout this? Needs cropping. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -------------- next part -------------- A non-text attachment was scrubbed... Name: mm.gif Type: image/gif Size: 2295 bytes Desc: not available URL: From kames at keyspanenergy.com Tue Oct 31 07:09:12 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 31 Oct 2000 10:09:12 -0500 Subject: Back doing maps Message-ID: <39FEE098.66E05153@keyspanenergy.com> I've been off doing other things and am now back at the maps. I have, however, been following the posts. I just have a basic NT related question that I hope someone can answer... The last version on mapserver I was running on NT had a problem with creating map images with unique names. For proof of concept purposes, I was running a script that went in every 90 seconds and renamed the NAME parameter to a concatenation of a randum number and time. Is there an NT build existing that has overcome this problem? If so, could I get a pointer to it? Thanks very much to all. Kieran Ames From ddnebert at fgdc.gov Tue Oct 31 07:09:14 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 31 Oct 2000 10:09:14 -0500 Subject: mapserver logo Message-ID: <39FEE09A.FC459D72@fgdc.gov> I am sending this as gif, though I see the last one somehow was .pcx. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -------------- next part -------------- A non-text attachment was scrubbed... Name: mm.gif Type: image/gif Size: 2295 bytes Desc: not available URL: From marin at here.is Tue Oct 31 07:39:46 2000 From: marin at here.is (Ma) Date: Tue, 31 Oct 2000 15:39:46 +0000 Subject: redraw acc. to query References: <39FEC154.9C585BA2@avenza.com> Message-ID: <39FEE7C2.E7154698@here.is> Dennis Christopher wrote: > (I posted this question once before, but haven't got an answer.) I don't > beleive it involves anything difficult. > Can anyone give me an outline of how to do this? > > I want to have the current map redrawn according to a query result, with > the areas selected > by the query drawn in some specified highlight color, and the > non-selected areas drawn as normal. > Add these lines to your map file. ########################### QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 # highlight color is yellow END ########################## > > For the user front end for this, ie a way to construct the query, I'll > need to access all of the > attribute names and values for a given layer. > The query via form (add this to any html file): To access all of the attribute names and values - in the template_html_file of the YOUR_LAYER_NAME layer you have to input all [YOUR_ITEM_NAME] items from your DBF file. For more: http://mapserver.gis.umn.edu/templates.html > > Dennis Christopher > -- > Dennis Christopher (dennis at avenza.com) > Product Development Manager > Avenza Software, Inc. --- Ma P.S. may I have a free copy of MAPublisher 4.0? I don't beleive it involves anything difficult. From morissette at dmsolutions.on.ca Tue Oct 31 07:42:30 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 31 Oct 2000 10:42:30 -0500 Subject: redraw acc. to query References: <39FEC154.9C585BA2@avenza.com> Message-ID: <39FEE866.38110B87@dmsolutions.on.ca> Dennis Christopher wrote: > > (I posted this question once before, but haven't got an answer.) I don't > beleive it involves anything difficult. > Can anyone give me an outline of how to do this? > > I want to have the current map redrawn according to a query result, with > the areas selected > by the query drawn in some specified highlight color, and the > non-selected areas drawn as normal. > Hi Dennis, Based on what I read in your previous message, I assume that you're trying to use the QUERYMAP feature with PHP MapScript (i.e. not the mapserv CGI), right? In MapScript, if you want selected items to be highlighted according to the QUERYMAP settings, you have to use the drawQueryMap() method after running your Query, instead of drawMap(). Say your map contains the following: QUERYMAP COLOR 255 0 0 STYLE HILITE END then you would need the following PHP code to draw your map with the result of the query highlighted: $gpoQueryResults = $gpoMap->QueryUsingPoint(...); ... if ($gpoQueryResults && $gpoQueryResults->numresults > 0) { $img = $gpoMap->drawquerymap($gpoQueryResults); $url = $img->saveWebImage(0, 0); } else { $img = $gpoMap->draw(); $url = $img->saveWebImage(0, 0); } Unfortunately, drawQueryMap() is not available in the current version PHP MapScript. It's one of those functions that we never needed and for which we had not written a PHP wrapper yet. Assefa is about to complete the task of going through all the MapScript classes in the PHP MapScript module and adding PHP wrappers for the missing ones. This should be committed in the CVS in the next few days. I hope that helps. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Oct 31 08:00:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 31 Oct 2000 10:00:41 -0600 Subject: Back doing maps Message-ID: What version you running? Version 3.3.xxx uses time + pid which is gauranteed to be unique unless you get the (number of allow process ids) hits in one second. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kieran J. Ames" 10/31/00 09:09AM >>> I've been off doing other things and am now back at the maps. I have, however, been following the posts. I just have a basic NT related question that I hope someone can answer... The last version on mapserver I was running on NT had a problem with creating map images with unique names. For proof of concept purposes, I was running a script that went in every 90 seconds and renamed the NAME parameter to a concatenation of a randum number and time. Is there an NT build existing that has overcome this problem? If so, could I get a pointer to it? Thanks very much to all. Kieran Ames From marin at here.is Tue Oct 31 08:07:15 2000 From: marin at here.is (Ma) Date: Tue, 31 Oct 2000 16:07:15 +0000 Subject: MapServer logo References: <200010310805.CAA14093@lists.gis.umn.edu> Message-ID: <39FEEE33.43B5718E@here.is> Why not everybody from this list come with a logo? We will have more than 200 suggestions after. If you are in maps then you are in arts, isn't it? :> --- Ma From morissette at dmsolutions.on.ca Tue Oct 31 08:11:29 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 31 Oct 2000 11:11:29 -0500 Subject: [Fwd: MapServer logo (was: Call for volunteers!)] Message-ID: <39FEEF31.48D11BFA@dmsolutions.on.ca> -------------- next part -------------- An embedded message was scrubbed... From: "Bisher Imam" Subject: RE: MapServer logo (was: Call for volunteers!) Date: Mon, 30 Oct 2000 11:28:50 -0700 Size: 5269 URL: From bjohnson at jecinc.on.ca Tue Oct 31 08:17:32 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Tue, 31 Oct 2000 11:17:32 -0500 Subject: Cached query map In-Reply-To: Message-ID: <002101c04356$1543fec0$1200a8c0@Pentium166> Sorry to bother everyone again about this - but I still can't get this part of the demo to work. Can someone who has followed the demo installation instructions do a query and tell me if they get an image showing up as the "cached query" (to the right of the one labelled "standard querymap") It seems that everything in the demo is working except for this. I want to find out if it's my mapserver configuration or a directory/file/permissions/path system issue From POSTMASTER at mnr.gov.on.ca Tue Oct 31 08:33:55 2000 From: POSTMASTER at mnr.gov.on.ca (POSTMASTER at mnr.gov.on.ca) Date: Tue, 31 Oct 2000 11:33:55 -0500 Subject: Remove - chuck.shannon@mnr.gov.on.ca Message-ID: <3E33383796A3D411B6BA0008C7912DC0591181@rlc00aex007.rlc.gov.on.ca> Please remove chuck.shannon at mnr.gov.on.ca from your mapserver list distribution list. Thank you. -----Original Message----- From: Postmaster (MNR) Sent: Tuesday, October 31, 2000 10:44 AM To: Postmaster (MNR) Subject: Notification: Inbound Mail Failure The following recipients did not receive the attached mail. A NDR was not sent to the originator for the following recipients for one of the following reasons: * The Delivery Status Notification options did not request failure notification, or requested no notification. * The message was of precedence bulk. NDR reasons are listed with each recipient, along with the notification requested for that recipient, or the precedence. chuck.shannon at mnr.gov.on.ca MSEXCH:IMS:GOVON:LRC-Bridge:RLC00AEX055 0 (000C05A6) Unknown Recipient Precedence: bulk The message that caused this notification was: <> -------------- next part -------------- An embedded message was scrubbed... From: dennis at avenza.com Subject: redraw acc. to query Date: Tue, 31 Oct 2000 07:55:50 -0500 Size: 961 URL: From steve.lime at dnr.state.mn.us Tue Oct 31 08:24:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 31 Oct 2000 10:24:16 -0600 Subject: MapServer Logo (was Re: MapServer icons) Message-ID: M is kinda hard to see but it ain't bad. A good idea for Fred to work from if he's still available. Steve >>> Caffeinate The World 10/31/00 02:32AM >>> i have one that also used a globe type design. it also has an embedded "M". see if you like it. http://www.minnesota.com/~tom/mapserver/logo/mapserver-outline-flat-white-globe.gif --- Stephen Lime wrote: > You know I noticed a globe icon in the Greenmap > collection and really like it. No > continents etc but it's clearly identifiable as a > globe. Perhaps we could use it? It certainly > is not ESRIlike at all and is very clean and will > scale nicely. > > Steve > > > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Lyndon Zimmermann > 10/30/00 04:54PM > >>> > Greetings, > > There was mention of developing mapping icons. One > set available is the > Greenmap system, see http://www.greenmap.com/ for > details. It's > predominantly for community information maps. > > Lyndon Z > Adelaide > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From steve.lime at dnr.state.mn.us Tue Oct 31 09:11:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 31 Oct 2000 11:11:57 -0600 Subject: MapServer logo Message-ID: Ha! The mass submission is a good idea though. Anyone willing to act as a repository? I'll work one up too. Steve >>> Ma 10/31/00 10:07AM >>> Why not everybody from this list come with a logo? We will have more than 200 suggestions after. If you are in maps then you are in arts, isn't it? :> --- Ma From teb at mallit.fr.umn.edu Tue Oct 31 09:29:46 2000 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 31 Oct 2000 11:29:46 -0600 (CST) Subject: MapServer logo Message-ID: <200010311729.LAA00131@mallit.fr.umn.edu> >Date: Tue, 31 Oct 2000 11:11:57 -0600 >From: "Stephen Lime" >To: , >Subject: Re: MapServer logo >Mime-Version: 1.0 >Content-Disposition: inline >Content-Transfer-Encoding: 8bit >X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id LAA17818 > >Ha! The mass submission is a good idea though. Anyone willing to act as a repository? >I'll work one up too. > Send them to mapserver-info at lists.gis.umn.edu (preferably with the subject "logo submission") and we'll put them up a Web site to display them. thanks, TOm > >>>> Ma 10/31/00 10:07AM >>> >Why not everybody from this list come with a logo? We will have more than >200 suggestions after. If you are in maps then you are in arts, isn't it? > >:> > >--- >Ma > > > From pnaciona at gis.umn.edu Tue Oct 31 09:48:03 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 31 Oct 2000 11:48:03 -0600 Subject: Cached query map References: <002101c04356$1543fec0$1200a8c0@Pentium166> Message-ID: <006201c04362$b850e860$9a496580@gis.umn.edu> Brian, You just found another undocumented bit in the mapserver demo. You need to edit the template file "demo_footer.html" and replace "queryfile=/usr/local/apache/htdocs/tmp/" from to "queryfile=e:\inetpub\wwwroot\tmp\" or whatever local directory it is you use to store the mapserver-generated image in. Good luck! Perry ----- Original Message ----- From: "Brian Johnson" To: Sent: Tuesday, October 31, 2000 10:17 AM Subject: Cached query map > Sorry to bother everyone again about this - but I still can't get this part > of the demo to work. > > Can someone who has followed the demo installation instructions do a query > and tell me if they get an image showing up as the "cached query" (to the > right of the one labelled "standard querymap") > > It seems that everything in the demo is working except for this. > > I want to find out if it's my mapserver configuration or a > directory/file/permissions/path system issue > From steve.lime at dnr.state.mn.us Tue Oct 31 09:44:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 31 Oct 2000 11:44:57 -0600 Subject: test suite instructions Message-ID: The test suite isolates particular operations you might want to do. Full applications are tough to learn from so the test suites are intentionally sterile. They can serve as starting points, eg. skeletons, for an application. To use them you basically need to replace/edit templates and mapfiles for a particular test with your own. I hope to distribute the test suite as a package soon. Steve >>> Dennis Christopher 10/27/00 03:01PM >>> Are there any instructions for using the test suites at: http://arachnid.dnr.state.mn.us/ms_test/index.html? e.g. dynamic queries? Anything that explains where to get the underlying data/or model your own data with it? what are you supposed to replace "WEB TEMPLATE test.html END": with? etc. Dennis Christopher -- Dennis Christopher (dennis at avenza.com) Product Development Manager Avenza Software, Inc. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From Matt.Wilkie at gov.yk.ca Tue Oct 31 09:56:19 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 31 Oct 2000 09:56:19 -0800 Subject: MapServer logo (was: Call for volunteers!) Message-ID: <6DD7370C9452D31192A10008C75D075307055265@raptor.gov.yk.ca> > Might I suggest that instead of a globe, > we use a global projection of the Earth. > > some possibilities > o Siusoidal > o Mollweide > o Robinson > o Eckert > o Goode Homolosine > o McBryde-Thomas > o Boggs > > The proj library documentation has good drawings > of these and others Personally I really like Buckminster Fuller's icosahedron "dymaxion" projection which breaks up the map in the oceans rather than in land masses and preserves both shape and area better than most other projections: http://www.teleport.com/~pdx4d/dymax.html Unfortunately it's trademarked and can't be used without permission (and payment to) the BF Institute (bfi.org). However Robert W. Gray did release some code which uses the same principles, using different algorithms, to produce Fuller's projection: http://www.rwgrayprojects.com/rbfnotes/maps/graymap1.html As I understand it, the trademark applies to the orientation and placement of the icosahedra not the use of them. So if the globe were "unpeeled" differently it would be okay to use it. My 2 cents. -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From bomek at bomek.yi.org Tue Oct 31 10:14:11 2000 From: bomek at bomek.yi.org (Frederic Marchand) Date: Tue, 31 Oct 2000 13:14:11 -0500 (EST) Subject: PHP, MySQL, and points! Message-ID: Hey there! I'm new to mapserver, and wow, im impressed what the opensource community can do!! I've run into some problems (which is normal i guess :-) I run mapserver on two server, one with PHP3 and one with PHP4. (i use the cvs version of mapserver for the php4 support and ms3.011 for the php3 one) Since i start playing with ms, i've got projection, zoom-in, zoom-out and other stuff working on most of maps i've got. But now, i would like to put point (like red dot) on the map where my lat,long coord are stored in mysql db. I know i can put point using the feature command directly from the map file but i would like to know how to create those point directly from PHP. I tried to use the object pointObj with the draw functions, but in PHP3 module, draw don't exist and in PHP4, where draw is there, there is no SHADESET support (as MARKERSET and LINESET). Also, about performance issue, my db contain 110000 points, so i wonder which will be the fastest way to dynamically show those points! Thanks a lot! And keep the good work! Fred From geosys at iafrica.com Tue Oct 31 10:32:29 2000 From: geosys at iafrica.com (Robert Stanton) Date: Tue, 31 Oct 2000 20:32:29 +0200 Subject: Labels and querying Message-ID: <007501c04369$082a7080$0201a8c0@GEOSYS1> Hi everyone I'm new to Mapserver and the whole Linux, Apache, HTML thing. I've managed to get the demo working and have developed some maps of my own, which contain point data of tourism attractions in this part of the world. However, when my point query results appear, the label for the selected point disappears. My 'Querymap' and layer 'Query' sections in my map file are virtually identical to the demo map file, except the query is of a point layer. I've searched the archives and tried umpteen things, to no avail. Does anyone have any ideas on this? In addition I would like to zoom in on the selected highlighted point. Is it possible to do this without scripting, ie using plain html and Mapserver variables, similar to what happens in the demo query, but with points? If so how? Many thanks in advance. Robert Stanton Durban South Africa From mochaexpress at yahoo.com Tue Oct 31 11:15:42 2000 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Tue, 31 Oct 2000 11:15:42 -0800 (PST) Subject: Another GIF Message-ID: <20001031191542.10064.qmail@web2302.mail.yahoo.com> if you scale that down to size for fonts etc, you'll lose the text inside. --- Doug Nebert wrote: > How bout this? Needs cropping. > > Doug. > > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 > 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > ATTACHMENT part 2 image/gif name=mm.gif __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ From pnaciona at gis.umn.edu Tue Oct 31 11:37:24 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 31 Oct 2000 13:37:24 -0600 Subject: Win32 Binaries In-Reply-To: <39FEEE33.43B5718E@here.is> Message-ID: Folks, NT users may now download Windows NT-compiled binaries of MapServer 3.3.011 at http://mapserver.gis.umn.edu/dload.html. This one was compiled with gd 1.2, TIFF, GeoTIFF, Proj.4, and JPEG support. Instructions for folks who download it: Extract files into a temp directory then copy mapserv.exe into the webserver's cgi-bin directory. The other binaries are mapserver utilities and can be copied anywhere. I usually just put it in the WINNT directory. You can read more about the utilities at http://mapserver.gis.umn.edu/utils.html Ciao! Perry N. PS: more docs and weekly binary updates will be available soon. From POSTMASTER at mnr.gov.on.ca Tue Oct 31 12:13:06 2000 From: POSTMASTER at mnr.gov.on.ca (POSTMASTER at mnr.gov.on.ca) Date: Tue, 31 Oct 2000 15:13:06 -0500 Subject: Remove chuck.shannon@mnr.gov.on.ca Message-ID: <3E33383796A3D411B6BA0008C7912DC059118E@rlc00aex007.rlc.gov.on.ca> Please remove chuck.shannon at mnr.gov.on.ca from all your distribution lists. Thank you. -----Original Message----- From: Postmaster (MNR) Sent: Tuesday, October 31, 2000 3:08 PM To: Postmaster (MNR) Subject: Notification: Inbound Mail Failure The following recipients did not receive the attached mail. A NDR was not sent to the originator for the following recipients for one of the following reasons: * The Delivery Status Notification options did not request failure notification, or requested no notification. * The message was of precedence bulk. NDR reasons are listed with each recipient, along with the notification requested for that recipient, or the precedence. chuck.shannon at mnr.gov.on.ca MSEXCH:IMS:GOVON:LRC-Bridge:RLC00AEX055 0 (000C05A6) Unknown Recipient Precedence: bulk The message that caused this notification was: <> -------------- next part -------------- An embedded message was scrubbed... From: bomek at bomek.yi.org Subject: PHP, MySQL, and points! Date: Tue, 31 Oct 2000 13:14:11 -0500 Size: 1412 URL: From benlewis1 at hotmail.com Tue Oct 31 12:14:54 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Tue, 31 Oct 2000 20:14:54 GMT Subject: defining projections Message-ID: Mapserver users, First I want to say I am really impressed with MapServer. It seems to be very fast and robust. I got the demo version of mapserver running on NT, and I've been able to set up a site pointing at other data in the UTM projection, but am having trouble getting data in Polyconic space to display. There is no error message, just does not show up. What is the syntax for referring to data in: Polyconic projection elipsoid GRS80 Long of origin -77:45:00 Lat of origin 40:55:30 Units meters Extent is minx, miny, maxx, maxy? Also if I go with geographic how to I specify extent? Does PROJ4 handle degrees? Am I in effect asking about PROJ4 commands here? Would this kind of information be in the PROJ4 documentation? - Ben Lewis _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From morissette at dmsolutions.on.ca Tue Oct 31 12:15:25 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 31 Oct 2000 15:15:25 -0500 Subject: PHP, MySQL, and points! References: Message-ID: <39FF285D.14A8CD76@dmsolutions.on.ca> Frederic Marchand wrote: > > Since i start playing with ms, i've got projection, zoom-in, zoom-out and > other stuff working on most of maps i've got. But now, i would like to put > point (like red dot) on the map where my lat,long coord are stored in > mysql db. I know i can put point using the feature command directly from > the map file but i would like to know how to create those point directly > from PHP. I tried to use the object pointObj with the draw functions, but > in PHP3 module, draw don't exist and in PHP4, where draw is there, there > is no SHADESET support (as MARKERSET and LINESET). > There are a couple ways to do it: 1- Using pointObj->draw() as you suggested above. For how to convert your symbol file from 3.3.011 format to the new format, see: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/msg00027.html 2- For best performance in rendering and spatial queries: Convert all your points to a shapefile... MapServer works very well with shapefiles. 3- Assuming that you don't display all 110000 points all the time, but instead run an initial SQL query to pre-select a set of points to play with based on some client selections, then see: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0009/msg00059.html Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bfraser at geoanalytic.com Tue Oct 31 13:31:22 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 31 Oct 2000 14:31:22 -0700 Subject: defining projections References: Message-ID: <004a01c04382$026dbe90$390002c0@servo> Ben, If your shapefile data is in a different coordinate system than your web map, you will have to specify the projection information for both the data and the rendered web map. For the web map, projection information is in the "header" part of the map file (I put it after LINESET). ====================================== EXTENT 518510.066 5555675.320 1004018.796 5911026.391 UNITS meters LINESET symbols/line.sym # View Projection definition PROJECTION "proj=tmerc" "ellps=clrk66" "k=0.9996" "x_0=500000" "lon_0=117w" END ====================================== The projection information for your shapefiles is in the LAYER definition (for each layer): LAYER NAME a.shp PROJECTION "geographic" END TYPE PolyLine : The definition of the projection parameters in covered in the PROJ4 doc, but they will look something like (not that I've tested it!): PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END You may want to include a false easting ("x_0=0.0"), a false northing ("y_0=0.0") and possibly a scale factor ("k=1.0"). I expect that MapServer/Proj4 will handle geographic values for the extent but the coordinates of the extent MUST be in the coordinate system of the web map. You cannot specify a web map projection of polyconic then give the extents in degrees. Hope this helps... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Ben Lewis" To: Sent: Tuesday, October 31, 2000 1:14 PM Subject: defining projections > Mapserver users, > First I want to say I am really impressed with MapServer. It seems to be > very fast and robust. I got the demo version of mapserver running on NT, and > I've been able to set up a site pointing at other data in the UTM > projection, but am having trouble getting data in Polyconic space to > display. There is no error message, just does not show up. What is the > syntax for referring to data in: > > Polyconic projection > elipsoid GRS80 > Long of origin -77:45:00 > Lat of origin 40:55:30 > Units meters > Extent is minx, miny, maxx, maxy? > > Also if I go with geographic how to I specify extent? Does PROJ4 handle > degrees? > > Am I in effect asking about PROJ4 commands here? Would this kind of > information be in the PROJ4 documentation? > > - Ben Lewis > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Oct 31 13:54:41 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 31 Oct 2000 16:54:41 -0500 Subject: defining projections Message-ID: <2951561DB3DDD0118FEC00805FFE98050494207A@s5-ccr-r1> Ben, You have to do a few things: define the projection of the output image, by defining a "PROJECTION" section in the "root" of the mapfile (Not within any object). Then, within each layer deifnition you can specify WHICH projection each layer is in, and yes, you should consult the PROJ.4 documentation to find out the exact parameters for whatever projection you are using. In your case you might want to check out one of the following : mpoly : Modified Polyconic poly : Polyconic (American) rpoly : Rectangular Polyconic I also strongly recommend you experiment with the ocmmand line tool first ! For geographic projection, simply use : PROJECTION geographic END Good luck ! J.F. > ---------- > From: Ben Lewis[SMTP:benlewis1 at hotmail.com] > Sent: Tuesday, October 31, 2000 3:14 PM > To: mapserver-users at lists.gis.umn.edu > Subject: defining projections > > Mapserver users, > First I want to say I am really impressed with MapServer. It seems to be > very fast and robust. I got the demo version of mapserver running on NT, > and > I've been able to set up a site pointing at other data in the UTM > projection, but am having trouble getting data in Polyconic space to > display. There is no error message, just does not show up. What is the > syntax for referring to data in: > > Polyconic projection > elipsoid GRS80 > Long of origin -77:45:00 > Lat of origin 40:55:30 > Units meters > Extent is minx, miny, maxx, maxy? > > Also if I go with geographic how to I specify extent? Does PROJ4 handle > degrees? > > Am I in effect asking about PROJ4 commands here? Would this kind of > information be in the PROJ4 documentation? > > - Ben Lewis > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > From johnh at erin.gov.au Tue Oct 31 14:16:51 2000 From: johnh at erin.gov.au (John Hockaday) Date: Wed, 1 Nov 2000 09:16:51 +1100 (EST) Subject: MapServer logo Message-ID: <200010312216.JAA09357@eos.erin.gov.au> HI, I'm not very good at drawing but I do have a few ideas if someone else wants to use them. 1. Make sure that the logo is small to reduce bandwidth or it can be reduced to a small image from a tiff etc. (I have mentioned this before on the list.) It's a real pain to wait a long time to download an image that isn't really useful. 2. Use 8 bit colours so that they are small and can be seen on old machines and browsers. 3. I would like to see the letters "MS", for MapServ, with one character being smaller, a different colour and superimposed on the other. (The "MS" would get up Bill Gates nose especially if it is copyrighted.) 4. A simple round circle representing the glode could be used as a background for the "MS" characters. Or better still, the milky way galaxy! Is there any reason why mapserv couldn't be used for bigger things? 5. Alternatively I liked someone's idea of representing the globe with South towards the top. I have seen this a few times on tea towels and map sheets and it is quite good. It makes people think and after all aren't we out to get people to take notice of this wonderfull system and what better way than to put up something funny or a bit unusual. Thanks for listening. Johnh > Date: Tue, 31 Oct 2000 16:07:15 +0000 > From: Ma > X-Accept-Language: en > MIME-Version: 1.0 > To: mapserver-users at lists.gis.umn.edu > Subject: MapServer logo > Content-Transfer-Encoding: 7bit > > Why not everybody from this list come with a logo? We will have more than > 200 suggestions after. If you are in maps then you are in arts, isn't it? > > :> > > --- > Ma > > From yeewen at petromap.com Tue Oct 31 14:35:29 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Tue, 31 Oct 2000 15:35:29 -0700 Subject: Java example Message-ID: I am able to display maps online using mapserver. Now, I like to move on to a Java version. I need to be able to click and drag a rectangle on the map to zoom in or out the map. Also, click and drag a line to pan the map. Can someone recommend a simple demo, including source code that will help me get started with this? Thanks in advance. Yeewen -------------- next part -------------- An HTML attachment was scrubbed... URL: From marin at here.is Tue Oct 31 16:03:19 2000 From: marin at here.is (Ma) Date: Wed, 01 Nov 2000 00:03:19 +0000 Subject: MapServer logo References: <200010312216.JAA09357@eos.erin.gov.au> Message-ID: <39FF5DC5.CAECC04@here.is> John Hockaday wrote: > 3. I would like to see the letters "MS", for MapServ, with one > character being smaller, a different colour and superimposed on > the other. (The "MS" would get up Bill Gates nose especially > if it is copyrighted.) MS, M$, ms... "m" and "s" mean Microsoft... nothing less or more... for example: http://www.google.com/search?q=MS --- Ma From bomek at bomek.yi.org Tue Oct 31 16:04:18 2000 From: bomek at bomek.yi.org (Frederic Marchand) Date: Tue, 31 Oct 2000 19:04:18 -0500 (EST) Subject: defining projections In-Reply-To: <2951561DB3DDD0118FEC00805FFE98050494207A@s5-ccr-r1> Message-ID: in your layer you could try to put this PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77W45'" "lat_0=40N55'30"" END Wonder how Mapserver handle seconds " , maybe someone can respond? \"? if it dont work with the 30" just screw it :-) > > From: Ben Lewis[SMTP:benlewis1 at hotmail.com] > > Sent: Tuesday, October 31, 2000 3:14 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: defining projections > > > > Mapserver users, > > First I want to say I am really impressed with MapServer. It seems to be > > very fast and robust. I got the demo version of mapserver running on NT, > > and > > I've been able to set up a site pointing at other data in the UTM > > projection, but am having trouble getting data in Polyconic space to > > display. There is no error message, just does not show up. What is the > > syntax for referring to data in: > > > > Polyconic projection > > elipsoid GRS80 > > Long of origin -77:45:00 > > Lat of origin 40:55:30 > > Units meters > > Extent is minx, miny, maxx, maxy? > > > > Also if I go with geographic how to I specify extent? Does PROJ4 handle > > degrees? > > > > Am I in effect asking about PROJ4 commands here? Would this kind of > > information be in the PROJ4 documentation? > > > > - Ben Lewis > > _________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > > Share information about yourself, create your own public profile at > > http://profiles.msn.com. > > > From lyndon.zimmermann at adelaide.edu.au Tue Oct 31 21:08:48 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Wed, 01 Nov 2000 15:38:48 +1030 Subject: Diplaying cached images References: <004a01c04382$026dbe90$390002c0@servo> Message-ID: <39FFA560.D87BC1C6@adelaide.edu.au> Greetings, I'm managing to develop images which are placed in /data/tmp, of the form ms97305232420288.png. 1. Each enquiry develops a new image (which I can see if I point my browser to /data/tmp) but I can't get the image to appear in the "template file" browser window. I have in the template file. 2. These png files just seem to accumulate. How are they purged? (or should I be naming them so they overwrite?) Regards, Lyndon Zimmermann Adelaide From lyndon.zimmermann at adelaide.edu.au Tue Oct 31 22:01:02 2000 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Wed, 01 Nov 2000 16:31:02 +1030 Subject: More on displaying cached images References: <004a01c04382$026dbe90$390002c0@servo> <39FFA560.D87BC1C6@adelaide.edu.au> Message-ID: <39FFB19E.92F04A64@adelaide.edu.au> Lyndon Zimmermann wrote: > > Greetings, > > I'm managing to develop images which are placed in /data/tmp, of the > form ms97305232420288.png. > Further on this: my directory structure seems to be the problem, something I've really not come to grips with. The MapServer-generated HTML (does this file have a name?) sits in the cgi-bin and loses all the links because the template file was written to sit in ../html/bioenergy_atlas/html/ (relative to /cgi-bin). Now either this MapServer generated HTML needs to be told to sit in the same directory as the template file or the links have to be written to survive the relocation. Any clues? Earlier I wrote: > 1. Each enquiry develops a new image (which I can see if I point my > browser to /data/tmp) but I can't get the image to appear in the > "template file" browser window. I have src="[img]" width="500" height="500" border="0"> in the template file. > > 2. These png files just seem to accumulate. How are they purged? (or > should I be naming them so they overwrite?) > > Regards, > > Lyndon Zimmermann > Adelaide Lyndon Z