From AFR at carlbro.dk Wed Nov 1 02:45:38 2000 From: AFR at carlbro.dk (Allan Frese) Date: Wed, 1 Nov 2000 11:45:38 +0100 Subject: Win32 Binaries Message-ID: <00Nov1.114544cet.119065@gateway1.carlbro.dk> Hi I have just downloaded mapserv.exe version 3.3.011, but it hangs, nothings happens ... I've got some earlier version that works fine, on my Win2000 server. Is there any dependencies to NT 4.0, some dll's or anything else ?? I had the same problem with version 3.3.010. Regards, Allan F. PS. the mapserv log file is empty, and so is the eventlog. -----Original Message----- From: Pericles S. Nacionales [mailto:pnaciona at gis.umn.edu] Sent: 31. oktober 2000 20:37 To: mapserver-users at lists.gis.umn.edu Subject: Win32 Binaries Folks, NT users may now download Windows NT-compiled binaries of MapServer 3.3.011 at http://mapserver.gis.umn.edu/dload.html. This one was compiled with gd 1.2, TIFF, GeoTIFF, Proj.4, and JPEG support. Instructions for folks who download it: Extract files into a temp directory then copy mapserv.exe into the webserver's cgi-bin directory. The other binaries are mapserver utilities and can be copied anywhere. I usually just put it in the WINNT directory. You can read more about the utilities at http://mapserver.gis.umn.edu/utils.html Ciao! Perry N. PS: more docs and weekly binary updates will be available soon. From warmerda at home.com Wed Nov 1 06:52:20 2000 From: warmerda at home.com (Frank Warmerdam) Date: Wed, 01 Nov 2000 09:52:20 -0500 Subject: defining projections References: Message-ID: <3A002E24.C87BF052@home.com> Ben Lewis wrote: > I've been able to set up a site pointing at other data in the UTM > projection, but am having trouble getting data in Polyconic space to > display. There is no error message, just does not show up. What is the > syntax for referring to data in: > > Polyconic projection > elipsoid GRS80 > Long of origin -77:45:00 > Lat of origin 40:55:30 > Units meters > Extent is minx, miny, maxx, maxy? > > Also if I go with geographic how to I specify extent? Does PROJ4 handle > degrees? > > Am I in effect asking about PROJ4 commands here? Would this kind of > information be in the PROJ4 documentation? Ben, You can find the PROJ.4 documentation at http://www.remotesensing.org/proj and the detailed explanation of arguments is in the PDF document: ftp://ftp.remotesensing.org/pub/proj/OF90-284.pdf For faster navigation, you can find PROJ.4 arguments for most common projections online at: http://www.remotesensing.org/geotiff/proj_list/ You can provide lat/long values in DMS form like: 121d29'15.967"W 0d0'6.495"N or you can express in signed decimal degrees like: -121.48776 0.00180417 I don't actually use MapServer, so I can't give exact details on how to transcribe this into MapServer syntax, but the changes are as I understand minimal. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerda at home.com light and sound - activate the windows | http://members.home.com/warmerda and watch the world go round - Rush | Geospatial Programmer for Rent From berend.veldkamp at aris.nl Wed Nov 1 06:13:02 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 01 Nov 2000 15:13:02 +0100 Subject: problem with configure Message-ID: <3A0024EE.D264D883@aris.nl> Has anyone run into this problem when running: configure --with-php=/path/to/phpdir ... creating ./config.status creating Makefile sed: file conftest.s1 line 66: Unterminated `s' command creating gdft/Makefile sed: file conftest.s1 line 66: Unterminated `s' command creating mapscript/php3/Makefile sed: file conftest.s1 line 66: Unterminated `s' command FYI, I have ms 3.3.011 and php 4.0.3pl1 Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From andreag at geoplan.ufl.edu Wed Nov 1 06:19:05 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 1 Nov 2000 09:19:05 -0500 (EST) Subject: MapServer Logo Message-ID: <200011011419.eA1EJ7M26976@cosmos.geoplan.ufl.edu> I meant to send this to the list and accidentally sent it to one person... Since I wrote it Tom/teb has agreed to set up a page for this... ------------- Begin Forwarded Message ------------ I don't mean to be picky about this mapserver logo thing - but once this decision is made it would be very hard to make a big change. The examples people have shown so far are a good start but none have been ideal yet. The logo should say these things: - no preference towards a particular location (maybe even have an international flavor) - something about it being open (source) - something about it being original (it's very different from all the commercial options - all the mapserver apps are very custom-looking) (let's not look like ESRI...) - something about the good support network - and yes, something about it being geographic The globe only speaks to that last point, which may possibly be not what we want to stress most about it. I definitely want to thank all those that have proposed designs so far, but I want us to hold off on the decision for a little while until more people have had the chance and time(!!) to think more about it. How about we pick a date that we can all strive to have designs by and then post them to the same site for perusal? (I would propose Jan. 1 so that some of us who won't have time, unfortunately, until the holidays for things like this) Someone can start a page before then and then people can send designs (or ideas) to it as they are made... Thanks, Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ ------------- End Forwarded Message ------------- From aborruso at spaziogis.it Wed Nov 1 06:22:53 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 1 Nov 2000 15:22:53 +0100 Subject: Mapscript mystery??? Message-ID: Dear all, I would like to learn mapscript scripting interface for Mapserver, but I don't know absolutely which should be the starting point. Does the mapscript scripts must put in html file and saved as .pl to work? Does mapscript work with MapServer CGI application under winNT? If no, how can I use mapscript under winNT? Does exist a mapscript tutorial? What simple example I could run on my pc to test mapscript? It's a mistery for me. Excuse me for my ignorance. Thank you, Andrea From pnaciona at gis.umn.edu Wed Nov 1 07:33:41 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 1 Nov 2000 09:33:41 -0600 Subject: Win32 Binaries In-Reply-To: <00Nov1.114544cet.119065@gateway1.carlbro.dk> Message-ID: I'm using that very same mapserv.exe here at home and haven't run into any problems. It works fine on NT 4.0 at work as well even though I compiled it on Windows 2000 (workstation) with SR-1. Are there others out there who are running into the same problem? -Perry N. -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Allan Frese Sent: Wednesday, 01 November, 2000 4:46 AM To: 'Pericles S. Nacionales'; mapserver-users at lists Subject: RE: Win32 Binaries Hi I have just downloaded mapserv.exe version 3.3.011, but it hangs, nothings happens ... I've got some earlier version that works fine, on my Win2000 server. Is there any dependencies to NT 4.0, some dll's or anything else ?? I had the same problem with version 3.3.010. Regards, Allan F. PS. the mapserv log file is empty, and so is the eventlog. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Nov 1 07:35:04 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 1 Nov 2000 10:35:04 -0500 Subject: problem with configure Message-ID: <2951561DB3DDD0118FEC00805FFE98050494207E@s5-ccr-r1> Hmmmm, I once did, as did another guy in france ... The problem is, I never figured out HOW I fixed it, the problem just went away in my case, as I played with it. It would be nice to track this down once and for all ... You wouldn't happen to be on RedHat would you ? J.F. > ---------- > From: Berend Veldkamp[SMTP:berend.veldkamp at aris.nl] > Sent: Wednesday, November 01, 2000 9:13 AM > To: Mapserv > Subject: problem with configure > > Has anyone run into this problem when running: > configure --with-php=/path/to/phpdir > ... > creating ./config.status > creating Makefile > sed: file conftest.s1 line 66: Unterminated `s' command > creating gdft/Makefile > sed: file conftest.s1 line 66: Unterminated `s' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 66: Unterminated `s' command > > FYI, I have ms 3.3.011 and php 4.0.3pl1 > > Berend > > -- > _________________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl/ > _________________________________________________ > > From steve.lime at dnr.state.mn.us Wed Nov 1 08:26:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Nov 2000 10:26:20 -0600 Subject: New mailing lists... Message-ID: Ok. The folks at the UMN have set up 2 new mailing lists to support group documentation and demo functions. Please join if you're interested and we'll get organized over the next couple of weeks. To subscribe send mail to majordomo at lists.gis.umn.edu with one of the following in the body of the message: subscribe mapserver-docs subscribe mapserver-demo Thanks! Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From marin at hi.is Wed Nov 1 08:39:07 2000 From: marin at hi.is (Mar.K) Date: Wed, 01 Nov 2000 16:39:07 +0000 Subject: Win32 Binaries References: Message-ID: <3A00472A.FF97B387@hi.is> What is the difference between these two Win MapServer distributions: http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip and http://mapserver.gis.umn.edu/win32bin/ms33011g.zip ? "Pericles S. Nacionales" wrote: > Are there others out there who are running into the same problem? > No. Both distributions work perfect on WinNT4 and Win95 for me with Apache and OmniHTTPd web servers. --- Ma From assefa at dmsolutions.on.ca Wed Nov 1 08:47:59 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Wed, 01 Nov 2000 11:47:59 -0500 Subject: redraw acc. to query References: <39FEC154.9C585BA2@avenza.com> <39FEE866.38110B87@dmsolutions.on.ca> Message-ID: <3A00493F.308B7E62@dmsolutions.on.ca> Hi, Most of the missing wrapers in the php mapscript are now added and available in the CVS. The documenation is also up todate ( http://www2.dmsolutions.on.ca/mapserver/php_mapscript/php_mapscript_docs.html) Later, Daniel Morissette wrote: > Dennis Christopher wrote: > > > > (I posted this question once before, but haven't got an answer.) I don't > > beleive it involves anything difficult. > > Can anyone give me an outline of how to do this? > > > > I want to have the current map redrawn according to a query result, with > > the areas selected > > by the query drawn in some specified highlight color, and the > > non-selected areas drawn as normal. > > > > Hi Dennis, > > Based on what I read in your previous message, I assume that you're > trying to use the QUERYMAP feature with PHP MapScript (i.e. not the > mapserv CGI), right? > > In MapScript, if you want selected items to be highlighted according to > the QUERYMAP settings, you have to use the drawQueryMap() method after > running your Query, instead of drawMap(). > > Say your map contains the following: > > QUERYMAP > COLOR 255 0 0 > STYLE HILITE > END > > then you would need the following PHP code to draw your map with the > result of the query highlighted: > > $gpoQueryResults = $gpoMap->QueryUsingPoint(...); > > ... > > if ($gpoQueryResults && $gpoQueryResults->numresults > 0) > { > $img = $gpoMap->drawquerymap($gpoQueryResults); > $url = $img->saveWebImage(0, 0); > } > else > { > $img = $gpoMap->draw(); > $url = $img->saveWebImage(0, 0); > } > > Unfortunately, drawQueryMap() is not available in the current version > PHP MapScript. It's one of those functions that we never needed and for > which we had not written a PHP wrapper yet. Assefa is about to complete > the task of going through all the MapScript classes in the PHP MapScript > module and adding PHP wrappers for the missing ones. This should be > committed in the CVS in the next few days. > > I hope that helps. > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.on.ca > http://www.dmsolutions.on.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.on.ca http://www.dmsolutions.on.ca Phone: (613) 565-5056 ---------------------------------------------------------------- From geotux at yahoo.com Wed Nov 1 09:08:59 2000 From: geotux at yahoo.com (geotux at yahoo.com) Date: Wed, 1 Nov 2000 09:08:59 -0800 (PST) Subject: No subject Message-ID: <20001101170859.25425.qmail@web10707.mail.yahoo.com> auth 10f9637a subscribe mapserver-users \ geotux at yahoo.com __________________________________________________ Do You Yahoo!? >From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ From m_anderson14 at hotmail.com Wed Nov 1 09:54:22 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Wed, 01 Nov 2000 17:54:22 GMT Subject: Mapserver <=> ArcIMS comparison Message-ID: I have been using both ArcIMS and MapServer for a few months. Before I give my opinion on a comparison, I would like to point out that the scope of what ArcIMS and MapServer attempt to do is different. ArcIMS has several components designed to do things that MapServer alone doesn?t address. This includes html and applet based viewers for the client as well as several components on the server. The components on the server include the application server, manager components, and the spatial servers. The spatial server is what renders the images, handles spatial queries, extracts features, etc. The manager components allow you to build ?Map Services? (map files), create web sites using the map services, and publish the sites. The application server allows you to distribute pieces of your application over multiple machines and pool several machines to handle increased loads. It also allows you to use COM and Cold Fusion in your application as the ?connector? between the web server and application server. ArcIMS has two additional components that start and stop processes and delete images on a schedule. MapServer alone is only analogous to the spatial server, but the other features can be added using other tools. Other than being able to use fewer data formats, MapServer is a better spatial server than ArcIMS?s. By using an existing web application server you can get the additional functionality with a minimal amount of work. I am using Zope, which is Python based, as my application server. It is also Open Source. It is a much better application server than the ArcIMS component. In addition to allowing you to distribute your application, and pool machines, it also handles user authentication, and gives Unix like permissions to files, URLs, and operations. It also handles publishing the sites easily. I haven?t gotten around to using it to make the map files or the web site though. I use ArcView to make the map files and have someone else make the web site. Zope does allow me to share single html and JavaScript files across multiple web sites, which makes maintenance a lot easier. It is also possible to use Zope as a connector to ArcIMS so a single application could use both MapServer and ArcIMS (as well as other GIS engines). I am also aware of a Java based application server called Enhydra that is also Open Source. I have installed it, but haven?t had much time to use it, so I can?t really say what it can do. There are also commercial application servers available like IBM?s WebSphere. You could probably do a lot with Cold Fusion as well. That said, here is my 2 cents on the advantages and disadvantages of ArcIMS: Advantages of ArcIMS - distribute applications over multiple machines - Native integration with the Geography Network. MapServer can be made to work within the geography network. - Includes software to handle routine tasks like making the map services (map files), designing web sites, etc. - Supports more data formats ? especially raster - Better support for storing spatial data in RDBMS through SDE - You don?t have to try to sell a relatively unknown product (MapServer) and philosophy (Open Source) Disadvantages of ArcIMS - speed (even running mapserv as regular cgi it is much faster) - resource hog - limited OS (no Linux) - less stable. My ArcIMS experience is on NT so that may be more a reflection of the OS than ArcIMS. - poorer support - source code unavailable - cost Mike Michael Anderson Spatial Information Technologies, Inc. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From pnaciona at gis.umn.edu Wed Nov 1 12:05:49 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 1 Nov 2000 14:05:49 -0600 Subject: Win32 Binaries References: <3A00472A.FF97B387@hi.is> Message-ID: <010e01c0443f$212f72c0$9a496580@gis.umn.edu> > What is the difference between these two Win MapServer distributions: > http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip > and > http://mapserver.gis.umn.edu/win32bin/ms33011g.zip ? > Good question. The http://mapserver.gis.umn.edu/win32bin/ms33011g.zip was compiled with support for the following: TIFF/GeoTIFF JPEG GD 1.2 (so it generates GIF images) FREETYPE PROJ 4.4.2 It looks like http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip includes a mapscript/php3 DLL. So if you plan to use mapscript and php3 on Windows, this is the distribution to get. From steve.lime at dnr.state.mn.us Wed Nov 1 12:30:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Nov 2000 14:30:44 -0600 Subject: MapServer productivity tools. Message-ID: Seems one of the biggest holes in the MapServer application is the lack of tools for building and administering MapServer applications. Again this is an area where the group at large can help out. I know folks are using ArcView to build .map files. Cool, but why don't we get together and support a single version that is distributed via the MapServer web site? Could those doing this contact me off the list and I'll help facilitate it? Other tools? Cough 'em up and let's get an archive going. I've got several MapScript tools for doing all sorts of things. I'm willing to reorganize the site's utils section to get this stuff out there. I've also been writing a client application environment to allow higher-end applications to be easily created. The environment consists of an applet to display images (it has a few other features) and a javascript library to manage coordinates and layers. It tells the applet what image to retrieve and so on. Those components are just about ready for use, sans documentation. The first app I've built on top of these components can be previewed at: http://maps.dnr.state.mn.us/landview You'll need version 4.5 or higher browsers to use it. (I haven't investigated older ones yet) This type of software is what I'd really like focus on, but will need help given all the other stuff that needs doing. This runs on top of the new 3.3.012 CVS version. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From morissette at dmsolutions.on.ca Wed Nov 1 12:47:16 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 01 Nov 2000 15:47:16 -0500 Subject: Win32 Binaries References: <3A00472A.FF97B387@hi.is> <010e01c0443f$212f72c0$9a496580@gis.umn.edu> Message-ID: <3A008154.FB3EE42A@dmsolutions.on.ca> Hi, http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip is compiled with TIFF, GD 1.2, FREETYPE and PROJ4 ... so the only difference is that JPEG is missing. BTW, our ms_3.3.011-win32.zip will probably become obsolete if Pericles maintains one on the MapServer web site (we'll just place a php_mapscript.dll on our FTP site). We used to have a readme.txt in the ZIP file with the compile options but it seems to have been forgotten this time... it might be a good idea to include one in your distribution too Pericles. Steve, what would you think of adding a "-v" command-line option to the "mapserv" executable that would return the same as the writeVersion() function? That would have been useful in this case. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. "Pericles S. Nacionales" wrote: > > > What is the difference between these two Win MapServer distributions: > > http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip > > and > > http://mapserver.gis.umn.edu/win32bin/ms33011g.zip ? > > > > Good question. > > The http://mapserver.gis.umn.edu/win32bin/ms33011g.zip was compiled with > support for the following: > TIFF/GeoTIFF > JPEG > GD 1.2 (so it generates GIF images) > FREETYPE > PROJ 4.4.2 > > It looks like > http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-win32.zip includes a > mapscript/php3 DLL. So if you plan to use mapscript and php3 on Windows, > this is the distribution to get. From benlewis1 at hotmail.com Wed Nov 1 12:51:08 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Wed, 01 Nov 2000 20:51:08 GMT Subject: Thanks Message-ID: A big thank you to all who answered my query regarding defining projection spaces. So many responses so fast! This is a great effort. MapServer and the many other great open GIS projects out there convince me Open Source/Free GIS is the future of GIS. - Ben Lewis _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From steve.lime at dnr.state.mn.us Wed Nov 1 13:53:56 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Nov 2000 15:53:56 -0600 Subject: Fwd: Ideas for Mapserver/Webmapping Message-ID: This one got lost in my mailbox... -------------- next part -------------- An embedded message was scrubbed... From: "K.A. Braselmann" Subject: Ideas for Mapserver/Webmapping Date: Tue, 17 Oct 2000 07:56:38 +0200 Size: 4977 URL: From Matt.Wilkie at gov.yk.ca Wed Nov 1 14:06:34 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 1 Nov 2000 14:06:34 -0800 Subject: NQUERY only creates one image? Message-ID: <6DD7370C9452D31192A10008C75D0753071341B7@raptor.gov.yk.ca> Hi All, I need some help understanding how NQUERY works, or more accurately, diplaying the results of nquery. The problem is that all returned records show the same image. Digging deeper I discovered that only four images are being generated from the nquery: 1 legend, 1 reference, 1 scalebar, 1 regular map image. Is this a bug or am I doing something wrong? The query (parsed for easy reading): http://199.247.173.116/cgi-bin/mapserv&\ mode=nquery&\ layer=Neatline&\ layer=Roads&\ layer=Watercourses&\ layer=Waterbodies&\ zoomdir=0&\ zoomsize=2&\ imgxy=299.5+299.5&\ imgext=333361.916427+668031.136000+365226.766573+699918.837000&\ map=/var/www/htdocs/maps/data/105d/105d11.map&\ savequery=true&\ mapext=shapes&\ img.x=516&img.y=122 Number of records returned: 12 (11 Roads, 1 Waterbody) The resultant files: -rw-r--r-- 1 1410 everyone 4848 Nov 1 13:54 \ 105d11973115666208793.png -rw-r--r-- 1 1410 everyone 221 Nov 1 13:54 \ 105d11973115666208793.qy -rw-r--r-- 1 1410 everyone 824 Nov 1 13:54 \ 105d11leg973115666208793.png -rw-r--r-- 1 1410 everyone 15773 Nov 1 13:54 \ 105d11ref973115666208793.png -rw-r--r-- 1 1410 everyone 420 Nov 1 13:54 \ 105d11sb973115666208793.png (BTW, is there anyway to get the cgi to return "/" instead of "%2F"? It makes reading the commandline very difficult) -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From RAldridge at linuxstart.com Wed Nov 1 14:53:45 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 1 Nov 2000 17:53:45 -0500 Subject: MapServer productivity tools. Message-ID: <200011012253.eA1MrjE26978@tbird.iworld.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed Nov 1 19:23:59 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Nov 2000 21:23:59 -0600 Subject: MapServer productivity tools. Message-ID: I am working on an alternative to the ArcView method that uses MapScript and Perl/Tk. Again all it needs is some others to help out. Nice thing about this approach is the cross platform support (assuming mapscript can be compiled everywhere). Steve >>> RAldridge 11/01/00 16:52 PM >>> Steve, I agree that productivity tools for MapServer would be nice. The ArcView apps for producing .map files are a good idea. However, many of us are developing MapServer apps on Linux and I feel it would be nice to have a tool that works in Linux. That being said, it seems to me that we should be able to develop a .map file generator using ShapeLib with Python, PHP, C, or something. You could use it to build a "view" using available shapefiles, images, and symbol files. Once you have it looking like you want it, you could save the .map file. The .map file would basically correspond to the .apr file in ArcView. I would hope that the tool would allow you to open existing .map files, view them graphically, add/remove layers, change symbology, etc. and re-save the file. I know all of this is easier said than done, but I can't see any technical obstacles to doing something like this. It's simply a matter of getting the people with the appropriate skills interested in the project. Perhaps, we should look at existing projects (OSSIM, ???) and see if they would be interested in providing for the functionality we need in their projects. Frank Warmerdam (ShapeLib) told me sometime back that he was working on a "Shapefile Viewer/Editor" that would work on Linux. Perhaps if his app can load/view images and shapefiles, he could simply add functionality to use MapServer symbol files and write out .map files. Keep us posted. I'd like to see something developed in this area. Later, Robert Aldridge >Stephen Lime wrote: > >>From ??? Fri Feb 19 09: 25 >>From owner-mapserver-users at lists.gis.umn.edu Wed Nov 1 17: 06 >>Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) >>by tbird.iworld.com (8.10.2/8.10.2) with ESMTP id eA1M6PY21205: >>for ; Wed, 1 Nov 2000 17: 06 >>Received: (from majordom at localhost) >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id OAA25120: >>for mapserver-users-list; Wed, 1 Nov 2000 14: 37 >>Received: from smtp.dnr.state.mn.us (gwgate.dnr.state.mn.us [156.98.35.249]) >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id OAA25116: >>for ; Wed, 1 Nov 2000 14: 37 >>Received: from DNR-Message_Server by smtp.dnr.state.mn.us >>with Novell_GroupWise; Wed, 01 Nov 2000 14: 31 >>Message-Id: >>X-Mailer: Novell GroupWise Internet Agent 5.5.3.1 >>Date: Wed, 01 Nov 2000 14 >>Mime-Version: 1.0 >>Content-Type: text/plain; charset=US-ASCII >>Content-Disposition: inline >>Content-Transfer-Encoding: 8bit >>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id OAA25117 >>Sender: owner-mapserver-users at lists.gis.umn.edu >>Precedence: bulk > >>Seems one of the biggest holes in the MapServer application is the lack of tools for >>building and administering MapServer applications. Again this is an area where the >>group at large can help out. I know folks are using ArcView to build .map files. Cool, >>but why don't we get together and support a single version that is distributed via the >>MapServer web site? Could those doing this contact me off the list and I'll help >>facilitate it? >> >>Other tools? Cough 'em up and let's get an archive going. I've got several MapScript >>tools for doing all sorts of things. I'm willing to reorganize the site's utils section to get >>this stuff out there. >> >>I've alsobeen writing a client application environment to allow higher-end applications >>to be easily created. The environment consists of an applet to display images (it has a >>few other features) and a javascript library to manage coordinates and layers. It tells >>the applet what image to retrieve and so on. Those components are just about ready >>for use, sans documentation. The first app I've built on top of these components can >>be previewed at: >> >> http://maps.dnr.state.mn.us/landview >> >>You'll need version 4.5 or higher browsers to use it. (I haven't investigated older ones >>yet) This type of software is what I'd really like focus on, but will need help given all the >>other stuff that needs doing. This runs on top of the new 3.3.012 CVS version. >> >>Steve >> >> >>Stephen Lime >>Internet Applications Analyst >> >>Minnesota DNR >>500 Lafayette Road >>St. Paul, MN 55155 >>651-297-2937 >> > >---------------------- >Do you do Linux? :) >Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From steve.lime at dnr.state.mn.us Wed Nov 1 19:41:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Nov 2000 21:41:46 -0600 Subject: NQUERY only creates one image? Message-ID: A query map operates on a single set of results, which can contain many features. That set of results is used to produce 1 map. If you really want to produce a map per feature then you can use the shape metrics (see the shpmid and shpext template substituitions) in conjunction with additional calls to the mapserver. In your query template template you would build a call to create an inset map with something like 11/01/00 16:07 PM >>> Hi All, I need some help understanding how NQUERY works, or more accurately, diplaying the results of nquery. The problem is that all returned records show the same image. Digging deeper I discovered that only four images are being generated from the nquery: 1 legend, 1 reference, 1 scalebar, 1 regular map image. Is this a bug or am I doing something wrong? The query (parsed for easy reading): http://199.247.173.116/cgi-bin/mapserv&\ mode=nquery&\ layer=Neatline&\ layer=Roads&\ layer=Watercourses&\ layer=Waterbodies&\ zoomdir=0&\ zoomsize=2&\ imgxy=299.5+299.5&\ imgext=333361.916427+668031.136000+365226.766573+699918.837000&\ map=/var/www/htdocs/maps/data/105d/105d11.map&\ savequery=true&\ mapext=shapes&\ img.x=516&img.y=122 Number of records returned: 12 (11 Roads, 1 Waterbody) The resultant files: -rw-r--r-- 1 1410 everyone 4848 Nov 1 13:54 \ 105d11973115666208793.png -rw-r--r-- 1 1410 everyone 221 Nov 1 13:54 \ 15d11973115666208793.qy -rw-r--r-- 1 1410 everyone 824 Nov 1 13:54 \ 105d11leg973115666208793.png -rw-r--r-- 1 1410 everyone 15773 Nov 1 13:54 \ 105d11ref973115666208793.png -rw-r--r-- 1 1410 everyone 420 Nov 1 13:54 \ 105d11sb973115666208793.png (BTW, is there anyway to get the cgi to return "/" instead of "%2F"? It makes reading the commandline very difficult) -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From jan at intevation.de Thu Nov 2 00:36:58 2000 From: jan at intevation.de (Jan-Oliver Wagner) Date: Thu, 2 Nov 2000 09:36:58 +0100 Subject: Fwd: Ideas for Mapserver/Webmapping In-Reply-To: ; from steve.lime@dnr.state.mn.us on Wed, Nov 01, 2000 at 03:53:56PM -0600 References: Message-ID: <20001102093658.B30587@abnoba.intevation.de> Hi Andre, > We don't want to combine different layers from different > partners in one map, because every partner has only the data from his > own area. > > Does anyone have experience with that kind of projects? It sounds like a standard web mapping application MapServer is surely able to meet. > Am i thinking totally wrong? Nope :-) > Is openGIS another proprietary standard? No. The specifications are open. If I remember correctly, some people in Italy have started a OpenGIS WMS compliant version of MapServer and thats a good thing to my mind. Unfortunately the work seems not finsihed and gone into the main development of MapServer. > Any timeline expiriences? hm, from my experience it sounds like an effort counted in weeks. However, I would only commit to a timeline if I had seen the data and the specification for the web.based user interface :-) > Don' misunderstand me: Companys are doing a lot of research and > programming and that is o.k. and i'm always willing to pay for good > software which meets my needs. We also have to live from our work. For Free Software you can select what you want to pay for (installation service, product extensions etc) and whom you want to pay this. A fundamental difference to proprietary products. Cheers Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From pgallen at randomlogic.com Thu Nov 2 01:59:25 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Thu, 02 Nov 2000 01:59:25 -0800 Subject: MapServer Application: Remote security and monitoring system References: Message-ID: <3A013AFD.11D23EC1@randomlogic.com> Even though it's not quite ready for Prime Time yet, I thought I would share my project with the list. The main things that prompted me to do this is 1) I'm itching for a little feedback, 2) Some questions about MapServer have arose on the list that I think my application answers, 3) I am (or will be) in need of additional functionality for my application (such as geo-coding and a method of providing directions between two points or addresses on the map). Without going into detail that you can find on the web site, I'll simply tell you it's a security and monitoring device that works from GPS and LEO (Low Earth Orbit) satellites. The "What is BlackJack?" link will give you many more details. The URL is: http://24.5.14.144:3000 (running on my cable modem through a Linux firewall) The web server and map server are a single Alpha 433MHz machine running Red Hat Linux 6.0 (patched), Apache 1.3.12, Perl 5.6, and MapServer 3.001 (yes, I am behind, but I've been REAL busy with my "real" job :). MapServer was compiled with Proj 4 and Compaq's math library. I currently have 12GB of map data available, but have only converted a couple of states into the correct format for MapServer. I am also using IBM's DB2 for point data and all information relating to the point data (there are currently 3600 records in the database from 6 months of testing a prototype unit). DB2 is running on an AMD K6-180MHz machine (also RH Linux) and uses a proxy I wrote in Perl to exchange data with the web/map server. Use the "What is BlackJack?" and "Demo BlackJack" links to see what it does. There are many features you can not see in the demo because they are either being re-designed or they are simply not shown because the project is not quite public yet. All web pages are created dynamically by Perl Scripts, as are the map images, and every page/image combo has a unique name so the server does not confuse one browser request with another. One note: Don't enable freeways or MapServer will choke. I don't know why, nor will I worry about it until I upgrade to the latest version. Since this does not pay my bills, I can only work on it when I have the free time to do so. At times the proxy has issues as well, but if it dies, a cron job will restart it. Enjoy, PGA From m_anderson14 at hotmail.com Thu Nov 2 06:30:13 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Thu, 02 Nov 2000 14:30:13 GMT Subject: Mapserver <=> ArcIMS comparison Message-ID: Hi Herman, I have an extension that creates the map files. I am working on getting it documented well enough that others can use it. I should have time to finish it within the next week or so. Then I will make it available to anyone who wants it. It would probably help if a few more people would try it out and give me feedback before I make it widely available. If you would like to do that, let me know. I could have the bare bones documentation ready by Monday. Mike >From: Herman Tjesse de Haan >To: 'Michael Anderson' >Subject: RE: Mapserver <=> ArcIMS comparison >Date: Thu, 2 Nov 2000 08:08:03 +0100 > >Hi Michael, > >Interesting to read about ArcIMS <=> Mapserver. >You mentioned you use ArcView to make mapfiles. >How do you do this? > >Thanks in advance! > >Herman de Haan >Municipality Delft >The Netherlands > >-----Oorspronkelijk bericht----- >Van: Michael Anderson [mailto:m_anderson14 at hotmail.com] >Verzonden: woensdag 1 november 2000 18:54 >Aan: mapserver-users at lists.gis.umn.edu >Onderwerp: Re: Mapserver <=> ArcIMS comparison > > > I have been using both ArcIMS and MapServer for a few months. Before I >give my opinion on a comparison, I would like to point out that the scope >of > >what ArcIMS and MapServer attempt to do is different. ArcIMS has several >components designed to do things that MapServer alone doesn't address. This >includes html and applet based viewers for the client as well as several >components on the server. The components on the server include the >application server, manager components, and the spatial servers. The >spatial > >server is what renders the images, handles spatial queries, extracts >features, etc. The manager components allow you to build "Map Services" >(map > >files), create web sites using the map services, and publish the sites. >The > >application server allows you to distribute pieces of your application over >multiple machines and pool several machines to handle increased loads. It >also allows you to use COM and Cold Fusion in your application as the >"connector" between the web server and application server. ArcIMS has two >additional components that start and stop processes and delete images on a >schedule. > MapServer alone is only analogous to the spatial server, but the >other >features can be added using other tools. Other than being able to use fewer >data formats, MapServer is a better spatial server than ArcIMS's. By using >an existing web application server you can get the additional functionality >with a minimal amount of work. I am using Zope, which is Python based, as >my > >application server. It is also Open Source. It is a much better application >server than the ArcIMS component. In addition to allowing you to distribute >your application, and pool machines, it also handles user authentication, >and gives Unix like permissions to files, URLs, and operations. It also >handles publishing the sites easily. I haven't gotten around to using it to >make the map files or the web site though. I use ArcView to make the map >files and have someone else make the web site. Zope does allow me to share >single html and JavaScript files across multiple web sites, which makes >maintenance a lot easier. It is also possible to use Zope as a connector to >ArcIMS so a single application could use both MapServer and ArcIMS (as well >as other GIS engines). I am also aware of a Java based application server >called Enhydra that is also Open Source. I have installed it, but haven't >had much time to use it, so I can't really say what it can do. There are >also commercial application servers available like IBM's WebSphere. You >could probably do a lot with Cold Fusion as well. > >That said, here is my 2 cents on the advantages and disadvantages of >ArcIMS: > >Advantages of ArcIMS >- distribute applications over multiple machines >- Native integration with the Geography Network. MapServer can be made to >work within the geography network. >- Includes software to handle routine tasks like making the map services >(map files), designing web sites, etc. >- Supports more data formats - especially raster >- Better support for storing spatial data in RDBMS through SDE >- You don't have to try to sell a relatively unknown product (MapServer) >and > >philosophy (Open Source) > >Disadvantages of ArcIMS >- speed (even running mapserv as regular cgi it is much faster) >- resource hog >- limited OS (no Linux) >- less stable. My ArcIMS experience is on NT so that may be more a >reflection of the OS than ArcIMS. >- poorer support >- source code unavailable >- cost > >Mike > >Michael Anderson >Spatial Information Technologies, Inc. > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Nov 2 06:57:10 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 2 Nov 2000 09:57:10 -0500 Subject: MapServer productivity tools. Message-ID: <2951561DB3DDD0118FEC00805FFE98050494208D@s5-ccr-r1> I would TOTALLY support this idea, as I like a lot of other people obviously, also thought of it. Perl/Tk seems like an bvious choice, but I'd like ot throw the idea of using Java out there, possibly Swig'ifing MapServer with Java, as Dan had once suggested (This would also allow for a MapServer for JSP's !). And it would be even more truely cross-platform. But aside form that technical detail, The functionality Robert describes would be very handy indeed. Another thing I've worked on in the past, is to have the mapfile stored entirely (Or as much as possible) in an RDBMS. I allready did this actually, and it works fine. I then use one of the MapScripts to get and build maps/layers on the fly, based on given parameters. The main idea behind this was to allow web based management of the maps, layers, colors, symbols, whatever. The tough part is making the whole system behave exactly like a mapfile, keep track and dealing with changes in mapfile formats, and also issues with some undocumented things. And while I'm at it, providing a Perl Module/PHP Classes to provide an interface to this system would also be very handy. An API if you will. Heck, even the CGI version could support this. I would be most interested in continuing (restarting ?) work on this since I've had to put it on the back burner for a while. Are we gonna have -utils mailing list now ? :) J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, November 01, 2000 10:23 PM > To: RAldridge at linuxstart.com > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: MapServer productivity tools. > > I am working on an alternative to the ArcView method that uses MapScript > and Perl/Tk. Again all it needs is some others to help out. Nice thing > about this approach is the cross platform support (assuming mapscript can > be compiled everywhere). > > Steve > > >>> RAldridge 11/01/00 16:52 PM >>> > Steve, > > I agree that productivity tools for MapServer would be nice. The ArcView > apps for producing .map files are a good idea. However, many of us are > developing MapServer apps on Linux and I feel it would be nice to have a > tool that works in Linux. > > That being said, it seems to me that we should be able to develop a .map > file generator using ShapeLib with Python, PHP, C, or something. You > could use it to build a "view" using available shapefiles, images, and > symbol files. Once you have it looking like you want it, you could save > the .map file. The .map file would basically correspond to the .apr file > in ArcView. I would hope that the tool would allow you to open existing > .map files, view them graphically, add/remove layers, change symbology, > etc. and re-save the file. > > I know all of this is easier said than done, but I can't see any technical > obstacles to doing something like this. It's simply a matter of getting > the people with the appropriate skills interested in the project. > > Perhaps, we should look at existing projects (OSSIM, ???) and see if they > would be interested in providing for the functionality we need in their > projects. Frank Warmerdam (ShapeLib) told me sometime back that he was > working on a "Shapefile Viewer/Editor" that would work on Linux. Perhaps > if his app can load/view images and shapefiles, he could simply add > functionality to use MapServer symbol files and write out .map files. > > Keep us posted. I'd like to see something developed in this area. > > Later, > > Robert Aldridge > > > >Stephen Lime wrote: > > > >>From ??? Fri Feb 19 09: 25 > >>From owner-mapserver-users at lists.gis.umn.edu Wed Nov 1 17: 06 > >>Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > >>by tbird.iworld.com (8.10.2/8.10.2) with ESMTP id eA1M6PY21205: > >>for ; Wed, 1 Nov 2000 17: 06 > >>Received: (from majordom at localhost) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id OAA25120: > >>for mapserver-users-list; Wed, 1 Nov 2000 14: 37 > >>Received: from smtp.dnr.state.mn.us (gwgate.dnr.state.mn.us > [156.98.35.249]) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id OAA25116: > >>for ; Wed, 1 Nov 2000 14: 37 > >>Received: from DNR-Message_Server by smtp.dnr.state.mn.us > >>with Novell_GroupWise; Wed, 01 Nov 2000 14: 31 > >>Message-Id: > >>X-Mailer: Novell GroupWise Internet Agent 5.5.3.1 > >>Date: Wed, 01 Nov 2000 14 > >>Mime-Version: 1.0 > >>Content-Type: text/plain; charset=US-ASCII > >>Content-Disposition: inline > >>Content-Transfer-Encoding: 8bit > >>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu > id OAA25117 > >>Sender: owner-mapserver-users at lists.gis.umn.edu > >>Precedence: bulk > > > >>Seems one of the biggest holes in the MapServer application is the lack > of tools for > >>building and administering MapServer applications. Again this is an area > where the > >>group at large can help out. I know folks are using ArcView to build > .map files. Cool, > >>but why don't we get together and support a single version that is > distributed via the > >>MapServer web site? Could those doing this contact me off the list and > I'll help > >>facilitate it? > >> > >>Other tools? Cough 'em up and let's get an archive going. I've got > several MapScript > >>tools for doing all sorts of things. I'm willing to reorganize the > site's utils section to get > >>this stuff out there. > >> > >>I've alsobeen writing a client application environment to allow > higher-end applications > >>to be easily created. The environment consists of an applet to display > images (it has a > >>few other features) and a javascript library to manage coordinates and > layers. It tells > >>the applet what image to retrieve and so on. Those components are just > about ready > >>for use, sans documentation. The first app I've built on top of these > components can > >>be previewed at: > >> > >> http://maps.dnr.state.mn.us/landview > >> > >>You'll need version 4.5 or higher browsers to use it. (I haven't > investigated older ones > >>yet) This type of software is what I'd really like focus on, but will > need help given all the > >>other stuff that needs doing. This runs on top of the new 3.3.012 CVS > version. > >> > >>Steve > >> > >> > >>Stephen Lime > >>Internet Applications Analyst > >> > >>Minnesota DNR > >>500 Lafayette Road > >>St. Paul, MN 55155 > >>651-297-2937 > >> > > > >---------------------- > >Do you do Linux? :) > >Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > > > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > From bfraser at geoanalytic.com Thu Nov 2 07:07:14 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 2 Nov 2000 08:07:14 -0700 Subject: MapServer productivity tools. References: Message-ID: <002301c044de$95707ea0$390002c0@servo> Has anyone been able to get mapscript running on NT? If so, how? Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Stephen Lime" To: Cc: Sent: Wednesday, November 01, 2000 8:23 PM Subject: Re: MapServer productivity tools. > I am working on an alternative to the ArcView method that uses MapScript and Perl/Tk. Again all it needs is some others to help out. Nice thing about this approach is the cross platform support (assuming mapscript can be compiled everywhere). > > Steve > > >>> RAldridge 11/01/00 16:52 PM >>> > Steve, > > I agree that productivity tools for MapServer would be nice. The ArcView apps for producing .map files are a good idea. However, many of us are developing MapServer apps on Linux and I feel it would be nice to have a tool that works in Linux. > > That being said, it seems to me that we should be able to develop a .map file generator using ShapeLib with Python, PHP, C, or something. You could use it to build a "view" using available shapefiles, images, and symbol files. Once you have it looking like you want it, you could save the .map file. The .map file would basically correspond to the .apr file in ArcView. I would hope that the tool would allow you to open existing .map files, view them graphically, add/remove layers, change symbology, etc. and re-save the file. > > I know all of this is easier said than done, but I can't see any technical obstacles to doing something like this. It's simply a matter of getting the people with the appropriate skills interested in the project. > > Perhaps, we should look at existing projects (OSSIM, ???) and see if they would be interested in providing for the functionality we need in their projects. Frank Warmerdam (ShapeLib) told me sometime back that he was working on a "Shapefile Viewer/Editor" that would work on Linux. Perhaps if his app can load/view images and shapefiles, he could simply add functionality to use MapServer symbol files and write out .map files. > > Keep us posted. I'd like to see something developed in this area. > > Later, > > Robert Aldridge > > > >Stephen Lime wrote: > > > >>From ??? Fri Feb 19 09: 25 > >>From owner-mapserver-users at lists.gis.umn.edu Wed Nov 1 17: 06 > >>Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > >>by tbird.iworld.com (8.10.2/8.10.2) with ESMTP id eA1M6PY21205: > >>for ; Wed, 1 Nov 2000 17: 06 > >>Received: (from majordom at localhost) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id OAA25120: > >>for mapserver-users-list; Wed, 1 Nov 2000 14: 37 > >>Received: from smtp.dnr.state.mn.us (gwgate.dnr.state.mn.us [156.98.35.249]) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id OAA25116: > >>for ; Wed, 1 Nov 2000 14: 37 > >>Received: from DNR-Message_Server by smtp.dnr.state.mn.us > >>with Novell_GroupWise; Wed, 01 Nov 2000 14: 31 > >>Message-Id: > >>X-Mailer: Novell GroupWise Internet Agent 5.5.3.1 > >>Date: Wed, 01 Nov 2000 14 > >>Mime-Version: 1.0 > >>Content-Type: text/plain; charset=US-ASCII > >>Content-Disposition: inline > >>Content-Transfer-Encoding: 8bit > >>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id OAA25117 > >>Sender: owner-mapserver-users at lists.gis.umn.edu > >>Precedence: bulk > > > >>Seems one of the biggest holes in the MapServer application is the lack of tools for > >>building and administering MapServer applications. Again this is an area where the > >>group at large can help out. I know folks are using ArcView to build .map files. Cool, > >>but why don't we get together and support a single version that is distributed via the > >>MapServer web site? Could those doing this contact me off the list and I'll help > >>facilitate it? > >> > >>Other tools? Cough 'em up and let's get an archive going. I've got several MapScript > >>tools for doing all sorts of things. I'm willing to reorganize the site's utils section to get > >>this stuff out there. > >> > >>I've alsobeen writing a client application environment to allow higher-end applications > >>to be easily created. The environment consists of an applet to display images (it has a > >>few other features) and a javascript library to manage coordinates and layers. It tells > >>the applet what image to retrieve and so on. Those components are just about ready > >>for use, sans documentation. The first app I've built on top of these components can > >>be previewed at: > >> > >> http://maps.dnr.state.mn.us/landview > >> > >>You'll need version 4.5 or higher browsers to use it. (I haven't investigated older ones > >>yet) This type of software is what I'd really like focus on, but will need help given all the > >>other stuff that needs doing. This runs on top of the new 3.3.012 CVS version. > >> > >>Steve > >> > >> > >>Stephen Lime > >>Internet Applications Analyst > >> > >>Minnesota DNR > >>500 Lafayette Road > >>St. Paul, MN 55155 > >>651-297-2937 > >> > > > >---------------------- > >Do you do Linux? :) > >Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > > > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > From mcilhagga at dmsolutions.on.ca Thu Nov 2 07:13:14 2000 From: mcilhagga at dmsolutions.on.ca (Dave McIlhagga) Date: Thu, 02 Nov 2000 10:13:14 -0500 Subject: MapServer productivity tools. References: <200011012253.eA1MrjE26978@tbird.iworld.com> Message-ID: <3A01848A.707FD9B5@dmsolutions.on.ca> We at DM Solutions have recently submitted a large proposal for the development of significant tools that will accomplish some of the things being discussed here. All core improvements would be returned to the MapServer community through open source licensing. These include: - OGC-compliance for MapServer as a Satellite Map Server and Cascading Map Server (receive and send OGC requests) - a web-based .map editor - full integration of GDAL (an open source raster library) and OGR (an open source vector library) - install package (perhaps install shield) for MapServer on Windows - image warping allowing reprojection of rasters on-the-fly Regardless of the outcome of the proposal, many of these items will be developed over the coming months through one funding mechanism or another. I will certainly be in touch with the list to let you know how the proposal fares and we will be consulting the list for ideas on the best way to proceed should this come to fruition. We should be notified of the results by late November. I'm just trying to minimize duplications of effort by giving the list a heads up of some of the new developments that may be coming soon. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.on.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.on.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From david.armstrong at ntlworld.com Thu Nov 2 07:53:11 2000 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 2 Nov 2000 15:53:11 -0000 Subject: MapServer productivity tools. ? wxWindows References: <2951561DB3DDD0118FEC00805FFE98050494208D@s5-ccr-r1> Message-ID: <000701c044e5$01a935c0$0100a8c0@david> also possibly use wxWindows excellent for cross platform use www.wxwindows.org dave ----- Original Message ----- From: "Doyon, Jean-Francois" To: ; "'Stephen Lime'" Cc: Sent: Thursday, November 02, 2000 2:57 PM Subject: RE: MapServer productivity tools. > I would TOTALLY support this idea, as I like a lot of other people > obviously, also thought of it. > > Perl/Tk seems like an bvious choice, but I'd like ot throw the idea of using > Java out there, possibly Swig'ifing MapServer with Java, as Dan had once > suggested (This would also allow for a MapServer for JSP's !). > And it would be even more truely cross-platform. > > But aside form that technical detail, The functionality Robert describes > would be very handy indeed. > > Another thing I've worked on in the past, is to have the mapfile stored > entirely (Or as much as possible) in an RDBMS. I allready did this actually, > and it works fine. I then use one of the MapScripts to get and build > maps/layers on the fly, based on given parameters. The main idea behind > this was to allow web based management of the maps, layers, colors, symbols, > whatever. The tough part is making the whole system behave exactly like a > mapfile, keep track and dealing with changes in mapfile formats, and also > issues with some undocumented things. > > And while I'm at it, providing a Perl Module/PHP Classes to provide an > interface to this system would also be very handy. An API if you will. Heck, > even the CGI version could support this. > > I would be most interested in continuing (restarting ?) work on this since > I've had to put it on the back burner for a while. > > Are we gonna have -utils mailing list now ? :) > > J.F. > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Wednesday, November 01, 2000 10:23 PM > > To: RAldridge at linuxstart.com > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: MapServer productivity tools. > > > > I am working on an alternative to the ArcView method that uses MapScript > > and Perl/Tk. Again all it needs is some others to help out. Nice thing > > about this approach is the cross platform support (assuming mapscript can > > be compiled everywhere). > > > > Steve > > > > >>> RAldridge 11/01/00 16:52 PM >>> > > Steve, > > > > I agree that productivity tools for MapServer would be nice. The ArcView > > apps for producing .map files are a good idea. However, many of us are > > developing MapServer apps on Linux and I feel it would be nice to have a > > tool that works in Linux. > > > > That being said, it seems to me that we should be able to develop a .map > > file generator using ShapeLib with Python, PHP, C, or something. You > > could use it to build a "view" using available shapefiles, images, and > > symbol files. Once you have it looking like you want it, you could save > > the .map file. The .map file would basically correspond to the .apr file > > in ArcView. I would hope that the tool would allow you to open existing > > .map files, view them graphically, add/remove layers, change symbology, > > etc. and re-save the file. > > > > I know all of this is easier said than done, but I can't see any technical > > obstacles to doing something like this. It's simply a matter of getting > > the people with the appropriate skills interested in the project. > > > > Perhaps, we should look at existing projects (OSSIM, ???) and see if they > > would be interested in providing for the functionality we need in their > > projects. Frank Warmerdam (ShapeLib) told me sometime back that he was > > working on a "Shapefile Viewer/Editor" that would work on Linux. Perhaps > > if his app can load/view images and shapefiles, he could simply add > > functionality to use MapServer symbol files and write out .map files. > > > > Keep us posted. I'd like to see something developed in this area. > > > > Later, > > > > Robert Aldridge > > > > > > >Stephen Lime wrote: > > > > > >>From ??? Fri Feb 19 09: 25 > > >>From owner-mapserver-users at lists.gis.umn.edu Wed Nov 1 17: 06 > > >>Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > > >>by tbird.iworld.com (8.10.2/8.10.2) with ESMTP id eA1M6PY21205: > > >>for ; Wed, 1 Nov 2000 17: 06 > > >>Received: (from majordom at localhost) > > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id OAA25120: > > >>for mapserver-users-list; Wed, 1 Nov 2000 14: 37 > > >>Received: from smtp.dnr.state.mn.us (gwgate.dnr.state.mn.us > > [156.98.35.249]) > > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id OAA25116: > > >>for ; Wed, 1 Nov 2000 14: 37 > > >>Received: from DNR-Message_Server by smtp.dnr.state.mn.us > > >>with Novell_GroupWise; Wed, 01 Nov 2000 14: 31 > > >>Message-Id: > > >>X-Mailer: Novell GroupWise Internet Agent 5.5.3.1 > > >>Date: Wed, 01 Nov 2000 14 > > >>Mime-Version: 1.0 > > >>Content-Type: text/plain; charset=US-ASCII > > >>Content-Disposition: inline > > >>Content-Transfer-Encoding: 8bit > > >>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu > > id OAA25117 > > >>Sender: owner-mapserver-users at lists.gis.umn.edu > > >>Precedence: bulk > > > > > >>Seems one of the biggest holes in the MapServer application is the lack > > of tools for > > >>building and administering MapServer applications. Again this is an area > > where the > > >>group at large can help out. I know folks are using ArcView to build > > .map files. Cool, > > >>but why don't we get together and support a single version that is > > distributed via the > > >>MapServer web site? Could those doing this contact me off the list and > > I'll help > > >>facilitate it? > > >> > > >>Other tools? Cough 'em up and let's get an archive going. I've got > > several MapScript > > >>tools for doing all sorts of things. I'm willing to reorganize the > > site's utils section to get > > >>this stuff out there. > > >> > > >>I've alsobeen writing a client application environment to allow > > higher-end applications > > >>to be easily created. The environment consists of an applet to display > > images (it has a > > >>few other features) and a javascript library to manage coordinates and > > layers. It tells > > >>the applet what image to retrieve and so on. Those components are just > > about ready > > >>for use, sans documentation. The first app I've built on top of these > > components can > > >>be previewed at: > > >> > > >> http://maps.dnr.state.mn.us/landview > > >> > > >>You'll need version 4.5 or higher browsers to use it. (I haven't > > investigated older ones > > >>yet) This type of software is what I'd really like focus on, but will > > need help given all the > > >>other stuff that needs doing. This runs on top of the new 3.3.012 CVS > > version. > > >> > > >>Steve > > >> > > >> > > >>Stephen Lime > > >>Internet Applications Analyst > > >> > > >>Minnesota DNR > > >>500 Lafayette Road > > >>St. Paul, MN 55155 > > >>651-297-2937 > > >> > > > > > >---------------------- > > >Do you do Linux? :) > > >Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > > > > > > ---------------------- > > Do you do Linux? :) > > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > > From Brian.Fischer at co.sherburne.mn.us Thu Nov 2 09:00:28 2000 From: Brian.Fischer at co.sherburne.mn.us (Brian Fischer) Date: Thu, 02 Nov 2000 11:00:28 -0600 Subject: MapServer productivity tools. Message-ID: Brent, I have been wondering this same thing. I would also like to try and start using mapscript, but have not been able to because I am limited to running our webserver on NT. I am interested to hear what others have done on NT. If I understand it right I think PHP is one route to go, but I am not sure how it is linked to mapscript or if it is at all. This part is still a little fuzzy to me. Brian Brian Fischer GIS Coordinator, Sherburne County 13880 US Hwy 10 Elk River, MN 55330 ph. (763) 241-7006 >>> "Brent Fraser" 11/02/00 09:07AM >>> Has anyone been able to get mapscript running on NT? If so, how? Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Stephen Lime" To: Cc: Sent: Wednesday, November 01, 2000 8:23 PM Subject: Re: MapServer productivity tools. > I am working on an alternative to the ArcView method that uses MapScript and Perl/Tk. Again all it needs is some others to help out. Nice thing about this approach is the cross platform support (assuming mapscript can be compiled everywhere). > > Steve > > >>> RAldridge 11/01/00 16:52 PM >>> > Steve, > > I agree that productivity tools for MapServer would be nice. The ArcView apps for producing .map files are a good idea. However, many of us are developing MapServer apps on Linux and I feel it would be nice to have a tool that works in Linux. > > That being said, it seems to me that we should be able to develop a .map file generator using ShapeLib with Python, PHP, C, or something. You could use it to build a "view" using available shapefiles, images, and symbol files. Once you have it looking like you want it, you could save the .map file. The .map file would basically correspond to the .apr file in ArcView. I would hope that the tool would allow you to open existing .map files, view them graphically, add/remove layers, change symbology, etc. and re-save the file. > > I know all of this is easier said than done, but I can't see any technical obstacles to doing something like this. It's simply a matter of getting the people with the appropriate skills interested in the project. > > Perhaps, we should look at existing projects (OSSIM, ???) and see if they would be interested in providing for the functionality we need in their projects. Frank Warmerdam (ShapeLib) told me sometime back that he was working on a "Shapefile Viewer/Editor" that would work on Linux. Perhaps if his app can load/view images and shapefiles, he could simply add functionality to use MapServer symbol files and write out .map files. > > Keep us posted. I'd like to see something developed in this area. > > Later, > > Robert Aldridge > > > >Stephen Lime wrote: > > > >>From ??? Fri Feb 19 09: 25 > >>From owner-mapserver-users at lists.gis.umn.edu Wed Nov 1 17: 06 > >>Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > >>by tbird.iworld.com (8.10.2/8.10.2) with ESMTP id eA1M6PY21205: > >>for ; Wed, 1 Nov 2000 17: 06 > >>Received: (from majordom at localhost) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) id OAA25120: > >>for mapserver-users-list; Wed, 1 Nov 2000 14: 37 > >>Received: from smtp.dnr.state.mn.us (gwgate.dnr.state.mn.us [156.98.35.249]) > >>by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id OAA25116: > >>for ; Wed, 1 Nov 2000 14: 37 > >>Received: from DNR-Message_Server by smtp.dnr.state.mn.us > >>with Novell_GroupWise; Wed, 01 Nov 2000 14: 31 > >>Message-Id: > >>X-Mailer: Novell GroupWise Internet Agent 5.5.3.1 > >>Date: Wed, 01 Nov 2000 14 > >>Mime-Version: 1.0 > >>Content-Type: text/plain; charset=US-ASCII > >>Content-Disposition: inline > >>Content-Transfer-Encoding: 8bit > >>X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id OAA25117 > >>Sender: owner-mapserver-users at lists.gis.umn.edu > >>Precedence: bulk > > > >>Seems one of the biggest holes in the MapServer application is the lack of tools for > >>building and administering MapServer applications. Again this is an area where the > >>group at large can help out. I know folks are using ArcView to build .map files. Cool, > >>but why don't we get together and support a single version that is distributed via the > >>MapServer web site? Could those doing this contact me off the list and I'll help > >>facilitate it? > >> > >>Other tools? Cough 'em up and let's get an archive going. I've got several MapScript > >>tools for doing all sorts of things. I'm willing to reorganize the site's utils section to get > >>this stuff out there. > >> > >>I've alsobeen writing a client application environment to allow higher-end applications > >>to be easily created. The environment consists of an applet to display images (it has a > >>few other features) and a javascript library to manage coordinates and layers. It tells > >>the applet what image to retrieve and so on. Those components are just about ready > >>for use, sans documentation. The first app I've built on top of these components can > >>be previewed at: > >> > >> http://maps.dnr.state.mn.us/landview > >> > >>You'll need version 4.5 or higher browsers to use it. (I haven't investigated older ones > >>yet) This type of software is what I'd really like focus on, but will need help given all the > >>other stuff that needs doing. This runs on top of the new 3.3.012 CVS version. > >> > >>Steve > >> > >> > >>Stephen Lime > >>Internet Applications Analyst > >> > >>Minnesota DNR > >>500 Lafayette Road > >>St. Paul, MN 55155 > >>651-297-2937 > >> > > > >---------------------- > >Do you do Linux? :) > >Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > > > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > From Matt.Wilkie at gov.yk.ca Thu Nov 2 10:29:02 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 2 Nov 2000 10:29:02 -0800 Subject: getting at [name]? Message-ID: <6DD7370C9452D31192A10008C75D075307134611@raptor.gov.yk.ca> How can I get at the [name] variable? I'd like to be able to post the name of the map currently being viewed at the top of web page. [map] is not suitable because it returns the complete path. thanks, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From morissette at dmsolutions.on.ca Thu Nov 2 10:52:37 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Thu, 02 Nov 2000 13:52:37 -0500 Subject: MapServer productivity tools. References: Message-ID: <3A01B7F5.BB8A5A91@dmsolutions.on.ca> Brian Fischer wrote: > > Brent, > I have been wondering this same thing. I would also like to try and start using mapscript, but have not been able to because I am limited to running our webserver on NT. I am interested to hear what others have done on NT. If I understand it right I think PHP is one route to go, but I am not sure how it is linked to mapscript or if it is at all. This part is still a little fuzzy to me. > Brian, Yes, PHP MapScript is one possible route on NT (we use it a lot). About the difference between PHP MapScript and Perl/Python MapScript: The Perl and Python versions of MapScript are automatically generated using SWIG from the core mapserver header files. Unfortunately SWIG does not support PHP yet (but I heard there is some experimental work on that front), so PHP MapScript has to be manually maintained. However, we try to keep PHP MapScript as close as possible from the Perl version for function names and class member names. So the main difference is that PHP MapScript may sometimes be a little behind the Perl version when new methods or class members are added. BTW, earlier this week Assefa has completed a complete review of the PHP MapScript and hopefully it is now in sync with the Perl version. (I still have to test it on Unix though). The main reason we developed the PHP MapScript is that we had used PHP before and knew that it behaved very well on all common platforms (Win95/98/NT, Linux, *BSD, Solaris, etc.) and with most HTTP servers (Preferably Apache, but also IIS and PWS, and we also got PHP to work with NCSA with a small patch and with Netscape Enterprise with a plugin). I'm not sure about the portability of Perl scripts since I never really used Perl, but I would say that PHP scripts are 99.9% platform independent. We have applications that were developed on NT and were deployed on Unix and vice-versa without a single change in the scripts. Actually, the only platform dependent code I ever had to write in PHP was the call to load the MapScript extension... it's dl("php_mapscript.so") on Unix and dl("php3_mapcript.dll") on NT. I hope that answers your questions, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From yeewen at petromap.com Thu Nov 2 13:47:21 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Thu, 2 Nov 2000 14:47:21 -0700 Subject: Help needed for using MapImage applet Message-ID: Hi, I'm able to run the mapserver example that uses mapimage applet in http://terrasip.gis.umn.edu/projects/tutorial/ example 5. I tried to do the same with my project. I downloaded MapImage.zip from http://mapserver.gis.umn.edu/contributed.html, followed the instructions by Stephen Lime....by copying mapimage.class to my webserver (without recompiling). When it tries to execute the applet, I got the following errors: # Applet exception: error: java.lang.ClassFormatError: Wrong class name inside class file java.lang.ClassFormatError: Wrong class name inside class file at java.lang.ClassLoader.defineClass(Compiled Code) at netscape.applet.AppletClassLoader.loadClass(Compiled Code) at netscape.applet.AppletClassLoader.findClass(Compiled Code) at netscape.applet.AppletClassLoader.loadClass1(Compiled Code) * at netscape.applet.AppletClassLoader.loadClass(Compiled Code) at netscape.applet.AppletClassLoader.loadClass(Compiled Code) at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code) I'm using Netscape Communicator 4.76. I also tried compiling with Jdk1.1.8 (I couldn't find a copy of Java 1.1 compiler), and reloading it. I get the same errors. Can anyone explain this? Thanks. -- Yeewen -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertha_bonita at yahoo.com Thu Nov 2 18:45:52 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Thu, 2 Nov 2000 18:45:52 -0800 (PST) Subject: One question About the Exercices! Message-ID: <20001103024552.821.qmail@web4205.mail.yahoo.com> hi list.. i'm triying to do the exercicies on: http://128.101.73.154/projects/tutorial/example1.html but when i run it, the image not is loaded!!.. i'm using a .shp file, and the exercices are using a gif image ( is more easy only specific where are my .gif) and i'm working on linux, i do not how could be the path exact, i can't specific a drive like as "e:\directories\...etc\" and only put \directories\..etc.. this is my file.map # A SIMPLE LAYER EJER01 NAME SimpleLayer EXTENT -1480000 -1036000 1576000 1068000 SIZE 300 300 #SHAPEPATH "/home/httpd/html/geoejercicios/shapefiles/" SHAPEPATH "\home\httpd\html\geoejercicios\shapefiles" LAYER NAME "rocas" DATA geocronoccl STATUS DEFAULT TYPE POINT CLASS COLOR 250 175 25 END #class END# layer END #map file this is my .html file ejercicio uno..

if someone can help me, please, write me.. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? >From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ From berend.veldkamp at aris.nl Fri Nov 3 00:14:56 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Fri, 03 Nov 2000 09:14:56 +0100 Subject: [Fwd: Re: problem with configure] Message-ID: <3A027400.4E391844@aris.nl> Forgot to send this to mailing list... Berend -------- Original Message -------- Subject: Re: problem with configure Date: Wed, 01 Nov 2000 18:24:12 +0100 From: Berend Veldkamp To: "Doyon, Jean-Francois" References: <2951561DB3DDD0118FEC00805FFE98050494207E at s5-ccr-r1> Yes, RedHat 7.0. Someone at the office solved the problem, it's somewhere near lines 3222-3227 of the configure script (ms3.3.011 disribution). Somehow 'cat' splits one line into multiple lines and sed doesn't like that. Change: s%@PHP_CC@%$PHP_CC%g s%@PHP_LD@%$PHP_LD%g into: EOF echo s%@PHP_CC@%$PHP_CC%g >> $CONFIG_STATUS echo s%@PHP_LD@%$PHP_LD%g >> $CONFIG_STATUS cat >> $CONFIG_STATUS < Hmmmm, I once did, as did another guy in france ... > > The problem is, I never figured out HOW I fixed it, the problem just went > away in my case, as I played with it. > > It would be nice to track this down once and for all ... You wouldn't happen > to be on RedHat would you ? > > J.F. > > -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From havard.tveite at ikf.nlh.no Fri Nov 3 05:35:38 2000 From: havard.tveite at ikf.nlh.no (Haavard Tveite) Date: Fri, 03 Nov 2000 14:35:38 +0100 Subject: Projection support for SDE, images, ... Message-ID: <3A02BF2A.78A3FC3C@ikf.nlh.no> Two questions: 1) How far has the work on supporting projections for SDE come? The last "nightly" I checked (oct. 25th) had no trace of projection support in the mapsde.c file. It would be *very* useful to have this available also for SDE (not only for shapefiles), particularly for us living considerably closer to the north pole than to the equator! 2) Is there, or are there plans for, projection support for images (could be useful for orthophotos)? -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ikf.html From steve.lime at dnr.state.mn.us Fri Nov 3 06:10:30 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 03 Nov 2000 08:10:30 -0600 Subject: Projection support for SDE, images, ... Message-ID: There's been no work on either to date. With SDE the API documentation is *very* poor. Since I haven't needed it I haven't pursued it. I'd prefer to take advantage of ESRIs projection engine but it may be that PROJ.4 support is easier to support. On the raster side. I ain't that hard it's just a poor idea in terms of performance. DM Solutions has this scoped as part of a project. No other plans in the immediate future, unless someone else wants to take it on. Steve >>> Haavard Tveite 11/03/00 07:35 AM >>> Two questions: 1) How far has the work on supporting projections for SDE come? The last "nightly" I checked (oct. 25th) had no trace of projection support in the mapsde.c file. It would be *very* useful to have this available also for SDE (not only for shapefiles), particularly for us living considerably closer to the north pole than to the equator! 2) Is there, or are there plans for, projection support for images (could be useful for orthophotos)? -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ikf.html From steve.lime at dnr.state.mn.us Fri Nov 3 06:20:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 03 Nov 2000 08:20:10 -0600 Subject: mapscript new functionality Message-ID: I'll think about the delete issue. At present most all object management (i.e. memory) is automatic. That holds true for layers etc... Shapes are a bit different. Once a shape var goes out of scope it's destroy method is automatically invoked. You can trigger this yourself in perl with "undef $shape". I'm not aware of any memory leaks other than those that might exist in the SWIG C code. On the java side, SWIG will generate a Java API with the exact same functionality as the perl or python versions. I've not played extensively with it but in theory. I'd want to pursue that as opposed to starting from scratch. Please pass along app examples, they sound cool. Steve >>> 11/03/00 05:34 AM >>> Hello all, We are at the moment very busy implementing the mapscript on our site. We have used some functionality that I do not have seen using by many others. Perhaps a suggestion. --> the first time a user views a map tha mapfile is copied to a temporary name that is stored in a cookie. A user now can change from within the html page the colors, the names and the status etc. etc. etc. When a user returns after a couple of days he gets his changed mapfile, zoomlevel, colors and layernames back --> Queries can be converted into layers that are added to the mapfile --> the mapobject is saved before viewing the result. This prevents the bunch of hidden forms in the page. --> We use a complete integration og Java, Javascript and Perl and php and Oracle. This among enables the construction of PDF-documents as output of the mapserv and the look and feel of a standalone application like Photoshop. Within the next week we will send you the URL so anyone interested can have a look. New functionlity that we need are --> To implement the delete method in many of the obects in the mapscript and php_mapscript (self constructed layers, shapes, etc. must be deleted) Does anyone have a sugestion how to handle this. Do other people need this functionality as well? Is this a good suggestion for the official versions of mapscript and php_mapscript. Another issue we want to deal with is the possibility to port major parts of the mapscript into Java. With the growing usage of enterprise java beans, we are planning to start such a conversion. Are there people who agree on this conversion? Are there people interested in joining this? I still have one php_mapscript question After I query a point and get the shape integer, what is the best way to get the relating dbf values on screen. Regards, Peter Jacobs From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Nov 3 06:56:23 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 3 Nov 2000 09:56:23 -0500 Subject: Help needed for using MapImage applet Message-ID: <2951561DB3DDD0118FEC00805FFE980504942091@s5-ccr-r1> Hmmmm, I use this applet, but I've never seen that one, I was having aproblem with my [img] reference having to be a fully referenced URL of the "http://myhost.com[img]" type, that was giving a similar yet different error message. On the same topic though, how do I access the supposedly exported boxOn and BoxOff methods ???? Maybe documenting this applet could become part of the -docs mailing list discussions. J.F. > ---------- > From: Yeewen Sat[SMTP:yeewen at petromap.com] > Sent: Thursday, November 02, 2000 4:47 PM > To: Mapserver-Users > Subject: Help needed for using MapImage applet > > Hi, > I'm able to run the mapserver example that uses mapimage applet in > http://terrasip.gis.umn.edu/projects/tutorial/ example 5. > I tried to do the same with my project. I downloaded MapImage.zip from > http://mapserver.gis.umn.edu/contributed.html, followed the instructions > by Stephen Lime....by copying mapimage.class to my webserver (without > recompiling). When it tries to execute the applet, I got the following > errors: > > # Applet exception: error: java.lang.ClassFormatError: Wrong class name > inside class file > java.lang.ClassFormatError: Wrong class name inside class file > at java.lang.ClassLoader.defineClass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.AppletClassLoader.findClass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass1(Compiled Code) > * at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled > Code) > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) > at java.awt.EventDispatchThread.run(Compiled Code) > at > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled > Code) > > I'm using Netscape Communicator 4.76. > > I also tried compiling with Jdk1.1.8 (I couldn't find a copy of Java 1.1 > compiler), and reloading it. I get the same errors. > Can anyone explain this? > > Thanks. > -- > Yeewen > From steve.lime at dnr.state.mn.us Fri Nov 3 07:05:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 03 Nov 2000 09:05:36 -0600 Subject: Help needed for using MapImage applet Message-ID: On the errors. Most certainly a java setup problem. Are classpath values correct? You need Sun's JDK AND the Netscape LiveConnect classes. On public methods. It's easy. Assuming the applet is named "mapimage" just use: document.mapimage.bonOn(); The mapimage applet has been totally re-written and that version needs to be uploaded and documented. Steve >>> "Doyon, Jean-Francois" 11/03/00 08:58 AM >>> Hmmmm, I use this applet, but I've never seen that one, I was having aproblem with my [img] reference having to be a fully referenced URL of the "http://myhost.com[img]" type, that was giving a similar yet different error message. On the same topic though, how do I access the supposedly exported boxOn and BoxOff methods ???? Maybe documenting this applet could become part of the -docs mailing list discussions. J.F. > ---------- > From: Yeewen Sat[SMTP:yeewen at petromap.com] > Sent: Thursday, November 02, 2000 4:47 PM > To: Mapserver-Users > Subject: Help needed for using MapImage applet > > Hi, > I'm able to run the mapserver example that uses mapimage applet in > http://terrasip.gis.umn.edu/projects/tutorial/ example 5. > I tried to do the same with my project. I downloaded MapImage.zip from > http://mapserver.gis.umn.edu/contributed.html, followed the instructions > by Stephen Lime....by copying mapimage.class to my webserver (without > recompiling). When it tries to execute the applet, I got the following > errors: > > # Applet exception: error: java.lang.ClassFormatError: Wrong class name > inside class file > java.lang.ClassFormatError: Wrong class name inside class file > at java.lang.ClassLoader.defineCass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.AppletClassLoader.findClass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass1(Compiled Code) > * at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.AppletClassLoader.loadClass(Compiled Code) > at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled > Code) > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) > at java.awt.EventDispatchThread.run(Compiled Code) > at > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled > Code) > > I'm using Netscape Communicator 4.76. > > I also tried compiling with Jdk1.1.8 (I couldn't find a copy of Java 1.1 > compiler), and reloading it. I get the same errors. > Can anyone explain this? > > Thanks. > -- > Yeewen > From morissette at dmsolutions.on.ca Fri Nov 3 07:27:06 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Fri, 03 Nov 2000 10:27:06 -0500 Subject: mapscript new functionality References: Message-ID: <3A02D94A.CBB4C432@dmsolutions.on.ca> > >>> 11/03/00 05:34 AM >>> > > New functionlity that we need are > --> To implement the delete method in many of the obects in the mapscript > and php_mapscript (self constructed layers, shapes, etc. must be deleted) > > Does anyone have a sugestion how to handle this. Do other people need this > functionality as well? Is this a good suggestion for the official versions > of mapscript and php_mapscript. > Peter, I have to admit that the best way to delete objects during script execution in PHP is still a bit of a mystery for me. However, I have verified that all objects are properly destroyed at the end of the execution of a script, so PHP MapScript should not leak any memory in theory. (But it's possible that it may leak some memory and we'll try to fix any leak someone may find) However, if you create lots of objects during your script execution, like shapes, lines, etc. then you might want to free them right away and not wait for the cleanup at the end of the PHP script execution. Some classes have a free() method that releases memory used by the object... hopefully it does the right thing but this is a poorly documented part of PHP so I'm not 100% sure. Only a few classes used to have a free() method in previous versions of PHP MapScript, but the current CVS version (from 2 days ago) has free() methods on all the classes where it makes sense. > Another issue we want to deal with is the possibility to port major parts > of the mapscript into Java. With the growing usage of enterprise java > beans, we are planning to start such a conversion. Are there people who > agree on this conversion? Are there people interested in joining this? > We would also be interested in seeing how SWIG-based Java MapScript would behave... if you do anything on that front then please keep us posted. > I still have one php_mapscript question > After I query a point and get the shape integer, what is the best way to > get the relating dbf values on screen. > You have to use the PHP "dbase" module. It is not linked in by default on Unix so you may have to recompile your PHP using --with-dbase. On Windows a PHP3_DBASE.DLL usually comes with the PHP distribution. An important note is that MapScript returns 0-based shape indices, but the dbase module expects 1-based record numbers. So you have to use $oResult->shape+1 as the DBF record index. I attached below the function GMapDumpQueryResults() from our GMap demo that outputs a HTML table with sub-sections for each layer that contains results. Of course if you query only one layer then you don't need something that complicated. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. function GMapDumpQueryResults() { GLOBAL $gpoMap, $gpoQueryResults; if (! $gpoQueryResults ) { printf(" "); return; } printf("\n"); // printf("NumResults = %d, NumQueryLayers = %d\n", // $gpoQueryResults->numresults, $gpoQueryResults->numquerylayers); $iCurLayer = -1; $aFields = ""; $gpoQueryResults->rewind(); for($iRes=0; $iRes < $gpoQueryResults->numresults; $iRes++) { $oResult = $gpoQueryResults->next(); if ($oResult->layer == -1) break; if ($iCurLayer != $oResult->layer) { $iCurLayer = $oResult->layer; $oLayer = $gpoMap->GetLayer($iCurLayer); $dbfname = $gpoMap->shapepath . "/". $oLayer->data . ".dbf"; if ($db) dbase_close($db); $db = dbase_open($dbfname, 0); // We use the LAYER HEADER parameter to store the list of field names // to display for each layer. (small hack!) $selFields = explode(" ", $oLayer->header); if ($iCurLayer != -1) printf("
\n"); printf("\n"); printf("\n"); printf("\n"); /* -------------------------------------------------------------------- */ /* name of the attributes. */ /* -------------------------------------------------------------------- */ printf("\n"); for ($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); } $rec = dbase_get_record_with_names($db, $oResult->shape+1); printf("\n"); for($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); } if ($db) dbase_close($db); printf("
", sizeof($selFields)); printf("
%s
", $oLayer->description); printf("
"); printf("%s",$selFields[$iField]); printf("
"); printf("%s",trim($rec[strtoupper($selFields[$iField])])); printf("
\n"); } From havard.tveite at ikf.nlh.no Fri Nov 3 07:46:35 2000 From: havard.tveite at ikf.nlh.no (Haavard Tveite) Date: Fri, 03 Nov 2000 16:46:35 +0100 Subject: Projection support for SDE, images, ... References: Message-ID: <3A02DDDB.E625B1CF@ikf.nlh.no> Stephen Lime wrote: > > There's been no work on either to date. With SDE the API documentation is > *very* poor. Since I haven't needed it I haven't pursued it. I'd prefer to > take advantage of ESRIs projection engine but it may be that PROJ.4 support > is easier to support. I found "msDrawShape(...)" in maputil.c. It seems to use proj.4, and could perhaps be used directly from mapsde.c to draw the retrieved shapes. On the other hand, "msDrawShape(...)" currently does not seem to be called from anywhere. Has it been tested/used? Could it do most of the job that msDrawSDELayer(...) (in mapsde.c) currently does? > ... > Steve > > >>> Haavard Tveite 11/03/00 07:35 AM >>> > Two questions: > > 1) How far has the work on supporting projections for SDE > come? > The last "nightly" I checked (oct. 25th) had no trace > of projection support in the mapsde.c file. > It would be *very* useful to have this available also > for SDE (not only for shapefiles), particularly for us > living considerably closer to the north pole than to > the equator! ... > -- > H?vard Tveite Phone: +47 64948857 > Department of Mapping Sciences Fax: +47 64948856 > Agricultural University of Norway > POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ikf.html -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ikf.html From andreag at geoplan.ufl.edu Fri Nov 3 10:49:40 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Fri, 3 Nov 2000 13:49:40 -0500 (EST) Subject: SourceForge can still link to us Message-ID: <200011031849.eA3IngM11678@cosmos.geoplan.ufl.edu> I sent an email to the SourceForge folk to see if they could still link to our site even if they didn't host our development. It turns out they can. Here's the email I got back: ------------------------------------------------------- Hi Andrea, There's no policy that says hosted projects have to host all of their development on SourceForge. The best thing for you to do is register your project, input a description/trove categorization, upload your releases to SourceForge, turn off the development tools and point the "project home page" link to wherever your main development site is. (The site documentation explains how much of this works, if you have problems, you can file a support request under the "contact us" link on the left-hand nav.) Of course, if there are things we can do to entice you to use more of the tools, we'd love to hear about them. Regards, Dan Bressler ------------------------------------------------------- I think that it would be good for us to do this - that way we can benefit from all the SourceForge traffic. What do you all think? Andrea @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | | www.geoplan.ufl.edu | | Phone: (352)392-2351 | @-------------------------@ From nwerneck at yahoo.com.br Fri Nov 3 11:21:35 2000 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Fri, 3 Nov 2000 16:21:35 -0300 (ART) Subject: point item/value query map Message-ID: <20001103192135.25305.qmail@web4303.mail.yahoo.com> HI... I've managed to make a query, and retrieve the informations from some cities with mapserver... But now I'm not being able to display the city in the middle of my map... Am I wrong or is it just possible to make quey maps from lines and regions? Is it possible to use the feature object thing to create a region layer with circular regions around each point on a point layer? bye -- Nicolau ________________________________________________________________________ Do You Yahoo!? Crie o seu e-mail gr?tis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br From cnielsen at co.tillamook.or.us Thu Nov 2 14:01:36 2000 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Thu, 2 Nov 2000 14:01:36 -0800 Subject: ESRI business partners Message-ID: <000001c04518$78190090$a14368aa@co.tillamook.or.us> I know of a couple ESRI business partners that friends of mine work for that have expressed interest in mapserver. I'm wondering how ESRI would respond to one of their business partners taking on mapserver (or even open source technology in general) in place of ESRI technology. Are there any ESRI business partners in the group utilizing mapserver? Anybody heard of this happening? ~Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ From imap at chesapeake.net Sat Nov 4 08:04:48 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 04 Nov 2000 11:04:48 -0500 Subject: Mapserver <=> ArcIMS comparison References: Message-ID: <3A0433A0.DD3FF43E@chesapeake.net> Thanks to Michael and others who commented on this thread for the detailed comparison of MapServer <=> ArcIMS. It sounds as if the ArcIMS "New MapService" is fairly easy to use and setup a new mapserver configuration. THat is something that Mapserver is sorely lacking. Needed are a set of screens that a user can walk thru, to setup a map service. Digging a little deeper into this comparison, I am particularly interested to see a working example of the ArcIMS Map File equivilent (*.axl) for informational purposes. I understand that it is XML... and I'd like to had a look at their definitions, scope, syntax etc. If anyone out there has a one of these files, could they please send or upload a sample .axl, it would be appreciated. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Michael Anderson wrote: > > I have been using both ArcIMS and MapServer for a few months. Before I > give my opinion on a comparison, I would like to point out that the scope of > what ArcIMS and MapServer attempt to do is different. ArcIMS has several > components designed to do things that MapServer alone doesn?t address. This > includes html and applet based viewers for the client as well as several > components on the server. The components on the server include the > application server, manager components, and the spatial servers. The spatial > server is what renders the images, handles spatial queries, extracts > features, etc. The manager components allow you to build ?Map Services? (map > files), create web sites using the map services, and publish the sites. The > application server allows you to distribute pieces of your application over > multiple machines and pool several machines to handle increased loads. It > also allows you to use COM and Cold Fusion in your application as the > ?connector? between the web server and application server. ArcIMS has two > additional components that start and stop processes and delete images on a > schedule. > MapServer alone is only analogous to the spatial server, but the other > features can be added using other tools. Other than being able to use fewer > data formats, MapServer is a better spatial server than ArcIMS?s. By using > an existing web application server you can get the additional functionality > with a minimal amount of work. I am using Zope, which is Python based, as my > application server. It is also Open Source. It is a much better application > server than the ArcIMS component. In addition to allowing you to distribute > your application, and pool machines, it also handles user authentication, > and gives Unix like permissions to files, URLs, and operations. It also > handles publishing the sites easily. I haven?t gotten around to using it to > make the map files or the web site though. I use ArcView to make the map > files and have someone else make the web site. Zope does allow me to share > single html and JavaScript files across multiple web sites, which makes > maintenance a lot easier. It is also possible to use Zope as a connector to > ArcIMS so a single application could use both MapServer and ArcIMS (as well > as other GIS engines). I am also aware of a Java based application server > called Enhydra that is also Open Source. I have installed it, but haven?t > had much time to use it, so I can?t really say what it can do. There are > also commercial application servers available like IBM?s WebSphere. You > could probably do a lot with Cold Fusion as well. > > That said, here is my 2 cents on the advantages and disadvantages of ArcIMS: > > Advantages of ArcIMS > - distribute applications over multiple machines > - Native integration with the Geography Network. MapServer can be made to > work within the geography network. > - Includes software to handle routine tasks like making the map services > (map files), designing web sites, etc. > - Supports more data formats ? especially raster > - Better support for storing spatial data in RDBMS through SDE > - You don?t have to try to sell a relatively unknown product (MapServer) and > philosophy (Open Source) > > Disadvantages of ArcIMS > - speed (even running mapserv as regular cgi it is much faster) > - resource hog > - limited OS (no Linux) > - less stable. My ArcIMS experience is on NT so that may be more a > reflection of the OS than ArcIMS. > - poorer support > - source code unavailable > - cost > > Mike > > Michael Anderson > Spatial Information Technologies, Inc. From rob at socialchange.net.au Sat Nov 4 14:35:17 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Sun, 05 Nov 2000 09:35:17 +1100 Subject: Mapserver <=> ArcIMS comparison References: <3A0433A0.DD3FF43E@chesapeake.net> Message-ID: <3A048F25.25DFBE2F@socialchange.net.au> Hi Folks, Although I am neither ready nor completely free to comment on ArcIMS there are a few issues I thought I'd float an interest in. I've been heavily involved in the OpenGIS Consortium - particularly concerned at discovery of network addressable resources - ie how do you catalog, retrieve and store in profiles references to map and non-map services. I guess I see the future for mapserv and other products very differently - I want to eat directly into the 85% of project time that is involved in getting your personal out-of-date copy of data you only want as context or to perform a once off analysis! Anyway, to the point, there are "metadata" for services being developed, and several of us have been looking at the "context" or application level metadata - this is what AXL really is, as is the map file. Ourselves, NASA and ESRI have similar XML contexts we could potentially merge into a standard. Just imagine the same syntax used to pass a session between applications, or using it for referencing both local and remote sources of data. This isnt going to happen overnight - and will need to derivce from the best practice in the mainstream Web world - which is only just starting to come to grips with machine addressable interfaces - see Tim Berners Lee's sematic web or the Microsoft-IBM-Ariba UDDI efforts. Planning to have some demos (that will include mapserv by the way) by end of calendar year. Cheers Rob Atkinson imap at chesapeake.net wrote: > Thanks to Michael and others who commented on this thread > for the detailed comparison of MapServer <=> ArcIMS. It sounds as if the > ArcIMS "New MapService" is fairly easy to use and setup a new mapserver > configuration. THat is something that Mapserver is sorely lacking. Needed > are a set of screens that a user can walk thru, to setup a map service. > Digging a little deeper into this comparison, I am particularly interested to > see a working example of the ArcIMS Map File equivilent (*.axl) for > informational > purposes. I understand that it is XML... and I'd like to had a look at their > definitions, scope, syntax etc. If anyone out there has a one of these files, > could they please send or upload a sample .axl, it would be appreciated. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > (410)257-3187 > > Michael Anderson wrote: > > > > I have been using both ArcIMS and MapServer for a few months. Before I > > give my opinion on a comparison, I would like to point out that the scope of > > what ArcIMS and MapServer attempt to do is different. ArcIMS has several > > components designed to do things that MapServer alone doesn?t address. This > > includes html and applet based viewers for the client as well as several > > components on the server. The components on the server include the > > application server, manager components, and the spatial servers. The spatial > > server is what renders the images, handles spatial queries, extracts > > features, etc. The manager components allow you to build ?Map Services? (map > > files), create web sites using the map services, and publish the sites. The > > application server allows you to distribute pieces of your application over > > multiple machines and pool several machines to handle increased loads. It > > also allows you to use COM and Cold Fusion in your application as the > > ?connector? between the web server and application server. ArcIMS has two > > additional components that start and stop processes and delete images on a > > schedule. > > MapServer alone is only analogous to the spatial server, but the other > > features can be added using other tools. Other than being able to use fewer > > data formats, MapServer is a better spatial server than ArcIMS?s. By using > > an existing web application server you can get the additional functionality > > with a minimal amount of work. I am using Zope, which is Python based, as my > > application server. It is also Open Source. It is a much better application > > server than the ArcIMS component. In addition to allowing you to distribute > > your application, and pool machines, it also handles user authentication, > > and gives Unix like permissions to files, URLs, and operations. It also > > handles publishing the sites easily. I haven?t gotten around to using it to > > make the map files or the web site though. I use ArcView to make the map > > files and have someone else make the web site. Zope does allow me to share > > single html and JavaScript files across multiple web sites, which makes > > maintenance a lot easier. It is also possible to use Zope as a connector to > > ArcIMS so a single application could use both MapServer and ArcIMS (as well > > as other GIS engines). I am also aware of a Java based application server > > called Enhydra that is also Open Source. I have installed it, but haven?t > > had much time to use it, so I can?t really say what it can do. There are > > also commercial application servers available like IBM?s WebSphere. You > > could probably do a lot with Cold Fusion as well. > > > > That said, here is my 2 cents on the advantages and disadvantages of ArcIMS: > > > > Advantages of ArcIMS > > - distribute applications over multiple machines > > - Native integration with the Geography Network. MapServer can be made to > > work within the geography network. > > - Includes software to handle routine tasks like making the map services > > (map files), designing web sites, etc. > > - Supports more data formats ? especially raster > > - Better support for storing spatial data in RDBMS through SDE > > - You don?t have to try to sell a relatively unknown product (MapServer) and > > philosophy (Open Source) > > > > Disadvantages of ArcIMS > > - speed (even running mapserv as regular cgi it is much faster) > > - resource hog > > - limited OS (no Linux) > > - less stable. My ArcIMS experience is on NT so that may be more a > > reflection of the OS than ArcIMS. > > - poorer support > > - source code unavailable > > - cost > > > > Mike > > > > Michael Anderson > > Spatial Information Technologies, Inc. -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net.au Director Social Change Online Mob: 0419 202 973 Locked Bag 199 Tel: +61 (0) 2 9692 5133 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From rgu at ems.muenchen.de Mon Nov 6 00:53:41 2000 From: rgu at ems.muenchen.de (Markus Spring) Date: Mon, 06 Nov 2000 09:53:41 +0100 Subject: What's wrong with this mapfile? Message-ID: <3A067195.6E45BC72@ems.muenchen.de> Hello list, I have a problem with the mapfile below: It doesnt render until I either * comment out the MAXSCALE in layer MSblock92 or * comment out STATUS ON in the legend (resulting in no legend being created) or * activate the fourth class "Nicht bewertet" If one of these three conditions is met, the mapfile works like a charm. I do have no explanation for this unlogical behavior and would be very glad, if someone could point me out what's wrong with this map definition. Kind regards - Markus W. Spring ------------------------------------------------------------------------------------------- # MAPTITLE "?ffentliche Gr?nfl?chen und Wald" # # Start of map file # STATUS ON SIZE 500 350 #SYMBOLSET "/data/web/ms_demo/symbols/symbol.sym" SHADESET "/data/web/ms_demo/symbols/shade.sym" MARKERSET "/data/web/ms_demo/symbols/marker.sym" LINESET "/data/web/ms_demo/symbols/line.sym" FONTSET "/data/web/ms_demo/symbols/fonts/fonts.list" UNITS METERS IMAGECOLOR 255 255 255 EXTENT 51199 23918 80829 46732 NAME k1_5_1 # # Start of web interface definition # WEB TEMPLATE /data/web/ms_demo/k1_5_1/k1_5_1.html MINSCALE 2000.0 MAXSCALE 1550000.0 IMAGEPATH "/data/web/tmp/" IMAGEURL "/tmp/" END # WEB # # Start of legend # LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial SIZE 10 END END # legend LAYER NAME l24 DESCRIPTION "Gruenflaechen und Wald" DATA /data/ua_shr/flaenutz/shapes/grwald TYPE POLYGON CLASSITEM "CODE" CLASS NAME "Wald" EXPRESSION ([CODE] eq 1.00000000000000) COLOR 1 100 0 OUTLINECOLOR 0 0 0 END # class CLASS NAME "Parks" # und Gr?nanlagen, Friedh?fe" EXPRESSION ([CODE] eq 2.00000000000000) COLOR 1 160 0 OUTLINECOLOR 0 0 0 END # class CLASS NAME "Kleingartenanlagen" EXPRESSION ([CODE] eq 3.00000000000000) COLOR 247 181 103 OUTLINECOLOR 0 0 0 END # class # CLASS # NAME "Nicht bewertet" # EXPRESSION ([CODE] < 0) # COLOR 255 255 255 # OUTLINECOLOR 0 0 0 # END # class END # layer l24 # Background layer blockkarte LAYER NAME MSblock92 DESCRIPTION "Blockkarte" # STATUS DEFAULT TYPE Polygon DATA /data/ua_shr/muc/shape/block92 MAXSCALE 50000.0 CLASSITEM "BLOCK92_" CLASS NAME "Baubloecke" SYMBOL 0 COLOR -1 -1 -1 OUTLINECOLOR 165 165 165 END # class END # layer MSblock92 END # map From aborruso at spaziogis.it Mon Nov 6 01:19:02 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 6 Nov 2000 10:19:02 +0100 Subject: PHP/Mapscript questions?? Message-ID: Dear all, I have installed and tested PHP 4 in my win2000 workstation with Microsoft IIS and cgi mapserver version 3.3.011. Does Php/mapscript work only with PHP3? If no, Do I install mapscript either moving PHP_MAPSCRIPT DLL to the php dll folder or changing php.ini file? What's the simplest way to test PHP/Mapscript? Does exist any tutorial? Which is the download path for PHP_MAPSCRIPT DLL? Thank you, Andrea From assefa at dmsolutions.on.ca Mon Nov 6 06:35:35 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Mon, 06 Nov 2000 09:35:35 -0500 Subject: PHP/Mapscript questions?? References: Message-ID: <3A06C1B7.B84CE794@dmsolutions.on.ca> Hi There, Php/mapscript has been ported to php4. I have placed on our site the latest binaries : http://www2.dmsolutions.on.ca/mapserver/dl/php4_mapscript_dll-20001106.zip I have also added in the zip file, a file called phpinfo_mapscript.php4 that can be used to easily test if your php works and if the php_mapscript.dll loads correctly. As for php.ini, you should set the extesion_dir parameter to the directory where you keep your php dll files. Then you can then either load the php_mapscript.dll by adding it in the php.ini file or load it when needed (by using dl("php_mapscript.dll"); php command). Hope it helps, aborruso at spaziogis.it wrote: > Dear all, > I have installed and tested PHP 4 in my win2000 workstation with Microsoft > IIS and cgi mapserver version 3.3.011. Does Php/mapscript work only with > PHP3? If no, Do I install mapscript either moving PHP_MAPSCRIPT DLL to the > php dll folder or changing php.ini file? What's the simplest way to test > PHP/Mapscript? Does exist any tutorial? Which is the download path for > PHP_MAPSCRIPT DLL? > Thank you, > > Andrea -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.on.ca http://www.dmsolutions.on.ca Phone: (613) 565-5056 ---------------------------------------------------------------- From m_anderson14 at hotmail.com Mon Nov 6 06:47:21 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Mon, 06 Nov 2000 14:47:21 GMT Subject: ESRI business partners Message-ID: I was considering becoming a business partner and approached the local ESRI representative to explain what I am doing. I asked what ESRI's ideas were on open source in general and mapserver specifically. With respect to mapserver, I asked if mapserver web sites would be allowed to join the Geography Network. The response was that he couldn't answers any of the questions. That was in August and I haven't been able to get a response to my emails or calls since. I would be interested to hear from anyone else who has approached them about it. Mike >From: "Chad Nielsen" >To: "Mapserver Info" >Subject: ESRI business partners >Date: Thu, 2 Nov 2000 14:01:36 -0800 > >I know of a couple ESRI business partners that friends of mine work for >that >have expressed interest in mapserver. I'm wondering how ESRI would respond >to one of their business partners taking on mapserver (or even open source >technology in general) in place of ESRI technology. Are there any ESRI >business partners in the group utilizing mapserver? Anybody heard of this >happening? > >~Chad > >Chad M. Nielsen, GIS Programmer/Analyst >Tillamook County Performance Partnership (TCPP) >Tillamook Coastal Watershed Resource Center (TCWRC) > > GIS: http://gisweb.co.tillamook.or.us > TCPP: >http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm >TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From steve.lime at dnr.state.mn.us Mon Nov 6 07:47:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Nov 2000 09:47:06 -0600 Subject: What's wrong with this mapfile? Message-ID: Me thinks there is a memory error in 3.3.011 somewhere. It's rare but for some reason it appears somewhat arbitrarily. Certain settings seems to cause a problem, they're symptoms but not the cause. Would you be willing to try your application against the nightly build? Since you don't use any non-default symbols it should be an easy port. Just strip out the symbol set lines and use the new version. Much of the work on 3.3.012 has focused on tightening up the code and it's probably the most stable version ever. (Perry could you post a 3.3.012 NT binary as well? Call it nightly.zip.) Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> rgu at ems.muenchen.de 11/06/00 02:53AM >>> Hello list, I have a problem with the mapfile below: It doesnt render until I either * comment out the MAXSCALE in layer MSblock92 or * comment out STATUS ON in the legend (resulting in no legend being created) or * activate the fourth class "Nicht bewertet" If one of these three conditions is met, the mapfile works like a charm. I do have no explanation for this unlogical behavior and would be very glad, if someone could point me out what's wrong with this map definition. Kind regards - Markus W. Spring ------------------------------------------------------------------------------------------- # MAPTITLE "?ffentliche Gr?nfl?chen und Wald" # # Start of map file # STATUS ON SIZE 500 350 #SYMBOLSET "/data/web/ms_demo/symbols/symbol.sym" SHADESET "/data/web/ms_demo/symbols/shade.sym" MARKERSET "/data/web/ms_demo/symbols/marker.sym" LINESET "/data/web/ms_demo/symbols/line.sym" FONTSET "/data/web/ms_demo/symbols/fonts/fonts.list" UNITS METERS IMAGECOLOR 255 255 255 EXTENT 51199 23918 80829 46732 NAME k1_5_1 # # Start of web interface definition # WEB TEMPLATE /data/web/ms_demo/k1_5_1/k1_5_1.html MINSCALE 2000.0 MAXSCALE 1550000.0 IMAGEPATH "/data/web/tmp/" IMAGEURL "/tmp/" END # WEB # # Start of legend # LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial SIZE 10 END END # legend LAYER NAME l24 DESCRIPTION "Gruenflaechen und Wald" DATA /data/ua_shr/flaenutz/shapes/grwald TYPE POLYGON CLASSITEM "CODE" CLASS NAME "Wald" EXPRESSION ([CODE] eq 1.00000000000000) COLOR 1 100 0 OUTLINECOLOR 0 0 0 END # class CLASS NAME "Parks" # und Gr?nanlagen, Friedh?fe" EXPRESSION ([CODE] eq 2.00000000000000) COLOR 1 160 0 OUTLINECOLOR 0 0 0 END # class CLASS NAME "Kleingartenanlagen" EXPRESSION ([CODE] eq 3.00000000000000) COLOR 247 181 103 OUTLINECOLOR 0 0 0 END # class # CLASS # NAME "Nicht bewertet" # EXPRESSION ([CODE] < 0) # COLOR 255 255 255 # OUTLINECOLOR 0 0 0 # END # class END # layer l24 # Background layer blockkarte LAYER NAME MSblock92 DESCRIPTION "Blockkarte" # STATUS DEFAULT TYPE Polygon DATA /data/ua_shr/muc/shape/block92 MAXSCALE 50000.0 CLASSITEM "BLOCK92_" CLASS NAME "Baubloecke" SYMBOL 0 COLOR -1 -1 -1 OUTLINECOLOR 165 165 165 END # class END # layer MSblock92 END # map From pnaciona at gis.umn.edu Mon Nov 6 08:45:52 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 6 Nov 2000 10:45:52 -0600 Subject: What's wrong with this mapfile? References: Message-ID: <006801c04811$07adabc0$9a496580@gis.umn.edu> Steve and list, I actually updated the download page this weekend and added a page specifically for NT binaries. I have two versions of 3.3.011 release as well as two of 3.3.012 nightly release (from 11/03). By versions I meant support for GIF or PNG. If you are downloading the version with PNG support and would like to use it with MS_DEMO, please be aware that there are symbols that refer to GIF graphics. You will need to convert those into PNG and update the symbol file (I think it's in marker.sym). Anyway, the new page can be accessed from http://mapserver.gis.umn.edu/dload.html or directly at http://mapserver.gis.umn.edu/win32binaries.html. Ciao! Perry N. ----- Original Message ----- From: "Stephen Lime" To: ; ; Cc: Sent: Monday, November 06, 2000 9:47 AM Subject: Re: What's wrong with this mapfile? > Me thinks there is a memory error in 3.3.011 somewhere. It's rare but for > some reason it appears somewhat arbitrarily. Certain settings seems to cause > a problem, they're symptoms but not the cause. Would you be willing to > try your application against the nightly build? > > Since you don't use any non-default symbols it should be an easy port. Just > strip out the symbol set lines and use the new version. > > Much of the work on 3.3.012 has focused on tightening up the code and it's > probably the most stable version ever. (Perry could you post a 3.3.012 NT > binary as well? Call it nightly.zip.) > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> rgu at ems.muenchen.de 11/06/00 02:53AM >>> > Hello list, > I have a problem with the mapfile below: > > It doesnt render until I either > > * comment out the MAXSCALE in layer MSblock92 > or > * comment out STATUS ON in the legend (resulting in no legend being > created) > or > * activate the fourth class "Nicht bewertet" > > If one of these three conditions is met, the mapfile works like a charm. > > I do have no explanation for this unlogical behavior and would be very > glad, if someone could point me out what's wrong with this map > definition. > > Kind regards - Markus W. Spring > > -------------------------------------------------------------------------- ----------------- > # MAPTITLE "?ffentliche Gr?nfl?chen und Wald" > # > # Start of map file > # > STATUS ON > SIZE 500 350 > #SYMBOLSET "/data/web/ms_demo/symbols/symbol.sym" > SHADESET "/data/web/ms_demo/symbols/shade.sym" > MARKERSET "/data/web/ms_demo/symbols/marker.sym" > LINESET "/data/web/ms_demo/symbols/line.sym" > FONTSET "/data/web/ms_demo/symbols/fonts/fonts.list" > UNITS METERS > IMAGECOLOR 255 255 255 > > EXTENT 51199 23918 80829 46732 > > NAME k1_5_1 > > # > # Start of web interface definition > # > WEB > TEMPLATE /data/web/ms_demo/k1_5_1/k1_5_1.html > MINSCALE 2000.0 > MAXSCALE 1550000.0 > IMAGEPATH "/data/web/tmp/" > IMAGEURL "/tmp/" > END # WEB > > # > # Start of legend > # > LEGEND > STATUS ON > LABEL > TYPE TRUETYPE > FONT arial > SIZE 10 > END > END # legend > > LAYER > NAME l24 > DESCRIPTION "Gruenflaechen und Wald" > DATA /data/ua_shr/flaenutz/shapes/grwald > TYPE POLYGON > CLASSITEM "CODE" > > CLASS > NAME "Wald" > EXPRESSION ([CODE] eq 1.00000000000000) > COLOR 1 100 0 > OUTLINECOLOR 0 0 0 > END # class > > CLASS > NAME "Parks" # und Gr?nanlagen, Friedh?fe" > EXPRESSION ([CODE] eq 2.00000000000000) > COLOR 1 160 0 > OUTLINECOLOR 0 0 0 > END # class > > CLASS > NAME "Kleingartenanlagen" > EXPRESSION ([CODE] eq 3.00000000000000) > COLOR 247 181 103 > OUTLINECOLOR 0 0 0 > END # class > > # CLASS > # NAME "Nicht bewertet" > # EXPRESSION ([CODE] < 0) > # COLOR 255 255 255 > # OUTLINECOLOR 0 0 0 > # END # class > > END # layer l24 > > # Background layer blockkarte > LAYER > NAME MSblock92 > DESCRIPTION "Blockkarte" > # STATUS DEFAULT > TYPE Polygon > DATA /data/ua_shr/muc/shape/block92 > MAXSCALE 50000.0 > CLASSITEM "BLOCK92_" > CLASS > NAME "Baubloecke" > SYMBOL 0 > COLOR -1 -1 -1 > OUTLINECOLOR 165 165 165 > END # class > END # layer MSblock92 > > END # map > From bjohnson at jecinc.on.ca Mon Nov 6 12:02:46 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Mon, 6 Nov 2000 15:02:46 -0500 Subject: Cached query images In-Reply-To: <006801c04811$07adabc0$9a496580@gis.umn.edu> Message-ID: <000001c0482c$8908f380$0500a8c0@piii667> For anyone following my battle with cached query images - it turns out that if you don't put your files in a subdirectory directly under your main htdocs directory, your don't get the cached query images to show when you do a query with ms_demo. Put your files in a subdirectory directly under your main htdocs directory, and it works! From david at kriske.com Mon Nov 6 12:46:28 2000 From: david at kriske.com (David L. Kriske) Date: Mon, 06 Nov 2000 12:46:28 -0800 (PST) Subject: Can't declare multiple MAXSCALE's Message-ID: I'm running Mapserver 3.3.011 (also tried .012) compiled for NT 4.0 (using the precompiled one on the mapserver site). For some reason, I am unable to declare a MAXSCALE statement for more than one layer. If I do, I get... Mapserv.exe Application Error - The instruction at referenced memory at "". The memory could not be "written" Then Mapserver bombs and I get a CGI Error in the browser. If I take out all but one (or all) of the MAXSCALE statements it renders the map fine. I'm using the Maperserver Tutorial Example 4 adjusted to use my own shapefiles. I haven't tried running Mapserver on a Linux Box, is the NT build buggy? Here's my .map file if it helps..... Thanks in advance for any help you may provide. This seems to be a great program in every other respect! David NAME AOP EXTENT -126 45 -65 30 FONTSET "d:\inetpub\wwwroot\mapserver\fonts\fontset.txt" UNITS dd SIZE 500 500 SHAPEPATH "e:\MAPSERVER\SHAPES\" WEB TEMPLATE "d:\inetpub\wwwroot\mapserver\browser.html" IMAGEPATH "d:\inetpub\wwwroot\mapserver\images\" IMAGEURL "/mapserver/images/" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 ANTIALIAS END END SCALEBAR STATUS ON INTERVALS 2 SIZE 100 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles LABEL COLOR 0 0 0 SIZE medium END END LAYER NAME "us" DATA us STATUS DEFAULT TYPE POLYGON CLASS COLOR 212 212 212 OUTLINECOLOR 140 140 140 END END LAYER NAME "aops" DATA aop102500_8 STATUS DEFAULT TYPE POLYGON CLASS NAME "AOP" COLOR 102 110 176 END END LAYER NAME "freeways" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Freeways" EXPRESSION /A1[0-9]/ COLOR 223 0 41 END MAXSCALE 50000 END LAYER NAME "roads" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Major Arterials" EXPRESSION /A[2-3][0-9]/ COLOR 245 183 87 END MAXSCALE 100000 END LAYER NAME "streets" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Minor Streets" EXPRESSION /A[4-7][0-9]/ COLOR 0 0 0 END END END From nwerneck at yahoo.com.br Mon Nov 6 13:56:37 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Mon, 6 Nov 2000 19:56:37 -0200 Subject: point data searching Message-ID: <200011062159.PAA19875@lists.gis.umn.edu> Well, let me try to ask the question again..... I'm trying to put a "city locate" feature in my page (doing an item/value query, and putting the city in the center of the map). The first solution I saw was to create an invisible layer with rectangles around the cities... But it's looking that there's an easier solution, or is not? Maybe with that thing of adding features in the query... Doing a bare item/value query, the map stays in the same place. I've tried out something like including a "scale=5", but the map jumps to some place around the (0,0) point. Is there any cute solutions to this, or I'll have to create the invisible regions layer around the cities??? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From steve.lime at dnr.state.mn.us Mon Nov 6 14:05:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Nov 2000 16:05:09 -0600 Subject: point data searching Message-ID: You can use inline features or possibly simply just another layer def. If you're using a item/value query then you could have it query a layer that represents cities with big yellow circles or whatever. Then you could use a querymap with TYPE SELECTED. That way only the city that is selected gets drawn that special way. Do you really need to draw the city some special way or do you just need it centered on the city with everything drawn as normal? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 11/06/00 03:56PM >>> Well, let me try to ask the question again..... I'm trying to put a "city locate" feature in my page (doing an item/value query, and putting the city in the center of the map). The first solution I saw was to create an invisible layer with rectangles around the cities... But it's looking that there's an easier solution, or is not? Maybe with that thing of adding features in the query... Doing a bare item/value query, the map stays in the same place. I've tried out something like including a "scale=5", but the map jumps to some place around the (0,0) point. Is there any cute solutions to this, or I'll have to create the invisible regions layer around the cities??? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nwerneck at yahoo.com.br Mon Nov 6 23:52:51 2000 From: nwerneck at yahoo.com.br (nwerneck at yahoo.com.br) Date: Tue, 7 Nov 2000 05:52:51 -0200 Subject: point data searching In-Reply-To: Message-ID: <200011070755.BAA21196@lists.gis.umn.edu> > Do you really need to draw the city some special way or do you just need > it centered on the city with everything drawn as normal? Just center the city in the map... Is it possible? Can I specify the scale of the new map? It would be nice to tell, for example: "Show me the Myztplikz city, at THAT scale" or "... and everything at THAT distance from it" It looks like this already exists for mapxy queries... Can I specify some coordinated pair (outside any shapefile), and tell mapserv to show me the map centered at that point? Or must I calculate the mapext? ??? -- Nicolau _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From tim at activeweb.co.za Tue Nov 7 01:36:28 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Tue, 7 Nov 2000 11:36:28 +0200 Subject: Problems compiling nightly build Message-ID: <00110711362807.06529@timhome.home> Hi I am trying to compile the nightly build of a few days back on RH7.0 / PHP4 I get the following error: _______________________________________________________________ checking for location of config.h or php_config.h... /usr/local/src/php-4.0.2/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache creating ./config.status creating Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating gdft/Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating mapscript/php3/Makefile sed: file conftest.s1 line 74: Unterminated `s' command _______________________________________________________________ Can anyone point out for me how what the problem may be? I compiled PHP4 with: ./configure --with-system-regex --with-mysql --with-apxs --with-config-file-path=/etc/httpd --with-unixODBC=/usr/local/easysoft/unixODBC --with-esoob --with-sybase-ct=/opt/sybase-11.9.2 --enable-dbase && make && make install and Mapserver with: ./configure --with-gd --with-jpg --with-ttf --with-proj --with-apxs --with-php=/usr/local/src/php-4.0.2 make Many thanks Tim Sutton tim @ linuxuser.co.za -- Confucius say too much. -- Recent Chinese Proverb From morissette at dmsolutions.on.ca Tue Nov 7 06:15:08 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Tue, 07 Nov 2000 09:15:08 -0500 Subject: Problems compiling nightly build References: <00110711362807.06529@timhome.home> Message-ID: <3A080E6C.60FCD472@dmsolutions.on.ca> Tim, There appears to be an intermittent problem with the configure script that I haven't been able to reproduce myself. Until it's fixed, there is a workaround that works for RH users... find the following lines in the file configure.in: AC_MSG_CHECKING([whether 'perl -V' works]) if (perl -V > /dev/null 2>&1) ; then AC_MSG_RESULT(yes) AC_LD_SHARED_FROM_PERL PHP_CC="$PERL_CC" PHP_LD="$PERL_LD" else AC_MSG_RESULT(no) AC_COMPILER_PIC AC_LD_SHARED PHP_CC="$CC $C_PIC" PHP_LD="$LD_SHARED" fi and remove the first case in the if(), to keep only: AC_COMPILER_PIC AC_LD_SHARED PHP_CC="$CC $C_PIC" PHP_LD="$LD_SHARED" Then run 'autoconf' and re-run configure. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Tim and Marcelle Sutton wrote: > > Hi > > I am trying to compile the nightly build of a few days back on RH7.0 / PHP4 > > I get the following error: > > _______________________________________________________________ > checking for location of config.h or php_config.h... > /usr/local/src/php-4.0.2/php_config.h > checking whether we have PHP3 or PHP4... -DPHP4 > checking whether we should use PHP's regex... no > PHP/MapScript module configured. > checking for location of Apache headers using apxs... -I/usr/include/apache > creating ./config.status > creating Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating gdft/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > _______________________________________________________________ > > Can anyone point out for me how what the problem may be? > > I compiled PHP4 with: > > ./configure --with-system-regex --with-mysql --with-apxs > --with-config-file-path=/etc/httpd > --with-unixODBC=/usr/local/easysoft/unixODBC --with-esoob > --with-sybase-ct=/opt/sybase-11.9.2 --enable-dbase && make && make install > > and Mapserver with: > > ./configure --with-gd --with-jpg --with-ttf --with-proj --with-apxs > --with-php=/usr/local/src/php-4.0.2 > make > > Many thanks > > Tim Sutton > > tim @ linuxuser.co.za > -- > Confucius say too much. > -- Recent Chinese Proverb From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Nov 7 08:09:21 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 7 Nov 2000 11:09:21 -0500 Subject: Polygons not getting filled ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050494209C@s5-ccr-r1> Hello, I just noticed a strange little something with someof the data I'm using ... it seems some polygons are not getting filled with the color they should be ! I have no idea why, however. In my case it seems it's mostly coastal islands and so on ... The polygon is there, and if I query an attrbiute, it works fine, but it's colored as the background (As if the polygon is being colored transparent, or not at all, not sure). I noticed this because I use two seperate layers to fill the colors of the polygons, and draw the "borders" ... so I started noticing some islands were having their coast drawn, but they were the color of the background ! At first I thought maybe the polygon that was supposed ot be thet was missing, but no, it's there allright, I can even query it ! If I try to force it using CLASSITEM and EXPRESSION, still no go ... Anybody know what might be causing this ? Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada http://atlas.gc.ca (613) 992-4902 From benlewis1 at hotmail.com Tue Nov 7 08:50:55 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Tue, 07 Nov 2000 16:50:55 GMT Subject: Questions on layer display, Rosa applet Message-ID: I started with the demo and loaded my own data, everything is going well reprojection, query - except I can't get the layers to turn on and off. Status=default gets them on. Status=on does not, but I cannot turn them on from the "Select Layers to Display" window. Any help appreciated. BTW MapServer is fast. I've got a 100 meg shape file I'm cruising around w/ 4 second refresh times on a 260 megahertze! That's indexed using shptree. One other question, the Rosa applet looks very nice, and I'm going to be giving a presentation on Open Source GIS, using MapServer (and the Rosa applet if possible) as an example of a great OS GIS web apps, and wanted to see if there was a quick how to that could get the applet running in an hour or so. No big deal if it's more involved than that. Thank you. Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From teb at mallit.fr.umn.edu Tue Nov 7 09:02:04 2000 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 7 Nov 2000 11:02:04 -0600 (CST) Subject: =?ISO-8859-1?Q?FWD;_(=B5L=A5D=C3D)?= Message-ID: <200011071702.LAA04405@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- To: mapserver-info at lists.gis.umn.edu From: "Joe Su" Subject: (?L?D?D) MIME-Version: 1.0 Date: Wed, 8 Nov 2000 01:02:03 +0800 Recently I want to incorporate Mapserver with some C++ library ,but there are two C++ keywords used by Mapserver:class and template. Does anyone know the workaround? ----------------------------------------------------------------- --- ?_???q?l?H?c?E???q???@?? http://mail.kimo.com.tw < ?? ?? ?? ???E?? ?b ?_ ?? > http://www.kimo.com.tw ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Tue Nov 7 11:04:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Nov 2000 13:04:44 -0600 Subject: Polygons not getting filled ? Message-ID: What are the particulars of the data? Is it tiled? Projected? What software version? I've seen this in cases where folks where using tiled data but the tiles where not set up identically. That caused item lookups (i.e. name => column index) to be misaligned and classification then fails. I've not run across polygons that bust the renderer although they may exist. I'd really need to be able to re-create the problem here to do much. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 11/07/00 10:09AM >>> Hello, I just noticed a strange little something with someof the data I'm using ... it seems some polygons are not getting filled with the color they should be ! I have no idea why, however. In my case it seems it's mostly coastal islands and so on ... The polygon is there, and if I query an attrbiute, it works fine, but it's colored as the background (As if the polygon is being colored transparent, or not at all, not sure). I noticed this because I use two seperate layers to fill the colors of the polygons, and draw the "borders" ... so I started noticing some islands were having their coast drawn, but they were the color of the background ! At first I thought maybe the polygon that was supposed ot be thet was missing, but no, it's there allright, I can even query it ! If I try to force it using CLASSITEM and EXPRESSION, still no go ... Anybody know what might be causing this ? Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada http://atlas.gc.ca (613) 992-4902 From steve.lime at dnr.state.mn.us Tue Nov 7 11:15:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Nov 2000 13:15:20 -0600 Subject: point data searching Message-ID: Just centering is easy. In you're query template you might have something like: or The values for buffer and scale could easily be passed in from the same form the user picked the city. Just use the pass through feature of templates. I do this all the time. BTW [get_layers] just adds currently selected layers (i.e. &layer=layer1&layer=layer2) to the end. You may or may not need it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 11/07/00 01:52AM >>> > Do you really need to draw the city some special way or do you just need > it centered on the city with everything drawn as normal? Just center the city in the map... Is it possible? Can I specify the scale of the new map? It would be nice to tell, for example: "Show me the Myztplikz city, at THAT scale" or "... and everything at THAT distance from it" It looks like this already exists for mapxy queries... Can I specify some coordinated pair (outside any shapefile), and tell mapserv to show me the map centered at that point? Or must I calculate the mapext? ??? -- Nicolau _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From erich at museum.state.il.us Tue Nov 7 11:39:41 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Tue, 7 Nov 2000 13:39:41 -0600 (EST) Subject: New install problem (for me, anyway) Message-ID: Hi, I just downloaded, compiled, and set up the demo for 3.3.011. It seemed to configure and compile OK with no http://museum.state.il.us/RiverWeb/ms_demo/demo_init.html Meanwhile older mapservers I had set up continue to work: http://museum.state.il.us/museum/museum_init.html I believe that this is ms_3.3.007 What did I forget this time? One thing which I remember that has changed on my machine between the compiles was that I switched from an unusual web server (WN) to apache with mod_php, but otherwise it is still the same old redhat system with all the y2k upgrades. Am I running into problems with having libttf.so in two places, ie? /usr/lib/libttf.so /usr/lib/libttf.so.1 /usr/lib/libttf.so.2 /usr/lib/libttf.so.2.1.0 /usr/local/lib/libttf.so /usr/local/lib/libttf.so.1 /usr/local/lib/libttf.so.1.0.0 /usr/local/lib/libttf.so.2 /usr/local/lib/libttf.so.2.2.0 Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Nov 7 12:00:23 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Nov 2000 14:00:23 -0600 Subject: New install problem (for me, anyway) Message-ID: Looks to me like the CGI setup is wrong. Instead of running the mapserv program its sending the binary. Check your apache setup. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Erich Schroeder 11/07/00 01:39PM >>> Hi, I just downloaded, compiled, and set up the demo for 3.3.011. It seemed to configure and compile OK with no http://museum.state.il.us/RiverWeb/ms_demo/demo_init.html Meanwhile older mapservers I had set up continue to work: http://museum.state.il.us/museum/museum_init.html I believe that this is ms_3.3.007 What did I forget this time? One thing which I remember that has changed on my machine between the compiles was that I switched from an unusual web server (WN) to apache with mod_php, but otherwise it is still the same old redhat system with all the y2k upgrades. Am I running into problems with having libttf.so in two places, ie? /usr/lib/libttf.so /usr/lib/libttf.so.1 /usr/lib/libttf.so.2 /usr/lib/libttf.so.2.1.0 /usr/local/lib/libttf.so /usr/local/lib/libttf.so.1 /usr/local/lib/libttf.so.1.0.0 /usr/local/lib/libttf.so.2 /usr/local/lib/libttf.so.2.2.0 Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From erich at museum.state.il.us Tue Nov 7 11:59:01 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Tue, 7 Nov 2000 13:59:01 -0600 (EST) Subject: New install problem (for me, anyway) In-Reply-To: Message-ID: Yup, that was it. I changed the name of mapserver to mapserver.cgi and it works. Thanks, and sorry I didn't try that right away... Erich On Tue, 7 Nov 2000, Stephen Lime wrote: > Looks to me like the CGI setup is wrong. Instead of running the mapserv program > its sending the binary. Check your apache setup. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Erich Schroeder 11/07/00 01:39PM >>> > Hi, > I just downloaded, compiled, and set up the demo for 3.3.011. It seemed > to configure and compile OK with no > > http://museum.state.il.us/RiverWeb/ms_demo/demo_init.html > > Meanwhile older mapservers I had set up continue to work: > > http://museum.state.il.us/museum/museum_init.html > > I believe that this is ms_3.3.007 > > What did I forget this time? One thing which I remember that has changed > on my machine between the compiles was that I switched from an unusual web > server (WN) to apache with mod_php, but otherwise it is still the same old > redhat system with all the y2k upgrades. > > Am I running into problems with having libttf.so in two places, ie? > /usr/lib/libttf.so > /usr/lib/libttf.so.1 > /usr/lib/libttf.so.2 > /usr/lib/libttf.so.2.1.0 > /usr/local/lib/libttf.so > /usr/local/lib/libttf.so.1 > /usr/local/lib/libttf.so.1.0.0 > /usr/local/lib/libttf.so.2 > /usr/local/lib/libttf.so.2.2.0 > > > Erich > > --------------------------------------------------------------------- > Erich Schroeder Phone: (217)785-0033 > Curator, Information Technologies FAX: (217)785-2857 > Illinois State Museum GIS Lab Internet: erich at museum.state.il.us > http://www.museum.state.il.us/ > --------------------------------------------------------------------- > > --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From hmeij at mail.wesleyan.edu Tue Nov 7 13:00:37 2000 From: hmeij at mail.wesleyan.edu (Hendrik Meij) Date: Tue, 07 Nov 2000 16:00:37 -0500 Subject: new with problems... Message-ID: <4.3.1.2.20001107154933.00b19100@hmeij.mail.wesleyan.edu> Well I'm kinda stuck on example1... ran some tiger data through TGR2SHP and subsequently am trying to show some output. Based on previous discussions on this list I've moved my tmp dir to htdocs/tmp but i'm still getting no output. I can change the color of the image fine, and ms_demo is running and generating output. Is my problem in the EXTENT setup? I'm using a shapefile in geographic projection but when i leave the extent setting out of my map file, mapserv complains...any help to get me started appreciated so i can get some feedback on what i'm doing. -Henk HTMLFILE MAPFILE NAME Middlesex STATUS ON SIZE 300 300 EXTENT 50 50 100 100 UNITS KILOMETERS SHAPEPATH "/usr/local/apache/port80/htdocs/mapserver/Tiger92/Tgr09007" IMAGECOLOR 252 252 252 WEB MINSCALE 10000 MAXSCALE 1000000 IMAGEPATH "/usr/local/apache/port80/htdocs/tmp/" IMAGEURL "/tmp/" # LOG "demo.log" END LAYER NAME "blocks" DATA Tgr09007blk STATUS DEFAULT TYPE POLYGON CLASS COLOR 152 152 152 END # end class END # end layer END # end map -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at activeweb.co.za Tue Nov 7 13:57:23 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Tue, 7 Nov 2000 23:57:23 +0200 Subject: php4 / mapscript problem Message-ID: <0011072357230D.06529@timhome.home> Hi all I managed to get the nightly build to compile under RH7 / PHP4. Thanks for the help Daniel and Berend ! I am busy trying to get my php3/mapscript project working under php4/mapscript. I compiled using GD1.8.x. When I load the map page I get the error below: ________________________________________________
Fatal error: Object has an invalid _handle_ property in /home/suttont/public_html/Mapserver/cnc/cnc.php3 on line 145
________________________________________________ The relevant lines in the .php source is included here: _______________________________________________ 140 // Make and place a legend object on the page 141 $img = $map->drawLegend(); 142 $url = $img->saveWebImage(1, 0, 0, 65); 143 printf("\n", $url); 144 // Make and place an overview Map 145 $img = $map->drawReferenceMap(); 146 $url = $img->saveWebImage(1, 0, 0, 65); 147 printf("\n", $url); 148 // Show the scale in words 149 $scale = floor($map->scale); 150 echo ("1:$scale
"); 151 // Make and place a scale bar on the page 152 $img = $map->drawScaleBar(); 153 $url = $img->saveWebImage(1, 0, 0, 65); 154 printf("\n", $url); 155 echo ("\n"); _______________________________________________ Can anyone give me any hints as to what the problem may be? Many thanks, Tim tim @ linuxuser.co.za -- Look before you leap. -- Samuel Butler From Robin.Ellis at dnr.qld.gov.au Tue Nov 7 15:04:55 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Wed, 8 Nov 2000 09:04:55 +1000 Subject: nquery templates Message-ID: Does anybody know how to 'trick' mapserver into accepting a URL query template for an NQUERY? I'd like to be able to do this so that I could also employ header and footer files, which require a multi-result query. I'm using a Java based application on a UNIX platform that uses standard map files. Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From aborruso at spaziogis.it Wed Nov 8 01:56:54 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 8 Nov 2000 10:56:54 +0100 Subject: Rif: Re: point data searching Message-ID: Dear all, where [shpmidx] [shpmidy] functions is documented in mapserver site? Which are their functions? Thank you, Andrea "Stephen Lime" Per: , Inviato da: owner-mapserver-users at lists.g Cc: is.umn.edu Oggetto: Re: point data searching 07/11/2000 20.15 Just centering is easy. In you're query template you might have something like: or The values for buffer and scale could easily be passed in from the same form the user picked the city. Just use the pass through feature of templates. I do this all the time. BTW [get_layers] just adds currently selected layers (i.e. &layer=layer1&layer=layer2) to the end. You may or may not need it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 11/07/00 01:52AM >>> > Do you really need to draw the city some special way or do you just need > it centered on the city with everything drawn as normal? Just center the city in the map... Is it possible? Can I specify the scale of the new map? It would be nice to tell, for example: "Show me the Myztplikz city, at THAT scale" or "... and everything at THAT distance from it" It looks like this already exists for mapxy queries... Can I specify some coordinated pair (outside any shapefile), and tell mapserv to show me the map centered at that point? Or must I calculate the mapext? ??? -- Nicolau _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From Markus.Spring at muenchen.de Wed Nov 8 03:45:06 2000 From: Markus.Spring at muenchen.de (Markus.Spring) Date: Wed, 08 Nov 2000 12:45:06 +0100 Subject: What's wrong with this mapfile? References: Message-ID: <3A093CC2.B9082F15@muenchen.de> Hello Steve, unfortunately even the nightly build (downloaded it Nov. 8. 10:00 local time) fails with this mapfile. I am running mapserver under SuSE Linux 6.4, Kernel 2.2.14 but now I remember having seen similar effects on a solaris machine in our office. As I have prepared a list of >70 maps to publish together with an university department here in Munich, this problem really does hurt me... If necessary I could send you es well part of the shapefiles, but as they render well if used individually, I do think too that this must be a problem in the mapfile. What I don't know is, if there is also the possibility that the html-template could cause this defekt... I hope I shall be released... kind regards - Markus From bjohnson at jecinc.on.ca Wed Nov 8 06:03:48 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Wed, 8 Nov 2000 09:03:48 -0500 Subject: Rotating text labels for a street map In-Reply-To: <3A093CC2.B9082F15@muenchen.de> Message-ID: <000101c0498c$dd2df6c0$1200a8c0@Pentium166> As always, I research my problems by searching the archives, but I can't find the answer to this. I'm trying to get text labels to rotate to match the lines they are associated with - I've found examples of using ANGLE AUTO in the LABEL section of the mapfile but there isn't any refernence to it in the map file documentation. I'm wondering if my problem is that I didn't compile in support for TruType fonts. Do I need to complile in TrueType fonts to use auto angle or has that feature been dropped? I tried to check other pages (including the freetype web page) but couldn't find any reference to rotating text. From assefa at dmsolutions.on.ca Wed Nov 8 08:11:57 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Wed, 08 Nov 2000 11:11:57 -0500 Subject: PHP/Mapscript questions?? References: <3A06C1B7.B84CE794@dmsolutions.on.ca> <3A06CC6E.C480A75D@dmsolutions.on.ca> <3A06CE67.9296D84E@dmsolutions.on.ca> Message-ID: <3A097B4D.624A2725@dmsolutions.on.ca> Hi there, Just an update on PHP4 (on windows) and php/mapscript.dll : I have updated and compiled with the latest release of php : php-4.0.3pl1 I will try to maintain a dll wich will be in sync with the windows binaries distributed at php.net. The reason is that for the php_mapscript.dll to work with these windows binaries downloaded, it has to be compatible with the specific version of PHP and also with some compilation parameters (debug and thread safety). If you are using php4/mapscript on windows and having some problem, please let me know. A new zip containing the php_mapscript.dll can be downloaded at : http://www2.dmsolutions.on.ca/mapserver/dl/php4_mapscript_dll-20001108.zip Later, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.on.ca http://www.dmsolutions.on.ca Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From berend.veldkamp at aris.nl Wed Nov 8 08:43:10 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 08 Nov 2000 17:43:10 +0100 Subject: Rotating text labels for a street map References: <000101c0498c$dd2df6c0$1200a8c0@Pentium166> Message-ID: <3A09829E.92A66EB0@aris.nl> Hi, I haven't found the 'ANGLE auto' in the documentation either, but it does work. If you have compiled with TT support. Berend Brian Johnson wrote: > As always, I research my problems by searching the archives, but I can't > find the answer to this. > > I'm trying to get text labels to rotate to match the lines they are > associated with - I've found examples of using ANGLE AUTO in the LABEL > section of the mapfile but there isn't any refernence to it in the map file > documentation. > > I'm wondering if my problem is that I didn't compile in support for TruType > fonts. > > Do I need to complile in TrueType fonts to use auto angle or has that > feature been dropped? > > I tried to check other pages (including the freetype web page) but couldn't > find any reference to rotating text. -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From nwerneck at yahoo.com.br Wed Nov 8 10:49:14 2000 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Wed, 8 Nov 2000 15:49:14 -0300 (ART) Subject: CGI functions (lack of :) ) documentation Message-ID: <20001108184914.20345.qmail@web4306.mail.yahoo.com> How do the mapext="shapes" work??? ________________________________________________________________________ Do You Yahoo!? Crie o seu e-mail gr?tis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br From morissette at dmsolutions.on.ca Wed Nov 8 12:04:59 2000 From: morissette at dmsolutions.on.ca (Daniel Morissette) Date: Wed, 08 Nov 2000 15:04:59 -0500 Subject: Questions on layer display, Rosa applet References: Message-ID: <3A09B1EB.EBFD0B28@dmsolutions.on.ca> Ben Lewis wrote: > > One other question, the Rosa applet looks very nice, and I'm going to be > giving a presentation on Open Source GIS, using MapServer (and the Rosa > applet if possible) as an example of a great OS GIS web apps, and wanted to > see if there was a quick how to that could get the applet running in an hour > or so. No big deal if it's more involved than that. > Ben, We had not designed ROSA to be directly compatible with the mapserv CGI, so it won't work automatically (we always use it with MapScript). We never tried to use ROSA with mapserv either, but someone has done it recently... see: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0009/msg00062.html Their application, at http://www.agso.gov.au/map/pilbara/ uses ROSA with a modified version of "mapserv". See below the code that needs to be added to the mapserv CGI in order to understand the values returned by ROSA. The rest is just a matter of setting the right parameter values in your template file. If you try their app. and look at the HTML source then you should be able to figure the way they built their template. BTW, a new version of the applet with a bunch of fixes and some new features (like real tool tips on buttons) has been posted on the web site last week ( http://www.dmsolutions.on.ca/rosa/ ) Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.on.ca http://www.dmsolutions.on.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Jonathon.Root at agso.gov.au wrote: > > Daniel, > > I didn't do these particular changes myself (Tim Mackey also at AGSO is the > culprit and he's away til Monday) but I don't think there was much more than > a change in mapserv (loadForm) as below and then the mapserv template file > builds the image link, hidden imgext values etc: > > mods to mapserv: > // **************** T. Mackey, Rosa applet mods begin ******************** > if(strcasecmp(Entries[i].name,"INPUT_TYPE") == 0) { /* Rosa input type > */ > if(strcasecmp(Entries[i].val,"auto_rect") == 0) { > rosa_type=1; /* rectangle */ > continue; > } > if(strcasecmp(Entries[i].val,"auto_point") == 0) { > rosa_type=2; /* point */ > continue; > } > } > if(strcasecmp(Entries[i].name,"INPUT_COORD") == 0) { /* Rosa coordinates > */ > > switch(rosa_type) > { > case 1: > sscanf(Entries[i].val,"%lf,%lf;%lf,%lf", > &ImgBox.minx,&ImgBox.miny,&ImgBox.maxx,&ImgBox.maxy); > if((ImgBox.minx != ImgBox.maxx) && (ImgBox.miny != ImgBox.maxy)) { > CoordSource = FROMIMGBOX; > QueryCoordSource = FROMIMGBOX; > } > break; > case 2: > sscanf(Entries[i].val,"%lf,%lf",&ImgPnt.x,&ImgPnt.y); > CoordSource = FROMIMGPNT; > QueryCoordSource = FROMIMGPNT; > break; > } > continue; > } > // **************** T. Mackey, Rosa applet mods end ******************** > > I'll check with Tim when he gets in on Monday and let you know if there was > anything else. Your welcome to invite people to use "view source" - there > are some non-image processing implementations at > http://www.agso.gov.au/map/ - specifically the Darwin 1:250,000 geology > about halfway down, although we're about to upgrade all the maps from their > shamefully old versions of mapserv in the next couple of weeks. > > Regards, > Jonathon Root > From david at kriske.com Wed Nov 8 17:00:13 2000 From: david at kriske.com (David L. Kriske) Date: Wed, 08 Nov 2000 17:00:13 -0800 (PST) Subject: MAXSCALE prob solved, new ? re: scale in general Message-ID: Sorry for the earlier post. I was able to figure my MAXSCALE problem. Seems that the UNITS line in the map object refers to the scale units, not EXTENT units. I changed that to meters and resolevd the problem. Now, however, it seems that my scale measurements are off by many factors. Would someone be able to explain to me how EXTENT, SCALE, UNITS, etc all interoperate when displaying an ARCVIEW generated shapefile in an unprojected space (ie, geographic coordinates, not any projection)? I have the following entered in my map file. EXTENT -126 45 -65 30 This displays a shapefile that covers the entire US. I used these coordinates when I assumed the extent could be written in terms of lat/long degrees. The problem is that the legend bar, set for meter units, shows that the entire US is approximately 60 meters long, when it should be more like 6000 km long or 6,000,000 meters. The scaling is off by a factor of 100,000. This carries over to the MAXSCALE measurement, in which a layer wont show up on this zoomed-out view if it's set to MAXSCALE 300, but will show up at MAXSCALE 3000. If someone could shed some light onto how EXTENT and SCALE is calculated given an arcview-created shapefile in unprojected units, I'd be most grateful!! David From david at kriske.com Wed Nov 8 15:57:39 2000 From: david at kriske.com (David L. Kriske) Date: Wed, 08 Nov 2000 15:57:39 -0800 (PST) Subject: FOLLOW UP: Can't declare multiple MAXSCALE's Message-ID: I am still having trouble inserting multiple MAXSCALE statements in my map file. I have since tried compiling mapserver on a Linux machine and get the same behavior when adding multiple MAXSCALES. I have also tried changing the units to meters as suggested. Could it be a shapefile specific error? What other areas does the MAXSCALE function depend upon? David --- previous message forwarded below --- I'm running Mapserver 3.3.011 (also tried .012) compiled for NT 4.0 (using the precompiled one on the mapserver site). For some reason, I am unable to declare a MAXSCALE statement for more than one layer. If I do, I get... Mapserv.exe Application Error - The instruction at referenced memory at "". The memory could not be "written" Then Mapserver bombs and I get a CGI Error in the browser. If I take out all but one (or all) of the MAXSCALE statements it renders the map fine. I'm using the Maperserver Tutorial Example 4 adjusted to use my own shapefiles. I haven't tried running Mapserver on a Linux Box, is the NT build buggy? Here's my .map file if it helps..... Thanks in advance for any help you may provide. This seems to be a great program in every other respect! David NAME AOP EXTENT -126 45 -65 30 FONTSET "d:\inetpub\wwwroot\mapserver\fonts\fontset.txt" UNITS dd SIZE 500 500 SHAPEPATH "e:\MAPSERVER\SHAPES\" WEB TEMPLATE "d:\inetpub\wwwroot\mapserver\browser.html" IMAGEPATH "d:\inetpub\wwwroot\mapserver\images\" IMAGEURL "/mapserver/images/" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 ANTIALIAS END END SCALEBAR STATUS ON INTERVALS 2 SIZE 100 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles LABEL COLOR 0 0 0 SIZE medium END END LAYER NAME "us" DATA us STATUS DEFAULT TYPE POLYGON CLASS COLOR 212 212 212 OUTLINECOLOR 140 140 140 END END LAYER NAME "aops" DATA aop102500_8 STATUS DEFAULT TYPE POLYGON CLASS NAME "AOP" COLOR 102 110 176 END END LAYER NAME "freeways" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Freeways" EXPRESSION /A1[0-9]/ COLOR 223 0 41 END MAXSCALE 50000 END LAYER NAME "roads" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Major Arterials" EXPRESSION /A[2-3][0-9]/ COLOR 245 183 87 END MAXSCALE 100000 END LAYER NAME "streets" DATA roads CLASSITEM "CFCC" STATUS DEFAULT TYPE LINE CLASS NAME "Minor Streets" EXPRESSION /A[4-7][0-9]/ COLOR 0 0 0 END END END From bertha_bonita at yahoo.com Wed Nov 8 19:11:03 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 8 Nov 2000 19:11:03 -0800 (PST) Subject: i need the Expression Correct!.. Message-ID: <20001109031103.19156.qmail@web4206.mail.yahoo.com> Hi list i have this expression.. EXPRESSION ('[PERIDODO]' eq 'Paleogeno') but in my table i have.. PERIODO Paleogeno Neogeno Cretacico then the results of this expression are Paleogeno and Neogeno, i need an expression more specific i don't want the expression takes other words or values. I only need exactly the word 'Paleogeno' i'm waiting for a soon advice!.. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/ From erich at museum.state.il.us Thu Nov 9 06:39:18 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Thu, 9 Nov 2000 08:39:18 -0600 (EST) Subject: Just a black image Message-ID: Hi, It's been a good six months since I last worked with mapserver and I forget what I learned before. My current test is at the scale of North America, but when I run it I get plain black images. It seems to me that I've had this happen before but the old brain just doesn't cough it up. My test example is at: http://museum.state.il.us/construction/faunmapweb/faunmapweb_init.html and the mapfile is at: http://museum.state.il.us/construction/faunmapweb/faunmapweb.map It was produced using that AML I wrote in February of this year. One thing that I was wondering about, is it a problem to have the extent include negative numbers? eks --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Thu Nov 9 12:21:15 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 09 Nov 2000 14:21:15 -0600 Subject: Questions on layer display, Rosa applet Message-ID: Ignore STATUS settings other than DEFAULT. The mapserv CGI program considers anything but DEFAULT to be OFF. Then the app looks for CGI variables called "layer" the mapserver layer referenced by that layer, for example lakes, is then considered ON. Study the demo. See the attached applet and class files. To use: 1) place the class files on your site someplace (preferable in their own directory) 2) add the following javascript functions to your application (in the section) 3) add the following hidden variables to your mapserver form (make sure the form is named "mapserv", if you change it you'll need to edit the functions above to reflect that change) The values for imgxy should be matched to you're image size. The formulas are x = (cols-1)/2 and y = (rows-1)/2. 4) change the part of your form to use the applet. where image = fully qualified URL for the image to be displayed jitter = the ammount of slop in mouse clicking (i.e. minimum box size) thickness = thickness of the dragged box (in pixels) color = color of the box (either a java named color or an rgb triplet - 0 0 0) You'll have to edit the codebase, width, and height parameters to match your needs. That should do it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ben Lewis" 11/07/00 01:55PM >>> Stephen, Thanks for the quick response... In the map file in the demo, all layers have status=on or status=default. How does the interface in the demo turn them on and off from the "select layers to display" box on the browser interface? When I highlight a layer to turn on and hit refresh, no change occurs and the layer i highlighted is no linger highlighted. In the original demo any layers that are highlighted are turned on when the map is refreshed. I hope this makes sense. Yes, I would be very interested in the applet you mentioned. Thanks again. Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA >From: "Stephen Lime" >To: >Subject: Re: Questions on layer display, Rosa applet >Date: Tue, 07 Nov 2000 12:59:38 -0600 > >By default all layers are off and must be explicitly turned on. The >exception is >layers of TYPE DEFAULT or QUERYONLY. The layer and layers CGI variables >are used to specify which layers to turn on. > >BTW I have an alternative to Rosa that can be added to an application in a >few minutes if you're interested. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> "Ben Lewis" 11/07/00 10:50AM >>> >I started with the demo and loaded my own data, everything is going well >reprojection, query - except I can't get the layers to turn on and off. >Status=default gets them on. Status=on does not, but I cannot turn them on >from the "Select Layers to Display" window. Any help appreciated. > >BTW MapServer is fast. I've got a 100 meg shape file I'm cruising around >w/ >4 second refresh times on a 260 megahertze! That's indexed using shptree. > >One other question, the Rosa applet looks very nice, and I'm going to be >giving a presentation on Open Source GIS, using MapServer (and the Rosa >applet if possible) as an example of a great OS GIS web apps, and wanted to >see if there was a quick how to that could get the applet running in an >hour >or so. No big deal if it's more involved than that. > >Thank you. > >Ben Lewis >Advanced Technology Solutions, Inc. >Lancaster, PA > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -------------- next part -------------- A non-text attachment was scrubbed... Name: mapplet.java Type: application/octet-stream Size: 7475 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapplet.class Type: application/octet-stream Size: 6094 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: evalThread.class Type: application/octet-stream Size: 1243 bytes Desc: not available URL: From bertha_bonita at yahoo.com Thu Nov 9 20:06:27 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Thu, 9 Nov 2000 20:06:27 -0800 (PST) Subject: !HELP ! I need the expression correct AGAIN!!!! Message-ID: <20001110040627.29919.qmail@web4206.mail.yahoo.com> Hello list I need your help i tried several expressiones but, didn't work!!! i do not why.. (i'm working whit version 3.3.010) i have this .. EXPRESSION ('[PERIODO]' eq 'Paleogeno') in my table i have others words look likes to Paleogeno as Neogeno, but i need the EXACTLY expression for obtain only Paleogenos.. i tried whit: CLASSITEM "PERIODO" CLASS NAME "Periodo Paleogeno" EXPRESSION 'Paleogeno' this don't show me nothing '^Paleogeno$' don't show me nothing and the other expressiones are: EXPRESSION ('[PERIODO]' eq 'Paleogeno) show me paleogenos and neogenos, only this expressiones give me a results!,but the results not are correct!!!! what i have to do? thanks for your advices! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/ From nwerneck at yahoo.com.br Fri Nov 10 08:48:01 2000 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Fri, 10 Nov 2000 13:48:01 -0300 (ART) Subject: city-locatting OK... next step! =) Message-ID: <20001110164801.23186.qmail@web4306.mail.yahoo.com> Hi... OK, I've successfully used the [shpmidx|y] thing... But now, how can I use that to continue to browse trough the map? Why won't something like "???/mapserv?map=&mapxy=-43+-20&scale=4&img.x=200&img.y=400" work? Isn't defining a mapxy/scale pair the same as defining a mapext? they should be equivalent! (I'm almost understanding this thing. I hope I can contribute to the documentation, because this program rocks! :) ) -- Nicolau ________________________________________________________________________ Do You Yahoo!? Crie o seu e-mail gr?tis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br From gdp at geo-it.com Fri Nov 10 10:21:57 2000 From: gdp at geo-it.com (GeoDataPlan) Date: Fri, 10 Nov 2000 19:21:57 +0100 Subject: Newbees question concerning mapping DB-Data Message-ID: <9138808AB827D311B56800E018900A6107973C@gdppdc.gdp.com> Mapserver users ! We want to map spatial data which comes not in Shape-Format, but is stored in an Oracle8i-DB. On the mapserver-homepage we can read something about Perl?s DBI-module, to integrate data from an Oracle-DB. Where can I find documentation about this module? Has anybody experience in developping an interface to feed mapserver with data from an Oracle-DB? Thank?s a lot and greetings to all from upper Bavaria !!! Daniel Daniel Robrecht GeoDataPlan Guggenberg. 3 82380 Pei?enberg Tel. 08803-60669 e-mail gdp at geo-it.com http:\\www.geo-it.com From Matt.Wilkie at gov.yk.ca Fri Nov 10 11:19:58 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 10 Nov 2000 11:19:58 -0800 Subject: Accessing ArcInfo data (was RE: Just a black image) Message-ID: <6DD7370C9452D31192A10008C75D0753072F1119@raptor.gov.yk.ca> Hi Erich, Sorry, I don't know what's going on with the black image. Could it have something to do with transparency? I do know Mapserver does not yet support alpha channels in PNG images. Just a thought. The real reason I'm writing is because you mentioned using AML: > It was produced using that AML I wrote in February of this > year. One thing that I was wondering about, is it a problem > to have the extent include negative numbers? Is that ArcInfo AML? If so I'm very interested in how you are handling the data transfer from Arc to Mapserver. All of our data is in ArcInfo Libraries and I'm currently trying to figure out the best way to access it with Mapserver. A one-time export to shapefiles is no good because then we'd have to maintain two data repositories (one in native Arc and one in shape). Anyway, I'm interested in comparing notes. -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From erich at museum.state.il.us Fri Nov 10 13:01:47 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Fri, 10 Nov 2000 15:01:47 -0600 (EST) Subject: Accessing ArcInfo data (was RE: Just a black image) In-Reply-To: <6DD7370C9452D31192A10008C75D0753072F1119@raptor.gov.yk.ca> Message-ID: Hi, Yup, ArcInfo AML. I threw it together and posted it to the mapserver list last February because I wanted to give something to the list before I asked my newbie questions. I'm still asking the questions... Anyway, take a look at my code at: http://museum.state.il.us/research/GISlab/mkmapserver.aml It translates the coverages into shapefiles, and makes a mapfile and template html files which match the mapserver demo (minus the inset map). It's not particularly forgiving, but then it doesn't do much damage. It would probably take some changing for dealing with A/I libraries--I don't have much experience with them. Erich On Fri, 10 Nov 2000, Matt.Wilkie wrote: > Hi Erich, > > The real reason I'm writing is because you mentioned using AML: > > > It was produced using that AML I wrote in February of this > > year. One thing that I was wondering about, is it a problem > > to have the extent include negative numbers? > > Is that ArcInfo AML? If so I'm very interested in how you are > handling the data transfer from Arc to Mapserver. All of our > data is in ArcInfo Libraries and I'm currently trying to > figure out the best way to access it with Mapserver. A one-time > export to shapefiles is no good because then we'd have to > maintain two data repositories (one in native Arc and one in > shape). > > Anyway, I'm interested in comparing notes. > > > > -matt > ======================================== > Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS > http://renres.gov.yk.ca/pubs/rrgis/ > --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From nicklo at siliconcreation.com Sat Nov 11 01:58:15 2000 From: nicklo at siliconcreation.com (Nicholas Lo) Date: Sat, 11 Nov 2000 17:58:15 +0800 Subject: Mapscript & Python Message-ID: <3A0D1837.704768CC@siliconcreation.com> Hi everyone, I'm using MapServer 3.3.011 and I'm trying to create the Python Mapscript wrapper using SWIG 1.1p5. However, it has been unsuccessful. Here are my steps: 1. Under mapserver/mapscript cp mapscript.i python 2. cd python 3. swig -shadow -docstring -dhtml -python mapscript.i 4. gcc mapscript_wrap.c -I/usr/include/python1.5 -shadow -o mapscriptcmodule.so After all these steps, I've got mapscript.py mapscript_wrap.c mapscriptcmodule.so mapscript_wrap.html When I try to >>>import mapscript under IDLE 0.5, I've got Traceback (innermost last): File "", line 1, in ? import mapscript File "/root/NickPy/mapscript.py", line 2, in ? import mapscriptc ImportError: /root/NickPy/mapscriptcmodule.so: undefined symbol: msSaveImage >>> I really dont understand why. I can see 'msSaveImage' inside mapscript.py & mapscript_wrap.c, however it's not inside mapscript.i. I wonder if there's any step I'm missing or if there is any hints in creating the Python Mapscript wrapper. Please kindly help :) -- Nick PS: System configuration - SuSE Linux 6.4 Python 1.5.2 MapServer 3.3.011 From frank.koormann at intevation.de Sat Nov 11 10:58:33 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Sat, 11 Nov 2000 19:58:33 +0100 Subject: Newbees question concerning mapping DB-Data In-Reply-To: <9138808AB827D311B56800E018900A6107973C@gdppdc.gdp.com>; from gdp@geo-it.com on Fre, Nov 10, 2000 at 07:21:57 +0100 References: <9138808AB827D311B56800E018900A6107973C@gdppdc.gdp.com> Message-ID: <20001111195833.A5731@abnoba.intevation.de> Hi Daniel, List! * GeoDataPlan (gdp at geo-it.com) [001110 19:40]: > Mapserver users ! > > We want to map spatial data which comes not in Shape-Format, but is stored > in an Oracle8i-DB. On the mapserver-homepage we can read something about > Perl?s DBI-module, to integrate data from an Oracle-DB. > Where can I find documentation about this module? > Has anybody experience in developping an interface to feed mapserver with > data from an Oracle-DB? Although I don't have experience with MapServer and Oracle, the CPAN-Archive (www.cpan.org) might be helpful. Regarding Oracle check: http://search.cpan.org/doc/TIMB/DBD-Oracle-1.06/Oracle.pm Have a nice weekend, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From pnaciona at gis.umn.edu Sun Nov 12 23:19:40 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 13 Nov 2000 01:19:40 -0600 Subject: Mapserver binaries for win32 Message-ID: As promised, I have updated the nightly binaries for Win32 (source from 11/11 build). I haven't had any problems with it but please let me know if you do. The binaries are available at http://mapserver.gis.umn.edu/win32binaries.html -Perry N. From steve.lime at dnr.state.mn.us Mon Nov 13 07:43:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 13 Nov 2000 09:43:16 -0600 Subject: Mapscript & Python Message-ID: I can't comment on the Python build, but can on the msSaveImage confusion. SWIG works off the interface file AND C headers. If you look at the map.h file you'll see SWIG related ifdef's all over the place. Basically I'm limiting what can be wrapped by SWIG. The function msSaveImage is wrapped directly from the header and needs not be included as part of the object interface in mapscript.i Steve BTW You might try a more recent version of SWIG. 1.1p5 is kinda old. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicholas Lo 11/11/00 03:58AM >>> Hi everyone, I'm using MapServer 3.3.011 and I'm trying to create the Python Mapscript wrapper using SWIG 1.1p5. However, it has been unsuccessful. Here are my steps: 1. Under mapserver/mapscript cp mapscript.i python 2. cd python 3. swig -shadow -docstring -dhtml -python mapscript.i 4. gcc mapscript_wrap.c -I/usr/include/python1.5 -shadow -o mapscriptcmodule.so After all these steps, I've got mapscript.py mapscript_wrap.c mapscriptcmodule.so mapscript_wrap.html When I try to >>>import mapscript under IDLE 0.5, I've got Traceback (innermost last): File "", line 1, in ? import mapscript File "/root/NickPy/mapscript.py", line 2, in ? import mapscriptc ImportError: /root/NickPy/mapscriptcmodule.so: undefined symbol: msSaveImage >>> I really dont understand why. I can see 'msSaveImage' inside mapscript.py & mapscript_wrap.c, however it's not inside mapscript.i. I wonder if there's any step I'm missing or if there is any hints in creating the Python Mapscript wrapper. Please kindly help :) -- Nick PS: System configuration - SuSE Linux 6.4 Python 1.5.2 MapServer 3.3.011 From steve.lime at dnr.state.mn.us Mon Nov 13 07:50:39 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 13 Nov 2000 09:50:39 -0600 Subject: Newbees question concerning mapping DB-Data Message-ID: Feeding in simple features from Oracle should not be tough using MapScript. Note there is NO support for Oracle Spatial though. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> GeoDataPlan 11/10/00 12:21PM >>> Mapserver users ! We want to map spatial data which comes not in Shape-Format, but is stored in an Oracle8i-DB. On the mapserver-homepage we can read something about Perl s DBI-module, to integrate data from an Oracle-DB. Where can I find documentation about this module? Has anybody experience in developping an interface to feed mapserver with data from an Oracle-DB? Thank s a lot and greetings to all from upper Bavaria !!! Daniel Daniel Robrecht GeoDataPlan Guggenberg. 3 82380 Pei?enberg Tel. 08803-60669 e-mail gdp at geo-it.com http:\\www.geo-it.com From aborruso at spaziogis.it Mon Nov 13 10:20:09 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 13 Nov 2000 19:20:09 +0100 Subject: From query to browse??? Message-ID: Dear all, I point to a particolar object of a layer by this example url (in example a city layer): http://nadir/cgi-bin/ismaele.exe?map=C%3A%5CInetpub%5Cwwwroot%5Cnadir%5Cmapserver%5Cesempi%5Cusgs%5Cmap%5Cquery.map&mode=itemquery&item=NUM&value 001 In the the template file I have the following image field: In this way I see that object centered on my map. Then I would like to navigate in this map (pan and zoom), but also to select a point in the map to have the informations about that particolar city (number of inhabitants in example). But I can assign only a query template to a layer in a map, and I have just used the query to template to have a map centered to the point of my interest. How can have the possibility to query in the map to have other informations, pointing to an other query template? Is it possible for mapserver to draw a map with only that feature that has a particular value by a syntax like http://nadir/cgi-bin/ismaele.exe?map=C%3A%5CInetpub%5Cwwwroot%5Cnadir%5Cmapserver%5Cesempi%5Cusgs%5Cmap%5Cquery.map&mode=itemquery&item=NUM&value=001? How is it possible? Thank you, Andrea From geotux at yahoo.com Mon Nov 13 11:41:50 2000 From: geotux at yahoo.com (Sven Kroemeke) Date: Mon, 13 Nov 2000 11:41:50 -0800 (PST) Subject: point query and new layer Message-ID: <20001113194150.24277.qmail@web10708.mail.yahoo.com> Hello everybody, I have some questions, most of them were posted before, but unfortunately I couldn't find answers - so I am not sure if there are answers and how the current state is! 1) the point query problem: I read many questions about it, but is it solved? I recompiled mapserver in order to advance to mapscript (php) because I want to use a real database (mysql). Since now I didn't try the mapscript query functions, because of the existing problems with other functions. But in both "mapserv" versions (browsing, querying without mapscript) I had problems querying points! - In the original version (gif instead of png, no ttf, etc.) the server hanged on point queries, causing a not terminating process with high cpu usage. - the recompiled version (png, ttf, with mapscript support) causes a segmentation fault with apache returning an empty document. I already have read the advice to use a different type (lines) e.g. a box around the point, but is there not a more sophisticated solution? (in fact mapserver does something, because if the queried point is out of range it returns that it couldn't find an item, but if it is in range then there is no answer just as described above) 2) how can I create a new shape? (php, please) (Since I use a real DB I want to get more independend from the map file and use a DB-table with some information about the layers, classes etc. I only want to use the map file as dummy, almost empty - but some important information is still needed in the map file) In this case I want create a new (annotation) layer when my layer in the DB has the property: annotation. I tried the following... if (isset($HTTP_GET_VARS["$row[0]"])) {// is it turned on within FORM $layer=$map->getLayerByName($row[0]); if ($row[4]) { // is labelitem set $layer->draw($img); // write layer $annotationlayer=ms_newLayerObj($map); //NEW LAYER $annotationlayer->set("name",$row[0]."_annotation"); $annotationlayer->set("type",MS_ANNOTATION); $annotationlayer->set("status",MS_DEFAULT); $annotationlayer->set("data",(string)$row[6]); $annotationlayer->set("labelitem",(string)$row[5]); $annotationlayer->set("labelcache",MS_ON); $annotationlayer->set("classitem",(string)$row[4]); if ($row[10]) $annotationlayer->set(labelminscale,$row[9]); if ($row[11]) $annotationlayer->set(labelmaxscale,$row[11]); $l_class=ms_newClassObj($annotationlayer); $l_class->set("name",$row[0]); $l_class->label->set("color", $map->addColor(0,0,0)); $l_class->label->set("shadowcolor", $map->addColor(218,218,218)); $l_class->label->set("type", MS_BITMAP); $l_class->label->set("size", MS_TINY); $l_class->label->set("position", MS_CC); $l_class->label->set("partials", MS_FALSE); $l_class->label->set("buffer", 2); $annotationlayer->draw($img); }//end of labelitem 2)How is the php mapscript syntax? (this question is related to the two others) I never used objects in php before, so I just took some examples and used them, and it seemed to work. The variables are set! Most of the examples are Perl, so I used $layer->set(property,value); but also $layer->property=value; seemed to work! Further more I found that $layer->getclass() is not documented in mapscript(PHP) (maybe more functions??)! To set an annotation I found a description how to annotate a layer using the property (annotate), but it doesn't work with the set(,) function, because it doesn't seem to exist!? 3) How can I change properties in the mapfile on the fly? Due to the problems above I also couldn't change existing layers, class properties ... the variables are set but nothing changes on the map - I tried size (of a symbol), color and outlinecolor but only outlinecolor works! $old_class->set("size",40); $old_class->set("color",$map->addColor(218,218,218)); //DOESN'T WORK?? $old_class->set("outlinecolor",$map->addColor(218,218,218)); //WORKS!! $layer->draw($img); // draw layer I have Mandrake Linux 7.1 running Mapserver Version (3.3.011) PHP version (3.0.13). Thanks in advance!! S. Kroemeke PROCERGS Brasil __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/ From mamidi at ncche.olemiss.edu Mon Nov 13 15:58:05 2000 From: mamidi at ncche.olemiss.edu (mamidi at ncche.olemiss.edu) Date: Mon, 13 Nov 2000 17:58:05 -0600 Subject: request for the answer Message-ID: <3.0.6.32.20001113175805.00967590@10.74.224.197> I am a gradute student in university of mississippi and want the answer for the following problem. I want to georeferencce an image . If I dont have the shape file file for that image and If I can get the GCP's for that image then which is the best way to georeference the image. Is it possible to do that in arcview. Is there any simple and good extension which I can download from internet. thanks in advance rupesh K mamidi From bowenj at peligroso.gaiaenv.com Mon Nov 13 16:37:54 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Mon, 13 Nov 2000 17:37:54 -0700 Subject: request for the answer References: <3.0.6.32.20001113175805.00967590@10.74.224.197> Message-ID: <3A108962.42A79A64@gaiaenv.com> Hi rupesh, This is more of an ArcView question than a MapServer question. Having said that, the answer is 'yes' you can georeference an image using ArcView using the appropriate extension. Check the ESRI site for extensions/scripts to download. I think some of these let you enter the 'real-world' GCP coordinates manually and then interactively select the image coordinates. http://gis.esri.com/arcscripts/scripts.cfm mamidi at ncche.olemiss.edu wrote: > > I am a gradute student in university of mississippi and want the > answer for the following problem. I want to georeferencce an image . If I > dont have the shape file file for that image and If I can get the GCP's for > that image then which is the best way to georeference the image. Is it > possible to do that in arcview. Is there any simple and good extension > which I can download from internet. thanks in advance > > rupesh K mamidi From aborruso at spaziogis.it Tue Nov 14 03:44:42 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Tue, 14 Nov 2000 12:44:42 +0100 Subject: PNG Support??? Message-ID: Dear users, What means Png support? The map created by mapserver will be *.PNG instead of *.GIF? Can I use png file for reference map and symbols (Point)? Thank you Andrea From imap at chesapeake.net Tue Nov 14 06:22:28 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 14 Nov 2000 09:22:28 -0500 Subject: PNG Support??? References: Message-ID: <3A114AA4.B5947972@chesapeake.net> PNG is Portable Network Graphic, one of the newer format newer graphic formats supported by GD in lieu of GIF. Yes, that would be the image format generated by mapserver. For further info, see http://www.boutell.com/gd Unisys holds the patent for GIF LZW compression... PNG is supported by the newer versions of MS Internet Explorer and NetScape Communicator and is legally unemcumbered.. To the best of my knowledge output of GIF or PNG is mutually excusive depending on the version of GD that you are compiling into mapserver. Note that some of the old web browsers will not display PNG images. Yes you can use PNG for reference map and symbols/markers, but this will take a bit of work on your part. Regards, Chris Stuber Silicon Mapping Solutions Inc (410)257-3187 aborruso at spaziogis.it wrote: > > Dear users, > What means Png support? The map created by mapserver will be *.PNG instead > of *.GIF? Can I use png file for reference map and symbols (Point)? > Thank you > > Andrea From b.veldkamp at zonnet.nl Tue Nov 14 07:38:36 2000 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Tue, 14 Nov 2000 15:38:36 GMT Subject: Having hard time adding layers with php Message-ID: <896c38bce4.8bce4896c3@zonnet.nl> Hi all, I have the feeling I'm missing something obvious. What I want to do is add certain layers from my mapfile, in PHP. This is what I have come up with, so far: $map = ms_newMapObj ("wm12.map"); $img = $map->draw(); $layer = $map->getLayerByName ("roads"); // printf ("%s\n", $layer->name); // It's there $layer->draw ($img); But PHP stops while doing this last statement, without giving any error messages. I have also tried setting $layer->status to MS_ON before calling $map->draw(), this doesn't work either: $map = ms_newMapObj ("wm12.map"); $layer = $map->getLayerByName ("roads"); $layer->status = MS_ON; // Now it's ON // Testing purpose: // $layer = $map->getLayerByName ("roads"); // printf ("%d\n", $layer->status); // Now it's OFF again $img = $map->draw(); Can anyone shed some light on this, I have a nightly build from a week ago and PHP 4.0.3pl1 Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From SDunning at nephrology.org Tue Nov 14 08:28:18 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Tue, 14 Nov 2000 10:28:18 -0600 Subject: Building dynamic maps using Perl or PHP Message-ID: Hello, I am running MapServer on a Windows NT platform, using the Microsoft Internet Information Server. I would like to build a customized application to allow my users some dynamic functionality when requesting a map to be displayed. I plan on storing information in an MS-SQL database, and retreiving the appropriate data at the submission of a user defined SQL Query. My thinking is that I should be able to connect to my database using either Perl or PHP, then pull in my data and join it to the chosen shapefile .dbf, build my mapfile, and display the map for the user. Does this sound reasonable? Which is the better laguage to use: Perl or PHP (or another)? Are there any recommended resources available in addition to the Perl and PHP sites linked through MapServer's site? Does anyone have a good example of a similar application? Any insight is welcomed! Thank you , Stephan Dunning From steve.lime at dnr.state.mn.us Tue Nov 14 08:03:26 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 14 Nov 2000 10:03:26 -0600 Subject: MINSCALE/MAXSCALE and legend problems - FIXED! Message-ID: Ok. There have been several messages bouncing around the list lately regarding problems with setting mulltiple MINSCALE/MAXSCALE values in applications. There was also a bug report concerning legend building. Turns out the two are related. The MINSCALE/MAXSCALE values brought about a seg fault in certain instances. You only would see this if you were generating legend images as well since that's where the problem lies. The CVS contains corrected code and a patched version of maplegend.c for version 3.3.011 is attached. Just replace the old version and rebuild. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- A non-text attachment was scrubbed... Name: maplegend.c Type: application/octet-stream Size: 8897 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Nov 14 08:32:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 14 Nov 2000 10:32:47 -0600 Subject: city-locatting OK... next step! =) Message-ID: To have a browsable map you MUST set imgext to be the extent of the displayed map. The way you've got it set up now doesn't give you that information. MapServer certainly calculates it in building the image but since your just retrieving the image there's no way to get it back to you since you're not using templates. The solution is to calculate the extent in the client using a bit of javascript. This is not hard. Then extent in hand you can use the image in a normal mapserver form interface. Here's an example that does just that. http://www.dnr.state.mn.us/cgi-bin/mapserv3.3?imgxy=149.5+149.5&map=compass%2Fcompass.map&imgext=496873.437871+4989627.233203+503946.561551+4996691.064587&application=Recreation+Compass&layers=&zoom=2&mode=query&img.x=164&img.y=125 Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 11/10/00 10:48AM >>> Hi... OK, I've successfully used the [shpmidx|y] thing... But now, how can I use that to continue to browse trough the map? Why won't something like "???/mapserv?map=&mapxy=-43+-20&scale=4&img.x=200&img.y=400" work? Isn't defining a mapxy/scale pair the same as defining a mapext? they should be equivalent! (I'm almost understanding this thing. I hope I can contribute to the documentation, because this program rocks! :) ) -- Nicolau ________________________________________________________________________ Do You Yahoo!? Crie o seu e-mail gr?tis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br From mattk at softwaretechnology.com Tue Nov 14 08:37:39 2000 From: mattk at softwaretechnology.com (Matthew Krusemark) Date: Tue, 14 Nov 2000 08:37:39 -0800 Subject: PNG Support??? In-Reply-To: <3A114AA4.B5947972@chesapeake.net> Message-ID: I am also interested in updating my app to support PNG. Does anyone know of an easy fix to update the *.sym files to support the PNG format? Thank you in advance ... -matt -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of imap at chesapeake.net Sent: Tuesday, November 14, 2000 6:22 AM To: aborruso at spaziogis.it Cc: mapserver-users at lists.gis.umn.edu Subject: Re: PNG Support??? PNG is Portable Network Graphic, one of the newer format newer graphic formats supported by GD in lieu of GIF. Yes, that would be the image format generated by mapserver. For further info, see http://www.boutell.com/gd Unisys holds the patent for GIF LZW compression... PNG is supported by the newer versions of MS Internet Explorer and NetScape Communicator and is legally unemcumbered.. To the best of my knowledge output of GIF or PNG is mutually excusive depending on the version of GD that you are compiling into mapserver. Note that some of the old web browsers will not display PNG images. Yes you can use PNG for reference map and symbols/markers, but this will take a bit of work on your part. Regards, Chris Stuber Silicon Mapping Solutions Inc (410)257-3187 aborruso at spaziogis.it wrote: > > Dear users, > What means Png support? The map created by mapserver will be *.PNG instead > of *.GIF? Can I use png file for reference map and symbols (Point)? > Thank you > > Andrea From ksibson at matrix.net Tue Nov 14 08:37:04 2000 From: ksibson at matrix.net (Keith Sibson) Date: Tue, 14 Nov 2000 16:37:04 +0000 (GMT) Subject: How is scale computed? Message-ID: Hi, I can't find anything in the archives about this so here goes... I'm using map server to display a very large amount of data points, so what I'm doing is to automatically generate shapefiles across several layers. The top level layers are heavily clustered and the lowest layer not clustered at all. Since these layers show the same data, their display is mutually exclusive. In this way, I intend only 50-100 points to be visible at any one time. This can be done by setting an appropriate MINSCALE and MAXSCALE for each of them in the map file. The problem is that I need to automatically determine MINSCALE and MAXSCALE. If I know the initial map extent and the zoom factor per level of detail, how do I go about computing the scales at which the layer divisions occur. Assuming that the layer division will be at the mid point between zoom levels. I'm using DD as my shapefile metric, and I understand that scale is affected by this. However, I'm willing to tolerate even a rough approximation here. Thanks for your help, Keith. From Matt.Wilkie at gov.yk.ca Tue Nov 14 09:21:34 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 14 Nov 2000 09:21:34 -0800 Subject: PNG Support??? Message-ID: <6DD7370C9452D31192A10008C75D0753073EB2F9@raptor.gov.yk.ca> > Yes you can use PNG for reference map and symbols/markers, but > this will take a bit of work on your part. The 'bit of work' is very simple. 1) Download gif2png for your platform from: http://www.tuxedo.org/~esr/gif2png/ You can batch convert all .GIFs in a directory tree with a single command. 1) Then change any .GIF references in your .MAP and .HTML files to .PNG. Shouldn't take more than ten or fifteen minutes. cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From kenboss at dilbert.dnr.state.mn.us Tue Nov 14 09:19:44 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 14 Nov 2000 11:19:44 -0600 (CST) Subject: How is scale computed? Message-ID: <200011141719.LAA02616@philbert.dnr.state.mn.us> There may be an easier way to accomplish what you're after. If there is an attribute in your shapefile that can be used to determine priority for display, then you can use the sortshp utility from your mapserver distribution to physically sort the shapefile on that attribute. Use the output from that process as the DATA element in your layer, and set MAXFEATURES for the layer to an appropriate number. The number of shapes drawn for that layer will then not be allowed to exceed the MAXFEATURES setting, while the sorting ensures that only the most important shapes are drawn when the users are zoomed out at smaller scales. Hope this helps. Otherwise, Steve did recently submit a post concerning scale calculation. It's at http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/m sg00138.html Ken Boss > X-Authentication-Warning: green.edi.uk.mids.org: ksibson owned process doing -bs > Date: Tue, 14 Nov 2000 16:37:04 +0000 (GMT) > From: Keith Sibson > X-Sender: ksibson at green > To: mapserver-users at lists.gis.umn.edu > Subject: How is scale computed? > MIME-Version: 1.0 > > > Hi, > > I can't find anything in the archives about this so here goes... > > I'm using map server to display a very large amount of data points, so > what I'm doing is to automatically generate shapefiles across several > layers. The top level layers are heavily clustered and the lowest layer > not clustered at all. Since these layers show the same data, their > display is mutually exclusive. In this way, I intend only 50-100 points to > be visible at any one time. This can be done by setting an appropriate > MINSCALE and MAXSCALE for each of them in the map file. > > The problem is that I need to automatically determine MINSCALE and > MAXSCALE. > > If I know the initial map extent and the zoom factor per level of detail, > how do I go about computing the scales at which the layer divisions occur. > Assuming that the layer division will be at the mid point between zoom > levels. > > I'm using DD as my shapefile metric, and I understand that scale is > affected by this. However, I'm willing to tolerate even a rough > approximation here. > > Thanks for your help, > > Keith. > > From assefa at dmsolutions.on.ca Tue Nov 14 10:44:36 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Tue, 14 Nov 2000 13:44:36 -0500 Subject: Having hard time adding layers with php References: <896c38bce4.8bce4896c3@zonnet.nl> Message-ID: <3A118814.EB48914E@dmsolutions.on.ca> Hi There, You should use $layer->set("status", MS_ON) to set the layer on. Here is a simple example of something similar to your example. $gpoMap = ms_newMapObj("gmap75.map"); $img = $gpoMap->draw(); $layer = $gpoMap->getLayerByName ("park"); $layer->set("status", MS_ON); $layer->draw($img); $url = $img->saveWebImage(0, 0); printf("\n", $url, $gpoMap->width, $gpoMap->height); hope it helps, Berend Veldkamp wrote: > Hi all, > I have the feeling I'm missing something obvious. What I want to do is > add certain layers from my mapfile, in PHP. This is what I have come up > with, so far: > > $map = ms_newMapObj ("wm12.map"); > $img = $map->draw(); > $layer = $map->getLayerByName ("roads"); > // printf ("%s\n", $layer->name); // It's there > $layer->draw ($img); > > But PHP stops while doing this last statement, without giving any error > messages. > I have also tried setting $layer->status to MS_ON before calling > $map->draw(), this doesn't work either: > > $map = ms_newMapObj ("wm12.map"); > $layer = $map->getLayerByName ("roads"); > $layer->status = MS_ON; // Now it's ON > > // Testing purpose: > // $layer = $map->getLayerByName ("roads"); > // printf ("%d\n", $layer->status); // Now it's OFF again > > $img = $map->draw(); > > Can anyone shed some light on this, I have a nightly build from a week > ago and PHP 4.0.3pl1 > > Berend > > -- > _________________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl/ > _________________________________________________ -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.on.ca http://www.dmsolutions.on.ca Phone: (613) 565-5056 ---------------------------------------------------------------- From assefa at dmsolutions.on.ca Tue Nov 14 11:22:37 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Tue, 14 Nov 2000 14:22:37 -0500 Subject: How is scale computed? References: <200011141719.LAA02616@philbert.dnr.state.mn.us> Message-ID: <3A1190FD.9557B7D5@dmsolutions.on.ca> Just a note related to MIN/MAXSCALE on php/mapscript : For those using php/mapscript, there is a function ms_getscale that is available. I find it personnaly very usufull to quickly find the scale values before setting the MIN/MAXSCALE in the map file. $dfScale = ms_getscale($gpoMap->extent, $gpoMap->width, $gpoMap->height, $gpoMap->units); Later, kenboss wrote: > There may be an easier way to accomplish what you're after. If there is an > attribute in your shapefile that can be used to determine priority for display, > then you can use the sortshp utility from your mapserver distribution to > physically sort the shapefile on that attribute. Use the output from that > process as the DATA element in your layer, and set MAXFEATURES for the layer to > an appropriate number. The number of shapes drawn for that layer will then not > be allowed to exceed the MAXFEATURES setting, while the sorting ensures that > only the most important shapes are drawn when the users are zoomed out at > smaller scales. > > Hope this helps. Otherwise, Steve did recently submit a post concerning scale > calculation. It's at > http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/m > sg00138.html > > Ken Boss > > > X-Authentication-Warning: green.edi.uk.mids.org: ksibson owned process doing > -bs > > Date: Tue, 14 Nov 2000 16:37:04 +0000 (GMT) > > From: Keith Sibson > > X-Sender: ksibson at green > > To: mapserver-users at lists.gis.umn.edu > > Subject: How is scale computed? > > MIME-Version: 1.0 > > > > > > Hi, > > > > I can't find anything in the archives about this so here goes... > > > > I'm using map server to display a very large amount of data points, so > > what I'm doing is to automatically generate shapefiles across several > > layers. The top level layers are heavily clustered and the lowest layer > > not clustered at all. Since these layers show the same data, their > > display is mutually exclusive. In this way, I intend only 50-100 points to > > be visible at any one time. This can be done by setting an appropriate > > MINSCALE and MAXSCALE for each of them in the map file. > > > > The problem is that I need to automatically determine MINSCALE and > > MAXSCALE. > > > > If I know the initial map extent and the zoom factor per level of detail, > > how do I go about computing the scales at which the layer divisions occur. > > Assuming that the layer division will be at the mid point between zoom > > levels. > > > > I'm using DD as my shapefile metric, and I understand that scale is > > affected by this. However, I'm willing to tolerate even a rough > > approximation here. > > > > Thanks for your help, > > > > Keith. > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.on.ca http://www.dmsolutions.on.ca Phone: (613) 565-5056 ---------------------------------------------------------------- From benlewis1 at hotmail.com Tue Nov 14 12:17:50 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Tue, 14 Nov 2000 20:17:50 GMT Subject: ESRI business partners Message-ID: I just spoke to an ESRI rep at the Penn State Web GIS Conference about this. The idea as I understood it is that anyone can register their data on the geography network for download. To make data available live, that is for pan and zoom, query, etc, you need to have a server that is OGC compliant. He said that server did not have to be ArcIMS. Stephen Lime mentioned some time ago that OGC compliance was in works for MapServer. That in my view is one of the most important development areas, and will really put MapServer in the game in a major way. Any ideas on the amount of work that would take? I would guess that one problem will be getting the OGC test bed specs as they are only available to those who are members... Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA >From: "Michael Anderson" >To: cnielsen at co.tillamook.or.us >CC: mapserver-users at lists.gis.umn.edu >Subject: Re: ESRI business partners >Date: Mon, 06 Nov 2000 14:47:21 GMT > >I was considering becoming a business partner and approached the local ESRI >representative to explain what I am doing. I asked what ESRI's ideas were >on >open source in general and mapserver specifically. With respect to >mapserver, I asked if mapserver web sites would be allowed to join the >Geography Network. The response was that he couldn't answers any of the >questions. That was in August and I haven't been able to get a response to >my emails or calls since. I would be interested to hear from anyone else >who >has approached them about it. > >Mike > > >>From: "Chad Nielsen" >>To: "Mapserver Info" >>Subject: ESRI business partners >>Date: Thu, 2 Nov 2000 14:01:36 -0800 >> >>I know of a couple ESRI business partners that friends of mine work for >>that >>have expressed interest in mapserver. I'm wondering how ESRI would respond >>to one of their business partners taking on mapserver (or even open source >>technology in general) in place of ESRI technology. Are there any ESRI >>business partners in the group utilizing mapserver? Anybody heard of this >>happening? >> >>~Chad >> >>Chad M. Nielsen, GIS Programmer/Analyst >>Tillamook County Performance Partnership (TCPP) >>Tillamook Coastal Watershed Resource Center (TCWRC) >> >> GIS: http://gisweb.co.tillamook.or.us >> TCPP: >>http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm >>TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ >> >> > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From morissette at dmsolutions.ca Tue Nov 14 12:38:34 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 14 Nov 2000 15:38:34 -0500 Subject: Building dynamic maps using Perl or PHP References: Message-ID: <3A11A2CA.179C3FFD@dmsolutions.ca> Stephan Dunning wrote: > > My thinking is that I should be able to connect to my database using either > Perl or PHP, then pull in my data and join it to the chosen shapefile .dbf, > build my mapfile, and display the map for the user. Does this sound > reasonable? > Which is the better laguage to use: Perl or PHP (or another)? > Are there any recommended resources available in addition to the Perl and > PHP sites linked through MapServer's site? Does anyone have a good example > of a similar application? Stephan, That approach has been used by us and by a couple of MapScript users and works very well. Note that you won't be able to 'join' your created DBF table to an existing shapefile... you'll have to copy the .shp/.shx and create a new dbf for it with a temporary (unique) filename (you could use a logical link for the .shp/.shx on Unix). Unfortunately I'm not aware of any sample application available in source code that does that. However, there is a sample script distributed with the MapServer source that shows how to create shapefiles: mapserver/mapscript/php3/examples/test_writeshape.phtml In our case we used PHP (obviously!). Since you're on NT I'm not sure if Perl is an option for you. I don't think we've had a report of succesfull use of Perl MapScript on NT yet? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ddnebert at fgdc.gov Tue Nov 14 12:40:04 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 14 Nov 2000 15:40:04 -0500 Subject: ESRI business partners References: Message-ID: <3A11A324.835D8AD6@fgdc.gov> owner-mapserver-users at lists.gis.umn.edu wrote: > > I just spoke to an ESRI rep at the Penn State Web GIS Conference about > this. > The idea as I understood it is that anyone can register their data on the > geography network for download. To make data available live, that is for > pan and zoom, query, etc, you need to have a server that is OGC compliant. > He said that server did not have to be ArcIMS. > > Stephen Lime mentioned some time ago that OGC compliance was in works for > MapServer. That in my view is one of the most important development areas, > and will really put MapServer in the game in a major way. Any ideas on the > amount of work that would take? I would guess that one problem will be > getting the OGC test bed specs as they are only available to those who are > members... > No, no: OpenGIS specifications are open, public specifications available for direct and free download. They are only 'closed' when still under development by Consortium members. They are published to the website at http://www.opengis.org/techno/specs.htm (See section on Implementation Specs). Web Mapping Service (WMS 1.0) was published almost a year ago and is the defacto target for consideration. Social Change Online, also members of this list, programmed a WMS wrapper under contract to us (FGDC) so our mapserver could be one of many WMS targets within the Web Mapping Testbed activity. The WMS wrapper is written in perl but is not yet packaged in a way I could tell you where all the parts must go. We run it both in Apache/Linux and IIS/Windows environments. It would be ideal if mapserver could be modified to respond directly to WMS requests sometime soon, though the wrapper is available for interim use. I don't think an integrated WMS service would be hard but it'd take a little architectural planning. Doug Nebert FGDC > Ben Lewis > Advanced Technology Solutions, Inc. > Lancaster, PA > -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From morissette at dmsolutions.ca Tue Nov 14 12:47:55 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 14 Nov 2000 15:47:55 -0500 Subject: PHP MapScript - where to start? References: Message-ID: <3A11A4FB.F2865534@dmsolutions.ca> aborruso at spaziogis.it wrote: > > Now all is ok. > How can I start to learn php_mapscript? Is there a tutorial? Is there some > examples? > I'm very confused. > Andrea, I'm sure there are several good PHP tutorials on the web (start by looking on the http://php.net/ web site)... I also found a couple of days ago that there was a PHP HOWTO at: http://www.linuxdoc.org/HOWTO/PHP-HOWTO.html Also, there are a couple of simple examples of use of PHP MapScript in the MapServer source distribution in mapserver/mapscript/php3/examples. Finally, you can download the source code and data for our GMap demo application (http://www2.dmsolutions.on.ca/gmap/gmap75.phtml) from http://www2.dmsolutions.on.ca/mapserver/dl/ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Nov 14 13:07:37 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 14 Nov 2000 16:07:37 -0500 Subject: point query and new layer References: <20001113194150.24277.qmail@web10708.mail.yahoo.com> Message-ID: <3A11A999.743466F4@dmsolutions.ca> Sven Kroemeke wrote: > > 1) the point query problem: > I read many questions about it, but is it solved? Sven, I'm not sure which problem you're talking about... I guess I'll let someone who knows about it get back to you. > > 2) how can I create a new shape? (php, please) See mapserver/mapscript/php3/test_writeshape.phtml in the mapserver source distribution. > > 2)How is the php mapscript syntax? > (this question is related to the two others) > > I never used objects in php before, so I just took some > examples and used them, and it seemed to work. The > variables are set! Most of the examples are Perl, so I > used $layer->set(property,value); > but also $layer->property=value; seemed to work! > Good question! I think this is worth a clarification. In PHP, you should be able to set object properties using $layer->property=value. However, since PHP MapScript is a wrapper on top of MapServer structures, setting properties this way does not propagate to the C structures and has no effect (there's no way to set a callback on a property change internally). That's why we added the set() method on all classes. > Further more I found that $layer->getclass() is not documented > in mapscript(PHP) (maybe more functions??)! You're right... $layer->getClass(int classIndex) is not documented... we'll add it. > To set an annotation I found a description how to annotate > a layer using the property (annotate), but it doesn't work > with the set(,) function, because it doesn't seem to exist!? > There may have been some changes with respect to that between version 3.3.011 and the current version (not sure?). For sure layerObj does not have an 'annotate' member in the latest version of MapServer. > 3) How can I change properties in the mapfile on the fly? > Due to the problems above I also couldn't change existing > layers, class properties ... the variables are set but > nothing changes on the map - I tried size (of a symbol), > color and outlinecolor but only outlinecolor works! > > $old_class->set("size",40); > $old_class->set("color",$map->addColor(218,218,218)); > //DOESN'T WORK?? > $old_class->set("outlinecolor",$map->addColor(218,218,218)); > //WORKS!! > $layer->draw($img); // draw layer > The code above should work... assuming that you got $old_class using $layer->getClass(). Perhaps with the whole script we could figure what's wrong. > I have Mandrake Linux 7.1 running Mapserver Version (3.3.011) > PHP version (3.0.13). Thanks in advance!! > Note that there have been several fixes and new members/methods added in PHP MapScript since version 3.3.011, so it might be a good idea to get a more recent version... the latest source is quite stable, so it would be safe to use it. Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Nov 14 13:20:58 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 14 Nov 2000 15:20:58 -0600 Subject: ESRI business partners Message-ID: The university if a OGC member so we have access to the testbed specs. It shouldn't take that much time to write WMT wrappers using mapscript, just need to find that time. The amount of compliance is also an issue. For example, using mapscript it is possible to write GML so vector data output is a possibility. Don't know whether it's worth the effort or not... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ben Lewis" 11/14/00 02:17PM >>> I just spoke to an ESRI rep at the Penn State Web GIS Conference about this. The idea as I understood it is that anyone can register their data on the geography network for download. To make data available live, that is for pan and zoom, query, etc, you need to have a server that is OGC compliant. He said that server did not have to be ArcIMS. Stephen Lime mentioned some time ago that OGC compliance was in works for MapServer. That in my view is one of the most important development areas, and will really put MapServer in the game in a major way. Any ideas on the amount of work that would take? I would guess that one problem will be getting the OGC test bed specs as they are only available to those who are members... Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA >From: "Michael Anderson" >To: cnielsen at co.tillamook.or.us >CC: mapserver-users at lists.gis.umn.edu >Subject: Re: ESRI business partners >Date: Mon, 06 Nov 2000 14:47:21 GMT > >I was considering becoming a business partner and approached the local ESRI >representative to explain what I am doing. I asked what ESRI's ideas were >on >open source in general and mapserver specifically. With respect to >mapserver, I asked if mapserver web sites would be allowed to join the >Geography Network. The response was that he couldn't answers any of the >questions. That was in August and I haven't been able to get a response to >my emails or calls since. I would be interested to hear from anyone else >who >has approached them about it. > >Mike > > >>From: "Chad Nielsen" >>To: "Mapserver Info" >>Subject: ESRI business partners >>Date: Thu, 2 Nov 2000 14:01:36 -0800 >> >>I know of a couple ESRI business partners that friends of mine work for >>that >>have expressed interest in mapserver. I'm wondering how ESRI would respond >>to one of their business partners taking on mapserver (or even open source >>technology in general) in place of ESRI technology. Are there any ESRI >>business partners in the group utilizing mapserver? Anybody heard of this >>happening? >> >>~Chad >> >>Chad M. Nielsen, GIS Programmer/Analyst >>Tillamook County Performance Partnership (TCPP) >>Tillamook Coastal Watershed Resource Center (TCWRC) >> >> GIS: http://gisweb.co.tillamook.or.us >> TCPP: >>http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm >>TCWRC: http://www.tbcc.cc.or.us/~tcwrc/ >> >> > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From morissette at dmsolutions.ca Tue Nov 14 13:38:01 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 14 Nov 2000 16:38:01 -0500 Subject: ESRI business partners References: <3A11A324.835D8AD6@fgdc.gov> Message-ID: <3A11B0B9.90E849FB@dmsolutions.ca> Doug Nebert wrote: > > Web Mapping Service (WMS 1.0) was published almost a year ago and is > the defacto target for consideration. Social Change Online, also members > of this list, programmed a WMS wrapper under contract to us (FGDC) so > our mapserver could be one of many WMS targets within the Web Mapping > Testbed activity. The WMS wrapper is written in perl but is not yet > packaged in a way I could tell you where all the parts must go. We run > it both in Apache/Linux and IIS/Windows environments. > > It would be ideal if mapserver could be modified to respond directly to > WMS requests sometime soon, though the wrapper is available for interim > use. I don't think an integrated WMS service would be hard but it'd > take a little architectural planning. > Doug, Ben, I agree completely that we need OGC WMS compliance for MapServer... given its open source nature, it would be a perfect test platform for the WMT working group. I think this was mentioned on the list a few weeks ago, but just in case... we have put together a proposal for a project in which one of the outcomes would be a module built directly on top of MapServer (in C) and that would allow it to operate both as a satellite and as a cascading server (based on WMT 1.0 spec). The plan is that it would then become an officially supported part of MapServer and hopefully will follow the evolution of the WMT activity. We should know in the next month if this project will move ahead... we'll keep the list posted as soon as we know. BTW, are there plans to package and release your WMS wrapper at some point in the future? Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From tpoindex at nyx.net Tue Nov 14 14:24:01 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Tue, 14 Nov 2000 15:24:01 -0700 Subject: Building dynamic maps using Perl or PHP In-Reply-To: <3A11A2CA.179C3FFD@dmsolutions.ca>; from Daniel Morissette on Tue, Nov 14, 2000 at 03:38:34PM -0500 References: <3A11A2CA.179C3FFD@dmsolutions.ca> Message-ID: <20001114152401.62439@nyx.net> On Tue, Nov 14, 2000 at 03:38:34PM -0500, Daniel Morissette wrote: > Stephan Dunning wrote: > > > > My thinking is that I should be able to connect to my database using either > > Perl or PHP, then pull in my data and join it to the chosen shapefile .dbf, > > build my mapfile, and display the map for the user. Does this sound > > reasonable? > > Which is the better laguage to use: Perl or PHP (or another)? I've been working on Tcl interfaces for mapscript, based on prior work by Peter deVoil. The primary sample application is a mapfile viewer (again, mostly Peter's work), which runs standalone, not using a web server or the mapscript cgi program to generate images. One problem with the mapscript interface is not being able to effectively clear the label cache, which is certainly a problem when trying to generate more than one image at a time. I've opened up a little more of map.h and mapshape.h for Swig, and have re-implemented (now as %addmethods) a mapscript function to free the label cache. I've submitted patches to Stephen based on the CVS snapshot; hopefully they'll make it into 3.3.012 RSN. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From michael.kleih at jrc.it Wed Nov 15 01:45:20 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Wed, 15 Nov 2000 09:45:20 +0000 Subject: ESRI business partners References: Message-ID: <3A125B30.25BF9465@jrc.it> Ben Lewis wrote: > I just spoke to an ESRI rep at the Penn State Web GIS Conference about this. > The idea as I understood it is that anyone can register their data on the > geography network for download. To make data available live, that is for > pan and zoom, query, etc, you need to have a server that is OGC compliant. > He said that server did not have to be ArcIMS. > > Stephen Lime mentioned some time ago that OGC compliance was in works for > MapServer. That in my view is one of the most important development areas, > and will really put MapServer in the game in a major way. Any ideas on the > amount of work that would take? I would guess that one problem will be > getting the OGC test bed specs as they are only available to those who are > members... > We actually are already using MapServer for creating OGC Web Mapping Testbed compatible layers, have a look at out client: http://opengis.jrc.it You can a also upload your ArcView Shapefiles through http://soda.jrc.it MapServer will then make them OGC WMT compatible and they will be available in opengis.jrc.it. If you are intersted in the OGC WMT 1.0 specifications (2.0 is still under developement) go to http://www.opengis.org/techno/rfc10info.htm Michael From berend.veldkamp at aris.nl Wed Nov 15 01:14:58 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Wed, 15 Nov 2000 10:14:58 +0100 Subject: Having hard time adding layers with php References: <896c38bce4.8bce4896c3@zonnet.nl> <3A118814.EB48914E@dmsolutions.on.ca> Message-ID: <3A125411.FE251F2B@aris.nl> Assefa, Thanks for the reply, unfortunately it didn't work for me, but it did point me to a solution. I do: $layer->set("status", MS_ON); $img = $map->draw(); btw Can anyone tell me the difference between $layer->set("status", MS_ON); and $layer->status = MS_ON; According to the docs 'status' isn't read-only so it should work either way? Berend Assefa Yewondwossen wrote: > Hi There, > > You should use $layer->set("status", MS_ON) to set the layer on. > > Here is a simple example of something similar to your example. > > $gpoMap = ms_newMapObj("gmap75.map"); > $img = $gpoMap->draw(); > > $layer = $gpoMap->getLayerByName ("park"); > $layer->set("status", MS_ON); > $layer->draw($img); > > $url = $img->saveWebImage(0, 0); > printf("\n", $url, $gpoMap->width, > $gpoMap->height); > > hope it helps, > > Berend Veldkamp wrote: > > > Hi all, > > I have the feeling I'm missing something obvious. What I want to do is > > add certain layers from my mapfile, in PHP. This is what I have come up > > with, so far: > > > > $map = ms_newMapObj ("wm12.map"); > > $img = $map->draw(); > > $layer = $map->getLayerByName ("roads"); > > // printf ("%s\n", $layer->name); // It's there > > $layer->draw ($img); > > > > But PHP stops while doing this last statement, without giving any error > > messages. > > I have also tried setting $layer->status to MS_ON before calling > > $map->draw(), this doesn't work either: > > > > $map = ms_newMapObj ("wm12.map"); > > $layer = $map->getLayerByName ("roads"); > > $layer->status = MS_ON; // Now it's ON > > > > // Testing purpose: > > // $layer = $map->getLayerByName ("roads"); > > // printf ("%d\n", $layer->status); // Now it's OFF again > > > > $img = $map->draw(); > > > > Can anyone shed some light on this, I have a nightly build from a week > > ago and PHP 4.0.3pl1 > > > > Berend > > > > -- > > _________________________________________________ > > > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > > tel. +31 30 2769180 - fax. +31 30 2733578 > > URL: http://www.aris.nl/ > > _________________________________________________ > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.on.ca > http://www.dmsolutions.on.ca > > Phone: (613) 565-5056 > ---------------------------------------------------------------- -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From morissette at dmsolutions.ca Wed Nov 15 05:17:04 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 15 Nov 2000 08:17:04 -0500 Subject: Having hard time adding layers with php References: <896c38bce4.8bce4896c3@zonnet.nl> <3A118814.EB48914E@dmsolutions.on.ca> <3A125411.FE251F2B@aris.nl> Message-ID: <3A128CD0.34FA2283@dmsolutions.ca> Berend Veldkamp wrote: > > btw Can anyone tell me the difference between $layer->set("status", MS_ON); > and $layer->status = MS_ON; According to the docs 'status' isn't read-only so > it should work either way? > With objects in PHP, you should be able to set object properties using $layer->property=value. However, since PHP MapScript is a wrapper on top of MapServer C structures, setting properties this way does not propagate to the C structures and has no effect (there's no way to set a callback on a property change internally). That's why there are set() method on all classes and they should be used when setting properties. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From dennis at avenza.com Wed Nov 15 06:04:06 2000 From: dennis at avenza.com (Dennis Christopher) Date: Wed, 15 Nov 2000 10:04:06 -0400 Subject: getting attributes and matching them Message-ID: <3A1297CF.B473FD56@avenza.com> Having reviewed some of the map server examples that use queries, (including a QUERYMAPOBJECT), I am still unclear on whether the following is supposed to be doable in map server and if so, how: Suppose I have a dialog area in my html form and in it the user can see the attributes for the (current) layer and can construct a string like " Michael, I checked out your client and it is very impressive. Is there a place to go for the background on the project? Is it open source? Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA >From: Michael Kleih >To: Ben Lewis >CC: m_anderson14 at hotmail.com, mapserver-users at lists.gis.umn.edu >Subject: Re: ESRI business partners >Date: Wed, 15 Nov 2000 09:45:20 +0000 > > > >Ben Lewis wrote: > > > I just spoke to an ESRI rep at the Penn State Web GIS Conference about >this. > > The idea as I understood it is that anyone can register their data on >the > > geography network for download. To make data available live, that is >for > > pan and zoom, query, etc, you need to have a server that is OGC >compliant. > > He said that server did not have to be ArcIMS. > > > > Stephen Lime mentioned some time ago that OGC compliance was in works >for > > MapServer. That in my view is one of the most important development >areas, > > and will really put MapServer in the game in a major way. Any ideas on >the > > amount of work that would take? I would guess that one problem will be > > getting the OGC test bed specs as they are only available to those who >are > > members... > > > >We actually are already using MapServer for creating OGC Web Mapping >Testbed >compatible layers, have a look at out client: > >http://opengis.jrc.it > >You can a also upload your ArcView Shapefiles through > >http://soda.jrc.it > >MapServer will then make them OGC WMT compatible and they will be >available in opengis.jrc.it. > >If you are intersted in the OGC WMT 1.0 specifications (2.0 is still under >developement) >go to > >http://www.opengis.org/techno/rfc10info.htm > >Michael > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From mi.ro at iol.it Wed Nov 15 07:41:17 2000 From: mi.ro at iol.it (Roberto Micarelli) Date: Wed, 15 Nov 2000 16:41:17 +0100 Subject: Building dynamic maps using Perl or PHP References: <3A11A2CA.179C3FFD@dmsolutions.ca> Message-ID: <3A12AE9C.C56237BA@iol.it> Daniel Morissette wrote: >... > In our case we used PHP (obviously!). Since you're on NT I'm not sure > if Perl is an option for you. I don't think we've had a report of > succesfull use of Perl MapScript on NT yet? I've heard of PHP available for IIS too. From benlewis1 at hotmail.com Wed Nov 15 07:57:02 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Wed, 15 Nov 2000 15:57:02 GMT Subject: image transparency Message-ID: MapServer users, Is there a way to specify a pixel value for transparency? I have images with null value borders and would like the images to appear seamless so I would like to specify 0 0 0 or perhaps 255 255 255 as transparent. BTW is there any way to tweak contrast/brightness? Thank you. Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From steve.lime at dnr.state.mn.us Wed Nov 15 08:42:14 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 15 Nov 2000 10:42:14 -0600 Subject: image transparency Message-ID: Yup, use the OFFSITE parameter. It takes as a value the color (index value) you wish to be transparent. So, OFFSITE 0 makes color 0 in the image transparent and so on. No, there is no way to do any image pre-processing at the moment. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ben Lewis" 11/15/00 09:57AM >>> MapServer users, Is there a way to specify a pixel value for transparency? I have images with null value borders and would like the images to appear seamless so I would like to specify 0 0 0 or perhaps 255 255 255 as transparent. BTW is there any way to tweak contrast/brightness? Thank you. Ben Lewis Advanced Technology Solutions, Inc. Lancaster, PA _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From michael.kleih at jrc.it Wed Nov 15 10:28:03 2000 From: michael.kleih at jrc.it (Michael Kleih) Date: Wed, 15 Nov 2000 18:28:03 +0000 Subject: ESRI business partners References: Message-ID: <3A12D5B3.BFB26A77@jrc.it> Stephen Lime wrote: > Michael: Very nice. Could you ellaborate on the role of MapServer in your project. > Just curious... Thanks. > MapServer is involved in our SODA server, http://soda.jrc.it. It is a 'community server' based on the GIST software (http://gist.jrc.it), developed at our institute. What this software does, is creating an easy to configure server, which allows user registration. Once you are registered you have the possibility to upload your information/ data on it to exchange it with other users. In the case of SODA what can be uploaded are 4 types of information: -ArcView Shapefiles (which then will be interfaced with MapServer) -georeferenced images -annoucement of a WMT-compatible layer, that was interfaced by the user -folders. The geographic data is ordered hierarchically and every user can create a node in this hierarchy, representing a thematic category. Once the data is uploaded to SODA it will not only be WMT compatible, but it will also appear in our client at http://opengis.jrc.it To come to the part where MapServer is involved: Once you have filled in the forms for uploading the ArcView Shapefiles a MapFile is created and saved on disc. These files can also be accessed through another system, opengis.jrc.it, on which there is a PERL-script and which uses the MapServer extension to output a GIF-image to the JAVA-applet. To see which data-layers are available opengis.jrc.it communicates with SODA. (Try it out registering on SODA and uploading some shapefile if you want) Michael __________________________________ Michael Kleih Centro Comune di Ricerca-JRC Commissione Europea Via Fermi 1 TP 270 Tel. 0039/0332785039 __________________________________ From m_anderson14 at hotmail.com Wed Nov 15 10:47:43 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Wed, 15 Nov 2000 18:47:43 GMT Subject: image transparency Message-ID: If you use MapScript from Python you can use the Python Imaging Library (http://www.pythonware.com/products/pil)to do quite a bit of image processing. I don't know, but would assume Perl has something similiar. Mike Michael Anderson Spatial Information Technologies, Inc. >From: "Stephen Lime" >To: >CC: >Subject: Re: image transparency >Date: Wed, 15 Nov 2000 10:42:14 -0600 > >Yup, use the OFFSITE parameter. It takes as a value the color (index value) >you >wish to be transparent. So, OFFSITE 0 makes color 0 in the image >transparent and >so on. > >No, there is no way to do any image pre-processing at the moment. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> "Ben Lewis" 11/15/00 09:57AM >>> >MapServer users, >Is there a way to specify a pixel value for transparency? I have images >with null value borders and would like the images to appear seamless so I >would like to specify 0 0 0 or perhaps 255 255 255 as transparent. BTW is >there any way to tweak contrast/brightness? >Thank you. > > >Ben Lewis >Advanced Technology Solutions, Inc. >Lancaster, PA >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From b.veldkamp at zonnet.nl Thu Nov 16 04:01:36 2000 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 16 Nov 2000 12:01:36 GMT Subject: Wide line symbols Message-ID: <3b72736714.367143b727@zonnet.nl> List, There must be an easier way to do this: Draw a white line 8 pixels wide (or even wider) and a gray border (if I didn't make myself clear, see attached file). One way that works is: draw the same layer three times to do this, with the following symbols: # Right side of line style -4 0 0 -3 0 0 -2 0 0 -1 0 0 0 0 0 end # Left side of line style 4 0 0 3 0 0 2 0 0 1 0 0 end # Border type styled style -5 0 0 5 0 0 end I tried to create a symbol of 8 pixels wide, but this one seems to draw 8 pixels on one side of the line instead of centered. I found some messages in the archive that mentioned changes in the symbol thing, what's the status of this? Will it be possible to use (marker)symbols which aren't in the symbol file? And scaled line symbols? Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: Wideline.gif Type: image/gif Size: 923 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Thu Nov 16 05:54:59 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 16 Nov 2000 07:54:59 -0600 Subject: Wide line symbols Message-ID: There is, even in 3.3.xxx. In the older versions you had to use ellipse symbols (which are scalable) and draw the layer twice to achieve this. In the CVS code I've added a series of "overlay..." parameters (e.g. OVERLAYCOLOR, OVERLAYSIZE, OVERLAYMAXSIZE...) that allow you to stack 2 symbols- which should cover the vast majority of uses. You still need to use ellipse symbols. SYMBOL NAME 'circle' TYPE ELLIPSE FILLED POINTS 1 1 END END You can see the effect in this interface: http://maps.dnr.state.mn.us/landview/ Look a the roads layer. The mapfile can be viewed at: http://maps.dnr.state.mn.us/landview/view.map If multiple classes need overlay symbols AND those classes can intersect then the current algorithm breaks down. In that case you need to bust the single shapefile into single, class specific files. The only way around that is pre-sort the shapes based on class and adapt the code to deal with it. (comming soon) The CVS version also features the ability to define symbols within the mapfile. The example mapfile mentioned above also does that. For GIF/PNG symbols you can use the filename for the symbol (i.e. SYMBOL images/myimage.gif) and that will work too. That behavior is present in 3.3.011. Steve >>> "Berend Veldkamp" 11/16/00 06:01 AM >>> List, There must be an easier way to do this: Draw a white line 8 pixels wide (or even wider) and a gray border (if I didn't make myself clear, see attached file). One way that works is: draw the same layer three times to do this, with the following symbols: # Right side of line style -4 0 0 -3 0 0 -2 0 0 -1 0 0 0 0 0 end # Left side of line style 4 0 0 3 0 0 2 0 0 1 0 0 end # Border type styled style -5 0 0 5 0 0 end I tried to create a symbol of 8 pixels wide, but this one seems to draw 8 pixels on one side of the line instead of centered. I found some messages in the archive that mentioned changes in the symbol thing, what's the status of this? Will it be possible to use (marker)symbols which aren't in the symbol file? And scaled line symbols? 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 Thu Nov 16 06:40:41 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Thu, 16 Nov 2000 15:40:41 +0100 Subject: PHP DrawReferenceMap Message-ID: <3A13F1E9.7733A03E@aris.nl> Do I need something special to get DrawReferenceMap going in PHP? When I do $map->drawReferenceMap(); All I get is: Fatal error: MapServer Error in msDrawReferenceMap(): Unable to initialize image. in refmap.php on line 4 (Line 4 = $map->drawReferenceMap();) Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From morissette at dmsolutions.ca Thu Nov 16 07:32:39 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 16 Nov 2000 10:32:39 -0500 Subject: PHP DrawReferenceMap References: <3A13F1E9.7733A03E@aris.nl> Message-ID: <3A13FE17.294F8A61@dmsolutions.ca> Berend Veldkamp wrote: > > Do I need something special to get DrawReferenceMap going in PHP? When I > do > $map->drawReferenceMap(); > All I get is: > Fatal error: MapServer Error in msDrawReferenceMap(): Unable to > initialize image. in refmap.php on line 4 > > (Line 4 = $map->drawReferenceMap();) > You get this error when drawReferenceMap() fails to load the base REFERENCE map IMAGE. Make sure that the file specified for REFERENCE -> IMAGE in your .map file exists, and that it is in a format that your version of GD understands, i.e. GIF for GD < 1.6, PNG for later versions. (Could also be JPEG if you have GD 1.8 compiled with JPEG) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From b.veldkamp at zonnet.nl Thu Nov 16 08:31:33 2000 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 16 Nov 2000 16:31:33 GMT Subject: Wide line symbols Message-ID: <9c637a23ae.a23ae9c637@zonnet.nl> Thanks, that's fast... BTW 'landview' is pretty cool, Berend ----- Origineel Bericht ----- Van: "Stephen Lime" Datum: Donderdag 16 November 2000 14:54 Onderwerp: Re: Wide line symbols > There is, even in 3.3.xxx. In the older versions you had to use > ellipse symbols (which are scalable) and draw the layer twice to > achieve this. In the CVS code I've added a series of "overlay..." > parameters (e.g. OVERLAYCOLOR, OVERLAYSIZE, OVERLAYMAXSIZE...) > that allow you to stack 2 symbols- which should cover the vast > majority of uses. You still need to use ellipse symbols. > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED > POINTS 1 1 END > END > > You can see the effect in this interface: > > http://maps.dnr.state.mn.us/landview/ > > Look a the roads layer. The mapfile can be viewed at: > > http://maps.dnr.state.mn.us/landview/view.map > > If multiple classes need overlay symbols AND those classes can > intersect then the current algorithm breaks down. In that case you > need to bust the single shapefile into single, class specific > files. The only way around that is pre-sort the shapes based on > class and adapt the code to deal with it. (comming soon) > > The CVS version also features the ability to define symbols within > the mapfile. The example mapfile mentioned above also does that. > For GIF/PNG symbols you can use the filename for the symbol (i.e. > SYMBOL images/myimage.gif) and that will work too. That behavior > is present in 3.3.011. > > Steve > From b.veldkamp at zonnet.nl Thu Nov 16 08:34:25 2000 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 16 Nov 2000 16:34:25 GMT Subject: PHP DrawReferenceMap Message-ID: <9c063a0378.a03789c063@zonnet.nl> Everything seems OK, the image is there, I also tried using the full pathname. But still no go. Only the image needs to exist, not some kind of reference file, like ArcInfo uses, right? Berend Daniel Morissette wrote: > Berend Veldkamp wrote: > > > > Do I need something special to get DrawReferenceMap going in PHP? When I > > do > > $map->drawReferenceMap(); > > All I get is: > > Fatal error: MapServer Error in msDrawReferenceMap(): Unable to > > initialize image. in refmap.php on line 4 > > > > (Line 4 = $map->drawReferenceMap();) > > > > You get this error when drawReferenceMap() fails to load the base > REFERENCE map IMAGE. > > Make sure that the file specified for REFERENCE -> IMAGE in your .map > file exists, and that it is in a format that your version of GD > understands, i.e. GIF for GD < 1.6, PNG for later versions. (Could also > be JPEG if you have GD 1.8 compiled with JPEG) > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ From david.fawcett at moea.state.mn.us Sun Nov 19 17:35:48 2000 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Sun, 19 Nov 2000 19:35:48 -0600 Subject: Summary - NT Demo Problems with cached querymap Message-ID: In trying to get MapServer up and running on a Win32 machine at home, I installed Apache, ported some basic MapServer applications from UNIX, and installed the latest version of the Demo. I am running MapServer 3.3.011 on NT/Apache. First issue: When I downloaded the demo, ms_demo.tar.gz from http://mapserver.gis.umn.edu/dload.html, my NT machine trimmed the .gz off of the end of the filename. When I tried to extract it with WinZip, I got an error. If this happens to you, just add .gz back to the filename and it should unzip with no problems. Second issue: I set up the demo and an Itemquery example (case 3) from the Test Suite. Both applications ran on my machine, except that in the Demo, the cached querymap image crashed and in the test suite, the zoomed querymap crashed. Thanks to Perry Nacionales, I figured out what the problem is. MapServer apparently doesn't like any spaces in path names. When I installed Apache, I just went with the default path (c:\program files\apache group\apache\) because I knew that I wouldn't be using it as a real Web server. The best solution is to install your Web server much closer to the root (e.g. c:\apache\). If you need to keep spaces in your path, there are some work arounds. In the Demo, the problem shows up in the demo_footer file. mapserv.exe will take spaces if you replace them with a +. Here in line 7, there are two potential problems. The first one is the [map] variable. Even if you replace the spaces in the path set for the map variable in your demo_init file with +, (e.g. ), when you place [map] in a request as below, it crashes. To get around this, you could hard code the map path. src="/cgi-bin/mapserv.exe?map=[map]&queryfile=c:\program+files\apache+group\apache\htdocs\new_demo\DEMO[id].qy[get_layers]&mode=map&size=200+200"> When you set the path for the queryfile, you can replace the spaces with + as done above. David. David Fawcett MN Office of Environmental Assistance From steve.lime at dnr.state.mn.us Sun Nov 19 20:17:03 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 19 Nov 2000 22:17:03 -0600 Subject: Summary - NT Demo Problems with cached querymap Message-ID: Just to clarify. This is NOT directly a MapServer issue. URLs can't contain spaces or any number of special chars. A plus will work for spaces, as will %20. A full set of URL escape sequences can be found at: http://www.netspace.org/users/dwb/url-guide.html among other places. Steve >>> "Fawcett, David" 11/19/00 19:39 PM >>> In trying to get MapServer up and running on a Win32 machine at home, I installed Apache, ported some basic MapServer applications from UNIX, and installed the latest version of the Demo. I am running MapServer 3.3.011 on NT/Apache. First issue: When I downloaded the demo, ms_demo.tar.gz from http://mapserver.gis.umn.edu/dload.html, my NT machine trimmed the .gz off of the end of the filename. When I tried to extract it with WinZip, I got an error. If this happens to you, just add .gz back to the filename and it should unzip with no problems. Second issue: I set up the demo and an Itemquery example (case 3) from the Test Suite. Both applications ran on my machine, except that in the Demo, the cached querymap image crashed and in the test suite, the zoomed querymap crashed. Thanks to Perry Nacionales, I figured out what the problem is. MapServer apparently doesn't like any spaces in path names. When I installed Apache, I just went with the default path (c:\program files\apache group\apache\) because I knew that I wouldn't be using it as a real Web server. The best solution is to install your Web server much closer to the root (e.g. c:\apache\). If you need to keep spaces in your path, there are some work arounds. In the Demo, the problem shows up in the demo_footer file. mapserv.exe will take spaces if you replace them with a +. Herein line 7, there are two potential problems. The first one is the [map] variable. Even if you replace the spaces in the path set for the map variable in your demo_init file with +, (e.g. ), when you place [map] in a request as below, it crashes. To get around this, you could hard code the map path. src="/cgi-bin/mapserv.exe?map=[map]&queryfile=c:\program+files\apache+group\apache\htdocs\new_demo\DEMO[id].qy[get_layers]&mode=map&size=200+200"> When you set the path for the queryfile, you can replace the spaces with + as done above. David. David Fawcett MN Office of Environmental Assistance From fsvpss at eng.chula.ac.th Sun Nov 19 22:50:02 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Mon, 20 Nov 2000 13:50:02 +0700 Subject: ESRI business partners (OGC wrapper) Message-ID: <3A18C999.1FBE4B3E@eng.chula.ac.th> Hi, not quite sure if anybody told us that wrapper of MN-Mapserver for OGC Web Mapping Testbed is readily available at http://fgdclearhs.er.usgs.gov/wmswrapper.html Your 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 fsvpss at eng.chula.ac.th Sun Nov 19 23:52:38 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Mon, 20 Nov 2000 14:52:38 +0700 Subject: Landview application suite Message-ID: <3A18D845.B2432F44@eng.chula.ac.th> Dear Steve, I find that Landview is wonderful. It is half way to RAD. Could you please pack all modules into one and put it in 'utility' Thank you very much Your 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 berend.veldkamp at aris.nl Mon Nov 20 01:07:37 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Mon, 20 Nov 2000 10:07:37 +0100 Subject: PHP DrawReferenceMap References: <4.3.2.7.2.20001118183246.00aae2d0@pop3.zonnet.nl> Message-ID: <3A18E9D9.C76B0864@aris.nl> OK, it took some time, but here's what I found out: Both PHP and MapServer are compiled with GD 1.8, PHP is 4.03, MapServer is a nightly build from about a week ago. The PHP module is probably not what's wrong, I get the same error (msDrawReferenceMap(): GD library error. Unable to initialize image.) when I use standard mapserver. Any thoughts? Berend Berend Veldkamp wrote: > > > >Berend Veldkamp wrote: > > > > > > Everything seems OK, the image is there, I also tried using the full > > > pathname. But still no go. > > > > > > Only the image needs to exist, not some kind of reference file, like > > > ArcInfo uses, right? > > > > > > >No you don't need a reference file with the image. You specify its > >georef extents in the REFERENCE object in the .map file. > > > >Could you check using 'phpinfo()' if PHP is compiled with GD support, > >and if it is then make sure that it is the same version as the one that > >MapScript was compiled with. That should not be a problem if you're > >using the system GD for both. (BTW, what are your PHP, MapServer, and > >GD versions?) > > > >You could also try displaying your reference map using the mapserv > >CGI... at least then we would know if it's a problem in the low-level > >MapServer or a conflict somewhere in the PHP installation. > > > >Please let me know what you find and then we'll see what we can do. > >-- > >------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > http://www.dmsolutions.ca/ > >------------------------------------------------------------ > -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From andreag at crs4.it Mon Nov 20 02:21:10 2000 From: andreag at crs4.it (A. Giacomelli) Date: Mon, 20 Nov 2000 11:21:10 +0100 Subject: first steps and a basic question Message-ID: <3A18FB16.FF7A2B1A@crs4.it> hi all, I have just started to work with the package, and walking the first steps on the learning curve... working from the tutorial, I have prepared a simple map file. This gives no errors, but only generates a white (or IMAGECOLOR, anyway) image. ================================ NAME EX3 EXTENT 1409000 4294000 1505000 4577000 SIZE 300 400 SHAPEPATH "/opt/gislab/apache/htdocs/m2/data" UNITS meters WEB TEMPLATE m2.html IMAGEPATH "/opt/gislab/apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "towns" DATA towns STATUS DEFAULT TYPE POLYGON CLASS NAME "Towns" COLOR 255 0 128 OUTLINECOLOR 0 0 0 END END END ================================= for a cross-check, I have tried to use also another shapefile (with geographic coords, using -180/180 -90/90 as extent), which displays perfectly. I would assume the problem with the first dataset has something to do with the extent, but maybe I am missing some other basic issue... TIA for any suggestions, Regards, Andrea From david.fawcett at moea.state.mn.us Mon Nov 20 06:43:55 2000 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Mon, 20 Nov 2000 08:43:55 -0600 Subject: Summary - NT Demo Problems with cached querymap Message-ID: Steve, I didn't mean to imply that it was a bug in MapServer. The true cause is the poor practice of using the space character in directory names. Unfortunately for Win32 users, Windows does this for you. Because the issue came up in the Demo, I wanted to document it well, so newer users would understand that it was a problem with their directory naming conventions, and not their map or template syntax. David. David Fawcett MN Office of Environmental Assistance > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Sunday, November 19, 2000 10:17 PM > To: David.Fawcett at state.mn.us > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: Summary - NT Demo Problems with cached querymap > > Just to clarify. This is NOT directly a MapServer issue. URLs can't contain spaces or any number of special chars. A plus will work for spaces, as will %20. A full set of URL escape sequences can be found at: http://www.netspace.org/users/dwb/url-guide.html among other places. > > Steve > > >>> "Fawcett, David" 11/19/00 19:39 PM >>> > In trying to get MapServer up and running on a Win32 machine at home, I installed Apache, ported some basic MapServer applications from UNIX, and installed the latest version of the Demo. I am running MapServer 3.3.011 on NT/Apache. > > First issue: When I downloaded the demo, ms_demo.tar.gz from http://mapserver.gis.umn.edu/dload.html, my NT machine trimmed the .gz off of the end of the filename. When I tried to extract it with WinZip, I got an error. If this happens to you, just add .gz back to the filename and it should unzip with no problems. > > Second issue: I set up the demo and an Itemquery example (case 3) from the Test Suite. Both applications ran on my machine, except that in the Demo, the cached querymap image crashed and in the test suite, the zoomed querymap crashed. > > Thanks to Perry Nacionales, I figured out what the problem is. MapServer apparently doesn't like any spaces in path names. > > When I installed Apache, I just went with the default path (c:\program files\apache group\apache\) because I knew that I wouldn't be using it as a real Web server. The best solution is to install your Web server much closer to the root (e.g. c:\apache\). > > If you need to keep spaces in your path, there are some work arounds. > > In the Demo, the problem shows up in the demo_footer file. mapserv.exe will take spaces if you replace them with a +. > > Herein line 7, there are two potential problems. The first one is the [map] variable. Even if you replace the spaces in the path set for the map variable in your demo_init file with +, (e.g. ), when you place [map] in a request as below, it crashes. To get around this, you could hard code the map path. > > src="/cgi-bin/mapserv.exe?map=[map]&queryfile=c:\program+files\apache+group\apache\htdocs\new_demo\DEMO[id].qy[get_layers]&mode=map&size=200+200"> > > When you set the path for the queryfile, you can replace the spaces with + as done above. > > David. > > David Fawcett > MN Office of Environmental Assistance > > > > From teb at mallit.fr.umn.edu Mon Nov 20 06:54:19 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 20 Nov 2000 08:54:19 -0600 (CST) Subject: fwd: True Type Fonts in Mapserver Message-ID: <200011201454.IAA11012@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Brian Johnson" To: Subject: True Type Fonts in Mapserver Date: Fri, 17 Nov 2000 16:08:48 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal I have the mapserver program working with the default ./configure on my Slackware Linux machine Now I'm trying to get true type fonts to work I downloaded the Freetype 1.3.1 and ran the default ./configure But when I ran "make" it did some compiling and ended with make[1]: Entering directory `/freetype-1.3.1/test' gcc -c -I. -I/freetype-1.3.1/test/arch/unix/../.. -I.. -I/freetype-1.3.1/tes t/ar ch/unix/../../../lib -I/freetype-1.3.1/test/arch/unix/../../../lib/extend -g -O2 -Wall -pedantic -ansi -DX11 -DLOCALEDIR='"/usr/local/share/locale"' /freetype -1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c /freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:22: X11/Xlib.h: No suc h file or directory /freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:23: X11/Xutil.h: No su ch file or directory /freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:24: X11/cursorfont.h: No such file or directory make[1]: *** [gwin_x11.o] Error 1 make[1]: Leaving directory `/freetype-1.3.1/test' make: *** [tttest] Error 2 Since that looked like an error because I'm not running X windows - I tried ./configure --disable-x But when I ran make, it again did some compiling and ended with the same thing ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Mon Nov 20 09:42:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Nov 2000 11:42:44 -0600 Subject: getting attributes and matching them Message-ID: These type of XBASE operations are really best handled with MapScript and the applicable .dbf extension. That being said you can do this using ITEMQUERY query. There's an example that does exactly this in the test suite: http://arachnid.dnr.state.mn.us/ms_test/itemquery/test.html These queries use a regular expression match. If all you want is a map you can rewrite class expressions from the browser and achieve some pretty nice results. This usually requires a small bit of javascript on the client to turn the various HTML form values into valid MapServer expressions. 3.4 (no, there will not be a 3.3.012 and 3.4 will be the next release) will allow you to use form element values directly in expressions in the MapFile. This option exists FOR THE MAPSERV CGI ONLY. So, if you have a form variable called "myarea" you can write a class expression like: ([AREA] > [myarea]) [AREA] is feature specific and [myarea] is user/form specific. This saves the step of formating the expression on the client side. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Dennis Christopher 11/15/00 08:04AM >>> Having reviewed some of the map server examples that use queries, (including a QUERYMAPOBJECT), I am still unclear on whether the following is supposed to be doable in map server and if so, how: Suppose I have a dialog area in my html form and in it the user can see the attributes for the (current) layer and can construct a string like " greetings, i am starting a second mapserver page at Humboldt State University. unfortunately the first page was constructed by someone who is now in another state. here's my question: i have assembled the tutorial page and get this message when i "refresh" the page An error has occurred in msWriteLog(): Unable to access file. (access.log) does anyone know what my problem is and how i might fix it? thanks, jay From Matt.Wilkie at gov.yk.ca Mon Nov 20 10:48:04 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Mon, 20 Nov 2000 10:48:04 -0800 Subject: Summary: Mapserver <=> ArcIMS comparison Message-ID: <6DD7370C9452D31192A10008C75D0753074C8798@raptor.gov.yk.ca> A few weeks ago asked mapserver-users, esri-l, comp.infosystems.gis, and comp.soft-sys.gis.esri for comparitive comments on Mapserver and ArcIMS. (respectively http://mapserver.gis.umn.edu/, http://www.esri.com/arcims/). Full text of all respondants is available on request. Thank you to: Andrea Goethals, University of Florida John Hockaday, Department of Environment, Australia Michael Kleih, Centro Comune di Ricerca-JRC Michael Anderson, Spatial Information Technologies, Inc. Chris Stuber, Silicon Mapping Solutions, Inc Mapserver-users (MSU) responses were detailed and informative, while the other three forums responded with a resounding silence. MSU unanimously acclaims Mapserver as the better web-based gis map server, however it was pointed out the problem domains of Mapserver and ArcIMS overlap while ArcIMS has a broader functionality set. In the words of Micheal Anderson: "...I would like to point out that the scope of what ArcIMS and MapServer attempt to do is different. ArcIMS has several components designed to do things that MapServer alone doesn't address. This includes html and applet based viewers for the client as well as several components on the server. The components on the server include the application server, manager components, and the spatial servers. The spatial server is what renders the images, handles spatial queries, extracts features, etc. The manager components allow you to build "Map Services" (map files), create web sites using the map services, and publish the sites. The application server allows you to distribute pieces of your application over multiple machines and pool several machines to handle increased loads. It also allows you to use COM and Cold Fusion in your application as the "connector" between the web server and application server. ArcIMS has two additional components that start and stop processes and delete images on a schedule. MapServer alone is only analogous to the spatial server, but the other features can be added using other tools. Other than being able to use fewer data formats, MapServer is a better spatial server than ArcIMS's. By using an existing web application server you can get the additional functionality with a minimal amount of work." After several attempts, I can't reduce the length of Micheal's message with out losing good info, so here is the rest of it: "...By using an existing web application server you can get the additional functionality with a minimal amount of work. I am using Zope, which is Python based, as my application server. It is also Open Source. It is a much better application server than the ArcIMS component. In addition to allowing you to distribute your application, and pool machines, it also handles user authentication, and gives Unix like permissions to files, URLs, and operations. It also handles publishing the sites easily. I haven't gotten around to using it to make the map files or the web site though. I use ArcView to make the map files and have someone else make the web site. Zope does allow me to share single html and JavaScript files across multiple web sites, which makes maintenance a lot easier. It is also possible to use Zope as a connector to ArcIMS so a single application could use both MapServer and ArcIMS (as well as other GIS engines). I am also aware of a Java based application server called Enhydra that is also Open Source. I have installed it, but haven't had much time to use it, so I can't really say what it can do. There are also commercial application servers available like IBM's WebSphere. You could probably do a lot with Cold Fusion as well. "That said, here is my 2 cents on the advantages and disadvantages of ArcIMS: "Advantages of ArcIMS - distribute applications over multiple machines - Native integration with the Geography Network. MapServer can be made to work within the geography network. - Includes software to handle routine tasks like making the map services (map files), designing web sites, etc. - Supports more data formats - especially raster - Better support for storing spatial data in RDBMS through SDE - You don't have to try to sell a relatively unknown product (MapServer) and philosophy (Open Source) "Disadvantages of ArcIMS - speed (even running mapserv as regular cgi it is much faster) - resource hog - limited OS (no Linux) - less stable. My ArcIMS experience is on NT so that may be more a reflection of the OS than ArcIMS. - poorer support - source code unavailable - cost" All respondants felt Mapserver's support (via the user community) and documentation is much more useful than ArcIMS'. It was noted that often questions re:ArcIMS went completely unanswered. A couple of people made the point that although Mapserver's documentation is better there are still some gaping holes; it is expected the newly formed documentation committee and mailing list will help address this issue. Several said Mapserver is easier to install and the maps are easier to maintain. Most everybody said that Mapserver is faster* although theoretically this should not be the case since Mapserver is a CGI while ArcIMS is a Java app. (*nobody claimed ArcIMS is faster, just not everybody made a speed comparison) Those that made reliabilty comparisons felt that ArcIMS is still buggy and undependable. The one* plus ArcIMS seems to have over Mapserver is the GUI that allows development of the interface and equivalent to map files. There is an ArcView extension and an Arc AML which make producing Mapserver map files easier but they are still in development. There is also talk of developing a standalone map builder but I'm not sure how far along that project is yet. (*where the problem domains overlap) There were incidental threads comparing Mapserver to MapXtreme, and JShape where Mapserver also came out on top. Thanks to everybody who responded and a note to those who didn't: I'm quite willing to do this again. I'm disappointed nobody came to bat for ArcIMS. I was hoping to be able to summarize a broader range of opinions. Than again, maybe it is simply true that Mapserver is better than ArcIMS. ;-) cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From steve.lime at dnr.state.mn.us Mon Nov 20 10:57:05 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Nov 2000 12:57:05 -0600 Subject: Summary: Mapserver <=> ArcIMS comparison Message-ID: It's likely that most users of ArcIMS have have never heard of MapServer let alone considered it. GIS users tend to have vendor induced "tunnel vision". The technology is sufficiently complex with crummy interoperability that users are often forced into using their vendors solution. I think your typical GIS user is real used to GUIs and the MapServer might be a tad intimidating. Doesn't suprise me a bit that you didn't hear "boo" from the other lists. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Matt.Wilkie" 11/20/00 12:48PM >>> A few weeks ago asked mapserver-users, esri-l, comp.infosystems.gis, and comp.soft-sys.gis.esri for comparitive comments on Mapserver and ArcIMS. (respectively http://mapserver.gis.umn.edu/, http://www.esri.com/arcims/). Full text of all respondants is available on request. Thank you to: Andrea Goethals, University of Florida John Hockaday, Department of Environment, Australia Michael Kleih, Centro Comune di Ricerca-JRC Michael Anderson, Spatial Information Technologies, Inc. Chris Stuber, Silicon Mapping Solutions, Inc Mapserver-users (MSU) responses were detailed and informative, while the other three forums responded with a resounding silence. MSU unanimously acclaims Mapserver as the better web-based gis map server, however it was pointed out the problem domains of Mapserver and ArcIMS overlap while ArcIMS has a broader functionality set. In the words of Micheal Anderson: "...I would like to point out that the scope of what ArcIMS and MapServer attempt to do is different. ArcIMS has several components designed to do things that MapServer alone doesn't address. This includes html and applet based viewers for the client as well as several components on the server. The components on the server include the application server, manager components, and the spatial servers. The spatial server is what renders the images, handles spatial queries, extracts features, etc. The manager components allow you to build "Map Services" (map files), create web sites using the map services, and publish the sites. The application server allows you to distribute pieces of your application over multiple machines and pool several machines to handle increased loads. It also allows you to use COM and Cold Fusion in your application as the "connector" between the web server and application server. ArcIMS has two additional components that start and stop processes and delete images on a schedule. MapServer alone is only analogous to the spatial server, but the other features can be added using other tools. Other than being able to use fewer data formats, MapServer is a better spatial server than ArcIMS's. By using an existing web application server you can get the additional functionality with a minimal amount of work." After several attempts, I can't reduce the length of Micheal's message with out losing good info, so here is the rest of it: "...By using an existing web application server you can get the additional functionality with a minimal amount of work. I am using Zope, which is Python based, as my application server. It is also Open Source. It is a much better application server than the ArcIMS component. In addition to allowing you to distribute your application, and pool machines, it also handles user authentication, and gives Unix like permissions to files, URLs, and operations. It also handles publishing the sites easily. I haven't gotten around to using it to make the map files or the web site though. I use ArcView to make the map files and have someone else make the web site. Zope does allow me to share single html and JavaScript files across multiple web sites, which makes maintenance a lot easier. It is also possible to use Zope as a connector to ArcIMS so a single application could use both MapServer and ArcIMS (as well as other GIS engines). I am also aware of a Java based application server called Enhydra that is also Open Source. I have installed it, but haven't had much time to use it, so I can't really say what it can do. There are also commercial application servers available like IBM's WebSphere. You could probably do a lot with Cold Fusion as well. "That said, here is my 2 cents on the advantages and disadvantages of ArcIMS: "Advantages of ArcIMS - distribute applications over multiple machines - Native integration with the Geography Network. MapServer can be made to work within the geography network. - Includes software to handle routine tasks like making the map services (map files), designing web sites, etc. - Supports more data formats - especially raster - Better support for storing spatial data in RDBMS through SDE - You don't have to try to sell a relatively unknown product (MapServer) and philosophy (Open Source) "Disadvantages of ArcIMS - speed (even running mapserv as regular cgi it is much faster) - resource hog - limited OS (no Linux) - less stable. My ArcIMS experience is on NT so that may be more a reflection of the OS than ArcIMS. - poorer support - source code unavailable - cost" All respondants felt Mapserver's support (via the user community) and documentation is much more useful than ArcIMS'. It was noted that often questions re:ArcIMS went completely unanswered. A couple of people made the point that although Mapserver's documentation is better there are still some gaping holes; it is expected the newly formed documentation committee and mailing list will help address this issue. Several said Mapserver is easier to install and the maps are easier to maintain. Most everybody said that Mapserver is faster* although theoretically this should not be the case since Mapserver is a CGI while ArcIMS is a Java app. (*nobody claimed ArcIMS is faster, just not everybody made a speed comparison) Those that made reliabilty comparisons felt that ArcIMS is still buggy and undependable. The one* plus ArcIMS seems to have over Mapserver is the GUI that allows development of the interface and equivalent to map files. There is an ArcView extension and an Arc AML which make producing Mapserver map files easier but they are still in development. There is also talk of developing a standalone map builder but I'm not sure how far along that project is yet. (*where the problem domains overlap) There were incidental threads comparing Mapserver to MapXtreme, and JShape where Mapserver also came out on top. Thanks to everybody who responded and a note to those who didn't: I'm quite willing to do this again. I'm disappointed nobody came to bat for ArcIMS. I was hoping to be able to summarize a broader range of opinions. Than again, maybe it is simply true that Mapserver is better than ArcIMS. ;-) cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From Matt.Wilkie at gov.yk.ca Mon Nov 20 11:10:56 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Mon, 20 Nov 2000 11:10:56 -0800 Subject: Summary: Mapserver <=> ArcIMS comparison Message-ID: <6DD7370C9452D31192A10008C75D0753074C87E2@raptor.gov.yk.ca> > It's likely that most users of ArcIMS have have never heard > of MapServer let alone considered it. Probably a fair assumption. > I think your typical GIS user is real used to GUIs and the > MapServer might be a tad intimidating. This shouldn't wash with ArcInfo as most of the real functionality is commandline and script based. Then again maybe my mental image of the typical Arc user is out of touch. > Doesn't suprise me a bit that you didn't hear "boo" from the > other lists. Suprised, not really. Disappointed, yes. :) -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From SDunning at nephrology.org Mon Nov 20 13:16:35 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Mon, 20 Nov 2000 15:16:35 -0600 Subject: Building dynamic maps using Perl or PHP Message-ID: Daniel, We have reinstalled MapServer with PHP3. I tried using the phpinfo_mapscript.phtml file to see what I'd get. Well, here it is... Warning: Cannot open 'c:\winnt\system32\inetserv\browscap.ini' for reading in - on line 0 Fatal error: Unable to start browscap module in (null) on line 0 Unable to start modules Does this look familiar to you or anyone else? Or is it simply something we've mixed up on our own. I noticed that the warning references my local hard drive (c:\), which I thought seemed odd. Clearly I do not have "browscap.ini" in this directory, but I'm not clear as to what it is, or why I would need it. Here's the URL I used: http://www2.usrds.org/mapserver/phpinfo_mapscript.phtml Thanks for any insight. Stephan -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Tuesday, November 14, 2000 2:39 PM To: Stephan Dunning Cc: Mapserver (E-mail) Subject: Re: Building dynamic maps using Perl or PHP Stephan Dunning wrote: > > My thinking is that I should be able to connect to my database using either > Perl or PHP, then pull in my data and join it to the chosen shapefile .dbf, > build my mapfile, and display the map for the user. Does this sound > reasonable? > Which is the better laguage to use: Perl or PHP (or another)? > Are there any recommended resources available in addition to the Perl and > PHP sites linked through MapServer's site? Does anyone have a good example > of a similar application? Stephan, That approach has been used by us and by a couple of MapScript users and works very well. Note that you won't be able to 'join' your created DBF table to an existing shapefile... you'll have to copy the .shp/.shx and create a new dbf for it with a temporary (unique) filename (you could use a logical link for the .shp/.shx on Unix). Unfortunately I'm not aware of any sample application available in source code that does that. However, there is a sample script distributed with the MapServer source that shows how to create shapefiles: mapserver/mapscript/php3/examples/test_writeshape.phtml In our case we used PHP (obviously!). Since you're on NT I'm not sure if Perl is an option for you. I don't think we've had a report of succesfull use of Perl MapScript on NT yet? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From yeewen at petromap.com Mon Nov 20 14:48:33 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Mon, 20 Nov 2000 15:48:33 -0700 Subject: Need help with compiling mapscript for use with Tcl. Message-ID: I "swiged" mapscript.i to create c wrappers for tcl. $ swig -tcl mapscript.i Making wrappers for Tcl ../../map.h : Line 362. Warning. Array member will be read-only. ../../maperror.h : Line 35. Warning. Array member will be read-only. ../../maperror.h : Line 36. Warning. Array member will be read-only. ../../mapshape.h : Line 72. Warning. Array member will be read-only. Are the above warnings critical? Also, before I go further, does anyone have a Makefile that will compile mapscript for use with Tcl? Thanks, Yee Wen -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry at cs.tamu.edu Mon Nov 20 15:32:24 2000 From: gerry at cs.tamu.edu (Gerry Creager) Date: Mon, 20 Nov 2000 17:32:24 -0600 Subject: Summary: Mapserver <=> ArcIMS comparison References: Message-ID: <3A19B488.AD8BA0AC@cs.tamu.edu> Stephen Lime wrote: > > It's likely that most users of ArcIMS have have never heard of MapServer let > alone considered it. GIS users tend to have vendor induced "tunnel vision". > The technology is sufficiently complex with crummy interoperability that users > are often forced into using their vendors solution. I think your typical GIS user > is real used to GUIs and the MapServer might be a tad intimidating. Doesn't > suprise me a bit that you didn't hear "boo" from the other lists. It won't surprise me, either. Whe I first brought this concept up to the Texas Geographic Information Council, the idea of using MapServer was met with something less than either belief or enthusiasm. Of note several members have changed their minds on the subject... Gerry -- Gerry Creager | Never ascribe to Malice that AATLT | which can adequately be Texas A&M University | explained by Stupidity. 979.458.4020 (Phone) | -- Lazarus Long 979.847.8578 (Fax) From imap at chesapeake.net Mon Nov 20 15:40:26 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 20 Nov 2000 18:40:26 -0500 Subject: Need help with compiling mapscript for use with Tcl. References: Message-ID: <3A19B66A.77D44AEF@chesapeake.net> I think those warnings are OK.. I see them with I swig -perl5 -shadow mapscript.i but everything works like a charm. On the mapscript topic There was some brief comment about someone exposing more of map.h and addhandlers for clearing labelcache that were forwarded to Steve. Also Marc Jacquin had posted some info about mapscript code changes dealing with issues to mapscript reentrant for use with FastCGI or mod_perl. Can you guys forward the necessary changes to to Steve so we can begin testing those things? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 > Yeewen Sat wrote: > > I "swiged" mapscript.i to create c wrappers for tcl. > > $ swig -tcl mapscript.i > Making wrappers for Tcl > ../../map.h : Line 362. Warning. Array member will be read-only. > ../../maperror.h : Line 35. Warning. Array member will be read-only. > ../../maperror.h : Line 36. Warning. Array member will be read-only. > ../../mapshape.h : Line 72. Warning. Array member will be read-only. > > > Are the above warnings critical? > > Also, before I go further, does anyone have a Makefile that will compile > mapscript for use with Tcl? > > Thanks, > Yee Wen > From tpoindex at nyx.net Mon Nov 20 16:54:50 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 20 Nov 2000 17:54:50 -0700 Subject: Need help with compiling mapscript for use with Tcl. In-Reply-To: ; from Yeewen Sat on Mon, Nov 20, 2000 at 03:48:33PM -0700 References: Message-ID: <20001120175450.18224@nyx.net> On Mon, Nov 20, 2000 at 03:48:33PM -0700, Yeewen Sat wrote: > I "swiged" mapscript.i to create c wrappers for tcl. > > $ swig -tcl mapscript.i > Making wrappers for Tcl > ../../map.h : Line 362. Warning. Array member will be read-only. > ../../maperror.h : Line 35. Warning. Array member will be read-only. > ../../maperror.h : Line 36. Warning. Array member will be read-only. > ../../mapshape.h : Line 72. Warning. Array member will be read-only. > > > Are the above warnings critical? No. The warnings mean that some Mapserver objects (the primary C structs) have members that are readonly. If you peek in the map.h and mapshape.h files, you'll see the SWIG '%readonly' operator used. > Also, before I go further, does anyone have a Makefile that will compile > mapscript for use with Tcl? I have a Tcl interface that has been submitted for inclusion into CVS, but last time I check it still hasn't been merged. I made some enhancements to the interface to open some extra functions, and have a few nice demo programs in the works. One is a mapfile viewer, which is mostly based on previous work by Peter deVoil. I'm also working on a mapfile editor, which will provide a tree-structured editor for mapfiles. Using Tcl's often ignored 'send' command, it should be easy to make the viewer and editor work well together. I also have a Makefile, and a minimal 'configure' script (not a real autoconf one, but one that should work anyway.) -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From cjtaylor at exchange.wcities.com Tue Nov 21 03:57:13 2000 From: cjtaylor at exchange.wcities.com (Carl Taylor) Date: Tue, 21 Nov 2000 11:57:13 -0000 Subject: Looking for UK Users of mapserver and some interested engineers. Message-ID: <1756A601B263D411A57800508BDCDC19365F9E@WLONPDC01> Hello, I have been following this list for several months now and seen it grow from a few messages a month to the current encouraging discussions. Congratulations to everyone involved. My interest is twofold, Firstly I am looking for people who use Mapserver who are based in the UK and would like to discuss experiences with them first hand. Secondly I am looking for very experienced Software engineers who have some Mapserver experience and may be interested in a couple of projects that we have on hand at wcities. To give you some background on wcities we provide Location aware applications based around city guide information. We have a team of writers based around the world writing the content that appears on our site. The content is then licenced or provided as part of an ASP service to our clients. We have over 230 cities live in 75 countries and will have almost double this number next year. The information we create is in multiple languages including Japenese, Chinese, French, German, Spanish, Italian and more. A mapping application is a very important addition to our services and Mapserver looks like an ideal candidate. A major part of our focus is on Mobile Phone applications so a wbmp rendered output is an important addition to the platform, but as GD already supports this format should not be a problem. We are also involved with internet based interactive television services. Other projects we have underway are -- Geocoding of information for addresses in all the cities -- turn by turn directions for all the cities. Quite a mamouth task and a project that I am sure someone, or several people, would be very interested in undertaking. If you would like to know more about this project then please contact me at the following address cjtaylor at wcities.com Many thanks, Regards Carl Taylor Director of New Media Technologies wcities.com - The world's premier location based information service provider. Tel:+44 1489 557543 http://wap.wcities.com http://www.wcities.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ksibson at matrix.net Tue Nov 21 09:21:18 2000 From: ksibson at matrix.net (Keith Sibson) Date: Tue, 21 Nov 2000 17:21:18 +0000 (GMT) Subject: labels and multiple class items Message-ID: For a layer with mutiple classes and a labelitem, labels are shown for both those classes that have a label object AND those that don't. In the latter case, a default label object seems to be applied. I was attempting to implement behaviour whereby a label would be rendered only if a particular class expression were true. Is there any motivation behind the use of a default label object? I would have thought that in the absence of a label object, not rendering a label for that class would be more appropriate behaviour. Regards, Keith. From steve.lime at dnr.state.mn.us Tue Nov 21 10:59:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 21 Nov 2000 12:59:34 -0600 Subject: labels and multiple class items Message-ID: Good point. I'll make sure this gets added to 3.4 (the next release). Don't know why I originally coded it that way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Keith Sibson 11/21/00 11:21AM >>> For a layer with mutiple classes and a labelitem, labels are shown for both those classes that have a label object AND those that don't. In the latter case, a default label object seems to be applied. I was attempting to implement behaviour whereby a label would be rendered only if a particular class expression were true. Is there any motivation behind the use of a default label object? I would have thought that in the absence of a label object, not rendering a label for that class would be more appropriate behaviour. Regards, Keith. From steve.lime at dnr.state.mn.us Tue Nov 21 12:13:19 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 21 Nov 2000 14:13:19 -0600 Subject: Need help with compiling mapscript for use with Tcl. Message-ID: Warnings are fine. They are related to non-pointer arrays in the various MapServer structures. Since they're not pointers SWIG doesn't know what to do with them. Doesn't matter since you'd never alter them any way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Yeewen Sat" 11/20/00 04:48PM >>> I "swiged" mapscript.i to create c wrappers for tcl. $ swig -tcl mapscript.i Making wrappers for Tcl ../../map.h : Line 362. Warning. Array member will be read-only. ../../maperror.h : Line 35. Warning. Array member will be read-only. ../../maperror.h : Line 36. Warning. Array member will be read-only. ../../mapshape.h : Line 72. Warning. Array member will be read-only. Are the above warnings critical? Also, before I go further, does anyone have a Makefile that will compile mapscript for use with Tcl? Thanks, Yee Wen From kames at optonline.net Tue Nov 21 12:43:47 2000 From: kames at optonline.net (Kieran Ames) Date: Tue, 21 Nov 2000 15:43:47 -0500 Subject: Mapscript .dll guidance Message-ID: <3A1ADE83.18D50C35@optonline.net> Could someone point me to a simple script that I could use to demonstrate functionality? - I'm using NT4.0 - I have mapserver up and running the ms_demo. - I installed and tested PHP4 (pretty slick!) - I downloaded the dmsolutions dll and it's identified in phpinfo(); I saw the posting regarding earthquakes at http://arachnid.dnr.state.mn.us/cgi-bin/mapquakes.pl and basically follow the logic. I also have MySQL installed with a db that contains LAT/LON data. Do I have all the tools in place to invoke mapscript? ..appreciate any assistance. Kieran PS. I'm working from home today and my mailing list subscription is at my office email account. Any reply that included my email address here (kames at optonline.net) would be greatly appreciated. TIA From jacquin at geosys-inc.com Tue Nov 21 13:00:44 2000 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Tue, 21 Nov 2000 15:00:44 -0600 Subject: TIFF input and GIF quality Message-ID: Hi folks, I am facing a quite serious problem. In our market we usually use SPOT or Landsat images with 3 bands (RGB). Unfortunately the only images supported by MapServer are 8 bits. Did somebody worked around that ? It requires to apply dithering (24->8 bits) which is not so obvious but feasible. Also we encounter quality problems with nearest neighbour resampling, bi-cubic would be useful. Thanks, Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: Marc Jacquin.vcf Type: text/x-vcard Size: 824 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Nov 21 13:24:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 21 Nov 2000 15:24:46 -0600 Subject: TIFF input and GIF quality Message-ID: We've always done pre-processing from 24 to 8 bits. Even with 128 colors LandSat output is pretty decent. Bi-cubic resampling with colormapped data? Not possible. I assume your wanting to sample the 24-bit image with the better resampling and then doing a color reduction. Possible but painfully slow. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Marc Jacquin" 11/21/00 03:00PM >>> Hi folks, I am facing a quite serious problem. In our market we usually use SPOT or Landsat images with 3 bands (RGB). Unfortunately the only images supported by MapServer are 8 bits. Did somebody worked around that ? It requires to apply dithering (24->8 bits) which is not so obvious but feasible. Also we encounter quality problems with nearest neighbour resampling, bi-cubic would be useful. Thanks, Marc From pnaciona at gis.umn.edu Tue Nov 21 14:17:08 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 21 Nov 2000 16:17:08 -0600 Subject: TIFF input and GIF quality In-Reply-To: Message-ID: Marc, On Tue, 21 Nov 2000, Marc Jacquin wrote: > Hi folks, > > I am facing a quite serious problem. In our market we usually use SPOT or > Landsat images with 3 bands (RGB). Unfortunately the only images supported > by MapServer are 8 bits. > > Did somebody worked around that ? It requires to apply dithering (24->8 > bits) which is not so obvious but feasible. > This can be done with image manipulation software such as Photoshop or Gimp. In those two programs, it's as simple as opening the image and converting into indexed color. The software typically asks you whether it should dither or not. I never do as my images usually don't have that many colors. One thing to be aware of is that the two programs I mentioned above don't support geotiff--you'll need to have a world file with your tiff image or you'll lose the georeference info. > Also we encounter quality problems with nearest neighbour resampling, > bi-cubic would be useful. I'm not quite sure what you mean here. If it's something to do with perceptible color quality, then all you can do is play with dithering. If you're using Erdas Imagine or some other Image processing software, you can probably play with red, green, and blue color combinations. -Perry From Matt.Wilkie at gov.yk.ca Tue Nov 21 16:38:09 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 21 Nov 2000 16:38:09 -0800 Subject: TIFF input and GIF quality Message-ID: <6DD7370C9452D31192A10008C75D0753075B1C8B@raptor.gov.yk.ca> > This can be done with image manipulation software such as Photoshop or > Gimp. In those two programs, it's as simple as opening the image and > converting into indexed color. The software typically asks you whether > it should dither or not. ... And Gimp can be called from the commandline and used as a batch processor - not that I've actually learned how yet. Image Alchemy can do the same. -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From david at kriske.com Tue Nov 21 17:58:24 2000 From: david at kriske.com (David L. Kriske) Date: Tue, 21 Nov 2000 17:58:24 -0800 (PST) Subject: Using part of a field as a label Message-ID: I am trying to label Tiger-derived street data (ESRI Streetmap 2000) and include highway shields for Interstates and other major highways using symbols and annotation layers. My problem is that the name field in the Tiger database for interstates is characterized as "I-5" or "Hwy 101" when the label on the map I would like to include is only "5" or "101". Has anyone ever tried to add hwy shields to Tiger data using this field and if so is there a good way to do this other than manually adding a new attribute containing only the numbered portion of the name? I am using the ENTIRE US as my domain so editing these large shapefiles (one for each state!) is very time consuming, especially since shapefiles don't take kindly to editing their associated dbf file outside ARCVIEW. David From erictang_hk at hotmail.com Tue Nov 21 19:35:32 2000 From: erictang_hk at hotmail.com (Eric Tang) Date: Wed, 22 Nov 2000 03:35:32 -0000 Subject: ms_demo on NT Message-ID: Hi anyone, I using Win NT 4.0 and Apache 1.3.14 to test the Mapserver. But it can't work. I already change the text follow the Installation Instructions. Have anyone can give me the file (demo.html, demo_init & demo.map)? I just want to test my map server. Regards, Eric _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com From steve.lime at dnr.state.mn.us Tue Nov 21 20:05:56 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 21 Nov 2000 22:05:56 -0600 Subject: Using part of a field as a label Message-ID: You can't use a portion of a field so you're only option is to create a road "number" field. You could batch process this easily outside of ArcView using perl, a regex and the XBase module. It'll take a bit of time to run given the dataset but it's certainly doable. Editing .dbf files outside of ArcView is perfectly acceptable as long as you don't add records or change the order. Steve >>> "David L. Kriske" 11/21/00 20:01 PM >>> I am trying to label Tiger-derived street data (ESRI Streetmap 2000) and include highway shields for Interstates and other major highways using symbols and annotation layers. My problem is that the name field in the Tiger database for interstates is characterized as "I-5" or "Hwy 101" when the label on the map I would like to include is only "5" or "101". Has anyone ever tried to add hwy shields to Tiger data using this field and if so is there a good way to do this other than manually adding a new attribute containing only the numbered portion of the name? I am using the ENTIRE US as my domain so editing these large shapefiles (one for each state!) is very time consuming, especially since shapefiles don't take kindly to editing their associated dbf file outside ARCVIEW. David From andrew.luger at daterra.ab.ca Wed Nov 22 05:21:28 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Wed, 22 Nov 2000 06:21:28 -0700 Subject: No subject Message-ID: <000401c05487$1fb779d0$cec64418@andrewyk1lfitb> Ok, forgot that I needed to allow programs to be run in cgi-bin. So that solves the download thing I spoke of in my first e-mail. Now, I get the following error message on initialize." msLoadMap(): Unknown identifier. (SHADESET):(6)" Suggestions, please! Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.luger at daterra.ab.ca Wed Nov 22 06:09:39 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Wed, 22 Nov 2000 07:09:39 -0700 Subject: No subject Message-ID: <000901c0548d$db208f80$cec64418@andrewyk1lfitb> Alrighty, permissions were not correct for the tmp directory. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From vkurnosov at st.infotecstt.ru Wed Nov 22 07:35:57 2000 From: vkurnosov at st.infotecstt.ru (Vladislav Kurnosov) Date: Wed, 22 Nov 2000 18:35:57 +0300 Subject: Using part of a field as a label In-Reply-To: References: Message-ID: <13774.001122@softech.ru> Dear David: Try to use FoxPro (I use DOS version). All this may be done with a few statements like REPLACE ALL etc. Best regards, Vladislav Kurnosov mailto:vkurnosov at softech.ru Wednesday, November 22, 2000, 4:58:24 AM, you wrote: > I am trying to label Tiger-derived street data (ESRI Streetmap 2000) and > include highway shields for Interstates and other major highways using > symbols and annotation layers. My problem is that the name > field in the Tiger database for interstates is characterized as "I-5" or > "Hwy 101" when the label on the map I would like to include is only "5" or > "101". Has anyone ever tried to add hwy shields to Tiger data using this > field and if so is there a good way to do this other than manually adding > a new attribute containing only the numbered portion of the name? I am > using the ENTIRE US as my domain so editing these large shapefiles (one > for each state!) is very time consuming, especially since shapefiles > don't take kindly to editing their associated dbf file outside ARCVIEW. > David From kames at keyspanenergy.com Wed Nov 22 10:00:52 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Wed, 22 Nov 2000 13:00:52 -0500 Subject: Setting Paths Message-ID: <3A1C09D4.6DDEBD15@keyspanenergy.com> Group, In getting the demo running, I'm running across some path issues that I don't understand. Running NT4.0 Mapserver 3.3.012 The Mapserv executable is in g:\_PublicWebSite\cgi-bin\mapserv The demo is in g:\_PublicWebSite\wwwroot\ms_demo The tmp directory (for images) is in g:\tmp. All directories have appropriate read & write access and virtual directories are defined as well. The problem: the DEMO images are being written to g:\_PublicWebSite\wwwroot\ms_demo and not to the tmp directory I thought they'd be written to. I modified read and write access to get the page to work. If I then change the pointer tags in demo.html from SRC="[img]" to SRC="../../ms_demo/[img]" then it all seems to work properly. However, that doesn't seem to be the best way of doing things. I understand that there is no longer a mapserv.ini file. How can I get the files to write where I want them to? Thanks for the help (and Happy Thanksgiving to all). Kieran From yeewen at petromap.com Wed Nov 22 11:16:35 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Wed, 22 Nov 2000 12:16:35 -0700 Subject: Need help with compiling mapscript for use with Tcl. In-Reply-To: Message-ID: Thanks for all the help...I was able to compile mapscript.so for Tcl. However, when I try to load it in tclsh, I get an error: $ tclsh % load ./mapscript.so _40228d40_errorObj_p Can anyone explain this? If I build mapscript, and statically link with tcl, I was able to execute it with no error. I added some simple test functions in mapscript.i, and they execute fine. Either case, I have no clue on how to use the exported functions. Does anyone have any Tcl examples on how to load a mapfile? I just need some guidance to get me started. Here's my makefile if anyone is interested: # Tcl Mapscript makefile # This lives in new directory $(MAP_HOME)/mapscript/tcl # I copied from Norman Vine -- nhv at cape.com -- March 21 2000 (Python makefile), and modified # to compile Tcl Mapscript MAP_HOME =../.. LOCAL = /usr/local INC = -I$(LOCAL)/include \ -I$(MAP_HOME) \ -I$(MAP_HOME)/gd-1.2 \ -I$(MAP_HOME)/gdft \ -I$(MAP_HOME)/../freetype-1.3.1/lib LIBS = -L$(MAP_HOME) -lmap \ -L$(MAP_HOME)/gd-1.2 -lgd \ -L$(MAP_HOME)/gdft -lgdft \ -L$(MAP_HOME)/../freetype-1.3.1/lib/.libs -lttf -ltiff -ljpeg mapscript.so: mapscript_wrap.o gcc -shared mapscript_wrap.o $(LIBS) -o mapscript.so mapscript_wrap.o: mapscript_wrap.c gcc -fpic -c -o mapscript_wrap.o mapscript_wrap.c # static linking with Tcl mapscriptsh: mapscript_wrap.c gcc mapscript_wrap.c $(INC) $(LIBS) -ltcl -lm -o mapscriptsh -----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: November 21, 2000 1:13 PM To: mapserver-users at lists.gis.umn.edu; yeewen at petromap.com Subject: Re: Need help with compiling mapscript for use with Tcl. Warnings are fine. They are related to non-pointer arrays in the various MapServer structures. Since they're not pointers SWIG doesn't know what to do with them. Doesn't matter since you'd never alter them any way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Yeewen Sat" 11/20/00 04:48PM >>> I "swiged" mapscript.i to create c wrappers for tcl. $ swig -tcl mapscript.i Making wrappers for Tcl ../../map.h : Line 362. Warning. Array member will be read-only. ../../maperror.h : Line 35. Warning. Array member will be read-only. ../../maperror.h : Line 36. Warning. Array member will be read-only. ../../mapshape.h : Line 72. Warning. Array member will be read-only. Are the above warnings critical? Also, before I go further, does anyone have a Makefile that will compile mapscript for use with Tcl? Thanks, Yee Wen From pnaciona at gis.umn.edu Wed Nov 22 12:10:40 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 22 Nov 2000 14:10:40 -0600 Subject: Setting Paths References: <3A1C09D4.6DDEBD15@keyspanenergy.com> Message-ID: <004f01c054c0$49a1fa20$9a496580@gis.umn.edu> On your map file, do your IMAGEPATH and IMAGEURL look like this? WEB IMAGEPATH "g:\tmp\" IMAGEURL "/tmp/" END And do you have g:\tmp virtual directory set as /tmp on your web server? -Perry ----- Original Message ----- From: "Kieran J. Ames" To: Sent: Wednesday, November 22, 2000 12:00 PM Subject: Setting Paths > Group, > In getting the demo running, I'm running across some path issues that I > don't understand. > Running NT4.0 Mapserver 3.3.012 > The Mapserv executable is in g:\_PublicWebSite\cgi-bin\mapserv > The demo is in g:\_PublicWebSite\wwwroot\ms_demo > The tmp directory (for images) is in g:\tmp. All directories have > appropriate read & write access and virtual directories are defined as > well. > > The problem: the DEMO images are being written to > g:\_PublicWebSite\wwwroot\ms_demo and not to the tmp directory I thought > they'd be written to. I modified read and write access to get the page > to work. If I then change the pointer tags in demo.html from > SRC="[img]" to SRC="../../ms_demo/[img]" > then it all seems to work properly. However, that doesn't seem to be the > best way of doing things. > I understand that there is no longer a mapserv.ini file. How can I get > the files to write where I want them to? > Thanks for the help (and Happy Thanksgiving to all). > Kieran > From hmeij at mail.wesleyan.edu Wed Nov 22 12:15:11 2000 From: hmeij at mail.wesleyan.edu (Hendrik Meij) Date: Wed, 22 Nov 2000 15:15:11 -0500 Subject: scale, scalebar & units Message-ID: <4.3.1.2.20001122150910.00b40a30@hmeij.mail.wesleyan.edu> Allright, befuddled. I have a spain demo i'm tinkering with...the entire country is 0.8 miles across according to the scale. My map units are set to kilometers, scalebar is defined (also kilometers with intervals of 4) but not scale (as the doc tell me the app will set this). In arcview the shapefile yields correct distance measurements. Where do i look for an answer? -Henk Hendrik K Meij ph: 860.685.3477 fax: 860.685.2401 Applications Technology Specialist http://www.wesleyan.edu/ From bfraser at geoanalytic.com Wed Nov 22 12:49:37 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 22 Nov 2000 13:49:37 -0700 Subject: Setting Paths References: <3A1C09D4.6DDEBD15@keyspanenergy.com> Message-ID: <00ab01c054c5$ba8b8490$390002c0@servo> You need to do two things: 1. set up a virtual directory, say g:\_PublicWebSite\wwwroot\ms_demo\tmp to point to g:\tmp (you've likely already done this) 2. Edit the demo.map file. In the WEB portion: IMAGEPATH "g:\_PublicWebSite\wwwroot\ms_demo\tmp\" IMAGEURL "/tmp/" Leave the demo.html as it was delivered. Brent bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Kieran J. Ames" To: Sent: Wednesday, November 22, 2000 11:00 AM Subject: Setting Paths > Group, > In getting the demo running, I'm running across some path issues that I > don't understand. > Running NT4.0 Mapserver 3.3.012 > The Mapserv executable is in g:\_PublicWebSite\cgi-bin\mapserv > The demo is in g:\_PublicWebSite\wwwroot\ms_demo > The tmp directory (for images) is in g:\tmp. All directories have > appropriate read & write access and virtual directories are defined as > well. > > The problem: the DEMO images are being written to > g:\_PublicWebSite\wwwroot\ms_demo and not to the tmp directory I thought > they'd be written to. I modified read and write access to get the page > to work. If I then change the pointer tags in demo.html from > SRC="[img]" to SRC="../../ms_demo/[img]" > then it all seems to work properly. However, that doesn't seem to be the > best way of doing things. > I understand that there is no longer a mapserv.ini file. How can I get > the files to write where I want them to? > Thanks for the help (and Happy Thanksgiving to all). > Kieran > From kames at keyspanenergy.com Wed Nov 22 12:56:45 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Wed, 22 Nov 2000 15:56:45 -0500 Subject: Setting Paths References: <3A1C09D4.6DDEBD15@keyspanenergy.com> <00ab01c054c5$ba8b8490$390002c0@servo> Message-ID: <3A1C330D.D8E8F558@keyspanenergy.com> Thanks to all. As I said in an earlier post, I'm just getting back into mapping. I copied all my older stuff into an ms_demo directory and started from there. That INCLUDED my old .map file which was missing IMAGEPATH and IMAGEURL. (It's all so easy once you get the answers!) Thanks again and have a good holiday! Kieran Brent Fraser wrote: > You need to do two things: > 1. set up a virtual directory, say g:\_PublicWebSite\wwwroot\ms_demo\tmp > to point to g:\tmp (you've likely already done this) > 2. Edit the demo.map file. In the WEB portion: > IMAGEPATH "g:\_PublicWebSite\wwwroot\ms_demo\tmp\" > IMAGEURL "/tmp/" > > Leave the demo.html as it was delivered. > > Brent > bfraser at geoanalytic.com > GeoAnalytic Inc. > #300 , 700 - 4th Avenue SW Calgary, AB > Canada T2P 3J4 > Tel: (403)213-2700 Fax: (403)213-2707 > www.geoanalytic.com > > ----- Original Message ----- > From: "Kieran J. Ames" > To: > Sent: Wednesday, November 22, 2000 11:00 AM > Subject: Setting Paths > > > Group, > > In getting the demo running, I'm running across some path issues that I > > don't understand. > > Running NT4.0 Mapserver 3.3.012 > > The Mapserv executable is in g:\_PublicWebSite\cgi-bin\mapserv > > The demo is in g:\_PublicWebSite\wwwroot\ms_demo > > The tmp directory (for images) is in g:\tmp. All directories have > > appropriate read & write access and virtual directories are defined as > > well. > > > > The problem: the DEMO images are being written to > > g:\_PublicWebSite\wwwroot\ms_demo and not to the tmp directory I thought > > they'd be written to. I modified read and write access to get the page > > to work. If I then change the pointer tags in demo.html from > > SRC="[img]" to SRC="../../ms_demo/[img]" > > then it all seems to work properly. However, that doesn't seem to be the > > best way of doing things. > > I understand that there is no longer a mapserv.ini file. How can I get > > the files to write where I want them to? > > Thanks for the help (and Happy Thanksgiving to all). > > Kieran > > From steve.lime at dnr.state.mn.us Wed Nov 22 14:29:08 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Nov 2000 16:29:08 -0600 Subject: scale, scalebar & units Message-ID: Could be an error in the conversion factors in mapscale.c. I don't use kilometers much. What data are you using that stores is coordinates in kilometers? That's not real common. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Hendrik Meij 11/22/00 02:15PM >>> Allright, befuddled. I have a spain demo i'm tinkering with...the entire country is 0.8 miles across according to the scale. My map units are set to kilometers, scalebar is defined (also kilometers with intervals of 4) but not scale (as the doc tell me the app will set this). In arcview the shapefile yields correct distance measurements. Where do i look for an answer? -Henk Hendrik K Meij ph: 860.685.3477 fax: 860.685.2401 Applications Technology Specialist http://www.wesleyan.edu/ From david at kriske.com Wed Nov 22 16:45:18 2000 From: david at kriske.com (David L. Kriske) Date: Wed, 22 Nov 2000 16:45:18 -0800 Subject: Thanks! Two more quick questions.... In-Reply-To: Message-ID: <4.2.0.58.20001122163001.00ab1638@kriske.com> Thanks for the responses.... I was afraid that was my only option. I think I'll put off the pretty highway shields for now, at least until I finish extracting the 25 gigs or so of shapefile from the Streetmap 2000 disk. BTW, does anyone familiar with ArcIMS know if this product can serve the proprietary Streetmap 2000 data natively without extracting all the shapefiles. We may or may not be going with that product depending upon what we ultimately want to serve geographically over the web -- quite honestly Mapserver is a pretty cool application that may do what we want, but exploding these shapefiles is a real drag! Finally, I have one more question for you folks concerning using a truetype font as a marker symbol. I'm not sure of the syntax in the symbol file. So far I have: * * * * * FONTSET SYMBOL TYPE TRUETYPE CHARACTER END * * * * * Where do you specify which font you would like to use in the fontset file? Do you use a FONT keyword in the SYMBOL definition. The docs did not specify..... Thanks again and Happy Thanksgiving to all! At 10:05 PM 11/21/2000 -0600, Stephen Lime wrote: >You can't use a portion of a field so you're only option is to create a >road "number" field. You could batch process this easily outside of >ArcView using perl, a regex and the XBase module. It'll take a bit of >time to run given the dataset but it's certainly doable. Editing .dbf >files outside of ArcView is perfectly acceptable as long as you don't add >records or change the order. > >Steve > > >>> "David L. Kriske" 11/21/00 20:01 PM >>> >I am trying to label Tiger-derived street data (ESRI Streetmap 2000) and >include highway shields for Interstates and other major highways using >symbols and annotation layers. My problem is that the name >field in the Tiger database for interstates is characterized as "I-5" or >"Hwy 101" when the label on the map I would like to include is only "5" or >"101". Has anyone ever tried to add hwy shields to Tiger data using this >field and if so is there a good way to do this other than manually adding >a new attribute containing only the numbered portion of the name? I am >using the ENTIRE US as my domain so editing these large shapefiles (one >for each state!) is very time consuming, especially since shapefiles >don't take kindly to editing their associated dbf file outside ARCVIEW. > >David From nhv at cape.com Wed Nov 22 17:52:22 2000 From: nhv at cape.com (Norman Vine) Date: Wed, 22 Nov 2000 20:52:22 -0500 Subject: Thanks! Two more quick questions.... In-Reply-To: <4.2.0.58.20001122163001.00ab1638@kriske.com> Message-ID: <000a01c054f0$12394040$9337ba8c@nhv> David L. Kriske writes: >but exploding these shapefiles is a real drag! You should be able to substitute gzopen() gzread() gzseek() gztell() appropriately for fopen() fread() etc.. in mapshape.c then you could keep the files in compressed form. This is less of a performance hit then often thought and in fact 'can' be faster if the data file is being read from a slow device. i.e. < CD , networked drive etc > Norman Vine From vkurnosov at st.infotecstt.ru Wed Nov 22 23:15:07 2000 From: vkurnosov at st.infotecstt.ru (Vladislav Kurnosov) Date: Thu, 23 Nov 2000 10:15:07 +0300 Subject: spatial indexing In-Reply-To: <000a01c054f0$12394040$9337ba8c@nhv> References: <000a01c054f0$12394040$9337ba8c@nhv> Message-ID: <0427.001123@softech.ru> Hello, I have noticed that there are two methods of spatial indexing in Map Server, by using quad-trees or cell-based. What is the best method in terms of speed, memory usage, disk space? Best regards, Vladislav Kurnosov mailto:vkurnosov at softech.ru From gdp at geo-it.com Thu Nov 23 02:17:06 2000 From: gdp at geo-it.com (GeoDataPlan) Date: Thu, 23 Nov 2000 11:17:06 +0100 Subject: Wrapping mapscript.i with SWIG 1.3a3 for Java Message-ID: <9138808AB827D311B56800E018900A6107974F@gdppdc.gdp.com> Hello, I swigged mapscript.i for use with Java, which caused these warnings: ambertech:/opt/mapserver/mapscript/SWIG1.3a3 # swig -java mapscript.i Generating wrappers for Java ignoring enum constant: MS_FILE_MAP ignoring enum constant: MS_FILE_SYMBOL ignoring enum constant: MS_INCHES ignoring enum constant: MS_FEET ignoring enum constant: MS_MILES ignoring enum constant: MS_METERS ignoring enum constant: MS_KILOMETERS ignoring enum constant: MS_DD ignoring enum constant: MS_PIXELS ignoring enum constant: MS_POINT ignoring enum constant: MS_LINE ignoring enum constant: MS_POLYGON ignoring enum constant: MS_POLYLINE ignoring enum constant: MS_RASTER ignoring enum constant: MS_ANNOTATION ignoring enum constant: MS_NULL ignoring enum constant: MS_TRUETYPE ignoring enum constant: MS_BITMAP ignoring enum constant: MS_UL ignoring enum constant: MS_LR ignoring enum constant: MS_UR ignoring enum constant: MS_LL ignoring enum constant: MS_CR ignoring enum constant: MS_CL ignoring enum constant: MS_UC ignoring enum constant: MS_LC ignoring enum constant: MS_CC ignoring enum constant: MS_AUTO ignoring enum constant: MS_XY ignoring enum constant: MS_TINY ignoring enum constant: MS_SMALL ignoring enum constant: MS_MEDIUM ignoring enum constant: MS_LARGE ignoring enum constant: MS_GIANT ignoring enum constant: MS_NORMAL ignoring enum constant: MS_HILITE ignoring enum constant: MS_SELECTED ignoring enum constant: MS_INVERTED ignoring enum constant: MS_MARKERSET ignoring enum constant: MS_LINESET ignoring enum constant: MS_SHADESET ignoring enum constant: MS_LOCAL ignoring enum constant: MS_SDE Are these warnings critical ? Thanks, Daniel From ycnyon at pd.jaring.my Thu Nov 23 17:25:37 2000 From: ycnyon at pd.jaring.my (Nyon) Date: Fri, 24 Nov 2000 09:25:37 +0800 Subject: Javascript for 'Loading' Message-ID: <200011240123.eAO1Nbt15091@smtp2.jaring.my> Hi, Does anyone have the javascript to load the 'Retriving maps' animation while a request is being processed by map server. It's similiar to ArcIMS. Also, is there any official logo for Mapserver since it was debated few weeks ago? Regards Nyon From steve.lime at dnr.state.mn.us Thu Nov 23 19:19:39 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Nov 2000 21:19:39 -0600 Subject: spatial indexing Message-ID: The cell-based code is old and has been replaced with the tree-based stuff. I keep the old stuff around for the heck of it. The tree code is what you should use. It's faster, and has smaller, machine independent indexes (in CVS version) . Neither used much memory. I hope to see even more improvement on the tree code in the near future... Steve >>> Vladislav Kurnosov 11/23/00 01:13 AM >>> Hello, I have noticed that there are two methods of spatial indexing in Map Server, by using quad-trees or cell-based. What is the best method in terms of speed, memory usage, disk space? Best regards, Vladislav Kurnosov mailto:vkurnosov at softech.ru From marin at here.is Sat Nov 25 16:30:55 2000 From: marin at here.is (Ma) Date: Sun, 26 Nov 2000 00:30:55 +0000 Subject: How-to MapServer and WAP? Message-ID: <3A2059BD.A449975F@here.is> How to MapServer and WAP? One WML example: w3.karttakeskus.fi/wap/cf1/index.wml (online WAP phone emulator at http://ttemulator.com/howto.htm - copy the link there, to search in CountryFinder press "Search" not "Enter"). How to make WAP map site like this? --- Ma From steve.lime at dnr.state.mn.us Mon Nov 27 07:17:40 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 27 Nov 2000 09:17:40 -0600 Subject: How-to MapServer and WAP? Message-ID: Should be pretty straight forward. The CVS version support WBMP although it's untested it's certainly close to working. Then all you'd need would templates or script that return WAP. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 11/25/00 06:30PM >>> How to MapServer and WAP? One WML example: w3.karttakeskus.fi/wap/cf1/index.wml (online WAP phone emulator at http://ttemulator.com/howto.htm - copy the link there, to search in CountryFinder press "Search" not "Enter"). How to make WAP map site like this? --- Ma From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Nov 27 09:24:07 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 27 Nov 2000 12:24:07 -0500 Subject: New mapping application Message-ID: <2951561DB3DDD0118FEC00805FFE980504942103@s5-ccr-r1> Goodday, I just wanted to give everyone a heads-up. I've implemented a new mapping interface using Mapserver CGI to provide live up to the minute mapping of our federal election results as they come in. (Canadian Federal Election). You will be able to find a link here: http://atlas.gc.ca/english/facts/elections/elections2000/index.htm Click on Election 2000 Mapping. There currently are only Screen-Shots, the interface will go live sometime this afternoon, with data showing up sometime shortly after 10pm EST. Feedback is most welcome of course ! Sorry I've been so quiet lately, been working on this non-stop for a while. Hopefully I'll get back into the swing of things soon now (Such as the documentation project). And Stephen, that thing where you can set almost any Mapfile paramter with a structured URL parameter (map_layer_???) is very handy :) Great for implementing bi-lingual interfaces. Cheers, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada http://atlas.gc.ca (613) 992-4902 From erich at museum.state.il.us Mon Nov 27 11:46:52 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Mon, 27 Nov 2000 13:46:52 -0600 (EST) Subject: Class with join Message-ID: Hi, I'm hoping that I can do this without mapscript. I have a point coverage with site locations. Each site can have multiple animal taxa and time periods associated. I therefore have a sites.dbf file with the following fields: 1 AREA N 12 3 2 PERIMETER N 12 3 3 SITES_ N 11 0 4 SITES_ID N 11 0 5 COUNTRY C 3 0 and a file with all the taxa and time records with the following fields: 1 SITES_ID N 5 0 2 TAXON C 6 0 3 AGE C 4 0 4 RESTAXON C 6 0 5 RIO C 3 0 I want to be able to make a map file which will just show sites with a particular taxon, and ultimately just that taxon from a particular age. I tried this: LAYER NAME sites TYPE POINT STATUS DEFAULT DATA sites CLASS SYMBOL 4 COLOR 255 0 0 NAME "BIbi Sites" EXPRESSION ([TAXON] = "BIbi") JOIN table "alltaxa.dbf" type single from "SITES_ID" to "SITES_ID" END # join END END But this doesn't work as Joins are to be used in queries, as I understand. I'm sure that what I want to do is possible, but I don't know how. eks --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From erich at museum.state.il.us Mon Nov 27 12:01:40 2000 From: erich at museum.state.il.us (Erich Schroeder) Date: Mon, 27 Nov 2000 14:01:40 -0600 (EST) Subject: Class with join (2) Message-ID: Hi again, I sort of got what I wanted by renaming my big taxon list to sites.dbf. Now the mapfile with: LAYER NAME sites TYPE POINT STATUS DEFAULT DATA sites CLASS SYMBOL 4 COLOR 255 0 0 NAME "BIbi Sites" EXPRESSION ("[TAXON]" = "BIbi") END END Does indeed give a subset of the full group of sites, but it looks like far fewer than I want. Since there are multiple taxon records per site, is the expression only being applied on the first record to match the shape file? Erich --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Mon Nov 27 13:00:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 27 Nov 2000 15:00:13 -0600 Subject: Class with join Message-ID: Um, nope. No joins are supported for classification purposes. You can only use directly attached attributes. This was done for performance reasons. It's technically feasible though. There are a couple of work arounds. The most straight forward would be assign a shape to each record in the taxa dataset. You'll have duplicate shapes (shapefile spec allows it) but with the maps you want to make that won't be an issue. You can use mapscript to build the shapefile using your taxa .dbf file as the new attribute table. Here's the approach 1) open sites shapefile and taxa dbf file 2) create a new taxa shapefile (type=point) 3) for each taxa record - find the appropriate shape in sites - read it from sites - write it to taxa It's redundant but space it cheap and it will certainly be a lot faster. You may also want to add some metrics to sites.dbf as you go like number of taxa, date range or whatever. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Erich Schroeder 11/27/00 01:46PM >>> Hi, I'm hoping that I can do this without mapscript. I have a point coverage with site locations. Each site can have multiple animal taxa and time periods associated. I therefore have a sites.dbf file with the following fields: 1 AREA N 12 3 2 PERIMETER N 12 3 3 SITES_ N 11 0 4 SITES_ID N 11 0 5 COUNTRY C 3 0 and a file with all the taxa and time records with the following fields: 1 SITES_ID N 5 0 2 TAXON C 6 0 3 AGE C 4 0 4 RESTAXON C 6 0 5 RIO C 3 0 I want to be able to make a map file which will just show sites with a particular taxon, and ultimately just that taxon from a particular age. I tried this: LAYER NAME sites TYPE POINT STATUS DEFAULT DATA sites CLASS SYMBOL 4 COLOR 255 0 0 NAME "BIbi Sites" EXPRESSION ([TAXON] = "BIbi") JOIN table "alltaxa.dbf" type single from "SITES_ID" to "SITES_ID" END # join END END But this doesn't work as Joins are to be used in queries, as I understand. I'm sure that what I want to do is possible, but I don't know how. eks --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab Internet: erich at museum.state.il.us http://www.museum.state.il.us/ --------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Mon Nov 27 13:23:15 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 27 Nov 2000 15:23:15 -0600 Subject: New mapping application Message-ID: Sweet. Hopefully your elections will go smoother than in the states. ;-) I really like the application in general- election results. I assume this will have a limited shelf so it's not worth adding to the demo page. I know you were doing some stress testing. How'd that come out? Steve Yes, the URL parameter switching is real handy. Use it all the time myself. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 11/27/00 11:24AM >>> Goodday, I just wanted to give everyone a heads-up. I've implemented a new mapping interface using Mapserver CGI to provide live up to the minute mapping of our federal election results as they come in. (Canadian Federal Election). You will be able to find a link here: http://atlas.gc.ca/english/facts/elections/elections2000/index.htm Click on Election 2000 Mapping. There currently are only Screen-Shots, the interface will go live sometime this afternoon, with data showing up sometime shortly after 10pm EST. Feedback is most welcome of course ! Sorry I've been so quiet lately, been working on this non-stop for a while. Hopefully I'll get back into the swing of things soon now (Such as the documentation project). And Stephen, that thing where you can set almost any Mapfile paramter with a structured URL parameter (map_layer_???) is very handy :) Great for implementing bi-lingual interfaces. Cheers, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada http://atlas.gc.ca (613) 992-4902 From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Nov 27 14:37:34 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 27 Nov 2000 17:37:34 -0500 Subject: New mapping application Message-ID: <2951561DB3DDD0118FEC00805FFE98050494210E@s5-ccr-r1> actually the tool will remain available in the future, we've got it , might as well use it :) Yes, I hope so too, I'm not too worried though, things don't work quite the same here, and we're not stuck with only two choices :) As for the load testing: On a Quad 400 with 512MB RAM and a RAID 0 Storage Sub-System, I got up to 250 maps/minute with 100 concurrent clients pouding the box, generating maps continuously. I was VERY happy with that result :) This was using the Election Interface/Map you've seen. There was no randomizing (Allways the default, full extent map, which basically is the worst case scenario). Under this load the map took about 5-7 seconds to show up. The mapscript versions worked well also. I don't have a number of maps on that, but I do know every once in a while an Apache child would bomb with a sig11 (tail -f'ing the error log). I suppose this is a SWIG thing ... Both Perl and PHP did this. I can't really compare to the CGI since they were different boxes. The server is RH 7.0 with the CVS mapserver. I was using Apache's JMeter to create the load, very cool tool. (http://java.apache.org/jmeter) Overall the CGI version gets my thumbs up, wayyyyyyy up. Another tool we use, died at 20 maps/minute on a dual 400 under NT4. Open Source wins yet again :) Sorry if this all seems add-hoc. The intent was never to do a truly disciplined benchmark, just to get an idea of perfromance and stability under load. Maybe I'll do somehting with a more "scientific" approach someday. Although if anybody out there cares, just get the tool I mentionned, makes the testing real easy :) Cheers, J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Monday, November 27, 2000 4:23 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > 'mapserver-users at lists.gis.umn.edu' > Subject: Re: New mapping application > > Sweet. Hopefully your elections will go smoother than in the states. ;-) I > really like > the application in general- election results. I assume this will have a > limited shelf so > it's not worth adding to the demo page. > > I know you were doing some stress testing. How'd that come out? > > Steve > > Yes, the URL parameter switching is real handy. Use it all the time > myself. > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 11/27/00 > 11:24AM >>> > Goodday, > > I just wanted to give everyone a heads-up. > > I've implemented a new mapping interface using Mapserver CGI to provide > live > up to the minute mapping of our federal election results as they come in. > (Canadian Federal Election). > > You will be able to find a link here: > > http://atlas.gc.ca/english/facts/elections/elections2000/index.htm > > Click on Election 2000 Mapping. > > There currently are only Screen-Shots, the interface will go live sometime > this afternoon, with data showing up sometime shortly after 10pm EST. > > Feedback is most welcome of course ! > > Sorry I've been so quiet lately, been working on this non-stop for a > while. > > Hopefully I'll get back into the swing of things soon now (Such as the > documentation project). > > And Stephen, that thing where you can set almost any Mapfile paramter with > a > structured URL parameter (map_layer_???) is very handy :) > Great for implementing bi-lingual interfaces. > > Cheers, > > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > http://atlas.gc.ca > (613) 992-4902 > > From johnh at erin.gov.au Mon Nov 27 16:07:47 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 28 Nov 2000 11:07:47 +1100 (EST) Subject: New mapping application Message-ID: <200011280007.LAA26278@eos.erin.gov.au> Jean-Francois, This looks very good. It is simple and yet portrays all the relevant information. I would like to see the code behind the scenes to this one. One suggestion might be to change the background colour for the two picklists at the top. It is hard for me to see the text in the pick lists on my Sun workstation. This may not be a problem on a PC. Thanks for the opportunity to see some work in progress. Johnh > From: "Doyon, Jean-Francois" > To: "'mapserver-users at lists.gis.umn.edu'" > Subject: New mapping application > Date: Mon, 27 Nov 2000 12:24:07 -0500 > MIME-Version: 1.0 > > Goodday, > > I just wanted to give everyone a heads-up. > > I've implemented a new mapping interface using Mapserver CGI to provide live > up to the minute mapping of our federal election results as they come in. > (Canadian Federal Election). > > You will be able to find a link here: > > http://atlas.gc.ca/english/facts/elections/elections2000/index.htm > > Click on Election 2000 Mapping. > > There currently are only Screen-Shots, the interface will go live sometime > this afternoon, with data showing up sometime shortly after 10pm EST. > > Feedback is most welcome of course ! > > Sorry I've been so quiet lately, been working on this non-stop for a while. > > Hopefully I'll get back into the swing of things soon now (Such as the > documentation project). > > And Stephen, that thing where you can set almost any Mapfile paramter with a > structured URL parameter (map_layer_???) is very handy :) > Great for implementing bi-lingual interfaces. > > Cheers, > > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > http://atlas.gc.ca > (613) 992-4902 > From kames at keyspanenergy.com Tue Nov 28 07:09:46 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 28 Nov 2000 10:09:46 -0500 Subject: Utility Questions References: Message-ID: <3A23CABA.A92871B5@keyspanenergy.com> Group, I have a couple of questions that I hope someone could help me with. 1. I have a utility called shpinfo, but I can't remember where I got it. It is Ver 1.1 07/15/96 It seems to have a problem with long file names and I was wondering if anyone knows of a more recent version or an easy work-around (before I re-invent the wheel). 2. I'm trying to make small image files on the fly. I'm also trying not have to maintain the housekeeping for small only-used-once map files or waste the time with the disk I/O activity. Can the utility shp2img be called from a script and given command-line parameters instead of pointing to a map file? I'm running WINNT 4.0 As usual... thanks to all for any assistance. Kieran From jrf at segovia.mit.edu Tue Nov 28 11:40:04 2000 From: jrf at segovia.mit.edu (John Frank) Date: Tue, 28 Nov 2000 14:40:04 -0500 (EST) Subject: New mapping application In-Reply-To: <2951561DB3DDD0118FEC00805FFE98050494210E@s5-ccr-r1> Message-ID: JF- Does mapserver use all the RAM? "100 concurrent clients" means its working on 100 maps simultaneously, right? With 100 maps rendering at any moment, I think that would be about 420MB. Is your "Quad 400" a four-processor machine with 400MHz Athlons? Or something else with a smaller cache? What is the bottleneck that increases the map delivery speed to 5-7 seconds? Is it processor limited? John On Mon, 27 Nov 2000, Doyon, Jean-Francois wrote: > actually the tool will remain available in the future, we've got it , might > as well use it :) > > Yes, I hope so too, I'm not too worried though, things don't work quite the > same here, and > we're not stuck with only two choices :) > > As for the load testing: > > On a Quad 400 with 512MB RAM and a RAID 0 Storage Sub-System, I got up to > 250 maps/minute with 100 concurrent clients pouding the box, generating maps > continuously. I was VERY happy with that result :) This was using the > Election Interface/Map you've seen. There was no randomizing (Allways the > default, full extent map, which basically is the worst case scenario). Under > this load the map took about 5-7 seconds to show up. > > The mapscript versions worked well also. I don't have a number of maps on > that, but I do know every once in a while an Apache child would bomb with a > sig11 (tail -f'ing the error log). I suppose this is a SWIG thing ... Both > Perl and PHP did this. I can't really compare to the CGI since they were > different boxes. > > The server is RH 7.0 with the CVS mapserver. > > I was using Apache's JMeter to create the load, very cool tool. > (http://java.apache.org/jmeter) > > Overall the CGI version gets my thumbs up, wayyyyyyy up. Another tool we > use, died at 20 maps/minute on a dual 400 under NT4. Open Source wins yet > again :) > > Sorry if this all seems add-hoc. The intent was never to do a truly > disciplined benchmark, just to get an idea of perfromance and stability > under load. Maybe I'll do somehting with a more "scientific" approach > someday. Although if anybody out there cares, just get the tool I > mentionned, makes the testing real easy :) > > Cheers, > J.F. > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Monday, November 27, 2000 4:23 PM > > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > > 'mapserver-users at lists.gis.umn.edu' > > Subject: Re: New mapping application > > > > Sweet. Hopefully your elections will go smoother than in the states. ;-) I > > really like > > the application in general- election results. I assume this will have a > > limited shelf so > > it's not worth adding to the demo page. > > > > I know you were doing some stress testing. How'd that come out? > > > > Steve > > > > Yes, the URL parameter switching is real handy. Use it all the time > > myself. > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Doyon, Jean-Francois" 11/27/00 > > 11:24AM >>> > > Goodday, > > > > I just wanted to give everyone a heads-up. > > > > I've implemented a new mapping interface using Mapserver CGI to provide > > live > > up to the minute mapping of our federal election results as they come in. > > (Canadian Federal Election). > > > > You will be able to find a link here: > > > > http://atlas.gc.ca/english/facts/elections/elections2000/index.htm > > > > Click on Election 2000 Mapping. > > > > There currently are only Screen-Shots, the interface will go live sometime > > this afternoon, with data showing up sometime shortly after 10pm EST. > > > > Feedback is most welcome of course ! > > > > Sorry I've been so quiet lately, been working on this non-stop for a > > while. > > > > Hopefully I'll get back into the swing of things soon now (Such as the > > documentation project). > > > > And Stephen, that thing where you can set almost any Mapfile paramter with > > a > > structured URL parameter (map_layer_???) is very handy :) > > Great for implementing bi-lingual interfaces. > > > > Cheers, > > > > > > Jean-Francois Doyon > > Internet Service Development and Systems Support > > GeoAccess Division > > Natural Resources Canada > > http://atlas.gc.ca > > (613) 992-4902 > > > > > From steve.lime at dnr.state.mn.us Tue Nov 28 13:17:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 28 Nov 2000 15:17:09 -0600 Subject: New mapping application Message-ID: My experience is that the MapServer tends to be IO bound, not memory bound. You can only force so many disk accesses at once... My guess is that with this type of application throwing more processors at the problem does little to boost performance. I'm curious what, if any, data preprocessing was done to expedite rendering? (i.e. data thining, pre-projection, spatial indexes) Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Frank 11/28/00 01:40PM >>> JF- Does mapserver use all the RAM? "100 concurrent clients" means its working on 100 maps simultaneously, right? With 100 maps rendering at any moment, I think that would be about 420MB. Is your "Quad 400" a four-processor machine with 400MHz Athlons? Or something else with a smaller cache? What is the bottleneck that increases the map delivery speed to 5-7 seconds? Is it processor limited? John On Mon, 27 Nov 2000, Doyon, Jean-Francois wrote: > actually the tool will remain available in the future, we've got it , might > as well use it :) > > Yes, I hope so too, I'm not too worried though, things don't work quite the > same here, and > we're not stuck with only two choices :) > > As for the load testing: > > On a Quad 400 with 512MB RAM and a RAID 0 Storage Sub-System, I got up to > 250 maps/minute with 100 concurrent clients pouding the box, generating maps > continuously. I was VERY happy with that result :) This was using the > Election Interface/Map you've seen. There was no randomizing (Allways the > default, full extent map, which basically is the worst case scenario). Under > this load the map took about 5-7 seconds to show up. > > The mapscript versions worked well also. I don't have a number of maps on > that, but I do know every once in a while an Apache child would bomb with a > sig11 (tail -f'ing the error log). I suppose this is a SWIG thing ... Both > Perl and PHP did this. I can't really compare to the CGI since they were > different boxes. > > The server is RH 7.0 with the CVS mapserver. > > I was using Apache's JMeter to create the load, very cool tool. > (http://java.apache.org/jmeter) > > Overall the CGI version gets my thumbs up, wayyyyyyy up. Another tool we > use, died at 20 maps/minute on a dual 400 under NT4. Open Source wins yet > again :) > > Sorry if this all seems add-hoc. The intent was never to do a truly > disciplined benchmark, just to get an idea of perfromance and stability > under load. Maybe I'll do somehting with a more "scientific" approach > someday. Although if anybody out there cares, just get the tool I > mentionned, makes the testing real easy :) > > Cheers, > J.F. > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Monday, November 27, 2000 4:23 PM > > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > > 'mapserver-users at lists.gis.umn.edu' > > Subject: Re: New mapping application > > > > Sweet. Hopefully your elections will go smoother than in the states. ;-) I > > really like > > the application in general- election results. I assume this will have a > > limited shelf so > > it's not worth adding to the demo page. > > > > I know you were doing some stress testing. How'd that come out? > > > > Steve > > > > Yes, the URL parameter switching is real handy. Use it all the time > > myself. > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Doyon, Jean-Francois" 11/27/00 > > 11:24AM >>> > > Goodday, > > > > I just wanted to give everyone a heads-up. > > > > I've implemented a new mapping interface using Mapserver CGI to provide > > live > > up to the minute mapping of our federal election results as they come in. > > (Canadian Federal Election). > > > > You will be able to find a link here: > > > > http://atlas.gc.ca/english/facts/elections/elections2000/index.htm > > > > Click on Election 2000 Mapping. > > > > There currently are only Screen-Shots, the interface will go live sometime > > this afternoon, with data showing up sometime shortly after 10pm EST. > > > > Feedback is most welcome of course ! > > > > Sorry I've been so quiet lately, been working on this non-stop for a > > while. > > > > Hopefully I'll get back into the swing of things soon now (Such as the > > documentation project). > > > > And Stephen, that thing where you can set almost any Mapfile paramter with > > a > > structured URL parameter (map_layer_???) is very handy :) > > Great for implementing bi-lingual interfaces. > > > > Cheers, > > > > > > Jean-Francois Doyon > > Internet Service Development and Systems Support > > GeoAccess Division > > Natural Resources Canada > > http://atlas.gc.ca > > (613) 992-4902 > > > > > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Nov 28 13:55:57 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 28 Nov 2000 16:55:57 -0500 Subject: New mapping application Message-ID: <2951561DB3DDD0118FEC00805FFE98050494211A@s5-ccr-r1> Under my test load, the system never swapped out actually. Everything was running in RAM. The CPU's were Pentium II Deschutes. Well, it's the morning after and things went OK overall. The server actually got brutally attacked ! (Almost crashed ! Linux ! Can it be ?) The OS started running out of File Handles, so I had to reduce the number of Apache clients, that helped. So far as I can tell, over the past 26 hours, 80 000 (Yes, eighty THOUSAND) maps were delivered to the clients ! We resleased results at 10PM local time, and the server was so slow it was barely usable for about 1.5 hours. After that things started running better. The first value of the load average was at 90 for a while ! It may have gone higher, I wasn't paying much attention to it. Do note that despite all this, it still only swapped out a couple of megs I think. My contention is that CPU power WAS the bottleneck here. But Mapserver ran fine, service, although very slow at times, was allways available (Unlike someother big canadians sites that completely crashed, like elections.ca and cbc.ca). Do note I was also using a heavily customized Apache ! No special data preprocessing was done. We were using standard shapefiles form our usual dataset (National Atlas 7.5 Million, available from Geogratis at http://geogratis.ccrs.nrcan.gc.ca), although I think some of the layers I had were modified and adapted to work at different zoom levels, some are more "dense" than others, have more features, but none were generalized specifically for this task. This is the same data Dan uses on the gm75 demo BTW. Cheers, J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Tuesday, November 28, 2000 4:17 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; jrf at segovia.mit.edu > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: New mapping application > > My experience is that the MapServer tends to be IO bound, not memory > bound. You can only force so many disk accesses at once... My guess is > that with this type of application throwing more processors at the problem > does little to boost performance. > > I'm curious what, if any, data preprocessing was done to expedite > rendering? (i.e. data thining, pre-projection, spatial indexes) > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> John Frank 11/28/00 01:40PM >>> > JF- > > Does mapserver use all the RAM? "100 concurrent clients" means its > working on 100 maps simultaneously, right? With 100 maps rendering at any > moment, I think that would be about 420MB. > > Is your "Quad 400" a four-processor machine with 400MHz Athlons? Or > something else with a smaller cache? > > What is the bottleneck that increases the map delivery speed to 5-7 > seconds? Is it processor limited? > > John > > > > > > > > On Mon, 27 Nov 2000, Doyon, Jean-Francois wrote: > > > actually the tool will remain available in the future, we've got it , > might > > as well use it :) > > > > Yes, I hope so too, I'm not too worried though, things don't work quite > the > > same here, and > > we're not stuck with only two choices :) > > > > As for the load testing: > > > > On a Quad 400 with 512MB RAM and a RAID 0 Storage Sub-System, I got up > to > > 250 maps/minute with 100 concurrent clients pouding the box, generating > maps > > continuously. I was VERY happy with that result :) This was using the > > Election Interface/Map you've seen. There was no randomizing (Allways > the > > default, full extent map, which basically is the worst case scenario). > Under > > this load the map took about 5-7 seconds to show up. > > > > The mapscript versions worked well also. I don't have a number of maps > on > > that, but I do know every once in a while an Apache child would bomb > with a > > sig11 (tail -f'ing the error log). I suppose this is a SWIG thing ... > Both > > Perl and PHP did this. I can't really compare to the CGI since they were > > different boxes. > > > > The server is RH 7.0 with the CVS mapserver. > > > > I was using Apache's JMeter to create the load, very cool tool. > > (http://java.apache.org/jmeter) > > > > Overall the CGI version gets my thumbs up, wayyyyyyy up. Another tool we > > use, died at 20 maps/minute on a dual 400 under NT4. Open Source wins > yet > > again :) > > > > Sorry if this all seems add-hoc. The intent was never to do a truly > > disciplined benchmark, just to get an idea of perfromance and stability > > under load. Maybe I'll do somehting with a more "scientific" approach > > someday. Although if anybody out there cares, just get the tool I > > mentionned, makes the testing real easy :) > > > > Cheers, > > J.F. > > > > > ---------- > > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > > Sent: Monday, November 27, 2000 4:23 PM > > > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > > > 'mapserver-users at lists.gis.umn.edu' > > > Subject: Re: New mapping application > > > > > > Sweet. Hopefully your elections will go smoother than in the states. > ;-) I > > > really like > > > the application in general- election results. I assume this will have > a > > > limited shelf so > > > it's not worth adding to the demo page. > > > > > > I know you were doing some stress testing. How'd that come out? > > > > > > Steve > > > > > > Yes, the URL parameter switching is real handy. Use it all the time > > > myself. > > > > > > Stephen Lime > > > Internet Applications Analyst > > > > > > Minnesota DNR > > > 500 Lafayette Road > > > St. Paul, MN 55155 > > > 651-297-2937 > > > > > > >>> "Doyon, Jean-Francois" > 11/27/00 > > > 11:24AM >>> > > > Goodday, > > > > > > I just wanted to give everyone a heads-up. > > > > > > I've implemented a new mapping interface using Mapserver CGI to > provide > > > live > > > up to the minute mapping of our federal election results as they come > in. > > > (Canadian Federal Election). > > > > > > You will be able to find a link here: > > > > > > http://atlas.gc.ca/english/facts/elections/elections2000/index.htm > > > > > > Click on Election 2000 Mapping. > > > > > > There currently are only Screen-Shots, the interface will go live > sometime > > > this afternoon, with data showing up sometime shortly after 10pm EST. > > > > > > Feedback is most welcome of course ! > > > > > > Sorry I've been so quiet lately, been working on this non-stop for a > > > while. > > > > > > Hopefully I'll get back into the swing of things soon now (Such as the > > > documentation project). > > > > > > And Stephen, that thing where you can set almost any Mapfile paramter > with > > > a > > > structured URL parameter (map_layer_???) is very handy :) > > > Great for implementing bi-lingual interfaces. > > > > > > Cheers, > > > > > > > > > Jean-Francois Doyon > > > Internet Service Development and Systems Support > > > GeoAccess Division > > > Natural Resources Canada > > > http://atlas.gc.ca > > > (613) 992-4902 > > > > > > > > > > From scott at esrp.org Tue Nov 28 15:37:21 2000 From: scott at esrp.org (Scott Phillips) Date: Tue, 28 Nov 2000 15:37:21 -0800 Subject: 8 bit greyscale images look like 4 bit Message-ID: <3A2441B1.3DAA5AF@esrp.org> Hello all, I am setting up a new server with tiles of 8 bit greyscale images (landsat 7 panchromatic). Although the images are 255 color, they are looking like 16 color images on the screen. I have tried converting them to palleted color (with shades of gray), upgrading to GD1.8.3, and converting the images from TIFF to EPPL, but I get the same results. Are the images being cut down in colors in "mapraster.c" or somewhere. If so, does anyone know of a workaround to let the images show up in 8 bit color. Thanks, Scott Phillips CSUS/ESRP sphillip at esrp.org From bfraser at geoanalytic.com Tue Nov 28 16:04:54 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 28 Nov 2000 17:04:54 -0700 Subject: Utility Questions References: <3A23CABA.A92871B5@keyspanenergy.com> Message-ID: <008701c05998$00bfe150$390002c0@servo> Kieran, 1. Shpinfo is part of the "contrib" directory of shapelib. I'll send you a copy of the exe file. It seems to work with long file names. (I've used it on NT 4.0) 2. You can invoke shp2img from a batch file. What scripting language were you planning to use? You must give it a map file name but you can over-ride on the commandline some of the map file settings: The syntax is documented as: shp2img -m [mapfile] -o [image] -t -l [layers] There is also an undocumented option to set the extents from the commandline: -e minx miny maxx maxy And an option to substute a different data file for a layer (can be used multiple times): -d Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Kieran J. Ames" To: Sent: Tuesday, November 28, 2000 8:09 AM Subject: Utility Questions > Group, > I have a couple of questions that I hope someone could help me with. > > 1. I have a utility called shpinfo, but I can't remember where I got it. It is Ver 1.1 > 07/15/96 > It seems to have a problem with long file names and I was wondering if anyone knows of a > more recent version or an easy work-around (before I re-invent the wheel). > > 2. I'm trying to make small image files on the fly. I'm also trying not have to maintain > the housekeeping for small only-used-once map files or waste the time with the disk I/O > activity. Can the utility shp2img be called from a script and given command-line > parameters instead of pointing to a map file? > > I'm running WINNT 4.0 > > As usual... thanks to all for any assistance. > Kieran > From Tim.Mackey at agso.gov.au Tue Nov 28 16:40:27 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Wed, 29 Nov 2000 11:40:27 +1100 Subject: 8 bit greyscale images look like 4 bit Message-ID: <52113C81E9ACD31182D40060B0570D9B022F4ED7@agsomail1.agso.gov.au> Hi, I also had problems with greyscale images appearing to only have a few (about 4) shades of grey. Other colours (muddy browns and greens) were then substituted for the other shades of grey. After delving into the code, it looks like the colour palette is created when the map file is parsed. Therefore, the 256 colours of the palette are spread amongst all of the colours defined in the map file (whether these are active layers or not). To make my greyscale images appear ok (without brown or green tinges), I changed the following code in mapfile.c: I replaced this line: map->palette.numcolors = 0; with: for(int i=0;i<16;i++) { map->palette.colors[i].red=i*16; map->palette.colors[i].green=i*16; map->palette.colors[i].blue=i*16; } map->palette.numcolors=16; This gave my greyscale at least 16 colours to choose from. Not perfect, but better than previous. Still plenty of palette left for the other colours. In my application (http://www.agso.gov.au/map/national) I have over 100 layers (1500 classes) in the map file so there is lots of colour substitution going on. As a development request, it would be much better if the palette were constructed from active layers only - Steve? regards, Tim Mackey Web Applications Developer email: tim.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 Australian Geological Survey Organisation (Geoscience Australia) ABN: 80 091 799 039 http://www.agso.gov.au/ -----Original Message----- From: Scott Phillips [mailto:scott at esrp.org] Sent: Wednesday, 29 November 2000 10:37 To: mapserver-users at lists.gis.umn.edu Subject: 8 bit greyscale images look like 4 bit Hello all, I am setting up a new server with tiles of 8 bit greyscale images (landsat 7 panchromatic). Although the images are 255 color, they are looking like 16 color images on the screen. I have tried converting them to palleted color (with shades of gray), upgrading to GD1.8.3, and converting the images from TIFF to EPPL, but I get the same results. Are the images being cut down in colors in "mapraster.c" or somewhere. If so, does anyone know of a workaround to let the images show up in 8 bit color. Thanks, Scott Phillips CSUS/ESRP sphillip at esrp.org From steve.lime at dnr.state.mn.us Tue Nov 28 19:55:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 28 Nov 2000 21:55:57 -0600 Subject: 8 bit greyscale images look like 4 bit Message-ID: The programmer that developed much of the raster code made the decision to use 4 bit greyscale instead of 8. That was based on previous experience with that type of data. Works great with DOQs here in the states but obviously has limitations. The work around (other than to hack the code) is to convert from greyscale to paletted (with a greyscale palette). Colors in the mapfile are pre-allocated regardless of layer state. I did that initially to avoid caching colors thus keeping the C structures a bit cleaner and then when 24-bit output happens it's just a type change. Normally that's not much of an issue. Note that raster colors are added only if processed and because of the way the labels are processed antialiasing only eats colors at the very end of the palette. I'll look into some alternatives. Steve >>> 11/28/00 18:41 PM >>> Hi, I also had problems with greyscale images appearing to only have a few (about 4) shades of grey. Other colours (muddy browns and greens) were then substituted for the other shades of grey. After delving into the code, it looks like the colour palette is created when the map file is parsed. Therefore, the 256 colours of the palette are spread amongst all of the colours defined in the map file (whether these are active layers or not). To make my greyscale images appear ok (without brown or green tinges), I changed the following code in mapfile.c: I replaced this line: map->palette.numcolors = 0; with: for(int i=0;i<16;i++) { map->palette.colors[i].red=i*16; map->palette.colors[i].green=i*16; map->palette.colors[i].blue=i*16; } map->palette.numcolors=16; This gave my greyscale at least 16 colours to chooe from. Not perfect, but better than previous. Still plenty of palette left for the other colours. In my application (http://www.agso.gov.au/map/national) I have over 100 layers (1500 classes) in the map file so there is lots of colour substitution going on. As a development request, it would be much better if the palette were constructed from active layers only - Steve? regards, Tim Mackey Web Applications Developer email: tim.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 Australian Geological Survey Organisation (Geoscience Australia) ABN: 80 091 799 039 http://www.agso.gov.au/ -----Original Message----- From: Scott Phillips [mailto:scott at esrp.org] Sent: Wednesday, 29 November 2000 10:37 To: mapserver-users at lists.gis.umn.edu Subject: 8 bit greyscale images look like 4 bit Hello all, I am setting up a new server with tiles of 8 bit greyscale images (landsat 7 panchromatic). Although the images are 255 color, they are looking like 16 color images on the screen. I have tried converting them to palleted color (with shades of gray), upgrading to GD1.8.3, and converting the images from TIFF to EPPL, but I get the same results. Are the images being cut down in colors in "mapraster.c" or somewhere. If so, does anyone know of a workaround to let the images show up in 8 bit color. Thanks, Scott Phillips CSUS/ESRP sphillip at esrp.org From carlson14 at llnl.gov Wed Nov 29 00:36:10 2000 From: carlson14 at llnl.gov (John Carlson) Date: Wed, 29 Nov 2000 00:36:10 -0800 Subject: hanging on queries Message-ID: <4.2.0.58.20001129002929.00a388a0@popcorn.llnl.gov> Some of my queries seem to take too long to finish, and I am left with mapserv processes running when I stop the browser. Has anyone else experienced this? I am on solaris 2.6 using 3.3.011. Queries outside the map area (above the north pole) work fine! John From gruecker at zebris-geoconsult.de Wed Nov 29 01:53:19 2000 From: gruecker at zebris-geoconsult.de (Gernot Ruecker) Date: Wed, 29 Nov 2000 10:53:19 +0100 Subject: Mapscript question Message-ID: <009e01c059eb$41ff2240$0101a8c0@gernot> Hi, I am trying to use mapscript for perl and don't really now how to get the module running. Do I have to swig it for use ? How do I do this ? Another question: On the mapserver homepage they say that mapserver could also access ESRI SDE data? Are there any experiences with this ? We're working with ArcSDE for Oracle 8i. Thanks a lot for your help. Bye Gernot P.S. I very much liked the mapping application for the Canadian elections. Mapserver seems to be quite enduring. Gernot Ruecker ZEBRIS GbR Geoinformationssysteme und Consulting Lipowskystr. 26 D-81373 Muenchen Tel.: +49-89-58998886 Fax: +49-89-58958653 e-mail: gruecker at zebris-geoconsult.de http://www.zebris.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.armstrong at ntlworld.com Wed Nov 29 04:15:43 2000 From: david.armstrong at ntlworld.com (David Armstrong) Date: Wed, 29 Nov 2000 12:15:43 -0000 Subject: configuring demo under windows 2k help request Message-ID: <003701c059fe$199f4f10$0100a8c0@david> just installed mapserver 3.3.0.12 (gif binaries for windows) & the ms_demo package under windows 2000 IIS i am having problems with the configuration of the demo , it may be a permissions issue . running demo_init.html i get the error : msLoadmap():unknown identifier (shadeset):(7) although the symbols directory and sym files are there SHADESET "F:\inetpub\wwwroot\ms_demo\symbols\line.sym" anyone point me in the right direction ? dave From morissette at dmsolutions.ca Wed Nov 29 05:36:05 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 29 Nov 2000 08:36:05 -0500 Subject: configuring demo under windows 2k help request References: <003701c059fe$199f4f10$0100a8c0@david> Message-ID: <3A250645.6519FCF0@dmsolutions.ca> David Armstrong wrote: > > running demo_init.html > i get the error : > msLoadmap():unknown identifier (shadeset):(7) > > although the symbols directory and sym files are there > SHADESET "F:\inetpub\wwwroot\ms_demo\symbols\line.sym" > See: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/msg00027.html I think this is becoming one of the most common FAQ... could a note about the change in symbols between 3.3.011 and the current version be added to the demo documentation (http://mapserver.gis.umn.edu/demo_readme.html#error) and/or a demo for 3.3.012 be posted on the web site? Thanks, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From carlson14 at llnl.gov Wed Nov 29 07:01:09 2000 From: carlson14 at llnl.gov (John Carlson) Date: Wed, 29 Nov 2000 07:01:09 -0800 Subject: hanging on queries In-Reply-To: <4.2.0.58.20001129002929.00a388a0@popcorn.llnl.gov> Message-ID: <4.2.0.58.20001129065750.00b213a0@popcorn.llnl.gov> I now just use query multiple features. Now if I get two hits from different QUERY TEMPLATEs, each QUERY TEMPLATE is included twice. At 12:36 AM 11/29/00 -0800, John Carlson wrote: >Some of my queries seem to take too long to finish, >and I am left with mapserv processes running when >I stop the browser. Has anyone else experienced this? >I am on solaris 2.6 using 3.3.011. Queries outside the map >area (above the north pole) work fine! > >John From rchavez at perseus.tufts.edu Wed Nov 29 07:05:42 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 29 Nov 2000 10:05:42 -0500 Subject: Rosa applet question References: <2951561DB3DDD0118FEC00805FFE98050494211A@s5-ccr-r1> Message-ID: <000501c05a15$d7cc08e0$38024082@perseus.tufts.edu> I've been playing around with the DMSolutions Rosa applet and am having some trouble getting it set up properly. I've been getting some java errors that I haven't seen before and I was wondering if anyone had some suggestions as to what the problem is. I'm running this on Red Hat Linux 6.2 using jdk1.2.2, but I've also tried jdk1.1.7v3 and got the same results. Paths and classpaths are fine, and netscape's java40.jar is in the correct place and in the class path. The HTML is generated from a CGI script, so I've moved the jar and class files into the cgi-bin under the assumption that this is where they need to be. I'm no applet guru, so I've probably just overlooked something obvious. Any ideas? Thanks, Rob Chavez Programmer/GIS Specialist Perseus Project Here's my applet HTML code, I haven't appended the whole HTML file here as it's quite long: The error messages are the following (from the Netscape java console): Netscape Communications Corporation -- Java 1.1.5 Type '?' for options. Symantec Java! ByteCode Compiler Version 210.065 Copyright (C) 1996-97 Symantec Corporation java.io.IOException: at netscape.net.URLConnection.connect(Compiled Code) at netscape.net.URLConnection.getInputStream(Compiled Code) * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code) at netscape.applet.AppletClassLoader.openArchive(Compiled Code) at netscape.applet.AppletClassLoader.openArchive(Compiled Code) at netscape.applet.AppletClassLoader.(Compiled Code) at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code) at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code) # Unable to load archive /cgi-bin/rosa.jar: java.io.IOException: # Applet exception: class Rosa2000 could not be loaded From carlson14 at llnl.gov Wed Nov 29 07:13:19 2000 From: carlson14 at llnl.gov (John Carlson) Date: Wed, 29 Nov 2000 07:13:19 -0800 Subject: Fwd: Re: hanging on queries Message-ID: <4.2.0.58.20001129071151.00b229b0@popcorn.llnl.gov> Operator error. sorry! John >I now just use query multiple features. Now if I get two hits from different >QUERY TEMPLATEs, each QUERY TEMPLATE is included twice. > >At 12:36 AM 11/29/00 -0800, John Carlson wrote: >>Some of my queries seem to take too long to finish, >>and I am left with mapserv processes running when >>I stop the browser. Has anyone else experienced this? >>I am on solaris 2.6 using 3.3.011. Queries outside the map >>area (above the north pole) work fine! >> >>John From benlewis1 at hotmail.com Wed Nov 29 15:39:03 2000 From: benlewis1 at hotmail.com (Ben Lewis) Date: Wed, 29 Nov 2000 15:39:03 Subject: large volumes of imagery Message-ID: An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Nov 29 07:56:11 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Nov 2000 09:56:11 -0600 Subject: configuring demo under windows 2k help request Message-ID: David and all: The new version has a bunch of changes in symbols. A few things are still changing (for the better) To use it the nightly builds you need to make the following changes to your symbol files. Note that the use of named symbols is highly recommended. 1) edit each symbol file and remove the first line (e.g. MARKERSET) and the last "END". 2) "cat" the files together into a single file 3) in the mapfile remove the 3 symbol set lines and replace them with SYMBOLSET "yourfile" That should do it. This will be documented further when the new release is ready. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 11/29/00 06:15AM >>> just installed mapserver 3.3.0.12 (gif binaries for windows) & the ms_demo package under windows 2000 IIS i am having problems with the configuration of the demo , it may be a permissions issue . running demo_init.html i get the error : msLoadmap():unknown identifier (shadeset):(7) although the symbols directory and sym files are there SHADESET "F:\inetpub\wwwroot\ms_demo\symbols\line.sym" anyone point me in the right direction ? dave From steve.lime at dnr.state.mn.us Wed Nov 29 08:05:29 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Nov 2000 10:05:29 -0600 Subject: configuring demo under windows 2k help request Message-ID: I will when the changes are finished. I'm adding TrueType lines now and want to wait until that's complete before publishing anything else. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 11/29/00 07:36AM >>> David Armstrong wrote: > > running demo_init.html > i get the error : > msLoadmap():unknown identifier (shadeset):(7) > > although the symbols directory and sym files are there > SHADESET "F:\inetpub\wwwroot\ms_demo\symbols\line.sym" > See: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/msg00027.html I think this is becoming one of the most common FAQ... could a note about the change in symbols between 3.3.011 and the current version be added to the demo documentation (http://mapserver.gis.umn.edu/demo_readme.html#error) and/or a demo for 3.3.012 be posted on the web site? Thanks, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed Nov 29 08:15:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Nov 2000 10:15:09 -0600 Subject: large volumes of imagery Message-ID: I've got statewide DOQs (3m geotiff) available from within mapserver. Total volume is 24.6Gb. The data is managed as a single layer using a shapefile tile index. Each image is a record in the shapefile with the shape being the image coverage. Works nice. Performance suffers if you look at portions of more than 8 images at once. On large shapefiles use of a similar tiling scheme or the spatial indexing is recommended. Realize that currently you can't query tiled data. Stefve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ben Lewis" 11/29/00 03:39PM >>> MapServer Users, I plan to make about 10 gb of grey scale orthos available for a county along with the parcel data, and wanted to check with those who have experience in this area. The method that I'm familiar with would require listing all orthos as layers in the map file. Can I list multiple datasets within a layer? I would specify a max scale of course. Is this the best way to handle a large image dataset? Also has anyone queried a shape file using mapserver which has over 300k polygons? Is the response reasonable. I assume shapetree would be very useful here. Thank you. Ben Lewis Advanced Technology Solutions, Inc. Lancaster, Pennsylvania Phone:(717)399-7007 http://www.atsincorp.com From steve.lime at dnr.state.mn.us Wed Nov 29 08:23:17 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Nov 2000 10:23:17 -0600 Subject: Mapscript question Message-ID: Assuming you on a unix box. Just 'cd' to the mapscript/perl directory and do your normal: perl Makefile.PL make make install You don't need swig. If your nabbing the distribution directly from the CVS then you will need swig. Again, 'cd' to mapscript/perl and do: cp ../mapscript.i . swig -perl5 -shadow mapscript.i perl Makefile.PL make make install MapScript has not be compiled for Win32 so you're on your own there. As for SDE. Support is limited to rendering SDE layers. Queries of SDE are not yet supported but should be in the near future. SDE version 8.x libraries are expected... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Gernot Ruecker" 11/29/00 03:53AM >>> Hi, I am trying to use mapscript for perl and don't really now how to get the module running. Do I have to swig it for use ? How do I do this ? Another question: On the mapserver homepage they say that mapserver could also access ESRI SDE data? Are there any experiences with this ? We're working with ArcSDE for Oracle 8i. Thanks a lot for your help. Bye Gernot P.S. I very much liked the mapping application for the Canadian elections. Mapserver seems to be quite enduring. Gernot Ruecker ZEBRIS GbR Geoinformationssysteme und Consulting Lipowskystr. 26 D-81373 Muenchen Tel.: +49-89-58998886 Fax: +49-89-58958653 e-mail: gruecker at zebris-geoconsult.de http://www.zebris.com From michalak at hwr.arizona.edu Wed Nov 29 08:46:48 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Wed, 29 Nov 2000 09:46:48 -0700 (MST) Subject: Rosa applet question In-Reply-To: <000501c05a15$d7cc08e0$38024082@perseus.tufts.edu> Message-ID: Rob- I don't think the rosa applet code will work from the cgi-bin. I have it in the same directory with our HTML files, in a directory called "rosa". I link to it in the .php3 file like this: printf("\n", $gpoMap->width, $gpoMap->height); ********************************** Zolla Michalak Support Systems Analyst Hydrology and Water Resources University of Arizona michalak at hwr.arizona.edu (520) 626-8521 FAX: (520) 626-2488 http://hydis.hwr.arizona.edu ********************************** On Wed, 29 Nov 2000, Robert Chavez wrote: > I've been playing around with the DMSolutions Rosa applet and am having some > trouble getting it set up properly. I've been getting some java errors that > I haven't seen before and I was wondering if anyone had some suggestions as > to what the problem is. > > I'm running this on Red Hat Linux 6.2 using jdk1.2.2, but I've also tried > jdk1.1.7v3 and got the same results. Paths and classpaths are fine, and > netscape's java40.jar is in the correct place and in the class path. The > HTML is generated from a CGI script, so I've moved the jar and class files > into the cgi-bin under the assumption that this is where they need to be. > > I'm no applet guru, so I've probably just overlooked something obvious. Any > ideas? > Thanks, > Rob Chavez > Programmer/GIS Specialist > Perseus Project > > Here's my applet HTML code, I haven't appended the whole HTML file here as > it's quite long: > > WIDTH="600" HEIGHT="400" MAYSCRIPT> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The error messages are the following (from the Netscape java console): > > Netscape Communications Corporation -- Java 1.1.5 > Type '?' for options. > Symantec Java! ByteCode Compiler Version 210.065 > Copyright (C) 1996-97 Symantec Corporation > java.io.IOException: > at netscape.net.URLConnection.connect(Compiled Code) > at netscape.net.URLConnection.getInputStream(Compiled Code) > * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code) > at netscape.applet.AppletClassLoader.openArchive(Compiled Code) > at netscape.applet.AppletClassLoader.openArchive(Compiled Code) > at netscape.applet.AppletClassLoader.(Compiled Code) > at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code) > at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled > Code) > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) > at java.awt.EventDispatchThread.run(Compiled Code) > at > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled > Code) > # Unable to load archive /cgi-bin/rosa.jar: java.io.IOException: > # Applet exception: class Rosa2000 could not be loaded > > From wenzel at bulwien.de Wed Nov 29 08:49:10 2000 From: wenzel at bulwien.de (Franziska Wenzel) Date: Wed, 29 Nov 2000 17:49:10 +0100 Subject: query: wrong results Message-ID: <3A253386.A9B612B3@bulwien.de> For testing purposes I've managed to get a map with London Boroughs (area) and tube stations (points) displayed, on mapserver 3.3.011 for Linux. But when I do a query on objects, either the borough layer or the tube layer, I sometimes get wrong results. Tolerance for points is 5 and for area is null. Within one borough different results are possible, a right one and wrong ones which names the neigbouring borough. Any idea why this happens? Is something wrong with my * coordinates (both maps and display are in carthesic coordinates) * dbf-file or anything else known to cause this problem? Thanks Franziska From assefa at dmsolutions.ca Wed Nov 29 10:22:54 2000 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 29 Nov 2000 13:22:54 -0500 Subject: Rosa applet question References: <2951561DB3DDD0118FEC00805FFE98050494211A@s5-ccr-r1> <000501c05a15$d7cc08e0$38024082@perseus.tufts.edu> Message-ID: <3A25497D.98AA2793@dmsolutions.ca> Hi There, I think the problem is with the setting of the IMG_URL parameter : It should be something like I will update the rosa applet so that an appropriate error message will be displayed if the image is not found. As for the location of the rosa.jar, it should (based on your html) be placed in the same directory as your html file. Please let me know how it goes, Later, Robert Chavez wrote: > I've been playing around with the DMSolutions Rosa applet and am having some > trouble getting it set up properly. I've been getting some java errors that > I haven't seen before and I was wondering if anyone had some suggestions as > to what the problem is. > > I'm running this on Red Hat Linux 6.2 using jdk1.2.2, but I've also tried > jdk1.1.7v3 and got the same results. Paths and classpaths are fine, and > netscape's java40.jar is in the correct place and in the class path. The > HTML is generated from a CGI script, so I've moved the jar and class files > into the cgi-bin under the assumption that this is where they need to be. > > I'm no applet guru, so I've probably just overlooked something obvious. Any > ideas? > Thanks, > Rob Chavez > Programmer/GIS Specialist > Perseus Project > > Here's my applet HTML code, I haven't appended the whole HTML file here as > it's quite long: > > WIDTH="600" HEIGHT="400" MAYSCRIPT> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The error messages are the following (from the Netscape java console): > > Netscape Communications Corporation -- Java 1.1.5 > Type '?' for options. > Symantec Java! ByteCode Compiler Version 210.065 > Copyright (C) 1996-97 Symantec Corporation > java.io.IOException: > at netscape.net.URLConnection.connect(Compiled Code) > at netscape.net.URLConnection.getInputStream(Compiled Code) > * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code) > at netscape.applet.AppletClassLoader.openArchive(Compiled Code) > at netscape.applet.AppletClassLoader.openArchive(Compiled Code) > at netscape.applet.AppletClassLoader.(Compiled Code) > at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code) > at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled > Code) > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) > at java.awt.EventDispatchThread.run(Compiled Code) > at > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled > Code) > # Unable to load archive /cgi-bin/rosa.jar: java.io.IOException: > # Applet exception: class Rosa2000 could not be loaded -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From cameron at socialchange.net.au Wed Nov 29 13:23:19 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Thu, 30 Nov 2000 08:23:19 +1100 Subject: Utility Questions References: <3A23CABA.A92871B5@keyspanenergy.com> <008701c05998$00bfe150$390002c0@servo> Message-ID: <3A2573C7.AABED653@socialchange.net.au> Yes, and the main page of shapelib can be found at: http://gdal.velocet.ca/projects/shapelib/index.html Brent Fraser wrote: > > Kieran, > > 1. Shpinfo is part of the "contrib" directory of shapelib. I'll send you a > copy of the exe file. It seems to work with long file names. (I've used it > on NT 4.0) > > 2. You can invoke shp2img from a batch file. What scripting language were > you planning to use? You must give it a map file name but you can over-ride > on the commandline some of the map file settings: > > The syntax is documented as: > shp2img -m [mapfile] -o [image] -t -l [layers] > > There is also an undocumented option to set the extents from the > commandline: > -e minx miny maxx maxy > > And an option to substute a different data file for a layer (can be used > multiple times): > -d > > Brent Fraser > bfraser at geoanalytic.com > GeoAnalytic Inc. > #300 , 700 - 4th Avenue SW Calgary, AB > Canada T2P 3J4 > Tel: (403)213-2700 Fax: (403)213-2707 > www.geoanalytic.com > > ----- Original Message ----- > From: "Kieran J. Ames" > To: > Sent: Tuesday, November 28, 2000 8:09 AM > Subject: Utility Questions > > > Group, > > I have a couple of questions that I hope someone could help me with. > > > > 1. I have a utility called shpinfo, but I can't remember where I got it. > It is Ver 1.1 > > 07/15/96 > > It seems to have a problem with long file names and I was wondering if > anyone knows of a > > more recent version or an easy work-around (before I re-invent the wheel). > > > > 2. I'm trying to make small image files on the fly. I'm also trying not > have to maintain > > the housekeeping for small only-used-once map files or waste the time with > the disk I/O > > activity. Can the utility shp2img be called from a script and given > command-line > > parameters instead of pointing to a map file? > > > > I'm running WINNT 4.0 > > > > As usual... thanks to all for any assistance. > > Kieran > > -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://online.socialchange.net.au From tpoindex at nyx.net Wed Nov 29 13:41:35 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Wed, 29 Nov 2000 14:41:35 -0700 Subject: Mapscript Tcl interface: call for testers/developers Message-ID: <20001129144135.18172@nyx.net> I have a package of a Mapscript Tcl interface and some tools that I have built using it ready for testing. If you would like to try it out, send me an email, and I'll mail the package to you. I've also sent Stephen the package to include in the CVS tree. For a sample of the tools I'm writing with Mapscript Tcl, check out: http://www.nyx.net/~tpoindex/mapserver_tools.jpg It's my 'Mapserver Workbench' - tree structured editor, realtime mapfile viewer (no html, cgi, or web server required [thanks to Peter deVoil!]), and a small shapefile explorer. The three are separate programs, but can launch and interact with each other. Comments and bug report are welcome. Bug reports with fixes are especially welcome. You'll need the nightly snaphot of Mapserver '3.3.012 pre-release' and Tcl 8.3.2. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From morissette at dmsolutions.ca Wed Nov 29 14:35:13 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 29 Nov 2000 17:35:13 -0500 Subject: Mapscript Tcl interface: call for testers/developers References: <20001129144135.18172@nyx.net> Message-ID: <3A2584A1.961011E@dmsolutions.ca> Tom, Wow! Looks really cool! Please send me a copy! BTW, before someone else asks (the usual question)... does it work on Windows? :) (I guess the real question is: has the TCL MapScript been compiled on Windows?) I personnally run Linux, but that would be really great if that tool could run on Windows too! Thanks. Daniel Tom Poindexter wrote: > > I have a package of a Mapscript Tcl interface and some tools that I have built > using it ready for testing. If you would like to try it out, send me an > email, and I'll mail the package to you. I've also sent Stephen the package > to include in the CVS tree. > > For a sample of the tools I'm writing with Mapscript Tcl, check out: > http://www.nyx.net/~tpoindex/mapserver_tools.jpg > > It's my 'Mapserver Workbench' - tree structured editor, realtime mapfile > viewer (no html, cgi, or web server required [thanks to Peter deVoil!]), and a > small shapefile explorer. The three are separate programs, but can > launch and interact with each other. > > Comments and bug report are welcome. Bug reports with fixes are especially > welcome. > > You'll need the nightly snaphot of Mapserver '3.3.012 pre-release' > and Tcl 8.3.2. > > -- > Tom Poindexter > tpoindex at nyx.net > http://www.nyx.net/~tpoindex/ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From tpoindex at nyx.net Wed Nov 29 14:49:17 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Wed, 29 Nov 2000 15:49:17 -0700 Subject: Mapscript Tcl interface: call for testers/developers In-Reply-To: <3A2584A1.961011E@dmsolutions.ca>; from Daniel Morissette on Wed, Nov 29, 2000 at 05:35:13PM -0500 References: <20001129144135.18172@nyx.net> <3A2584A1.961011E@dmsolutions.ca> Message-ID: <20001129154917.13582@nyx.net> On Wed, Nov 29, 2000 at 05:35:13PM -0500, Daniel Morissette wrote: > BTW, before someone else asks (the usual question)... does it work on > Windows? :) (I guess the real question is: has the TCL MapScript been > compiled on Windows?) Nothing is really preventing it from running on windows, except I haven't built it there or made a Makefile. Tcl/Tk is notoriously portable between Unix, Windows, & Mac. I don't have a good Windows build environment, but I see many folks are building Tcl/Tk extensions by using cross-compilation tools on Linux. The 'send' commands in the ms*tcl program would also need to be changed to use the builtin 'dde'. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From Matt.Wilkie at gov.yk.ca Wed Nov 29 15:39:26 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 29 Nov 2000 15:39:26 -0800 Subject: mapserver on AOLserver? Message-ID: <6DD7370C9452D31192A10008C75D075307762C45@raptor.gov.yk.ca> Has anybody tried to get mapserver working with AOLServer instead of Apache? Just wondering; I've been reading some threads at OpenACS.org and idyll.org and I'm beginning to think more and more that AOLServer might be better for us in the long run. http://pywx.idyll.org/advocacy/index.html http://openacs.org/bboard/search-entire-system.tcl?query_string=apache%20vs% 20aolserver&submit=submit (user: 'cypherpunks at mydeja.com', pw: 'cypherpunks' if you don't want to create your own free account.) cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From Robin.Ellis at dnr.qld.gov.au Wed Nov 29 18:16:55 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Thu, 30 Nov 2000 12:16:55 +1000 Subject: changing map file variables Message-ID: Hello. I'm attempting to change the query template for a specified layer in my mapfile on the fly using a hidden form variable. I have been able to do this type of thing successfully for data sources etc of layers within my mapfile, but I can't get the query template to change. Here's the 2 form variable names I've tried (for a layer named 'areas' that has a query template intially set to 'reg1javdisplay.html'): and Neither of these options is working at this stage, however I know that the form input variable is being sent to mapserver by reading the URL. Does anybody know of the appropriate string to use in order to access the query template, or is this attribute of a layer un-changeable? I'm using MS 3.3003 on a UNIX platform. Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From jef.mony at free.fr Thu Nov 30 02:36:31 2000 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Thu, 30 Nov 2000 11:36:31 +0100 (MET) Subject: No subject Message-ID: <975580591.3a262daff224d@imp.free.fr> Hi ! I have a point layer and a polygon layer wich is a grid. I make a query on the point layer but I'd like to show the answer with the shapes in the paolygon layer where the points are includes. The queryusingfeatures seems to works only with a polygon as base for the query. I dont know how to use the querybypoint with more than one point. At this moment I make a querybypoint with each point, then I store all the results (ID of result's polygons) and I must use the CGI with a itemnquery to show the results. Is there someone with an idea to do else. Thanks, Jef Jean-Fran?ois MONY - jef.mony at free.fr Parc naturel r?gional de Lorraine Responsable informatique/SIG From SDunning at nephrology.org Thu Nov 30 08:23:57 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 30 Nov 2000 10:23:57 -0600 Subject: Building dynamic maps using PHP Message-ID: I have things running fairly well, but I'm now trying to add some custom functionality. I added a new function in the php3 file called GmapGetDesc(), but I continue getting this error: Fatal error: Call to unsupported or undefined function gmapgetdesc() in E:\INetPub\USRDS/mapserver/gmap/htdocs/gmap75.phtml on line 374 Clearly the phtml file does not recognize my new function, but why? The function is defined in the php3 file and the php3 file is included in the phtml file. What am I missing? Thanks, Stephan -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Tuesday, November 28, 2000 12:13 PM To: Stephan Dunning Subject: Re: Building dynamic maps using PHP Stephan Dunning wrote: > > Daniel, > > I have php/mapscript up and running! I've been looking over all sorts of > documentation, but I'm still unclear on how certain things work (i.e. some > syntax, DB connections, javascript & java interaction, etc.). > I was wondering if you could send me a copy of your gmap75.phtml so I could > get a better idea of how to compose my mapscript? > You can download it from: http://www2.dmsolutions.ca/mapserver/dl/gmap-ms_3.3.012-20001103.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Matt.Wilkie at gov.yk.ca Thu Nov 30 12:54:35 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 30 Nov 2000 12:54:35 -0800 Subject: mapserver on AOLserver? Message-ID: <6DD7370C9452D31192A10008C75D07530785E221@raptor.gov.yk.ca> > I checked it out and AOLServer is fully CGI compliant so you > should be good to go. Thanks. I'll post my experiences, assuming there is anything worthwhile to report. :) -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From shawatw at Princeton.EDU Thu Nov 30 13:30:40 2000 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Thu, 30 Nov 2000 16:30:40 -0500 Subject: Demo problems Message-ID: <3.0.32.20001130163040.013dff88@imap.princeton.edu> MapServer friends: I am pretty new to MapServer and trying to understand how everything works in mapserver. Recently, I change some stuffs in a demo version and put new data. When I run this demo version, my map is not centered properly. What could be the reason? Is this something to do with projection problem? Although all of my maps are in decimal degrees. Another question: I like a font created in legend but I can not duplicate the same font on the map even though I use same font. Anyone know the reason? Third question I have is..a map generated by MapServer looks very bad. Does any body knows why it is so? Is there any way to generate a better map? My demo MapServer URL http://gisserver.princeton.edu/ms_demo/demo_init.html My mapfile is: # Start of map file # NAME DEMO STATUS ON FONTSET "c:\inetpub\wwwroot\ms_demo\fonts\fonts.list" SIZE 400 300 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym EXTENT -74.965063 40.105963 -74.457872 40.455099 UNITS DD SHAPEPATH "c:\inetpub\wwwroot\ms_demo\data" IMAGECOLOR 255 255 255 # LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "c:\inetpub\wwwroot\ms_demo\" IMAGEURL "/ms_demo/" END # # Start of reference map # REFERENCE IMAGE graphics/mercer01.gif EXTENT -74.965063 40.105963 -74.457872 40.455099 STATUS ON SIZE 80 55 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND STATUS ON LABEL TYPE TRUETYPE ANTIALIAS FONT arial COLOR 0 0 0 OUTLINECOLOR 220 220 220 SIZE 8 ANGLE AUTO END END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL TYPE BITMAP COLOR 0 0 0 END SIZE 350 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 4 STATUS ON END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA county CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 255 255 END END Many thanks. -Wangyal From steve.lime at dnr.state.mn.us Thu Nov 30 13:49:23 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 30 Nov 2000 15:49:23 -0600 Subject: Demo problems Message-ID: Ist question: your mapfile says to create a 400x300 map yet the template is expecting 600x600. Edit the >> Tsering Wangyal Shawa 11/30/00 03:30PM >>> MapServer friends: I am pretty new to MapServer and trying to understand how everything works in mapserver. Recently, I change some stuffs in a demo version and put new data. When I run this demo version, my map is not centered properly. What could be the reason? Is this something to do with projection problem? Although all of my maps are in decimal degrees. Another question: I like a font created in legend but I can not duplicate the same font on the map even though I use same font. Anyone know the reason? Third question I have is..a map generated by MapServer looks very bad. Does any body knows why it is so? Is there any way to generate a better map? My demo MapServer URL http://gisserver.princeton.edu/ms_demo/demo_init.html My mapfile is: # Start of map file # NAME DEMO STATUS ON FONTSET "c:\inetpub\wwwroot\ms_demo\fonts\fonts.list" SIZE 400 300 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym EXTENT -74.965063 40.105963 -74.457872 40.455099 UNITS DD SHAPEPATH "c:\inetpub\wwwroot\ms_demo\data" IMAGECOLOR 255 255 255 # LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "c:\inetpub\wwwroot\ms_demo\" IMAGEURL "/ms_demo/" END # # Start of reference map # REFERENCE IMAGE graphics/mercer01.gif EXTENT -74.965063 40.105963 -74.457872 40.455099 STATUS ON SIZE 80 55 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND STATUS ON LABEL TYPE TRUETYPE ANTIALIAS FONT arial COLOR 0 0 0 OUTLINECOLOR 220 220 220 SIZE 8 ANGLE AUTO END END # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL TYPE BITMAP COLOR 0 0 0 END SIZE 350 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 4 STATUS ON END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA county CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 255 255 END END Many thanks. -Wangyal From jtang at gmu.edu Thu Nov 30 15:25:04 2000 From: jtang at gmu.edu (jtang at gmu.edu) Date: Thu, 30 Nov 2000 18:25:04 -0500 (EST) Subject: Also a Demo problem Message-ID: <152289157c44.157c44152289@gmu.edu> Hi, Lists, I just installed the mapserver and wanted to run the demo. It looked good at first. But when I clicked "Refresh/Query" button to browse a new layer, say, 'Roads', I got the web browser error information: " The page cannot be displayed", although it did refresh and display the new layer when I selected the layer and then clicked the map (not the "Refresh/Query" button). Is there anything wrong during the installation? The url is http://esip.gmu.edu/ms_demo/demo_init.html Thanks for your attention. Jane