From Dan.Vogler at saj02.usace.army.mil Mon May 1 13:40:21 2000 From: Dan.Vogler at saj02.usace.army.mil (Vogler, Dan SAJ) Date: Mon, 1 May 2000 15:40:21 -0500 Subject: Java "mapplet" and png image format Message-ID: <200005012035.PAA19540@lists.gis.umn.edu> I appreciate the posting of the mapplet java class. I believe it is a real step forward for client interactivity. We are trying to implement it with png file support and are having problems (the main one being lack of Java expertise). Do I have to write a customized encoder/decoder with JIMI (works with JDK 1.1) or do I need to try and make the applet plug into the Java Advanced Imaging API I/O? Need a point in the right direction. Dan in JAX From steve.lime at dnr.state.mn.us Tue May 2 08:41:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 02 May 2000 10:41:25 -0500 Subject: Java "mapplet" and png image format Message-ID: Um, I don't know. I'm not a hardcore java programmer and know just enough to be dangerous. Looking through the PNG programming resources there are a number of options. Current mapplet is 1.2 although it can be modified to work with jdk 1.1. (can't keep the friggin version straight in my mind) Seems some folks aren't to thrilled with Sun's image loaders. Here's a java library to use as a replacement. Supports PNG. - http://www.vlc.com.au/~justin/java/images/ JIMI looks to be dead since Sun bought the company. Which leaves JAI, which appears to be in a state of flux too given what 1.3 is supposed to support. I think I'd try the first link and see if it will build for you. I'll try here too. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vogler, Dan SAJ" 05/01/00 03:40PM >>> I appreciate the posting of the mapplet java class. I believe it is a real step forward for client interactivity. We are trying to implement it with png file support and are having problems (the main one being lack of Java expertise). Do I have to write a customized encoder/decoder with JIMI (works with JDK 1.1) or do I need to try and make the applet plug into the Java Advanced Imaging API I/O? Need a point in the right direction. Dan in JAX From RAldridge at linuxstart.com Tue May 2 10:17:17 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Tue, 2 May 2000 10:17:17 -0700 Subject: Tiled data Message-ID: <200005021717.KAA32278@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed May 3 07:30:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 03 May 2000 09:30:55 -0500 Subject: Tiled data Message-ID: Your layer definition might look like: LAYER NAME sections DATA sections # or whatever the name common to each directory is TYPE POLYLINE TILEITEM location # or whatever the item storing the tile path information is TILEINDEX /gisdata/index .... class/query/scaling stuff ... END Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 05/02/00 12:17PM >>> We have an ArcInfo Library that I want to replicate to tiled shapefiles for use with MapServer. I've set-up the directory structure on my mapserver box as follows: /gisdata/a1, /gisdata/a2, /gisdata/a3.../gisdata/j11. So, I have a rectangular grid that I use for my index that has 110 tiles. If my index.shp file is located in /gisdata, what should my .map file entry look like to draw section lines (sections.shp), for instance. I had this working before, but can't seem to figure it out now. Thanks, Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From danmo at videotron.ca Wed May 3 11:56:38 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 03 May 2000 14:56:38 -0400 Subject: MapServer and OGC WMT specs Message-ID: <39107666.42B59788@videotron.ca> Hi, We have a client that wants to setup a network of satellite servers based on MapServer and compliant with the OGC-WMT specs. I know that a little while ago, Doug Nebert made available a first version of an OGC-WMT wrapper for MapServer written in MapScript. I haven't given this wrapper a try yet, but I would be interested in hearing the status of that project and any other effort that might be happening on that front... I would rather spend my time improving (and promoting) an existing solution than start another one from scratch. Also, since Doug's wrapper uses Perl, and our client wants to use some WinNT servers, I would be interested in hearing from groups that have succesfully used the Perl version of MapScript on Win NT. I am already familiar with compiling, installing and using MapServer on NT, but I haven't used Perl on NT myself, so I am looking for hints on the best Perl solution with Apache on WinNT, and also any MapScript compilation and setup issues, if any... etc. Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From SullivanJ at nima.mil Wed May 3 12:21:23 2000 From: SullivanJ at nima.mil (Sullivan, James R. ) Date: Wed, 3 May 2000 15:21:23 -0400 Subject: MapServer and OGC WMT specs Message-ID: I would be interested in the answer to this question, too. Besides the capabilities XML file, have there been any more XML DTD's, etc produced for Mapserver? Jim Sullivan NIMA / TE -----Original Message----- From: Daniel Morissette [SMTP:danmo at videotron.ca] Sent: Wednesday, May 03, 2000 2:57 PM To: mapserver-users Cc: ddnebert at usgs.gov Subject: MapServer and OGC WMT specs Hi, We have a client that wants to setup a network of satellite servers based on MapServer and compliant with the OGC-WMT specs. I know that a little while ago, Doug Nebert made available a first version of an OGC-WMT wrapper for MapServer written in MapScript. I haven't given this wrapper a try yet, but I would be interested in hearing the status of that project and any other effort that might be happening on that front... I would rather spend my time improving (and promoting) an existing solution than start another one from scratch. Also, since Doug's wrapper uses Perl, and our client wants to use some WinNT servers, I would be interested in hearing from groups that have succesfully used the Perl version of MapScript on Win NT. I am already familiar with compiling, installing and using MapServer on NT, but I haven't used Perl on NT myself, so I am looking for hints on the best Perl solution with Apache on WinNT, and also any MapScript compilation and setup issues, if any... etc. Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed May 3 12:47:26 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 03 May 2000 14:47:26 -0500 Subject: MapServer and OGC WMT specs Message-ID: We have a plan in place to make MapServer fully OGC compliant as a server AND a client. Sorta waiting for funding though. The wrapper you speak of is not based on MapScript. Plans are to leverage MapScript heavily when building the OGC wrappers. Folks at the UMN can speak to timelines. As far as I know nobody has compiled MapScript on NT. I don't suspect many have tried. The SWIG (swig.sourceforge.net) website details how to build modules for use with ActiveState's perl release. ActiveState has probably the best NT perl release. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 05/03/00 01:56PM >>> Hi, We have a client that wants to setup a network of satellite servers based on MapServer and compliant with the OGC-WMT specs. I know that a little while ago, Doug Nebert made available a first version of an OGC-WMT wrapper for MapServer written in MapScript. I haven't given this wrapper a try yet, but I would be interested in hearing the status of that project and any other effort that might be happening on that front... I would rather spend my time improving (and promoting) an existing solution than start another one from scratch. Also, since Doug's wrapper uses Perl, and our client wants to use some WinNT servers, I would be interested in hearing from groups that have succesfully used the Perl version of MapScript on Win NT. I am already familiar with compiling, installing and using MapServer on NT, but I haven't used Perl on NT myself, so I am looking for hints on the best Perl solution with Apache on WinNT, and also any MapScript compilation and setup issues, if any... etc. Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From rob at socialchange.net.au Thu May 4 14:22:26 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 05 May 2000 07:22:26 +1000 Subject: MapServer and OGC WMT specs References: Message-ID: <3911EA12.369DD7CF@socialchange.net.au> Hi, the perl wrapper is workable but needs some work. also JRC in Italy have built a mapscript version using WMS 0.1 - this is trivial to update to WMS 1.0. Its at the same level of complexity. I have mapserv and the wrapper running on UNIX and NT - in fact its all running under W98 on my laptop. TODO #1: We need to build a GML response to getFeatureInfo query - GML issues are being thrashed out now - this should be easy enough to do. TODO #2: The big issue is CGI control over projection - I've yet to see a working example of the syntax and havent had time to reverse engineer the code to try. The script will have to map EPSG codes into mapserver (PROJ 4) equivalents. TODO #3: we ought to give it the ability to parse the .map file and build the capabilities XML automatically. The wrapper can run on any web server - so we dont need to have access to the actual installation to make it WMS compliant - however to parse the map file we would. Any ideas how best to overcome that? Rob Atkinson "Sullivan, James R." wrote: > I would be interested in the answer to this question, too. Besides the > capabilities XML file, have there been any more XML DTD's, etc produced for > Mapserver? > > Jim Sullivan > NIMA / TE > > -----Original Message----- > From: Daniel Morissette [SMTP:danmo at videotron.ca] > Sent: Wednesday, May 03, 2000 2:57 PM > To: mapserver-users > Cc: ddnebert at usgs.gov > Subject: MapServer and OGC WMT specs > > Hi, > > We have a client that wants to setup a network of satellite servers > based on MapServer and compliant with the OGC-WMT specs. I know > that a > little while ago, Doug Nebert made available a first version of an > OGC-WMT wrapper for MapServer written in MapScript. I haven't given > this wrapper a try yet, but I would be interested in hearing the > status > of that project and any other effort that might be happening on that > front... I would rather spend my time improving (and promoting) an > existing solution than start another one from scratch. > > Also, since Doug's wrapper uses Perl, and our client wants to use > some > WinNT servers, I would be interested in hearing from groups that > have > succesfully used the Perl version of MapScript on Win NT. I am > already > familiar with compiling, installing and using MapServer on NT, but I > haven't used Perl on NT myself, so I am looking for hints on the > best > Perl solution with Apache on WinNT, and also any MapScript > compilation > and setup issues, if any... etc. > > Thanks, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 287 bytes Desc: Card for Rob Atkinson URL: From steve.lime at dnr.state.mn.us Fri May 5 08:01:42 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 05 May 2000 10:01:42 -0500 Subject: MapServer and OGC WMT specs Message-ID: Couple of comments. All aspects of the WMT (with the possible exception of #2) are supportable via MapScript. Plans are to use MapScript to support all the get functions, should be pretty straight forward. Since MapScript can interact with shapefiles and inline features directly SVG support is not out of the question either. On the projection end. Word has it that Frank Warmerdam is looking into adapting Proj.4 to accept EPSG codes too. Hopefully that means not mods to the MapServer will be necessary. Will have to check on this one. A MapScript based solution would need to directly interact with any application data and configuration files to build an image, do a query or return features using SVG or whatever. There is no redirection like the current script. In those cases I think it'd be necessary for the wrapper to live with the application. I don't think that's a bad thing since it keeps things in one place. There are certainly enough other ways to make apps look like they live one place when they're actually someplace else. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Rob Atkinson 05/04/00 04:22PM >>> Hi, the perl wrapper is workable but needs some work. also JRC in Italy have built a mapscript version using WMS 0.1 - this is trivial to update to WMS 1.0. Its at the same level of complexity. I have mapserv and the wrapper running on UNIX and NT - in fact its all running under W98 on my laptop. TODO #1: We need to build a GML response to getFeatureInfo query - GML issues are being thrashed out now - this should be easy enough to do. TODO #2: The big issue is CGI control over projection - I've yet to see a working example of the syntax and havent had time to reverse engineer the code to try. The script will have to map EPSG codes into mapserver (PROJ 4) equivalents. TODO #3: we ought to give it the ability to parse the .map file and build the capabilities XML automatically. The wrapper can run on any web server - so we dont need to have access to the actual installation to make it WMS compliant - however to parse the map file we would. Any ideas how best to overcome that? Rob Atkinson "Sullivan, James R." wrote: > I would be interested in the answer to this question, too. Besides the > capabilities XML file, have there been any more XML DTD's, etc produced for > Mapserver? > > Jim Sullivan > NIMA / TE > > -----Original Message----- > From: Daniel Morissette [SMTP:danmo at videotron.ca] > Sent: Wednesday, May 03, 2000 2:57 PM > To: mapserver-users > Cc: ddnebert at usgs.gov > Subject: MapServer and OGC WMT specs > > Hi, > > We have a client that wants to setup a network of satellite servers > based on MapServer and compliant with the OGC-WMT specs. I know > that a > little while ago, Doug Nebert made available a first version of an > OGC-WMT wrapper for MapServer written in MapScript. I haven't given > this wrapper a try yet, but I would be interested in hearing the > status > of that project and any other effort that might be happening on that > front... I would rather spend my time improving (and promoting) an > existing solution than start another one from scratch. > > Also, since Doug's wrapper uses Perl, and our client wants to use > some > WinNT servers, I would be interested in hearing from groups that > have > succesfully used the Perl version of MapScript on Win NT. I am > already > familiar with compiling, installing and using MapServer on NT, but I > haven't used Perl on NT myself, so I am looking for hints on the > best > Perl solution with Apache on WinNT, and also any MapScript > compilation > and setup issues, if any... etc. > > Thanks, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From mochaexpress at yahoo.com Fri May 5 09:34:20 2000 From: mochaexpress at yahoo.com (mocha) Date: Fri, 05 May 2000 11:34:20 -0500 Subject: demo sites Message-ID: <4.3.1.2.20000505113250.00a9cdc0@pop.mail.yahoo.com> can you guys put up your URL where map servers is used? i'd like to see what you've done. i've seen the ones listed on the mapserver's web site. From bfischer at usgs.gov Fri May 5 12:38:02 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Fri, 5 May 2000 14:38:02 -0500 Subject: Trying to implement an identify tool Message-ID: I am trying to implement an identify tool similiar to how ArcView IMS works. I was wondering if anyone else has implement something like this with mapserver. What I want is a seperate window to appear after a feature is clicked on. This would be fairly simple if we could use a javascript function like window.open in the template parameter of a layer query. Is there any way to do something like this with the current version of mapserver? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From danmo at videotron.ca Fri May 5 13:36:46 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 05 May 2000 16:36:46 -0400 Subject: Trying to implement an identify tool References: Message-ID: <391330DE.3F4BB068@videotron.ca> bfischer at usgs.gov wrote: > > I am trying to implement an identify tool similiar to how ArcView IMS > works. I was wondering if anyone else has implement something like this > with mapserver. What I want is a seperate window to appear after a feature > is clicked on. This would be fairly simple if we could use a javascript > function like window.open in the template parameter of a layer query. Is > there any way to do something like this with the current version of > mapserver? > Brian, We do that kind of things, but we use MapScript... there might be ways to build a URL using the regular MapServer and do the same. Unfortunately none the apps that we have built and do that are publicly available yet... but here is an idea of the way we do it: When the user does a query in the main HTML page that contains the map then you use JavaScript (or MapScript in our case) to build the URL that will generate the query result and open the identify window using something like: newwin = window.open("/cgi-bin/mapserv?all_identify_query_params_here", "IdentifyWindow", "alwaysRaised=1,scrollbars=1,titlebar=1,toolbar=1,status=1,location=1,dependant=1,resizable=0,menubar=1"); This could probably be executed in the "onSubmit" callback of your form if you do not want to submit the main page. In our case, we have that line execute as the main map page is reloaded because we need to modify the main page after the query. I guess you probably had figured that out... so we can tell you that it works very well. Except for one thing... if the identify window already exists, and it is behind your current browser window, then the call to window.open() WILL NOT bring it back on top... and your user will think that the query did not work. The trick to go around that is to embed the following JavaScript line IN THE BODY of the identify window so that it is executed as it loads: self.focus(); This trick works well with both I.E. and Netscape. Good Luck! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Fri May 5 15:05:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 05 May 2000 17:05:16 -0500 Subject: Trying to implement an identify tool Message-ID: This is pretty easy using the standard MapServer or MapScript for that matter. You just need a little javascript to change the form target when the mode changes. That's how the data deli works. When a user wants to do a query, just before submission a results window is opened and the target property of the form is changed to use that window. That target could be a frame, a window or even a css layer. To do this implement an onSubmit method for your main form and do a little checking just before submitting the form. BTW LandView and it's underlying code will support this as well. Steve Steve <<< 5/ 5 2:38p >>> I am trying to implement an identify tool similiar to how ArcView IMS works. I was wondering if anyone else has implement something like this with mapserver. What I want is a seperate window to appear after a feature is clicked on. This would be fairly simple if we could use a javascript function like window.open in the template parameter of a layer query. Is there any way to do something like this with the current version of mapserver? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From nierula at bluewin.ch Sat May 6 13:04:19 2000 From: nierula at bluewin.ch (Bernd Nierula) Date: Sat, 6 May 2000 22:04:19 +0200 Subject: Mapserver Licence Message-ID: Hi List I am pretty new to the mapserver-software. I like the idea and concept behind it and I would like to use it for small mapping applications and/or prototyping. So I would like to know whether there are restrictions on the use of the software and/or a licence? ( I didn't find one on the homepage...) TIA Regards Bernd Nierula ---------------------------------------------------------------------------- --------------------------------------------------- Geo/Info Nierula Tel..: 01/8541241 B. Nierula GSM: 079/4034650 Frohbergstr. 11 Fax: 086/079/4034650 CH-8162 Steinmaur email: nierula at bluewin.ch ---------------------------------------------------------------------------- --------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Sat May 6 20:49:03 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sat, 06 May 2000 22:49:03 -0500 Subject: Mapserver Licence Message-ID: The license is part of the distribution. It's basically the MIT license that can be found at www.opensource.org. Steve <<< "Bernd Nierula" 5/ 6 3:03p >>> Hi List I am pretty new to the mapserver-software. I like the idea and concept behind it and I would like to use it for small mapping applications and/or prototyping. So I would like to know whether there are restrictions on the use of the software and/or a licence? ( I didn't find one on the homepage...) TIA Regards Bernd Nierula ---------------------------------------------------------------------------- --------------------------------------------------- Geo/Info Nierula Tel..: 01/8541241 B. Nierula GSM: 079/4034650 Frohbergstr. 11 Fax: 086/079/4034650 CH-8162 Steinmaur email: nierula at bluewin.ch ---------------------------------------------------------------------------- --------------------------------------------------- From johnh at erin.gov.au Mon May 8 00:24:30 2000 From: johnh at erin.gov.au (John Hockaday) Date: Mon, 8 May 2000 17:24:30 +1000 (EST) Subject: Can't get results from querying line shapefiles Message-ID: <200005080724.RAA11868@eos.erin.gov.au> Hi, I can query polygon shapfiles but I can't query line nor point shapefiles using mapserv. I get the following error in an HTML page: ================================================================== An error has occurred in msQueryUsingPoint(): General error message. No matching record(s) found. Please contact ..... ================================================================== I am calling mapserv with the following URL: http://atlas/cgi-bin/fornet/mapserv?map=/info/cgi-data/atlas/tmp/22217.map&imgex t=151.088+-24.0161041666667+151.381333333333+-23.7202708333333&mode=nquery&imgsi ze=300+240&img.x=151&img.y=102 My 22217.map file looks like this: ================================================================== SHADESET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/shade.sym MARKERSET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/marker.sym LINESET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/line.sym SHAPEPATH /info/cgi-data/atlas/fornet/ TRANSPARENT on LAYER DESCRIPTION "100k Coastline" NAME "coast" TYPE polygon STATUS default TOLERANCE 0 DATA /info/cgi-data/atlas/fornet/coast CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 255 130 SIZE 10 END END LAYER DESCRIPTION "Rail" NAME "rail" TYPE line STATUS default TOLERANCE 40 DATA /info/cgi-data/atlas/fornet/rail QUERY TEMPLATE /info/cgi-data/atlas/fornet/rail.html END CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 000 255 000 SIZE 10 END END END ================================================================== and rail.html looks like this: ================================================================== Result [rn]

  • Type: [FEAT_CODE]
  • From node: [FNODE_]
  • To Node: [TNODE_]
  • Length: [LENGTH]
  • ================================================================== which is similar to what I use for querying polygons which works. I'm not sure which mapserv version I am using. Is there some way of getting the version number? I would greatly appreciate if someone can give me some indication as to what I am doing wrong? Thank you in advance. Johnh From jan at intevation.de Mon May 8 05:29:17 2000 From: jan at intevation.de (Jan-Oliver Wagner) Date: Mon, 8 May 2000 14:29:17 +0200 Subject: Mapserver Licence In-Reply-To: ; from steve.lime@dnr.state.mn.us on Sat, May 06, 2000 at 10:49:03PM -0500 References: Message-ID: <20000508142917.A8222@cheops.usf.Uni-Osnabrueck.DE> On Sat, May 06, 2000 at 10:49:03PM -0500, Stephen Lime wrote: > The license is part of the distribution. It's basically the MIT license that can be found at www.opensource.org. perhaps it would help to put the license on the web pages. I think it is important especially because it is not identical with the MIT license and hence is actually not the MIT license. The difference is in the second paragraph. I am not sure which change of intention is aspiered with the different wordings. If there actually is none it might be less confusing to just use the MIT license as is. If there is another intention, IMHO it should be additionally explained. All the best and keep up this wonderful software Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From marin at here.is Mon May 8 08:42:46 2000 From: marin at here.is (Marin) Date: Mon, 08 May 2000 15:42:46 +0000 Subject: search, marker, label - how? Message-ID: <3916E076.EF80BA98@here.is> Hi there, I have point shape file (places with coordinates) and I would like to search for place name and after that to draw on the map marker (icon) with label - I don't want to draw the other places and the other labels for this shape file - I'd like to draw just the desired place and label it. How to do it? QUERYMAP just changes the color of the selected features. I send a picture - one example of what I need to do. So any idea how-to? --- Ma -------------- next part -------------- A non-text attachment was scrubbed... Name: map_ex.gif Type: image/gif Size: 1547 bytes Desc: not available URL: From nierula at bluewin.ch Mon May 8 08:52:32 2000 From: nierula at bluewin.ch (Bernd Nierula) Date: Mon, 8 May 2000 17:52:32 +0200 Subject: Query command without redraw/repositioning of the map Message-ID: Hi List I cannot find a possibility to issue a query command on a map without triggering a redraw and RECENTERING (to the mouseclick-coordinates) of the map... Can somebody please point me to the right direction... TIA Regards Bernd Nierula ---------------------------------------------------------------------------- --------------------------------------------------- Geo/Info Nierula Tel..: 01/8541241 B. Nierula GSM: 079/4034650 Frohbergstr. 11 Fax: 086/079/4034650 CH-8162 Steinmaur email: nierula at bluewin.ch ---------------------------------------------------------------------------- --------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at usgs.gov Mon May 8 12:04:35 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Mon, 8 May 2000 14:04:35 -0500 Subject: search, marker, label - how? Message-ID: Marin, I am doing something similiar to this. I am using dynamic expressions to change the map file parameters on the fly. This is done in the query template file. By using something like this: This is one way to approach it, but I am sure there are plenty others. Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 Marin Sent by: To: "mapserver-users at lists.gis.umn.edu" owner-mapserver-users at lists.g cc: is.umn.edu Subject: search, marker, label - how? 05/08/00 10:42 AM Hi there, I have point shape file (places with coordinates) and I would like to search for place name and after that to draw on the map marker (icon) with label - I don't want to draw the other places and the other labels for this shape file - I'd like to draw just the desired place and label it. How to do it? QUERYMAP just changes the color of the selected features. I send a picture - one example of what I need to do. So any idea how-to? --- Ma (Embedded image moved to file: pic20294.gif) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic20294.gif Type: image/gif Size: 1547 bytes Desc: Compuserve GIF URL: From steve.lime at dnr.state.mn.us Mon May 8 12:22:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 May 2000 14:22:10 -0500 Subject: Query command without redraw/repositioning of the map Message-ID: How are you doing the query? Normally you have a form control that changes the mode to one of the query modes. At that point you should not be panning and zooming and should not get a redraw unless you're using query maps or something else funky. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Bernd Nierula" 05/08/00 10:52AM >>> Hi List I cannot find a possibility to issue a query command on a map without triggering a redraw and RECENTERING (to the mouseclick-coordinates) of the map... Can somebody please point me to the right direction... TIA Regards Bernd Nierula ---------------------------------------------------------------------------- --------------------------------------------------- Geo/Info Nierula Tel..: 01/8541241 B. Nierula GSM: 079/4034650 Frohbergstr. 11 Fax: 086/079/4034650 CH-8162 Steinmaur email: nierula at bluewin.ch ---------------------------------------------------------------------------- --------------------------------------------------- From steve.lime at dnr.state.mn.us Mon May 8 12:28:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 May 2000 14:28:46 -0500 Subject: search, marker, label - how? Message-ID: Which querymap type are you using? Sounds like the default, HILITE. You can use SELECTED to draw just the selected features. They are symbolized as defined in the map file and not using the hilite color. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Marin 05/08/00 10:42AM >>> Hi there, I have point shape file (places with coordinates) and I would like to search for place name and after that to draw on the map marker (icon) with label - I don't want to draw the other places and the other labels for this shape file - I'd like to draw just the desired place and label it. How to do it? QUERYMAP just changes the color of the selected features. I send a picture - one example of what I need to do. So any idea how-to? --- Ma From danmo at videotron.ca Mon May 8 16:06:16 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 08 May 2000 19:06:16 -0400 Subject: Mapserver Licence References: <20000508142917.A8222@cheops.usf.Uni-Osnabrueck.DE> Message-ID: <39174868.EFDBF891@videotron.ca> Jan-Oliver Wagner wrote: > > On Sat, May 06, 2000 at 10:49:03PM -0500, Stephen Lime wrote: > > The license is part of the distribution. It's basically the MIT license that can be found at www.opensource.org. > > perhaps it would help to put the license on the web pages. I agree that it would be great to have a page on the web site that contains the official license. Then right at the beginning it would be clear for new users that MapServer comes with no strings attached, a big advantage over other pseudo-free packages. I know this information is already in a README somewhere, but you have to download the source and find the README before you have your licensing questions answered. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From kafka at email.cz Tue May 9 00:54:28 2000 From: kafka at email.cz (=?iso-8859-2?B?qXTscOFuIEthZmth?=) Date: Tue, 9 May 2000 09:54:28 +0200 Subject: No subject Message-ID: <000801bfb98b$cd160bb0$fb01a8c0@gis2.oku-kh.cz> Hi! can you tell me: - may I make a query based on more than one attribute? What is the syntax? - does the mapserver contribute national character sets (in querying, labeling). How can I make it possible? thanks Stepan Kafka From berend.veldkamp at aris.nl Tue May 9 01:14:01 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Tue, 09 May 2000 10:14:01 +0200 Subject: remove temp files Message-ID: <3917C8C9.B068AE3@aris.nl> Hi all, What is the best way to get rid of the temporary gif's that mapserver creates? Is it something my webserver takes care of, or do I have write a script to do this. TIA, Berend -- ______________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From marin at here.is Tue May 9 02:53:35 2000 From: marin at here.is (Ma) Date: Tue, 09 May 2000 09:53:35 +0000 Subject: remove temp files References: <3917C8C9.B068AE3@aris.nl> Message-ID: <3917E01F.E2BCDDF1@here.is> man crontab --- Ma Berend Veldkamp wrote: > Hi all, > What is the best way to get rid of the temporary gif's that mapserver > creates? Is it something my webserver takes care of, or do I have write > a script to do this. > TIA, > > Berend > > -- > ______________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl > ______________________________________________ From berend.veldkamp at aris.nl Tue May 9 03:24:42 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Tue, 09 May 2000 12:24:42 +0200 Subject: remove temp files References: <3917C8C9.B068AE3@aris.nl> <3917E01F.E2BCDDF1@here.is> Message-ID: <3917E76A.F1C56186@aris.nl> Thanks, I know how crontab works. I was only hoping there existed some feature in mapserver which deletes the gifs. Bye, Berend Ma wrote: > man crontab > > --- > Ma > > Berend Veldkamp wrote: > > > Hi all, > > What is the best way to get rid of the temporary gif's that mapserver > > creates? Is it something my webserver takes care of, or do I have write > > a script to do this. > > TIA, > > > > Berend > > -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From steve.lime at dnr.state.mn.us Tue May 9 07:54:05 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 09 May 2000 09:54:05 -0500 Subject: remove temp files Message-ID: here's the script we use, runs hourly: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Berend Veldkamp 05/09/00 05:24AM >>> Thanks, I know how crontab works. I was only hoping there existed some feature in mapserver which deletes the gifs. Bye, Berend Ma wrote: > man crontab > > --- > Ma > > Berend Veldkamp wrote: > > > Hi all, > > What is the best way to get rid of the temporary gif's that mapserver > > creates? Is it something my webserver takes care of, or do I have write > > a script to do this. > > TIA, > > > > Berend > > -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From cfuhrman at tfcci.com Tue May 9 07:59:54 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Tue, 9 May 2000 10:59:54 -0400 (EDT) Subject: MapScript Shapefile Object Message-ID: Howdy, I'm presently using Perl/Mapscript to connect to a remote database, retrieve coordinate data, generate a shapefile, and then, from the shapefile, generate an image. What I'm having problems with is that I'm generating the shapefiles okay, but when I look in the shapefile object, the numshapes attribute is set to zero which means I can't iterate through it to draw all it's shapes. According to the documentation, numshapes is a read-only attribute so I assumed it would be updated automatically. Here's some sample code (paraphrased :) foreach $layername (@layers) { print "Generating $layername\n"; $sth->execute(uc $layername); ($layer_id, $type) = $sth->fetchrow(); print " Generating shapefile\n"; # This returns a ShapefileObj $shapefile = GenShapefile($dbh, $dbh_dbf, $type, $layer_id, $layername, $extent); print "Getting layer"; $layer = $map->getLayerByName($layername); for ($i=0; $i<$shapefile->{numshapes}; $i++) { print "."; $class = new classObj($layer); $shapefile->get($i, $shape); $shape->draw($map, $layer, $img, $class, "An object"); } # for ($i=0; $i<$shapefile->{numshapes}; $i++) print "\n"; undef $shapefile; } # foreach $layername (@layers) { print "Saving image\n"; mapscript::msSaveImage($img, "temp.png", 1, 1); My question is that is $shapefile->{numshapes} supposed to be updated automatically or do I have to keep track of it myself? I am using version 3.3.010 of MapScript with GD 1.7.3 compiled in. Cheers! -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From danmo at videotron.ca Tue May 9 09:01:33 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 09 May 2000 12:01:33 -0400 Subject: MapScript Shapefile Object References: Message-ID: <3918365D.14A9232D@videotron.ca> Chris Fuhrman wrote: > > Howdy, > > I'm presently using Perl/Mapscript to connect to a remote database, > retrieve coordinate data, generate a shapefile, and then, from the > shapefile, generate an image. > > What I'm having problems with is that I'm generating the shapefiles okay, > but when I look in the shapefile object, the numshapes attribute is set to > zero which means I can't iterate through it to draw all it's shapes. > > According to the documentation, numshapes is a read-only attribute so I > assumed it would be updated automatically. > Have you tried closing the shapefile after it's been created and then repoening it in read access? I ran into a similar problem (on Windows)... I was creating shapefiles using the PHP/MapScript which is based on the same functions as the Perl MapScript, and I realized that the last changes to the shape file do not appear to be flushed to disk until the file is closed. Closing the file and repoening it solved the problem... I have to admit that I didn't look into the MapServer code to try to understand what was really happening. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bfischer at usgs.gov Tue May 9 09:10:38 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 9 May 2000 11:10:38 -0500 Subject: remove temp files Message-ID: Does anyone have a similar script for the NT side? Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 "Stephen Lime" To: , Sent by: cc: owner-mapserver-users at lists.g Subject: Re: remove temp files is.umn.edu 05/09/00 09:54 AM here's the script we use, runs hourly: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Berend Veldkamp 05/09/00 05:24AM >>> Thanks, I know how crontab works. I was only hoping there existed some feature in mapserver which deletes the gifs. Bye, Berend Ma wrote: > man crontab > > --- > Ma > > Berend Veldkamp wrote: > > > Hi all, > > What is the best way to get rid of the temporary gif's that mapserver > > creates? Is it something my webserver takes care of, or do I have write > > a script to do this. > > TIA, > > > > Berend > > -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From trevor at banisterconsulting.com Tue May 9 09:29:41 2000 From: trevor at banisterconsulting.com (Trevor Banister) Date: Tue, 9 May 2000 10:29:41 -0600 Subject: Remove temp files on NT (RE: remove temp files) Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F865@banister4.conen.net> Create a batch file (i.e. DelOldGifs.bat) with the following line: del d:\inetpub\wwwroot\tmp\*.gif change the path if needed and schedule that job with NT Scheduler Trevor Banister Banister Consulting and Online Services -----Original Message----- From: bfischer at usgs.gov [mailto:bfischer at usgs.gov] Sent: Tuesday, May 09, 2000 10:11 AM To: Stephen Lime Cc: berend.veldkamp at aris.nl; mapserver-users at lists.gis.umn.edu; marin at here.is Subject: Re: remove temp files Does anyone have a similar script for the NT side? Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 "Stephen Lime" To: , Sent by: cc: owner-mapserver-users at lists.g Subject: Re: remove temp files is.umn.edu 05/09/00 09:54 AM here's the script we use, runs hourly: #!/bin/csh find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Berend Veldkamp 05/09/00 05:24AM >>> Thanks, I know how crontab works. I was only hoping there existed some feature in mapserver which deletes the gifs. Bye, Berend Ma wrote: > man crontab > > --- > Ma > > Berend Veldkamp wrote: > > > Hi all, > > What is the best way to get rid of the temporary gif's that mapserver > > creates? Is it something my webserver takes care of, or do I have write > > a script to do this. > > TIA, > > > > Berend > > -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From cfuhrman at tfcci.com Tue May 9 09:52:14 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Tue, 9 May 2000 12:52:14 -0400 (EDT) Subject: MapScript Shapefile Object In-Reply-To: <3918365D.14A9232D@videotron.ca> Message-ID: On Tue, 9 May 2000, Daniel Morissette wrote: > Have you tried closing the shapefile after it's been created and then > repoening it in read access? > That worked. :) Now if I can figure out why the following crashes: $shape->draw($map, $layer, $img, undef, "$i"); Suggestions? If anyone needs any additional info, please let me know. -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From cfuhrman at tfcci.com Tue May 9 10:04:11 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Tue, 9 May 2000 13:04:11 -0400 (EDT) Subject: MapScript Shapefile Object In-Reply-To: Message-ID: On Tue, 9 May 2000, Chris Fuhrman wrote: > Now if I can figure out why the following crashes: > > $shape->draw($map, $layer, $img, undef, "$i"); > Whoops. Figured out I wasn't preparing the Image first. It's generating an image now :) -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From danmo at videotron.ca Tue May 9 11:31:46 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 09 May 2000 14:31:46 -0400 Subject: MapScript Shapefile Object References: Message-ID: <39185992.19477EB8@videotron.ca> Stephen Lime wrote: > > The numshapes property is read only and is not kept up-to-date, > neither is the bounding box. Some internal parts of shapelib maintain > that information. The shapefile is not actually complete until the > mapscript object referencing it is dereferenced. At that point the > shapefile header is written to disk. Re-reading it now populates the > bounds and numshapes properties properly. That's how it works for > now and it could change. > > You don't have to actually create shapefiles to render shapes gathered > from external databases. It's actually more work. Instead you can use > the pointObj and shapeObj draw methods to do that. Works pretty good > and no disk access is necessary so it's faster. > How about querying? If I select a set of records from an SQL database that contain LAT/LON coordinates and only want to map those points, this can probably be done the way you suggest above. However, is there any way to query the same set of points in memory without creating a shape file on disk? My main concern is that I don't think shapes in memory carry any kind of attribute information (or maybe I overlooked that?), so even if I could query them in memory, how could I keep the link between the shapes in memory and the SQL records in order to display info from the database in response to the query? Any ideas about that? Or maybe it's just some parts of the shape object handling in MapScript that I have overlooked? Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From marin at here.is Tue May 9 11:46:25 2000 From: marin at here.is (Ma) Date: Tue, 09 May 2000 18:46:25 +0000 Subject: search, marker, label - how? References: Message-ID: <39185D00.1C3EEEF3@here.is> Thanks but this doesn't work for me. Other ideas, how-to? --- Ma bfischer at usgs.gov wrote: > Marin, > > I am doing something similiar to this. I am using dynamic expressions to > change the map file parameters on the fly. This is done in the query > template file. By using something like this: cgi-bin/mapserv?map=mymap.map&map_layer_1_class_1_expression=([attribute] > eq somevalue)&mode=map> > > This is one way to approach it, but I am sure there are plenty others. > > Brian Fischer > bfischer at usgs.gov > USGS WRD > 2280 Woodale Dr. > Mounds View, MN > (612) 783-3133 > > > > > > > > > > > Marin > Sent by: To: "mapserver-users at lists.gis.umn.edu" > owner-mapserver-users at lists.g cc: > is.umn.edu Subject: search, marker, label - how? > > > 05/08/00 10:42 AM > > > > Hi there, > > I have point shape file (places with coordinates) and I would like to > search for place name and after that to draw on the map marker (icon) > with label - I don't want to draw the other places and the other labels > for this shape file - I'd like to draw just the desired place and label > it. How to do it? > QUERYMAP just changes the color of the selected features. > I send a picture - one example of what I need to do. > So any idea how-to? > > --- > Ma > > (Embedded image moved to file: pic20294.gif) > > ------------------------------------------------------------------------ > Name: pic20294.gif > pic20294.gif Type: GIF Image (image/gif) > Encoding: base64 > Description: Compuserve GIF From steve.lime at dnr.state.mn.us Tue May 9 12:26:31 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 09 May 2000 14:26:31 -0500 Subject: MapScript Shapefile Object Message-ID: Presumably there is another mechanism to filter points before they are fetched, ala SQL. ShapeObj and pointObj are nothing more than containers for storing the spatial information. There is no attribute component what so ever. That doesn't mean they can't be part of larger structures that integrate the two types of attributes. Then you can do whatever your particular scripting language supports. MapScript has no provision for searching a list of features outside the shapefile environment. The functions to implement those types of operations are in place as distance and intersection methods. That sort of processing should only really be needed when accessing data that is not part of someother management system (i.e. RDMSes) like ascii files. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 05/09/00 01:31PM >>> Stephen Lime wrote: > > The numshapes property is read only and is not kept up-to-date, > neither is the bounding box. Some internal parts of shapelib maintain > that information. The shapefile is not actually complete until the > mapscript object referencing it is dereferenced. At that point the > shapefile header is written to disk. Re-reading it now populates the > bounds and numshapes properties properly. That's how it works for > now and it could change. > > You don't have to actually create shapefiles to render shapes gathered > from external databases. It's actually more work. Instead you can use > the pointObj and shapeObj draw methods to do that. Works pretty good > and no disk access is necessary so it's faster. > How about querying? If I select a set of records from an SQL database that contain LAT/LON coordinates and only want to map those points, this can probably be done the way you suggest above. However, is there any way to query the same set of points in memory without creating a shape file on disk? My main concern is that I don't think shapes in memory carry any kind of attribute information (or maybe I overlooked that?), so even if I could query them in memory, how could I keep the link between the shapes in memory and the SQL records in order to display info from the database in response to the query? Any ideas about that? Or maybe it's just some parts of the shape object handling in MapScript that I have overlooked? Thanks, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From berend.veldkamp at aris.nl Wed May 10 05:05:55 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 10 May 2000 14:05:55 +0200 Subject: prevent [img] from being created Message-ID: <391950A3.8EFFC3B5@aris.nl> Hi Is it possible to prevent [img], [legend] and [ref] from being created? I have one html page where the map, legend and reference map are shown. When user queries, a new page is opened showing query results, but no map(s) whatsoever. Still, the images are created. Maybe it's possible to use two different map files, ie query.map and browse.map? TIA Berend -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From fsvpss at eng.chula.ac.th Wed May 10 06:34:16 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Wed, 10 May 2000 20:34:16 +0700 Subject: join dbf item Message-ID: <39196557.B4810B4C@eng.chula.ac.th> Dear Steve and Co., we have an application that we need to get attribute saved in external dbf by using 'link' or 'join' item. Is is possible to do 'joinitem' on-the-fly. I've just seen that you can query 'joined item' during querying. Could you pls help us. Regards, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From steve.lime at dnr.state.mn.us Wed May 10 08:56:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 10 May 2000 10:56:10 -0500 Subject: join dbf item Message-ID: It's not in the code right now. It's not that it isn't technically feasable it's just that it would kill performance. I assume you want to annotate and/or classify based on this external data? I can look into it for a future release but it won't be added real soon. You can do this using mapscript. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Phisan Santitamnont 05/10/00 08:34AM >>> Dear Steve and Co., we have an application that we need to get attribute saved in external dbf by using 'link' or 'join' item. Is is possible to do 'joinitem' on-the-fly. I've just seen that you can query 'joined item' during querying. Could you pls help us. Regards, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From ddnebert at usgs.gov Wed May 10 10:08:22 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Wed, 10 May 2000 13:08:22 -0400 Subject: How to zoom to place names Message-ID: <39199786.7020701@usgs.gov> I have a need to use my map interface in two ways: 1) for the geographically literate, let them zoom in by dragging a rectangle and 2) for the spatially-challenged have a picklist of places that they can click on and have the map zoom to that location upon request. How should I package and translate such place names (they have envelope bounding rectangles associated with them) so that a refresh_map event would request a new map to be drawn for that area? How should I structure the names service? The biggest trick is that I have a large number of place names I could bring to use from an online gazetteer of 700,000 placenames! But I think I will start small with political subdivisions and big cities that only number in the thousands. Any hints or examples of code as to how I might structure this would be most helpful, and the kind of thing I would think many would like to see in a demo FAQ. -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From rchavez at perseus.tufts.edu Wed May 10 10:49:41 2000 From: rchavez at perseus.tufts.edu (Rob Chavez) Date: Wed, 10 May 2000 13:49:41 -0400 Subject: How to zoom to place names References: <39199786.7020701@usgs.gov> Message-ID: <002701bfbaa8$1e4f78a0$90024082@tufts.edu> I assume you are using mapscript? I've done something similar with mapscript. First a user selects a placename from an HTML select form that parameter gets passed to the script, which looks up the placename in an SQL database and grabs the points and the bounding box; the bounding box gets parsed as the map extent (with a little padding) and the point is rendered and labeled. I can post some code, if in fact you are using mapscript and would like to see it. One browser problem I've run into and something to consider: very large select lists sometime break browsers. I've used a placename list that are over 2000 items long and had Netscape go down in flames (only on Macs). This is probably just a simple memory allocation problem, but it does affect the end user's experience with your work. Rob Chavez Programmer Perseus Project rchavez at perseus.tufts.edu http://www.perseus.tufts.edu ----- Original Message ----- From: Doug Nebert To: Sent: Wednesday, May 10, 2000 1:08 PM Subject: How to zoom to place names > I have a need to use my map interface in two ways: 1) for the > geographically literate, let them zoom in by dragging a rectangle and 2) > for the spatially-challenged have a picklist of places that they can > click on and have the map zoom to that location upon request. > > How should I package and translate such place names (they have envelope > bounding rectangles associated with them) so that a refresh_map event > would request a new map to be drawn for that area? > > How should I structure the names service? The biggest trick is that I > have a large number of place names I could bring to use from an online > gazetteer of 700,000 placenames! But I think I will start small with > political subdivisions and big cities that only number in the thousands. > > Any hints or examples of code as to how I might structure this would be > most helpful, and the kind of thing I would think many would like to see > in a demo FAQ. > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From bowenj at peligroso.gaiaenv.com Wed May 10 12:21:05 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Wed, 10 May 2000 13:21:05 -0600 Subject: remove temp files References: <3917C8C9.B068AE3@aris.nl> Message-ID: <3919B6A1.E627C329@gaiaenv.com> Here is a little bit more on crontab: You need to ensure the cron daemon is started. Begin by editing a crontab entry. This invokes your default text editor (e.g., VI or emacs). Don't simply edit the crontab file...use the following command: crontab -e Enter your parameters in this file. Each line represents a command with parameters. This example blows away everything in the temp folder daily at 03:30. You can use wildcards for defaults. Obviously, you should double check your commands and settings so you don't run a command you regret! 30 3 * * * rm -rf /home/httpd/temp/* The format is MINUTE HOUR DAY_OF_MONTH MONTH DAY_OF_WEEK COMMAND Use a comma to separate multiple values and a hyphen to indicate ranges. If you need more than this, pick up a UNIX command reference. I did not find the man files overly useful for crontab. Berend Veldkamp wrote: > > Hi all, > What is the best way to get rid of the temporary gif's that mapserver > creates? Is it something my webserver takes care of, or do I have write > a script to do this. > TIA, > > Berend > > -- > ______________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl > ______________________________________________ From fsvpss at eng.chula.ac.th Wed May 10 19:35:16 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Thu, 11 May 2000 09:35:16 +0700 Subject: join dbf item References: Message-ID: <391A1C64.B051DF88@eng.chula.ac.th> Hi, Stephen Lime wrote: > It's not in the code right now. It's not that it isn't technically feasable it's just that > it would kill performance. I assume you want to annotate and/or classify based > on this external data? I can look into it for a future release but it won't be added > real soon. > > You can do this using mapscript. or we shall code it with 'C' to 'hard-join' for sake of performance. Thank for response Regards, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From steve.lime at dnr.state.mn.us Thu May 11 07:41:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 11 May 2000 09:41:10 -0500 Subject: How to zoom to place names Message-ID: I'd use an external database to hold my points, query it and use the results to initialize MapServer sessions. That's what we do here with the GNIS database for Minnesota. You can use the point and then either a scale value or a buffer (i.e. 5 miles) to initialize an interface. Unless you have a relatively small set of points of interest, pull down lists get bulky. I suppose you could regionalize them so the list changes as you zoom or pan, but that seems like an awful lot of work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Nebert 05/10/00 12:08PM >>> I have a need to use my map interface in two ways: 1) for the geographically literate, let them zoom in by dragging a rectangle and 2) for the spatially-challenged have a picklist of places that they can click on and have the map zoom to that location upon request. How should I package and translate such place names (they have envelope bounding rectangles associated with them) so that a refresh_map event would request a new map to be drawn for that area? How should I structure the names service? The biggest trick is that I have a large number of place names I could bring to use from an online gazetteer of 700,000 placenames! But I think I will start small with political subdivisions and big cities that only number in the thousands. Any hints or examples of code as to how I might structure this would be most helpful, and the kind of thing I would think many would like to see in a demo FAQ. -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From joel at crrel.usace.army.mil Thu May 11 08:05:07 2000 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Thu, 11 May 2000 11:05:07 -0400 Subject: How to zoom to place names In-Reply-To: Message-ID: doug .. i use these few lines to set map extent to a point + a buffer. "fname" and "zoom" are passed as cgi variables. joel $sql = "select * from a_table where featureID = '". $fname . "'"; $dbh = DBI->connect("DBI:mysql:$database", $user, $passwd); $sth = $dbh->prepare($sql) or die $dbh->errstr(); $sth->execute() or die $sth->errstr(); $data = $sth->fetchrow_hashref; $map = ''; $map = new mapObj($mapfile) or die('Unable to open mapfile.'); $point = new pointObj(); $point->{y} = $data->{'LAT_DD'}; $point->{x} = $data->{'LON_DD'}; $map->{extent}->{minx} = $point->{x} - $zoom; $map->{extent}->{miny} = $point->{y} - $zoom; $map->{extent}->{maxx} = $point->{x} + $zoom; $map->{extent}->{maxy} = $point->{y} + $zoom; $img = $map->draw() or die('Unable to draw map'); $layer = $map->getLayerByName('alayer'); $point->draw($map, $layer, $img, 0, $fname); $map->drawLabelCache($img); mapscript::msSaveImage($img, $image_path.$image_id, $map->{interlace}, $map->{transparent}); $dbh->disconnect( ); From cfuhrman at tfcci.com Thu May 11 09:11:09 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Thu, 11 May 2000 12:11:09 -0400 (EDT) Subject: Passing a gdImagePtrPtr type Message-ID: Howdy, Having an interesting problem with getting MapScript/Perl to correctly pass a gdImagePtrPtr type to a subroutine (you get a gdImagePtrPtr type when you call $MapObj->prepareImage()). What's happening is that I'm finding that the gdImagePtrPtr type is exceptionally volatile. Here's an example of what I'm trying to do: main : { # blah blah blah $img = $map->prepareImage(); RenderBase($dbh, $cgi, $img); # Do some other stuff ... mapscript::msSaveImage($img, "temp.png", 1, 1); } # main Unfortunately, this doesn't work. It produces a blank image. I believe that somewhere down the line, $img is getting clobbered at one point or else is pointing to memory that's been deallocated. Now, something like this *does* work: sub MySubroutine { $img = $map->prepareImage(); # Generate Image ... mapscript::msSaveImage($img, "temp.png", 1, 1); } # MySubroutine Essentially, what I'm trying to do is successfully pass $img to a subroutine and then get the new value back. I've tried the following to no avail: * Make $img a global variable * Pass in $img and make the subroutine return the new value * Pass in $img as a reference and dereference it within the subroutine. * Pass in $img as a regular variable and assume it's pointing to the correct data. I've gone through the perl debugger and it looks like $img is pointing to the same address space throughout which leads me to the conclusion that somewhere down the line, the memory is getting deallocated. Does anyone have any experience with this? -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From bfischer at usgs.gov Thu May 11 12:38:06 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Thu, 11 May 2000 14:38:06 -0500 Subject: Poll for learning internet programming Message-ID: Mapserver users, I am fairly new to developing applications on the internet and would like to hear from others who are much more experienced. I know HTML and some javascript, but I would like to learn another language to use for internet programming in developing GIS applications on the web. We are running our webserver on NT. I am wondering which language to learn Perl, Java, or another? I have also found a lot of tutorials on learning these languages, but I am not for sure if there are any really good ones. Any suggestions would help. Thanks, Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From rob at socialchange.net.au Thu May 11 12:39:03 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 12 May 2000 05:39:03 +1000 Subject: How to zoom to place names References: Message-ID: <391B0C56.C8A3236D@socialchange.net.au> A quick heads up- In our implementation of the OpenGIS "USL pilot" we are exploring the use of XML encoded gazetteers - static at this stage but looking for standard query/response behaviours next. The mapimage applet is being used to show locations as the user hovers over a list of placenames generated from this list, and an OGC map call used to access the base map for the applet. This will all be released (mapinage source) and an example visible within about a week Rob Atkinson Stephen Lime wrote: > I'd use an external database to hold my points, query it and use the > results to initialize MapServer sessions. That's what we do here with > the GNIS database for Minnesota. You can use the point and then > either a scale value or a buffer (i.e. 5 miles) to initialize an interface. > > Unless you have a relatively small set of points of interest, pull down > lists get bulky. I suppose you could regionalize them so the list changes > as you zoom or pan, but that seems like an awful lot of work. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Doug Nebert 05/10/00 12:08PM >>> > I have a need to use my map interface in two ways: 1) for the > geographically literate, let them zoom in by dragging a rectangle and 2) > for the spatially-challenged have a picklist of places that they can > click on and have the map zoom to that location upon request. > > How should I package and translate such place names (they have envelope > bounding rectangles associated with them) so that a refresh_map event > would request a new map to be drawn for that area? > > How should I structure the names service? The biggest trick is that I > have a large number of place names I could bring to use from an online > gazetteer of 700,000 placenames! But I think I will start small with > political subdivisions and big cities that only number in the thousands. > > Any hints or examples of code as to how I might structure this would be > most helpful, and the kind of thing I would think many would like to see > in a demo FAQ. > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net Director Social Change Online Mob: 0419 202 973 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From marin at hi.is Thu May 11 16:25:58 2000 From: marin at hi.is (Ma) Date: Fri, 12 May 2000 00:25:58 +0100 Subject: making the server Message-ID: <391B4185.B57BEC43@hi.is> Hi, I got the following error when I tried to initiated the script with browser: ld.so.1: map.cgi: fatal: libttf.so.2: open failed: No such file or directory [Fri May 12 18:15:12 2000] [error] [client localhost] Premature end of script headers: /usr/local/web/maps/mapserv.cgi I have also LD_LIBRARY_PATH=/usr/local/lib:/usr/lib What is wrong and how to fix it? --- Ma From johnh at erin.gov.au Thu May 11 18:21:36 2000 From: johnh at erin.gov.au (John Hockaday) Date: Fri, 12 May 2000 11:21:36 +1000 (EST) Subject: making the server Message-ID: <200005120121.LAA15127@eos.erin.gov.au> Ma, I got the same error after I moved mapserv from one machine to another. I was able to solve the problem by editing the Makefile and putting the full path name to the libttf.a library file. Eg. TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a I hope this helps. Johnh > Date: Fri, 12 May 2000 00:25:58 +0100 > From: Ma > X-Accept-Language: en > MIME-Version: 1.0 > To: "mapserver-users at lists.gis.umn.edu" > Subject: making the server > Content-Transfer-Encoding: 7bit > > Hi, > > I got the following error when I tried to initiated the script with > browser: > > ld.so.1: map.cgi: fatal: libttf.so.2: open failed: No such file or > directory > [Fri May 12 18:15:12 2000] [error] [client localhost] Premature end of > script headers: /usr/local/web/maps/mapserv.cgi > > I have also LD_LIBRARY_PATH=/usr/local/lib:/usr/lib > > What is wrong and how to fix it? > > --- > Ma > > From steve.lime at dnr.state.mn.us Fri May 12 08:07:22 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 May 2000 10:07:22 -0500 Subject: making the server Message-ID: Sorry guys. This should get easier. Dan Morissette has contributed auto configure scripts for the next version. They are in the CVS and nightly builds now and seems to work great. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Hockaday 05/11/00 08:21PM >>> Ma, I got the same error after I moved mapserv from one machine to another. I was able to solve the problem by editing the Makefile and putting the full path name to the libttf.a library file. Eg. TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a I hope this helps. Johnh > Date: Fri, 12 May 2000 00:25:58 +0100 > From: Ma > X-Accept-Language: en > MIME-Version: 1.0 > To: "mapserver-users at lists.gis.umn.edu" > Subject: making the server > Content-Transfer-Encoding: 7bit > > Hi, > > I got the following error when I tried to initiated the script with > browser: > > ld.so.1: map.cgi: fatal: libttf.so.2: open failed: No such file or > directory > [Fri May 12 18:15:12 2000] [error] [client localhost] Premature end of > script headers: /usr/local/web/maps/mapserv.cgi > > I have also LD_LIBRARY_PATH=/usr/local/lib:/usr/lib > > What is wrong and how to fix it? > > --- > Ma > > From mar.k at usa.net Fri May 12 08:20:58 2000 From: mar.k at usa.net (Mar.K) Date: Fri, 12 May 2000 15:20:58 +0000 Subject: making the server References: <200005120121.LAA15127@eos.erin.gov.au> Message-ID: <391C215A.DB1FE4FF@usa.net> what is this libttf.a? I don't have it. --- Ma John Hockaday wrote: > Ma, > > I got the same error after I moved mapserv from one machine to another. I was > able to solve the problem by editing the Makefile and putting the full path name > to the libttf.a library file. Eg. > > TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a > From trevor at banisterconsulting.com Fri May 12 09:01:13 2000 From: trevor at banisterconsulting.com (Trevor Banister) Date: Fri, 12 May 2000 10:01:13 -0600 Subject: making the server Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F88B@banister4.conen.net> Part of the Free Type library from www.freetype.org Trevor -----Original Message----- From: Mar.K [mailto:mar.k at usa.net] Sent: Friday, May 12, 2000 9:21 AM Cc: mapserver-users at lists.gis.umn.edu Subject: Re: making the server what is this libttf.a? I don't have it. --- Ma John Hockaday wrote: > Ma, > > I got the same error after I moved mapserv from one machine to another. I was > able to solve the problem by editing the Makefile and putting the full path name > to the libttf.a library file. Eg. > > TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a > From danmo at videotron.ca Fri May 12 08:58:42 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 12 May 2000 11:58:42 -0400 Subject: making the server References: Message-ID: <391C2A32.42772201@videotron.ca> Stephen Lime wrote: > > Sorry guys. This should get easier. Dan Morissette has contributed auto configure > scripts for the next version. They are in the CVS and nightly builds now and seems > to work great. > Unfortunately, I do not think that the current version of the configure script will solve that problem though. It seems to me like this is not a compilation problem, but a runtime library path problem where libttf.so.2 is not found in the regular lib search path. This type of problem is never fun... I ran into a similar thing on a SUN system that I use and that has a specially odd configuration. I tried setting LD_LIBRARY_PATH before starting Apache but that did not work. Since I did not have root access on that system to go change the system lib path (/etc/ld.so.conf), the only way that I found to go around the problem was to use ld command-line options to add the directory where my libs are to the runtime library search path... something like... Using gcc: gcc -G -Wl,-R -Wl,.:/path/to/my/libs ...... or using ld directly: ld -G -R.:/path/to/my/libs .... These are options for the ld that I had on Solaris 2.6, I think that on Linux the "-R" option would actually be called "-rpath". BTW, I guess a simpler solution would be to link with a static libttf.a, as someone suggested but unfortunately freetype does not build libttf.a by default... so you're stuck with shared libs only. Also, I think (but I didn't try it myself) that linking your shared lib using an absolute path instead of using the "-L" linker option might allow your executable to find the lib at runtime without having to modify the runtime lib search path. e.g. In the Makefile, try using: TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.so Please let us know if any of that solves your problem and we'll try to give the configure scripts the ability to handle those odd cases. -- ------------------------------------------------------------ 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. > > >>> John Hockaday 05/11/00 08:21PM >>> > Ma, > > I got the same error after I moved mapserv from one machine to another. I was > able to solve the problem by editing the Makefile and putting the full path name > to the libttf.a library file. Eg. > > TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a > > I hope this helps. > > Johnh > > > Date: Fri, 12 May 2000 00:25:58 +0100 > > From: Ma > > X-Accept-Language: en > > MIME-Version: 1.0 > > To: "mapserver-users at lists.gis.umn.edu" > > Subject: making the server > > Content-Transfer-Encoding: 7bit > > > > Hi, > > > > I got the following error when I tried to initiated the script with > > browser: > > > > ld.so.1: map.cgi: fatal: libttf.so.2: open failed: No such file or > > directory > > [Fri May 12 18:15:12 2000] [error] [client localhost] Premature end of > > script headers: /usr/local/web/maps/mapserv.cgi > > > > I have also LD_LIBRARY_PATH=/usr/local/lib:/usr/lib > > > > What is wrong and how to fix it? > > > > --- > > Ma > > > > From steve.lime at dnr.state.mn.us Fri May 12 09:24:45 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 May 2000 11:24:45 -0500 Subject: making the server Message-ID: Configure will fix the compilation. Dealing with shared libraries is another problem entirely. It's best handled in the web server configuration. Both netscape and apache have directives directives to set environment variables for CGI scripts. I've used both servers with mapserver and shared libraries with no problems. In apache for example you simply add: setenv LD_LIBRARY_PATH /usr/local/lib to httpd.conf and restart. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 05/12/00 10:58AM >>> Stephen Lime wrote: > > Sorry guys. This should get easier. Dan Morissette has contributed auto configure > scripts for the next version. They are in the CVS and nightly builds now and seems > to work great. > Unfortunately, I do not think that the current version of the configure script will solve that problem though. It seems to me like this is not a compilation problem, but a runtime library path problem where libttf.so.2 is not found in the regular lib search path. This type of problem is never fun... I ran into a similar thing on a SUN system that I use and that has a specially odd configuration. I tried setting LD_LIBRARY_PATH before starting Apache but that did not work. Since I did not have root access on that system to go change the system lib path (/etc/ld.so.conf), the only way that I found to go around the problem was to use ld command-line options to add the directory where my libs are to the runtime library search path... something like... Using gcc: gcc -G -Wl,-R -Wl,.:/path/to/my/libs ...... or using ld directly: ld -G -R.:/path/to/my/libs .... These are options for the ld that I had on Solaris 2.6, I think that on Linux the "-R" option would actually be called "-rpath". BTW, I guess a simpler solution would be to link with a static libttf.a, as someone suggested but unfortunately freetype does not build libttf.a by default... so you're stuck with shared libs only. Also, I think (but I didn't try it myself) that linking your shared lib using an absolute path instead of using the "-L" linker option might allow your executable to find the lib at runtime without having to modify the runtime lib search path. e.g. In the Makefile, try using: TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.so Please let us know if any of that solves your problem and we'll try to give the configure scripts the ability to handle those odd cases. -- ------------------------------------------------------------ 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. > > >>> John Hockaday 05/11/00 08:21PM >>> > Ma, > > I got the same error after I moved mapserv from one machine to another. I was > able to solve the problem by editing the Makefile and putting the full path name > to the libttf.a library file. Eg. > > TTF_LIB=-L./gdft -lgdft /opt/contrib/lib/libttf.a > > I hope this helps. > > Johnh > > > Date: Fri, 12 May 2000 00:25:58 +0100 > > From: Ma > > X-Accept-Language: en > > MIME-Version: 1.0 > > To: "mapserver-users at lists.gis.umn.edu" > > Subject: making the server > > Content-Transfer-Encoding: 7bit > > > > Hi, > > > > I got the following error when I tried to initiated the script with > > browser: > > > > ld.so.1: map.cgi: fatal: libttf.so.2: open failed: No such file or > > directory > > [Fri May 12 18:15:12 2000] [error] [client localhost] Premature end of > > script headers: /usr/local/web/maps/mapserv.cgi > > > > I have also LD_LIBRARY_PATH=/usr/local/lib:/usr/lib > > > > What is wrong and how to fix it? > > > > --- > > Ma > > > > From danmo at videotron.ca Fri May 12 09:55:44 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 12 May 2000 12:55:44 -0400 Subject: making the server References: Message-ID: <391C3790.304748E9@videotron.ca> Stephen Lime wrote: > > Configure will fix the compilation. Dealing with shared libraries is another problem > entirely. It's best handled in the web server configuration. Both netscape and apache > have directives directives to set environment variables for CGI scripts. I've used both > servers with mapserver and shared libraries with no problems. In apache for example > you simply add: > > setenv LD_LIBRARY_PATH /usr/local/lib > > to httpd.conf and restart. > Makes complete sense... I knew there had to be a proper way to pass environment vars somewhere in the Apache configuration but never managed to find it! Thanks! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon May 15 09:37:28 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 15 May 2000 11:37:28 -0500 Subject: MapServer and XML... Message-ID: Greetings all. I'd like to start a discussion concerning the relative merits of moving MapServer configuration files from the ad hoc formats they currently exist in to XML. Lot's of good reasons to do this, validation being one. Just thinking out loud and looking towards version 4.0. Comments appreciated. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From ddnebert at usgs.gov Mon May 15 11:14:28 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Mon, 15 May 2000 14:14:28 -0400 Subject: MapServer and XML... References: Message-ID: <39203E84.7010506@usgs.gov> Stephen Lime wrote: > Greetings all. I'd like to start a discussion concerning the relative merits of moving > MapServer configuration files from the ad hoc formats they currently exist in to XML. > Lot's of good reasons to do this, validation being one. Just thinking out loud and > looking towards version 4.0. Comments appreciated. > As many might be aware, the OpenGIS Web Mapping Specs include definition of capabilities in XML and the current pilot is working on specification of symbolization using XML structures. It would be nice to see what similarities there are between WMS and mapserv and use them. XML is now a pervasive technology with many parsers available to read through encoded files (It will get better as XML-Schema is used). Sounds like a good idea to me. Doug. > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From imap at chesapeake.net Mon May 15 22:22:50 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 16 May 2000 01:22:50 -0400 Subject: MapServer and XML... References: Message-ID: <3920DB2A.ED54C4C8@chesapeake.net> Doug, Can you provide a URL reference to the OpenGIS XML topics? I looked thru the list, but no mention of XML on the index page. Moving to an XML config is probably the way to go, but guaranteed to break the existing applications that use the old mapfiles. That would be painful to change all those mapfiles I have all over the place. Maybe a mapfile->XML conversion tool would be the ticket... or some way to accomodate either configuratoin as a stop-gap measure. I dont know for sure, but I suspect that XML is versatile enought to support all of the baggage we carry in the mapfile. Maybe we can come up with some concrete examples of how this might look? What this boils down to, is nested map objects (and the objects which make up a map) and if XML can support that, it would make perfect sense to persue that goal. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc 410.257.3187 Stephen Lime wrote: > > Greetings all. I'd like to start a discussion concerning the relative merits of moving > MapServer configuration files from the ad hoc formats they currently exist in to XML. > Lot's of good reasons to do this, validation being one. Just thinking out loud and > looking towards version 4.0. Comments appreciated. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From ddnebert at usgs.gov Tue May 16 06:24:57 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Tue, 16 May 2000 09:24:57 -0400 Subject: MapServer and XML... References: <3920DB2A.ED54C4C8@chesapeake.net> Message-ID: <39214C29.2040501@usgs.gov> imap at chesapeake.net wrote: > > Doug, Can you provide a URL reference to the OpenGIS XML topics? > I looked thru the list, but no mention of XML on the index page. > The Web Mapping Service specifies each server's "capabilities" using a hierarchical markup in XML for the server and a repeating section for each "layer" which is analogous to named layers in mapserv. This capabilities.xml file can be placed at a WMS server site for harvest into a services registry (so we know what map servers exist) or for interrogation by middleware or a smart client to offer layer choices to a user. See the WMS Get Capabilities interface specification. Also, any day now, the Geography Markup Language (as Recommended Paper) will be available for public review. It is not a specification, and despite the apparent similarity to a W3C "Recommendation", this is only a first step towards a future spec. GML has several flavors of implementation, but essentially encapsulates mapped Features, their 0- 1, and 2-D geometries, and attributes using XML markup. It is intended for use where a client wishes to cache objects for display and query without re-visiting the server and could be viewed as a type of export format for extracted or full vector data. The next phase of Web Mapping Testbed will take GML further towards a specification, but soon the recommended paper will be available for you to experiment with. > Moving to an XML config is probably the way to go, but guaranteed to > break the existing applications that use the old mapfiles. That > would be painful to change all those mapfiles I have all over the place. > Maybe a mapfile->XML conversion tool would be the ticket... or some way > to accomodate either configuratoin as a stop-gap measure. > Supporting either might be a good idea. > I dont know for sure, but I suspect that XML is versatile enought to support > all of the baggage we carry in the mapfile. Maybe we can come up with some > concrete examples of how this might look? What this boils down to, is nested > map objects (and the objects which make up a map) and if XML can support that, > it would make perfect sense to persue that goal. > XML most certainly stores hierarchies of information (think outline) with repeated groups, most elements having a starting and ending tag. The creation of a "rule" document, called a DTD, would help enforce or validate the map file. One quirky thing, but some parsers are very case sensitive, so the case of the tags you declare matters... See attached example of the demo map file manually converted to XML. Don't necessarily trust my assignments, but by defining these rules of encapsulation it will make the composition and testing of map file contents better. Doug. > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > 410.257.3187 > > > > Stephen Lime wrote: > > > > Greetings all. I'd like to start a discussion concerning the relative merits of moving > > MapServer configuration files from the ad hoc formats they currently exist in to XML. > > Lot's of good reasons to do this, validation being one. Just thinking out loud and > > looking towards version 4.0. Comments appreciated. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC 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: demo.xml Type: text/xml Size: 2500 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue May 16 07:15:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 May 2000 09:15:06 -0500 Subject: MapServer and XML... Message-ID: Pretty straight forward I'd say. How does one make the decision between making a a parameter a new tag or just having it as an attribute of another tag? For example: water vs Once a DTD is in place a conversion script should be a piece of cake. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Nebert 05/16/00 08:24AM >>> imap at chesapeake.net wrote: > > Doug, Can you provide a URL reference to the OpenGIS XML topics? > I looked thru the list, but no mention of XML on the index page. > The Web Mapping Service specifies each server's "capabilities" using a hierarchical markup in XML for the server and a repeating section for each "layer" which is analogous to named layers in mapserv. This capabilities.xml file can be placed at a WMS server site for harvest into a services registry (so we know what map servers exist) or for interrogation by middleware or a smart client to offer layer choices to a user. See the WMS Get Capabilities interface specification. Also, any day now, the Geography Markup Language (as Recommended Paper) will be available for public review. It is not a specification, and despite the apparent similarity to a W3C "Recommendation", this is only a first step towards a future spec. GML has several flavors of implementation, but essentially encapsulates mapped Features, their 0- 1, and 2-D geometries, and attributes using XML markup. It is intended for use where a client wishes to cache objects for display and query without re-visiting the server and could be viewed as a type of export format for extracted or full vector data. The next phase of Web Mapping Testbed will take GML further towards a specification, but soon the recommended paper will be available for you to experiment with. > Moving to an XML config is probably the way to go, but guaranteed to > break the existing applications that use the old mapfiles. That > would be painful to change all those mapfiles I have all over the place. > Maybe a mapfile->XML conversion tool would be the ticket... or some way > to accomodate either configuratoin as a stop-gap measure. > Supporting either might be a good idea. > I dont know for sure, but I suspect that XML is versatile enought to support > all of the baggage we carry in the mapfile. Maybe we can come up with some > concrete examples of how this might look? What this boils down to, is nested > map objects (and the objects which make up a map) and if XML can support that, > it would make perfect sense to persue that goal. > XML most certainly stores hierarchies of information (think outline) with repeated groups, most elements having a starting and ending tag. The creation of a "rule" document, called a DTD, would help enforce or validate the map file. One quirky thing, but some parsers are very case sensitive, so the case of the tags you declare matters... See attached example of the demo map file manually converted to XML. Don't necessarily trust my assignments, but by defining these rules of encapsulation it will make the composition and testing of map file contents better. Doug. > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > 410.257.3187 > > > > Stephen Lime wrote: > > > > Greetings all. I'd like to start a discussion concerning the relative merits of moving > > MapServer configuration files from the ad hoc formats they currently exist in to XML. > > Lot's of good reasons to do this, validation being one. Just thinking out loud and > > looking towards version 4.0. Comments appreciated. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ddnebert at usgs.gov Tue May 16 08:00:37 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Tue, 16 May 2000 11:00:37 -0400 Subject: MapServer and XML... References: Message-ID: <39216295.7040109@usgs.gov> Stephen Lime wrote: > Pretty straight forward I'd say. How does one make the decision between > making a a parameter a new tag or just having it as an attribute of another > tag? For example: > > water vs > Some of it is justa matter of style. I like to put things as properties on a line when they are almost always present, just to shorten the length of the file. I like the idea of knowing which named Layer block I am in expressly, rather than parsing it, though the other form of using only straight tags works well enough, too. > Once a DTD is in place a conversion script should be a piece of cake. > There are DTD generators that can use example XML markup to build the interpreted rules and values. I will look for one and pass the demo.xml through it. You will need to expland this to include all the various possibilities of terms within a given group, and other possible groups that may exist but were not expressed in the demo.map file. You can edit the DTD by hand to include these. > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Doug Nebert 05/16/00 08:24AM >>> > imap at chesapeake.net wrote: > > > > > Doug, Can you provide a URL reference to the OpenGIS XML topics? > > I looked thru the list, but no mention of XML on the index page. > > > > The Web Mapping Service specifies each server's "capabilities" using a > hierarchical markup in XML for the server and a repeating section for > each "layer" which is analogous to named layers in mapserv. This > capabilities.xml file can be placed at a WMS server site for harvest > into a services registry (so we know what map servers exist) or for > interrogation by middleware or a smart client to offer layer choices to > a user. See the WMS Get Capabilities interface specification. > > Also, any day now, the Geography Markup Language (as Recommended Paper) > will be available for public review. It is not a specification, and > despite the apparent similarity to a W3C "Recommendation", this is only > a first step towards a future spec. GML has several flavors of > implementation, but essentially encapsulates mapped Features, their 0- > 1, and 2-D geometries, and attributes using XML markup. It is intended > for use where a client wishes to cache objects for display and query > without re-visiting the server and could be viewed as a type of export > format for extracted or full vector data. The next phase of Web Mapping > Testbed will take GML further towards a specification, but soon the > recommended paper will be available for you to experiment with. > > > > > > > Moving to an XML config is probably the way to go, but guaranteed to > > break the existing applications that use the old mapfiles. That > > would be painful to change all those mapfiles I have all over the place. > > Maybe a mapfile->XML conversion tool would be the ticket... or some way > > to accomodate either configuratoin as a stop-gap measure. > > > > Supporting either might be a good idea. > > > > > > > I dont know for sure, but I suspect that XML is versatile enought to support > > all of the baggage we carry in the mapfile. Maybe we can come up with some > > concrete examples of how this might look? What this boils down to, is nested > > map objects (and the objects which make up a map) and if XML can support that, > > it would make perfect sense to persue that goal. > > > > XML most certainly stores hierarchies of information (think outline) > with repeated groups, most elements having a starting and ending tag. > The creation of a "rule" document, called a DTD, would help enforce or > validate the map file. One quirky thing, but some parsers are very case > sensitive, so the case of the tags you declare matters... See attached > example of the demo map file manually converted to XML. Don't > necessarily trust my assignments, but by defining these rules of > encapsulation it will make the composition and testing of map file > contents better. > > Doug. > > > > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc > > 410.257.3187 > > > > > > > > Stephen Lime wrote: > > > > > > Greetings all. I'd like to start a discussion concerning the relative merits of moving > > > MapServer configuration files from the ad hoc formats they currently exist in to XML. > > > Lot's of good reasons to do this, validation being one. Just thinking out loud and > > > looking towards version 4.0. Comments appreciated. > > > > > > Steve > > > > > > Stephen Lime > > > Internet Applications Analyst > > > > > > Minnesota DNR > > > 500 Lafayette Road > > > St. Paul, MN 55155 > > > 651-297-2937 > > > > > > > > > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ddnebert at usgs.gov Tue May 16 08:37:01 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Tue, 16 May 2000 11:37:01 -0400 Subject: DTD and fixed XML example for map file Message-ID: <39216B1D.2080605@usgs.gov> Found a neat validator/DTD generator at: http://www.pault.com/Xmltube/dtdgen.html Attached are a validated XML instance file and the DTD generated from it. Note that DTD elements are presented in alphabetic order rather than in logical order. Read the results carefully! However, when an item shows up as a part of another item (e.g.) WEB has HEADER and TEMPLATE, the parsing expected order of these subfields is rigorous in XML 1.0. You can't, say, legally switch the order of occurence of TEMPLATE and HEADER in a picky parser. I imagine future implementations based on XML-Schema will relax the element order and case sensitivity requirements of the current generation. -- Douglas D. Nebert Clearinghouse Coordinator FGDC 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: demo.xml Type: text/xml Size: 2935 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapserv.dtd URL: From johnh at erin.gov.au Tue May 16 16:19:38 2000 From: johnh at erin.gov.au (John Hockaday) Date: Wed, 17 May 2000 09:19:38 +1000 (EST) Subject: MapServer and XML... Message-ID: <200005162319.JAA18232@eos.erin.gov.au> Hi, We use XML to store all our layer and server information. We are waiting for OGIS to be finalised and to see how many people use it before we change our own XML structure. (After all SDTS appears to be not widely used.) We convert the XML information into dynamic map files on the fly for the ForNet mapserver to present gifs and queries. Your question on whether to use attributes or elements has been argued amongst the XML and SGML community for a long time. I like the approach of using elements when they can mean something to the public and attributes for the system variables. For example. Coasts point ... Where "LID" equals "Layer IDentification number" and "DSID" equals "DataServer IDentification number". These are used by the WWW presentation software and for layer indexing. The only restriction to the attributes is that you can't have duplicate attribute names. This will be identified if you try to parse your DTD or an instance of your document against your DTD. So the lession to learn there is use them sparingly. That's my two cents worth. John Hocakday > > Pretty straight forward I'd say. How does one make the decision between > making a a parameter a new tag or just having it as an attribute of another > tag? For example: > > water vs > > Once a DTD is in place a conversion script should be a piece of cake. > Stephen Lime From johnh at erin.gov.au Tue May 16 17:00:43 2000 From: johnh at erin.gov.au (John Hockaday) Date: Wed, 17 May 2000 10:00:43 +1000 (EST) Subject: Mapserv accessing SDE Message-ID: <200005170000.KAA18268@eos.erin.gov.au> Hi, I was wondering if anyone has been able to access SDE layers using the mapserv program. If so could you show me an example of your .map file and how you get mapserv to point to the SDE layers? We have our layers on a separate machine inside our firewall. We have the SDE client software on the same machine as the mapserv program. We already obtain access to the SDE layers via a C program using the SDE APIs so it should be easy to access the SDE layers using mapserv. Thanks in advance for your help. Johnh From steve.lime at dnr.state.mn.us Tue May 16 17:24:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 May 2000 19:24:41 -0500 Subject: Mapserv accessing SDE Message-ID: John: I have the framework for this layed out already and mostly coded. I'm having trouble binding shapes to a variable when retrieving them. If you could share your code that might help me over these last couple of hurdles. Otherwise you can't touch SDE yet. Steve <<< John Hockaday 5/16 7:06p >>> Hi, I was wondering if anyone has been able to access SDE layers using the mapserv program. If so could you show me an example of your .map file and how you get mapserv to point to the SDE layers? We have our layers on a separate machine inside our firewall. We have the SDE client software on the same machine as the mapserv program. We already obtain access to the SDE layers via a C program using the SDE APIs so it should be easy to access the SDE layers using mapserv. Thanks in advance for your help. Johnh From Tim.Mackey at agso.gov.au Tue May 16 17:42:07 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Wed, 17 May 2000 10:42:07 +1000 Subject: problem installing mapscript Message-ID: <52113C81E9ACD31182D40060B0570D9B176799@agsomail1.agso.gov.au> Hi, I'm having a problem installing mapscript in version 3.3.010. I am trying to install it with TIFF and GD 1.2. After installation (which seems to run ok), when I run either of the example scripts in ms_3.3.010/mapscript/perl/examples, I get the following error message: Can't load '/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/mapscript/mapscript. so' for module mapscript: ld.so.1: /usr/local/bin/sun5/perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/mapscript/mapscript.s o: symbol TT_Get_Face_Properties: referenced symbol not found at /usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169. at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/mapscript.pm line 7 BEGIN failed--compilation aborted at ./dump.pl line 3. Here is the contents of my "perlvars" file: /public2/tmackey/mapserv/ms_3.3.010 -DUSE_TIFF -DUSE_GD_1_2 -I. -I/public2/tmackey/mapserv/include -I/public2/tmackey/mapserv/ms_3.3.010/gd-1.2 -I/public2/tmackey/mapserv/ms_3.3.010/gdft -I/public2/tmackey/mapserv/tiff-v3.5.5/libtiff -L. -lmap -L/public2/tmackey/mapserv/ms_3.3.010/gd-1.2 -lgd -L/public2/tmackey/mapserv/ms_3.3.010/gdft -lgdft -lm Can anyone give me a suggestion as to how to fix this? thanks, Tim Mackey Web Applications Developer Australian Geological Survey Organisation email: tim.mackey at agso.gov.au From steve.lime at dnr.state.mn.us Tue May 16 20:50:31 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 May 2000 22:50:31 -0500 Subject: problem installing mapscript Message-ID: Looks like a problem finding shared libraries for freetype. On solaris you can set the environment variable LD_LIBRARY_PATH to contain the paths (seperated by :'s) of directories containing shared libs. Try doing that and running the dump script again. Steve <<< 5/16 7:43p >>> Hi, I'm having a problem installing mapscript in version 3.3.010. I am trying to install it with TIFF and GD 1.2. After installation (which seems to run ok), when I run either of the example scripts in ms_3.3.010/mapscript/perl/examples, I get the following error message: Can't load '/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/mapscript/mapscript. so' for module mapscript: ld.so.1: /usr/local/bin/sun5/perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/mapscript/mapscript.s o: symbol TT_Get_Face_Properties: referenced symbol not found at /usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169. at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/mapscript.pm line 7 BEGIN failed--compilation aborted at ./dump.pl line 3. Here is the contents of my "perlvars" file: /public2/tmackey/mapserv/ms_3.3.010 -DUSE_TIFF -DUSE_GD_1_2 -I. -I/public2/tmackey/mapserv/include -I/public2/tmackey/mapserv/ms_3.3.010/gd-1.2 -I/public2/tmackey/mapserv/ms_3.3.010/gdft -I/public2/tmackey/mapserv/tiff-v3.5.5/libtiff -L. -lmap -L/public2/tmackey/mapserv/ms_3.3.010/gd-1.2 -lgd -L/public2/tmackey/mapserv/ms_3.3.010/gdft -lgdft -lm Can anyone give me a suggestion as to how to fix this? thanks, Tim Mackey Web Applications Developer Australian Geological Survey Organisation email: tim.mackey at agso.gov.au From pcameron at Soils.Umn.EDU Thu May 18 10:12:04 2000 From: pcameron at Soils.Umn.EDU (Paul Cameron) Date: Thu, 18 May 2000 12:12:04 -0500 (CDT) Subject: mapscript query question Message-ID: Hello, I've been trying to figure out how the queries work with mapscript and was hoping someone could shed some light on it. I'd like to do a simple point in polygon query and get access to the dbf record for that polygon. The script is crashing on the line that calls queryByPoint with an internal server error. If anyone has some code that deals with queries in mapscript and are willing to share I'd be very appreciative. Thanks, paul Here's the code that's relevant to the query: #!/usr/local/bin/perl use mapscript; use CGI qw(:standard :html escape); $cgi = new CGI; $query_type = $mapscript::MS_SINGLE; $mode = $cgi->param('mode'); $x = $cgi->param('img.x'); $y = $cgi->param('img.y'); $mapfile = '/usr/people/pcameron/survey/scott/web/mapscript.map'; $map = new mapObj("$mapfile") or die "Unable to load map file. ", $mapscript::ms_error->{message}; if ($mode eq 'query') { $query_buffer = 10; $query = new queryResultObj; $point = new pointObj(); $point->{x} = $x; $point->{y} = $y; $query = $map->queryByPoint($point,$query_type,$query_buffer); &process_query; } From devoilp at dpi.qld.gov.au Thu May 18 15:56:33 2000 From: devoilp at dpi.qld.gov.au (Peter deVoil) Date: Fri, 19 May 2000 08:56:33 +1000 Subject: mapscript query question References: Message-ID: <39247521.40BB2B43@dpi.qld.gov.au> Hi, I was working on some TCL code for queries yesterday. Paul Cameron wrote: > > Hello, > > I've been trying to figure out how the queries work with mapscript and > was hoping someone could shed some light on it. I'd like to do a simple > point in polygon query and get access to the dbf record for that polygon. > The script is crashing on the line that calls queryByPoint with an > internal server error. If anyone has some code that deals with queries in Core dump? or no queries returned? > mapscript and are willing to share I'd be very appreciative. > > Thanks, > paul > > Here's the code that's relevant to the query: > > #!/usr/local/bin/perl > > use mapscript; > use CGI qw(:standard :html escape); > > $cgi = new CGI; > $query_type = $mapscript::MS_SINGLE; > > $mode = $cgi->param('mode'); > $x = $cgi->param('img.x'); > $y = $cgi->param('img.y'); > > $mapfile = '/usr/people/pcameron/survey/scott/web/mapscript.map'; > > $map = new mapObj("$mapfile") or die "Unable to load map file. ", > $mapscript::ms_error->{message}; > > if ($mode eq 'query') { > $query_buffer = 10; I'm guessing that this is your problem - setting the buffer size to -1 should use each layer's tolerance. > $query = new queryResultObj; > $point = new pointObj(); > $point->{x} = $x; > $point->{y} = $y; > $query = $map->queryByPoint($point,$query_type,$query_buffer); > &process_query; > } Then you have to do something with the query itself. Here's what I do in TCL (this exposes shortcomings of SWIG/tcl - it's close to unreadable.) ------ set p [canvas2point $c $config(map) $x $y] if {[set q [mapObj_queryUsingPoint $config(map) $p 1 -1]] != "NULL"} { queryResultObj_currentlayer_set $q 0 queryResultObj_currentshape_set $q 0 for {set s [queryResultObj_next $q]} \ {[shapeResultObj_layer_get $s] >= 0 && [shapeResultObj_shape_get $s] >= 0} \ {set s [queryResultObj_next $q]} { $txt insert end " $s, layer [shapeResultObj_layer_get $s], shape [shapeResultObj_shape_get $s]\n" set dbf $config(dbfFile) if {![file exists $dbf]} {error "missing dbf $dbf!"} set h [DBFOpen $dbf rb] set w [DBFGetFieldCount $h] for {set i 0} {$i < $w} {incr i} { set name [DBFGetFieldName $h $i] set value [DBFReadStringAttribute $h [shapeResultObj_shape_get $s] $i] $txt insert end "$name $value\n" } DBFClose $h ..... ---------- From joela at earthscan.com Thu May 18 17:20:37 2000 From: joela at earthscan.com (Joel Anderson) Date: Thu, 18 May 2000 18:20:37 -0600 Subject: Points, Lines, and Polygons - Dynamically??? Message-ID: Hi! Maybe I've completely missed this in the docs somewhere, but does anyone know if there is an option for drawing points, lines, and polygons on the maps dynamically (ie: using input from the web browser/java applet)? If so, is there any example code anyone would like to share? Joel Joel Anderson Systems Engineer/Developer EarthScan Network, Inc joela at earthscan.com From joela at earthscan.com Thu May 18 18:20:34 2000 From: joela at earthscan.com (Joel Anderson) Date: Thu, 18 May 2000 19:20:34 -0600 Subject: Modification: Points, Lines, and Polygons - Dynamically??? Message-ID: Hi! Sorry all, I should have also qualified my question by asking: is this available in the CGI interface, as I have wrapped the rest of my app around that. Apologies! Thanks Again! Joel Previous message follows: > Hi! > > Maybe I've completely missed this in the docs somewhere, but does anyone > know if there is an option for drawing points, lines, and polygons on the > maps dynamically (ie: using input from the web browser/java > applet)? If so, > is there any example code anyone would like to share? > > Joel > > Joel Anderson > Systems Engineer/Developer > EarthScan Network, Inc > joela at earthscan.com > From steve.lime at dnr.state.mn.us Fri May 19 07:07:01 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 19 May 2000 09:07:01 -0500 Subject: mapscript query question Message-ID: What happens when you run it from the command line and feed it a point? Also, you don't need the new queryResultObj. That constructor is only necessary when reading cached queries. Steve <<< Paul Cameron 5/18 12:16p >>> Hello, I've been trying to figure out how the queries work with mapscript and was hoping someone could shed some light on it. I'd like to do a simple point in polygon query and get access to the dbf record for that polygon. The script is crashing on the line that calls queryByPoint with an internal server error. If anyone has some code that deals with queries in mapscript and are willing to share I'd be very appreciative. Thanks, paul Here's the code that's relevant to the query: #!/usr/local/bin/perl use mapscript; use CGI qw(:standard :html escape); $cgi = new CGI; $query_type = $mapscript::MS_SINGLE; $mode = $cgi->param('mode'); $x = $cgi->param('img.x'); $y = $cgi->param('img.y'); $mapfile = '/usr/people/pcameron/survey/scott/web/mapscript.map'; $map = new mapObj("$mapfile") or die "Unable to load map file. ", $mapscript::ms_error->{message}; if ($mode eq 'query') { $query_buffer = 10; $query = new queryResultObj; $point = new pointObj(); $point->{x} = $x; $point->{y} = $y; $query = $map->queryByPoint($point,$query_type,$query_buffer); &process_query; } From steve.lime at dnr.state.mn.us Fri May 19 07:10:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 19 May 2000 09:10:34 -0500 Subject: Modification: Points, Lines, and Polygons - Dynamically??? Message-ID: There is some documentation for this in the CGI reference on the website, way at the bottom. The example is for a point but can be used for lines and polygons. Only difference is that the list of points is longer (remember closure for polys). How you populate the CGI vars is up to you. Steve <<< Joel Anderson 5/18 8:24p >>> Hi! Sorry all, I should have also qualified my question by asking: is this available in the CGI interface, as I have wrapped the rest of my app around that. Apologies! Thanks Again! Joel Previous message follows: > Hi! > > Maybe I've completely missed this in the docs somewhere, but does anyone > know if there is an option for drawing points, lines, and polygons on the > maps dynamically (ie: using input from the web browser/java > applet)? If so, > is there any example code anyone would like to share? > > Joel > > Joel Anderson > Systems Engineer/Developer > EarthScan Network, Inc > joela at earthscan.com > From pcameron at Soils.Umn.EDU Fri May 19 10:10:33 2000 From: pcameron at Soils.Umn.EDU (Paul Cameron) Date: Fri, 19 May 2000 12:10:33 -0500 (CDT) Subject: mapscript query question Message-ID: I tried running just the query part of the code from the command line and got the following error: Can't locate auto/mapObj/queryByPoin.al in @INC (@INC contains: /usr/freeware/lib/perl5/5.00502/irix-n32 /usr/freeware/lib/perl5/5.00502 /usr/freeware/lib/perl5/site_perl/5.005/irix-n32 /usr/freeware/lib/perl5/site_perl/5.005 /usr/freeware/lib/perl5/sgi_perl/irix-n32 /usr/freeware/lib/perl5/site_perl) at test.pl line 23 I looked around in all the other possible locations perl might have placed that file and can't find it. I'm running 3.3.007 right now, I'll grab the newest version and see if that helps. Thanks, paul >What happens when you run it from the command line and feed it a point? >Also, you don't need the new queryResultObj. That constructor is only >necessary when reading cached queries. > >Steve From marin at here.is Mon May 22 10:03:53 2000 From: marin at here.is (Ma) Date: Mon, 22 May 2000 17:03:53 +0000 Subject: map like this Message-ID: <39296879.50999B90@here.is> Hi there, how one can build maps like http://www.calle.com/world with mapserver? --- Ma From steve.lime at dnr.state.mn.us Mon May 22 11:56:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 22 May 2000 13:56:20 -0500 Subject: map like this Message-ID: Yes, if you have a global dataset. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 05/22/00 12:03PM >>> Hi there, how one can build maps like http://www.calle.com/world with mapserver? --- Ma From bisher at hwr.arizona.edu Mon May 22 16:14:54 2000 From: bisher at hwr.arizona.edu (Bisher Imam) Date: Mon, 22 May 2000 16:14:54 -0700 Subject: map like this In-Reply-To: Message-ID: A good global dataset can be generated from the DCW (Digital Chart of the World), which may be a little expensive. Naturally, you have to read the License agreement and make sure you have value added to your maps before putting them on the web. Bisher Imam -----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: Monday, May 22, 2000 11:56 AM To: marin at here.is; mapserver-users at lists.gis.umn.edu Subject: Re: map like this Yes, if you have a global dataset. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 05/22/00 12:03PM >>> Hi there, how one can build maps like http://www.calle.com/world with mapserver? --- Ma From marin at here.is Mon May 22 16:59:40 2000 From: marin at here.is (Ma) Date: Mon, 22 May 2000 23:59:40 +0000 Subject: map like this References: Message-ID: <3929C9EB.8176A4EF@here.is> I have the dataset. How can I build such a map interface on-fly (i.e. only the marker and the label on the map)? --- Ma Stephen Lime wrote: > Yes, if you have a global dataset. > > Stephen Lime > From cfuhrman at tfcci.com Tue May 23 06:00:24 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Tue, 23 May 2000 09:00:24 -0400 (EDT) Subject: Optimizing Data Base for GeoData Message-ID: Howdy, This might be slightly off topic, but I've presently got a web-based mapping/reporting system that I've got up-and-running. I'm using the MapScript perl module and am talking to a Postgres Data Base with all the geodata on it. The layout of the data base is similar to an ESRI shapefile (I can be more detailed if you want). The main problem I'm having is data base performance. I've tinkered with the data base and have added enough indexes to make a considerable difference in performance. I've also limited the number of layers I'm drawing when my scale is above a certain point. It looks like what we'll have to do is simply purchase faster hardware. When I moved the data base from a Solaris x86 box (either a P-233 or an AMD K6-300) to a Linux Box (450MHz K6-III) I got close to a 50% improvement and that's with the Linux box running the web server, perl script, AND Postgres. If anyone has any additional recommendations as far as laying out the data base is concerned, please let me know. Also, anyone have any experience with Oracle Spatial? Is it worth the $$? Finally, if anyone wishes to use PostgreSQL as a low-cost solution for writing a GIS type application, I can heartily recommend it. It comes with some nice geographic data types and functions. It also plays well with Perl. -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From ddnebert at usgs.gov Tue May 23 06:26:31 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Tue, 23 May 2000 09:26:31 -0400 Subject: Optimizing Data Base for GeoData References: Message-ID: <392A8707.9030600@usgs.gov> Chris Fuhrman wrote: > The main problem I'm having is data base performance. I've tinkered with > the data base and have added enough indexes to make a considerable > difference in performance. I've also limited the number of layers I'm > drawing when my scale is above a certain point. > > Finally, if anyone wishes to use PostgreSQL as a low-cost solution for > writing a GIS type application, I can heartily recommend it. It comes > with some nice geographic data types and functions. It also plays well > with Perl. Chris: Did you investigate the use of Sybase, Informix, DB2, or Oracle 8i for the Linux platform? Almost all of these are available for Linux now at no or low cost (Sybase came with RedHat 6.1; Oracle can be obtained with an unexpiring demo license) and most/all? support stored procedures and extensible data types. My understanding is that PostgreSQL is intended for research and demo applications but was never tuned for performance, just a testbed of features. It would seem to me that one of these other databases could be rigged to store each primitive with a searchable, indexed bounding envelope to return the feature as a BLOB. Or, for a chunk of change you could use tuned tools such as Oracle Spatial or SDE... What are others' experience? It would be very nice to have a low cost database engine to feed the mapserver. It would be even nicer if folks built their interfaces following the OpenGIS "Simple Features via SQL" access model. Then different brands of compatible databases could be accessed using the same SQL calls. This doesn't eliminate the need for database tuning, but allows for a common request interface. Doug. > > -- > Chris Fuhrman | Twenty First Century Communications > cfuhrman at tfcci.com | Software Engineer > (W) 614-442-1215 x271 | > (F) 614-442-5662 | PGP/GPG Public Key Available on Request > > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From millarj at lib.muohio.edu Tue May 23 06:34:59 2000 From: millarj at lib.muohio.edu (John Millard) Date: Tue, 23 May 2000 09:34:59 -0400 (EDT) Subject: Optimizing Data Base for GeoData In-Reply-To: Message-ID: Chris, You might look into the new PostgreSQL 7.0. I haven't used it yet, but one of the changes listed on their announcement is: "Optimizer Overhaul: Continuing on work started a year ago, the optimizer has been overhauled, allowing improved query execution and better performance with less memory usage. " The rest of the announcment can be found here: http://www.postgresql.org/news.html Might be helpful, John _________________________________________________________ John Millard Information Services Librarian Miami University, Oxford, OH 45056-1878 More Information: http://staff.lib.muohio.edu/~millarj/ gnupg public key: http://staff.lib.muohio.edu/~millarj/gpg/ > > Howdy, > > This might be slightly off topic, but I've presently got a > web-based mapping/reporting system that I've got up-and-running. I'm > using the MapScript perl module and am talking to a Postgres Data Base > with all the geodata on it. The layout of the data base is similar to an > ESRI shapefile (I can be more detailed if you want). > > The main problem I'm having is data base performance. I've tinkered with > the data base and have added enough indexes to make a considerable > difference in performance. I've also limited the number of layers I'm > drawing when my scale is above a certain point. > > It looks like what we'll have to do is simply purchase faster > hardware. When I moved the data base from a Solaris x86 box (either a > P-233 or an AMD K6-300) to a Linux Box (450MHz K6-III) I got close to a > 50% improvement and that's with the Linux box running the web server, perl > script, AND Postgres. If anyone has any additional recommendations as far > as laying out the data base is concerned, please let me know. > > Also, anyone have any experience with Oracle Spatial? Is it worth the $$? > > Finally, if anyone wishes to use PostgreSQL as a low-cost solution for > writing a GIS type application, I can heartily recommend it. It comes > with some nice geographic data types and functions. It also plays well > with Perl. > > -- > Chris Fuhrman | Twenty First Century Communications > cfuhrman at tfcci.com | Software Engineer > (W) 614-442-1215 x271 | > (F) 614-442-5662 | PGP/GPG Public Key Available on Request > From cfuhrman at tfcci.com Tue May 23 06:41:52 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Tue, 23 May 2000 09:41:52 -0400 (EDT) Subject: Optimizing Data Base for GeoData In-Reply-To: <392A8707.9030600@usgs.gov> Message-ID: On Tue, 23 May 2000, Doug Nebert wrote: > Chris: > > Did you investigate the use of Sybase, Informix, DB2, or Oracle 8i for > the Linux platform? Almost all of these are available for Linux now at > no or low cost (Sybase came with RedHat 6.1; Oracle can be obtained with > an unexpiring demo license) and most/all? support stored procedures and > extensible data types. My understanding is that PostgreSQL is intended > for research and demo applications but was never tuned for performance, > just a testbed of features. It would seem to me that one of these other > databases could be rigged to store each primitive with a searchable, > indexed bounding envelope to return the feature as a BLOB. Or, for a > chunk of change you could use tuned tools such as Oracle Spatial or SDE... I decided to use Postgres for development purposes and have found it to be a pretty good test platform; however, the final product will probably be running on an Oracle data base running under Solaris x86 since that's what our other applications run on. I am curious if Oracle Spatial would help :) -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From rchavez at perseus.tufts.edu Tue May 23 07:03:42 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Tue, 23 May 2000 10:03:42 -0400 (EDT) Subject: Optimizing Data Base for GeoData In-Reply-To: <392A8707.9030600@usgs.gov> Message-ID: > > Finally, if anyone wishes to use PostgreSQL as a low-cost solution for > > writing a GIS type application, I can heartily recommend it. It comes > > with some nice geographic data types and functions. It also plays well > > with Perl. I've do a lot of the same things with my PostGreSQL database set up. Indexing does help performance. I usually perform all my queries by bounding box -- I've got a table/index of all the layers and their bounding boxes which also helps eliminate the need for hitting the layers themselves over and over again for usesr queries. > Did you investigate the use of Sybase, Informix, DB2, or Oracle 8i for > the Linux platform? Almost all of these are available for Linux now at > no or low cost (Sybase came with RedHat 6.1; Oracle can be obtained with > an unexpiring demo license) and most/all? support stored procedures and > extensible data types. I have Oracle for Linux, but haven't tried making the mapscript connection yet. The problem with these databases (I have experience only with Oracle and DB2) is that they are extremely difficult to set up initially, and true site licenses can be prohibitively expensive (at least for my office). Once they are up and running, they really are quite nice. I'd say if you have access to, and dedicated support for, Oracle or DB2 by all means use them, but if you don't it may not be worth the investment in time and effort that it takes to get them off the ground. I'd have to say PostGres is a good fully functional alternative is easier to manage on one's own, and is catching up with the big boys. PostGreSQL 7.0 has just been released and boasts better performance -- although I haven't tried it yet. There's also a FAQ about fine tuning PostGres for better performance: http://www.postgresql.org/docs/faq-english.html#3.10 > database engine to feed the mapserver. It would be even nicer if folks > built their interfaces following the OpenGIS "Simple Features via SQL" > access model. Then different brands of compatible databases could be > accessed using the same SQL calls. This doesn't eliminate the need for > database tuning, but allows for a common request interface. Doug, could you supply a link to the OpenGIS access model? I haven't been able to locate it. Thanks. Rob Chavez Programmer The Perseus Project From ddnebert at usgs.gov Tue May 23 07:36:32 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Tue, 23 May 2000 10:36:32 -0400 Subject: OpenGIS Simple Features and other Specs References: Message-ID: <392A9770.6030308@usgs.gov> Robert Chavez wrote: > Doug, could you supply a link to the OpenGIS access model? I haven't been > able to locate it. Thanks. > See: http://www.opengis.org/techno/specs.htm#implementation Both Oracle 8i Spatial and SDE (and others) can set up alternate access via a configuration switch. OGC Conformance testing has been arduous but seems to be getting easier with the suggestion of self-test certification in order to really wear the OGC "label". This means there may be untested but compatible implementations of Simple Features (SF-SQL) out there. It would be nice to see someone make PostgreSQL be a compatible SF-SQL solution! Doug. > Rob Chavez > Programmer > The Perseus Project > > > > -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From steve.lime at dnr.state.mn.us Tue May 23 09:20:43 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 23 May 2000 11:20:43 -0500 Subject: map like this Message-ID: Lot's of ways depending on where the geographic thesaurus data resides, whether you're using the mapserv cgi program or mapscript. In general though you'll probably need to use dynamic features given on the URL. Based on the place search you'll identify a place. You can use it's coordinate to create a map extent and can place the point and annotation dynamically. If you have a layer called mypoint that defines how the place should be symbolized and annotated then adding ...&layer=mypoint&map_mypoint_feature=new&map_mypoint_feature_points=some x+some y&map_mypoint_feature_text=place+name... There are ways to make this sticky in templates too. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 05/22/00 06:59PM >>> I have the dataset. How can I build such a map interface on-fly (i.e. only the marker and the label on the map)? --- Ma Stephen Lime wrote: > Yes, if you have a global dataset. > > Stephen Lime > From carlson14 at llnl.gov Tue May 23 18:06:18 2000 From: carlson14 at llnl.gov (John Carlson) Date: Tue, 23 May 2000 18:06:18 -0700 Subject: drawing on top of maps Message-ID: <4.2.0.58.20000523175444.011bf4d0@popcorn.llnl.gov> I was able to create maps and draw on top of them using mapscript, but now I am wondering how to incorporate this functionality into mapserv (a web page). Is there some hook into mapserver that I can define my own mapscript program to generate the gif file? This seems like a very easy thing to hook into the template file (have a path to a mapscript program instead [img]????). Has anyone done this? I'm using 3.3.009 Thanks, John Carlson From kafka at email.cz Tue May 23 22:14:24 2000 From: kafka at email.cz (kafka at email.cz) Date: Wed, 24 May 2000 07:14:24 +0200 (CEST) Subject: national character sets Message-ID: <392B6530.000001.19997@tajfun.atc.cz> I have trouble with configuring Mapserver on Linux to contribute national character set (ISO 8859-2) in map labels. Does anyone have an experience with this? Thanks Stepan Kafka From marin at here.is Wed May 24 03:53:41 2000 From: marin at here.is (Ma) Date: Wed, 24 May 2000 10:53:41 +0000 Subject: national character sets References: <392B6530.000001.19997@tajfun.atc.cz> Message-ID: <392BB4B5.C8AD49CC@here.is> You have to use gd-1.3 or higher for 8-bit fonts and 8-bit font support. gd-1.3 comes with ISO-8859-2 bitmap fonts directly, which is fine for the Central European alphabets (the other users have to fix them for their national character set). It works perfect with ttf also. --- Ma kafka at email.cz wrote: > I have trouble with configuring Mapserver on Linux to contribute national > character set (ISO 8859-2) in map labels. Does anyone have an experience > with this? > > Thanks > > Stepan Kafka From danmo at videotron.ca Wed May 24 10:05:21 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 24 May 2000 13:05:21 -0400 Subject: PHP Module (was: drawing on top of maps) References: <4.2.0.58.20000523175444.011bf4d0@popcorn.llnl.gov> Message-ID: <392C0BD1.837ACA95@videotron.ca> John Carlson wrote: > > I was able to create maps and draw on top of them using > mapscript, but now I am wondering how to incorporate > this functionality into mapserv (a web page). Is there some hook into > mapserver that I can define my own mapscript program to generate > the gif file? This seems like a very easy thing to hook into > the template file (have a path to a mapscript program instead > [img]????). Has anyone done this? I'm using 3.3.009 > I guess it's time to make an official announcement for the PHP/MapScript module... PHP combined with the new PHP/MapScript module would allow you to do exactly what you ask here. If you know Perl already, PHP should not be too hard to learn and you should get the same functionality from the PHP MapScript module that you used to get from the Perl MapScript module (Except for a couple of functions that are not implemented yet). The PHP module is now available on the CVS server at UMN under mapserver/mapscript/php3/. I expect it to be included in the next source code release of MapServer (version 3.3.011). WinNT users can download a pre-compiled version of PHP3_MAPSCRIPT.DLL from http://www2.dmsolutions.on.ca/mapserver/php3_mapscript_dll-20000524.zip and Unix users will have to get the source from the CVS server and compile it. I have started a FAQ for the PHP/MapScript module. http://www2.dmsolutions.on.ca/mapserver/php_mapscript_faq.html At this point it contains pointers to the information you need to get started (compile and install the PHP module), and I expect that it will grow as we get feedback from users. Enjoy! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mochaexpress at yahoo.com Wed May 24 14:44:40 2000 From: mochaexpress at yahoo.com (mocha) Date: Wed, 24 May 2000 16:44:40 -0500 Subject: compilation error: undefined reference to `dgettext' Message-ID: <4.3.1.2.20000524164315.00ad38d0@pop.mail.yahoo.com> NetBSD 1.4Y/Alpha -current (ELF) ./configure \ --prefix=/usr/local/install/mapserver \ --with-gd=/home/staff/t/tom/work/gd/gd-1.2 \ --with-jpeg=/usr/pkg \ --with-ttf=/usr/pkg \ --with-php3=../../php/php-3.0.16 \ --with-apxs ---cut--- ... gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_JPEG -DUSE_GD_1_2 -I/home/st aff/t/tom/work/gd/gd-1.2 -I/home/staff/t/tom/work/mapserver/mapserver/gdft -I/usr/pkg/include -I/usr/pkg/include shp2img.o -L. -lmap -L/home/staff/t/tom/work/gd/gd-1.2 -lgd -L/home/staff/t/to m/work/mapserver/mapserver/gdft -lgdft -L/usr/pkg/lib -lttf -L/usr/pkg/lib -ljpeg -lm -o shp2i mg /usr/pkg/lib/libttf.so: undefined reference to `dgettext' collect2: ld returned 1 exit status *** Error code 1 Stop. From mochaexpress at yahoo.com Wed May 24 15:25:44 2000 From: mochaexpress at yahoo.com (mocha) Date: Wed, 24 May 2000 17:25:44 -0500 Subject: where is ms_demo dir Message-ID: <4.3.1.2.20000524172348.00ad4d70@pop.mail.yahoo.com> i'm trying to compile and get the mapserver working. i had to skip the truetype config to get it to compile. now i would like to demo it. or are the files the one listed at: http://mapserver.gis.umn.edu/demo.html From michalak at hwr.arizona.edu Wed May 24 15:53:12 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Wed, 24 May 2000 15:53:12 -0700 (MST) Subject: legendObj_size_get In-Reply-To: <4.3.1.2.20000524172348.00ad4d70@pop.mail.yahoo.com> Message-ID: I'm using the mapscript.pm perl module. Calling the method getLayer() I get this error: "Undefined subroutine &mapscriptc::legendObj_size_get called at /local/gnu/lib/perl5/site_perl/mapscript.pm. Is getLayer() a functioning method, or is it one of the missing components that is not complete? Am I missing a file? Thanks -zm From mochaexpress at yahoo.com Wed May 24 19:35:45 2000 From: mochaexpress at yahoo.com (mocha) Date: Wed, 24 May 2000 21:35:45 -0500 Subject: demo error: msLoadMap(): Unknown identifier. (LABELOVERLAP):(14) Message-ID: <4.3.1.2.20000524213356.00aa2c20@pop.mail.yahoo.com> i finally found the ms_demo and ms_symbol sets. it wasn't in the cvs that i pulled. but i installed it and ran demo_init.html and got this error: msLoadMap(): Unknown identifier. (LABELOVERLAP):(14) i'm using mapserv from CVS. is it not compatible with the old demo pages? From mochaexpress at yahoo.com Wed May 24 20:43:49 2000 From: mochaexpress at yahoo.com (mocha) Date: Wed, 24 May 2000 22:43:49 -0500 Subject: loadForm(): Regular expression error Message-ID: <4.3.1.2.20000524224030.00ad3910@pop.mail.yahoo.com> ok. so i found out the hard way that 3.3 doesn't work with the demo. i have 3.2 compiled and loaded the demo. this is the error i got: An error has occurred in loadForm(): Regular expression error. NetBSD-1.4Y/Alpha -current (ELF) system. I made sure all the shared libraries can be found and loadable at run time. I've also editted the mapserv.ini and demo_init.html files to reflect my system. what else could i be doing wrong or not right? From danmo at videotron.ca Wed May 24 21:35:51 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 25 May 2000 00:35:51 -0400 Subject: loadForm(): Regular expression error References: <4.3.1.2.20000524224030.00ad3910@pop.mail.yahoo.com> Message-ID: <392CADA7.8F6E29B2@videotron.ca> mocha wrote: > > ok. so i found out the hard way that 3.3 doesn't work with the demo. i have I think you can get a version of the demo files that will work with version 3.3 at: http://mapserver.gis.umn.edu/dist/ms_demo33.zip -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From stocco at prodam.sp.gov.br Thu May 25 07:08:24 2000 From: stocco at prodam.sp.gov.br (Marcio Augusto Stocco) Date: Thu, 25 May 2000 11:08:24 -0300 (EST) Subject: problem with fonts and demos In-Reply-To: <392CADA7.8F6E29B2@videotron.ca> Message-ID: Hi, I installed MapServer 3.2 and the 3.2 Demo, and it works ok, but doesn't draw the city names. I've downloaded some free true type fonts from the web, and put them in /usr/apps/mapserv/symbols/fonts. Then, I modified the font directory name in the mapserv.ini file. After that, I wrote two diferent fonts.list file, because the README statement doesn't match the example file. Unfortunatelly, neither worked. After the message about the 3.3 demo, I decided to upgrade. But now, I can't even get the first map. When initializing, mapserv displays the following error message: msLoadSymbolFile(): Unknown identifier. ():(0) Any clue will help. Thanks in advance, M?rcio. From steve.lime at dnr.state.mn.us Thu May 25 10:16:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 25 May 2000 12:16:10 -0500 Subject: Shpindex Message-ID: Shpindex is obsolete and was replaced by shptree. I kept the code for completeness should I need it again. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Gjermund Hanssen 05/25/00 07:21AM >>> Hi ! I'm trying to increase speed to my shape-datasets. First i tried the utility shptree with default value(8). The result was 50% time reduction. Now i'm trying out shpindex. It takes some time and results with insertNode(): Memory allocation error. shpindex dmk_dekning 1000 1000 kb Dataset 285 dmk_dekning.dbf 72 dmk_dekning.qix 3644796 dmk_dekning.shp 140 dmk_dekning.shx The dataset covers the landarea of Norway Does somebody have any idea ? Gjermund From danmo at videotron.ca Thu May 25 11:09:00 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 25 May 2000 14:09:00 -0400 Subject: PHP Module (was: drawing on top of maps) References: <4.2.0.58.20000523175444.011bf4d0@popcorn.llnl.gov> <4.2.0.58.20000525105919.011c74e0@popcorn.llnl.gov> Message-ID: <392D6C3C.BD9FF4A@videotron.ca> John Carlson wrote: > > > > >I guess it's time to make an official announcement for the PHP/MapScript > >module... > > Is there a solaris solution? I see win32. Source code or binaries would > be fine! > Until MapServer version 3.3.011 is released, Solaris and other Unixes should get the source through the UMN CVS server. The info to access the CVS server is at: http://mapserver.gis.umn.edu/cvs.html If you really can't get the source through CVS then let me know and I'll try to prepare a package with the source. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From danmo at videotron.ca Thu May 25 11:32:36 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 25 May 2000 14:32:36 -0400 Subject: [Fwd: PHP Module (was: drawing on top of maps)] Message-ID: <392D71C4.D7F794FD@videotron.ca> -------------- next part -------------- An embedded message was scrubbed... From: Stephen Lime Subject: Re: PHP Module (was: drawing on top of maps) Date: Thu, 25 May 2000 13:24:38 -0500 Size: 2443 URL: From michalak at hwr.arizona.edu Thu May 25 13:17:42 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 25 May 2000 13:17:42 -0700 (MST) Subject: legendObj_size_get In-Reply-To: Message-ID: Right now we have version 3.3.010. On Thu, 25 May 2000, Stephen Lime wrote: > That method works fine, at least here. What version of MapServer did > you install? > > (I'm out till next tues so unless I here from you today it'll have to wait > until next week...) > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Zolla Michalak 05/24/00 05:53PM >>> > > I'm using the mapscript.pm perl module. Calling the method getLayer() I > get this error: "Undefined subroutine &mapscriptc::legendObj_size_get > called at /local/gnu/lib/perl5/site_perl/mapscript.pm. > > Is getLayer() a functioning method, or is it one of the missing > components that is not complete? Am I missing a file? > > Thanks -zm > > > > > > From mochaexpress at yahoo.com Thu May 25 13:23:51 2000 From: mochaexpress at yahoo.com (mocha) Date: Thu, 25 May 2000 15:23:51 -0500 Subject: loadForm(): Regular expression error In-Reply-To: <392CADA7.8F6E29B2@videotron.ca> References: <4.3.1.2.20000524224030.00ad3910@pop.mail.yahoo.com> Message-ID: <4.3.1.2.20000525152317.00af9730@pop.mail.yahoo.com> At 12:35 AM 5/25/00 -0400, Daniel Morissette wrote: >mocha wrote: > > > > ok. so i found out the hard way that 3.3 doesn't work with the demo. i have > > >I think you can get a version of the demo files that will work with >version 3.3 at: > > http://mapserver.gis.umn.edu/dist/ms_demo33.zip thanks. i tried that. seems like the other errors don't come up anymore. just this one: loadWeb(): Unknown identifier. ( ):(23) From mochaexpress at yahoo.com Thu May 25 14:57:52 2000 From: mochaexpress at yahoo.com (mocha) Date: Thu, 25 May 2000 16:57:52 -0500 Subject: problem with fonts and demos In-Reply-To: References: <392CADA7.8F6E29B2@videotron.ca> Message-ID: <4.3.1.2.20000525165648.00b005c0@pop.mail.yahoo.com> i think your files may contain ^M at the end of each line. i had the same problem. more file.name didn't show it. but it did show in vi. you'd need to s/r all of the ^M (remove them). At 11:08 AM 5/25/00 -0300, Marcio Augusto Stocco wrote: >Hi, > >I installed MapServer 3.2 and the 3.2 Demo, and it works ok, but doesn't >draw the city names. > >I've downloaded some free true type fonts from the web, and put them in >/usr/apps/mapserv/symbols/fonts. Then, I modified the font directory name >in the mapserv.ini file. After that, I wrote two diferent fonts.list file, >because the README statement doesn't match the example file. >Unfortunatelly, neither worked. > >After the message about the 3.3 demo, I decided to upgrade. But now, I >can't even get the first map. When initializing, mapserv displays the >following error message: > >msLoadSymbolFile(): Unknown identifier. ():(0) > >Any clue will help. > >Thanks in advance, >M?rcio. From mochaexpress at yahoo.com Thu May 25 14:59:07 2000 From: mochaexpress at yahoo.com (mocha) Date: Thu, 25 May 2000 16:59:07 -0500 Subject: ^M in files ACK! [Re: loadForm(): Regular expression error] In-Reply-To: <392CADA7.8F6E29B2@videotron.ca> References: <4.3.1.2.20000524224030.00ad3910@pop.mail.yahoo.com> Message-ID: <4.3.1.2.20000525165759.00a9b420@pop.mail.yahoo.com> At 12:35 AM 5/25/00 -0400, Daniel Morissette wrote: >mocha wrote: > > > > ok. so i found out the hard way that 3.3 doesn't work with the demo. i have > > >I think you can get a version of the demo files that will work with >version 3.3 at: > > http://mapserver.gis.umn.edu/dist/ms_demo33.zip i unzip this (on unix) and found ^M all over the place. that gave errors when trying to load them. From stocco at prodam.sp.gov.br Thu May 25 15:09:59 2000 From: stocco at prodam.sp.gov.br (Marcio Augusto Stocco) Date: Thu, 25 May 2000 19:09:59 -0300 (EST) Subject: problem with fonts and demos In-Reply-To: <4.3.1.2.20000525165648.00b005c0@pop.mail.yahoo.com> Message-ID: I hadn't had these problem, because I've built up the files with ls and awk. But the following message from Stephen Lime has put me in the right way, and now I got the demo running. Thank you very much indeed, M?rcio. -------------------- Date: Thu, 25 May 2000 12:24:40 -0500 From: Stephen Lime To: stocco at prodam.sp.gov.br Subject: Re: problem with fonts and demos There was a slight change in line symbol file formats from 3.2 to 3.3. Copy the symbol files from the 3.3 distribution (in the symbols directory) to the demo symbols directory and that should fix it. You may still hit a few other snags but those are mostly outdated parameters and you can just delete or comment out those lines. Steve Stephen Lime Internet Applications Analyst On Thu, 25 May 2000, mocha wrote: > i think your files may contain ^M at the end of each line. i had the same > problem. more file.name didn't show it. but it did show in vi. you'd need > to s/r all of the ^M (remove them). > > At 11:08 AM 5/25/00 -0300, Marcio Augusto Stocco wrote: > >Hi, > > > >I installed MapServer 3.2 and the 3.2 Demo, and it works ok, but doesn't > >draw the city names. > > > >I've downloaded some free true type fonts from the web, and put them in > >/usr/apps/mapserv/symbols/fonts. Then, I modified the font directory name > >in the mapserv.ini file. After that, I wrote two diferent fonts.list file, > >because the README statement doesn't match the example file. > >Unfortunatelly, neither worked. > > > >After the message about the 3.3 demo, I decided to upgrade. But now, I > >can't even get the first map. When initializing, mapserv displays the > >following error message: > > > >msLoadSymbolFile(): Unknown identifier. ():(0) > > > >Any clue will help. > > > >Thanks in advance, > >M?rcio. > From stocco at prodam.sp.gov.br Thu May 25 15:12:10 2000 From: stocco at prodam.sp.gov.br (Marcio Augusto Stocco) Date: Thu, 25 May 2000 19:12:10 -0300 (EST) Subject: loadForm(): Regular expression error In-Reply-To: <4.3.1.2.20000525152317.00af9730@pop.mail.yahoo.com> Message-ID: I had to do slight modifications in some of the files of the 3.3 demo, as they contained wrong paths and references to "E:\" and "C:\". M?rcio. On Thu, 25 May 2000, mocha wrote: > At 12:35 AM 5/25/00 -0400, Daniel Morissette wrote: > >mocha wrote: > > > > > > ok. so i found out the hard way that 3.3 doesn't work with the demo. i have > > > > > >I think you can get a version of the demo files that will work with > >version 3.3 at: > > > > http://mapserver.gis.umn.edu/dist/ms_demo33.zip > > > thanks. i tried that. seems like the other errors don't come up anymore. > just this one: > > loadWeb(): Unknown identifier. ( ):(23) > From jedgar at fxp.org Thu May 25 15:12:46 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Thu, 25 May 2000 18:12:46 -0400 (EDT) Subject: ^M in files ACK! [Re: loadForm(): Regular expression error] In-Reply-To: <4.3.1.2.20000525165759.00a9b420@pop.mail.yahoo.com> Message-ID: On Thu, 25 May 2000, mocha wrote: > At 12:35 AM 5/25/00 -0400, Daniel Morissette wrote: > >mocha wrote: > > > > > > ok. so i found out the hard way that 3.3 doesn't work with the demo. i have > > > > > >I think you can get a version of the demo files that will work with > >version 3.3 at: > > > > http://mapserver.gis.umn.edu/dist/ms_demo33.zip > > i unzip this (on unix) and found ^M all over the place. that gave errors > when trying to load them. > tr -d '\r' < infile > outfile ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From jacquin at geosys-inc.com Thu May 25 15:36:47 2000 From: jacquin at geosys-inc.com (Marc JACQUIN) Date: Thu, 25 May 2000 17:36:47 -0500 Subject: Java code... Message-ID: <002501bfc699$b5fc73e0$ac00000a@pcpmj> Hi all, Don't know if you used this applet. This could be really interesting specially with the feature that Steve mentioned : the image param can be a CGI call. Do you know how this works ? What should the CGI return : an URL to a GIF (location: url) ? thx Marc > -----Original Message----- > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Wednesday, October 27, 1999 1:15 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Java code... > > > Ok. Here's my working version. It's Java 1.1 code and compiles fine > under 1.2 except for a few "depricated methods" messages. If anyone > is interested in porting to 1.2 and swing let me know. > > To install: Copy the mapimage.class file someplace on you system that > is web accessible. If you need to rebuild from source you'll need to make > sure that the Netscape java classes (either a .zip or a .jar) are in your > CLASSPATH environment variable. > > To use: > > 1. Make sure your normal MapServer form has a name attribute > (eg. name="mapserv") > 2. Add the following javascript code to the HTML header section: > > > > These functions are called by the applet, so the names can't > be changed. However, you > could change the function code itself to, for example: > > - submit the form immediately > - update the status line of the browser > > 3. Add a couple of hidden variables to the form: > > > > > imgbox allows the MapServer to process a pair of mouse clicks > (ie. a box). It is ignored if the box is > simply a point, hence the initialization value. imgxy is a > way to pass a single mouse click to the > MapServer. This mimics the standard forms based method. The > initial value should be something > meaningful like the center of the image. Remember that the > coordinates on the image start at 0 > and end at nrows-1 or ncols-1. To compute center x use > (ncols-1)/2 and y use (nrows-1)/2 and > keep the decimal value. This allows the user to zoom using a > button rather than the image. > > 4. Add a call to the applet (this replaces the normal > form-based call to the image ). > Here's an example from a template file (note the [img] > substitution): > > width="300" height ="400" name="mapimage" MAYSCRIPT> > > > > > > The parameters are: > > image - fully qualified URL to the image. This can be a CGI call. > jitter - allowable slop in mouse clicking. Basically sets > a minimum box size. > color - RGB triplet that sets the color of the box or cursor. > > That covers the basic use. There are 3 public methods that can be > called from javascript that change > the behavior of the applet. > > boxOn and boxOff toggle the applets ability to display a dragged > box. Useful when adding features to > an interface. For example, it doesn't make sense to drag a box > when zooming out. No arguments. > > newMap(string image_url) allows you to swap images without > changing the rest of the page. The function > uses the java MediaTracker interface to delay image loading until > the new image is completely loaded. This > is useful with advanced interface setup. It's possible to manage > extents, layers etc completely on the client > using javascript requesting a new image only when necessary via > the applet. It's actually pretty cool once > it's set up that way. The string supplied to newMap must be a > fully qualified URL for an image (can be a CGI > call). > > Examples of this applet can be found at: > > - http://deli.dnr.state.mn.us/ > - http://www.dnr.state.mn.us/mis/gis/gislis99/example1.html > (click "next step" until you hit example 5) > - http://www.ra.dnr.state.mn.us/ > > Possible enhancements: > > - displaying coordinates on the image as the mouse moves > - bubble attributes (eg. move mouse over feature label and > display attributes or whatever) > > Hope this helps, have fun! > > Steve > > Stephen Lime > Internet Applications Analyst > MIS Bureau - MN DNR > > (651) 297-2937 > steve.lime at dnr.state.mn.us > > From imap at chesapeake.net Fri May 26 00:07:33 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 26 May 2000 03:07:33 -0400 Subject: Java code... References: <002501bfc699$b5fc73e0$ac00000a@pcpmj> Message-ID: <392E22B5.64B00577@chesapeake.net> Marc, The CGI will do whatever the application requires.... In our applications, as a base function, we do image "Swapping" to no need for the CGI reload page bullshit. In this case we have java call a mapscript CGI in the image param that generates "Image Only". Then you can modify the applet to handle other Mime Types ;) Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410.257.3187 Marc JACQUIN wrote: > > Hi all, > > Don't know if you used this applet. This could be really interesting > specially with the feature that Steve mentioned : the image param can be a > CGI call. > > Do you know how this works ? What should the CGI return : an URL to a GIF > (location: url) ? > > thx > > Marc > > > -----Original Message----- > > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > > Sent: Wednesday, October 27, 1999 1:15 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Java code... > > > > > > Ok. Here's my working version. It's Java 1.1 code and compiles fine > > under 1.2 except for a few "depricated methods" messages. If anyone > > is interested in porting to 1.2 and swing let me know. > > > > To install: Copy the mapimage.class file someplace on you system that > > is web accessible. If you need to rebuild from source you'll need to make > > sure that the Netscape java classes (either a .zip or a .jar) are in your > > CLASSPATH environment variable. > > > > To use: > > > > 1. Make sure your normal MapServer form has a name attribute > > (eg. name="mapserv") > > 2. Add the following javascript code to the HTML header section: > > > > > > > > These functions are called by the applet, so the names can't > > be changed. However, you > > could change the function code itself to, for example: > > > > - submit the form immediately > > - update the status line of the browser > > > > 3. Add a couple of hidden variables to the form: > > > > > > > > > > imgbox allows the MapServer to process a pair of mouse clicks > > (ie. a box). It is ignored if the box is > > simply a point, hence the initialization value. imgxy is a > > way to pass a single mouse click to the > > MapServer. This mimics the standard forms based method. The > > initial value should be something > > meaningful like the center of the image. Remember that the > > coordinates on the image start at 0 > > and end at nrows-1 or ncols-1. To compute center x use > > (ncols-1)/2 and y use (nrows-1)/2 and > > keep the decimal value. This allows the user to zoom using a > > button rather than the image. > > > > 4. Add a call to the applet (this replaces the normal > > form-based call to the image ). > > Here's an example from a template file (note the [img] > > substitution): > > > > > width="300" height ="400" name="mapimage" MAYSCRIPT> > > > > > > > > > > > > The parameters are: > > > > image - fully qualified URL to the image. This can be a CGI call. > > jitter - allowable slop in mouse clicking. Basically sets > > a minimum box size. > > color - RGB triplet that sets the color of the box or cursor. > > > > That covers the basic use. There are 3 public methods that can be > > called from javascript that change > > the behavior of the applet. > > > > boxOn and boxOff toggle the applets ability to display a dragged > > box. Useful when adding features to > > an interface. For example, it doesn't make sense to drag a box > > when zooming out. No arguments. > > > > newMap(string image_url) allows you to swap images without > > changing the rest of the page. The function > > uses the java MediaTracker interface to delay image loading until > > the new image is completely loaded. This > > is useful with advanced interface setup. It's possible to manage > > extents, layers etc completely on the client > > using javascript requesting a new image only when necessary via > > the applet. It's actually pretty cool once > > it's set up that way. The string supplied to newMap must be a > > fully qualified URL for an image (can be a CGI > > call). > > > > Examples of this applet can be found at: > > > > - http://deli.dnr.state.mn.us/ > > - http://www.dnr.state.mn.us/mis/gis/gislis99/example1.html > > (click "next step" until you hit example 5) > > - http://www.ra.dnr.state.mn.us/ > > > > Possible enhancements: > > > > - displaying coordinates on the image as the mouse moves > > - bubble attributes (eg. move mouse over feature label and > > display attributes or whatever) > > > > Hope this helps, have fun! > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > MIS Bureau - MN DNR > > > > (651) 297-2937 > > steve.lime at dnr.state.mn.us > > > > From michalak at hwr.arizona.edu Fri May 26 10:14:37 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Fri, 26 May 2000 10:14:37 -0700 (MST) Subject: legendObj_size_get In-Reply-To: Message-ID: getLayer() is magically working now. Either I had the syntax wrong or someone has changed something on the module. On Thu, 25 May 2000, Zolla Michalak wrote: > Right now we have version 3.3.010. > > On Thu, 25 May 2000, Stephen Lime wrote: > > > That method works fine, at least here. What version of MapServer did > > you install? > > > > (I'm out till next tues so unless I here from you today it'll have to wait > > until next week...) > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Zolla Michalak 05/24/00 05:53PM >>> > > > > I'm using the mapscript.pm perl module. Calling the method getLayer() I > > get this error: "Undefined subroutine &mapscriptc::legendObj_size_get > > called at /local/gnu/lib/perl5/site_perl/mapscript.pm. > > > > Is getLayer() a functioning method, or is it one of the missing > > components that is not complete? Am I missing a file? > > > > Thanks -zm > > > > > > > > > > > > > > > From mochaexpress at yahoo.com Fri May 26 19:25:19 2000 From: mochaexpress at yahoo.com (mocha) Date: Fri, 26 May 2000 21:25:19 -0500 Subject: trouble with libtiff Message-ID: <4.3.1.2.20000526212315.00aca100@pop.mail.yahoo.com> netbsd-1.4y/alpha (ELF) when i try to compile with libtiff i get this: # make cd gdft; make; cd .. gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_2 -I/home/staff/t/tom/work/gd/gd-1.2 -I/home/staff/t/tom/work/mapserver/mapserver-cvs/gdft -I/usr/pk g/include -I/usr/pkg//include -I/usr/pkg/include shp2img.o -L. -lmap -L/home/staff/t/tom/w ork/gd/gd-1.2 -lgd -L/home/staff/t/tom/work/mapserver/mapserver-cvs/gdft -lgdft -L/usr/pkg/lib -lt tf -L/usr/pkg//lib -ltiff -L/usr/pkg/lib -ljpeg -lm -o shp2img /usr/pkg/lib/libtiff.so: undefined reference to `deflate' /usr/pkg/lib/libtiff.so: undefined reference to `inflate' /usr/pkg/lib/libttf.so: undefined reference to `dgettext' /usr/pkg/lib/libtiff.so: undefined reference to `inflateInit_' /usr/pkg/lib/libtiff.so: undefined reference to `deflateInit_' /usr/pkg/lib/libtiff.so: undefined reference to `inflateReset' /usr/pkg/lib/libtiff.so: undefined reference to `deflateReset' /usr/pkg/lib/libtiff.so: undefined reference to `inflateSync' /usr/pkg/lib/libtiff.so: undefined reference to `deflateParams' /usr/pkg/lib/libtiff.so: undefined reference to `inflateEnd' /usr/pkg/lib/libtiff.so: undefined reference to `deflateEnd' collect2: ld returned 1 exit status *** Error code 1 Stop. it think it can't seem to find the zlib. but i have that in my library path and i also tried to give it -L/usr/pkg/lib -R/usr/pkg/lib but it still errors From mochaexpress at yahoo.com Fri May 26 23:16:29 2000 From: mochaexpress at yahoo.com (mocha) Date: Sat, 27 May 2000 01:16:29 -0500 Subject: php3 mapscript module In-Reply-To: <392CADA7.8F6E29B2@videotron.ca> References: <4.3.1.2.20000524224030.00ad3910@pop.mail.yahoo.com> Message-ID: <4.3.1.2.20000527011439.00acceb0@pop.mail.yahoo.com> i get these errors from trying the example pages: [Sat May 27 01:00:28 2000] [notice] child pid 13298 exit signal Segmentation fault (11) [Sat May 27 01:00:32 2000] [notice] child pid 13300 exit signal Segmentation fault (11) [Sat May 27 01:00:32 2000] [notice] child pid 13299 exit signal Segmentation fault (11) [Sat May 27 01:00:39 2000] [notice] child pid 13301 exit signal Segmentation fault (11) [Sat May 27 01:01:26 2000] [notice] child pid 13303 exit signal Segmentation fault (11) [Sat May 27 01:01:26 2000] [notice] child pid 13302 exit signal Segmentation fault (11) [Sat May 27 01:01:32 2000] [notice] child pid 13305 exit signal Segmentation fault (11) [Sat May 27 01:01:32 2000] [notice] child pid 13304 exit signal Segmentation fault (11) unfortunately there is no core so i can't gdb bt it. From mochaexpress at yahoo.com Sat May 27 00:28:40 2000 From: mochaexpress at yahoo.com (mocha) Date: Sat, 27 May 2000 02:28:40 -0500 Subject: Fwd: php3 mapscript module Message-ID: <4.3.1.2.20000527022212.00aa5ad0@pop.mail.yahoo.com> >Date: Sat, 27 May 2000 01:16:29 -0500 >To: Daniel Morissette , mapserver-users at lists.gis.umn.edu >From: mocha >Subject: php3 mapscript module > >i get these errors from trying the example pages: > >[Sat May 27 01:00:28 2000] [notice] child pid 13298 exit signal >Segmentation fault (11) >[Sat May 27 01:00:32 2000] [notice] child pid 13300 exit signal >Segmentation fault (11) >[Sat May 27 01:00:32 2000] [notice] child pid 13299 exit signal >Segmentation fault (11) >[Sat May 27 01:00:39 2000] [notice] child pid 13301 exit signal >Segmentation fault (11) >[Sat May 27 01:01:26 2000] [notice] child pid 13303 exit signal >Segmentation fault (11) >[Sat May 27 01:01:26 2000] [notice] child pid 13302 exit signal >Segmentation fault (11) >[Sat May 27 01:01:32 2000] [notice] child pid 13305 exit signal >Segmentation fault (11) >[Sat May 27 01:01:32 2000] [notice] child pid 13304 exit signal >Segmentation fault (11) > >unfortunately there is no core so i can't gdb bt it. i added extension=php_mapscript.so in php3.ini and restarted apache. now it core dumps so i can gdb bt it. found out that it wasn't finding all of its runtime libraries. so i added a few lines of those to the Makefile in mapscript/php3. i then 'make' again. ran ldd on the lib: # ldd *so php_mapscript.so: -lc.12 => /usr/lib/libc.so.12 -lttf.3 => /usr/pkg/lib/libttf.so.3 -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62 -ltiff.3 => /usr/pkg/lib/libtiff.so.3 -lgd.1 => /usr/pkg/lib/libgd.so.1 -lm.0 => /usr/lib/libm.so.0 looks like they are all there now. then i load up the page: phpinfo_mapscript.php3 and got: Warning: Invalid library (maybe not a PHP3 library) 'php_mapscript.so' in (null) on line 21 ...followed by phpinfo() stuff... i left extension=php_mapscript.so in the php3.ini file and tried commenting out line 21, but it doesn't show the module in phpinfo. when i do this, there is no null error either. From mapadm at polsl.gliwice.pl Sun May 28 12:31:28 2000 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Sun, 28 May 2000 21:31:28 +0200 Subject: Mapscript- parse exception Message-ID: <000101bfc8db$518ab0e0$b0cb9e9d@default> Is there any way to test somehow if my mapscript build is correct ? I install ActivePerl (Windows) and mapscript, but when I try to declare "use mapscript", I'm getting "parse exception". Grzegorz From michalak at hwr.arizona.edu Tue May 30 09:57:38 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Tue, 30 May 2000 09:57:38 -0700 (MST) Subject: mapscript Perl module Message-ID: I am using mapserver 3.3 and the mapscript Perl module. My perl program will not run with mapscript when I open it from a web browser. It is in the cgi-bin and runs from the web without problem until I add the line "use mapscript;" where it dies with an internal server error. The same program DOES work with mapscript when compiled and run from UNIX, just not from the web. It think this might be a library path problem. Before compiling in UNIX, I have to give it this command: setenv LD_LIBRARY_PATH /local/tiff-3.4/lib:$LD_LIBRARY_PATH. I tried setting the path in my .login file, but that didn't seem to help. I might have the syntax wrong though. Here is the setenv line from my .login file: setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/local/tiff-3.4/lib Any suggestions? Thanks -zm From jacquin at geosys-inc.com Tue May 30 10:03:50 2000 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Tue, 30 May 2000 12:03:50 -0500 Subject: Now MS becomes famous ! Message-ID: <001901bfca59$071e2760$ac00000a@pcpmj> http://software.geocomm.com/utilities/webmapping/ Congratulations Steve ! Marc From danmo at videotron.ca Tue May 30 10:24:18 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 30 May 2000 13:24:18 -0400 Subject: mapscript Perl module References: Message-ID: <3933F942.D86438A6@videotron.ca> Zolla Michalak wrote: > > The same program DOES work with mapscript when compiled and run from UNIX, > just not from the web. It think this might be a library path problem. > Before compiling in UNIX, I have to give it this command: setenv > LD_LIBRARY_PATH /local/tiff-3.4/lib:$LD_LIBRARY_PATH. I tried setting the > path in my .login file, but that didn't seem to help. I might have the > syntax wrong though. Here is the setenv line from my .login file: setenv > LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/local/tiff-3.4/lib > > Any suggestions? > If you're using Apache then the value of LD_LIBRARY_PATH is not automatically passed to the CGI scripts. You can add a PassEnv or SetEnv directive to your httpd.conf with the value that should be passed to your CGI scripts. See: http://www.apache.org/docs-1.2/mod/mod_env.html#setenv -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From michalak at hwr.arizona.edu Tue May 30 12:58:10 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Tue, 30 May 2000 12:58:10 -0700 (MST) Subject: queryByPoint Message-ID: Anyone know why queryByPoint() in the perl module would not be working? I'm getting this error: Can't locate auto/mapObj/queryByPoin.al in @INC at testmakemap.pl line 81 Line 81 of testmakemap.pl: $pointQueryObj = $map->queryByPoint($map, $point, MS_MULTIPLE); From michalak at hwr.arizona.edu Tue May 30 17:14:17 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Tue, 30 May 2000 17:14:17 -0700 (MST) Subject: queryByPoint/Error found in MapServer documentation In-Reply-To: Message-ID: The answer to this is that the name of the method is queryUsingPoint(). Also, queryByRect() is actually queryUsingRect(), for the layerObj. Probably the same for the mapObj. -zm On Tue, 30 May 2000, Zolla Michalak wrote: > > Anyone know why queryByPoint() in the perl module would not be working? > > I'm getting this error: Can't locate auto/mapObj/queryByPoin.al in @INC at > testmakemap.pl line 81 > > Line 81 of testmakemap.pl: > $pointQueryObj = $map->queryByPoint($map, $point, MS_MULTIPLE); > > > > From carlson14 at llnl.gov Tue May 30 21:20:26 2000 From: carlson14 at llnl.gov (John Carlson) Date: Tue, 30 May 2000 21:20:26 -0700 Subject: client-side image-maps Message-ID: <4.2.0.58.20000530211855.00f07550@popcorn.llnl.gov> Does anyone have Netscape/HTML client-side image-maps working? Do they work when you pan and zoom? From rob at socialchange.net.au Wed May 31 01:29:51 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Wed, 31 May 2000 18:29:51 +1000 Subject: client-side image-maps References: <4.2.0.58.20000530211855.00f07550@popcorn.llnl.gov> Message-ID: <3934CD7E.E3A7C8DD@socialchange.net.au> There is a quaint bug with Netscape 4.x that means imagemaps fail to work if the page scrolling bar is not at the top of the page!! Wierd? yes. Good? no. John Carlson wrote: > Does anyone have Netscape/HTML client-side image-maps working? Do they > work when you pan and zoom? -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net Director Social Change Online Mob: 0419 202 973 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From steve.lime at dnr.state.mn.us Wed May 31 07:40:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 31 May 2000 09:40:47 -0500 Subject: client-side image-maps Message-ID: I don't think it's possible to use an imagemap with a form image. As a work around I have a new version of the applet that's been floating around to do box zooms that supports imagemap behavior. The applet reads an xml file that defines 'hot' areas and the text to display (usually attributes of some kind). I'm still adding url support but that's not really that useful since you can use the mapserver to process those queries anyway. It's the mouse over stuff that seems the most useful. I've got this working with mapscript only and haven't explored a programatic way to produce the xml files from the mapserv CGI program. Let me know if folks are interested. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Carlson 05/30/00 11:20PM >>> Does anyone have Netscape/HTML client-side image-maps working? Do they work when you pan and zoom? From RAldridge at linuxstart.com Wed May 31 09:55:07 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 31 May 2000 09:55:07 -0700 Subject: MapServer w/ SDE Message-ID: <200005311655.JAA14364@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed May 31 11:29:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 31 May 2000 13:29:47 -0500 Subject: MapServer w/ SDE Message-ID: Hmmm... Thought I replied to this last week. SDE support is not there yet. I have it connecting and retrieving features but haven't had time to move past that yet. There's no way solaris libs will work on linux so it's not worth messing with. You'd be better off spending time bugging ESRI and getting them to port enough of the SDE API to linux to build clients. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 05/31/00 11:55AM >>> Anyone using MapServer to serve up SDE data yet? We have an SDE for Oracle server set up with some of our data to test performance. My MapServer is set up on a Mandrake 7.0 / Apache system. Since the SDE client libraries and includes don't exist for Linux (yet :)), I compiled MapServer with SDE enabled using the Solaris libraries and includes. It compiled fine and the MapServer works just as before when accessing shapefiles. I have no idea if it's going to work with SDE (since I used the Solaris includes and libraries), but I'd like to test it. Problem is, I don't know the correct syntax to include in my *.map file to access the SDE data. Any hints? Thanks, Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From carlson14 at llnl.gov Wed May 31 12:06:27 2000 From: carlson14 at llnl.gov (John Carlson) Date: Wed, 31 May 2000 12:06:27 -0700 Subject: client-side image-maps In-Reply-To: Message-ID: <4.2.0.58.20000531115825.011c06f0@popcorn.llnl.gov> At 09:40 AM 5/31/00 -0500, you wrote: >I don't think it's possible to use an imagemap with a form image. Let me tell you what I have planned, and see what you think. Basically, I have a shell script which calls a program create.pl to place icons on a map (right now, just polygons) by creating a shapefile. Once the shapefile is created, I call mapserv proper to process the html page. What I was thinking was that the create.pl could also create the HTML page used by mapserv, with all the 'hot' areas in it. What do you think? One of the things I'm worried about is that I'll have to do some transformations to get from map coordinates to image coordinates. John From vrraju at lists.gis.umn.edu Wed May 31 15:37:05 2000 From: vrraju at lists.gis.umn.edu (Vatsavai Ranga Raju) Date: Wed, 31 May 2000 17:37:05 -0500 (CDT) Subject: No Results Searching MapServer List Message-ID: <200005312237.RAA20073@lists.gis.umn.edu> Dear mapserver-users Query interface to mapserver-users mailing list is currently not working. We will correct this problem ASAP. Thanks Raju ---- From victor.bulzgis at noetix.on.ca Wed May 3 07:30:26 2000 From: victor.bulzgis at noetix.on.ca (Victor Bulzgis) Date: Wed, 3 May 2000 10:30:26 -0400 Subject: [mapserver-users] unsubscribe References: <01050314035803.00701@grobi> Message-ID: <002c01bfb50c$204b3d20$2a0101c0@Dell452> unsubscribe